🎓 BookMCQ
← Back to 24. Transport Layer Protocols

📝 SCTP features TSN SI SSN chunks (20 MCQs)

Separate Numbers for Transfer and Stream Delivery

SCTP uses several identifiers because reliable transfer and in-order message delivery are different functions. The Transmission Sequence Number (TSN) numbers DATA chunks across an association. The Stream Identifier (SI) selects a logical stream, while the Stream Sequence Number (SSN) orders messages within that stream. SCTP packets carry typed chunks under one common header. It defines the boundary between application processes and packet delivery.

Why One Sequence Space Is Not Enough

An association may contain multiple independent message streams, yet every DATA chunk must still be acknowledged and recovered reliably. A single sequence number for all purposes would couple message ordering to transfer recovery and increase blocking between streams. SCTP separates association-wide TSN tracking from stream-specific delivery identifiers. These design requirements determine the protocol's state and overhead.

DATA Chunk Fields and Their Roles

A DATA chunk carries a TSN, Stream Identifier, Stream Sequence Number, Payload Protocol Identifier, and user data, along with flags such as beginning and ending fragment indicators. TSN supports cumulative and gap acknowledgment. SI selects the stream, and SSN orders messages within that stream; unordered delivery can omit normal SSN ordering semantics.

Two Streams with Interleaved TSNs

An association sends a DATA chunk with TSN 700 on stream 0 and another with TSN 701 on stream 1. If TSN 700 is delayed but 701 arrives, the receiver can acknowledge the later TSN as a gap while preserving separate stream-delivery rules. The message on stream 1 need not wait for stream 0's missing message.

Reliable Transfer with Independent Message Delivery

The separate identifiers reduce unnecessary cross-stream blocking while preserving reliable association-wide transfer. TSNs support loss detection and retransmission, while SI and SSN maintain message ordering for each stream. SCTP's chunk model adds flexibility but requires more header and state management than a simple UDP datagram service. Actual performance also depends on path conditions and implementation.

Misinterpreting TSN, SI and SSN

'TSN identifies the application stream' is false: SI does that. 'SSN orders all DATA chunks in the association' is false: it orders messages within a stream. 'One SCTP packet contains exactly one chunk' is false: a packet may bundle multiple control or DATA chunks. These distinctions separate similar mechanisms that are often confused.

Exam Focus: Tracking Three SCTP Identifiers

Given a sequence of DATA chunks, track TSNs for association-wide acknowledgment and retransmission, then use SI and SSN to determine message stream and order. Distinguish a gap in TSN reception from an application delivery gap within one stream. Identify the purpose of DATA chunk flags and the Payload Protocol Identifier.

Key Terms for SCTP Features: TSN, SI, SSN and Chunks

  • TSN - Association-wide DATA chunk sequence number.
  • SI - Selects the destination SCTP stream.
  • SSN - Orders messages within one stream.
  • PPID - Identifies the upper-layer payload protocol.
  • DATA chunk - Carries SCTP user message data.
  • Gap acknowledgment - Reports received TSNs beyond a missing one.
6
Easy
9
Medium
5
Hard

📝 All SCTP features TSN SI SSN chunks MCQs

Q1. What is the maximum size of the send window in the Selective‑Repeat protocol when the sequence number field has mm bits?

A.2m−12^{m} - 1 ✅
B.2m2^{m}
C.2m+12^{m} + 1
D.m−1m - 1
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The send window cannot exceed half of the sequence space to avoid ambiguity. With mm bits the sequence space is 2m2^{m}; the protocol limits the window to 2m−12^{m} - 1. This ensures that a new packet’s sequence number cannot be mistaken for an older unacknowledged one.

Q2. How many distinct windows are maintained by the Selective‑Repeat protocol?

A.One
B.Two ✅
C.Three
D.Four
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Selective‑Repeat uses a send window to control which new frames may be transmitted and a receive window to accept out‑of‑order frames. Therefore two separate windows are maintained, unlike Go‑Back‑N which effectively uses a single logical window.

Q3. If the send window size is set to its maximum 2m−12^{m}-1 and a sender transmits frames up to the window limit, what happens when an acknowledgment for the earliest frame is lost?

A.The sender stops transmitting any further frames.
B.The sender discards the lost ACK and proceeds normally.
C.The sender continues transmitting new frames within the window, but the unacknowledged frame will be retransmitted after its timer expires. ✅
D.The sender expands the window to compensate.
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: In Selective‑Repeat each frame has its own timer. Losing an ACK for the earliest frame does not stall the whole window; the sender can still advance the base as later ACKs free slots, but the missing frame will be resent when its timer fires, preserving reliability.

Q4. Given m=4m = 4, what is the range of sequence numbers and the maximum send window size?

A.0‑15 and 8 ✅
B.0‑7 and 8
C.0‑15 and 15
D.0‑31 and 31
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: With 4 bits the sequence numbers range from 0 to 24−1=152^{4}-1 = 15. The protocol limits the window to 24−1=82^{4} - 1 = 8. This restriction prevents ambiguity between new and old frames, ensuring correct operation of Selective‑Repeat.

