Related Documentation
- ACX Series
- Example: Load Balancing BGP Traffic
- M Series
- Example: Load Balancing BGP Traffic
- Configuring Per-Packet Load Balancing
- Configuring Load Balancing Based on MPLS Labels on DPC I-Chip-Based Hardware
- Configuring Load Balancing for Ethernet Pseudowires
- Configuring Load Balancing Based on MAC Addresses
- Configuring VPLS Load Balancing Based on IP and MPLS Information
- Configuring VPLS Load Balancing on MX Series 3D Universal Edge Routers
- MX Series
- Example: Load Balancing BGP Traffic
- Configuring Load Balancing Based on MPLS Labels on DPC I-Chip-Based Hardware
- Configuring Load Balancing for Ethernet Pseudowires
- Configuring VPLS Load Balancing Based on IP and MPLS Information
- Configuring VPLS Load Balancing on MX Series 3D Universal Edge Routers
- PTX Series
- Example: Load Balancing BGP Traffic
- Configuring Per-Packet Load Balancing
- Configuring Load Balancing Based on MPLS Labels on DPC I-Chip-Based Hardware
- Configuring Load Balancing Based on MAC Addresses
- QFX Series
- Example: Load Balancing BGP Traffic
- SRX Series
- Example: Load Balancing BGP Traffic
- T Series
- Example: Load Balancing BGP Traffic
- Configuring Per-Packet Load Balancing
- Configuring Load Balancing Based on MPLS Labels on DPC I-Chip-Based Hardware
- Configuring Load Balancing for Ethernet Pseudowires
- Configuring Load Balancing Based on MAC Addresses
Understanding Per-Packet Load Balancing
By default, when there are multiple equal-cost paths to the same destination for the active route, the Junos OS uses a hash algorithm to choose one of the next-hop addresses to install in the forwarding table. Whenever the set of next hops for a destination changes in any way, the next-hop address is rechosen using the hash algorithm.
You can configure the Junos OS so that, for the active route, all next-hop addresses for a destination are installed in the forwarding table. This feature is called per-packet load balancing. You can use load balancing to spread traffic across multiple paths between routers.
Figure 1 shows a simple load balancing scenario. Device R1 is in AS 65000 and is connected to both Device R2 and Device R3, which are in AS 65001. Device R1 can be configured to load balance traffic across the two links.
Figure 1: Simple Load Balancing Scenario

Related Documentation
- ACX Series
- Example: Load Balancing BGP Traffic
- M Series
- Example: Load Balancing BGP Traffic
- Configuring Per-Packet Load Balancing
- Configuring Load Balancing Based on MPLS Labels on DPC I-Chip-Based Hardware
- Configuring Load Balancing for Ethernet Pseudowires
- Configuring Load Balancing Based on MAC Addresses
- Configuring VPLS Load Balancing Based on IP and MPLS Information
- Configuring VPLS Load Balancing on MX Series 3D Universal Edge Routers
- MX Series
- Example: Load Balancing BGP Traffic
- Configuring Load Balancing Based on MPLS Labels on DPC I-Chip-Based Hardware
- Configuring Load Balancing for Ethernet Pseudowires
- Configuring VPLS Load Balancing Based on IP and MPLS Information
- Configuring VPLS Load Balancing on MX Series 3D Universal Edge Routers
- PTX Series
- Example: Load Balancing BGP Traffic
- Configuring Per-Packet Load Balancing
- Configuring Load Balancing Based on MPLS Labels on DPC I-Chip-Based Hardware
- Configuring Load Balancing Based on MAC Addresses
- QFX Series
- Example: Load Balancing BGP Traffic
- SRX Series
- Example: Load Balancing BGP Traffic
- T Series
- Example: Load Balancing BGP Traffic
- Configuring Per-Packet Load Balancing
- Configuring Load Balancing Based on MPLS Labels on DPC I-Chip-Based Hardware
- Configuring Load Balancing for Ethernet Pseudowires
- Configuring Load Balancing Based on MAC Addresses