Overview: Bandwidth Control Management: Manual Chapter: Managing Traffic With Bandwidth Controllers
Overview: Bandwidth Control Management: Manual Chapter: Managing Traffic With Bandwidth Controllers
Overview: Bandwidth Control Management: Manual Chapter: Managing Traffic With Bandwidth Controllers
(/)
Print
Bandwidth control policies can be static or dynamic. When you create the first policy, of either type,
the system automatically creates a default static bandwidth control policy to handle any traffic that is
not covered by the bandwidth control policies you create. The default policy resides in the /Common
folder, but the policies you create can reside in any folder. The preset rate limit for the default policy
is 320 Gbps, but you can change this value. Using iRules, you can combine static and dynamic
bandwidth control policies up to eight policies on a connection, but only one of the eight policies can
be a dynamic policy. When you apply a bandwidth control policy to a virtual server, packet filter, or
route domain, you can apply only one policy at a time, and that is a static policy. A packet is
transmitted only when all the attached policies allow it. The system as a whole supports a maximum
of 1024 policies.
1 of 8 11/09/2017 04:30 PM
AskF5 | Manual Chapter: Managing Traffic with ... https://support.f5.com/kb/en-us/products/big-ip_l...
A static bandwidth control policy controls the aggregate rate for a group of applications or a network
path. It enforces the total amount of bandwidth that can be used, specified as the maximum rate of
the resource you are managing. The rate can be the total bandwidth of the BIG-IP device, or it might
be a group of traffic flows.
Task list
The system creates a static bandwidth control policy. If this is the first bandwidth control policy
created on a BIG-IP device, the system also creates a default static bandwidth control policy named
default-bwc-policy in the partition Common to handle any traffic that is not included in the policy
you created. When you delete the last bandwidth policy from the system, the system also deletes the
default policy. You cannot delete the default policy directly.
For the bandwidth control policy to take effect, you must apply the policy to traffic, using a virtual
server, packet filter, or route domain.
2 of 8 11/09/2017 04:30 PM
AskF5 | Manual Chapter: Managing Traffic with ... https://support.f5.com/kb/en-us/products/big-ip_l...
4. From the Bandwidth Controller list, select a bandwidth control policy. Only static bandwidth
control policies are available in this list.
5. Click Update to save the changes.
The BIG-IP system now applies rate enforcement to the traffic intercepted by this virtual server,
according to the static bandwidth policy you selected. A static bandwidth policy associated with a
virtual server applies only to client-initiated flows, and not to bandwidth for traffic flowing toward the
client.
The BIG-IP system can enforce multiple levels of bandwidth limits through the dynamic policy. For
example, a user could be limited by the maximum rate, a per user rate, and a per category rate (such
as for an application), all from the same dynamic policy. When the total of the maximum user rate for
all the instances exceeds the maximum rate specified in the dynamic policy, the BIG-IP system
maintains fairness among all users and spreads the limitation equally among users belonging to a
dynamic policy.
You can also configure a dynamic bandwidth control policy to mark packets that exceed the
maximum per-user rate for a specified session. The WAN router should handle the marked packets.
The BIG-IP system passes packets that conform to the maximum per-user rate without marking
them. You configure marking by using the IP Type of Service or Link Quality of Service setting. For
example, a common use of QoS marking is for Voice over IP (VoIP) traffic. VoIP is usually assigned
to the Expedited Forwarding (EF) class by using the DSCP value of 46, thus prioritized according to
importance and sensitivity to loss/latency.
Alternatives for identifying users and applying dynamic bandwidth control policies to traffic are using
iRules, Policy Enforcement Manager, or Access Policy Manager.
3 of 8 11/09/2017 04:30 PM
AskF5 | Manual Chapter: Managing Traffic with ... https://support.f5.com/kb/en-us/products/big-ip_l...
Before you create a dynamic bandwidth control policy, F5 recommends that you select the Source
Address for the CMP Hash setting on the VLAN properties screen for the VLAN that carries the traffic
you want to manage. The BIG-IP system uses source and destination hashes to control the way
incoming traffic is distributed among the instances of the Traffic Management Microkernel (TMM)
service. Subscriber-based bandwidth control depends on having a unique one-to-one relationship
between bandwidth control policy and subscriber. Subscribers are commonly identified using a
unique IP address, and, therefore, load distribution among the instances of TMM service must use
the source IP address as the key.
bandwidth control
This procedure describes the steps for attaching a dynamic bandwidth control policy to a traffic flow,
and then applying the policy to traffic, using a virtual server. For information about using Policy
Enforcement Manager to implement the policy, refer to the F5 documentation for Policy Enforcement
Manager.
4 of 8 11/09/2017 04:30 PM
AskF5 | Manual Chapter: Managing Traffic with ... https://support.f5.com/kb/en-us/products/big-ip_l...
7. From the IP Type of Service list, select Specify and type a number between 0 and 63 to
assign a Type of Service (ToS) level to packets that exceed the maximum per-user rate. If you
do not want to set a ToS level, maintain the default setting, Pass Through.
8. From the Link Quality of Service list, select Specify and type a number between 0 and 7 to
assign a Quality of Service (QoS) level to packets that exceed the maximum per-user rate. If
you do not want to set a QoS level, maintain the default setting, Pass Through.
9. In the Categories field, add up to eight categories of traffic that this bandwidth control policy
manages. All the categories share the specified bandwidth, in accordance with the rate
specified for each category.
Note: Use the Categories setting only if you have not set values for the IP Type of Service or
the Link Quality of Service setting.
a. In the Category Name field, type a descriptive name for the category.
b. In the Max Category Rate field, type a value to indicate the most bandwidth that this
category of traffic can use, and select the unit of measure from the list, or select % and
type a percentage from 1 to 100 . If you specify a rate, the number must be in the range
from 500 Kbps to the rate specified for the Maximum Rate Per User setting. A
percentage indicates that this category can use up to the specified percentage of the
maximum per-user rate. These values are upper limits (not minimum or guaranteed), so
the sum can exceed the value you specified for the Maximum Rate Per User setting.
c. Click Add to add the category to the Categories list.
d. Repeat these steps to add more categories, up to a maximum of eight.
10. Click Finished.
If this is the first bandwidth control policy created on a BIG-IP device, the system also creates a
default static bandwidth control policy named default-bwc-policy in the partition Common to
handle any traffic that is not included in the policy you created. You cannot delete the default
bandwidth policy directly, but if you delete all the other bandwidth policies, the system automatically
deletes the default bandwidth policy.
For the dynamic bandwidth control policy to take effect, you must attach the policy to a traffic flow,
and then apply the policy to traffic, using a virtual server, Policy Enforcement Manager, or Access
Policy Manager.
5 of 8 11/09/2017 04:30 PM
AskF5 | Manual Chapter: Managing Traffic with ... https://support.f5.com/kb/en-us/products/big-ip_l...
3. In the Name field, type a unique name between 1 and 31 characters for the iRule.
4. In the Definition field, type the syntax for the iRule using Tool Command Language (Tcl)
syntax. For example, to apply the dynamic bandwidth policy dynamic_bwc_policy to a user
session, type the following iRule, where set mycookie defines a user session. A session is a
combination of client IP address and port. when CLIENT_ACCEPTED { set mycookie
[IP::remote_addr]:[TCP::remote_port] BWC::policy attach dynamic_bwc_policy $mycookie }
5. Click Finished. The new iRule appears in the list of iRules on the system.
You have now identified the user for a dynamic bandwidth control policy.
You must then apply the iRule to the virtual server that intercepts the traffic you want to manage.
The BIG-IP system now manages bandwidth for the traffic intercepted by this virtual server,
according to the dynamic bandwidth policy specified in the assigned iRule.
6 of 8 11/09/2017 04:30 PM
AskF5 | Manual Chapter: Managing Traffic with ... https://support.f5.com/kb/en-us/products/big-ip_l...
Example
To activate this policy, the ISP needs to create an iRule to attach the policy to a user session, and
7 of 8 11/09/2017 04:30 PM
AskF5 | Manual Chapter: Managing Traffic with ... https://support.f5.com/kb/en-us/products/big-ip_l...
8 of 8 11/09/2017 04:30 PM