Monday, April 16, 2012

Avoiding Multiplayer Lag (technical details)

When playing MP games online I sometimes get a low ping connection and other times get a high lag connection to local uses as the game routes data through a Steam server. The high lag players are always the same, it is in no way random.



I've read that this happens when a direct connection is not possible, so I ran Wireshark while joining a high lag player's game. A direct ping records a trip time ~40ms.



The Wireshark log showed a large number of binding request packets from my friend's IP, but my computer always replied with an ICMP Destination unreachable (Port unreachable) packet ~0.3ms later. This request/response happens about 20 times.



So, why would my computer be refusing to accept the binding request? The destination port tended to be ~60000 (eg 60245).



The only correlation I've been able to find between the high and low lag players is the version of Windows they're running.



I'm running XP SP2, as is the one friend I've asked who I get a 60ms ping to while 3 high ping players are all running Vista or Windows 7.



Is there something quirky with the way XP handles UDP? Do is refuse UDP connections above a certain port or something?



Any thoughts on this matter are appreciated :).|||Bio

No comments:

Post a Comment