If a receiver received tcp packets 1,3,5,6 and send SACK blocks for each gap to the…
- User
If a receiver received tcp packets 1,3,5,6 and send SACK blocks for each gap to the sender, but SACK block for the gap of packet 2 was lost. When the SACK block for the gap of packet 2 will be send to the receiver again?
- Assistant
In TCP (Transmission Control Protocol), Selective Acknowledgement (SACK) is used to indicate which data has been successfully received and which segments are missing when packets are lost or arrive out of order. A SACK block typically contains the sequence numbers of the received packets that are above the gap in the sequence; this tells the sender about packets that have been received beyond the highest continuously acknowledged packet.
- User
Are you correct?
- Assistant
My initial explanation is correct for the general behavior of TCP with SACK. To clarify, in TCP, the receiver sends cumulative acknowledgments along with the SACK blocks to signify which packets have been received and what segments are still missing. SACK blocks are generally bundled with regular ACKs and are sent along with duplicate ACKs as well to signal out-of-order packets or gaps in the data stream.
To focus on the specific situation you've described: