Scheduler Mode: Two scheduler type are supported, Strict and Weighted.

Bandwidth Control

Bandwidth Control functions to control the traffic rate and traffic threshold on each port to ensure network performance.

Rate limit functions to limit the ingress/egress traffic rate on each port. In this way, the network bandwidth can be reasonably distributed and utilized.

Storm Control function allows the switch to monitor broadcast packets, multicast packets and UL-frames (Unknown unicast frames) in the network. If the transmission rate of the packets exceeds the set rate, the packets will be automatically discarded to avoid network broadcast storm.

Voice VLAN and Auto VoIP

The voice VLAN and Auto VoIP features are used to prioritize the transmission of voice traffic. Voice traffic is typically more time-sensitive than data traffic, and the voice quality can deteriorate a lot because of packet loss and delay. To ensure the high voice quality, you can configure Voice VLAN or Auto VoIP.

These two features can be enabled on the ports that transmit voice traffic only or transmit both voice traffic and data traffic. Voice VLAN can change the voice packets’ 802.1p priority and transmit the packets in desired VLAN. Auto VoIP can inform the voice devices of send the packets with specific configuration by working with the LLDP-MED feature.

2Class of Service Configuration

With class of service configurations, you can:

Configure port priority

Configure 802.1p priority

Configure DSCP priority

Specify the scheduler settings

Configuration Guidelines

Select the priority mode that the ports trust according to your network requirements.

A port can use only one priority to classify the ingress packets. Three priority modes are supported on the switch: Port Priority, 802.1P Priority and DSCP Priority.

»Port Priority

In this mode, the switch prioritizes packets according to their ingress ports, regardless of the packet field or type.

»802.1P Priority

802.1P defines the first three bits in 802.1Q Tag as PRI field. The PRI values are from 0 to 7. 802.1P priority determines the priority of packets based on the PRI value.

In this mode, the switch requires packets with VLAN tag, regardless of the IP header of the packets.

»DSCP Priority

DSCP priority determines the priority of packets based on the ToS (Type of Service) field in their IP header. RFC2474 re-defines the ToS field in the IP packet header as DS field. The first six bits (bit 0-bit 5) of the DS field is used to represent DSCP priority. The DSCP values are from 0 to 63.

In this mode, the switch requires IP packets.

Specify the 802.1p to queue mapping according to your needs.

For 802.1p Priority, the packets will be forwarded according to the 802.1p to queue mapping directly.

For Port Priority and DSCP Priority, the port priority and DSCP priority will first be mapped to the 8021p priority, and then mapped to the queue according to the 802.1p to queue mapping.

2.1Using the GUI

2.1.1Configuring Port Priority

Configuring the Trust Mode and Port to 802.1p Mapping

Choose the menu QoS > Class of Service > Port Priority to load the following page.

Figure 2-1 Configuring the Trust Mode and Port to 802.1p Mapping

Follow these steps to configure the parameters of the port priority:

1)Select the desired ports, specify the 802.1p priority and set the trust mode as Untrusted.

802.1p Priority

Specify the port to 802.1p mapping for the desired port. The ingress packets from one port are first mapped to 802.1p priority based on the port to 802.1p mapping, then to TC queues based on the 802.1p to queue mapping. The untagged packets from one port will be added an 802.1p priority value according to the port to 802.1p priority mapping.

Trust Mode

Select the Trust mode as Untrusted. In this mode, the packets will be processed according to the port priority configuration.

2)Click Apply.

Configuring the 802.1p to Queue Mapping

Choose the menu QoS > Class of Service > 802.1p Priority to load the following page.

Figure 2-2 Configuring the 802.1p to Queue Mapping

In the 802.1p to Queue Mapping section, configure the mappings and click Apply.

802.1p Priority

Displays the number of 802.1p priority. In QoS, 802.1p priority is used to represent class of service.

Queue

Select the TC queue for the desired 802.1p priority. The packets with the desired 802.1p priority will be put in the corresponding queue.

2.1.2Configuring 802.1p Priority

Configuring the Trust Mode

Choose the menu QoS > Class of Service > Port Priority to load the following page.

Figure 2-3 Configuring the Trust Mode

Follow these steps to configure the trust mode:

1)Select the desired ports and set the trust mode as Trust 802.1p.

Trust Mode

Select the Trust mode as Trust 802.1p. In this mode, the tagged packets will be processed according to the 802.1p priority configuration and the untagged packets will be processed according to the port priority configuration.

2)Click Apply.

Configuring the 802.1p to Queue Mapping and 802.1p Remap

Choose the menu QoS > Class of Service > 802.1p Priority to load the following page.

Figure 2-4 Configuring the 802.1p to Queue Mapping and 802.1p Remap

Follow these steps to configure the parameters of the 802.1p priority:

1)In the 802.1p to Queue Mapping section, configure the mappings and click Apply.

802.1p Priority

Displays the number of 802.1p priority. In QoS, 802.1p priority is used to represent class of service. IEEE 802.1p standard defines three bits in 802.1Q tag as PRI filed. The PRI values are called 802.1p priority and used to represent the priority of the layer 2 packets. This function requires packets with VLAN tags.

