Untitled

The TCP Service Model

Property Behavior
Stream of bytes Reliable byte delivery service
Reliable delivery 1. Acknowledgements indicate correct delivery
  1. Checksums detect corrupted data
  2. Sequence numbers detect missing data
  3. Flow-control prevents overrunning receiver | | In-sequence | Data delivered to application in sequence transmitted | | Congestion Control | Controls network congestion |

Untitled

Connection


When two applications use TCP, they establish a two-way communication channel between the TCP peers at both ends.

We call the two way communication a “connection”. At both ends of the connection, TCP keeps a state machine to keep track of how the connection is doing.

3-way Handshake


Untitled

The TCP connection is established using a 3-way handshake.

<aside> 📖 More details

Stream of Byte


Untitled