[go: up one dir, main page]

CN107690138B - Fast roaming method, device, system, access point and mobile station - Google Patents

Fast roaming method, device, system, access point and mobile station Download PDF

Info

Publication number
CN107690138B
CN107690138B CN201610640221.4A CN201610640221A CN107690138B CN 107690138 B CN107690138 B CN 107690138B CN 201610640221 A CN201610640221 A CN 201610640221A CN 107690138 B CN107690138 B CN 107690138B
Authority
CN
China
Prior art keywords
sta
ptk
feature information
random number
data
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.)
Active
Application number
CN201610640221.4A
Other languages
Chinese (zh)
Other versions
CN107690138A (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 CN201610640221.4A priority Critical patent/CN107690138B/en
Publication of CN107690138A publication Critical patent/CN107690138A/en
Application granted granted Critical
Publication of CN107690138B publication Critical patent/CN107690138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • 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
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point

Landscapes

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

Abstract

The invention discloses a fast roaming method, a device, a system, an access point and a mobile station, belonging to the technical field of networks. The method comprises the following steps: the fast roaming device acquires the characteristic information of the first AP; after determining that the STA is accessed to the second AP, the fast roaming device sends the characteristic information of the first AP to the STA; the STA generates and sends a random number and generates a PTK; the fast roaming device acquires the feature information of the STA; the fast roaming device sends the feature information of the STA to the first AP; the first AP generates a PTK, and link authentication, access authentication and key agreement are completed; after determining to switch to the first AP, the STA sends a data message encrypted by the PTK to the first AP; the first AP decrypts the encrypted data message by adopting the PTK; and the first AP completes association according to whether the internal information of the decrypted data message is consistent. The invention can reduce the time of roaming switching to 0.

Description

一种快速漫游方法、装置、系统、接入点和移动站A fast roaming method, apparatus, system, access point and mobile station

技术领域technical field

本发明涉及网络技术领域,特别涉及一种快速漫游方法、装置、系统、接入点和移动站。The present invention relates to the field of network technologies, and in particular, to a fast roaming method, device, system, access point and mobile station.

背景技术Background technique

漫游(英文:roaming)指移动台(英文:station,简称:STA)从无线局域网(英文:Wireless Local Area Networks,简称:WLAN)的一个无线接入点(英文:Access Point,简称:AP)切换到另一个AP,WLAN仍可向其提供服务的功能。Roaming (English: roaming) refers to the handover of a mobile station (English: station, abbreviated: STA) from a wireless access point (English: Access Point, abbreviated: AP) of a wireless local area network (English: Wireless Local Area Networks, abbreviated: WLAN) To another AP, the WLAN can still provide the function of service to it.

目前AP的切换需要STA与AP之间通过多次交互实现链路认证、关联(英文:Association)、接入认证、密钥协商四个过程。如果上述四个过程分别进行,则整个漫游过程耗费的时间将达到几百毫秒。电气电子工程师学会(英文:Institute of Electricaland Electronics Engineers,简称:IEEE)为无线局域网(英文:Wireless Local AreaNetworks,简称:WLAN)制定的标准802.11r中,采用增加信息负载的方式减少交互流程,在关联和认证的过程中进行密钥协商,将漫游耗费的时间减少到100毫秒内,实现快速漫游。Currently, AP handover requires four processes of link authentication, association (English: Association), access authentication, and key negotiation through multiple interactions between the STA and the AP. If the above four processes are carried out separately, the time consumed by the entire roaming process will reach several hundreds of milliseconds. In the standard 802.11r developed by the Institute of Electrical and Electronics Engineers (IEEE) for wireless local area networks (English: Wireless Local Area Networks, abbreviated: WLAN), the interaction process is reduced by increasing the information load. During the authentication process, key negotiation is performed to reduce the roaming time to less than 100 milliseconds and realize fast roaming.

在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of realizing the present invention, the inventor found that the prior art has at least the following problems:

国际电信联盟(英文:International Telecommunication Union,简称:国际电信联盟)定义的标准中,以互联网协议语音通话(英文:Voice over Internet Protocol,简称:VoIP)为例,要求单向时延小于200ms,抖动小于40ms。802.11r中漫游耗费的时间通常为50ms~80ms,如果通信网络由于流量的突发性导致时延为160ms左右,抖动为30ms左右,则漫游中单向最大时延为160ms+80ms=240ms>200ms,抖动为30ms+80ms=110ms>40ms,无法满足VoIP等业务需求。In the standard defined by the International Telecommunication Union (English: International Telecommunication Union, referred to as: International Telecommunication Union), taking Voice over Internet Protocol (English: Voice over Internet Protocol, referred to as: VoIP) as an example, one-way delay is required to be less than 200ms, jitter less than 40ms. The time spent in roaming in 802.11r is usually 50ms to 80ms. If the communication network has a delay of about 160ms and jitter of about 30ms due to the burstiness of traffic, the maximum one-way delay in roaming is 160ms+80ms=240ms>200ms , the jitter is 30ms+80ms=110ms>40ms, which cannot meet the service requirements such as VoIP.

发明内容SUMMARY OF THE INVENTION

为了解决现有技术无法满足VoIP等业务需求的问题,本发明实施例提供了一种快速漫游方法、装置、系统、接入点和移动站。所述技术方案如下:In order to solve the problem that the prior art cannot meet service requirements such as VoIP, the embodiments of the present invention provide a fast roaming method, device, system, access point and mobile station. The technical solution is as follows:

第一方面,本发明实施例提供了一种快速漫游方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a fast roaming method, and the method includes:

快速漫游装置获取第一接入点AP的特征信息,所述第一AP的特征信息包括所述第一AP的介质访问控制MAC地址和所述第一AP生成的随机数;The fast roaming device acquires feature information of a first access point AP, where the feature information of the first AP includes a medium access control MAC address of the first AP and a random number generated by the first AP;

所述快速漫游装置在确定移动站STA接入第二AP之后,向所述STA发送所述第一AP的特征信息,所述第一AP为所述第二AP的邻居;After determining that the mobile station STA accesses the second AP, the fast roaming device sends the feature information of the first AP to the STA, where the first AP is a neighbor of the second AP;

所述STA生成并发送随机数,基于所述STA生成的随机数、所述STA的MAC地址、成对主密钥PMK、以及所述第一AP的特征信息生成成对临时密钥PTK;The STA generates and sends a random number, and generates a paired temporary key PTK based on the random number generated by the STA, the MAC address of the STA, the paired master key PMK, and the feature information of the first AP;

所述快速漫游装置获取所述STA的特征信息,所述STA的特征信息包括所述STA的MAC地址、所述STA生成的随机数、以及所述PMK的特征值;The fast roaming apparatus acquires characteristic information of the STA, where the characteristic information of the STA includes the MAC address of the STA, the random number generated by the STA, and the characteristic value of the PMK;

所述快速漫游装置向所述第一AP发送所述STA的特征信息;sending, by the fast roaming device, the characteristic information of the STA to the first AP;

所述第一AP基于所述STA的特征信息和所述第一AP的特征信息生成所述PTK,所述STA和所述第一AP之间的链路认证、接入认证、以及密钥协商完成;The first AP generates the PTK based on the feature information of the STA and the feature information of the first AP, and link authentication, access authentication, and key negotiation between the STA and the first AP Finish;

所述STA在确定切换到所述第一AP之后,向所述第一AP发送采用所述PTK加密后的数据报文;After the STA determines to switch to the first AP, send the data packet encrypted by the PTK to the first AP;

所述第一AP采用所述PTK对加密后的所述数据报文进行解密;The first AP uses the PTK to decrypt the encrypted data message;

所述第一AP根据解密后的所述数据报文的内部信息是否一致,完成所述STA和所述第一AP之间的关联。The first AP completes the association between the STA and the first AP according to whether the internal information of the decrypted data packet is consistent.

在确定STA已接入第二AP的情况下,考虑到STA只有通过第二AP的链路认证、接入认证等过程才能接入第二AP,因此此时可以确定STA已经通过认证,其合法性得到了初步保证。为了避免由于进行多次报文协商实现接入认证而耗费大量的时间,本发明对STA从第二AP切换到第一AP的过程进行了简化:在STA切换到第一AP之前,实现STA和第一AP之间的信息交互,STA和第一AP均获取到对方的MAC地址、配置好PMK、以及生成PTK,完成STA和第一AP之间的链路认证、接入认证、以及密钥协商;在STA确定切换到第一AP之后,第一AP根据STA向第一AP发送的第一个数据报文的内部信息是否一致,完成STA和第一AP之间的关联。In the case that it is determined that the STA has accessed the second AP, considering that the STA can only access the second AP through the link authentication and access authentication of the second AP, it can be determined that the STA has passed the authentication at this time, and it is legal Sex is initially guaranteed. In order to avoid a lot of time consuming to achieve access authentication due to multiple packet negotiation, the present invention simplifies the process of the STA switching from the second AP to the first AP: before the STA switches to the first AP, the STA and In the information exchange between the first AP, the STA and the first AP both obtain the MAC address of the other party, configure the PMK, and generate a PTK to complete the link authentication, access authentication, and key between the STA and the first AP. Negotiation; after the STA determines to switch to the first AP, the first AP completes the association between the STA and the first AP according to whether the internal information of the first data packet sent by the STA to the first AP is consistent.

通过在STA接入第二AP之后,在STA和作为第二AP的邻居的第一AP之间交互建立无线链接的MAC地址、PMK、PTK等信息,完成STA接入第一AP过程中的链路认证、接入认证、密钥协商,大大减少STA漫游过程中交互信息所耗费的时间。同时当STA确定切换到第一AP时,AP根据STA向AP发送的第一个数据报文的内部信息是否一致,完成STA和第一AP之间的关联,使得STA的漫游过程中没有时间的消耗(即漫游切换的时间减至0),切换过程快,完全可以满足VoIP等业务需求,有效保障用户体验。After the STA accesses the second AP, the information such as the MAC address, PMK, and PTK of the wireless link is exchanged between the STA and the first AP, which is a neighbor of the second AP, to complete the link in the process of the STA accessing the first AP. It supports route authentication, access authentication, and key negotiation, greatly reducing the time spent exchanging information during STA roaming. At the same time, when the STA determines to switch to the first AP, the AP completes the association between the STA and the first AP according to whether the internal information of the first data packet sent by the STA to the AP is consistent, so that there is no time limit during the roaming process of the STA. Consumption (that is, the time of roaming switching is reduced to 0), and the switching process is fast, which can fully meet the needs of VoIP and other services, and effectively guarantee the user experience.

在第一方面一种可能的实现方式中,所述数据报文包括数据和数据摘要,所述第一AP根据解密后的所述数据报文的内部信息是否一致,完成所述STA和所述第一AP之间的关联,包括:In a possible implementation manner of the first aspect, the data packet includes data and a data digest, and the first AP completes the process between the STA and the data packet according to whether the internal information of the decrypted data packet is consistent. The association between the first APs, including:

所述第一AP采用数据摘要算法对解密后的所述数据进行计算,得到计算出的数据摘要;The first AP uses a data digest algorithm to calculate the decrypted data to obtain a calculated data digest;

所述第一AP将计算出的所述数据摘要与解密后的所述数据摘要进行对比;The first AP compares the calculated data digest with the decrypted data digest;

当计算出的所述数据摘要与解密后的所述数据摘要一致时,所述STA和所述第一AP之间的关联完成。When the calculated data digest is consistent with the decrypted data digest, the association between the STA and the first AP is completed.

第一AP利用现有的数据摘要算法检测数据报文中的数据和数据摘要是否一致,并将其应用于关联过程:通过验证首个数据报文中的摘要的正确性完成STA和AP间的关联,没有独立的关联报文,在通过两次交互完成链路认证、接入认证和密钥协商的基础上,将AP和STA间漫游时间减为0,保障用户体验。The first AP uses the existing data digest algorithm to detect whether the data in the data packet is consistent with the data digest, and applies it to the association process: completes the communication between the STA and the AP by verifying the correctness of the digest in the first data packet. Association, there is no independent association packet, on the basis of completing link authentication, access authentication and key negotiation through two exchanges, the roaming time between AP and STA is reduced to 0 to ensure user experience.

在第一方面另一种可能的实现方式中,所述快速漫游装置设置在AP上或者接入控制器AC上,所述AC用于控制和管理所述AP。In another possible implementation manner of the first aspect, the fast roaming device is set on an AP or an access controller AC, where the AC is used to control and manage the AP.

通过对现有设备进行改进实现快速漫游装置,实现成本低。The fast roaming device is realized by improving the existing equipment, and the realization cost is low.

在第一方面又一种可能的实现方式中,所述第一AP的特征信息还包括所述第一AP的加密方式、所述第一AP的频点、所述第一AP的带宽中的至少一种。In yet another possible implementation manner of the first aspect, the feature information of the first AP further includes an encryption method of the first AP, a frequency point of the first AP, and a bandwidth of the first AP. at least one.

可以根据接入AP所需信息,对第一AP的特征信息进行适应性调整。The feature information of the first AP may be adaptively adjusted according to information required for accessing the AP.

第二方面,本发明实施例提供了一种快速漫游方法,所述方法包括:In a second aspect, an embodiment of the present invention provides a fast roaming method, the method includes:

快速漫游装置获取第一接入点AP的特征信息,所述第一AP的特征信息包括所述第一AP的介质访问控制MAC地址和所述第一AP生成的随机数;The fast roaming device obtains feature information of a first access point AP, where the feature information of the first AP includes a medium access control MAC address of the first AP and a random number generated by the first AP;

所述快速漫游装置在确定移动站STA接入第二AP之后,向所述STA发送所述第一AP的特征信息,所述第一AP为所述第二AP的邻居,使所述STA生成并发送随机数,基于所述STA生成的随机数、所述STA的MAC地址、成对主密钥PMK、以及所述第一AP的特征信息生成成对临时密钥PTK;After determining that the mobile station STA accesses the second AP, the fast roaming device sends the feature information of the first AP to the STA, where the first AP is a neighbor of the second AP, and causes the STA to generate and send a random number, and generate a paired temporary key PTK based on the random number generated by the STA, the MAC address of the STA, the paired master key PMK, and the feature information of the first AP;

所述快速漫游装置获取所述STA的特征信息,所述STA的特征信息包括所述STA的MAC地址、所述STA生成的随机数、以及所述PMK的特征值;The fast roaming apparatus acquires characteristic information of the STA, where the characteristic information of the STA includes the MAC address of the STA, the random number generated by the STA, and the characteristic value of the PMK;

所述快速漫游装置向所述第一AP发送所述STA的特征信息,使所述第一AP基于所述STA的特征信息和所述第一AP的特征信息生成所述PTK,所述STA和所述第一AP之间的链路认证、接入认证、以及密钥协商完成。The fast roaming device sends the feature information of the STA to the first AP, so that the first AP generates the PTK based on the feature information of the STA and the feature information of the first AP, the STA and the feature information of the first AP generate the PTK. Link authentication, access authentication, and key negotiation between the first APs are completed.

通过在STA接入第二AP之后,在STA和作为第二AP的邻居的第一AP之间交互建立无线链接的MAC地址、PMK、PTK等信息,完成STA接入第一AP过程中的链路认证、接入认证、密钥协商,大大减少STA漫游过程中交互信息所耗费的时间。After the STA accesses the second AP, the information such as the MAC address, PMK, and PTK of the wireless link is exchanged between the STA and the first AP, which is a neighbor of the second AP, to complete the link in the process of the STA accessing the first AP. It supports route authentication, access authentication, and key negotiation, greatly reducing the time spent exchanging information during STA roaming.

在第二方面一种可能的实现方式中,所述快速漫游装置设置在AP上或者接入控制器AC上,所述AC用于控制和管理所述AP。In a possible implementation manner of the second aspect, the fast roaming device is set on an AP or an access controller AC, where the AC is used to control and manage the AP.

通过对现有设备进行改进实现快速漫游装置,实现成本低。The fast roaming device is realized by improving the existing equipment, and the realization cost is low.

第三方面,本发明实施例提供了一种快速漫游方法,所述方法包括:In a third aspect, an embodiment of the present invention provides a fast roaming method, the method includes:

第一接入点AP完成与移动站STA之间的链路认证、接入认证、密钥协商,得到所述STA的MAC地址、成对主密钥PMK和成对临时密钥PTK;The first access point AP completes link authentication, access authentication, and key negotiation with the mobile station STA, and obtains the MAC address of the STA, the paired master key PMK, and the paired temporary key PTK;

所述第一AP接收所述STA在确定从第二AP切换到所述第一AP之后发送的采用所述PTK加密后的数据报文,所述第一AP为所述第二AP的邻居;receiving, by the first AP, a data packet encrypted by the PTK and sent by the STA after determining to switch from the second AP to the first AP, where the first AP is a neighbor of the second AP;

所述第一AP采用所述PTK对加密后的所述数据报文进行解密;The first AP uses the PTK to decrypt the encrypted data message;

所述第一AP根据解密后的所述数据报文的内部信息是否一致,完成所述STA和所述第一AP之间的关联。The first AP completes the association between the STA and the first AP according to whether the internal information of the decrypted data packet is consistent.

通过在STA确定从第二AP切换到该AP之前,完成与STA之间的链路认证、接入认证、密钥协商,得到STA的MAC地址、PMK和PTK,在STA确定从第二AP切换到该AP之后,接收STA采用PTK加密后发送的数据报文,采用PTK对加密后的数据报文进行解密,并根据解密后的数据报文的内部信息是否一致,完成STA和第一AP之间的关联,使得STA的漫游过程中没有时间的消耗(即漫游切换的时间减至0),切换过程快,完全可以满足VoIP等业务需求,有效保障用户体验。Before the STA determines to switch from the second AP to the AP, complete the link authentication, access authentication, and key negotiation with the STA to obtain the MAC address, PMK, and PTK of the STA, and then the STA determines to switch from the second AP. After arriving at the AP, receive the data packet sent by the STA encrypted with PTK, decrypt the encrypted data packet using PTK, and complete the communication between the STA and the first AP according to whether the internal information of the decrypted data packet is consistent. The association between the STAs makes the roaming process of the STA without time consumption (that is, the roaming handover time is reduced to 0), and the handover process is fast, which can fully meet the needs of VoIP and other services, and effectively guarantee the user experience.

在第三方面一种可能的实现方式中,所述数据报文包括数据和数据摘要,所述第一AP根据解密后的所述数据报文的内部信息是否一致,完成所述STA和所述第一AP之间的关联,包括:In a possible implementation manner of the third aspect, the data packet includes data and a data digest, and the first AP completes the STA and the data packet according to whether the internal information of the decrypted data packet is consistent. The association between the first APs, including:

所述第一AP采用数据摘要算法对解密后的所述数据进行计算,得到计算出的数据摘要;The first AP uses a data digest algorithm to calculate the decrypted data to obtain a calculated data digest;

所述第一AP将计算出的所述数据摘要与解密后的所述数据摘要进行对比;The first AP compares the calculated data digest with the decrypted data digest;

当计算出的所述数据摘要与解密后的所述数据摘要一致时,所述STA和所述第一AP之间的关联完成。When the calculated data digest is consistent with the decrypted data digest, the association between the STA and the first AP is completed.

第一AP通过验证首个数据报文中的摘要的正确性完成STA和AP间的关联,没有独立的关联报文,在通过两次交互完成链路认证、接入认证和密钥协商的基础上,将AP和STA间漫游时间减为0,保障用户体验。The first AP completes the association between the STA and the AP by verifying the correctness of the digest in the first data packet. There is no independent association packet. The link authentication, access authentication and key negotiation are completed through two exchanges. , reduce the roaming time between AP and STA to 0 to ensure user experience.

第四方面,本发明实施例提供了一种快速漫游方法,所述方法包括:In a fourth aspect, an embodiment of the present invention provides a fast roaming method, the method includes:

移动站STA在接入第二接入点AP之后,完成与第一AP之间的链路认证、接入认证、密钥协商,得到所述第一AP的MAC地址、成对主密钥PMK和成对临时密钥PTK,所述第一AP为所述第二AP的邻居;After the mobile station STA accesses the second access point AP, it completes link authentication, access authentication, and key negotiation with the first AP, and obtains the MAC address of the first AP and the paired master key PMK and pairwise temporary key PTK, the first AP is the neighbor of the second AP;

所述STA在确定切换到所述第一AP之后,向所述第一AP发送采用所述PTK加密后的数据报文。After determining to switch to the first AP, the STA sends a data packet encrypted by using the PTK to the first AP.

通过在STA确定从第二AP切换到第一AP之前,完成与第一AP之间的链路认证、接入认证、密钥协商,得到第一AP的MAC地址、PMK和PTK,在STA确定从第二AP切换到该AP之后,向STA发送采用PTK加密后的数据报文,使第一AP采用PTK对加密后的数据报文进行解密,并根据解密后数据报文的内部信息是否一致,完成STA和第一AP之间的关联,使得STA的漫游过程中没有时间的消耗(即漫游切换的时间减至0),切换过程快,完全可以满足VoIP等业务需求,有效保障用户体验。By completing link authentication, access authentication, and key negotiation with the first AP before the STA determines to switch from the second AP to the first AP, the MAC address, PMK, and PTK of the first AP are obtained, and the STA determines After switching from the second AP to the AP, send the data packet encrypted with PTK to the STA, so that the first AP uses PTK to decrypt the encrypted data packet, and according to whether the internal information of the decrypted data packet is consistent , complete the association between the STA and the first AP, so that there is no time consumption in the roaming process of the STA (that is, the time of roaming handover is reduced to 0), the handover process is fast, and the service requirements such as VoIP can be fully met, and the user experience can be effectively guaranteed.

第五方面,本发明实施例提供了一种快速漫游系统,所述系统包括用于实现上述第一方面所述的方法的设备,例如快速漫游装置、移动站STA、第二接入点AP、第一AP。In a fifth aspect, an embodiment of the present invention provides a fast roaming system, where the system includes a device for implementing the method described in the first aspect, such as a fast roaming device, a mobile station STA, a second access point AP, First AP.

第六方面,本发明实施例提供了一种快速漫游装置,所述装置包括用于实现上述第二方面所述的方法的单元,例如AP信息获取单元、AP信息发送单元、STA信息获取单元、STA信息发送单元。In a sixth aspect, an embodiment of the present invention provides a fast roaming device, the device includes a unit for implementing the method described in the second aspect above, such as an AP information acquisition unit, an AP information transmission unit, a STA information acquisition unit, STA information sending unit.

第七方面,本发明实施例提供了一种接入点AP,所述AP包括用于实现上述第三方面所述的方法的单元,例如接入准备单元、报文接收单元、解密单元、确定单元。In a seventh aspect, an embodiment of the present invention provides an access point AP, where the AP includes a unit for implementing the method described in the third aspect, such as an access preparation unit, a packet receiving unit, a decryption unit, a determination unit unit.

第八方面,本发明实施例提供了一种移动站STA,所述STA包括用于实现上述第四方面所述的方法的单元,例如接入准备单元、接入完成单元。In an eighth aspect, an embodiment of the present invention provides a mobile station STA, where the STA includes a unit for implementing the method described in the fourth aspect above, such as an access preparation unit and an access completion unit.

第九方面,本发明实施例提供了一种快速漫游装置,所述装置包括:存储器、与存储器连接的处理器,所述存储器用于存储软件程序以及模块,当所述处理器用于运行或执行存储在所述存储器内的软件程序以及模块时,可以执行第二方面所述的方法。In a ninth aspect, an embodiment of the present invention provides a fast roaming device, the device includes: a memory and a processor connected to the memory, where the memory is used to store software programs and modules, when the processor is used for running or executing The method described in the second aspect can be executed when the software programs and modules are stored in the memory.

第十方面,本发明实施例还提供了一种计算机可读介质,用于存储供终端执行的程序代码,所述程序代码包括执行第二方面所述的方法的指令。In a tenth aspect, an embodiment of the present invention further provides a computer-readable medium for storing program codes for execution by a terminal, where the program codes include instructions for executing the method described in the second aspect.

第十一方面,本发明实施例提供了一种接入点AP,所述AP包括:存储器、与存储器连接的处理器,所述存储器用于存储软件程序以及模块,当所述处理器用于运行或执行存储在所述存储器内的软件程序以及模块时,可以执行第三方面所述的方法。In an eleventh aspect, an embodiment of the present invention provides an access point AP, where the AP includes: a memory and a processor connected to the memory, where the memory is used to store software programs and modules, and when the processor is used to run Or when executing software programs and modules stored in the memory, the method described in the third aspect can be executed.

第十二方面,本发明实施例还提供了一种计算机可读介质,用于存储供终端执行的程序代码,所述程序代码包括执行第三方面所述的方法的指令。In a twelfth aspect, an embodiment of the present invention further provides a computer-readable medium for storing program codes for execution by a terminal, where the program codes include instructions for executing the method described in the third aspect.

第十三方面,本发明实施例提供了一种移动站STA,所述STA包括:存储器、与存储器连接的处理器,所述存储器用于存储软件程序以及模块,当所述处理器用于运行或执行存储在所述存储器内的软件程序以及模块时,可以执行第四方面所述的方法。In a thirteenth aspect, an embodiment of the present invention provides a mobile station STA, where the STA includes: a memory and a processor connected to the memory, where the memory is used to store software programs and modules, when the processor is used to run or The method described in the fourth aspect can be performed when the software programs and modules stored in the memory are executed.

第十四方面,本发明实施例还提供了一种计算机可读介质,用于存储供终端执行的程序代码,所述程序代码包括执行第四方面所述的方法的指令。In a fourteenth aspect, an embodiment of the present invention further provides a computer-readable medium for storing program codes for execution by a terminal, where the program codes include instructions for executing the method described in the fourth aspect.

本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided in the embodiments of the present invention are:

通过在STA接入第二AP之后,在STA和作为第二AP的邻居的第一AP之间交互建立无线链接的MAC地址、PMK、PTK等信息,完成STA接入第一AP过程中的链路认证、接入认证、密钥协商,大大减少STA漫游过程中交互信息所耗费的时间。同时当STA确定切换到第一AP时,AP根据STA向AP发送的第一个数据报文的内部信息是否一致,完成STA和第一AP之间的关联,使得STA的漫游过程中没有时间的消耗(即漫游切换的时间减至0),切换过程快,完全可以满足VoIP等业务需求,有效保障用户体验。After the STA accesses the second AP, the information such as the MAC address, PMK, and PTK of the wireless link is exchanged between the STA and the first AP, which is a neighbor of the second AP, to complete the link in the process of the STA accessing the first AP. It supports route authentication, access authentication, and key negotiation, greatly reducing the time spent exchanging information during STA roaming. At the same time, when the STA determines to switch to the first AP, the AP completes the association between the STA and the first AP according to whether the internal information of the first data packet sent by the STA to the AP is consistent, so that there is no time limit during the roaming process of the STA. Consumption (that is, the time of roaming switching is reduced to 0), and the switching process is fast, which can fully meet the needs of VoIP and other services, and effectively guarantee the user experience.

附图说明Description of drawings

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

图1是本发明实施例提供的快速漫游方法的应用场景图;1 is an application scenario diagram of a fast roaming method provided by an embodiment of the present invention;

图2是本发明实施例提供的实现AP切换的网络架构图;2 is a network architecture diagram for realizing AP handover provided by an embodiment of the present invention;

图3是本发明实施例提供的快速漫游装置的硬件结构图;3 is a hardware structure diagram of a fast roaming device provided by an embodiment of the present invention;

图4是本发明实施例提供的第一AP的硬件结构图;4 is a hardware structure diagram of a first AP provided by an embodiment of the present invention;

图5是本发明实施例提供的STA的硬件结构图;5 is a hardware structure diagram of a STA provided by an embodiment of the present invention;

图6是本发明实施例提供的一种快速漫游方法的流程图;6 is a flowchart of a fast roaming method provided by an embodiment of the present invention;

图7是本发明实施例提供的STA接入第二AP的交互过程图;7 is an interaction process diagram of a STA accessing a second AP according to an embodiment of the present invention;

图8a和图8b是本发明实施例提供的STA发现第二AP的过程示意图;8a and 8b are schematic diagrams of a process for a STA to discover a second AP according to an embodiment of the present invention;

图9a和图9b是本发明实施例提供的STA和第二AP进行链路认证的示意图;9a and 9b are schematic diagrams of link authentication between a STA and a second AP according to an embodiment of the present invention;

图10是本发明实施例提供的STA和第二AP进行关联的示意图;FIG. 10 is a schematic diagram of associating a STA with a second AP according to an embodiment of the present invention;

图11a和图11b是本发明实施例提供的STA与AC、RADIUS服务器进行接入认证的示意图;FIG. 11a and FIG. 11b are schematic diagrams of performing access authentication between a STA, an AC, and a RADIUS server according to an embodiment of the present invention;

图12a和图12b是本发明实施例提供的STA和第二AP进行密钥协商的示意图;12a and 12b are schematic diagrams of key negotiation between an STA and a second AP according to an embodiment of the present invention;

图13是本发明实施例提供的PTK的结构示意图;13 is a schematic structural diagram of a PTK provided by an embodiment of the present invention;

图14a和图14b是本发明实施例提供的另一种快速漫游方法的交互过程图;14a and 14b are interaction process diagrams of another fast roaming method provided by an embodiment of the present invention;

图15是本发明实施例提供的AP的特征信息的结构示意图;15 is a schematic structural diagram of feature information of an AP provided by an embodiment of the present invention;

图16是本发明实施例提供的承载STA生成的随机数的消息的结构示意图;16 is a schematic structural diagram of a message carrying a random number generated by an STA provided by an embodiment of the present invention;

图17是本发明实施例提供的802.11r中密钥的结构示意图;17 is a schematic structural diagram of a key in 802.11r provided by an embodiment of the present invention;

图18是本发明实施例提供的数据报文生成过程的示意图;18 is a schematic diagram of a data message generation process provided by an embodiment of the present invention;

图19是本发明实施例提供的一种快速漫游装置的结构示意图;19 is a schematic structural diagram of a fast roaming device according to an embodiment of the present invention;

图20是本发明实施例提供的一种接入点的结构示意图;FIG. 20 is a schematic structural diagram of an access point provided by an embodiment of the present invention;

图21是本发明实施例提供的一种移动站的结构示意图;21 is a schematic structural diagram of a mobile station according to an embodiment of the present invention;

图22a和图22b是本发明实施例提供的一种快速漫游系统的结构示意图。22a and 22b are schematic structural diagrams of a fast roaming system according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

移动办公是办公人员在任何时间(英文:Anytime)、任何地点(英文:Anywhere)处理与业务相关的任何事情(英文:Anything),也称为“3A办公”。这种全新的办公模式让办公人员摆脱时间和空间的束缚,可以在任意位置接入企业网络完成工作。Mobile office is the office staff at any time (English: Anytime), any place (English: Anywhere) to deal with any business-related things (English: Anything), also known as "3A office". This new office model frees office workers from the constraints of time and space, and can access the corporate network at any location to complete their work.

图1为本发明实施例提供的快速漫游方法应用在移动办公场景的示意图。参见图1,第一AP 10和第二AP 20接入同一个企业网络30,企业网络30实质上是一个无线局域网(英文:Wireless Local Are Networks,简称:WLAN)。企业网络30、客户所在网络41和数据中心42分别接入运营商网络50。STA60当前位于第二AP 20的服务区域(图1中用椭圆表示各个AP的服务区域)内,STA 60接入第二AP 20(第二AP 20称为STA60的当前AP),第二AP 20接入企业网络30,通过运营商网络50可以实现对客户所在网络41、以及数据中心42的访问;之后STA 60移动到第一AP 10的服务区域内(图1用带箭头的直线表示STA的移动方向),STA60切换到第一AP 10(第一AP 10称为STA 60的目标AP),第一AP 10也接入企业网络30,STA60可以继续访问客户所在网络41、以及数据中心42,实现移动办公。STA60从第二AP 20切换到第一AP 10的过程中,采用本发明实施例提供的方法实现快速漫游。FIG. 1 is a schematic diagram of applying a fast roaming method provided by an embodiment of the present invention to a mobile office scenario. Referring to FIG. 1 , the first AP 10 and the second AP 20 access the same enterprise network 30, and the enterprise network 30 is essentially a wireless local area network (English: Wireless Local Are Networks, WLAN for short). The enterprise network 30 , the network 41 where the customer is located, and the data center 42 are respectively connected to the operator network 50 . The STA 60 is currently located in the service area of the second AP 20 (the service area of each AP is represented by an ellipse in FIG. 1 ), the STA 60 accesses the second AP 20 (the second AP 20 is called the current AP of the STA 60 ), and the second AP 20 Access to the enterprise network 30, through the operator network 50, can realize access to the network 41 where the customer is located, and the data center 42; then the STA 60 moves to the service area of the first AP 10 (FIG. 1 uses a straight line with an arrow to indicate the STA's moving direction), the STA 60 switches to the first AP 10 (the first AP 10 is called the target AP of the STA 60), the first AP 10 also accesses the enterprise network 30, and the STA 60 can continue to access the network 41 where the customer is located, and the data center 42, Realize mobile office. In the process of switching from the second AP 20 to the first AP 10, the STA 60 adopts the method provided by the embodiment of the present invention to implement fast roaming.

图2为在图1所示的应用场景下具体实现AP切换的网络架构图。如图2所示,三个第一AP 10和第二AP 20布置在不同位置,三个第一AP 10为第二AP20的邻居。其中,两个互为邻居的AP由同一个接入控制器(英文:Access Controller,简称:AC)控制且服务集标识(英文:Service Set Identifier,简称:SSID)相同。STA可以在互为邻居的AP之间漫游,即从一个AP切换到另一个AP。图2所示第一AP的数量仅为举例,本发明实施例对此不做限制。FIG. 2 is a network architecture diagram that specifically implements AP handover in the application scenario shown in FIG. 1 . As shown in FIG. 2 , the three first APs 10 and the second AP 20 are arranged in different positions, and the three first APs 10 are neighbors of the second AP 20 . The two APs that are neighbors to each other are controlled by the same access controller (English: Access Controller, AC for short) and have the same Service Set Identifier (English: Service Set Identifier, SSID for short). STAs can roam between APs that are neighbors, that is, handover from one AP to another. The number of the first APs shown in FIG. 2 is only an example, which is not limited in this embodiment of the present invention.

在图2中,STA60当前接入第二AP 20,STA60移动后可能切换到某个第一AP 10。第二AP 20和所有第一AP 10均与接入控制器(英文:Access Controller,简称:AC)70连接(通常采用有线连接),AC 70对各个AP的配置、射频、用户接入等进行管理和控制。AC 70还与远程认证拨号用户服务(英文:Remote Authentication Dial-In User Service,简称:RADIUS)服务器80连接(通常采用有线连接),RADIUS服务器80被用作认证、授权和记账(英文:Authentication、Authorization、Accounting,简称:AAA)服务器,实现用户接入认证。In FIG. 2 , the STA 60 is currently accessing the second AP 20 , and the STA 60 may switch to a certain first AP 10 after moving. The second AP 20 and all the first APs 10 are connected to an access controller (English: Access Controller, AC for short) 70 (usually wired connection), and the AC 70 performs configuration, radio frequency, user access, etc. of each AP. management and control. The AC 70 is also connected with a Remote Authentication Dial-In User Service (English: Remote Authentication Dial-In User Service, RADIUS for short) server 80 (usually using a wired connection), and the RADIUS server 80 is used for authentication, authorization and accounting (English: Authentication , Authorization, Accounting, referred to as: AAA) server, to achieve user access authentication.

本发明在上述网络架构增设一个快速漫游装置90,主要在STA 60切换到第一AP10之前实现STA60和第一AP 10之间的信息交互。具体地,快速漫游装置可以设置在AC 70上,也可以设置在各个AP上,还可以独立于AC 70和AP设置。图2中以快速漫游装置90独立于AC和AP设置进行示例性说明,在实际应用中,快速漫游装置90也可以设置在AC或者各个AP上。The present invention adds a fast roaming device 90 to the above-mentioned network architecture, and mainly realizes the information exchange between the STA 60 and the first AP 10 before the STA 60 switches to the first AP 10 . Specifically, the fast roaming device can be set on the AC 70 or on each AP, and can also be set independently of the AC 70 and the AP. In FIG. 2 , the fast roaming device 90 is exemplarily described as being set independently of the AC and the AP. In practical applications, the fast roaming device 90 may also be set on the AC or each AP.

在具体实现中,STA 60一般为客户端,可以是装有无线网卡的计算机,也可以是配置有的无线保真(英文:Wireless-Fidelity,简称:Wi-Fi)模块的智能手机、平板电脑等。第一AP 10、第二AP 20、AC 70均为网络设备,如路由器。In a specific implementation, the STA 60 is generally a client, which may be a computer equipped with a wireless network card, or a smartphone or tablet computer equipped with a wireless fidelity (English: Wireless-Fidelity, Wi-Fi for short) module. Wait. The first AP 10, the second AP 20, and the AC 70 are all network devices, such as routers.

需要说明的是,图1和图2所示的架构仅为示例,本发明并不限制于此。It should be noted that the architectures shown in FIG. 1 and FIG. 2 are only examples, and the present invention is not limited thereto.

下面结合具体的硬件结构对实现本发明实施例提供的快速漫游装置、第一AP和STA进行说明。The following describes the implementation of the fast roaming device, the first AP, and the STA provided by the embodiment of the present invention with reference to the specific hardware structure.

参见图3,快速漫游装置90可以为路由器等网络设备。快速漫游装置9可以包括一个或者一个以上处理核心的处理器91、一个或一个以上计算机可读存储介质的存储器92、以及通信接口93等部件,处理器91可以用总线94与存储器92和通信接口93相连。本领域技术人员可以理解,图3中示出的结构并不构成对装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Referring to FIG. 3 , the fast roaming apparatus 90 may be a network device such as a router. The fast roaming device 9 may include a processor 91 of one or more processing cores, a memory 92 of one or more computer-readable storage media, and a communication interface 93 and other components, and the processor 91 may use a bus 94 to communicate with the memory 92 and the communication interface. 93 connected. Those skilled in the art can understand that the structure shown in FIG. 3 does not constitute a limitation on the device, and may include more or less components than those shown, or combine some components, or arrange different components. in:

处理器91是快速漫游装置90的控制中心,利用各种接口和线路连接整个快速漫游装置90的各个部分,通过运行或执行存储在存储器92内的软件程序和/或模块,以及调用存储在存储器92内的数据,执行快速漫游装置90的各种功能和处理数据,从而对快速漫游装置90进行整体监控。可选地,处理器91可以包括一个或者一个以上处理单元,该处理单元可以是中央处理单元(英文:Central Processing Unit,简称:CPU)或者网络处理器(英文:Network Processor,简称:NP)等。The processor 91 is the control center of the fast roaming device 90, and uses various interfaces and lines to connect various parts of the entire fast roaming device 90, by running or executing the software programs and/or modules stored in the memory 92, and calling the stored in the memory. 92 , perform various functions of the fast roaming device 90 and process data, so as to monitor the fast roaming device 90 as a whole. Optionally, the processor 91 may include one or more processing units, and the processing unit may be a central processing unit (English: Central Processing Unit, referred to as: CPU) or a network processor (English: Network Processor, referred to as: NP), etc. .

存储器92可用于存储软件程序,该软件程序可以由处理器91执行。存储器92可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、AP信息获取模块、AP信息发送模块、STA信息获取模块、STA信息发送模块;存储数据区可存储根据快速漫游装置90的使用所创建的数据,例如成对主密钥、成对临时密钥等。此外,存储器92可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器92还可以包括存储器控制器,以提供处理器91对存储器92的访问。The memory 92 may be used to store software programs, which may be executed by the processor 91 . The memory 92 may mainly include a stored program area and a stored data area, wherein the stored program area can store the operating system, the AP information acquisition module, the AP information transmission module, the STA information acquisition module, and the STA information transmission module; The use of the nomadic device 90 creates data such as pairwise master keys, pairwise ephemeral keys, and the like. Additionally, memory 92 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 92 may also include a memory controller to provide processor 91 access to memory 92 .

通信接口93可以包括有线网络接口(比如以太网接口)和无线网络接口(比如WLAN接口)中的至少一种。当快速漫游装置90增设在AC上或者独立于AC和AP时,通信接口93包括有线网络接口;当快速漫游装置90增设在AP上时,通信接口包括有线网络接口和无线网络接口。通信接口93由处理器91控制。The communication interface 93 may include at least one of a wired network interface (such as an Ethernet interface) and a wireless network interface (such as a WLAN interface). When the fast roaming device 90 is added on the AC or independent of the AC and the AP, the communication interface 93 includes a wired network interface; when the fast roaming device 90 is added on the AP, the communication interface includes a wired network interface and a wireless network interface. The communication interface 93 is controlled by the processor 91 .

可选地,快速漫游装置90还可以包括输出设备95以及输入设备96。输出设备95和输入设备96与处理器91相连。输出设备95可以是用于显示信息的显示器、播放声音的功放设备或者打印机等,输出设备95还可以包括输出控制器,用以提供输出到显示屏、功放设备或者打印机。输入设备96可以是用于用户输入信息的诸如鼠标、键盘、电子触控笔、或者触控面板之类的设备,输入设备96还可以包括输出控制器以用于接收和处理来自鼠标、键盘、电子触控笔、或者触控面板等设备的输入。Optionally, the fast roaming apparatus 90 may further include an output device 95 and an input device 96 . An output device 95 and an input device 96 are connected to the processor 91 . The output device 95 may be a display for displaying information, a power amplifier device or a printer for playing sound, etc. The output device 95 may also include an output controller for providing output to a display screen, a power amplifier device or a printer. Input device 96 may be a device such as a mouse, keyboard, electronic stylus, or touch panel for user input, and may also include an output controller for receiving and processing data from the mouse, keyboard, Input from devices such as an electronic stylus or touch panel.

参见图4,第一AP 10可以为路由器等网络设备。第一AP 10可以包括一个或者一个以上处理核心的处理器11、一个或一个以上计算机可读存储介质的存储器12、以及通信接口13等部件,处理器11可以用总线14与存储器12和通信接口13相连。本领域技术人员可以理解,图4中示出的结构并不构成对装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Referring to FIG. 4 , the first AP 10 may be a network device such as a router. The first AP 10 may include a processor 11 of one or more processing cores, a memory 12 of one or more computer-readable storage media, and a communication interface 13 and other components, and the processor 11 may use a bus 14 to communicate with the memory 12 and the communication interface. 13 connected. Those skilled in the art can understand that the structure shown in FIG. 4 does not constitute a limitation to the device, and may include more or less components than those shown, or combine some components, or arrange different components. in:

处理器11是第一AP 10的控制中心,利用各种接口和线路连接整个第一AP 10的各个部分,通过运行或执行存储在存储器12内的软件程序和/或模块,以及调用存储在存储器12内的数据,执行第一AP 10的各种功能和处理数据,从而对第一AP 10进行整体监控。可选地,处理器11可以包括一个或者一个以上处理单元,该处理单元可以是中央处理单元(英文:Central Processing Unit,简称:CPU)或者网络处理器(英文:Network Processor,简称:NP)等。The processor 11 is the control center of the first AP 10, and uses various interfaces and lines to connect various parts of the entire first AP 10, by running or executing the software programs and/or modules stored in the memory 12, and calling the software programs and/or modules stored in the memory 12. 12, perform various functions of the first AP 10 and process data, so as to monitor the first AP 10 as a whole. Optionally, the processor 11 may include one or more processing units, and the processing unit may be a central processing unit (English: Central Processing Unit, referred to as: CPU) or a network processor (English: Network Processor, referred to as: NP), etc. .

存储器12可用于存储软件程序,该软件程序可以由处理器11执行。存储器12可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、接入准备模块、报文接收模块、解密模块、确定模块;存储数据区可存储根据第一AP 10的使用所创建的数据,例如成对主密钥、成对临时密钥等。此外,存储器12可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器12还可以包括存储器控制器,以提供处理器11对存储器12的访问。The memory 12 may be used to store software programs, which may be executed by the processor 11 . The memory 12 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an access preparation module, a message receiving module, a decryption module, and a determination module; Use created data such as pairwise master keys, pairwise ephemeral keys, etc. Additionally, memory 12 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 12 may also include a memory controller to provide access to the memory 12 by the processor 11 .

通信接口13可以包括有线网络接口(比如以太网接口)和无线网络接口(比如WLAN接口)。通信接口13由处理器11控制。The communication interface 13 may include a wired network interface (such as an Ethernet interface) and a wireless network interface (such as a WLAN interface). The communication interface 13 is controlled by the processor 11 .

可选地,第一AP 10还可以包括输出设备15以及输入设备16。输出设备15和输入设备16与处理器11相连。输出设备15可以是用于显示信息的显示器、播放声音的功放设备或者打印机等,输出设备15还可以包括输出控制器,用以提供输出到显示屏、功放设备或者打印机。输入设备16可以是用于用户输入信息的诸如鼠标、键盘、电子触控笔、或者触控面板之类的设备,输入设备16还可以包括输出控制器以用于接收和处理来自鼠标、键盘、电子触控笔、或者触控面板等设备的输入。Optionally, the first AP 10 may further include an output device 15 and an input device 16 . An output device 15 and an input device 16 are connected to the processor 11 . The output device 15 may be a display for displaying information, a power amplifier device or a printer for playing sound, etc. The output device 15 may also include an output controller for providing output to a display screen, a power amplifier device or a printer. Input device 16 may be a device such as a mouse, keyboard, electronic stylus, or touch panel for user input, and may also include an output controller for receiving and processing data from the mouse, keyboard, Input from devices such as an electronic stylus or touch panel.

图5示出了实现本发明实施例提供的STA的硬件结构。STA60可以为智能手机、平板电脑、笔记本电脑等。以智能手机为例,STA60可以包括射频(Radio Frequency,简称RF)电路61、包括有一个或一个以上计算机可读存储介质的存储器62、输入单元63、显示单元64、传感器65、音频电路66、无线保真(wireless fidelity,简称WiFi)模块67、包括有一个或者一个以上处理核心的处理器68、以及电源69等部件。本领域技术人员可以理解,图5中示出的硬件结构并不构成对STA的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:FIG. 5 shows a hardware structure for implementing an STA provided by an embodiment of the present invention. STA60 can be a smartphone, tablet, laptop, etc. Taking a smartphone as an example, the STA 60 may include a radio frequency (Radio Frequency, RF for short) circuit 61, a memory 62 including one or more computer-readable storage media, an input unit 63, a display unit 64, a sensor 65, an audio circuit 66, A wireless fidelity (wireless fidelity, WiFi for short) module 67 includes a processor 68 having one or more processing cores, a power supply 69 and other components. Those skilled in the art can understand that the hardware structure shown in FIG. 5 does not constitute a limitation on the STA, and may include more or less components than the one shown, or combine some components, or arrange different components. in:

处理器68是STA60的控制中心,利用各种接口和线路连接整个STA60的各个部分,通过运行或执行存储在存储器62内的软件程序和/或模块,以及调用存储在存储器62内的数据,执行STA60的各种功能和处理数据,从而对STA 60进行整体监控。可选的,处理器68可包括一个或多个处理核心;优选的,处理器68可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器68中。The processor 68 is the control center of the STA 60, using various interfaces and lines to connect various parts of the entire STA 60, by running or executing the software programs and/or modules stored in the memory 62, and calling the data stored in the memory 62. Various functions of the STA 60 and processing data to monitor the STA 60 as a whole. Optionally, the processor 68 may include one or more processing cores; preferably, the processor 68 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that the above-mentioned modulation and demodulation processor may not be integrated into the processor 68 .

存储器62可用于存储各种数据,例如各种配置参数、存储软件程序以及模块,处理器68通过运行存储在存储器62的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器62可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、接入准备模块、接入完成模块;存储数据区可存储根据STA 60的使用所创建的数据,例如成对主密钥、成对临时密钥等。此外,存储器62可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器62还可以包括存储器控制器,以提供处理器68和输入单元63对存储器62的访问。The memory 62 can be used to store various data, such as various configuration parameters, and to store software programs and modules. The processor 68 executes various functional applications and data processing by running the software programs and modules stored in the memory 62 . The memory 62 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an access preparation module, and an access completion module; the storage data area may store data created according to the use of the STA 60, such as Pairs of master keys, paired ephemeral keys, etc. Additionally, memory 62 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 62 may also include a memory controller to provide processor 68 and input unit 63 access to memory 62 .

RF电路61可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器68处理。通常,RF电路61包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(Subscriber IdentityModule,简称SIM)卡、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,简称LNA)、双工器等。此外,RF电路61还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,简称GSM)、通用分组无线服务(General Packet Radio Service,简称GPRS)、码分多址(Code Division Multiple Access,简称CDMA)、宽带码分多址(WidebandCode Division Multiple Access,简称WCDMA)、长期演进(Long Term Evolution,简称LTE)、电子邮件、短消息服务(Short Messaging Service,简称SMS)等。The RF circuit 61 can be used to receive and transmit signals during the process of sending and receiving information or talking. In particular, the downlink information of the base station is received and then processed by one or more processors 68 . Generally, the RF circuit 61 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, referred to as LNA), duplexer, etc. In addition, the RF circuit 61 can also communicate with the network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (GSM for short), General Packet Radio Service (GPRS for short), Code Division Multiple Access (CDMA for short). Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc. .