Queue

Select the TC queue for the desired 802.1p priority. The packets with the desired 802.1p priority will be put in the corresponding queue.

2)(Optional) In the 802.1p Remap section, configure the 802.1p to 802.1p mappings and click Apply.

0 ~ 7

Select the number of 802.1p priority to which the desired 802.1p priority will be remapped. 802.1p Remap is used to modify the 802.1p priority of the ingress packets. When the switch detects the packets with desired 802.1p priority, it will modify the value of 802.1p priority according to the map.

2.1.3Configuring DSCP Priority

Configuring the Trust Mode

Choose the menu QoS > Class of Service > Port Priority to load the following page.

Figure 2-5 Configuring the Trust Mode

Follow these steps to configure the trust mode:

1)Select the desired ports and set the trust mode as Trust DSCP.

Trust Mode

Select the Trust mode as Trust DSCP. In this mode, the IP packets will be processed according to the DSCP priority configuration and the non-IP packets will be processed according to the port priority configuration.

2)Click Apply.

Configuring the 802.1p to Queue Mapping

Choose the menu QoS > Class of Service > 802.1p Priority to load the following page.

Figure 2-6 Configuring the 802.1p to Queue Mapping

In the 802.1p to Queue Mapping section, configure the mappings and click Apply.

802.1p Priority

Displays the number of 802.1p priority. In QoS, 802.1p priority is used to represent class of service.

Queue

Select the TC queue for the desired 802.1p priority. The packets with the desired 802.1p priority will be put in the corresponding queue.

Configuring the DSCP to 802.1p Mapping and the DSCP Remap

Choose the menu QoS > Class of Service >DSCP Priority to load the following page.

Figure 2-7 Configuring the DSCP to 802.1p Mapping and the DSCP Remap

Follow these steps to configure the DSCP Priority:

1)Select the desired port, configure the DSCP to 802.1p mapping and the DSCP remap.

DSCP Priority

Displays the number of DSCP priority. DSCP Priority is used to classify the packets based on the value of DSCP, and map them to different queues. ToS (Type of Service) is a part of IP header, and DSCP uses the first six bits of ToS to represent the priority of IP packets. The DSCP values range from 0 to 63.

802.1p Priority

Specify the DSCP to 802.1p mapping for the desired port. The ingress packets are first mapped to 802.1p priority, then to TC queues according to the 802.1p to queue mappings. The untagged packets with the desired DSCP value will be added an 802.1p priority value according to the DSCP to 802.1p mapping.

DSCP Remap

(Optional) Select the DSCP priority to which the desired DSCP priority will be remapped for the port. When the switch detects the packets with desired DSCP value, it will modify the packets’ DSCP value according to the map.

2)Click Apply.

2.1.4Specifying the Scheduler Settings

Specify the scheduler settings to control the forwarding sequence of different TC queues when congestion occurs.

Choose the menu QoS > Class of Service > Scheduler Settings to load the following page.

Figure 2-8 Specifying the Scheduler Settings

Follow these steps to configure the schedule mode:

1)In the Scheduler Config section, select the desired port.

2)Select the desired queue and configure the parameters.

Queue TC-id

Displays the ID number of priority Queue.

Scheduler Type

Select the type of scheduling used for corresponding queue. When the network congestion occurs, the egress queue will determine the forwarding sequence of the packets according to the type.

Strict: In this mode, the egress queue will use SP (Strict Priority) to process the traffic in different queues. When congestion occurs, the traffic will be transmitted according to its queue priority strictly. The queue with higher priority occupies the whole bandwidth. Packets in the queue with lower priority are sent only when the queue with higher priority is empty.

Weighted: In this mode, the egress queue will use WRR (Weighted Round Robin) to process the traffic in different queues. When congestion occurs, all the traffic will be transmitted, but the bandwidth that each traffic queue occupies will be allocated based on the queue weight.

Queue Weight

Specify the queue weight for the desired queue. This value can be set only in the Weighted mode. The valid values are from 1 to 127.

Minimum Bandwidth

Specify the minimum guaranteed bandwidth for the desired queue. The valid values are from 0 to 100 and 0 means Minimum Bandwidth is disabled. If the queue bandwidth calculated according to the weight is smaller than the minimum bandwidth, the switch will be forced to allocated the minimum bandwidth to the queue, and the other queue will share the rest bandwidth based on the weight.

Management Type

Displays the Management Type for the queues. The switch supports Taildrop mode. When the traffic exceeds the limit, the additional traffic will be dropped.

3)Click Apply.

Note:

With ACL Redirect feature, the switch maps all the packets that meet the configured ACL rules to the new TC queue, regardless of the mapping relations configured in this section.

2.2Using CLI

2.2.1Configuring Port Priority

Configuring the Trust Mode and the port to 802.1p Mapping

Follow these steps to configure the trust mode and the port to 802.1p mapping:

Select the trust mode for the port. By default, it is untrust. Here we set the trust mode as untrust.

untrust: Specify the ports’ trust mode as untrust. In this mode, the packets will be processed according to the port priority configuration.

Step 4

qos port-priority dot1p-priority

Specify the port to 802.1p priority mapping for the desired port. The ingress packets from one port are first mapped to 802.1p priority based on the port to 802.1p mapping, then to TC queues based on the 802.1p to queue mapping. The untagged packets from one port will be added an 802.1p priority value according to the port to 802.1p mapping.

dot1p-priority: Specify the 802.1p priority ranging from 0 to 7. The default value is 0.

Specify the 802.1p to queue mapping. The packets with the desired 802.1p priority will be put in the corresponding queues. By default, the 802.1p priority 0 to 7 is respectively mapped to TC-1, TC-0, TC-2, TC-3, TC-4, TC-5, TC-6, TC-7.

dot1p-priority: Specify the 802.1p priority. The valid values are from 0 to 7.

tc-queue: Specify the ID number of the TC queue. The valid values are from 0 to 7.

Step 3

show qos cos-map

Verify the 802.1p to queue mappings.

Step 4

end

Return to privileged EXEC mode.

Step 5

copy running-config startup-config

Save the settings in the configuration file.

The following example shows how to configure the trust mode of port 1/0/1 as untrust, map the port 1/0/1 to 802.1p priority 1 and map 802.1p priority 1 to TC3:

Select the trust mode for the port. By default, it is untrust. Here we set the trust mode as dot1p.

dot1p: Specify the ports’ trust mode as dot1p. In this mode, the tagged packets will be processed according to the 802.1p priority configuration and the untagged packets will be processed according to the port priority configuration.

Follow these steps to configure the 802.1p to queue mapping and 802.1p remap:

Step 1

configure

Enter global configuration mode

Step 2

qos cos-map {dot1p-priority} {tc-queue}

Specify the 802.1p to queue mapping. The packets with the desired 802.1p priority will be put in the corresponding queues. By default, the 802.1p priority 0 to 7 is respectively mapped to TC-1, TC-0, TC-2, TC-3, TC-4, TC-5, TC-6, TC-7.

dot1p-priority: Specify the 802.1p priority. The valid values are from 0 to 7.

tc-queue: Specify the ID number of the TC queue. The valid values are from 0 to 7.

(Optional) Specify the 802.1p to 802.1p mappings. 802.1p Remap is used to modify the 802.1p priority of the ingress packets. When the switch detects the packets with desired 802.1p priority, it will modify the value of 802.1p priority according to the map. By default, the original 802.1p priority 0 is mapped to the 802.1p priority 0, the original 802.1p priority 1 is mapped to the 802.1p priority 1 and so on.

dot1p-priority: Specify the original 802.1p priority. The valid values are from 0 to 7.

new-dot1p-priority: Specify the new 802.1p priority. The valid values are from 0 to 7.

Select the trust mode for the port. By default, it is untrust. Here we set the trust mode as dscp.

dscp: Specify the ports’ trust mode as dscp. In this mode, the IP packets will be processed according to the DSCP priority configuration and the non-IP packets will be processed according to the port priority configuration.

Specify the 802.1p to queue mapping. The packets with the desired 802.1p priority will be put in the corresponding queues. By default, the 802.1p priority 0 to 7 is respectively mapped to TC-1, TC-0, TC-2, TC-3, TC-4, TC-5, TC-6, TC-7.

dot1p-priority: Specify the 802.1p priority. The valid values are from 0 to 7.

tc-queue: Specify the ID number of the TC queue. The valid values are from 0 to 7.

Step 3

show qos cos-map

Verify the 802.1p to queue mappings.

Step 4

end

Return to privileged EXEC mode.

Step 5

copy running-config startup-config

Save the settings in the configuration file.

Configuring the DSCP to 802.1p Mapping and DSCP Remp

Follow these steps to configure the DSCP to 802.1p mapping and DSCP remap:

Specify the DSCP to 802.1p mapping. The ingress packets with the desired DSCP priority are first mapped to 802.1p priority based on the DSCP to 802.1p mapping, then to TC queues based on the 802.1p to queue mapping. The untagged packets with the desired DSCP priority will be added an 802.1p priority value according to the DSCP to 802.1p mapping. by default, the DSCP priorities 0-7 are mapped to the 802.1p priority 0, the DSCP priorities 8-15 are mapped to the 802.1p priority 1 and so on.

dscp-value-list: Specify the DSCP value list in the format of “1-3,5,7”. The valid values are from 0 to 63.

dot1p-priority: Specify the 802.1p priority. The valid values are from 0 to 7.

Step 4

qos dscp-remap {dscp-value-list} {dscp-remap-value}

(Optional) Specify the DSCP to DSCP mappings for the ports. DSCP Remap is used to modify the DSCP priority of the ingress packets. When the switch detects the packets with the desired DSCP priority, it will modify the value of DSCP priority according to the map. By default, the original DSCP priority 0 is mapped to the DSCP priority 0, the original DSCP priority 1 is mapped to the DSCP priority 1 and so on.

dscp-value-list: Specify the original DSCP priority list in the format of “1-3,5,7”. The valid values are from 0 to 63.

dscp-remap-value: Specify the new DSCP priority. The valid values are from 0 to 63.

