Deploying MPLS TE

78 0 0 0

Configuration Roadmap

Figure 1-22  MPLS TE topology 
imgDownload?uuid=9a10d3a9bbf54596bbb0547

The configuration roadmap is as follows:

  1. Enable MPLS TE.
  2. Globally enable MPLS, MPLS TE and MPLS TE CSPF on each node along TE tunnels, and deploy MPLS and MPLS TE on each interface along the TE tunnels.
  3. Configure tunnel paths, enable each node to use primary and backup TE tunnels, and configure primary and backup CR-LSPs using the affinity attribute.
  4. Create L3VPN service tunnels.
    1. Create primary tunnels.

      • Create primary tunnel TE1 between Site2_UPE3 and Core_SPE2. Specify path 1 as the primary CR-LSP and path 2 as the backup CR-LSP.
      • Create primary tunnel TE3 between Site2_UPE4 and Core_SPE3. Specify path 5 as the primary CR-LSP and path 6 as the backup CR-LSP.
    2. Create backup tunnels.

      • Create backup tunnel TE2 between Site2_UPE3 and Core_SPE3, which is the backup tunnel of primary tunnel TE1. Specify path 3 as the primary CR-LSP and path 4 as the backup CR-LSP.
      • Create backup tunnel TE4 between Site2_UPE4 and Core_SPE2, which is the backup tunnel of primary tunnel TE3. Specify path 7 as the primary CR-LSP and path 8 as the backup CR-LSP.
    3. Configure RSVP GR.

      Enable RSVP GR on all devices to prevent network disconnection and recover dynamic CR-LSPs upon switchovers on RSVP nodes.

    4. Configure BFD for CR-LSP.

      Configure static BFD for CR-LSP on all devices to speed up switchovers of the primary and backup CR-LSPs.

  5. Create a tunnel policy.

    Configure TE tunnels to be preferentially selected.

Data Plan

imgDownload?uuid=75ff510ea1b548328f1a579 NOTE:

The data provided in this section is used as an example, which may vary depending on the network scale and topology.

Table 1-20  MPLS parameters

Parameter

Value

Remarks

mpls te

-

Enable MPLS TE.

mpls rsvp-te

-

Enable MPLS RSVP-TE.

mpls rsvp-te hello

-

Enable the RSVP Hello extension mechanism.

mpls rsvp-te hello full-gr

-

Enable the RSVP GR and RSVP GR Helper capabilities of the GR node.

mpls te cspf

-

Enable the MPLS TE CSPF algorithm.

Table 1-21  MPLS TE tunnel parameters

Parameter

Value

Remarks

interface Tunnel

Number of a tunnel interface

It is recommended that tunnel IDs be associated with device names and descriptions be added for tunnel interfaces.

ip address unnumbered

interface LoopBack1

Configure a tunnel interface to borrow an IP address from loopback interface 1.

tunnel-protocol

mpls te

Enable the TE tunnel function.

destination

IP address of remote loopback interface 1

Specify the destination IP address.

mpls te tunnel-id

Tunnel ID

Set a tunnel ID.

mpls te affinity property

Configure the affinity attribute for the primary and backup CR-LSPs based on link management group attributes.

-

mpls te backup

hot-standby

Configure the hot standby mode of the tunnel.

bfd bind mpls-te interface Tunnel te-lsp

discriminator local

discriminator remote

detect-multiplier

min-tx-interval

min-rx-interval

process-pst

Configure static BFD to detect the backup CR-LSP of a TE tunnel.

Set the local discriminator of the local system to be the same as the remote discriminator of the remote system, and adjust the local detection multiplier of BFD.

Set the minimum interval at which BFD packets are sent and received to 3.3 ms.

Allow BFD sessions to change the PST to speed up switchovers.

bfd bind mpls-te interface Tunnel

discriminator local

discriminator remote

detect-multiplier

min-tx-interval

min-rx-interval

process-pst

Configure static BFD to detect the primary CR-LSP of a TE tunnel.

Set the local discriminator of the local system to be the same as the remote discriminator of the remote system, and adjust the local detection multiplier of BFD.

Set the minimum interval at which BFD packets are sent and received to 3.3 ms.

Allow BFD sessions to change the PST to speed up switchovers.

tunnel-policy

Tunnel policy name: TSel

tunnel select-seq cr-lsp lsp load-balance-number 1

Tunnel policy on the core device: TE

tunnel select-seq cr-lsp load-balance-number 1

Configure tunnel policies for preferentially selecting CR-LSPs.

Table 1-22  MPLS TE tunnel list

Tunnel

Tunnel Interface

Tunnel ID

Core_SPE1 to Site1_UPE1

Site1_UPE1 to Core_SPE1

Tunnel611

71

Core_SPE1 to Site1_UPE2

Site1_UPE2 to Core_SPE1

Tunnel622

82

Core_SPE1 to Site3_UPE5

Site3_UPE5 to Core_SPE1

Tunnel721

312

Core_SPE1 to Site3_UPE6

Site3_UPE6 to Core_SPE1

Tunnel711

311

Core_SPE2 to Site2_UPE3

Site2_UPE3 to Core_SPE2

Tunnel111

111

Core_SPE2 to Site2_UPE4

Site2_UPE4 to Core_SPE2

Tunnel121

121

Core_SPE2 to Site1_UPE1

Site1_UPE1 to Core_SPE2

Tunnel612

72

Core_SPE2 to Site1_UPE2

Site1_UPE2 to Core_SPE2

Tunnel621

81

Core_SPE3 to Site2_UPE3

Site2_UPE3 to Core_SPE3

Tunnel112

112

Core_SPE3 to Site2_UPE4

Site2_UPE4 to Core_SPE3

Tunnel122

122

Core_SPE3 to Site3_UPE5

Site3_UPE5 to Core_SPE3

Tunnel722

322

Core_SPE3 to Site3_UPE6

Site3_UPE6 to Core_SPE3

Tunnel712

321

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

Configuring RSVP GR

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 rsvp-te hello    //Enable the RSVP Hello extension mechanism globally.  mpls rsvp-te hello full-gr    //Enable the RSVP GR and RSVP GR Helper capabilities. # interface Eth-Trunk4  mpls rsvp-te hello    //Enable the RSVP Hello extension mechanism on an interface. # interface Eth-Trunk5  mpls rsvp-te hello # interface Eth-Trunk17  mpls rsvp-te hello # interface XGigabitEthernet6/0/4  mpls rsvp-te hello #

  • 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 rsvp-te hello    //Enable the RSVP Hello extension mechanism globally.  mpls rsvp-te hello full-gr    //Enable the RSVP GR and RSVP GR Helper capabilities. # interface Eth-Trunk7  mpls rsvp-te hello    //Enable the RSVP Hello extension mechanism on an interface. # interface Eth-Trunk17  mpls rsvp-te hello #

Configuring BFD for CR-LSP

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.

    bfd SPE1toUPE1_b bind mpls-te interface Tunnel611 te-lsp backup    //Enable static BFD to detect the backup CR-LSP of TE tunnel 611.  discriminator local 6116    //Set the local discriminator. The local discriminator of the local system must be the same as the remote discriminator of the remote system.  discriminator remote 6115    //Set the remote discriminator.  detect-multiplier 8    //Set the local detection multiplier of BFD.  min-tx-interval 3    //Set the minimum interval at which the local device sends BFD packets to 3.3 ms.  min-rx-interval 3    //Set the minimum interval at which the local device receives BFD packets to 3.3 ms.  process-pst    //Allow BFD sessions to change the PST to speed up switchovers.  commit    //Commit the BFD session configuration. # bfd SPE1toUPE1_m bind mpls-te interface Tunnel611 te-lsp    //Enable static BFD to detect the primary CR-LSP of TE tunnel 611.  discriminator local 6112  discriminator remote 6111  detect-multiplier 8  min-tx-interval 3  min-rx-interval 3  process-pst  commit # bfd SPE1toUPE2_b bind mpls-te interface Tunnel622 te-lsp backup    //Enable static BFD to detect the backup CR-LSP of TE tunnel 622.  discriminator local 6226  discriminator remote 6225  detect-multiplier 8  min-tx-interval 3  min-rx-interval 3  process-pst  commit # bfd SPE1toUPE2_m bind mpls-te interface Tunnel622 te-lsp    //Enable static BFD to detect the primary CR-LSP of TE tunnel 622.  discriminator local 6222  discriminator remote 6221  detect-multiplier 8  min-tx-interval 3  min-rx-interval 3  process-pst  commit # bfd SPE1toUPE5_b bind mpls-te interface Tunnel721 te-lsp backup    //Enable static BFD to detect the backup CR-LSP of TE tunnel 721.  discriminator local 7216  discriminator remote 7215  detect-multiplier 8  min-tx-interval 3  min-rx-interval 3  process-pst  commit # bfd SPE1toUPE5_m bind mpls-te interface Tunnel721 te-lsp    //Enable static BFD to detect the primary CR-LSP of TE tunnel 721.  discriminator local 7212  discriminator remote 7211  detect-multiplier 8  min-tx-interval 3  min-rx-interval 3  process-pst  commit # bfd SPE1toUPE6_b bind mpls-te interface Tunnel711 te-lsp backup    //Enable static BFD to detect the backup CR-LSP of TE tunnel 711.  discriminator local 7116  discriminator remote 7115  detect-multiplier 8  min-tx-interval 3  min-rx-interval 3  process-pst  commit # bfd SPE1toUPE6_m bind mpls-te interface Tunnel711 te-lsp    //Enable static BFD to detect the primary CR-LSP of TE tunnel 711.  discriminator local 7112  discriminator remote 7111  detect-multiplier 8  min-tx-interval 3  min-rx-interval 3  process-pst  commit #

  • 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.

    bfd UPE1toSPE1_m_b bind mpls-te interface Tunnel611 te-lsp backup    //Enable static BFD to detect the backup CR-LSP of TE tunnel 611.  discriminator local 6115    //Set the local discriminator. The local discriminator of the local system must be the same as the remote discriminator of the remote system.  discriminator remote 6116    //Set the remote discriminator.  detect-multiplier 8    //Set the local detection multiplier of BFD.  min-tx-interval 3    //Set the minimum interval at which the local device sends BFD packets to 3.3 ms.  min-rx-interval 3    //Set the minimum interval at which the local device receives BFD packets to 3.3 ms.  process-pst    //Allow BFD sessions to change the PST to speed up switchovers.  commit    //Commit the BFD session configuration. # bfd UPE1toSPE1_m bind mpls-te interface Tunnel611 te-lsp    //Enable static BFD to detect the primary CR-LSP of TE tunnel 611.  discriminator local 6111  discriminator remote 6112  detect-multiplier 8  min-tx-interval 3  min-rx-interval 3  process-pst  commit # bfd UPE1toSPE2_b bind mpls-te interface Tunnel612 te-lsp backup    //Enable static BFD to detect the backup CR-LSP of TE tunnel 612.  discriminator local 6125  discriminator remote 6126  detect-multiplier 8  min-tx-interval 3  min-rx-interval 3  process-pst  commit # bfd UPE1toSPE2_m bind mpls-te interface Tunnel612 te-lsp    //Enable static BFD to detect the primary CR-LSP of TE tunnel 612.  discriminator local 6121  discriminator remote 6122  detect-multiplier 8  min-tx-interval 3  min-rx-interval 3  process-pst  commit #

Checking the Configuration
  • Run the display bfd session all for-te command to view the BFD session status.

    Using Core_SPE1 as an example, if BFD sessions with the tunnel type being S_TE_LSP are all in Up state, BFD sessions have been set up successfully.

    [Core_SPE1]display bfd session all for-te -------------------------------------------------------------------------------- Local Remote     PeerIpAddr      State     Type         InterfaceName            -------------------------------------------------------------------------------- 7112  7111       172.16.2.86     Up        S_TE_LSP     Tunnel711                7212  7211       172.16.2.87     Up        S_TE_LSP     Tunnel721                7216  7215       172.16.2.87     Up        S_TE_LSP     Tunnel721                7116  7115       172.16.2.86     Up        S_TE_LSP     Tunnel711                6226  6225       172.16.2.50     Up        S_TE_LSP     Tunnel622                6116  6115       172.16.2.51     Up        S_TE_LSP     Tunnel611                6112  6111       172.16.2.51     Up        S_TE_LSP     Tunnel611                6222  6221       172.16.2.50     Up        S_TE_LSP     Tunnel622                --------------------------------------------------------------------------------      Total UP/DOWN Session Number : 8/0

See more please click 

https://support.huawei.com/enterprise/en/doc/EDOC1000069520/9aadccc0/comprehensive-configuration-examples


  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login