Skip to main content

Flow-TOS

Counts NetFlow/IPFIX traffic per DSCP code point, taken from the IP TOS byte in each flow record.

PropertyValue
GUID{965DDD07-F715-48D5-636B-A15106C9B502}
LayerFlow Record
InputFlows
Key typeDSCP value (2 hex digits)
ImplementationLua — nf-tos.lua (trisul_probe/sysplugs/flowhandlers); updated by CPINetflowMeter (PINetflowMeter.cpp)
Bucket / Topper60 s / 300 s
Enabled by defaultYes

What it measures​

  • Each NetFlow v1/v5/v9 or IPFIX record adds its bytes and one flow to the key for its DSCP.

  • The DSCP comes from the first of these fields that the record carries. Ingress values take priority over post-policy values:

    PrioritySourceFieldHow DSCP is taken
    1v5 tos, or v9/IPFIX ipClassOfService5TOS byte >> 2 (the two ECN bits are dropped)
    2IPFIX ipDiffServCodePoint195Used as is (already 6-bit DSCP)
    3IPFIX postIpDiffServCodePoint98Used as is. This is the DSCP after any re-marking on the router.
  • If the record has none of these fields, traffic lands on 00 (CS0, best effort). sFlow does not update this group.

  • MeterTosAsDSCP (default TRUE) in the NetFlow config turns the group on or off. FALSE stops the probe updating this group. It does not switch to keying by the raw TOS byte. IPDR mode turns it off.

Keys​

The key is the 6-bit DSCP value as two uppercase hex digits. nf-tos.lua supplies labels for common code points. Other values have no label.

KeyMeaning
00DSCP 0, label CS0 (best effort)
2EDSCP 46, label CS5/EF (expedited forwarding, voice)
22DSCP 34, label CS4/AF41-43
30DSCP 48, label CS6 (network control)

Labels defined in nf-tos.lua:

KeysLabel
00CS0
01LE
08 0A 0C 0ECS1/AF11-13
10 12 14 16CS2/AF21-23
18 1A 1C 1ECS3/AF31-33
20 22 24 26CS4/AF41-43
28 2ECS5/EF
30CS6
38CS7

Special keys​

KeyMeaning
SYS:GROUP_TOTALSSum of every update made to this group in the interval. One key per record, so this equals total NetFlow/IPFIX traffic.

Meter list​

IDNameTypeUnitsTopBottomDescription
0TotalVT_RATE_COUNTERBps100Sampling-adjusted bytes of records with this DSCP.
1FlowsVT_COUNTERFlws100Number of flow records with this DSCP.
2Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.
3Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.