3. SMB (CIFS) とは
• SMB
Server Message Block
▫ Microsoft Windows に搭載されているネットワー
ク ファイル共有プロトコル
• CIFS
Common Internet File System
▫ SMB を基に Microsoft が Internet Draft として公
開したプロトコル
5. SMB (CIFS) のドキュメント
• Server Message Block (SMB) Protocol
http://msdn.microsoft.com/en-us/library/cc246231.aspx
• Common Internet File System (CIFS) Protocol
http://msdn.microsoft.com/en-us/library/ee442092.aspx
• Server Message Block (SMB) Protocol Versions 2
and 3
http://msdn.microsoft.com/en-us/library/cc246482.aspx
6. 参考資料
• サーバー メッセージ ブロックの概要
http://technet.microsoft.com/ja-
jp/library/hh831795.aspx
• Microsoft SMB Protocol and CIFS Protocol
Overview
http://msdn.microsoft.com/en-
us/library/windows/desktop/aa365233.aspx
7. SMB のバージョン
• SMB 1.0
▫ オリジナル バージョン
▫ LAN Manager ~Windows XP/Server 2003R2
• SMB 2.0
▫ コマンドの整理 / パイプライン化
▫ Windows Vista / Server 2008 ~
• SMB 3.0
▫ SMB over RDMA / マルチコネクション
▫ Windows 8 / Server 2012 ~
12. SMB Session / Tree
Client
Process
Resource
Server
Process
Resource
L4 Network Session (VC)
SMB Session (UID)
Tree (TID)
13. SMB のパケット構造
0 8 16 17 31
0xFF 'S' (0x53) 'M' (0x4d) 'B' (0x42)
Command Status
Status * Flag Flag2
PID High SecuritySignature
SecuritySignature *
SecuritySignature * Reserved
Tree ID Process ID
UserID MultiplexID
Request / Response Data
………