This section provides an example for configuring one-way frame delay measurement when an L2VPN is connected to an L3VPN.
As networks continue to develop and diversify, various value-added services such as IPTV, video conferencing, and VoIP are becoming increasingly popular. The performance monitoring function can be used to check the performance of links that transmit services.
In Figure 1, CFM is configured to monitor the link between CE1 and PE3. CCMs are not expected to monitor link connectivity because the CCMs consume a lot of bandwidth resources. To meet higher requirements for voice services, a carrier needs a function to monitor frame loss performance on mobile links in real time and make prompt responses to calling performance deterioration. In this situation, one-way frame delay measurement can be configured.
A VLAN dot1q sub-interface, dot1q termination sub-interface, QinQ termination sub-interface, or L3VE interface on an L2VPN can be connected to an L3VPN. In this example, a VLAN dot1q sub-interface is used.
To complete the configuration, you need the following data:
MD name and MA name on CE1 and PE3
Interval at which DMMs are sent and number of intervals
Configure basic Ethernet CFM functions on CE1 and PE3. Configure Ethernet CFM in compliance with IEEE Std 802.1ag-2007. Create an MD named md3 and an MA named ma3.
# Configure CE1.
<HUAWEI> system-view [~HUAWEI] sysname CE1 [*HUAWEI] commit [*CE1] interface gigabitethernet0/1/17.1 [*CE1-GigabitEthernet0/1/17.1] vlan-type dot1q 200 [*CE1-GigabitEthernet0/1/17.1] commit [*CE1-GigabitEthernet0/1/17.1] quit [~CE1] cfm enable [*CE1] cfm md md3 [*CE1-md-md3] ma ma3 [*CE1-md-md3-ma-ma3] mep mep-id 3 interface gigabitethernet0/1/17.1 vlan 200 outward [*CE1-md-md3-ma-ma3] mep ccm-send mep-id 3 enable [*CE1-md-md3-ma-ma3] remote-mep mep-id 4 [*CE1-md-md3-ma-ma3] remote-mep ccm-receive mep-id 4 enable [*CE1-md-md3-ma-ma3] test-id 1 mep 3 remote-mep 4 [*CE1-md-md3-ma-ma3] commit
# Configure PE3.
<HUAWEI> system-view [~HUAWEI] sysname PE3 [*HUAWEI] commit [*PE3-GigabitEthernet0/1/17.1] vlan-type dot1q 200 [*PE3-GigabitEthernet0/1/17.1] commit [*PE3-GigabitEthernet0/1/17.1] quit [*PE3] commit [*PE3] cfm enable [*PE3] cfm commit [*PE3] cfm md md3 [*PE3-md-md3] ma ma3 [*PE3-md-md3-ma-ma3] mep mep-id 4 interface gigabitethernet0/1/17.1 vlan 200 outward [*PE3-md-md3-ma-ma3] mep ccm-send mep-id 4 enable [*PE3-md-md3-ma-ma3] remote-mep mep-id 3 [*PE3-md-md3-ma-ma3] remote-mep ccm-receive mep-id 3 enable [*PE3-md-md3-ma-ma3] test-id 1 mep 4 [*PE3-md-md3-ma-ma3] commit
# Configure PE3.
[~PE3-md-md3-ma-ma3] delay-measure one-way receive test-id 1 [*PE3-md-md3-ma-ma3] quit [*PE3-md-md3] quit [*PE3] commit
# Configure CE1.
[~CE1-md-md3-ma-ma3] delay-measure one-way send test-id 1 interval 1000 count 10 [*CE1-md-md3-ma-ma3] quit [*CE1-md-md3] quit
After completing the configuration, run the display y1731 statistic-type command to view one-way frame delay statistics on PE3.
<PE3> display y1731 statistic-type oneway-delay Latest one-way delay statistics of test-id 1: ------------------------------------------------------------------------------------------------- Index Delay(usec) Delay variation(usec) ------------------------------------------------------------------------------------------------- 1 94 - 2 98 4 3 46 52 4 96 50 5 57 39 6 95 38 7 91 4 8 48 43 9 98 50 10 55 43 ------------------------------------------------------------------------------------------------- Average delay(usec) : 77 Average delay variation(usec) : 35 Maximum delay(usec) : 98 Maximum delay variation(usec) : 52 Minimum delay(usec) : 46 Minimum delay variation(usec) : 4
CE1 configuration file
# sysname CE1 # interface GigabitEthernet0/1/17.1 vlan-type dot1q 200 # cfm version standard cfm enable # cfm md md3 ma ma3 mep mep-id 3 interface GigabitEthernet0/1/17.1 vlan 200 outward mep ccm-send mep-id 3 enable remote-mep mep-id 4 remote-mep ccm-receive mep-id 4 enable test-id 1 mep 3 remote-mep 4 # return
PE3 configuration file
# sysname PE3 # interface GigabitEthernet0/1/17.1 vlan-type dot1q 200 # cfm version standard cfm enable # cfm md md3 ma ma3 mep mep-id 4 interface GigabitEthernet0/1/17.1 vlan 200 outward mep ccm-send mep-id 4 enable remote-mep mep-id 3 remote-mep ccm-receive mep-id 3 enable test-id 1 mep 4 delay-measure one-way receive test-id 1 # return