- 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-IP forwarding basics commands
- 07-Fast forwarding commands
- 08-Flow classification commands
- 09-Adjacency table commands
- 10-IRDP commands
- 11-IP performance optimization commands
- 12-UDP Helper commands
- 13-IPv6 basics commands
- 14-DHCPv6 commands
- 15-IPv6 fast forwarding commands
- 16-Tunneling commands
- 17-GRE commands
- 18-ADVPN commands
- 19-AFT commands
- 20-WAAS commands
Title | Size | Download |
---|---|---|
08-Flow classification commands | 27.11 KB |
Flow classification commands
forwarding policy
Use forwarding policy to specify a flow classification policy.
Use undo forwarding policy to restore the default.
Syntax
forwarding policy { per-flow | per-packet }
undo forwarding policy
Default
The flow-based policy is used.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
per-flow: Specifies the flow-based forwarding. The device forwards packets of the same flow to the same CPU. A data flow is defined by the following fields: source IP address, destination IP address, source port number, destination port number, and protocol number. This policy takes the first-in first-out rule.
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.
Examples
# Specify the packet-based policy globally.
<Sysname> system-view
[Sysname] forwarding policy per-packet
# Specify the flow-based policy globally.
<Sysname> system-view
[Sysname] forwarding policy per-flow