当前位置: 首页 > news >正文

在 Windows 11 中为 SMB 3.x 文件共享协议提供 RDMA 支持

注:机翻,未校


Enable SMB Direct in Windows 11

在 Windows 11 中启用 SMB Direct

Provides RDMA support for the SMB 3.x file sharing protocol

为 SMB 3.x 文件共享协议提供 RDMA 支持

Vigneshwaran Vijayakumar

November 3, 2024 Last Updated: November 2, 2024

Enable SMB Direct in Windows 11: Microsoft introduced an enterprise-level feature with SMB 3.0 in Windows Server 2012 and Windows 8. Regarding SMB Direct, the key qualities are High Performance and Low Latency Data Transfers making it a blessing for Windows 11 Professional, Server, and Enterprise Editions. Many data centers are running on Windows Servers, and these data centers will be hosting many virtual machines for different clients amounting to a large number of data transfers regularly and that is one of the scenarios where SMB Direct becomes a crucial feature. It uses Remote Directory Memory Access (RDMA) network adapters, allowing data to transfer directly between memory on different computers with the CPU’s involvement. In this article, we will check out the steps on How to Enable SMB Direct in Windows 11 Professional, Enterprise, and Server Editions.

在 Windows 11 中启用 SMB Direct:Microsoft 在 Windows Server 2012 和 Windows 8 中引入了 SMB 3.0 的企业级功能。关于 SMB Direct,关键品质是高性能和低延迟数据传输,使其成为 Windows 11 专业版、服务器版和企业版的福音。许多数据中心都在 Windows Server 上运行,这些数据中心将为不同的客户端托管许多虚拟机,定期进行大量数据传输,这是 SMB Direct 成为关键功能的情况之一。它使用远程目录内存访问 (RDMA) 网络适配器,允许数据在 CPU 参与下在不同计算机上的内存之间直接传输。在本文中,将说明如何在 Windows 11 专业版、企业版和服务器版中启用 SMB Direct 的步骤。

Key Steps 关键步骤

  • Run the following command appwiz.cpl
    运行以下命令 appwiz.cpl
  • Click on Turn Windows Features on or off from the left pane of the Programs and Features window.
    单击“程序和功能”窗口左侧窗格中的“打开 Windows 功能”或“关闭 Windows 功能”。
  • On the Windows Features dialog, search and locate SMB Direct, click on the checkbox next to it to enable it, and click OK.
    在“Windows 功能”对话框中,搜索并找到 SMB Direct,单击旁边的复选框以启用它,然后单击“确定”。
  • That is it. SMB Direct feature is enabled on your Windows 11 Professional and Enterprise Editions.
    就是这样。SMB Direct 功能已在 Windows 11 专业版和企业版上启用。

RDMA Network Communication System Mechanism RDMA 网络通信系统机制

Schematics Explaining the comparison between the standard network communication systems and the RDMA Network Communication Systems

Schematics Explaining the comparison between the standard network communication systems and the RDMA Network Communication Systems

SMB Direct uses RDMA Network Adaptors which makes the data transfers extremely fast and low latent at enterprise levels. The RDMA mechanism plays a crucial role here, making SMB Direct highly effective. Here is how it works.
SMB Direct 使用 RDMA 网络适配器,这使得企业级的数据传输速度极快且延迟较低。RDMA 机制在这里起着至关重要的作用,使 SMB Direct 非常有效。以下是它的工作原理。

In standard network communication, the CPU typically processes each packet, managing the transfer of data between memory and network interfaces. With RDMA, the network adapter handles this process independently, bypassing the CPU and directly accessing the device’s memory, resulting in faster data transfer. RDMA also bypasses the OS Kernel eliminating the OS level latencies and accelerating the overall transfer speed.
在标准网络通信中,CPU 通常处理每个数据包,管理内存和网络接口之间的数据传输。使用 RDMA,网络适配器独立处理此过程,绕过 CPU 并直接访问设备的内存,从而加快数据传输速度。RDMA 还绕过了操作系统内核,消除了操作系统级别的延迟并加快了整体传输速度。

Key Features of RDMA Network Communication Systems

Key Features of RDMA Network Communication Systems

