IPFIX information elements for MPLS IPv4 and IPv6 are network features that:
-
enable the collection of additional BGP information elements in IPFIX records for MPLS IPv4 and IPv6 traffic,
-
improve congestion mitigation in core-edge link scenarios by providing more granular flow data, and
-
support efficient network monitoring and optimization by recording key BGP and TTL fields.
IPFIX information elements for MPLS IPv4 and IPv6 reference information
Describes the IPFIX information elements for MPLS IPv4 and IPv6, including their purpose, supported fields, and configuration details.
IPFIX information elements for MPLS IPv4 and IPv6 enable the collection of additional BGP information elements in IPFIX records for MPLS IPv4 and IPv6 traffic, improve congestion mitigation in core-edge link scenarios by providing more granular flow data, and support efficient network monitoring and optimization by recording key BGP and TTL fields.
-
Eight additional BGP fields are supported in IPFIX MPLS IPv4/IPv6 records.
-
Two new Information Elements, Minimum Time-to-Live (TTL) and Maximum TTL, are recorded for each flow.
-
IE number, or Information Element Number, is a unique identifier assigned to specific elements within network communication protocols, facilitating standardized interpretation and management.
For more information, refer to IP Flow Information Export (IPFIX) Entities .
Table 2.
Information Elements
| IE Field |
IE Number |
| BgpSourceAsNumber |
16 |
| BgpDestinationAsNumber |
17 |
| BgpNextHopIPv4Address |
18 |
| BgpNextHopIPv6Address |
63 |
| DestinationIPv4PrefixLength |
13 |
| DestinationIPv6PrefixLength |
30 |
| IpNextHopIPv4Address |
15 |
| IpNextHopIPv6Address |
62 |
| Minimum TTL |
52 |
| Maximum TTL |
53 |
Configuration example: Collect MPLS traffic with both IPv6 and IPv4 fields.
Configuring Monitor map:
Router(config)#flow monitor-map mpls-1
Router(config-fmm)#record mpls ipv4-ipv6-fields
Router(config-fmm)#commit
Router(config-fmm)#exit
Configuring Sampler map:
Router(config)#sampler-map fsm1
Router(config-sm)#random 1 out-of 4000
Router(config-sm)#commit
Router(config-sm)#exit
Apply a Monitor Map and a Sampler Map to a physical interface:
Router(config)#interface HundredGigE 0/0/0/24
Router(config-if)#flow mpls monitor mpls-1 sampler fsm1 ingress
Router(config-if)#exit
Verification: Use the show flow monitor cache location command to verify flow monitor statistics.
Router#show flow monitor mpls-1 cache summary location 0/0/CPU0
========== Record number: 1 ==========
LabelType : Unknown
Prefix/Length : 20.1.1.0/24
Label1-EXP-S : 16001-0-1
Label2-EXP-S : -
Label3-EXP-S : -
Label4-EXP-S : -
Label5-EXP-S : -
Label6-EXP-S : -
InputInterface : FH0/0/0/1
OutputInterface : FH0/0/0/0
ForwardStatus : Fwd
FirstSwitched : 00 08:28:52:189
LastSwitched : 00 08:28:57:649
ByteCount : 2352
PacketCount : 56
Dir : Ing
SamplerID : 1
IPV4SrcAddr : 30.1.1.1
IPV4DstAddr : 20.1.1.1
IPV4TOS : 0
IPV4Prot : udp
L4SrcPort : 2025
L4DestPort : 2500
L4TCPFlags : 0
IPV4SrcPrfxLen : 24
IPV4DstPrfxLen : 24
BGPNextHopV4 : 192.168.10.10
BGPNextHopV6 : ::
BGPSrcOrigAS : 2000
BGPDstOrigAS : 1000
IPV4NextHop : 192.168.10.10
IPV6NextHop : ::
MinimumTTL : 90
MaximumTTL : 110
InputVRFID : default
OutputVRFID : default
========== Record number: 1 ==========
LabelType : Unknown
Prefix/Length : ::/0
Label1-EXP-S : 16001-0-1
Label2-EXP-S : -
Label3-EXP-S : -
Label4-EXP-S : -
Label5-EXP-S : -
Label6-EXP-S : -
InputInterface : FH0/0/0/1
OutputInterface : FH0/0/0/0
ForwardStatus : Fwd
FirstSwitched : 00 08:27:38:692
LastSwitched : 00 08:27:47:572
ByteCount : 5580
PacketCount : 90
Dir : Ing
SamplerID : 1
IPv6SrcAddr : 50::1
IPv6DstAddr : 40::1
IPv6TC : 0
IPv6FlowLabel : 0
IPv6OptHdrs : 0x0
IPV6Prot : udp
L4SrcPort : 2025
L4DestPort : 2500
L4TCPFlags : 0
IPV6SrcPrfxLen : 64
IPV6DstPrfxLen : 64
BGPNextHopV4 : 0.0.0.0
BGPNextHopV6 : ::ffff:192.168.10.10
BGPSrcOrigAS : 2000
BGPDstOrigAS : 1000
IPV4NextHop : 192.168.10.10
IPV6NextHop : ::
MinimumTTL : 195
MaximumTTL : 205
InputVRFID : default
OutputVRFID : default
Note
Starting from Cisco IOS XR Software Release 25.2.1, when processing the ICMP Layer 4 header, the destination port is determined based on the ICMPv6 message type, instead of being set to zero. This behavior is specific to ICMPv6 and does not apply to ICMP for IPv4.
For example, in the following output, the L4DestPort value corresponds to ICMPv6 Msg Type 3 (Time Exceeded). For more information, refer to https://www.iana.org/assignments/icmpv6-parameters/icmpv6-parameters.xhtml#icmpv6-parameters-codes-4.
IPv6SrcAddr : 1700::2
IPv6DstAddr : 1800::2
BGPDstOrigAS : 0
BGPSrcOrigAS : 0
BGPNextHopV6 : fcbb:bb00:3::
IPv6TC : 8
IPv6FlowLabel : 4
IPv6OptHdrs : 0x0
IPV6Prot : icmpv6
MinimumTTL : 120
MaximumTTL : 120
L4SrcPort : 0
L4DestPort : 3
L4TCPFlags : 0
IPV6DstPrfxLen : 64
IPV6SrcPrfxLen : 128
InputInterface : Hu0/0/0/1
OutputInterface : Hu0/0/0/0
ForwardStatus : Fwd
BGPNextHopV4 : 0.0.0.0
IPV4NextHop : 0.0.0.0
IPV6NextHop : ::
FirstSwitched : 04 02:36:55:363
LastSwitched : 04 02:37:19:963
ByteCount : 25190
PacketCount : 229
Dir : Ing
SamplerID : 4
SrcMacAddr : 00:ca:ff:ee:00:01
DstMacAddr : 04:00:00:07:1d:04
EthType : 34525
Dot1qPriority : 0
Dot1qVlanId : 0
CustVlanId : 0
InputVRFID : vrf_1
OutputVRFID : default
Feature History Table:
Table 3.
Feature History Table
| Feature Name |
Release Information |
Description |