G
Gordon Beaton
1 x 1000byte UDP packet every second, the measured rate at the
server is very close.
If i keep the same rate but this time use 20 x 50byte UDP packets
every second the measured rate is much lower abut again i know there
are no dropped packets.
How much lower? There is less overhead per byte with larger packets,
so I would expect a somewhat lower throughput with the smaller
packets.
How long did you run the test with many small packets? The receiver
won't drop any packets until the socket receive buffer fills so that
an incoming packet won't fit. Perhaps the buffer is filling slowly, at
a rate that matches the discrepancy you've measured in your
application. If you run it long enough with a slow server, I think you
will eventually see dropped packets unless you provide some flow
control.
/gordon