(Optional) Configuring a Load Balancing Mode (CE12800E)
Context
An Eth-Trunk uses per-flow load balancing. Per-flow load balancing ensures that packets of the same data flow are forwarded on the same physical link and those of different data flows are forwarded on different physical links.
Load balancing is valid only for outgoing traffic; therefore, interfaces at both ends of the link can use different load balancing modes.
Packet (Inbound Interface) |
Default Load Balancing Mode |
Configurable Load Balancing Mode |
---|---|---|
IPv4 packets |
src-ip, dst-ip, l4-src-port and l4-dst-port |
src-ip, dst-ip, l4-src-port, l4-dst-port, and protocol |
IPv6 packets |
src-ip, dst-ip, l4-src-port and l4-dst-port |
src-ip, dst-ip, protocol, l4-src-port, and l4-dst-port |
MPLS packets |
Ingress/Egress/Transit: top-label, 2nd-label, 3rd-label, src-ip, and dst-ip |
Ingress/Egress/Transit: top-label, 2nd-label, 3rd-label, 4th-label, 5th-label, src-ip, dst-ip, and src-interface |
Layer 2 packets except IPv4 and IPv6 packets |
src-mac and dst-mac |
src-mac, dst-mac, src-interface, and eth-type |
Load balancing is valid only for outgoing traffic; therefore, the load balancing modes for the interfaces at both ends of the link can be different and do not affect each other.
Only the CE12800E equipped with the FD-X series cards supports load balancing for MPLS packets.
Procedure
- Run system-view
The system view is displayed.
- (Optional) Configure a load balancing profile.
- Run the following commands as required.
Configure a load balancing mode for known unicast traffic.
Run interface eth-trunk trunk-id
The Eth-Trunk interface view is displayed.
Run load-balance { dst-ip | dst-mac | src-ip | src-mac | src-dst-ip | src-dst-mac | random | round-robin | enhanced [ resilient ] profile profile-name }
A load balancing mode is configured on an Eth-Trunk.
By default, an Eth-Trunk load balances packets based on enhanced profile.
Only the CE12800E with the FD-X series cards installed supports random and round-robin.
Run commit
The configuration is committed.
Configure a load balancing mode for unknown unicast traffic.
Run load-balance unknown-unicast { mac | enhanced }
A load balancing mode is configured.
By default, the load balancing mode is enhanced.
Run commit
The configuration is committed.
Follow-up Procedure
Configure simulated calculation of an Eth-Trunk outbound interface.
Run display load-balance forwarding-path unicast interface eth-trunk trunk-id src-interface interface-type interface-number { ethtype ethtype-number | vlan vlan-id | [ [ src-ip src-ip-data | dst-ip dst-ip-data ] * | [ src-ipv6 src-ipv6-data | dst-ipv6 dst-ipv6-data ] * ] | src-mac src-mac-data | dst-mac dst-mac-data | protocol { protocol-number | 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
Simulated calculation of an Eth-Trunk outbound interface is configured after the 5-tuple information, source MAC address, and destination address are specified.
Verifying the Configuration
Run display port forwarding-path { src-ip src-ip-data | dst-ip dst-ip-data | src-mac src-mac-data | dst-mac dst-mac-data | protocol { protocol-number | gre | icmp | igmp | ip | ipinip | 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 ] * } } *
Verify the outbound interface of packets that contain specified 5-tuple information, source MAC address, and destination MAC address.