Description:

Some scenarios (e.g. VoIP telephony) benefit from using the EF flag (Expedited Forwarding) so that relevant data traffic is forwarded preferentially. If the network participants are unable to set the EF flag, it must be set on the switch instead.  

This article describes how a specific device can communicate using the EF flag based on its IP address. 


Requirements:


Scenario:

In this example, all data traffic from and to the network device with the IP address 192.168.45.184 should be given the EF flag.


Procedure:

1) Enabling the Diffserv function:

1.1) Use a browser to connect to the web interface of the switch and navigate to the menu QoS → Diffserv → Global.

1.2) Make sure that the Diffserve Admin Mode is set to Enable.



2) Configuring the Class:

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

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

2.2) Create an inbound-traffic class. Modify the following parameters and then click Submit:

2.3) Create an outbound-traffic class. Modify the following parameters and then click Submit:

2.4) Switch to the Class configuration tab, set the Class as the inbound traffic class that you created in step 2.2 (in this example Class-In), and click on Add Match Criteria to add those criteria that should invoke the QoS settings.

2.5) Select the criteria used to invoke the QoS settings and then click on Submit.

In this example we activate the option Source IP Address and modify the following parameters:

With the option Any, the settings apply for any packets. Also, a number of criteria can be selected.

2.6) Set the Class to the outbound traffic class that you created in step 2.3 (in this example Class-Out), and click on Add Match Criteria to add those criteria that should invoke the QoS settings.

2.7) Select the criteria used to invoke the QoS settings and then click on Submit.

In this example we activate the option Destination IP Address and modify the following parameters:

With the option Any, the settings apply for any packets. Also, a number of criteria can be selected.



3) Configuring the policy:

3.1) Creating the policy:

3.1.1) Go to the Policy Summary tab and click on Add to create the policy.

A distinction is made between incoming and outgoing packets, which are distributed between the switch ports. Since there are two different ports, we need to create a total of four policies.

3.1.2) For the switch port 9 (Internet gateway), create a policy each for the inbound and the outbound traffic. Modify the following parameters and then click Submit:

3.1.3) For the switch port 10 (network device) create two policies, one for the inbound and one for the outbound traffic. Modify the following parameters and then click Submit:


3.2) Assigning classes to the policies:

3.2.1) Switch port 9 inbound data traffic:

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

3.2.1.2) Set the Class to the one created for the inbound traffic in step 2.2 (in this example Class-In) and click on Submit

3.2.1.3) Under Class, mark the assigned class and click on Add Attribute to define which QoS attributes are assigned to the packets.

3.2.1.4) Select the option Mark IP DSCP and set the IP DSCP keyword option to “ef”. Then click on Submit.


3.2.2) Switch port 9 outbound data traffic:

3.2.2.1) In the drop-down menu for Policy, select the outbound-packet policy created in step 3.1.2 (in this case Policy-9-Out). Then click on Add Class.

3.2.2.2) Set the Class to the one created for the outbound traffic in step 2.3 (in this example Class-Out) and click on Submit

3.2.2.3) Under Class, mark the assigned class and click on Add Attribute to define which QoS attributes are assigned to the packets.

3.2.2.4) Select the option Mark IP DSCP and set the IP DSCP keyword option to “ef”. Then click on Submit.


3.2.3) Switch port 10 inbound data traffic:

3.2.3.1) In the drop-down menu for Policy, select the inbound-packet policy created in step 3.1.3 (in this example Policy-10-In). Then click on Add Class.

3.2.3.2) Set the Class to the one created for the inbound traffic in step 2.2 (in this example Class-In) and click on Submit

3.2.3.3) Under Class, mark the assigned class and click on Add Attribute to define which QoS attributes are assigned to the packets.

3.2.3.4) Select the option Mark IP DSCP and set the IP DSCP keyword option to “ef”. Then click on Submit.


3.2.4) Switch port 10 outbound data traffic:

3.2.4.1) In the drop-down menu for Policy, select the outbound-packet policy created in step 3.1.3 (in this case Policy-10-Out). Then click on Add Class.

3.2.4.2) Set the Class to the one created for the outbound traffic in step 2.3 (in this example Class-Out) and click on Submit

3.2.4.3) Under Class, mark the assigned class and click on Add Attribute to define which QoS attributes are assigned to the packets.

3.2.4.4) Select the option Mark IP DSCP and set the IP DSCP keyword option to “ef”. Then click on Submit.



4) Configuring the services:

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

4.2) Create the service for switch port 9 (Internet gateway). Modify the following parameters and then click Submit:

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

With the Interface entry set to Global, the settings apply to all ports.

4.3) Create the service for switch port 10 (network device). Modify the following parameters and then click Submit:

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

With the Interface entry set to Global, the settings apply to all ports.



5) Save the configuration as the start configuration:

5.1) With the configuration complete, click on Save Configuration in the top right-hand corner to save the configuration as the start 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.