Networking guides, explanations and reader checklists on whilenetworking.com

Wireshark Forensics: Decode TCP Three-Way Handshake Drops to Diagnose Router-to-Router Latency Issues

Network latency between core routers can manifest subtly, often masquerading as simple slowness rather than a complete outage. For IT students and junior…

Network latency between core routers can manifest subtly, often masquerading as simple slowness rather than a complete outage. For IT students and junior engineers, the inability to distinguish between actual packet loss and high-latency-induced timeouts is a common stumbling block. When a TCP three-way handshake fails or times out across a router-to-router link, it typically indicates that packets are being dropped or delayed beyond the retransmission threshold. This guide walks you through using Wireshark to decode these specific handshake drops, helping you pinpoint whether the issue lies in CPU saturation, buffer exhaustion, or physical layer errors on your network infrastructure.

Understanding the TCP Three-Way Handshake Failure

Before diving into packet capture analysis, it is essential to understand what constitutes a “drop” in this context. A successful TCP connection requires three steps:
1. SYN: The client sends a synchronization flag to initiate the connection.
2. SYN-ACK: The server acknowledges and responds with its own sync flag.
3. ACK: The client acknowledges the server’s response, completing the handshake.

If you observe a drop, one of two scenarios usually occurs:
* Silent Drop: The SYN packet arrives at the router but is discarded before a response is generated. This often happens due to ACLs (Access Control Lists) or CPU overload where the router cannot process interrupts in time.
* Timeout/Drop: The SYN-ACK is sent, but the client does not receive it within the retransmission window (default 30 seconds for the initial SYN retry).

In a router-to-router environment, high latency can cause the round-trip time (RTT) to exceed the timeout thresholds, causing the client to assume the connection failed. Wireshark allows you to visualize exactly where this failure occurs.

Lab Scenario: Simulating Router Latency and Packet Drops

To effectively diagnose these issues, a controlled lab environment is preferred over live production networks to prevent service disruption. We will simulate a scenario using Cisco Packet Tracer or GNS3/EVE-NG with two routers (R1 and R2) connected via an Ethernet link.

Prerequisites:
* Two routers configured with IP addresses in the same subnet (e.g., 192.168.10.0/24).
* Wireshark installed on a PC connected to the router’s management interface or a tap port.
* A simulated high-latency condition introduced via QoS or interface throttling.

Step-by-Step Lab Setup:

  1. Configure Interfaces: Assign IP addresses to R1 (Gig0/0) and R2 (Gig0/0). Ensure routing protocols like OSPF or EIGRP are running so the links are up.
    bash
    Router(config)# interface GigabitEthernet0/0
    Router(config-if)# ip address 192.168.10.1 255.255.255.0
    Router(config-if)# no shutdown
  2. Introduce Latency: To mimic a congested link, apply an output queue limit or use a rate limiter if your simulation software supports it. In Packet Tracer, you can simulate congestion by adding noise to the cable or using a specific “congested” mode feature if available in your version.
  3. Initiate Traffic: From a host connected to R1, attempt to ping R2 or initiate an HTTP request (which triggers TCP handshakes).

Capturing and Analyzing Packets with Wireshark

Once the traffic is flowing (or failing), launch Wireshark on your analysis machine. Connect your network interface to the same VLAN or use a port mirror/spans setup if available in your hardware. If simulating in Packet Tracer, you can attach a “Wireshark” icon directly to the router interface to capture packets from that specific point.

  1. Start Capture: Click the shark fin icon and select your active interface.
  2. Filter for TCP Handshakes: Enter the following display filter to isolate connection attempts:
    text
    tcp.flags.syn == 1 && tcp.flags.ack == 0
  3. Identify Drops: Look for sequences where a SYN packet is sent, but no corresponding SYN-ACK appears in the timeline within a reasonable timeframe (e.g., 1–2 seconds). If the packet disappears entirely without entering the router, it was likely dropped by an ACL or firewall rule.

Decoding Latency vs. Packet Loss

A critical diagnostic step is distinguishing between high latency and actual packet drops. In Wireshark, right-click on a SYN packet and select “Follow” > “TCP Stream.” Observe the timeline:
* Latency Issue: You will see the SYN sent, followed by a delayed SYN-ACK, or the client retransmitting the SYN after the timeout period. The packets exist in the stream but are spaced far apart.
* Packet Drop: The SYN packet is followed immediately by an RST (Reset) flag from the router, or the sequence simply ends with no response. If the RTT is consistently over 100ms on a LAN link, latency is likely the culprit; if it is intermittent, check for buffer bloat or CPU spikes.

Verifying Router Configuration and Security Policies

Often, drops are intentional due to security policies rather than technical faults. Review the Access Control Lists (ACLs) applied to the router interfaces. A common mistake is applying a deny-any rule that blocks new connections while allowing established traffic.

Check for the following in your router configuration:
* Inbound/Outbound ACLs: Ensure they are not dropping port 80 or 443 traffic unexpectedly.
* Rate Limiting: Verify if rate-limit commands are causing legitimate traffic to be dropped during bursts.
* CPU Utilization: High CPU usage on the router can cause the control plane to drop packets destined for the data plane (control-plane policing).

Student Practice Task: The Troubleshooting Challenge

To reinforce these concepts, perform the following exercise in your lab environment:

  1. Set up two routers and a host.
  2. Configure R1 to simulate a 50ms artificial delay using QoS or simulation tools.
  3. Generate continuous TCP traffic from the host to R2.
  4. Capture packets in Wireshark and calculate the average RTT for SYN-ACK exchanges.
  5. Modify the configuration to introduce a “drop” rule that blocks 10% of incoming SYN packets.
  6. Analyze the capture to quantify the difference between delayed responses and missing responses.

This exercise helps students understand that not all connection failures are equal; some require waiting longer for a response, while others indicate a hard failure in the network path.

Industry Application: Monitoring Production Networks

In a professional setting, this forensics approach is vital for maintaining SLA compliance. Network operations centers (NOCs) often use tools like Wireshark or enterprise packet brokers to analyze handshake failures during peak hours. By identifying that router-to-router latency is spiking due to memory fragmentation or aging hardware, engineers can proactively replace equipment before user-facing issues become widespread. Always correlate Wireshark findings with SNMP data regarding interface errors and CPU loads to build a complete picture of network health.

Conclusion

Diagnosing TCP three-way handshake drops requires a combination of theoretical knowledge about the TCP protocol and practical skills in using packet analysis tools like Wireshark. By carefully examining packet streams, distinguishing between latency-induced timeouts and actual packet drops, and reviewing router configurations, IT professionals can resolve complex connectivity issues. Remember that network behavior varies based on hardware capabilities, software versions, and specific jurisdictional laws regarding data privacy when capturing traffic. Always operate within safe test environments or with explicit authorization before analyzing live production traffic.

Educational-use notice: This tutorial is for learning and controlled lab use only. Test carefully, use backups, and obtain authorization before making changes. Do not run unfamiliar commands on production systems. We accept no responsibility for misuse, damage, data loss, or production issues.