This section describes how to use the CLI to configure hardware fast forwarding.
To reduce the CPU load and improve the service processing capability of the device, the FW supports fast forwarding for some simple heavy-traffic services (such as NAT services). You can enable or disable hardware fast forwarding as required and configure filtering conditions for hardware fast forwarding.
By default, this function is enabled.
IPSec hardware fast forwarding is enabled by default.
Only the USG6510E/6510E-POE, USG6530E, USG6515E/6550E/6560E/6580E, and USG6525E/6555E/6565E/6575E-B/6585E/6605E-B support this command.
Only the USG6510E/6510E-POE/6530E does not support this function.
In versions earlier than V600R007C20SPC200, USG6680E and USG6712E/6716E support this parameter. For V600R007C20SPC200 and later versions, device batches are distinguished by BomID Version (which can be checked using the display version command). Only the USG6680E and USG6712E/6716E whose BomID Version is earlier than 003 and whose device BOM numbers does not contain "-001" support this parameter.
By default, the standby device does not automatically deliver the fast forwarding table.
By default, the ratio of the fast forwarding table aging time to the CPU session aging time is 80%.
If hardware fast forwarding is not performed after traffic matches basic filtering conditions, match against advanced filtering conditions is not performed, and traffic is forwarded along the normal forwarding process. If condition-based hardware fast forwarding is allowed after traffic matches basic filtering conditions, match against advanced filtering conditions is performed.
The FW supports configuring whether to perform fast forwarding for traffic that satisfies specified basic filtering conditions. The following table displays available basic filtering conditions. You can choose to enable only one of them.
Basic Filtering Condition |
Configuration Method |
Description |
|---|---|---|
ACL-based fast forwarding |
|
Create an advanced ACL. For configuration details, see Creating an Advanced ACL. Hardware fast forwarding is implemented for the traffic that matching the ACL rule with the action of permit and is not implemented for the traffic matching the ACL rule with the action of deny. The traffic matching the ACL rule with the action of deny is still sent to the CPU for processing. NOTE:
The ACL created under the virtual system cannot be referenced. However, the ACL-based filtering conditions for fast forwarding take effect for the traffic of the entire device (including the root system and all virtual systems). |
Interface-based fast forwarding |
|
include indicates that hardware fast forwarding can be performed only for traffic received from a specified interface. exclude indicates that hardware fast forwarding cannot be performed only for traffic received from a specified interface. When multiple filtering conditions are configured, the filtering conditions of the include type of the filtering conditions of the exclude type cannot take effect simultaneously. Only the filtering conditions of the specific type configured later take effect. |
If basic filtering conditions cannot meet your needs, you can also configure an advanced filtering condition.
There are two types of advanced filtering conditions, namely, pre-defined and user-defined. You can enable only one type of the filtering conditions.
Advanced Filtering Condition |
Configuration Method |
Description |
|---|---|---|
Predefined |
Run the hardware fast-forwarding filter advanced enable pre-defined command to enable a predefined advanced filtering condition. |
By default, the FW has a predefined advanced filtering condition that cannot be modified or deleted. The condition is that the duration of a session is not less than 20s and the number of one-way session packets is not less than 6. Hardware fast forwarding is implemented only on the traffic that meets the configuration. |
User-defined |
|
When a predefined filtering condition is used for fast forwarding, and an alarm on the number of fast forwarding tables is generated, you can configure a user-defined filtering condition for more fine-grained control. Properly set filtering parameters based on the actual network traffic model. NOTE:
There is only one filtering condition for a protocol. The specified protocol is preferentially matched with. If the specified protocol is not matched, the default protocol is matched with. The traffic that does not match any protocol is not subject to the filtering control of hardware fast forwarding. |
Run the display hardware fast-forwarding configurations command to view the fast forwarding configurations.
According to the command output, global hardware fast forwarding is enabled, flow table backup function is disable, the ratio of the fast forwarding table aging time to the CPU session aging time is 80% (which is the default value), the basic filtering condition for fast forwarding is not enabled, and the advanced filtering condition for fast forwarding is enabled.
<sysname> display hardware fast-forwarding configurations
===========================================================================================
Hardware Fast-forwarding Information
===========================================================================================
Fast-forwarding Switch : Enable(default is Enable)
Fast-forwarding Session TTL : 80% of Session TTL(default is 80%)
---------------------------------------------------------------------
Fast-forwarding Basic Filter: Disable
---------------------------------------------------------------------
Fast-forwarding Advanced Filter: Enable(filter type is user-defined)
Advanced filter configuration as follow:
protocol udp existed-time 120
---------------------------------------------------------------------
IPSec fast-forwarding enable : Enable(default is Enable)
IPSec Fragmentation Before Encryption : Disable
IPSec DF option : COPY
IPSec Ignore DF-bit : Disable
IPSec CAR : Enable
============================================================================================