You are currently browsing the archives for the Uncategorized category.

Archive for the ‘Uncategorized’ Category

Another Nexus 1000v WFQ QoS Example

Monday, November 28, 2011
posted by Andy Daniel

Louis Watta did a great job of putting together an example of using Weighted Fair Queuing on the Nexus 1000v in his whitepaper on the subject a while back. In his example, and the example in the 1000v configuration guide, VMware Network I/O Control API dependent class-maps are used to classify traffic. This method definitely works, but classifies your traffic only within the 1000v. My preferred method is to actually utilize the CoS tagging capability of the 1000v so that QoS policies based on the tags can be used on upstream devices like the Nexus 5k and 7k as well. I’ll update this post with further explanation of each section, but for now here’s an example code snippet:

policy-map type qos class-cos1
description [Server & VMware VM traffic]
class class-default
set cos 1
policy-map type qos class-cos2
description [VMware vMotion traffic]
class class-default
set cos 2
policy-map type qos class-cos3
description [Storage traffic]
class class-default
set cos 3
policy-map type qos class-cos4
description [Cluster & VMware FT traffic]
class class-default
set cos 4
policy-map type qos class-cos5
description [Management traffic]
class class-default
set cos 5

class-map type queuing match-any class-que-cos0
match cos 0
class-map type queuing match-any class-que-cos1
match cos 1
class-map type queuing match-any class-que-cos2
match cos 2
class-map type queuing match-any class-que-cos3
match cos 3
class-map type queuing match-any class-que-cos4
match cos 4
class-map type queuing match-any class-que-cos5
match cos 5

policy-map type queuing policy-out-que-all
class type queuing class-que-cos0
bandwidth percent 10
class type queuing class-que-cos1
bandwidth percent 10
class type queuing class-que-cos2
bandwidth percent 10
class type queuing class-que-cos3
bandwidth percent 40
class type queuing class-que-cos4
bandwidth percent 20
class type queuing class-que-cos5
bandwidth percent 10

port-profile Uplink
service-policy type queuing output policy-out-que-all