c******n 发帖数: 4965 | 1 let's say I have bytes
1 2 3 4 5 going out in a TCP connection, they are in one tcp segment saying
"from 1 to 5", this segment is broken up into 5 IP packets,
all 5 IP packets arrive on receiver fine except 3, which keeps dropping, so
the receiving end won't be able to assemble the TCP segment, so receiving
client can not see any of the bytes 1--5, right? and TCP protocol on the
receiving end has to keep requesting retransmission of the entire segment in
its ACK ?
what happens on the sender client? the client never returns until the buffer
in write() has been completely sent out through TCP and ACK has been
received for the last TCP segment? or does it just drop to OS buffer and
return?
thanks | M**u 发帖数: 10158 | 2 可能是网卡在丢包,发太快了
saying
so
in
buffer
【在 c******n 的大作中提到】 : let's say I have bytes : 1 2 3 4 5 going out in a TCP connection, they are in one tcp segment saying : "from 1 to 5", this segment is broken up into 5 IP packets, : all 5 IP packets arrive on receiver fine except 3, which keeps dropping, so : the receiving end won't be able to assemble the TCP segment, so receiving : client can not see any of the bytes 1--5, right? and TCP protocol on the : receiving end has to keep requesting retransmission of the entire segment in : its ACK ? : what happens on the sender client? the client never returns until the buffer : in write() has been completely sent out through TCP and ACK has been
| c****p 发帖数: 6474 | 3 收方应该能拿到1和2,并弹出buffer。TCP不是用的selective repeat request么。。
saying
so
in
buffer
【在 c******n 的大作中提到】 : let's say I have bytes : 1 2 3 4 5 going out in a TCP connection, they are in one tcp segment saying : "from 1 to 5", this segment is broken up into 5 IP packets, : all 5 IP packets arrive on receiver fine except 3, which keeps dropping, so : the receiving end won't be able to assemble the TCP segment, so receiving : client can not see any of the bytes 1--5, right? and TCP protocol on the : receiving end has to keep requesting retransmission of the entire segment in : its ACK ? : what happens on the sender client? the client never returns until the buffer : in write() has been completely sent out through TCP and ACK has been
|
|