Reset Search
 

 

Article

How to configure L2VPN load sharing between ECMP links on EXOS?

« Go Back

Information

 
TitleHow to configure L2VPN load sharing between ECMP links on EXOS?
Objective
When following topology is used we can configure ECMP and share IP traffic load across equal cost links:

User-added image

Objective is to configure VPLS traffic load sharing.
Environment
  • EXOS
  • MPLS / RSVP-TE
Procedure
Following solution is just for two equal cost links but there can be more.
Please check limitations to understand which platforms support L2VPN sharing and what are the limitations of this feature:
What are limitations for Pseudowire Label Switch Path Load Sharing?

Configuration examples are for PE - SW3. Configuration for PE - SW4 is similar.
#
# Module ospf configuration.
#
enable ospf
configure ospf add vlan lo0 area 0.0.0.0 passive
configure ospf add vlan v33 area 0.0.0.0 link-type point-to-point
configure ospf add vlan v55 area 0.0.0.0 link-type point-to-point
#
# Module rtmgr configuration.
#
enable iproute sharing vr VR-Default
#
# Module mpls configuration.
#
configure mpls add vlan "lo0"
enable mpls vlan "lo0"
enable mpls rsvp-te vlan "lo0"
enable mpls ldp vlan "lo0"
configure mpls add vlan "v33"
enable mpls vlan "v33"
enable mpls rsvp-te vlan "v33"
enable mpls ldp vlan "v33"
configure mpls add vlan "v55"
enable mpls vlan "v55"
enable mpls rsvp-te vlan "v55"
enable mpls ldp vlan "v55"
configure mpls lsr-id 10.0.0.3
enable mpls protocol ldp
enable mpls protocol rsvp-te
enable mpls
create l2vpn vpls vpls-v100 fec-id-type pseudo-wire 100
configure l2vpn vpls vpls-v100 add service vlan v100
configure l2vpn vpls vpls-v100 add peer 10.0.0.4 core full-mesh

To configure L2VPN load sharing we need to:

1. Create separate paths using explicit route objects for each link.
create mpls rsvp-te path "path-via-link1"
create mpls rsvp-te path "path-via-link2"
configure mpls rsvp-te path path-via-link1 add ero include 10.33.33.4/32 strict order 10
configure mpls rsvp-te path path-via-link2 add ero include 10.55.55.4/32 strict order 10

2. Create separate LSPs and configure different paths on half of them.
create mpls rsvp-te lsp "lsp1" destination 10.0.0.4
create mpls rsvp-te lsp "lsp2" destination 10.0.0.4
create mpls rsvp-te lsp "lsp3" destination 10.0.0.4
create mpls rsvp-te lsp "lsp4" destination 10.0.0.4
create mpls rsvp-te lsp "lsp5" destination 10.0.0.4
create mpls rsvp-te lsp "lsp6" destination 10.0.0.4
create mpls rsvp-te lsp "lsp7" destination 10.0.0.4
create mpls rsvp-te lsp "lsp8" destination 10.0.0.4

configure mpls rsvp-te lsp "lsp1" add path "path-via-link1" primary
configure mpls rsvp-te lsp "lsp2" add path "path-via-link2" primary
configure mpls rsvp-te lsp "lsp3" add path "path-via-link1" primary
configure mpls rsvp-te lsp "lsp4" add path "path-via-link2" primary
configure mpls rsvp-te lsp "lsp5" add path "path-via-link1" primary
configure mpls rsvp-te lsp "lsp6" add path "path-via-link2" primary
configure mpls rsvp-te lsp "lsp7" add path "path-via-link1" primary
configure mpls rsvp-te lsp "lsp8" add path "path-via-link2" primary

3. Enable L2VPN load sharing.
configure iproute sharing hash-method custom hash-algorithm crc-32 lower
enable l2vpn sharing

4. Bind LSPs to VPLS service.
configure l2vpn vpls vpls-v100 peer 10.0.0.4 add mpls lsp lsp1
configure l2vpn vpls vpls-v100 peer 10.0.0.4 add mpls lsp lsp2
configure l2vpn vpls vpls-v100 peer 10.0.0.4 add mpls lsp lsp3
configure l2vpn vpls vpls-v100 peer 10.0.0.4 add mpls lsp lsp4
configure l2vpn vpls vpls-v100 peer 10.0.0.4 add mpls lsp lsp5
configure l2vpn vpls vpls-v100 peer 10.0.0.4 add mpls lsp lsp6
configure l2vpn vpls vpls-v100 peer 10.0.0.4 add mpls lsp lsp7
configure l2vpn vpls vpls-v100 peer 10.0.0.4 add mpls lsp lsp8

Here is network diagram to illustrate:

User-added image

To see if load sharing is happening you can use following commands:
# show mpls statistics l2vpn
L2VPN Name
  Peer IP/LSP    Flags            RxPackets              RxBytes            TxPackets              TxBytes
----------------------------------------------------------------------------------------------------------
vpls-v100      
  10.0.0.3           U                69649              6268410                69763              6278670
    lsp1             +                                                           8723               785070
    lsp2             +                                                           8772               789480
    lsp3             +                                                           8587               772830
    lsp4             +                                                           8766               788940
    lsp5             +                                                           8751               787590
    lsp6             +                                                           8783               790470
    lsp7             +                                                           8721               784890
    lsp8             +                                                           8660               779400

Flags: (U) Up, (D) Down, (R) Ready, (S) Signaling, (+) In-use, (-) Not In-use
# show l2vpn vpls vpls-v100 detail
L2VPN Name: vpls-v100
   VPN ID                : 100                   Admin State   : Enabled
   Source Address        : 10.0.0.4              Oper State    : Enabled
   VCCV Status           : Disabled              MTU           : 1500
   VCCV Interval Time    : 5 sec.                Ethertype     : 0x8100
   VCCV Fault Multiplier : 4                     .1q tag       : exclude
   L2VPN Type            : VPLS                  Redundancy    : None
   Service Interface     : v100
   Created By            : CLI

   Peer IP: 10.0.0.3
      PW State           : Up
      PW Index           : 10001
      PW Signaling       : LDP
      PW Uptime          : 0d:0h:0m:50s
      PW Installed       : True
      Local PW Status    : No Faults
      Remote PW Status   : No Faults
      Remote I/F MTU     : 1500
      PW Mode            : Core-to-Core
      Transport LSP      : lsp1 (Configured)
         Next Hop I/F    : v33
         Next Hop Addr   : 10.33.33.3                Tx Label  : 0x00436
         Tx Pkts         : 6173                      Tx Bytes  : 555570
      Transport LSP      : lsp2 (Configured)
         Next Hop I/F    : v55
         Next Hop Addr   : 10.55.55.3                Tx Label  : 0x0043d
         Tx Pkts         : 6132                      Tx Bytes  : 551880
      Transport LSP      : lsp3 (Configured)
         Next Hop I/F    : v33
         Next Hop Addr   : 10.33.33.3                Tx Label  : 0x0043c
         Tx Pkts         : 6046                      Tx Bytes  : 544140
      Transport LSP      : lsp4 (Configured)
         Next Hop I/F    : v55
         Next Hop Addr   : 10.55.55.3                Tx Label  : 0x0043b
         Tx Pkts         : 6125                      Tx Bytes  : 551250
      Transport LSP      : lsp5 (Configured)
         Next Hop I/F    : v33
         Next Hop Addr   : 10.33.33.3                Tx Label  : 0x0043a
         Tx Pkts         : 6231                      Tx Bytes  : 560790
      Transport LSP      : lsp6 (Configured)
         Next Hop I/F    : v55
         Next Hop Addr   : 10.55.55.3                Tx Label  : 0x00439
         Tx Pkts         : 6181                      Tx Bytes  : 556290
      Transport LSP      : lsp7 (Configured)
         Next Hop I/F    : v33
         Next Hop Addr   : 10.33.33.3                Tx Label  : 0x00438
         Tx Pkts         : 6128                      Tx Bytes  : 551520
      Transport LSP      : lsp8 (Configured)
         Next Hop I/F    : v55
         Next Hop Addr   : 10.55.55.3                Tx Label  : 0x00437
         Tx Pkts         : 6034                      Tx Bytes  : 543060
      PW Rx Label        : 0x00435                PW Tx Label  : 0x00435
      PW Rx Pkts         : 48936                  PW Tx Pkts   : 49050
      PW Rx Bytes        : 4404240                PW Tx Bytes  : 4414500
      MAC Limit          : No Limit
      VCCV HC Status     : Not Sending (VCCV Not Enabled For This L2VPN)
         CC Type         : Rtr Alert           Total Pkts Sent : 0
         CV Type         : LSP Ping            Total Pkts Rcvd : 0
         Send Next Pkt   : --
         Total Failures  : 0          Pkts During Last Failure : 0
         Last Failure Tm : --
# show ports 3,5 utilization bytes 
Port     Link    Rx              Peak Rx          Tx               Peak Tx
         State   bytes/sec       bytes/sec        bytes/sec        bytes/sec
================================================================================
3         A         44270           44270           43064           43064
5         A         42449           42449           43500           43500
================================================================================
          > indicates Port Display Name truncated past 8 characters
          Link State: A-Active, R-Ready, NP-Port Not Present, L-Loopback

 
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255