[MUD-Dev] Transport layer (UDP vs TCP)

Chris Gray cg at ami-cg.GraySage.Edmonton.AB.CA
Wed Mar 18 18:46:01 CET 1998


[Ben Greear:]

:For instance, I send a 512 byte UDP packet.  Can the receiver ever just
:receive the first 256 bytes or so?  Surely not, as this would make it
:basically impossible to code anything without writing another layer on
:top of it...

My recollection (its been a few years since I did our UDP stuff at work),
the packets are not broken up by UDP. If they are too long, they can be
completely dropped, silently, but I don't believe you can get a portion
of them. They can also be delivered out of order, and duplicated. For
strictly ethernet, we've found that you can safely use packets of about
9K. If you want larger, UNIXes seem to have sysadmin configuration tools
that increase their maximum packet sizes. Our stuff runs better with
bigger packets, so we try to do that for timing runs.

--
Chris Gray   cg at ami-cg.GraySage.Edmonton.AB.CA




More information about the mud-dev-archive mailing list