Collecting packet statistics on MPLS networks helps you monitor MPLS network status.
On the network shown in Figure 1, a carrier enables NetStream on the router functioning as a NetStream Data Exporter (NDE) to obtain detailed network application information. The carrier can use the information to monitor abnormal network traffic, analyze users' operation modes, and plan networks between ASs.
If statistics about MPLS packets are collected on the P, the P sends statistics to inform the NetStream Collector (NSC) of the MPLS label-specific traffic volume.
Before collecting statistics about MPLS IPv4 packets, enable MPLS on the device and interfaces and configure the MPLS network.
The system view is displayed.
MPLS original and aggregated flows can be output in V9 or IPFIX format.
Statistics about original flows
Run ip netstream mpls-aware { label-only | ip-only | label-and-ip }
Statistics collection of MPLS packets is enabled.
One of the following parameters can be configured to sample MPLS packets:
label-only: The device samples only MPLS labels, not inner IP packets.
ip-only: The device samples only inner IP packets, not MPLS labels.
label-and-ip: The device samples both MPLS labels and inner IP packets.
Statistics about aggregated flows
Run system-view
The system view is displayed.
The NetStream aggregation view is displayed.