This section provides an example for configuring dual-ended frame loss measurement in EVPN networking.
As networks rapidly develop and applications diversify, various value-added services, such as IPTV, video conferencing, and VoIP, are widely deployed. A link connectivity fault or network performance deterioration directly affects services on a live network. Therefore, performance monitoring is especially important for service transport.
On the network shown in Figure 1, MAC address learning is configured between each PE and its attached CE. To provide high-quality audio services, the carrier wants to monitor frame loss performance on mobile transport links in real time while monitoring link connectivity so that they can promptly respond to video service quality deterioration.
The configuration roadmap is as follows:
Configure dual-ended frame loss measurement for the AC between each PE and its attached CE to collect frame loss statistics.
To complete the configuration, you need the following data:
Names of the MD and MA on CE1 and PE1 and on CE2 and PE2 when basic CFM functions are configured
Interval at which LMMs are sent
Configure basic Ethernet CFM functions on the CEs and PEs. Specify the Ethernet CFM protocol as IEEE Standard 802.1ag-2007. Create an MD named md1 and an MA named ma1.
# Configure CE1.
<HUAWEI> system-view [~HUAWEI] sysname CE1 [*HUAWEI] commit [~CE1] interface gigabitethernet0/1/1 [~CE1-GigabitEthernet0/1/1] portswitch [*CE1-GigabitEthernet0/1/1] port default vlan 2 [*CE1-GigabitEthernet0/1/1] quit [*CE1] cfm enable [*CE1] cfm md md1 [*CE1-md-md1] ma ma1 [*CE1-md-md1-ma-ma1] map vlan 2 [*CE1-md-md1-ma-ma1] mep mep-id 2 interface gigabitethernet0/1/1 outward [*CE1-md-md1-ma-ma1] mep ccm-send mep-id 2 enable [*CE1-md-md1-ma-ma1] remote-mep mep-id 1 [*CE1-md-md1-ma-ma1] remote-mep ccm-receive mep-id 1 enable [*CE1-md-md1-ma-ma1] test-id 1 mep 2 [*CE1-md-md1-ma-ma1] commit
# Configure PE1.
<HUAWEI> system-view [~HUAWEI] sysname PE1 [*HUAWEI] commit [~PE1] cfm enable [*PE1] commit [~PE1] cfm md md1 [*PE1-md-md1] ma ma1 [*PE1-md-md1-ma-ma1] map evpn vpn-instance evpna [*PE1-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet0/1/1.1 outward [*PE1-md-md1-ma-ma1] mep ccm-send mep-id 1 enable [*PE1-md-md1-ma-ma1] remote-mep mep-id 2 [*PE1-md-md1-ma-ma1] remote-mep ccm-receive mep-id 2 enable [*PE1-md-md1-ma-ma1] test-id 1 mep 1 remote-mep 2 [*PE1-md-md1-ma-ma1] commit
# Configure CE2.
<HUAWEI> system-view [~HUAWEI] sysname CE2 [*HUAWEI] commit [~CE2] interface gigabitethernet0/1/1 [~CE2-GigabitEthernet0/1/1] portswitch [*CE2-GigabitEthernet0/1/1] port default vlan 2 [*CE2-GigabitEthernet0/1/1] quit [*CE2] cfm enable [*CE2] cfm md md1 [*CE2-md-md1] ma ma1 [*CE2-md-md1-ma-ma2] map vlan 2 [*CE2-md-md1-ma-ma2] mep mep-id 4 interface gigabitethernet0/1/1 outward [*CE2-md-md1-ma-ma2] mep ccm-send mep-id 4 enable [*CE2-md-md1-ma-ma2] remote-mep mep-id 3 [*CE2-md-md1-ma-ma2] remote-mep ccm-receive mep-id 3 enable [*CE2-md-md1-ma-ma2] test-id 2 mep 4 [*CE2-md-md1-ma-ma2] commit
# Configure PE2.
<HUAWEI> system-view [~HUAWEI] sysname PE1 [*HUAWEI] commit [~PE2] cfm enable [*PE2] commit [~PE2] cfm md md1 [*PE2-md-md1] ma ma1 [*PE2-md-md1-ma-ma1] map evpn vpn-instance evpna [*PE2-md-md1-ma-ma1] mep mep-id 3 interface gigabitethernet0/1/1.1 outward [*PE2-md-md1-ma-ma1] mep ccm-send mep-id 3 enable [*PE2-md-md1-ma-ma1] remote-mep mep-id 4 [*PE2-md-md1-ma-ma1] remote-mep ccm-receive mep-id 4 enable [*PE2-md-md1-ma-ma1] test-id 2 mep 3 remote-mep 4 [*PE2-md-md1-ma-ma1] commit
# Configure CE1.
[~CE1-md-md1-ma-ma1] loss-measure dual-ended continual test-id 1 [*CE1-md-md1-ma-ma1] quit [*CE1-md-md1] quit [*CE1] commit
# Configure PE1.
[~PE1-md-md1-ma-ma1] loss-measure dual-ended continual test-id 1 [*PE1-md-md3-ma-ma1] quit [*PE1-md-md1] quit [*PE1] commit
# Configure CE2.
[~CE2-md-md1-ma-ma1] loss-measure dual-ended continual test-id 2 [*CE2-md-md1-ma-ma1] quit [*CE2-md-md1] quit [*CE2] commit
# Configure PE2.
[~PE2-md-md1-ma-ma1] loss-measure dual-ended continual test-id 2 [*PE2-md-md1-ma-ma1] quit [*PE2-md-md1] quit [*PE2] commit
After completing the configuration, run the display y1731 statistic-type command on CE1 to view statistics about dual-ended frame loss.
<CE1> display y1731 statistic-type dual-loss Latest dual-ended loss statistics of test-id 1: -------------------------------------------------------------------------------- Index Local-loss Local-loss ratio Remote-loss Remote-loss ratio -------------------------------------------------------------------------------- 1 0 0.0000% 0 0.0000% 2 0 0.0000% 0 0.0000% 3 0 0.0000% 0 0.0000% 4 0 0.0000% 0 0.0000% 5 0 0.0000% 0 0.0000% 6 0 0.0000% 0 0.0000% 7 0 0.0000% 0 0.0000% 8 0 0.0000% 0 0.0000% 9 0 0.0000% 0 0.0000% 10 0 0.0000% 0 0.0000% -------------------------------------------------------------------------------- Average Local-loss : 0 Average Local-loss Ratio : 0.0000% Maximum Local-loss : 0 Maximum Local-loss Ratio : 0.0000% Minimum Local-loss : 0 Minimum Local-loss Ratio : 0.0000% Average Remote-loss : 0 Average Remote-loss Ratio : 0.0000% Maximum Remote-loss : 0 Maximum Remote-loss Ratio : 0.0000% Minimum Remote-loss : 0 Minimum Remote-loss Ratio : 0.0000%
CE1 configuration file
# sysname CE1 # vlan batch 2 # cfm version standard cfm enable # interface GigabitEthernet0/1/1 portswitch undo shutdown port trunk allow-pass vlan 2 # cfm md md1 ma ma1 map vlan 2 mep mep-id 2 interface GigabitEthernet0/1/1 outward mep ccm-send mep-id 2 enable remote-mep mep-id 1 remote-mep ccm-receive mep-id 1 enable test-id 1 mep 2 loss-measure dual-ended continual test-id 1 # return
PE1 configuration file
# sysname PE1 # cfm enable # evpn vpn-instance evpna route-distinguisher 100:1 vpn-target 1:1 export-extcommunity vpn-target 1:1 import-extcommunity # mpls lsr-id 1.1.1.1 # mpls # mpls ldp # ipv4-family # interface GigabitEthernet0/1/1.1 undo shutdown vlan-type dot1q 2 evpn binding vpn-instance evpna # interface GigabitEthernet0/1/2 undo shutdown ip address 10.1.1.1 255.255.255.0 mpls mpls ldp # interface LoopBack0 ip address 1.1.1.1 255.255.255.255 # bgp 100 peer 2.2.2.2 as-number 100 peer 2.2.2.2 connect-interface LoopBack0 # ipv4-family unicast undo synchronization peer 2.2.2.2 enable # l2vpn-family evpn peer 2.2.2.2 enable # ospf 1 area 0.0.0.0 network 1.1.1.1 0.0.0.0 network 10.1.1.0 0.0.0.255 # evpn source-address 1.1.1.1 # cfm md md1 ma ma1 map evpn vpn-instance evpna mep mep-id 1 interface GigabitEthernet0/1/1.1 outward mep ccm-send mep-id 1 enable remote-mep mep-id 2 remote-mep ccm-receive mep-id 2 enable test-id 1 mep 1 remote-mep 2 loss-measure dual-ended continual test-id 1 # return
CE2 configuration file
# sysname CE2 # vlan batch 2 # cfm version standard cfm enable # interface GigabitEthernet0/1/1 portswitch undo shutdown port trunk allow-pass vlan 2 # cfm md md1 ma ma1 map vlan 2 mep mep-id 4 interface GigabitEthernet0/1/1 outward mep ccm-send mep-id 4 enable remote-mep mep-id 3 remote-mep ccm-receive mep-id 3 enable test-id 2 mep 4 loss-measure dual-ended continual test-id 2 # return
PE2 configuration file
# sysname PE2 # cfm enable # evpn vpn-instance evpna route-distinguisher 200:1 vpn-target 1:1 export-extcommunity vpn-target 1:1 import-extcommunity # mpls lsr-id 2.2.2.2 # mpls # mpls ldp # ipv4-family # interface GigabitEthernet0/1/1.1 undo shutdown vlan-type dot1q 2 evpn binding vpn-instance evpna # interface GigabitEthernet0/1/2 undo shutdown ip address 10.2.1.1 255.255.255.0 mpls mpls ldp # interface LoopBack0 ip address 2.2.2.2 255.255.255.255 # bgp 100 peer 1.1.1.1 as-number 100 peer 1.1.1.1 connect-interface LoopBack0 # ipv4-family unicast undo synchronization peer 1.1.1.1 enable # l2vpn-family evpn peer 1.1.1.1 enable # ospf 1 area 0.0.0.0 network 2.2.2.2 0.0.0.0 network 10.2.1.0 0.0.0.255 # evpn source-address 2.2.2.2 # cfm md md1 ma ma1 map evpn vpn-instance evpna mep mep-id 1 interface GigabitEthernet0/1/1.1 outward mep ccm-send mep-id 3 enable remote-mep mep-id 4 remote-mep ccm-receive mep-id 4 enable test-id 2 mep 3 remote-mep 4 loss-measure dual-ended continual test-id 2 # return