TCP Analysis
Analyzing Performance Issues
Intro
Most of today's business applications are TCP-based. TCP should guarantee reliable communication, but if a connection is not established or gets stuck at some point, applications may not load or freeze. At this point, you need packet-level data to analyze the root cause of this situation. This workflow provides a step-by-step guide for investigating these problems on a Profitap IOTA running IOTA v6 software.
Workflow
In this workflow, we will be using an IOTA 10 CORE+ model.
Start Capturing
First, we need to set up the capture interfaces, as shown in Figure 1. For this, go to Capture Management in the menu on the left side, then use the cards at the top of the page to open the Capture Interfaces tab.
Review the Capture Interface Configuration section on the bottom-left side of the page. There, you can set the capture interface speed according to your transceiver speeds. In this case, the available options are 2x1G and 2x10G. In addition, two capture modes are available: Inline and SPAN. In Inline mode, traffic flows between both ports, and is captured from both receive directions on the device's SFP+ ports. In SPAN mode, either or both ports can receive traffic from SPAN ports or external TAPs; traffic is not transmitted between ports, and is only received (and captured). If you change the capture interface speed or capture mode, click Apply at the bottom of the section to confirm the new configuration.
In the Timestamp Synchronization section, you can control which time source to use for capture timestamping, and which synchronization sources to use for timestamp clock synchronization. The Capture Time Source is the time source used to initialize the capture time, and can be set to System Time (PTP or NTP) or GPS Time (from a GPS antenna). The Synchronization Sources are used to keep the capture time synchronized over time. The available sources are Precision Time Protocol (PTP), Global Positioning System (GPS) or an external Pulse Per Second (PPS) source, and you can change their order of priority and enable or disable them individually. In this section, you can also see the current time source and the states of available time sources.

Figure 1: Capture Interface and Timestamp Synchronization settings.
Afterward, you need to set up traffic analysis in the corresponding tab. Under Traffic Analysis Settings on the right side, set Analysis Mode to Complete and activate TCP Performance Analysis to use deep packet inspection with protocol decoding and application classification, as well as TCP performance metrics.
After you set everything up as needed, click the Start button in the Analysis Session section to begin the traffic capture process.

Figure 2: Traffic analysis settings to enable DPI and TCP performance metrics.
On the Data Storage tab, check that TCP traffic is not excluded from capture and is captured in full, as in Figure 3, to obtain the payload if needed.

Figure 3: Packet capture filtering settings.
TCP Analysis
To analyze TCP, go to Dashboards > TCP Traffic Analysis in the left menu bar. There, you get two time graphs. The first one includes the percentage of retransmissions (green) as well as latency (blue) and iRTT (purple) information on the y-axis. A high percentage of retransmissions can indicate an overload situation or a link failure in the path, where high iRTT and latency can point to a slow or misbehaving link, as well as routing/QoS issues or an overloaded network component. You can switch between average (default), minimum, and maximum latency values using the hamburger button
near the upper right side of the graph.

Figure 4: TCP Traffic Analysis dashboard.
The second graph displays client and server zero window durations. This means the duration for which a receiver's TCP buffer is full. This could happen because of an application bug that prevents it from pulling application data from the TCP/IP stack, or due to a local performance issue on the receiving side.
Client-side zero windows are shown in orange and server-side zero windows in turquoise. Zero windows lead to application freezes most of the time because no new data reaches the application. You can switch the view between Zero Window Duration and TCP Flags using the hamburger button
near the upper right side of the graph, as shown in Figure 5.
In the TCP Flags view, you could easily spot anomalies like far more SYNs (orange) than SYN/ACKs (turquoise), indicating no socket was opened, which could be caused by routing issues or missing firewall rules. Many packets with the ECE and CWR flags set can cause congestion on the path.

Figure 5: TCP Flags View in TCP Traffic Analysis dashboard.
In all graphs, you can click and drag over a specific timeframe to restrict the displayed data to that timeframe. This is extremely useful for getting a more specific view of the timeframe when anomalies occurred. The timeframe selection is shown in grey in the graphs, and its values are shown in grey at the top of the page, like in Figure 6.

Figure 6: Select a specific timeframe by clicking and dragging in the TCP Traffic Analysis dashboard.
Below the graphs, you can see colored cards with quality indicators, as in Figure 4. These include indicators for High Retransmissions (> 10%), High Latency (> 500ms), Low TCP Health Score (50 health score), High Zero Window Rate (> 5%), High Duplicate ACK Rate (> 10%), and change color from green to orange to red if thresholds are exceeded, so you can easily spot potential failure situations.
Below these indicators, you can find top talker information, where you can sort by quality indicators like TCP health score, iRTT, Retransmissions, DUP ACKs, or create an include or exclude filter for specific IP addresses by clicking an address and selecting Include Filter or Exclude Filter, like in Figure 7.
With an include filter set for an IP address, you get all TCP streams with their quality indicators filtered by this IP address. Quality indicators switch from green to orange to red when quality thresholds are exceeded. By clicking View Details instead of a filter, you get a detailed view of this IP address, as shown in Figure 8, and can view additional data, such as applications and their corresponding TCP quality for this client. So you can filter by a specific IP address, timeframe, and application, and get detailed TCP quality statistics to spot failure indicators for your root cause analysis.

Figure 7: Filtering TCP analysis on a specific IP address or go to details.
If you need to analyze the stream details, you can easily download it with a single click on the download button on the left side of the corresponding stream to get the full PCAPNG. Afterward, you can analyze it in packet analysis tools like Wireshark.

Figure 8: TCP Details for a specific client IP address.
Overview
If you would like to get an overview of the quantity and quality of your TCP Traffic, navigate to Dashboards > TCP Traffic Overview, as shown in Figure 9. There, you get a time graph where you can select the values you’d like to investigate, like iRTT, Latency, Retransmission, Zero Windows, or Window Sizes, by clicking the hamburger button
in the top right corner.
From the top talker tables at the bottom, you get total traffic volume and packet quantity information. At this point, you can filter or view details, as in the TCP Traffic Analysis dashboard. You also have the option to download the PCAPNG file with a single click. However, please note that the TCP Traffic Overview dashboard does not display information about applied filters, as its primary purpose is to provide a simple overview of TCP traffic.

Figure 9: TCP Traffic Overview dashboard.