< Home

Example for Configuring the PWE3 Ping Test on a Multi-Hop PW

Networking Requirements

In Figure 1, CE-A and CE-B are connected to U-PE1 and U-PE2 respectively through VLAN. U-PE1 and U-PE2 are connected through the MPLS backbone network. The LSP needs to be used and S-PE is set as the switching node to set up a dynamic multi-hop PW between U-PE1 and U-PE2.

The PWE3 Ping function of the multi-hop PW needs to be performed to test the connectivity of the PW between U-PE1 and U-PE2.

Figure 1 Networking diagram for configuring the PWE3 Ping test on a multi-hop PW

Configuration Roadmap

The configuration roadmap is as follows:

  1. Run the IGP protocol on the backbone network to make the routes between Switches on the backbone network reachable.

  2. Configure the basic MPLS functions on the backbone network and set up an LSP tunnel. Set up MPLS LDP peer relations between U-PE1 and S-PE, and between U-PE2 and S-PE.

  3. Create an MPLS L2VC connection between the two U-PEs.

  4. Create a switching PW on the switching node S-PE.

  5. Configure a PWE3 Ping test on the multi-hop PW on U-PE1.

Procedure

  1. Configure a dynamic multi-hop PW.

    Configure a dynamic multi-hop PW on the MPLS backbone network. For the detailed configuration procedure, see PWE3 Configuration in the S2720, S5700, and S6700 V200R019C10 Configuration Guide - VPN.

  2. Configure a PWE3 Ping test on a multi-hop PW.

    # Configure U-PE1.

    <HUAWEI> system-view
    [HUAWEI] sysname U-PE1
    [U-PE1] nqa test-instance test pwe3ping
    [U-PE1-nqa-test-pwe3ping] test-type pwe3ping
    [U-PE1-nqa-test-pwe3ping] local-pw-id 100
    [U-PE1-nqa-test-pwe3ping] local-pw-type vlan
    [U-PE1-nqa-test-pwe3ping] label-type control-word
    [U-PE1-nqa-test-pwe3ping] remote-pw-id 200

  3. Perform the test.

    [U-PE1-nqa-test-pwe3ping] start now

  4. Verify the test result.

    After running the display nqa results command on the PE device, you can see that the test is successful.

    [U-PE1-nqa-test-pwe3ping] display nqa results
    NQA entry(test, pwe3ping) :testflag is inactive ,testtype is pwe3ping
      1 . Test 1 result   The test is finished
       SendProbe:3                          ResponseProbe:3                    
       Completion:success                   RTD OverThresholds number:0        
       Min/Max/Avg/Sum RTT:1/1/1/6          RTT Square Sum:0                   
       NumOfRTT:0                           Drop operation number:0           
       Operation sequence errors number:0   RTT Stats errors number:0          
       System busy operation number:0       Operation timeout number:0         
       Min Positive SD:0                    Min Positive DS:0                  
       Max Positive SD:0                    Max Positive DS:0                  
       Positive SD Number:0                 Positive DS Number:0               
       Positive SD Sum:0                    Positive DS Sum:0                  
       Positive SD Square Sum:0             Positive DS Square Sum:0           
       Min Negative SD:0                    Min Negative DS:0                  
       Max Negative SD:0                    Max Negative DS:0                  
       Negative SD Number:0                 Negative DS Number:0               
       Negative SD Sum:0                    Negative DS Sum:0                  
       Negative SD Square Sum:0             Negative DS Square Sum:0           
       Max Delay SD:0                       Max Delay DS:0                     
       Packet Loss SD:0                     Packet Loss DS:0                   
       Packet Loss Unknown:0               Average of Jitter:0                
       Average of Jitter SD:0               Average of Jitter DS:0             
       Jitter out value:0.0000000           Jitter in value:0.0000000          
       NumberOfOWD:0                        OWD SD Sum:0                       
       OWD DS Sum:0                         Attempts number:1                  
       Disconnect operation number:0        Connection fail number:0           
       Destination ip address:10.5.5.9            
       Last Good Probe Time: 2008-9-29 14:38:48.2                

