Switch – Very slow TCP speed and throughtput in contast to UDP

ethernetpacket-analysisswitchtcpudp

I have been monitoring a 1 Gbps OM2 fiber connection to one switch we have with Smokeping…
There seems to be an avg loss of 3-4% for a few days now..

Started troubleshooting using iperf, having set window size to 65K…Just to cross-check i used pathtest using the same window size…Both report speeds below 10 Mbps (!) which surely are unacceptable, considering a logical transfer rate would be at around 1/4 of the Gpbs connection when PCI NIC's are used and in terms of in-memory transfers…

UDP tests, on the other hand, from both iperf and smokeping report speeds between 300-400 Mbps and as far as reading and writing using LanSpeed i get a respective 55-65 Mbps and 20 Mbps…

Having read that iperf's implementation on Windows is not a reliable one i now think that testing using that tool was wrong in the first place with Windows…

Machines used for testing were Windows XP (client) > Windows XP (server)…all NICs have auto in terms of negotiation and reporting pre-negotiated speed of lan link at 1 Gbps…no mdix errors or up/downs shown on syslog…
MTU at 1500…
Quick Rawcap trace and trace analysis with Wireshark shows TCP Zero Window errors which clearly explain the significant drop on TCP throughput…

Switch is an SG200-50, poor on out-of-band management facilities and cli, so, for now, not much to see except under web interface…already disabled zero-DNS servics like Bonjour…..

Any suggestions greatly appreciated…

Best Answer

As Ron said, 3-4% packet loss is incredibly high. ThousandEyes ran some experiments on the effects of packet loss and found anything over ~0.5% is hugely detrimental. see: https://blog.thousandeyes.com/a-very-simple-model-for-tcp-throughput/

Hopefully replacing the fiber patch (make sure to clean it first!) will help. Otherwise start looking into other sources for the loss.

Related Topic