< Home

Configuring MPLS TE Tunnels and Hot Standby

Procedure

  • Configure SPEs.

    The following uses the configuration of Core_SPE1 on the core ring as an example. The configurations of Core_SPE2 and Core_SPE3 are similar to the configuration of Core_SPE1, and are not mentioned here.

    mpls
     mpls te    //Enable MPLS TE globally.
     mpls rsvp-te    //Enable RSVP-TE.
     mpls te cspf    //Enable the CSPF algorithm.
    #
    interface Eth-Trunk4
     mpls te    //Enable MPLS TE on an interface.
     mpls te link administrative group c    //Configure the link management group attribute for the TE tunnel to select primary and backup paths.
     mpls rsvp-te    //Enable RSVP-TE on an interface.
    #
    interface Eth-Trunk5
     mpls te
     mpls te link administrative group 30
     mpls rsvp-te
    #
    interface Eth-Trunk17
     mpls te
     mpls te link administrative group 4
     mpls rsvp-te
    #
    interface XGigabitEthernet6/0/4
     mpls te
     mpls te link administrative group 20
     mpls rsvp-te
    #
    ospf 1
     opaque-capability enable    //Enable the Opaque capability of OSPF.
     area 0.0.0.0
      mpls-te enable    //Enable MPLS TE in the OSPF area.
    #
    interface Tunnel611    //Specify the tunnel from Core_SPE1 to Site1_UPE1.
     description Core_SPE1 to Site1_UPE1    //Configure the interface description.
     ip address unnumbered interface LoopBack1    //Configure a tunnel interface to borrow the IP address of a loopback interface.
     tunnel-protocol mpls te    //Set the tunnel protocol to MPLS TE.
     destination 172.16.2.51    //Configure IP address of Site1_UPE1 as the tunnel destination IP address.
     mpls te tunnel-id 71    //Configure a tunnel ID, which must be valid and unique on the local device.
     mpls te record-route    //Configure the tunnel to record detailed route information for maintenance.
     mpls te affinity property 4 mask 4    //Configure the affinity attribute of the primary CR-LSP for selecting the optimal forwarding path.
     mpls te affinity property 8 mask 8 secondary    //Configure the affinity attribute of the backup CR-LSP.
     mpls te backup hot-standby    //Configure the hot standby mode of tunnels.
     mpls te commit    //Commit all the MPLS TE configuration of the tunnel for the configuration to take effect.
    #
    interface Tunnel622
     description Core_SPE1 to Site1_UPE2
     ip address unnumbered interface LoopBack1
     tunnel-protocol mpls te
     destination 172.16.2.50
     mpls te tunnel-id 82
     mpls te record-route
     mpls te affinity property 8 mask 8
     mpls te affinity property 4 mask 4 secondary
     mpls te backup hot-standby 
     mpls te commit
    #
    interface Tunnel711
     description Core_SPE1 to Site3_UPE6
     ip address unnumbered interface LoopBack1
     tunnel-protocol mpls te
     destination 172.16.2.86
     mpls te tunnel-id 311
     mpls te record-route
     mpls te affinity property 20 mask 20
     mpls te affinity property 10 mask 10 secondary
     mpls te backup hot-standby 
     mpls te commit
    #
    interface Tunnel721
     description Core_SPE1 to Site3_UPE5
     ip address unnumbered interface LoopBack1
     tunnel-protocol mpls te
     destination 172.16.2.87
     mpls te tunnel-id 312
     mpls te record-route
     mpls te affinity property 10 mask 10
     mpls te affinity property 20 mask 20 secondary
     mpls te backup hot-standby 
     mpls te commit
    #
    tunnel-policy TSel    //Configure a tunnel policy.
     tunnel select-seq cr-lsp lsp load-balance-number 1    //Configure the CR-LSP to be preferentially selected.
    #
    tunnel-policy TE
     tunnel select-seq cr-lsp load-balance-number 1
    #

  • Configure UPEs.

    The following uses the configuration of Site1_UPE1 as an example. The configurations of Site1_UPE2, Site2_UPE3, Site2_UPE4, Site3_UPE5, and Site3_UPE6 are similar to the configuration of Site1_UPE1, and are not mentioned here.

    mpls
     mpls te    //Enable MPLS TE globally.
     mpls rsvp-te    //Enable RSVP-TE.
     mpls te cspf    //Enable the CSPF algorithm.
    #
    interface Eth-Trunk7
     mpls te    //Enable MPLS TE on an interface.
     mpls te link administrative group c    //Configure the link management group attribute for the TE tunnel to select primary and backup paths.
     mpls rsvp-te    //Enable RSVP-TE on an interface.
    #
    interface Eth-Trunk17
     mpls te
     mpls te link administrative group 4
     mpls rsvp-te
    #
    ospf 1
     opaque-capability enable    //Enable the Opaque capability of OSPF.
     area 0.0.0.0
      mpls-te enable    //Enable MPLS TE in the OSPF area.
    #
    interface Tunnel611    //Specify the tunnel from Site1_UPE1 to Core_SPE1.
     description Site1_UPE1 to Core_SPE1    //Configure the interface description.
     ip address unnumbered interface LoopBack1    //Configure a tunnel interface to borrow the IP address of a loopback interface.
     tunnel-protocol mpls te    //Set the tunnel protocol to MPLS TE.
     destination 172.16.0.5    //Configure IP address of Core_SPE1 as the tunnel destination IP address.
     mpls te tunnel-id 71    //Configure a tunnel ID, which must be valid and unique on the local device.
     mpls te record-route    //Configure the tunnel to record detailed route information for maintenance.
     mpls te affinity property 4 mask 4    //Configure the affinity attribute of the primary CR-LSP for selecting the optimal forwarding path.
     mpls te affinity property 8 mask 8 secondary    //Configure the affinity attribute of the backup CR-LSP.
     mpls te backup hot-standby    //Configure the hot standby mode of tunnels.
     mpls te commit    //Commit all the MPLS TE configuration of the tunnel for the configuration to take effect.
    #
    interface Tunnel612
     description Site1_UPE1 to Core_SPE2
     ip address unnumbered interface LoopBack1
     tunnel-protocol mpls te
     destination 172.16.0.3
     mpls te tunnel-id 72
     mpls te record-route
     mpls te affinity property 4 mask 4
     mpls te affinity property 8 mask 8 secondary
     mpls te backup hot-standby 
     mpls te commit
    #
    tunnel-policy TSel    //Configure a tunnel policy.
     tunnel select-seq cr-lsp lsp load-balance-number 1    //Configure the CR-LSP to be preferentially selected.
    #