The following example shows how to configure the trust mode of port 1/0/1 as dscp, map 802.1p priority 3 to TC4, map DSCP priority 1-3,5,7 to 802.1p priority 3, and configure to map the original DSCP priority 9 to DSCP priority 5:

Switch#configure

Switch(config)#interface gigabitEthernet 1/0/1

Switch(config-if)#qos trust mode dscp

Switch(config-if)#exit

Switch(config)#qos cos-map 3 4

Switch(config)#interface gigabitEthernet 1/0/1

Switch(config-if)#qos dscp-map 1-3,5,7 3

Switch(config-if)#qos dscp-remap 9 5

Switch(config-if)#show qos trust interface gigabitEthernet 1/0/1

Port Trust Mode LAG

-------- --------- ------

Gi1/0/1 trust DSCP N/A

Switch(config-if)#show qos cos-map

-----+-----+-----+-----+-----+-----+-----+----+----

Tag |0 |1 |2 |3 |4 |5 |6 |7

-----+-----+-----+-----+-----+-----+-----+----+----

TC |TC0 |TC1 |TC2 |TC4 |TC4 |TC5 |TC6 |TC7

-----+-----+-----+-----+-----+-----+-----+----+----

Switch(config-if)#show qos dscp-map interface gigabitEthernet 1/0/1

Gi1/0/1----LAG: N/A

DSCP: 0 1 2 3 4 5 6 7

DSCP to 802.1P 0 3 3 3 0 3 0 3

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 8 9 10 11 12 13 14 15

DSCP to 802.1P 1 1 1 1 1 1 1 1

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 16 17 18 19 20 21 22 23

DSCP to 802.1P 2 2 2 2 2 2 2 2

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 24 25 26 27 28 29 30 31

DSCP to 802.1P 3 3 3 3 3 3 3 3

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 32 33 34 35 36 37 38 39

DSCP to 802.1P 4 4 4 4 4 4 4 4

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 40 41 42 43 44 45 46 47

DSCP to 802.1P 5 5 5 5 5 5 5 5

---- ---- ---- ---- ---- ---- ---- ---

DSCP: 48 49 50 51 52 53 54 55

DSCP to 802.1P 6 6 6 6 6 6 6 6

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 56 57 58 59 60 61 62 63

DSCP to 802.1P 7 7 7 7 7 7 7 7

---- ---- ---- ---- ---- ---- ---- ---

Switch(config-if)#show qos dscp-remap interface gigabitEthernet 1/0/1

Gi1/0/1----LAG: N/A

DSCP: 0 1 2 3 4 5 6 7

DSCP remap value 0 1 2 3 4 5 6 7

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 8 9 10 11 12 13 14 15

DSCP remap value 8 5 10 11 12 13 14 15

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 16 17 18 19 20 21 22 23

DSCP remap value 16 17 18 19 20 21 22 23

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 24 25 26 27 28 29 30 31

DSCP remap value 24 25 26 27 28 29 30 31

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 32 33 34 35 36 37 38 39

DSCP remap value 32 33 34 35 36 37 38 39

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 40 41 42 43 44 45 46 47

DSCP remap value 40 41 42 43 44 45 46 47

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 48 49 50 51 52 53 54 55

DSCP remap value 48 49 50 51 52 53 54 55

---- ---- ---- ---- ---- ---- ---- ----

DSCP: 56 57 58 59 60 61 62 63

DSCP remap value 56 57 58 59 60 61 62 63

---- ---- ---- ---- ---- ---- ---- ----

Switch(config-if)#end

Switch#copy running-config startup-config

2.2.4Specifying the Scheduler Settings

Follow these steps to specify the scheduler settings to control the forwarding sequence of different TC queues when congestion occurs.

Specify the type of scheduling used for corresponding queue. When the network congestion occurs, the egress queue will determine the forwarding sequence of the packets according to the type. By default, it is wrr mode and the all the queue weights are 1.

tc-queue: Specify the ID number of TC queue. The valid values are from 0 to 7.

sp: In sp mode, the egress queue will use SP (Strict Priority) to process the traffic in different queues. When congestion occurs, the traffic will be transmitted according to its queue priority strictly. The queue with higher priority occupies the whole bandwidth. Packets in the queue with lower priority are sent only when the queue with higher priority is empty.

wrr: In wrr mode, the egress queue will use WRR (Weighted Round Robin) to process the traffic in different queues. When congestion occurs, all the traffic will be transmitted, but the bandwidth that each traffic queue occupies will be allocated based on the queue weight.

weight: Specify the queue weight for the desired queue. This value can be set only in the wrr mode. The valid values are from 1 to 127.

Step 4

qos queue tc-queuebandwidthrate

Specify the minimum guaranteed bandwidth for the desired queue. If the queue bandwidth calculated according to the weight is smaller than the minimum bandwidth, the switch will be forced to allocated the minimum bandwidth to the queue, and the other queue will share the rest bandwidth based on the weight.

tc-queue: Specify the ID number of the TC queue. The valid values are from 0 to 7.

