Supported Platforms
Related Documentation
- Junos OS Ethernet Interfaces Configuration Guide
- For additional information, see the Junos OS VPNs Configuration Guide and the Junos OS System Basics Configuration Guide .
- For additional information, see the Junos OS VPNs Configuration Guide and the Junos OS System Basics Configuration Guide .
Configuring Symmetrical Load Balancing on an 802.3ad Link Aggregation Group on MX Series Routers
This section describes configuration of symmetrical load balancing on an 802.3ad link aggregation group (LAG) on MX Series routers.
Symmetrical Load Balancing on an 802.3ad LAG on MX Series Routers Overview
MX Series routers with Aggregated Ethernet PICs support symmetrical load balancing on an 802.3ad LAG. This feature is significant when two MX Series routers are connected transparently through deep packet inspection (DPI) devices over an LAG bundle. DPI devices keep track of flows and require information of a given flow in both forward and reverse directions. Without symmetrical load balancing on an 802.3ad LAG, the DPIs could misunderstand the flow, leading to traffic disruptions. By using this feature, a given flow of traffic (duplex) is ensured for the same devices in both directions.
Symmetrical load balancing on an 802.3ad LAG utilizes a mechanism of interchanging the source and destination addresses for a hash computation of fields, such as source address and destination address. The result of a hash computed on these fields is used to choose the link of the LAG. The hash-computation for the forward and reverse flow must be identical. This is achieved by swapping source fields with destination fields for the reverse flow. The swapped operation is referred to as complement hash computation or symmetric-hash complement and the regular (or unswapped) operation as symmetric-hash computation or symmetric-hash. The swappable fields are MAC address, IP address, and port.
Configuring Symmetric Load Balancing on an 802.3ad LAG on MX Series Routers
You can specify whether symmetric hash or complement hash is done for load-balancing traffic. To configure symmetric hash, use the symmetric-hash statement at the [edit forwarding-options hash-key family inet] hierarchy level. To configure symmetric hash complement, use the symmetric-hash complement statement and option at the [edit forwarding-options hash-key family inet] hierarchy level.
These operations can also be performed at the PIC level by specifying a hash key. To configure a hash key at the PIC level, use the symmetric-hash or symmetric-hash complement statement at the [edit chassis hash-key family inet] and [edit chassis hash-key family multiservice] hierarchy levels.
Consider the example in Figure 1.
Figure 1: Symmetric Load Balancing on an 802.3ad LAG on MX Series Routers

Router A is configured with symmetric hash and Router B is configured with symmetric hash complement. Thus, for a given flow fx, post hash computation is from Router A to Router B through i2. The reverse traffic for the same flow fx is from Router B to Router A through the same i2 device as its hashing (done after swapping source and destination fields) and returns the same link index; since it is performed on the interchanged source and destination addresses.
However, the link chosen may or may not correspond to what was attached to the DPI. In other words, the hashing result should point to the same links that are connected, so that the traffic flows through the same DPI devices in both directions. To make sure this happens, you need to also configure the counterpart ports (ports that are connected to same DPI-iN) with the identical link index. This is done when configuring a child-link into the LAG bundle. This ensures that the link chosen for a given hash result is always the same on either router.
Note that any two links connected to each other should have the same link index and these link indices must be unique in a given bundle.
![]() | The following restrictions apply when configuring symmetric load balancing on an 802.3ad LAG on MX Series routers:
|
For additional information, see the Junos OS VPNs Configuration Guide and the Junos OS System Basics Configuration Guide .
Example Configuration Statements
To configure 802.3ad LAG parameters at the bundle level:
where the link-index number ranges from 0 through 15.
You can check the link index configured above using the show interfaces command:
For load-balancing Layer 2 traffic based on Layer 3 fields, you can configure 802.3ad LAG parameters at a per PIC level. These configuration options are available under the chassis hierarchy as follows:
Example Configurations
Example Configurations of Chassis Wide Settings
Router A
Router B
Example Configurations of Per–Packet-Forwarding-Engine Settings
Router A
Router B
Related Documentation
- Junos OS Ethernet Interfaces Configuration Guide
- For additional information, see the Junos OS VPNs Configuration Guide and the Junos OS System Basics Configuration Guide .
- For additional information, see the Junos OS VPNs Configuration Guide and the Junos OS System Basics Configuration Guide .
Published: 2012-06-26
Supported Platforms
Related Documentation
- Junos OS Ethernet Interfaces Configuration Guide
- For additional information, see the Junos OS VPNs Configuration Guide and the Junos OS System Basics Configuration Guide .
- For additional information, see the Junos OS VPNs Configuration Guide and the Junos OS System Basics Configuration Guide .
Published: 2012-06-26