Q5. Compare the maximum send window size of Selective‑Repeat with that of Go‑Back‑N for the same mm. Which statement is true?

A.Selective‑Repeat window is larger.
B.Both have the same size.
C.Selective‑Repeat window is smaller. ✅
D.Go‑Back‑N window is half the size of Selective‑Repeat.
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: Go‑Back‑N can use a window up to the whole sequence space, whereas Selective‑Repeat limits its window to half that size. Consequently, Selective‑Repeat’s maximum window is smaller, reducing the chance of misinterpreting sequence numbers.

Q6. Which of the following best explains why Selective‑Repeat uses a smaller send window than Go‑Back‑N?

A.To reduce memory usage.
B.To simplify acknowledgment handling.
C.To avoid sequence number ambiguity. ✅
D.To increase throughput.
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: The smaller window ensures that the sequence numbers of outstanding frames never overlap with those of new frames, preventing the receiver from confusing a delayed packet for a newly transmitted one. This design choice eliminates ambiguity inherent in larger windows, which is essential for selective retransmission.

Q7. If the receive window size is equal to the send window size, what impact does this have on the protocol’s ability to handle out‑of‑order arrivals?

A.Receiver cannot buffer any out‑of‑order frames.
B.Receiver can buffer exactly one out‑of‑order frame.
C.Receiver can buffer up to the full send window, enabling multiple out‑of‑order frames to be stored. ✅
D.Receiver must discard out‑of‑order frames.
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Matching the receive window to the send window size gives the receiver enough buffer space to hold any frames that arrive within the sender’s outstanding window but out of order. This capacity allows Selective‑Repeat to acknowledge each correctly received packet individually while postponing delivery until missing packets are retransmitted.

Q8. Suppose m=5m = 5 and the sender’s window currently spans sequence numbers 10‑24. If an ACK for sequence 12 is received, what is the new lower bound of the sender’s window?

A.13 ✅
B.12
C.15
D.10
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: In Selective‑Repeat each ACK advances the lower bound only past the acknowledged sequence number. Receiving ACK for 12 means frames 10‑11 are already acknowledged; the window slides forward to start at 13, preserving any unacknowledged frames still within the window.

Q9. If a frame’s timer expires before its ACK arrives, what is the protocol’s response, and how does it affect other outstanding frames?

A.Retransmit only the timed‑out frame, leaving others untouched. ✅
B.Retransmit the timed‑out frame and all subsequent frames.
C.Cancel the timer and wait for other ACKs.
D.Expand the window size.
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Selective‑Repeat maintains individual timers per frame; when a timer expires, only that specific frame is retransmitted. This localized retransmission avoids unnecessary duplication of correctly received frames, preserving bandwidth and allowing other outstanding frames to continue awaiting their own acknowledgments.

Q10. Contrast the acknowledgment strategies of Go‑Back‑N and Selective‑Repeat. Which statement accurately reflects their differences?

A.Go‑Back‑N uses cumulative ACKs; Selective‑Repeat uses individual ACKs. ✅
B.Both use cumulative ACKs.
C.Both use individual ACKs.
D.Go‑Back‑N uses individual ACKs; Selective‑Repeat uses cumulative ACKs.
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Go‑Back‑N acknowledges the highest in‑order sequence number received, implicitly confirming all earlier frames (cumulative ACK). Selective‑Repeat, however, acknowledges each correctly received frame individually, allowing the sender to know precisely which frames need retransmission, thereby improving efficiency on lossy links.

Q11. Evaluate the impact of increasing mm on the protocol’s throughput and memory requirements. Which outcome is most likely?

A.Higher throughput and higher memory usage. ✅
B.Higher throughput and lower memory usage.
C.Lower throughput and higher memory usage.
D.Lower throughput and lower memory usage.
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Raising mm expands the sequence number space, allowing a larger window (up to 2m−12^{m-1}), which can increase throughput by permitting more unacknowledged frames. However, the receiver must maintain a buffer proportional to the window size, so memory consumption also grows, reflecting a trade‑off between performance and resource use.

Q12. Apply the principle of window size limitation to explain why the maximum send window in Selective‑Repeat cannot exceed 2m−12^{m-1}.

A.Larger windows would cause excessive retransmissions.
B.It ensures the sender’s clock remains synchronized.
C.It matches the receiver’s processing speed.
D.It prevents ambiguity when sequence numbers wrap around, ensuring that a new frame’s number cannot be confused with an outstanding unacknowledged one. ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: The protocol’s correctness hinges on the guarantee that any two frames within the combined send and receive windows have distinct sequence numbers. Limiting the window to at most half the sequence space (2m−12^{m-1}) ensures that when numbers wrap, the receiver can still differentiate between new arrivals and delayed duplicates, avoiding misinterpretation.

Q13. Synthesize how Selective‑Repeat’s dual‑window mechanism contributes to its reliability compared to Go‑Back‑N.

