Collect Additional BGP Information Elements for MPLS IPv4 and IPV6 Using IPFIX
Feature Name |
Release Information |
Feature Description |
---|---|---|
Collect Additional BGP Information Elements for MPLS IPv4 and IPV6 Using IPFIX |
Release 24.1.1 |
You can now collect insights into how MPLS traffic is flowing through the network, assess the performance of your traffic
engineering policies and make informed adjustments, pinpoint where in your MPLS network packets are being misrouted or dropped
for swift troubleshooting, and also enable accurate billing for your users' customers because of insights into accurate resource
usage. This is made possible because we have enabled the collection of BGP information elements for MPLS IPv4 and IPv6 traffic
using IPFIX.
This feature modifies the output of the show flow monitor command. |
You can now monitor and optimize your network more effectively with IPFIX, which enhances the collection of BGP Information Elements (IEs) in IPFIX records. Specifically designed to improve congestion mitigation in core-edge link scenarios, this update introduces support for gathering eight additional BGP fields in IPFIX MPLS IPv4/IPv6 records.
Additionally, two new Information Elements, namely Minimum Time-to-Live (TTL) and Maximum TTL, are recorded. These elements provide information about the minimum Time to Live for a flow and the maximum Time to Live for a flow.
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 |
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 IP Flow Information Export (IPFIX) Entities.
Configuration
The following example shows how to 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
Verify the flow monitor stats statistics using the show flow monitor cache location command .
Router#show flow monitor mpls-1 cache summary location 0/0/CPU0========== Record number: 1 ==========
========== 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 |
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). See https://www.iana.org/assignments/icmpv6-parameters/icmpv6-parameters.xhtml#icmpv6-parameters-codes-4
|