当前位置: 首页 > 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;以此方便的建立…...

java_网络服务相关_gateway_nacos_feign区别联系

1. spring-cloud-starter-gateway 作用&#xff1a;作为微服务架构的网关&#xff0c;统一入口&#xff0c;处理所有外部请求。 核心能力&#xff1a; 路由转发&#xff08;基于路径、服务名等&#xff09;过滤器&#xff08;鉴权、限流、日志、Header 处理&#xff09;支持负…...

深入理解JavaScript设计模式之单例模式

目录 什么是单例模式为什么需要单例模式常见应用场景包括 单例模式实现透明单例模式实现不透明单例模式用代理实现单例模式javaScript中的单例模式使用命名空间使用闭包封装私有变量 惰性单例通用的惰性单例 结语 什么是单例模式 单例模式&#xff08;Singleton Pattern&#…...

Linux云原生安全:零信任架构与机密计算

Linux云原生安全&#xff1a;零信任架构与机密计算 构建坚不可摧的云原生防御体系 引言&#xff1a;云原生安全的范式革命 随着云原生技术的普及&#xff0c;安全边界正在从传统的网络边界向工作负载内部转移。Gartner预测&#xff0c;到2025年&#xff0c;零信任架构将成为超…...

服务器--宝塔命令

一、宝塔面板安装命令 ⚠️ 必须使用 root 用户 或 sudo 权限执行&#xff01; sudo su - 1. CentOS 系统&#xff1a; yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh2. Ubuntu / Debian 系统…...

Aspose.PDF 限制绕过方案:Java 字节码技术实战分享(仅供学习)

Aspose.PDF 限制绕过方案&#xff1a;Java 字节码技术实战分享&#xff08;仅供学习&#xff09; 一、Aspose.PDF 简介二、说明&#xff08;⚠️仅供学习与研究使用&#xff09;三、技术流程总览四、准备工作1. 下载 Jar 包2. Maven 项目依赖配置 五、字节码修改实现代码&#…...

网站指纹识别

网站指纹识别 网站的最基本组成&#xff1a;服务器&#xff08;操作系统&#xff09;、中间件&#xff08;web容器&#xff09;、脚本语言、数据厍 为什么要了解这些&#xff1f;举个例子&#xff1a;发现了一个文件读取漏洞&#xff0c;我们需要读/etc/passwd&#xff0c;如…...

回溯算法学习

一、电话号码的字母组合 import java.util.ArrayList; import java.util.List;import javax.management.loading.PrivateClassLoader;public class letterCombinations {private static final String[] KEYPAD {"", //0"", //1"abc", //2"…...

【笔记】WSL 中 Rust 安装与测试完整记录

#工作记录 WSL 中 Rust 安装与测试完整记录 1. 运行环境 系统&#xff1a;Ubuntu 24.04 LTS (WSL2)架构&#xff1a;x86_64 (GNU/Linux)Rust 版本&#xff1a;rustc 1.87.0 (2025-05-09)Cargo 版本&#xff1a;cargo 1.87.0 (2025-05-06) 2. 安装 Rust 2.1 使用 Rust 官方安…...

RabbitMQ入门4.1.0版本(基于java、SpringBoot操作)

RabbitMQ 一、RabbitMQ概述 RabbitMQ RabbitMQ最初由LShift和CohesiveFT于2007年开发&#xff0c;后来由Pivotal Software Inc.&#xff08;现为VMware子公司&#xff09;接管。RabbitMQ 是一个开源的消息代理和队列服务器&#xff0c;用 Erlang 语言编写。广泛应用于各种分布…...

springboot 日志类切面,接口成功记录日志,失败不记录

springboot 日志类切面&#xff0c;接口成功记录日志&#xff0c;失败不记录 自定义一个注解方法 import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target;/***…...