参见图6,其示出了本发明实施例提供的一种快速漫游方法,该方法在图1所示的应用场景下,采用图2所示的网络架构实现快速漫游。如图6所示,该方法包括:Referring to FIG. 6 , it shows a fast roaming method provided by an embodiment of the present invention. In the application scenario shown in FIG. 1 , the method adopts the network architecture shown in FIG. 2 to implement fast roaming. As shown in Figure 6, the method includes:

步骤S301:STA接入第二AP。Step S301: The STA accesses the second AP.

在本实施例中,参见图7,该步骤S301可以包括:In this embodiment, referring to FIG. 7 , step S301 may include:

步骤S301a,STA发现第二AP;Step S301a, the STA discovers the second AP;

步骤S301b,STA和第二AP进行链路认证;Step S301b, the STA and the second AP perform link authentication;

步骤S301c,在链路认证通过之后,STA和第二AP进行关联;Step S301c, after the link authentication is passed, the STA associates with the second AP;

步骤S301d,AC利用RADIUS服务器对STA进行接入认证;Step S301d, the AC uses the RADIUS server to perform access authentication on the STA;

步骤S301e,在接入认证通过之后,STA和第二AP进行密钥协商。Step S301e, after the access authentication is passed, the STA and the second AP perform key negotiation.

