This section provides an example for configuring single-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, CFM is configured between each PE and its attached CE. CCMs are not used to monitor link connectivity, preventing them from consuming a lot of bandwidth resources. To provide higher-quality voice services, the carrier wants to monitor frame loss performance on mobile transport links in real time so that they can promptly respond to video service quality deterioration.
Configure on-demand single-ended frame loss measurement for the AC between PE1 and its attached CE to collect frame loss statistics.
Configure proactive single-ended frame loss measurement for the AC between PE2 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 an LMM is sent and the number of times that an LMM is sent in on-demand single-ended frame loss measurement
Configure EVPN functions.
Configure an EVPN connection between PE1 and PE2. For details, see the EVPN Configuration or Configuration Files in this configuration example.
Configure basic Ethernet CFM functions and specify the MEP type as outward.
Configure basic Ethernet CFM functions on CE1 and PE1. Specify the Ethernet CFM protocol as IEEE Standard 802.1ag-2007. Create an MD named md1 and an MA named ma1, and bind the MA to the EVPN instance.
# 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
Enable CE1 to receive LMMs.
# Configure CE1.
[~CE1-md-md1-ma-ma2] loss-measure single-ended receive test-id 1 [*CE1-md-md1-ma-ma2] quit [*CE1-md-md1] quit [*CE1] commit
Enable on-demand single-ended frame loss measurement in EVPN networking.
# Configure PE1.
[~PE1-md-md1-ma-ma1] loss-measure single-ended send test-id 1 interval 1000 count 20 [*PE1-md-md1-ma-ma1] quit [*PE1-md-md1] quit
Verify the configuration.
After completing the configuration, run the display y1731 statistic-type command on PE1 to view statistics about single-ended frame loss.
[~PE1] display y1731 statistic-type single-loss
Latest single-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%
--------------------------------------------------------------------------------
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%
To continuously collect statistics about frame loss on an AC between a CE and PE, configure proactive single-ended frame loss measurement.
Configure basic Ethernet CFM functions and specify the MEP type as outward.
Configure basic Ethernet CFM functions on CE2 and PE2. Specify the Ethernet CFM protocol as IEEE Standard 802.1ag-2007. Create an MD named md1 and an MA named ma1, and bind the MA to the EVPN instance.
# 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-ma1] map vlan 2 [*CE2-md-md1-ma-ma1] mep mep-id 4 interface gigabitethernet0/1/1 outward [*CE2-md-md1-ma-ma1] mep ccm-send mep-id 4 enable [*CE2-md-md1-ma-ma1] remote-mep mep-id 3 [*CE2-md-md1-ma-ma1] remote-mep ccm-receive mep-id 3 enable [*CE2-md-md1-ma-ma1] test-id 2 mep 4 [*CE2-md-md1-ma-ma1] commit
# Configure PE2.
<HUAWEI> system-view [~HUAWEI] sysname PE2 [*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
Enable CE2 to receive LMMs.
# Configure CE2.
[~CE2] cfm md md1 [*CE2-md-md1] ma ma1 [*CE2-md-md1-ma-ma1] loss-measure single-ended receive test-id 2 [*CE2-md-md1-ma-ma1] quit [*CE2-md-md1] quit [*CE2] commit
Enable proactive single-ended frame loss measurement in EVPN networking.
# Configure PE2.
[~PE2] cfm md md1 [*PE2-md-md1] ma ma1 [*PE2-md-md-ma-ma1] loss-measure single-ended continual send test-id 2 interval 30000 [*PE2-md-md1-ma-ma1] quit [*PE2-md-md1] quit [*PE2] commit
Verify the configuration.
After completing the configuration, run the display y1731 statistic-type command on PE2 to view statistics about single-ended frame loss.
[~PE2] display y1731 statistic-type single-loss
Latest single-ended loss statistics of test-id 2:
--------------------------------------------------------------------------------
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%
11 0 0.0000% 0 0.0000%
12 0 0.0000% 0 0.0000%
13 0 0.0000% 0 0.0000%
14 0 0.0000% 0 0.0000%
15 0 0.0000% 0 0.0000%
16 0 0.0000% 0 0.0000%
17 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 single-ended receive 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 single-ended send test-id 1 interval 1000 count 20 # 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 single-ended receive 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 3 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 2 loss-measure single-ended continual send test-id 2 interval 30000 # return