rate: Specify the rate for the desired TC queue. The valid values are from 1 to 100. The default value is 0.

With ACL Redirect feature, the switch maps all the packets that meet the configured ACL rules to the new TC queue, regardless of the mapping relations configured in this section.

The following example shows how to specify the scheduler settings for port 1/0/1. Set the scheduler mode of TC1 as sp mode, set the scheduler mode of TC4 as wrr mode and set the queue weight as 5. Set the minimum bandwidth of TC4 as 10.

Switch#configure

Switch(config)#interface gigabitEthernet 1/0/1

Switch(config-if)#qos queue 1 mode sp

Switch(config-if)#qos queue 4 mode wrr weight 5

Switch(config-if)#qos queue 4 bandwidth 10

Switch(config-if)#show qos queue interface gigabitEthernet 1/0/1

Gi1/0/1----LAG: N/A

Queue Schedule Mode Weight Min Bandwidth(%)

----- ---------- ----- ----------

TC0 WRR 1 0%

TC1 Strict N/A 0%

TC2 WRR 1 0%

TC3 WRR 1 0%

TC4 WRR 5 10%

TC5 WRR 1 0%

TC6 WRR 1 0%

TC7 WRR 1 0%

Switch(config-if)#end

Switch#copy running-config startup-config

3Bandwidth Control Configuration

With bandwidth control configurations, you can:

Configure rate limit

Configure storm control

3.1Using the GUI

3.1.1Configuring Rate Limit

Choose the menu QoS > Bandwidth Control > Rate Limit to load the following page.

Figure 3-1 Configuring Rate Limit

Follow these steps to configure the Rate Limit function:

1)Select the desired port and configure the upper rate limit to receive and send packets.

Ingress Rate (0-1,000,000Kbps)

Configure the upper rate limit for receiving packets on the port. The valid values are from 0 to 1000000 Kbps and 0 means the ingress rate limit is disabled.

Egress Rate (0-1,000,000Kbps)

Configure the bandwidth for sending packets on the port. The valid values are from 0 to 1000000 Kbps and 0 means the egress rate limit is disabled.

2)Click Apply.

3.1.2Configuring Storm Control

Choose the menu QoS > Bandwidth Control > Storm Control to load the following page.

Specify the Rate Mode for the broadcast threshold, multicast threshold and UL-Frame threshold on the desired port.

kbps: The switch will limit the maximum speed of the specific kinds of traffic in kilo-bits per second.

ratio: The switch will limit the percentage of bandwidth utilization for specific kinds of traffic.

pps: The switch will limit the maximum number of packets per second for specific kinds of traffic.

Broadcast Threshold (0-1,000,000)

Specify the upper rate limit for receiving broadcast packets. The valid values differ among different rate modes. The value 0 means the broadcast threshold is disabled. The broadcast traffic exceeding the limit will be processed according to the Action configurations.

Multicast Threshold (0-1,000,000)

Specify the upper rate limit for receiving multicast packets. The valid values differ among different rate modes. The value 0 means the multicast threshold is disabled. The multicast traffic exceeding the limit will be processed according to the Action configurations.

UL-Frame Threshold (0-1,000,000)

Specify the upper rate limit for receiving unknown unicast frames. The valid values differ among different rate modes. The value 0 means the unknown unicast threshold is disabled. The traffic exceeding the limit will be processed according to the Action configurations.

Action

Select the action that the switch will take when the traffic exceeds its corresponding limit.

Drop: Set the Action as Drop. The port will drop the subsequent packets when the traffic exceeds the limit.

Shutdown: Set the Action as Shutdown. The port will be shutdown when the traffic exceeds the limit.

Recover Time

Specify the recover time for the port. It takes effect only when the action is set as shutdown. The valid values are from 0 to 3600 seconds. When the port is shutdown, it can recover to its normal state after the recover time passed. If the recover time is specified as 0, which means the port will not recover to its normal state automatically and you can recover the port manually.

2)Click Apply.

3.2Using the CLI

3.2.1Configuring Rate Limit

Follow these steps to configure the upper rate limit for the port to receive and send packets:

Specify the Rate Mode for the broadcast threshold, multicast threshold and UL-Frame threshold on the desired port.

kbps: The switch will limit the maximum speed of the specific kinds of traffic in kilo-bits per second.

ratio: The switch will limit the percentage of bandwidth utilization for specific kinds of traffic.

pps: The switch will limit the maximum number of packets per second for specific kinds of traffic.

Step 4

storm-control broadcast rate

Specify the upper rate limit for receiving broadcast packets. The broadcast traffic exceeding the limit will be processed according to the Action configurations.

rate: Enter the upper rate. In kbps mode, the valid values are from 1 to 1000000 Kbps. In ratio mode, the valid values are from 1 to100 percent. In pps mode, the valid values are from 1 to 1488000 packets per second.

Step 5

storm-control multicast rate

Specify the upper rate limit for receiving multicast packets. The multicast traffic exceeding the limit will be processed according to the Action configurations.

rate: Enter the upper rate. In kbps mode, the valid values are from 1 to 1000000 Kbps. In ratio mode, the valid values are from 1 to100 percent. In pps mode, the valid values are from 1 to 1488000 packets per second.

