๐ŸŽ“ BookMCQ
โ† Back to 24. Transport Layer Protocols

๐Ÿ“ SCTP packet format general header (13 MCQs)

Twelve-Byte Common Header Followed by Chunks

An SCTP packet begins with a fixed 12-byte common header and is followed by one or more chunks. The header contains 16-bit source and destination ports, a 32-bit Verification Tag, and a 32-bit checksum. SCTP operates over IP at the transport layer; its chunk structure carries data and control information such as INIT, SACK, HEARTBEAT, and DATA. It defines the boundary between application processes and packet delivery.

Why SCTP Uses a Common Header and Typed Chunks

SCTP needs a common association-identification and integrity envelope for different control and data operations. A typed chunk format lets a packet carry setup, acknowledgment, path-monitoring, shutdown, or user-data information. Multiple chunks may be bundled to reduce packet overhead, subject to packet-size and protocol rules. These design requirements determine the protocol's state and overhead.

Interpreting the Common Header Fields

Source Port and Destination Port each occupy 16 bits. Verification Tag is 32 bits and associates the packet with the expected peer state, except for special packet cases during setup. The final 32-bit checksum uses CRC32c for packet integrity. After the common header, each chunk begins with type, flags, and length fields.

Calculating SCTP Header Overhead

A packet with one 12-byte common header and one 16-byte DATA chunk header has at least 28 bytes of SCTP overhead before user data and any padding. Additional bundled chunks increase overhead. The checksum covers the SCTP packet, and the IP header is separate, so total network-layer packet size must include both IP and SCTP portions.

Chunk Bundling and Validation Considerations

Bundling can improve efficiency by placing several chunks in one packet, but chunk lengths and alignment must be interpreted correctly. The Verification Tag helps associate traffic with established state, while CRC32c detects corruption. Neither field provides encryption or proof of user identity; security mechanisms are separate concerns. Actual performance also depends on path conditions and implementation.

Correcting Header and Chunk Confusion

'The SCTP common header is 20 bytes' is false: it is 12 bytes. 'TSN is in the common header' is false: it appears in DATA chunks. 'SCTP checksum is the same as TCP's 16-bit checksum' is false: SCTP uses a 32-bit CRC32c value. These distinctions separate similar mechanisms that are often confused.

Exam Focus: Field Sizes and Packet Composition

Draw the 12-byte SCTP common header and label both ports, Verification Tag, and CRC32c checksum. Distinguish common-header fields from fields inside DATA or control chunks. Calculate total packet overhead when chunks are bundled, and explain why IP header size must be added separately for MTU calculations. Use the assumptions stated in each question when calculating.

Key Terms for SCTP Packet Format and General Header

  • Verification Tag - Identifies expected SCTP peer state.
  • CRC32c - Thirty-two-bit SCTP packet integrity check.
  • Chunk - Typed data or control structure.
  • Chunk Length - Size including the chunk header.
  • Bundling - Combining chunks in one packet.
  • Common header - Fixed 12-byte SCTP packet prefix.
4
Easy
6
Medium
3
Hard

๐Ÿ“ All SCTP packet format general header MCQs

Q1. In Selective Repeat ARQ, what is the maximum size of the receive window expressed in terms of the sequence number field length mm?

A.2m2^{m}
B.2mโˆ’12^{m}-1 โœ…
C.2mโˆ’12^{m-1}
D.mโˆ’1m-1
๐Ÿ’ก Difficulty: easy | โœ… Correct: B

๐Ÿ“– Explanation: The receive window cannot exceed the range of sequence numbers available. With an mm-bit sequence field, the total number of distinct sequence numbers is 2m2^{m}. To avoid ambiguity, the protocol limits the window to 2mโˆ’12^{m}-1 slots, ensuring unique identification of each outstanding packet.

Q2. If the sender's window size equals the receiver's window size, which of the following must be true for a packet that arrives out of order?

A.It is immediately delivered to the application layer.
B.It is discarded.
C.It is stored in the receiver buffer until missing packets arrive. โœ…
D.It triggers a reset of the connection.
๐Ÿ’ก Difficulty: easy | โœ… Correct: C

