Example for Configuring Single-ended Frame Loss Measurement in BD EVPN Networking

This section provides an example for configuring single-ended frame loss measurement in BD EVPN networking.

Networking Requirements

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.

As shown in Figure 1, PE1 and PE2 are connected through an EVPN, and CE1 and CE2 are connected to the EVPN through a BD. 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, a carrier expects to monitor frame loss performance on mobile transport links in real time so that they can promptly respond to calling service quality deterioration.

Figure 1 Configuring single-ended frame loss measurement in BD EVPN networking

Interfaces 1 and 2 in this example represent GE 0/1/1 and GE 0/1/2, respectively.


Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure on-demand single-ended frame loss measurement for the service path between PE1 and CE1 to collect frame loss statistics.

  2. Configure proactive single-ended frame loss measurement for the service path between PE2 and CE2 to continuously collect frame loss statistics.

Data Preparation

To complete the configuration, you need the following data:

  • ID of the VLAN to which each CE interface belongs
  • EVPN instance name (evpna), RT value, and RD value configured on each PE
  • 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 and the number of times that an LMM is sent in on-demand single-ended frame loss measurement

Procedure

  1. Configure on-demand single-ended frame loss measurement for the service path between PE1 and CE1.

    1. Configure access to an EVPN through a BD.

      An EVPN is configured between PE1 and PE2. CE1 and CE2 access the EVPN network through a BD. For details, see the Configuring BD-EVPN Functions or configuration files in this configuration example.

    2. 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] undo shutdown
      [*CE1-GigabitEthernet0/1/1] port trunk allow-pass 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 bridge-domain 10
      [*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
    3. Enable CE1 to receive LMMs.

      # CE1

      [~CE1-md-md1-ma-ma1] loss-measure single-ended receive test-id 1
      [*CE1-md-md1-ma-ma1] quit
      [*CE1-md-md1] quit
      [*CE1] commit
    4. Enable on-demand single-ended frame loss measurement in BD 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
    5. Verify the configuration.

      Run the display y1731 statistic-type command on PE1 to check single-end frame loss statistics.

      [~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%  

  2. Configure proactive single-ended frame loss measurement for the service path between PE2 and CE2.

    To continuously collect statistics about frame loss on a link, configure proactive single-ended frame loss measurement for the service path between a PE and CE.

    1. 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] undo shutdown
      [*CE2-GigabitEthernet0/1/1] port trunk allow-pass 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 bridge-domain 10
      [*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
    2. 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
    3. Enable proactive single-ended frame loss measurement in BD EVPN networking.

      # Configure PE2.

      [~PE2] cfm md md1
      [*PE2-md-md1] ma ma1
      [*PE2-md-md1-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
    4. Verify the configuration.

      After completing the configuration, run the display y1731 statistic-type command on PE2 to check 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%

Configuration Files

  • 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 bd-mode
      route-distinguisher 100:1
      vpn-target 1:1 export-extcommunity
      vpn-target 1:1 import-extcommunity
     #
     bridge-domain 10 
      evpn binding vpn-instance evpna
     #
     interface GigabitEthernet0/1/1.1 mode l2
      encapsulation dot1q vid 2
      rewrite pop single
      bridge-domain 10
    #
     cfm md md1
     ma ma1
      map bridge-domain 10
      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 bd-mode
      route-distinguisher 200:1
      vpn-target 1:1 export-extcommunity
      vpn-target 1:1 import-extcommunity
    #
     bridge-domain 10 
      evpn binding vpn-instance evpna
     #
     interface GigabitEthernet0/1/1.1 mode l2
      encapsulation dot1q vid 2
      rewrite pop single
      bridge-domain 10
     #
     cfm md md1
      ma ma1
      map bridge-domain 10
      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 4
      loss-measure single-ended continual send test-id 2 interval 30000
    #
    return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >