Skip to main content

TCP Analyzer Apps

Measures TCP connection setup latency, retransmissions, timeouts and one-way flows for each server port.

PropertyValue
GUID{24DBD78F-CBB6-4383-7A78-B2C734FC480F}
LayerL4 Transport
InputPackets
Key typePort (p-XXXX)
ImplementationLua — appcg.lua (apps/analyzers/tcp-analyzer)
Trisul Apptcp-analyzer (install from Trisul Apps)
Bucket / Topper60 s / 300 s
Enabled by defaultYes, once the app is installed

What it measures​

  • The script runs on each TCP flow flush and updates one key per flow: the server port.
  • The server end comes from the SYN / SYN-ACK direction. If neither end was identified as the server, the lower port number is used.
  • Latency: the flow's setup RTT (microseconds) is reported once, on the first flush after the handshake. Flows with RTT 0 are skipped.
  • Retransmissions, timeouts, unidirectional, rate: counted once, when the flow ends (FIN/RST or timeout).
  • Timeouts count only flows that saw a SYN-ACK.
  • Retrans rate and Poor Quality Flows need at least 50 packets in the flow. Poor quality here means a retransmission rate above 10 % (the per-host group uses 5 %).
  • A timeout or a rate above 10 % also tags the flow BADQUALITY.
  • Needs packet capture. NetFlow records do not carry setup RTT or retransmissions.

Keys​

The same port key form as the Apps group: p- and the port number as 4 uppercase hex digits. The UI shows the port number.

KeyMeaning
p-01BBPort 443 (https)
p-0016Port 22 (ssh)
p-0CEAPort 3306 (mysql)

Special keys​

KeyMeaning
SYS:GROUP_TOTALSSum of every update made to this group in the interval. One key per flow, so counts equal the TCP totals.

Meter list​

IDNameTypeUnitsTopBottomDescription
0Avg LatencyVT_AVERAGEus2020Average TCP setup RTT of flows to this server port.
1RetransVT_COUNTERpkts2020Retransmitted packets of finished flows on this port.
2Retrans RateVT_AVERAGEpercent2020Average of 100 × retransmissions / packets over finished flows of 50+ packets.
3Poor Quality FlowsVT_COUNTERflws2020Finished flows of 50+ packets with retransmission rate above 10 %.
4TimeoutsVT_COUNTERflws2020Established flows (SYN-ACK seen) that ended by timeout.
5UnidirectionalVT_COUNTERflws2020Finished flows with bytes in only one direction.
6Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.
7Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.