Step6

storm-control unicast rate

Specify the upper rate limit for receiving unknown unicast frames. The traffic exceeding the limit will be processed according to the Action configurations.

rate: Enter the upper rate. In kbps mode, the valid values are from 1 to 1000000 Kbps. In ratio mode, the valid values are from 1 to100 percent. In pps mode, the valid values are from 1 to 1488000 packets per second.

Step 7

storm-control exceed {drop | shutdown} [recover-time time]

Specify the action and the recover time. The switch will perform the action when the traffic exceeds its corresponding limit. By default, it is drop.

drop: Set the Action as Drop. The port will drop the subsequent packets when the traffic exceeds the limit.

shutdown: Set the Action as Shutdown. The port will be shutdown when the traffic exceeds the limit.

time: Specify the recover time for the port. It takes effect only when the action is set as shutdown. The valid values are from 0 to 3600 and the default value is 0. When the port is shutdown, it can recover to its normal state after the recover time passed. If the recover time is specified as 0, which means the port will not recover to its normal state automatically and you can recover the port manually.

Step 8

storm-control recover

(Optional) Recover the port manually. When the recover time is specified as 0, the port will not recover to its normal state automatically. In this condition, you need to use this command to recover the port manually.

The OUI address is assigned as a unique identifier by IEEE (Institute of Electrical and Electronics Engineers) to a device vendor. It is used by the switch to determine whether a packet is a voice packet.

If the OUI address of your voice device is not in the OUI table, you need to add the OUI address to the table.

Enter the OUI address of your voice devices. The OUI address is used by the switch to determine whether a packet is a voice packet. An OUI address is the first 24 bits of a MAC address, and is assigned as a unique identifier by IEEE (Institute of Electrical and Electronics Engineers) to a device vendor. If the source MAC address of a packet matches the OUI addresses in the OUI list, the switch identifies the packet as a voice packet and prioritizes it in transmission.

Select the priority that will be assigned to voice packets. A bigger value means a higher priority. This is an IEEE 802.1p priority, and you can further configure its scheduler mode in Class of Service if needed.

Select Enable to enable the voice VLAN feature on ports and add the desired ports to Voice VLAN.

Optional Status

Displays the state of the Voice VLAN on the corresponding port.

Active: Indicates that Voive VLAN function is enabled on the port.

Inactive: Indicates that Voive VLAN function is disabled on the port.

2)Click Apply.

4.2Using the CLI

Follow these steps to configure voice VLAN:

Step 1

configure

Enter global configuration mode.

Step 2

show voice vlan oui-table

Check whether the OUI address of your voice device is in the OUI table.

The OUI address is used by the switch to determine whether a packet is a voice packet. An OUI address is the first 24 bits of a MAC address, and is assigned as a unique identifier by IEEE (Institute of Electrical and Electronics Engineers) to a device vendor. If the source MAC address of a packet matches the OUI addresses in the OUI list, the switch identifies the packet as a voice packet and prioritizes it in transmission.

Step 3

voice vlan oui oui-prefix oui-desc string

If the OUI address of your voice device is not in the OUI table, add the OUI address to the table.

oui-prefix: Enter the OUI address for your voice device in the format of XX:XX:XX.

Enable the voice VLAN feature and specify an existing 802.1Q VLAN as the voice VLAN.

vid: Enter the 802.1Q VLAN ID to set the 802.1Q VLAN as the voice VLAN.

Step 5

voice vlan prioritypri

Specify the priority that will be assigned to voice packets.

pri: Enter the priority that will be assigned to voice packets. A bigger value means a higher priority. The valid values are from 0 to 7 and the default value is 7. This is an IEEE 802.1p priority, and you can further configure its scheduler mode in Class of Service if needed.

Enable the voice VLAN feature on ports and add the desired ports to voice VLAN.

Step 8

show voice vlan interface

Verify the voice VLAN configuration information.

Step 8

end

Return to privileged EXEC mode.

Step 9

copy running-config startup-config

Save the settings in the configuration file.

The following example shows how to show the OUI table, set VLAN 8 as voice VLAN, set the priority as 6 and enable voice VLAN feature on port 1/0/3:

Switch#configure

Switch(config)#show voice vlan oui-table

00:01:E3 Default SIEMENS

00:03:6B Default CISCO1

00:12:43 Default CISCO2

00:0F:E2 Default H3C

00:60:B9 Default NITSUKO

00:D0:1E Default PINTEL

00:E0:75 Default VERILINK

00:E0:BB Default 3COM

00:04:0D Default AVAYA1

00:1B:4F Default AVAYA2

00:04:13 Default SNOM

Switch(config)#voice vlan 8

Switch(config)#voice vlan priority 6

Switch(config)#interface gigabitEthernet 1/0/3

Switch(config-if)#voice vlan

Switch(config-if)#show voice vlan interface

Voice VLAN ID 8

Priority 6

Interface Voice VLAN Mode Operational Status LAG

--------- --------------- ------------------ ---

Gi1/0/1 disabled Down N/A

