Questions
3–4 questions per exam paper
Difficulty
Medium
Importance
High yield for University end-semester and GATE exams
Overview
The Transport and Application layers are the backbone of end-to-end communication and user-facing network services in the OSI model. Mastering this topic is essential as it forms the technical foundation for understanding how data packets are managed, delivered, and interpreted across modern internet protocols.
TCP vs UDP
Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) are the primary transport layer protocols that dictate how data travels between hosts. TCP provides reliable, ordered delivery through connection-oriented handshakes, while UDP offers faster, connectionless transmission for time-sensitive traffic.
- TCP uses a three-way handshake: SYN, SYN-ACK, ACK
- UDP lacks flow control, error recovery, and retransmission mechanisms
- TCP header size is typically 20-60 bytes; UDP is fixed at 8 bytes
- TCP is ideal for web browsing and file transfer; UDP for live streaming and VoIP
- TCP provides error correction and packet sequencing
Application Layer Protocols
Application layer protocols interface directly with software to enable network services like browsing, email, and file sharing. Each protocol utilizes specific well-known ports to identify the service requested on the destination server.
- HTTP (Port 80/443) manages hypermedia document transmission
- FTP (Port 20/21) facilitates client-server file transfer
- DNS (Port 53) maps domain names to IP addresses via recursive/iterative queries
- SMTP (Port 25) handles push-based email delivery
- DNS uses UDP for small queries and TCP for zone transfers
Congestion Control
Congestion control prevents network collapse by managing the rate at which data is injected into the network during heavy traffic. It uses algorithms to adjust the TCP window size dynamically to avoid buffer overflow in routers.
- Slow Start: Window size increases exponentially initially
- Congestion Avoidance: Additive Increase, Multiplicative Decrease (AIMD)
- Fast Retransmit: Triggers retransmission before a timeout upon receiving triple duplicate ACKs
- Fast Recovery: Maintains high throughput by skipping the slow-start phase after packet loss
- Congestion window (cwnd) vs Receive window (rwnd)
Formula Sheet
Retransmission Timeout (RTO) = SRTT + 4 * RTTVAR
Window Size = min(cwnd, rwnd)
Exam Tip
Always draw a comparison table for TCP/UDP and include well-known port numbers to significantly boost your marks in university theory exams.
Common Mistakes
- Confusing the roles of flow control (receiver buffer) and congestion control (network buffer)
- Assuming DNS always operates over TCP, ignoring its reliance on UDP for performance
- Failing to mention the three-way handshake process when asked about TCP reliability
More Revision Notes
Ready to test yourself?
Play topic-wise Transport & Application Layer questions in Aspirant Arcade — gamified MCQ practice.
Download Free