[go: up one dir, main page]

CN107333307A - A method and device for switching access points in a wireless local area network - Google Patents

A method and device for switching access points in a wireless local area network Download PDF

Info

Publication number
CN107333307A
CN107333307A CN201610289641.2A CN201610289641A CN107333307A CN 107333307 A CN107333307 A CN 107333307A CN 201610289641 A CN201610289641 A CN 201610289641A CN 107333307 A CN107333307 A CN 107333307A
Authority
CN
China
Prior art keywords
sta
beacon frame
wake
time
bssid
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201610289641.2A
Other languages
Chinese (zh)
Other versions
CN107333307B (en
Inventor
叶苏昌
季标
王云贵
张�林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610289641.2A priority Critical patent/CN107333307B/en
Priority to PCT/CN2017/081435 priority patent/WO2017186059A1/en
Publication of CN107333307A publication Critical patent/CN107333307A/en
Application granted granted Critical
Publication of CN107333307B publication Critical patent/CN107333307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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. Transmission Power Control [TPC] 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. Transmission Power Control [TPC] 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

Landscapes

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

Abstract

Switch the method and apparatus of access point in a kind of WLAN, for enabling the STA in battery saving mode to carry out AP switchings.This method includes:First AP determines the STA that is connected with the first AP in battery saving mode, wherein, the first AP provides service based on the BSSID corresponding to the STA for the STA, the BSSID corresponding to the STA from and other any STA in same ESS of STA corresponding to BSSID it is different;First AP determines that the 2nd AP in same ESS switches latter linked target AP for the STA;First AP sends wake-up association to the STA, and the wake-up association is used to indicate that the STA is in wake states when the 2nd AP sends beacon frame based on the BSSID corresponding to the STA;First AP sends switching command to the 2nd AP, and the switching command is used to indicate that the 2nd AP provides service based on the BSSID corresponding to the STA for the STA.

Description

一种无线局域网中切换接入点的方法及设备A method and device for switching access points in a wireless local area network

技术领域technical field

本发明涉及通信技术领域,特别涉及一种无线局域网WLAN中切换接入点AP的方法及设备。The invention relates to the field of communication technology, in particular to a method and equipment 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 (English: wireless local area networks, WLAN) system, a terminal needs to be connected to an access point (English: access point, AP), and transmit and receive data through the AP. During the communication process, the signal between the terminal and the currently connected AP may become poor. For example, when the distance between the terminal and the first currently connected AP becomes longer, the signal between them becomes poor. When the signal quality between the terminal and the first AP currently connected is lower than the threshold, the terminal will initiate an association request to the second AP with better signal, and switch from connecting with the first AP to connecting with the second AP. The above process It can be called terminal roaming.

终端通常会在没有数据收发时进入省电模式(英文:power save mode),进入省电模式后,终端只是周期性地打开射频模块以收发数据。在终端的射频模块关闭期间,终端无法主动发起漫游。而在终端打开射频模块时,终端与原连接的AP的链路可能已经劣化到无法正常通信,终端只能重新与WLAN中的AP进行关联,不仅会耽误终端的通信需求,而且在原连接的AP为该终端缓存有数据时,STA也将无法收到这些数据,造成数据丢失。The terminal usually enters a power save mode (English: power save mode) when there is no data to send and receive. After entering the power save mode, the terminal only turns on the radio frequency module periodically to send and receive data. When the radio frequency module of the terminal is turned off, the terminal cannot actively initiate roaming. When the terminal turns on the radio frequency module, the link between the terminal and the originally connected AP may have deteriorated to the point that it cannot communicate normally, and the terminal can only re-associate with the AP in the WLAN. When there is data buffered for the terminal, the STA will not be able to receive the data, resulting in data loss.

发明内容Contents of the invention

本申请提供一种无线局域网中切换接入点的方法及设备,用于使处于省电模式的终端能够成功进行AP切换。The present application provides a method and device for switching an access point in a wireless local area network, which are used to enable a terminal in a power saving mode to successfully switch between APs.

第一方面,本申请提供一种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 APs in a WLAN. In the WLAN system to which the method is applied, each STA in an extended service set (English: 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, and the AP in the ESS provides services for the STAs based on the BSSIDs assigned to the STAs. After the first AP determines that the STA it is connected to 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, on the one hand, it sends a wake-up frame to the STA, indicating that the STA is in the second AP. The AP is awake when sending beacon frames based on the BSSID assigned to the STA. On the other hand, the first AP sends a switching instruction to the second AP, instructing the second AP to provide services for the STA based on the BSSID allocated for the STA. After sending the wake-up frame to the STA and the switching instruction to the second AP, the first AP stops providing services for the STA.

上述STA所连接AP发生切换的过程由AP执行,因此,即使在该STA处于省电模式且关闭射频模块的情况下,该STA的AP切换也可以正常进行,保证该STA在打开射频模块后,能够通过ESS中的AP进行通信,且由于STA能够切换连接信号较佳的AP,STA的通信质量较佳The AP switching process of the above-mentioned STA connected to the AP is performed by the AP. Therefore, even if the STA is in the power saving mode and the radio frequency module is turned off, the AP switching of the STA can also be performed normally, ensuring that the STA turns on the radio frequency module. Can communicate through the AP in the ESS, and because the STA can switch to the AP with better connection signal, the communication quality of the STA is better

在一个可选的实现中,第一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 the first AP determines that the STA is in the power-saving mode and that the STA needs to be connected to the second AP, the first AP first judges whether its own beacon frame transmission time is different from that of the second AP's beacon frame. Whether the sending time is synchronized, if the two are synchronized, the first AP may omit 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 not only sends a wake-up frame to the STA, but also sends a switching instruction to the second AP to ensure that the STA The second AP is in an awake state when sending the beacon frame based on the BSSID allocated to the STA, so that the STA can receive the beacon frame sent by the second AP. This implementation can reduce the sending of wake-up frames when the timing of sending beacon frames by the first AP and the second AP is synchronized, saving transmission resources and reducing time-consuming AP switching.

在一个可选的实现中,该唤醒帧包括第一信标帧,该第一信标帧包括用于指示该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, and the first beacon frame includes a message for instructing the STA to adjust the wake-up time to the second AP sending a beacon frame based on the BSSID allocated for the STA. time field. For example, the time stamp field included in the first beacon frame is used to instruct the STA to synchronize the local time with the time of the second AP. In this way, the wake-up time of the STA is synchronized with the sending time of the beacon frame of the second AP, so that the STA The STA can receive the beacon frame sent by the second AP to the STA based on the BSSID allocated for the STA.

在一个可选的实现中,第一AP在向该STA发送包括用于指示该STA将苏醒时间调整至第二AP基于为该STA分配的BSSID发送信标帧的时间的字段的唤醒帧之前,先确定第一AP的信标帧发送时间与所述第二AP的信标帧发送时间之前的时间间隔,该时间间隔的确定方式可以为:所述第一AP确定接收到第二AP发送的第二信标帧的时间;所述第一AP根据自身的信标帧发送时间以及接收到该第二信标帧的时间确定第一AP的信标帧发送时间与第二AP的信标帧发送时间之前的时间间隔。在确定该时间间隔后,第一AP根据该时间间隔确定该用于更新STA苏醒时间的字段。In an optional implementation, before the first AP sends to the STA a wake-up frame including a field for instructing the STA to adjust the wake-up time to the time when the second AP sends a beacon frame based on the BSSID allocated for the STA, First determine the time interval between the beacon frame sending time of the first AP and the beacon frame sending time of the second AP, the method of determining the time interval may be: the first AP determines to receive the second AP sent The time of the second beacon frame; the first AP determines the beacon frame transmission time of the first AP and the beacon frame of the second AP according to its own beacon frame transmission time and the time of receiving the second beacon frame Time interval before 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, and the third beacon frame includes a field indicating that the STA remains in the wake-up state. Wherein, the STA being in the awake state may mean that the STA is in the active mode, or the STA is in the power saving mode and has entered (for example, entered according to the listening interval) the awake state. A STA in the awake state turns on its radio frequency module. For example, the data to be transmitted indication information (English: delivery traffic indication message, DTIM) field in the third beacon frame is set to 1. In some implementations, the AP and the STA agree that after the STA receives the beacon frame with the DTIM field set to 1, to switch from power saving mode to active mode. In some other implementation manners, the AP and the STA agree that after the STA receives the beacon frame in which the DTIM field is 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, the DTIM field in the third beacon frame is set to 1, the STA sends an election (English: poll) frame to the first AP, and the first AP receives the poll frame , but does not send data to the STA, the STA will remain awake until it receives data or a beacon frame sent by the connected AP.

在一个可选的实现中,第一AP在向该STA发送指示该STA处于苏醒状态的第三信标帧后,向该STA发送1个或多个数据帧,该数据帧可以为不包含传输数据的空数据帧。例如,在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 the third beacon frame indicating that the STA is in the awake state to the STA, it sends one or more data frames to the STA, and the data frames may not contain transmission An empty dataframe of data. For example, when the STA is in the wake-up state of 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 remains awake 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. After receiving the data frame, the STA will restart the countdown to enter 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 the beacon frame indicating that the STA is in the awake state, the plurality of data frames for enabling the STA to maintain the awake state sent to the STA may include an empty data frame. Even if the first AP does not cache the data frame of the STA, the first AP can also send an empty data frame to the STA, and the "More Data" field of the empty data frame is set to 1, indicating that the first AP has cached the data frame of the STA to deceive STA keeps it awake.

在一个可选的实现中,第二AP在确认与该STA连接成功后,向第一AP发送切换成功消息,第一AP接收该切换成功消息后,停止为该STA发送该唤醒帧。In an optional implementation, after confirming that the connection with the STA is successful, the second AP sends a handover success message to the first AP, and the first AP stops sending the wake-up frame for the STA after receiving the handover success message.

第二方面,本申请提供一种WLAN中切换AP的设备,该设备用于执行上述第一方面或第一方面的任意可能的实现中的方法。具体的,该设备包括用于执行上述第一方面或第一方面的任意可能的实现中的方法的模块。In a second aspect, the present application provides a device for switching APs in a WLAN, and the device is configured to execute the method in the above first aspect or any possible implementation of the first aspect. Specifically, the device includes a module for performing the method in the foregoing first aspect or any possible implementation of the first aspect.

第三方面,本申请提供一种WLAN中切换AP的设备,该设备用于执行上述第一方面或第一方面的任意可能的实现中的方法。具体的,该设备包括处理器以及收发器,该处理器与收发器耦合。该收发器用于与WLAN中的其他网元进行通信,该处理器用于通过收发器执行上述第一方面或第一方面的任意可能的实现中的方法。In a third aspect, the present application provides a device for switching APs in a WLAN, and the device is configured to execute the method in the first aspect or any possible implementation of the first aspect. Specifically, the device includes a processor and a transceiver, and the processor is coupled with the transceiver. The transceiver is used to communicate with other network elements in the WLAN, and the processor is used to execute the method in the above first aspect or any possible implementation of the first aspect through the transceiver.

第四方面,本申请提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现中的方法的指令。In a fourth aspect, the present application provides a computer-readable medium for storing a computer program, and the computer program includes instructions for executing the method in the first aspect or any possible implementation of the first aspect.

本发明在上述各方面提供的实现的基础上,还可以进行进一步组合以提供更多实现。On the basis of the implementations provided by the above aspects, the present invention can be further combined to provide more implementations.

附图说明Description of drawings

为了更清楚地说明本申请中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in this application more clearly, the accompanying drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. Ordinary technicians can also obtain other drawings based on these drawings without paying creative labor.

图1为本发明实施例中通信系统的一种可能实现方式的示意图;FIG. 1 is a schematic diagram of a possible implementation of a communication system in an embodiment of the present invention;

图2为本发明实施例中切换AP的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for switching APs in an embodiment of the present invention;

图3为本发明实施例中切换AP的方法的另一流程示意图;FIG. 3 is another schematic flowchart of a method for switching APs in an embodiment of the present invention;

图4为本发明实施例中一种WLAN中切换AP的设备的结构示意图;FIG. 4 is a schematic structural diagram of a device for switching APs in a WLAN according to an embodiment of the present invention;

图5为本发明实施例中另一WLAN中切换AP的设备的结构示意图。FIG. 5 is a schematic structural diagram of a device for switching APs 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 drawings and specific embodiments. The embodiments of the present invention and specific features in the embodiments are detailed descriptions of the technical solutions of the present invention, rather than limitations to the technical solutions of the present invention. In the case of no conflict, the embodiments of the present invention and the technical features in the embodiments may be combined with each other.

在WLAN通信中,STA需要与一个AP连接,由连接的AP负责为STA进行数据转发。在STA与当前连接的AP之间的信号较差时,STA需要切换至信号更好的AP,以保证STA的数据通信的正常进行。通常由STA在检测到与AP之间的链路劣化到一定程度后发起漫游,进行AP切换。In WLAN communication, a 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 an AP with better signal to ensure normal data communication of the STA. Usually, after the STA detects that the link with the AP has degraded to a certain extent, it initiates roaming 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 turns on the radio frequency module periodically to send and receive data. When the STA's radio module is turned off, the STA cannot actively initiate roaming. However, when the STA turns on the radio frequency module, the link between the STA and the originally connected AP may have deteriorated to the point that it cannot communicate normally, and the STA can only re-associate with the AP in the WLAN. When the STA caches data, the STA will not be able to receive the data, resulting in data loss.

为了解决处于省电模式的STA难以进行AP切换的问题,本发明实施例提供一种AP切换方法,在STA处于省电模式时,由AP来负责进行STA所连接AP的切换,这样,即使在STA关闭射频模块的情况下,STA所连接AP的切换仍然能够完成。In order to solve the problem that it is difficult for a STA in power-saving mode to switch between APs, an embodiment of the present invention provides an AP switching method. When the STA is in power-saving mode, the AP is responsible for switching the AP to which the STA is connected. When the STA turns off the radio module, the handover of the AP connected to the STA can still be completed.

在本发明实施例中,STA首次关联扩展服务集合(英文:extended serviceset,ESS)中的AP时,该STA会被分配一个基本服务集标识符(英文:basicservice set identifier,BSSID),ESS内的任一与该STA相连接的AP基于该BSSID为该STA提供服务。即,ESS内的AP模拟以为该STA分配的BSSID为BSSID的AP,收发该STA的帧。也就是说ESS内的AP和该STA通信时以该BSSID为AP的射频介质访问控制(英文: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 a STA associates with an AP in an extended service set (English: extended serviceset, ESS) for the first time, the STA will be assigned a basic service set identifier (English: basicservice set identifier, BSSID). Any AP connected to the STA provides services for the STA based on the BSSID. That is, the AP in the ESS emulates the AP with the BSSID assigned to the STA as the BSSID, and sends and receives frames of the STA. That is to say, when the AP in the ESS communicates with the STA, the BSSID is used as the radio frequency medium access control (English: media access control, MAC) address of the AP. Since different APs provide services for STAs based on the same BSSID, after the AP connected to the STA switches, the STA will not perceive the AP switching. On the other hand, the BSSIDs allocated to any two STAs in the ESS are different, which can avoid packet forwarding confusion after the STAs perform AP handover 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提供服务。Wherein, the allocation manner of the BSSID corresponding to the STA includes multiple implementation manners. For example, after a STA initiates an association request to an AP in the ESS, the AP that receives the STA association request allocates a BSSID for the STA, and notifies the other APs of the ESS of the BSSID, so that when the STA is connected to other APs in the ESS , the AP to which the STA is connected can provide services for the STA based on the BSSID allocated for 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 for the STA, and notifies the AP in the ESS that based on the BSSID allocated for the STA, Provide services for the STA.

本发明实施例中,在WLAN包括上述漫游控制器时,漫游控制器可以有多种实现方式,例如,漫游控制器可以作为无线接入点的控制与规范(英文:Control And Provisioning of Wireless Access Points,CAPWAP)协议中的接入控制器(英文:Access Controller,AC),相应的,AP可以作为CAPWAP协议中的无线终止点(英文:Wireless Termination Point)。另外,漫游控制器可以通过一个独立设备实现,也可以通过多个分布式设备的集群实现。In the embodiment of the present invention, when the WLAN includes the above-mentioned roaming controller, the roaming controller can be implemented in multiple ways, for example, the roaming controller can be used as the control and specification of the wireless access point (English: Control And Provisioning of Wireless Access Points , CAPWAP) protocol access controller (English: Access Controller, AC), correspondingly, the AP can be used as a wireless termination point (English: Wireless Termination Point) in the CAPWAP protocol. In addition, the roaming controller can be implemented by an independent 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. It is called a target AP, indicating that the target AP provides services for the STA based on the BSSID allocated for the STA.

其中,可以由STA所连接的AP判断该STA是否达到漫游门限,也可以由图1所示的漫游控制器来判断STA是否达到漫游门限。具体的,与该STA连接的AP监测该STA的信号指标,例如,接收信号强度指示(英文:receivedsignal strength indication,RSSI)、丢包率,等等。在STA连接的AP对STA的信号指标的监测值劣化到预设值时,即可确定该STA达到漫游门限。在由漫游控制器判断STA是否达到漫游门限时,该STA所连接的AP需要将对该STA的信号指标的监测值发送给漫游控制器。The AP to which the STA is connected may determine whether the STA has reached the roaming threshold, or the roaming controller shown in FIG. 1 may determine whether the STA has reached the roaming threshold. Specifically, the AP connected to the STA monitors the signal indicators of the STA, for example, received signal strength indication (English: received signal strength indication, RSSI), packet loss rate, and so on. When the monitoring value of the signal index of the STA by the AP connected to the STA deteriorates to a preset value, it can be determined that the STA has reached the roaming threshold. When the roaming controller judges whether the STA has reached the roaming threshold, the AP to which the STA is connected needs to send the monitoring value of the signal index 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 way to determine the target AP that the STA needs to connect to can be as follows: APs that are not connected to the STA in the same ESS monitor the signal indicators of the STA, and the APs connected to the STA or the roaming controller use these APs that are not connected to the STA to The target AP is determined from the APs not connected to the STA based on the monitoring value of the signal index of the STA. For example, the AP not connected to the STA in the same ESS will send the monitoring value of the signal index of the STA to the AP or roaming controller connected to the STA, and the AP or roaming controller connected to the STA will determine the detected signal index The best AP is used as the target AP.

通常,STA向连接的AP发送报文后,与该STA没有连接的其他AP的物理层同样能够接收到该报文,并计算出RSSI等信号指标,然后,该AP的介质访问控制(英文:media access control,MAC)层会判断该报文是否发送给自己的,如果该报文不是发送给自己的,则舍弃该报文。但是,本发明实施例中,MAC层在确定该报文不是发送给自己之后,仍然将该报文的RSSI等信号指标存入存储器,以使AP能够获得没有与自己相连接的STA的信号指标。AP还可以使用现有技术中的其他技术手段对没有与自己相连接的STA的信号指标进行监测,本发明实施例不再详述。Usually, after the STA sends a message to the connected AP, the physical layer of other APs that are not connected to the STA can also receive the message and calculate signal indicators such as RSSI. Then, the AP’s media access control (English: The media access control (MAC) layer will judge whether the message is sent to itself, and if the message is not sent to itself, the message will be discarded. However, in the embodiment of the present invention, after the MAC layer determines that the message is not sent to itself, the signal indicators such as the RSSI of the message are still stored in the memory, so that the AP can obtain the signal indicators of STAs that are not connected to itself. . The AP may also use other technical means in the prior art to monitor the signal indicators of STAs not connected to itself, which will not be described in detail 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 times at which different APs send beacon frames are not synchronized. For example, different APs have different beacon intervals. For example, one AP sends beacon frames at 0 milliseconds (ms), 100ms, 200ms... and another AP sends beacon frames at 0ms, 110ms, 220ms.... Alternatively, although the beacon intervals of different APs are the same, the phases at which the beacon frames are transmitted are different. For example, one AP sends beacon frames at 0ms, 100ms, 200ms... and another AP sends beacon frames at 30ms, 130ms, 230ms.... When the STA is in the active (English: active) mode, the STA is always in the awake state (English: awake state), the STA can receive the beacon frame sent by the second AP after switching, and send the beacon frame according to the second AP A field for synchronizing time included in , to synchronize its own time 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 a wake-up state according to a listening interval (English: listen interval) to receive selected beacon frames. The listening interval is generally an integer multiple of the beacon interval. Therefore, the STA turns on the radio frequency module and receives the beacon frame only at the time when the first AP sends the beacon frame before the handover. However, since the beacon frames sent by the first AP and the second AP are usually not synchronized, the STA in the power saving mode may not receive the beacon frame sent by the second AP within a short period of time when it enters the wake-up state, causing the STA to It cannot synchronize its own local time with the time of the switched second AP according to the beacon frame sent by the second AP. In this way, although the second AP has taken over from the first AP to provide services for the STA, since the STA cannot receive the beacon frame sent by the second AP, it cannot synchronize the local time with the time of the second AP, and thus cannot pass the second AP. Send and receive data.

为了解决该问题,本发明实施例提供一种WLAN中切换AP方法及一种AP,由切换前的第一AP向STA发送唤醒帧,使得STA在切换后的第二AP发送信标帧的时刻能够处于苏醒状态,进而使得STA能够接收到第二AP发送的信标帧,根据第二AP发送的信标帧将本地时间与第二AP的时间同步。In order to solve this problem, an embodiment of the present invention provides a method for switching APs in a WLAN and an AP. The first AP before the switch sends a wake-up frame to the STA, so that the STA sends a beacon frame at the second AP after the switch. It 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的方法包括如下步骤:In conjunction with FIG. 2, the following takes the first AP switching the first STA connected to it to the second AP as an example to describe in detail the method for switching the AP provided by the embodiment of the present invention. 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 a first STA connected to the first AP is in a power saving mode, and determines that a second AP in the ESS where the first AP is located is a target AP to which 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, which means that the first STA is connected to the WLAN through the first AP, and the first AP provides services for 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 can be any STA connected to the first STA. When the first STA enters the power saving mode, it will send a record of the first STA entering the power saving mode to the connected first AP. This record can determine that the first STA enters the power saving mode.

在步骤101中,第一AP可以根据前面介绍的方式获知第一AP漫游门限,且获知同一ESS中的第二AP为第一AP需要连接的目标AP,本发明实施例在此不予重复。In step 101, the first AP can learn the roaming threshold of the first AP according to the method described above, and learn that the second AP in the same ESS is the target AP that the first AP needs to connect to. The embodiment of the present invention will not be repeated 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打开其射频模块。Wherein, the STA being in the awake state may mean that the STA is in the active mode, or the STA is in the power saving mode and has entered (for example, entered according to the listening interval) the awake state. A STA in the awake state turns on its radio frequency 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发送信标帧的时间。Mode 1, the wake-up frame is a beacon frame, and the beacon frame includes a field for updating the wake-up time of the first STA, and the field for updating the wake-up time of the first STA is used to instruct the first STA to adjust the wake-up time to the second The time at which the AP sends the beacon frame based on the first BSSID.

通常,第一AP基于第一BSSID向第一STA发送的信标帧中,包括用于指示第一STA将苏醒时间与第一AP发送信标帧的时间同步的字段。但是,本发明实施例中,为了保证第一STA能够接收到第二AP发送的信标帧,第一AP可以将发送给第一STA的信标帧中的该用于更新第一STA苏醒时间的字段的值,修改后的该字段用于指示第一STA将苏醒时间与第二AP发送信标帧的时间同步,这个包括指示第一STA将苏醒时间调整至第二AP基于第一BSSID发送信标帧的时间的字段的信标帧即可作为本发明实施例中的唤醒帧。Usually, the beacon frame sent by the first AP to the first STA based on the first BSSID includes a field for instructing the first STA to synchronize the wake-up time with the time when the first AP sends the beacon frame. However, in this 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 update the wake-up time of the first STA in the beacon frame sent to the first STA. The modified field is used to instruct the first STA to synchronize the wake-up time with the time when the second AP sends the beacon frame. This includes instructing the first STA to adjust the wake-up time to the second AP based on the first BSSID. The beacon frame in the time field of sending the beacon frame 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实际发送该信标帧的时间之间的时延。Wherein, the first AP needs to determine the difference between its own beacon frame transmission time and the second AP's beacon frame transmission time, and then it can determine that the instruction includes instructing the first STA to adjust the wake-up time to the second AP based on the first BSSID. Field for the time at which the beacon frame was sent. Since the first AP is adjacent to the second AP, the first AP can receive the beacon frame sent by the second AP. The beacon frame can be a traditional beacon frame, that is, the second AP sends based on the BSSID of 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 the time difference (T_offset ), and then determine the value of the field for updating the wake-up time of the first STA according to the time difference. If the period in which the second AP sends the beacon frame is different from the period in which the first AP sends the beacon frame, the difference between the periods in which the two APs send the beacon frame may also be considered when calculating the time difference. Optionally, the calculation of the above time difference may also take into account the delay between the time when the first AP receives the beacon frame sent by the second AP and the 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 (English: timestamp) field in the beacon frame is the field used to update the STA wake-up 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 switch APs, 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 if 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). In this way, after the first STA performs time synchronization according to (A-T_offset), although it will cause the first STA to 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 a 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 wake-up time in the beacon frame may also be a beacon interval (English: beacon interval) or a listening interval field. Wherein, the beacon interval field is the interval at which the AP sends the beacon frame, and the listening interval field is an integer multiple of the beacon interval field, indicating the interval at which the STA receives the beacon frame. If the first STA does not need to switch APs, 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 listening interval field is k*B, where k is a positive integer ; and in the case that the first STA needs to be handed over to the second AP, the value of the beacon interval field of the beacon frame sent by the first AP to the first STA at time T1 is (B-D), and the value of the listening interval field is k*(B-D), wherein, k*D=T_offset, in this way, the first STA enters the next wake-up time after k*(B-D) according to the listening interval l field, and this time happens to be when the second AP sends a beacon frame time.

通过上述方式1,第一AP在确定将第一STA切换至第二AP后,向第一STA发送信标帧,该信标帧中用于更新第一STA苏醒时间的字段指向第二AP发送信标帧的时间,而不是第一AP发送信标帧的时间。这样,第一STA接收该信标帧之后,将之后的苏醒时间调整至与第二AP发送信标帧同步的时间,使得第一STA能够接收到第二AP发送的信标帧。Through the above method 1, after the first AP determines to switch the first STA to the second AP, it sends a beacon frame to the first STA, and the field used to update the wake-up time of the first STA in the beacon frame is directed to the second AP to send a beacon frame. The time when the beacon frame is sent, not the time when the first AP sends the beacon frame. In this way, after the first STA receives the beacon frame, the subsequent wake-up time is adjusted to a time synchronized with the beacon frame sent by the second AP, 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 in mode 1, the wake-up time of the first STA is synchronized with the beacon frame sending time of the second AP, which means that the set of wake-up time of the first STA is a subset of the set of beacon frame sending times of the second AP. Sets, two sets can be equal, but not necessarily equal.

方式2,唤醒帧包括信标帧,该信标帧包括指示第一STA在省电模式下保持苏醒状态的字段。Mode 2, the wake-up frame includes a beacon frame, and the beacon frame includes a field indicating that the first STA remains in the wake-up state in the power saving mode.

通常,处于省电模式的第一STA从瞌睡状态进入苏醒状态,接收连接的第一AP发送的信标帧,如果该信标帧中没有包括使第一STA保持苏醒状态的字段,则第一STA从苏醒状态切换回瞌睡状态。如果该信标帧中包含该使第一STA保持苏醒状态的字段,第一STA接收到该信标帧后保持苏醒状态。Usually, the first STA in the power-saving mode enters the awake state from the sleepy state, and receives the beacon frame sent by the connected first AP. If the beacon frame does not include the field for keeping the first STA in the awake state, the first STA The STA switches from the awake state back to the doze state. If the beacon frame includes the field for keeping the first STA in the awake state, the first STA remains in the awake state after receiving the beacon frame.

例如,信标帧中唤醒第一STA的字段可以为数据待传指示信息(英文:delivery traffic indication message,DTIM)字段。For example, the field for waking up the first STA in the beacon frame may be a data delivery traffic indication message (English: delivery traffic indication message, DTIM) field.

通常,第一AP会在为连接的第一STA缓存数据帧或管理帧后,在向第一STA发送的信标帧的DTIM字段中将第一STA对应的位置1,告知第一STA有可缓存单元(英文:bufferable unit,BU)需要获取。处于省电模式的第一STA在苏醒时间打开射频模块,接收该信标帧,并根据信标帧中的DTIM字段保持苏醒状态。并向第一AP发送一个竞选(poll)帧,第一AP在收到该poll帧后向第一STA发送为第一STA所缓存的数据包。Usually, after buffering the data frame or management frame for the connected first STA, the first AP will set the bit corresponding to the first STA to 1 in the DTIM field of the beacon frame sent to the first STA, and inform the first STA that there is a possibility to The cache unit (English: bufferable unit, BU) needs to be acquired. The first STA in the power saving mode turns on the radio frequency module during the wake-up time, receives the beacon frame, and keeps the wake-up state according to the DTIM field in the beacon frame. And send an election (poll) frame to the first AP, and 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发送的信标帧。However, in the embodiment of the present invention, when the first STA in the power-saving mode needs to be switched to the second AP, even if the first AP does not buffer data frames or management frames for the first STA, the first AP is still sending the first STA A field that keeps the first STA awake (for example, a DTIM field that sets the bit number corresponding to the first STA to 1) is added to the sent beacon frame to keep the first AP awake so that it can receive the second AP. Beacon frames sent by the AP.

可选的,第一STA接收到第一AP发送的上述第三信标帧后,向第一AP发送poll帧,第一AP接收到该poll帧之后,不向第一STA发送可缓存单元BU。而第一STA由于接收不到针对poll帧发送的可缓存单元,第一STA将一直保持苏醒状态,直至接收到第一AP针对该poll帧所发送的可缓存单元,或者直至第一STA的信标帧发送时间的到来。Optionally, after the first STA receives the third beacon frame sent by the first AP, it sends a poll frame to the first AP, and after the first AP receives the poll frame, it does not send the bufferable unit BU to the first STA. . Since the first STA cannot receive the bufferable unit sent for the poll frame, the first STA will remain awake until it receives the bufferable unit sent by the first AP for the poll frame, or until the signal from the first STA The arrival of the frame sending time.

方式3,与上述方式2的不同之处在于,第一AP发送给第一STA的信标帧中,包括指示第一STA从省电模式切换至激活模式的字段。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 the following two situations between mode 2 and mode 3:

情况1,方式2中第一AP向第一STA中发送的信标帧中包括字段A,该字段A用于指示第一STA保持苏醒状态;而方式3中第一AP向第一STA发送的信标帧中包括字段B,该字段B用于指示第一STA从省电模式切换至激活模式。其中,字段A与字段B为两个不同的字段。In case 1, in mode 2, the beacon frame sent by the first AP to the first STA includes field A, which is used to indicate that the first STA remains awake; while in mode 3, the beacon frame sent by the first AP to the first STA The beacon frame includes a field B, and the field B is used to instruct the first STA to switch from the power saving mode to the active mode. Wherein, 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发送退出省电模式的记录,退出省电模式,进入激活模式。Case 2, the beacon frame sent by the first AP to the first STA in method 2 includes field A. In the application scenario of method 2, the first AP and the first STA agree that the field A is used to indicate the first STA remains awake. In mode 3, the beacon frame sent by the first AP to the first STA also includes field A, but in the application scenario of mode 3, the first AP and the first STA agree that this field A is used to indicate the first STA Switch from power saving mode to active mode. For example, in one possible implementation, the first STA does not exit the power saving mode and remains awake after receiving a beacon frame with DTMI bit 1; while in another possible implementation, the first STA receives After the beacon frame with DTMI bit 1, send the record of exiting the power saving mode to the connected AP, exit the power saving mode, and enter the active mode.

需要说明的是,无论上述在方式2中第一STA在不退出省电模式的情况下保持苏醒状态,还是在方式3中第一STA从省电模式切换至激活模式,第一STA的射频模块均处于工作状态,能够接收到第二AP基于第一BSSID发送的信标帧。It should be noted that, regardless of whether the first STA remains awake without exiting the power saving mode in mode 2, or the first STA switches from the power saving mode to the active mode in mode 3, the radio frequency module of the first STA Both are in the 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继续保持苏醒状态的字段。Method 4, combined with method 2, after the first AP sends to the first STA a beacon frame indicating that the first STA remains awake, at least one data frame is sent to the first STA, and the data frame includes instructions to the first STA to continue Field to keep awake.

本发明实施例中,所谓的数据帧可以为包含传输数据的数据帧,也可以为未包含传输数据的空数据帧。In the embodiment of the present invention, the so-called data frame may be a data frame containing transmission data, or an empty data frame not containing 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 the first STA receives the above-mentioned third beacon frame sent by the first AP, it sends a poll frame to the first AP, and after the first AP receives the poll frame, it sends at least one data frame (including empty frames) to the first STA. data frame), wherein the "More Data" field of each frame in at least one data frame is set to 1, indicating that the first STA continues to maintain the awake state and continues to send poll frames to the first AP, while the first AP continues to Set the "More Data" field 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 to 1.

方式5,结合方式3,第一AP在向第一STA发送发送指示第一STA从省电模式切换至激活模式的信标帧之后,向第一STA发送至少一个数据帧。Way 5, combined with way 3, after the first AP sends to the first STA a beacon frame indicating that the first STA switches from the power saving mode to the active mode, then sends at least one data frame to the first STA.

第一STA在从省电模式切换至激活模式后,可以在激活模式下保持一段时长,该时长可以由第一STA、第一AP或二者协商确定。如果该保持激活模式的时长较短,则第一STA可能在第二AP的信标帧发送时间到来前又从激活模式切换回省电模式,导致第一STA无法接收到第二AP基于第一BSSID发送的信标帧。After the first STA switches from the power saving mode to the active mode, it may stay in the active mode for a period of time, and the time period may be determined through negotiation between the first STA, the first AP, or both. If the duration of keeping the active mode is short, the first STA may switch from the active mode back to the power saving mode before the beacon frame transmission time of the second AP arrives, resulting in the first STA being unable to receive the second AP based on the first Beacon frame sent by BSSID.

为了解决该问题,本发明实施例中,第一AP在向第一STA发送用于指示第一STA从省电模式切换至激活模式的信标帧之后,还要向第一STA发送1个或多个数据帧(包括空数据帧的情形)。第一STA在接收到每个数据帧之后,会在激活模式保持一段时间,因此,如果不间断发送数据帧,则第一STA会一直保持激活模式。In order to solve this problem, in the embodiment of the present invention, after the first AP sends a beacon frame to the first STA to instruct the first STA to switch from the power-saving mode to the active mode, the first AP also sends a message or Multiple data frames (including the case of an empty data frame). After the first STA receives each data frame, it will remain in the active mode for a period of time. Therefore, if the data frames are sent continuously, the first STA will always 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: if the first STA does not transmit and receive data for a period of time S in the active mode, then switch from the active mode to the power saving mode. The first STA receives the beacon frame sent by the first AP at time T1 and includes a field used to instruct the first STA to switch 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 To send and receive data, it will enter the power saving mode again at (T1+S) time. In order to avoid this situation, in the embodiment of the present invention, the first AP sends an empty data frame to the first STA at the time (T1+S-m) before the time (T1+S), and the first STA receives the empty data frame After a frame, it will remain in active mode for the time period from (T1+S-m) to (T1+2S-m). By analogy, before the active mode of the first STA ends, the first AP sends an empty data frame (or a data frame including transmission data) to the first STA again, so that the first STA remains in the active mode.

上述方式4以及方式5中,第一AP通过在向第一STA发送第三信标帧之后,向第一STA发送的多个数据帧,使得第一STA维持苏醒状态,进而使第一STA能够接收到第二AP发送的信标帧。In the above method 4 and method 5, the first AP keeps the first STA in an awake state by sending multiple data frames to the first STA after sending the third beacon frame to the first STA, so that the first STA can A beacon frame sent by the second AP is received.

需要说明的是,在不冲突的情况下,上述方式1至上述方式5中任意两项或多项可以结合使用,例如,第一AP既向第一STA发送使其将本地时间与第二AP的时间同步的信标帧,又向第一STA发送多个空数据帧,这些空数据帧中的“More Data”字段置1,指示第一STA保持苏醒状态。It should be noted that, if there is no conflict, any two or more of the above methods 1 to 5 can be used in combination. The time-synchronized beacon frame sends multiple empty data frames to the first STA, and the "More Data" field in these empty data frames is set to 1, indicating that the first STA remains awake.

另外,上述方式1中第一STA的苏醒时间与第二AP的信标帧发送时间同步,指的是第一STA的苏醒时间的集合是第二AP的信标帧发送时间集合的子集,两个集合可以相等,但并不一定相等。In addition, in the above method 1, the wake-up time of the first STA is synchronized with the beacon frame transmission time of the second AP, which means that the set of wake-up time of the first STA is a subset of the beacon frame transmission time set of the second AP, Two sets can be equal, but they don't have to be.

步骤103:第一AP向第二AP发送切换指令,该切换指令用于指示第二AP基于第一BSSID为第一STA提供服务。Step 103: the first AP sends a switching instruction to the second AP, where the switching instruction is used to instruct the second AP to provide services 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 the identifier of the first STA, and is used to instruct the second AP to provide services for the first STA. Optionally, if the first AP or the roaming controller does not immediately inform 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 a The handover instruction may further include the first BSSID allocated for the first STA, so that the second AP can provide services for the first STA based on the first BSSID.

步骤104:第一STA接收唤醒帧,在第二AP的信标帧发送时间保持苏醒状态。Step 104: the first STA receives the wake-up frame, and keeps awake at the time when the beacon frame of the second AP is sent.

步骤104中第二AP根据该唤醒帧在第二AP的信标帧发送时间保持苏醒状态的具体实现方式在步骤102中已有描述,在此不再重复。另外,步骤104中,第一STA在第二AP的信标帧发送时间保持苏醒状态,指的是第一STA在第二AP的任一(或,任意多个)信标帧发送时间保持苏醒状态。In step 104, the specific implementation manner of keeping the second AP in the awake state according to the wake-up frame at the beacon frame sending time of the second AP has been described in step 102 and will not be repeated here. In addition, in step 104, the first STA keeps awake at the beacon frame sending time of the second AP. state.

步骤105:第二AP接收该切换指令,并基于为第一STA分配的第一BSSID为第一STA提供服务。Step 105: The second AP receives the handover instruction, and provides 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 switching instruction, the second AP is responsible for providing services for the first STA. The so-called service provision includes: the second AP sends 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。Wherein, the second AP obtains the mapping between the first STA and the first BSSID, which may be implemented in the following manner: after the roaming controller allocates the first BSSID to the first STA, it sends the mapping between the first STA and the first BSSID to the ESS For each AP of , the second AP can then learn the first BSSID assigned by the roaming controller to the first STA. Alternatively, after receiving the switching 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 then learn the first BSSID. Alternatively, when sending the switching instruction to the second AP, the first AP also 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 providing services for the first STA, which means that the first AP no longer regards the first STA as an STA that needs to provide normal WLAN services, for example, no longer sends information based on its BSSID for the first STA. frame, forward data, buffer data, and so on.

结合前述步骤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 of the ways 2 to 5 in the various implementations of the aforementioned step 102, the first AP may continue to send a wake-up frame to the first STA after performing steps 102 and 103, indicating that the first STA Stay awake during the beacon frame sending time of the second AP. In the above behavior of the first AP sending a wake-up frame to the first STA, the first AP does not provide normal WLAN services to the first STA. Therefore, the so-called first AP stops providing services for the first STA in step 106, which is different from the above-mentioned first AP. After performing step 102 and step 103, the AP continues to send wake-up frames to the first STA without 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 point of view of the STA, the BSSID of the AP it is connected to remains unchanged, and it still uses the same IP address for data transmission and reception. Therefore, in the embodiment of the present invention, the STA does not perceive that the AP has been switched at all.

本发明实施例上述技术方案中,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 above 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 services for the first STA based on the first BSSID. When the first AP determines that the connected first STA has reached the roaming threshold and the first STA is in the power saving mode, on the one hand, it sends a switching instruction to the second AP that the first STA needs to connect to, indicating that the second AP is based on the first BSSID as The first STA provides services; on the other hand, the first AP sends a wake-up frame to the first STA, instructing the first STA to keep awake at the beacon frame sending time of the second AP, so that the first STA can receive the second AP The sent beacon frame can maintain the link with the second AP according to the beacon frame sent by the second AP, so as to ensure that the first STA can accept the service provided by the second AP. The above-mentioned STA connection AP switching process is performed by the AP side. Therefore, even if the first STA is in the power saving mode and the radio frequency module is turned off, the AP switching of the first STA can also be performed normally, ensuring that the first STA is turned on. After the radio frequency module, it can communicate through the AP in the ESS, and because the first STA can switch and connect to the AP with better signal, the communication quality of the first STA is better.

不仅如此,在第一AP为第一STA缓存有数据时,第一AP还会将为第一STA缓存的数据移交给第二AP,由第二AP将缓存数据发送给第一STA,避免数据的丢失。Not only that, when the first AP has buffered data for the first STA, the first AP will also hand over the data buffered for the first STA to the second AP, and the second AP will send the buffered data to the first STA, avoiding data lost.

在一种可能的实现方式中,参照图3,在步骤102之前还包括如下步骤:In a possible implementation, referring to FIG. 3 , the following steps are also included before step 102:

步骤107:第一AP判断自身的信标帧发送时间与第二AP的信标帧发送时间是否同步,若是,则跳过步骤102,直接执行步骤103,若不是,则既要执行步骤102,也要执行步骤103。Step 107: The first AP judges whether the beacon frame transmission time of itself is synchronized with the beacon frame transmission time of the second AP, if so, then skip step 102, and directly execute step 103, if not, then execute step 102, Step 103 is also executed.

具体的,第一AP在确定需要将第一STA切换至第二AP之后,首先判断第二AP与第一AP发送信标帧的时间是否同步,如果同步,则能够接收到第一AP发送的信标帧的第一STA本身就能够接收到第二AP发送的信标帧,第一AP可以不执行步骤102,直接执行步骤103。Specifically, after the first AP determines that the first STA needs to be handed over to the second AP, it first judges whether the time when the second AP and the first AP send beacon frames are synchronized. The first STA of the beacon frame itself can receive the beacon frame sent by the second AP, and the first AP may directly perform step 103 without performing step 102 .

如果第二AP与第一AP发送信标帧的时间不同步,第一AP执行步骤102,使得第一STA的苏醒时间为第二AP发送信标帧的时间。If the time when the second AP sends the beacon frame is not synchronized with the time when the first AP sends the beacon frame, the first AP executes 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 above technical solution, the first AP judges whether the time when the first AP and the second AP send beacon frames are synchronized. When the two are not synchronized, the wake-up frame is sent to the first STA, which can not only ensure that the first STA can receive the beacon frame sent by the second AP, but also can transmit the beacon frame between the first AP and the second AP. During time synchronization, the sending of wake-up frames is reduced to save 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 handed over 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连接成功的方式包括:Wherein, 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 mode A, the second AP sends a frame to the first STA that requires the first STA to return a message, and the first STA returns a message to the second AP. After receiving the return message, the second AP can determine that the connection with the first STA has been 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 requires the first STA to return a message can be implemented in multiple ways. For example, the frame is a data frame, and the first STA returns an ACK frame to the second AP after receiving the data frame sent by the second AP. Since the ACK frame sent by the first STA to the second AP includes the identity of the second AP, and the second AP provides services for the first STA based on the first BSSID, and the second AP uses the first STA only when it provides services for the first STA. A BSSID is used as its own BSSID. Therefore, the second AP can determine that the ACK frame is sent by the first STA according to receiving the first BSSID in the ACK frame, and then determine that the connection with the first STA has been successfully established.

可选的,由于第一STA在接收到第二AP发送的信标帧之后会保持较短时间的苏醒状态,因此,第二AP可以在向第一STA发送信标帧之后的该较短时间内向第一STA发送该用于确定第二AP确定与第一STA是否连接成功的帧,以使得第一STA能够接收到该帧,并根据该帧返回报文。Optionally, since the first STA will remain awake for a short period of time after receiving the beacon frame sent by the second AP, the second AP may, within the short period of time after sending the beacon frame to the first STA, The frame for determining whether the second AP determines whether the connection with the first STA is successful is sent to the first STA internally, so that the first STA can receive the frame and return a message according to the frame.

方式B,处于省电模式的第一STA可能会主动向连接的AP发送报文,第二AP接收这些报文之后,即可确定与第一STA成功建立连接。In mode B, the first STA in the power saving mode may actively send packets to the connected AP, and after receiving these packets, the second AP can determine that the connection with the first STA is successfully established.

例如,第一STA在关闭省电模式时,会向连接的AP发送关闭省电模式的记录,第二AP接收该包含该记录的报文,即可确定与第一STA成功建立连接。For example, when the first STA turns off the power saving mode, it will send a record of turning off the power saving mode to the connected AP, and the second AP can determine that the connection with the first STA is successfully established after receiving the message containing the record.

上述技术方案中,第二AP能够根据接收到第一STA发送的报文确定与第一STA建立连接,并向第一AP发送切换成功消息,以使第一STA知道第一STA已成功切换至第二AP。第一AP可以在接收到该切换成功消息之前向第一STA发送唤醒帧,保证第一STA能够接收第二AP发送的信标帧,而在第一AP在接收到该唤醒帧之后,停止向第一STA发送该唤醒帧,不仅可以节约传输资源,还可以避免第一STA的响应混乱。In the above 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 can 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 sending the beacon frame to the first STA. Sending the wake-up frame by the first STA can not only save transmission resources, but also avoid confusion of the first STA's response.

本发明实施例还提供一种切换AP的设备200,该设备200作为WLAN中的AP。图4为设备200的结构示意图,设备200包括:处理器201以及收发器202。The embodiment of the present invention also provides a device 200 for switching APs, and the device 200 serves as an AP in a WLAN. FIG. 4 is a schematic structural diagram of a device 200 , and 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提供服务;Wherein, the processor 201 is configured to: determine that the STA connected to the device 200 is in the power-saving mode, wherein the device 200 provides services for the STA based on the BSSID corresponding to the STA, and the BSSID corresponding to the STA and the The BSSID corresponding to any other STA in the same ESS of the STA is different; determine the second AP in the ESS as the target AP, and the target AP is the AP connected to the STA after switching; generate a wake-up frame, the 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; a switching instruction is generated, and the switching instruction is used to instruct the second AP to send a beacon frame based on the BSSID corresponding to the STA. The BSSID corresponding to the STA provides services for the STA;

收发器202,与处理器201耦合,用于:向所述STA发送所述唤醒帧;以及向所述第二AP发送所述切换指令。The transceiver 202, coupled to the processor 201, is configured to: send the wake-up frame to the STA; and send the switching 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 connected through a bus; in addition, the processor 201 and the transceiver 202 may also be integrated, which is not limited in this embodiment of the present invention.

处理器201可以是一个处理元件,也可以是多个处理元件的统称。例如,处理器可以是中央处理器(英文:central processing unit,CPU),也可以是特定集成电路(英文:application specific intergrated circuit,ASIC),或者是被配置成实施本发明实施例的一个或多个集成电路。The processor 201 may be one processing element, or may be a general term for multiple processing elements. For example, the processor may be a central processing unit (English: central processing unit, CPU), or a specific integrated circuit (English: application specific integrated circuit, ASIC), or be configured to implement one or more of the embodiments of the present invention an integrated circuit.

收发器202包括天线以及与该天线连接的射频模块。可选的,在设备200通过光纤网络等有线网络与第二AP进行通信时,收发器202除了包括上述射频模块以及天线之外,还包括有线通信类型的数据收发器,如以太网数据收发器。The transceiver 202 includes an antenna and a radio frequency module connected to the antenna. Optionally, when the device 200 communicates with the second AP through a wired network such as an optical fiber network, the transceiver 202 includes, in addition to the above-mentioned radio frequency module and antenna, a data transceiver of a wired communication type, such as an Ethernet data transceiver .

在一种可能的实现中,处理器201在用于:生成所述唤醒帧之前,还用于:确定设备200的信标帧发送时间与所述第二AP的信标帧发送时间不同步。In a possible implementation, before the processor 201 is used to: generate the wake-up frame, it is further configured to: determine that the sending time of the beacon frame of the device 200 is not synchronized with the sending time of the beacon frame 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 It 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.

在一种可能的实现中,所述收发器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 the time when the transceiver receives the second beacon frame, and according to the beacon frame sending time of the device 200 and the transceiver receiving the second beacon frame Determine the time interval between the beacon frame sending time of the device 200 and the beacon frame sending time of the second AP; and determine the field for updating the STA wake-up time according to the time interval.

在一种可能的实现中,所述唤醒帧包括第三信标帧,所述第三信标帧包括指示所述STA保持苏醒状态的字段。In a possible implementation, the wake-up frame includes a third beacon frame, and the third beacon frame includes a field indicating that the STA remains in the wake-up state.

在一种可能的实现中,所述唤醒帧还包括:在所述第三信标帧之后发送的至少一个数据帧,所述至少一个数据帧用于使所述STA保持苏醒状态。In a possible implementation, the wake-up frame further includes: at least one data frame sent after the third beacon frame, where the at least one data frame is used to keep the STA in a wake-up state.

在一种可能的实现中,所述至少一个数据帧包括空数据帧。In a possible implementation, the at least one data frame includes an empty 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 connected STAs, store data sent to STAs by other network elements, and store state records of STAs (such as whether they are in a provincial state or not). power mode), store instructions sent to the device 200 by other network elements, and so on.

可选的,该存储器203还可以存储可执行指令,处理器201读取并运行存储器203中的可执行指令,以实现本发明实施例中设备200所具有的的功能。Optionally, the memory 203 may also store executable instructions, and the processor 201 reads and executes the executable instructions in the memory 203 to implement the functions of the device 200 in the embodiment of the present invention.

上述存储器203可以是一个存储元件,也可以是多个存储元件的统称,且用于存储可执行程序代码或装置运行所需要参数、数据等。且上述存储器203可以包括随机存储器(英文:random-access memory,RAM),也可以包括非易失性存储器(英文:non-volatile memory,NVM),等等。The above-mentioned memory 203 may be one storage element, or may be a general term for multiple storage elements, and is used to store executable program codes or parameters and data required for device operation. In addition, the above-mentioned memory 203 may include a random-access memory (English: random-access memory, RAM), or may include a non-volatile memory (English: non-volatile memory, NVM), and so on.

需要说明的是,图4中的存储器203以及以太网数据收发器采用虚线框表示,表明其不是本发明实施例中AP实现其功能的所必需的模块。通常,AP还具有本发明实施例中描述功能之外的功能,这些功能需要基于存储器203和/或以太网数据收发器所实现。It should be noted that the memory 203 and the Ethernet data transceiver in FIG. 4 are represented by dotted boxes, indicating that they are not necessary modules for the AP to realize its functions in the embodiment of the present invention. Generally, the AP also has functions other than those described in the embodiments of the present invention, and these functions need to be implemented based on the memory 203 and/or the Ethernet data transceiver.

以上设备200包括的各组成模块所执行操作的具体实现方式可以参照图2以及图3对应的实施例的中由第一AP执行的对应步骤,本发明实施例不再赘述。For specific implementation manners of operations performed by the constituent modules included in the above device 200, reference may be made to the corresponding steps performed by the first AP in the embodiments corresponding to FIG. 2 and FIG. 3 , and details are not repeated in this embodiment of the present invention.

本发明实施例还提供一种切换AP的设备,该设备可作为WLAN中的AP。该设备包括:处理器以及收发器。The embodiment of the present invention also provides a device for switching APs, which can be used as an AP in a WLAN. The device includes: a processor and a transceiver.

其中,收发器用于接收第一AP发送的切换指令,切换指令包括第一STA的标识.Wherein, the transceiver is used to receive the handover command sent by the first AP, and the handover command includes the identity of the first STA.

处理器,与收发器耦合,用于:控制AP基于为第一STA生成的第一BSSID为第一STA提供服务。The processor, coupled with the transceiver, is configured to: control the AP to provide a 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 also used for: sending a handover success message to the first STA.

在一种可能的实现中,处理器还用于:在收发器接收到切换指令后,生成需要第一STA返回报文的帧;In a possible implementation, the processor is further configured to: after the transceiver receives the switching instruction, generate a frame that requires the first STA to return a message;

收发器还用于:向第一AP发送该需要第一STA返回报文的帧。The transceiver is further configured to: send the frame requiring the first STA to return a message to the first AP.

以上AP包含包括的各组成模块所执行操作的具体实现方式可以参照图2对应的实施例的中由第二AP执行的对应步骤,本发明实施例不再赘述。For the specific implementation manner of the operations performed by the constituent modules included in the above AP, reference may be made to the corresponding steps performed by the second AP in the embodiment corresponding to FIG. 2 , which will not be repeated in this embodiment of the present invention.

本发明实施例还提供一种通信系统,该系统包括多个AP、多个STA。An embodiment of the present invention also 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提供服务;Wherein, the first AP among the multiple APs is used to: determine that the first STA connected to the first AP is in the power saving mode, and determine that the first STA needs to switch to connect with the second AP in the same ESS; The STA sends a wake-up frame, and the wake-up frame is used to make the first STA wake up at the time when the second AP sends a beacon frame; and sends a switching instruction to the second AP, and the switching instruction is used to make the second AP assign the first STA based on the The first BSSID provides services for the first STA;

多个STA中的第一STA用于:接收唤醒帧,并根据唤醒帧在第二AP发送信标帧的时间保持苏醒状态;The first STA among the plurality of STAs is used to: receive the wake-up frame, and keep awake at the time when the second AP sends the beacon frame according to the wake-up frame;

多个AP中的第二AP用于:接收第一AP发送的切换指令,切换指令包括第一STA的标识;并基于第一BSSID为第一STA提供服务。The second AP among the multiple APs is configured to: receive a handover instruction sent by the first AP, where the handover instruction includes the identifier of the first STA; and provide services for the first STA based on the first BSSID.

在一种可能的实现中,第一AP向所述STA发送唤醒帧之前,确定自身的信标帧发送时间与所述第二AP的信标帧发送时间不同步。In a possible implementation, before sending the wake-up frame to the STA, the first AP determines that its own beacon frame sending time is not synchronized with the second AP's beacon frame sending time.

在一种可能的实现中,唤醒帧包括第一信标帧,该第一信标帧包括用于更新所述第一STA苏醒时间的字段,所述字段用于指示所述第一STA将苏醒时间调整至所述第二AP基于所述第一STA所对应的第一BSSID发送信标帧的时间。In a possible implementation, the wake-up frame includes a first beacon frame, and the first beacon frame includes a field for updating the wake-up time of the first STA, and the field is used to indicate that the first STA will wake up The time is adjusted to the 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, before sending the wake-up frame to the first STA, the first AP determines the time of receiving the second beacon frame sent by the second AP; The time of the second beacon frame sent by the second AP determines the time interval between the beacon frame sending time of the first AP and the beacon frame sending time of the second AP; Update the field of the wake-up time of the first STA.

在一种可能的实现中,唤醒帧还包括:在所述第三信标帧之后发送的至少一个数据帧,所述至少一个数据帧用于使所述第一STA保持苏醒状态。In a possible implementation, the wake-up frame further includes: at least one data frame sent after the third beacon frame, where the at least one data frame is used to keep the first STA in a wake-up state.

在一种可能的实现中,所述至少一个数据帧包括空数据帧。In a possible implementation, the at least one data frame includes an empty data frame.

在一种可能的实现中,第二AP还用于:在接收第一STA发送的任一报文之后,向第一STA发送切换成功消息;In a possible implementation, the second AP is further configured to: send a handover success message to the first STA after receiving any message sent by the first STA;

第一AP还用于:接收切换成功消息,并停止向第一STA发送唤醒帧。The first AP is further configured to: receive a handover success message, and stop sending wake-up frames 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 assign a unique BSSID to each STA in the same ESS, so that the AP connected to each STA provides services for the STA based on the BSSID assigned to the STA .

在一种可能的实现中,第一AP以及第二AP还用于:向漫游控制器上报对第一STA的信号指标的监测值;In a possible implementation, the first AP and the second AP are further configured to: report the monitoring value of the signal index of the first STA to the roaming controller;

漫游控制器还用于:根据监测值确定第一STA达到漫游门限,并确定第二AP为目标AP,向第一AP发送切换触发指令;The roaming controller is also used to: determine that the first STA has reached the roaming threshold according to the monitoring value, and determine that the second AP is the target AP, and send a switching trigger instruction to the first AP;

第一AP用于:确定第一STA达到漫游门限,并确定第二AP为目标AP,包括:接收切换触发指令,并根据切换触发指令确定第一STA达到漫游门限,并确定第二AP为目标AP。The first AP is used to: determine that the first STA has reached the roaming threshold, and determine the second AP as the target AP, including: receiving a handover trigger instruction, and determining that the first STA has reached the roaming threshold according to the handover trigger instruction, and determining the second AP as the target AP.

以上系统包括的各设备所执行操作的具体实现方式可以参照图2以及图3对应的实施例的中的对应步骤,本发明实施例不再赘述。For specific implementation manners of operations performed by each device included in the above system, reference may be made to corresponding steps in the embodiments corresponding to FIG. 2 and FIG. 3 , and details are not repeated in this embodiment of the present invention.

本发明实施例还提供一种WLAN中切换AP的装置,该WLAN包括多个AP、多个STA。参照图5,所述装置包括:The embodiment of the present invention also provides a device for switching APs in a WLAN, where the WLAN includes multiple APs and multiple STAs. With reference to Fig. 5, described device comprises:

第一确定模块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 the power saving mode, wherein the device provides services for the STA based on the BSSID corresponding to the STA, and the BSSID corresponding to the STA is equal to and The BSSID corresponding to any other STA in the same ESS of the STA is different;

第二确定模块302,用于确定所述ESS内的第二AP为目标AP,所述目标AP为所述STA切换后连接的AP;The second determination module 302 is configured to determine that the second AP in the ESS is a target AP, and the target AP is the AP connected to the STA after handover;

第一发送模块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 switching instruction to the second AP, where the switching instruction is used to instruct the second AP to provide services for the STA based on the 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 It 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.

在一种可能的实现中,所述装置还包括:In a possible implementation, the device also includes:

第三确定模块306,用于在所述第一发送模块发送所述唤醒帧之前,确定接收到所述第二AP发送的第二信标帧的时间;并根据自身的信标帧发送时间以及接收到所述第二信标帧的所述时间确定所述装置的信标帧发送时间与所述第二AP的信标帧发送时间之前的时间间隔;并根据所述时间间隔确定所述用于更新所述STA苏醒时间的字段。The third determining module 306 is configured to determine the time at which the second beacon frame sent by the second AP is received before the first sending module sends the wake-up frame; and according to its own beacon frame sending time and The time at which the second beacon frame is received determines the time interval between the beacon frame sending time of the device and the beacon frame sending time of the second AP; and determining the user according to the time interval to update the field of the wake-up time of the STA.

在一种可能的实现中,所述唤醒帧包括第三信标帧,所述第三信标帧包括指示所述STA保持苏醒状态的字段。In a possible implementation, the wake-up frame includes a third beacon frame, and the third beacon frame includes a field indicating that the STA remains in the wake-up state.

在一种可能的实现中,所述唤醒帧还包括:在所述第三信标帧之后发送的至少一个数据帧,所述至少一个数据帧用于使所述STA保持苏醒状态。In a possible implementation, the wake-up frame further includes: at least one data frame sent after the third beacon frame, where the at least one data frame is used to keep the STA in a wake-up state.

在一种可能的实现中,所述至少一个数据帧包括空数据帧。In a possible implementation, the at least one data frame includes an empty data frame.

以上装置包括的各组成模块所执行操作的具体实现方式可以参照图2以及图3对应的实施例的中由第一AP执行的对应步骤,本发明实施例不再赘述。For a specific implementation manner of operations performed by each component module included in the above device, reference may be made to the corresponding steps performed by the first AP in the embodiments corresponding to FIG. 2 and FIG. 3 , and details will not be repeated in this embodiment of the present invention.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包括有程序代码的计算机可读存储介质(包括但不限于磁盘存储器、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the invention may take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to magnetic disk storage, optical storage, etc.) having program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的范围。这样,倘若本发明的这些修改和变型属于本发明权利要求的范围之内,则本发明也意图包括这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the scope of the present invention. Thus, the present invention is also intended to include the modifications and variations of the present invention if they fall within the scope of the claims of the present invention.

Claims (18)

1. switch access point AP method in a kind of WLAN WLAN, it is characterised in that described Method includes:
First AP determines that the site STA being connected with the first AP is in battery saving mode, wherein, it is described First AP is an AP in multiple AP, and the first AP is based on the basic clothes corresponding to the STA Business set identifier BSSID provide service for the STA, the BSSID corresponding to the STA and and institute The BSSID stated corresponding to other any STA of STA in same extended service set ESS is different;
First AP determines that the 2nd AP in the multiple AP in the ESS is target AP, institute State target AP and switch latter linked AP for the STA;
First AP sends wake-up association to the STA, and the wake-up association is used to indicate that the STA exists 2nd AP is in wake states when sending beacon frame based on the BSSID corresponding to the STA;
First AP sends switching command to the 2nd AP, and the switching command is described for indicating 2nd AP provides service based on the BSSID corresponding to the STA for the STA;
First AP is sent after the switching command, stops providing service for the STA.
2. the method as described in claim 1, it is characterised in that the wake-up association includes the first beacon frame, First beacon frame includes the field for being used to update the STA recovery times, described to be used to update described The field of STA recovery times is used to indicate that the STA adjusts recovery time to the 2nd AP based on institute State the time that the BSSID corresponding to STA sends beacon frame.
3. method as claimed in claim 2, it is characterised in that in the first AP to the STA Send before wake-up association, methods described also includes:
First AP determines to receive the time for the second beacon frame that the 2nd AP is sent;
First AP is according to itself beacon frame information time and receives the institute of second beacon frame The time of stating determines the beacon frame information time of the first AP and the beacon frame information time of the 2nd AP Time interval before;
First AP is used for the word for updating the STA recovery times according to being determined the time interval Section.
4. the method as described in claim 1, it is characterised in that the wake-up association includes the 3rd beacon frame, 3rd beacon frame includes the field for indicating that the STA keeps wake states.
5. method as claimed in claim 4, it is characterised in that the wake-up association also includes:Described At least one data frame sent after 3rd beacon frame, at least one described data frame is used to make the STA Keep wake states.
6. method as claimed in claim 5, it is characterised in that at least one described data frame includes sky Data frame.
7. in a kind of WLAN switch AP equipment, the equipment as the AP in the WLAN, Characterized in that, the equipment includes:
First determining module, the STA for determining to be connected with the equipment is in battery saving mode, wherein, The equipment provides service, the STA institutes based on the BSSID corresponding to the STA for the STA Corresponding BSSID with and other any STA in same ESS of the STA corresponding to BSSID It is different;
Second determining module, for determining that the 2nd AP in the ESS is target AP, the target AP Switch latter linked AP for the STA;
First sending module, for sending wake-up association to the STA, the wake-up association is described for indicating STA is when the 2nd AP sends beacon frame based on the BSSID corresponding to the STA in revival shape State;
Second sending module, for sending switching command to the 2nd AP, the switching command is used to refer to Show that the 2nd AP provides service based on the BSSID corresponding to the STA for the STA;
Stop service module, for after second sending module sends the switching command, stopping as institute State STA and service is provided.
8. equipment as claimed in claim 7, it is characterised in that the wake-up association includes the first beacon frame, First beacon frame includes the field for being used to update the STA recovery times, described to be used to update described The field of STA recovery times is used to indicate that the STA adjusts recovery time to the 2nd AP based on institute State the time that the BSSID corresponding to STA sends beacon frame.
9. equipment as claimed in claim 8, it is characterised in that the equipment also includes:
3rd determining module, for before first sending module sends the wake-up association, it is determined that receiving To the time of the 2nd AP the second beacon frames sent;And beacon frame information time according to itself and The time for receiving second beacon frame determines beacon frame information time of the equipment and described the Time interval before the two AP beacon frame information time;And be used for according to being determined the time interval Update the field of the STA recovery times.
10. equipment as claimed in claim 7, it is characterised in that the wake-up association includes the 3rd beacon frame, 3rd beacon frame includes the field for indicating that the STA keeps wake states.
11. equipment as claimed in claim 10, it is characterised in that the wake-up association also includes:Institute At least one data frame sent after the 3rd beacon frame is stated, at least one described data frame is described for making STA keeps wake states.
12. equipment as claimed in claim 11, it is characterised in that at least one described data frame includes Empty data frame.
13. in a kind of WLAN switch AP equipment, the equipment as the AP in the WLAN, Characterized in that, the equipment includes:
Processor, is used for:It is determined that the STA being connected with the equipment is in battery saving mode, wherein, it is described Equipment provides service based on the BSSID corresponding to the STA for the STA, corresponding to the STA BSSID from and other any STA in same ESS of the STA corresponding to BSSID it is different; It is determined that the 2nd AP in the ESS is target AP, the target AP is to connect after the STA switches The AP connect;Wake-up association is generated, the wake-up association is used to indicate that the STA is based on institute in the 2nd AP State when the BSSID corresponding to STA sends beacon frame and be in wake states;Switching command is generated, it is described to cut Changing instruction is used to indicate that the 2nd AP is provided based on the BSSID corresponding to the STA for the STA Service;
Transceiver, couples with the processor, is used for:The wake-up association is sent to the STA;And The switching command is sent to the 2nd AP.
14. equipment as claimed in claim 13, it is characterised in that the wake-up association includes the first beacon Frame, first beacon frame includes the field for being used to update the STA recovery times, described to be used to update The field of the STA recovery times is used to indicate that the STA adjusts recovery time to the 2nd AP The time of beacon frame is sent based on the BSSID corresponding to the STA.
15. equipment as claimed in claim 14, it is characterised in that the transceiver is additionally operable to:Receive The second beacon frame that 2nd AP is sent;
The processor is additionally operable to:Determine that the transceiver receives the time of second beacon frame, and root Received according to the beacon frame information time and the transceiver of the equipment described in second beacon frame Time was determined before the beacon frame information time of the equipment and the beacon frame information time of the 2nd AP Time interval;And the field for updating the STA recovery times is determined according to the time interval.
16. equipment as claimed in claim 13, it is characterised in that the wake-up association includes the 3rd beacon Frame, the 3rd beacon frame includes the field for indicating that the STA keeps wake states.
17. equipment as claimed in claim 16, it is characterised in that the wake-up association also includes:Institute At least one data frame sent after the 3rd beacon frame is stated, at least one described data frame is described for making STA keeps wake states.
18. equipment as claimed in claim 17, it is characterised in that at least one described data frame includes Empty data frame.
CN201610289641.2A 2016-04-29 2016-04-29 Method and device for switching access point in wireless local area network Active CN107333307B (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN107333307A true CN107333307A (en) 2017-11-07
CN107333307B CN107333307B (en) 2020-06-16

Family

ID=60160753

Family Applications (1)

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

Country Status (2)

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

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108449755A (en) * 2018-04-03 2018-08-24 新华三技术有限公司 A kind of terminal access method and device
CN108696324A (en) * 2018-05-29 2018-10-23 新华三技术有限公司 A kind of link-quality detection method, device and radio reception device
CN109831814A (en) * 2017-11-23 2019-05-31 芯光飞株式会社 Power-economizing method and device in WLAN
WO2019114498A1 (en) * 2017-12-13 2019-06-20 中兴通讯股份有限公司 Switching method between aps, ap and ap collaborative work controller
CN110519747A (en) * 2018-05-21 2019-11-29 中兴通讯股份有限公司 A kind of loaming method and AP and AP collaborative work controller
CN110999418A (en) * 2018-06-22 2020-04-10 Lg电子株式会社 Method and apparatus for receiving WUR discovery frame in wireless LAN system
CN113543289A (en) * 2020-04-22 2021-10-22 瑞昱半导体股份有限公司 Communication device and method for dynamically adjusting wake-up time
CN115604792A (en) * 2021-06-28 2023-01-13 华为技术有限公司(Cn) Communication method and device
WO2023028891A1 (en) * 2021-08-31 2023-03-09 Oppo广东移动通信有限公司 Data transmission method and apparatus, and device and storage medium
WO2023051268A1 (en) * 2021-09-29 2023-04-06 华为技术有限公司 Terminal control method, apparatus and system
US11750838B2 (en) 2011-10-18 2023-09-05 Lg Electronics Inc. Method for intra prediction and device therefor

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429299B (en) * 2017-07-11 2021-11-30 珠海市魅族科技有限公司 Communication method, communication device and communication equipment of wireless local area network

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101583151A (en) * 2009-07-02 2009-11-18 杭州华三通信技术有限公司 Method of STA roaming in WLAN network and device
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
CN103167586A (en) * 2013-03-01 2013-06-19 北京傲天动联技术股份有限公司 Wireless terminal access and reselecting method based on access point (AP) cluster
CN103533653A (en) * 2012-07-06 2014-01-22 杭州华三通信技术有限公司 Method and device for solving the problem of hidden nodes in local area network
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
CN103945361A (en) * 2014-04-22 2014-07-23 福建星网锐捷网络有限公司 Processing method and system for roaming of sites in wireless local area network and wireless access points
CN104853391A (en) * 2015-03-17 2015-08-19 杭州华三通信技术有限公司 Terminal wake-up method and access point AP

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100957348B1 (en) * 2006-10-16 2010-05-12 삼성전자주식회사 Method and apparatus for performing handover by terminal operating in discontinuous reception mode in mobile communication system
US9509469B2 (en) * 2013-04-04 2016-11-29 Futurewei Technologies, Inc. Device, network, and method for utilizing a downlink discovery reference signal
CN105357728A (en) * 2015-11-28 2016-02-24 广东欧珀移动通信有限公司 Method, device and mobile terminal for switching network standards

Patent Citations (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
CN101583151A (en) * 2009-07-02 2009-11-18 杭州华三通信技术有限公司 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
CN103167586A (en) * 2013-03-01 2013-06-19 北京傲天动联技术股份有限公司 Wireless terminal access and reselecting method based on access point (AP) cluster
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
CN103945361A (en) * 2014-04-22 2014-07-23 福建星网锐捷网络有限公司 Processing method and system for roaming of sites in wireless local area network and wireless access points
CN104853391A (en) * 2015-03-17 2015-08-19 杭州华三通信技术有限公司 Terminal wake-up method and access point AP

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11750838B2 (en) 2011-10-18 2023-09-05 Lg Electronics Inc. Method for intra prediction and device therefor
CN109831814A (en) * 2017-11-23 2019-05-31 芯光飞株式会社 Power-economizing method and device in WLAN
CN109831814B (en) * 2017-11-23 2021-12-28 戴乐格半导体韩国株式会社 Energy-saving method and device in wireless local area network
WO2019114498A1 (en) * 2017-12-13 2019-06-20 中兴通讯股份有限公司 Switching method between aps, ap and ap collaborative work controller
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
CN110519747A (en) * 2018-05-21 2019-11-29 中兴通讯股份有限公司 A kind of loaming method and AP and AP collaborative work controller
CN108696324A (en) * 2018-05-29 2018-10-23 新华三技术有限公司 A kind of link-quality detection method, device and radio reception device
CN108696324B (en) * 2018-05-29 2021-06-18 新华三技术有限公司 Link quality detection method and device and wireless access equipment
CN110999418B (en) * 2018-06-22 2023-05-23 Lg电子株式会社 Method and apparatus for receiving WUR discovery frame in wireless LAN system
CN110999418A (en) * 2018-06-22 2020-04-10 Lg电子株式会社 Method and apparatus for receiving WUR discovery frame in wireless LAN system
US11889418B2 (en) 2018-06-22 2024-01-30 Lg Electronics Inc. Method and device for receiving WUR discovery frame in wireless LAN system
CN113543289A (en) * 2020-04-22 2021-10-22 瑞昱半导体股份有限公司 Communication device and method for dynamically adjusting wake-up time
CN113543289B (en) * 2020-04-22 2023-12-15 瑞昱半导体股份有限公司 Communication device and method for dynamically adjusting wake-up time
CN115604792A (en) * 2021-06-28 2023-01-13 华为技术有限公司(Cn) Communication method and device
WO2023028891A1 (en) * 2021-08-31 2023-03-09 Oppo广东移动通信有限公司 Data transmission method and apparatus, and device and storage medium
WO2023051268A1 (en) * 2021-09-29 2023-04-06 华为技术有限公司 Terminal control method, apparatus and system

Also Published As

Publication number Publication date
CN107333307B (en) 2020-06-16
WO2017186059A1 (en) 2017-11-02

Similar Documents

Publication Publication Date Title
CN107333307B (en) Method and device 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
JP3774464B2 (en) Wireless communication system and base station apparatus thereof
EP2157739B1 (en) Communication system, communication device, communication method, and computer program
US20190253968A1 (en) Managing target wake time scheduling using congestion metrics
US20190253967A1 (en) Managing target wake time scheduling using congestion metrics
US20230093649A1 (en) Communication Method and Apparatus
EP3920572B1 (en) Measurement gap configuration method, apparatus, device, terminal and system
KR20180121963A (en) A method for establishing uplink semi-persistent scheduling,
CN104469958A (en) Dual frequency communication method and WLAN device
US9699714B2 (en) Wireless local area network access point search method, apparatus, and system
WO2022222892A1 (en) Discontinuous reception configuration method and apparatus
JP5466580B2 (en) Wireless communication system and intermittent transmission method
TWI854486B (en) Multilink device and communication method
US20230189388A1 (en) Communication Method and Apparatus
US11259234B2 (en) Path switching method and related device
CN116193526A (en) Terminal roaming method and device, wireless local area network
CN104955128A (en) Load information transmission method, load information transmission system and network element
EP3386240A1 (en) Switchover method in master-slave network, master device, slave device, and system
CN101145999A (en) Method and node device for realizing common channel framework mechanism in wireless mesh network
TW201637496A (en) Clock drift management for coexistence and concurrency
CN113133092B (en) Energy-saving control method and related equipment
CN111436119B (en) DRX transmission method and related equipment
JP2014236374A (en) Repeater device and repeater sleep control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant