Transport: internet transport protocols
Internet transport protocols
UDP (User Datagram Protocol)
![screenshot.png](https://lectures.alex.balgavy.eu/compnet-notes/transport-internet-transport-protocols/8089dda42e4082b63932c5189770993a.png)
TCP (Transmission Control Protocol)
![screenshot.png](https://lectures.alex.balgavy.eu/compnet-notes/transport-internet-transport-protocols/a151cbc9fbc2f68b138f6c45c4008a83.png)
- every data byte has its own sequence number
- window size — how much data receiver can handle, with small values leading to huge overhead
- congestion control
- congestion window is on sender, specifying how many segments can be transmitted.
- increase congestion window whenever ACKs arrive, until they don’t.
- then set slow start threshold to half of congestion window and start again.
- when threshold is crossed, switch to additive increase
- fast retransmission — three duplicate acks imply lost packet, whose identity can be infered from ack number (it’s the next packet in sequence). this packet is retransmitted right away
- in TCP Reno:
![screenshot.png](https://lectures.alex.balgavy.eu/compnet-notes/transport-internet-transport-protocols/c062aabb9720d559668e09f9a9c6fb4c.png)