What is a Beacon Interval? | giamcanherbalthin.com - Guest Blog
Wikipedia defines a beacon as "an intentionally conspicuous device designed khổng lồ attract attention khổng lồ a specific location. A common example is a lighthouse, which draws attention to lớn a fixed point that can be used khổng lồ navigate around obstacles or into port."
In computer networking và specifically wireless technologies, the beacon is used for transmitting frames (management type) that show the presence of the base station (Access Point, or AP), which broadcasts not only the SSIDs but also some other important information as well.
Bạn đang xem: Boosting wi
There are three distinct types of frames transmitted when we use Wi-Fi. In each of the three types, there exist subtypes (for example, the Beacon is a subtype of the Management type). Those frame types are:Management framesControl framesData frames
The management frames are used lớn manage the wireless network, which we call the BSS (Basic Service Set). These frames allow for associating, authenticating, etc. Of clients who connect to the same BSS.
To better understand the frame in wireless protocols, imagine there is a big container, & this container is a collection of some small containers which vị not serve any purpose up until they come together & form one big container.
Now, think of the same container as a frame. The frames are divided into small parts that, by themselves, bởi not have any meaningful purpose until they come và work together.
Let me show you in a simple diagram what I mean. For this blog, I"ll try lớn make it as simple as possible.
Figure 1 - 802.11 Frame Format
As you can see, the frame is divided into several parts, which are then divided into further parts. For example, the Frame Control part (field) is broken into several sub-parts (subfields). I"ll focus on the first three subfields for this article.Protocol version: which in our case is always shown by 00, which is to indicate that 802.11 (Wireless) is in use.Type field indicates the following:(00 - means it is management frames)(01 - means control frames)(10 - means data frames)
Each one of the aforementioned has different subtypes, for example, management frames have the following Subtypes:0000 - Association Request0001 - Association Response0010 - Re-association Request0011-Reassociation Response0100 - Probe Request0101 - Probe Response0110-Timing Advertisement0111-Reserved1000-Beacon1001-ATIM1010-Disassociation1011-Authentication1100-Deauthentication1101-Action1110-Action No Ack(NACK)1111-Reserved
You may be wondering why I used this type of numbering to lớn show the frame subtypes. The reason is that these subtypes are based on 4 bits (binary values) which start from 0, which is the Association Request frame, & the last subtype in the management type is number 15. Which in total gives us 16 subtypes. This type of numbering has another benefit, which is to lớn help us filter these subtypes in protocol analyzers such as Wireshark.
In this blog, we focus mainly on the Beacon subtype, which is 1000 in binary or number 8.
The beacon frame is generated by the AP for the BSS lớn provide information about its network capabilities and timestamps. It is transmitted periodically, in specific every 102.4 milliseconds or 1024 microseconds. In the documentation, they call this interval the Target Beacon Transmission Time (TBTT). It is the time at which a node (AP in a BSS, Station when in ad hoc mode (IBSS)) must attempt lớn send the beacon to lớn the stations which are listening for it.
Let me show you a beacon frame by using the following filter in Wireshark khổng lồ show the beacon frames based on an SSID. You can use the same and replace "XYZ" with your SSID: "wlan.ssid==xyz&&wlan.fc.type_subtype==8"
Figure 2 - Wireshark Beacon Frame Delta time is 0.1024
Figure 3 - Wireshark Beacon Frame Delta time
You may be wondering why the number 102.4 is not the exact number as shown in the frame capture in the delta time column. It"s because the AP was not allowed to transmit the beacon at that particular moment. It is because, in Wi-Fi, we are dealing with "Shared Medium." The medium belongs to every wireless-capable device to transmit data across the air.
Therefore, there must be a system in place khổng lồ avoid collisions among those frames over the air so everyone can talk as required without interference.
For this purpose, the researchers implemented the idea of using Carrier Sense Multiple Access with Collision Avoidance, in short, CSMA/CA, approaches lớn control the shared medium. That transmitter is going khổng lồ make sure that there is no significant energy in the air by sensing it before it can transmit data.
Xem thêm: Giải Đáp: Đắp Mặt Nạ Sữa Chua Không Đường Mỗi Ngày Không, Có Nên Đắp Mặt Nạ Sữa Chua Hàng Ngày Không
As you can see in Figure 3, the delta time between frames No.1492 & 1537 is more than 200 milliseconds. So there must be something in between using the medium which did not give any chance for the beacon frame lớn be broadcast. Let"s deep dive và see what was happening in between. I am going khổng lồ remove the filter và try to see what was transmitted during that time in between.
Figure 4 - Frames between 1492 and 1537
As you can see, there are multiple management & data frames in between and before our designated AP found an opportunity to transmit its Beacon frame.
That is why you see different timing in Beacon intervals during the capture as some more than that value of 102.4 ms, which is directly related to the channel utilization và contention. The more data is on the air, the less likely the transmitter can broadcast the Beacon frame.
In the following screenshot, you can see some Beacon frames are out of the ordinary, which is normal (Not-Preferred) in an environment with multiple SSIDs broadcasted over a single AP, which creates management overhead.
Figure 5 - Delta Time Column showing beacon interval of more than 1024 microseconds
As previously mentioned, the beacons are not just providing information related to their network. They are also helping all the stations in the network to change their local clocks & synchronize.
Beacons are very important frames lớn manage the wireless network. However, there are some thiết kế criteria that a designer must follow lớn have an effective network with reliable performance. The first và foremost is lớn reduce management overhead.
The simple solution to reduce management overhead is lớn reduce the number of SSIDs per AP.
In my lab, I created three different SSIDs on the same AP. The less SSID each AP has, the less management overhead it produces and, consequently the less channel utilization & more chance for other wireless-capable devices lớn transmit and receive data across the medium.
*-BSSID: Basic Service mix is the term used lớn describe a collection of Wireless-Capable devices connecting khổng lồ the AP to be able khổng lồ communicate together và transmit data.
**-IBSS: Independent Basic Service Set, Is the simplest IEEE 802.11 simplest type of network which does not need any infrastructure khổng lồ be able lớn connect and transmit data. The other term used for this type of network is Ad-Hoc.
Tools Used for the LabMacBook ProARUBA AP (3 SSID"s)iPhone 11 (To generate traffic)WiresharkAirtool 2 Tagged with: giamcanherbalthin.com, beacon interval, 802.11 beacon interval, cwap, wifi beacon interval
Blog Disclaimer: The opinions expressed within these blog posts are solely the author’s và do not reflect the opinions & beliefs of the Certitrek, giamcanherbalthin.com or its affiliates.