Netcode bringup

From OdaWiki
Revision as of 02:54, 21 July 2010 by Russell (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

As of 21 July 2010, this branch is dedicated to fixing some of the more serious problems in Odamex's networking system.

Here is a list of such issues:

  • Datagram sizes are too large (8192), the MTU of an ethernet system is roughly 1500, so depending on the hardware/vendor/system, 8192 bytes will get spliced up into 1500-sized fragments and.. Knowing how unreliable UDP is.. We are lucky to receive anything at all over the internet.
  • Out of order packets are not handled properly, they are effectively dropped, this makes our "reliable" buffer system useless
  • WAD file downloads are slooooow.


Suggested fixes which map to above issues

  • 2 "fixes": Firstly we could use the packetization layer path MTU discovery (RFC4821) technique to dynamically resize our send buffer, this could make initial connections to the server slow.. Secondly, use a fixed size (like 1400) for the MTU, 1400 is good for ethernet but useless for dialup I think.
  • No idea.. needs more research and thinking
  • Ditto.