>> I might be wrong, but aren't most packets compressed (or at
>> least their data payload) by the ppp networking stack itself?
>> PPP is still what most *clients* use, but then again it only
>> affects the client itself and the dialin / dsl switch... forget
>> it. ;-)
>on a similar note, modems compress their data before mo-ing it, and
>then uncompress it after the dem-ing bit, using lzw under the vbis
>standard. all in hardware too! so, compressing packets in this
>situation could be a bit redundant.
That's a good argument, although I don't think LAN packets are
compressed.
As I understand it, PPP is modem-only. In fact, PPP UDP packet headers
are compressed, while LAN UDP packets are not. With PPP, you get 5
bytes of header, and your data ofcourse. On LAN, this compression was
never deemed necessary and this results in 28 bytes headers (20 bytes
IP, 8 bytes UDP).
So for the hard tweaks, there should be a difference in biasing your
packet size when you know you're sending across a modem, or over LAN
(on LAN you must use bigger packets since the header overhead is
bigger too).
I would say that networking code is so volatile that you can never
call it 'done', just like AI code (and graphics, less so).
Ruud van Gaal
Free car sim : http://www.marketgraph.nl/gallery/racer/
Pencil art : http://www.marketgraph.nl/gallery/