The hardware fast-forwarding filter advanced command configures advanced user-defined filtering conditions for hardware fast forwarding.
The undo hardware fast-forwarding filter advanced command cancels the configuration.
hardware fast-forwarding filter advanced { protocol { tcp | udp | sctp | icmp | gre | protocol-number | default } { average-packet-length average-packet-length | byte byte | existed-time existed-time | packet packet | packet-rate packet-rate } * } &<1-8>
undo hardware fast-forwarding filter advanced { protocol { tcp | udp | sctp | icmp | gre | protocol-number | default } [ average-packet-length average-packet-length | byte byte | existed-time existed-time | packet packet | packet-rate packet-rate ] } &<1-8>
undo hardware fast-forwarding filter advanced protocol all
| Parameter | Description | Value |
|---|---|---|
tcp |
Indicates TCP. |
- |
udp |
Indicates UDP. |
- |
sctp |
Indicates SCTP. |
- |
icmp |
Indicates ICMP. |
- |
gre |
Indicates GRE. |
- |
protocol-number |
Specifies a protocol number. |
The value is an integer ranging from 0 to 255. |
default |
Indicates all unspecified protocols. |
- |
average-packet-length |
Specifies the average packet length (number of bytes) since a session is created. Indicates that fast forwarding is implemented only for the sessions whose average packet length is not greater than the value. NOTE:
To prevent calculation distortion, the packet length calculation starts only after at least 100 packets are transmitted. |
The value is an integer ranging from 46 to 9600. |
byte |
Specifies the number of one-way bytes. Indicates that fast forwarding is implemented only for the sessions of which the number of one-way bytes is not less than the value. |
The value is an integer ranging from 46 to 4294967295. |
existed-time |
Specifies the traffic duration time. Indicates that fast forwarding is implemented only for traffic of which the duration is not less than this value. |
The value is an integer ranging from 1 to 36000, in seconds. |
packet |
Specifies the number of one-way packets. Indicates that fast forwarding is implemented only for the sessions of which the number of one-way packets is not less than the value. |
The value is an integer ranging from 6 to 65535. |
packet-rate |
Specifies the one-way packet rate. Indicates that fast forwarding is implemented only for the sessions of which the one-way packet rate is not less than the value. |
The value is an integer ranging from 1 to 65535, in kpps. |
all |
Indicates all advanced user-defined filtering conditions are deleted. |
- |
In versions earlier than V600R007C20SPC200, all models support this command. For V600R007C20SPC200 and later versions, device batches are distinguished by BomID Version (which can be checked using the display version command). All models except the USG6680E and USG6712E/6716E whose BomID Version is 003 or later or whose device BOM numbers contain "-001" support this command.
By default, no advanced user-defined filtering condition is configured for hardware fast forwarding.
You can run the hardware fast-forwarding filter advanced command several times to configure multiple filtering conditions.
After configuring a user-defined filtering condition, you need to run the hardware fast-forwarding filter advanced enable user-defined command to enable it. Otherwise, the user-defined filtering condition does not take effect.
# Configure three advanced filtering conditions so that hardware fast forwarding can be performed for TCP traffic that lasts for no less than 30 seconds, UDP traffic that lasts for no less than 30 seconds, and other traffic (non-TCP and non-UDP) with no less than 20 one-way packets.
<sysname> system-view [sysname] hardware fast-forwarding filter advanced protocol tcp existed-time 30 [sysname] hardware fast-forwarding filter advanced protocol udp existed-time 30 [sysname] hardware fast-forwarding filter advanced protocol default packet 20