其中,AC用于管理和控制AP。Among them, the AC is used to manage and control the AP.

链路认证是AP许可STA使用两者之间的无线链路。Link authentication is that the AP allows the STA to use the wireless link between the two.

关联是协商无线链路的配置参数,建立满足数据传输要求的无线链路。Association is to negotiate the configuration parameters of the wireless link and establish a wireless link that meets the data transmission requirements.

接入认证是对STA的身份进行验证,得到STA和AP共同对应的成对主密钥(英文:Pairwise Master Key,简称:PMK),PMK为STA和AP之间通信使用的所有密钥的来源。例如,STA1和AP1使用PMK1生成相互通信的密钥,STA1和AP2使用PMK2生成相互通信的密钥,STA2和AP1使用PMK3生成相互通信的密钥,STA2和AP2使用PMK4生成相互通信的密钥。Access authentication is to verify the identity of the STA and obtain the pairwise master key (English: Pairwise Master Key, referred to as: PMK) corresponding to the STA and the AP. The PMK is the source of all keys used for communication between the STA and the AP. . For example, STA1 and AP1 use PMK1 to generate a key for mutual communication, STA1 and AP2 use PMK2 to generate a key for mutual communication, STA2 and AP1 use PMK3 to generate a key for mutual communication, and STA2 and AP2 use PMK4 to generate a key for mutual communication.

