The flow-label command enables flow label-based load balancing for a PW template.
The undo flow-label command disables flow label-based load balancing for a PW template.
By default, flow label-based load balancing is disabled for a PW template.
Parameter | Description | Value |
---|---|---|
both |
Configures the local end to send and receive packets based on flow labels. |
- |
send |
Configures the local end to send packets based on flow labels. |
- |
receive |
Configures the local end to receive packets based on flow labels. |
- |
static |
Configures static flow label-based load balancing. |
- |
Usage Scenario
When multiple links exist between Ps, you can configure flow label-based load balancing to improve L2VPN traffic forwarding efficiency. After a PE has flow label-based load balancing enabled, the PE adds flow labels to L2VPN data flows to distinguish these flows. After a P receives a flow label-carrying data packet, it selects a forwarding path based on the flow label in the data packet. Traffic load balancing is then implemented.
If a PW references a PW template with flow label-based load balancing enabled, the PW also supports flow label-based load balancing. To enable flow label-based load balancing for a PW template, run the flow-label command in the PW template view.Prerequisites
The PW template view has been displayed using the pw-template pw-template-name command.