开发者

Echo client with over 65% packet losses

I'm just wondering why my UDP server/client pair is getting 65% packet loss. It's j开发者_JAVA技巧ust an echo service that sends (the client) an empty packet when it reaches EOF, and the server resets itself when he gets that empty packet.

Not really homework, just frustrated because I can't get it right :(

Thanks!


Have you looked at udp buffer overflows? Here is information on packet loss myths how to detect UDP packet loss rates on several platforms. And last but by no means least how to mess with (err... I mean change) the kernel udp buffer sizes for a few unix platforms (caution is advisable).


There's no promise that UDP packets will ever be delivered. On congested networks, UDP packets may just be dropped in transit.

There are also routers that are configured to just drop empty UDP packets. See this random example of someone wanting this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