π 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.
π All SCTP flow control balloon memory manager MCQs
Q1. In the Selective Repeat (SR) protocol, what does the variable represent?
π Explanation: The variable 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 arrives, the window can slide forward. Therefore, 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 = , which of the following actions is performed first?
π Explanation: According to the SR FSM, an ACK that matches 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?
π 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?
π 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 affect the number of packets retransmitted after a timeout in the SR protocol?
π 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 and the modulus is , what will be the next sequence number after incrementing?
π Explanation: The next sequence number is computed as . Substituting and gives . 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 , what happens to the timer?
π 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 , 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?
π 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?
π 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 = arrives; (3) No more outstanding packets remain. After processing these events, which state does the sender occupy?
π Explanation: When the window is full, the sender enters blocking. Receiving an ACK that matches 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?
π 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 . This informs the sender that the receiver's window has not advanced, prompting possible retransmission or window sliding. Therefore the correct ACK contains as its acknowledgment number.