📝 Transport Layer Services Overview (46 MCQs)
Core Services Between Application Processes and IP
The transport layer offers process-to-process communication across networked hosts and provides an interface through which applications send and receive data. Its common services include port addressing, multiplexing, demultiplexing, and segmentation or reassembly where required. Particular protocols may add connection establishment, ordered delivery, error recovery, flow control, and congestion control; these advanced functions are not guaranteed by every transport protocol.
Why Applications Require Different Delivery Characteristics
Applications differ in their tolerance for loss, delay, duplication, and reordering. A file transfer needs complete data in the correct order, whereas a live voice stream may prefer a recent sample over retransmission of an obsolete one. IP alone does not provide these application-facing choices, so transport protocols expose different service models and allow software designers to select an appropriate trade-off.
How Multiplexing and Demultiplexing Organize Traffic
At the sender, transport accepts data from several application sockets, associates each item with endpoint information, and adds the relevant header. IP carries the encapsulated unit toward the destination host. At reception, the transport protocol uses header fields and socket state to select the correct application endpoint, then applies the protocol's delivery rules before passing data upward.
Following Two Applications Using One Network Interface
Assume a computer runs a browser and a DNS resolver simultaneously. The browser sends TCP data from port 53000 to server port 443, while the resolver sends a UDP query from port 53001 to port 53. Both use the same host network interface, but transport headers allow incoming traffic to be directed to the appropriate socket.
Reliability, Flow Regulation and Network Resource Effects
Multiplexing lets many applications share a host connection, while demultiplexing keeps their data separated. TCP reliability requires acknowledgments, buffers, and retransmissions, which consume resources and can add delay. UDP has less transport state but leaves loss handling to the application. Flow control limits pressure on a receiver; congestion control adapts traffic to conditions within the network path.
Distinguishing Transport Services That Are Often Confused
'All transport services guarantee reliable delivery' is wrong: UDP does not retransmit lost datagrams. 'A port number identifies a computer' is wrong: an IP address identifies a host, while a port identifies a transport endpoint. 'Flow control and congestion control mean the same thing' is wrong: flow control protects receiver capacity, whereas congestion control responds to network capacity and competing traffic.
Exam Focus: Mapping Each Service to Its Protocol
Classify transport functions as addressing, multiplexing, sequencing, retransmission, flow control, or congestion control. Trace how IP addresses and transport ports identify a destination socket, then compare TCP byte-stream delivery with UDP message delivery. In written answers, state whether a feature belongs to a particular protocol or is a general service category rather than assuming every transport protocol implements it.
Key Terms for Transport Service Functions
- Process-to-process - communication between application endpoints.
- Multiplexing - combines outgoing application traffic.
- Demultiplexing - selects the receiving socket.
- Flow control - limits sending to receiver capacity.
- Congestion control - adapts traffic to network load.
- Reassembly - reconstructs data from received pieces.
📝 All Transport Layer Services Overview MCQs
Q1. Which layer directly receives services from the transport layer in the TCP/IP model?
📖 Explanation: The transport layer hands data to the layer directly above it, which is the application layer. This layer hosts end‑user programs and uses the transport services to exchange messages. Hence, the application layer is the immediate recipient of transport‑layer services, making option A correct.
Q2. What protocol provides reliable, connection‑oriented service at the transport layer?
📖 Explanation: TCP establishes a virtual circuit, ensures ordered delivery, retransmits lost segments, and provides flow control, fulfilling the definition of a reliable, connection‑oriented transport service. UDP is unreliable, ICMP is for diagnostics, and SMTP operates at the application layer, so TCP (option C) is correct.
Q3. Identify the primary purpose of port numbers in transport‑layer communication.
📖 Explanation: Port numbers act as endpoints for processes, allowing a single host to run many applications concurrently. By assigning a unique port to each process, the transport layer can direct incoming segments to the correct application. Therefore, option C correctly describes their purpose.
Q4. Which statement best characterizes the end‑to‑end principle as it applies to the transport layer?
📖 Explanation: The end‑to‑end principle holds that functions like reliability, ordering, and flow control are implemented at the transport layer endpoints, not by intermediate devices. This ensures that the communication behaves correctly regardless of the underlying network, making option C the accurate description.
Q5. If a TCP segment is lost, which logical reasoning explains the effect on the sender’s congestion window?
📖 Explanation: When a segment loss is detected, TCP assumes network congestion and halves its congestion window (or reduces it according to the algorithm). This reduction limits the number of outstanding segments, preventing further overload. Hence, the sender’s window shrinks, matching option C.
Q6. A network engineer observes that two hosts exchange data using UDP, yet the application experiences occasional packet loss. Which inference best explains this behavior?
📖 Explanation: UDP is a connection‑less, unreliable protocol; it does not retransmit lost packets. Therefore, under congestion or noisy conditions, some packets may be dropped, which aligns with option C. Hardware failure or network‑layer retransmission are not inherent to UDP’s design.
Q7. Consider a scenario where a client opens 5 simultaneous TCP connections to a server. Which analytical comparison best describes the impact on the server’s resource utilization versus a single connection?
📖 Explanation: Each TCP connection maintains its own control block, sequence numbers, and buffers, requiring additional memory and processing. Managing five concurrent state machines raises CPU usage compared with a single connection, making option B the accurate analytical comparison.
Q8. When implementing a transport‑layer protocol that must support both reliable and unreliable delivery modes, which design choice best satisfies this requirement?
📖 Explanation: Embedding a reliability flag allows the same protocol to switch between reliable (e.g., acknowledgment, retransmission) and unreliable (no acknowledgment) behaviors on a per‑segment basis. This approach avoids duplicating protocols and keeps implementation unified, making option B the most suitable design.
Q9. A developer claims that the transport layer can reorder packets without any assistance from the application. Which logical deduction is correct?
📖 Explanation: Only transport protocols that incorporate sequence numbers (like TCP) can detect out‑of‑order delivery and reorder segments before delivering them to the application. Protocols without such mechanisms (e.g., UDP) cannot guarantee ordering, so the correct deduction is that reordering requires explicit sequencing, option B.
Q10. In a network where the maximum segment size (MSS) is 1460 bytes, what is the effect on the throughput if the sender incorrectly assumes an MSS of 1500 bytes and sends larger segments?
📖 Explanation: When the sender exceeds the path’s MSS, IP fragmentation occurs, adding extra headers and processing delays. Fragmented packets are more likely to be dropped, and reassembly consumes resources, collectively decreasing effective throughput. Therefore, the incorrect MSS assumption harms performance, matching option B.
Q11. A protocol designer wants to ensure that a transport‑layer service can be used by both IPv4 and IPv6 without modification. Which conceptual principle should guide the design?
📖 Explanation: By employing an abstraction layer (e.g., sockets) that presents a uniform API, the service interacts with the underlying IP stack without caring whether IPv4 or IPv6 is used. This decouples the transport logic from the network‑layer specifics, fulfilling the cross‑version requirement, thus option B is correct.
Q12. Which of the following best explains why flow control is necessary in a TCP connection?
📖 Explanation: Flow control mechanisms, such as the sliding window, inform the sender of the receiver’s available buffer space. Without this feedback, the sender might transmit faster than the receiver can store, causing packet loss and retransmissions. Hence, preventing buffer overflow is the primary purpose, matching option A.
Q13. A network simulation shows that increasing the retransmission timeout (RTO) from 200 ms to 800 ms reduces overall latency for a TCP flow under moderate loss. Which analytical reasoning best accounts for this observation?
📖 Explanation: When loss is sporadic, a short RTO may trigger premature retransmissions, adding extra traffic and delay. A longer timeout allows the original segment to be delivered without redundant retransmissions, thereby lowering perceived latency. This reasoning aligns with option A.
Q14. Consider two applications: one uses TCP for file transfer, the other uses UDP for live video streaming. Which conceptual contrast correctly reflects their transport‑layer choices?
📖 Explanation: File transfer benefits from TCP’s reliability and ordered delivery, tolerating occasional delays. Live video prioritizes timely arrival over perfect reliability, making UDP’s best‑effort delivery appropriate. Hence, the contrast described in option C accurately captures the conceptual difference.
Q15. A server receives a SYN packet with a destination port of 0. Which logical deduction about the packet is most appropriate?
📖 Explanation: In TCP/IP, port numbers range from 1 to 65535 for normal services; port 0 is not used for standard connections and typically indicates an error or a probing attempt. Therefore, the packet is likely malformed or part of a scan, matching option B.
Q16. Which statement correctly compares the congestion‑avoidance phase of TCP with its slow‑start phase?
📖 Explanation: During slow start, the congestion window doubles each RTT (exponential growth) until it reaches the slow‑start threshold. Once past that point, TCP switches to congestion avoidance, where the window grows by one segment per RTT (linear increase). Hence, option C accurately contrasts the two phases.
Q17. A client application requires both low latency and guaranteed delivery for a critical command‑and‑control system. Which transport‑layer protocol best satisfies these constraints, and why?
📖 Explanation: SCTP (Stream Control Transmission Protocol) offers reliable, ordered delivery like TCP while supporting multihoming and reduced latency through multi‑streaming. For a command‑and‑control scenario where reliability and timeliness are both essential, SCTP provides a balanced solution, making option C the most appropriate.
Q18. When a TCP sender receives three duplicate ACKs, what logical conclusion can be drawn about the network condition?
📖 Explanation: Three duplicate ACKs indicate that a segment was received out of order, implying that the segment immediately after the acknowledged one was lost. TCP interprets this as a sign of loss and initiates fast retransmission of the missing segment, aligning with option B.
Q19. Which analytical comparison best describes the effect of enabling Nagle’s algorithm on TCP traffic consisting of many small packets?
📖 Explanation: Nagle’s algorithm buffers small segments until enough data accumulates or an ACK arrives, thereby combining multiple small writes into larger packets. This reduces header overhead and improves network efficiency, though it may introduce slight latency. Option A captures this effect accurately.
Q20. A network administrator observes that a TCP connection’s advertised window size remains at zero for an extended period. Which conceptual explanation best accounts for this behavior?
📖 Explanation: When the receiver’s receive buffer is filled, it advertises a zero window to signal the sender to pause transmission until space becomes available. This flow‑control mechanism explains the persistent zero‑window condition, making option A correct.
Q21. If a transport‑layer protocol uses a checksum that covers only the header, what logical inference can be made about its error‑detection capabilities?
📖 Explanation: A checksum limited to the header ignores any bit errors that occur in the payload data, leaving the payload unchecked. Consequently, payload corruption may go undetected, which is described by option B.
Q22. Compare the use of port numbers in TCP and UDP. Which statement accurately reflects a key similarity?
📖 Explanation: TCP and UDP share the same 16‑bit port number space, allowing applications to bind to a specific port number for communication regardless of the underlying transport protocol. This commonality is captured in option B.
Q23. Which logical reasoning explains why TCP’s three‑way handshake is necessary before data transmission?
📖 Explanation: The three‑way handshake (SYN, SYN‑ACK, ACK) negotiates initial sequence numbers, acknowledges receipt, and ensures both ends are ready to exchange data, providing a reliable foundation for the connection. Hence, option B correctly explains its necessity.
Q24. A UDP datagram is sent from a host with IP address 192.168.1.10 to a host with IP address 10.0.0.5. Which conceptual relationship best describes the role of the transport layer in this exchange?
📖 Explanation: The transport layer’s primary role for UDP is to multiplex/demultiplex data based on port numbers, delivering the payload to the correct application on the destination host. It does not add reliability, routing, or encryption, making option C accurate.
Q25. In a scenario where a TCP connection experiences high latency, which analytical approach could be used to determine whether the bottleneck lies in the transport layer or the network layer?
📖 Explanation: By measuring RTT and relating it to the sender’s advertised window, one can infer whether the delay is due to transport‑layer flow control (small window) or network‑layer issues (large RTT despite a sufficient window). This analytical method isolates the bottleneck, aligning with option A.
Q26. A server implements TCP Fast Open to reduce latency for repeat connections. Which conceptual benefit does this feature provide?
📖 Explanation: TCP Fast Open permits the client to include data in the SYN packet after the server has cached a cookie from a previous connection. This reduces the initial round‑trip time, though it does not guarantee losslessness or remove handshaking entirely. Option C misstates the benefit; the correct benefit is described in option B, so B is the right answer.
Q27. If a transport protocol implements selective acknowledgment (SACK), which logical deduction can be made about its handling of packet loss?
📖 Explanation: SACK enables the receiver to inform the sender about specific ranges of data that have been received successfully, even if there are gaps. This allows the sender to retransmit only the missing segments, improving efficiency. Hence, option B correctly captures the effect.
Q28. When comparing TCP’s congestion‑control algorithms (Reno vs. Cubic), which analytical statement best reflects their performance differences under high‑bandwidth, high‑delay networks?
📖 Explanation: Cubic’s window growth function is designed to scale with the cube of time, allowing it to utilize large bandwidth‑delay products more effectively than Reno’s linear increase after loss. Consequently, Cubic generally outperforms Reno on high‑speed, high‑delay paths, matching option B.
Q29. A client sends a TCP segment with the URG flag set. Which conceptual implication does this have for the receiver?
📖 Explanation: The URG flag indicates that the segment carries urgent data, and the receiver should prioritize delivering this data to the application ahead of normal data, as described in option B.
Q30. Which logical reasoning explains why a transport layer might employ delayed ACKs?
📖 Explanation: Delayed ACKs allow the receiver to wait briefly, potentially acknowledging two received segments with a single ACK. This reduces protocol overhead and improves efficiency, which is the rationale captured in option B.
Q31. A network engineer observes that enabling TCP keep‑alive packets reduces the frequency of connection timeouts in an idle application. Which analytical conclusion is valid?
📖 Explanation: Keep‑alive packets periodically probe the remote endpoint, ensuring that NAT entries stay active and that the peer is still reachable. This activity prevents premature timeout closures, aligning with option B.
Q32. When a transport protocol provides multiplexing, which conceptual relationship best describes its effect on host resources?
📖 Explanation: Multiplexing enables multiple logical communication streams to coexist over a single physical connection, but it does not reduce IP address usage or NIC requirements, nor does it remove the need for ports. The concept primarily concerns logical separation, making option C the most accurate description.
Q33. If a TCP sender’s congestion window is 64 KB and the receiver’s advertised window is 32 KB, which logical inference about the effective sending rate is correct?
📖 Explanation: The effective window is the minimum of the congestion window and the advertised window. Since the receiver advertises only 32 KB, the sender cannot exceed this limit, making option B correct.
Q34. A protocol analyst compares two transport protocols: one offers connection‑oriented service with flow control, the other offers connectionless service without flow control. Which analytical statement best captures the trade‑off?
📖 Explanation: Connection‑oriented protocols (e.g., TCP) implement mechanisms such as sequencing, acknowledgments, and flow control, which introduce overhead but ensure reliable delivery. Connectionless protocols (e.g., UDP) lack these features, offering lower overhead but no guarantee of delivery. Option C succinctly describes this trade‑off.
Q35. When a TCP segment arrives out of order, which conceptual process does the receiver perform before delivering data to the application?
📖 Explanation: The receiver stores out‑of‑order segments in a reassembly buffer, awaiting the missing earlier segment. Once the missing data arrives, the buffered data can be delivered in order to the application. This buffering behavior is described in option B.
Q36. A client uses UDP to send telemetry data to a server. The server experiences occasional packet loss during network congestion. Which conceptual strategy could improve reliability without switching protocols?
📖 Explanation: Implementing acknowledgments and retransmission logic at the application layer restores reliability while retaining UDP’s lightweight nature. This approach addresses loss without requiring a protocol change, aligning with option B.
Q37. If a transport layer implements a sliding‑window protocol with a window size of 4 segments, what logical effect does this have on the sender’s ability to transmit data?
📖 Explanation: A sliding‑window of size 4 permits the sender to have four outstanding segments in flight. Once an acknowledgment is received, the window slides forward, allowing another segment to be sent. Thus, the sender can transmit up to four segments before needing acknowledgments, matching option B.
Q38. A network path has a round‑trip time (RTT) of 120 ms and a packet loss probability of 2 %. Which analytical method could be used to estimate the optimal TCP congestion window size?
📖 Explanation: The Mathis equation approximates the maximum throughput of TCP as times the bandwidth‑delay product, linking loss probability and RTT. This analytical approach provides an estimate for the congestion window, corresponding to option B.
Q39. Which logical inference can be drawn when a TCP connection’s retransmission timer repeatedly expires without successful acknowledgment?
📖 Explanation: Repeated expirations indicate that sent segments are not being acknowledged, suggesting that packets are being lost or delayed, a symptom of heavy congestion or a high error environment. Therefore, option B correctly infers the condition.
Q40. A developer argues that using a larger initial congestion window (e.g., 10 segments) always improves performance. Which analytical counter‑argument best addresses this claim?
📖 Explanation: Starting with a larger window can send more data quickly, but it may overwhelm network buffers, causing congestion and packet loss, especially on paths with limited capacity. This trade‑off counters the claim, aligning with option B.
Q41. When a transport protocol includes both sequence numbers and acknowledgment numbers, which conceptual relationship does this establish?
📖 Explanation: Sequence numbers identify the order of transmitted bytes, while acknowledgment numbers confirm receipt of specific bytes. Together they facilitate ordered, reliable delivery, as described in option B.
Q42. A UDP‑based application sends a 2000‑byte payload, but the underlying network’s MTU is 1500 bytes. Which logical outcome occurs?
📖 Explanation: If a UDP datagram exceeds the path MTU, the IP layer fragments the packet into smaller fragments, each carrying a portion of the original payload. Fragmentation adds overhead and raises the chance of loss, matching option B.
Q43. Which analytical comparison best describes the impact of enabling TCP’s selective acknowledgment (SACK) versus using only cumulative ACKs in a lossy network?
📖 Explanation: SACK allows the receiver to acknowledge non‑contiguous blocks of data, informing the sender exactly which segments are missing. This precision reduces unnecessary retransmissions compared with cumulative ACKs, which only indicate the highest contiguous byte received. Option A correctly describes the advantage.
Q44. If a transport layer protocol uses a 16‑bit checksum, what logical inference can be made about its error‑detection capability?
📖 Explanation: A 16‑bit checksum can reliably detect many single‑bit errors, but certain multi‑bit error patterns can produce the same checksum, leading to undetected corruption. Therefore, option B accurately reflects its detection limits.
Q45. A server implements TCP with the NO‑DELAY option enabled. Which conceptual effect does this have on packet transmission?
📖 Explanation: The TCP NO‑DELAY option disables Nagle’s algorithm, causing the stack to send out small segments immediately rather than waiting to coalesce them. This reduces latency for interactive applications, matching option B.
Q46. When a TCP connection transitions from slow start to congestion avoidance after reaching the slow‑start threshold, which logical change occurs in the growth of the congestion window?
📖 Explanation: During slow start, the window doubles each RTT (exponential). Upon hitting the threshold, TCP enters congestion avoidance, where the window grows by one segment per RTT (linear). This shift from exponential to linear growth is described in option A.