Skip to main content

Flow-Prefix-v6

Counts IPv6 traffic per routed prefix. The prefix is built from the flow address and the IPv6 prefix-length fields that the router puts in each NetFlow v9/IPFIX record.

PropertyValue
GUID{467AE21F-F2B7-4509-EA69-514CF2352D36}
LayerFlow Record
InputFlows
Key typeIPv6 prefix (CIDR string)
ImplementationLua — nf-prefix-v6.lua (trisul_probe/sysplugs/flowhandlers); updated by CPINetflowMeter (PINetflowMeter.cpp)
Bucket / Topper60 s / 300 s
Enabled by defaultYes

What it measures​

  • Each IPv6 v9/IPFIX record updates two keys: the source prefix (IPV6_SRC_ADDR + IPV6_SRC_MASK, fields 27/29) and the destination prefix (IPV6_DST_ADDR + IPV6_DST_MASK, fields 28/30). IPv4 records go to Flow-Prefix.
  • If the template has no IPv6 mask fields, the mask is 0 and all traffic lands on ::/0. sFlow does not update this group.
  • Meters and direction work as in Flow-Prefix. With HomeASNumbers set, the record's AS decides whether a prefix is home or external. If the AS is 0, the IPv6 address is checked against your IPv6 Home Networks. Without HomeASNumbers, the IPv6 Home Networks decide.
  • MeterMasks (default TRUE) in the NetFlow config turns it on or off. IPDR mode turns it off.

Keys​

The key is the network address in compressed IPv6 text form (lowercase, as printed by inet_ntop), followed by /<mask length>.

KeyMeaning
2001:db8::/32Prefix 2001:db8::/32
2001:db8:1200::/40Prefix 2001:db8:1200::/40
::/0Record without IPv6 mask fields

Special keys​

KeyMeaning
SYS:GROUP_TOTALSSum of every update made to this group in the interval. Each record updates a source prefix and a destination prefix, so Total and Flows here are about 2× the IPv6 flow traffic.
::/0The template had no IPV6_SRC_MASK/IPV6_DST_MASK, or the router had no route (mask 0).

Meter list​

IDNameTypeUnitsTopBottomDescription
0TotalVT_RATE_COUNTERBps500Bytes of records where this prefix is the source or the destination.
1Recv from Upstream ASVT_RATE_COUNTERBps500Bytes where this prefix is the source and is not home.
2Transmit to Upstream ASVT_RATE_COUNTERBps500Bytes where this prefix is the destination and is not home.
3Prefixes FlowsVT_COUNTERFlws500Records where this prefix is the source or the destination (+1 per side).
4Recv from Downstream ASVT_RATE_COUNTERBps500Bytes where this prefix is the source and is home.
5Transmit to Downstream ASVT_RATE_COUNTERBps500Bytes where this prefix is the destination and is home.
6Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.
7Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.