How SMB works
SMB is how Windows shares folders and printers (\\server\share). The client negotiates a dialect, signs in, connects to a share and reads or writes files.
Layer: Application (OSI layer 7) · Port: 445 · Transport: TCP · Format: Binary commands · Standard: MS-SMB2
SMB packet flow
- SMB2 Client → File Server: Negotiate Protocol (SMB 3.1.1)
- SMB2 Client → File Server: Session Setup (Kerberos/NTLM)
- SMB2 Client → File Server: Tree Connect \\file\shared
- SMB2 Client → File Server: Create report.xlsx / Read 64 KB
- SMB2 File Server → Client: Read Response (64 KB)
Other protocols: HTTP · WebSocket · QUIC · SMTP · IMAP · POP3 · FTP · WebRTC · SIP · RTSP · RTMP · MQTT · Modbus · PPPoE