๐ 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.
๐ 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 ?
๐ Explanation: The receive window cannot exceed the range of sequence numbers available. With an -bit sequence field, the total number of distinct sequence numbers is . To avoid ambiguity, the protocol limits the window to 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?
๐ 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?
๐ 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?
๐ 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 . If a packet with sequence number is lost, what is the earliest sequence number that the sender may retransmit according to Selective Repeat?
๐ 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 . The protocol does not require advancing to 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?
๐ 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 packets, where 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?
๐ 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 versus a smaller window of size . Which outcome is most likely?
๐ 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?
๐ 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?
๐ 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 and a sender window size . Derive which of the following expressions best approximates the expected number of retransmissions per successful packet in Selective Repeat?
๐ Explanation: Selective Repeat allows multiple outstanding packets; the probability that at least one of the packets is lost is roughly (for small ). The expected retransmissions per successful packet follow a geometric distribution with success probability , giving an average of 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?
๐ 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?
๐ 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.