{"id":13891,"date":"2012-12-17T15:50:22","date_gmt":"2012-12-17T15:50:22","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=13891"},"modified":"2012-12-17T15:50:22","modified_gmt":"2012-12-17T15:50:22","slug":"microsoft-publishes-ws2012-qos-guidance","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=13891","title":{"rendered":"Microsoft Publishes WS2012 QoS Guidance"},"content":{"rendered":"<p>The Quality of Service (QoS) feature has been improved in Windows Server 2012 and this becomes a major ingredient in converged fabrics. QoS rules can be used to:<\/p>\n<ul>\n<li>Guarantee a minimal and burstable (if there\u2019s free capacity) amount of bandwidth (flexible) <\/li>\n<li>Limit bandwidth (inflexible) <\/li>\n<\/ul>\n<p>There are 3 ways that you can create QoS rules, and each type depends on the type of traffic you are dealing with and changes where the rule is applied, and what it applies to:<\/p>\n<p align=\"center\"><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2012\/12\/image2.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2012\/12\/image_thumb2.png\" width=\"404\" height=\"279\" \/><\/a><\/p>\n<p align=\"left\"><strong><u>1) The Virtual Switch<\/u><\/strong><\/p>\n<p align=\"left\">This is the simplest of the options in my opinion.&#160; You can create rules to be applied by a QoS enabled virtual switch.&#160; This should be used when the traffic you are dealing with is passing through a virtual switch (highlighted with red \u201c1\u201d above). Each rule is applied to a virtual NIC, either in a virtual machine or the Management OS. You can define a default bucket rule; this pool rule is used for any virtual NIC that does not have an explicit rule and the b\/w is shared in the pool.&#160; All of my previous PoSH examples on my blog have focused on this approach.<\/p>\n<p align=\"left\"><strong><u>2) OS Packet Scheduler<\/u><\/strong><\/p>\n<p align=\"left\">Maybe you have physical NICs that will be shared between roles (e.g. SMB 3.0, cluster communications, and Live Migration). These NICs have nothing to do with virtual NICs. In this case you create per-protocol rules, not virtual NIC rules. The rules are applied to network traffic as they pass through the networking stack by the OS Packet Scheduler.<\/p>\n<p align=\"left\">Note that you can also use this approach in the guest OS of a VM.<\/p>\n<p align=\"left\"><strong><u>3) Datacenter Bridging (DCB)<\/u><\/strong><\/p>\n<p align=\"left\">DCB is a function of hardware, allowing you to classify and apply QoS to networking protocols using hardware instead of software. Some protocols are invisible to Windows, such as Remote Direct Memory Access (RDMA) which is used for SMB Direct. You must use DCB to apply QoS for RDMA. Actually, using DCB offers the best performance. Two notes:<\/p>\n<ul>\n<li>You must have DCB enabled hardware from end to end between SMB client and SMB server. <\/li>\n<li>RoCE networking requires that you enable Priority Flow Control (PFC) for RDMA. <\/li>\n<\/ul>\n<p>It\u2019s one thing to apply QoS on a per NIC or server level, but the network admins might want to control traffic on the LAN. You can classify and tag traffic so that QoS rules on the switches\/routers can also apply QoS rules. The classification can ID protocols, ports, destination IP addresses, and so on, classify the traffic, and that classification can be used by network admins, e.g. stop the total sum of backup traffic from screwing up the host networking.<\/p>\n<p>&#8212;<\/p>\n<p>QoS, combined with NIC teaming, virtual NICs, VLANs, RSS, DVMQ, etc, all make converged fabrics possible. There\u2019s no one right design, but there are wrong ones, e.g. trying to use RSS and DVMQ on the same physical NICs.<\/p>\n<p>Microsoft has <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/jj735302.aspx\" target=\"_blank\">published some common configurations<\/a> on TechNet, along with a bunch of PowerShell. Here are some thoughts:<\/p>\n<p><strong><u>2 NICs without NIC Teaming<\/u><\/strong><\/p>\n<p>I\u2019d expect this to be an uncommon configuration, but could see it being used in very large hosting with 1+1 host fault tolerance. In this example you can see:<\/p>\n<ul>\n<li>Methods 2 or 3 being used for the Management OS <\/li>\n<li>Method 1 being used for the virtual NICs <\/li>\n<li>Traffic in the guest OS is being tagged using <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc787218(v=WS.10).aspx\" target=\"_blank\">DSCP<\/a>. <\/li>\n<\/ul>\n<p><strong><u>2 NICs with NIC Teaming<\/u><\/strong><\/p>\n<p>This will be a very common configuration, useful for clusters using SAS or Fibre Channel storage. My previous blogging has focused on this example. In this example you can see:<\/p>\n<ul>\n<li>Method 1 being used on the virtual NICs <\/li>\n<li>The optionally note confuses things: here the author has classified and tagged the protocols of the Management OS and the VMs\u2019 guest OSs so that the physical network can also apply QoS rules at the greater LAN level.&#160; The final code snippet shows how to pass this IeeePriorityTag on to the LAN <\/li>\n<\/ul>\n<p>A twist on this example is to add 2 physical NICs for non-converged iSCSI so that you can have dedicated iSCSI switches (for manufacturer support).<\/p>\n<p><strong><u>4 NICs in two NIC teams<\/u><\/strong><\/p>\n<p>This example is basically the 2 NICs without NIC Teaming example with NIC teaming. I can see this one being used where SMB 3.0 storage is required but there is <strong><em><u>no<\/u><\/em><\/strong> RDMA\/SMB Direct being used.&#160; NIC teaming can\u2019t see RDMA!&#160; <\/p>\n<p>The two physical NICs on the left are dedicated to the Management OS. The QoS rules classify and tag protocols and apply QoS either:<\/p>\n<ul>\n<li>Using DCB (more expensive but better performing) <\/li>\n<li>The OS Packet Scheduler <\/li>\n<\/ul>\n<p>The NIC team and virtual switch are dedicated to virtual machines.<\/p>\n<p><strong><u>4 NICs with a standard NIC team and two RDMA NICs<\/u><\/strong><\/p>\n<p>This is a variation on the last example. Two RDMA NICs are being used for SMB Direct. NIC teaming must be dispensed with in the Management OS. Now DCB must be used. Rules are created to classify and tag protocols, and DCB is used to apply QoS. PFC will be enabled for RDMA if using RoCE NICs.<\/p>\n<p>Some notes:<\/p>\n<ul>\n<li>The two Management OS NICs are not teamed, and therefore have their own IP addresses <\/li>\n<li>If using Scale-Out File Server (clustered file server for application data) then both of these NICs should be on different subnets, matching the NICs that are on the clustered file server nodes. This is a requirement of SMB Multichannel when using clustered file shares, such as those in SOFS. <\/li>\n<li>You do not enable MPIO as the diagram suggests. You get MPIO like behaviour from SMB Multichannel. <\/li>\n<\/ul>\n<p><strong><u>Alternate configuration of 4 NICs with a standard NIC team and two RDMA NICs<\/u><\/strong><\/p>\n<p>This example uses the flexibility of virtual NIC for the Management OS, while dedicating 100% of bandwidth of the RDMA NICs for SMB 3.0.&#160; See the previous example notes for the 2 SMB 3.0 NICs (IP addresses, QoS, PFC,&#160; and MPIO).<\/p>\n<p>You\u2019ll use QoS on a per virtual NIC basis that is applied by the virtual switch for the Management OS vNICs (Management, Live Migration, Clustering).<\/p>\n<p>&#8212;<\/p>\n<p>Microsoft also published some <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/jj735303.aspx\" target=\"_blank\">best practices for QoS<\/a>.<\/p>\n<p>Some notes:<\/p>\n<ul>\n<li>When using weight based rules (my preference) then keep the total weights near or under 100. I hate using QoS on individual VMs because they move. I prefer to lump them into the virtual switch bucket, and reserve specific rules for the Management OS virtual NICs. I keep the weights (vNICs and bucket) totalling 100, therefore they are percentages and not weights. You might otherwise assign 4 vNICs weights of 20 and be confused when a query shows a result of 25% (1\/4 of 80). <\/li>\n<li>I like the note on cluster communications\/heartbeat getting a weight of more than 1 (e.g. 5) on a 10 GbE NIC. <\/li>\n<li>Don\u2019t do DCB and Minimum Bandwidth rules on the same NICs <\/li>\n<li>Pay attention to the notes at the end on QoS and NIC teaming. <\/li>\n<\/ul>\n<p>If you have reached here without reading the referenced Microsoft pages then, then don\u2019t be an idiot: go back and read them. I\u2019ve only covered\/explained a tiny fraction of the shared information.<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:dffc1241-5a51-4b1f-ba74-eaae7a995ae2\" class=\"wlWriterEditableSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/Windows+Server+2012\" rel=\"tag\">Windows Server 2012<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Hyper-V\" rel=\"tag\">Hyper-V<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Networking\" rel=\"tag\">Networking<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Quality of Service (QoS) feature has been improved in Windows Server 2012 and this becomes a major ingredient in converged fabrics. QoS rules can be used to: Guarantee a minimal and burstable (if there\u2019s free capacity) amount of bandwidth (flexible) Limit bandwidth (inflexible) There are 3 ways that you can create QoS rules, and &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=13891\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Microsoft Publishes WS2012 QoS Guidance&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[181,80,118],"class_list":["post-13891","post","type-post","status-publish","format-standard","hentry","category-hyper-v","tag-hyper-v","tag-networking","tag-windows-server-2012"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/13891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13891"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/13891\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}