Skip to main content

NetworkLayerStats

Counts traffic and flows per IP protocol, keyed by the IP protocol number in 2-digit hex.

PropertyValue
GUID{E89BCD56-30AD-40F5-B1C8-8B7683F440BD}
LayerL3 Network
InputPackets, Flows
Key typeIP protocol number (2 hex digits)
ImplementationNative C++ — CPICGNetworkLayer (group), CPIIPStats, CPIIP6Stats (packet metering) (trisul_probe/src/sysplugs/counters); stengine/XSessionGroup.cpp (flow meters); CPINetflowMeter, CPISFlowMeter (sysplugs/flowhandlers)
Bucket / Topper60 s / 300 s
Enabled by defaultYes

What it measures​

  • Packets: every IPv4 packet (protocol field) and IPv6 packet (next-header field of the fixed header) updates one key with its bytes and 1 packet. IPv6 extension headers are not followed.
  • Flows: the session tracker adds 1 to Total Flows and Active Flows for each new flow, and subtracts 1 from Active Flows when the flow expires.
  • NetFlow/IPFIX and sFlow: each record adds its bytes to the key of its L4 protocol. Packets are not updated in flow mode.
  • Meters 4 and 5 are filled only in a filtered counter group made by an interface tracker from this group. The base group never has them.

Keys​

One key is the IP protocol number as 2 uppercase hex digits. Labels are preloaded from std-ip-protocols.txt.

KeyMeaning
06TCP
11UDP
01ICMP
3AIPv6-ICMP

Special keys​

KeyMeaning
SYS:GROUP_TOTALSSum of every update in the interval. Each packet updates one key, so meter 0 equals total IP bytes.
2F, 32GRE and ESP. Common for tunnel and VPN traffic.
29IPv6 encapsulated in IPv4 (protocol 41).

Meter list​

IDNameTypeUnitsTopBottomDescription
0TotalVT_RATE_COUNTERBps100IP packet bytes, or flow-record bytes.
1PacketsVT_COUNTERpkts1001 per IP packet. Packet mode only. Not scaled by SampleRate.
2Active FlowsVT_RUNNING_COUNTERflows100+1 when the session tracker creates a flow, −1 when it expires.
3Total FlowsVT_COUNTERflows100+1 for each new flow.
4Into InterfaceVT_RATE_COUNTERBps100Interface-tracker filtered groups only. Bytes into the tracked interface.
5Outof InterfaceVT_RATE_COUNTERBps100Interface-tracker filtered groups only. Bytes out of the tracked interface.
6Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.
7Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.