How to Quicken TCP Re-transmission?

Brian Candler B.Candler at pobox.com
Mon May 22 13:06:54 UTC 2006


On Mon, May 22, 2006 at 07:51:33PM +0800, mag at intron.ac wrote:
>     I want to transmit data between host A and host B. The link between
> these two hosts is really bad: PING reports 30% packet loss

How big are the pings? Try

    ping -c100 -s1472 x.x.x.x

to send 1500-byte pings (20 bytes IP header + 8 bytes ICMP header + 1472
bytes padding). This will give you a more realistic indication of packet
loss for TCP transfers than the small pings you get by default.

TCP performs really, really badly on packet loss over 5%. I don't think that
any amount of tweaking will cope with 30% packet loss.

Perhaps a mechanism which sends each packet 3 times would work, but then
tripling the load on your link will increase your packet loss even more,
perhaps leading to total collapse.

Regards,

Brian.


More information about the freebsd-net mailing list