Configuring per-packet or per-flow load sharing
Load sharing can be implemented in one of the following ways:
Per-packet—The device forwards packets over equal-cost routes.
Per-flow—The device forwards flows over equal-cost routes. Packets of one flow travel along the same routes. You can configure the device to identify a flow based on the following criteria: source IP address, destination IP address, source port number, destination port number, IP protocol number, and ingress port.
In a complex network, when the five tuples cannot distinguish flows, you can use the algorithm keyword to specify an algorithm to identify flows.
To configure per-flow or per-packet load sharing:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Configure load sharing. |
| By default, the device identifies a flow based on the source and destination IP addresses. |