密钥协商是基于STA和AP交互的信息、以及PMK得到成对临时密钥(英文:PairwiseTemporal Key,简称:PTK),PTK用于对STA和AP之间传输的数据加密。The key negotiation is to obtain a paired temporary key (English: Pairwise Temporal Key, PTK for short) based on the information exchanged between the STA and the AP and the PMK, and the PTK is used to encrypt the data transmitted between the STA and the AP.

在本实施例的一种实现方式中,参见图8a,该步骤S301a可以包括:In an implementation manner of this embodiment, referring to FIG. 8a, the step S301a may include:

1、STA在支持的信道上依次发送探测请求(英文:Probe Request);1. The STA sends a probe request (English: Probe Request) on the supported channel in sequence;

2、第二AP接收到探测请求,向STA发送探测响应(英文:Probe Response)。2. The second AP receives the probe request and sends a probe response (English: Probe Response) to the STA.

在此种实现方式中,STA主动扫描周围可接入的AP,以确定周围可接入的AP,发现AP的速度较快。In this implementation, the STA actively scans the APs that can be accessed around to determine the APs that can be accessed around, and finds the APs faster.

进一步地,探测请求可以包括AP的服务集标识(英文:Service Set Identifier,简称:SSID),各个接收到探测请求的AP会将探测请求中的SSID与自身的SSID进行比较,如果两个SSDI相同则向STA发送探测响应,因此此时只有SSID与探测请求中的SSID相同的AP会向STA发送响应,便于STA发现所需AP。Further, the probe request may include the service set identifier (English: Service Set Identifier, SSID for short) of the AP, and each AP that receives the probe request will compare the SSID in the probe request with its own SSID, if the two SSDIs are the same Then, a probe response is sent to the STA. Therefore, only the AP whose SSID is the same as the SSID in the probe request will send a response to the STA, so that the STA can discover the required AP.

在本实施例的另一种实现方式中,参见图8b,该步骤S301a可以包括:In another implementation manner of this embodiment, referring to FIG. 8b, the step S301a may include:

1、第二AP每隔设定周期发送信标(英文:Beacon)帧;1. The second AP sends a beacon (English: Beacon) frame every set period;

2、STA接收到第二AP发送的信标帧。2. The STA receives the beacon frame sent by the second AP.

在此种实现方式中,STA被动等待周围可接入的AP发送的信标帧,以确定周围可接入的AP,与主动发送探测请求相比,被动接收信标帧可以大大节省STA消耗的电能,节电的特点也使此种实现方式应用广泛。In this implementation, the STA passively waits for beacon frames sent by nearby accessible APs to determine nearby accessible APs. Compared with actively sending probe requests, passively receiving beacon frames can greatly save the STA consumption. The characteristics of power saving and power saving also make this realization method widely used.

在具体实现中,设定周期可以为100ms,信标帧可以包括AP的SSID、支持速率等。In a specific implementation, the set period may be 100ms, and the beacon frame may include the SSID of the AP, the supported rate, and the like.

在本实施例的一种实现方式中,参见图9a,该步骤S301b可以包括:In an implementation manner of this embodiment, referring to FIG. 9a, the step S301b may include:

1、STA向第二AP发送链路认证请求;1. The STA sends a link authentication request to the second AP;

2、第二AP向STA发送链路认证响应。2. The second AP sends a link authentication response to the STA.

此种实现方式称为开放系统认证(英文:Open System Authentication),只要STA发送认证请求,AP都会允许其认证成功,目前被广泛应用。This implementation method is called Open System Authentication (English: Open System Authentication). As long as the STA sends an authentication request, the AP will allow the authentication to succeed, and is currently widely used.

在本实施例的另一种实现方式中,参见图9b,该步骤S301b可以包括:In another implementation manner of this embodiment, referring to FIG. 9b, the step S301b may include:

1、STA向第二AP发送链路认证请求;1. The STA sends a link authentication request to the second AP;

2、第二AP生成挑战短语,并发送给STA;2. The second AP generates a challenge phrase and sends it to the STA;

3、STA采用预先配置的密钥对挑战短语进行加密,并将加密后的挑战短语发送给第二AP;3. The STA encrypts the challenge phrase with a preconfigured key, and sends the encrypted challenge phrase to the second AP;

4、第二AP采用预先配置的密钥对发送给STA的挑战短语进行加密,并将得到的加密后的挑战短语与接收的加密后的挑战短语进行对比;4. The second AP uses a preconfigured key to encrypt the challenge phrase sent to the STA, and compares the obtained encrypted challenge phrase with the received encrypted challenge phrase;

5、当两个挑战短语相同时,第二AP向STA发送链路认证响应。5. When the two challenge phrases are the same, the second AP sends a link authentication response to the STA.

在实际应用中,在预先配置的密钥为对称密钥(发送和接收数据的双方必使用相同的密钥对明文进行加密和解密运算)的情况下,第二AP在第4步中也可以采用预先配置的密钥对加密后的挑战短语进行解密,并将解密后的挑战短语与发送给STA的挑战短语进行对比,同样可以实现链路认证。In practical applications, when the pre-configured key is a symmetric key (both parties sending and receiving data must use the same key to encrypt and decrypt the plaintext), the second AP can also perform operations in step 4. The encrypted challenge phrase is decrypted using a preconfigured key, and the decrypted challenge phrase is compared with the challenge phrase sent to the STA, and link authentication can also be implemented.

此种实现方式称为共享密钥认证(英文:Shared-key Authentication),只有STA和第二AP中预先配置的密钥相同,才能通过链路认证,安全性较高。This implementation is called shared-key authentication (English: Shared-key Authentication). Only the keys preconfigured in the STA and the second AP are the same, the link authentication can be passed, and the security is high.

可选地,参见图10,该步骤S301c可以包括:Optionally, referring to FIG. 10 , this step S301c may include:

1、STA向第二AP发送关联请求;1. The STA sends an association request to the second AP;

2、第二AP接收到关联请求,向STA发送关联响应。2. The second AP receives the association request and sends an association response to the STA.

其中,关联请求包括STA的支持速率、信道、服务质量(英文:Quality of Service,简称:QoS)、接入认证方式、加密算法等。通常如果AP可以满足STA在关联请求中的要求,则向STA发送关联响应,并按照STA在关联请求中的要求传输数据,以确保数据能够准确安全地传输。可以理解地,在关联之后,STA和AP之间的无线链路建立完成。The association request includes a supported rate, a channel, a quality of service (English: Quality of Service, QoS for short), an access authentication method, an encryption algorithm, and the like of the STA. Generally, if the AP can meet the requirements of the STA in the association request, it sends an association response to the STA, and transmits data according to the requirements of the STA in the association request, so as to ensure that the data can be transmitted accurately and securely. Understandably, after the association, the establishment of the wireless link between the STA and the AP is completed.

在本实施例的一种实现方式中,参见图11a,该步骤S301d可以包括:In an implementation manner of this embodiment, referring to FIG. 11a, the step S301d may include:

1、STA向AC发送接入认证请求;1. The STA sends an access authentication request to the AC;

2、AC接收到认证请求,向STA发送身份请求;2. The AC receives the authentication request and sends an identity request to the STA;

3、STA接收到身份请求,向AC发送STA的身份信息,身份信息包括用户标识;3. The STA receives the identity request and sends the STA's identity information to the AC, where the identity information includes the user ID;

4、AC将STA的身份信息转发给RADIUS服务器;4. The AC forwards the STA's identity information to the RADIUS server;

5、RADIUS服务器接收到身份信息,向AC发送包括公钥的服务器的证书;5. The RADIUS server receives the identity information and sends the certificate of the server including the public key to the AC;

6、AC将包括公钥的服务器的证书转发给STA;6. The AC forwards the certificate of the server including the public key to the STA;

7、STA接收到包括公钥的服务器的证书,对服务器的证书进行验证,验证成功后产生一个随机密码串(又称为预主密钥(英文:pre-master-secret)),并采用公钥对随机密码串进行加密,并基于随机密码串生成PMK;7. STA receives the certificate of the server including the public key, and verifies the certificate of the server. After the verification is successful, a random password string (also known as the pre-master key (English: pre-master-secret)) is generated, and the public key is used. The key encrypts the random cipher string, and generates a PMK based on the random cipher string;

8、STA向AC发送STA的证书和加密后的随机密码串;8. The STA sends the STA's certificate and the encrypted random password string to the AC;

9、AC将STA的证书和加密后的随机密码串转发给RADIUS服务器;9. The AC forwards the STA's certificate and the encrypted random password string to the RADIUS server;

10、RADIUS服务器验证STA的证书,验证成功后采用私钥对加密后的随机密码串进行解密,并基于随机密码串生成PMK;10. The RADIUS server verifies the STA's certificate. After the verification is successful, the encrypted random password string is decrypted with the private key, and a PMK is generated based on the random password string;

11、RADIUS服务器向AC发送接入认证响应和PMK,AC得到PMK;11. The RADIUS server sends an access authentication response and a PMK to the AC, and the AC obtains the PMK;

12、AC向STA转发接入认证响应。12. The AC forwards the access authentication response to the STA.

在本实施例的另一种实现方式中,参见图11b,该步骤S301d可以包括:In another implementation manner of this embodiment, referring to FIG. 11b, the step S301d may include:

1、STA向AC发送接入认证请求;1. The STA sends an access authentication request to the AC;

2、AC接收到认证请求,向STA发送身份请求;2. The AC receives the authentication request and sends an identity request to the STA;

3、STA接收到身份请求,向AC发送STA的身份信息,身份信息包括用户标识;3. The STA receives the identity request and sends the STA's identity information to the AC, where the identity information includes the user ID;

4、AC将STA的身份信息转发给RADIUS服务器;4. The AC forwards the STA's identity information to the RADIUS server;

5、RADIUS服务器接收到身份信息,向AC发送认证开始消息;5. The RADIUS server receives the identity information and sends an authentication start message to the AC;

6、AC将认证开始消息转发给STA;6. The AC forwards the authentication start message to the STA;

7、STA接收到认证开始消息,向AC发送认证消息,认证消息包括加密算法列表、安全传输层(英文:Transport Layer Security,简称:TLS)协议版本、会话标识等;7. The STA receives the authentication start message, and sends the authentication message to the AC. The authentication message includes the encryption algorithm list, Transport Layer Security (English: Transport Layer Security, TLS for short) protocol version, session identifier, etc.;

8、AC向RADIUS服务器转发认证消息;8. The AC forwards the authentication message to the RADIUS server;

9、RADIUS服务器接收到认证信息,向AC发送包括公钥的服务器的证书;9. The RADIUS server receives the authentication information and sends the server certificate including the public key to the AC;

10、AC将包括公钥的服务器的证书转发给STA;10. The AC forwards the certificate of the server including the public key to the STA;

11、STA接收到包括公钥的服务器的证书,对服务器的证书进行验证,验证成功后产生一个随机密码串,并采用公钥对随机密码串进行加密,并基于随机密码串生成PMK;11. STA receives the certificate of the server including the public key, verifies the certificate of the server, generates a random password string after the verification is successful, and encrypts the random password string with the public key, and generates a PMK based on the random password string;

12、STA向AC发送STA的证书和加密后的随机密码串;12. The STA sends the STA's certificate and the encrypted random password string to the AC;

13、AC将STA的证书和加密后的随机密码串转发给RADIUS服务器;13. The AC forwards the STA's certificate and the encrypted random password string to the RADIUS server;

14、RADIUS服务器验证STA的证书,验证成功后采用私钥对加密后的随机密码串进行解密,并基于随机密码串生成PMK;14. The RADIUS server verifies the STA's certificate. After the verification is successful, the encrypted random password string is decrypted with the private key, and a PMK is generated based on the random password string;

15、RADIUS服务器向AC发送接入认证响应和PMK,AC得到PMK;15. The RADIUS server sends an access authentication response and a PMK to the AC, and the AC obtains the PMK;

16、AC向STA转发接入认证响应。16. The AC forwards the access authentication response to the STA.

需要说明的是,AC得到PMK之后,即可将PMK告知相应的AP,因此最终AP和STA上均设置好PMK。It should be noted that, after the AC obtains the PMK, it can inform the corresponding AP of the PMK. Therefore, the PMK is finally set on both the AP and the STA.

进一步地,以验证服务器的证书为例,验证证书可以采用如下方式实现:Further, taking the certificate of the verification server as an example, the verification of the certificate can be implemented in the following manner:

