Network Fundamentals: Protocols, Addressing, Security
TCP Reliable Transfer and Connection Management
TCP Reliable Transfer
Sequence Numbers
- Each byte of data is assigned a sequence number. This number is used by the receiver to correctly order the data and ensure there are no missing segments.
Acknowledgements
- The receiver sends back an ACK to the sender for the sequence number of the next expected byte. If the sender receives the ACK before its timer expires, it knows everything up to that byte was received correctly.
Retransmission
- If the ACK is not received before the timer expires, the sender retransmits the data.
TCP Connection Management
Managing a TCP connection begins with a three-way handshake, which establishes a connection before any actual data is transmitted.
Steps in Three-Way Handshake
SYN
- The
English with a size of 17.78 KB