Bandwidth Management of IP addresses using Access Rules
03/26/2020 110 13950
SonicOS Enhanced offers an integrated traffic shaping mechanism through its Egress (outbound) and Ingress (inbound) bandwidth management (BWM) interfaces. Outbound BWM can be applied to traffic sourced from Trusted and Public Zones (such as LAN and DMZ) destined to Untrusted and Encrypted Zones (such as WAN and VPN). Inbound BWM can be applied to traffic sourced from Untrusted and Encrypted Zones destined to Trusted and Public Zones.
This scenario based article describes bandwidth management of traffic from a single or multiple IP addresses using Access Rules.
Enabling Bandwidth Management on the WAN Interface | Advanced tab
BWM configurations begin by enabling BWM on the relevant WAN interface, and declaring the interface’s available bandwidth in Kbps (Kilobits per second). This is performed from the Network | Interfaces page by selecting the Configure icon for the WAN interface, and navigating to the Advanced tab:
Figure 1: Network | (WAN) Interface | Advanced Tab
Egress and Ingress BWM can be enabled jointly or separately on WAN interfaces. Different bandwidth values may be entered for outbound and inbound bandwidth to support asymmetric links. Link rates up to 100,000 Kbps (100Mbit) may be declared on Fast Ethernet interfaces, while Gigabit Ethernet interfaces will support link rates up to 1,000,000 Kbps (Gigabit). The speed declared should reflect the actual bandwidth available for the link. Oversubscribing the link (i.e. declaring a value greater than the available bandwidth) is not recommended.
NOTE: Once BWM has been enabled on an interface, and a link speed has been defined, traffic traversing that link will be throttled—both inbound and outbound—to the declared values, even if no Access Rules are configured with BWM settings.
Once one or both BWM settings are enabled on the WAN interface and the available bandwidth has been declared, a Bandwidth tab will appear on Access Rules. The Bandwidth tab will present either Inbound settings, Outbound settings, or both, depending on what was enabled on the WAN interface:
Bandwidth Management of a single IP address
In this section we describe how traffic from a single IP address is throttled when accessing resources on the WAN
Navigate to the Firewall | Access Rules
Select LAN | VPN
Click on the create button to create the following access rule:
The configuration on the General tab will classify the traffic. In the above example, which assumes no other configured BWM rules, traffic from an IP address, 10.10.10.15, on the LAN (Trusted) Zone destined to the WAN zone will be guaranteed 5% of the declared bandwidth (5% of 1500Kbps = 75Kbps) and the host will not be permitted to exceed 10% of the declared bandwidth (10% of 1500Kbps = 150 Kbps)
Bandwidth Management of a Network of IP addresses
In the following access rule, traffic from the LAN (Trusted) Zone’s LAN Subnets destined to the remote VPN subnet (Encrypted), consisting of Service Group VOIP will be guaranteed 40% of the declared bandwidth (40% of 1500Kbps = 600Kbps), but it will not be permitted to exceed 70% (70% of 1500 Kbps = 1050 Kbps), leaving 300Kbps for other traffic. Likewise, enabling Inbound Bandwidth Management will do the same for inbound VoIP traffic from the VPN zone.