CloudEngine 9800, 8800, and 6800 V300R024C00 Command Reference
Load Balancing Configuration Commands
- display load-balance forwarding-path unicast interface ecmp
- ecmp mode(ECMP load balancing view)
- ecmp seed
- ecmp universal-id
- gtp teid
- hashmode
- ip(ECMP load balance view)
- ip-tunnel(ECMP load balancing view)
- load-balance ecmp
- load-balance ecmp rail-group enable
- load-balance ecmp rocev2 per-packet enable
- load-balance ecmp stateful enable
- load-balance ecmp stateful enhanced enable
- load-balance vxlan-overlay ecmp stateful enable
- local-preference enhanced
display load-balance forwarding-path unicast interface ecmp
Function
The display load-balance forwarding-path unicast interface ecmp command displays the ECMP outbound interface obtained through simulated calculation after the specified 5-tuple information, source MAC address, and destination MAC addresses are input.
Format
For CE8855, CE8851-32CQ4BQ, CE9865, CE9855, CE8865, CE8875, CE8865-SAN, CE8851-32CQ8DQ-P, CE8850-HAM, CE8850-SAN, CE8851K, CE6866, CE6860-HAM, CE6860-SAN, CE6866K, CE6820H, CE6820H-K, CE6820S, CE6863H, CE6863H-K, CE6881H, CE6881H-K, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L:
display load-balance forwarding-path unicast interface ecmp src-interface { iftype ifnum | src-interface-name } { vlan vlanid | vpn-instance vpn-instance-name | src-ip src-ip-data | dst-ip dst-ip-data | [ [ inner-src-ip inner-src-ip | inner-dst-ip inner-dst-ip ] * | [ inner-src-ipv6 inner-src-ipv6 | inner-dst-ipv6 inner-dst-ipv6 ] * ] | protocol { protocol-number [ l4-src-port src-port-data | l4-dst-port dst-port-data | inner-l4-src-port inner-src-port-data | inner-l4-dst-port inner-dst-port-data ] * | icmp | igmp | ip | ospf | tcp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * | udp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * } } * slot slot-id
display load-balance forwarding-path unicast interface ecmp src-interface { iftype ifnum | src-interface-name } { vlan vlanid | vpn-instance vpn-instance-name | src-ipv6 src-ipv6-data | dst-ipv6 dst-ipv6-data | [ [ inner-src-ip inner-src-ip | inner-dst-ip inner-dst-ip ] * | [ inner-src-ipv6 inner-src-ipv6 | inner-dst-ipv6 inner-dst-ipv6 ] * ] | flow-label flow-label | protocol { protocol-number [ l4-src-port src-port-data | l4-dst-port dst-port-data | inner-l4-src-port inner-src-port-data | inner-l4-dst-port inner-dst-port-data ] * | icmp | igmp | ip | ospf | tcp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * | udp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * } } * slot slot-id
For CE6885-LL (low latency mode):
display load-balance forwarding-path unicast interface ecmp src-interface { iftype ifnum | src-interface-name } { vlan vlanid | vpn-instance vpn-instance-name | src-ip src-ip-data | dst-ip dst-ip-data | protocol { protocol-number [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * | icmp | igmp | ip | ospf | tcp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * | udp [ l4-src-port src-port-data | l4-dst-port dst-port-data ] * } } * slot slot-id
Parameters
Parameter | Description | Value |
---|---|---|
iftype |
Specifies the physical source interface of packets. |
The value is a string of 1 to 256 case-sensitive characters without spaces. |
ifnum |
Specifies the physical source interface of packets. |
The value is a string of 1 to 63 case-sensitive characters. It cannot contain spaces. |
vlan vlanid |
Specifies a VLAN. |
For the CE6885-LL (low latency mode):The value is an integer that ranges from 1 to 1023. For the CE8850-SAN, CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6820H, CE6820H-K, CE6820S, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875:The value is an integer ranging from 1 to 4094. |
src-ip src-ip-data |
Specifies a source IP address. |
The value is in dotted decimal notation. |
dst-ip dst-ip-data |
Specifies a destination IP address. |
The value is in dotted decimal notation. |
inner-src-ip inner-src-ip |
Inner Source IP. NOTE:
This parameter is supported only on the CE8850-SAN, CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6820H, CE6820H-K, CE6820S, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875. |
The value is in dotted decimal notation. |
inner-dst-ip inner-dst-ip |
Inner Destination IP Address. NOTE:
This parameter is supported only on the CE8850-SAN, CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6820H, CE6820H-K, CE6820S, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875. |
The value is in dotted decimal notation. |
inner-src-ipv6 inner-src-ipv6 |
Inner Source IPv6 Address. NOTE:
This parameter is supported only on the CE8850-SAN, CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6820H, CE6820H-K, CE6820S, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875. |
The value is a 32-digit hexadecimal string in format X:X:X:X:X:X:X:X. |
inner-dst-ipv6 inner-dst-ipv6 |
Inner Destination IPv6 Address. NOTE:
This parameter is supported only on the CE8850-SAN, CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6820H, CE6820H-K, CE6820S, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875. |
The value is a 32-digit hexadecimal string in format X:X:X:X:X:X:X:X. |
protocol protocol-number |
Specifies a protocol number or type. protocol-number specifies a protocol number. |
The value is an integer ranging from 0 to 255. The protocol type can be:
|
l4-src-port src-port-data |
Specifies a source port number. |
The value is an integer ranging from 0 to 65535. |
l4-dst-port dst-port-data |
Specifies a destination port number. |
The value is an integer ranging from 0 to 65535. |
inner-l4-src-port inner-src-port-data |
Inner Source L4 Port Number. NOTE:
This parameter is supported only on the CE8850-SAN, CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6820H, CE6820H-K, CE6820S, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875. |
The value is an integer ranging from 0 to 65535. |
inner-l4-dst-port inner-dst-port-data |
Inner Destination L4 Port Number. NOTE:
This parameter is supported only on the CE8850-SAN, CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6820H, CE6820H-K, CE6820S, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875. |
The value is an integer ranging from 0 to 65535. |
icmp |
Indicates the ICMP protocol. |
- |
igmp |
Indicates the IGMP protocol. |
- |
ip |
Indicates the IP protocol. |
- |
ospf |
Indicates the OSPF protocol. |
- |
tcp |
Indicates the TCP protocol. |
- |
udp |
Indicates the UDP protocol. |
- |
slot slot-id |
Specifies a slot ID. |
The value is a string of 1 to 23 case-sensitive characters. It cannot contain spaces. |
src-interface src-interface-name |
Specifies a source interface name. |
The value is a string of 1 to 63 case-sensitive characters. It cannot contain spaces. |
src-ipv6 src-ipv6-data |
Source IPv6 address. NOTE:
This parameter is supported only on the CE8850-SAN, CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6820H, CE6820H-K, CE6820S, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875. |
The value is a 32-digit hexadecimal string in format X:X:X:X:X:X:X:X. |
dst-ipv6 dst-ipv6-data |
Destination IPv6 address. NOTE:
This parameter is supported only on the CE8850-SAN, CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6820H, CE6820H-K, CE6820S, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875. |
The value is a 32-digit hexadecimal string in format X:X:X:X:X:X:X:X. |
flow-label flow-label |
Specifies the flow label. NOTE:
This parameter is supported only on the CE8850-SAN, CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6820H, CE6820H-K, CE6820S, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875. |
The value is an integer ranging from 0 to 1048575. |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value is a string of 1 to 31 case-sensitive characters. It cannot contain spaces. If the character string is quoted by double quotation marks, the character string can contain spaces. "_public_" is reserved and cannot be used as a VPN instance name. |
Usage Guidelines
Usage Scenario
The 5-tuple information of packets includes the source IP address, destination IP address, source port number, destination port number, and protocol type. Traffic transmitted on devices often carries different 5-tuple information, source MAC addresses, and destination MAC addresses. You can run the display load-balance forwarding-path unicast interface ecmp command to check the ECMP outbound interface obtained through software-simulated calculation after the specified 5-tuple information is input.
Configuration Impact
When running this command to check the ECMP outbound interface, pay attention to the following points:
- An IPv4 address and IPv6 address cannot both be specified.
- This command can display only the outbound interface of known IPv4 and IPv6 packets based on the specified 5-tuple information.
- This command can display the outbound interface of known Layer 3 unicast packets. You are advised to check the outbound interface based on the load balancing mode configured in the current load balancing profile.
- The ECMP outbound interface of packets cannot be obtained through simulated calculation based on the next hop of the tunnel type.
- When adaptive-routing enable is configured, the ECMP outbound interface of packets cannot be obtained through simulated calculation.
- When load-balance ecmp rail-group enable is configured, the ECMP outbound interface of packets cannot be obtained through simulated calculation.
Example
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display load-balance forwarding-path unicast interface ecmp src-interface 10GE1/0/1 src-ip 10.1.1.1 dst-ip 172.16.1.1 protocol udp l4-dst-port 10 l4-src-port 20 vlan 1 slot 1 Packet HashField for calculate: -------------------------------------------------------------------------------- SrcInterface :10ge1/0/1 VlanId :1 SrcAddr :10.1.1.1 DstAddr :172.16.1.1 ProtocolType :17 L4SrcPort :20 L4DstPort :10 -------------------------------------------------------------------------------- Out Interface: 10GE1/0/2 --------------------------------------------------------------------------------
Item | Description |
---|---|
Packet HashField for calculate | Indicates the hash factor used for calculation. |
SrcInterface | Physical source interface. |
VlanId | VLAN ID. |
SrcAddr | Source IP address. |
DstAddr | Destination IP address. |
ProtocolType | Protocol type. |
L4SrcPort | Transport-layer source interface. |
L4DstPort | Transport-layer destination interface. |
Out Interface | ECMP outbound interface of packets with the specified 5-tuple information. |
ecmp mode(ECMP load balancing view)
Function
The ecmp mode command configures the dynamic load balancing mode for an ECMP.
The undo ecmp mode command restores the default dynamic load balancing mode for an ECMP.
By default, the dynamic load balancing mode of an ECMP is eligible, and the interval in a flowlet is 2000.
This command is supported only on the CE8850-SAN, CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE9865, CE9855, CE8865 and CE8875.
Format
ecmp mode { spray | fixed | eligible [ flowlet-gap-time gap-time ] }
undo ecmp mode { spray | fixed | eligible [ flowlet-gap-time gap-time ] }
Parameters
Parameter | Description | Value |
---|---|---|
spray |
Enables the spray dynamic load balancing mode for an ECMP. In spray dynamic load balancing mode, a device selects a member link with the lightest load to forward data packets. |
- |
fixed |
Sets the dynamic load balancing mode of an ECMP to fixed. In this mode, the to-be-forwarded data packet is forwarded along the forwarding path of the previous data packet in the flow to which the to-be-forwarded data packet belongs at an interval of 2 seconds. If the data packet to be forwarded is the first data packet in the flow to which the data packet belongs, the device selects a member link to forward the data packet based on the hash result in static load balancing mode. |
- |
eligible |
Enables the eligible dynamic load balancing mode for an ECMP. In eligible dynamic load balancing mode, based on the flowlet, a device selects a member link with the lightest load to forward data packets. Data packets in the same flowlet are forwarded through the same link. |
- |
flowlet-gap-time gap-time |
Specifies the interval at which data packets in a flowlet are transmitted. The device splits data flows into flowlets based on the flowlet interval. |
The value is an integer that ranges from 16 to 32000. The unit is 1024 nanoseconds. |
Usage Guidelines
Usage Scenario
You can change the dynamic load balancing mode for an ECMP based on the network traffic to provide maximum load balancing between member links. The eligible dynamic load balancing mode is recommended.
Precautions
- If you run this command multiple times, only the latest configuration takes effect.
- Load balancing is valid only for outgoing traffic. Therefore, the load balancing modes of the devices at both ends of a link can be different and do not affect each other.
- After the dynamic load balancing mode is set to Spray, if the interval between two adjacent data packets of the same flow is less than the maximum transmission delay of each member link, and the device selects different forwarding links for the two data packets, in this case, packet disorder may occur at the receive end. Therefore, dynamic load balancing in spray mode applies only to scenarios where the packet time sequence is not concerned.
- If the value of flowlet-gap-time is less than the maximum transmission delay of each member link in load balancing mode, packet disorder may occur on the receive end. Therefore, the value of flowlet-gap-time must be greater than or equal to the maximum transmission delay of each member link in load balancing mode.
ecmp seed
Function
The ecmp underlay seed command configures a start hash value for the seed hash algorithm for underlay ECMP.
The undo ecmp underlay seed command restores the default start hash value of the seed hash algorithm for underlay ECMP.
The ecmp overlay seed command configures a start hash value for the seed hash algorithm for overlay ECMP.
The undo ecmp overlay seed command restores the default start hash value of the seed hash algorithm for overlay ECMP.
For the CE6866, CE6860-SAN, CE6860-HAM, CE6866K, CE8851-32CQ8DQ-P, CE8850-SAN, CE8850-HAM and CE8851K:
The ecmp seed command configures a start hash value for the seed hash algorithm for ECMP.
The undo ecmp seed command restores the default start hash value for the seed hash algorithm for ECMP.
By default, the seed value is 1 for ECMP overlay load balancing.
By default, the seed value is 0 for ECMP underlay load balancing.
For the CE6866, CE6860-SAN, CE6860-HAM, CE6866K, CE8851-32CQ8DQ-P, CE8850-SAN, CE8850-HAM and CE8851K:
By default, the seed value is 1 for ECMP load balancing.
This command is supported only on the CE8850-SAN, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE6885-LL (low latency mode), CE9865, CE9855, CE8865 and CE8875.
Format
For CE8851-32CQ8DQ-P, CE8850-HAM, CE8850-SAN, CE8851K, CE6866, CE6860-HAM, CE6860-SAN, CE6866K:
ecmp seed seed-data
undo ecmp seed [ seed-data ]
For CE8855, CE8851-32CQ4BQ, CE9865, CE9855, CE8865, CE8875, CE8865-SAN, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-LL (low latency mode):
ecmp underlay seed under-seed-data
undo ecmp underlay seed [ under-seed-data ]
For CE8855, CE8851-32CQ4BQ, CE9865, CE9855, CE8865, CE8875, CE8865-SAN, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L:
ecmp overlay seed over-seed-data
undo ecmp overlay seed [ over-seed-data ]
Parameters
Parameter | Description | Value |
---|---|---|
seed-data |
Specifies the start hash value in the hash algorithm. NOTE:
This parameter is supported only on the CE8850-SAN, CE6866, CE6860-HAM, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6866K and CE6860-SAN. |
The value is an integer ranging from 0 to 255. The default value is 1. |
underlay |
Indicates underlay load balancing. NOTE:
This parameter is supported only on the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (low latency mode), CE9865, CE9855, CE8865 and CE8875. |
- |
under-seed-data |
Specifies the start hash value of the hash algorithm for underlay load balancing. NOTE:
This parameter is supported only on the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (low latency mode), CE9865, CE9855, CE8865 and CE8875. |
The value is an integer ranging from 0 to 255. The default value is 0. |
overlay |
Indicates overlay load balancing. NOTE:
This parameter is supported only on the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE9865, CE9855, CE8865 and CE8875. |
- |
over-seed-data |
Specifies the start hash value of the hash algorithm for overlay load balancing. NOTE:
This parameter is supported only on the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE9865, CE9855, CE8865 and CE8875. |
The value is an integer ranging from 0 to 255. The default value is 1. |
Usage Guidelines
Usage Scenario
Multiple levels of devices may use the same hash algorithm. If a lower-level device uses the same hash algorithm as an upper-level device, the hash results may be uneven or the hash operation may fail. To prevent this issue, configure a start hash value for the seed hash algorithm for ECMP on the lower-level device.
Precautions
The ecmp underlay seed <under-seed-data> and load-balance ecmp rail-group enable commands are mutually exclusive.
Example
<HUAWEI> system-view [~HUAWEI] load-balance ecmp [~HUAWEI-ecmp] ecmp seed 5
<HUAWEI> system-view [~HUAWEI] load-balance ecmp [~HUAWEI-ecmp] ecmp overlay seed 5
<HUAWEI> system-view [~HUAWEI] load-balance ecmp [~HUAWEI-ecmp] ecmp underlay seed 5
ecmp universal-id
Function
For the CE6820H, CE6820H-K, CE6820S, CE6863H, CE6863H-K, CE6881H, and CE6881H-K:
The ecmp universal-id command configures a hash algorithm offset for ECMP load balancing.
The undo ecmp universal-id command restores the default hash algorithm offset for ECMP load balancing.
For the CE8855, CE8865, CE9855, CE8865, CE8875, CE8865-SAN, CE8851-32CQ4BQ, CE6855-48XS8CQ, CE6885, CE6885-T, CE6885-LL in standard forwarding mode, CE6885-SAN, CE6885L, CE6885-LL in low latency mode, and CE9865:
The ecmp underlay universal-id command configures a hash algorithm offset for underlay ECMP load balancing.
The undo ecmp underlay universal-id command restores the default hash algorithm offset for underlay ECMP load balancing.
The ecmp overlay universal-id command configures a hash algorithm offset for overlay ECMP load balancing.
The undo ecmp overlay universal-id command restores the default hash algorithm offset for overlay ECMP load balancing.
For the CE6863H-48S6CQ, CE6863H-48S6CQ-K, CE6881H-48S6CQ, CE6881H-48S6CQ-K, CE6881H-48T6CQ, and CE6881H-48T6CQ-K:
By default, the hash algorithm offset of ECMP load balancing is 1.
For the CE8855, CE8865, CE9855, CE8865, CE8875, CE8865-SAN, CE8851-32CQ4BQ, CE6855-48XS8CQ, CE6885, CE6885-T, CE6885-LL in standard forwarding mode, CE6885-SAN, CE6885L, CE6885-LL in low latency mode, and CE9865:
By default, the hash algorithm offset of overlay ECMP load balancing is 1.
By default, the hash algorithm offset of underlay ECMP load balancing is 0.
This command is supported only on the CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6820H, CE6820H-K, CE6820S, CE6855-48XS8CQ, CE6885-LL (low latency mode), CE9865, CE9855, CE8865 and CE8875.
Format
For CE6820H, CE6820H-K, CE6820S, CE6863H, CE6863H-K, CE6881H, CE6881H-K:
ecmp universal-id universal-id
undo ecmp universal-id [ universal-id ]
For CE8855, CE8851-32CQ4BQ, CE9865, CE9855, CE8865, CE8875, CE8865-SAN, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-LL (low latency mode):
ecmp underlay universal-id under-universal-id
undo ecmp underlay universal-id [ under-universal-id ]
For CE8855, CE8851-32CQ4BQ, CE9865, CE9855, CE8865, CE8875, CE8865-SAN, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L:
ecmp overlay universal-id over-universal-id
undo ecmp overlay universal-id [ over-universal-id ]
Parameters
Parameter | Description | Value |
---|---|---|
universal-id |
Sets the Hash algorithm offset of ECMP load balancing. NOTE:
This parameter is supported only on the CE6881H, CE6881H-K, CE6863H, CE6863H-K, CE6820H, CE6820H-K and CE6820S. |
For the CE6881H, CE6881H-K, CE6863H, CE6863H-K, CE6820H, CE6820H-K and CE6820S:The value is an integer ranging from 1 to 16. |
underlay |
Indicates underlay load balancing. NOTE:
This parameter is supported only on the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (low latency mode), CE9865, CE9855, CE8865 and CE8875. |
- |
under-universal-id |
Specifies the hash algorithm offset for ECMP underlay load balancing. NOTE:
This parameter is supported only on the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (low latency mode), CE9865, CE9855, CE8865 and CE8875. |
The value is an integer ranging from 0 to 15. The default value is 0. |
overlay |
Indicates overlay load balancing. NOTE:
This parameter is supported only on the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE9865, CE9855, CE8865 and CE8875. |
- |
over-universal-id |
Specifies the hash algorithm offset for ECMP overlay load balancing. NOTE:
This parameter is supported only on the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE9865, CE9855, CE8865 and CE8875. |
The value is an integer ranging from 0 to 15. The default value is 1. |
Usage Guidelines
Usage Scenario
If there are multiple equal-cost routes to the same destination, the device uses the hash algorithm to select a forwarding path based on the IP address, MAC address, and port number of each received packet. If four equal-cost routes to the destination IP address exist on the device, all traffic destined for the IP address is evenly distributed to the four forwarding paths. By default, a flow (with the same IP address, MAC address, and port number) is forwarded along the same path calculated using the hash algorithm.
The hash algorithm offset affects the forwarding path calculated by the hash algorithm. That is, if the hash algorithm offsets of two devices are different, the outbound interfaces calculated by the hash algorithm for the same traffic on the two devices are different. If you want to select different forwarding paths for the same traffic on different devices, configure different hash algorithm offsets on the devices.Precautions
The ecmp underlay universal-id <under-universal-id> and load-balance ecmp rail-group enable commands are mutually exclusive.
Example
<HUAWEI> system-view Enter system view, return user view with return command. [~HUAWEI] load-balance ecmp [~HUAWEI-ecmp] ecmp underlay universal-id 2
<HUAWEI> system-view Enter system view, return user view with return command. [~HUAWEI] load-balance ecmp [~HUAWEI-ecmp] ecmp overlay universal-id 2
<HUAWEI> system-view Enter system view, return user view with return command. [~HUAWEI] load-balance ecmp [~HUAWEI-ecmp] ecmp universal-id 2
gtp teid
Function
The gtp teid command enables the TEID-based hash function for GTP packets.
The undo gtp teid command restores the default configuration.
By default, the TEID-based hash function is disabled for GTP packets.
Usage Guidelines
Usage Scenario
When GTP packets are forwarded based on the hash factors configured in the system, uneven load balancing may occur.
To solve this problem, run the gtp teid command to enable the TEID-based hash function for GTP packets so that the packets can be forwarded evenly.Precautions
For the CE8851-32CQ8DQ-P, CE8851K, CE8850-HAM, CE8850-SAN, CE6866, CE6866K, CE6860-HAM, CE6860-SAN, CE6820H, and CE6820H -K, CE6820S, CE6863H, CE6863H-K, CE6881H, CE6881H-K, CE6881H, and CE6881H-K:
- This command takes effect only after the Layer 4 port number is enabled. For common Layer 3 forwarding, enable l4-src-port or l4-dst-port in ip src-ip dst-ip l4-src-port l4-dst-port. For tunnel bypass forwarding, enable inner-l4-sport or inner-l4-dport in ip-tunnel inner-src-ip inner-dst-ip inner-l4-sport inner-l4-dport or vxlan inner-src-ip inner-dst-ip inner-l4-sport inner-l4-dport inner-protocol.
- If l4-src-port/inner-l4-sport is configured, the most significant 16 bits of the TEID are used for load balancing; if l4-dst-port/inner-l4-dport is configured, the least significant 16 bits of the TEID are used for load balancing; if l4-src-port/inner-l4-sport and l4-dst-port/inner-l4-dport are configured, the 32 bits of the TEID are used for load balancing.
GTP packets are hashed based on TEIDs. The display load-balance forwarding-path unicast interface ecmp command cannot be used to query an outbound interface through simulated calculation.
hashmode
Function
The hashmode command configures a hash mode for ECMP load balancing.
The undo hashmode command restores the default hash mode for ECMP load balancing.
By default, the hash mode of ECMP load balancing is 0.
Format
For CE8851-32CQ8DQ-P, CE8850-HAM, CE8850-SAN, CE8851K, CE6866, CE6860-HAM, CE6860-SAN, CE6866K, CE6820H, CE6820H-K, CE6820S, CE6863H, CE6863H-K, CE6881H, CE6881H-K:
hashmode value
undo hashmode [ value ]
For CE8855, CE8851-32CQ4BQ, CE9865, CE9855, CE8865, CE8875, CE8865-SAN, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L:
hashmode { overlay | underlay } value
undo hashmode { overlay | underlay } [ value ]
For CE6885-LL (low latency mode):
hashmode underlay value
undo hashmode underlay [ value ]
Parameters
Parameter | Description | Value |
---|---|---|
hashmode value |
- |
For the CE6881H, CE6881H-K, CE6863H, CE6863H-K, CE6820H, CE6820H-K and CE6820S:
The value is an integer ranging from 0 to 2. The default value is 0.
For the CE8850-SAN, CE6866, CE6860-HAM, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6866K and CE6860-SAN:
The value is an integer ranging from 0 to 5. The default value is 0.
For the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (low latency mode), CE9865, CE9855, CE8865 and CE8875:
The value is an integer ranging from 0 to 15. The default value is 0.
|
overlay value |
Specifies a hash algorithm for overlay ECMP load balancing. NOTE:
This parameter is supported only on the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE9865, CE9855, CE8865 and CE8875. |
- |
underlay value |
Specifies a hash algorithm for underlay ECMP load balancing. NOTE:
This parameter is supported only on the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (low latency mode), CE9865, CE9855, CE8865 and CE8875. |
- |
Usage Guidelines
Usage Scenario
In ECMP load balancing scenarios, if traffic is unevenly load balanced, you can change the hash mode value to adjust the hash result so that the traffic is evenly load balanced.
Different load balancing results will be achieved using different hash algorithms. You can select an appropriate hash mode for load balancing based on a traffic model.For the CE8851-32CQ8DQ-P, CE8850-HAM, CE8850-SAN, CE8851K, CE6860-SAN, CE6866, CE6860-HAM, CE6866K, and CE6855-48XS8CQ, the polynomial calculation result is closely related to the change rule of packet characteristics, number of ECMP members, and number of packets. The following conclusions are for reference only:
- To configure the same source and destination function, you are advised to set hashmode to 1.
- If the destination IP address changes, you are advised to set hashmode to 0 or 2.
- If the source IP address changes, you are advised to set hashmode to 0 or 2.
- If the source port changes, you are advised to set hashmode to 0 or 2.
- If the destination port changes, you are advised to set hashmode to 0 or 2.
- If the source and destination IP addresses change, you are advised to set hashmode to 0 or 2.
- If the source and destination ports change, you are advised to set hashmode to 0 or 2. In conclusion, you are advised to set hashmode to 0 or 2 unless you configure the same source and destination function.
For the CE6820H, CE6820H-K, CE6820S, CE6863H, CE6863H-K, CE6881H, and CE6881H-K, the load balancing mode is as follows:
- To configure the same source and destination function, you are advised to set hashmode to 1.
- If per-packet load balancing is required, you are advised to set hashmode to 2.
For the CE8855, CE9865, CE9855, CE8865, CE8875, CE8865-SAN, CE8851-32CQ4BQ, CE6885, CE6885L, CE6885-T, CE6885-LL in standard forwarding mode, CE6863E-48S8CQ, CE6885-SAN, and CE6885-LL in low-latency mode:
Overlay load balancing: If the destination IP address changes, you are advised to set hashmode to 2 or 14. If the source IP address changes, you are advised to set hashmode to 4 or 15. If the source port changes, you are advised to set hashmode to 0. If the destination port changes, you are advised to set hashmode to 15. If the source and destination IP addresses change, you are advised to set hashmode to 1. If the source and destination ports change, you are advised to set hashmode to 15.Underlay load balancing:
If the destination IP address changes, you are advised to set hashmode to 3 or 15. If the source IP address changes, you are advised to set hashmode to 0 or 5. If the source port changes, you are advised to set hashmode to 1. If the destination port changes, you are advised to set hashmode to 0. If the source and destination IP addresses change, you are advised to set hashmode to 2. If the source and destination ports change, you are advised to set hashmode to 0.Example
<HUAWEI> system-view [~HUAWEI] load-balance ecmp [~HUAWEI-ecmp] hashmode 1
<HUAWEI> system-view [~HUAWEI] load-balance ecmp [~HUAWEI-ecmp] hashmode underlay 1
<HUAWEI> system-view [~HUAWEI] load-balance ecmp [~HUAWEI-ecmp] hashmode overlay 1
ip(ECMP load balance view)
Function
The ip command sets a load balancing mode for IP packets in ECMP.
The undo ip command restores the default load balancing mode for IP packets in ECMP.
By default, IP packets are balanced based on src-ip, dst-ip, l4-src-port, and l4-dst-port.
Format
For CE8855, CE8851-32CQ4BQ, CE9865, CE9855, CE8865, CE8875, CE8865-SAN, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L:
ip { src-ip | dst-ip | vlan | l4-src-port | l4-dst-port | protocol | flow-label | src-interface | dpcf } *
undo ip [ src-ip | dst-ip | vlan | l4-src-port | l4-dst-port | protocol | flow-label | src-interface | dpcf ] *
For CE8851-32CQ8DQ-P, CE8850-HAM, CE8850-SAN, CE8851K, CE6866, CE6860-HAM, CE6860-SAN, CE6866K, CE6820H, CE6820H-K, CE6820S, CE6863H, CE6863H-K, CE6881H, CE6881H-K, CE6885-LL (low latency mode):
ip { src-ip | dst-ip | vlan | l4-src-port | l4-dst-port | protocol | flow-label | src-interface } *
undo ip [ src-ip | dst-ip | vlan | l4-src-port | l4-dst-port | protocol | flow-label | src-interface ] *
Parameters
Parameter | Description | Value |
---|---|---|
src-ip |
Performs load balancing based on source IP addresses in IP packets. |
- |
dst-ip |
Performs load balancing based on destination IP addresses in IP packets. |
- |
vlan |
Performs load balancing based on VLAN IDs in IP packets. |
- |
l4-src-port |
Performs load balancing based on transport-layer source port numbers in IP packets. |
- |
l4-dst-port |
Performs load balancing based on transport-layer destination port numbers in IP packets. |
- |
protocol |
Performs load balancing based on protocols in IP packets. |
- |
flow-label |
Performs load balancing based on flow labels in IP packets. |
- |
src-interface |
Performs load balancing based on physical source port numbers in IP packets. |
- |
dpcf |
Indicates load balancing based on the hr2n flag. NOTE:
This parameter is supported only on the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE9865, CE9855, CE8865 and CE8875. |
- |
Usage Guidelines
IP packets that are not transmitted over tunnels are balanced based on any combination of a source IP address, destination IP address, VLAN ID, transport-layer source interface, transport-layer destination interface, protocol, flow label, and physical source interface. This meets ECMP load balancing requirements for service traffic outside tunnels.
ip-tunnel(ECMP load balancing view)
Function
The ip-tunnel command configures the load balancing mode of tunnel packets.
The undo ip-tunnel command restores the default load balancing mode of tunnel packets.
By default, tunnel packets are load balanced based on the outer src-ip, dst-ip, l4-src-port and l4-dst-port.
For the CE6866, CE6860-SAN, CE6860-HAM, CE6866K, CE8851-32CQ4BQ, CE6855-48XS8CQ, CE8851-32CQ8DQ-P, CE8850-SAN, CE8850-HAM, CE8851K, CE6820H, CE6820H-K, CE6820S, CE6863H, CE6863H-K, CE6881H and CE6881H-K:
By default, tunnel packets are load balanced based on inner-src-ip, inner-dst-ip, inner-l4-sport, and inner-l4-dport.
This command is supported only on the CE8850-SAN, CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6820H, CE6820H-K, CE6820S, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875.
Format
For CE8855, CE8851-32CQ4BQ, CE9865, CE9855, CE8865, CE8875, CE8865-SAN, CE8851-32CQ8DQ-P, CE8850-HAM, CE8850-SAN, CE8851K, CE6866, CE6860-HAM, CE6860-SAN, CE6866K, CE6885-SAN, CE6855-48XS8CQ, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L:
ip-tunnel { inner-src-ip | inner-dst-ip | inner-l4-sport | inner-l4-dport | inner-protocol | src-interface | include-erspan } *
undo ip-tunnel [ inner-src-ip | inner-dst-ip | inner-l4-sport | inner-l4-dport | inner-protocol | src-interface | include-erspan ] *
For CE6820H, CE6820H-K, CE6820S, CE6863H, CE6863H-K, CE6881H, CE6881H-K:
ip-tunnel { inner-src-ip | inner-dst-ip | inner-l4-sport | inner-l4-dport | src-mac | dst-mac } *
undo ip-tunnel [ inner-src-ip | inner-dst-ip | inner-l4-sport | inner-l4-dport | src-mac | dst-mac ] *
Parameters
Parameter | Description | Value |
---|---|---|
inner-src-ip |
Performs load balancing based on the inner source IP address. |
- |
inner-dst-ip |
Performs load balancing based on the inner destination IP address. |
- |
inner-l4-sport |
Performs load balancing based on the inner transport-layer source port. |
- |
inner-l4-dport |
Performs load balancing based on the inner transport-layer destination port. |
- |
inner-protocol |
Performs load balancing based on the inner transport-layer protocol. NOTE:
This parameter is supported only on the CE8850-SAN, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875. |
- |
src-mac |
Performs load balancing based on the source mac. NOTE:
This parameter is supported only on the CE6881H, CE6881H-K, CE6863H, CE6863H-K, CE6820H, CE6820H-K and CE6820S. |
- |
dst-mac |
Performs load balancing based on the destination mac. NOTE:
This parameter is supported only on the CE6881H, CE6881H-K, CE6863H, CE6863H-K, CE6820H, CE6820H-K and CE6820S. |
- |
src-interface |
Performs load balancing based on the source interface. NOTE:
This parameter is supported only on the CE8850-SAN, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875. |
- |
include-erspan |
Performs load balancing based on the source IP address, destination IP address, source port, and destination port of ERSPAN inner packets. NOTE:
This parameter is supported only on the CE8850-SAN, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875. |
- |
Usage Guidelines
Usage Scenario
When the device functions as an intermediate node of a tunnel and there is a load balancing link, you can run the ip-tunnel command to enable the device to perform load balancing based on the inner IP header fields of packets. This prevents uneven load balancing due to the use of the outer IP header for load balancing.
Precautions
For the CE6820H, CE6820H-K, CE6820S, CE6863H, CE6863H-K, CE6881H and CE6881H-K:
- GRE, 4over6, 6over4, and VXLAN packets: Load balancing is performed based only on the inner IP header.
- ERSPAN packets: Load balancing is performed based only on the outer IP header.
Currently, GRE, 4over6, 6over4, VXLAN, and ERSPAN packets are supported.
- Load balancing can be performed based only on the inner IP header.
load-balance ecmp
load-balance ecmp rail-group enable
Function
The load-balance ecmp rail-group enable command enables the rail group function.
The undo load-balance ecmp rail-group enable command disables the rail group function.
By default, the rail group function is disabled.
This command is supported only on the CE8850-SAN, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875.
Usage Guidelines
Usage Scenario
You can run this command to enable the rail group function.
Precautions
- On the CE8851-32CQ8DQ-P, CE8851K, CE8850-HAM, CE8850-SAN, CE8855, and CE8851-32CQ4BQ, this command and the load-balancing adaptive-routing command are mutually exclusive and cannot be configured together.
- On the CE6881H, CE6881H-K, CE6866-48S8CQ-P, CE6866-48S8CQ-K, CE6860-HAM, CE6860-SAN, CE6885, CE6885L, CE6885-SAN, CE8851-32CQ8DQ-P, CE8851-32CQ8DQ-K, CE8850-HAM, CE8850-SAN, CE9865, CE9855, CE8855, CE8865, CE8875, and CE8865-SAN, this command and the load-balance vxlan-overlay ecmp stateful enable command are mutually exclusive and cannot be configured together.
- On the CE6885, CE6885-SAN, CE9865, and CE9855, this command and the load-balance ecmp rocev2 per-packet enable command are mutually exclusive and cannot be configured together.
- This command and the load-balancing ucmp commands are mutually exclusive and cannot be configured together.
- This command and the load-balance ecmp stateful enable command are mutually exclusive and cannot be configured together.
- This command and the vxlan-overlay all local-preference enable command are mutually exclusive and cannot be configured together.
- This command and the vxlan-overlay network local-preference enable command are mutually exclusive and cannot be configured together.
- This command and the ecmp underlay seed <under-seed-data> command are mutually exclusive and cannot be configured together.
- This command and the ecmp underlay universal-id <under-universal-id> command are mutually exclusive and cannot be configured together.
- This command and the load-balance ecmp rocev2 per-packet enable command are mutually exclusive and cannot be configured together.
load-balance ecmp rocev2 per-packet enable
Function
The load-balance ecmp rocev2 per-packet enable command enables per-packet load balancing for RoCEv2 packets.
The undo load-balance ecmp rocev2 per-packet enable command disables per-packet load balancing for RoCEv2 packets.
By default, per-packet load balancing is disabled for RoCEv2 packets.
This command is supported only on the CE8855, CE8851-32CQ4BQ, CE8865-SAN, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE6855-48XS8CQ, CE9865, CE9855, CE8865 and CE8875.
Usage Guidelines
Usage Scenario
In some scenarios, RDMA traffic may be unevenly hashed. As a result, the effective network throughput is insufficient. You can run the load-balance ecmp rocev2 per-packet enable command to configure per-packet load balancing on the device and use the out-of-order packet receiving capability of the NIC together to solve the uneven hash problem of traditional per-flow load balancing.
Precautions
- This command and the adaptive-routing enable command are mutually exclusive and cannot be configured together.
- This command and the load-balance ecmp rail-group enable command are mutually exclusive and cannot be configured together.
- This command and the load-balancing adaptive-routing command are mutually exclusive and cannot be configured together.
- This command takes effect only for RoCEv2 packets with the one most significant bit of the Rsv field in the BTH being 1.
load-balance ecmp stateful enable
Function
The load-balance ecmp stateful enable command enables the ECMP load balancing consistency function.
The undo load-balance ecmp stateful enable command disables the ECMP load balancing consistency function.
By default, the ECMP load balancing consistency function is disabled.
Usage Guidelines
Usage Scenario
When a device that participates in traffic load balancing becomes faulty, the number of equal-cost routes reduces, and so all traffic needs to be load balanced again using the hash algorithm. As a result, traffic forwarding paths may change. Requests of the same user may be sent to different servers, greatly affecting the services in which sessions need to be maintained. To prevent this problem, run the load-balance ecmp stateful enable command. This command enables the ECMP load balancing consistency function so that hash calculation is performed only for traffic on the faulty link, without affecting traffic on other normal links.
Prerequisites
- When using the ECMP load balancing consistency function, ensure that routes are symmetrically deployed. Multiple equal-cost paths to different destination addresses are either all the same or all different.
- If the hash consistency enhancement command has been run, run the undo load-balance ecmp stateful enhanced enable command in the system view to disable hash consistency enhancement before canceling load-balance ecmp stateful enable.
Configuration Impact
After enabling the ECMP load balancing consistency function, do not change the configured load balancing hash algorithm, hash algorithm offset, or load balancing mode. Otherwise, this function may be unable to take effect.
The ECMP load balancing consistency function may be unable to take effect when outbound interfaces of equal-cost links are intermittently disconnected. The ECMP load balancing consistency function takes effect only for common IP traffic, but not for traffic transmitted over tunnels. After the ECMP load balancing consistency function is enabled, traffic will not be evenly load balanced if the number of next hops is not a power of 2.Precautions
- This command and the load-balancing ucmp command are mutually exclusive.
- On the CE6863H, CE6863H-K, CE6881H, and CE6881H-K models, this command and the local-preference enhanced command are mutually exclusive.
- On the CE8851-32CQ8DQ-P, CE8850-HAM, CE8850-SAN, and CE8851K, this command and the load-balancing adaptive-routing command are mutually exclusive.
- On the CE8851-32CQ8DQ-P, CE8850-HAM, CE8850-SAN, and CE8851K, this command and the adaptive-routing enable command are mutually exclusive.
load-balance ecmp stateful enhanced enable
Function
The load-balance ecmp stateful enhanced enable command enables the ECMP load balancing consistency enhancement function.
The undo load-balance ecmp stateful enhanced enable command disables the ECMP load balancing consistency enhancement function.
By default, ECMP load balancing consistency enhancement is disabled.
Usage Guidelines
Usage Scenario
When an ECMP member link fails, the ECMP load balancing consistency function ensures that the forwarding path of a normal link remains unchanged. However, if a faulty member link recovers or a new link is added, traffic is forwarded along another path. The ECMP load balancing consistency function cannot ensure that the original forwarding path remains unchanged. After ECMP load balancing consistency enhancement is enabled using the load-balance ecmp stateful enhanced enable command, if a faulty link is removed, only traffic on the faulty link is hashed again. If a new link is added, not all traffic is hashed again.
Prerequisites
Before running the load-balance ecmp stateful enhanced enable command to enable the ECMP load balancing consistency enhancement function, run the load-balance ecmp stateful enable command in the system view to enable the ECMP load balancing consistency function.
Precautions
- Before applying ECMP consistency enhancement, ensure that routes are symmetrically deployed. Specifically, multiple equal-cost paths to different destination addresses are either all the same or all different.
- After ECMP consistency enhancement is enabled, you cannot change the configured load balancing hash algorithm, hash algorithm offset, or load balancing mode. Otherwise, this function may not take effect.
- When the outbound interfaces of equal-cost links are intermittently disconnected, the ECMP load balancing consistency enhancement function may not take effect.
- ECMP consistency enhancement may not take effect if outbound interfaces of equal-cost links are intermittently disconnected.
- If ECMP members include IP tunnels, VXLAN tunnels, and VBDIF interfaces (next hops), the hash consistency function is not supported.
- After ECMP consistency enhancement is configured, traffic will not be evenly hashed if the number of paths to the next hop is not a power of 2.
load-balance vxlan-overlay ecmp stateful enable
Function
The load-balance vxlan-overlay ecmp stateful enable command enables the ECMP consistency function for VXLAN-overlay traffic.
The undo load-balance vxlan-overlay ecmp stateful enable command disables the ECMP consistency function for VXLAN-overlay traffic.
By default, the ECMP consistency function is disabled for VXLAN-overlay traffic.
This command is supported only on the CE8850-SAN, CE6881H, CE6881H-K, CE8855, CE8851-32CQ4BQ, CE6866, CE6860-HAM, CE8865-SAN, CE6863H, CE6863H-K, CE6885-LL (standard forwarding mode), CE6885H, CE6885, CE6885-T, CE6863E-48S8CQ, CE6885L, CE6885-SAN, CE8851K, CE8851-32CQ8DQ-P, CE8850-HAM, CE6855-48XS8CQ, CE6866K, CE6860-SAN, CE9865, CE9855, CE8865 and CE8875.
Format
load-balance vxlan-overlay ecmp stateful enable
undo load-balance vxlan-overlay ecmp stateful enable
Usage Guidelines
Usage Scenario
If a device that forwards traffic in load balancing mode fails, a faulty member link recovers, or a new link is added, traffic forwarding paths are re-allocated. This means that hash calculation needs to be performed again for all traffic. As a result, traffic forwarding paths may change, and requests of the same user may be sent to different servers. This has a significant impact on the services in which sessions need to be maintained. After the traffic hash consistency function is enabled using the load-balance vxlan-overlay ecmp stateful enable command: when a link is faulty or the fault is removed, only traffic on the faulty link is re-hashed; when a new link is added, not all traffic needs to be re-hashed.
Prerequisites
Before applying the VXLAN-overlay ECMP consistency function, ensure that routes are symmetrically deployed. Specifically, multiple equal-cost paths to different destination addresses are either all the same or all different.
Configuration Impact
- After the VXLAN-overlay ECMP consistency function is enabled, the configured load balancing hash algorithm, load balancing hash algorithm offset, or load balancing mode cannot be changed. If the preceding configurations are switched after the VXLAN-overlay ECMP consistency function is enabled, the function may not take effect.
- When the outbound interface of an equal-cost link alternates between Up and Down states, the VXLAN-overlay ECMP consistency function may not take effect.
- The VXLAN-overlay ECMP consistency function takes effect only in scenarios where VXLAN tunnel next-hop forwarding is involved, and does not apply to ECMP scenarios where common IP forwarding services are used.
- After the VXLAN-overlay ECMP consistency function is enabled, if the number of next-hop paths is not a power of 2, traffic cannot be evenly hashed.
Precautions
- This command and the load-balance ecmp rail-group enable command are mutually exclusive.
- This command and the load-balancing adaptive-routing command are mutually exclusive.
- This command and the adaptive-routing enable command are mutually exclusive.
- This command and the load-balancing ucmp command are mutually exclusive.
On the CE6863H, CE6863H-K, CE6881H and CE6881H-K:
- This command and the local-preference enhanced command are mutually exclusive.
- This command and the load-balancing ucmp command are mutually exclusive.
On the CE6866-48S8CQ-P, CE6866-48S8CQ-K, CE6860-HAM, CE6860-SAN, CE6885, CE6885L, and CE6885-SAN:
- This command and the load-balance ecmp rail-group enable command are mutually exclusive.
- This command and the load-balancing ucmp command are mutually exclusive.
local-preference enhanced
Function
The local-preference enhanced command enables the function to preferentially forward traffic through a local chip.
The undo local-preference enhanced command restores the default configuration.
By default, the function to preferentially forward traffic through a local chip is not enabled.
This command is supported only on the CE6881H, CE6881H-K, CE6863H and CE6863H-K.
Usage Guidelines
Usage Scenario
If a device has multiple chips for traffic forwarding, the hash algorithm may select an inter-chip outbound interface, increasing the consumption of inter-chip bandwidth resources.
To resolve this issue, run this command so that traffic is preferentially forwarded from a local chip. Specifically, a chip preferentially forwards received traffic through its outbound interface. This effectively saves inter-chip bandwidth resources and improves the forwarding efficiency of traffic.Precautions
- This command and the load-balance ecmp stateful enable command are mutually exclusive and cannot be configured together.
- This command and the vxlan-overlay all local-preference enable command are mutually exclusive and cannot be configured together.
- This command and the vxlan-overlay network local-preference enable command are mutually exclusive and cannot be configured together.
- This command and the load-balance vxlan-overlay ecmp stateful enable command are mutually exclusive and cannot be configured together.
- display load-balance forwarding-path unicast interface ecmp
- ecmp mode(ECMP load balancing view)
- ecmp seed
- ecmp universal-id
- gtp teid
- hashmode
- ip(ECMP load balance view)
- ip-tunnel(ECMP load balancing view)
- load-balance ecmp
- load-balance ecmp rail-group enable
- load-balance ecmp rocev2 per-packet enable
- load-balance ecmp stateful enable
- load-balance ecmp stateful enhanced enable
- load-balance vxlan-overlay ecmp stateful enable
- local-preference enhanced