What are TCP sequence numbers and acknowledgements used for?
IntermediateConceptNetwork Models, TCP, UDP & Ports
Answer
Every byte in a TCP stream has a sequence number. The sender labels each segment with the number of its first byte, and the receiver acknowledges the next byte it expects (cumulative ACK). Gaps trigger duplicate ACKs, and three duplicate ACKs trigger fast retransmit without waiting for the timer.
Initial sequence numbers are randomized to stop blind spoofing and to avoid confusion with segments from older connections.
More on Network Models, TCP, UDP & Ports
What are the layers of the OSI model, and why does a DevOps engineer care?BeginnerHow does the TCP/IP model map to the OSI model?BeginnerWhat is the difference between TCP and UDP?BeginnerDescribe the TCP three-way handshake.BeginnerHow does TCP close a connection, and what is TIME_WAIT?IntermediateWhat is a port, and what are well-known, registered and ephemeral ranges?Beginner