๐Ÿ“– Explanation: Selective Repeat permits outโ€‘ofโ€‘order arrivals, but the receiver cannot present them to the application until the missing lowerโ€‘numbered packets are received. Therefore the packet is placed in a buffer, preserving ordering while awaiting the missing sequence numbers that will enable consecutive delivery.

Q3. Which statement correctly contrasts the behavior of Go-Back-N and Selective Repeat regarding outโ€‘ofโ€‘order packets?

A.Selective Repeat can buffer outโ€‘ofโ€‘order packets, while Goโ€‘Backโ€‘N discards them and retransmits from the missing packet. โœ…
B.Goโ€‘Backโ€‘N buffers outโ€‘ofโ€‘order packets, while Selective Repeat discards them.
C.Both protocols discard outโ€‘ofโ€‘order packets.
D.Both protocols store all outโ€‘ofโ€‘order packets indefinitely.
๐Ÿ’ก Difficulty: easy | โœ… Correct: A

๐Ÿ“– Explanation: Goโ€‘Backโ€‘N assumes that any loss forces the sender to retransmit the lost packet and all subsequent ones, so the receiver discards any outโ€‘ofโ€‘order data. Selective Repeat, by contrast, maintains a receive buffer that can hold outโ€‘ofโ€‘order packets until the missing ones arrive, enabling efficient recovery.

Q4. A receiver using Selective Repeat receives packets numbered 0,2,1 in that order. After processing, which packet(s) can be delivered to the application layer?

A.Only packet 0.
B.Only packet 1.
C.Packets 0 and 1. โœ…
D.All three packets.
๐Ÿ’ก Difficulty: easy | โœ… Correct: C

๐Ÿ“– Explanation: Packet 0 arrives first and can be delivered immediately. Packet 2 is stored because packet 1 is missing. When packet 1 arrives, the receiver now has a consecutive sequence (0,1) and can deliver both 0 and 1; packet 2 remains buffered until packet 3 arrives.

Q5. Suppose the send window size is set to 2mโˆ’12^{m-1}. If a packet with sequence number kk is lost, what is the earliest sequence number that the sender may retransmit according to Selective Repeat?

A.kk โœ…
B.k+1k+1
C.kโˆ’(2mโˆ’1)k-(2^{m-1})
D.None, sender waits for timeout.
๐Ÿ’ก Difficulty: medium | โœ… Correct: A

๐Ÿ“– Explanation: Selective Repeat allows the sender to retransmit only the specific lost packet. Because the sender tracks acknowledgments individually, the earliest retransmission candidate is the exact missing sequence number kk. The protocol does not require advancing to k+1k+1 or any other number until the lost packet is recovered.

Q6. How does the requirement that the receive window size equals the send window size affect the maximum number of outstanding unacknowledged packets in a network with high latency?

A.It limits the number to half of the window size.
B.It allows up to the full window size of packets to be in flight. โœ…
C.Sender stops after a single packet.
D.It doubles the effective throughput regardless of latency.
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: When the sender and receiver windows match, the sender can fill the entire window with unacknowledged packets. In highโ€‘latency environments this maximizes utilization because the pipeline can contain up to WW packets, where WW is the common window size, before awaiting acknowledgments.

Q7. In a scenario where the sender's window is fully utilized and the receiver's buffer is partially full, which action best preserves protocol efficiency?

A.Sender reduces its window size to match the receiver's remaining buffer.
B.Receiver sends a NACK for each missing packet.
C.Sender continues transmitting, relying on future ACKs to free space. โœ…
D.Receiver discards the oldest stored packet to make room.
๐Ÿ’ก Difficulty: medium | โœ… Correct: C

๐Ÿ“– Explanation: Selective Repeat is designed for pipelined transmission. Even if the receiver's buffer is not completely empty, the sender can keep sending new packets; as acknowledgments arrive, buffer space is freed. This avoids unnecessary throttling and maintains high throughput while still respecting the window limits.

Q8. Compare the impact on bandwidth utilization when the receive window is set to its maximum 2mโˆ’12^{m}-1 versus a smaller window of size 2mโˆ’22^{m-2}. Which outcome is most likely?

