Configuring Hash Factors (VLL or IP 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 ip { l2 | l3 | l4 } |
- 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>
Suitable Scenarios
- IPv4 unicast forwarding
- L3VPN forwarding on ingress PE
- VLL forwarding on ingress PE
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>.
- Ethernet carrying 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.