Background
An Access Point (AP) is an Access Point for accessing a wired network by using wireless devices, such as mobile devices such as mobile phones and the like and wireless devices such as notebook computers and the like, and is mainly used in broadband homes, buildings, campuses, parks, warehouses, factories and other places needing wireless monitoring, and typically covers tens of meters to hundreds of meters, and can also be used for long-distance transmission.
The process of accessing the wireless terminal into the network mainly comprises the following steps: scanning, authenticating and associating.
Scanning: before joining the network, the wireless terminal first needs to search for the network in the area where the wireless terminal is located, namely, through active scanning or passive scanning. The active scanning is that the wireless terminal requests to join the network by sending a Probe Request frame, and the AP sends a Probe Response frame to respond after receiving the Request frame sent by the wireless terminal; passive scanning is that the AP will periodically broadcast Beacon (Beacon) frames outwards, and the wireless terminal discovers the network by listening to the Beacon frames.
And (3) authentication: when the wireless terminal receives the Probe Response frame of the AP, one of the candidate APs is selected to be associated. Before association, identity authentication is required, and the identity authentication comprises open system authentication and shared key authentication. The Authentication process is that the wireless terminal requests Authentication to a specified AP by sending an authorization Request (Authentication Request) frame; the AP receives and sends an authorization Response (authorization Response) frame in Response.
And (3) association: after the authentication is passed, the wireless terminal side can establish Association with the designated AP, the Association process is that the wireless terminal sends an Association Request (Association Request) frame to Request Association from the designated AP, and the AP receives the Association Request frame and sends an Association Response (Association Response) frame to respond.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
the AP periodically broadcasts Beacon frames during passive scanning, so that the wireless terminal can discover the network by listening to the Beacon frames. Due to the use environment of the WiFi network, a significant portion of APs cannot be powered externally, and must be powered by a storage battery, and since whether to save power directly determines the sustainable operation time of the AP, it becomes crucial to save power of such APs. And the AP broadcasts the Beacon frame outwards periodically, which results in that the AP consumes a large amount of power in transmitting the Beacon frame.
Disclosure of Invention
In view of the above problems, an object of embodiments of the present invention is to provide a method, a system, and an access point for transmitting a beacon frame, which can save power by having a station proxy access point transmit the beacon frame.
To achieve the above object, an embodiment of the present invention provides a method for transmitting a beacon frame, including: the access point acquires a received signal strength indication of a station associated with the access point; when the received signal strength indication of a station is larger than a first threshold value, an access point sends a proxy request for broadcasting a beacon frame to the station at regular intervals, if a proxy response returned by the station is received, the station is determined as a proxy station, and the proxy station proxies the access point to broadcast the beacon frame at regular intervals; and when the received signal strength indication of the proxy station is smaller than a second threshold value, the access point sends a cancellation proxy message of a periodic broadcast beacon frame to the proxy station, and cancels the proxy station.
Further, the sending, by the access point, a proxy request for periodically broadcasting a beacon frame to the station when the received signal strength indication of the station is greater than the first threshold includes: presetting a first threshold value of received signal strength indication; if no proxy station exists, the access point searches whether a station with a received signal strength indication larger than a first threshold value exists; if the beacon frame is not found, the access point broadcasts the beacon frame regularly; and if the request is found, the access point sends an agent request for regularly broadcasting the beacon frame to the found station, wherein the agent request is an action frame which comprises a supplier specific field corresponding value as a request agent.
Further, if a proxy response returned by the site is received, determining the site as a proxy site includes: if the station supports the agent to broadcast the beacon frame regularly, returning an agent response to the access point, wherein the agent response is an action frame which contains a provider specific field and has a corresponding value of agreement to the agent; if the access point receives a proxy response of a station, determining the station as a proxy station; and if the access point receives the proxy response of more than one station, selecting the station with the optimal received signal strength indication to determine as the proxy station.
Further, when the received signal strength indication of the proxy station is smaller than a second threshold, the access point sends a cancellation proxy message of a periodic broadcast beacon frame to the proxy station, and cancels the proxy station, including: presetting a second threshold value of the received signal strength indication; when the received signal strength indication of the agent station is smaller than a second threshold value, the access point sends a cancellation agent message of a periodic broadcast beacon frame to the agent station, wherein the cancellation agent message is an action frame which contains a provider specific field and has a corresponding value of cancellation agent; and after receiving the cancel agent message, the agent station stops acting the access point to regularly broadcast the beacon frame.
Further, the method further comprises: and if the agent station and the access point are disassociated or no interaction is carried out within a set time, the access point determines that the agent station does not act for broadcasting the beacon frame regularly, and starts to acquire the received signal strength indication of the station associated with the agent station to search for a new agent station.
In order to achieve the above object, an embodiment of the present invention further provides a system for transmitting a beacon frame, including: an access point for obtaining a received signal strength indication of a station associated therewith; when the received signal strength indication of a station is greater than a first threshold value, sending an agent request for broadcasting a beacon frame to the station at regular intervals, and if an agent response returned by the station is received, determining the station as an agent station, so that the agent station acts on the access point to broadcast the beacon frame at regular intervals; when the received signal strength indication of the agent site is smaller than a second threshold value, sending a cancellation agent message of a periodic broadcast beacon frame to the agent site, and canceling the agent site; a station for feeding back a received signal strength indication to an associated access point; when an agent request from the access point is received, returning an agent response to the access point, and after the agent response is determined as an agent station by the access point, acting the access point to regularly broadcast a beacon frame; when a cancel proxy request message is received from an access point, the access point is stopped from being proxied to regularly broadcast beacon frames.
In order to achieve the above object, an embodiment of the present invention further provides an access point for transmitting a beacon frame, where the access point includes: the first processing module is used for acquiring the received signal strength indication of the station associated with the first processing module; a second processing module, configured to send an agent request for broadcasting a beacon frame to a station at a regular interval when a received signal strength indication of the station is greater than a first threshold, determine the station as an agent station if an agent response returned by the station is received, and enable the agent station to act on the access point to broadcast the beacon frame at the regular interval; and when the received signal strength indication of the proxy site is smaller than a second threshold value, sending a cancellation proxy message of a periodic broadcast beacon frame to the proxy site, and canceling the proxy site.
According to the method, the system and the access point for sending the beacon frame, the received signal strength indication of the station associated with the access point is obtained, the proxy station is selected according to the strength of the received signal strength indication, and the proxy station is requested to proxy the access point to broadcast the beacon frame regularly, so that a large amount of electric quantity consumed by the access point to broadcast the beacon frame regularly in the prior art is avoided, energy and electricity are saved for the access point as much as possible, and the sustainable running time of the access point is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The embodiment of the invention provides a method for sending a beacon frame by an access point. Referring to fig. 1, the method may include the following steps:
step S1: the access point acquires a received signal strength indication of a station associated with the access point;
to ensure communication quality and handoff, and to implement dynamic frequency selection or system power control functions, the access point typically requires the stations to report Received Signal Strength Indicators (RSSI) in order for the system to make proper selections and decisions.
In this embodiment, the access point may actively acquire the received signal strength indication of the station associated with the access point without a proxy station or according to a set period, so as to find out the station broadcasting the beacon frame regularly by the proxy.
Step S2: when the received signal strength indication of the station is larger than a first threshold value, the access point sends a proxy request for broadcasting the beacon frame to the station at regular intervals, if a proxy response returned by the station is received, the station is determined as a proxy station, and the proxy station proxies the access point to broadcast the beacon frame at regular intervals.
The RSSI range is typically between-110 dbm and-20 dbm. Generally speaking, if RSSI < -95dbm, the coverage of the current network signal is poor, and almost no signal exists; -95dmb < RSSI < -40dbm, which indicates that the current network signal coverage is very weak; RSSI > 40dbm, which shows that the signal coverage of the current network is better.
In this embodiment, a first threshold value of the received signal strength indication is preset, for example, the first threshold value is-40 dbm. If the received signal strength indication for a station is greater than the first threshold, it indicates that the station is relatively close to the access point, and it may become a proxy access point that periodically broadcasts beacon frames.
After the access point actively acquires the received signal strength indication of the station associated with the access point, whether a station with the received signal strength indication larger than a first threshold value exists is searched:
if the beacon frame is not found, the access point continues to broadcast the beacon frame regularly;
if the beacon frame is found, the access point sends an agent request for broadcasting the beacon frame regularly to the found station.
Specifically, the access point extends a Vendor Specific field (Vendor Specific IE), setting corresponding values for the requesting agent, the granting agent, and the cancelling agent. The access point sends an Action (Action) frame containing a supplier specific field corresponding value as a request agent to the searched station to request the station agent to periodically broadcast a beacon frame. 802.11h incorporates support for Action frames that are used to trigger measurement actions and to ask the workstation to take the necessary actions.
If the station supports the agent to broadcast the beacon frame regularly, the agent response is returned to the access point. Specifically, the station sends an action frame to the access point containing a vendor specific field corresponding value as the consent agent.
Further, if the access point receives a proxy response from more than one station, the station with the best received signal strength indication can be selected as the proxy station to proxy the access point to broadcast the beacon frame periodically. The optimal rssi may refer to the station having the largest rssi.
Step S3: and when the received signal strength indication of the proxy station is smaller than a second threshold value, the access point sends a cancellation proxy message of a periodic broadcast beacon frame to the proxy station, and cancels the proxy station.
In this embodiment, a second threshold for the received signal strength indication is preset, for example, the second threshold is-50 dbm. If the received signal strength indication of the proxy station is less than the second threshold, it indicates that the proxy station is already a little further away from the access point and is no longer suitable as a proxy station for the access point.
The access point sends a cancellation agent message of a periodic broadcast beacon frame to the proxy station, specifically, the access point sends an action frame containing a provider specific field corresponding value as a cancellation agent to the station, and the station stops the proxy access point from periodically broadcasting the beacon frame after receiving the action frame. When the proxy station and access point disassociate, or do not have any interaction for a certain amount of time, the access point will default to the proxy station not to proxy for periodic broadcast beacon frames.
In addition, the method of the present invention may further comprise:
when the proxy station is cancelled, the access point will repeat the steps of S2 and S3, and start the process of finding a new proxy station, i.e. find a station with a received signal strength indication greater than the first threshold among the associated stations. If not found, the access point broadcasts beacon frames periodically, but does not stop the action of finding proxy sites, because the station's received signal strength indication and access conditions are dynamic, and it is likely that a suitable proxy site will be found again in the near future.
Please refer to fig. 2. An embodiment of the present invention provides a system for transmitting a beacon frame, including: an access point and a station associated with the access point, wherein,
an access point for obtaining a received signal strength indication of a station associated therewith; when the received signal strength indication of a station is greater than a first threshold value, sending an agent request for regularly broadcasting a beacon frame to the station, and if an agent response returned by the station is received, determining the station as an agent station; when the received signal strength indication of the agent site is smaller than a second threshold value, sending a cancellation agent message of a periodic broadcast beacon frame to the agent site, and canceling the agent site;
the station is used for feeding back the received signal strength indication of the station to the access point; when an agent request from an access point is received, returning an agent response to the access point, and after the agent response is determined as an agent station by the access point, acting the access point to regularly broadcast a beacon frame; when a cancel proxy request message is received from an access point, the access point is stopped from being proxied to regularly broadcast beacon frames.
In particular, the amount of the solvent to be used,
the access point presets a first threshold value of received signal strength indication; if no proxy station exists, searching whether a station with the received signal strength indication larger than a first threshold value exists; if not, broadcasting the beacon frame regularly; if the request is found, sending an agent request for regularly broadcasting the beacon frame to the found site, wherein the agent request is an action frame which comprises a supplier specific field corresponding value as a request agent; receiving an agent response returned by the site, wherein the agent response is an action frame which contains a provider specific field and has a corresponding value of agreement agent; if an agent response of a site is received, determining the site as an agent site; if the access point receives the proxy response of more than one station, selecting the station with the optimal received signal strength indication to determine as a proxy station; presetting a second threshold value of the received signal strength indication; and when the received signal strength indication of the proxy station is smaller than a second threshold value, sending a cancellation proxy message of a periodic broadcast beacon frame to the proxy station, wherein the cancellation proxy message is an action frame which contains a provider specific field and has a corresponding value of cancellation proxy, and enabling the proxy station to stop acting on the access point to periodically broadcast the beacon frame.
The above system for sending beacon frames relates to specific technical details similar to the method for sending beacon frames, and therefore, detailed descriptions thereof are omitted.
Please refer to fig. 3. An embodiment of the present invention further provides an access point for transmitting a beacon frame, including:
the first processing module is used for acquiring the received signal strength indication of the station associated with the first processing module;
a second processing module, configured to send an agent request for broadcasting a beacon frame to a station at a regular interval when a received signal strength indication of the station is greater than a first threshold, determine the station as an agent station if an agent response returned by the station is received, and enable the agent station to act on the access point to broadcast the beacon frame at the regular interval; and when the received signal strength indication of the proxy site is smaller than a second threshold value, sending a cancellation proxy message of a periodic broadcast beacon frame to the proxy site, and canceling the proxy site.
In particular, the amount of the solvent to be used,
the second processing module is used for presetting a first threshold value of received signal strength indication; if no proxy station exists, searching whether a station with the received signal strength indication larger than a first threshold value exists; if not, broadcasting the beacon frame regularly; if the request is found, sending an agent request for regularly broadcasting the beacon frame to the found site, wherein the agent request is an action frame which comprises a supplier specific field corresponding value as a request agent; receiving an agent response returned by the site, wherein the agent response is an action frame which contains a provider specific field and has a corresponding value of agreement agent; if an agent response of a site is received, determining the site as an agent site; if the access point receives the proxy response of more than one station, selecting the station with the optimal received signal strength indication to determine as a proxy station; presetting a second threshold value of the received signal strength indication; and when the received signal strength indication of the proxy station is smaller than a second threshold value, sending a cancellation proxy message of a periodic broadcast beacon frame to the proxy station, wherein the cancellation proxy message is an action frame which contains a provider specific field and has a corresponding value of cancellation proxy, and enabling the proxy station to stop acting on the access point to periodically broadcast the beacon frame.
The above-mentioned specific technical details related to the access point for sending the beacon frame are similar to those of the method for sending the beacon frame, and therefore detailed description is omitted.
As can be seen from the above, according to the method, the system, and the access point for sending a beacon frame provided by the embodiments of the present invention, by obtaining the received signal strength indication of the station associated with the access point, selecting the proxy station according to the strength of the received signal strength indication, and requesting the proxy station to proxy the access point to periodically broadcast the beacon frame, a large amount of electric power consumed by the access point to periodically broadcast the beacon frame in the prior art is avoided, energy and power are saved for the access point as much as possible, and the sustainable operation time of the access point is improved.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments.
Finally, it should be noted that: the foregoing description of various embodiments of the invention is provided to those skilled in the art for the purpose of illustration. It is not intended to be exhaustive or to limit the invention to a single disclosed embodiment. Various alternatives and modifications of the invention, as described above, will be apparent to those skilled in the art. Thus, while some alternative embodiments have been discussed in detail, other embodiments will be apparent or relatively easy to derive by those of ordinary skill in the art. The present invention is intended to embrace all such alternatives, modifications, and variances which have been discussed herein, and other embodiments which fall within the spirit and scope of the above application.