A.The larger window always leads to higher utilization regardless of error rate.
B.The smaller window reduces utilization but improves error recovery speed.
C.Both windows give identical utilization in errorโ€‘free channels.
D.The larger window can cause more retransmissions, lowering utilization under high error rates. โœ…
๐Ÿ’ก Difficulty: medium | โœ… Correct: D

๐Ÿ“– Explanation: A larger window permits more packets in flight, boosting throughput when the channel is clean. However, in noisy conditions more packets may be lost or arrive out of order, prompting additional retransmissions. This overhead can outweigh the benefit, resulting in lower effective utilization compared with a more conservative window size.

Q9. If a receiver using Selective Repeat has already stored packets with sequence numbers 5 through 9, and a new packet with sequence number 4 arrives, what is the immediate effect?

A.Packet 4 is discarded because it is out of order.
B.Packet 4 is stored and the receiver can now deliver packets 4โ€‘9 consecutively. โœ…
C.Packet 4 triggers a reset of the receive window.
D.Packet 4 is stored but delivery is still blocked until packet 10 arrives.
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: When packet 4 arrives, it fills the gap at the start of the buffered block. The receiver now holds a contiguous sequence from 4 to 9, allowing it to forward all those packets to the application layer in order. No reset is needed, and further packets can continue to be buffered.

Q10. When designing a packet format for Selective Repeat, which field is essential to enable the receiver to correctly reorder outโ€‘ofโ€‘order packets?

A.Checksum field.
B.Sequence number field. โœ…
C.Timestamp field.
D.Source address field.
๐Ÿ’ก Difficulty: medium | โœ… Correct: B

๐Ÿ“– Explanation: The sequence number uniquely identifies each packet's position in the transmitted stream. Without it, the receiver cannot determine the correct order of outโ€‘ofโ€‘order arrivals. While checksums verify integrity and timestamps may aid timing, the sequence number is the fundamental element for reordering in Selective Repeat.

Q11. Assume a channel with packet loss probability pp and a sender window size W=2mโˆ’1W = 2^{m}-1. Derive which of the following expressions best approximates the expected number of retransmissions per successful packet in Selective Repeat?

A.p1โˆ’p\frac{p}{1-p}
B.pW1โˆ’pW\frac{pW}{1-pW} โœ…
C.p(1โˆ’p)W\frac{p}{(1-p)W}
D.pW21โˆ’p\frac{pW^{2}}{1-p}
๐Ÿ’ก Difficulty: hard | โœ… Correct: B

๐Ÿ“– Explanation: Selective Repeat allows multiple outstanding packets; the probability that at least one of the WW packets is lost is roughly pWpW (for small pp). The expected retransmissions per successful packet follow a geometric distribution with success probability 1โˆ’pW1-pW, giving an average of pW1โˆ’pW\frac{pW}{1-pW} retransmissions.

Q12. Consider a network where the roundโ€‘trip time (RTT) is large relative to packet transmission time. How should the packet format be modified to maximize throughput under Selective Repeat?

A.Increase the sequence number field size to allow a larger window. โœ…
B.Add a larger checksum field.
C.Include a priority field to reorder packets.
D.Reduce the header size by eliminating the sequence number.
๐Ÿ’ก Difficulty: hard | โœ… Correct: A

๐Ÿ“– Explanation: A larger sequence number field expands the range of distinct sequence identifiers, permitting a larger sliding window. With a long RTT, more packets must be in flight to keep the pipeline full. Enlarging the window directly improves throughput, whereas checksum or priority fields do not address the fundamental limitation imposed by RTT.

Q13. If a sender mistakenly uses a receive window size larger than its send window size, what is the most likely protocol violation that will occur?

A.Duplicate ACKs will be generated for every packet.
B.The receiver may accept packets it cannot buffer, causing overflow and loss. โœ…
C.The sender will never time out, leading to deadlock.
D.All packets will be delivered out of order to the application layer.
๐Ÿ’ก Difficulty: hard | โœ… Correct: B

๐Ÿ“– Explanation: When the receiver advertises a window larger than the sender's actual sending capacity, the sender may transmit more packets than the receiver can store. This mismatch can cause the receiver's buffer to overflow, forcing it to discard incoming packets or generate errors, which violates the protocol's guarantee of reliable, ordered delivery.

๐Ÿ”— Related Topics (MCQs)