CND (312-38) Network Defense Simulation

Learn to analyze TCP traffic behavior and understand how modern TCP implementations handle packet loss to optimize network performance and maintain availability under strain.

Network Scenario

You are a Network Security Analyst monitoring a Site-to-Site VPN link that is experiencing intermittent 5% packet loss. A critical database replication task is stalling.

Examining the traffic in Wireshark, you notice the sender is needlessly retransmitting entire windows of data whenever a single packet is dropped. You suspect that an inline Deep Packet Inspection (DPI) firewall is aggressively stripping certain TCP options during the initial three-way handshake.

You need to identify the exact TCP mechanism that allows the receiver to inform the sender exactly which segments were received successfully, so only the missing ones are retransmitted.

Traffic & Logs

Below is a snippet of a packet capture during a simulated transfer failure. Notice the `sack` option in the third packet.

09:42:15.101 IP 10.10.5.50.443 > 10.20.8.80.51244: Flags [.], seq 1000:2460, ack 1, win 500, length 1460 09:42:15.152 IP 10.10.5.50.443 > 10.20.8.80.51244: Flags [.], seq 3920:5380, ack 1, win 500, length 1460 09:42:15.155 IP 10.20.8.80.51244 > 10.10.5.50.443: Flags [.], ack 2460, win 500, options [nop,nop,sack 1 {3920:5380}], length 0 [Analysis Note: The segment containing sequence 2460:3920 was lost in transit. The receiver sends a duplicate ACK for 2460, but includes an option block indicating it successfully received the subsequent block starting at 3920.]

Question

With which of the following forms of acknowledgment can the sender be informed by the data receiver about all segments that have arrived successfully?

A. Block Acknowledgment
B. Negative Acknowledgment
C. Cumulative Acknowledgment
D. Selective Acknowledgment
Hint: Look at the packet capture log. The receiver is ACKing up to 2460, but specifically mentioning a block {3920:5380}. What is the acronym for this option?

Expert Analysis

1. What is happening in the network

A network link is experiencing packet loss, causing out-of-order delivery of TCP segments. Because TCP requires reliable delivery, missing packets trigger retransmissions. The firewall or network configuration is currently being audited to ensure it supports optimized recovery.

2. Identify attack or behavior

This isn't necessarily an attack, but rather degraded network conditions (which could be the result of a DoS attempt or just faulty hardware). The defense-in-depth concern here is ensuring that security appliances (like firewalls) do not strip TCP Option 4 (SACK-Permitted) during the TCP 3-way handshake, as this ruins the network's resilience to packet loss.

3. Why the correct answer is correct

D. Selective Acknowledgment (SACK) is correct. SACK allows a TCP receiver to acknowledge non-contiguous blocks of data. This informs the sender exactly which segments arrived successfully beyond a missing packet, ensuring the sender only retransmits what was actually lost, rather than the entire transmission window.

4. Why others are wrong

A. Block Acknowledgment: This is a concept used primarily in 802.11 (Wi-Fi) MAC layers, not standard TCP routing.
B. Negative Acknowledgment (NACK): Standard TCP does not use NACKs. It relies entirely on positive acknowledgments and timeouts to detect lost packets.
C. Cumulative Acknowledgment: This is standard TCP behavior, where the receiver only ACKs the last contiguous byte received. If packet 2 drops but 3, 4, and 5 arrive, Cumulative ACK only acknowledges packet 1, forcing the sender to retransmit 2, 3, 4, and 5.

5. Defensive action

Review the firewall's TCP normalizer or strict protocol enforcement settings. Ensure that TCP Option 4 (SACK-Permitted) and Option 5 (SACK data) are permitted through the firewall. If a stateful firewall strips these options to "sanitize" headers, it will force the network into inefficient cumulative ACK behavior, making it highly vulnerable to performance degradation during micro-bursts or minor congestion.

MINI LESSON: TCP SACK & Firewall Normalization

Traffic Pattern Recognition: In Wireshark, when SACK is enabled, you will see `TCP Option - SACK Permitted: True` in the SYN and SYN-ACK packets. During data transfer with loss, you will see `Duplicate ACKs` followed by the `sack` parameter showing Left/Right Edges of received data blocks.

Defensive Mindset: While deep packet inspection and header sanitization are great for preventing evasion techniques (like fragmentation attacks), over-sanitizing valid TCP options (like Window Scaling or SACK) creates self-inflicted Denial of Service conditions. Always balance strict protocol enforcement with necessary network performance mechanisms.

Ready for the next scenario?

Enhance your blue team skills with more hands-on network defense simulations.

Explore more CND simulations