在 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/

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/web/66979.shtml
繁體地址,請注明出處:http://hk.pswp.cn/web/66979.shtml
英文地址,請注明出處:http://en.pswp.cn/web/66979.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

electron打包客戶端在rk3588上支持h265硬解

目錄 前言 chromium是如何支持h265硬解 electron/chromium第一次編譯 electron/chromium第二次編譯 前言 我們的客戶端程序是用electron打包的前端程序,其在rk3588主機上的linux環境運行。之前使用客戶端查看h264編碼的視頻直播是沒有問題的,但視頻源…

什么是網絡爬蟲?Python爬蟲到底怎么學?

最近我在研究 Python 網絡爬蟲,發現這玩意兒真是有趣,干脆和大家聊聊我的心得吧!咱們都知道,網絡上的信息多得就像大海里的水,而網絡爬蟲就像一個勤勞的小礦工,能幫我們從這片浩瀚的信息海洋中挖掘出需要的…

【Jave全棧】Java與JavaScript比較

文章目錄 前言一、Java1、 歷史與背景2、語言特點3、應用場景4、生態系統 二、JavaScript1、歷史與背景2、語言特點3、應用場景4、 生態系統 三、相同點四、不同點1、語言類型2、用途3、語法和結構4、性能5、生態系統6、開發模式 前言 Java和JavaScript是兩種不同的編程語言&a…

GitCode 助力 AutoTable:共創 MyBatis 生態的自動表格管理新篇章

項目倉庫https://gitcode.com/dromara/auto-table 解放雙手,專注業務:MyBatis 生態的“自動表格”創新 AutoTable 是一款致力于為 MyBatis 生態賦予“自動表格”功能的創新插件。其核心理念是通過 Java 實體類自動生成和維護數據庫的表結構&#xff0c…

【MCU】DFU、IAP、OTA

我發現很多人把幾個概念都學混了,只記得一個升級了 DFU DFU (device firmware update)是指的 USB DFU,這個是 USB 的一個機制,可以升級設備的固件,可以去 USB-IF 查看規范文件。 OTA 全稱為 Over-the-air update,利…

ThinkPHP 8 操作JSON數據

【圖書介紹】《ThinkPHP 8高效構建Web應用》-CSDN博客 《2025新書 ThinkPHP 8高效構建Web應用 編程與應用開發叢書 夏磊 清華大學出版社教材書籍 9787302678236 ThinkPHP 8高效構建Web應用》【摘要 書評 試讀】- 京東圖書 使用VS Code開發ThinkPHP項目-CSDN博客 編程與應用開…

GD32F303 GCC 環境搭建

一、引言 在嵌入式開發領域,GD32F303 微控制器以其出色的性能和豐富的功能被廣泛應用。為了充分發揮其潛力,搭建一個高效的開發環境并深入理解項目構建過程至關重要。本文將詳細介紹如何基于 GCC 工具鏈搭建 GD32F303 的開發環境,重點聚焦于…

【C++】詳細講解繼承(下)

本篇來繼續說說繼承。上篇可移步至【C】詳細講解繼承(上) 1.繼承與友元 友元關系不能繼承 ,也就是說基類友元不能訪問派?類私有和保護成員。 class Student;//前置聲明class Same //基類 { public:friend void Fun(const Same& p, con…

考研機試題:今年的第幾天

描述 輸入年、月、日&#xff0c;計算該天是本年的第幾天。 輸入描述: 包括三個整數年(1<Y<3000)、月(1<M<12)、日(1<D<31)。 輸出描述: 輸入可能有多組測試數據&#xff0c;對于每一組測試數據&#xff0c; 輸出一個整數&#xff0c;代表Input中的年、…

解鎖羅技鍵盤新技能:輕松鎖定功能鍵(羅技K580)

在使用羅技鍵盤的過程中&#xff0c;你是否曾因 F11、F12 功能鍵的默認設置與實際需求不符而感到困擾&#xff1f; 別擔心&#xff0c;今天就為大家分享一個簡單實用的小技巧 —— 鎖定羅技鍵盤的 F11、F12 功能鍵&#xff0c;讓你的操作更加得心應手&#xff01; 通常情況下…

Flink把kafa數據寫入Doris的N種方法及對比。