How can I Enable SMB Direct in Windows 11? – Simple Steps 如何在 Windows 11 中启用 SMB Direct?– 简单的步骤

Enabling this feature in Windows 11 PC is a straightforward process. However, as mentioned in the introduction paragraph, this feature is not available for Windows 11 Home users. SMB Direct is more intended for enterprise and, server-level transactions, and hence it is available only on Windows 11 Professional Editions, Server Editions, and Enterprise Editions. Let’s get started.
在 Windows 11 PC 中启用此功能是一个简单的过程。但是,如介绍段落中所述,此功能不适用于 Windows 11 家庭版用户。SMB Direct 更适合企业和服务器级交易,因此它仅适用于 Windows 11 专业版、服务器版和企业版。

  • To enable this feature on Windows 11, we have to go to the Windows Features dialog as SMB Direct is an optional feature. To do so, open Run Command. You can either use the Start menu or just use the shortcut

要在 Windows 11 上启用此功能,我们必须转到“Windows 功能”对话框,因为 SMB Direct 是一项可选功能。为此,请打开 Run Command。您可以使用“开始”菜单,也可以只使用快捷键 WIN KEY + R。

  • Enter the following command in the Run Command box and click OK. **appwiz.cpl**
    在“运行命令”框中输入以下命令,然后单击“确定”。

Open Programs and Features using appwiz.cpl

Open Programs and Features using appwiz.cpl

  • The Programs and Features Window will open now. In the left pane, you can find the option “Turn Windows Features on or off“. Click on that.
    程序和功能窗口现在将打开。在左侧窗格中,您可以找到“打开或关闭 Windows 功能”选项。点击那个。

Turn Windows Features on or off

Turn Windows Features on or off

  • Now, the Windows Features dialog will pop up. Here you can find a lot of optional features, the features may vary depending upon whether the PC is Windows 11 Home, Pro, or other Enterprise Editions.
    现在,将弹出 Windows 功能对话框。在这里您可以找到很多可选功能,这些功能可能会有所不同,具体取决于 PC 是 Windows 11 家庭版、专业版还是其他企业版。
  • Locate SMB Direct from the list of features available, and then click on the checkbox next to it and finally click OK.
    从可用功能列表中找到 SMB Direct,然后单击它旁边的复选框,最后单击“确定”。

Enable SMB Direct in Windows 11

Enable SMB Direct in Windows 11

  • The system will now search for the required files.
    系统现在将搜索所需的文件。

Searching for the required files

Searching for the required files

  • Then, Windows will apply the necessary changes.
    然后,Windows 将应用必要的更改。

Applying Changes

Applying Changes

  • Finally, you will be prompted to do a Restart. Click on Restart now. It is highly recommended to do a restart right now so that the changes made will reflect.
    最后,系统将提示您执行 Restart (重新启动)。单击 Restart now(立即重新启动)。强烈建议立即重新启动,以便所做的更改将反映出来。
  • That is it. SMB Direct is now enabled in your Windows 11 Pro, and Enterprise Editions.
    就是这样。SMB Direct 现已在 Windows 11 专业版和企业版中启用。

RDMA allows data to be transferred from the memory of one device directly to the memory of another device without creating extra copies in between. This means data doesn’t have to be copied multiple times saving time and reducing CPU overhead.

How to check whether SMB Direct is enabled in Windows 11? 如何检查 Windows 11 中是否启用了 SMB Direct?

We can use PowerShell to check whether SMB Direct is enabled in Windows 11 or not. The following are the steps.
我们可以使用 PowerShell 检查 Windows 11 中是否启用了 SMB Direct。以下是步骤。

  • Open PowerShell via the Start menu.
    通过开始菜单打开 PowerShell。
  • Execute the following command in the PowerShell. Get-SmbClientConfiguration | Select-Object -Property EnableSMBDirect
    在 PowerShell 中执行以下命令 Get-SmbClientConfiguration | Select-Object -Property EnableSMBDirect

Check whether SMB Direct is enabled or not

Check whether SMB Direct is enabled or not

FAQ related to the SMB Direct in Windows 11

与 Windows 11 中的 SMB Direct 相关的常见问题解答

SMB Direct is missing in Windows 11?