A.It reduces the need for timers.
B.It enables the sender to retransmit only lost frames while the receiver buffers out‑of‑order frames, minimizing unnecessary data loss. ✅
C.It eliminates the need for sequence numbers.
D.It merges the send and receive windows into a single larger window.
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The separate send and receive windows let the receiver accept packets out of order and acknowledge each individually. Consequently, the sender only resends the specific missing frames, rather than the entire window as in Go‑Back‑N. This targeted recovery enhances reliability and efficiency, especially over error‑prone links.

Q14. Differentiate between the timer mechanisms in Go‑Back‑N and Selective‑Repeat. Which statement is accurate?

A.Both use a single timer for the oldest unacknowledged frame.
B.Go‑Back‑N uses per‑frame timers; Selective‑Repeat uses a single cumulative timer.
C.Go‑Back‑N uses a single timer for the oldest unacknowledged frame; Selective‑Repeat uses a separate timer for each outstanding frame. ✅
D.Both protocols use no timers.
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Go‑Back‑N maintains a single timer that starts with the oldest unacknowledged packet; if it expires, the sender retransmits the entire window. Selective‑Repeat assigns an individual timer to each transmitted frame, so only the specific timed‑out frame is resent, reducing unnecessary traffic.

Q15. If the receiver’s buffer can hold up to the maximum send window size, what is the consequence of a burst error that corrupts three consecutive frames within the window?

A.All frames after the burst are discarded.
B.Only the three corrupted frames are retransmitted. ✅
C.The receiver cannot recover any frames.
D.The sender must resend the entire window.
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Because the receiver can buffer the remaining correctly received frames, it acknowledges each good packet. When the three corrupted frames are detected, the sender is informed via negative acknowledgments or timeout and retransmits just those three frames, preserving the rest of the window’s data.

Q16. Given m=6m = 6 and a current send window covering sequence numbers 20‑51, an ACK for 35 arrives while ACKs for 30‑34 are still pending. Determine the new lower bound of the send window and justify the protocol’s behavior.

A.The lower bound stays at 20 because the earliest unacknowledged frame (20) has not been acknowledged yet. ✅
B.The lower bound moves to 36, skipping the missing ACKs.
C.The lower bound moves to 31, the next consecutive acknowledged sequence.
D.The lower bound resets to 0.
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: In Selective‑Repeat, the window base advances only after the lowest sequence number in the window is acknowledged. Even though ACK 35 is received, frames 20‑34 remain unacknowledged, so the sender cannot slide the window forward. This ensures that any still‑missing frames are not inadvertently skipped, preserving order and reliability.

Q17. Analyze the effect of increasing the send window beyond 2m−12^{m-1} on the protocol’s correctness. What specific failure mode would most likely emerge?

A.Duplicate ACKs causing unnecessary retransmissions.
B.Sequence number ambiguity leading to misinterpretation of old frames as new. ✅
C.Buffer overflow at the receiver.
D.Loss of flow control.
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Exceeding half the sequence space allows the possibility that a delayed frame’s sequence number overlaps with that of a newly transmitted frame. The receiver could then mistake an old duplicate for a fresh packet, violating the protocol’s guarantee of distinctness and causing data corruption or loss, which undermines correctness.

Q18. Suppose a network introduces variable latency causing out‑of‑order delivery. How does Selective‑Repeat’s acknowledgment strategy mitigate the impact of such latency compared to Go‑Back‑N?

A.It ignores out‑of‑order packets.
B.It buffers out‑of‑order packets and acknowledges each individually, reducing unnecessary retransmissions. ✅
C.It forces the sender to wait for in‑order delivery.
D.It collapses the window size to zero.
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: By allowing the receiver to accept and buffer packets arriving out of order and by sending individual acknowledgments for each correctly received packet, Selective‑Repeat prevents the sender from assuming loss of all subsequent frames. Consequently, only the truly missing frames are retransmitted, improving efficiency despite variable latency.

Q19. Integrate the concepts of flow control and error control in Selective‑Repeat. Which mechanism primarily ensures that the sender does not overwhelm the receiver’s buffer?

A.The size of the send window, which is limited by the receiver’s advertised window. ✅
B.The cumulative ACK scheme.
C.The retransmission timeout value.
D.The sequence number modulo operation.
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Flow control is achieved by the receiver advertising a window size that reflects its available buffer capacity. The sender must restrict its send window to this advertised limit, ensuring it does not transmit more frames than the receiver can store. This coordination prevents buffer overflow while error control handles loss.

Q20. Synthesize a scenario where the selective‑repeat protocol’s per‑frame timer granularity could lead to sub‑optimal performance. What adjustment could be made to improve efficiency without compromising reliability?

A.Use a single cumulative timer to reduce overhead.
B.Increase the timeout interval for all frames uniformly.
C.Implement adaptive timers that consider round‑trip time variance. ✅
D.Eliminate timers entirely.
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Fixed per‑frame timers may expire prematurely on links with high RTT variance, causing unnecessary retransmissions. Adopting adaptive timers that dynamically estimate RTT and adjust timeout values reduces spurious retransmissions while preserving the ability to recover lost frames, thereby enhancing overall efficiency.

🔗 Related Topics (MCQs)