[go: up one dir, main page]

HK40053594B - Network connection management method and apparatus, computer readable medium and electronic device - Google Patents

Network connection management method and apparatus, computer readable medium and electronic device Download PDF

Info

Publication number
HK40053594B
HK40053594B HK42021043629.1A HK42021043629A HK40053594B HK 40053594 B HK40053594 B HK 40053594B HK 42021043629 A HK42021043629 A HK 42021043629A HK 40053594 B HK40053594 B HK 40053594B
Authority
HK
Hong Kong
Prior art keywords
access
network connection
accessed
access point
physical address
Prior art date
Application number
HK42021043629.1A
Other languages
Chinese (zh)
Other versions
HK40053594A (en
Inventor
赵乾
Original Assignee
腾讯科技(深圳)有限公司
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of HK40053594A publication Critical patent/HK40053594A/en
Publication of HK40053594B publication Critical patent/HK40053594B/en

Links

Description

网络连接管理方法、装置、计算机可读介质及电子设备Network connection management methods, devices, computer-readable media and electronic devices

技术领域Technical Field

本申请涉及计算机及通信技术领域,具体而言,涉及一种网络连接管理方法、装置、计算机可读介质及电子设备。This application relates to the fields of computer and communication technology, and more specifically, to a network connection management method, apparatus, computer-readable medium, and electronic device.

背景技术Background Technology

随着WLAN(Wireless Local Area Network,无线局域网)技术的发展,在一些应用场景中,需要有大量的站点设备(即Station,STA)来接入AP(Access Point,接入点),比如企业级WLAN,在这种应用场景中,如何能够有效实现对站点设备的网络连接管理是亟待解决的技术问题。With the development of WLAN (Wireless Local Area Network) technology, in some application scenarios, a large number of station devices (STAs) are needed to connect to APs (Access Points), such as enterprise-level WLANs. In such application scenarios, how to effectively manage the network connections of station devices is an urgent technical problem to be solved.

发明内容Summary of the Invention

本申请的实施例提供了一种网络连接管理方法、装置、计算机可读介质及电子设备,进而至少在一定程度上可以提高网络接入验证的效率。The embodiments of this application provide a network connection management method, apparatus, computer-readable medium, and electronic device, which can at least to some extent improve the efficiency of network access authentication.

本申请的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本申请的实践而习得。Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.

根据本申请实施例的一个方面,提供了一种网络连接管理方法,包括:获取待接入设备的物理地址;生成与各个待接入设备的物理地址相对应的接入密钥;根据与所述各个待接入设备的物理地址相对应的接入密钥,生成物理地址与接入密钥之间的关联关系;将所述关联关系发送给接入点设备,并将接入密钥推送给对应的待接入设备,以使所述接入点设备基于所述关联关系验证所述待接入设备基于所述接入密钥发起的接入请求。According to one aspect of the embodiments of this application, a network connection management method is provided, comprising: obtaining the physical address of a device to be accessed; generating an access key corresponding to the physical address of each device to be accessed; generating an association relationship between the physical address and the access key based on the access key corresponding to the physical address of each device to be accessed; sending the association relationship to an access point device and pushing the access key to the corresponding device to be accessed, so that the access point device verifies the access request initiated by the device to be accessed based on the access key based on the association relationship.

根据本申请实施例的一个方面,提供了一种网络连接管理方法,包括:接收接入点管理平台发送的物理地址与接入密钥之间的关联关系,所述关联关系是所述接入点管理平台根据与各个待接入设备的物理地址相对应的接入密钥生成的;若接收到指定设备发送的接入请求,则获取所述指定设备的物理地址和所述接入请求中包含的接入密钥;根据所述关联关系、所述指定设备的物理地址,以及所述接入请求中包含的接入密钥,对所述接入请求进行验证。According to one aspect of the embodiments of this application, a network connection management method is provided, comprising: receiving an association relationship between a physical address and an access key sent by an access point management platform, wherein the association relationship is generated by the access point management platform based on the access key corresponding to the physical address of each device to be accessed; if an access request is received from a specified device, obtaining the physical address of the specified device and the access key contained in the access request; and verifying the access request based on the association relationship, the physical address of the specified device, and the access key contained in the access request.

根据本申请实施例的一个方面,提供了一种网络连接管理方法,包括:将物理地址上报给应用程序服务端;接收所述应用程序服务端推送的与所述物理地址相对应的接入密钥;若接收到连接触发操作,则生成针对指定接入点设备的接入请求,所述接入请求中包含有所述接入密钥;将所述接入请求发送给所述指定接入点设备,以使所述指定接入点设备基于物理地址与接入密钥之间的关联关系验证所述接入请求,所述关联关系是根据与各个待接入设备的物理地址相对应的接入密钥生成的。According to one aspect of the embodiments of this application, a network connection management method is provided, comprising: reporting a physical address to an application server; receiving an access key corresponding to the physical address pushed by the application server; if a connection triggering operation is received, generating an access request for a specified access point device, the access request containing the access key; and sending the access request to the specified access point device so that the specified access point device verifies the access request based on the association between the physical address and the access key, the association being generated based on the access key corresponding to the physical address of each device to be accessed.

根据本申请实施例的一个方面,提供了一种网络连接管理装置,包括:第一获取单元,配置为获取待接入设备的物理地址;第一生成单元,配置为生成与各个待接入设备的物理地址相对应的接入密钥;第二生成单元,配置为根据与所述各个待接入设备的物理地址相对应的接入密钥,生成物理地址与接入密钥之间的关联关系;第一发送单元,配置为将所述关联关系发送给接入点设备,并将接入密钥推送给对应的待接入设备,以使所述接入点设备基于所述关联关系验证所述待接入设备基于所述接入密钥发起的接入请求。According to one aspect of the embodiments of this application, a network connection management device is provided, comprising: a first acquisition unit configured to acquire the physical address of a device to be accessed; a first generation unit configured to generate an access key corresponding to the physical address of each device to be accessed; a second generation unit configured to generate an association relationship between the physical address and the access key based on the access key corresponding to the physical address of each device to be accessed; and a first sending unit configured to send the association relationship to an access point device and push the access key to the corresponding device to be accessed, so that the access point device verifies the access request initiated by the device to be accessed based on the access key based on the association relationship.

在本申请的一些实施例中,基于前述方案,所述第一获取单元配置为:接收应用程序服务端发送的至少一个待接入设备的物理地址,所述至少一个待接入设备的物理地址是运行于所述至少一个待接入设备上的应用程序客户端上报给所述应用程序服务端的。In some embodiments of this application, based on the foregoing scheme, the first acquisition unit is configured to: receive the physical address of at least one device to be accessed sent by the application server, wherein the physical address of the at least one device to be accessed is reported to the application server by the application client running on the at least one device to be accessed.

在本申请的一些实施例中,基于前述方案,所述第一发送单元配置为:将所述物理地址与接入密钥之间的关联关系推送给所述应用程序服务端,以使所述应用程序服务端根据所述关联关系将所述接入密钥推送给相关联的物理地址所对应的待接入设备。In some embodiments of this application, based on the foregoing scheme, the first sending unit is configured to: push the association between the physical address and the access key to the application server, so that the application server pushes the access key to the device to be accessed corresponding to the associated physical address according to the association.

在本申请的一些实施例中,基于前述方案,所述第一生成单元配置为:根据所述各个待接入设备的物理地址生成接入密钥,其中,针对不同的待接入设备的物理地址所生成的接入密钥不相同。In some embodiments of this application, based on the foregoing scheme, the first generation unit is configured to generate an access key according to the physical address of each device to be accessed, wherein the access keys generated for different physical addresses of different devices to be accessed are different.

根据本申请实施例的一个方面,提供了一种网络连接管理装置,包括:第一接收单元,配置为接收接入点管理平台发送的物理地址与接入密钥之间的关联关系,所述关联关系是所述接入点管理平台根据与各个待接入设备的物理地址相对应的接入密钥生成的;第二获取单元,配置为若接收到指定设备发送的接入请求,则获取所述指定设备的物理地址和所述接入请求中包含的接入密钥;处理单元,配置为根据所述关联关系、所述指定设备的物理地址,以及所述接入请求中包含的接入密钥,对所述接入请求进行验证。According to one aspect of the embodiments of this application, a network connection management device is provided, comprising: a first receiving unit configured to receive an association relationship between a physical address and an access key sent by an access point management platform, wherein the association relationship is generated by the access point management platform based on the access key corresponding to the physical address of each device to be accessed; a second obtaining unit configured to obtain the physical address of the specified device and the access key contained in the access request if an access request is received from a specified device; and a processing unit configured to verify the access request based on the association relationship, the physical address of the specified device, and the access key contained in the access request.

在本申请的一些实施例中,基于前述方案,所述处理单元配置为:若根据所述关联关系确定所述指定设备的物理地址与所述接入请求中包含的接入密钥相关联,则确定对所述接入请求验证成功。In some embodiments of this application, based on the foregoing scheme, the processing unit is configured to: if it is determined that the physical address of the specified device is associated with the access key contained in the access request according to the association relationship, then it is determined that the access request has been successfully verified.

在本申请的一些实施例中,基于前述方案,所述处理单元配置为:若所述指定设备的物理地址不存在于所述关联关系中,则拒绝所述接入请求。In some embodiments of this application, based on the foregoing scheme, the processing unit is configured to: reject the access request if the physical address of the specified device does not exist in the association relationship.

根据本申请实施例的一个方面,提供了一种网络连接管理装置,包括:上报单元,配置为将物理地址上报给应用程序服务端;第二接收单元,配置为接收所述应用程序服务端推送的与所述物理地址相对应的接入密钥;第三生成单元,配置为若接收到连接触发操作,则生成针对指定接入点设备的接入请求,所述接入请求中包含有所述接入密钥;第二发送单元,配置为将所述接入请求发送给所述指定接入点设备,以使所述指定接入点设备基于物理地址与接入密钥之间的关联关系验证所述接入请求,所述关联关系是根据与各个待接入设备的物理地址相对应的接入密钥生成的。According to one aspect of the embodiments of this application, a network connection management device is provided, comprising: a reporting unit configured to report a physical address to an application server; a second receiving unit configured to receive an access key corresponding to the physical address pushed by the application server; a third generating unit configured to generate an access request for a specified access point device if a connection trigger operation is received, the access request containing the access key; and a second sending unit configured to send the access request to the specified access point device, so that the specified access point device verifies the access request based on the association between the physical address and the access key, the association being generated based on the access key corresponding to the physical address of each device to be accessed.

在本申请的一些实施例中,基于前述方案,所述上报单元配置为:将本地应用程序客户端中的用户账号信息与运行所述本地应用程序客户端的待接入设备的物理地址进行关联,并上报给所述应用程序服务端。In some embodiments of this application, based on the foregoing scheme, the reporting unit is configured to associate the user account information in the local application client with the physical address of the device to be accessed running the local application client, and report it to the application server.

在本申请的一些实施例中,基于前述方案,所述网络连接管理装置还包括:确定单元,配置为显示图形用户界面,所述图形用户界面上显示有网络连接触发控件,若检测到对所述网络连接触发控件的触发操作,则确定接收到连接触发操作。In some embodiments of this application, based on the foregoing scheme, the network connection management device further includes: a determination unit configured to display a graphical user interface, wherein the graphical user interface displays a network connection trigger control, and if a trigger operation on the network connection trigger control is detected, it is determined that a connection trigger operation has been received.

根据本申请实施例的一个方面,提供了一种计算机可读介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述实施例中所述的网络连接管理方法。According to one aspect of the embodiments of this application, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the network connection management method as described in the above embodiments.

根据本申请实施例的一个方面,提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述实施例中所述的网络连接管理方法。According to one aspect of the embodiments of this application, an electronic device is provided, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the network connection management method as described in the above embodiments.

根据本申请实施例的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各种可选实施例中提供的网络连接管理方法。According to one aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the network connection management method provided in the various alternative embodiments described above.

在本申请的一些实施例所提供的技术方案中,接入点管理平台通过生成与各个待接入设备的物理地址相对应的接入密钥,然后根据与各个待接入设备的物理地址相对应的接入密钥生成物理地址与接入密钥之间的关联关系,并将该关联关系发送给接入点设备,将接入密钥推送给对应的待接入设备,使得接入点设备可以基于物理地址与接入密钥之间的关联关系验证待接入设备发起的接入请求。可见,本申请实施例的技术方案通过将待接入设备的接入密钥与物理地址进行关联,使得在接入点设备验证接入请求时,一方面可以验证待接入设备的物理地址是否存在于该关联关系中,避免了恶意设备频繁发起接入请求而影响接入点设备的性能,另一方面可以在待接入设备的物理地址存在于该关联关系中时,根据该物理地址对应的接入密钥快速验证接入请求中包含的接入密钥,提高了网络接入验证的效率。In some embodiments of this application, the access point management platform generates access keys corresponding to the physical addresses of each device to be accessed. Then, it generates an association between the physical address and the access key based on the access key corresponding to the physical address of each device to be accessed, sends this association to the access point device, and pushes the access key to the corresponding device to be accessed. This allows the access point device to verify the access request initiated by the device to be accessed based on the association between the physical address and the access key. Therefore, by associating the access key of the device to be accessed with its physical address, the technical solution of this application allows the access point device to verify whether the physical address of the device to be accessed exists in the association when verifying an access request. This avoids malicious devices frequently initiating access requests and affecting the performance of the access point device. Furthermore, when the physical address of the device to be accessed exists in the association, the access key contained in the access request can be quickly verified based on the access key corresponding to that physical address, improving the efficiency of network access verification.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application.

附图说明Attached Figure Description

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:

图1示出了WPA/WPA2-PSK认证的示意图;Figure 1 shows a schematic diagram of WPA/WPA2-PSK certification;

图2示出了WPA/WPA2-PPSK认证的示意图;Figure 2 shows a schematic diagram of WPA/WPA2-PPSK certification;

图3示出了STA与AP之间建立连接的流程图;Figure 3 shows the flowchart of establishing a connection between the STA and the AP;

图4示出了STA与AP之间的四次握手认证示意图;Figure 4 illustrates the four-way handshake authentication process between the STA and AP.

图5示出了STA与AP认证过程中的密钥生成示意图;Figure 5 illustrates the key generation process during the STA and AP authentication process;

图6示出了Portal认证的配置界面示意图;Figure 6 shows a schematic diagram of the Portal authentication configuration interface;

图7示出了根据本申请的一个实施例的网络连接管理方法的流程图;Figure 7 shows a flowchart of a network connection management method according to an embodiment of this application;

图8示出了根据本申请的一个实施例的网络连接管理方法的流程图;Figure 8 shows a flowchart of a network connection management method according to an embodiment of this application;

图9示出了根据本申请的一个实施例的网络连接管理方法的流程图;Figure 9 shows a flowchart of a network connection management method according to an embodiment of this application;

图10示出了根据本申请的一个实施例的云AP的场景示意图;Figure 10 shows a schematic diagram of a cloud AP according to an embodiment of this application;

图11示出了根据本申请的一个实施例的云AP场景的系统架构图;Figure 11 shows a system architecture diagram of a cloud AP scenario according to an embodiment of this application;

图12示出了根据本申请的一个实施例的网络连接管理方法的流程图;Figure 12 shows a flowchart of a network connection management method according to an embodiment of this application;

图13示出了根据本申请的一个实施例的一键联网的界面示意图;Figure 13 shows a schematic diagram of a one-click network connection interface according to an embodiment of this application;

图14示出了根据本申请的一个实施例的网络连接管理装置的框图;Figure 14 shows a block diagram of a network connection management device according to an embodiment of this application;

图15示出了根据本申请的一个实施例的网络连接管理装置的框图;Figure 15 shows a block diagram of a network connection management device according to an embodiment of this application;

图16示出了根据本申请的一个实施例的网络连接管理装置的框图;Figure 16 shows a block diagram of a network connection management device according to an embodiment of this application;

图17示出了适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。Figure 17 shows a schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application.

具体实施方式Detailed Implementation

现在参考附图以更全面的方式描述示例实施方式。然而,示例的实施方式能够以各种形式实施,且不应被理解为仅限于这些范例;相反,提供这些实施方式的目的是使得本申请更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。Exemplary embodiments will now be described in a more comprehensive manner with reference to the accompanying drawings. However, the exemplary embodiments can be implemented in various forms and should not be construed as limited to these examples; rather, these embodiments are provided so that this application will be more comprehensive and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art.

此外,本申请所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施例中。在下面的描述中,有许多具体细节从而可以充分理解本申请的实施例。然而,本领域技术人员应意识到,在实施本申请的技术方案时可以不需用到实施例中的所有细节特征,可以省略一个或更多特定细节,或者可以采用其它的方法、元件、装置、步骤等。Furthermore, the features, structures, or characteristics described in this application can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to provide a full understanding of the embodiments of this application. However, those skilled in the art will recognize that when implementing the technical solutions of this application, not all the detailed features in the embodiments may be used, one or more specific details may be omitted, or other methods, elements, devices, steps, etc., may be employed.

附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and/or processor devices and/or microcontroller devices.

附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations/steps, nor do they necessarily have to be performed in the described order. For example, some operations/steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

需要说明的是:在本文中提及的“多个”是指两个或两个以上。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。It should be noted that "multiple" in this article refers to two or more. "And/or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and/or B can represent: A alone, A and B simultaneously, or B alone. The character "/" generally indicates that the preceding and following related objects have an "or" relationship.

WPA全名为Wi-Fi Protected Access(Wi-Fi网络安全接入),有WPA、WPA2和WPA3三个标准,是一种保护无线网络安全的系统。WPA/WPA2-PSK(Pre-Shared Key,预共享密钥)是预分配共享密钥的认证方式,在加密方式和密钥的验证方式上的安全性更高。如图1所示,采用WPA/WPA2-PSK认证时,对于连接到接入点设备101的指定SSID(Service SetIdentifier,服务集标识)的所有站点设备,接入密钥是相同的,比如站点设备102和站点设备103的PSK都是“12345”。WPA stands for Wi-Fi Protected Access, and it has three standards: WPA, WPA2, and WPA3. It is a system for protecting the security of wireless networks. WPA/WPA2-PSK (Pre-Shared Key) is an authentication method that uses a pre-allocated shared key, offering higher security in both encryption and key verification. As shown in Figure 1, when using WPA/WPA2-PSK authentication, all site devices connected to access point device 101 with a specified SSID (Service Set Identifier) share the same access key. For example, the PSK for site devices 102 and 103 is "12345".

WPA/WPA2-PPSK(Private PSK,私有的PSK)认证继承了WPA/WPA2-PSK认证的优点,部署简单,同时还可以实现对不同的站点设备提供不同的预共享密钥,有效提升了网络的安全性。在使用WPA/WPA2-PPSK认证时,连接到同一个SSID的站点设备可以有不同的接入密钥,根据不同的用户可以下发不同的授权,并且如果一个用户拥有多个站点设备,这些站点设备也可以通过同一个PPSK账号连接到网络。具体如图2所示,连接到接入点设备201的同一SSID的站点设备202与站点设备203可以使用相同的PSK,而站点设备204可以使用与站点设备202和站点设备203不相同的PSK。WPA/WPA2-PPSK (Private PSK) authentication inherits the advantages of WPA/WPA2-PSK authentication, offering simple deployment and the ability to provide different pre-shared keys to different site devices, effectively enhancing network security. When using WPA/WPA2-PPSK authentication, site devices connected to the same SSID can have different access keys. Different authorizations can be issued to different users, and if a user owns multiple site devices, these devices can connect to the network through the same PPSK account. Specifically, as shown in Figure 2, site devices 202 and 203 connected to access point device 201 with the same SSID can use the same PSK, while site device 204 can use a different PSK than site devices 202 and 203.

不管是WPA/WPA2-PSK方式,还是WPA/WPA2-PPSK方式,在STA与AP之间的连接过程以及秘钥协商流程是一致的。Regardless of whether it is WPA/WPA2-PSK or WPA/WPA2-PPSK, the connection process and key negotiation process between the STA and AP are the same.

如图3所示,站点设备STA与接入点设备AP之间建立连接的过程主要包括:As shown in Figure 3, the process of establishing a connection between the site device STA and the access point device AP mainly includes:

步骤S301,扫描阶段(SCAN)。Step S301, Scanning phase (SCAN).

具体地,STA使用Scanning来搜索AP,当STA漫游时寻找连接一个新的AP时,STA会在每个可用的信道上进行搜索。搜索方式有主动搜索(Active Scanning)和被动搜索(Passive Scanning)两种。Specifically, the STA uses scanning to search for access points (APs). When the STA is roaming and looking for a new AP to connect to, it will search on every available channel. There are two types of scanning methods: active scanning and passive scanning.

主动搜索是STA依次在每个信道(1-13信道)发出Probe Request(探测请求)帧,寻找与STA所属有相同SSID的AP,若找不到相同SSID的AP,则一直扫描下去。主动搜索的特点是可以迅速搜索到AP。Active search involves the STA sequentially sending Probe Request frames on each channel (channels 1-13) to search for an AP with the same SSID as the STA. If no AP with the same SSID is found, the search continues. The advantage of active search is that it can quickly locate an AP.

被动搜索是STA通过侦听AP定期发送的Beacon(信标)帧来发现网络,该帧提供了AP及所在BSS(Basic Service Set,基本服务集)的相关信息。被动搜索的方式虽然搜索到AP需要花费较多的时间,但是可以降低STA的功耗。Passive search is a method where the STA discovers the network by listening to Beacon frames periodically sent by the AP. These frames provide information about the AP and its BSS (Basic Service Set). Although passive search takes longer to find the AP, it reduces the STA's power consumption.

步骤S302,认证阶段(Authentication)。Step S302, Authentication phase.

具体地,当STA找到与其有相同SSID的AP之后,在SSID匹配的AP中,根据收到的AP信号强度,选择一个信号最强的AP,然后进入认证阶段,只有身份认证通过的STA才能进行无线接入访问。AP提供的认证方法包括:开放式认证(open-system authentication)、共享密钥认证(shared-key authentication)、预先身份认证(WPA PSK)等。Specifically, once a STA finds an AP with the same SSID, it selects the AP with the strongest signal from among the APs with matching SSIDs, and then enters the authentication phase. Only STAs that pass authentication can access the wireless network. The authentication methods provided by the AP include: open-system authentication, shared-key authentication, and pre-authentication (WPA PSK).

其中,开放式认证的过程是STA发起认证请求,认证服务器收到后回应。共享密钥认证的过程是STA发起认证请求,认证服务器收到请求后回复质询文本,STA利用预置的key加密明文发送给认证服务器,认证服务器用预置的key解密并和之前的明文比较,如一致则认证通过。In open authentication, the STA initiates an authentication request, and the authentication server responds upon receiving it. In shared key authentication, the STA initiates an authentication request, the authentication server responds with a challenge text, the STA encrypts the plaintext using a pre-set key and sends it to the authentication server, the authentication server decrypts it using the pre-set key and compares it with the previous plaintext; if they match, authentication is successful.

步骤S303,关联阶段(Association)。Step S303, Association stage.

具体地,当AP向STA返回认证响应信息,STA身份认证获得通过后之后,进入关联阶段。在关联阶段中,STA向AP发送关联请求,AP向STA返回关联响应。当STA移动时就涉及到漫游问题,如果是在同一组网下漫游就无需重新认证而只需要重新关联。当AP与STA关联完成之后,STA的接入过程才完成,即STA与AP之间连接成功。Specifically, after the AP returns an authentication response to the STA and the STA's identity is successfully authenticated, the association phase begins. During the association phase, the STA sends an association request to the AP, and the AP returns an association response to the STA. When the STA moves, roaming becomes an issue. If roaming within the same network, re-authentication is unnecessary; only re-association is required. Only after the AP and STA have successfully associated is the STA's access process complete, meaning the connection between the STA and AP is successful.

在进行数据传输之前,STA与AP之间需要进行基于EAPOL(ExtensibleAuthentication Protocol OVER LAN,基于局域网的扩展认证协议)的四次握手过程来产生所需要的密钥。具体过程如图4所示,STA作为请求方(Supplicant),AP作为认证方(Authenticator)来进行四次握手过程。Before data transmission, the STA and AP need to perform a four-way handshake based on EAPOL (Extensible Authentication Protocol Over LAN) to generate the required key. The specific process is shown in Figure 4, where the STA acts as the supplicant and the AP acts as the authenticator in the four-way handshake process.

在四次握手过程中,消息1是由认证方通过单播方式向请求方发送一个携带A-Nonce的EAPOL-Key帧。其中,A-Nonce是由认证方生成的一个随机数。During the four-way handshake, message 1 is an EAPOL-Key frame carrying an A-Nonce sent by the authenticator to the requester via unicast. The A-Nonce is a random number generated by the authenticator.

请求方在接收到消息1之后,由于请求方已经获得的A-Nonce和AA(AuthenticatorMAC地址,即认证方的MAC地址),同时请求方已经拥有了PMK(Pairwise Master Key,即成对主密钥,通常是一组随机数)和SPA(即请求方的MAC地址),所以可以通过下面的函数计算出PTK(Pairwise Transient Key,成对临时密钥):After receiving message 1, since the requester already possesses the A-Nonce and AA (Authenticator MAC address), as well as the PMK (Pairwise Master Key, usually a set of random numbers) and SPA (the requester's MAC address), it can calculate the PTK (Pairwise Transient Key) using the following function:

PTK=PRF(PMK+A-Nonce+S-Nonce+AA+SPA)PTK=PRF(PMK+A-Nonce+S-Nonce+AA+SPA)

其中,PRF表示pseudorandom function,即伪随机函数;S-Nonce是请求方生成的随机数;公式中的PMK是请求方自己设置的。生成的PTK包含3个部分:KCK(KeyConfirmation Key,密钥确认密钥)、KEK(Key Encryption Key,密钥加密密钥)和TK(Temporal Key,临时密钥)。KCK用来计算密钥生成消息的完整性,KEK用来加密密钥生成消息,TK是真正用来进行数据加密的。In this formula, PRF stands for pseudorandom function; S-Nonce is a random number generated by the requester; and PMK is set by the requester. The generated PTK consists of three parts: KCK (Key Confirmation Key), KEK (Key Encryption Key), and TK (Temporal Key). KCK is used to verify the integrity of the key generation message, KEK is used to encrypt the key generation message, and TK is used for the actual data encryption.

在四次握手过程中,消息2是请求方在生成PTK之后,将S-Nonce、MIC(messageintegrity code,即消息完整性校验码,是针对一组需要保护的数据计算出的散列值,用来防止数据遭篡改)等信息通过第二个EAPOL-Key帧发送给认证方。其中,消息2中的MIC值会被KCK(Key Confirmation Key,密钥确认密钥)加密。During the four-way handshake, message 2 is sent by the requesting party to the authenticating party via the second EAPOL-Key frame after generating the PTK, containing information such as the S-Nonce and MIC (message integrity code, a hash value calculated for a set of data that needs to be protected to prevent data tampering). The MIC value in message 2 is encrypted with the KCK (Key Confirmation Key).

认证方接收到消息2之后,取出消息2中的S-Nonce,也将进行和请求方中类似的计算来验证请求方返回的消息是否正确,具体是将收到的MIC和自己生成的MIC进行完整性校验。如果不正确,即对MIC完整性校验失败,则表明请求方PMK错误,于是整个握手工作就此停止。After receiving message 2, the authenticator extracts the S-Nonce from message 2 and performs similar calculations as the requester to verify the correctness of the message returned by the requester. Specifically, it performs an integrity check on the received MIC and its own generated MIC. If they are incorrect, i.e., the MIC integrity check fails, it indicates that the requester's PMK is incorrect, and the entire handshake process stops.

如果认证方验证请求方返回的消息正确,则认证方生成PTK和GTK(GroupTemporal Key,组临时密钥)。GTK是用于加密组播和广播数据流的加密密钥。If the authenticator verifies that the message returned by the requester is correct, the authenticator generates a PTK and a GTK (Group Temporal Key). The GTK is an encryption key used to encrypt multicast and broadcast data streams.

在四次握手过程中,消息3是认证方在生成PTK和GTK之后,向请求方发送第三个EAPOL-Key帧,其中携带有GTK和MIC。其中,GTK通过KEK进行加密,MIC通过KCK进行加密。During the four-way handshake, message 3 is the third EAPOL-Key frame sent by the authenticator to the requester after generating the PTK and GTK. This frame carries the GTK and MIC. The GTK is encrypted using KEK, and the MIC is encrypted using KCK.

请求方在接收到消息3之后,也将做一些计算以判断认证方的PMK是否正确。如果确认无误,则请求方通过消息4最后一次发送EAPOL-Key帧给认证方进行确认,如果认证成功,则请求方和认证方都安装(Install)密钥,安装(Install)的意思是指使用密钥来对数据进行加密。具体地,请求方安装PTK和GTK,认证方安装PTK。After receiving message 3, the requesting party will also perform some calculations to determine if the authenticator's PMK is correct. If it is correct, the requesting party will send a final EAPOL-Key frame to the authenticator via message 4 for confirmation. If authentication is successful, both the requesting party and the authenticator will install the keys. Installing means using the keys to encrypt the data. Specifically, the requesting party installs both PTK and GTK, while the authenticator installs PTK.

当请求方和认证方完成认证以后,认证方的控制端口将会被打开,这样802.11的数据帧将能够正常传输,而且所有的单播数据帧将会被PTK加密进行保护,所有的组播数据以及广播数据将会被GTK进行加密保护。Once the requester and authenticator have completed authentication, the authenticator's control port will be opened, allowing 802.11 data frames to be transmitted normally. All unicast data frames will be protected by PTK encryption, and all multicast and broadcast data will be protected by GTK encryption.

在认证过程中的密钥生成过程如图5所示,PMK是由ESSID(Extended Service SetIdentifier,服务区别号)和PSK生成的,比如通过SHA-1(Secure Hash Algorithm 1,安全散列算法1)算法来生成PMK。PTK是根据四次握手中获取的请求方MAC(即STA MAC)、认证方的MAC(可以通过BSSID来表示)、PMK、A-Nonce和S-Nonce来生成的。之后可以通过PTK来对密文和MIC进行加密。加密时可以采用AES(Advanced Encryption Standard,高级加密标准)或者TKIP(Temporal Key Integrity protocol,临时密钥完整性协议)的方式。The key generation process during authentication is shown in Figure 5. The PMK is generated from the ESSID (Extended Service Set Identifier) and PSK, for example, using the SHA-1 (Secure Hash Algorithm 1) algorithm. The PTK is generated based on the requester's MAC (STA MAC), the authenticator's MAC (which can be represented by BSSID), the PMK, A-Nonce, and S-Nonce obtained during the four-way handshake. The PTK can then be used to encrypt the ciphertext and MIC. Encryption can be performed using AES (Advanced Encryption Standard) or TKIP (Temporal Key Integrity Protocol).

在企业WLAN中,使用较多的是WPA/WPA2-PPSK认证,这样使得每个用户都可以有不同的密钥,并且配置和部署简单。但是这种方式需要将每个用户的密钥都保存在接入认证设备上,即接入认证设备上需要单独存储密钥列表,如果密钥列表中的密钥数量较多,那么在校验用户输入的密钥时则会极大增加验证时间。同时,如果密钥数量较多,那么在有恶意设备故意输入错误密钥进行攻击时,会导致接入认证设备无法工作的问题,并且这种方式也难以避免密钥混用的现象。In enterprise WLANs, WPA/WPA2-PPSK authentication is commonly used, allowing each user to have a different key and simplifying configuration and deployment. However, this method requires storing each user's key on the access authentication device, meaning the device needs to store a separate key list. If the key list contains a large number of keys, verifying the user's input key will significantly increase the verification time. Furthermore, a large number of keys can cause the access authentication device to malfunction if a malicious device intentionally enters an incorrect key. This method also makes it difficult to prevent key mixing.

此外,在相关技术中,也有采用Portal认证的方式,Portal是作为网关服务于因特网的一种WEB站点,Wi-Fi提供方需要先对Portal认证进行配置,具体配置界面如图6所示,需要设置Portal URL(Uniform Resource Locator,统一资源定位器)、认证Key、认证Secret、认证URL、白名单、Check URL、网络类型等。在配置完成之后,用户可以连接上无密码的Wi-Fi,然后通过浏览器弹出portal认证界面,填入认证的用户名和密码之后,才能真正通过Wi-Fi网络进行上网。这种认证方案不仅操作繁琐,而且Portal认证还存在兼容性问题,有些终端(如某些厂商的手机)连接上Wi-Fi后,有可能无法弹出portal认证的页面,进而导致无法进行认证。In addition, some related technologies employ Portal authentication. A Portal is a web site that acts as a gateway to the Internet. The Wi-Fi provider needs to configure Portal authentication, as shown in Figure 6. This requires setting the Portal URL (Uniform Resource Locator), authentication Key, authentication Secret, authentication URL, whitelist, check URL, and network type. After configuration, users can connect to the passwordless Wi-Fi and then access the portal authentication interface through their browser. Entering the username and password is then required to access the Internet via the Wi-Fi network. This authentication scheme is not only cumbersome, but Portal authentication also has compatibility issues. Some terminals (such as certain manufacturers' mobile phones) may not be able to display the portal authentication page after connecting to the Wi-Fi, thus preventing authentication.

基于上述问题,本申请实施例提供了一种新的网络连接管理方案,通过将待接入设备的接入密钥与物理地址进行关联,使得在接入点设备验证接入请求时,一方面可以验证待接入设备的物理地址是否存在于该关联关系中,避免了恶意设备频繁发起接入请求而影响接入点设备的性能,另一方面可以在待接入设备的物理地址存在于该关联关系中时,根据该物理地址对应的接入密钥快速验证接入请求中包含的接入密钥,提高了网络接入验证的效率,同时还可以避免接入密钥混用的问题。To address the aforementioned issues, this application provides a novel network connection management scheme. By associating the access key of the device to be accessed with its physical address, the access point device can verify whether the physical address of the device to be accessed exists in the association when verifying the access request. This avoids malicious devices frequently initiating access requests and affecting the performance of the access point device. Furthermore, when the physical address of the device to be accessed exists in the association, the access key contained in the access request can be quickly verified based on the access key corresponding to the physical address, improving the efficiency of network access verification and avoiding the problem of mixed access keys.

以下对本申请实施例的技术方案的实现细节进行详细阐述:The implementation details of the technical solutions in the embodiments of this application are described in detail below:

图7示出了根据本申请的一个实施例的网络连接管理方法的流程图,该网络连接管理方法可以由接入点管理平台来执行,该接入点管理平台可以是用于进行接入管理的平台。参照图7所示,该网络连接管理方法至少包括步骤S710至步骤S740,详细介绍如下:Figure 7 shows a flowchart of a network connection management method according to an embodiment of this application. This network connection management method can be executed by an access point management platform, which can be a platform for access management. Referring to Figure 7, the network connection management method includes at least steps S710 to S740, which are described in detail below:

在步骤S710中,获取待接入设备的物理地址。In step S710, the physical address of the device to be connected is obtained.

在本申请的一个实施例中,待接入设备的物理地址可以是MAC(Media AccessControl,媒体介入控制)地址。待接入设备的物理地址可以是待接入设备直接上报给接入点管理平台的(比如通过移动通信网络直接上报给接入点管理平台),或者也可以通过其它设备间接上报给接入点管理平台。In one embodiment of this application, the physical address of the device to be accessed can be a MAC (Media Access Control) address. The physical address of the device to be accessed can be directly reported to the access point management platform by the device to be accessed (e.g., directly reported to the access point management platform through a mobile communication network), or it can be indirectly reported to the access point management platform through other devices.

可选地,待接入设备上安装有应用程序客户端,该应用程序客户端可以获取到待接入设备的物理地址,然后将待接入设备的物理地址上报给应用程序服务端,进而应用程序服务端可以将收集到的至少一个物理地址发送给接入点管理平台。Optionally, an application client is installed on the device to be accessed. This application client can obtain the physical address of the device to be accessed and then report the physical address of the device to be accessed to the application server. In turn, the application server can send at least one physical address collected to the access point management platform.

可选地,接入点管理平台可以通过服务器的形式来实现,该服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云计算服务的云服务器。待接入设备可以是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表、车载终端、智能电视等,但并不局限于此。Optionally, the access point management platform can be implemented in the form of a server. This server can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services. Devices to be connected can be smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, in-vehicle terminals, smart TVs, etc., but are not limited to these.

在步骤S720中,生成与各个待接入设备的物理地址相对应的接入密钥。In step S720, an access key corresponding to the physical address of each device to be accessed is generated.

在本申请的一个实施例中,接入点管理平台可以针对各个待接入设备随机生成接入密钥,或者按照一定的策略来生成接入密钥。可选地,接入点管理平台可以按照待接入设备所在的区域、设备类型来生成具有一定规则的接入密钥,比如针对区域1的待接入设备生成以“01”开头的接入密钥,针对区域2的待接入设备生成以“02”开头的接入密钥;或者针对手机设备生成以“phone”开头的接入密钥,针对计算机生成以“pc”开头的接入密钥等。In one embodiment of this application, the access point management platform can randomly generate access keys for each device to be accessed, or generate access keys according to a certain strategy. Optionally, the access point management platform can generate access keys with certain rules according to the region and device type of the device to be accessed. For example, it can generate access keys starting with "01" for devices to be accessed in region 1, and generate access keys starting with "02" for devices to be accessed in region 2; or it can generate access keys starting with "phone" for mobile devices, and generate access keys starting with "pc" for computers, etc.

可算地,针对不同的待接入设备的物理地址可以生成不同的的接入密钥,这样可以实现一机一密,避免接入密钥混用的情况。It can be calculated that different access keys can be generated for different physical addresses of the devices to be accessed, thus achieving one key per device and avoiding the situation of mixed access keys.

在步骤S730中,根据与各个待接入设备的物理地址相对应的接入密钥,生成物理地址与接入密钥之间的关联关系。In step S730, an association relationship between physical addresses and access keys is generated based on the access keys corresponding to the physical addresses of each device to be accessed.

在本申请的一个实施例中,在针对各个待接入设备的物理地址生成相对应的接入密钥之后,可以将接入密钥与物理地址进行关联存储以生成物理地址与接入密钥之间的关联关系。此外,为了提高在验证阶段查询接入密钥的速率,可以根据接入密钥与物理地址之间的关联关系来生成哈希表,进而可以提高密钥查询效率。In one embodiment of this application, after generating corresponding access keys for the physical addresses of each device to be accessed, the access keys can be associated with and stored with the physical addresses to generate an association relationship between the physical addresses and access keys. Furthermore, to improve the speed of querying access keys during the verification phase, a hash table can be generated based on the association relationship between the access keys and physical addresses, thereby improving key query efficiency.

在步骤S740中,将物理地址与接入密钥之间的关联关系发送给接入点设备,并将接入密钥推送给对应的待接入设备,以使接入点设备基于关联关系验证待接入设备基于接入密钥发起的接入请求。In step S740, the association between the physical address and the access key is sent to the access point device, and the access key is pushed to the corresponding device to be accessed, so that the access point device can verify the access request initiated by the device to be accessed based on the access key based on the association.

在本申请的一个实施例中,接入点管理平台在生成物理地址与接入密钥之间的关联关系之后,可以将该关联关系推送给接入点设备,并且可以将各个待接入设备的接入密钥推送给各个待接入设备,比如直接通过移动通信网络将待接入设备的接入密钥推送给各待接入设备,或者也可以通过其它设备间接上报给接入点管理平台。In one embodiment of this application, after generating the association between physical addresses and access keys, the access point management platform can push the association to the access point device, and can also push the access keys of each device to be accessed to each device to be accessed. For example, the access keys of the devices to be accessed can be pushed directly to each device to be accessed through the mobile communication network, or they can be indirectly reported to the access point management platform through other devices.

可选地,待接入设备上安装有应用程序客户端,该应用程序客户端可以与应用程序服务端进行通信,在这种场景下,接入点管理平台可以将物理地址与接入密钥之间的关联关系推送给应用程序服务端,进而应用程序服务端可以根据该关联关系将各个接入密钥推送给相关联的物理地址所对应的待接入设备。Optionally, an application client is installed on the device to be accessed. This application client can communicate with the application server. In this scenario, the access point management platform can push the association between physical addresses and access keys to the application server. Then, the application server can push each access key to the device to be accessed corresponding to the associated physical address based on the association.

图7是从接入点管理平台的角度对本申请实施例的技术方案进行的阐述,以下从接入点设备的角度对本申请实施例的技术方案进行说明:Figure 7 illustrates the technical solution of this application embodiment from the perspective of the access point management platform. The following describes the technical solution of this application embodiment from the perspective of the access point device:

图8示出了根据本申请的一个实施例的网络连接管理方法的流程图,该网络连接管理方法可以由接入点设备来执行。参照图8所示,该网络连接管理方法至少包括步骤S810至步骤S830,详细介绍如下:Figure 8 shows a flowchart of a network connection management method according to an embodiment of this application. This network connection management method can be executed by an access point device. Referring to Figure 8, the network connection management method includes at least steps S810 to S830, which are described in detail below:

在步骤S810中,接收接入点管理平台发送的物理地址与接入密钥之间的关联关系,该关联关系是接入点管理平台根据与各个待接入设备的物理地址相对应的接入密钥生成的。In step S810, the association between physical addresses and access keys sent by the access point management platform is received. This association is generated by the access point management platform based on the access keys corresponding to the physical addresses of each device to be accessed.

可选地,接入点管理平台生成物理地址与接入密钥之间的关联关系的过程可以参照前述实施例,不再赘述。Optionally, the process by which the access point management platform generates the association between the physical address and the access key can be referred to the aforementioned embodiments and will not be repeated here.

在步骤S820中,若接收到指定设备发送的接入请求,则获取指定设备的物理地址和接入请求中包含的接入密钥。In step S820, if an access request is received from a designated device, the physical address of the designated device and the access key contained in the access request are obtained.

在本申请的实施例中,指定设备是需要接入接入点设备的站点设备。由于指定设备在向接入点设备发送接入请求之前已经与接入点设备进行通信,因此指定设备的物理地址可以是在指定设备发送接入请求就已经获取到的。当然,指定设备也可以在接入请求中再次携带其物理地址。In the embodiments of this application, the designated device is a site device that needs to access the access point device. Since the designated device has already communicated with the access point device before sending the access request, the physical address of the designated device can be obtained before the designated device sends the access request. Of course, the designated device can also carry its physical address again in the access request.

在步骤S830中,根据物理地址与接入密钥之间的关联关系、指定设备的物理地址,以及接入请求中包含的接入密钥,对接入请求进行验证。In step S830, the access request is verified based on the association between the physical address and the access key, the physical address of the specified device, and the access key contained in the access request.

在本申请的一个实施例中,如果根据物理地址与接入密钥之间的关联关系确定指定设备的物理地址与接入请求中包含的接入密钥相关联,则确定对接入请求验证成功。具体地验证过程可以是:接入点设备根据指定设备的物理地址在上述关联关系中查找到对应的接入密钥,然后将查找到的接入密钥与接入请求主动包含的接入密钥进行比对,若一致,则确定对接入请求验证成功。In one embodiment of this application, if the physical address of a specified device is determined to be associated with the access key included in the access request based on the association relationship between the physical address and the access key, then the access request is determined to be successfully verified. Specifically, the verification process may be as follows: the access point device finds the corresponding access key in the aforementioned association relationship based on the physical address of the specified device, and then compares the found access key with the access key actively included in the access request. If they match, the access request is determined to be successfully verified.

在本申请的一个实施例中,如果指定设备的物理地址不存在于关联关系中,则拒绝接入请求。该实施例的技术方案可以避免恶意设备频繁发起连接请求而导致接入点设备无法正常工作的情况发生。In one embodiment of this application, if the physical address of the specified device does not exist in the association relationship, the access request is rejected. This embodiment's technical solution can prevent malicious devices from frequently initiating connection requests, thus avoiding the situation where the access point device cannot function properly.

以下从站点设备的角度对本申请实施例的技术方案进行说明:The technical solutions of the embodiments of this application are described below from the perspective of site equipment:

图9示出了根据本申请的一个实施例的网络连接管理方法的流程图,该网络连接管理方法可以由站点设备来执行。参照图9所示,该网络连接管理方法至少包括步骤S910至步骤S940,详细介绍如下:Figure 9 shows a flowchart of a network connection management method according to an embodiment of this application. This network connection management method can be executed by a site device. Referring to Figure 9, the network connection management method includes at least steps S910 to S940, which are described in detail below:

在步骤S910中,将物理地址上报给应用程序服务端。In step S910, the physical address is reported to the application server.

在本申请的一个实施例中,站点设备中运行的应用程序客户端在与应用程序服务端建立连接之后,可以将站点设备的物理地址上报给应用程序服务端。In one embodiment of this application, after establishing a connection with the application server, the application client running on the site device can report the physical address of the site device to the application server.

可选地,站点设备可以将本地应用程序客户端中的用户账号信息与运行本地应用程序客户端的待接入设备的物理地址进行关联,并上报给应用程序服务端,这样使得应用程序服务端可以知晓物理地址与用户账号信息之间的对应关系。Optionally, the site device can associate the user account information in the local application client with the physical address of the device to be accessed running the local application client, and report it to the application server, so that the application server can know the correspondence between the physical address and the user account information.

在步骤S920中,接收应用程序服务端推送的与物理地址相对应的接入密钥。In step S920, the access key corresponding to the physical address is received from the application server.

可选地,应用程序服务端推送与物理地址相对应的接入密钥的过程可以参照前述实施例,不再赘述。Optionally, the process of the application server pushing the access key corresponding to the physical address can refer to the foregoing embodiments and will not be repeated here.

在步骤S930中,若接收到连接触发操作,则生成针对指定接入点设备的接入请求,该接入请求中包含有接入密钥。In step S930, if a connection trigger operation is received, an access request for the specified access point device is generated, which contains an access key.

在本申请的一个实施例中,连接触发操作可以是用户在站点设备上触发的联网操作,比如点击联网按钮等。In one embodiment of this application, the connection triggering operation may be a network operation triggered by the user on the site device, such as clicking the network button.

可选地,站点设备(具体可以是站点设备上安装的应用程序客户端)上可以显示图形用户界面,该图形用户界面上显示有网络连接触发控件,当检测到对该网络连接触发控件的触发操作时,可以确定接收到连接触发操作,进而可以基于该接入密钥生成接入请求。。Optionally, a graphical user interface (GUI) can be displayed on the site device (specifically, an application client installed on the site device). This GUI displays a network connection trigger control. When a trigger operation on this network connection trigger control is detected, it can be determined that a connection trigger operation has been received, and an access request can then be generated based on the access key.

在步骤S940中,将接入请求发送给指定接入点设备,以使指定接入点设备基于物理地址与接入密钥之间的关联关系验证接入请求,该关联关系是根据与各个待接入设备的物理地址相对应的接入密钥生成的。In step S940, an access request is sent to a designated access point device so that the designated access point device can verify the access request based on the association between the physical address and the access key, which is generated based on the access key corresponding to the physical address of each device to be accessed.

可选地,接入点设备的验证过程可以参照前述实施例的技术方案,不再赘述。Optionally, the verification process for the access point device can refer to the technical solution in the foregoing embodiments, and will not be repeated here.

前述实施例中分别从接入点管理平台、接入点设备和站点设备的角度对本申请实施例的技术方案进行了阐述,以下从各个设备之间进行交互的角度对本申请实施例的实现细节进行详细说明。The foregoing embodiments have described the technical solutions of the embodiments of this application from the perspectives of the access point management platform, access point equipment, and site equipment, respectively. The following describes the implementation details of the embodiments of this application from the perspective of the interaction between various devices.

在本申请的一个应用场景中,接入点设备可以是云AP,云AP是将本地AP的管理能力扩展到云端,通过云端(云AP管理平台,即前述实施例中的接入点管理平台)对多个云AP进行统一的管理,比如配置云AP的LAN、WAN(Wide Area Network,广域网)以及黑白名单等。云AP的场景如图10所示,云AP管理平台通过Internet或者WLAN直接与云AP进行通信,或者云AP管理平台通过Internet或者WLAN经过防火墙和交换机与云AP进行通信,云AP用于与无线终端进行通信交互。In one application scenario of this application, the access point device can be a cloud AP. A cloud AP extends the management capabilities of a local AP to the cloud, allowing unified management of multiple cloud APs through a cloud-based management platform (i.e., the access point management platform in the aforementioned embodiments). This includes configuring the cloud AP's LAN, WAN (Wide Area Network), and blacklists/whitelists. The cloud AP scenario is shown in Figure 10. The cloud AP management platform communicates directly with the cloud AP via the Internet or WLAN, or it communicates with the cloud AP via the Internet or WLAN through a firewall and switch. The cloud AP is used for communication and interaction with wireless terminals.

云AP的场景的系统架构如图11所示,主要包含三个部分:云AP硬件、云AP管理平台和应用程序。The system architecture of the cloud AP scenario is shown in Figure 11, which mainly consists of three parts: cloud AP hardware, cloud AP management platform, and application.

云AP硬件主要包含一个或多个云AP,云AP需要与云AP管理平台进行连接(具体可以通过多端口的转发器HUB来进行连接),并且接收云AP管理平台发送的AP配置信息,同时接收PPSK的秘钥下发和管理,接收和管理终端(即站点设备)的连接信息。The cloud AP hardware mainly consists of one or more cloud APs. The cloud AP needs to connect to the cloud AP management platform (specifically through a multi-port repeater HUB), and receive AP configuration information sent by the cloud AP management platform. It also receives and manages the PPSK key distribution, and receives and manages the connection information of the terminal (i.e., site equipment).

云AP管理平台包含了运营平台、HUB、设备管理、企业配置、通讯录、密钥管理、数据库等几部分。The cloud AP management platform includes several components such as an operations platform, a hub, device management, enterprise configuration, address book, key management, and database.

其中,运营平台用于管理云端任务调度、监控异常情况等;HUB负责与云AP硬件进行连接,维持相关的心跳;设备管理主要用于管理连接的云AP的信息;企业配置主要用于管理每个企业相关的云AP配置;通信录主要用于记录企业员工的信息,包括手机号或者即时通信软件的账号信息等;秘钥管理用于生成、销毁和更新密钥,同时用于给企业分配MAC-PSK哈希表;应用服务用于给应用程序提供相应的API(Application ProgrammingInterface,应用程序接口)接口信息等;数据库作为基础组件,用于对数据进行持久化存储。The system comprises the following components: an operations platform for managing cloud task scheduling and monitoring anomalies; a hub for connecting to cloud AP hardware and maintaining heartbeats; device management for managing information about connected cloud APs; enterprise configuration for managing cloud AP configurations for each enterprise; an address book for recording employee information, including phone numbers and instant messaging account information; key management for generating, destroying, and updating keys, and for allocating MAC-PSK hash tables to enterprises; application services for providing API (Application Programming Interface) information to applications; and a database as a fundamental component for persistent data storage.

应用程序主要是指云AP对应的应用程序,包括前端的管理页面和应用信息,后端的平台和服务能力等。可选地,该应用程序可以是寄宿程序,寄宿程序是依赖于宿主环境而存在的程序,比如小程序、快应用等。The application mainly refers to the application corresponding to the cloud AP, including the front-end management page and application information, and the back-end platform and service capabilities. Optionally, the application can be a hosted program, which is a program that depends on a host environment, such as a mini-program or quick app.

基于图11所示的系统架构,在本申请的一个实施例中,可以通过图12所示的流程来实现网络接入管理,具体包括如下步骤:Based on the system architecture shown in Figure 11, in one embodiment of this application, network access management can be implemented through the process shown in Figure 12, specifically including the following steps:

步骤S1201,企业应用APP推送终端MAC地址和当前企业信息至企业应用云平台。Step S1201: The enterprise application APP pushes the terminal MAC address and current enterprise information to the enterprise application cloud platform.

需要说明的是,企业应用APP可以是针对某个企业单独开发的APP,或者可以是面向所有企业的一个公共平台。如果企业应用APP是面向所有企业的公共平台,那么企业用户需要在该公共平台上创建企业信息,并将该企业的云AP与该企业信息进行绑定,同时在云AP上进行配置,比如配置SSID等。It should be noted that an enterprise application app can be an app developed specifically for a particular enterprise, or it can be a public platform for all enterprises. If the enterprise application app is a public platform for all enterprises, then enterprise users need to create enterprise information on this public platform, bind the enterprise's cloud AP to this enterprise information, and configure the cloud AP, such as configuring the SSID.

当企业员工的终端上安装了企业应用APP并进入自身所属的企业之后,企业应用APP可以收集终端的MAC地址,然后将这些信息推送给企业应用云平台。Once an employee has installed the enterprise application app on their device and accesses their company's website, the enterprise application app can collect the device's MAC address and then push this information to the enterprise application cloud platform.

步骤S1202,企业应用云平台推送MAC地址和企业员工绑定关系至云AP管理平台。Step S1202: The enterprise application cloud platform pushes the MAC address and the binding relationship of enterprise employees to the cloud AP management platform.

在本申请的一个实施例中,企业员工可以是企业员工的工号、姓名等信息,也可以是企业员工在企业应用APP中的账户名等信息。可选地,企业应用云平台也可以只将MAC地址推送给云AP管理平台,而将MAC地址与企业员工的绑定关系维护在本地。In one embodiment of this application, the information of an enterprise employee can be their employee ID, name, or other information, or their account name in the enterprise application APP. Optionally, the enterprise application cloud platform may only push the MAC address to the cloud AP management platform, while maintaining the binding relationship between the MAC address and the enterprise employee locally.

步骤S1203,云AP管理平台生成并推送MAC-PSK哈希表给AP的设备SDK。Step S1203: The cloud AP management platform generates and pushes the MAC-PSK hash table to the AP's device SDK.

在本申请的一个实施例中,云AP管理平台可以根据企业应用云平台推送的MAC地址,生成一机一密的MAC-PSK哈希表,并将该MAC-PSK哈希表发送到云AP的设备SDK(Software Development Kit,软件开发工具包)中。In one embodiment of this application, the cloud AP management platform can generate a unique MAC-PSK hash table based on the MAC address pushed by the enterprise application cloud platform, and send the MAC-PSK hash table to the cloud AP's device SDK (Software Development Kit).

步骤S1204,云AP管理平台生成并推送企业员工PSK至企业应用云平台。Step S1204: The cloud AP management platform generates and pushes the PSK of enterprise employees to the enterprise application cloud platform.

在本申请的一个实施例中,云AP管理平台可以将PSK与MAC地址之间的关联关系推送给企业应用云平台,以便于企业应用云平台根据MAC地址进行PSK的分发。In one embodiment of this application, the cloud AP management platform can push the association between PSK and MAC address to the enterprise application cloud platform so that the enterprise application cloud platform can distribute PSK according to MAC address.

可选地,步骤S1204和步骤S1203之间没有严格的先后顺序,既可以先执行步骤S1203,再执行步骤S1204;也可以先执行步骤S1204,再执行步骤S1203;或者也可以同时执行步骤S1203和步骤S1204。Optionally, there is no strict order between steps S1204 and S1203. Step S1203 can be executed first, followed by step S1204; or step S1204 can be executed first, followed by step S1203; or steps S1203 and S1204 can be executed simultaneously.

步骤S1205,企业应用云平台转发企业员工PSK至企业应用APP。Step S1205: The enterprise application cloud platform forwards the PSK of enterprise employees to the enterprise application APP.

可选地,企业应用云平台根据企业应用APP上报的MAC地址,根据MAC地址与PSK的关联关系将PSK推送至相应的企业应用APP。需要说明的是:企业应用云平台在获取到MAC地址与PSK的关联关系之后,可以主动将PSK推送至相应的企业应用APP,还可以是在接收到企业应用APP发送的接入密钥获取请求时再发送给相应的企业应用APP。Optionally, the enterprise application cloud platform pushes the PSK to the corresponding enterprise application app based on the MAC address reported by the enterprise application app and the association between the MAC address and the PSK. It should be noted that after obtaining the association between the MAC address and the PSK, the enterprise application cloud platform can proactively push the PSK to the corresponding enterprise application app, or it can send it to the corresponding enterprise application app when it receives an access key acquisition request from the enterprise application app.

步骤S1206,用户在企业应用APP发起一键联网。Step S1206: The user initiates one-click network connection in the enterprise application APP.

可选地,如图13所示,在企业应用APP中可以显示“一键联网”的控件1301,当用户选择了需要连接的企业网络之后,可以点击该“一键联网”的控件1301,进而终端上的企业应用APP会将PSK推送到云AP设备上,由于云AP设备在与企业应用APP通信的过程中也会获取到终端的MAC地址,进而云AP设备会根据MAC-PSK哈希表进行快速验证。Optionally, as shown in Figure 13, a "One-Click Network Connection" control 1301 can be displayed in the enterprise application APP. After the user selects the enterprise network to be connected, they can click the "One-Click Network Connection" control 1301. Then, the enterprise application APP on the terminal will push the PSK to the cloud AP device. Since the cloud AP device also obtains the terminal's MAC address during communication with the enterprise application APP, the cloud AP device will quickly verify it according to the MAC-PSK hash table.

具体地,可以根据终端的MAC地址在MAC-PSK哈希表中检索到对应的PSK,然后验证与企业应用APP推送的PSK是否一致,如果一致,则确定验证成功,这种方案相比于AP单独存储密钥列表,通过对密钥列表中的密钥进行检索来验证企业应用APP推送的PSK是否存在于该密钥列表中的方案,极大地减少了验证的时间。同时,由于AP需要验证MAC地址是否存在于MAC-PSK哈希表中,因此也可以直接拒绝非法MAC地址的设备发起的接入请求,避免了恶意设备频繁发起接入请求而影响接入点设备的性能,此外本申请实施例的技术方案还可以避免接入密钥混用的问题。Specifically, the corresponding PSK can be retrieved from the MAC-PSK hash table based on the terminal's MAC address, and then verified to be consistent with the PSK pushed by the enterprise application APP. If they are consistent, the verification is successful. Compared to the method of storing a separate key list on the AP and verifying the existence of the PSK pushed by the enterprise application APP by searching the keys in the key list, this scheme greatly reduces the verification time. At the same time, since the AP needs to verify whether the MAC address exists in the MAC-PSK hash table, it can also directly reject access requests initiated by devices with illegal MAC addresses, avoiding the impact on the performance of the access point device caused by frequent access requests from malicious devices. In addition, the technical solution of this application embodiment can also avoid the problem of access key mixing.

以下介绍本申请的装置实施例,可以用于执行本申请上述实施例中的网络连接管理方法。对于本申请装置实施例中未披露的细节,请参照本申请上述的网络连接管理方法的实施例。The following describes an apparatus embodiment of this application, which can be used to execute the network connection management method described above in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the network connection management method described above in this application.

图14示出了根据本申请的一个实施例的网络连接管理装置的框图,该网络连接管理装置可以设置在接入点管理平台内。Figure 14 shows a block diagram of a network connection management device according to an embodiment of the present application, which can be set in an access point management platform.

参照图14所示,根据本申请的一个实施例的网络连接管理装置1400,包括:第一获取单元1402、第一生成单元1404、第二生成单元1406和第一发送单元1408。Referring to FIG14, a network connection management device 1400 according to an embodiment of the present application includes: a first acquisition unit 1402, a first generation unit 1404, a second generation unit 1406, and a first transmission unit 1408.

其中,第一获取单元1402配置为获取待接入设备的物理地址;第一生成单元1404配置为生成与各个待接入设备的物理地址相对应的接入密钥;第二生成单元1406配置为根据与所述各个待接入设备的物理地址相对应的接入密钥,生成物理地址与接入密钥之间的关联关系;第一发送单元1408配置为将所述关联关系发送给接入点设备,并将接入密钥推送给对应的待接入设备,以使所述接入点设备基于所述关联关系验证所述待接入设备基于所述接入密钥发起的接入请求。The first acquisition unit 1402 is configured to acquire the physical address of the device to be accessed; the first generation unit 1404 is configured to generate an access key corresponding to the physical address of each device to be accessed; the second generation unit 1406 is configured to generate an association relationship between the physical address and the access key based on the access key corresponding to the physical address of each device to be accessed; and the first sending unit 1408 is configured to send the association relationship to the access point device and push the access key to the corresponding device to be accessed, so that the access point device can verify the access request initiated by the device to be accessed based on the access key based on the association relationship.

在本申请的一些实施例中,基于前述方案,第一获取单元1402配置为:接收应用程序服务端发送的至少一个待接入设备的物理地址,所述至少一个待接入设备的物理地址是运行于所述至少一个待接入设备上的应用程序客户端上报给所述应用程序服务端的。In some embodiments of this application, based on the aforementioned scheme, the first acquisition unit 1402 is configured to: receive the physical address of at least one device to be accessed sent by the application server, wherein the physical address of the at least one device to be accessed is reported to the application server by the application client running on the at least one device to be accessed.

在本申请的一些实施例中,基于前述方案,所述第一发送单元1408配置为:将所述物理地址与接入密钥之间的关联关系推送给所述应用程序服务端,以使所述应用程序服务端根据所述关联关系将所述接入密钥推送给相关联的物理地址所对应的待接入设备。In some embodiments of this application, based on the foregoing scheme, the first sending unit 1408 is configured to: push the association relationship between the physical address and the access key to the application server, so that the application server pushes the access key to the device to be accessed corresponding to the associated physical address according to the association relationship.

在本申请的一些实施例中,基于前述方案,所述第一生成单元1404配置为:根据所述各个待接入设备的物理地址生成接入密钥,其中,针对不同的待接入设备的物理地址所生成的接入密钥不相同。In some embodiments of this application, based on the foregoing scheme, the first generation unit 1404 is configured to generate an access key according to the physical address of each device to be accessed, wherein the access keys generated for different physical addresses of different devices to be accessed are different.

图15示出了根据本申请的一个实施例的网络连接管理装置的框图,该网络连接管理装置可以设置在接入点设备内。Figure 15 shows a block diagram of a network connection management device according to an embodiment of the present application, which can be installed in an access point device.

参照图15所示,根据本申请的一个实施例的网络连接管理装置1500,包括:第一接收单元1502、第二获取单元1504和处理单元1506。Referring to FIG15, a network connection management device 1500 according to an embodiment of the present application includes: a first receiving unit 1502, a second acquiring unit 1504, and a processing unit 1506.

其中,第一接收单元1502配置为接收接入点管理平台发送的物理地址与接入密钥之间的关联关系,所述关联关系是所述接入点管理平台根据与各个待接入设备的物理地址相对应的接入密钥生成的;第二获取单元1504配置为若接收到指定设备发送的接入请求,则获取所述指定设备的物理地址和所述接入请求中包含的接入密钥;处理单元1506配置为根据所述关联关系、所述指定设备的物理地址,以及所述接入请求中包含的接入密钥,对所述接入请求进行验证。The first receiving unit 1502 is configured to receive the association relationship between physical addresses and access keys sent by the access point management platform. The association relationship is generated by the access point management platform based on the access keys corresponding to the physical addresses of each device to be accessed. The second obtaining unit 1504 is configured to obtain the physical address of the specified device and the access key contained in the access request if an access request is received from a specified device. The processing unit 1506 is configured to verify the access request based on the association relationship, the physical address of the specified device, and the access key contained in the access request.

在本申请的一些实施例中,基于前述方案,所述处理单元1506配置为:若根据所述关联关系确定所述指定设备的物理地址与所述接入请求中包含的接入密钥相关联,则确定对所述接入请求验证成功。In some embodiments of this application, based on the foregoing scheme, the processing unit 1506 is configured to: if it is determined that the physical address of the specified device is associated with the access key contained in the access request according to the association relationship, then it is determined that the access request has been successfully verified.

在本申请的一些实施例中,基于前述方案,所述处理单元1506配置为:若所述指定设备的物理地址不存在于所述关联关系中,则拒绝所述接入请求。In some embodiments of this application, based on the foregoing scheme, the processing unit 1506 is configured to: reject the access request if the physical address of the specified device does not exist in the association relationship.

图16示出了根据本申请的一个实施例的网络连接管理装置的框图,该网络连接管理装置可以设置在站点设备内。Figure 16 shows a block diagram of a network connection management device according to an embodiment of the present application, which can be installed in a site device.

参照图16所示,根据本申请的一个实施例的网络连接管理装置1600,包括:上报单元1602、第二接收单元1604、第三生成单元1606和第二发送单元1608。Referring to FIG16, a network connection management device 1600 according to an embodiment of the present application includes: a reporting unit 1602, a second receiving unit 1604, a third generating unit 1606, and a second sending unit 1608.

其中,上报单元1602配置为将物理地址上报给应用程序服务端;第二接收单元1604配置为接收所述应用程序服务端推送的与所述物理地址相对应的接入密钥;第三生成单元1606配置为若接收到连接触发操作,则生成针对指定接入点设备的接入请求,所述接入请求中包含有所述接入密钥;第二发送单元1608配置为将所述接入请求发送给所述指定接入点设备,以使所述指定接入点设备基于物理地址与接入密钥之间的关联关系验证所述接入请求,所述关联关系是根据与各个待接入设备的物理地址相对应的接入密钥生成的。Specifically, the reporting unit 1602 is configured to report the physical address to the application server; the second receiving unit 1604 is configured to receive the access key corresponding to the physical address pushed by the application server; the third generating unit 1606 is configured to generate an access request for a specified access point device if a connection trigger operation is received, the access request containing the access key; and the second sending unit 1608 is configured to send the access request to the specified access point device so that the specified access point device can verify the access request based on the association between the physical address and the access key, the association being generated based on the access key corresponding to the physical address of each device to be accessed.

在本申请的一些实施例中,基于前述方案,所述上报单元1602配置为:将本地应用程序客户端中的用户账号信息与运行所述本地应用程序客户端的待接入设备的物理地址进行关联,并上报给所述应用程序服务端。In some embodiments of this application, based on the foregoing scheme, the reporting unit 1602 is configured to associate the user account information in the local application client with the physical address of the device to be accessed running the local application client, and report it to the application server.

在本申请的一些实施例中,基于前述方案,所述网络连接管理装置1600还包括:确定单元,配置为显示图形用户界面,所述图形用户界面上显示有网络连接触发控件,若检测到对所述网络连接触发控件的触发操作,则确定接收到连接触发操作。In some embodiments of this application, based on the foregoing scheme, the network connection management device 1600 further includes: a determination unit configured to display a graphical user interface, wherein the graphical user interface displays a network connection trigger control, and if a trigger operation on the network connection trigger control is detected, a connection trigger operation is determined to have been received.

图17示出了适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。Figure 17 shows a schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application.

需要说明的是,图17示出的电子设备的计算机系统1700仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。It should be noted that the computer system 1700 of the electronic device shown in Figure 17 is only an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

如图17所示,计算机系统1700包括中央处理单元(Central Processing Unit,CPU)1701,其可以根据存储在只读存储器(Read-Only Memory,ROM)1702中的程序或者从存储部分1708加载到随机访问存储器(Random Access Memory,RAM)1703中的程序而执行各种适当的动作和处理,例如执行上述实施例中所述的方法。在RAM 1703中,还存储有系统操作所需的各种程序和数据。CPU 1701、ROM 1702以及RAM 1703通过总线1704彼此相连。输入/输出(Input/Output,I/O)接口1705也连接至总线1704。As shown in Figure 17, the computer system 1700 includes a Central Processing Unit (CPU) 1701, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 1702 or programs loaded from storage portion 1708 into Random Access Memory (RAM) 1703, such as performing the methods described in the above embodiments. Various programs and data required for system operation are also stored in RAM 1703. The CPU 1701, ROM 1702, and RAM 1703 are interconnected via bus 1704. An Input/Output (I/O) interface 1705 is also connected to bus 1704.

以下部件连接至I/O接口1705:包括键盘、鼠标等的输入部分1706;包括诸如阴极射线管(Cathode Ray Tube,CRT)、液晶显示器(Liquid Crystal Display,LCD)等以及扬声器等的输出部分1707;包括硬盘等的存储部分1708;以及包括诸如LAN(Local AreaNetwork,局域网)卡、调制解调器等的网络接口卡的通信部分1709。通信部分1709经由诸如因特网的网络执行通信处理。驱动器1710也根据需要连接至I/O接口1705。可拆卸介质1711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1710上,以便于从其上读出的计算机程序根据需要被安装入存储部分1708。The following components are connected to I/O interface 1705: an input section 1706 including a keyboard, mouse, etc.; an output section 1707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1708 including a hard disk, etc.; and a communication section 1709 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 1709 performs communication processing via a network such as the Internet. A drive 1710 is also connected to I/O interface 1705 as needed. Removable media 1711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1710 as needed so that computer programs read from them can be installed into storage section 1708 as needed.

特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的计算机程序。在这样的实施例中,该计算机程序可以通过通信部分1709从网络上被下载和安装,和/或从可拆卸介质1711被安装。在该计算机程序被中央处理单元(CPU)1701执行时,执行本申请的系统中限定的各种功能。Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1709, and/or installed from removable medium 1711. When the computer program is executed by central processing unit (CPU) 1701, it performs various functions defined in the system of this application.

需要说明的是,本申请实施例所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的计算机程序。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的计算机程序可以用任何适当的介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。其中,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现上述实施例中所述的方法。In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.

应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本申请的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本申请实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、触控终端、或者网络设备等)执行根据本申请实施方式的方法。Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this application.

本领域技术人员在考虑说明书及实践这里公开的实施方式后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.

应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims (14)

1.一种网络连接管理方法,其特征在于,所述网络连接管理方法由接入点管理平台执行,所述接入点管理平台与接入点设备相连接,所述网络连接管理方法包括:1. A network connection management method, characterized in that the network connection management method is executed by an access point management platform, the access point management platform being connected to an access point device, the network connection management method comprising: 接收应用程序服务端发送的多个待接入设备的物理地址,所述多个待接入设备的物理地址是运行于所述多个待接入设备上的应用程序客户端上报给所述应用程序服务端的;Receive the physical addresses of multiple devices to be accessed sent by the application server. The physical addresses of the multiple devices to be accessed are reported to the application server by the application client running on the multiple devices to be accessed. 生成与所述多个待接入设备的物理地址分别对应的接入密钥;Generate access keys corresponding to the physical addresses of the multiple devices to be accessed; 根据与所述多个待接入设备的物理地址分别对应的接入密钥,生成物理地址与接入密钥之间的关联关系;Based on the access keys corresponding to the physical addresses of the multiple devices to be accessed, an association relationship between physical addresses and access keys is generated; 将所述关联关系发送给所述应用程序服务端和接入点设备,以使所述应用程序服务端向所述多个待接入设备分别分发对应的接入密钥,并使所述接入点设备基于所述关联关系验证所述待接入设备基于所述接入密钥发起的接入请求。The association is sent to the application server and the access point device, so that the application server distributes the corresponding access keys to the multiple devices to be accessed, and the access point device verifies the access request initiated by the device to be accessed based on the access key based on the association. 2.根据权利要求1所述的网络连接管理方法,其特征在于,生成与各个待接入设备的物理地址相对应的接入密钥,包括:2. The network connection management method according to claim 1, characterized in that generating an access key corresponding to the physical address of each device to be accessed includes: 根据所述各个待接入设备的物理地址生成接入密钥,其中,针对不同的待接入设备的物理地址所生成的接入密钥不相同。An access key is generated based on the physical address of each device to be accessed, wherein the access key generated for the physical address of different devices to be accessed is different. 3.一种网络连接管理方法,其特征在于,所述网络连接管理方法由接入点设备执行,所述接入点设备与接入点管理平台相连接,所述网络连接管理方法包括:3. A network connection management method, characterized in that the network connection management method is executed by an access point device, the access point device being connected to an access point management platform, and the network connection management method comprising: 接收接入点管理平台发送的物理地址与接入密钥之间的关联关系,所述关联关系是所述接入点管理平台根据与应用程序服务端发送的多个待接入设备的物理地址分别对应的接入密钥生成的,所述多个待接入设备的物理地址是运行于所述多个待接入设备上的应用程序客户端上报给所述应用程序服务端的;The system receives the association between physical addresses and access keys sent by the access point management platform. This association is generated by the access point management platform based on the access keys corresponding to the physical addresses of multiple devices to be accessed, which are sent by the application server. The physical addresses of the multiple devices to be accessed are reported to the application server by the application clients running on the multiple devices to be accessed. 若接收到指定设备发送的接入请求,则获取所述指定设备的物理地址和所述接入请求中包含的接入密钥;If an access request is received from a specified device, the physical address of the specified device and the access key contained in the access request are obtained. 根据所述关联关系、所述指定设备的物理地址,以及所述接入请求中包含的接入密钥,对所述接入请求进行验证。The access request is verified based on the association, the physical address of the specified device, and the access key contained in the access request. 4.根据权利要求3所述的网络连接管理方法,其特征在于,根据所述关联关系、所述指定设备的物理地址,以及所述接入请求中包含的接入密钥,对所述接入请求进行验证,包括:4. The network connection management method according to claim 3, characterized in that, verifying the access request based on the association relationship, the physical address of the designated device, and the access key contained in the access request, includes: 若根据所述关联关系确定所述指定设备的物理地址与所述接入请求中包含的接入密钥相关联,则确定对所述接入请求验证成功。If the physical address of the specified device is determined to be associated with the access key contained in the access request based on the association relationship, then the access request is determined to have been successfully verified. 5.根据权利要求3或4所述的网络连接管理方法,其特征在于,根据所述关联关系、所述指定设备的物理地址,以及所述接入请求中包含的接入密钥,对所述接入请求进行验证,包括:5. The network connection management method according to claim 3 or 4, characterized in that, verifying the access request based on the association relationship, the physical address of the designated device, and the access key included in the access request, includes: 若所述指定设备的物理地址不存在于所述关联关系中,则拒绝所述接入请求。If the physical address of the specified device does not exist in the association, the access request is rejected. 6.一种网络连接管理方法,其特征在于,所述网络连接管理方法由站点设备执行,所述网络连接管理方法,包括:6. A network connection management method, characterized in that the network connection management method is executed by a site device, the network connection management method comprising: 通过运行在所述站点设备上的应用程序客户端将所述站点设备的物理地址上报给应用程序服务端;The physical address of the site device is reported to the application server by the application client running on the site device. 接收所述应用程序服务端推送的与所述物理地址相对应的接入密钥,所述接入密钥是所述应用程序服务端根据接入点管理平台发送的物理地址与接入密钥之间的关联关系所确定的,所述关联关系是所述接入点管理平台根据所述应用程序服务端发送的多个待接入设备的物理地址所生成的;The application server receives an access key corresponding to the physical address, which is determined by the application server based on the association between the physical address and the access key sent by the access point management platform. The association is generated by the access point management platform based on the physical addresses of multiple devices to be accessed sent by the application server. 若接收到连接触发操作,则生成针对指定接入点设备的接入请求,所述接入请求中包含有所述接入密钥;If a connection trigger operation is received, an access request for the specified access point device is generated, and the access request contains the access key. 将所述接入请求发送给所述指定接入点设备,以使所述指定接入点设备基于所述接入点管理平台发送的物理地址与接入密钥之间的关联关系验证所述接入请求。The access request is sent to the designated access point device so that the designated access point device can verify the access request based on the association between the physical address and the access key sent by the access point management platform. 7.根据权利要求6所述的网络连接管理方法,其特征在于,将所述站点设备的物理地址上报给应用程序服务端,包括:7. The network connection management method according to claim 6, characterized in that reporting the physical address of the site device to the application server includes: 将本地应用程序客户端中的用户账号信息与所述站点设备的物理地址进行关联,并上报给所述应用程序服务端。The user account information in the local application client is associated with the physical address of the site device and reported to the application server. 8.根据权利要求6或7所述的网络连接管理方法,其特征在于,所述网络连接管理方法还包括:8. The network connection management method according to claim 6 or 7, characterized in that the network connection management method further includes: 显示图形用户界面,所述图形用户界面上显示有网络连接触发控件;A graphical user interface is displayed, which includes a network connection trigger control; 若检测到对所述网络连接触发控件的触发操作,则确定接收到连接触发操作。If a trigger operation on the network connection trigger control is detected, it is determined that a connection trigger operation has been received. 9.一种网络连接管理装置,其特征在于,所述网络连接管理装置应用于接入点管理平台,所述接入点管理平台与接入点设备相连接,所述网络连接管理装置包括:9. A network connection management device, characterized in that the network connection management device is applied to an access point management platform, the access point management platform being connected to access point devices, and the network connection management device comprising: 第一获取单元,配置为接收应用程序服务端发送的多个待接入设备的物理地址,所述多个待接入设备的物理地址是运行于所述多个待接入设备上的应用程序客户端上报给所述应用程序服务端的;The first acquisition unit is configured to receive the physical addresses of multiple devices to be accessed sent by the application server. The physical addresses of the multiple devices to be accessed are reported to the application server by the application client running on the multiple devices to be accessed. 第一生成单元,配置为生成与所述多个待接入设备的物理地址分别对应的接入密钥;The first generation unit is configured to generate access keys corresponding to the physical addresses of the plurality of devices to be accessed. 第二生成单元,配置为根据与所述多个待接入设备的物理地址分别对应的接入密钥,生成物理地址与接入密钥之间的关联关系;The second generation unit is configured to generate an association relationship between physical addresses and access keys based on the access keys corresponding to the physical addresses of the plurality of devices to be accessed. 第一发送单元,配置为将所述关联关系发送给所述应用程序服务端和接入点设备,以使所述应用程序服务端向所述多个待接入设备分别分发对应的接入密钥,并使所述接入点设备基于所述关联关系验证所述待接入设备基于所述接入密钥发起的接入请求。The first sending unit is configured to send the association relationship to the application server and the access point device, so that the application server distributes the corresponding access keys to the multiple devices to be accessed, and the access point device verifies the access request initiated by the device to be accessed based on the access key based on the association relationship. 10.一种网络连接管理装置,其特征在于,所述网络连接管理装置应用于接入点设备,所述接入点设备与接入点管理平台相连接,所述网络连接管理装置包括:10. A network connection management device, characterized in that the network connection management device is applied to an access point device, the access point device being connected to an access point management platform, the network connection management device comprising: 第一接收单元,配置为接收接入点管理平台发送的物理地址与接入密钥之间的关联关系,所述关联关系是所述接入点管理平台根据与应用程序服务端发送的多个待接入设备的物理地址分别对应的接入密钥生成的,所述多个待接入设备的物理地址是运行于所述多个待接入设备上的应用程序客户端上报给所述应用程序服务端的;The first receiving unit is configured to receive the association relationship between physical addresses and access keys sent by the access point management platform. The association relationship is generated by the access point management platform based on the access keys corresponding to the physical addresses of multiple devices to be accessed sent by the application server. The physical addresses of the multiple devices to be accessed are reported to the application server by the application clients running on the multiple devices to be accessed. 第二获取单元,配置为若接收到指定设备发送的接入请求,则获取所述指定设备的物理地址和所述接入请求中包含的接入密钥;The second acquisition unit is configured to acquire the physical address of the specified device and the access key contained in the access request if it receives an access request sent by the specified device. 处理单元,配置为根据所述关联关系、所述指定设备的物理地址,以及所述接入请求中包含的接入密钥,对所述接入请求进行验证。The processing unit is configured to verify the access request based on the association relationship, the physical address of the specified device, and the access key contained in the access request. 11.一种网络连接管理装置,其特征在于,所述网络连接管理装置应用于站点设备,所述网络连接管理装置包括:11. A network connection management device, characterized in that the network connection management device is applied to site equipment, the network connection management device comprising: 上报单元,配置为通过运行在所述站点设备上的应用程序客户端将所述站点设备的物理地址上报给应用程序服务端;The reporting unit is configured to report the physical address of the site device to the application server via an application client running on the site device. 第二接收单元,配置为接收所述应用程序服务端推送的与所述物理地址相对应的接入密钥,所述接入密钥是所述应用程序服务端根据接入点管理平台发送的物理地址与接入密钥之间的关联关系所确定的,所述关联关系是所述接入点管理平台根据所述应用程序服务端发送的多个待接入设备的物理地址所生成的;The second receiving unit is configured to receive an access key corresponding to the physical address pushed by the application server. The access key is determined by the application server based on the association between the physical address and the access key sent by the access point management platform. The association is generated by the access point management platform based on the physical addresses of multiple devices to be accessed sent by the application server. 第三生成单元,配置为若接收到连接触发操作,则生成针对指定接入点设备的接入请求,所述接入请求中包含有所述接入密钥;The third generation unit is configured to generate an access request for a specified access point device if a connection trigger operation is received, wherein the access request contains the access key. 第二发送单元,配置为将所述接入请求发送给所述指定接入点设备,以使所述指定接入点设备基于所述接入点管理平台发送的物理地址与接入密钥之间的关联关系验证所述接入请求。The second sending unit is configured to send the access request to the designated access point device, so that the designated access point device can verify the access request based on the association between the physical address and the access key sent by the access point management platform. 12.一种计算机可读介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的网络连接管理方法。12. A computer-readable medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the network connection management method as described in any one of claims 1 to 8. 13.一种电子设备,其特征在于,包括:13. An electronic device, characterized in that it comprises: 一个或多个处理器;One or more processors; 存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1至8中任一项所述的网络连接管理方法。A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the network connection management method as described in any one of claims 1 to 8. 14.一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序,所述计算机程序存储在计算机可读存储介质中,电子设备的处理器从所述计算机可读存储介质读取并执行所述计算机程序,使得所述电子设备执行权利要求1至8中任一项所述的网络连接管理方法。14. A computer program product, characterized in that the computer program product includes a computer program stored in a computer-readable storage medium, and a processor of an electronic device reads from and executes the computer program from the computer-readable storage medium, causing the electronic device to perform the network connection management method according to any one of claims 1 to 8.
HK42021043629.1A 2021-12-03 Network connection management method and apparatus, computer readable medium and electronic device HK40053594B (en)

Publications (2)

Publication Number Publication Date
HK40053594A HK40053594A (en) 2022-02-11
HK40053594B true HK40053594B (en) 2024-11-01

Family

ID=

Similar Documents

Publication Publication Date Title
US11178125B2 (en) Wireless network connection method, wireless access point, server, and system
US10638321B2 (en) Wireless network connection method and apparatus, and storage medium
CN113556227B (en) Network connection management method, device, computer readable medium and electronic equipment
US10515391B2 (en) Pre-association mechanism to provide detailed description of wireless services
CN112566119B (en) Terminal authentication method, device, computer equipment and storage medium
EP3065334A1 (en) Key configuration method, system and apparatus
WO2017028593A1 (en) Method for making a network access device access a wireless network access point, network access device, application server, and non-volatile computer readable storage medium
US12490092B2 (en) WPA3-personal cloud based network access and provisioning
CN111866881A (en) Wireless LAN authentication method and wireless LAN connection method
WO2020188988A1 (en) Control device, wireless communication system, control method, and recording medium in which program is recorded
CN112423300A (en) Wireless network access authentication method and device
CN113543131B (en) Network connection management method, device, computer readable medium and electronic device
US20220322467A1 (en) Provisioning headless wifi devices and related systems, methods and devices
CN101243642B (en) Method for performing multiple pre-shared key based authentication at once and device for executing the method
JP7312279B2 (en) MOBILE NETWORK ACCESS SYSTEM, METHOD, STORAGE MEDIUM AND ELECTRONIC DEVICE
HK40053594B (en) Network connection management method and apparatus, computer readable medium and electronic device
HK40053596B (en) Network connection management method and apparatus, computer readable medium and electronic device
HK40053594A (en) Network connection management method and apparatus, computer readable medium and electronic device
WO2016176902A1 (en) Terminal authentication method, management terminal and application terminal
Lindroos et al. Developing a Systematic Process for Mobile Surveying and Analysis of WLAN Security
HK40053596A (en) Network connection management method and apparatus, computer readable medium and electronic device
HK40043385B (en) Terminal authentication method, device, computer equipment and storage medium
HK40043385A (en) Terminal authentication method, device, computer equipment and storage medium
HK40030098B (en) Wireless local area network authentication method and wireless local area network connection method
WO2019001509A1 (en) Network authentication method and system