Configuration Files

  • CE-A configuration file

    #
    sysname CE-A
    #
    vlan batch 110
    #
    interface Vlanif110
     ip address 10.10.1.1 255.255.255.0
    #
    interface GigabitEthernet0/0/1
     port link-type hybrid
     port hybrid pvid vlan 110
     port hybrid untagged vlan 110
    #
    return
    
  • U-PE1 configuration file

    #
    sysname U-PE1
    #
    vlan batch 110 120
    #
    mpls lsr-id 10.6.6.9
    mpls
    #
    mpls l2vpn
    #
    pw-template pwt
     peer-address 10.3.3.9
     control-word
    #
    mpls ldp
    #
    mpls ldp remote-peer 10.3.3.9
     remote-ip 10.3.3.9  
    #
    interface Vlanif110
     mpls l2vc pw-template pwt 100  
    #
    interface Vlanif120
     ip address 10.1.1.1 255.255.255.0
     mpls
     mpls ldp
    #
    interface  GigabitEthernet0/0/1
     port link-type hybrid
     port hybrid pvid vlan 110
     port hybrid untagged vlan 110
    #
    interface  GigabitEthernet0/0/2
     port link-type hybrid
     port hybrid pvid vlan 120
     port hybrid untagged vlan 120
    #
    interface LoopBack0
     ip address 10.6.6.9 255.255.255.255
    #
    nqa test-instance test pwe3ping
     test-type pwe3ping
     local-pw-id 100
     remote-pw-id 200
     local-pw-type vlan
    #
    ospf 1
     area 0.0.0.0
      network 10.1.1.0 0.0.0.255
      network 10.6.6.9 0.0.0.0
    #
    return
  • P1 configuration file

    #
    sysname P1
    #
    vlan batch 120 130
    #
    mpls lsr-id 10.2.2.9
    mpls
    #
    mpls ldp
    #
    interface Vlanif120
     ip address 10.1.1.2 255.255.255.0
     mpls
     mpls ldp
    #
    interface Vlanif130
     ip address 10.1.2.1 255.255.255.0
     mpls
     mpls ldp
    #
    interface  GigabitEthernet0/0/1
     port link-type hybrid
     port hybrid pvid vlan 120
     port hybrid untagged vlan 120
    #
    interface  GigabitEthernet0/0/2
     port link-type hybrid
     port hybrid pvid vlan 130
     port hybrid untagged vlan 130
    #
    interface LoopBack0
     ip address 10.2.2.9 255.255.255.255
    #
    ospf 1
     area 0.0.0.0
      network 10.2.2.9 0.0.0.0
      network 10.1.1.0 0.0.0.255
      network 10.1.2.0 0.0.0.255
    #
    return
  • S-PE configuration file

    #
    sysname S-PE
    #
    vlan batch 130 140
    #
    mpls lsr-id 10.3.3.9
    mpls
    #
    mpls l2vpn
    #
    mpls switch-l2vc 10.5.5.9 200 between 10.6.6.9 100 encapsulation vlan
    #
    mpls ldp
    #
    mpls ldp remote-peer 10.6.6.9
     remote-ip 10.6.6.9
    #
    mpls ldp remote-peer 10.5.5.9
     remote-ip 10.5.5.9
    #
    interface Vlanif130
     ip address 10.1.2.2 255.255.255.0
     mpls
     mpls ldp
    #
    interface Vlanif140
     ip address 10.1.3.1 255.255.255.0
     mpls
     mpls ldp
    #
    interface  GigabitEthernet0/0/1
     port link-type hybrid
     port hybrid pvid vlan 130
     port hybrid untagged vlan 130
    #
    interface  GigabitEthernet0/0/2
     port link-type hybrid
     port hybrid pvid vlan 140
     port hybrid untagged vlan 140
    #
    interface LoopBack0
     ip address 10.3.3.9 255.255.255.255
    #
    ospf 1
     area 0.0.0.0
      network 10.3.3.9 0.0.0.0
      network 10.1.2.0 0.0.0.255
      network 10.1.3.0 0.0.0.255
    #
    return
    
  • P2 configuration file

    #
    sysname P2
    #
    vlan batch 140 150
    #
    mpls lsr-id 10.4.4.9
    mpls
    #
    mpls ldp
    #
    interface Vlanif140
     ip address 10.1.3.2 255.255.255.0
     mpls
     mpls ldp
    #
    interface Vlanif150
     ip address 10.1.4.1 255.255.255.0
     mpls
     mpls ldp
    #
    interface  GigabitEthernet0/0/1
     port link-type hybrid
     port hybrid pvid vlan 140
     port hybrid untagged vlan 140
    #
    interface  GigabitEthernet0/0/2
     port link-type hybrid
     port hybrid pvid vlan 150
     port hybrid untagged vlan 150
    #
    interface LoopBack0
     ip address 10.4.4.9 255.255.255.255
    #
    ospf 1
     area 0.0.0.0
      network 10.4.4.9 0.0.0.0
      network 10.1.3.0 0.0.0.255
      network 10.1.4.0 0.0.0.255
    #
  • U-PE2 configuration file

    #
    sysname U-PE2
    #
    vlan batch 150 160
    #
    mpls lsr-id 10.5.5.9
    mpls
    #
    mpls l2vpn
    #
    pw-template pwt
     peer-address 10.3.3.9
     control-word
    #
    mpls ldp
    #
    mpls ldp remote-peer 10.3.3.9
     remote-ip 10.3.3.9
    #
    interface Vlanif150
     ip address 10.1.4.2 255.255.255.0
     mpls
     mpls ldp
    #
    interface Vlanif160
     mpls l2vc pw-template pwt 200 
    #
    interface  GigabitEthernet0/0/1
     port link-type hybrid
     port hybrid pvid vlan 150
     port hybrid untagged vlan 150
    #
    interface  GigabitEthernet0/0/2
     port link-type hybrid
     port hybrid pvid vlan 160
     port hybrid untagged vlan 160
    #
    interface LoopBack0
     ip address 10.5.5.9 255.255.255.255
    #
    ospf 1
     area 0.0.0.0
      network 10.5.5.9 0.0.0.0
      network 10.1.4.0 0.0.0.255
    #
    return
  • CE-B configuration file

    #
    sysname CE-B
    #
    vlan batch 160
    #
    interface Vlanif160
     ip address 10.10.1.2 255.255.255.0
    #
    interface  GigabitEthernet0/0/1
     port link-type hybrid
     port hybrid pvid vlan 160
     port hybrid untagged vlan 160
    #
    return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >