This section describes the traffic profiles and their parameters. A traffic profile defines the availability of bandwidth resources. A FW applies a traffic profile to traffic that matches the traffic policy.
The FW uses traffic profiles to manage bandwidth. Each traffic profile uses multiple parameters to describe and control bandwidth resources, such as overall guaranteed bandwidth and maximum bandwidth, per-IP-address/per-user guaranteed bandwidth and maximum bandwidth, connection limits, DSCP priority re-marking, and bandwidth multiplexing.
The overall guaranteed bandwidth is the minimum available bandwidth assigned by a traffic profile to traffic that matches the traffic profile. Similarly, the overall maximum bandwidth is the maximum available bandwidth assigned by a traffic profile to traffic that matches the traffic profile. After traffic matches a traffic profile, the FW compares the traffic with the guaranteed bandwidth/maximum bandwidth specified in the traffic profile and handles the traffic as follows:
In addition to the overall guaranteed bandwidth and maximum bandwidth, the per-IP-address or per-user guaranteed bandwidth and maximum bandwidth can be specified in a traffic profile for refined bandwidth restriction.
After traffic policies reference traffic profiles, the FW collects statistics on traffic matching traffic policies based on IP addresses or users. The function of the per-IP-address/per-user guaranteed bandwidth and maximum bandwidth is similar to that of the overall bandwidth. The difference is that the guaranteed bandwidth and maximum bandwidth is subject to an IP address/user.
In addition, the FW can dynamically and equally distribute bandwidth resources to each IP address/user based on the overall maximum bandwidth and the number of online IP addresses/users, fully utilizing bandwidth resources.
A FW maps each connection between two endpoints to a session. The FW controls session generation to limit the number of connections. You can set the maximum number of connections on the FW for the following purposes:
The maximum number of all connections and the maximum number of source-IP-address-specific or user-specific connections can be set in a traffic profile.
The maximum bandwidth, guaranteed bandwidth, and connection limit can be separately specified for upstream and downstream directions. In a traffic profile, the upstream and downstream directions have specific mapping relationship with the traffic policy to which the traffic profile is referenced. If the direction is the same as that of the traffic policy, the direction is upstream. If not, the direction is downstream. That is, if a data flow matches the traffic policy, the data flow is upstream traffic. Exchange the source and destination in the traffic policy, the matched traffic is downstream traffic.
For example, you can configure either of the following methods to limit the traffic from the trust zone to the untrust zone:
In addition, the FW supports bandwidth control based on the total of upstream and downstream traffic.
The DSCP priority re-marking function modifies the DSCP values in packets. Network devices distinguish and process packets based on DSCP values carried in the packets. You can configure DSCP priorities to distinguish the traffic of each network device on the packet transmission path to implement differentiated processing on the traffic with different DSCP priorities.
The FW supports the configuration of DSCP as a matching condition and the modification of the DSCP value in packets that match the conditions in the traffic profile. This function helps the upstream and downstream devices of the FW to distinguish traffic based on the modified DSCP priorities.
After a traffic policy references a traffic profile, the overall maximum bandwidth, guaranteed bandwidth, and maximum number of connections defined in a traffic profile take effect on the traffic that matches the policy. A traffic profile works in either of the following modes:
Exclusive mode
A traffic profile is used by only one policy. Traffic that matches the policy has exclusive use of the maximum bandwidth defined in the traffic profile.
Shared mode
A traffic profile is shared by multiple traffic policies. Traffic that matches these traffic policies shares the maximum bandwidth defined in the traffic profile.
Bandwidth multiplexing enables a FW to use one traffic profile to dynamically allocate bandwidth resources to multiple flows.
Bandwidth multiplexing is applicable to the following scenarios:
The FW supports configuring the traffic forwarding priority for a traffic profile. If the traffic forwarding priority is set to medium (4) in the traffic profile, traffic policing is used for bandwidth limiting by default. If the traffic forwarding priority is not set to medium (4), traffic shaping is used for bandwidth limiting by default. In this case, the forwarding priorities of peak traffic and burst traffic packets exceeding the upper bandwidth threshold are changed, packets with a priority larger than 4 are preferentially sent, and packets with a priority smaller than 4 are sent later. Figure 1 describes the differences between traffic shaping and traffic policing.
When traffic shaping is used, the data volume in the cache and the cache duration are subject to the queue length. Once the data volume in the cache exceeds the threshold of the queue length, data packets will be discarded.