用Flink+Doris來開發實時數倉,首要解決是如何接入kafka實時流,下面是參考Doris官方文檔和代碼,在自己項目開發的實踐中總結,包括一些容易踩坑的細節。 目錄 Routine Load方法 接入kafka實時數據 踩坑的問題細節 Flink Doris Connector方法 完整示例 Routine Load方法…

小識JVM堆內存管理的優化機制TLAB

JVM&#xff08;Java虛擬機&#xff09;在堆內存分配空間時&#xff0c;TLAB&#xff08;Thread Local Allocation Buffer&#xff0c;線程本地分配緩存區&#xff09;是一種重要的內存管理優化技術。以下是對TLAB的詳細解釋&#xff1a; 一、TLAB的定義 TLAB是JVM堆內存管理…

(開源)基于Django+Yolov8+Tensorflow的智能鳥類識別平臺

1 項目簡介&#xff08;開源地址在文章結尾&#xff09; 系統旨在為了幫助鳥類愛好者、學者、動物保護協會等群體更好的了解和保護鳥類動物。用戶群體可以通過平臺采集野外鳥類的保護動物照片和視頻&#xff0c;甄別分類、實況分析鳥類保護動物&#xff0c;與全世界各地的用戶&…

【力扣Hot 100】普通數組2

3. 輪轉數組 給定一個整數數組 nums&#xff0c;將數組中的元素向右輪轉 k **個位置&#xff0c;其中 k **是非負數。 示例 1: 輸入: nums [1,2,3,4,5,6,7], k 3 輸出:[5,6,7,1,2,3,4]解釋: 向右輪轉 1 步:[7,1,2,3,4,5,6] 向右輪轉 2 步:[6,7,1,2,3,4,5] 向右輪轉 3 步:[…

專題三_窮舉vs暴搜vs深搜vs回溯vs剪枝_全排列

dfs解決 全排列&子集 1.全排列 link:46. 全排列 - 力扣&#xff08;LeetCode&#xff09; 全局變量回溯 code class Solution { public:vector<vector<int>> ans;vector<int> cur;vector<bool> used;vector<vector<int>> permute…

2_高并發內存池_各層級的框架設計及ThreadCache(線程緩存)申請內存設計

一、高并發內存池框架設計 高并發池框架設計&#xff0c;特別是針對內存池的設計&#xff0c;需要充分考慮多線程環境下&#xff1a; 性能問題鎖競爭問題內存碎片問題 高并發內存池的整體框架設計旨在提高內存的申請和釋放效率&#xff0c;減少鎖競爭和內存碎片。 高并發內存…

JAVA 使用反射比較對象屬性的變化,記錄修改日志。使用注解【策略模式】,來進行不同屬性枚舉值到中英文描述的切換,支持前端國際化。

1.首先定義一個接口&#xff0c;接口中有兩個方法&#xff0c;分別是將屬性轉換成英文描述和中文描述。 其實就是將數據庫中記錄的 0 1 &#xff0c;轉換成后面的描述 這邊定義了中文轉換為默認方法&#xff0c;是因為有些屬性不需要進行中文轉換&#xff0c;或者該屬性的枚舉…

webrtc入門系列(五)amazon-kinesis-video-streams-webrtc-sdk-c編譯

《webrtc入門系列&#xff08;一&#xff09;easy_webrtc_server 入門環境搭建》 《webrtc入門系列&#xff08;二&#xff09;easy_webrtc_server 入門example測試》 《webrtc入門系列&#xff08;三&#xff09;云服務器coturn環境搭建》 《webrtc入門系列&#xff08;四&…

AIGC大模型詳解(ChatGPT,Cursor,豆包,文心一格)

定義與概念 AIGC&#xff08;AI Generated Content&#xff09;大模型是基于人工智能技術&#xff0c;具有海量參數、強大算力支持&#xff0c;能處理和生成多種類型內容的深度學習模型。可自主學習數據中的模式和規律&#xff0c;生成文本、圖像、音頻等內容&#xff0c;如Ch…

.NET9增強OpenAPI規范,不再內置swagger

ASP.NETCore in .NET 9.0 OpenAPI官方文檔ASP.NET Core API 應用中的 OpenAPI 支持概述 | Microsoft Learnhttps://learn.microsoft.com/zh-cn/aspnet/core/fundamentals/openapi/overview?viewaspnetcore-9.0https://learn.microsoft.com/zh-cn/aspnet/core/fundamentals/ope…