Professional Documents
Culture Documents
Load-Balancing Traffic Over RSVP-based MPLS Label-Switched Paths (LSPS)
Load-Balancing Traffic Over RSVP-based MPLS Label-Switched Paths (LSPS)
Load-Balancing Traffic Over RSVP-based MPLS Label-Switched Paths (LSPS)
Description
This KB provides an example on how to configure RSVP-based MPLS LSPs to load-balance traffic.
Symptoms
The diagram below will be used in this example; note the names of the devices are Chewie, Unabomber, and Snickers.
1.1.1.2
2/0/0-t1-6/0/0
2/0/0-e1-2/0/0
Chewie Snickers
Unabomber
10.1.1.1 2/0/1-t1-6/0/1 10.1.1.3
2.2.2.2
Solution
forwarding-options {
hash-key {
family mpls {
label-1;
label-2;
payload {
ip;
}
}
}
}
https://supportportal.juniper.net/s/article/Load-balancing-traffic-over-RSVP-based-MPLS-Label-switched-paths-LSPs?language=en_US Page 1 of 5
Load-balancing traffic over RSVP-based MPLS Label-switched paths (LSPs) 05/06/24, 9:35 PM
family mpls {
label-1;
label-2;
payload {
ip;
}
}
}
}
routing-options {
static {
/* Optional: Allows Chewie to use the LSP's as a next-hop for pings to 10.1.1.3; otherwise only BGP routes with a next-hop of 10.1.1.3
route 10.1.1.3/32 {
lsp-next-hop north;
lsp-next-hop south;
}
}
forwarding-table {
export load-balance;
}
}
protocols {
rsvp {
interface t1-2/0/1.0;
interface t1-2/0/0.0;
}
mpls {
/* This is required since the OSPF Traffic Engineering database isn't enabled */
no-cspf;
no-decrement-ttl;
label-switched-path north {
to 10.1.1.3;
primary north;
}
label-switched-path south {
to 10.1.1.3;
primary south;
}
path north {
1.1.1.2;
}
path south {
2.2.2.2;
}
interface t1-2/0/0.0;
interface t1-2/0/1.0;
}
ospf {
area 0.0.0.0 {
interface t1-2/0/0.0;
interface t1-2/0/1.0;
interface lo0.0;
}
}
}
policy-options {
policy-statement load-balance {
then {
load-balance per-packet;
}
}
}
https://supportportal.juniper.net/s/article/Load-balancing-traffic-over-RSVP-based-MPLS-Label-switched-paths-LSPs?language=en_US Page 2 of 5
Load-balancing traffic over RSVP-based MPLS Label-switched paths (LSPs) 05/06/24, 9:35 PM
}
family mpls;
}
}
t1-6/0/1 {
unit 0 {
family inet {
address 1.1.1.2/30;
}
family mpls;
}
}
lo0 {
unit 0 {
family inet {
address 10.1.1.2/32;
}
}
}
}
protocols {
rsvp {
interface t1-6/0/1.0;
interface t1-6/0/0.0;
interface e1-2/0/0.0;
}
mpls {
interface t1-6/0/0.0;
interface t1-6/0/1.0;
interface e1-2/0/0.0;
}
ospf {
area 0.0.0.0 {
interface t1-6/0/0.0;
interface t1-6/0/1.0;
interface lo0.0;
interface e1-2/0/0.0;
}
}
}
https://supportportal.juniper.net/s/article/Load-balancing-traffic-over-RSVP-based-MPLS-Label-switched-paths-LSPs?language=en_US Page 3 of 5
Load-balancing traffic over RSVP-based MPLS Label-switched paths (LSPs) 05/06/24, 9:35 PM
The output below verifies that the LSPs are load-balanced. Start with 0 packets:
Note: It's likely that the load balancing will not be symmetrical, due to the fact that transit traffic is load-balanced in a
per-flow fashion. Some traffic flows may carry higher amounts of traffic than others.
Related Information
Configuring the Load-Balance Per-Packet Action
hash-key feature
https://supportportal.juniper.net/s/article/Load-balancing-traffic-over-RSVP-based-MPLS-Label-switched-paths-LSPs?language=en_US Page 4 of 5
Load-balancing traffic over RSVP-based MPLS Label-switched paths (LSPs) 05/06/24, 9:35 PM
https://supportportal.juniper.net/s/article/Load-balancing-traffic-over-RSVP-based-MPLS-Label-switched-paths-LSPs?language=en_US Page 5 of 5