Gi1/0/2 disabled Down N/A

Gi1/0/3 enabled Up N/A

Gi1/0/4 disabled Down N/A

Gi1/0/5 disabled Down N/A

......

Switch(config-if)#end

Switch#copy running-config startup-config

5Auto VoIP Configuration

Configuration Guidelines

Before configuring Auto VoIP, you need to enable LLDP-MED on ports and configure the relevant parameters. For details about LLDP-MED configuration, please refer to Configuring LLDP.

Auto VoIP provide flexible solutions for optimizing the voice traffic. It can work with other features such as VLAN and Class of Service to process the voice packets with specific fields. You can choose and configure Auto VoIP and other features according to your needs.

Specify the interface mode as disabled, which means the Auto VoIP function is disabled on the corresponding port.

auto-voip none

Specify the interface mode as none. In this mode, the switch allows the voice devices to use its own configuration to send voice traffic.

auto-voip vlan-id

Specify the interface mode as VLAN ID. In this mode, the voice devices will send voice packets with desired VLAN tag. If this mode is selected, it is necessary to specify the 802.1Q VLAN ID. The valid values are from 1 to 4093.

In addition, you need to configure the 802.1Q VLAN to ensure the corresponding ports can forward the packets normally.

auto-voip dot1pdot1p

Specify the interface mode as dot1p. In this mode, the voice devices will send voice packets with desired 802.1p priority. If this mode is selected, it is necessary to specify 802.1p priority. The valid values are from 0 to 7.

In addition, you can configure the Class of Service to make the switch process the packets according to the 802.1p priority.

auto-voip untagged

Specify the interface mode as untagged. In this mode, the voice devices will send untagged voice packets.

Step 5

auto-voip data priority {trust| untrust}

Enable or disable the Class of Service override mode. By default, it is trust, which means the Class of Service override mode is disabled.

trust: In this mode, the switch will then put the voice packets in the corresponding TC queue according to the 802.1p priority of the packets.

untrust: In this mode, the switch will ignore the 802.1p priority in the voice packets and put the packets in TC-5 directly.

Step 6

auto-voip dscp value

Specify the value of DSCP priority. The voice device will send the packets with the corresponding DSCP value.

In addition, you can configure the Class of Service to make the switch process the packets according to the DSCP priority.

value: Enter the value of DSCP priority. The valid values are from 0 to 63 and the default value is 0.

Step 7

show auto-voip

Verify the global state of Auto VoIP.

Step 8

show auto-voip interface

Verify the Auto VoIP configuration information of ports.

Step 8

end

Return to privileged EXEC mode.

Step 9

copy running-config startup-config

Save the settings in the configuration file.

The following example shows how to set the interface mode as dot1p, specify the 802.1p priority as 4, specify the DSCP priority as 10 and enable the CoS override mode for port 1/0/3:

Switch#configure

Switch(config)#auto-voip

Switch(config)#interface gigabitEthernet 1/0/3

Switch(config-if)#auto-voip dot1p 4

Switch(config-if)#auto-voip dscp 10

Switch(config-if)#auto-voip data priority untrust

Switch(config-if)#show auto-voip

Administrative Mode: Enabled

Switch(config-if)#show auto-voip interface

Interface.Gi1/0/1

Auto-VoIP Interface Mode. Disabled

Auto-VoIP COS Override. False

Auto-VoIP DSCP Value. 0

Auto-VoIP Port Status. Disabled

Interface.Gi1/0/2

Auto-VoIP Interface Mode. Disabled

Auto-VoIP COS Override. False

Auto-VoIP DSCP Value. 0

Auto-VoIP Port Status. Disabled

Interface.Gi1/0/3

Auto-VoIP Interface Mode. Enabled

Auto-VoIP Priority. 4

Auto-VoIP COS Override. True

Auto-VoIP DSCP Value. 10

Auto-VoIP Port Status. Enabled

......

Switch(config-if)#end

Switch#copy running-config startup-config

6Configuration Examples

6.1Example for Class of Service

6.1.1Network Requirements

As shown below, both RD department and Marketing department can access the internet. When congestion occurs, the traffic from two departments can both be forwarded and the traffic from the Marketing department should take precedence.

Figure 6-1 QoS Application Topology

6.1.2Configuration Scheme

To implement this requirement, you can configure Port Priority to put the packets from the Marketing department into the queue with the higher priority than the packets from the RD department.

1)Configure the trust mode of port 1/0/1 and port 1/0/2 as untrusted and map the ports to different queues.

2)Set the scheduler type of the queues as weighted for port 1/0/3 and specify the queue weight to make the traffic from the Marketing department take precedence.

Demonstrated with T2600G-28TS, the following sections provide configuration procedure in two ways: using the GUI and using the CLI.

6.1.3Using the GUI

1)Choose the menu QoS > Class of Service > Port Priority to load the following page. Set the trust mode of port 1/0/1 and 1/0/2 as untrusted. Specify the 802.1p priority of port 1/0/1 as 1 and specify the 802.1p priority of port 1/0/2 as 0. Click Apply.

Figure 6-2 Configuring Port Priority

