Diagnose a Slow File Share With Wireshark

“The share is slow” can mean the network is losing packets, the server is slow to answer, or the client is waiting for something it has already received. A capture separates these cases in about ten minutes.
Record one slow action
Start a capture on the client, then copy one file of known size from the share to the local disk. Stop the capture when the copy finishes. A single action keeps the capture small and easy to compare with the timing you measured.
Use a capture filter such as host 192.168.1.20 and port 445 to record only the SMB traffic with the server.
Check for retransmissions
Filter with:
tcp.analysis.retransmission
Many retransmissions point to loss on the path, such as a bad cable, a duplex mismatch or a congested link. Check the switch port and the cable before you change the server.
Check the time between packets
Look at the Time column while the copy is running. Long gaps where nothing moves usually mean one side is waiting. If the client sends a request and the server answers quickly, the delay is not in the network. If the server answers slowly, look at its disk and CPU load.
Check the window and the window updates
A TCP window that stays at zero means the receiving side cannot take more data. Filter with
tcp.analysis.zero_window. If the client reports a zero window, look at the client. If the server reports it, look at the
server’s disks.
Decide what to fix
- Retransmissions on the path: fix the cable, the port or the link speed.
- Quick network, slow answer from the server: look at the file server’s disk and antivirus scan settings.
- Zero window from the client: check the client’s disk and its background tasks.
Write down the measured numbers in the ticket, so the next person can compare after the fix.