RADIUS服务器采用私钥对说明信息进行加密,得到签名,说明信息包括颁发机构、过期时间等;The RADIUS server encrypts the description information with the private key and obtains the signature, and the description information includes the issuing authority, expiration time, etc.;

RADIUS将说明信息、与私钥匹配的公钥和签名组成数字证书发送给STA;RADIUS sends the description information, the public key matching the private key and the signature to form a digital certificate to the STA;

STA接收到数字证书,采用数字证书中的公钥对数字证书中的签名进行解密,并将解密结果与数字证书中的说明信息进行对比;STA receives the digital certificate, uses the public key in the digital certificate to decrypt the signature in the digital certificate, and compares the decryption result with the description information in the digital certificate;

当解密结果与数字证书中的说明信息一致时,验证成功;When the decryption result is consistent with the description information in the digital certificate, the verification is successful;

当解密结果与数字证书中的说明信息不同时,验证失败。When the decryption result is different from the description information in the digital certificate, the verification fails.

可以理解地,验证STA的证书可以与上述过程类似,在此不再详述。It can be understood that verifying the STA's certificate may be similar to the above process, and will not be described in detail here.

可选地,参见图12a,该步骤S301e可以包括:Optionally, referring to Fig. 12a, this step S301e may include:

1、STA和第二AP分别生成随机数;1. The STA and the second AP generate random numbers respectively;

2、第二AP将第二AP生成的随机数发送给STA;2. The second AP sends the random number generated by the second AP to the STA;

3、STA基于第二AP生成的随机数、第二AP的介质访问控制(英文:Media AccessControl,简称:MAC)地址、STA生成的随机数、STA的MAC地址、PMK,采用哈希(英文:Hash)算法生成PTK;3. Based on the random number generated by the second AP, the media access control (English: Media Access Control, referred to as: MAC) address of the second AP, the random number generated by the STA, the MAC address of the STA, and the PMK, a hash (English: Hash) algorithm to generate PTK;

4、STA向第二AP发送STA生成的随机数;4. The STA sends the random number generated by the STA to the second AP;

5、第二AP基于STA生成的随机数、STA的MAC地址、第二AP生成的随机数、第二AP的MAC地址、PMK,采用哈希算法生成PTK;5. The second AP uses a hash algorithm to generate the PTK based on the random number generated by the STA, the MAC address of the STA, the random number generated by the second AP, the MAC address of the second AP, and the PMK;

6、第二AP向STA发送安装PTK的通知;6. The second AP sends a notification of installing the PTK to the STA;

7、STA接收到安装PTK的通知,安装PTK并向第二AP发送安装PTK的通知;7. The STA receives the notification of installing the PTK, installs the PTK and sends the notification for installing the PTK to the second AP;

8、第二AP接收到安装PTK的通知,安装PTK。8. The second AP receives the notification to install the PTK and installs the PTK.

图13为PTK的结构示意图。如图13所示,当采用计数器模式密码块消息完整码协议(英文:Counter Cipher Block Chaining Message Authentication Code Protocol,简称:CCMP)时,PTK的0~127比特(英文:bit)为密钥确认密钥(英文:Key Confirmation Key,简称:KCK),128~255比特为密钥加密密钥(英文:Key Encryption Key,简称:KEK),256~383比特为临时加密密钥(英文:Temporal Encryption Key,简称:TEK);当采用临时密钥完整性协议(英文:Temporal Key Integrity Protocol,简称:TKIP)时,PTK的0~127比特为KCK,128~255比特为KEK,256~383比特为TEK,384~511比特为临时消息完整性检查密钥(英文:Temporal Message Integrity Check Key,简称:TMK)。FIG. 13 is a schematic diagram of the structure of PTK. As shown in Figure 13, when the Counter Cipher Block Chaining Message Authentication Code Protocol (English: Counter Cipher Block Chaining Message Authentication Code Protocol, CCMP for short) is adopted, bits 0 to 127 (English: bit) of the PTK are the key confirmation password. Key (English: Key Confirmation Key, referred to as: KCK), 128 to 255 bits for the key encryption key (English: Key Encryption Key, referred to as: KEK), 256 to 383 bits for the temporary encryption key (English: Temporal Encryption Key , referred to as: TEK); when using the Temporal Key Integrity Protocol (English: Temporal Key Integrity Protocol, referred to as: TKIP), the 0-127 bits of the PTK are KCK, the 128-255 bits are KEK, and the 256-383 bits are TEK , 384 to 511 bits are the temporary message integrity check key (English: Temporal Message Integrity Check Key, referred to as: TMK).

优选地,参见图12b,该步骤S301e还可以包括:Preferably, referring to Fig. 12b, this step S301e may further include:

1、第二AP生成组主密钥(英文:Group Master Key,简称:GMK),基于GMK计算出组临时密钥(英文:Group Transient Key,简称:GTK),并采用PTK对GTK进行加密;1. The second AP generates a group master key (English: Group Master Key, referred to as: GMK), calculates a group temporary key (English: Group Transient Key, referred to as: GTK) based on GMK, and uses PTK to encrypt GTK;

2、第二AP向STA发送加密后的GTK;2. The second AP sends the encrypted GTK to the STA;

3、STA采用PTK对加密后的GTK进行解密,得到GTK并进行安装;3. STA uses PTK to decrypt the encrypted GTK, obtain GTK and install it;

4、STA向第二AP发送指示安装GTK的通知;4. The STA sends a notification indicating the installation of GTK to the second AP;

5、第二AP接收到指示安装GTK的通知,安装GTK。5. The second AP receives the notification instructing to install GTK, and installs GTK.

其中,GMK为一组随机数,用来生成GTK;GTK用来加密组播和广播报文;PTK用来加密单播报文。Among them, GMK is a set of random numbers used to generate GTK; GTK is used to encrypt multicast and broadcast packets; PTK is used to encrypt unicast packets.

需要说明的是,在STA和AP中,PTK、GTK等密钥的安装是指将密钥存储在设备内,以供随时使用。It should be noted that, in the STA and AP, the installation of keys such as PTK and GTK refers to storing the keys in the device for use at any time.

由于STA接入第二AP经历了完整的服务发现、链路认证、关联、接入认证、密钥协商五个过程,因此第二AP通常为STA在WLAN中首次接入的AP。Since the STA accesses the second AP through five complete processes of service discovery, link authentication, association, access authentication, and key negotiation, the second AP is usually the AP that the STA accesses for the first time in the WLAN.

在步骤S301之后,STA已接入WLAN中的一个AP(本实施例中为第二AP),说明STA已经通过WLAN的接入认证,STA的合法性得到了初步保证。为了避免由于进行多次报文协商实现接入认证而耗费大量的时间,因此当STA由于位置的移动切换到该WLAN中的其它AP时,STA接入的过程会进行简化,主要是在STA和切换到的AP之间建立安全准确地传输数据的无线链路。具体地,本实施例在漫游过程中,利用快速漫游装置在STA切换到AP之前,实现STA和AP之间的信息交互,STA和AP均获取到对方的MAC地址、配置好PMK、以及生成PTK,完成STA和AP之间的链路认证、接入认证、以及密钥协商;另外,在STA确定切换到AP之后,AP根据STA向AP发送的第一个数据报文的内部信息是否一致,完成STA和AP之间的关联。具体见下文:After step S301, the STA has accessed an AP (the second AP in this embodiment) in the WLAN, which means that the STA has passed the access authentication of the WLAN, and the legitimacy of the STA has been preliminarily guaranteed. In order to avoid a lot of time spent on access authentication due to multiple packet negotiation, when the STA switches to other APs in the WLAN due to its location movement, the STA access process will be simplified. A wireless link for safe and accurate data transmission is established between the switched APs. Specifically, during the roaming process in this embodiment, the fast roaming device is used to realize the information exchange between the STA and the AP before the STA switches to the AP. Both the STA and the AP obtain the MAC address of the other party, configure the PMK, and generate the PTK. , complete the link authentication, access authentication, and key negotiation between the STA and the AP; in addition, after the STA determines to switch to the AP, the AP determines whether the internal information of the first data packet sent by the STA to the AP is consistent, Complete the association between the STA and the AP. See below for details:

步骤S302:第一AP将第一AP的特征信息发送给快速漫游装置。该步骤S302与步骤S301的执行没有先后顺序。Step S302: The first AP sends the feature information of the first AP to the fast roaming device. The steps S302 and S301 are executed in no order.

在本实施例中,第一AP为第二AP的邻居。第一AP的特征信息包括第一AP的MAC地址和第一AP生成的随机数(英文:Nonce)。其中,随机数是第一AP为下一个接入的STA生成的。In this embodiment, the first AP is a neighbor of the second AP. The characteristic information of the first AP includes a MAC address of the first AP and a random number (English: Nonce) generated by the first AP. The random number is generated by the first AP for the STA to access next.

可选地,第一AP的特征信息还可以包括第一AP采用的加密算法、带宽、频点,具体可以根据STA接入AP所需交互的信息设置。Optionally, the feature information of the first AP may further include an encryption algorithm, bandwidth, and frequency point adopted by the first AP, which may be specifically set according to the information exchanged by the STA to access the AP.

在具体实现中,该步骤S302可以包括:In a specific implementation, this step S302 may include:

快速漫游装置确定STA接入第二AP;The fast roaming device determines that the STA accesses the second AP;

快速漫游装置根据各个AP的位置确定所有第一AP,并向所有第一AP发送特征信息获取请求;The fast roaming device determines all the first APs according to the positions of the respective APs, and sends a feature information acquisition request to all the first APs;

第一AP接收到特征信息获取请求,将自己的特征信息发送给快速漫游装置。The first AP receives the feature information acquisition request, and sends its own feature information to the fast roaming device.

具体地,当快速漫游装置增设在AC上时,AC与第二AP有线连接,可以对第二AP进行控制和管理,因此AC可以通过主动询问第二AP的方式确定STA接入第二AP,也可以通过接收第二AP上报的信息确定STA接入第二AP。Specifically, when the fast roaming device is added to the AC, the AC is wired to the second AP and can control and manage the second AP. Therefore, the AC can determine that the STA accesses the second AP by actively querying the second AP. It may also be determined by receiving the information reported by the second AP that the STA accesses the second AP.

同时由于AC是控制和管理AP的,因此AC已知各个AP的位置,进而确定出作为第二AP的邻居的所有第一AP,分别向各个第一AP发送特征信息获取请求,并接收第一AP接收到特征信息获取请求之后回复的特征信息。At the same time, since the AC controls and manages the APs, the AC knows the locations of the APs, determines all the first APs that are neighbors of the second AP, sends feature information acquisition requests to the first APs, and receives the first APs. The feature information that the AP replies after receiving the feature information acquisition request.

当快速漫游装置增设在AP上时,第二AP上增设的快速漫游装置当然可以确定STA接入第二AP。When the fast roaming device is added on the AP, the fast roaming device added on the second AP can of course determine that the STA accesses the second AP.

同时由于第二AP与AC有线连接,AC可以对各个AP进行控制和管理,了解所有AP的位置,因此第二AP可以通过向AC发送请求的方式获取到作为第二AP的邻居的所有第一AP,加上各个AP之间也是有线连接,进而可以向各个第一AP发送特征信息获取请求,并接收第一AP接收到特征信息获取请求之后回复的特征信息。At the same time, because the second AP is wired to the AC, the AC can control and manage each AP and learn the locations of all APs. Therefore, the second AP can obtain all the first neighbors that are neighbors of the second AP by sending a request to the AC. The AP, and each AP are also connected by wire, and then can send a feature information acquisition request to each first AP, and receive the feature information replied by the first AP after receiving the feature information acquisition request.

当快速漫游装置独立于AC和AP设置时,快速漫游装置可以与AC、各个AP有线连接,通过向AC发送请求的方式确定STA接入第二AP、以及获取到作为第二AP的邻居的所有第一AP,也可以通过向各个AP发送的方式确定STA接入第二AP、以及获取到作为第二AP的邻居的所有第一AP,进而再向各个第一AP发送特征信息获取请求,并接收第一AP接收到特征信息获取请求之后回复的特征信息。When the fast roaming device is set independently of the AC and AP, the fast roaming device can be wired with the AC and each AP, and by sending a request to the AC, it is determined that the STA accesses the second AP and obtains all the neighbors of the second AP. The first AP can also determine by sending to each AP that the STA accesses the second AP and obtains all the first APs that are neighbors of the second AP, and then sends a feature information acquisition request to each first AP, and Receive the feature information that the first AP replies after receiving the feature information acquisition request.

图6为在快速漫游装置独立于AC和AP的情况下,实现STA从第二AP快速漫游到第一AP的过程的示意图;在快速漫游装置设置在AC上的情况下,实现快速漫游的过程可以参见图14a;在快速漫游装置设置在各个AP上的情况下,实现快速漫游的过程可以参见图14b。FIG. 6 is a schematic diagram of the process of realizing fast roaming of a STA from the second AP to the first AP when the fast roaming device is independent of the AC and AP; when the fast roaming device is set on the AC, the process of realizing fast roaming Refer to FIG. 14a; in the case that the fast roaming device is set on each AP, the process of realizing fast roaming can refer to FIG. 14b.

步骤S303:快速漫游装置将第一AP的特征信息转发给STA。该步骤S303在步骤S301之后执行。Step S303: The fast roaming device forwards the feature information of the first AP to the STA. This step S303 is performed after step S301.

具体地,当快速漫游装置增设在AC上或者独立于AC和AP设置时,AC将第一AP的特征信息发送给第二AP,由第二AP发送给STA;当快速漫游装置增设在AP上时,第二AP上的快速漫游装置直接将第一AP的特征信息发送给STA。Specifically, when the fast roaming device is added on the AC or is set independently of the AC and AP, the AC sends the feature information of the first AP to the second AP, and the second AP sends it to the STA; when the fast roaming device is added on the AP When , the fast roaming device on the second AP directly sends the feature information of the first AP to the STA.

在具体实现中,快速漫游装置发送的第一AP的特征信息可以包括AP标识、物理特征、安全特征、射频特征、随机数。例如,参见图15,快速漫游装置发送的一个第一AP的特征信息为AP ID1(AP标识)、MAC1(物理特征)、高级加密标准(英文:Advanced EncryptionStandard,简称:AES)加密(安全特征)、频点2.418G(射频特征)、Nounce1(随机数);快速漫游装置发送的另一个第一AP的特征信息包括AP ID2(AP标识)、MAC2(物理特征)、AES加密(安全特征)、频点2.438G(射频特征)、Nounce2(随机数)。In a specific implementation, the feature information of the first AP sent by the fast roaming device may include an AP identifier, physical features, security features, radio frequency features, and random numbers. For example, referring to FIG. 15 , the feature information of a first AP sent by the fast roaming device is AP ID1 (AP identification), MAC1 (physical feature), Advanced Encryption Standard (English: Advanced Encryption Standard, AES for short) encryption (security feature) , frequency point 2.418G (radio frequency feature), Nounce1 (random number); the feature information of another first AP sent by the fast roaming device includes AP ID2 (AP identification), MAC2 (physical feature), AES encryption (security feature), Frequency point 2.438G (radio frequency characteristic), Nounce2 (random number).

步骤S304:STA生成随机数并发送给快速漫游装置。Step S304: The STA generates a random number and sends it to the fast roaming device.

具体地,当快速漫游装置增设在AC上或者独立于AC和AP设置时,STA将STA生成的随机数发送给第二AP,由第二AP将STA生成的随机数转发给AC;当快速漫游装置增设在AP上时,STA直接将STA生成的随机数发送给第二AP上增设的快速漫游装置。Specifically, when the fast roaming device is added on the AC or is set independently of the AC and the AP, the STA sends the random number generated by the STA to the second AP, and the second AP forwards the random number generated by the STA to the AC; When the device is added on the AP, the STA directly sends the random number generated by the STA to the fast roaming device added on the second AP.

