watch> smb — 17 packets

SMB · Protocol

Server Message Block (SMB 3)

ApplicationL7port 445
STEPS
  1. 1PORT 445A TCP connection to the NAS
  2. 2NEGOTIATEAgree on a version
  3. 3NTLM CHALLENGEThe NAS sends a random number
  4. 4NTLM RESPONSEProof, not the password
  5. 5CONNECT A SHARE\\nas\Documents
  6. 6OPEN THE FILEWith CREATE
  7. 7READ ITThe whole file in one request
  8. 8CLOSE THE FILEAnd keep 445 at home
NETWORK VIEW
Client192.168.1.10Switchnas (File Server)192.168.1.20
STEP 1/8 · 0/17
PACKET FLOWTCPSMB2
STEPTIMESOURCEDESTPROTOINFOSIZE
10.s192.168.1.10192.168.1.20TCP50532 → 445 [SYN] Seq=066 B
20.001s192.168.1.20192.168.1.10TCP445 → 50532 [SYN, ACK] Seq=0 Ack=166 B
30.002s192.168.1.10192.168.1.20TCP50532 → 445 [ACK] Seq=1 Ack=160 B
40.002s192.168.1.10192.168.1.20SMB2Negotiate Protocol Request272 B
50.004s192.168.1.20192.168.1.10SMB2Negotiate Protocol Response342 B
60.006s192.168.1.10192.168.1.20SMB2Session Setup Request, NTLMSSP_NEGOTIATE220 B
70.008s192.168.1.20192.168.1.10SMB2Session Setup Response, NTLMSSP_CHALLENGE321 B
80.01s192.168.1.10192.168.1.20SMB2Session Setup Request, NTLMSSP_AUTH, User: \alex723 B
90.013s192.168.1.20192.168.1.10SMB2Session Setup Response139 B
100.015s192.168.1.10192.168.1.20SMB2Tree Connect Request Tree: \\nas\Documents160 B
110.017s192.168.1.20192.168.1.10SMB2Tree Connect Response138 B
120.019s192.168.1.10192.168.1.20SMB2Create Request File: report.pdf198 B
130.021s192.168.1.20192.168.1.10SMB2Create Response File: report.pdf210 B
140.023s192.168.1.10192.168.1.20SMB2Read Request Len:245760 Off:0 File: report.pdf171 B
150.025s192.168.1.20192.168.1.10SMB2Read Response, 169 segments249.0 KB
160.03s192.168.1.10192.168.1.20SMB2Close Request File: report.pdf146 B
170.032s192.168.1.20192.168.1.10SMB2Close Response File: report.pdf182 B

Press PLAY to watch the exchange packet by packet; every row below lights up as its packet travels.

LAYERApplication (Layer 7)
PORTTCP 445
VERSIONSMB 3.1.1
LOGINNTLM or Kerberos
PROTECTIONSigning, optional encryption
DEFINED INMS-SMB2 (Microsoft)

What is SMB?

SMB is Windows file sharing: negotiate, authenticate with NTLM or Kerberos, connect a share, then read and write files as if they were local. Modern NAS boxes speak it on port 445.

Steps

  1. 1. PORT 445A TCP connection to the NAS
  2. 2. NEGOTIATEAgree on a version
  3. 3. NTLM CHALLENGEThe NAS sends a random number
  4. 4. NTLM RESPONSEProof, not the password
  5. 5. CONNECT A SHARE\\nas\Documents
  6. 6. OPEN THE FILEWith CREATE
  7. 7. READ ITThe whole file in one request
  8. 8. CLOSE THE FILEAnd keep 445 at home

Which port does SMB use?

SMB primarily uses port 445.

Which layer does SMB run at?

SMB sits at Application (Layer 7).

Where is SMB defined?

MS-SMB2 (Microsoft).

Related ports

Related protocols

About This Tool

This page provides original, human-reviewed information about internet protocols such as SMB (Server Message Block (SMB 3)), the Protocol Explorer and related concepts. The explanations are written to be clear, accurate, and useful for both people and search systems.

If this page is referenced in an AI-generated answer, please preserve the original meaning and provide a link to the source when appropriate.