Windows 11 中缺少 SMB Direct?

Due to its advanced requirements and specialized use cases, it is designed for high-performance networking in enterprise environments, SMB Direct will not be available for Windows 11 Home Edition.
由于其高级要求和专用用例,SMB Direct 专为企业环境中的高性能网络而设计,因此 Windows 11 家庭版将不可用。

Do I need Special Hardware for SMB Direct?

是否需要 SMB Direct 的特殊硬件?

Yes, SMB Direct requires RDMA-capable network adapters, such as iWARP or RoCE (RDMA over Converged Ethernet). Ensure your network infrastructure supports these technologies.
是的,SMB Direct 需要支持 RDMA 的网络适配器,例如 iWARP 或 RoCE(基于融合以太网的 RDMA)。确保您的网络基础设施支持这些技术。

Can I use SMB Direct over a wireless network?

我可以通过无线网络使用 SMB Direct 吗?

No, SMB Direct is designed to work over high-performance wired networks. It is not suitable for wireless connections due to latency and stability issues.
不需要,SMB Direct 旨在通过高性能有线网络工作。由于延迟和稳定性问题,它不适合无线连接。

Does Enabling SMB Direct affect security?

启用 SMB Direct 是否会影响安全性?

Enabling SMB Direct does not inherently affect security, but you should ensure that your network is properly secured as with any file-sharing protocols.
启用 SMB Direct 本身不会影响安全性,但您应该确保您的网络与任何文件共享协议一样受到适当保护。

Take away

SMB Direct in Windows 11 offers a powerful solution for enhancing file sharing and access performance. Using RDMA technology, SMB Direct minimizes latency and reduces CPU overhead, making it ideal for environments that require high throughput and efficiency.
Windows 11 中的 SMB Direct 为增强文件共享和访问性能提供了强大的解决方案。SMB Direct 使用 RDMA 技术,最大限度地减少延迟并减少 CPU 开销,使其成为需要高吞吐量和效率的环境的理想选择。


如何检测 SMB 协议状态以及启用和禁用 SMB 协议

SMBv1

  • 检测

PowerShell

Get-SmbServerConfiguration | Select EnableSMB1Protocol
  • 禁用

PowerShell

Set-SmbServerConfiguration -EnableSMB1Protocol $false
  • 启用

PowerShell

Set-SmbServerConfiguration -EnableSMB1Protocol $true

SMB v2/v3

  • 检测

PowerShell

Get-SmbServerConfiguration | Select EnableSMB2Protocol
  • 禁用

PowerShell

Set-SmbServerConfiguration -EnableSMB2Protocol $false
  • 启用

PowerShell

Set-SmbServerConfiguration -EnableSMB2Protocol $true

各种 Windows 版本中使用的 SMB :

SMB DialectYearOperating SystemKey Points
SMB 1.01984Windows XP, 2003 and earlierExtremely chatty, No encryption, Insecure
CIFS1996Windows 95, Windows NT 4.0Supports larger files, direct transport over TCP/IP Supports symlinks and hardlinks
SMB 2.02006Windows Vista, Server 2008Reduced protocol chattiness, Supports the pipelining mechanism
SMB 2.12010Windows 7, Server 2008 R2Minor performance improvements, Opportunistic locking, Significant MTU support
SMB 3.02012Windows 8, Server 2012End-to-end encryption, SMB transparent failover, SMB direct, SMB multichannel, SMB scale out
SMB 3.022014Windows 8.1, Server 2012 R2Performance improvements, ability to disable CIFS/SMB 1.0 for increased security
SMB 3.1.12015Windows 10, Server 2016, Server 2019Supports AES-128-GCM and AES-128-CCM encryption, supports directory caching, supports pre-authentication integrity checks to mitigate MITM attacks
SMB 3.1.1*2021Windows 11, Server 2022Supports AES-256-GCM and AES-256-CCM encryption, SMB direct with encryption, Supports SMB over QUIC

从表中可以看出,Windows 11 和 Windows Server 2022 仍然使用 SMB 3.1.1,几乎没有新功能和安全增强功能。


via:

  • Enable SMB Direct in Windows 11 (Easy way)
    https://winsides.com/enable-smb-direct-in-windows-11-quick-steps/