需要说明的是,作为第二AP的邻居的第一AP可能有多个,此时STA会针对每一个第一AP,生成一个随机数,并发给对应的第一AP。其中,各个第一AP对应的随机数可能相同,也可能不同。实现时,由于将STA生成的随机数发送给第一AP时会携带第一AP的MAC地址,因此快速漫游装置可以根据携带的第一AP的MAC地址,区分各个随机数对应的第一AP。It should be noted that there may be multiple first APs that are neighbors of the second AP. In this case, the STA will generate a random number for each first AP and send it to the corresponding first AP. The random numbers corresponding to the first APs may be the same or different. During implementation, since the random number generated by the STA will carry the MAC address of the first AP when it is sent to the first AP, the fast roaming device can distinguish the first AP corresponding to each random number according to the carried MAC address of the first AP.

在具体实现中,针对各个第一AP发送的消息可以包括AP标识、随机数。例如,参见图16,针对一个第一AP发送的消息为AP ID1(AP标识)、Nounce1(随机数);针对另一个第一AP发送的消息为AP ID2(AP标识)、Nounce2(随机数)。In a specific implementation, the message sent for each first AP may include an AP identifier and a random number. For example, referring to FIG. 16 , the messages sent for one first AP are AP ID1 (AP identification), Nounce1 (random number); the messages sent for another first AP are AP ID2 (AP identification), Nounce2 (random number) .

步骤S305:STA确定各个第一AP的PMK,并基于各个第一AP的PMK计算出PTK。Step S305: The STA determines the PMK of each first AP, and calculates the PTK based on the PMK of each first AP.

如前所述,PMK与STA和AP共同对应,由于本实施例中只涉及到一个STA,因此直接采用AP区分各个PMK。As mentioned above, the PMK corresponds to the STA and the AP. Since only one STA is involved in this embodiment, the AP is directly used to distinguish each PMK.

可选地,STA确定第一AP的PMK,可以包括:Optionally, the STA determines the PMK of the first AP, which may include:

STA根据第一AP的MAC地址,确定是否缓存有第一AP的PMK安全关联(英文:PMKSecurity Association,简称:PMKSA);The STA determines, according to the MAC address of the first AP, whether a PMK security association (English: PMK Security Association, abbreviated as: PMKSA) of the first AP is cached;

当STA缓存有第一AP的PMKSA时,获取到缓存的第一AP的PMKID;When the STA caches the PMKSA of the first AP, obtains the cached PMKID of the first AP;

当STA没有缓存第一AP的PMKSA时,通过802.1X协商步骤确定第一AP的PMK。When the STA does not cache the PMKSA of the first AP, the PMK of the first AP is determined through the 802.1X negotiation step.

在实际应用中,由于通过802.1X协商步骤获取PMK涉及多次帧交换,花费时间较长,因此STA会对得到的PMK进行缓存避免再次进行802.1X协商步骤,STA具体缓存的就是PMKSA。PMKSA包括AP的MAC地址、PMK的生命周期、以及PMK标识(英文:PMK Identifier,简称:PMKID),PMKID由PMK、AP的MAC地址、STA的MAC地址等信息进行哈希计算得到。In practical applications, since obtaining the PMK through the 802.1X negotiation step involves multiple frame exchanges and takes a long time, the STA will cache the obtained PMK to avoid performing the 802.1X negotiation step again. The STA specifically caches the PMKSA. The PMKSA includes the MAC address of the AP, the life cycle of the PMK, and the PMK identifier (English: PMK Identifier, referred to as: PMKID). The PMKID is obtained by hashing the PMK, the MAC address of the AP, and the MAC address of the STA.

在802.11r标准中,参见图17,将密钥分成三层,三层密钥分别为PMK_R0、PMK_R1、PTK。PMK_R0为第二层密钥,各个AP的PMK_R0是相同的;PMK_R1为第一层密钥,PMK_R1基于PMK_R0和各个AP数值不同的信息(如AP的标识)计算得到,各个AP的PMK_R1各不相同;PTK为第二层密钥,PTK基于PMK_R1计算得到。这样一方面在STA漫游时,传递的是PMK_R1,由于各个AP的PMK_R1各不相同,因此即使PMK_R1被破解,也只对一个AP造成影响,安全性较高;另一方面,在已知一个AP的PMK_R1的情况下,可以得到PMK_R0,再基于PMK_R0和另一个AP的信息,即可得到该AP的PMK_R1,进而基于PMK_R1协商出PTK,避免再进行耗时的802.1x认证,缩短切换时间。In the 802.11r standard, referring to Figure 17, the keys are divided into three layers, and the three layers of keys are PMK_R0, PMK_R1, and PTK respectively. PMK_R0 is the second layer key, and the PMK_R0 of each AP is the same; PMK_R1 is the first layer key, and PMK_R1 is calculated based on PMK_R0 and the information with different values of each AP (such as the ID of the AP), and the PMK_R1 of each AP is different. ; PTK is the second layer key, and PTK is calculated based on PMK_R1. In this way, on the one hand, when the STA roams, the PMK_R1 is transmitted. Since the PMK_R1 of each AP is different, even if the PMK_R1 is cracked, it will only affect one AP, and the security is high; on the other hand, if an AP is known In the case of PMK_R1, PMK_R0 can be obtained, and then based on PMK_R0 and the information of another AP, the PMK_R1 of the AP can be obtained, and then the PTK can be negotiated based on PMK_R1 to avoid time-consuming 802.1x authentication and shorten the handover time.

在上述情形下,STA确定第一AP的PMK,可以包括:In the above situation, the STA determines the PMK of the first AP, which may include:

STA基于PMK_R0和第一AP的标识,计算出第一AP的PMK_R1。The STA calculates the PMK_R1 of the first AP based on the PMK_R0 and the identifier of the first AP.

例如,可以采用802.11r中定义的密钥生成函数(英文:Key DerivationFunction,简称:KDF),基于接入的服务集标识(英文:Service Set Identifier,简称:SSID)的长度、SSID、消息摘要算法标识(英文:Message Digest Algorithm Identifier,简称:MDID)、PMK_R0承载容器的长度、PMK_R0承载容器的标识等信息,计算出PMK_R0;进而采用802.11r中定义的KDF,基于PMK_R0、承载PMK_R1的容器的标识等信息,计算出PMK_R1。For example, the key generation function (English: Key DerivationFunction, referred to as: KDF) defined in 802.11r can be used, based on the length of the access service set identifier (English: Service Set Identifier, referred to as: SSID), SSID, message digest algorithm Identifier (English: Message Digest Algorithm Identifier, referred to as: MDID), the length of the PMK_R0 carrying container, the identification of the PMK_R0 carrying container, etc., to calculate the PMK_R0; and then use the KDF defined in 802.11r, based on PMK_R0, the identification of the container carrying PMK_R1 and other information, calculate PMK_R1.

具体地,基于各个第一AP的PMK计算出PTK,可以包括:Specifically, calculating the PTK based on the PMK of each first AP may include:

STA基于第一AP的MAC地址、第一AP生成的随机数、STA的MAC地址、STA生成的随机数、以及第一AP的PMK,利用哈希算法计算出PTK。The STA uses a hash algorithm to calculate the PTK based on the MAC address of the first AP, the random number generated by the first AP, the MAC address of the STA, the random number generated by the STA, and the PMK of the first AP.

如前所述,当从已接入的AP切换到其它AP时,可以简化流程,只需要获取一些必要的参数建立安全准确传输数据的无线链路即可,在实际应用中,STA中会建立缓存列表记录建立无线链路所需的参数,如下表一所示:As mentioned above, when switching from an accessed AP to another AP, the process can be simplified, and it is only necessary to obtain some necessary parameters to establish a wireless link for safe and accurate data transmission. In practical applications, the STA will establish The cache list records the parameters required to establish a wireless link, as shown in Table 1 below:

表一Table I

Figure GDA0002419962410000221
Figure GDA0002419962410000221

表中列有各个第一AP的MAC地址、STA生成的随机数、第一AP生成的随机数、PMKID、PMK_R1、加密密钥、摘要密钥、有效时间。其中,加密密钥为PTK中的TEK,摘要密钥为PTK中的TMK。需要说明的是,表中的项目可以根据接入AP实际所需的参数进行删减。The table lists the MAC address of each first AP, the random number generated by the STA, the random number generated by the first AP, PMKID, PMK_R1, encryption key, digest key, and valid time. The encryption key is TEK in PTK, and the digest key is TMK in PTK. It should be noted that the items in the table can be deleted according to the parameters actually required for accessing the AP.

步骤S306:快速漫游装置获取STA的特征信息。Step S306: the fast roaming device acquires the characteristic information of the STA.

在本实施例中,STA的特征信息包括STA的MAC地址、STA生成的随机数、以及STA为第一AP生成的PMK的特征值。In this embodiment, the characteristic information of the STA includes the MAC address of the STA, the random number generated by the STA, and the characteristic value of the PMK generated by the STA for the first AP.

在具体实现中,STA生成的随机数由STA发送给快速漫游装置,同时承载STA生成的随机数的报文中会携带STA的MAC地址,快速漫游装置可以从报文中获取STA的MAC地址。另外,快速漫游装置也可以通过第二AP确定STA的MAC地址。STA为第一AP生成的PMK的特征值通常为第一AP的PMKID或第一AP的PMK_R1,RADIUS服务器可以采用与步骤S305中STA确定第一AP的PMK相同的方式确定STA为第一AP生成的PMK的特征值,再将PMK的特征值发送给AC。如果快速装置增设在AC上,则可以直接获取到STA为第一AP生成的PMK的特征值;如果快速漫游装置增设在AP或独立于AC和AP设置时,则可以通过与AC的交互获取STA为第一AP生成的PMK的特征值。In a specific implementation, the random number generated by the STA is sent by the STA to the fast roaming device, and the packet carrying the random number generated by the STA will carry the MAC address of the STA, and the fast roaming device can obtain the MAC address of the STA from the packet. In addition, the fast roaming device may also determine the MAC address of the STA through the second AP. The characteristic value of the PMK generated by the STA for the first AP is usually the PMKID of the first AP or the PMK_R1 of the first AP. The RADIUS server can determine that the STA generates the first AP in the same way as the STA in step S305 to determine the PMK of the first AP. The eigenvalue of the PMK is sent to the AC. If the fast roaming device is added on the AC, the feature value of the PMK generated by the STA for the first AP can be directly obtained; if the fast roaming device is added on the AP or set independently of the AC and the AP, the STA can be obtained through interaction with the AC The eigenvalues of the PMK generated for the first AP.

步骤S307:快速漫游装置将STA的特征信息发送给第一AP。Step S307: The fast roaming device sends the feature information of the STA to the first AP.

具体地,各个AP之间有线连接,各个AP和AC之间有线连接,快速漫游装置设置在AC或者AP上,均可以直接将STA的特征信息发送给AP。快速漫游装置独立于AC和AP设置时,快速漫游装置与AC和各个AP有线连接,可以直接将STA的特征信息发送给AP。Specifically, the wired connection between each AP, the wired connection between each AP and the AC, and the fast roaming device set on the AC or the AP can directly send the feature information of the STA to the AP. When the fast roaming device is set independently of the AC and AP, the fast roaming device is wired to the AC and each AP, and can directly send the feature information of the STA to the AP.

步骤S308:第一AP接收到STA的特征信息,基于STA的特征信息计算出PTK。Step S308: The first AP receives the characteristic information of the STA, and calculates the PTK based on the characteristic information of the STA.

具体地,该步骤S308可以包括:Specifically, this step S308 may include:

第一AP基于第一AP的MAC地址、第一AP生成的随机数、STA的MAC地址、STA生成的随机数、以及STA和第一AP的PMK,利用哈希算法计算出PTK。The first AP uses a hash algorithm to calculate the PTK based on the MAC address of the first AP, the random number generated by the first AP, the MAC address of the STA, the random number generated by the STA, and the PMK of the STA and the first AP.

在实际应用中,AP中也建有缓存列表,如下表二所示:In practical applications, the AP also has a cache list, as shown in Table 2 below:

表二Table II

Figure GDA0002419962410000231
Figure GDA0002419962410000231

表中列有STA的MAC地址、STA生成的随机数、第一AP生成的随机数、PMKID、PMK_R1、加密密钥、摘要密钥、有效时间。其中,加密密钥为PTK中的TEK,摘要密钥为PTK中的TMK。需要说明的是,表中的项目可以根据接入AP实际所需的参数进行删减。The table lists the MAC address of the STA, the random number generated by the STA, the random number generated by the first AP, PMKID, PMK_R1, encryption key, digest key, and valid time. The encryption key is TEK in PTK, and the digest key is TMK in PTK. It should be noted that the items in the table can be deleted according to the parameters actually required for accessing the AP.

在实际应用中,若缓存列表中各个表项均有记录,则标志STA和AP之间的链路认证、接入认证和密钥协商完成。也可以由快速漫游装置通知STA和AP链路认证、接入认证和密钥协商完成。In practical applications, if each entry in the cache list is recorded, it indicates that the link authentication, access authentication and key negotiation between the STA and the AP are completed. The STA and AP can also be notified by the fast roaming device that link authentication, access authentication and key negotiation are completed.

如前所述,本实施例在漫游过程中,对接入过程进行简化,利用快速漫游装置实现STA和AP之间的信息交互,得到对方的MAC地址、配置PMK、生成PTK。容易知道,通过上述步骤S302-步骤S308中快速漫游装置与STA、各个AP之间的信息交互,已完成链路认证、接入认证、以及密钥协商。As mentioned above, this embodiment simplifies the access process during the roaming process, utilizes the fast roaming device to realize the information exchange between the STA and the AP, obtains the MAC address of the other party, configures the PMK, and generates the PTK. It is easy to know that link authentication, access authentication, and key negotiation have been completed through the information exchange between the fast roaming device and the STA and each AP in the above steps S302-S308.

步骤S309:在STA确定从第二AP切换到第一AP之后,STA采用PTK对数据报文进行加密,并向第一AP发送加密后的数据报文。Step S309: After the STA determines to switch from the second AP to the first AP, the STA encrypts the data packet by using the PTK, and sends the encrypted data packet to the first AP.

在本实施例中,数据报文包括数据摘要和数据。数据摘要是通过对所有数据提取指纹信息以实现数据签名、数据完整性校验等功能。数据摘要算法被称为哈希算法、散列算法,常见的算法有循环冗余校验(英文:Cyclic Redundancy Check,简称:CRC)、消息摘要算法版本5(英文:Message-Digest Algorithm 5,简称:MD5)、安全散列算法(英文:SecureHash Algorithm,简称:SHA)。In this embodiment, the data message includes a data digest and data. Data digest is to achieve data signature, data integrity check and other functions by extracting fingerprint information from all data. Data digest algorithms are called hash algorithms and hash algorithms. Common algorithms include Cyclic Redundancy Check (English: Cyclic Redundancy Check, referred to as: CRC), message digest algorithm version 5 (English: Message-Digest Algorithm 5, referred to as: CRC) : MD5), Secure Hash Algorithm (English: SecureHash Algorithm, referred to as: SHA).

具体地,在高级加密标准(英文:Advanced Encryption Standard,简称:AES)中,可以采用密码块消息完整码协议(英文:Cipher Block Chaining MessageAuthentication Code,简称:CBC-MAC)作为摘要。Specifically, in the Advanced Encryption Standard (English: Advanced Encryption Standard, AES for short), a Cipher Block Chaining Message Authentication Code (English: Cipher Block Chaining Message Authentication Code, CBC-MAC for short) can be used as the digest.

进一步地,参见图18,数据报文的生成过程如下:Further, referring to Figure 18, the generation process of the data message is as follows:

采用数据摘要算法对数据进行计算,得到数据摘要并加在数据的后面;The data is calculated by the data digest algorithm, and the data digest is obtained and added to the back of the data;

在数据的前面加上802.11头部;Add the 802.11 header in front of the data;

在数据摘要的后面加上帧校验序列(英文:Frame Check Sequence,简称:FCS)。A frame check sequence (English: Frame Check Sequence, abbreviated as: FCS) is added after the data digest.

在实际应用中,STA可以基于信号强度或者信道的繁忙程度,确定是否进行AP的切换、以及切换到的AP。In practical applications, the STA may determine whether to switch the AP and the AP to which to switch based on the signal strength or the busyness of the channel.

具体地,STA采用PTK对数据报文进行加密,可以包括:Specifically, the STA uses PTK to encrypt data packets, which may include:

