Example for Configuring iPCA to Implement Packet Loss Measurement on a Direct Link
Networking Requirements
In Figure 5-22, Switch_1, Switch_2, and Switch_3 are deployed on an enterprise network. The network-level packet loss measurement has been configured on the network, and the network administrator has known that packet loss occurred. To locate the packet loss point, the administrator wants to configure iPCA to implement packet loss measurement for direct links.
Configuration Roadmap
Enable packet loss measurement for direct links on the interface at two ends of the link and configure the packet loss alarm so that you can know packet loss in a timely manner.
Retain the default values of color bit and measurement interval.
Before configuring packet loss measurement for direct links, ensure that the NTP protocol has been configured to implement time synchronization between the directly connected devices.
The packet loss measurement configurations for the links between Switch_2 and Switch_3 and between Switch_1 and Switch_2 are the same. This example uses the link between Switch_1 and Switch_2 to describe the configuration procedure.
Procedure
- Configure Switch_1.
<HUAWEI> system-view [HUAWEI] sysname Switch_1 [Switch_1] interface gigabitethernet 1/0/1 [Switch_1-GigabitEthernet1/0/1] iplpm link loss-measure alarm enable [Switch_1-GigabitEthernet1/0/1] iplpm link loss-measure enable [Switch_1-GigabitEthernet1/0/1] quit [Switch_1] quit
- Configure Switch_2.
<HUAWEI> system-view [HUAWEI] sysname Switch_2 [Switch_2] interface gigabitethernet 1/0/1 [Switch_2-GigabitEthernet1/0/1] iplpm link loss-measure alarm enable [Switch_2-GigabitEthernet1/0/1] iplpm link loss-measure enable [Switch_2-GigabitEthernet1/0/1] quit [Switch_2] quit
- Verify the configuration.
# Run the display iplpm loss-measure statistics interface command on Switch_1 and Switch_2 to view packet loss measurement results.
Switch_1 is used as an example here. The values of Loss Packets and LossRatio show whether packet loss occurs in the backward flows on GE1/0/1 of Switch_1.
<Switch_1> display iplpm loss-measure statistics interface gigabitethernet 1/0/1 Latest forward loss statistics of interface GigabitEthernet1/0/1: -------------------------------------------------------------------------------- StartTime(DST) Forward Loss Packets Forward LossRatio ErrorInfo -------------------------------------------------------------------------------- 2014-06-12 18:47:30 0 0.000000% OK 2014-06-12 18:47:20 0 0.000000% OK 2014-06-12 18:47:10 0 0.000000% OK 2014-06-12 18:47:00 0 0.000000% OK 2014-06-12 18:46:50 0 0.000000% OK 2014-06-12 18:46:40 0 0.000000% OK -------------------------------------------------------------------------------- Latest backward loss statistics of interface GigabitEthernet1/0/1: -------------------------------------------------------------------------------- StartTime(DST) Backward Loss Packets Backward LossRatio ErrorInfo -------------------------------------------------------------------------------- 2014-06-12 18:47:30 344127 4.513519% OK 2014-06-12 18:47:20 381085 4.513196% OK 2014-06-12 18:47:10 381192 4.513290% OK 2014-06-12 18:47:00 381339 4.513392% OK 2014-06-12 18:46:50 381465 4.513351% OK 2014-06-12 18:46:40 381444 4.513341% OK --------------------------------------------------------------------------------
Configuration Files
Switch_1 configuration file
# sysname Switch_1 # interface GigabitEthernet1/0/1 iplpm link loss-measure alarm enable iplpm link loss-measure enable # return
Switch_2 configuration file
# sysname Switch_2 # interface GigabitEthernet1/0/1 iplpm link loss-measure alarm enable iplpm link loss-measure enable # return