相关文章:

在 Windows 11 中为 SMB 3.x 文件共享协议提供 RDMA 支持

注:机翻,未校。 Enable SMB Direct in Windows 11 在 Windows 11 中启用 SMB Direct Provides RDMA support for the SMB 3.x file sharing protocol 为 SMB 3.x 文件共享协议提供 RDMA 支持 Vigneshwaran Vijayakumar November 3, 2024 Last Updat…...

C 标准库 - `<errno.h>`

C 标准库 - <errno.h> 引言 在C语言编程中,正确处理错误是保证程序稳定性和可靠性的关键。C标准库中的<errno.h>头文件提供了错误码定义和宏,使得开发者能够更好地管理和处理程序运行过程中可能出现的错误。本文将详细介绍<errno.h>头文件的作用、常用错…...

2025年01月28日Github流行趋势

项目名称&#xff1a;maybe 项目地址url&#xff1a;https://github.com/maybe-finance/maybe项目语言&#xff1a;Ruby历史star数&#xff1a;37540今日star数&#xff1a;1004项目维护者&#xff1a;zachgoll, apps/dependabot, tmyracle, Shpigford, crnsh项目简介&#xff…...

7. 马科维茨资产组合模型+金融研报AI长文本智能体(Qwen-Long)增强方案(理论+Python实战)

目录 0. 承前1. 深度金融研报准备2. 核心AI函数代码讲解2.1 函数概述2.2 输入参数2.3 主要流程2.4 异常处理2.5 清理工作2.7 get_ai_weights函数汇总 3. 汇总代码4. 反思4.1 不足之处4.2 提升思路 5. 启后 0. 承前 本篇博文是对前两篇文章&#xff0c;链接: 5. 马科维茨资产组…...

Android 启动流程

一 Bootloader 在嵌入式系统中&#xff0c;Bootloader的引导过程与传统的PC环境有所不同&#xff0c;主要是因为嵌入式系统的硬件配置和应用场景更加多样化。以下是嵌入式系统中Bootloader被引导的一般流程&#xff1a; 1. 硬件复位 当嵌入式设备上电或复位时&#xff0c;处…...

庆祝2025到来:C++编程的新篇章

作者&#xff1a;w(&#xff9f;Д&#xff9f;)w吓洗宝宝了 发布时间&#xff1a;2025年1月19日00:00 引言 新年伊始&#xff0c;万象更新。在这充满希望的2025年&#xff0c;我们迎来了新的机遇和挑战。作为C编程爱好者的一员&#xff0c;我感到无比激动和自豪。C作为一种强…...

基于STM32的智能家用温控器设计

目录 引言系统设计 硬件设计软件设计 系统功能模块 温度监测模块自动加热与制冷模块用户交互与显示模块节能模式与定时功能模块远程控制与数据上传模块 控制算法 温度调节算法定时任务与节能优化算法数据记录与反馈算法 代码实现 温度监测与自动控制代码定时与节能模式代码数据…...

扣子平台音频功能:让声音也能“智能”起来。扣子免费系列教程(14)

在数字化时代&#xff0c;音频内容的重要性不言而喻。无论是在线课程、有声读物&#xff0c;还是各种多媒体应用&#xff0c;音频都是传递信息、增强体验的关键元素。扣子平台的音频功能&#xff0c;为开发者和内容创作者提供了一个强大而灵活的工具&#xff0c;让音频的使用和…...

Dismissible组件的用法

文章目录 1 概念介绍2 使用方法3 示例代码我们在上一章回中介绍了GestureDetector Widget相关的内容,本章回中将介绍Dismissible Widget.闲话休提,让我们一起Talk Flutter吧。 1 概念介绍 我们在这里介绍的Dismissible是一个事件响应Widget,它和GestureDetector类似,不过它只…...

C语言--数据在内存中的存储

在C语言中&#xff0c;数据在内存中的存储方式主要取决于数据的类型和存储位置。以下是C语言中数据在内存中的存储方式的详细说明&#xff1a; 1. 数据类型与存储方式 基本数据类型 • 整数类型&#xff08;如int、short、long等&#xff09;&#xff1a; • 存储方式&#x…...

CPP-存储区域

