Sie zeigen eine alte Version dieser Seite an. Zeigen Sie die aktuelle Version an.

Unterschiede anzeigen Seitenhistorie anzeigen

« Vorherige Version anzeigen Version 5 Nächste Version anzeigen »


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.

  • The Internet gateway is connected to switch port 9.
  • A network device with the IP address 192.168.45.184 is connected to switch port 10.


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:

  • Class: Set a descriptive name for the class (in this case Class-In).
  • Type: Select the criteria (see steps 2.5 and 2.7) that must be met in order for the QoS settings to be implemented. With the setting All, these settings apply when all of the criteria are met. With the setting Any, the settings apply when any criterion is met. In this example, the setting is left at All.   
  • Protocol: Select the IP protocol (IPv4 or IPv6) to be used for implementing the settings. The option None indicates non-IP packets. In this case an IPv4 address is to be filtered, so IPv4 is selected. 

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

  • Class: Set a descriptive name for the class (in this case Class-Out).
  • Type: Select the criteria (see steps 2.5 and 2.7) that must be met in order for the QoS settings to be implemented. With the setting All, these settings apply when all of the criteria are met. With the setting Any, the settings apply when any criterion is met. In this example, the setting is left at All
  • Protocol: Select the IP protocol (IPv4 or IPv6) to be used for implementing the settings. The option None indicates non-IP packets. In this case an IPv4 address is to be filtered, so IPv4 is selected.

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:

  • IP address: Enter the IP address that is to use the QoS settings (in this example 192.168.45.184).
  • IP mask: Enter the netmask 255.255.255.255. This means that the entry applies to precisely one IP address.

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:

  • IP address: Enter the IP address that is to use the QoS settings (in this example 192.168.45.184).
  • IP mask: Enter the netmask 255.255.255.255. This means that the entry applies to precisely one IP address.

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:

  • Policy: Enter a meaningful name (in this example Policy-9-In and Policy-9-Out).
  • Type: For the inbound traffic select the option In and for the outbound traffic select the option Out.

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:

  • Policy: Enter a meaningful name (in this example Policy-10-In and Policy-10-Out).
  • Type: For the inbound traffic select the option In and for the outbound traffic select the option Out.


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:

  • Interface: Choose a switch port that the QoS settings apply to (in this example the port 1/0/9). 
  • Policy In: Select the policy for inbound packets created in step 3.2.1.
  • Policy Out: Select the policy for outbound packets created in step 3.2.2.

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:

  • Interface: Choose a switch port that the QoS settings apply to (in this example the port 1/0/10).  
  • Policy In: Select the policy for inbound packets created in step 3.2.3.
  • Policy Out: Select the policy for outbound packets created in step 2.4.

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 boot configuration:

5.1) With the configuration complete, click on 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.

  • Keine Stichwörter