采用确定切换到的第一AP的PTK对数据报文进行加密。The data packet is encrypted by using the PTK of the first AP that is determined to be switched to.

步骤S310:第一AP接收到加密后的数据报文,采用PTK对加密后的数据报文进行解密,得到解密后的数据和数据摘要。Step S310: The first AP receives the encrypted data packet, and uses PTK to decrypt the encrypted data packet to obtain decrypted data and a data digest.

具体地,该步骤S310可以包括:Specifically, this step S310 may include:

根据STA的MAC地址选择PTK对加密后的数据报文进行解密,得到解密后的数据摘要和数据。According to the MAC address of the STA, the PTK is selected to decrypt the encrypted data packet, and the decrypted data digest and data are obtained.

步骤S311:第一AP采用数据摘要算法对解密后的数据进行计算,并将计算出的数据摘要和解密后的数据摘要进行对比。Step S311: The first AP uses a data digest algorithm to calculate the decrypted data, and compares the calculated data digest with the decrypted data digest.

如前所述,本实施例在漫游过程中,将关联简化为STA和AP之间传输的数据准确即可。当计算出的数据摘要和解密后的数据摘要一致时,可以说明STA和第一AP之间的无线链路能够安全准确地传输数据,因此STA和第一AP之间完成关联,STA接入第一AP。As mentioned above, in the roaming process in this embodiment, the association can be simplified as the data transmitted between the STA and the AP is accurate. When the calculated data digest is consistent with the decrypted data digest, it means that the wireless link between the STA and the first AP can transmit data safely and accurately. Therefore, the association between the STA and the first AP is completed, and the STA accesses the first AP. an AP.

本发明实施例通过在STA接入第二AP之后,在STA和作为第二AP的邻居的第一AP之间交互建立无线链接的MAC地址、PMK、PTK等信息,完成STA接入第一AP过程中的链路认证、接入认证、密钥协商,大大减少STA漫游过程中交互信息所耗费的时间。同时当STA确定切换到第一AP时,AP根据STA向AP发送的第一个数据报文的内部信息是否一致,完成STA和第一AP之间的关联,使得STA的漫游过程中没有时间的消耗(即漫游切换的时间减至0),切换过程快,完全可以满足VoIP等业务需求,有效保障用户体验。In this embodiment of the present invention, after the STA accesses the second AP, the information such as the MAC address, PMK, and PTK for establishing a wireless link is exchanged between the STA and the first AP, which is a neighbor of the second AP, to complete the STA's access to the first AP. Link authentication, access authentication, and key negotiation in the process greatly reduce the time spent by STAs exchanging information during roaming. At the same time, when the STA determines to switch to the first AP, the AP completes the association between the STA and the first AP according to whether the internal information of the first data packet sent by the STA to the AP is consistent, so that there is no time limit during the roaming process of the STA. Consumption (that is, the time of roaming switching is reduced to 0), and the switching process is fast, which can fully meet the needs of VoIP and other services, and effectively guarantee the user experience.

上述步骤的执行可以通过基站根据前述软件程序执行。例如,步骤S302由快速漫游装置根据图3中的AP信息获取模块执行,步骤S303由快速漫游装置根据图3中的AP信息发送模块执行,步骤S304和步骤S305由STA根据图6中的接入准备模块执行,步骤S306由快速漫游装置根据图3中的STA信息获取模块执行,步骤S307由快速漫游装置根据图3中的STA信息发送模块执行,步骤S308由第一AP根据图4中的接入准备模块执行,步骤S309由STA根据图5中的接入完成模块执行,步骤S310由第一AP根据图4中的报文接收模块和解密模块执行,步骤S311由第一AP根据图4中的确定模块执行。The execution of the above steps may be performed by the base station according to the aforementioned software program. For example, step S302 is performed by the fast roaming device according to the AP information acquisition module in FIG. 3 , step S303 is performed by the fast roaming device according to the AP information sending module in FIG. 3 , and steps S304 and S305 are performed by the STA according to the access module in FIG. 6 The preparation module is executed, step S306 is executed by the fast roaming device according to the STA information acquisition module in FIG. 3 , step S307 is executed by the fast roaming device according to the STA information sending module in FIG. 3 , and step S308 is executed by the first AP according to the receiving module in FIG. 4 . Step S309 is performed by the STA according to the access completion module in FIG. 5 , Step S310 is performed by the first AP according to the packet receiving module and decryption module in FIG. 4 , and Step S311 is performed by the first AP according to the The deterministic module executes.

参见图19,本发明实施例提供了一种快速漫游装置,该装置可以通过软件、硬件或者两者的结合实现成为基站的全部或者一部分。该装置包括:AP信息获取单元602、AP信息发送单元603、STA信息获取单元604和STA信息发送单元605。Referring to FIG. 19 , an embodiment of the present invention provides a fast roaming device, which can be implemented as all or a part of a base station through software, hardware, or a combination of the two. The apparatus includes: an AP information obtaining unit 602 , an AP information sending unit 603 , a STA information obtaining unit 604 and a STA information sending unit 605 .

其中,AP信息获取单元602用于获取第一AP的特征信息,第一AP的特征信息包括第一AP的MAC地址和第一AP生成的随机数。AP信息发送单元603用于在确定STA接入第二AP之后,向STA发送第一AP的特征信息,第一AP为第二AP的邻居,使STA生成并发送随机数,基于STA生成的随机数、STA的MAC地址、PMK、以及第一AP的特征信息生成PTK。STA信息获取单元604用于获取STA的特征信息,STA的特征信息包括STA的MAC地址、STA生成的随机数、以及PMK的特征值。STA信息发送单元605用于向第一AP发送STA的特征信息,使第一AP基于STA的特征信息和第一AP的特征信息生成PTK,STA和第一AP之间的链路认证、接入认证、以及密钥协商完成。The AP information obtaining unit 602 is configured to obtain feature information of the first AP, where the feature information of the first AP includes a MAC address of the first AP and a random number generated by the first AP. The AP information sending unit 603 is configured to send the feature information of the first AP to the STA after it is determined that the STA accesses the second AP. The first AP is a neighbor of the second AP, and the STA generates and sends a random number based on the random number generated by the STA. A PTK is generated based on the number, the MAC address of the STA, the PMK, and the characteristic information of the first AP. The STA information acquiring unit 604 is configured to acquire characteristic information of the STA, where the characteristic information of the STA includes the MAC address of the STA, the random number generated by the STA, and the characteristic value of the PMK. The STA information sending unit 605 is configured to send the feature information of the STA to the first AP, so that the first AP generates a PTK based on the feature information of the STA and the feature information of the first AP, and the link authentication and access between the STA and the first AP are performed. Authentication, and key agreement are completed.

可选地,该装置可以设置在AP上或者接入控制器AC上,AC用于控制和管理AP。Optionally, the apparatus may be set on the AP or on the access controller AC, where the AC is used to control and manage the AP.

本发明实施例通过在STA接入第二AP之后,在STA和作为第二AP的邻居的第一AP之间交互建立无线链接的MAC地址、PMK、PTK等信息,完成STA接入第一AP过程中的链路认证、接入认证、密钥协商,大大减少STA漫游过程中交互信息所耗费的时间。In this embodiment of the present invention, after the STA accesses the second AP, the information such as the MAC address, PMK, and PTK for establishing a wireless link is exchanged between the STA and the first AP, which is a neighbor of the second AP, to complete the STA's access to the first AP. Link authentication, access authentication, and key negotiation in the process greatly reduce the time spent by STAs exchanging information during roaming.

参见图20,本发明实施例提供了一种AP,该AP可以通过软件、硬件或者两者的结合实现成为基站的全部或者一部分。该AP包括:接入准备单元701、报文接收单元702、解密单元703和确定单元704。Referring to FIG. 20 , an embodiment of the present invention provides an AP, and the AP can be implemented as all or a part of a base station through software, hardware, or a combination of the two. The AP includes: an access preparation unit 701 , a packet receiving unit 702 , a decryption unit 703 and a determination unit 704 .

其中,接入准备单元701用于完成与STA之间的链路认证、接入认证、密钥协商,得到STA的MAC地址、PMK和PTK。报文接收单元702用于接收STA在确定从第二AP切换到该AP之后发送的采用PTK加密后的数据报文,该AP为第二AP的邻居。解密单元703用于采用PTK对加密后的数据报文进行解密。确定单元704用于根据解密后的所述数据报文的内部信息是否一致,完成所述STA和所述AP之间的关联。The access preparation unit 701 is configured to complete link authentication, access authentication, and key negotiation with the STA, and obtain the MAC address, PMK and PTK of the STA. The packet receiving unit 702 is configured to receive a data packet encrypted with PTK sent by the STA after determining to switch from the second AP to the AP, where the AP is a neighbor of the second AP. The decryption unit 703 is configured to use PTK to decrypt the encrypted data packet. The determining unit 704 is configured to complete the association between the STA and the AP according to whether the internal information of the decrypted data packet is consistent.

可选地,确定单元704可以用于采用数据摘要算法对解密后的数据进行计算,得到计算出的数据摘要;将计算出的数据摘要与解密后的数据摘要进行对比;当计算出的数据摘要与解密后的数据摘要一致时,STA和第一AP之间的关联完成。Optionally, the determining unit 704 can be configured to use a data digest algorithm to calculate the decrypted data to obtain a calculated data digest; compare the calculated data digest with the decrypted data digest; when the calculated data digest is When consistent with the decrypted data digest, the association between the STA and the first AP is completed.

本发明实施例通过在STA确定从第二AP切换到该AP之前,完成与STA之间的链路认证、接入认证、密钥协商,得到STA的MAC地址、PMK和PTK,在STA确定从第二AP切换到该AP之后,接收STA采用PTK加密后发送的数据报文,采用PTK对加密后的数据报文进行解密,并根据解密后的数据报文的内部信息是否一致,完成STA和第一AP之间的关联,使得STA的漫游过程中没有时间的消耗(即漫游切换的时间减至0),切换过程快,完全可以满足VoIP等业务需求,有效保障用户体验。This embodiment of the present invention obtains the MAC address, PMK, and PTK of the STA by completing link authentication, access authentication, and key negotiation with the STA before the STA determines to switch from the second AP to the AP. After the second AP switches to the AP, it receives the data packet encrypted by the STA using PTK, decrypts the encrypted data packet using PTK, and completes the STA and the data packet according to whether the internal information of the decrypted data packet is consistent. The association between the first APs makes the STA's roaming process without time consumption (ie, the roaming handover time is reduced to 0), and the handover process is fast, which can fully meet service requirements such as VoIP, and effectively guarantee user experience.

参见图21,本发明实施例提供了一种STA,该STA可以通过软件、硬件或者两者的结合实现成为基站的全部或者一部分。该STA包括:接入准备单元801和接入完成单元803。Referring to FIG. 21 , an embodiment of the present invention provides an STA, and the STA can be implemented as all or a part of a base station through software, hardware, or a combination of the two. The STA includes: an access preparation unit 801 and an access completion unit 803 .

其中,接入准备单元801用于在接入第二AP之后,完成与第一AP之间的链路认证、接入认证、密钥协商,得到第一AP的MAC地址、PMK和PTK,第一AP为第二AP的邻居。接入完成单元803用于在确定切换到第一AP之后,向第一AP发送采用所述PTK加密后的数据报文。The access preparation unit 801 is configured to complete link authentication, access authentication, and key negotiation with the first AP after accessing the second AP, and obtain the MAC address, PMK and PTK of the first AP, and the first AP. One AP is a neighbor of the second AP. The access completion unit 803 is configured to send the data packet encrypted by using the PTK to the first AP after it is determined to switch to the first AP.

本发明实施例通过在STA确定从第二AP切换到第一AP之前,完成与第一AP之间的链路认证、接入认证、密钥协商,得到第一AP的MAC地址、PMK和PTK,在STA确定从第二AP切换到该AP之后,向STA发送采用PTK加密后的数据报文,使第一AP采用PTK对加密后的数据报文进行解密,并根据解密后数据报文的内部信息是否一致,完成STA和第一AP之间的关联,使得STA的漫游过程中没有时间的消耗(即漫游切换的时间减至0),切换过程快,完全可以满足VoIP等业务需求,有效保障用户体验。This embodiment of the present invention obtains the MAC address, PMK, and PTK of the first AP by completing link authentication, access authentication, and key negotiation with the first AP before the STA determines to switch from the second AP to the first AP. , after the STA determines to switch from the second AP to the AP, send the data packet encrypted with PTK to the STA, so that the first AP uses PTK to decrypt the encrypted data packet, and according to the decrypted data packet Whether the internal information is consistent, the association between the STA and the first AP is completed, so that there is no time consumption during the roaming process of the STA (that is, the time for roaming handover is reduced to 0), the handover process is fast, and it can fully meet the needs of VoIP and other services. Effective Guarantee user experience.

参见图22a和图22b,其示出了本发明实施例提供的快速漫游系统,该系统包括快速漫游装置901、STA 902、至少一个第一AP 904、第二AP 903,第一AP 904为第二AP 903的邻居。Referring to FIG. 22a and FIG. 22b, it shows a fast roaming system provided by an embodiment of the present invention. The system includes a fast roaming apparatus 901, a STA 902, at least one first AP 904, and a second AP 903, where the first AP 904 is the first AP 904. Two neighbors of AP 903.

具体地,快速漫游装置901可以与图19所示实施例提供的快速漫游装置相同,STA902可以与图21所示实施例提供的STA相同,第一AP 904可以与图20所示实施例提供的AP相同,在此不再详述。Specifically, the fast roaming apparatus 901 may be the same as the fast roaming apparatus provided in the embodiment shown in FIG. 19 , the STA 902 may be the same as the STA provided in the embodiment shown in FIG. 21 , and the first AP 904 may be the same as that provided in the embodiment shown in FIG. 20 . The AP is the same and will not be described in detail here.

可选地,当快速漫游装置901设置在AC上或独立于AC和AP时,快速漫游装置901与第一AP 904和第二AP 903有线连接,第一AP 904与第二AP 903有线连接,STA902与第一AP904无线连接;当快速漫游装置901设置在AP上时,第一AP 904与第二AP 903有线连接,STA902与第一AP 904无线连接。Optionally, when the fast roaming device 901 is set on the AC or is independent of the AC and the AP, the fast roaming device 901 is wired to the first AP 904 and the second AP 903, and the first AP 904 is wired to the second AP 903, The STA902 is wirelessly connected to the first AP 904; when the fast roaming device 901 is set on the AP, the first AP 904 is wired to the second AP 903, and the STA902 is wirelessly connected to the first AP 904.

本发明实施例通过在STA接入第二AP之后,在STA和作为第二AP的邻居的第一AP之间交互建立无线链接的MAC地址、PMK、PTK等信息,完成STA接入第一AP过程中的链路认证、接入认证、密钥协商,大大减少STA漫游过程中交互信息所耗费的时间。同时当STA确定切换到第一AP时,AP根据STA向AP发送的第一个数据报文的内部信息是否一致,完成STA和第一AP之间的关联,使得STA的漫游过程中没有时间的消耗(即漫游切换的时间减至0),切换过程快,完全可以满足VoIP等业务需求,有效保障用户体验。In this embodiment of the present invention, after the STA accesses the second AP, the information such as the MAC address, PMK, and PTK for establishing a wireless link is exchanged between the STA and the first AP, which is a neighbor of the second AP, to complete the STA's access to the first AP. Link authentication, access authentication, and key negotiation in the process greatly reduce the time spent by STAs exchanging information during roaming. At the same time, when the STA determines to switch to the first AP, the AP completes the association between the STA and the first AP according to whether the internal information of the first data packet sent by the STA to the AP is consistent, so that there is no time limit during the roaming process of the STA. Consumption (that is, the time of roaming switching is reduced to 0), and the switching process is fast, which can fully meet the needs of VoIP and other services, and effectively guarantee the user experience.

需要说明的是:上述实施例提供的快速漫游装置、快速漫游系统在快速漫游时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置和系统的内部信息结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的快速漫游装置、快速漫游系统与快速漫游方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the fast roaming device and the fast roaming system provided in the above embodiments are used for fast roaming, only the division of the above functional modules is used for illustration. Module completion means dividing the internal information structure of the device and the system into different functional modules to complete all or part of the functions described above. In addition, the fast roaming device, the fast roaming system and the fast roaming method embodiments provided by the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.

