{"id":23,"date":"2018-10-18T23:50:22","date_gmt":"2018-10-18T23:50:22","guid":{"rendered":"http:\/\/remoteapple.com\/?p=23"},"modified":"2018-10-19T15:25:22","modified_gmt":"2018-10-19T15:25:22","slug":"unifi-managing-broadcast-traffic","status":"publish","type":"post","link":"https:\/\/remoteapple.com\/?p=23","title":{"rendered":"UniFi &#8211; Managing Broadcast Traffic"},"content":{"rendered":"<h1>Overview<\/h1>\n<hr \/>\n<p>This article will explain what broadcast traffic is and why it&#8217;s important to manage it in your UniFi-managed network.<\/p>\n<hr \/>\n<h2>Table of Contents<\/h2>\n<hr \/>\n<ol>\n<li><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115001529267-UniFi-Managing-Broadcast-Traffic#managingbroadcasttraf\">What is Broadcast Traffic?\u00a0<\/a><\/li>\n<li><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115001529267-UniFi-Managing-Broadcast-Traffic#excessivebroadcast\">Effects of Excessive Broadcast Traffic<\/a><\/li>\n<li><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115001529267-UniFi-Managing-Broadcast-Traffic#methods\">Managing Broadcast\/Multicast Traffic<\/a><\/li>\n<li><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115001529267-UniFi-Managing-Broadcast-Traffic#howto\">How-to Enable\u00a0Port Isolation in UniFi Controller<\/a><\/li>\n<li><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115001529267-UniFi-Managing-Broadcast-Traffic#how%20broadcast%20blocking%20works\">How Broadcast Blocking Works<\/a><\/li>\n<li><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115001529267-UniFi-Managing-Broadcast-Traffic#relatedarticles\">Related Articles<\/a><\/li>\n<\/ol>\n<hr \/>\n<h1><a name=\"managingbroadcasttraf\"><\/a>What is Broadcast Traffic?<\/h1>\n<hr \/>\n<p><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115001529267-UniFi-Managing-Broadcast-Traffic#top\"><span class=\"wysiwyg-font-size-small\">Back to Top<\/span><\/a><\/p>\n<p>Broadcast traffic is a topic of critical importance for network administrators- especially in larger networks. Without managing broadcast and multicast traffic, most networks will likely suffer the consequences sooner or later which can be detrimental to network health.<\/p>\n<p>With UniFi, administrators have a number of methods of both monitoring broadcast\/multicast traffic and taking action to prevent the network issues that can come from too much of it. In this article, we&#8217;ll explain why broadcast\/multicast traffic is an important consideration for network administrators and suggest some methods of managing this traffic.<\/p>\n<p>First let&#8217;s define the three fundamental different ways communication occurs over a network- unicast, broadcast and multicast.<\/p>\n<p><strong>Unicast\u00a0<\/strong>is the most common method used for network transmissions. Unicast involves one device sending info to another single network address. This is the method used most often on networks when users browse the internet or download files from a file server.<\/p>\n<p><strong>Broadcast<\/strong>\u00a0involves sending a single packet on a network to every possible recipient on the network. This method has its own advantages\/disadvantages over unicast and is very efficient. It can however, only extend so far as the broadcast domain\u2014which is usually defined by subnet. Common uses of broadcast transmissions include UniFi device discovery, ARP (Address Resolution Protocol) requests, DHCP, etc.<\/p>\n<p><strong>Multicast<\/strong>\u00a0functions in a sort of mix between broadcast\/unicast. With multicast one device sends data only to systems that are set to receive this data but unlike unicast can send to multiple devices. This means it&#8217;s more efficient than unicast while consuming less resources than broadcast. \u00a0This most commonly occurs on local networks. An example of a common function that uses multicast transmissions is media streaming like a live stream of a sporting event.<\/p>\n<p>Since unicast communication is the most common and essential on most networks\u2014and the least intensive of the three, special precautions will usually need to be taken to ensure that broadcast\/multicast requests do not consume so much network resources that they adversely impact network performance. Let&#8217;s explore how this happens and how you can identify the symptoms.<\/p>\n<hr \/>\n<h1><a name=\"excessivebroadcast\"><\/a>Effects of Excessive Broadcast Traffic<\/h1>\n<hr \/>\n<p><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115001529267-UniFi-Managing-Broadcast-Traffic#top\"><span class=\"wysiwyg-font-size-small\">Back to Top<\/span><\/a><\/p>\n<p>Chances are most of us have been on a network when someone plugged in a router or IP phone incorrectly and basically took down the network. The cause of these network outages is most often broadcast\/multicast traffic. When a router plugs into the local network incorrectly and starts broadcasting ARP requests in a loop- this consumes such a large amount of bandwidth that there are is quickly no room for normal network operations. This is what we call a\u00a0<strong>broadcast storm<\/strong>.<\/p>\n<p>While many networks will unfortunately experience these from time to time, the less obvious consequences of unmanaged broadcast\/multicast traffic often go unnoticed while still severely impacting the network. In such cases, dropped packets, intermittent connectivity issues with APs and slower network speed can tip administrators off.<\/p>\n<p>Let&#8217;s take a closer look at how this happens. This\u00a0is what 400 packets\/second of broadcast traffic looks like on a WLAN network with 5 APs:<\/p>\n<p class=\"wysiwyg-text-align-center\"><img decoding=\"async\" src=\"https:\/\/help.ubnt.com\/hc\/en-us\/article_attachments\/115002939287\/bar-graphs-v2-01.png\" alt=\"\" \/><\/p>\n<p>While 393 kbps isn&#8217;t a particularly large amount of data, when sent via broadcast it can consume 80% of airtime. This takes roughly the same amount of airtime as trying to send 639 Mbps (500 packets\/second * 123 bytes * 8bytes\/bit * 1300 unicast frames\/multicast frame) through the AP at full PHY rate.<\/p>\n<p>In the above example, both AP1 and AP4 will likely experience intermittent connectivity issues and dropped packets, which will adversely further affect the performance of other APs. These conditions would result in APs having intermittent connectivity with a maximum of 17 mbps of actual user throughput (unicast data). This would drastically limit the number of users that could connect to each access point\u2014and make the wireless network particularly slow.<\/p>\n<p>As broadcast transmissions increase, this will continue to choke out network function with cascading failures.<\/p>\n<p>For these reasons, it is critical to manage broadcast\/multicast traffic. Let&#8217;s take a look at how beneficial this can be through another example:<\/p>\n<p class=\"wysiwyg-text-align-center\"><img decoding=\"async\" src=\"https:\/\/help.ubnt.com\/hc\/en-us\/article_attachments\/115002983688\/bar-graphs-v2-02.png\" alt=\"\" \/><\/p>\n<p>As you can see, with proper control on broadcast\/multicast traffic, the same APs can handle over four-fold the user throughput without experiencing any intermittent connectivity. This means the same number of users will all have four times the amount of throughput, or for the same throughput, the system will be able to handle four times the number of users.<\/p>\n<p>In the next section, we\u2019ll explain how this traffic can be managed.<\/p>\n<hr \/>\n<h1><a name=\"methods\"><\/a>Managing Broadcast\/Multicast Traffic<\/h1>\n<hr \/>\n<p><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115001529267-UniFi-Managing-Broadcast-Traffic#top\"><span class=\"wysiwyg-font-size-small\">Back to Top<\/span><\/a><\/p>\n<p>Depending on what tools you have available to you in your network, there are a number of ways to manage broadcast\/multicast traffic. With UniFi Switches\/hardware, the currently recommended method is using Port Isolation. This method both ensures that broadcast\/multicast data is kept to a minimum, while allowing critical services that rely on broadcast\/multicast transmissions. Let\u2019s look at an overview of what this would look like:<\/p>\n<p class=\"wysiwyg-text-align-center\"><img loading=\"lazy\" decoding=\"async\" class=\"image-viewer--enabled\" src=\"https:\/\/help.ubnt.com\/hc\/en-us\/article_attachments\/115004974887\/Broadcast_Multitask_Diagram1.png\" alt=\"\" width=\"683\" height=\"507\" \/><\/p>\n<hr \/>\n<h1><a name=\"howto\"><\/a>How to Enable\u00a0Port Isolation in UniFi Controller<\/h1>\n<hr \/>\n<p><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115001529267-UniFi-Managing-Broadcast-Traffic#top\"><span class=\"wysiwyg-font-size-small\">Back to Top<\/span><\/a><\/p>\n<p>Here\u2019s how to set this up as shown in the above example in the UniFi controller:<\/p>\n<ol>\n<li>First, open the\u00a0UniFi Controller that manages your network.<\/li>\n<li>Click the\u00a0<strong>Devices<\/strong>\u00a0tab on the left to see your devices.<\/li>\n<li>Click on the switch you want to enable port isolation on, and go to the\u00a0<strong>Ports<\/strong>\u00a0tab.<\/li>\n<li>Either select the ports individually you want to enable port isolation on, or click box to select all.<\/li>\n<li>Click\u00a0<strong>Edit Selected<\/strong>\u00a0at the bottom.<\/li>\n<li>Go to\u00a0<strong>Advanced.<\/strong><\/li>\n<li>Expand\u00a0<strong>Advanced Options.<\/strong><\/li>\n<li>Under\u00a0<strong>Isolation<\/strong>, select\u00a0<strong>Enable port isolation<\/strong>.<\/li>\n<li>Click\u00a0<strong>Apply<\/strong>\u00a0to finalize changes.<\/li>\n<\/ol>\n<p class=\"wysiwyg-text-align-center\"><img decoding=\"async\" src=\"https:\/\/help.ubnt.com\/hc\/en-us\/article_attachments\/115002739847\/image00.gif\" alt=\"\" \/><\/p>\n<hr \/>\n<p><a name=\"how broadcast blocking works\"><\/a><\/p>\n<h1>How Broadcast Blocking\u00a0Works<\/h1>\n<hr \/>\n<p><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115001529267-UniFi-Managing-Broadcast-Traffic#top\"><span class=\"wysiwyg-font-size-small\">Back to Top<\/span><\/a><\/p>\n<p>It&#8217;s important to note that the\u00a0LAN-WLAN Broadcast blocking feature does not actually block stations from sending broadcast frames to the AP for forwarding onto the wired network. Instead, it blocks broadcast frames that are destined to the athX interface and avoids them from being transmitted.<\/p>\n<p>The frames are dropped at\u00a0a\u00a0wireless driver level. Therefore, if you run a\u00a0<code>tcpdump<\/code>\u00a0on the athX interface of\u00a0the AP itself, traffic that will wind up being blocked later will appear. The bridge to Ethernet\/VLAN forwards everything\u00a0to the athX interface, which is what\u00a0<code>tcpdump<\/code>\u00a0picks up, completely unaware of which frames the wireless driver will\u00a0drop\u00a0afterwards.<\/p>\n<p>This is why verifying the blockage via\u00a0<code>tcpdump<\/code>\u00a0won&#8217;t work. You will however, be able to observe by listening on their wireless interface, that once this feature is enabled, broadcast traffic will not be received by any computer connected to that AP, even though you would\u00a0still be able to see that\u00a0traffic when running\u00a0<code>tcpdump -i athX<\/code>\u00a0on the AP.<\/p>\n<hr \/>\n<h1><a name=\"relatedarticles\"><\/a>Related Articles<\/h1>\n<hr \/>\n<p><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115001529267-UniFi-Managing-Broadcast-Traffic#top\"><span class=\"wysiwyg-font-size-small\">Back to Top<\/span><\/a><\/p>\n<p><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/221029967-UniFi-Debugging-Intermittent-Connectivity-Issues-on-your-UAP\" target=\"_blank\" rel=\"noopener\">UniFi &#8211; Debugging Intermittent Connectivity Issues on your UAP<\/a><\/p>\n<p><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/227129127-UniFi-Methods-for-Capturing-Useful-Debug-Information\" target=\"_blank\" rel=\"noopener\">UniFi &#8211; Methods for Capturing Useful Debug Information<\/a><\/p>\n<p><a href=\"https:\/\/help.ubnt.com\/hc\/en-us\/articles\/115000166827-UniFi-Guest-Network-Setup\">UniFi &#8211; Guest Network Setup<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview This article will explain what broadcast traffic is and why it&#8217;s important to manage it in your UniFi-managed network. Table of Contents What is Broadcast Traffic?\u00a0 Effects of Excessive Broadcast Traffic Managing Broadcast\/Multicast Traffic How-to Enable\u00a0Port Isolation in UniFi Controller How Broadcast Blocking Works Related Articles What is Broadcast Traffic? Back to Top Broadcast [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[4,6],"tags":[],"class_list":{"0":"post-23","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-knowledge-base","7":"category-networks","8":"entry"},"_links":{"self":[{"href":"https:\/\/remoteapple.com\/index.php?rest_route=\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/remoteapple.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/remoteapple.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/remoteapple.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/remoteapple.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":0,"href":"https:\/\/remoteapple.com\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"wp:attachment":[{"href":"https:\/\/remoteapple.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/remoteapple.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/remoteapple.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}