R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide
114
Configuring flow classification
Overview
Flow classification organizes packets with different characteristics into different classes by using certain
match criteria. It is the basis for providing differentiated services.
For a multi-core device, the control plane and data plane run on different kernels and threads respectively.
The data plane processes packets based on flows. A flow identifies packets with the same characteristics
(identical quintuple) and processing procedure. The flow classification module marks every packet with
a flow label before sending the packet to the data plane. When the data plane receives the first packet
of a flow, a forwarding entry for the flow is created by the service module. Then, the subsequent packets
can be forwarded based on the forwarding entry to improve forwarding efficiency.
Enabling flow classification
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enable flow classification.
flow-classification
enable
Optional.
Enabled by default.
Configuring flow classification policy
CAUTION:
If keyword per-packet is specified, the packets of each flow are delivered to different data planes for
processing. In this case, the packets might not be processed orderly. When a certain service is enabled,
the service might fail to process the packets on different data planes and thus discards the packets.
To configure flow classification policy:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Specify a flow classification
policy.
forwarding policy { per-flow |
per-packet } [ ip | mpls ]
Optional.
The per-flow policy is specified by
default.