Configuring Hash Factors (VPLS or Bridged Forwarding Scenarios)
Configuration Guide
In VS mode, this configuration process is supported only by the admin VS.
View |
Command Format |
---|---|
Slot view |
load-balance hash-fields mac { l2 | l3 | l4 | label-ip } |
- l2: indicates that hash factors are <source MAC, destination MAC>
- l3: indicates that hash factors are <source IP, destination IP>
- l4: indicates that hash factors are <source IP, destination IP, source port-number, destination port number, protocol number>
- label-ip: indicates that hash factors are the MPLS labels. This means that the hash calculation is performed based on labels encapsulated into non-IP packets
Suitable Scenarios
The command is used in bridged forwarding scenarios, or in the ingress PE in VPLS scenarios. In these scenarios:
- IP carrying TCP/UDP packets: the default hash factors are <source IP, destination IP, source port-number, destination port number, protocol number>.
- IP carrying non-TCP/non-UDP packets: the default hash factors are <source IP, destination IP>.
- Non-IP packets: the default hash factors are <source MAC, destination MAC>
If the hash factors <source MAC, destination MAC> are hashable enough, try the l3 parameter. If the hash factors <source IP, destination IP> are hashable enough, try the l4 parameter.
Follow-up Procedure
If this command is configured but traffic load balancing cannot be performed well, you can try to modify hash-arithmetic. For detailed information, see Configuring Hash-arithmetic.
Run the save command to save the current configuration to the configuration file when a set of configuration is finished and the expected functions have been achieved.