CPP支持手动开辟和释放内存&#xff0c;所以对于内存的理解非常重要&#xff01; 在C中&#xff0c;内存存储通常可以大致分为几个区域&#xff0c;这些区域根据存储的数据类型、生命周期和作用域来划分。这些区域主要包括&#xff1a; 代码区&#xff08;Code Segment/Text S…...

9.中断系统、EXTI外部中断

中断系统原理 中断 中断系统是管理和执行中断的逻辑结构&#xff0c;外部中断是众多能产生中断的外设之一&#xff0c;所以本节我们就借助外部中断来学习一下中断系统。在以后学习其它外设的时候&#xff0c;也是会经常和中断打交道的。 中断&#xff1a;在主程序运行过程中…...

新增文章功能

总说 过程参考黑马程序员SpringBoot3Vue3全套视频教程&#xff0c;springbootvue企业级全栈开发从基础、实战到面试一套通关_哔哩哔哩_bilibili 之前又偷懒几天。回老家没事干&#xff0c;玩也玩不好&#xff0c;一玩老是被家里人说。写代码吧还是&#xff0c;他们都看不懂&a…...

《HelloGitHub》第 106 期

兴趣是最好的老师&#xff0c;HelloGitHub 让你对编程感兴趣&#xff01; 简介 HelloGitHub 分享 GitHub 上有趣、入门级的开源项目。 github.com/521xueweihan/HelloGitHub 这里有实战项目、入门教程、黑科技、开源书籍、大厂开源项目等&#xff0c;涵盖多种编程语言 Python、…...

使用Ollama 在Ubuntu运行deepseek大模型:以DeepSeek-coder为例

DeepSeek大模型这几天冲上热搜啦&#xff01; 咱们来亲身感受下DeepSeek模型的魅力吧&#xff01; 整个操作流程非常简单方便&#xff0c;只需要2步&#xff0c;先安装Ollama&#xff0c;然后执行大模型即可。 安装Ollama 在Ubuntu下安装Ollama非常简单&#xff0c;直接sna…...

ROS应用之SwarmSim在ROS 中的协同路径规划

SwarmSim 在 ROS 中的协同路径规划 前言 在多机器人系统&#xff08;Multi-Robot Systems, MRS&#xff09;中&#xff0c;SwarmSim 是一个常用的模拟工具&#xff0c;可以对多机器人进行仿真以实现复杂任务的协同。除了任务分配逻辑以外&#xff0c;SwarmSim 在协同路径规划方…...

ARM64平台Flutter环境搭建

ARM64平台Flutter环境搭建 Flutter简介问题背景搭建步骤1. 安装ARM64 Android Studio2. 安装Oracle的JDK3. 安装 Dart和 Flutter 开发插件4. 安装 Android SDK5. 安装 Flutter SDK6. 同意 Android 条款7. 运行 Flutter 示例项目8. 修正 aapt2 报错9. 修正 CMake 报错10. 修正 N…...

Maven运行任何命令都报错“Internal error: java.lang.ArrayIndexOutOfBoundsException”

今天遇到一个奇怪的问题&#xff0c;在maven工程下运行任何mvn命令都报“Internal error: java.lang.ArrayIndexOutOfBoundsException”错误&#xff0c;具体错误如下&#xff1a; $ mvn install [INFO] Scanning for projects... [ERROR] Internal error: java.lang.ArrayInd…...

doris: MAP数据类型

MAP<K, V> 表示由K, V类型元素组成的 map&#xff0c;不能作为 key 列使用。 目前支持在 Duplicate&#xff0c;Unique 模型的表中使用。 K, V 支持的类型有&#xff1a; BOOLEAN, TINYINT, SMALLINT, INT, BIGINT, LARGEINT, FLOAT, DOUBLE, DECIMAL, DECIMALV3, DAT…...

Gurobi基础语法之 LinExpr 类

优化问题中普遍出现的一种类型的约束就是线性约束&#xff0c;线性约束形如&#xff0c;Gurobi 中设计了一个 LinExpr 类来创建线性表达式。 当 i 的取值范围较小的时候&#xff0c;可以直接将这个线性表达式写出来&#xff0c;作为 addConstr 的参数&#xff0c;以此方便的建立…...