Checking the Configuration

  • Run the display mpls te tunnel-interface Tunnel command to check local tunnel interface information.

    Using tunnel 611 from Core_SPE1 to Site1_UPE1 as an example, if both the primary and backup LSPs of tunnel 611 are in UP state, the primary and backup LSPs have been set up successfully.

    [Core_SPE1]display mpls te tunnel-interface Tunnel611 
        ----------------------------------------------------------------
                                   Tunnel611
        ----------------------------------------------------------------
        Tunnel State Desc   :  UP
        Active LSP          :  Primary LSP
        Session ID          :  71
        Ingress LSR ID      :  172.16.0.5       Egress LSR ID:  172.16.2.51
        Admin State         :  UP               Oper State   :  UP
        Primary LSP State      : UP
          Main LSP State       : READY               LSP ID  : 1
        Hot-Standby LSP State  : UP
          Main LSP State       : READY               LSP ID  : 32772
  • Run the display mpls te hot-standby state all command to view status of all HSB tunnels.

    Using Core_SPE1 as an example, if all HSB tunnels of Core_SPE1 are in Primary LSP state, traffic has been switched to primary CR-LSPs.

    [Core_SPE1]display mpls te hot-standby state all
    ---------------------------------------------------------------------
    No.        tunnel name          session id      switch result       
    ---------------------------------------------------------------------
    1          Tunnel611            71              Primary LSP         
    2          Tunnel622            82              Primary LSP         
    3          Tunnel711            311             Primary LSP         
    4          Tunnel721            312             Primary LSP
  • Run the ping lsp te tunnel command to check bidirectional connectivity of the master and backup TE tunnels of each device.

    Using tunnel 611 from Core_SPE1 to Site1_UPE1 as an example, run the following ping commands on both ends of the TE tunnel:

    [Core_SPE1] ping lsp  te  Tunnel611 
      LSP PING FEC: TE TUNNEL IPV4 SESSION QUERY Tunnel611 : 100  data bytes, press CTRL_C to break
        Reply from 172.16.2.51: bytes=100 Sequence=1 time=5 ms
        Reply from 172.16.2.51: bytes=100 Sequence=2 time=3 ms
        Reply from 172.16.2.51: bytes=100 Sequence=3 time=3 ms
        Reply from 172.16.2.51: bytes=100 Sequence=4 time=2 ms
        Reply from 172.16.2.51: bytes=100 Sequence=5 time=3 ms
    
      --- FEC: TE TUNNEL IPV4 SESSION QUERY Tunnel611 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 2/3/5 ms
    [Core_SPE1] ping lsp  te  Tunnel611  hot-standby  
      LSP PING FEC: TE TUNNEL IPV4 SESSION QUERY Tunnel611 : 100  data bytes, press CTRL_C to break
        Reply from 172.16.2.51: bytes=100 Sequence=1 time=2 ms
        Reply from 172.16.2.51: bytes=100 Sequence=2 time=2 ms
        Reply from 172.16.2.51: bytes=100 Sequence=3 time=3 ms
        Reply from 172.16.2.51: bytes=100 Sequence=4 time=2 ms
        Reply from 172.16.2.51: bytes=100 Sequence=5 time=3 ms
    
      --- FEC: TE TUNNEL IPV4 SESSION QUERY Tunnel611 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 2/2/3 ms
  • Run the tracert lsp te Tunnel command to detect LSPs.

    Using tunnel 611 from Core_SPE1 to Site1_UPE1 as an example, ensure that the primary and backup tunnel paths are different.

    [Core_SPE1]tracert  lsp te  Tunnel611  
      LSP Trace Route FEC: TE TUNNEL IPV4 SESSION QUERY Tunnel611 , press CTRL_C to break.
      TTL   Replier            Time    Type      Downstream 
      0                                Ingress   172.17.4.11/[1078 ]
      1     172.16.2.51        3 ms    Egress
    [Core_SPE1]tracert  lsp te  Tunnel611  hot-standby  
      LSP Trace Route FEC: TE TUNNEL IPV4 SESSION QUERY Tunnel611 , press CTRL_C to break.
      TTL   Replier            Time    Type      Downstream 
      0                                Ingress   172.17.4.9/[1391 ]
      1     172.17.4.9         3 ms    Transit   172.17.4.13/[1169 ]
      2     172.17.4.13        7 ms    Transit   172.17.4.14/[1109 ]
      3     172.16.2.51        4 ms    Egress
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >