Step 1: Configure Bandwidth to Unevenly Load-Balance Traffic
Purpose
Configuring bandwidth to unevenly load-balance traffic is performed in three stages. The first stage enables a load-balancing policy, the second stage configures the LPS bandwidth, and the third stage enables RSVP load balancing.
Action
To configure bandwidth to unevenly load-balance RSVP LSPs, follow these steps:
- Ensure that you have load balancing configured: see Configuring and Verifying Load Balancing.
- Configure LSP bandwidth. In configuration mode, go to the following hierarchy level:
[edit]user@host#edit protocols mpls- Configure the LSP bandwidth:
[edit protocols mpls]user@host#set label-switched-pathlsp-path-namebandwidthbps- Verify the configuration:
[edit protocols mpls]user@host#show- Configure RSVP bandwidth. Go to the following hierarchy level:
[edit]user@host#edit protocols rsvp- Configure the bandwidth statement:
[edit protocols rsvp]user@host#set load-balance bandwidth- Verify and commit the configuration:
user@host#showuser@host#commitSample Output
user@R1>editEntering configuration mode[edit]user@R1#edit protocols mpls[edit protocols mpls]user@R1#set label-switched-path lsp1 bandwidth 10m[edit protocols mpls]user@R1#showlabel-switched-path lsp1 {to 192.168.0.1;install 10.0.90.14/32 active;bandwidth 10m;primary via-r4;[edit protocols mpls]user@R1#top[edit]user@R1#edit protocols rsvp[edit protocols rsvp]user@R1#set load-balance bandwidth[edit protocols rsvp]user@R1#showload-balance bandwidth;interface fe-0/1/2.0;interface fxp0.0 {disable;}[edit protocols rsvp]user@R1#commitcommit completeWhat It Means
The sample output shows the configuration of LSP bandwidth and RSVP bandwidth on ingress router R1. The sample output shows only one LSP configured with bandwidth, however, for RSVP bandwidth to work, you must have at least two equal-cost LSPs toward the same egress router and at least one of the LSPs must have a bandwidth value configured. If no LSPs have bandwidth configured, equal-distribution load balancing is performed. If only some LSPs have bandwidth configured, the LSPs without any bandwidth configured do not receive any traffic.