📝 SCTP error control SACK retransmission (22 MCQs)
Reliable DATA Transfer Using Selective Acknowledgment
SCTP error control uses CRC32c, Transmission Sequence Numbers, SACK chunks, and retransmission to provide reliable message transfer. A receiver reports a cumulative TSN acknowledgment and may include gap acknowledgment blocks for DATA chunks received beyond a missing TSN. The sender uses these reports and retransmission timers to identify missing chunks and recover them. It defines the boundary between application processes and packet delivery.
Why Cumulative Acknowledgment Alone Is Not Enough
A cumulative acknowledgment shows the highest contiguous TSN received, but it does not describe all later chunks that arrived successfully. Without gap reports, the sender could retransmit many chunks unnecessarily. SCTP SACK adds selective information about received ranges, helping distinguish a missing chunk from later data already buffered by the receiver.
SACK Processing and Missing-Chunk Recovery
The receiver places a cumulative TSN acknowledgment, advertised receiver window, and optional gap acknowledgment blocks in a SACK chunk. Duplicate TSN reports can also be included. The sender updates its transmission state, detects missing TSNs from repeated gap reports, and retransmits the missing DATA chunk according to SCTP fast-retransmission and timeout rules.
A Gap in TSN Reception
Suppose the receiver gets TSNs 100, 102, and 103, but TSN 101 is missing. Its SACK can cumulatively acknowledge 100 and report 102–103 as a gap block. The sender knows the later chunks arrived and can retransmit TSN 101 rather than blindly repeating the entire sequence. This example makes the sequence and resulting decision explicit.
Selective Recovery and Network Conditions
Selective acknowledgment reduces needless retransmission and improves efficiency when several chunks are in flight. SCTP still uses retransmission timers for cases where gap feedback is unavailable or insufficient, and recovery interacts with congestion control. Reordering can resemble loss temporarily, so implementations use acknowledgment patterns and timers rather than treating every gap as definitive proof of permanent loss.
Clarifying SCTP SACK and TCP SACK
'SCTP SACK is the same packet format as TCP SACK' is false: SCTP uses a SACK chunk with cumulative TSN and gap blocks. 'A gap report means every later chunk was lost' is false: it reports later chunks received. 'CRC32c retransmits damaged data' is false: it detects corruption; recovery requires retransmission.
Exam Focus: Cumulative TSN and Gap-Block Tracing
Given received TSNs, determine the cumulative acknowledgment and identify missing sequence values represented by gaps. Explain how SACK reduces unnecessary retransmission and how timers provide a fallback. Distinguish SCTP SACK chunks from TCP's SACK option, and separate checksum detection from reliable recovery. Use the assumptions stated in each question when calculating.
Key Terms for SCTP Error Control, SACK and Retransmission
- TSN - Sequence number assigned to each DATA chunk.
- Cumulative TSN ACK - Highest contiguous TSN.
- Gap block - Reports later TSNs beyond a gap.
- SACK chunk - Selective acknowledgment structure.
- CRC32c - Detects corruption in SCTP packets.
- Fast retransmission - Resends chunks inferred missing.
📝 All SCTP error control SACK retransmission MCQs
Q1. What is the complete range of valid TCP/IP port numbers?
📖 Explanation: The TCP/IP specification defines ports as a 16‑bit unsigned integer, giving a range from to . All values in this interval are technically valid, although some sub‑ranges have special purposes. Hence the full range is 0–65535.
Q2. Which range is traditionally reserved for well‑known services such as HTTP and FTP?
📖 Explanation: Well‑known services occupy the lowest port numbers, specifically through . These ports are assigned by IANA for protocols like HTTP (80) and FTP (21). The other ranges are designated for registered and dynamic/private services.
Q3. If a client mistakenly selects an ephemeral port number less than 1024, what is the most likely immediate effect?
📖 Explanation: Ports below 1024 are reserved for privileged services. When a client uses such a low number, it can clash with a well‑known service on the same host, leading to binding failures or unexpected behavior, which is the most common immediate issue.
Q4. When two processes on the same host attempt to bind to the same port number simultaneously, what must the operating system enforce?
📖 Explanation: Port numbers are unique per IP address on a host. The OS will reject the second bind attempt with an error (e.g., EADDRINUSE) to preserve this uniqueness, preventing ambiguous routing of incoming packets.
Q5. A client uses port 80 as its source port when connecting to a server at port 443. What inference can be made about the traffic direction?
📖 Explanation: Port 80 is the standard destination for HTTP servers, not typically used as a source port. Using it as a source is unconventional and may bypass firewall expectations, indicating the client is employing a non‑standard source port.
Q6. If a firewall blocks all inbound traffic to ports below 1024, how will a client using an ephemeral port of 500 be affected when establishing a TCP connection?
📖 Explanation: Firewalls that filter inbound traffic to low ports also inspect the source port of outbound packets. A client sending from port 500 will have its SYN packet dropped because the source port falls within the blocked range, causing the connection to fail.
Q7. Deduce why assigning a random port number to a server process can prevent clients from establishing a reliable connection.
📖 Explanation: Clients need to know the exact port on which a server is listening. If the server chooses a random port each time, clients lack that information, making it impossible to direct traffic correctly, thereby preventing reliable connections.
Q8. Assume two different servers on the same machine accidentally use the same port number 8080 for TCP. What is the most probable result when a client attempts to connect to that port?
📖 Explanation: The operating system permits the first bind to succeed; subsequent attempts fail. Consequently, any incoming connection to port 8080 is delivered to the server that successfully bound first, while the other server cannot accept connections on that port.
Q9. When a client initiates a connection to a server’s IP address but supplies the wrong destination port, what outcome is most consistent with TCP behavior?
📖 Explanation: If no process is listening on the specified destination port, the server typically responds with a RST. However, many firewalls silently drop the SYN, leading the client to retry and eventually time out after multiple unanswered attempts.
Q10. Compare the advantages of using a fixed well‑known port for a server versus assigning a dynamic port each time the service starts.
📖 Explanation: A fixed well‑known port lets clients know where to connect without discovery, while dynamically chosen ports obscure the service location, raising the barrier for unauthorized access and thus enhancing security.
Q11. Contrast the security implications of a client using a low‑numbered ephemeral port (<1024) versus a high‑numbered one (>1024).
📖 Explanation: Ports below 1024 are often subject to stricter firewall rules and may require elevated privileges. Using such low numbers can expose the client to filtering or denial‑of‑service policies, whereas high‑numbered ports typically bypass these restrictions.
Q12. Evaluate why a 16‑bit port number space can become a limiting factor for high‑traffic web servers.
📖 Explanation: Each simultaneous TCP connection consumes a distinct source port on the server. With only possible ports, heavily loaded servers can exhaust available ports, especially when many connections remain in TIME_WAIT, limiting scalability.
Q13. Analyze how Network Address Translation (NAT) influences the selection and reuse of port numbers for outbound connections.
📖 Explanation: NAT devices create a translation table that maps each internal (IP,port) pair to an external (IP,port) pair. To conserve external ports, NAT may reuse a port after the corresponding mapping expires, affecting how applications choose and recycle ports.
Q14. Differentiate the role of port numbers in TCP versus UDP regarding connection orientation and reliability.
📖 Explanation: TCP establishes a stateful connection, tracking sequence numbers and acknowledgments per port pair, while UDP is connectionless; its ports simply identify the sending and receiving application without providing reliability guarantees.
Q15. Assess the impact of the TIME_WAIT state on port reuse for a high‑volume server that repeatedly binds to the same port after shutdown.
📖 Explanation: After a TCP connection closes, the socket enters TIME_WAIT for twice the maximum segment lifetime. During this interval the same port‑pair cannot be reused, so a server that frequently restarts may encounter delays because the desired port remains unavailable.
Q16. Examine the consequences of allowing user‑level applications to assign arbitrary server ports without system‑level validation.
📖 Explanation: Without OS validation, applications might bind to ports already used by critical services, causing collisions that can crash services, disrupt network traffic, and create security vulnerabilities due to unintended exposure.
Q17. Apply the principle of socket abstraction: how does a port number combine with an IP address to uniquely identify a communication endpoint?
📖 Explanation: A socket address consists of an IP address plus a port number. This pair uniquely identifies one endpoint of a communication flow, allowing the operating system to deliver incoming packets to the correct application.
Q18. Explain how a client can discover a server’s listening port using a well‑known service discovery protocol.
📖 Explanation: Service discovery protocols (e.g., mDNS, SSDP) allow a client to broadcast a request on a known multicast address. Servers listening for such queries respond with their current listening port, enabling dynamic discovery without hard‑coding the port number.
Q19. Synthesize a design where error‑control mechanisms rely on port numbers to trigger retransmission of lost packets.
📖 Explanation: By allocating a separate port solely for acknowledgments, the sender can monitor receipt on that channel. If an acknowledgment is missing, the sender retransmits the data on the original data port, integrating port‑based signaling into the error‑control loop.
Q20. Apply the concept of multiplexing: why are port numbers essential for allowing multiple applications to share a single IP address?
📖 Explanation: Multiplexing relies on ports to separate concurrent data flows arriving at the same IP address. The OS examines the destination port to determine which application should receive each packet, enabling many services to coexist on one host.
Q21. Propose a secure method for allocating server ports that minimizes the risk of port hijacking by malicious actors.
📖 Explanation: Generating ports with a cryptographic function and sharing them via an authenticated channel ensures only trusted clients know the correct port, reducing the chance that an attacker can guess or hijack the service.
Q22. In a distributed system, how can dynamic port allocation be coordinated across nodes to avoid conflicts while preserving scalability?
📖 Explanation: Computing ports from unique node identifiers (e.g., hashing a UUID) yields deterministic, non‑overlapping values without a central coordinator, allowing the system to scale while guaranteeing that no two nodes select the same port.