Claims (10)

1. A fast roaming method, characterized in that the method comprises:
the method comprises the steps that a fast roaming device obtains feature information of a first Access Point (AP), wherein the feature information of the first AP comprises a Medium Access Control (MAC) address of the first AP and a random number generated by the first AP;
after determining that a mobile Station (STA) accesses a second AP, the fast roaming device sends characteristic information of a first AP to the STA, wherein the first AP is a neighbor of the second AP;
the STA generates and sends a random number, and generates a Pairwise Temporary Key (PTK) based on the random number generated by the STA, the MAC address of the STA, a Pairwise Master Key (PMK) and the characteristic information of the first AP;
the fast roaming device acquires the feature information of the STA, wherein the feature information of the STA comprises the MAC address of the STA, the random number generated by the STA and the feature value of the PMK;
the fast roaming device sends the feature information of the STA to the first AP;
the first AP generates the PTK based on the feature information of the STA and the feature information of the first AP, and link authentication, access authentication and key agreement between the STA and the first AP are completed;
after determining to switch to the first AP, the STA sends a data message encrypted by the PTK to the first AP, wherein the data message comprises data and a data abstract;
the first AP decrypts the encrypted data message by adopting the PTK;
the first AP calculates the decrypted data by adopting a data abstract algorithm to obtain a calculated data abstract;
the first AP compares the calculated data abstract with the decrypted data abstract;
when the calculated data digest is consistent with the decrypted data digest, the association between the STA and the first AP is completed.
2. The method according to claim 1, wherein the characteristic information of the first AP further includes at least one of an encryption scheme of the first AP, a frequency point of the first AP, and a bandwidth of the first AP.
3. A fast roaming method, characterized in that the method comprises:
the method comprises the steps that a fast roaming device obtains feature information of a first Access Point (AP), wherein the feature information of the first AP comprises a Medium Access Control (MAC) address of the first AP and a random number generated by the first AP;
after determining that a mobile Station (STA) accesses a second AP, the fast roaming device sends feature information of a first AP to the STA, wherein the first AP is a neighbor of the second AP, the STA generates and sends a random number, and a Pairwise Temporary Key (PTK) is generated based on the random number generated by the STA, the MAC address of the STA, a Pairwise Master Key (PMK) and the feature information of the first AP;
the fast roaming device acquires the feature information of the STA, wherein the feature information of the STA comprises the MAC address of the STA, the random number generated by the STA and the feature value of the PMK;
the fast roaming device sends the feature information of the STA to the first AP, so that the first AP generates the PTK based on the feature information of the STA and the feature information of the first AP, and link authentication, access authentication and key agreement between the STA and the first AP are completed.
4. A fast roaming method, characterized in that the method comprises:
the first access point AP generates a pairwise temporary key PTK based on the characteristic information of the mobile station STA and the characteristic information of the first AP, completes link authentication, access authentication and key negotiation with the STA to obtain the MAC address of the STA, a pairwise master key PMK and the PTK, wherein the STA characteristic information is transmitted by a fast roaming device, the STA characteristic information comprises the STA MAC address, the random number generated and transmitted by the STA, and the characteristic value of the PMK, the PTK is generated by the STA based on the random number generated by the STA, the MAC address of the STA, the PMK and the characteristic information of the first AP, the characteristic information of the first AP is transmitted to the STA by the fast roaming device after determining that the STA accesses the second AP, the characteristic information of the first AP comprises a MAC address of the first AP and a random number generated by the first AP;
the first AP receives a data message which is sent by the STA after the STA is determined to be switched from a second AP to the first AP and encrypted by the PTK, wherein the first AP is a neighbor of the second AP, and the data message comprises data and a data abstract;
the first AP decrypts the encrypted data message by adopting the PTK;
the first AP calculates the decrypted data by adopting a data abstract algorithm to obtain a calculated data abstract;
the first AP compares the calculated data abstract with the decrypted data abstract;
when the calculated data digest is consistent with the decrypted data digest, the association between the STA and the first AP is completed.
5. A fast roaming system is characterized in that the system comprises a fast roaming device, a mobile station STA, a first access point AP and a second AP, wherein the first AP is a neighbor of the second AP;
the fast roaming device is configured to acquire feature information of a first AP, and send the feature information to the STA after determining that the STA accesses a second AP, where the feature information of the first AP includes a MAC address of the first AP and a random number generated by the first AP;
the STA is used for generating and sending a random number, and generating a Pairwise Temporary Key (PTK) based on the random number generated by the STA, the MAC address of the STA, a Pairwise Master Key (PMK) and the characteristic information of the first AP;
the fast roaming device is further configured to obtain feature information of the STA and send the feature information to the first AP, where the feature information of the STA includes an MAC address of the STA, a random number generated by the STA, and a feature value of the PMK;
the first AP is used for generating the PTK based on the feature information of the STA and the feature information of the first AP, and link authentication, access authentication and key agreement between the STA and the first AP are completed;
the STA is further configured to send a data packet encrypted by using the PTK to the first AP after the STA is determined to be switched to the first AP, where the data packet includes data and a data digest;
the first AP is further used for decrypting the encrypted data message by adopting the PTK; calculating the decrypted data by adopting a data abstract algorithm to obtain a calculated data abstract; comparing the calculated data digest with the decrypted data digest; when the calculated data digest is consistent with the decrypted data digest, the association between the STA and the first AP is completed.
6. The system according to claim 5, wherein the characteristic information of the first AP further includes at least one of an encryption scheme of the first AP, a frequency point of the first AP, and a bandwidth of the first AP.
7. A fast roaming apparatus, characterized in that the apparatus comprises:
an AP information obtaining unit, configured to obtain feature information of a first AP, where the feature information of the first AP includes a MAC address of the first AP and a random number generated by the first AP;
an AP information sending unit, configured to send feature information of a first AP to a mobile Station (STA) after the STA is determined to access a second AP, where the first AP is a neighbor of the second AP, enable the STA to generate and send a random number, and generate a Pairwise Temporary Key (PTK) based on the random number generated by the STA, the MAC address of the STA, a Pairwise Master Key (PMK), and the feature information of the first AP;
an STA information obtaining unit, configured to obtain feature information of the STA, where the feature information of the STA includes an MAC address of the STA, a random number generated by the STA, and a feature value of the PMK;
an STA information sending unit, configured to send feature information of the STA to the first AP, so that the first AP generates the PTK based on the feature information of the STA and the feature information of the first AP, and link authentication, access authentication, and key agreement between the STA and the first AP are completed.
8. A first access point, AP, wherein the first AP comprises:
an access preparation unit, configured to generate a pairwise temporary key PTK based on the feature information of the mobile station STA and the feature information of the first AP, complete link authentication, access authentication, and key agreement with the STA, and obtain a MAC address of the STA, a pairwise master key PMK, and the PTK, wherein the STA characteristic information is transmitted by a fast roaming device, the STA characteristic information comprises the STA MAC address, the random number generated and transmitted by the STA, and the characteristic value of the PMK, the PTK is generated by the STA based on the random number generated by the STA, the MAC address of the STA, the PMK and the characteristic information of the first AP, the characteristic information of the first AP is transmitted to the STA by the fast roaming device after determining that the STA accesses the second AP, the characteristic information of the first AP comprises a MAC address of the first AP and a random number generated by the first AP;
a message receiving unit, configured to receive a data message encrypted by using the PTK and sent by the STA after determining that the STA is switched from a second AP to the first AP, where the first AP is a neighbor of the second AP, and the data message includes data and a data digest;
the decryption unit is used for decrypting the encrypted data message by adopting the PTK;
the determining unit is used for calculating the decrypted data by adopting a data abstract algorithm to obtain a calculated data abstract; comparing the calculated data digest with the decrypted data digest; when the calculated data digest is consistent with the decrypted data digest, the association between the STA and the first AP is completed.
9. A fast roaming apparatus, characterized in that the apparatus comprises a processor, a memory and a communication interface; the memory is used for storing software programs, and the processor realizes the following by running or executing the software programs stored in the memory:
acquiring feature information of a first Access Point (AP), wherein the feature information of the first AP comprises a Media Access Control (MAC) address of the first AP and a random number generated by the first AP;
after determining that a mobile Station (STA) accesses a second AP, transmitting characteristic information of the first AP to the STA, wherein the first AP is a neighbor of the second AP, enabling the STA to generate and transmit a random number, and generating a Pairwise Temporary Key (PTK) based on the random number generated by the STA, the MAC address of the STA, a Pairwise Master Key (PMK) and the characteristic information of the first AP;
acquiring the feature information of the STA, wherein the feature information of the STA comprises the MAC address of the STA, a random number generated by the STA and a feature value of the PMK;
and sending the feature information of the STA to the first AP, enabling the first AP to generate the PTK based on the feature information of the STA and the feature information of the first AP, and completing link authentication, access authentication and key agreement between the STA and the first AP.
10. A first access point, AP, wherein the first AP comprises a processor, a memory, and a communication interface; the memory is used for storing software programs, and the processor realizes the following by running or executing the software programs stored in the memory:
generating a pairwise temporary key PTK based on the characteristic information of the STA and the characteristic information of the first AP, completing link authentication, access authentication and key agreement with the STA, obtaining the MAC address of the STA, a pairwise master key PMK and the PTK, wherein the STA characteristic information is transmitted by a fast roaming device, the STA characteristic information comprises the STA MAC address, the random number generated and transmitted by the STA, and the characteristic value of the PMK, the PTK is generated by the STA based on the random number generated by the STA, the MAC address of the STA, the PMK and the characteristic information of the first AP, the characteristic information of the first AP is transmitted to the STA by the fast roaming device after determining that the STA accesses the second AP, the characteristic information of the first AP comprises a MAC address of the first AP and a random number generated by the first AP;
receiving a data message which is sent by the STA after the STA is determined to be switched from a second AP to the first AP and encrypted by the PTK, wherein the first AP is a neighbor of the second AP, and the data message comprises data and a data abstract;
decrypting the encrypted data message by using the PTK;
calculating the decrypted data by adopting a data abstract algorithm to obtain a calculated data abstract;
comparing the calculated data digest with the decrypted data digest;
when the calculated data digest is consistent with the decrypted data digest, the association between the STA and the first AP is completed.
CN201610640221.4A 2016-08-05 2016-08-05 Fast roaming method, device, system, access point and mobile station Active CN107690138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610640221.4A CN107690138B (en) 2016-08-05 2016-08-05 Fast roaming method, device, system, access point and mobile station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610640221.4A CN107690138B (en) 2016-08-05 2016-08-05 Fast roaming method, device, system, access point and mobile station

Publications (2)

Publication Number Publication Date
CN107690138A CN107690138A (en) 2018-02-13
CN107690138B true CN107690138B (en) 2020-08-14

Family

ID=61152050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610640221.4A Active CN107690138B (en) 2016-08-05 2016-08-05 Fast roaming method, device, system, access point and mobile station

Country Status (1)

Country Link
CN (1) CN107690138B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110891272B (en) * 2018-09-10 2022-12-09 奇点新源国际技术开发(北京)有限公司 Wireless network access authentication method and device
CN111328066B (en) * 2018-12-14 2023-09-01 中国电信股份有限公司 Heterogeneous wireless network fast roaming method and system, master and slave access point devices
CN109462875B (en) * 2019-01-16 2020-10-27 展讯通信(上海)有限公司 Wireless roaming method, access point device and mobile station
CN109890029B (en) * 2019-01-29 2022-06-03 珠海迈科智能科技股份有限公司 Automatic network distribution method of intelligent wireless equipment
US10728807B1 (en) * 2019-03-04 2020-07-28 Cisco Technology, Inc. Fast roaming and uniform policy for wireless clients with distributed hashing
CN111479248B (en) * 2020-03-19 2022-03-01 烽火通信科技股份有限公司 Fast roaming automatic configuration method and system
CN116508292A (en) * 2020-12-03 2023-07-28 Oppo广东移动通信有限公司 Access authentication method, device, equipment and storage medium
CN114745718A (en) * 2021-01-07 2022-07-12 华为技术有限公司 Roaming control method in local area network and related device thereof
CN113316141B (en) * 2021-05-21 2022-11-18 中国联合网络通信集团有限公司 Wireless network access method, sharing server and wireless access point
US11902775B2 (en) 2021-05-28 2024-02-13 Cisco Technology, Inc. Encrypted nonces as rotated device addresses
CN114173334A (en) * 2021-10-26 2022-03-11 新华三大数据技术有限公司 Method for accessing AP, AP and storage medium
CN116156493A (en) * 2021-11-23 2023-05-23 华为技术有限公司 Roaming method and system
CN119697602A (en) * 2022-02-24 2025-03-25 华为技术有限公司 Wireless local area network system, communication method and device
CN116582554A (en) * 2022-04-07 2023-08-11 武汉联影医疗科技有限公司 Edge node access processing method and device, mobile terminal and edge node
US20240381076A1 (en) * 2023-05-14 2024-11-14 Cisco Technology, Inc. Systems and methods for security association enabling make-before-break-roaming (mbbr)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7480939B1 (en) * 2000-04-28 2009-01-20 3Com Corporation Enhancement to authentication protocol that uses a key lease
CN101111056B (en) * 2006-07-17 2010-05-12 西安电子科技大学 Fast switching method in wireless local area network
CN103888941A (en) * 2012-12-20 2014-06-25 杭州华三通信技术有限公司 Method and device for key negotiation of wireless network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7275157B2 (en) * 2003-05-27 2007-09-25 Cisco Technology, Inc. Facilitating 802.11 roaming by pre-establishing session keys
CN1298194C (en) * 2004-03-22 2007-01-31 西安电子科技大学 Radio LAN security access method based on roaming key exchange authentication protocal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7480939B1 (en) * 2000-04-28 2009-01-20 3Com Corporation Enhancement to authentication protocol that uses a key lease
CN101111056B (en) * 2006-07-17 2010-05-12 西安电子科技大学 Fast switching method in wireless local area network
CN103888941A (en) * 2012-12-20 2014-06-25 杭州华三通信技术有限公司 Method and device for key negotiation of wireless network

Also Published As

Publication number Publication date
CN107690138A (en) 2018-02-13

Similar Documents

Publication Publication Date Title
CN107690138B (en) Fast roaming method, device, system, access point and mobile station
US11178584B2 (en) Access method, device and system for user equipment (UE)
US8037305B2 (en) Securing multiple links and paths in a wireless mesh network including rapid roaming
US10798082B2 (en) Network authentication triggering method and related device
US7275157B2 (en) Facilitating 802.11 roaming by pre-establishing session keys
JP5597676B2 (en) Key material exchange
US20040236939A1 (en) Wireless network handoff key
CN108966220A (en) Safety implementation method, relevant apparatus and system
US8661510B2 (en) Topology based fast secured access
CN108702626A (en) Wireless Wide Area Network (WWAN) Wireless Local Area Network (WLAN) Converged Security
US10659370B2 (en) Wireless local area network (WLAN) node, a wireless device, and methods therein
WO2012075863A1 (en) Centralized 802.1x authentication method, device and system of wireless local area network
WO2015096138A1 (en) Offload method, user equipment, base station and access point
CN104683343B (en) A kind of method of terminal quick registration Wi-Fi hotspot
WO2010130191A1 (en) Authentication method of switching access networks, system and device thereof
US12166757B2 (en) Device-independent authentication based on an authentication parameter and a policy
WO2021109770A1 (en) Wireless network switching method and device
EP2648437B1 (en) Method, apparatus and system for key generation
US20120054831A1 (en) Method and system for switching station in centralized wlan when wpi is performed by access controller
US11310724B2 (en) Key management for fast transitions
WO2024145946A1 (en) Apparatus, method, and computer program
US20250203551A1 (en) Seamless roaming within a seamless mobility domain
US20250184727A1 (en) Authentication by a local authenticator
WO2025137364A1 (en) Seamless roaming within a seamless mobility domain
WO2025099004A1 (en) Method and apparatus for operating with enhanced data privacy features for stations implementing changing mac address

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