- Table of Contents
-
- 06-Layer 3—IP Services Command Reference
- 00-Preface
- 01-ARP commands
- 02-IP addressing commands
- 03-DHCP commands
- 04-DNS commands
- 05-NAT commands
- 06-AFT commands
- 07-Fast forwarding commands
- 08-Multi-CPU packet distribution commands
- 09-Adjacency table commands
- 10-IPv6 fast forwarding commands
- 11-Tunneling commands
- 12-GRE commands
- 13-IPv6 basics commands
- 14-IP performance optimization commands
- 15-IP forwarding basics commands
- 16-WAAS commands
- Related Documents
-
Title | Size | Download |
---|---|---|
08-Multi-CPU packet distribution commands | 41.11 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 forwards packets of the same flow to the same CPU. The device identifies a data flow by source IP address, destination IP address, source port number, destination port number, and protocol number. 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.
The following compatibility matrix shows the support of hardware platforms for the three-tuple keyword:
Series |
Models |
Parameter compatibility |
L5000 series |
L5000-C, L5000-S |
No |
L5000-E, L5030, L5060, L5080, L5000-AK535 |
Yes |
|
L1000 series |
L1000-C, L1000-S, L1000-M, L1000-E, L1000-AK310, L1000-AK315, L1000-AK320, L1000-AK325, L1000-AK330, L1000-AK390, L1030, L1050, L1070, L1090 |
No |
L100 series |
L100-C |
Yes |
Modules |
LSU1ADECEA0, LSWM1ADED0, LSQM1ADEDSC0 |
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.
The following compatibility matrix shows the support of hardware platforms for the mode keyword:
Series |
Models |
Parameter compatibility |
L5000 series |
L5000-C, L5000-S |
No |
L5000-E, L5030, L5060, L5080, L5000-AK535 |
Yes |
|
L1000 series |
L1000-C, L1000-S, L1000-M, L1000-E, L1000-AK310, L1000-AK315, L1000-AK320, L1000-AK325, L1000-AK330, L1000-AK390, L1030, L1050, L1070, L1090 |
No |
L100 series |
L100-C |
Yes |
Modules |
LSU1ADECEA0, LSWM1ADED0, LSQM1ADEDSC0 |
Yes |
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.
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.
Examples
# Specify the flow-based policy.
<Sysname> system-view
[Sysname] forwarding policy per-flow