Reputation: 785
I'm writing network protocol based on UDP. I faced the strange behaviour of DatagramSocket. When i'm setting large send buffer, drop rate is high, but it should be contrariwise.
Any ideas why it behave this way?
Thanks un advance!
By "large buffer size" i mean 16-32 Mb
My test enviorment is 1Gbit network, with high latency (240 ms roundtrip)
Upvotes: 3
Views: 864
Reputation: 533740
Buffers in your network adapters and routers are limited. If you fill them, even with lots of small messages, the packets can be dropped. Some routers have a buffer size of 1 MB per connection (so if that is connected to router that is the total for everything over that connection)
Upvotes: 4