On Tue, 2009-03-31 at 23:28 +0800, yueyue papa wrote: > How could I increase the TCP retransmit as quick as possible. The > normal interact between server will be 1.4s ~ 2.5s. Some time the > receive will be long than 20s, event to 50s. The interact is success, > but it is extremely slow.
Do you have a packet capture of this? 100 bytes taking 50s is rather unusual: I would expect multiple cycles of loss and retransmission if this is the case, and TCP backs off its sending rate (for good reason) in these circumstances. Your suggestions are unlikely to help, and may make things worse or at least have unintended side effects. TCP is quite cautious when it sees loss as it interprets this as meaning the network is congested. There have been some research projects over the years to modify TCP to make it better at coping with environments like yours where loss is not due to congestion, but lwIP doesn't have this sort of thing included. Probably the best solution if you require something that TCP isn't good at is to use UDP, and layer your own protocol on top to deal with loss. Kieran _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
