๐ŸŽ“ BookMCQ
โ† Back to 23. Introduction to Transport Layer

๐Ÿ“ Bidirectional piggybacking in data link layer (10 MCQs)

Piggybacked Acknowledgments in Full-Duplex Data Link Communication

Piggybacking is a data link layer technique used on bidirectional links to combine an acknowledgment with an outgoing data frame. Instead of sending a separate acknowledgment frame immediately, a receiver places acknowledgment information in a data frame travelling in the reverse direction. This can reduce control-frame overhead when both stations have data to exchange, while preserving the link protocol's sequence and acknowledgment rules.

Why Separate Acknowledgment Frames Can Waste Capacity

On a full-duplex or logically bidirectional connection, each station may send data and acknowledge frames from the other station. Sending a separate short ACK for every received frame consumes frame headers and transmission opportunities. Piggybacking uses a return data frame to carry the pending acknowledgment, but it cannot delay feedback indefinitely because the reverse station may have no data ready.

Combining Data and Acknowledgment Fields

When a station receives a valid frame, it records the next sequence number expected from the peer. If it has data to send in the opposite direction, it places that acknowledgment value in the outgoing frame's ACK field. A short acknowledgment timer is commonly used in textbook designs; when no data is ready before expiry, the station sends a separate ACK.

Two-Way Exchange Between Stations A and B

Assume A sends data frame 0 to B, and B accepts it, expecting frame 1 next. B also has data for A, so it sends a data frame carrying ACK 1 rather than transmitting a separate acknowledgment. A receives B's data and the acknowledgment together. If B had no outgoing data before its ACK timer expired, it would send a standalone acknowledgment instead.

Lower Control Overhead and the Risk of Delayed Feedback

Piggybacking reduces the number of separate control frames and can improve channel efficiency when traffic flows in both directions. Its benefit is smaller on strongly asymmetric links or when one side rarely has return data. Waiting too long for a data frame would delay acknowledgment and may trigger an unnecessary retransmission, so implementations need a bounded acknowledgment delay.

Clarifying Layer Placement and Acknowledgment Timing

'Piggybacking is a TCP-only mechanism' is false: the classic technique is a data link layer method, although protocols at other layers may combine control information differently. 'An ACK is always sent in a separate frame' is false: it may be carried in a reverse data frame. 'The receiver can wait forever to piggyback' is false: delayed acknowledgments need a timer or other bounded policy.

Exam Focus: Tracing Reverse Traffic and ACK Fields

Draw a two-way frame exchange and identify the data sequence number and acknowledgment value in each direction. Explain when a separate ACK is avoided, why a timer is needed, and how the technique reduces control overhead. Distinguish data link layer piggybacking from TCP acknowledgment behaviour, and state that the method is most effective when both stations have traffic.

Key Terms for Data Link Layer Piggybacking

  • Piggybacking - attaching an ACK to a reverse data frame.
  • ACK field - carries acknowledgment information.
  • Full-duplex link - supports simultaneous two-way transmission.
  • Sequence number - identifies a transmitted frame.
  • ACK timer - limits delay before standalone acknowledgment.
  • Control overhead - capacity used by control frames.
3
Easy
4
Medium
3
Hard

๐Ÿ“ All Bidirectional piggybacking in data link layer MCQs

Q1. In a TCP connection, when the receiver has data to send back to the sender, how does piggybacking the ACK on that data segment affect the roundโ€‘trip time compared to sending a pure ACK?

A.Increases RTT because the combined segment is larger.
B.Decreases RTT because the ACK is delivered with the data without extra transmission. โœ…
C.No effect on RTT; ACK timing is independent of data.
D.Causes RTT to be unpredictable due to variable segment sizes.
๐Ÿ’ก Difficulty: easy | โœ… Correct: B

๐Ÿ“– Explanation: Piggybacking merges the acknowledgment with an outbound data segment, so the receiver does not need to transmit a separate ACK packet. This eliminates one transmission round, allowing the acknowledgment to reach the sender sooner and effectively reducing the measured roundโ€‘trip time.

Q2. Suppose a sender transmits a window of 4 segments and the receiver acknowledges the first two using piggybacked ACKs, but the last two are lost. What is the most likely consequence for the sender's congestion control?

A.It will immediately reduce its congestion window to 1 MSS.
B.It will wait for a timeout before adjusting the window.
C.It will interpret the missing ACKs as duplicate ACKs and trigger fast retransmit. โœ…
D.It will continue sending new data assuming the loss is negligible.
๐Ÿ’ก Difficulty: medium | โœ… Correct: C

๐Ÿ“– Explanation: When two consecutive ACKs are missing, the sender perceives duplicate ACKs for the same sequence number. TCP's fastโ€‘retransmit algorithm interprets three duplicate ACKs as an indication of packet loss, prompting the sender to retransmit the missing segment and halve its congestion window, thereby reacting quickly without waiting for a timeout.

Q3. Consider a bidirectional TCP connection where both ends frequently have data to send. If each side always piggybacks its ACKs, which timing anomaly could arise, potentially leading to a deadlock?

A.Both sides wait for the other to send data before ACKing, causing indefinite postponement. โœ…
B.The congestion window grows without bound due to constant piggybacking.
C.Sequence numbers become unsynchronized, leading to duplicate data.
D.The retransmission timer never expires because ACKs are always delayed.
๐Ÿ’ก Difficulty: hard | โœ… Correct: A

๐Ÿ“– Explanation: If both peers rely solely on piggybacked ACKs and neither has data to send, each will wait for the other to transmit a data segment before acknowledging the previously received data. This mutual waiting can stall the exchange indefinitely, creating a deadlock situation where no pure ACKs are sent to break the stalemate.