2)Choose the menu QoS > Class of Service > 802.1p Priority to load the following page. Map the 802.1p priority 0 to TC-1 and map the 802.1p priority 1 to TC-0. Click Apply.

Figure 6-3 Configuring the 802.1p to Queue Mappings

3)Choose the menu QoS > Class of Service > Scheduler Settings to load the following page. Select the port 1/0/3 and set the scheduler type of TC-0 and TC-1 as Weighted. Specify the queue weight of TC-0 as 1 and specify the queue weight of TC-1 as 5. Click Apply.

Figure 6-4 Configuring the Egress Queue

4)Click to save the settings.

6.1.4Using the CLI

1)Set the trust mode of port 1/0/1 as untrusted and specify the 802.1p priority as 1.

Switch_A#configure

Switch_A(config)#interface gigabitEthernet 1/0/1

Switch_A(config-if)#qos trust mode untrust

Switch_A(config-if)#qos port-priority 1

Switch_A(config-if)#exit

2)Set the trust mode of port 1/0/2 as untrusted and specify the 802.1p priority as 0.

Switch_A(config)#interface gigabitEthernet 1/0/2

Switch_A(config-if)#qos trust mode untrust

Switch_A(config-if)#qos port-priority 0

Switch_A(config-if)#exit

3)Map the 802.1p priority 0 to TC-1 and map the 802.1p priority 1 to TC-0.

Switch_A(config)#qos cos-map 0 1

Switch_A(config)#qos cos-map 1 0

4)Set the scheduler type of TC-0 and TC-1 as Weighted for egress port 1/0/3. Specify the queue weight of TC-0 as 1 and specify the queue weight of TC-1 as 5.

Switch_A(config)#interface gigabitEthernet 1/0/3

Switch_A(config-if)#qos queue 0 mode wrr weight 1

Switch_A(config-if)#qos queue 1 mode wrr weight 5

Switch_A(config-if)#end

Switch_A#copy running-config startup-config

Verify the configurations

Verify the trust mode of the port:

Switch_A#show qos trust interface

Port Trust Mode LAG

-------- --------- --------

Gi1/0/1 untrust N/A

Gi1/0/2 untrust N/A

Gi1/0/3 untrust N/A

Gi1/0/4 untrust N/A

...

Verify the port to 802.1p mappings:

Switch_A#show qos port-priority interface

Port CoS Value LAG

-------- --------- --------

Gi1/0/1 CoS 1 N/A

Gi1/0/2 CoS 0 N/A

Gi1/0/3 CoS 0 N/A

Gi1/0/4 CoS 0 N/A

...

Verify the 802.1p to queue mappings:

Switch_A#show qos cos-map

-----+-----+-----+-----+-----+-----+-----+----+----

Tag |0 |1 |2 |3 |4 |5 |6 |7

-----+-----+-----+-----+-----+-----+-----+----+----

TC |TC1 |TC0 |TC2 |TC4 |TC4 |TC5 |TC6 |TC7

-----+-----+-----+-----+-----+-----+-----+----+----

Verify the scheduler mode of the egress port:

Switch _A#show qos queue interface gigabitEthernet 1/0/3

Gi1/0/3----LAG: N/A

Queue Schedule Mode Weight Min Bandwidth(%)

----- ---------- ----- ----------

TC0 WRR 1 0%

TC1 WRR 5 0%

TC2 WRR 1 0%

TC3 WRR 1 0%

TC4 WRR 1 0%

TC5 WRR 1 0%

TC6 WRR 1 0%

TC7 WRR 1 0%

6.2Example for Voice VLAN

6.2.1Network Requirements

As shown below, the company plans to install IP phones in the office area. To ensure the good voice quality, IP phones and the computers will be connected to the different ports of the switch, and the voice traffic requires a higher priority than the data traffic.

Figure 6-5 Voice VLAN Application Topology

6.2.2Configuration Scheme

To implement this requirement, you can configure Voice VLAN to ensure that the voice traffic can be transmitted in the same VLAN and the data traffic is transmitted in another VLAN. In addition, specify the priority to make the voice traffic can take precedence when the congestion occurs.

As shown below, the company plans to install IP phones in the office area. IP phones share switch ports used by computers, because no more ports are available for IP phones. To ensure the good voice quality, the voice traffic requires a higher priority than the data traffic.

Figure 6-12 Auto VoIP Application Topology

6.3.2Configuration Scheme

To optimize voice traffic, configure Auto VoIP and LLDP-MED to instruct IP Phones to send traffic with desired DSCP priority. Voice traffic is put in the desired queue and data traffic is put in other queues according to the Class of Service configurations. Make sure that the voice traffic can take precedence when congestion occurs.

1)Enable the Auto VoIP feature and configure the DSCP value of ports.

2)Configure Class of Service.

3)Enable LLDP-MED and configure the corresponding parameters.

Demonstrated with T2600G-28TS, the following sections provide configuration procedure in two ways: using the GUI and using the CLI.

6.3.3Using the GUI

Auto VoIP configurations for port1/0/1 and other ports connected to the IP phone are the same, the following configuration procedures take port 1/0/1 as example.