Computer Networks
Transport layer: TCP, UDP and flow control
Reliable delivery, handshakes, windows and delay arithmetic.
In two minutes
One idea to a line
TCP is connection-oriented and reliable (acknowledgements, retransmission, ordering). UDP is connectionless with no delivery promise and far less overhead.
The TCP three-way handshake is SYN, SYN-ACK, ACK. Closing takes FIN and ACK in each direction.
Delay = transmission (size ÷ rate) + propagation (distance ÷ speed) + queueing + processing. Transmission and propagation are different things.
Stop-and-wait utilisation = Ttx ÷ (Ttx + 2 × Tp). A window of 1 + 2a frames keeps the link busy, where a = Tp ÷ Ttx.
Go-Back-N needs window + 1 sequence numbers; Selective Repeat needs 2 × window. Congestion control (slow start, then additive increase) keeps the sender from flooding the network.
Slips people make here
Interviewers know them too
Using the size in bytes where bits are needed.
Counting the propagation delay once in a round trip.
Saying TCP guarantees speed: it guarantees order and delivery.
Your practice here
Not started
10 written questions, and 4 kinds of calculation that change every time
No answers yet