- Table of Contents
-
- 14-Layer 3—IP Services Command Reference
- 00-Preface
- 01-IP forwarding basics commands
- 02-IPv6 fast forwarding commands
- 03-DHCPv6 commands
- 04-Multi-CPU packet distribution commands
- 05-Adjacency table commands
- 06-Web caching commands
- 07-DNS commands
- 08-Fast forwarding commands
- 09-ARP commands
- 10-DHCP commands
- 11-IPv6 basics commands
- 12-IP addressing commands
- 13-IP performance optimization commands
- Related Documents
-
| Title | Size | Download |
|---|---|---|
| 04-Multi-CPU packet distribution commands | 45.18 KB |
Multi-CPU packet distribution commands
forwarding policy
Use forwarding policy to specify a multi-CPU packet distribution policy.
Use undo forwarding policy to restore the default.
Syntax
forwarding policy { per-flow [ three-tuple | mode { source-ip | destination-ip | source-port | destination-port } ] | per-packet }
undo forwarding policy
Default
The device uses the flow-based policy that identifies a flow by source IP address, destination IP address, source port number, destination port number, and protocol number.
Views
System view
Predefined user roles
network-admin
context-admin
Parameters
per-flow: Specifies the flow-based forwarding. The device identifies a data flow by the five-tuple, and forwards packets of the same flow to one CPU. The CPU processes flow packets by following the first-in first-out rule.
three-tuple: Identifies a data flow by the three-tuple (source IP address, destination IP address, and protocol number). If you do not specify this keyword, the device identifies a data flow by the five-tuple.
Support for this parameter depends on the device model.
|
Series |
Models |
Parameter compatibility |
|
F5000 series |
F5000-AI-160-G, F5000-AI-130-G, F5000-AI-120-G, F5000-AI-110-G, F5000-AI-55-G, F5000-AI-15-G, F5000-CN160-G, F5000-E-G, F5000-AI160, F5000-CN160, F5000-CN-G55, F5080, F5030 |
Yes |
|
F1000 series |
F1000-AI-25 |
No |
|
F1000-AK9130, F1000-AI-90, F1000-AI-90-G, F1000-AI-80-G, F1000-AI-75-G, F1000-AI-65-G, F1000-AI-55-G |
Yes |
mode: Specifies a flow-based forwarding mode.
source-ip: Identifies a flow by source IP address.
destination-ip: Identifies a flow by destination IP address.
source-port: Identifies a flow by source port.
destination-port: Identifies a flow by destination port.
per-packet: Specifies the packet-based forwarding. The device forwards packets in sequence to different CPUs, even though they are the same flow. This policy does not ensure packet order.
Support for this parameter depends on the device model.
|
Series |
Models |
Parameter compatibility |
|
F5000 series |
F5000-AI-160-G, F5000-AI-130-G, F5000-AI-120-G, F5000-AI-110-G, F5000-AI-55-G, F5000-AI-15-G, F5000-CN160-G, F5000-E-G |
No |
|
F5000-AI160, F5000-CN160, F5000-CN-G55, F5080, F5030 |
Yes |
|
|
F1000 series |
F1000-AK9130, F1000-AI-90, F1000-AI-25, F1000-AI-90-G, F1000-AI-80-G, F1000-AI-75-G, F1000-AI-65-G, F1000-AI-55-G |
Yes |
Usage guidelines
If you do not specify any keyword for flow identification, the device identifies a flow by source IP address, destination IP address, source port number, destination port number, and protocol number.
As a best practice, do not configure a packet distribution policy when you use the NAT or AFT service.
Examples
# Specify the flow-based policy.
<Sysname> system-view
[Sysname] forwarding policy per-flow