Q4. Compare pure ACK transmission with piggybacked ACK in terms of bandwidth utilization. Which statement best captures the difference?

A.Pure ACK uses more bandwidth because it adds an extra segment for each acknowledgment. โœ…
B.Piggybacked ACK uses more bandwidth because it combines data and acknowledgment.
C.Both methods use identical bandwidth because ACK size is negligible.
D.Pure ACK uses less bandwidth because it can be compressed.
๐Ÿ’ก Difficulty: easy | โœ… Correct: A

๐Ÿ“– Explanation: A separate ACK packet consumes header space and payload overhead for every acknowledgment, adding to the total bandwidth used on the link. Piggybacking eliminates the need for a distinct ACK segment by attaching the acknowledgment to an existing data packet, thereby reducing the number of transmitted frames and saving bandwidth.

Q5. Evaluate the impact of piggybacking on TCP's delayed ACK algorithm. Which of the following statements is most accurate?

A.Piggybacking eliminates the need for delayed ACKs because acknowledgments are always immediate.
B.Delayed ACKs are still used; piggybacking simply allows the ACK to be sent within the delay interval when data is present. โœ…
C.Piggybacking forces the receiver to send ACKs immediately, overriding the delayed ACK timer.
D.Delayed ACKs are disabled in any connection that employs piggybacking.
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: The delayed ACK algorithm permits the receiver to wait briefly (typically up to 200โ€ฏms) before sending an ACK, hoping to piggyback it on outgoing data. When data is available within that interval, the ACK is attached to the data segment, satisfying both the delayedโ€‘ACK timer and the piggybacking requirement without sending a separate ACK.

Q6. In a scenario where the roundโ€‘trip propagation delay is high, how does piggybacking influence the overall throughput compared to sending separate ACKs, assuming the same packet loss rate? Choose the most precise assessment.

A.Throughput improves significantly because the reduction in ACK packets cuts the number of transmissions, outweighing any added processing delay. โœ…
B.Throughput remains unchanged because the bottleneck is the propagation delay, not the ACK overhead.
C.Throughput may degrade because piggybacked ACKs increase packet size, leading to higher probability of loss.
D.Throughput improvement is marginal; the main benefit is reduced header overhead, which is negligible at high propagation delays.
๐Ÿ’ก Difficulty: hard | โœ… Correct: A

๐Ÿ“– Explanation: When propagation delay dominates the link performance, each additional packet incurs a substantial time cost. By eliminating pure ACK packets, piggybacking reduces the total number of transmissions required for the same amount of data, thereby decreasing the time spent waiting for acknowledgments and boosting effective throughput despite any minor increase in packet size.

Q7. Apply the principle of piggybacking: If a receiver has no data to send, what mechanism does TCP use to still provide timely acknowledgments?

A.It discards the ACK until data becomes available.
B.It sends a pure ACK segment after a short timeout (delayed ACK). โœ…
C.It forces the sender to retransmit the data to trigger an ACK.
D.It uses a negative acknowledgment (NACK) instead.
๐Ÿ’ก Difficulty: easy | โœ… Correct: B

๐Ÿ“– Explanation: When there is no outbound data to attach an acknowledgment to, TCP's delayed ACK timer ensures that a pure ACK is still transmitted after a brief waiting period (commonly up to 200โ€ฏms). This guarantees that the sender receives timely feedback even in the absence of piggybacked data, preserving reliability.

Q8. Synthesize how piggybacking interacts with flow control windows. Which statement correctly describes this interaction?

A.Piggybacked ACKs automatically increase the receiver's advertised window size.
B.The receiver can convey its current window size within the piggybacked ACK, allowing the sender to adjust its sending rate without extra packets. โœ…
C.Flow control windows are irrelevant when piggybacking is used because acknowledgments are embedded.
D.Piggybacking disables the sliding window mechanism, requiring fixed-size transmissions.
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: A piggybacked ACK can carry the receiver's advertised window field along with the acknowledgment number. This enables the sender to learn about the available buffer space without sending a separate windowโ€‘update segment, maintaining efficient flow control while still benefiting from reduced packet overhead.

Q9. When designing a custom transport protocol that adopts piggybacking, what key consideration must be addressed to avoid starvation of acknowledgments in lowโ€‘traffic scenarios? Choose the most comprehensive answer.

A.Implement a timer that forces a pure ACK after a maximum waiting period if no data is pending. โœ…
B.Require the sender to always include a dummy payload to trigger piggybacked ACKs.
C.Disable piggybacking entirely and rely on separate ACKs for reliability.
D.Use a priority queue that always sends ACKs before data packets.
๐Ÿ’ก Difficulty: hard | โœ… Correct: A

๐Ÿ“– Explanation: In lowโ€‘traffic conditions, a receiver may wait indefinitely for outbound data to piggyback an ACK, leading to acknowledgment starvation. Introducing a timeout ensures that, after a predefined interval, the receiver transmits a standalone ACK, guaranteeing progress even when no data is available to combine with the acknowledgment.

Q10. According to the TCP specification, what is the default maximum delay before a receiver must send a pure ACK if it has no data to piggyback?

A.100 ms
B.200 ms โœ…
C.500 ms
D.1 second
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: TCP's delayedโ€‘ACK algorithm specifies that a receiver may wait up to 200โ€ฏms for outbound data before sending a pure ACK. If no data arrives within this interval, the receiver must generate a standalone ACK to ensure the sender receives timely acknowledgment, preventing excessive retransmission delays.

๐Ÿ”— Related Topics (MCQs)