Description:

In certain scenarios it may be desirable to limit the maximum data transmission rate of network participants within a network, while communication within other networks should not be restricted.

This article describes how the available bandwidth for communication within a network can be limited to a specific value on all switch ports of an XS and GS-45xx switch. 



Requirements:


Scenario:

  • Data traffic on the network 192.168.10.0/24 should be limited to 10 MBit on all switch ports.
  • Data traffic on all other networks should be unrestricted.


Procedure:

1) Enable the Diffserv feature:

1.1) Connect to the web interface of the switch and navigate to the menu QoS → Diffserv → Global.

1.2) Make sure that the profile used has the Diffserve Admin Mode option set to Enable.



2) Configure the classes:

Two different classes have to be created, one for the inbound and one for the outbound traffic.

2.1) Switch to the tab Class Summary and click Add to add a new class.

2.2) Create a class for the inbound data traffic. Modify the following parameters and then click Submit:

  • Class: Enter a descriptive name for the class (in this example Class-In).
  • Type: Select which criteria (see steps 2.5 and 2.7) need to be met for the QoS settings to be implemented. With the option All, the settings are applied if all criteria are met. With the option Any, the settings are applied when any of the criteria is met. In this example, we leave the setting at All.   
  • Protocol: Select the IP protocol (IPv4 or IPv6) for which the settings are to be implemented. The option None applies to non-IP packets. Since this example performs filtering on an IPv4 network, IPv4 is selected. 

2.3) Create a class for the outbound data traffic. Modify the following parameters and then click Submit:

  • Class: Enter a descriptive name for the class (in this example Class-Out).
  • Type: Select which criteria (see steps 2.5 and 2.7) need to be met for the QoS settings to be applied. With the option All, the settings are applied if all criteria are met. With the option Any, the settings are applied when any of the criteria is met. In this example, we leave the setting at All
  • Protocol: Select the IP protocol (IPv4 or IPv6) for which the settings are to be implemented. The option None applies to non-IP packets. Since this example performs filtering on an IPv4 network, IPv4 is selected. 

2.4) Switch to the tab Class Configuration, set the Class to the class for inbound traffic created in step 2.2 (in this example Class-In) and click Add Match Criteria to add the criteria that apply the QoS settings.

2.5) Select the criteria for which the QoS settings should take effect and then click Submit.

In this example, enable the option Source IP Address and adjust the following parameters:

  • IP address: Enter the address of the network where the QoS settings are to be applied (in this example 192.168.10.0).
  • IP Mask: Enter the subnet mask 255.255.255.0 for the related network. 

The option Any means the settings apply to any packet. Multiple criteria can be selected.

2.6) For Class, set the Class to the class for outbound traffic created in step 2.3 (in this example Class-Out) and click Add Match Criteria to add the criteria that apply the QoS settings.

2.7) Select the criteria for which the QoS settings should take effect and then click Submit.

In this example, enable the option Destination IP Address and adjust the following parameters:

  • IP address: Enter the address of the networkwhere the QoS settings are to be applied (in this example 192.168.10.0).
  • IP Mask: Enter the subnet mask 255.255.255.0 for the related network. 

The option Any means the settings apply to any packet. Multiple criteria can be selected.



3) Policy configuration:

3.1 Creating the policy:

3.1.1) Switch to the tab Policy Summary and click Add to add a new policy.

A distinction is made between inbound and outbound packets. Because the policy is intended to apply to all ports, two guidelines need to be created.

3.1.2) Create a policy for each, the inbound and outbound traffic. Modify the following parameters and then click Submit:

  • Policy: Enter a descriptive name for each (in this example Policy-Global-In and Policy-Global-Out).
  • Type: For the inbound traffic use the option In and for the outbound traffic use the option Out.

 



3.2) Assign the classes to the policies:

3.2.1) Global inbound traffic:

3.2.1.1) Go to the tab Policy Configuration and make sure that the Policy is set to the inbound packet policy created in step 3.1.2 (in this example Policy-Global-In). Then click Add Class.

3.2.1.2) Under Class, enter the class created for the inbound traffic in step 2.2 (in this example Class-In) and click Submit

3.2.1.3) Under Class, select the assigned class and click Add Attribute to specify which QoS attributes should be assigned to the packets.

3.2.1.4) Select the option Police Simple, adjust the following parameters and click Submit:

  • Color Mode: Leave the setting on Color Blind, since DiffServ classes are not assigned.
  • Committed Rate (Kbps): Enter the value required for the maximum bandwidth in kbps (in this example 10000 kbps).
  • Commited Burst Size (Kbytes): Enter the maximum allowed value of 128 kbps.
  • Confirm Action: From the drop-down menu, select the option Send, so that packets can be transmitted under the Committed Rate.
  • Violate Action: From the drop-down menu, select the option Drop, so that packets above the Committed Rate are discarded.


3.2.2) Global outbound traffic:

3.2.2.1) From the drop-down menu, set the Policy to the outbound packet policy created in step 3.1.2 (in this example Policy-Global-Out). Then click Add Class.

3.2.2.2) Under Class, enter the class created for the outbound traffic in step 2.3 (in this example Class-Out) and click Submit

3.2.2.3) Under Class, select the assigned class and click Add Attribute to specify which QoS attributes should be assigned to the packets.

3.2.2.4) Select the option Police Simple, adjust the following parameters and click Submit:

  • Color Mode: Leave the setting on Color Blind, since DiffServ classes are not assigned.
  • Committed Rate (Kbps): Enter the value required for the maximum bandwidth in kbps (in this example 10000 kbps).
  • Commited Burst Size (Kbytes): Enter the maximum allowed value of 128 kbps.
  • Confirm Action: From the drop-down menu, select the option Send, so that packets can be transmitted under the Committed Rate.
  • Violate Action: From the drop-down menu, select the option Drop, so that packets above the Committed Rate are discarded.



4) Configuring the services:

4.1) Go to the tab Service Summary and click Add to assign the new policies to the switch ports. 

4.2) Create the service for all ports (Global). Modify the following parameters and then click Submit:

  • Interface: Choose the option Global so that the QoS settings apply to all ports. 
  • Policy In: Select the inbound packet policy created in step 3.2.1 (in this example Policy-Global-In).
  • Policy Out: Select the outbound packet policy created in step 3.2.2 (in this example Policy-Global-Out).

If the settings are to apply to specific switch ports, a separate entry must be created for each port.



5) Save the configuration as the startup configuration:

5.1) With the configuration complete, click Save Configuration in the top right-hand corner to save the configuration as the boot configuration.

The start configuration is retained even if the device is restarted or there is a power failure.

5.2) Confirm your changes by clicking OK.