📝 Transport Layer Protocols overview (8 MCQs)
Transport Protocols Between Applications and IP
Internet transport protocols operate above IP in the TCP/IP architecture and correspond to OSI Layer 4. They provide process-to-process communication through port numbers and define how application data is delivered. TCP supplies a reliable ordered byte stream, UDP supplies connectionless datagrams, and SCTP supplies message-oriented associations with multiple streams. Each protocol adds transport behaviour without replacing IP host-to-host routing. It defines the boundary between application processes and packet delivery.
Why Multiple Transport Protocol Designs Are Needed
Applications differ in their tolerance for loss, delay, reordering, and setup overhead. A file transfer needs complete ordered data, whereas a voice stream may prefer fresh packets over delayed retransmissions. IP does not provide these application-level choices. Separate transport protocols let applications select appropriate semantics while sharing the same network layer and physical infrastructure.
Endpoint Identification and Transport Processing
A sending application passes data to a transport endpoint, which adds source and destination ports and protocol-specific control information. The transport unit is passed to IP for delivery to the remote host. At reception, the destination address and protocol identify the host service, while transport port and connection or association state select the receiving application endpoint.
One Client Request Using Different Transport Services
A browser connecting to a web server can use TCP port 443 for a reliable byte stream, while a DNS resolver commonly sends a query using UDP port 53. The IP layer routes both toward the server host. TCP establishes and maintains connection state; UDP sends an independent datagram, illustrating how applications choose distinct delivery semantics.
Protocol Selection, Overhead and Deployment
TCP is suitable when ordered completeness matters; UDP suits compact queries and time-sensitive traffic; SCTP supports message boundaries, multistreaming, and multihoming. These benefits have costs in state, headers, buffering, and implementation complexity. A protocol does not guarantee application performance by itself: path congestion, packet size, retransmissions, and endpoint behaviour also shape results.
Clarifying Protocol Roles and Delivery Guarantees
'IP delivers data directly to a process' is incorrect: IP addresses hosts, while transport ports identify endpoints. 'UDP is another name for TCP' is false: their service models differ. 'SCTP is simply TCP with two addresses' is incomplete: SCTP also provides message-oriented delivery, streams, and association-level state. These distinctions separate similar mechanisms that are often confused.
Exam Focus: Comparing TCP, UDP and SCTP
Be able to map each protocol to its service model, identify whether it preserves message boundaries, and explain its reliability and connection behaviour. Compare TCP byte sequencing with SCTP message sequencing and UDP datagrams. Trace how IP addresses and transport ports identify endpoints, and justify protocol choices for given application requirements.
Key Terms for Transport Layer Protocols Overview
- TCP - Reliable ordered byte-stream transport.
- UDP - Connectionless message-oriented transport.
- SCTP - Association-based message transport.
- Port - Identifies a transport endpoint.
- Multiplexing - Combines data from application processes.
- Association - SCTP relationship between two peers.
📝 All Transport Layer Protocols overview MCQs
Q1. What is the range of well‑known ports defined by ICANN?
📖 Explanation: Well‑known ports are the first block of TCP/UDP port numbers reserved for essential services. ICANN allocates ports from through exclusively to these services, ensuring that clients can reliably locate servers without needing to discover the port dynamically. This range is fixed and universally recognized.
Q2. If a daytime client uses an ephemeral source port of 52,000 to contact the daytime server at well‑known port 13, what is the most likely consequence if the client mistakenly uses source port 13 instead?
📖 Explanation: When the client reuses the server’s well‑known port as its own source port, the packet appears to originate from the same endpoint the server is listening on. This confuses the TCP three‑way handshake, causing the server to treat the segment as a duplicate or self‑generated packet, and the connection typically fails to establish.
Q3. Which statement correctly contrasts well‑known ports with registered ports?
📖 Explanation: Well‑known ports occupy the lowest range (–) and are centrally managed to ensure universal service identifiers. Registered ports cover the middle range (–) and are assigned to specific applications after a registration process, allowing organizations to claim a consistent port without the strict global control applied to well‑known ports.
Q4. How does the transport layer differentiate two simultaneous connections that share the same destination IP address but have different port numbers?
📖 Explanation: The transport layer identifies each flow by a five‑tuple: source IP, source port, destination IP, destination port, and protocol. When two connections arrive at the same host IP but use distinct destination ports, the tuple differs in the port component, allowing the OS to maintain separate socket buffers and state machines for each connection despite sharing the same IP address.
Q5. Why does TCP/IP avoid using random port numbers for server processes?
📖 Explanation: Server processes need a predictable address so clients can connect without a preliminary discovery step. If servers used random ports, each client would first have to locate the correct port, which would introduce extra protocol messages and latency. Fixed well‑known ports eliminate this overhead and simplify service discovery across the Internet.
Q6. Evaluate the advantages and disadvantages of assigning a server a dynamic (private) port instead of a well‑known port.
📖 Explanation: Using a dynamic port can simplify firewall rules because the port is not predefined, but it forces every client to obtain the port number through an out‑of‑band method, such as a directory service. This extra step adds latency and complexity, while the lack of a standard port can also cause compatibility problems with existing network equipment.
Q7. A new network service wants to become a standard. Which sequence of actions is required to obtain a well‑known port number from ICANN?
📖 Explanation: The process begins with a fully defined protocol specification. The service provider then files a request with IANA, the Internet Assigned Numbers Authority, which evaluates the need and potential conflicts. If approved, ICANN, through IANA, assigns an unused well‑known port, making the service globally recognizable and allowing clients to connect using that standard port.
Q8. In a NAT environment, multiple clients behind the same public IP address connect to a single server. How do port numbers facilitate correct delivery of responses to each client?
📖 Explanation: The NAT device creates a unique external source port for each internal client connection. This external port, together with the public IP, forms a distinct 4‑tuple that the server uses to reply. When the response returns, the NAT translates the external port back to the appropriate internal client’s IP and original port, ensuring each client receives its intended data.