Configuring Load Balancing Using Hash Key (NSM Procedure)
When there are multiple equal-cost paths to the same
destination for the active route, the JUNOS software 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 select which packet header data to use for per-flow
load balancing using the hash-key option.
To configure load balancing in NSM:
- In the NSM navigation tree, select Device Manager > Devices.
- Click the Device Tree tab,
and then double-click the device to select it.
- Click the Configuration tab.
In the configuration tree, expand Forwarding Options
> Hash Key.
- Add or modify settings as specified in Table 1.
- Click one:
- OK—Saves the changes.
- Cancel—Cancels the modifications.
Table 1: Load Balance Configuration
Details
| Task |
Your Action |
Configure layer information for the load-balancing
specification. Only the IPv4 protocol is supported.
|
- Click Inet next to Family.
- Click Layer 3 next to Inet.
- In the Comment box, enter the comment.
- Select the Destination Address check
box to include the destination-address MAC information in the hash
key.
- Click Layer 4 next to Inet.
- In the Comment box, enter the comment.
|
Configure load balancing based
on MPLS labels. Only the IPv4 protocol is supported.
|
- Click Mpls next to Family.
- Expand Mpls.
- Click Payload next to Mpls.
- In the Comment box, enter the comment.
- Click Ip next to Payload.
- In the Comment box, enter the comment.
- Expand Ip.
- Click Layer 3 Only next to Ip.
- Select layer-3-only to include only
Layer 3 IP information.
- Select port-data to include the source
and destination port field information.
- In the Comment box, enter the comment.
- Select Source Msb to Include the
most significant byte of the source port.
- Select Source Lsb to Include the
least significant byte of the source port.
- Select Destination Msb to include
the most significant byte of the destination port.
- Select Destination Lsb to Include
the least significant byte of the destination port.
|
Configure load balancing based on Layer 2
media access control information.
|
- Click Multiservice next to Mpls.
- In the Comment box, enter the comment.
- Select Source Mac to include the
source-address MAC information in the hash key.
- Select Destination Mac to include
the destination-address MAC information in the hash key.
|
Published: 2009-08-23