大网数据广告活动
磁盘与文件系统

Microsoft SMB Protocol and CIFS Protocol Overview

· 52CE 我爱测

Learn about the Microsoft implementation of the Server Message Block (SMB) Protocol.

The Server Message Block (SMB) Protocol is a network file sharing protocol, and as implemented in Microsoft Windows is known as Microsoft SMB Protocol. The set of message packets that defines a particular version of the protocol is called a dialect. The Common Internet File System (CIFS) Protocol is a dialect of SMB. Both SMB and CIFS are also available on VMS, several versions of Unix, and other operating systems.

The technical reference to CIFS is available from Microsoft Corporation at Common Internet File System (CIFS) File Access Protocol.

Overview

Although its main purpose is file sharing, additional Microsoft SMB Protocol functionality includes the following:

In the OSI networking model, Microsoft SMB Protocol is most often used as an Application layer or a Presentation layer protocol, and it relies on lower-level protocols for transport. The transport layer protocol that Microsoft SMB Protocol is most often used with is NetBIOS over TCP/IP (NBT). However, Microsoft SMB Protocol can also be used without a separate transport protocol the Microsoft SMB Protocol/NBT combination is generally used for backward compatibility.

The Microsoft SMB Protocol is a client-server implementation and consists of a set of data packets, each containing a request sent by the client or a response sent by the server. These packets can be broadly classified as follows:

  • Session control packets Establishes and discontinues a connection to shared server resources.
  • File access packets Accesses and manipulates files and directories on the remote server.
  • General message packets Sends data to print queues, mailslots, and named pipes, and provides data about the status of print queues.

Some message packets may be grouped and sent in one transmission to reduce response latency and increase network bandwidth. This is called "batching." The Microsoft SMB Protocol Packet Exchange Scenario section describes an example of a Microsoft SMB Protocol session that uses packet batching.

In this section

The following topics provide an overview of the Microsoft SMB Protocol and CIFS Protocol:

Topic Description
Microsoft SMB Protocol Dialects To establish a connection between a client and a server using Microsoft SMB Protocol, you must first determine the dialect with the highest level of functionality that both the client and server support.
Microsoft SMB Protocol Authentication The security model used in Microsoft SMB Protocol is identical to the one used by other variants of SMB, and consists of two levels of security user and share. A share is a file, directory, or printer that can be accessed by Microsoft SMB Protocol clients.
Microsoft SMB Protocol Packet Exchange Scenario Example of a Microsoft SMB Protocol packet exchange between a client and a server.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 07/08/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。