{"id":14353,"date":"2013-03-19T13:19:00","date_gmt":"2013-03-19T13:19:00","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=14353"},"modified":"2013-03-19T13:19:00","modified_gmt":"2013-03-19T13:19:00","slug":"simulate-a-bandwidth-challenged-wan-for-branchcache-demos-on-ws2012-hyper-v","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=14353","title":{"rendered":"Simulate A Bandwidth Challenged WAN For BranchCache Demos On WS2012 Hyper-V"},"content":{"rendered":"<p>I just started to read a post by Keith Mayer (Microsoft) on <a href=\"http:\/\/blogs.technet.com\/b\/keithmayer\/archive\/2013\/03\/18\/diy-accelerating-the-cloud-with-branchcache-in-windows-server-2012.aspx#.UUhdAIKvlmM\" target=\"_blank\">BranchCache<\/a> and I got to wondering \u201chow could I build a nice demo rig to demonstrate this stuff?\u201d.&#160; Way back when I started showing DFS-R in Windows Server 2008 R2, we used some network appliance that the guys called a \u201cnetwork nightmare\u201d to throttle our network and show off how efficient DFS-R could be with redundant block (cross file) replication.&#160; I want something like that \u2026 but virtual \u2026 and free.<\/p>\n<p>Actually, it\u2019s really easy and effective.<\/p>\n<p>I\u2019ve got 2 VMs, VM01 (the client) and VM02 (the remote file server).&#160; What I\u2019m going to do is restrict the outbound bandwidth from VM02 in the NIC settings of VM02 in Hyper-V Manager \u2013 also possible using PowerShell.<\/p>\n<p>Before I do, I\u2019m going log into VM01 and copy a Ubuntu 12.04 ISO from a file share on VM02 to VM01:<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2013\/03\/image32.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\/03\/image_thumb32.png\" width=\"354\" height=\"226\" \/><\/a><\/p>\n<p>After a few runs, that takes 11 seconds.&#160; Both VMs are on the same host, virtual switch, and simple subnet.&#160; Now to hammer that.<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2013\/03\/image33.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\/03\/image_thumb33.png\" width=\"454\" height=\"428\" \/><\/a><\/p>\n<p>I\u2019ve enabled bandwidth management and set Maximum Bandwidth to 10 Mbps, not an uncommon speed for branch offices.&#160; Click OK and that\u2019s done.&#160; There\u2019s no need to shutdown or reboot the VM.<\/p>\n<p>Now do the copy again \u2026<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2013\/03\/image34.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\/03\/image_thumb34.png\" width=\"354\" height=\"226\" \/><\/a><\/p>\n<p>That file copy is going to take a bit longer <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\/03\/wlEmoticon-smile9.png\" \/>&#160; Point proven!&#160; Now you can head over to Keith\u2019s <a href=\"http:\/\/blogs.technet.com\/b\/keithmayer\/archive\/2013\/03\/18\/diy-accelerating-the-cloud-with-branchcache-in-windows-server-2012.aspx#.UUhdAIKvlmM\" target=\"_blank\">blog<\/a>, set up BranchCache, and show how Windows Server 2012 and Windows 8 Enterprise can add value to a business by overcoming limited bandwidth to\/from branch offices.<\/p>\n<p>If you want to build this out into a bigger virtual WAN, then you could do that.&#160; Just set up a VM with multiple NICs.&#160; It could be an appliance (I haven\u2019t looked at Vyatta in quite a while) or maybe you set up a Windows Server VM with RRAS and enable simple RIP routing.&#160; Now you can restrict the NICs on the router to simulate a bandwidth challenged WAN.<\/p>\n<p>Before you comment \u2013 yes I know, this solution won\u2019t simulate latency.<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:5b2438a6-ea16-44d8-b16d-aa2e6e5f19d6\" 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\/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>,<a href=\"http:\/\/technorati.com\/tags\/Windows+8\" rel=\"tag\">Windows 8<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Windows+Server+2012\" rel=\"tag\">Windows Server 2012<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I just started to read a post by Keith Mayer (Microsoft) on BranchCache and I got to wondering \u201chow could I build a nice demo rig to demonstrate this stuff?\u201d.&#160; Way back when I started showing DFS-R in Windows Server 2008 R2, we used some network appliance that the guys called a \u201cnetwork nightmare\u201d to &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=14353\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Simulate A Bandwidth Challenged WAN For BranchCache Demos On WS2012 Hyper-V&#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,195,109,118],"class_list":["post-14353","post","type-post","status-publish","format-standard","hentry","category-hyper-v","tag-hyper-v","tag-networking","tag-virtualisation","tag-windows-8","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\/14353","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=14353"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/14353\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}