Thursday, November 8th 2007


Windows much slow to handshake on tcp port 3306 compared to ubuntu’s
posted @ 14:00 in [ Programming - geek ]

Really! Thats what I just noticed. The test machine #1 is my XP has no firewall, is a 1Gpbs intel ethernet card on a 100mbps network. The test machine #2 is a ubuntu 7.04 workstation again on the same network as me with its own static IPv4 address. The great server is also ubuntu 7.04 with mysql 5.x. Now the case noticed was that telnetting from my xp (#1) to server at port 3306 took least 6 seconds for the handshake response from the mysql server. Telnetting from the ubuntu (#2) to the server at the same port actually responded the moment I pressed the return key. Ethereal’ed the whole transaction to find what strange in #1 TCP packet and the #2 TCP packet. Did not notice anything great. Googling on this also did not result any problem of this sort. But the results are true. Ubuntu connection to 3306 is taking under 5ms compared to XP which is taking least 6000ms. There are no slow down process running except maybe TeaTimer.So makes me wonder. Im sure no guru in TCP so i can’t dig more on this.

The reason why we had to conduct this test in my office is cause of a typical development floor setup. There is just one Mysql on the network and clients use their localhost apache’s to connect to this remote server. Server ping takes around 0.3ms with no loss. The guy on XP was killing himself due to the delay it took for his localhost to render php database pages. The other guy on ubuntu was on mercedes. His apache ran like he owned everything on his machine itself. So there it is. Since google did not report any similar case with anybody else, I await if someone can share this case. Cya!


Leave a Reply

You must be logged in to post a comment.