beautypg.com

Allied Telesis AT-8100 Series User Manual

Page 1688

background image

Chapter 100: Quality of Service (QoS)

1688

Auto-QoS-MED with Trust DSCP Functionality

In the following example, the DSCP value of ingress traffic is trusted:

awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.1
awplus(config-if)# auto-qos-med trust dscp

See Table 231 for a list of commands that are contained in this macro.

awplus (config)# mls qos map cos-
queue 5 to 7

Maps CoS priority 5 to egress queue 7.

awplus (config-if)# wrr-queue weight
3,3,1,1,12,0,0,0

Assigns a weight to the eight default CoS
queues where weight specifies the number of
packets a port transmits from a queue before
going to the next queue. By default, the CoS
queues start with queue 0. CoS queues 0 and 1
are assigned a weight of 3. CoS queues 2 and 3
are assigned a weight of 1. CoS queue 4 is
assigned a weight of 12. CoS queues 5 through
7 are assigned a weight of 0.

awplus (config-if)# service-policy
input AutoQoS

Associates policy map “AutoQoS” with the given
port which, in this example, is port 1.

Table 230. Auto-QoS-MED Traffic Example (Continued)

Command

Description

Table 231. Auto-QoS MED with Trust DSCP Functionality Example

Command

Description

awplus (config)# lldp run

Activates LLDP on the switch which allows the
switch to transmit and accept LLDP
advertisements on its ports.

awplus (config-if)# switchport voice
dscp 46

Assigns the DSCP value of 46 to the LLDP-
MED network policy.

awplus (config-if)# switchport voice
vlan priority 5

Assigns the DSCP priority value of 5 to the
LLDP-MED network policy which transmits this
value to an IP phone. The IP phone, in turn,
sends its packets using this DSCP value.

awplus (config)# mls qos enable

Activates the QoS feature on the switch.

awplus (config)# class-map trustdscp

Creates a class map called “trustdscp.”

awplus (config)# policy-map AutoQos

Creates a policy map called AutoQoS and
enters the Policy Map Configuration mode.