Example for Configuring Two-Way Frame Delay Measurement in EVPN Networking

This section provides an example showing how to configure two-way frame delay measurement in EVPN networking.

Networking Requirements

As shown in Figure 1, connectivity fault management (CFM) is configured between each customer edge (CE) and provider edge (PE) and between PEs. To provide high-quality video services, providers hope to monitor the bidirectional delay over mobile bearer links in real time, while monitoring link connectivity. Monitoring the bidirectional delay over mobile bearer links allows the providers to respond quickly to video service quality deterioration.

Figure 1 Networking diagram for configuring Y.1731 function on an 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 two-way frame delay measurement to periodically collect statistics about the delay in frame transmission

  2. Configure proactive two-way frame delay measurement to continuously collect statistics about the delay in frame transmission.

Data Preparation

To complete the configuration, you need the following data:

  • Configure the name of EVPN instance of PE and RT, RD.

  • Configure the names of the MD and MA between PE1 and PE2 and between CE1 and PE1.

  • The CE device interface VLAN ID.

  • Interval at which delay measurement messages (DMMs) are sent and the number of times when on-demand DMMs are sent.

Procedure

  1. Configure on-demand two-way frame delay measurement.

    1. Configure an EVPN connection.

      Configure an EVPN connection between PE1 and PE2. The configuration details are not provided here. For details, see the EVPN Configuration or configuration files in this configuration example.

    2. Configure basic Ethernet CFM functions and specify the MEP type as inward.

      Configure basic Ethernet CFM functions on each PE. 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 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 inward
      [*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 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 2 interface gigabitethernet0/1/1 inward
      [*PE2-md-md1-ma-ma1] mep ccm-send mep-id 2 enable
      [*PE2-md-md1-ma-ma1] remote-mep mep-id 1
      [*PE2-md-md1-ma-ma1] remote-mep ccm-receive mep-id 1 enable
      [*PE2-md-md1-ma-ma1] test-id 1 mep 2
      [*PE2-md-md1-ma-ma1] commit
    3. Configure the DMM reception function on PE2.

      # Configure PE2.

      [*PE2-md-md1-ma-ma1] delay-measure two-way receive test-id 1
      [*PE2-md-md1-ma-ma1] quit
      [*PE2-md-md1] quit
      [*PE2] commit
    4. Enable on-demand two-way frame delay measurement on the EVPN network.

      # Configure PE1.

      [*PE1-md-md1-ma-ma1] delay-measure two-way send test-id 1 interval 1000 count 20
      [*PE1-md-md1-ma-ma1] quit
      [*PE1-md-md1] quit
      [*PE1] commit
    5. Verify the configuration.

      Run the display y1731 statistic-type command on PE1 to view the statistics about the delay in bidirectional frame transmission.

      [~PE1] display y1731 statistic-type twoway-delay
      Latest two-way delay statistics of test-id 1:
      --------------------------------------------------------------------------------
      Index    Delay(usec)    Delay variation(usec)
      --------------------------------------------------------------------------------
          1            422                        -
          2            320                      102
          3            467                      147
          4            309                      158
          5            328                       19
          6            316                       12
          7            336                       20
          8            282                       54
          9            421                      139
         10            287                      134
         11            322                       35
         12            446                      124
         13            275                      171
         14            291                       16
         15            341                       50
      --------------------------------------------------------------------------------
      Average delay(usec) :        344    Average delay variation(usec) :         84
      Maximum delay(usec) :        467    Maximum delay variation(usec) :        171
      Minimum delay(usec) :        275    Minimum delay variation(usec) :         12
      
      

  2. Configure proactive two-way frame delay measurement.

    Proactive two-way frame delay measurement can be configured to continuously monitor the performance.

    1. Configure the test instance.

      # Configure PE1.

      [~PE1] cfm md md1
      [*PE1-md-md1] ma ma1
      [*PE1-md-md1-ma-ma1] test-id 2 mep 1
      [*PE1-md-md1-ma-ma1] delay-measure two-way receive test-id 2
      [*PE1-md-md1-ma-ma1] quit
      [*PE1-md-md1] quit
      [*PE1] commit

      # Configure PE2.

      [~PE2] cfm md md1
      [*PE2-md-md1] ma ma1
      [*PE2-md-md1-ma-ma1] test-id 2 mep 2 remote-mep 1
      [*PE2-md-md1-ma-ma1] quit
      [*PE2-md-md1] quit
      [*PE2] commit
    2. Enable proactive two-way frame delay measurement.

      # Configure PE2.

      [~PE2] cfm md md1
      [*PE2-md-md1] ma ma1
      [*PE2-md-md1-ma-ma1] test-id 2 mep 2 remote-mep 1
      [*PE2-md-md1-ma-ma1] delay-measure two-way continual send test-id 2 interval 30000
      [*PE2-md-md1-ma-ma1] quit
      [*PE2-md-md1] quit
      [*PE2] commit
    3. Verify the configuration.

      Run the display y1731 statistic-type command on PE2 to view the statistics about the delay in bidirectional frame transmission.

      [~PE2] display y1731 statistic-type twoway-delay
      Latest two-way delay statistics of test-id 2:
      --------------------------------------------------------------------------------
      Index    Delay(usec)    Delay variation(usec)
      --------------------------------------------------------------------------------
          1            322                        -
          2            430                      108
      --------------------------------------------------------------------------------
      Average delay(usec) :        376    Average delay variation(usec) :        108
      Maximum delay(usec) :        430    Maximum delay variation(usec) :        108
      Minimum delay(usec) :        322    Minimum delay variation(usec) :        108

Configuration file

  • 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
      undo shutdown
      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 inward
      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
      test-id 2 mep 1
      delay-measure two-way 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
      undo shutdown
      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 2 interface GigabitEthernet0/1/1 inward
      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
      delay-measure two-way receive test-id 1
      test-id 2 mep 2 remote-mep 1
      delay-measure two-way continual send test-id 2 interval 30000
    #
    return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >