πŸŽ“ BookMCQ
← Back to 24. Transport Layer Protocols

πŸ“ SCTP flow control balloon memory manager (11 MCQs)

Advertised Receiver Window Controls SCTP Buffer Use

SCTP flow control protects the receiving endpoint from DATA chunks arriving faster than its buffer can accept them. The receiver advertises available buffer credit as a_rwnd, and the sender tracks it as rwnd for the association. This is an SCTP transport mechanism, distinct from congestion control, which regulates traffic according to network path conditions. It defines the boundary between application processes and packet delivery.

Receiver Memory Pressure and Sender Pacing

A receiver may have limited memory for unconsumed user messages and out-of-order chunks. Without feedback, an aggressive sender could exhaust that buffer and force discard or resource failure. SCTP therefore communicates receiver buffer availability in SACK information and restricts new DATA transmission when the advertised window cannot accommodate another chunk.

a_rwnd, SACK Feedback and Zero-Window Probing

The receiver reports its advertised receiver window in SACK chunks. The sender tracks this association-wide rwnd and must not send new DATA that exceeds available receiver credit, except for permitted zero-window probes. Congestion window cwnd is maintained separately for each destination path, so effective sending is constrained by both receiver capacity and network congestion.

A Receiver Advertises No Available Buffer

Suppose the receiver advertises rwnd of 4,000 bytes, then its application stops reading and buffer space falls to zero. The sender stops ordinary new DATA transmission when no chunk fits the advertised credit. A zero-window probe can elicit updated SACK information after the receiver frees memory, allowing transfer to resume.

Distinguishing SCTP Flow Control from Virtual Memory Ballooning

SCTP flow control prevents receiver-buffer overflow but cannot prevent congestion in routers or links; congestion control handles that separate risk. A balloon memory manager belongs to virtualized operating systems: a hypervisor uses a guest driver to reclaim or return guest physical memory. It is not an SCTP field, algorithm, or transport-layer mechanism.

Correcting the Ballooning and Window Confusion

'SCTP ballooning adjusts the sender's network rate' is false: a_rwnd reports receiver buffer credit. 'rwnd and cwnd are identical' is false: rwnd is association-wide receiver capacity, while cwnd is per destination path. 'A virtual-machine balloon driver is part of SCTP' is false: it manages guest memory under a hypervisor. These distinctions separate similar mechanisms that are often confused.

Exam Focus: a_rwnd, cwnd and Zero-Window Behaviour

Given advertised buffer credit and a DATA chunk size, decide whether new data may be sent. Distinguish the association-wide rwnd from per-path cwnd and explain zero-window probing. Treat balloon memory management as a virtualization concept, not an SCTP feature, and identify its separate hypervisor-to-guest memory-reclamation purpose. Use the assumptions stated in each question when calculating.

Key Terms for SCTP Flow Control and Balloon Memory Manager

  • a_rwnd - Advertised receiver buffer credit in SCTP.
  • rwnd - Sender's stored peer receive-window value.
  • cwnd - Per-path network congestion limit.
  • SACK - Reports TSNs and receiver window.
  • Zero-window probe - Checks whether receiver space reopened.
  • Balloon driver - Hypervisor-controlled guest memory reclamation.
4
Easy
5
Medium
2
Hard

πŸ“ All SCTP flow control balloon memory manager MCQs

Q1. In the Selective Repeat (SR) protocol, what does the variable SfS_f represent?

A.The sequence number of the next packet the sender will transmit
B.The lower edge of the sender's sliding window βœ…
C.The acknowledgment number expected from the receiver
D.The size of the sender's window
πŸ’‘ Difficulty: easy | βœ… Correct: B

πŸ“– Explanation: The variable SfS_f marks the first sequence number within the sender's current sliding window. It is the lowest unacknowledged sequence number, so when an ACK with ackNo equal to SfS_f arrives, the window can slide forward. Therefore, SfS_f defines the lower edge of the sender's window, not the next packet to send or the window size.

Q2. When the sender in the ready state receives an error‑free ACK with ackNo = SfS_f, which of the following actions is performed first?

A.The timer is stopped immediately
B.All outstanding packets are retransmitted
C.The window slides right until the first unacknowledged packet βœ…
D.The sender moves to the blocking state
πŸ’‘ Difficulty: medium | βœ… Correct: C

πŸ“– Explanation: According to the SR FSM, an ACK that matches SfS_f triggers a window slide. The protocol first moves the lower edge of the window to the next unacknowledged packet, effectively discarding all consecutive acknowledged packets. Only after the slide does the sender consider timer actions, making the slide the initial operation.

Q3. Which statement correctly distinguishes the timer handling between the ready and blocking states of the SR sender?

A.In both states the timer is never restarted after an ACK
B.In the ready state the timer is stopped only when no outstanding packets remain, whereas in the blocking state the timer is always restarted after any ACK
C.In the ready state the timer may be stopped when the window becomes empty, while in the blocking state the timer is restarted only after a timeout βœ…
D.In the ready state the timer is always running, while in the blocking state it is started only after a timeout
πŸ’‘ Difficulty: medium | βœ… Correct: C

πŸ“– Explanation: In the ready state, after processing an ACK the sender restarts the timer if there are still unacknowledged packets; if the window becomes empty the timer is stopped. In the blocking state, the timer is only touched when a timeout occurs, because ACK handling does not affect the timer unless the window slides. This distinction matches option C.

Q4. If a corrupted ACK arrives while the sender is in the blocking state, what does the SR protocol dictate?

