WO2017186059A1 - Method and apparatus for switching access point in wireless local area network - Google Patents

Method and apparatus for switching access point in wireless local area network Download PDF

Info

Publication number
WO2017186059A1
WO2017186059A1 PCT/CN2017/081435 CN2017081435W WO2017186059A1 WO 2017186059 A1 WO2017186059 A1 WO 2017186059A1 CN 2017081435 W CN2017081435 W CN 2017081435W WO 2017186059 A1 WO2017186059 A1 WO 2017186059A1
Authority
WO
WIPO (PCT)
Prior art keywords
sta
frame
beacon frame
time
wake
Prior art date
Application number
PCT/CN2017/081435
Other languages
French (fr)
Chinese (zh)
Inventor
叶苏昌
季标
王云贵
张�林
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017186059A1 publication Critical patent/WO2017186059A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0077Transmission or use of information for re-establishing the radio link of access information of target access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0203Power saving arrangements in the radio access network or backbone network of wireless communication networks
    • H04W52/0206Power saving arrangements in the radio access network or backbone network of wireless communication networks in access points, e.g. base stations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a method and device for switching an access point AP in a wireless local area network (WLAN).
  • WLAN wireless local area network
  • a terminal In a wireless local area network (WLAN) system, a terminal needs to be connected to an access point (AP), and data is transmitted and received through the AP.
  • the signal between the terminal and the currently connected AP may be degraded. For example, when the distance between the terminal and the currently connected first AP becomes longer, the signal between them becomes worse.
  • the terminal initiates an association request to the second AP with better signal, and switches from connecting with the first AP to connecting with the second AP. It can be called roaming of the terminal.
  • the terminal usually enters the power save mode when there is no data to send and receive. After entering the power save mode, the terminal only periodically turns on the RF module to send and receive data. The terminal cannot initiate roaming actively during the shutdown of the radio module of the terminal. When the terminal opens the radio module, the link between the terminal and the original AP may be degraded to be unable to communicate normally. The terminal can only re-associate with the AP in the WLAN, which not only delays the communication needs of the terminal, but also connects to the original AP. When there is data cached for the terminal, the STA will also be unable to receive the data, resulting in data loss.
  • the present invention provides a method and a device for switching an access point in a wireless local area network, so that the terminal in the power saving mode can successfully perform AP switching.
  • the present application provides a method for switching an AP in a WLAN.
  • each STA in an extended service set (ESS) is assigned a basic service set identifier ( English: basic service set identifier (BSSID), and different STAs in the same ESS are assigned different BSSIDs.
  • the AP in the ESS provides services for the STA based on the BSSID assigned to the STA.
  • the first AP sends a wakeup frame to the STA, indicating that the STA is in the second.
  • the AP is in an awake state when transmitting a beacon frame based on the BSSID assigned to the STA.
  • the first AP sends a handover instruction to the second AP, instructing the second AP to provide the STA with the BSSID allocated for the STA.
  • the first AP stops serving the STA.
  • the process of the AP connected to the STA is performed by the AP. Therefore, even if the STA is in the power-saving mode and the radio module is disabled, the AP can perform the AP handover normally.
  • the communication can be performed through the AP in the ESS, and the STA has good communication quality because the STA can switch the AP with the better connection signal.
  • the first AP after determining that the STA is in the power saving mode and the STA needs to be connected to the second AP, the first AP first determines its own beacon frame transmission time and the beacon frame of the second AP. Whether the sending time is synchronized, if the two are synchronized, the first AP may save the step of sending a wake-up frame to the STA, and directly send a switching instruction to the second AP.
  • the first AP When the beacon frame transmission time of the first AP is not synchronized with the beacon frame transmission time of the second AP, the first AP sends a wakeup frame to the STA, and sends a handover instruction to the second AP to ensure that the STA is in the The second AP is in an awake state when transmitting the beacon frame based on the BSSID allocated to the STA, so that the STA can receive the beacon frame transmitted by the second AP.
  • the present implementation can reduce the transmission of the wake-up frame when the first AP and the second AP transmit the beacon frame, save the transmission resources, and reduce the time-consuming of the AP handover.
  • the wake-up frame includes a first beacon frame, where the first beacon frame includes an indication that the STA adjusts the wake-up time to the second AP, based on the BSSID allocated for the STA, to send the beacon frame.
  • the field of time For example, the timestamp field included in the first beacon frame is used to indicate that the STA synchronizes the local time with the time of the second AP, such that the wakeup time of the STA is synchronized with the beacon frame transmission time of the second AP, so that the The STA can receive a beacon frame transmitted by the second AP to the STA based on the BSSID assigned to the STA.
  • the first AP sends a wake-up frame to the STA, including a field for indicating that the STA adjusts the wake-up time to a time when the second AP transmits a beacon frame based on the BSSID allocated for the STA, Determining, by the first AP, the second AP to receive the second AP, before determining the time interval between the beacon frame sending time of the first AP and the beacon frame sending time of the second AP. a time of the second beacon frame; the first AP determines a beacon frame transmission time of the first AP and a beacon frame of the second AP according to the time of the beacon frame transmission of the first AP and the time of receiving the second beacon frame The time interval before the send time. After determining the time interval, the first AP determines the field for updating the STA wake-up time according to the time interval.
  • the wake-up frame includes a third beacon frame including a field indicating that the STA remains awake.
  • the STA is in the awake state may be that the STA is in the active mode, or the STA is in the power saving mode and enters (for example, enters according to the listening interval) the awake state.
  • the STA in the awake state turns on its RF module.
  • the transmit traffic indication message (DTIM) field in the third beacon frame is set to 1.
  • the AP and the STA agree that the STA receives the beacon frame with the DTIM field set to 1. , switch from power saving mode to active mode.
  • the AP and the STA agree that after receiving the beacon frame with the DTIM field set to 1, the STA continues to be in the power saving mode but remains in the awake state.
  • DTIM transmit traffic indication message
  • the STA receives the third beacon frame, and the DTIM field is set to 1 in the third beacon frame, the STA sends an election (English: poll) frame to the first AP, and the first AP receives the poll frame. However, if the data is not sent to the STA, the STA will remain awake until it receives the data or beacon frame transmitted by the connected AP.
  • the first AP sends one or more data frames to the STA, and the data frame may not include the transmission.
  • Empty (English: null) data frame for data For example, when the STA is in the awake state in the power saving mode, the first AP receives the poll frame sent by the STA, and sends one or more data frames to the STA, and the “More Data” field of each data frame is set to 1. After receiving the data frame, the STA keeps waking up and sends a poll frame to the first AP again.
  • the first AP when the STA is in the active mode, the first AP sends a data frame to the STA, and after receiving the data frame, the STA will re-enter the countdown to the power saving mode, so that the STA can remain in the active mode.
  • the multiple data frames sent to the STA that cause the STA to maintain the awake state may include a null data frame. Even if the first AP does not buffer the data frame of the STA, the first AP may send a null data frame to the STA, and the “More Data” field of the null data frame is set to 1, indicating that the first AP caches the data frame of the STA to deceive. The STA keeps it awake.
  • the second AP after confirming that the STA is successfully connected to the STA, the second AP sends a handover success message to the first AP, and after receiving the handover success message, the first AP stops sending the wake-up frame for the STA.
  • the present application provides a device for switching an AP in a WLAN, the device being used to perform the method in any of the foregoing first aspect or any possible implementation of the first aspect.
  • the apparatus comprises means for performing the method of any of the above-described first aspect or any of the possible implementations of the first aspect.
  • the application provides a device for switching an AP in a WLAN, the device being used to perform the method in any of the foregoing first aspect or any possible implementation of the first aspect.
  • the device includes a processor and a transceiver coupled to the transceiver.
  • the transceiver is for communicating with other network elements in the WLAN for performing the method of any of the above first aspects or any of the possible implementations of the first aspect by a transceiver.
  • the present application provides a computer readable medium for storing a computer program comprising instructions for performing the method of the first aspect or any possible implementation of the first aspect.
  • FIG. 1 is a schematic diagram of a possible implementation manner of a communication system according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for switching an AP according to an embodiment of the present invention
  • FIG. 3 is another schematic flowchart of a method for switching an AP according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of an apparatus for switching an AP in a WLAN according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an apparatus for switching an AP in another WLAN according to an embodiment of the present invention.
  • the STA In WLAN communication, the STA needs to be connected to an AP, and the connected AP is responsible for data forwarding for the STA. When the signal between the STA and the currently connected AP is poor, the STA needs to switch to the AP with better signal to ensure the normal data communication of the STA. Generally, the STA initiates roaming after detecting that the link between the AP and the AP is degraded to a certain extent, and performs AP handover.
  • the STA turns off the radio frequency module, and only periodically turns on the radio frequency module to send and receive data.
  • the STA cannot initiate roaming.
  • the radio mode is turned on in the STA.
  • the link between the STA and the original connected AP may be degraded to be unable to communicate normally.
  • the STA can only re-associate with the AP in the WLAN, which not only delays the communication requirement of the STA, but also caches data for the STA in the original connected AP. When the STA is also unable to receive the data, the data is lost.
  • the embodiment of the present invention provides an AP handover method.
  • the AP is responsible for performing the handover of the AP connected by the STA, so that even in the When the STA closes the radio module, the handover of the AP connected to the STA can still be completed.
  • the STA when the STA first associates an AP in an extended service set (ESS), the STA is assigned a basic service set identifier (BSSID), ESS. Any AP connected to the STA is serving the STA based on the BSSID. That is, the AP in the ESS simulates an AP that has the BSSID assigned to the STA as the BSSID, and transmits and receives the frame of the STA. That is to say, when the AP in the ESS communicates with the STA, the BSSID is the radio (radio) medium access control (MAC) address of the AP.
  • BSSID basic service set identifier
  • any two STAs in the ESS are assigned different BSSIDs, which can prevent the message forwarding confusion after the STA switches in the ESS.
  • the allocation manner of the BSSID corresponding to the STA includes multiple implementation manners. For example, after the STA initiates an association request to the AP in the ESS, the AP that receives the STA association request allocates a BSSID to the STA, and informs the other APs in the ESS to connect the STA to other APs in the ESS.
  • the AP connected to the STA can provide services for the STA based on the BSSID assigned to the STA. For another example, in the communication system shown in FIG.
  • the roaming controller in the WLAN allocates a BSSID to the STA, and notifies the AP in the ESS to be based on the BSSID allocated for the STA. Serve the STA.
  • the roaming controller may have multiple implementation manners, for example, the roaming controller may be used as a control and configuration of the wireless access point (English: Control And Provisioning of Wireless Access Points) Access Controller (AC) in the CAPWAP protocol.
  • the AP can be used as the wireless termination point (WTP) in the CAPWAP protocol.
  • the roaming controller can be implemented by a single device or by a cluster of multiple distributed devices.
  • the AP connected to the STA switches the STA to another AP in the same ESS, and the AP connected to the STA after the connected AP is switched in the embodiment of the present invention.
  • the target AP is instructed to provide services for the STA based on the BSSID assigned to the STA.
  • the AP connected to the STA can determine whether the STA reaches the roaming threshold, and the roaming controller shown in FIG. 1 can determine whether the STA reaches the roaming threshold.
  • the AP connected to the STA monitors the signal indicator of the STA, for example, received signal strength indication (RSSI), packet loss rate, and the like.
  • RSSI received signal strength indication
  • the STA can determine that the STA reaches the roaming threshold.
  • the roaming controller determines whether the STA reaches the roaming threshold, the AP connected to the STA needs to send the monitoring value of the signal indicator of the STA to the roaming controller.
  • the target AP that the STA needs to connect to may be determined by: the AP that is not connected to the STA in the same ESS monitors the signal indicator of the STA, and the AP or the roaming controller connected to the STA is based on the AP pair that is not connected to the STA.
  • the monitored value of the signal indicator of the STA determines the target AP from the APs that are not connected to the STA. For example, an AP that is not connected to the STA in the same ESS sends a monitoring value of the signal indicator of the STA to the AP connected to the STA.
  • a roaming controller the AP or the roaming controller connected to the STA determines the AP with the best signal indicator detected as the target AP.
  • the physical layer of other APs that are not connected to the STA can receive the packet, calculate the signal indicator such as RSSI, and then media access control of the AP.
  • the media access control (MAC) layer determines whether the message is sent to itself. If the message is not sent to itself, the message is discarded.
  • the MAC layer still stores the RSSI and other signal indicators of the packet into the memory, so that the AP can obtain the signal indicator of the STA that is not connected to itself. .
  • the AP can also monitor the signal indicator of the STA that is not connected to itself by using other technical means in the prior art, which is not detailed in the embodiment of the present invention.
  • the time when different APs send beacon frames is not synchronized.
  • different APs have different beacon intervals.
  • the beacon intervals of different APs are the same, the phases of the transmitted beacon frames are different.
  • one AP transmits a beacon frame at 0 ms, 100 ms, 200 ms... and another AP transmits a beacon frame at 30 ms, 130 ms, 230 ms...
  • the STA When the STA is in the active mode, the STA is always in the awake state, and the STA can receive the beacon frame sent by the second AP after the handover, and send the beacon frame according to the second AP.
  • the field included in the synchronization time includes the time of synchronizing with the time of the second AP.
  • the STA When the STA is in the power saving mode, the STA is in a doze state (English: doze state), and only enters the awake state according to the listening interval (English: listen interval) to receive the selected beacon frame.
  • the listening interval is typically an integer multiple of the beacon interval. Therefore, the STA only opens the radio frequency module to receive the beacon frame at the time when the first AP before the handover transmits the beacon frame. However, since the time when the first AP and the second AP send the beacon frame is usually not synchronized, the STA in the power saving mode enters the awake state for a short period of time, and the beacon frame sent by the second AP may not be received, resulting in the STA.
  • the local time of the switched second AP cannot be synchronized according to the beacon frame sent by the second AP.
  • the STA cannot receive the beacon frame sent by the second AP, and cannot synchronize the local time with the time of the second AP, thereby failing to pass the second AP. Data transmission and reception.
  • an embodiment of the present invention provides a method for switching an AP in a WLAN, and an AP, where the first AP before the handover sends a wake-up frame to the STA, so that the STA sends the beacon frame to the second AP after the handover.
  • the STA can be in an awake state, so that the STA can receive the beacon frame sent by the second AP, and synchronize the local time with the time of the second AP according to the beacon frame sent by the second AP.
  • the method for switching the AP includes the following steps:
  • Step 101 The first AP determines that the first STA connected to the first AP is in the power saving mode, and determines that the second AP in the ESS where the first AP is located is the target AP that the first STA needs to connect.
  • the first AP is connected to the first STA, where the first STA is connected to the WLAN through the first AP, and the first AP provides the service to the first STA.
  • the first AP forwards data for the first STA.
  • the first STA caches data for the first STA.
  • the first STA may be any STA connected to the first STA.
  • the first STA sends a record of the first STA entering the power saving mode to the connected first AP, where the first AP is locally saved.
  • the record can determine that the first STA enters the power save mode.
  • the first AP may learn the first AP roaming threshold according to the manner described above, and learn that the second AP in the same ESS is the target AP that the first AP needs to connect, and the embodiment of the present invention does not repeat here.
  • Step 102 The first AP sends a wake-up frame to the first STA, where the wake-up frame is used to indicate that the first STA is in an awake state when the second AP sends a beacon frame to the first STA based on the first BSSID allocated for the first STA.
  • the STA is in the awake state may be that the STA is in the active mode, or the STA is in the power saving mode and enters (for example, enters according to the listening interval) the awake state.
  • the STA in the awake state turns on its RF module.
  • the wake-up frame in step 102 can have multiple implementations, including but not limited to any of the following implementations:
  • the wake-up frame is a beacon frame
  • the beacon frame includes a field for updating the first STA wake-up time
  • the field for updating the first STA wake-up time is used to instruct the first STA to adjust the wake-up time to the second.
  • the time at which the AP transmits the beacon frame based on the first BSSID.
  • the first AP sends a beacon frame to the first STA based on the first BSSID, and includes a field for instructing the first STA to synchronize the awake time with the time at which the first AP sends the beacon frame.
  • the first AP may use the one of the beacon frames sent to the first STA to update the first STA wakeup time.
  • the value of the field, the modified field is used to indicate that the first STA synchronizes the awake time with the time at which the second AP sends the beacon frame, and this includes instructing the first STA to adjust the awake time to the second AP based on the first BSSID.
  • the beacon frame of the field of the time at which the beacon frame is transmitted can be used as the wake-up frame in the embodiment of the present invention.
  • the first AP determines the difference between the sending time of the beacon frame and the sending time of the beacon frame of the second AP, to determine that the indication indicates that the first STA adjusts the awake time to the second AP based on the first BSSID.
  • the first AP may receive the beacon frame sent by the second AP, and the beacon frame may be a traditional beacon frame, that is, the second AP sends the BSSID based on the second AP itself. Beacon frame.
  • the first AP determines the local time of the first AP when receiving the beacon frame of the second AP, and calculates a time difference between the time when the next beacon frame is transmitted and the time when the second AP beacon frame is received (T_offset) And determining, according to the time difference, the value of the field for updating the wakeup time of the first STA. If the period in which the second AP transmits the beacon frame is different from the period in which the first AP transmits the beacon frame, the difference between the periods in which the two APs transmit the beacon frame may also be considered when calculating the time difference.
  • calculating the time difference may further consider a delay between a time when the first AP receives the beacon frame sent by the second AP and a time when the second AP actually sends the beacon frame.
  • the timestamp field in the beacon frame is the field for updating the STA wakeup time, and the timestamp field is used to synchronize the local time of the STA with the time of the AP.
  • the value of the timestamp field of the beacon frame sent by the first AP to the first STA at time T1 is A; and in the case where the first STA needs to be switched to the second AP, The value of the timestamp field of the beacon frame sent by the first AP to the first STA at time T1 is adjusted to (A-T_offset), so that the first STA performs time synchronization according to (A-T_offset), although The time of a STA is not synchronized with the time of the first AP, but the next wake-up time of the first STA can be synchronized with the time when the second AP sends the beacon frame.
  • the field used to update the STA wakeup time in the beacon frame may also be a beacon interval or a listening interval field.
  • the beacon interval field is an interval at which the AP sends a beacon frame
  • the intercept interval field is an integer multiple of the beacon interval field, indicating an interval at which the STA receives the beacon frame. If the first STA does not need to perform the AP handover, the value of the beacon interval field in the beacon frame sent by the first AP to the first STA at time T1 is B, and the value of the interception interval field is k*B, where k is a positive integer.
  • the first AP is at time T1
  • the interval l field enters the next wake-up time after k*(BD) duration, which is exactly the time when the second AP transmits the beacon frame.
  • the first AP After the first AP determines to switch the first STA to the second AP, the first AP sends a beacon frame to the first STA, where the field for updating the first STA wakeup time in the beacon frame points to the second AP.
  • the time at which the beacon frame is sent not the time at which the first AP sends the beacon frame.
  • the first STA adjusts the subsequent wake-up time to a time synchronized with the second AP transmitting the beacon frame, so that the first STA can receive the beacon frame sent by the second AP.
  • the wake-up time of the first STA in the mode 1 is synchronized with the beacon frame sending time of the second AP, and the set of the wake-up time of the first STA is the sub-beacon frame transmission time set of the second AP.
  • Set, two sets can be equal, but not necessarily equal.
  • the wake-up frame includes a beacon frame, the beacon frame including a field indicating that the first STA remains awake in the power saving mode.
  • the first STA in the power saving mode enters the awake state from the doze state, receives the beacon frame sent by the connected first AP, and if the beacon frame does not include a field that keeps the first STA awake, the first The STA switches back from the awake state to the doze state. If the beacon frame includes the field that causes the first STA to remain awake, the first STA remains awake after receiving the beacon frame.
  • the field in the beacon frame that wakes up the first STA may be a delivery traffic indication message (DTIM) field.
  • DTIM delivery traffic indication message
  • the first AP may notify the first STA that the first STA is located in the DTIM field of the beacon frame sent to the first STA after the data frame or the management frame is cached for the first STA.
  • the buffer unit (English: bufferable unit, BU) needs to be obtained.
  • the first STA in the power saving mode turns on the radio frequency module during the waking time, receives the beacon frame, and maintains the awake state according to the DTIM field in the beacon frame. And sending a polling frame to the first AP, after receiving the poll frame, the first AP sends the data packet buffered by the first STA to the first STA.
  • the first AP when the first STA in the power saving mode needs to be switched to the second AP, the first AP is still in the first STA even if the first AP does not cache the data frame or the management frame for the first STA.
  • Adding a field in the transmitted beacon frame that keeps the first STA awake state for example, a DTIM field that sets the number of bits corresponding to the first STA, so that the first AP remains awake, thereby enabling it to receive the second The beacon frame sent by the AP.
  • the first STA after receiving the third beacon frame sent by the first AP, the first STA sends a poll frame to the first AP, and after receiving the poll frame, the first AP does not send the cacheable unit BU to the first STA. .
  • the first STA will remain awake until the first STA receives the cacheable unit for the poll frame transmission until the first AP receives the cacheable unit sent by the first frame or the first STA. The arrival of the frame transmission time.
  • the mode 3 is different from the foregoing mode 2 in that the beacon frame sent by the first AP to the first STA includes a field indicating that the first STA switches from the power saving mode to the active mode.
  • mode 2 there are two cases between mode 2 and mode 3:
  • the beacon frame sent by the first AP to the first STA in the mode 2 includes a field A, where the field A is used to indicate that the first STA remains awake; and in the mode 3, the first AP sends the message to the first STA.
  • a field B is included in the beacon frame, and the field B is used to instruct the first STA to switch from the power saving mode to the active mode. Among them, field A and field B are two different fields.
  • the beacon frame sent by the first AP to the first STA includes the field A.
  • the first AP is agreed with the first STA, and the field A is used to indicate the first The STA remains awake.
  • Mode 3 The beacon frame sent by the AP to the first STA also includes the field A.
  • the first AP is in agreement with the first STA, and the field A is used to indicate that the first STA is in the power saving mode. Switch to active mode.
  • the first STA after receiving the beacon frame of the DTMI position 1, the first STA does not exit the power saving mode and remains awake; and in another possible implementation, the first STA receives After the beacon frame of the DTMI bit is set, the record of the power-saving mode is sent to the connected AP, and the power-saving mode is exited, and the active mode is entered.
  • the radio module of the first STA All are in working state, and can receive the beacon frame sent by the second AP based on the first BSSID.
  • Mode 4 in combination with mode 2, after the first AP sends a beacon frame indicating that the first STA remains awake to the first STA, sending, by the first STA, at least one data frame, where the data frame includes indicating that the first STA continues A field that remains awake.
  • the so-called data frame may be a data frame containing transmission data, or may be an empty data frame not including transmission data.
  • the first STA after receiving the third beacon frame sent by the first AP, the first STA sends a poll frame to the first AP, and after receiving the poll frame, the first AP sends at least one data frame to the first STA (including the null In the case of a data frame, wherein the "More Data" field of each of the at least one data frame is set to 1, indicating that the first STA continues to remain awake and continues to send a poll frame to the first AP, while the first AP continues The "More Data" field is set to 1 in the data frame sent to the first STA. In this way, the first STA will remain awake until the first AP does not set the "More Data” field in the data frame sent to the first STA.
  • Mode 5 In combination with mode 3, the first AP sends at least one data frame to the first STA after transmitting, to the first STA, a beacon frame indicating that the first STA switches from the power saving mode to the active mode.
  • the first STA may be maintained in the active mode for a period of time, which may be determined by the first STA, the first AP, or both. If the duration of the keep-alive mode is short, the first STA may switch from the active mode to the power-saving mode before the beacon frame transmission time of the second AP arrives, causing the first STA to fail to receive the second AP based on the first BSSID.
  • the beacon frame sent.
  • the first AP after the first AP sends a beacon frame for instructing the first STA to switch from the power saving mode to the active mode, the first AP also sends one to the first STA or Multiple data frames (including the case of empty data frames). After receiving each data frame, the first STA will remain in the active mode for a period of time, so if the data frame is not transmitted continuously, the first STA will remain in the active mode.
  • the power saving policy of the first STA is set to: when the first STA does not perform data transmission and reception for more than the duration S in the active mode, the active mode is switched from the active mode to the power saving mode.
  • the first STA receives, at time T1, a beacon frame that is sent by the first AP and includes a field for indicating that the first STA switches from the power saving mode to the active mode, and switches from the power saving mode to the active mode, if the first STA does not When data is transmitted or received, the power saving mode is entered again at (T1+S).
  • the first AP sends a null data frame to the first STA at the time (T1+Sm) before the (T1+S) time, and the first STA receives the null data. After the frame, the active mode will remain in the (T1+Sm) to (T1+2S-m) time period.
  • the first AP sends a null data frame (which may also be a data frame containing the transmission data) to the first STA again, so that the first STA continues to remain in the active mode.
  • the first AP by sending the third beacon frame to the first STA, sends a plurality of data frames to the first STA, so that the first STA maintains the awake state, thereby enabling the first STA to enable the first STA.
  • any two or more of the above manners 1 to 5 may be used in combination, for example, the first AP sends both the first STA and the second AP to the second AP.
  • the time-synchronized beacon frame sends a plurality of empty data frames to the first STA, and the "More Data" field in the empty data frames is set to 1, indicating that the first STA remains awake.
  • the wakeup time of the first STA in the foregoing manner 1 is synchronized with the beacon frame transmission time of the second AP, and the set of the wakeup time of the first STA is a subset of the beacon frame transmission time set of the second AP.
  • the two sets can be equal, but not necessarily equal.
  • Step 103 The first AP sends a handover instruction to the second AP, where the handover instruction is used to instruct the second AP to provide a service for the first STA based on the first BSSID.
  • the handover instruction includes an identifier of the first STA, and is used to indicate that the second AP provides a service for the first STA.
  • the first AP or the roaming controller does not immediately notify the second AP of the mapping between the first STA and the first BSSID after allocating the first BSSID to the first STA, the first AP sends the second AP to the second AP.
  • the handover instruction may further include a first BSSID allocated for the first STA, to enable the second AP to provide service for the first STA based on the first BSSID.
  • Step 104 The first STA receives the wake-up frame, and maintains the awake state at the beacon frame sending time of the second AP.
  • step 104 the first STA maintains the awake state in the beacon frame transmission time of the second AP, which means that the first STA remains awake at any (or any number of) beacon frame transmission times of the second AP. status.
  • Step 105 The second AP receives the handover instruction, and provides a service for the first STA based on the first BSSID allocated for the first STA.
  • the second AP is responsible for providing services for the first STA.
  • the so-called providing service includes: the second AP sending a beacon frame to the first STA based on the first BSSID, so that the first STA maintains a link with the second AP according to the beacon frame.
  • the second AP obtains the mapping between the first STA and the first BSSID, and may be implemented as follows: after the first BSSID is allocated to the first STA, the roaming controller sends the mapping between the first STA and the first BSSID to the ESS. Each AP, the second AP, in turn, can learn the first BSSID assigned by the roaming controller to the first STA. Alternatively, after receiving the handover instruction sent by the first AP, the second AP requests the roaming controller to send the BSSID corresponding to the first STA to the second AP, and the second AP can further learn the first BSSID. Or, when the first AP sends the handover instruction to the second AP, the first AP sends the first BSSID corresponding to the first STA to the second AP.
  • Step 106 The first AP stops providing services for the first STA.
  • the first AP stops serving the first STA, and the first AP does not use the first STA as the STA that needs to provide the normal WLAN service, for example, the first STA is no longer sent based on the BSSID. Frame, forward data, cache data, and more.
  • the first AP may continue to send a wake-up frame to the first STA after the step 102 and the step 103 are performed, indicating the first STA.
  • the beacon frame transmission time of the second AP remains awake.
  • the first AP The normal WLAN service is not provided to the first STA. Therefore, the first AP stops serving the first STA in step 106, and the first AP continues to send the wake-up frame to the first STA after performing step 102 and step 103. conflict.
  • the IP address used by the STA does not change before and after the AP switching. From the perspective of the STA, the BSSID of the connected AP does not change, and the data is still sent and received by the same IP address. Therefore, in the embodiment of the present invention, the STA does not perceive that the AP has switched.
  • the first STA in the ESS is assigned a unique first BSSID, and the AP connected to the first STA in the ESS provides a service for the first STA based on the first BSSID.
  • the first AP determines that the connected first STA reaches the roaming threshold, and the first STA is in the power saving mode, the first AP sends a handover instruction to the second AP that the first STA needs to connect, indicating that the second AP is based on the first BSSID.
  • the first STA provides a service.
  • the first AP sends a wake-up frame to the first STA, indicating that the first STA keeps the awake state at the time of sending the beacon frame of the second AP, thereby enabling the first STA to receive the second AP.
  • the transmitted beacon frame can maintain a link with the second AP according to the beacon frame sent by the second AP, and ensure that the first STA can accept the service provided by the second AP.
  • the process of the STA connected to the AP is performed by the AP. Therefore, even if the first STA is in the power saving mode and the radio module is disabled, the AP switching of the first STA can be performed normally, and the first STA is guaranteed to be opened.
  • the AP can communicate with the AP in the ESS, and the communication quality of the first STA is good because the first STA can switch the AP with the better connection signal.
  • the first AP caches data for the first STA
  • the first AP also hands over the data cached by the first STA to the second AP, and the second AP sends the cached data to the first STA to avoid data. Lost.
  • step 102 the following steps are further included:
  • Step 107 The first AP determines whether the beacon frame transmission time of the second AP is synchronized with the beacon frame transmission time of the second AP, and if yes, skips step 102 and directly performs step 103. If not, step 102 is performed. Also perform step 103.
  • the first STA after determining that the first STA needs to switch the first STA to the second AP, it is first determined whether the time that the second AP sends the beacon frame with the first AP is synchronized, and if the synchronization is performed, the first AP can receive the first AP.
  • the first STA of the beacon frame can receive the beacon frame sent by the second AP, and the first AP can directly perform step 103 without performing step 102.
  • the first AP performs step 102, so that the wake-up time of the first STA is the time when the second AP sends the beacon frame.
  • the first AP determines whether the time at which the first AP and the second AP send the beacon frame are synchronized. When the two are synchronized, the first STA does not need to send the wake-up frame to adjust the time in which the first AP is in the awake state. When the two are not synchronized, the wake-up frame is sent to the first STA, which can ensure that the first STA can receive the beacon frame sent by the second AP, and can also send the beacon frame in the first AP and the second AP. Reduce the transmission of wake-up frames during time synchronization, saving transmission resources.
  • the second AP after determining that the connection with the first STA is successful, the second AP sends a handover success message to the first AP, so that the first STA knows that the first STA has successfully switched to the second AP, and After receiving the handover success message, the second AP may stop sending the wake-up frame in step 102 to the first STA.
  • the manner in which the second AP determines that the connection with the first STA is successful includes:
  • the second AP sends a frame that needs the first STA to return the message to the first STA, the first STA returns a message to the second AP, and the second AP receives the return message, and the first STA is determined to be successful. establish connection.
  • the frame that needs to be returned by the first STA may be implemented in multiple manners.
  • the frame is a data frame
  • the first STA after receiving the data frame sent by the second AP, the first STA returns an ACK frame to the second AP.
  • the ACK sent by the first STA to the second AP The frame includes the identifier of the second AP, and the second AP provides the service for the first STA based on the first BSSID, and the second AP only uses the first BSSID as its own BSSID when the first STA is served. Therefore, the second The AP determines, according to the first BSSID in the received ACK frame, that the ACK frame is sent by the first STA, and further determines that the connection with the first STA has been successfully established.
  • the first STA may maintain a short-term awake state after receiving the beacon frame sent by the second AP, and therefore, the second AP may go to the first time after sending the beacon frame to the first STA.
  • a STA sends the frame for determining whether the second AP determines whether the first STA is successfully connected, so that the first STA can receive the frame, and returns a message according to the frame.
  • the first STA in the power-saving mode may send a packet to the connected AP.
  • the second AP may determine to successfully establish a connection with the first STA.
  • the first STA when the first STA is in the power-saving mode, the first STA sends a record of the power-saving mode to the connected AP, and the second AP receives the packet that includes the record to determine that the connection is successfully established with the first STA.
  • the second AP can determine to establish a connection with the first STA according to the received message sent by the first STA, and send a handover success message to the first AP, so that the first STA knows that the first STA has successfully switched to Second AP.
  • the first AP may send a wake-up frame to the first STA before receiving the handover success message, to ensure that the first STA can receive the beacon frame sent by the second AP, and after the first AP receives the wake-up frame, stop the The first STA sends the wake-up frame, which not only saves transmission resources, but also avoids confusion of the response of the first STA.
  • the embodiment of the present invention further provides an apparatus 200 for switching an AP, where the apparatus 200 functions as an AP in a WLAN.
  • 4 is a schematic structural diagram of an apparatus 200.
  • the device 200 includes a processor 201 and a transceiver 202.
  • the processor 201 is configured to: determine that the STA connected to the device 200 is in a power saving mode, where the device 200 provides a service for the STA according to the BSSID corresponding to the STA, and the BSSID and the corresponding location of the STA Determining, by the STA, that the BSSIDs of the other STAs in the same ESS are different; determining that the second AP in the ESS is the target AP, the target AP is the AP that is connected after the STA is switched, and generating a wake-up frame, The awake frame is used to indicate that the STA is in an awake state when the second AP sends a beacon frame based on the BSSID corresponding to the STA; generating a handover instruction, where the handover instruction is used to indicate that the second AP is based on the The BSSID corresponding to the STA provides a service for the STA;
  • the transceiver 202 is coupled to the processor 201, configured to: send the wake-up frame to the STA; and send the handover instruction to the second AP.
  • the processor 201 and the transceiver 202 may be two separate components, and the two are connected by a bus.
  • the processor 201 and the transceiver 202 may be integrated, which is not limited in the embodiment of the present invention.
  • the processor 201 can be a processing element or a collective name of a plurality of processing elements.
  • the processor can be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • the transceiver 202 includes an antenna and may also include a radio frequency module coupled to the antenna.
  • the transceiver 202 when the device 200 communicates with the second AP through a wired network (such as a fiber network or the like), the transceiver 202 includes a data communication type of a wired communication type, such as an Ethernet, in addition to the foregoing radio frequency module and the antenna. Data transceiver.
  • the processor 201 before being used to generate the wake-up frame, is further configured to: determine that the beacon frame transmission time of the device 200 is not synchronized with the beacon frame transmission time of the second AP.
  • the wake-up frame includes a first beacon frame
  • the first beacon frame includes a field for updating the STA wake-up time
  • the field for updating the STA wake-up time And configured to instruct the STA to adjust an awake time to a time when the second AP sends a beacon frame based on a BSSID corresponding to the STA.
  • the transceiver 202 is further configured to: receive a second beacon frame sent by the second AP;
  • the processor 201 is further configured to: determine a time when the transceiver receives the second beacon frame, and according to a beacon frame transmission time of the device 200, and the transceiver receives the second beacon frame The time determines a time interval before the beacon frame transmission time of the device 200 and the beacon frame transmission time of the second AP; and determines a field for updating the STA wake-up time according to the time interval.
  • the wake-up frame includes a third beacon frame, the third beacon frame including a field indicating that the STA remains awake.
  • the wake-up frame further includes: at least one data frame sent after the third beacon frame, the at least one data frame is used to keep the STA in an awake state.
  • the at least one data frame includes a null data frame.
  • the device 200 further includes a memory 203, which can be used to: store data sent by the connected STA, store data sent by other network elements to the STA, and store the STA's status record (if it is in the province). Electrical mode), storing instructions sent by other network elements to device 200, and the like.
  • a memory 203 which can be used to: store data sent by the connected STA, store data sent by other network elements to the STA, and store the STA's status record (if it is in the province). Electrical mode), storing instructions sent by other network elements to device 200, and the like.
  • the memory 203 can also store executable instructions, and the processor 201 reads and runs the executable instructions in the memory 203 to implement the functions of the device 200 in the embodiment of the present invention.
  • the memory 203 may be a storage element or a collective name of a plurality of storage elements, and is used to store executable program code or parameters, data, and the like required for the operation of the device. And the above memory 203 may include random access memory (RAM), may also include non-volatile memory (NVM), and the like.
  • RAM random access memory
  • NVM non-volatile memory
  • the memory 203 and the Ethernet data transceiver in FIG. 4 are represented by dashed boxes, indicating that they are not necessary modules for the AP to implement its functions in the embodiment of the present invention.
  • the AP also has functions beyond those described in the embodiments of the present invention that need to be implemented based on the memory 203 and/or the Ethernet data transceiver.
  • the embodiment of the invention further provides a device for switching an AP, which can be used as an AP in a WLAN.
  • the device includes a processor and a transceiver.
  • the transceiver is configured to receive a handover instruction sent by the first AP, where the handover instruction includes an identifier of the first STA.
  • the processor is coupled to the transceiver, and is configured to: control the AP to provide service for the first STA based on the first BSSID generated for the first STA.
  • the transceiver is further configured to: receive any message sent by the first STA;
  • the processor is further configured to: after the transceiver receives any message sent by the first STA, generate a handover success message;
  • the transceiver is further configured to: send a handover success message to the first STA.
  • the processor is further configured to: after the transceiver receives the handover instruction, generate a frame that requires the first STA to return a message;
  • the transceiver is further configured to: send, to the first AP, the frame that needs the first STA to return a message.
  • the embodiment of the invention further provides a communication system, which includes multiple APs and multiple STAs.
  • the first AP of the multiple APs is configured to: determine that the first STA connected to the first AP is in a power saving mode, and determine that the first STA needs to switch to the second AP in the same ESS; and STA sends wake-up frame, wake-up frame And configured to: send, by the first STA, a beacon frame time to the second AP, and send a handover instruction, where the handover instruction is used to enable the second AP to be the first STA based on the first BSSID allocated for the first STA Provide services;
  • the first STA of the multiple STAs is configured to: receive the wake-up frame, and keep the awake state according to the wake-up frame when the second AP sends the beacon frame;
  • the second AP of the multiple APs is configured to: receive a handover instruction sent by the first AP, where the handover instruction includes an identifier of the first STA; and provide a service for the first STA based on the first BSSID.
  • the first AP before the first AP sends the wake-up frame to the STA, it is determined that the beacon frame transmission time of the UE is not synchronized with the beacon frame transmission time of the second AP.
  • the wake-up frame includes a first beacon frame
  • the first beacon frame includes a field for updating the first STA wake-up time
  • the field is used to indicate that the first STA will wake up
  • the time is adjusted to a time when the second AP sends a beacon frame based on the first BSSID corresponding to the first STA.
  • the first AP determines the time of receiving the second beacon frame sent by the second AP before sending the wake-up frame to the first STA; sending time according to the beacon frame of the self and determining the first The time of the second beacon frame sent by the second AP determines a time interval before the beacon frame transmission time of the first AP and the beacon frame transmission time of the second AP; determining, according to the time interval, the The field of the first STA wakeup time is updated.
  • the wake-up frame further includes: at least one data frame transmitted after the third beacon frame, the at least one data frame being used to keep the first STA in an awake state.
  • the at least one data frame includes a null data frame.
  • the second AP is further configured to: after receiving any message sent by the first STA, send a handover success message to the first STA;
  • the first AP is further configured to: receive a handover success message, and stop sending the wake-up frame to the first STA.
  • the communication system further includes a roaming controller, configured to allocate a unique BSSID to each STA in the same ESS, so that the AP connected to each STA serves the STA based on the BSSID allocated for the STA. .
  • the first AP and the second AP are further configured to: report, to the roaming controller, a monitoring value of the signal indicator of the first STA;
  • the roaming controller is further configured to: determine, according to the monitoring value, that the first STA reaches the roaming threshold, and determine that the second AP is the target AP, and send a handover triggering instruction to the first AP;
  • the first AP is configured to: determine that the first STA reaches the roaming threshold, and determine that the second AP is the target AP, including: receiving the handover triggering instruction, determining, according to the handover triggering instruction, that the first STA reaches the roaming threshold, and determining that the second AP is the target AP.
  • the embodiment of the invention further provides an apparatus for switching an AP in a WLAN, where the WLAN includes multiple APs and multiple STAs.
  • the apparatus includes:
  • the first determining module 301 is configured to determine that the STA connected to the device is in a power saving mode, where the device provides a service for the STA based on a BSSID corresponding to the STA, and the BSSID and the corresponding to the STA The BSSID corresponding to any STA of the STA in the same ESS is different;
  • the second determining module 302 is configured to determine that the second AP in the ESS is a target AP, and the target AP is an AP that is connected after the STA is switched;
  • the first sending module 303 is configured to send a wake-up frame to the STA, where the wake-up frame is used to indicate that the STA is in an awake state when the second AP sends a beacon frame based on the BSSID corresponding to the STA;
  • the second sending module 304 is configured to send a handover instruction to the second AP, where the handover instruction is used to indicate that the second AP provides a service for the STA based on a BSSID corresponding to the STA;
  • the stop service module 305 is configured to stop providing services for the STA after the second sending module sends the switching instruction.
  • the wake-up frame includes a first beacon frame
  • the first beacon frame includes a field for updating the STA wake-up time
  • the field for updating the STA wake-up time And configured to instruct the STA to adjust an awake time to a time when the second AP sends a beacon frame based on a BSSID corresponding to the STA.
  • the device further includes:
  • the third determining module 306 is configured to determine, before the first sending module sends the wake-up frame, a time for receiving the second beacon frame sent by the second AP, and send the time according to the beacon frame of the The time at which the second beacon frame is received determines a time interval before a beacon frame transmission time of the apparatus and a beacon frame transmission time of the second AP; and determining the use according to the time interval.
  • the field for updating the STA wakeup time is configured to determine, before the first sending module sends the wake-up frame, a time for receiving the second beacon frame sent by the second AP, and send the time according to the beacon frame of the The time at which the second beacon frame is received determines a time interval before a beacon frame transmission time of the apparatus and a beacon frame transmission time of the second AP; and determining the use according to the time interval.
  • the field for updating the STA wakeup time is configured to determine, before the first sending module sends the wake-up frame, a time for receiving the second beacon frame sent by the second AP
  • the wake-up frame includes a third beacon frame, the third beacon frame including a field indicating that the STA remains awake.
  • the wake-up frame further includes: at least one data frame sent after the third beacon frame, the at least one data frame is used to keep the STA in an awake state.
  • the at least one data frame includes a null data frame.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer readable storage medium (including but not limited to magnetic memory, optical memory, etc.) including program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a method and an apparatus for switching an access point (AP) in a wireless local area network, so as to enable a STA in power save mode to perform AP switching. The method comprises: a first AP determining that a STA connected to the first AP is in power save mode, wherein the first AP provides, based on a BSSID corresponding to the STA, a service to the STA, the BSSID corresponding to the STA being different from BSSIDs corresponding to any other STAs in the same ESS as the STA; the first AP determining a second AP in the same ESS to be a target AP connected after the STA is switched; the first AP sending a wake-up frame to the STA, wherein the wake-up frame is used to instruct the STA to be in a non-sleep state when the second AP sends a beacon frame based on the BSSID corresponding to the STA; and the first AP sending a switching instruction to the second AP, wherein the switching instruction is used to instruct the second AP to provide, based on the BSSID corresponding to the STA, a service for the STA.

Description

一种无线局域网中切换接入点的方法及设备Method and device for switching access points in wireless local area network
本申请要求于2016年4月29日提交中国专利局、申请号为201610289641.2、发明名称为“一种无线局域网中切换接入点的方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on April 29, 2016, the Chinese Patent Office, the application number is 201610289641.2, and the invention is entitled "Method and Apparatus for Switching Access Points in a Wireless Local Area Network", the entire contents of which are The citations are incorporated herein by reference.
技术领域Technical field
本申请涉及通信技术领域,特别涉及一种无线局域网WLAN中切换接入点AP的方法及设备。The present application relates to the field of communications technologies, and in particular, to a method and device for switching an access point AP in a wireless local area network (WLAN).
背景技术Background technique
在无线局域网(英文:wireless local area networks,WLAN)系统中,终端需要与一个接入点(英文:access point,AP)相连接,并通过该AP进行数据收发。在通信过程中,终端与当前连接的AP之间的信号可能会变差,例如,在终端与当前连接的第一AP之间的距离变远时,它们之间的信号变差。当终端与当前连接的第一AP之间的信号质量低于阈值时,终端将向信号较佳的第二AP发起关联请求,从与该第一AP连接切换至与第二AP连接,上述过程可以称为终端的漫游。In a wireless local area network (WLAN) system, a terminal needs to be connected to an access point (AP), and data is transmitted and received through the AP. During communication, the signal between the terminal and the currently connected AP may be degraded. For example, when the distance between the terminal and the currently connected first AP becomes longer, the signal between them becomes worse. When the signal quality between the terminal and the currently connected first AP is lower than the threshold, the terminal initiates an association request to the second AP with better signal, and switches from connecting with the first AP to connecting with the second AP. It can be called roaming of the terminal.
终端通常会在没有数据收发时进入省电模式(英文:power save mode),进入省电模式后,终端只是周期性地打开射频模块以收发数据。在终端的射频模块关闭期间,终端无法主动发起漫游。而在终端打开射频模块时,终端与原连接的AP的链路可能已经劣化到无法正常通信,终端只能重新与WLAN中的AP进行关联,不仅会耽误终端的通信需求,而且在原连接的AP为该终端缓存有数据时,STA也将无法收到这些数据,造成数据丢失。The terminal usually enters the power save mode when there is no data to send and receive. After entering the power save mode, the terminal only periodically turns on the RF module to send and receive data. The terminal cannot initiate roaming actively during the shutdown of the radio module of the terminal. When the terminal opens the radio module, the link between the terminal and the original AP may be degraded to be unable to communicate normally. The terminal can only re-associate with the AP in the WLAN, which not only delays the communication needs of the terminal, but also connects to the original AP. When there is data cached for the terminal, the STA will also be unable to receive the data, resulting in data loss.
发明内容Summary of the invention
本申请提供一种无线局域网中切换接入点的方法及设备,用于使处于省电模式的终端能够成功进行AP切换。The present invention provides a method and a device for switching an access point in a wireless local area network, so that the terminal in the power saving mode can successfully perform AP switching.
第一方面,本申请提供一种WLAN中切换AP的方法,该方法应用的WLAN系统中,扩展服务集合(英文:extended service set,ESS)中的每个STA被分配一个基本服务集标识符(英文:basic service set identifier,BSSID),且同一ESS中的不同STA被分配的BSSID不同,ESS中AP基于为STA分配的BSSID为STA提供服务。第一AP在确定自己连接的STA处于省电模式且该处于省电模式的STA需要切换至同一ESS中的第二AP后,一方面向该STA发送唤醒帧,指示该STA在所述第二AP基于为该STA分配的BSSID发送信标帧时处于苏醒状态。另一方面,第一AP向第二AP发送切换指令,指示第二AP基于为该STA分配的BSSID为该STA提供服务。第一AP在向该STA发送该唤醒帧以及向第二AP发送该切换指令之后,停止为该STA提供服务。In a first aspect, the present application provides a method for switching an AP in a WLAN. In the WLAN system applied by the method, each STA in an extended service set (ESS) is assigned a basic service set identifier ( English: basic service set identifier (BSSID), and different STAs in the same ESS are assigned different BSSIDs. The AP in the ESS provides services for the STA based on the BSSID assigned to the STA. After determining that the STA connected to the STA is in the power saving mode and the STA in the power saving mode needs to switch to the second AP in the same ESS, the first AP sends a wakeup frame to the STA, indicating that the STA is in the second. The AP is in an awake state when transmitting a beacon frame based on the BSSID assigned to the STA. On the other hand, the first AP sends a handover instruction to the second AP, instructing the second AP to provide the STA with the BSSID allocated for the STA. After the first AP sends the wake-up frame to the STA and sends the handover instruction to the second AP, the first AP stops serving the STA.
上述STA所连接AP发生切换的过程由AP执行,因此,即使在该STA处于省电模式且关闭射频模块的情况下,该STA的AP切换也可以正常进行,保证该STA在打开射频模块后, 能够通过ESS中的AP进行通信,且由于STA能够切换连接信号较佳的AP,STA的通信质量佳The process of the AP connected to the STA is performed by the AP. Therefore, even if the STA is in the power-saving mode and the radio module is disabled, the AP can perform the AP handover normally. The communication can be performed through the AP in the ESS, and the STA has good communication quality because the STA can switch the AP with the better connection signal.
在一个可选的实现中,第一AP在确定该STA处于省电模式以及该STA需要与第二AP连接后,第一AP先判断自身的信标帧发送时间与第二AP的信标帧发送时间是否同步,若二者同步,则第一AP可以省去向该STA发送唤醒帧的步骤,直接向第二AP发送切换指令。在第一AP的信标帧发送时间与第二AP的信标帧发送时间不同步的情况下,第一AP既向该STA发送唤醒帧,又向第二AP发送切换指令,保证该STA在第二AP基于为该STA分配的BSSID发送信标帧时处于苏醒状态,使得该STA能够接收第二AP发送的信标帧。本实现能够在第一AP与第二AP发送信标帧的时间同步时减少唤醒帧的发送,节约传输资源以及减少AP切换的耗时。In an optional implementation, after determining that the STA is in the power saving mode and the STA needs to be connected to the second AP, the first AP first determines its own beacon frame transmission time and the beacon frame of the second AP. Whether the sending time is synchronized, if the two are synchronized, the first AP may save the step of sending a wake-up frame to the STA, and directly send a switching instruction to the second AP. When the beacon frame transmission time of the first AP is not synchronized with the beacon frame transmission time of the second AP, the first AP sends a wakeup frame to the STA, and sends a handover instruction to the second AP to ensure that the STA is in the The second AP is in an awake state when transmitting the beacon frame based on the BSSID allocated to the STA, so that the STA can receive the beacon frame transmitted by the second AP. The present implementation can reduce the transmission of the wake-up frame when the first AP and the second AP transmit the beacon frame, save the transmission resources, and reduce the time-consuming of the AP handover.
在一个可选的实现中,该唤醒帧包括第一信标帧,该第一信标帧包括用于指示该STA将苏醒时间调整至第二AP基于为该STA分配的BSSID发送信标帧的时间的字段。例如,第一信标帧中包括的时间戳字段用于指示该STA将本地时间与第二AP的时间同步,这样,该STA的苏醒时间与第二AP的信标帧发送时间同步,使得该STA能够接收到第二AP基于为该STA分配的BSSID向该STA发送的信标帧。In an optional implementation, the wake-up frame includes a first beacon frame, where the first beacon frame includes an indication that the STA adjusts the wake-up time to the second AP, based on the BSSID allocated for the STA, to send the beacon frame. The field of time. For example, the timestamp field included in the first beacon frame is used to indicate that the STA synchronizes the local time with the time of the second AP, such that the wakeup time of the STA is synchronized with the beacon frame transmission time of the second AP, so that the The STA can receive a beacon frame transmitted by the second AP to the STA based on the BSSID assigned to the STA.
在一个可选的实现中,第一AP在向该STA发送包括用于指示该STA将苏醒时间调整至第二AP基于为该STA分配的BSSID发送信标帧的时间的字段的唤醒帧之前,先确定第一AP的信标帧发送时间与所述第二AP的信标帧发送时间之前的时间间隔,该时间间隔的确定方式可以为:所述第一AP确定接收到第二AP发送的第二信标帧的时间;所述第一AP根据自身的信标帧发送时间以及接收到该第二信标帧的时间确定第一AP的信标帧发送时间与第二AP的信标帧发送时间之前的时间间隔。在确定该时间间隔后,第一AP根据该时间间隔确定该用于更新STA苏醒时间的字段。In an optional implementation, the first AP sends a wake-up frame to the STA, including a field for indicating that the STA adjusts the wake-up time to a time when the second AP transmits a beacon frame based on the BSSID allocated for the STA, Determining, by the first AP, the second AP to receive the second AP, before determining the time interval between the beacon frame sending time of the first AP and the beacon frame sending time of the second AP. a time of the second beacon frame; the first AP determines a beacon frame transmission time of the first AP and a beacon frame of the second AP according to the time of the beacon frame transmission of the first AP and the time of receiving the second beacon frame The time interval before the send time. After determining the time interval, the first AP determines the field for updating the STA wake-up time according to the time interval.
在一个可选的实现中,该唤醒帧包括第三信标帧,该第三信标帧包括指示STA保持苏醒状态的字段。其中,STA处于苏醒状态可以是该STA处于激活模式,或者该STA处于省电模式并进入了(例如根据侦听间隔进入)苏醒状态。处于苏醒状态的STA打开其射频模块。例如,第三信标帧中的待传流量指示消息(英文:delivery traffic indication message,DTIM)字段置1,在一些实施方式中,AP与STA约定,STA接收DTIM字段置1的信标帧后,从省电模式切换至激活模式。而在另一些实施方式中,AP与STA约定,STA接收DTIM字段置1的信标帧后,继续处于省电模式,但保持在苏醒状态。In an optional implementation, the wake-up frame includes a third beacon frame including a field indicating that the STA remains awake. The STA is in the awake state may be that the STA is in the active mode, or the STA is in the power saving mode and enters (for example, enters according to the listening interval) the awake state. The STA in the awake state turns on its RF module. For example, the transmit traffic indication message (DTIM) field in the third beacon frame is set to 1. In some embodiments, the AP and the STA agree that the STA receives the beacon frame with the DTIM field set to 1. , switch from power saving mode to active mode. In other embodiments, the AP and the STA agree that after receiving the beacon frame with the DTIM field set to 1, the STA continues to be in the power saving mode but remains in the awake state.
在一个可选的实现中,STA接收到第三信标帧,第三信标帧中DTIM字段置1,该STA向第一AP发送竞选(英文:poll)帧,第一AP接收该poll帧,但是不向该STA发送数据,则该STA将一直保持苏醒状态,直至接收到连接AP发送的数据或者信标帧。In an optional implementation, the STA receives the third beacon frame, and the DTIM field is set to 1 in the third beacon frame, the STA sends an election (English: poll) frame to the first AP, and the first AP receives the poll frame. However, if the data is not sent to the STA, the STA will remain awake until it receives the data or beacon frame transmitted by the connected AP.
在一个可选的实现中,第一AP在向该STA发送指示该STA处于苏醒状态的第三信标帧后,向该STA发送1个或多个数据帧,该数据帧可以为不包含传输数据的空(英文:null)数据帧。例如,在STA处于省电模式下的苏醒状态时,第一AP在接收该STA发送的poll帧,向该STA发送1个或多个数据帧,每个数据帧的“More Data”字段置1,该STA接收该数据帧之后,保持苏醒状态,再次向第一AP发送poll帧。又例如,在该STA处于激活模式时,第一AP向该STA发送数据帧,该STA接收到数据帧后,将重新进行进入省电模式的倒计时,这样可以使该STA保持激活模式。 In an optional implementation, after the first AP sends a third beacon frame indicating that the STA is in the awake state, the first AP sends one or more data frames to the STA, and the data frame may not include the transmission. Empty (English: null) data frame for data. For example, when the STA is in the awake state in the power saving mode, the first AP receives the poll frame sent by the STA, and sends one or more data frames to the STA, and the “More Data” field of each data frame is set to 1. After receiving the data frame, the STA keeps waking up and sends a poll frame to the first AP again. For another example, when the STA is in the active mode, the first AP sends a data frame to the STA, and after receiving the data frame, the STA will re-enter the countdown to the power saving mode, so that the STA can remain in the active mode.
在一个可选的实现中,第一AP在发送指示该STA处于苏醒状态的信标帧之后,向该STA发送的多个使得该STA维持苏醒状态数据帧中可以包括空数据帧。即使第一AP未缓存STA的数据帧,第一AP也可以向STA发送空数据帧,并且该空数据帧的“More Data”字段置1,指示第一AP缓存了STA的数据帧,以欺骗STA使其保持苏醒状态。In an optional implementation, after the first AP sends a beacon frame indicating that the STA is in the awake state, the multiple data frames sent to the STA that cause the STA to maintain the awake state may include a null data frame. Even if the first AP does not buffer the data frame of the STA, the first AP may send a null data frame to the STA, and the “More Data” field of the null data frame is set to 1, indicating that the first AP caches the data frame of the STA to deceive. The STA keeps it awake.
在一个可选的实现中,第二AP在确认与该STA连接成功后,向第一AP发送切换成功消息,第一AP接收该切换成功消息后,停止为该STA发送该唤醒帧。In an optional implementation, after confirming that the STA is successfully connected to the STA, the second AP sends a handover success message to the first AP, and after receiving the handover success message, the first AP stops sending the wake-up frame for the STA.
第二方面,本申请提供一种WLAN中切换AP的设备,该设备用于执行上述第一方面或第一方面的任意可能的实现中的方法。具体的,该设备包括用于执行上述第一方面或第一方面的任意可能的实现中的方法的模块。In a second aspect, the present application provides a device for switching an AP in a WLAN, the device being used to perform the method in any of the foregoing first aspect or any possible implementation of the first aspect. In particular, the apparatus comprises means for performing the method of any of the above-described first aspect or any of the possible implementations of the first aspect.
第三方面,本申请提供一种WLAN中切换AP的设备,该设备用于执行上述第一方面或第一方面的任意可能的实现中的方法。具体的,该设备包括处理器以及收发器,该处理器与收发器耦合。该收发器用于与WLAN中的其他网元进行通信,该处理器用于通过收发器执行上述第一方面或第一方面的任意可能的实现中的方法。In a third aspect, the application provides a device for switching an AP in a WLAN, the device being used to perform the method in any of the foregoing first aspect or any possible implementation of the first aspect. Specifically, the device includes a processor and a transceiver coupled to the transceiver. The transceiver is for communicating with other network elements in the WLAN for performing the method of any of the above first aspects or any of the possible implementations of the first aspect by a transceiver.
第四方面,本申请提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现中的方法的指令。In a fourth aspect, the present application provides a computer readable medium for storing a computer program comprising instructions for performing the method of the first aspect or any possible implementation of the first aspect.
本发明在上述各方面提供的实现的基础上,还可以进行进一步组合以提供更多实现。Further on the basis of the implementations provided by the above aspects, the invention may be further combined to provide further implementation.
附图说明DRAWINGS
为了更清楚地说明本申请中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. For ordinary technicians, other drawings can be obtained based on these drawings without paying for creative labor.
图1为本发明实施例中通信系统的一种可能实现方式的示意图;1 is a schematic diagram of a possible implementation manner of a communication system according to an embodiment of the present invention;
图2为本发明实施例中切换AP的方法的流程示意图;2 is a schematic flowchart of a method for switching an AP according to an embodiment of the present invention;
图3为本发明实施例中切换AP的方法的另一流程示意图;FIG. 3 is another schematic flowchart of a method for switching an AP according to an embodiment of the present disclosure;
图4为本发明实施例中一种WLAN中切换AP的设备的结构示意图;4 is a schematic structural diagram of an apparatus for switching an AP in a WLAN according to an embodiment of the present invention;
图5为本发明实施例中另一WLAN中切换AP的设备的结构示意图。FIG. 5 is a schematic structural diagram of an apparatus for switching an AP in another WLAN according to an embodiment of the present invention.
具体实施方式detailed description
下面通过附图以及具体实施例对本发明技术方案做详细的说明。本发明实施例以及实施例中的具体特征是对本发明技术方案的详细的说明,而不是对本发明技术方案的限定。在不冲突的情况下,本发明实施例以及实施例中的技术特征可以相互组合。The technical solutions of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. Specific features of the embodiments of the present invention and the embodiments are the detailed description of the technical solutions of the present invention, and are not intended to limit the technical solutions of the present invention. The technical features of the embodiments of the present invention and the embodiments may be combined with each other without conflict.
在WLAN通信中,STA需要与一个AP连接,由连接的AP负责为STA进行数据转发。在STA与当前连接的AP之间的信号较差时,STA需要切换至信号更好的AP,以保证STA的数据通信的正常进行。通常由STA在检测到与AP之间的链路劣化到一定程度后发起漫游,进行AP切换。In WLAN communication, the STA needs to be connected to an AP, and the connected AP is responsible for data forwarding for the STA. When the signal between the STA and the currently connected AP is poor, the STA needs to switch to the AP with better signal to ensure the normal data communication of the STA. Generally, the STA initiates roaming after detecting that the link between the AP and the AP is degraded to a certain extent, and performs AP handover.
但是,在STA进入省电模式之后,STA关闭射频模块,只是周期性地打开射频模块,以收发数据。在STA的射频模块关闭期间,STA无法主动发起漫游。而在STA打开射频模 块时,STA与原连接AP的链路可能已经劣化到无法正常通信,STA只能与WLAN中的AP重新进行关联,不仅会耽误STA的通信需求,而且在原连接的AP为该STA缓存有数据时,STA也将无法收到这些数据,造成数据丢失。However, after the STA enters the power saving mode, the STA turns off the radio frequency module, and only periodically turns on the radio frequency module to send and receive data. During the shutdown of the STA's RF module, the STA cannot initiate roaming. And the radio mode is turned on in the STA. In the case of a block, the link between the STA and the original connected AP may be degraded to be unable to communicate normally. The STA can only re-associate with the AP in the WLAN, which not only delays the communication requirement of the STA, but also caches data for the STA in the original connected AP. When the STA is also unable to receive the data, the data is lost.
为了解决处于省电模式的STA难以进行AP切换的问题,本发明实施例提供一种AP切换方法,在STA处于省电模式时,由AP来负责进行STA所连接AP的切换,这样,即使在STA关闭射频模块的情况下,STA所连接AP的切换仍然能够完成。In order to solve the problem that the STA in the power saving mode is difficult to perform the AP handover, the embodiment of the present invention provides an AP handover method. When the STA is in the power saving mode, the AP is responsible for performing the handover of the AP connected by the STA, so that even in the When the STA closes the radio module, the handover of the AP connected to the STA can still be completed.
在本发明实施例中,STA首次关联扩展服务集合(英文:extended service set,ESS)中的AP时,该STA会被分配一个基本服务集标识符(英文:basic service set identifier,BSSID),ESS内的任一与该STA相连接的AP基于该BSSID为该STA提供服务。即,ESS内的AP模拟以该STA被分配的BSSID为BSSID的AP,收发该STA的帧。也就是说ESS内的AP和该STA通信时以该BSSID为AP的无线(英文:radio)介质访问控制(英文:media access control,MAC)地址。由于不同AP为STA基于相同的BSSID提供服务,在连接STA的AP切换后,STA不会感知到AP切换。另一方面,ESS中的任意两个STA所分配的BSSID不同,这样可以避免STA在ESS中进行AP切换后出现报文转发混乱的情况。In the embodiment of the present invention, when the STA first associates an AP in an extended service set (ESS), the STA is assigned a basic service set identifier (BSSID), ESS. Any AP connected to the STA is serving the STA based on the BSSID. That is, the AP in the ESS simulates an AP that has the BSSID assigned to the STA as the BSSID, and transmits and receives the frame of the STA. That is to say, when the AP in the ESS communicates with the STA, the BSSID is the radio (radio) medium access control (MAC) address of the AP. Since the different APs provide services for the STAs based on the same BSSID, the STA does not perceive the AP handover after the APs that connect the STAs are switched. On the other hand, any two STAs in the ESS are assigned different BSSIDs, which can prevent the message forwarding confusion after the STA switches in the ESS.
其中,STA对应的BSSID的分配方式包括多种实现方式。例如,STA向ESS中的AP发起关联请求后,该接收到STA关联请求的AP为该STA分配BSSID,并将该BSSID告知ESS中的其他AP,以使该STA与ESS中的其他AP连接时,该STA所连接的AP能够基于为该STA分配的BSSID为该STA提供服务。又例如,在图1所示的通信系统中,STA向ESS中的AP发起关联请求后,WLAN中的漫游控制器为该STA分配BSSID,并通知该ESS中的AP基于为该STA分配的BSSID为该STA提供服务。The allocation manner of the BSSID corresponding to the STA includes multiple implementation manners. For example, after the STA initiates an association request to the AP in the ESS, the AP that receives the STA association request allocates a BSSID to the STA, and informs the other APs in the ESS to connect the STA to other APs in the ESS. The AP connected to the STA can provide services for the STA based on the BSSID assigned to the STA. For another example, in the communication system shown in FIG. 1, after the STA initiates an association request to the AP in the ESS, the roaming controller in the WLAN allocates a BSSID to the STA, and notifies the AP in the ESS to be based on the BSSID allocated for the STA. Serve the STA.
本发明实施例中,在WLAN包括上述漫游控制器时,漫游控制器可以有多种实现方式,例如,漫游控制器可以作为无线接入点的控制与配置(英文:Control And Provisioning of Wireless Access Points,CAPWAP)协议中的接入控制器(英文:Access Controller,AC),相应的,AP可以作为CAPWAP协议中的无线终止点(英文:Wireless Termination Point,WTP)。另外,漫游控制器可以通过一个独立设备实现,也可以通过多个分布式设备的集群实现。In the embodiment of the present invention, when the WLAN includes the foregoing roaming controller, the roaming controller may have multiple implementation manners, for example, the roaming controller may be used as a control and configuration of the wireless access point (English: Control And Provisioning of Wireless Access Points) Access Controller (AC) in the CAPWAP protocol. Correspondingly, the AP can be used as the wireless termination point (WTP) in the CAPWAP protocol. In addition, the roaming controller can be implemented by a single device or by a cluster of multiple distributed devices.
本发明实施例中,在STA达到漫游门限后,该STA连接的AP将该STA切换至同一ESS中的另一AP,本发明实施例中将该STA在连接的AP发生切换之后所连接的AP称为目标AP,指示该目标AP基于为该STA所分配的BSSID为该STA提供服务。In the embodiment of the present invention, after the STA reaches the roaming threshold, the AP connected to the STA switches the STA to another AP in the same ESS, and the AP connected to the STA after the connected AP is switched in the embodiment of the present invention. Referred to as the target AP, the target AP is instructed to provide services for the STA based on the BSSID assigned to the STA.
其中,可以由STA所连接的AP判断该STA是否达到漫游门限,也可以由图1所示的漫游控制器来判断STA是否达到漫游门限。具体的,与该STA连接的AP监测该STA的信号指标,例如,接收信号强度指示(英文:received signal strength indication,RSSI)、丢包率,等等。在STA连接的AP对STA的信号指标的监测值劣化到预设值时,即可确定该STA达到漫游门限。在由漫游控制器判断STA是否达到漫游门限时,该STA所连接的AP需要将对该STA的信号指标的监测值发送给漫游控制器。The AP connected to the STA can determine whether the STA reaches the roaming threshold, and the roaming controller shown in FIG. 1 can determine whether the STA reaches the roaming threshold. Specifically, the AP connected to the STA monitors the signal indicator of the STA, for example, received signal strength indication (RSSI), packet loss rate, and the like. When the monitored value of the STA's signal indicator is degraded to a preset value, the STA can determine that the STA reaches the roaming threshold. When the roaming controller determines whether the STA reaches the roaming threshold, the AP connected to the STA needs to send the monitoring value of the signal indicator of the STA to the roaming controller.
STA需要连接的该目标AP的确定方式可以为:同一ESS中没有与该STA连接的AP对该STA的信号指标进行监测,该STA连接的AP或者漫游控制器根据这些没有与STA连接的AP对该STA的信号指标的监测值,从这些没有与STA连接的AP中确定出该目标AP。例如,同一ESS中没有与该STA连接的AP将对该STA的信号指标的监测值发送给与该STA连接的AP 或漫游控制器,与该STA连接的AP或漫游控制器确定检测的信号指标最好的AP作为该目标AP。The target AP that the STA needs to connect to may be determined by: the AP that is not connected to the STA in the same ESS monitors the signal indicator of the STA, and the AP or the roaming controller connected to the STA is based on the AP pair that is not connected to the STA. The monitored value of the signal indicator of the STA determines the target AP from the APs that are not connected to the STA. For example, an AP that is not connected to the STA in the same ESS sends a monitoring value of the signal indicator of the STA to the AP connected to the STA. Or a roaming controller, the AP or the roaming controller connected to the STA determines the AP with the best signal indicator detected as the target AP.
通常,STA向连接的AP发送报文后,与该STA没有连接的其他AP的物理层同样能够接收到该报文,并计算出RSSI等信号指标,然后,该AP的介质访问控制(英文:media access control,MAC)层会判断该报文是否发送给自己的,如果该报文不是发送给自己的,则舍弃该报文。但是,本发明实施例中,MAC层在确定该报文不是发送给自己之后,仍然将该报文的RSSI等信号指标存入存储器,以使AP能够获得没有与自己相连接的STA的信号指标。AP还可以使用现有技术中的其他技术手段对没有与自己相连接的STA的信号指标进行监测,本发明实施例不再详述。Generally, after the STA sends a packet to the connected AP, the physical layer of other APs that are not connected to the STA can receive the packet, calculate the signal indicator such as RSSI, and then media access control of the AP. The media access control (MAC) layer determines whether the message is sent to itself. If the message is not sent to itself, the message is discarded. However, in the embodiment of the present invention, after determining that the packet is not sent to itself, the MAC layer still stores the RSSI and other signal indicators of the packet into the memory, so that the AP can obtain the signal indicator of the STA that is not connected to itself. . The AP can also monitor the signal indicator of the STA that is not connected to itself by using other technical means in the prior art, which is not detailed in the embodiment of the present invention.
通常,不同AP发送信标帧的时间不同步。例如,不同AP的信标间隔不同。例如,一个AP在0毫秒(ms),100ms,200ms…发送信标帧,另一AP在0ms,110ms,220ms…发送信标帧。或者,尽管不同AP的信标间隔相同,但发送信标帧的相位不同。例如,一个AP在0ms,100ms,200ms…发送信标帧,另一AP在30ms,130ms,230ms……发送信标帧。在STA处于激活(英文:active)模式时,STA总是处于苏醒状态(英文:awake state),STA能够接收到切换后的第二AP发送的信标帧,并根据第二AP发送信标帧中包括的用于同步时间的字段,将自己的时间与第二AP的时间同步。Usually, the time when different APs send beacon frames is not synchronized. For example, different APs have different beacon intervals. For example, one AP transmits a beacon frame at 0 milliseconds (ms), 100 ms, 200 ms... and another AP transmits a beacon frame at 0 ms, 110 ms, 220 ms. Or, although the beacon intervals of different APs are the same, the phases of the transmitted beacon frames are different. For example, one AP transmits a beacon frame at 0 ms, 100 ms, 200 ms... and another AP transmits a beacon frame at 30 ms, 130 ms, 230 ms... When the STA is in the active mode, the STA is always in the awake state, and the STA can receive the beacon frame sent by the second AP after the handover, and send the beacon frame according to the second AP. The field included in the synchronization time includes the time of synchronizing with the time of the second AP.
在STA处于省电模式时,STA处于瞌睡状态(英文:doze state),只是根据侦听间隔(英文:listen interval)进入苏醒状态以接收选择的信标帧。侦听间隔一般是信标间隔的整数倍。因此,STA只在切换前的第一AP发送信标帧的时间打开射频模块,接收信标帧。然而,由于第一AP与第二AP发送信标帧的时间通常不同步,处于省电模式的STA进入苏醒状态的短暂时间内,很可能接收不到第二AP发送的信标帧,导致STA不能根据第二AP发送的信标帧将自己的本地时间与切换后的第二AP的时间同步。这样,虽然第二AP已经接替第一AP为STA提供服务,但是,由于STA无法接收到第二AP发送的信标帧,无法将本地时间与第二AP的时间同步,进而无法通过第二AP进行数据收发。When the STA is in the power saving mode, the STA is in a doze state (English: doze state), and only enters the awake state according to the listening interval (English: listen interval) to receive the selected beacon frame. The listening interval is typically an integer multiple of the beacon interval. Therefore, the STA only opens the radio frequency module to receive the beacon frame at the time when the first AP before the handover transmits the beacon frame. However, since the time when the first AP and the second AP send the beacon frame is usually not synchronized, the STA in the power saving mode enters the awake state for a short period of time, and the beacon frame sent by the second AP may not be received, resulting in the STA. The local time of the switched second AP cannot be synchronized according to the beacon frame sent by the second AP. In this way, although the second AP has succeeded in providing the STA for the STA, the STA cannot receive the beacon frame sent by the second AP, and cannot synchronize the local time with the time of the second AP, thereby failing to pass the second AP. Data transmission and reception.
为了解决该问题,本发明实施例提供一种WLAN中切换AP方法及一种AP,由切换前的第一AP向STA发送唤醒帧,使得STA在切换后的第二AP发送信标帧的时刻能够处于苏醒状态,进而使得STA能够接收到第二AP发送的信标帧,根据第二AP发送的信标帧将本地时间与第二AP的时间同步。In order to solve the problem, an embodiment of the present invention provides a method for switching an AP in a WLAN, and an AP, where the first AP before the handover sends a wake-up frame to the STA, so that the STA sends the beacon frame to the second AP after the handover. The STA can be in an awake state, so that the STA can receive the beacon frame sent by the second AP, and synchronize the local time with the time of the second AP according to the beacon frame sent by the second AP.
结合图2,下面以第一AP将与其连接的第一STA切换为与第二AP为例,对本发明实施例提供的切换AP方法进行详细说明,该切换AP的方法包括如下步骤:With reference to FIG. 2, the method for switching the AP according to the embodiment of the present invention is described in detail below by using the first AP to switch the first STA connected to the first AP to the second AP. The method for switching the AP includes the following steps:
步骤101:第一AP确定与第一AP连接的第一STA处于省电模式,以及确定第一AP所在ESS中的第二AP为第一STA需要连接的目标AP。Step 101: The first AP determines that the first STA connected to the first AP is in the power saving mode, and determines that the second AP in the ESS where the first AP is located is the target AP that the first STA needs to connect.
具体的,第一AP与第一STA相连接,指的是第一STA通过第一AP连接入WLAN,由第一AP为第一STA提供服务,例如,第一AP为第一STA转发数据;又例如,在第一STA进入省电模式时,第一STA为第一STA缓存数据。Specifically, the first AP is connected to the first STA, where the first STA is connected to the WLAN through the first AP, and the first AP provides the service to the first STA. For example, the first AP forwards data for the first STA. For another example, when the first STA enters the power saving mode, the first STA caches data for the first STA.
第一STA可以为与第一STA连接的任一STA,该第一在进入省电模式时,会向连接的第一AP发送第一STA进入省电模式的记录,第一AP根据本地保存的该记录即可确定第一STA进入省电模式。 The first STA may be any STA connected to the first STA. When entering the power saving mode, the first STA sends a record of the first STA entering the power saving mode to the connected first AP, where the first AP is locally saved. The record can determine that the first STA enters the power save mode.
在步骤101中,第一AP可以根据前面介绍的方式获知第一AP漫游门限,且获知同一ESS中的第二AP为第一AP需要连接的目标AP,本发明实施例在此不予重复。In step 101, the first AP may learn the first AP roaming threshold according to the manner described above, and learn that the second AP in the same ESS is the target AP that the first AP needs to connect, and the embodiment of the present invention does not repeat here.
步骤102:第一AP向第一STA发送唤醒帧,该唤醒帧用于指示第一STA在第二AP基于为第一STA分配的第一BSSID向第一STA发送信标帧时处于苏醒状态。Step 102: The first AP sends a wake-up frame to the first STA, where the wake-up frame is used to indicate that the first STA is in an awake state when the second AP sends a beacon frame to the first STA based on the first BSSID allocated for the first STA.
其中,STA处于苏醒状态可以是该STA处于激活模式,或者该STA处于省电模式并进入了(例如根据侦听间隔进入)苏醒状态。处于苏醒状态的STA打开其射频模块。The STA is in the awake state may be that the STA is in the active mode, or the STA is in the power saving mode and enters (for example, enters according to the listening interval) the awake state. The STA in the awake state turns on its RF module.
步骤102中的唤醒帧可以有多种实现方式,包括但不限于为以下实现方式中的任一种:The wake-up frame in step 102 can have multiple implementations, including but not limited to any of the following implementations:
方式1,唤醒帧为信标帧,该信标帧包括用于更新第一STA苏醒时间的字段,该用于更新第一STA苏醒时间的字段用于指示第一STA将苏醒时间调整至第二AP基于第一BSSID发送信标帧的时间。In the first mode, the wake-up frame is a beacon frame, and the beacon frame includes a field for updating the first STA wake-up time, and the field for updating the first STA wake-up time is used to instruct the first STA to adjust the wake-up time to the second. The time at which the AP transmits the beacon frame based on the first BSSID.
通常,第一AP基于第一BSSID向第一STA发送的信标帧中,包括用于指示第一STA将苏醒时间与第一AP发送信标帧的时间同步的字段。但是,本发明实施例中,为了保证第一STA能够接收到第二AP发送的信标帧,第一AP可以将发送给第一STA的信标帧中的该用于更新第一STA苏醒时间的字段的值,修改后的该字段用于指示第一STA将苏醒时间与第二AP发送信标帧的时间同步,这个包括指示第一STA将苏醒时间调整至第二AP基于第一BSSID发送信标帧的时间的字段的信标帧即可作为本发明实施例中的唤醒帧。Generally, the first AP sends a beacon frame to the first STA based on the first BSSID, and includes a field for instructing the first STA to synchronize the awake time with the time at which the first AP sends the beacon frame. However, in the embodiment of the present invention, in order to ensure that the first STA can receive the beacon frame sent by the second AP, the first AP may use the one of the beacon frames sent to the first STA to update the first STA wakeup time. The value of the field, the modified field is used to indicate that the first STA synchronizes the awake time with the time at which the second AP sends the beacon frame, and this includes instructing the first STA to adjust the awake time to the second AP based on the first BSSID. The beacon frame of the field of the time at which the beacon frame is transmitted can be used as the wake-up frame in the embodiment of the present invention.
其中,第一AP要确定自己的信标帧发送时间与第二AP的信标帧发送时间之间的差值,才能确定该包括指示第一STA将苏醒时间调整至第二AP基于第一BSSID发送信标帧的时间的字段。由于第一AP和第二AP相邻,第一AP可以接收到第二AP发送的信标帧,该信标帧可以是传统的信标帧,即第二AP基于第二AP自身的BSSID发送的信标帧。第一AP确定接收第二AP的信标帧时,第一AP的本地时间,并计算出自己发送下一个信标帧的时间与该接收第二AP信标帧的时间的时间差值(T_offset),然后根据该时间差值确定该用于更新第一STA苏醒时间的字段的值。如果第二AP发送信标帧的周期和第一AP发送信标帧的周期不同,计算时间差值时还可以考虑两个AP发送信标帧的周期间的差值。可选的,计算上述时间差值还可以考虑到第一AP接收到第二AP发送得而信标帧的时间与第二AP实际发送该信标帧的时间之间的时延。The first AP determines the difference between the sending time of the beacon frame and the sending time of the beacon frame of the second AP, to determine that the indication indicates that the first STA adjusts the awake time to the second AP based on the first BSSID. The field of the time at which the beacon frame was sent. The first AP may receive the beacon frame sent by the second AP, and the beacon frame may be a traditional beacon frame, that is, the second AP sends the BSSID based on the second AP itself. Beacon frame. The first AP determines the local time of the first AP when receiving the beacon frame of the second AP, and calculates a time difference between the time when the next beacon frame is transmitted and the time when the second AP beacon frame is received (T_offset) And determining, according to the time difference, the value of the field for updating the wakeup time of the first STA. If the period in which the second AP transmits the beacon frame is different from the period in which the first AP transmits the beacon frame, the difference between the periods in which the two APs transmit the beacon frame may also be considered when calculating the time difference. Optionally, calculating the time difference may further consider a delay between a time when the first AP receives the beacon frame sent by the second AP and a time when the second AP actually sends the beacon frame.
例如,信标帧中的时间戳(英文:timestamp)字段为该用于更新STA苏醒时间的字段,该时间戳字段用于使STA的本地时间与AP的时间同步。如果第一STA不需要发生AP切换,则第一AP在时刻T1向第一STA发送的信标帧的时间戳字段的值为A;而在需要将第一STA切换至第二AP的情况下,第一AP在时刻T1向第一STA发送的信标帧的时间戳字段的值调整为(A-T_offset),这样,第一STA根据(A-T_offset)进行时间同步后,虽然会造成第一STA与第一AP的时间不同步,却能够使得第一STA的下一个苏醒时间与第二AP发送信标帧的时间同步。For example, the timestamp field in the beacon frame is the field for updating the STA wakeup time, and the timestamp field is used to synchronize the local time of the STA with the time of the AP. If the first STA does not need to perform AP handover, the value of the timestamp field of the beacon frame sent by the first AP to the first STA at time T1 is A; and in the case where the first STA needs to be switched to the second AP, The value of the timestamp field of the beacon frame sent by the first AP to the first STA at time T1 is adjusted to (A-T_offset), so that the first STA performs time synchronization according to (A-T_offset), although The time of a STA is not synchronized with the time of the first AP, but the next wake-up time of the first STA can be synchronized with the time when the second AP sends the beacon frame.
又例如,信标帧中该用于更新STA苏醒时间的字段还可以为信标间隔(英文:beacon interval)或侦听间隔字段。其中,信标间隔字段为AP发送信标帧的间隔,侦听间隔字段为信标间隔字段的整数倍,表示STA接收信标帧的间隔。如果第一STA不需要发生AP切换,则第一AP在时刻T1向第一STA发送的信标帧中信标间隔字段的值为B,侦听间隔字段的值为k*B,k为正整数;而在需要将第一STA切换至第二AP的情况下,第一AP在时刻T1 向第一STA发送的信标帧的信标间隔字段的值为(B-D),侦听间隔字段的值为k*(B-D),其中,k*D=T_offset,这样,第一STA根据侦听间隔l字段在k*(B-D)时长后进入下一次苏醒时间,该时间正好是第二AP发送信标帧的时间。For another example, the field used to update the STA wakeup time in the beacon frame may also be a beacon interval or a listening interval field. The beacon interval field is an interval at which the AP sends a beacon frame, and the intercept interval field is an integer multiple of the beacon interval field, indicating an interval at which the STA receives the beacon frame. If the first STA does not need to perform the AP handover, the value of the beacon interval field in the beacon frame sent by the first AP to the first STA at time T1 is B, and the value of the interception interval field is k*B, where k is a positive integer. And in the case that the first STA needs to be switched to the second AP, the first AP is at time T1 The value of the beacon interval field of the beacon frame transmitted to the first STA is (BD), and the value of the interception interval field is k*(BD), where k*D=T_offset, such that the first STA is based on the interception The interval l field enters the next wake-up time after k*(BD) duration, which is exactly the time when the second AP transmits the beacon frame.
通过上述方式1,第一AP在确定将第一STA切换至第二AP后,向第一STA发送信标帧,该信标帧中用于更新第一STA苏醒时间的字段指向第二AP发送信标帧的时间,而不是第一AP发送信标帧的时间。这样,第一STA接收该信标帧之后,将之后的苏醒时间调整至与第二AP发送信标帧同步的时间,使得第一STA能够接收到第二AP发送的信标帧。After the first AP determines to switch the first STA to the second AP, the first AP sends a beacon frame to the first STA, where the field for updating the first STA wakeup time in the beacon frame points to the second AP. The time at which the beacon frame is sent, not the time at which the first AP sends the beacon frame. In this way, after receiving the beacon frame, the first STA adjusts the subsequent wake-up time to a time synchronized with the second AP transmitting the beacon frame, so that the first STA can receive the beacon frame sent by the second AP.
需要说明的是,方式1中第一STA的苏醒时间与第二AP的信标帧发送时间同步,指的是第一STA的苏醒时间的集合是第二AP的信标帧发送时间集合的子集,两个集合可以相等,但并不一定相等。It should be noted that the wake-up time of the first STA in the mode 1 is synchronized with the beacon frame sending time of the second AP, and the set of the wake-up time of the first STA is the sub-beacon frame transmission time set of the second AP. Set, two sets can be equal, but not necessarily equal.
方式2,唤醒帧包括信标帧,该信标帧包括指示第一STA在省电模式下保持苏醒状态的字段。Mode 2, the wake-up frame includes a beacon frame, the beacon frame including a field indicating that the first STA remains awake in the power saving mode.
通常,处于省电模式的第一STA从瞌睡状态进入苏醒状态,接收连接的第一AP发送的信标帧,如果该信标帧中没有包括使第一STA保持苏醒状态的字段,则第一STA从苏醒状态切换回瞌睡状态。如果该信标帧中包含该使第一STA保持苏醒状态的字段,第一STA接收到该信标帧后保持苏醒状态。Generally, the first STA in the power saving mode enters the awake state from the doze state, receives the beacon frame sent by the connected first AP, and if the beacon frame does not include a field that keeps the first STA awake, the first The STA switches back from the awake state to the doze state. If the beacon frame includes the field that causes the first STA to remain awake, the first STA remains awake after receiving the beacon frame.
例如,信标帧中唤醒第一STA的字段可以为待传流量指示消息(英文:delivery traffic indication message,DTIM)字段。For example, the field in the beacon frame that wakes up the first STA may be a delivery traffic indication message (DTIM) field.
通常,第一AP会在为连接的第一STA缓存数据帧或管理帧后,在向第一STA发送的信标帧的DTIM字段中将第一STA对应的位置1,告知第一STA有可缓存单元(英文:bufferable unit,BU)需要获取。处于省电模式的第一STA在苏醒时间打开射频模块,接收该信标帧,并根据信标帧中的DTIM字段保持苏醒状态。并向第一AP发送一个竞选(poll)帧,第一AP在收到该poll帧后向第一STA发送为第一STA所缓存的数据包。Generally, the first AP may notify the first STA that the first STA is located in the DTIM field of the beacon frame sent to the first STA after the data frame or the management frame is cached for the first STA. The buffer unit (English: bufferable unit, BU) needs to be obtained. The first STA in the power saving mode turns on the radio frequency module during the waking time, receives the beacon frame, and maintains the awake state according to the DTIM field in the beacon frame. And sending a polling frame to the first AP, after receiving the poll frame, the first AP sends the data packet buffered by the first STA to the first STA.
而本发明实施例中,在需要将处于省电模式的第一STA切换至第二AP时,即使第一AP没有为第一STA缓存数据帧或管理帧,第一AP仍然在向第一STA发送的信标帧中添加使第一STA保持苏醒状态的字段(如,将第一STA对应的位数置1的DTIM字段),使第一AP保持苏醒状态,进而使其能够接收到第二AP发送的信标帧。In the embodiment of the present invention, when the first STA in the power saving mode needs to be switched to the second AP, the first AP is still in the first STA even if the first AP does not cache the data frame or the management frame for the first STA. Adding a field in the transmitted beacon frame that keeps the first STA awake state (for example, a DTIM field that sets the number of bits corresponding to the first STA), so that the first AP remains awake, thereby enabling it to receive the second The beacon frame sent by the AP.
可选的,第一STA接收到第一AP发送的上述第三信标帧后,向第一AP发送poll帧,第一AP接收到该poll帧之后,不向第一STA发送可缓存单元BU。而第一STA由于接收不到针对poll帧发送的可缓存单元,第一STA将一直保持苏醒状态,直至接收到第一AP针对该poll帧所发送的可缓存单元,或者直至第一STA的信标帧发送时间的到来。Optionally, after receiving the third beacon frame sent by the first AP, the first STA sends a poll frame to the first AP, and after receiving the poll frame, the first AP does not send the cacheable unit BU to the first STA. . The first STA will remain awake until the first STA receives the cacheable unit for the poll frame transmission until the first AP receives the cacheable unit sent by the first frame or the first STA. The arrival of the frame transmission time.
方式3,与上述方式2的不同之处在于,第一AP发送给第一STA的信标帧中,包括指示第一STA从省电模式切换至激活模式的字段。The mode 3 is different from the foregoing mode 2 in that the beacon frame sent by the first AP to the first STA includes a field indicating that the first STA switches from the power saving mode to the active mode.
具体实施时,方式2与方式3之间存在如下两种情况:During specific implementation, there are two cases between mode 2 and mode 3:
情况1,方式2中第一AP向第一STA中发送的信标帧中包括字段A,该字段A用于指示第一STA保持苏醒状态;而方式3中第一AP向第一STA发送的信标帧中包括字段B,该字段B用于指示第一STA从省电模式切换至激活模式。其中,字段A与字段B为两个不同的字段。In the case 2, the beacon frame sent by the first AP to the first STA in the mode 2 includes a field A, where the field A is used to indicate that the first STA remains awake; and in the mode 3, the first AP sends the message to the first STA. A field B is included in the beacon frame, and the field B is used to instruct the first STA to switch from the power saving mode to the active mode. Among them, field A and field B are two different fields.
情况2,方式2中第一AP向第一STA中发送的信标帧中包括字段A,在方式2所在的应用场景中,第一AP与第一STA约定,该字段A用于指示第一STA保持苏醒状态。方式3中第 一AP向第一STA中发送的信标帧中同样包括字段A,但在方式3所在的应用场景中,第一AP与第一STA约定,该字段A用于指示第一STA从省电模式切换至激活模式。例如,在一种可能的实现方式中,第一STA接收到DTMI位置1的信标帧后不退出省电模式且保持苏醒状态;而在另一种可能的实现方式中,第一STA接收到DTMI位置1的信标帧后,向连接的AP发送退出省电模式的记录,退出省电模式,进入激活模式。In the scenario 2, the beacon frame sent by the first AP to the first STA includes the field A. In the application scenario where the mode 2 is located, the first AP is agreed with the first STA, and the field A is used to indicate the first The STA remains awake. Mode 3 The beacon frame sent by the AP to the first STA also includes the field A. However, in the application scenario where the mode 3 is located, the first AP is in agreement with the first STA, and the field A is used to indicate that the first STA is in the power saving mode. Switch to active mode. For example, in a possible implementation manner, after receiving the beacon frame of the DTMI position 1, the first STA does not exit the power saving mode and remains awake; and in another possible implementation, the first STA receives After the beacon frame of the DTMI bit is set, the record of the power-saving mode is sent to the connected AP, and the power-saving mode is exited, and the active mode is entered.
需要说明的是,无论上述在方式2中第一STA在不退出省电模式的情况下保持苏醒状态,还是在方式3中第一STA从省电模式切换至激活模式,第一STA的射频模块均处于工作状态,能够接收到第二AP基于第一BSSID发送的信标帧。It should be noted that, regardless of whether the first STA maintains the awake state in the mode 2 without exiting the power saving mode, or the first STA switches from the power saving mode to the active mode in the mode 3, the radio module of the first STA All are in working state, and can receive the beacon frame sent by the second AP based on the first BSSID.
方式4,结合方式2,第一AP在向第一STA发送发送指示第一STA保持苏醒状态的信标帧之后,向第一STA发送至少一个数据帧,该数据帧中包括指示第一STA继续保持苏醒状态的字段。Mode 4, in combination with mode 2, after the first AP sends a beacon frame indicating that the first STA remains awake to the first STA, sending, by the first STA, at least one data frame, where the data frame includes indicating that the first STA continues A field that remains awake.
本发明实施例中,所谓的数据帧可以为包含传输数据的数据帧,也可以为未包含传输数据的空数据帧。In the embodiment of the present invention, the so-called data frame may be a data frame containing transmission data, or may be an empty data frame not including transmission data.
具体的,第一STA接收到第一AP发送的上述第三信标帧后,向第一AP发送poll帧,第一AP接收该poll帧之后,向第一STA发送至少一个数据帧(包括空数据帧的情形),其中,至少一个数据帧中的每个帧的“More Data”字段置1,指示第一STA继续保持苏醒状态并继续向第一AP发送poll帧,而第一AP则继续在向第一STA发送的数据帧中将“More Data”字段置1。这样,第一STA将保持苏醒状态,直至第一AP不将发送给第一STA的数据帧中的“More Data”字段置1。Specifically, after receiving the third beacon frame sent by the first AP, the first STA sends a poll frame to the first AP, and after receiving the poll frame, the first AP sends at least one data frame to the first STA (including the null In the case of a data frame, wherein the "More Data" field of each of the at least one data frame is set to 1, indicating that the first STA continues to remain awake and continues to send a poll frame to the first AP, while the first AP continues The "More Data" field is set to 1 in the data frame sent to the first STA. In this way, the first STA will remain awake until the first AP does not set the "More Data" field in the data frame sent to the first STA.
方式5,结合方式3,第一AP在向第一STA发送发送指示第一STA从省电模式切换至激活模式的信标帧之后,向第一STA发送至少一个数据帧。Mode 5: In combination with mode 3, the first AP sends at least one data frame to the first STA after transmitting, to the first STA, a beacon frame indicating that the first STA switches from the power saving mode to the active mode.
第一STA在从省电模式切换至激活模式后,可以在激活模式下保持一段时长,该时长可以由第一STA、第一AP或二者协商确定。如果该保持激活模式的时长短,则第一STA可能在第二AP的信标帧发送时间到来前又从激活模式切换回省电模式,导致第一STA无法接收到第二AP基于第一BSSID发送的信标帧。After the first STA is switched from the power saving mode to the active mode, the first STA may be maintained in the active mode for a period of time, which may be determined by the first STA, the first AP, or both. If the duration of the keep-alive mode is short, the first STA may switch from the active mode to the power-saving mode before the beacon frame transmission time of the second AP arrives, causing the first STA to fail to receive the second AP based on the first BSSID. The beacon frame sent.
为了解决该问题,本发明实施例中,第一AP在向第一STA发送用于指示第一STA从省电模式切换至激活模式的信标帧之后,还要向第一STA发送1个或多个数据帧(包括空数据帧的情形)。第一STA在接收到每个数据帧之后,会在激活模式保持一段时间,因此,如果不间断发送数据帧,则第一STA会一直保持激活模式。In order to solve the problem, in the embodiment of the present invention, after the first AP sends a beacon frame for instructing the first STA to switch from the power saving mode to the active mode, the first AP also sends one to the first STA or Multiple data frames (including the case of empty data frames). After receiving each data frame, the first STA will remain in the active mode for a period of time, so if the data frame is not transmitted continuously, the first STA will remain in the active mode.
例如,假设第一STA的省电策略设定为:第一STA在激活模式下如果超过时长S未进行数据收发,则从激活模式切换至省电模式。第一STA在T1时刻接收第一AP发送的包括用于用于指示第一STA从省电模式切换至激活模式的字段的信标帧,从省电模式切换至激活模式,如果第一STA没有进行数据收发,则在(T1+S)时刻会再次进入省电模式。为了避免这种情况的发生,本发明实施例中,第一AP在(T1+S)时刻来临前的(T1+S-m)时刻,向第一STA发送空数据帧,第一STA接收该空数据帧后,将在(T1+S-m)至(T1+2S-m)时间段内保持激活模式。以此类推,在第一STA的激活模式结束之前,第一AP再次向第一STA发送空数据帧(也可以为包含有传输数据的数据帧),以使第一STA继续保持激活模式。 For example, it is assumed that the power saving policy of the first STA is set to: when the first STA does not perform data transmission and reception for more than the duration S in the active mode, the active mode is switched from the active mode to the power saving mode. The first STA receives, at time T1, a beacon frame that is sent by the first AP and includes a field for indicating that the first STA switches from the power saving mode to the active mode, and switches from the power saving mode to the active mode, if the first STA does not When data is transmitted or received, the power saving mode is entered again at (T1+S). In order to avoid the occurrence of the situation, in the embodiment of the present invention, the first AP sends a null data frame to the first STA at the time (T1+Sm) before the (T1+S) time, and the first STA receives the null data. After the frame, the active mode will remain in the (T1+Sm) to (T1+2S-m) time period. By analogy, before the end of the activation mode of the first STA, the first AP sends a null data frame (which may also be a data frame containing the transmission data) to the first STA again, so that the first STA continues to remain in the active mode.
上述方式4以及方式5中,第一AP通过在向第一STA发送第三信标帧之后,向第一STA发送的多个数据帧,使得第一STA维持苏醒状态,进而使第一STA能够接收到第二AP发送的信标帧。In the foregoing manners 4 and 5, the first AP, by sending the third beacon frame to the first STA, sends a plurality of data frames to the first STA, so that the first STA maintains the awake state, thereby enabling the first STA to enable the first STA. Receiving a beacon frame sent by the second AP.
需要说明的是,在不冲突的情况下,上述方式1至上述方式5中任意两项或多项可以结合使用,例如,第一AP既向第一STA发送使其将本地时间与第二AP的时间同步的信标帧,又向第一STA发送多个空数据帧,这些空数据帧中的“More Data”字段置1,指示第一STA保持苏醒状态。It should be noted that, in the case of no conflict, any two or more of the above manners 1 to 5 may be used in combination, for example, the first AP sends both the first STA and the second AP to the second AP. The time-synchronized beacon frame, in turn, sends a plurality of empty data frames to the first STA, and the "More Data" field in the empty data frames is set to 1, indicating that the first STA remains awake.
另外,上述方式1中第一STA的苏醒时间与第二AP的信标帧发送时间同步,指的是第一STA的苏醒时间的集合是第二AP的信标帧发送时间集合的子集,两个集合可以相等,但并不一定相等。In addition, the wakeup time of the first STA in the foregoing manner 1 is synchronized with the beacon frame transmission time of the second AP, and the set of the wakeup time of the first STA is a subset of the beacon frame transmission time set of the second AP. The two sets can be equal, but not necessarily equal.
步骤103:第一AP向第二AP发送切换指令,该切换指令用于指示第二AP基于第一BSSID为第一STA提供服务。Step 103: The first AP sends a handover instruction to the second AP, where the handover instruction is used to instruct the second AP to provide a service for the first STA based on the first BSSID.
具体的,该切换指令包括第一STA的标识,用于指示第二AP为第一STA提供服务。可选的,如果第一AP或漫游控制器在为第一STA分配第一BSSID之后,并未立即将第一STA与第一BSSID的映射告知第二AP,则第一AP向第二AP发送的该切换指令中还可以包括为第一STA分配的第一BSSID,以使第二AP能够基于第一BSSID为第一STA提供服务。Specifically, the handover instruction includes an identifier of the first STA, and is used to indicate that the second AP provides a service for the first STA. Optionally, if the first AP or the roaming controller does not immediately notify the second AP of the mapping between the first STA and the first BSSID after allocating the first BSSID to the first STA, the first AP sends the second AP to the second AP. The handover instruction may further include a first BSSID allocated for the first STA, to enable the second AP to provide service for the first STA based on the first BSSID.
步骤104:第一STA接收唤醒帧,在第二AP的信标帧发送时间保持苏醒状态。Step 104: The first STA receives the wake-up frame, and maintains the awake state at the beacon frame sending time of the second AP.
步骤104中第二AP根据该唤醒帧在第二AP的信标帧发送时间保持苏醒状态的具体实现方式在步骤102中已有描述,在此不再重复。另外,步骤104中,第一STA在第二AP的信标帧发送时间保持苏醒状态,指的是第一STA在第二AP的任一(或,任意多个)信标帧发送时间保持苏醒状态。The specific implementation manner in which the second AP keeps the awake state in the beacon frame sending time of the second AP according to the awake frame is described in step 102, and is not repeated here. In addition, in step 104, the first STA maintains the awake state in the beacon frame transmission time of the second AP, which means that the first STA remains awake at any (or any number of) beacon frame transmission times of the second AP. status.
步骤105:第二AP接收该切换指令,并基于为第一STA分配的第一BSSID为第一STA提供服务。Step 105: The second AP receives the handover instruction, and provides a service for the first STA based on the first BSSID allocated for the first STA.
具体的,第二AP接收切换指令之后,负责为第一STA提供服务。所谓提供服务,包括:第二AP基于第一BSSID向第一STA发送信标帧,以使第一STA根据信标帧维护与第二AP之间的链路。Specifically, after receiving the handover instruction, the second AP is responsible for providing services for the first STA. The so-called providing service includes: the second AP sending a beacon frame to the first STA based on the first BSSID, so that the first STA maintains a link with the second AP according to the beacon frame.
其中,第二AP获得第一STA与第一BSSID的映射,可以有如下实现方式:漫游控制器在为第一STA分配第一BSSID之后,即将第一STA与第一BSSID的映射发送给ESS内的每个AP,第二AP进而能够获知漫游控制器为第一STA分配的第一BSSID。或者,第二AP在接收到第一AP发送的切换指令后,请求漫游控制器向第二AP发送第一STA对应的BSSID,第二AP进而能够获知该第一BSSID。或者,第一AP在向第二AP发送切换指令时,一并将第一STA对应的第一BSSID发送给第二AP。The second AP obtains the mapping between the first STA and the first BSSID, and may be implemented as follows: after the first BSSID is allocated to the first STA, the roaming controller sends the mapping between the first STA and the first BSSID to the ESS. Each AP, the second AP, in turn, can learn the first BSSID assigned by the roaming controller to the first STA. Alternatively, after receiving the handover instruction sent by the first AP, the second AP requests the roaming controller to send the BSSID corresponding to the first STA to the second AP, and the second AP can further learn the first BSSID. Or, when the first AP sends the handover instruction to the second AP, the first AP sends the first BSSID corresponding to the first STA to the second AP.
步骤106:第一AP停止为第一STA提供服务。Step 106: The first AP stops providing services for the first STA.
具体的,第一AP停止为第一STA提供服务,指的是第一AP不再将第一STA作为其需要提供正常的WLAN服务的STA,例如不再为第一STA发送基于其BSSID的信标帧、转发数据、缓存数据,等等。Specifically, the first AP stops serving the first STA, and the first AP does not use the first STA as the STA that needs to provide the normal WLAN service, for example, the first STA is no longer sent based on the BSSID. Frame, forward data, cache data, and more.
结合前述步骤102的多种实现方式中的方式2至方式5中的任一种,第一AP可能会在执行完步骤102以及步骤103之后,继续向第一STA发送唤醒帧,指示第一STA在第二AP的信标帧发送时间保持苏醒状态。在上述第一AP向第一STA发送唤醒帧的行为中,第一AP 不是向第一STA提供正常WLAN服务,因此,步骤106中所谓第一AP停止为第一STA提供服务,与上述第一AP在执行完步骤102以及步骤103之后继续向第一STA发送唤醒帧不冲突。In combination with any one of the foregoing manners 2 to 5, the first AP may continue to send a wake-up frame to the first STA after the step 102 and the step 103 are performed, indicating the first STA. The beacon frame transmission time of the second AP remains awake. In the behavior that the first AP sends a wake-up frame to the first STA, the first AP The normal WLAN service is not provided to the first STA. Therefore, the first AP stops serving the first STA in step 106, and the first AP continues to send the wake-up frame to the first STA after performing step 102 and step 103. conflict.
另外,在上述AP切换的前后,STA使用的IP地址不发生变化。从STA的角度来看,其连接的AP的BSSID不变,自己仍然使用同一IP地址进行数据收发,因此,本发明实施例中,STA根本感知不到AP已发生切换。In addition, the IP address used by the STA does not change before and after the AP switching. From the perspective of the STA, the BSSID of the connected AP does not change, and the data is still sent and received by the same IP address. Therefore, in the embodiment of the present invention, the STA does not perceive that the AP has switched.
本发明实施例上述技术方案中,ESS中的第一STA被分配唯一的第一BSSID,ESS中的与第一STA连接的AP基于第一BSSID为第一STA提供服务。第一AP在确定连接的第一STA达到漫游门限,且该第一STA处于省电模式时,一方面向第一STA需要连接的第二AP发送切换指令,指示第二AP基于第一BSSID为第一STA提供服务;另一方面,第一AP向第一STA发送唤醒帧,指示第一STA在第二AP的信标帧发送时间保持苏醒状态,进而使得第一STA能够接收到第二AP发送的信标帧,能够根据第二AP发送的信标帧维护与第二AP之间的链路,保证第一STA能够接受第二AP提供的服务。上述STA连接AP的切换的过程由AP侧执行,因此,即使在第一STA处于省电模式,且关闭射频模块的情况下,第一STA的AP切换也可以正常进行,保证第一STA在打开射频模块后,能够通过ESS中的AP进行通信,且由于第一STA能够切换连接信号较佳的AP,第一STA的通信质量佳。In the foregoing technical solution of the embodiment of the present invention, the first STA in the ESS is assigned a unique first BSSID, and the AP connected to the first STA in the ESS provides a service for the first STA based on the first BSSID. When the first AP determines that the connected first STA reaches the roaming threshold, and the first STA is in the power saving mode, the first AP sends a handover instruction to the second AP that the first STA needs to connect, indicating that the second AP is based on the first BSSID. The first STA provides a service. On the other hand, the first AP sends a wake-up frame to the first STA, indicating that the first STA keeps the awake state at the time of sending the beacon frame of the second AP, thereby enabling the first STA to receive the second AP. The transmitted beacon frame can maintain a link with the second AP according to the beacon frame sent by the second AP, and ensure that the first STA can accept the service provided by the second AP. The process of the STA connected to the AP is performed by the AP. Therefore, even if the first STA is in the power saving mode and the radio module is disabled, the AP switching of the first STA can be performed normally, and the first STA is guaranteed to be opened. After the radio module is enabled, the AP can communicate with the AP in the ESS, and the communication quality of the first STA is good because the first STA can switch the AP with the better connection signal.
不仅如此,在第一AP为第一STA缓存有数据时,第一AP还会将为第一STA缓存的数据移交给第二AP,由第二AP将缓存数据发送给第一STA,避免数据的丢失。In addition, when the first AP caches data for the first STA, the first AP also hands over the data cached by the first STA to the second AP, and the second AP sends the cached data to the first STA to avoid data. Lost.
在一种可能的实现方式中,参照图3,在步骤102之前还包括如下步骤:In a possible implementation manner, referring to FIG. 3, before step 102, the following steps are further included:
步骤107:第一AP判断自身的信标帧发送时间与第二AP的信标帧发送时间是否同步,若是,则跳过步骤102,直接执行步骤103,若不是,则既要执行步骤102,也要执行步骤103。Step 107: The first AP determines whether the beacon frame transmission time of the second AP is synchronized with the beacon frame transmission time of the second AP, and if yes, skips step 102 and directly performs step 103. If not, step 102 is performed. Also perform step 103.
具体的,第一AP在确定需要将第一STA切换至第二AP之后,首先判断第二AP与第一AP发送信标帧的时间是否同步,如果同步,则能够接收到第一AP发送的信标帧的第一STA本身就能够接收到第二AP发送的信标帧,第一AP可以不执行步骤102,直接执行步骤103。Specifically, after determining that the first STA needs to switch the first STA to the second AP, it is first determined whether the time that the second AP sends the beacon frame with the first AP is synchronized, and if the synchronization is performed, the first AP can receive the first AP. The first STA of the beacon frame can receive the beacon frame sent by the second AP, and the first AP can directly perform step 103 without performing step 102.
如果第二AP与第一AP发送信标帧的时间不同步,第一AP执行步骤102,使得第一STA的苏醒时间为第二AP发送信标帧的时间。If the time at which the second AP sends the beacon frame is not synchronized, the first AP performs step 102, so that the wake-up time of the first STA is the time when the second AP sends the beacon frame.
上述技术方案中,第一AP判断第一AP与第二AP发送信标帧的时间是否同步,在二者同步时,不需要向第一STA发送调整其处于苏醒状态的时间的唤醒帧,只有在二者不同步时,才向第一STA发送该唤醒帧,不仅能够保证第一STA能够接收到第二AP发送的信标帧,也能够在第一AP与第二AP发送信标帧的时间同步时减少唤醒帧的发送,节约传输资源。In the foregoing technical solution, the first AP determines whether the time at which the first AP and the second AP send the beacon frame are synchronized. When the two are synchronized, the first STA does not need to send the wake-up frame to adjust the time in which the first AP is in the awake state. When the two are not synchronized, the wake-up frame is sent to the first STA, which can ensure that the first STA can receive the beacon frame sent by the second AP, and can also send the beacon frame in the first AP and the second AP. Reduce the transmission of wake-up frames during time synchronization, saving transmission resources.
在另一种可能的实现方式中,第二AP在确定与第一STA连接成功后,向第一AP发送切换成功消息,以使第一STA知道第一STA已成功切换至第二AP,而第二AP在接收到该切换成功消息之后,可以停止向第一STA发送步骤102中的唤醒帧。In another possible implementation, after determining that the connection with the first STA is successful, the second AP sends a handover success message to the first AP, so that the first STA knows that the first STA has successfully switched to the second AP, and After receiving the handover success message, the second AP may stop sending the wake-up frame in step 102 to the first STA.
其中,第二AP确定与第一STA连接成功的方式包括:The manner in which the second AP determines that the connection with the first STA is successful includes:
方式A,第二AP向第一STA发送需要第一STA返回报文的帧,第一STA向第二AP返回报文,第二AP接收到返回报文,即可确定与第一STA已成功建立连接。In the mode A, the second AP sends a frame that needs the first STA to return the message to the first STA, the first STA returns a message to the second AP, and the second AP receives the return message, and the first STA is determined to be successful. establish connection.
该需要第一STA返回报文的帧可以有多种实现方式,例如,该帧为数据帧,第一STA接收到第二AP发送的数据帧后,向第二AP返回ACK帧。由于第一STA发送给第二AP的ACK 帧中包括第二AP的标识,而第二AP基于第一BSSID为第一STA提供服务,且第二AP只有为第一STA提供服务时才以第一BSSID作为自己的BSSID,因此,第二AP根据接收ACK帧中的第一BSSID即可确定此ACK帧为第一STA所发送的,进而确定与第一STA已成功建立连接。The frame that needs to be returned by the first STA may be implemented in multiple manners. For example, the frame is a data frame, and after receiving the data frame sent by the second AP, the first STA returns an ACK frame to the second AP. The ACK sent by the first STA to the second AP The frame includes the identifier of the second AP, and the second AP provides the service for the first STA based on the first BSSID, and the second AP only uses the first BSSID as its own BSSID when the first STA is served. Therefore, the second The AP determines, according to the first BSSID in the received ACK frame, that the ACK frame is sent by the first STA, and further determines that the connection with the first STA has been successfully established.
可选的,由于第一STA在接收到第二AP发送的信标帧之后会保持短时间的苏醒状态,因此,第二AP可以在向第一STA发送信标帧之后的该短时间内向第一STA发送该用于确定第二AP确定与第一STA是否连接成功的帧,以使得第一STA能够接收到该帧,并根据该帧返回报文。Optionally, the first STA may maintain a short-term awake state after receiving the beacon frame sent by the second AP, and therefore, the second AP may go to the first time after sending the beacon frame to the first STA. A STA sends the frame for determining whether the second AP determines whether the first STA is successfully connected, so that the first STA can receive the frame, and returns a message according to the frame.
方式B,处于省电模式的第一STA可能会主动向连接的AP发送报文,第二AP接收这些报文之后,即可确定与第一STA成功建立连接。In the mode B, the first STA in the power-saving mode may send a packet to the connected AP. After receiving the packet, the second AP may determine to successfully establish a connection with the first STA.
例如,第一STA在关闭省电模式时,会向连接的AP发送关闭省电模式的记录,第二AP接收该包含该记录的报文,即可确定与第一STA成功建立连接。For example, when the first STA is in the power-saving mode, the first STA sends a record of the power-saving mode to the connected AP, and the second AP receives the packet that includes the record to determine that the connection is successfully established with the first STA.
上述技术方案中,第二AP能够根据接收到第一STA发送的报文确定与第一STA建立连接,并向第一AP发送切换成功消息,以使第一STA知道第一STA已成功切换至第二AP。第一AP可以在接收到该切换成功消息之前向第一STA发送唤醒帧,保证第一STA能够接收第二AP发送的信标帧,而在第一AP在接收到该唤醒帧之后,停止向第一STA发送该唤醒帧,不仅可以节约传输资源,还可以避免第一STA的响应混乱。In the foregoing technical solution, the second AP can determine to establish a connection with the first STA according to the received message sent by the first STA, and send a handover success message to the first AP, so that the first STA knows that the first STA has successfully switched to Second AP. The first AP may send a wake-up frame to the first STA before receiving the handover success message, to ensure that the first STA can receive the beacon frame sent by the second AP, and after the first AP receives the wake-up frame, stop the The first STA sends the wake-up frame, which not only saves transmission resources, but also avoids confusion of the response of the first STA.
本发明实施例还提供一种切换AP的设备200,该设备200作为WLAN中的AP。图4为设备200的结构示意图,设备200包括:处理器201以及收发器202。The embodiment of the present invention further provides an apparatus 200 for switching an AP, where the apparatus 200 functions as an AP in a WLAN. 4 is a schematic structural diagram of an apparatus 200. The device 200 includes a processor 201 and a transceiver 202.
其中,处理器201,用于:确定与设备200连接的STA处于省电模式,其中,设备200基于所述STA所对应的BSSID为所述STA提供服务,所述STA所对应的BSSID与和所述STA在同一ESS中的任意其他STA所对应的BSSID不同;确定在所述ESS内的第二AP为目标AP,所述目标AP为所述STA切换后连接的AP;生成唤醒帧,所述唤醒帧用于指示所述STA在所述第二AP基于所述STA所对应的BSSID发送信标帧时处于苏醒状态;生成切换指令,所述切换指令用于指示所述第二AP基于所述STA所对应的BSSID为所述STA提供服务;The processor 201 is configured to: determine that the STA connected to the device 200 is in a power saving mode, where the device 200 provides a service for the STA according to the BSSID corresponding to the STA, and the BSSID and the corresponding location of the STA Determining, by the STA, that the BSSIDs of the other STAs in the same ESS are different; determining that the second AP in the ESS is the target AP, the target AP is the AP that is connected after the STA is switched, and generating a wake-up frame, The awake frame is used to indicate that the STA is in an awake state when the second AP sends a beacon frame based on the BSSID corresponding to the STA; generating a handover instruction, where the handover instruction is used to indicate that the second AP is based on the The BSSID corresponding to the STA provides a service for the STA;
收发器202,与处理器201耦合,用于:向所述STA发送所述唤醒帧;以及向所述第二AP发送所述切换指令。The transceiver 202 is coupled to the processor 201, configured to: send the wake-up frame to the STA; and send the handover instruction to the second AP.
本发明实施例中,处理器201与收发器202可以为两个分立的元件,二者通过总线连接;另外,处理器201与收发器202也可以集成在一起,本发明实施例不予限定。In the embodiment of the present invention, the processor 201 and the transceiver 202 may be two separate components, and the two are connected by a bus. In addition, the processor 201 and the transceiver 202 may be integrated, which is not limited in the embodiment of the present invention.
处理器201可以是一个处理元件,也可以是多个处理元件的统称。例如,处理器可以是中央处理器(CPU),也可以是应用特定集成电路(ASIC),或者是被配置成实施本发明实施例的一个或多个集成电路。The processor 201 can be a processing element or a collective name of a plurality of processing elements. For example, the processor can be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
收发器202包括天线,还可以包括与该天线连接的射频模块。可选的,在设备200通过有线网络(如光纤网络等)与第二AP进行通信时,收发器202除了包括上述射频模块以及天线之外,还包括有线通信类型的数据收发器,如以太网数据收发器。The transceiver 202 includes an antenna and may also include a radio frequency module coupled to the antenna. Optionally, when the device 200 communicates with the second AP through a wired network (such as a fiber network or the like), the transceiver 202 includes a data communication type of a wired communication type, such as an Ethernet, in addition to the foregoing radio frequency module and the antenna. Data transceiver.
在一种可能的实现中,处理器201在用于:生成所述唤醒帧之前,还用于:确定设备200的信标帧发送时间与所述第二AP的信标帧发送时间不同步。In a possible implementation, before being used to generate the wake-up frame, the processor 201 is further configured to: determine that the beacon frame transmission time of the device 200 is not synchronized with the beacon frame transmission time of the second AP.
在一种可能的实现中,所述唤醒帧包括第一信标帧,所述第一信标帧包括用于更新所述STA苏醒时间的字段,所述用于更新所述STA苏醒时间的字段用于指示所述STA将苏醒时间调整至所述第二AP基于所述STA所对应的BSSID发送信标帧的时间。 In a possible implementation, the wake-up frame includes a first beacon frame, the first beacon frame includes a field for updating the STA wake-up time, and the field for updating the STA wake-up time And configured to instruct the STA to adjust an awake time to a time when the second AP sends a beacon frame based on a BSSID corresponding to the STA.
在一种可能的实现中,所述收发器202还用于:接收第二AP发送的第二信标帧;In a possible implementation, the transceiver 202 is further configured to: receive a second beacon frame sent by the second AP;
所述处理器201还用于:确定所述收发器接收到所述第二信标帧的时间,并根据设备200的信标帧发送时间以及所述收发器接收到所述第二信标帧的时间确定设备200的信标帧发送时间与所述第二AP的信标帧发送时间之前的时间间隔;并根据所述时间间隔确定用于更新所述STA苏醒时间的字段。The processor 201 is further configured to: determine a time when the transceiver receives the second beacon frame, and according to a beacon frame transmission time of the device 200, and the transceiver receives the second beacon frame The time determines a time interval before the beacon frame transmission time of the device 200 and the beacon frame transmission time of the second AP; and determines a field for updating the STA wake-up time according to the time interval.
在一种可能的实现中,所述唤醒帧包括第三信标帧,所述第三信标帧包括指示所述STA保持苏醒状态的字段。In one possible implementation, the wake-up frame includes a third beacon frame, the third beacon frame including a field indicating that the STA remains awake.
在一种可能的实现中,所述唤醒帧还包括:在所述第三信标帧之后发送的至少一个数据帧,所述至少一个数据帧用于使所述STA保持苏醒状态。In a possible implementation, the wake-up frame further includes: at least one data frame sent after the third beacon frame, the at least one data frame is used to keep the STA in an awake state.
在一种可能的实现中,所述至少一个数据帧包括空数据帧。In one possible implementation, the at least one data frame includes a null data frame.
在一种可能的实现中,设备200还包括存储器203,该存储器203可以用于:存储连接的STA发送的数据,存储其他网元发送给STA的数据,存储STA的状态记录(如是否处于省电模式),存储其他网元发送给设备200的指令,等等。In a possible implementation, the device 200 further includes a memory 203, which can be used to: store data sent by the connected STA, store data sent by other network elements to the STA, and store the STA's status record (if it is in the province). Electrical mode), storing instructions sent by other network elements to device 200, and the like.
可选的,该存储器203还可以存储可执行指令,处理器201读取并运行存储器203中的可执行指令,以实现本发明实施例中设备200所具有的的功能。Optionally, the memory 203 can also store executable instructions, and the processor 201 reads and runs the executable instructions in the memory 203 to implement the functions of the device 200 in the embodiment of the present invention.
上述存储器203可以是一个存储元件,也可以是多个存储元件的统称,且用于存储可执行程序代码或装置运行所需要参数、数据等。且上述存储器203可以包括随机存取存储器(RAM),也可以包括非易失性存储器(NVM),等等。The memory 203 may be a storage element or a collective name of a plurality of storage elements, and is used to store executable program code or parameters, data, and the like required for the operation of the device. And the above memory 203 may include random access memory (RAM), may also include non-volatile memory (NVM), and the like.
需要说明的是,图4中的存储器203以及以太网数据收发器采用虚线框表示,表明其不是本发明实施例中AP实现其功能的所必需的模块。通常,AP还具有本发明实施例中描述功能之外的功能,这些功能需要基于存储器203和/或以太网数据收发器所实现。It should be noted that the memory 203 and the Ethernet data transceiver in FIG. 4 are represented by dashed boxes, indicating that they are not necessary modules for the AP to implement its functions in the embodiment of the present invention. In general, the AP also has functions beyond those described in the embodiments of the present invention that need to be implemented based on the memory 203 and/or the Ethernet data transceiver.
以上设备200包括的各组成模块所执行操作的具体实现方式可以参照图2以及图3对应的实施例的中由第一AP执行的对应步骤,本发明实施例不再赘述。For the specific implementation of the operations performed by the component modules included in the foregoing device 200, reference may be made to the corresponding steps performed by the first AP in the corresponding embodiments of FIG. 2 and FIG. 3, which are not repeatedly described in the embodiments of the present invention.
本发明实施例还提供一种切换AP的设备,该设备可作为WLAN中的AP。该设备包括:处理器以及收发器。The embodiment of the invention further provides a device for switching an AP, which can be used as an AP in a WLAN. The device includes a processor and a transceiver.
其中,收发器用于接收第一AP发送的切换指令,切换指令包括第一STA的标识.The transceiver is configured to receive a handover instruction sent by the first AP, where the handover instruction includes an identifier of the first STA.
处理器,与收发器耦合,用于:控制AP基于为第一STA生成的第一BSSID为第一STA提供服务。The processor is coupled to the transceiver, and is configured to: control the AP to provide service for the first STA based on the first BSSID generated for the first STA.
在一种可能的实现中,收发器还用于:接收第一STA发送的任一报文;In a possible implementation, the transceiver is further configured to: receive any message sent by the first STA;
处理器还用于:在收发器接收第一STA发送的任一报文后,生成切换成功消息;The processor is further configured to: after the transceiver receives any message sent by the first STA, generate a handover success message;
收发器还用于:向第一STA发送切换成功消息。The transceiver is further configured to: send a handover success message to the first STA.
在一种可能的实现中,处理器还用于:在收发器接收到切换指令后,生成需要第一STA返回报文的帧;In a possible implementation, the processor is further configured to: after the transceiver receives the handover instruction, generate a frame that requires the first STA to return a message;
收发器还用于:向第一AP发送该需要第一STA返回报文的帧。The transceiver is further configured to: send, to the first AP, the frame that needs the first STA to return a message.
以上AP包含包括的各组成模块所执行操作的具体实现方式可以参照图2对应的实施例的中由第二AP执行的对应步骤,本发明实施例不再赘述。For the specific implementation of the operations performed by the foregoing APs, the corresponding steps performed by the second AP in the embodiment of the present invention are not described herein.
本发明实施例还提供一种通信系统,该系统包括多个AP、多个STA。The embodiment of the invention further provides a communication system, which includes multiple APs and multiple STAs.
其中,多个AP中的第一AP用于:确定与第一AP连接的第一STA处于省电模式,并确定第一STA需要切换至与同一ESS中的第二AP连接;以及向第一STA发送唤醒帧,唤醒帧 用于使第一STA在第二AP发送信标帧时间处于苏醒状态;以及向第二AP发送切换指令,切换指令用于使第二AP基于为第一STA分配的第一BSSID为第一STA提供服务;The first AP of the multiple APs is configured to: determine that the first STA connected to the first AP is in a power saving mode, and determine that the first STA needs to switch to the second AP in the same ESS; and STA sends wake-up frame, wake-up frame And configured to: send, by the first STA, a beacon frame time to the second AP, and send a handover instruction, where the handover instruction is used to enable the second AP to be the first STA based on the first BSSID allocated for the first STA Provide services;
多个STA中的第一STA用于:接收唤醒帧,并根据唤醒帧在第二AP发送信标帧的时间保持苏醒状态;The first STA of the multiple STAs is configured to: receive the wake-up frame, and keep the awake state according to the wake-up frame when the second AP sends the beacon frame;
多个AP中的第二AP用于:接收第一AP发送的切换指令,切换指令包括第一STA的标识;并基于第一BSSID为第一STA提供服务。The second AP of the multiple APs is configured to: receive a handover instruction sent by the first AP, where the handover instruction includes an identifier of the first STA; and provide a service for the first STA based on the first BSSID.
在一种可能的实现中,第一AP向所述STA发送唤醒帧之前,确定自身的信标帧发送时间与所述第二AP的信标帧发送时间不同步。In a possible implementation, before the first AP sends the wake-up frame to the STA, it is determined that the beacon frame transmission time of the UE is not synchronized with the beacon frame transmission time of the second AP.
在一种可能的实现中,唤醒帧包括第一信标帧,该第一信标帧包括用于更新所述第一STA苏醒时间的字段,所述字段用于指示所述第一STA将苏醒时间调整至所述第二AP基于所述第一STA所对应的第一BSSID发送信标帧的时间。In a possible implementation, the wake-up frame includes a first beacon frame, the first beacon frame includes a field for updating the first STA wake-up time, the field is used to indicate that the first STA will wake up The time is adjusted to a time when the second AP sends a beacon frame based on the first BSSID corresponding to the first STA.
在一种可能的实现中,第一AP在向所述第一STA发送唤醒帧之前,确定接收到第二AP发送的第二信标帧的时间;根据自身的信标帧发送时间以及确定第二AP发送的第二信标帧的时间确定所述第一AP的信标帧发送时间与所述第二AP的信标帧发送时间之前的时间间隔;根据所述时间间隔确定所述用于更新所述第一STA苏醒时间的字段。In a possible implementation, the first AP determines the time of receiving the second beacon frame sent by the second AP before sending the wake-up frame to the first STA; sending time according to the beacon frame of the self and determining the first The time of the second beacon frame sent by the second AP determines a time interval before the beacon frame transmission time of the first AP and the beacon frame transmission time of the second AP; determining, according to the time interval, the The field of the first STA wakeup time is updated.
在一种可能的实现中,唤醒帧还包括:在所述第三信标帧之后发送的至少一个数据帧,所述至少一个数据帧用于使所述第一STA保持苏醒状态。In a possible implementation, the wake-up frame further includes: at least one data frame transmitted after the third beacon frame, the at least one data frame being used to keep the first STA in an awake state.
在一种可能的实现中,所述至少一个数据帧包括空数据帧。In one possible implementation, the at least one data frame includes a null data frame.
在一种可能的实现中,第二AP还用于:在接收第一STA发送的任一报文之后,向第一STA发送切换成功消息;In a possible implementation, the second AP is further configured to: after receiving any message sent by the first STA, send a handover success message to the first STA;
第一AP还用于:接收切换成功消息,并停止向第一STA发送唤醒帧。The first AP is further configured to: receive a handover success message, and stop sending the wake-up frame to the first STA.
在一种可能的实现中,通信系统还包括漫游控制器,用于为同一ESS中的每个STA分配唯一的BSSID,以使每个STA所连接的AP基于为STA分配的BSSID为STA提供服务。In a possible implementation, the communication system further includes a roaming controller, configured to allocate a unique BSSID to each STA in the same ESS, so that the AP connected to each STA serves the STA based on the BSSID allocated for the STA. .
在一种可能的实现中,第一AP以及第二AP还用于:向漫游控制器上报对第一STA的信号指标的监测值;In a possible implementation, the first AP and the second AP are further configured to: report, to the roaming controller, a monitoring value of the signal indicator of the first STA;
漫游控制器还用于:根据监测值确定第一STA达到漫游门限,并确定第二AP为目标AP,向第一AP发送切换触发指令;The roaming controller is further configured to: determine, according to the monitoring value, that the first STA reaches the roaming threshold, and determine that the second AP is the target AP, and send a handover triggering instruction to the first AP;
第一AP用于:确定第一STA达到漫游门限,并确定第二AP为目标AP,包括:接收切换触发指令,并根据切换触发指令确定第一STA达到漫游门限,并确定第二AP为目标AP。The first AP is configured to: determine that the first STA reaches the roaming threshold, and determine that the second AP is the target AP, including: receiving the handover triggering instruction, determining, according to the handover triggering instruction, that the first STA reaches the roaming threshold, and determining that the second AP is the target AP.
以上系统包括的各设备所执行操作的具体实现方式可以参照图2以及图3对应的实施例的中的对应步骤,本发明实施例不再赘述。For the specific implementation of the operations performed by the devices included in the above system, reference may be made to the corresponding steps in the embodiments of FIG. 2 and FIG. 3, which are not described in detail in the embodiments of the present invention.
本发明实施例还提供一种WLAN中切换AP的装置,该WLAN包括多个AP、多个STA。参照图5,所述装置包括:The embodiment of the invention further provides an apparatus for switching an AP in a WLAN, where the WLAN includes multiple APs and multiple STAs. Referring to Figure 5, the apparatus includes:
第一确定模块301,用于确定与所述装置连接的STA处于省电模式,其中,所述装置基于所述STA所对应的BSSID为所述STA提供服务,所述STA所对应的BSSID与和所述STA在同一ESS中的任意其他STA所对应的BSSID不同;The first determining module 301 is configured to determine that the STA connected to the device is in a power saving mode, where the device provides a service for the STA based on a BSSID corresponding to the STA, and the BSSID and the corresponding to the STA The BSSID corresponding to any STA of the STA in the same ESS is different;
第二确定模块302,用于确定所述ESS内的第二AP为目标AP,所述目标AP为所述STA切换后连接的AP; The second determining module 302 is configured to determine that the second AP in the ESS is a target AP, and the target AP is an AP that is connected after the STA is switched;
第一发送模块303,用于向所述STA发送唤醒帧,所述唤醒帧用于指示所述STA在所述第二AP基于所述STA所对应的BSSID发送信标帧时处于苏醒状态;The first sending module 303 is configured to send a wake-up frame to the STA, where the wake-up frame is used to indicate that the STA is in an awake state when the second AP sends a beacon frame based on the BSSID corresponding to the STA;
第二发送模块304,用于向所述第二AP发送切换指令,所述切换指令用于指示所述第二AP基于所述STA所对应的BSSID为所述STA提供服务;The second sending module 304 is configured to send a handover instruction to the second AP, where the handover instruction is used to indicate that the second AP provides a service for the STA based on a BSSID corresponding to the STA;
停止服务模块305,用于在所述第二发送模块发送所述切换指令后,停止为所述STA提供服务。The stop service module 305 is configured to stop providing services for the STA after the second sending module sends the switching instruction.
在一种可能的实现中,所述唤醒帧包括第一信标帧,所述第一信标帧包括用于更新所述STA苏醒时间的字段,所述用于更新所述STA苏醒时间的字段用于指示所述STA将苏醒时间调整至所述第二AP基于所述STA所对应的BSSID发送信标帧的时间。In a possible implementation, the wake-up frame includes a first beacon frame, the first beacon frame includes a field for updating the STA wake-up time, and the field for updating the STA wake-up time And configured to instruct the STA to adjust an awake time to a time when the second AP sends a beacon frame based on a BSSID corresponding to the STA.
在一种可能的实现中,所述装置还包括:In a possible implementation, the device further includes:
第三确定模块306,用于在所述第一发送模块发送所述唤醒帧之前,确定接收到所述第二AP发送的第二信标帧的时间;并根据自身的信标帧发送时间以及接收到所述第二信标帧的所述时间确定所述装置的信标帧发送时间与所述第二AP的信标帧发送时间之前的时间间隔;并根据所述时间间隔确定所述用于更新所述STA苏醒时间的字段。The third determining module 306 is configured to determine, before the first sending module sends the wake-up frame, a time for receiving the second beacon frame sent by the second AP, and send the time according to the beacon frame of the The time at which the second beacon frame is received determines a time interval before a beacon frame transmission time of the apparatus and a beacon frame transmission time of the second AP; and determining the use according to the time interval. The field for updating the STA wakeup time.
在一种可能的实现中,所述唤醒帧包括第三信标帧,所述第三信标帧包括指示所述STA保持苏醒状态的字段。In one possible implementation, the wake-up frame includes a third beacon frame, the third beacon frame including a field indicating that the STA remains awake.
在一种可能的实现中,所述唤醒帧还包括:在所述第三信标帧之后发送的至少一个数据帧,所述至少一个数据帧用于使所述STA保持苏醒状态。In a possible implementation, the wake-up frame further includes: at least one data frame sent after the third beacon frame, the at least one data frame is used to keep the STA in an awake state.
在一种可能的实现中,所述至少一个数据帧包括空数据帧。In one possible implementation, the at least one data frame includes a null data frame.
以上装置包括的各组成模块所执行操作的具体实现方式可以参照图2以及图3对应的实施例的中由第一AP执行的对应步骤,本发明实施例不再赘述。For the specific implementation of the operations performed by the various components of the foregoing apparatus, reference may be made to the corresponding steps performed by the first AP in the embodiments of FIG. 2 and FIG. 3, which are not described in detail in the embodiments of the present invention.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包括有程序代码的计算机可读存储介质(包括但不限于磁性存储器、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer readable storage medium (including but not limited to magnetic memory, optical memory, etc.) including program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的范围。这样,倘若本发明的这些修改和变型属于本发明权利要求的范围之内,则本发明也意图包括这些改动和变型在内。 It will be apparent to those skilled in the art that various modifications and changes can be made in the present invention without departing from the scope of the invention. Thus, it is intended that the present invention cover the modifications and the modifications thereof

Claims (18)

  1. 一种无线局域网(WLAN)中切换接入点(AP)的方法,其特征在于,所述方法包括:A method for switching an access point (AP) in a wireless local area network (WLAN), the method comprising:
    第一AP确定与所述第一AP连接的站点(STA)处于省电模式,其中,所述第一AP为多个AP中的一个AP,所述第一AP基于所述STA所对应的基本服务集标识符(BSSID)为所述STA提供服务,所述STA所对应的BSSID与和所述STA在同一扩展服务集(ESS)中的任意其他STA所对应的BSSID不同;The first AP determines that the station (STA) connected to the first AP is in a power saving mode, where the first AP is one of the multiple APs, and the first AP is based on the basic corresponding to the STA a service set identifier (BSSID) serving the STA, the BSSID corresponding to the STA being different from the BSSID corresponding to any STA of the STA in the same extended service set (ESS);
    所述第一AP确定所述多个AP中在所述ESS内的第二AP为目标AP,所述目标AP为所述STA切换后连接的AP;The first AP determines that the second AP in the ESS is the target AP, and the target AP is the AP that is connected after the STA is switched;
    所述第一AP向所述STA发送唤醒帧,所述唤醒帧用于指示所述STA在所述第二AP基于所述STA所对应的BSSID发送信标帧时处于苏醒状态;The first AP sends a wake-up frame to the STA, where the wake-up frame is used to indicate that the STA is in an awake state when the second AP sends a beacon frame based on the BSSID corresponding to the STA;
    所述第一AP向所述第二AP发送切换指令,所述切换指令用于指示所述第二AP基于所述STA所对应的BSSID为所述STA提供服务;The first AP sends a handover instruction to the second AP, where the handover instruction is used to indicate that the second AP provides a service for the STA based on a BSSID corresponding to the STA;
    所述第一AP发送所述切换指令后,停止为所述STA提供服务。After the first AP sends the handover command, the first AP stops providing services for the STA.
  2. 如权利要求1所述的方法,其特征在于,所述唤醒帧包括第一信标帧,所述第一信标帧包括用于更新所述STA苏醒时间的字段,所述用于更新所述STA苏醒时间的字段用于指示所述STA将苏醒时间调整至所述第二AP基于所述STA所对应的BSSID发送信标帧的时间。The method of claim 1, wherein the wake-up frame comprises a first beacon frame, the first beacon frame comprising a field for updating the STA wake-up time, the The STA wake-up time field is used to instruct the STA to adjust the wake-up time to the time when the second AP sends a beacon frame based on the BSSID corresponding to the STA.
  3. 如权利要求2所述的方法,其特征在于,在所述第一AP向所述STA发送唤醒帧之前,所述方法还包括:The method of claim 2, wherein before the first AP sends a wake-up frame to the STA, the method further includes:
    所述第一AP确定接收到所述第二AP发送的第二信标帧的时间;Determining, by the first AP, a time when the second beacon frame sent by the second AP is received;
    所述第一AP根据自身的信标帧发送时间以及接收到所述第二信标帧的所述时间确定所述第一AP的信标帧发送时间与所述第二AP的信标帧发送时间之前的时间间隔;Determining, by the first AP, a beacon frame transmission time of the first AP and a beacon frame transmission of the second AP according to the beacon frame transmission time of the UE and the time of receiving the second beacon frame. Time interval before time;
    所述第一AP根据所述时间间隔确定所述用于更新所述STA苏醒时间的字段。The first AP determines, according to the time interval, the field used to update the STA wakeup time.
  4. 如权利要求1所述的方法,其特征在于,所述唤醒帧包括第三信标帧,所述第三信标帧包括指示所述STA保持苏醒状态的字段。The method of claim 1 wherein the wake-up frame comprises a third beacon frame, the third beacon frame comprising a field indicating that the STA remains awake.
  5. 如权利要求4所述的方法,其特征在于,所述唤醒帧还包括:在所述第三信标帧之后发送的至少一个数据帧,所述至少一个数据帧用于使所述STA保持苏醒状态。The method of claim 4, wherein the wake-up frame further comprises: at least one data frame transmitted after the third beacon frame, the at least one data frame being used to keep the STA awake status.
  6. 如权利要求5所述的方法,其特征在于,所述至少一个数据帧包括空数据帧。The method of claim 5 wherein said at least one data frame comprises a null data frame.
  7. 一种无线局域网(WLAN)中切换接入点(AP)的设备,所述设备作为所述WLAN中的第一AP,其特征在于,所述设备包括:A device for switching an access point (AP) in a wireless local area network (WLAN), the device being the first AP in the WLAN, wherein the device includes:
    第一确定模块,用于确定与所述设备连接的站点(STA)处于省电模式,其中,所述设备基于所述STA所对应的基本服务集标识符(BSSID)为所述STA提供服务,所述STA所对应的BSSID与和所述STA在同一扩展服务集(ESS)中的任意其他STA所对应的BSSID不同;a first determining module, configured to determine that a station (STA) connected to the device is in a power saving mode, where the device provides a service for the STA based on a basic service set identifier (BSSID) corresponding to the STA, The BSSID corresponding to the STA is different from the BSSID corresponding to any STA of the STA in the same extended service set (ESS);
    第二确定模块,用于确定所述ESS内的第二AP为目标AP,所述目标AP为所述STA切换后连接的AP;a second determining module, configured to determine that the second AP in the ESS is a target AP, and the target AP is an AP that is connected after the STA is switched;
    第一发送模块,用于向所述STA发送唤醒帧,所述唤醒帧用于指示所述STA在所述第二AP基于所述STA所对应的BSSID发送信标帧时处于苏醒状态; a first sending module, configured to send a wake-up frame to the STA, where the wake-up frame is used to indicate that the STA is in an awake state when the second AP sends a beacon frame based on a BSSID corresponding to the STA;
    第二发送模块,用于向所述第二AP发送切换指令,所述切换指令用于指示所述第二AP基于所述STA所对应的BSSID为所述STA提供服务;a second sending module, configured to send a handover instruction to the second AP, where the handover instruction is used to indicate that the second AP provides a service for the STA based on a BSSID corresponding to the STA;
    停止服务模块,用于在所述第二发送模块发送所述切换指令后,停止为所述STA提供服务。The service module is configured to stop providing service to the STA after the second sending module sends the switching instruction.
  8. 如权利要求7所述的设备,其特征在于,所述唤醒帧包括第一信标帧,所述第一信标帧包括用于更新所述STA苏醒时间的字段,所述用于更新所述STA苏醒时间的字段用于指示所述STA将苏醒时间调整至所述第二AP基于所述STA所对应的BSSID发送信标帧的时间。The device of claim 7, wherein the wake-up frame comprises a first beacon frame, the first beacon frame comprising a field for updating the STA wake-up time, the The STA wake-up time field is used to instruct the STA to adjust the wake-up time to the time when the second AP sends a beacon frame based on the BSSID corresponding to the STA.
  9. 如权利要求8所述的设备,其特征在于,所述设备还包括:The device according to claim 8, wherein the device further comprises:
    第三确定模块,用于在所述第一发送模块发送所述唤醒帧之前,确定接收到所述第二AP发送的第二信标帧的时间;并根据自身的信标帧发送时间以及接收到所述第二信标帧的所述时间确定所述设备的信标帧发送时间与所述第二AP的信标帧发送时间之前的时间间隔;并根据所述时间间隔确定所述用于更新所述STA苏醒时间的字段。a third determining module, configured to determine, before the first sending module sends the wake-up frame, a time for receiving the second beacon frame sent by the second AP; and sending time and receiving according to the beacon frame of the first Determining, by the time interval to the second beacon frame, a time interval before a beacon frame transmission time of the device and a beacon frame transmission time of the second AP; and determining, according to the time interval, the Update the field of the STA wakeup time.
  10. 如权利要求7所述的设备,其特征在于,所述唤醒帧包括第三信标帧,所述第三信标帧包括指示所述STA保持苏醒状态的字段。The device of claim 7, wherein the wake-up frame comprises a third beacon frame, the third beacon frame comprising a field indicating that the STA remains awake.
  11. 如权利要求10所述的设备,其特征在于,所述唤醒帧还包括:在所述第三信标帧之后发送的至少一个数据帧,所述至少一个数据帧用于使所述STA保持苏醒状态。The device of claim 10, wherein the wake-up frame further comprises: at least one data frame transmitted after the third beacon frame, the at least one data frame being used to keep the STA awake status.
  12. 如权利要求11所述的设备,其特征在于,所述至少一个数据帧包括空数据帧。The device of claim 11 wherein said at least one data frame comprises a null data frame.
  13. 一种接入点(AP),所述AP包括:An access point (AP), the AP includes:
    处理器,用于:确定与所述AP连接的站点(STA)处于省电模式,其中,所述AP基于所述STA所对应的基本服务集标识符(BSSID)为所述STA提供服务,所述STA所对应的BSSID与和所述STA在同一扩展服务集(ESS)中的任意其他STA所对应的BSSID不同;确定在所述ESS内的另一AP为目标AP,所述目标AP为所述STA切换后连接的AP;生成唤醒帧,所述唤醒帧用于指示所述STA在所述另一AP基于所述STA所对应的BSSID发送信标帧时处于苏醒状态;生成切换指令,所述切换指令用于指示所述另一AP基于所述STA所对应的BSSID为所述STA提供服务;a processor, configured to: determine that a station (STA) connected to the AP is in a power saving mode, where the AP provides a service for the STA based on a basic service set identifier (BSSID) corresponding to the STA, where The BSSID corresponding to the STA is different from the BSSID corresponding to the STA in the same extended service set (ESS); the other AP in the ESS is the target AP, and the target AP is the An AP connected after the STA is switched; generating a wake-up frame, where the wake-up frame is used to indicate that the STA is in an awake state when the another AP sends a beacon frame based on the BSSID corresponding to the STA; generating a handover command, where The switching instruction is used to indicate that the another AP provides a service for the STA based on a BSSID corresponding to the STA;
    收发器,与所述处理器耦合,用于:向所述STA发送所述唤醒帧;以及向所述另一AP发送所述切换指令。a transceiver coupled to the processor, configured to: send the wake-up frame to the STA; and send the handover instruction to the another AP.
  14. 如权利要求13所述的AP,其特征在于,所述唤醒帧包括第一信标帧,所述第一信标帧包括用于更新所述STA苏醒时间的字段,所述用于更新所述STA苏醒时间的字段用于指示所述STA将苏醒时间调整至所述另一AP基于所述STA所对应的BSSID发送信标帧的时间。The AP of claim 13, wherein the wake-up frame comprises a first beacon frame, the first beacon frame comprising a field for updating the STA wake-up time, the The STA wake-up time field is used to instruct the STA to adjust the wake-up time to the time when the another AP sends a beacon frame based on the BSSID corresponding to the STA.
  15. 如权利要求14所述的AP,其特征在于,所述收发器还用于:接收所述另一AP发送的第二信标帧;The AP according to claim 14, wherein the transceiver is further configured to: receive a second beacon frame sent by the another AP;
    所述处理器还用于:确定所述收发器接收到所述第二信标帧的时间,并根据所述AP的信标帧发送时间以及所述收发器接收到所述第二信标帧的所述时间确定所述AP的信标帧发送时间与所述另一AP的信标帧发送时间之前的时间间隔;并根据所述时间间隔确定所述用于更新所述STA苏醒时间的字段。 The processor is further configured to: determine a time when the transceiver receives the second beacon frame, and according to a beacon frame transmission time of the AP, and the transceiver receives the second beacon frame Determining a time interval before a beacon frame transmission time of the AP and a beacon frame transmission time of the another AP; and determining, according to the time interval, the field for updating the STA wake time .
  16. 如权利要求13所述的AP,其特征在于,所述唤醒帧包括第三信标帧,所述第三信标帧包括指示所述STA保持苏醒状态的字段。The AP of claim 13, wherein the wake-up frame comprises a third beacon frame, the third beacon frame comprising a field indicating that the STA remains awake.
  17. 如权利要求16所述的AP,其特征在于,所述唤醒帧还包括:在所述第三信标帧之后发送的至少一个数据帧,所述至少一个数据帧用于使所述STA保持苏醒状态。The AP according to claim 16, wherein said wake-up frame further comprises: at least one data frame transmitted after said third beacon frame, said at least one data frame being used to keep said STA awake status.
  18. 如权利要求17所述的设备,其特征在于,所述至少一个数据帧包括空数据帧。 The device of claim 17 wherein said at least one data frame comprises an empty data frame.
PCT/CN2017/081435 2016-04-29 2017-04-21 Method and apparatus for switching access point in wireless local area network WO2017186059A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610289641.2 2016-04-29
CN201610289641.2A CN107333307B (en) 2016-04-29 2016-04-29 Method and equipment for switching access points in wireless local area network

Publications (1)

Publication Number Publication Date
WO2017186059A1 true WO2017186059A1 (en) 2017-11-02

Family

ID=60160753

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/081435 WO2017186059A1 (en) 2016-04-29 2017-04-21 Method and apparatus for switching access point in wireless local area network

Country Status (2)

Country Link
CN (1) CN107333307B (en)
WO (1) WO2017186059A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429299A (en) * 2017-07-11 2019-03-05 珠海市魅族科技有限公司 Communication means and communication device, the communication equipment of WLAN
EP3799455A4 (en) * 2018-05-21 2022-03-16 ZTE Corporation Roaming method, access point, and access point collaborative work controller

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181955B (en) 2011-10-18 2020-03-24 Lg 电子株式会社 Intra-frame prediction method and apparatus thereof
KR101976576B1 (en) * 2017-11-23 2019-05-09 (주)에프씨아이 Method And Apparatus for Saving Power in Wireless LAN
CN109922506A (en) * 2017-12-13 2019-06-21 中兴通讯股份有限公司 Switching method, AP and AP collaborative work controller between AP
CN108449755A (en) * 2018-04-03 2018-08-24 新华三技术有限公司 A kind of terminal access method and device
CN108696324B (en) * 2018-05-29 2021-06-18 新华三技术有限公司 Link quality detection method and device and wireless access equipment
US11889418B2 (en) 2018-06-22 2024-01-30 Lg Electronics Inc. Method and device for receiving WUR discovery frame in wireless LAN system
CN113543289B (en) * 2020-04-22 2023-12-15 瑞昱半导体股份有限公司 Communication device and method for dynamically adjusting wake-up time
WO2023028891A1 (en) * 2021-08-31 2023-03-09 Oppo广东移动通信有限公司 Data transmission method and apparatus, and device and storage medium
CN115884098A (en) * 2021-09-29 2023-03-31 华为技术有限公司 Terminal control method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080090573A1 (en) * 2006-10-16 2008-04-17 Samsung Electronics Co., Ltd. Method and apparatus for performing handover of user equipment (ue) during discontinuous reception (drx) operation in mobile communication system
WO2014161508A1 (en) * 2013-04-04 2014-10-09 Huawei Technologies Co., Ltd. Device,network,and method for utilizing a downlink discovery reference signal
CN105357728A (en) * 2015-11-28 2016-02-24 广东欧珀移动通信有限公司 Network type switching method, device and mobile terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8045922B2 (en) * 2007-11-23 2011-10-25 Texas Instruments Incorporated Apparatus for and method of bluetooth and wireless local area network coexistence using a single antenna in a collocated device
CN101583151B (en) * 2009-07-02 2013-01-09 杭州华三通信技术有限公司 Method of STA roaming in WLAN network and device
CN103533653A (en) * 2012-07-06 2014-01-22 杭州华三通信技术有限公司 Method and device for solving the problem of hidden nodes in local area network
CN103167586B (en) * 2013-03-01 2015-08-12 北京傲天动联技术股份有限公司 A kind of access of the wireless terminal based on AP cluster and reselecting method
CN103702375A (en) * 2013-12-25 2014-04-02 北京邮电大学 Method and system for switching WTRU (wireless transmit receive unit) in WLAN (wireless logic area network) by using cellular network
CN103945361B (en) * 2014-04-22 2018-05-22 福建星网锐捷网络有限公司 Processing method, system and the wireless access point that website roams in WLAN
CN104853391A (en) * 2015-03-17 2015-08-19 杭州华三通信技术有限公司 Terminal wake-up method and access point AP

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080090573A1 (en) * 2006-10-16 2008-04-17 Samsung Electronics Co., Ltd. Method and apparatus for performing handover of user equipment (ue) during discontinuous reception (drx) operation in mobile communication system
WO2014161508A1 (en) * 2013-04-04 2014-10-09 Huawei Technologies Co., Ltd. Device,network,and method for utilizing a downlink discovery reference signal
CN105357728A (en) * 2015-11-28 2016-02-24 广东欧珀移动通信有限公司 Network type switching method, device and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429299A (en) * 2017-07-11 2019-03-05 珠海市魅族科技有限公司 Communication means and communication device, the communication equipment of WLAN
EP3799455A4 (en) * 2018-05-21 2022-03-16 ZTE Corporation Roaming method, access point, and access point collaborative work controller

Also Published As

Publication number Publication date
CN107333307A (en) 2017-11-07
CN107333307B (en) 2020-06-16

Similar Documents

Publication Publication Date Title
WO2017186059A1 (en) Method and apparatus for switching access point in wireless local area network
US10542490B2 (en) Method and apparatus for controlling communication of a portable terminal in a wireless communication system
US11191020B2 (en) Terminal state conversion method and apparatus
EP3515150B1 (en) Managing wireless communications
EP2827662B1 (en) Method and device for resource allocation
US10554763B2 (en) Method and apparatus for virtual base station migration in BBU pool
EP2728764B1 (en) Synchronous access method, and communication device and system in frequency hopping radio communication
TWI559802B (en) Method, device and system for determining connection state auxiliary parameters
EP2846589B1 (en) Discontinuous reception configuration method of user equipment, base station and system
KR20180121963A (en) A method for establishing uplink semi-persistent scheduling,
KR20170067774A (en) Method and apparatus to improve wireless device performance
JP5466580B2 (en) Wireless communication system and intermittent transmission method
US20210352732A1 (en) Early-data-transmission and radio access network notification area update
US20150078239A1 (en) Power saving in wireless network entities
WO2017193947A1 (en) Cell operation method, device, and storage medium
Ramanna et al. Towards understanding and enhancing association and long sleep in low-power wifi iot systems
CN111436119B (en) DRX transmission method and related equipment
US9089004B2 (en) Network with subnets being connectable via bridge terminals
US20230413366A1 (en) User equipment and base station involved in transmission of small data
EP3944717A1 (en) User equipment and base station involved in transmission of small data
EP3657872B1 (en) Path switching method and related equipment
JP2014236374A (en) Repeater device and repeater sleep control method
US20230413340A1 (en) Transceiver device and scheduling device involved in transmission of small data
CN117676723A (en) Communication method and device
CN115499919A (en) Method, terminal and network equipment for configuring interval

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17788711

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17788711

Country of ref document: EP

Kind code of ref document: A1