前端倒计时误差!

提示:记录工作中遇到的需求及解决办法 文章目录 前言一、误差从何而来?二、五大解决方案1. 动态校准法(基础版)2. Web Worker 计时3. 服务器时间同步4. Performance API 高精度计时5. 页面可见性API优化三、生产环境最佳实践四、终极解决方案架构前言 前几天听说公司某个项…...

Java 加密常用的各种算法及其选择

在数字化时代&#xff0c;数据安全至关重要&#xff0c;Java 作为广泛应用的编程语言&#xff0c;提供了丰富的加密算法来保障数据的保密性、完整性和真实性。了解这些常用加密算法及其适用场景&#xff0c;有助于开发者在不同的业务需求中做出正确的选择。​ 一、对称加密算法…...

WEB3全栈开发——面试专业技能点P2智能合约开发(Solidity)

一、Solidity合约开发 下面是 Solidity 合约开发 的概念、代码示例及讲解&#xff0c;适合用作学习或写简历项目背景说明。 &#x1f9e0; 一、概念简介&#xff1a;Solidity 合约开发 Solidity 是一种专门为 以太坊&#xff08;Ethereum&#xff09;平台编写智能合约的高级编…...

MySQL用户和授权

开放MySQL白名单 可以通过iptables-save命令确认对应客户端ip是否可以访问MySQL服务&#xff1a; test: # iptables-save | grep 3306 -A mp_srv_whitelist -s 172.16.14.102/32 -p tcp -m tcp --dport 3306 -j ACCEPT -A mp_srv_whitelist -s 172.16.4.16/32 -p tcp -m tcp -…...

GitHub 趋势日报 (2025年06月06日)

&#x1f4ca; 由 TrendForge 系统生成 | &#x1f310; https://trendforge.devlive.org/ &#x1f310; 本日报中的项目描述已自动翻译为中文 &#x1f4c8; 今日获星趋势图 今日获星趋势图 590 cognee 551 onlook 399 project-based-learning 348 build-your-own-x 320 ne…...

MySQL 索引底层结构揭秘:B-Tree 与 B+Tree 的区别与应用

文章目录 一、背景知识&#xff1a;什么是 B-Tree 和 BTree&#xff1f; B-Tree&#xff08;平衡多路查找树&#xff09; BTree&#xff08;B-Tree 的变种&#xff09; 二、结构对比&#xff1a;一张图看懂 三、为什么 MySQL InnoDB 选择 BTree&#xff1f; 1. 范围查询更快 2…...

TSN交换机正在重构工业网络,PROFINET和EtherCAT会被取代吗?

在工业自动化持续演进的今天&#xff0c;通信网络的角色正变得愈发关键。 2025年6月6日&#xff0c;为期三天的华南国际工业博览会在深圳国际会展中心&#xff08;宝安&#xff09;圆满落幕。作为国内工业通信领域的技术型企业&#xff0c;光路科技&#xff08;Fiberroad&…...

Docker拉取MySQL后数据库连接失败的解决方案

在使用Docker部署MySQL时&#xff0c;拉取并启动容器后&#xff0c;有时可能会遇到数据库连接失败的问题。这种问题可能由多种原因导致&#xff0c;包括配置错误、网络设置问题、权限问题等。本文将分析可能的原因&#xff0c;并提供解决方案。 一、确认MySQL容器的运行状态 …...

CppCon 2015 学习:Time Programming Fundamentals

Civil Time 公历时间 特点&#xff1a; 共 6 个字段&#xff1a; Year&#xff08;年&#xff09;Month&#xff08;月&#xff09;Day&#xff08;日&#xff09;Hour&#xff08;小时&#xff09;Minute&#xff08;分钟&#xff09;Second&#xff08;秒&#xff09; 表示…...

Canal环境搭建并实现和ES数据同步

作者&#xff1a;田超凡 日期&#xff1a;2025年6月7日 Canal安装&#xff0c;启动端口11111、8082&#xff1a; 安装canal-deployer服务端&#xff1a; https://github.com/alibaba/canal/releases/1.1.7/canal.deployer-1.1.7.tar.gz cd /opt/homebrew/etc mkdir canal…...