22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

class type network-q<strong>os</strong> class-default<br />

match q<strong>os</strong>-group 0<br />

mtu 9216<br />

5010-1#<br />

Queuing Policies<br />

The Nexus 5x00 switches support the ability to queue traffic based on classification <strong>and</strong><br />

support setting a queue to a strict priority <strong>and</strong> b<strong>and</strong>width sharing. When configured for strict<br />

priority queuing, all traffic classified into this queue will be serviced before any other<br />

traffic in on the link. The one exception is the default system-defined strict priority queues<br />

for CoS 6 <strong>and</strong> 7, which are serviced before the user-defined strict priority queue. This is<br />

useful when running a network with requirements for latency-sensitive traffic such as voice<br />

to ensure voice traffic is not delayed in the switch. The primary consideration for using the<br />

strict priority queue is to be careful about what traffic is mapped into the priority queue.<br />

Inadvertently mapping too much traffic into the priority queue can create a situation called<br />

queue starvation. In queue starvation, the strict priority queue constantly has traffic in it that<br />

needs to be serviced <strong>and</strong> the other queues on the interface do not get access to transmit their<br />

data <strong>and</strong> in essence starve.<br />

Example 10-22 shows how to define a strict priority queue for voice traffic.<br />

Example 10-22. Defining a Strict Priority Queue<br />

Click here to view code image<br />

5010-1# config<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

5010-1(config)# class-map type q<strong>os</strong> match-all voice<br />

5010-1(config-cmap-q<strong>os</strong>)# match c<strong>os</strong> 5<br />

5010-1(config-cmap-q<strong>os</strong>)# class-map type queuing voice<br />

5010-1(config-cmap-que)# match q<strong>os</strong>-group 5<br />

5010-1(config-cmap-que)# exit<br />

5010-1(config)# policy-map type queuing voice<br />

5010-1(config-pmap-que)# class type queuing voice<br />

5010-1(config-pmap-c-que)# priority<br />

5010-1(config-pmap-c-que)# system q<strong>os</strong><br />

5010-1(config-sys-q<strong>os</strong>)# service-policy type queuing input<br />

voice<br />

5010-1(config-sys-q<strong>os</strong>)# show policy-map system type<br />

queuing

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!