A.The sender retransmits all unacknowledged packets immediately
B.The sender moves to the ready state
C.The timer is stopped
D.The ACK is discarded and no other action is taken βœ…
πŸ’‘ Difficulty: easy | βœ… Correct: D

πŸ“– Explanation: When an ACK is corrupted, the SR FSM treats it as invalid information. The protocol specifies that such ACKs are simply discarded, and no timer manipulation or retransmission is triggered. This behavior prevents unnecessary state changes or packet loss, ensuring that only valid acknowledgments influence the sender's operation.

Q5. How does increasing the sender's window size SsizeS_{size} affect the number of packets retransmitted after a timeout in the SR protocol?

A.A larger window may increase the number of retransmitted packets because more unacknowledged packets reside in the window βœ…
B.Increasing the window size forces the sender to retransmit only the oldest unacknowledged packet
C.Larger window size always reduces the number of retransmissions to zero
D.Window size has no impact on retransmissions; only the timeout duration matters
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: With a larger sliding window, more packets can be in flight simultaneously. If a timeout occurs, the SR sender must resend every packet that remains unacknowledged within the window. Therefore, a bigger window can lead to a higher count of retransmissions, contrary to the idea that a larger window automatically improves reliability.

Q6. If the current sequence number is Sn=7S_n = 7 and the modulus is 2m=82^m = 8, what will be the next sequence number after incrementing?

A.Sn=0S_n = 0 βœ…
B.Sn=6S_n = 6
C.Sn=8S_n = 8
D.Sn=7S_n = 7
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: The next sequence number is computed as (Sn+1)β€Šmodβ€Š2m(S_n + 1) \bmod 2^m. Substituting Sn=7S_n = 7 and 2m=82^m = 8 gives (7+1)β€Šmodβ€Š8=8β€Šmodβ€Š8=0(7+1) \bmod 8 = 8 \bmod 8 = 0. Hence the sequence wraps around to zero, which is represented by option A.

Q7. When the sender in the ready state receives an error‑free ACK with ackNo that corresponds to an outstanding packet but not equal to SfS_f, what happens to the timer?

A.The timer is stopped
B.The timer continues unchanged
C.The timer is restarted βœ…
D.The timer is reset to zero but not restarted
πŸ’‘ Difficulty: medium | βœ… Correct: C

πŸ“– Explanation: For any ACK that acknowledges a packet still inside the window, the SR protocol restarts the timer if there remain other unacknowledged packets. Since the ACK does not equal SfS_f, the window does not slide, but the timer must be refreshed to reflect the remaining outstanding packets, making option C correct.

Q8. Which of the following best explains why the Selective Repeat protocol can achieve higher throughput than Go‑Back‑N in the presence of occasional packet loss?

A.SR retransmits only the lost packet, while GBN must retransmit the entire window βœ…
B.SR uses larger sequence numbers than GBN
C.SR does not require acknowledgments, unlike GBN
D.SR operates only on the receiver side, eliminating sender‑side delays
πŸ’‘ Difficulty: hard | βœ… Correct: A

πŸ“– Explanation: Selective Repeat maintains individual acknowledgments for each packet, allowing the sender to resend only those that were lost or corrupted. In contrast, Go‑Back‑N treats any loss as a reason to resend all packets from the lost one onward, causing unnecessary traffic and lower throughput. This selective retransmission is the key efficiency gain.

Q9. Why does the receiver in the SR protocol never leave the ready state?

A.Because it never needs to store any packets
B.Because it only sends ACKs and never waits for timer events
C.Because its behavior is defined solely by packet arrival, which does not require a separate blocking state βœ…
D.Because it has an infinite buffer and never experiences overflow
πŸ’‘ Difficulty: easy | βœ… Correct: C

πŸ“– Explanation: The receiver's FSM is driven only by incoming packets. It stores correctly received packets, sends ACKs, and possibly delivers buffered data, but it never needs to wait for other events such as timers. Consequently, there is no need for a distinct blocking state, and the receiver remains in the ready state throughout operation.

Q10. Consider the following event sequence for the SR sender: (1) Window becomes full, moving to blocking state; (2) An error‑free ACK with ackNo = SfS_f arrives; (3) No more outstanding packets remain. After processing these events, which state does the sender occupy?

A.Ready state with timer running
B.Ready state with timer stopped βœ…
C.Blocking state with timer running
D.Blocking state with timer stopped
πŸ’‘ Difficulty: hard | βœ… Correct: B

πŸ“– Explanation: When the window is full, the sender enters blocking. Receiving an ACK that matches SfS_f slides the window; because all packets are now acknowledged, the sender has no outstanding data. The FSM rule states that after a slide, the sender returns to the ready state, and with no pending packets the timer is stopped, yielding option B.

Q11. If the receiver discards an error‑free packet whose seqNo lies outside its current window, what ACK does it send back to the sender?

A.An ACK with ackNo equal to the received seqNo
B.An ACK with ackNo set to zero
C.No ACK is sent
D.An ACK with ackNo equal to the next expected sequence number RnR_n βœ…
πŸ’‘ Difficulty: easy | βœ… Correct: D

πŸ“– Explanation: When a packet arrives outside the receiver's window, the SR protocol still sends an ACK indicating the lowest sequence number it is still expecting, namely RnR_n. This informs the sender that the receiver's window has not advanced, prompting possible retransmission or window sliding. Therefore the correct ACK contains RnR_n as its acknowledgment number.

πŸ”— Related Topics (MCQs)