{"id":15538,"date":"2013-10-03T15:16:14","date_gmt":"2013-10-03T14:16:14","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=15538"},"modified":"2013-10-03T15:16:14","modified_gmt":"2013-10-03T14:16:14","slug":"configuring-jumbo-frames-in-ws2012-r2-hyper-v-vms","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=15538","title":{"rendered":"Configuring Jumbo Frames in WS2012 R2 Hyper-V VMs"},"content":{"rendered":"<p>I\u2019ve had a few questions from people about enabling jumbo frames in Hyper-V VMs.&#160; They wonder if they need to configure the virtual switch to allow jumbo frames.&#160; I\u2019ve been running WS2012 R2 Hyper-V since the preview, and RTM has just been deployed.&#160; So I can\u2019t test for W2008 R2 or WS2012, but I can tell you that configuring Jumbo Frames for VMs on WS2012 R2 requires <em>no virtual switch configuration<\/em>.<\/p>\n<p>Here are the steps:<\/p>\n<p><strong><u>1) Physical NICs<\/u><\/strong><\/p>\n<p>You should configure the NICs that are used by the virtual switch to communicate on the LAN.&#160; Edit the properties of the NIC, click Configure, and then find the setting for your NIC model.&#160; It might be called Packet Size, Jumbo Frames, or something else.&#160; Set the value to the maximum supported by your NIC.<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2013\/10\/image.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; border-left: 0px; display: block; padding-right: 0px; margin-right: auto\" border=\"0\" alt=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2013\/10\/image_thumb.png\" width=\"400\" height=\"447\" \/><\/a><\/p>\n<p>Those of you who use Chelsio NICs and are observant will notice that I have not upgraded the NIC driver on this host yet.&#160; Bold me!&#160; I won\u2019t get anywhere near the potential bandwidth until I do.<\/p>\n<p><strong><u>2) Physical Network Appliance(es)<\/u><\/strong><\/p>\n<p>Configure jumbo frames according to your manufacturer\u2019s instructions.&#160; Jumbo Frames needs to be configured end-to-end on the network.&#160; Note that the smallest setting restricts end-to-end packet size.<\/p>\n<p><strong><u>3) Virtual Switch<\/u><\/strong><\/p>\n<p>Do nothing to the virtual switch.&#160; I want to be clear on that <img decoding=\"async\" class=\"wlEmoticon wlEmoticon-smile\" style=\"border-top-style: none; border-left-style: none; border-bottom-style: none; border-right-style: none\" alt=\"Smile\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2013\/10\/wlEmoticon-smile.png\" \/><\/p>\n<p><strong><u>4) Guest OS NIC<\/u><\/strong><\/p>\n<p>Log into the VM and configure the jumbo frames in the guest OS of the VM.&#160; It\u2019s the same process as above, but the name of the setting is known as Jumbo Packet and the maximum value is known to be 9014.<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2013\/10\/image1.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; border-left: 0px; display: block; padding-right: 0px; margin-right: auto\" border=\"0\" alt=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2013\/10\/image_thumb1.png\" width=\"400\" height=\"447\" \/><\/a><\/p>\n<p><strong><u>5) Verify<\/u><\/strong><\/p>\n<p>You should use the pick command to verify that a jumbo packet can be transmitted without fragmentation:<\/p>\n<p><em>ping -f \u2013l &lt;size of packet&gt; &lt;destination&gt;<\/em><\/p>\n<p>The \u2013f flag will prevent fragmentation and the \u2013l flag specifies the packet size.&#160; In my case, I ran tests from the host to the VMs, between the VMs, and from the VMs, to the host.<\/p>\n<p>Here\u2019s a gotcha.&#160; You\u2019re going to probably have values like 9000 and 9014.&#160; You, like I did, will think \u201cI\u2019ll run tests with packet sizes of 9000\u201d.&#160; Don&#8217;t; it will fail.&#160; When 9000 should have worked, the maximum packet I could sent was 8972.&#160; My <strong><em><u>guess<\/u><\/em><\/strong> without doing any research is that wrappers or encapsulation is happening and 8972 is the max that works with ping in my lab.<\/p>\n<p>Anyway, that\u2019s how to get Jumbo Frames configured with Hyper-V VMs.<\/p>\n<p>Before you ask: no I won\u2019t be covering W2008 R2 \u2013 that\u2019s a legacy product now.&#160; And I don\u2019t have time to downgrade to WS2012.<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:3b1936c5-d0f1-4d7c-84a2-f308adb3a680\" 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+R2\" rel=\"tag\">Windows Server 2012 R2<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Hyper-V\" rel=\"tag\">Hyper-V<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Virtualisation\" rel=\"tag\">Virtualisation<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Networking\" rel=\"tag\">Networking<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019ve had a few questions from people about enabling jumbo frames in Hyper-V VMs.&#160; They wonder if they need to configure the virtual switch to allow jumbo frames.&#160; I\u2019ve been running WS2012 R2 Hyper-V since the preview, and RTM has just been deployed.&#160; So I can\u2019t test for W2008 R2 or WS2012, but I can &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=15538\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Configuring Jumbo Frames in WS2012 R2 Hyper-V VMs&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","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,195,120],"class_list":["post-15538","post","type-post","status-publish","format-standard","hentry","category-hyper-v","tag-hyper-v","tag-networking","tag-virtualisation","tag-windows-server-2012-r2"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/15538","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=15538"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/15538\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}