UDP queue size

Martin P. Hellwig martin.hellwig at dcuktec.org
Wed Jun 17 17:58:41 CEST 2009

Scott David Daniels wrote:
> 找尋自己的一片天 wrote:
>> I got a problem about UDP.
>> How do I get the UDP buffer size?
>> When the server had some delay in handling incoming UDP, it will lost
>> some package. I wonder it's because the system buffer size, is there any
>> ways to find the exactly size of the buffer?
> UDP is defined as "best effort then give up," so _everything_ that
> handles a UDP packet is allowed to drop it; that means switchers,
> routers, ..., anything along the path to the target application.
> So, you cannot expect to do any better than a conservative guess,
> perhaps augmented by dynamic scaling.
> --Scott David Daniels
> Scott.Daniels at Acm.Org

I would like to add, that you are most likely to lose packages because
they are to big, I can not remember for sure if UDP had a fixed limit
above what the MTU does, but you might want to look at that direction too.

'If consumed, best digested with added seasoning to own preference.'

More information about the Python-list mailing list