Network connection management method, device, computer readable medium and electronic device
By generating an access key corresponding to the physical address of the device to be accessed and establishing an association relationship, the problem of low efficiency of network connection management of site equipment and mixed use of keys in enterprise-level WLAN is solved, and the performance and performance of the access point device are improved. Security.
Patent Information
- Application Number
- CN202110779611.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-09
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-07-09
AI Technical Summary
In enterprise-level WLANs, existing technologies are difficult to effectively manage network connections for a large number of site devices. As a result, the performance of access point devices is affected by frequent access requests initiated by malicious devices. Key verification efficiency is low, making it difficult to avoid the problem of key mixing.
By generating an access key corresponding to the physical address of the device to be accessed, establishing an association between the physical address and the access key, and pushing it to the access point device for verification to ensure the legitimacy and validity of the access request. efficiency.
It improves the efficiency of network access verification, avoids the impact on the performance of access point devices caused by frequent access requests initiated by malicious devices, avoids the problem of key mixing, and achieves faster and more secure network connection management.
Smart Images

Figure CN113556227B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer and communication technology, and in particular to a network connection management method, device, computer-readable medium and electronic device. Background Art
[0002] With the development of WLAN (Wireless Local Area Network) technology, in some application scenarios, a large number of station devices (i.e., Station, STA) are required to access AP (Access Point), such as enterprise-level WLAN. In this application scenario, how to effectively manage the network connection of station devices is a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a network connection management method, device, computer-readable medium and electronic device, which can improve the efficiency of network access authentication at least to a certain extent.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of an embodiment of the present application, a network connection management method is provided, including: obtaining a 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 an access request initiated by the device to be accessed based on the access key based on the association relationship.
[0006] According to one aspect of an embodiment of the present application, a network connection management method is provided, including: 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 according to the access key corresponding to the physical address of each device to be accessed; if an access request sent by a designated device is received, obtaining the physical address of the designated device and the access key included in the access request; and verifying the access request according to the association relationship, the physical address of the designated device, and the access key included in the access request.
[0007] According to one aspect of an embodiment of the present application, a network connection management method is provided, including: 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 trigger operation is received, generating an access request for a designated access point device, the access request including the access key; sending the access request to the designated access point device, so that the designated access point device verifies the access request based on an association relationship between the physical address and the access key, the association relationship being generated based on the access keys corresponding to the physical addresses of each device to be accessed.
[0008] According to one aspect of an embodiment of the present application, a network connection management device is provided, including: a first acquisition unit, configured to acquire a 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 according to the access key corresponding to the physical address of each device to be accessed; 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 an access request initiated by the device to be accessed based on the access key based on the association relationship.
[0009] In some embodiments of the present application, based on the aforementioned scheme, the first acquisition unit is configured to: receive the physical address of at least one device to be connected sent by an application server, and the physical address of at least one device to be connected is reported to the application server by an application client running on the at least one device to be connected.
[0010] In some embodiments of the present application, based on the aforementioned scheme, the first sending unit 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.
[0011] In some embodiments of the present application, based on the aforementioned scheme, the first generating 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 the physical addresses of different devices to be accessed are different.
[0012] According to one aspect of an embodiment of the present application, a network connection management device is provided, including: 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 acquisition unit, configured to obtain the physical address of the designated device and the access key included in the access request if an access request sent by a designated device is received; and a processing unit, configured to verify the access request based on the association relationship, the physical address of the designated device, and the access key included in the access request.
[0013] In some embodiments of the present application, based on the aforementioned scheme, the processing unit is configured to: if it is determined according to the association relationship that the physical address of the designated device is associated with the access key included in the access request, then determine that the access request is successfully authenticated.
[0014] In some embodiments of the present application, based on the aforementioned solution, the processing unit is configured to: reject the access request if the physical address of the designated device does not exist in the association relationship.
[0015] According to one aspect of an embodiment of the present application, a network connection management device is provided, including: 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 designated access point device if a connection triggering operation is received, the access request including the access key; a second sending unit, configured to send the access request to the designated access point device, so that the designated access point device verifies the access request based on an association relationship between the physical address and the access key, wherein the association relationship is generated based on the access keys corresponding to the physical addresses of each device to be accessed.
[0016] In some embodiments of the present application, based on the aforementioned 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.
[0017] In some embodiments of the present application, based on the aforementioned scheme, the network connection management device also includes: a determination unit, configured to display a graphical user interface, on which a network connection trigger control is displayed, and if a trigger operation on the network connection trigger control is detected, it is determined that a connection trigger operation is received.
[0018] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the network connection management method as described in the above embodiment is implemented.
[0019] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the network connection management method as described in the above embodiments.
[0020] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the network connection management method provided in the above various optional embodiments.
[0021] In the technical solutions provided in some embodiments of the present application, the access point management platform generates an access key corresponding to the physical address of each device to be accessed, and then generates an association relationship between the physical address and the access key according to the access key corresponding to the physical address of each device to be accessed, and sends the association relationship to the access point device, and pushes 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 association relationship between the physical address and the access key. It can be seen that the technical solution of the embodiment of the present application associates the access key of the device to be accessed with the physical address, so that when the access point device verifies the access request, on the one hand, it can verify whether the physical address of the device to be accessed exists in the association relationship, thereby avoiding malicious devices from frequently initiating access requests and affecting the performance of the access point device, and on the other hand, when the physical address of the device to be accessed exists in the association relationship, the access key contained in the access request can be quickly verified according to the access key corresponding to the physical address, thereby improving the efficiency of network access verification.
[0022] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0024] Figure 1 A schematic diagram of WPA / WPA2-PSK authentication is shown;
[0025] Figure 2 A schematic diagram of WPA / WPA2-PPSK authentication is shown;
[0026] Figure 3 A flow chart showing establishment of a connection between a STA and an AP is shown;
[0027] Figure 4 A schematic diagram of a four-way handshake authentication between a STA and an AP is shown;
[0028] Figure 5 A schematic diagram of key generation during the STA and AP authentication process is shown;
[0029] Figure 6 The figure shows the configuration interface diagram of Portal authentication;
[0030] Figure 7 A flowchart of a network connection management method according to an embodiment of the present application is shown;
[0031] Figure 8 A flowchart of a network connection management method according to an embodiment of the present application is shown;
[0032] Fig. 9 A flowchart of a network connection management method according to an embodiment of the present application is shown;
[0033] Fig.10 A schematic diagram of a cloud AP scenario according to an embodiment of the present application is shown;
[0034] Fig.11 A system architecture diagram of a cloud AP scenario according to an embodiment of the present application is shown;
[0035] Fig.12 A flowchart of a network connection management method according to an embodiment of the present application is shown;
[0036] Fig.13 A schematic diagram of a one-key networking interface according to an embodiment of the present application is shown;
[0037] Fig.14A block diagram of a network connection management device according to an embodiment of the present application is shown;
[0038] Fig.15 A block diagram of a network connection management device according to an embodiment of the present application is shown;
[0039] Fig.16 A block diagram of a network connection management device according to an embodiment of the present application is shown;
[0040] Fig.17 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0041] The exemplary embodiments are now 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 understood as being limited to these examples; on the contrary, the purpose of providing these embodiments is to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0042] In addition, the features, structures or characteristics described in the present application may be combined in one or more embodiments in any suitable manner. In the following description, there are many specific details so that the embodiments of the present application can be fully understood. However, those skilled in the art will appreciate that when implementing the technical scheme of the present application, all the detailed features in the embodiments may not be needed, one or more specific details may be omitted, or other methods, elements, devices, steps, etc. may be adopted.
[0043] 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 may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0044] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0045] It should be noted that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0046] WPA stands for Wi-Fi Protected Access, which has three standards: WPA, WPA2, and WPA3. It is a system for protecting wireless network security. WPA / WPA2-PSK (Pre-Shared Key) is an authentication method that pre-distributes shared keys, which is more secure in encryption and key verification. Figure 1 As shown, when WPA / WPA2-PSK authentication is adopted, the access key is the same for all station devices of the specified SSID (Service Set Identifier) connected to the access point device 101, for example, the PSKs of the station devices 102 and 103 are both "12345".
[0047] WPA / WPA2-PPSK (Private PSK) authentication inherits the advantages of WPA / WPA2-PSK authentication, which is easy to deploy. It can also provide different pre-shared keys for different site devices, effectively improving the security of the network. When using WPA / WPA2-PPSK authentication, site devices connected to the same SSID can have different access keys, and different authorizations can be issued to different users. If a user has multiple site devices, these site devices can also connect to the network through the same PPSK account. Figure 2 As shown, the station device 202 and the station device 203 connected to the same SSID of the access point device 201 may use the same PSK, while the station device 204 may use a PSK different from that of the station device 202 and the station device 203 .
[0048] Regardless of whether it is WPA / WPA2-PSK or WPA / WPA2-PPSK, the connection process and key negotiation process between STA and AP are the same.
[0049] like Figure 3 As shown in FIG. 1 , the process of establishing a connection between a station device STA and an access point device AP mainly includes:
[0050] Step S301, scanning phase (SCAN).
[0051] Specifically, STA uses Scanning to search for APs. When STA is roaming and looking for a new AP to connect to, STA will search on each available channel. There are two search methods: active scanning and passive scanning.
[0052] Active search means that STA sends Probe Request frames on each channel (1-13) in turn to find an AP with the same SSID as the STA. If no AP with the same SSID is found, the scan will continue. The characteristic of active search is that AP can be found quickly.
[0053] Passive search is a method where STA discovers a network by listening to the Beacon frames periodically sent by the AP, which provide information about the AP and its BSS (Basic Service Set). Although the passive search method takes a long time to search for an AP, it can reduce the power consumption of the STA.
[0054] Step S302, authentication phase (Authentication).
[0055] Specifically, when a STA finds an AP with the same SSID as it, it selects an AP with the strongest signal among the APs with matching SSIDs based on the received AP signal strength, and then enters the authentication phase. Only STAs that pass the authentication can access the wireless network. The authentication methods provided by the AP include: open-system authentication, shared-key authentication, pre-authentication (WPA PSK), etc.
[0056] Among them, the process of open authentication is that STA initiates authentication request, and the authentication server responds after receiving it. The process of shared key authentication is that STA initiates authentication request, and the authentication server responds to the challenge text after receiving the request. STA uses the preset key to encrypt the plain text and send it to the authentication server. The authentication server decrypts it with the preset key and compares it with the previous plain text. If they are consistent, the authentication is passed.
[0057] Step S303, association phase (Association).
[0058] Specifically, when the AP returns authentication response information to the STA, the STA identity authentication is passed and then enters the association phase. In 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 issues are involved. If roaming in the same network, there is no need to re-authenticate but only re-associate. When the AP and STA are associated, the STA's access process is completed, that is, the connection between the STA and the AP is successful.
[0059] Before data transmission, the STA and AP need to perform a four-way handshake process based on EAPOL (Extensible Authentication Protocol OVER LAN) to generate the required key. The specific process is as follows Figure 4 As shown, the STA acts as the supplicant and the AP acts as the authenticator to perform a four-way handshake process.
[0060] In the four-way handshake process, 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.
[0061] After receiving message 1, the requester has obtained A-Nonce and AA (AuthenticatorMAC address, i.e., the MAC address of the authenticator), and the requester already has PMK (Pairwise Master Key, i.e., a pairwise master key, usually a set of random numbers) and SPA (i.e., the MAC address of the requester), so the PTK (Pairwise Transient Key) can be calculated by the following function:
[0062] PTK=PRF(PMK+A-Nonce+S-Nonce+AA+SPA)
[0063] Among them, PRF stands for pseudorandom function; S-Nonce is a random number generated by the requester; PMK in the formula is set by the requester. The generated PTK contains three parts: KCK (Key Confirmation Key), KEK (Key Encryption Key) and TK (Temporal Key). KCK is used to calculate the integrity of the key generation message, KEK is used to encrypt the key generation message, and TK is actually used for data encryption.
[0064] In the four-way handshake process, message 2 is the S-Nonce, MIC (message integrity code, which is a hash value calculated for a group of data to be protected to prevent data tampering) and other information sent by the requester to the authenticator through the second EAPOL-Key frame after generating the PTK. Among them, the MIC value in message 2 will be encrypted by KCK (Key Confirmation Key).
[0065] After receiving message 2, the authenticator takes out the S-Nonce in message 2 and performs similar calculations as the requester to verify whether the message returned by the requester is correct. Specifically, it performs integrity check on the received MIC and the MIC generated by itself. If they are incorrect, that is, the integrity check of the MIC fails, it means that the PMK of the requester is wrong, and the whole handshake stops.
[0066] If the authenticator verifies that the message returned by the requester is correct, the authenticator generates PTK and GTK (Group Temporal Key). GTK is an encryption key used to encrypt multicast and broadcast data streams.
[0067] In the four-way handshake process, message 3 is the third EAPOL-Key frame sent by the authenticator to the requester after generating PTK and GTK, which carries GTK and MIC. Among them, GTK is encrypted by KEK, and MIC is encrypted by KCK.
[0068] After receiving message 3, the supplicant will also do some calculations to determine whether the PMK of the authenticator is correct. If it is confirmed to be correct, the supplicant will send the EAPOL-Key frame to the authenticator for confirmation for the last time through message 4. If the authentication is successful, both the supplicant and the authenticator will install the key. Installing means using the key to encrypt data. Specifically, the supplicant installs the PTK and GTK, and the authenticator installs the PTK.
[0069] After the supplicant and the authenticator complete the authentication, the control port of the authenticator will be opened, so that the 802.11 data frames can be transmitted normally, and all unicast data frames will be protected by PTK encryption, and all multicast data and broadcast data will be protected by GTK encryption.
[0070] The key generation process during the authentication process is as follows Figure 5As shown, PMK is generated by ESSID (Extended Service SetIdentifier) and PSK, for example, PMK is generated by SHA-1 (Secure Hash Algorithm 1). PTK is generated based on the requester MAC (i.e. STA MAC), authenticator MAC (which can be represented by BSSID), PMK, A-Nonce and S-Nonce obtained in the four-way handshake. The ciphertext and MIC can then be encrypted by PTK. AES (Advanced Encryption Standard) or TKIP (Temporal Key Integrity protocol) can be used for encryption.
[0071] In enterprise WLAN, WPA / WPA2-PPSK authentication is widely used, which allows each user to have a different key and is easy to configure and deploy. However, this method requires that each user's key be stored on the access authentication device, that is, the access authentication device needs to store a separate key list. If there are many keys in the key list, the verification time will be greatly increased when verifying the key entered by the user. At the same time, if there are many keys, when a malicious device deliberately enters the wrong key to attack, the access authentication device will not work, and this method is also difficult to avoid the phenomenon of key mixing.
[0072] In addition, in related technologies, there is also a Portal authentication method. Portal is a WEB site that serves the Internet as a gateway. The Wi-Fi provider needs to configure Portal authentication first. The specific configuration interface is as follows: Figure 6 As shown in the figure, you need to set the Portal URL (Uniform Resource Locator), authentication key, authentication secret, authentication URL, whitelist, Check URL, network type, etc. After the configuration is completed, the user can connect to the password-free Wi-Fi, and then the portal authentication interface pops up through the browser. After filling in the authentication user name and password, you can actually access the Internet through the Wi-Fi network. This authentication scheme is not only cumbersome to operate, but also has compatibility issues with Portal authentication. After some terminals (such as mobile phones of some manufacturers) are connected to Wi-Fi, it may not be possible to pop up the portal authentication page, which leads to the inability to perform authentication.
[0073] Based on the above problems, an embodiment of the present application provides a new network connection management solution. By associating the access key of the device to be accessed with the physical address, when the access point device verifies the access request, on the one hand, it can verify whether the physical address of the device to be accessed exists in the association relationship, thereby avoiding malicious devices from frequently initiating access requests and affecting the performance of the access point device. On the other hand, when the physical address of the device to be accessed exists in the association relationship, the access key contained in the access request can be quickly verified according to the access key corresponding to the physical address, thereby improving the efficiency of network access verification and avoiding the problem of mixed use of access keys.
[0074] The implementation details of the technical solution of the embodiment of the present application are described in detail below:
[0075] Figure 7 A flowchart of a network connection management method according to an embodiment of the present application is shown. The network connection management method may be executed by an access point management platform, which may be a platform for access management. Figure 7 As shown, the network connection management method at least includes steps S710 to S740, which are described in detail as follows:
[0076] In step S710, the physical address of the device to be connected is obtained.
[0077] In one embodiment of the present application, the physical address of the device to be accessed may be a MAC (Media Access Control) address. The physical address of the device to be accessed may be directly reported to the access point management platform by the device to be accessed (for example, directly reported to the access point management platform via a mobile communication network), or may be indirectly reported to the access point management platform via other devices.
[0078] Optionally, an application client is installed on the device to be accessed, which 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, which can then send at least one collected physical address to the access point management platform.
[0079] Optionally, the access point management platform can be implemented in the form of a server, which can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The device to be accessed can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, a smart TV, etc., but is not limited thereto.
[0080] In step S720, an access key corresponding to the physical address of each device to be connected is generated.
[0081] In one embodiment of the present 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 area and device type of the device to be accessed, such as generating an access key starting with "01" for the device to be accessed in area 1, and generating an access key starting with "02" for the device to be accessed in area 2; or generating an access key starting with "phone" for a mobile phone device, and generating an access key starting with "pc" for a computer, etc.
[0082] It is calculable that different access keys can be generated for different physical addresses of devices to be accessed, so that one device has one key and the mixing of access keys can be avoided.
[0083] In step S730, an association relationship between the physical address and the access key is generated according to the access key corresponding to the physical address of each device to be connected.
[0084] In one embodiment of the present application, after generating a corresponding access key for the physical address of each device to be accessed, the access key and the physical address may be associated and stored to generate an association relationship between the physical address and the access key. In addition, in order to increase the rate of querying the access key during the verification phase, a hash table may be generated based on the association relationship between the access key and the physical address, thereby improving the key query efficiency.
[0085] In step S740, the association relationship 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 verifies the access request initiated by the device to be accessed based on the access key based on the association relationship.
[0086] In one embodiment of the present application, after generating an association relationship between a physical address and an access key, the access point management platform can push the association relationship to the access point device, and can push the access key of each device to be accessed to each device to be accessed, such as directly pushing the access key of the device to be accessed to each device to be accessed through a mobile communication network, or can also indirectly report to the access point management platform through other devices.
[0087] Optionally, an application client is installed on the device to be accessed, and the application client can communicate with the application server. In this scenario, the access point management platform can push the association between the physical address and the access key to the application server, and 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.
[0088] Figure 7 The technical solution of the embodiment of the present application is described from the perspective of the access point management platform. The technical solution of the embodiment of the present application is described from the perspective of the access point device as follows:
[0089] Figure 8 A flowchart of a network connection management method according to an embodiment of the present application is shown, and the network connection management method can be executed by an access point device. Figure 8 As shown, the network connection management method at least includes steps S810 to S830, which are described in detail as follows:
[0090] In step S810, an association relationship between a physical address and an access key sent by an access point management platform is received. The association relationship is generated by the access point management platform according to the access key corresponding to the physical address of each device to be accessed.
[0091] Optionally, the process of the access point management platform generating the association relationship between the physical address and the access key may refer to the aforementioned embodiment and will not be described in detail.
[0092] In step S820, if an access request sent by a designated device is received, the physical address of the designated device and the access key included in the access request are obtained.
[0093] In the embodiment of the present application, the designated device is a site device that needs to access the access point device. Since the designated device has communicated with the access point device before sending the access request to the access point device, the physical address of the designated device may be obtained before the designated device sends the access request. Of course, the designated device may also carry its physical address again in the access request.
[0094] In step S830, the access request is verified according to the association between the physical address and the access key, the physical address of the designated device, and the access key included in the access request.
[0095] In one embodiment of the present application, if it is determined that the physical address of the designated device is associated with the access key included in the access request according to the association relationship between the physical address and the access key, then it is determined that the access request is successfully verified. Specifically, the verification process may be: the access point device finds the corresponding access key in the above association relationship according to the physical address of the designated device, and then compares the found access key with the access key actively included in the access request. If they are consistent, it is determined that the access request is successfully verified.
[0096] In one embodiment of the present application, if the physical address of the designated device does not exist in the association relationship, the access request is rejected. The technical solution of this embodiment can prevent the access point device from failing to work properly due to frequent connection requests initiated by malicious devices.
[0097] The following is an explanation of the technical solution of the embodiment of the present application from the perspective of the site equipment:
[0098] Fig. 9 A flow chart of a network connection management method according to an embodiment of the present application is shown, and the network connection management method can be executed by a site device. Fig. 9 As shown, the network connection management method at least includes steps S910 to S940, which are described in detail as follows:
[0099] In step S910, the physical address is reported to the application server.
[0100] In one embodiment of the present application, after establishing a connection with the application server, the application client running in the site device may report the physical address of the site device to the application server.
[0101] Optionally, the site device may 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.
[0102] In step S920, an access key corresponding to the physical address pushed by the application server is received.
[0103] Optionally, the process of the application server pushing the access key corresponding to the physical address can refer to the above embodiment and will not be described in detail.
[0104] In step S930, if a connection triggering operation is received, an access request for a designated access point device is generated, and the access request includes an access key.
[0105] In one embodiment of the present application, the connection triggering operation may be a networking operation triggered by a user on a site device, such as clicking a networking button.
[0106] Optionally, a graphical user interface may be displayed on the site device (specifically, an application client installed on the site device), and a network connection trigger control may be displayed on the graphical user interface. When a trigger operation on the network connection trigger control is detected, it may be determined that a connection trigger operation is received, and an access request may be generated based on the access key.
[0107] In step S940, the access request is sent to the designated access point device, so that the designated access point device verifies the access request based on the association relationship between the physical address and the access key, where the association relationship is generated according to the access key corresponding to the physical address of each device to be accessed.
[0108] Optionally, the verification process of the access point device may refer to the technical solution of the aforementioned embodiment and will not be described in detail.
[0109] In the foregoing embodiments, the technical solutions of the embodiments of the present application are respectively described from the perspectives of the access point management platform, the access point device and the site device. The following describes in detail the implementation details of the embodiments of the present application from the perspective of interaction between the various devices.
[0110] In an application scenario of the present application, the access point device may be a cloud AP, which extends the management capability of a local AP to the cloud, and manages multiple cloud APs in a unified manner through the cloud (cloud AP management platform, i.e., the access point management platform in the aforementioned embodiment), such as configuring the LAN, WAN (Wide Area Network), and blacklist and whitelist of the cloud AP. Fig.10 As shown, the cloud AP management platform communicates directly with the cloud AP via the Internet or WLAN, or the cloud AP management platform communicates with the cloud AP via the Internet or WLAN through a firewall and a switch, and the cloud AP is used to communicate and interact with the wireless terminal.
[0111] The system architecture of the cloud AP scenario is as follows: Fig.11 As shown in the figure, it mainly includes three parts: cloud AP hardware, cloud AP management platform and application.
[0112] The cloud AP hardware mainly includes one or more cloud APs. The cloud AP needs to be connected to the cloud AP management platform (specifically, it can be connected through a multi-port repeater HUB) and receive the AP configuration information sent by the cloud AP management platform. At the same time, it receives the PPSK key distribution and management, and receives and manages the connection information of the terminal (i.e., site equipment).
[0113] The cloud AP management platform includes the operation platform, HUB, device management, enterprise configuration, address book, key management, database and other parts.
[0114] Among them, the operation platform is used to manage cloud task scheduling, monitor abnormal situations, etc.; the HUB is responsible for connecting to the cloud AP hardware and maintaining related heartbeats; device management is mainly used to manage the information of connected cloud APs; enterprise configuration is mainly used to manage the cloud AP configuration related to each enterprise; the address book is mainly used to record the information of enterprise employees, including mobile phone numbers or instant messaging software account information, etc.; key management is used to generate, destroy and update keys, and is also used to allocate MAC-PSK hash tables to enterprises; application services are used to provide corresponding API (Application Programming Interface) interface information to applications, etc.; the database is used as a basic component for persistent storage of data.
[0115] The application mainly refers to the application corresponding to the cloud AP, including the front-end management page and application information, the back-end platform and service capabilities, etc. Optionally, the application can be a host program, which is a program that depends on the host environment, such as a mini program, a quick application, etc.
[0116] based on Fig.11 The system architecture shown in the embodiment of the present application can be realized by Fig.12 The process shown in the figure implements network access management, which specifically includes the following steps:
[0117] Step S1201, the enterprise application APP pushes the terminal MAC address and current enterprise information to the enterprise application cloud platform.
[0118] It should be noted that the enterprise application APP can be an APP developed for a specific enterprise, or it can be a public platform for all enterprises. If the enterprise application APP is a public platform for all enterprises, then the enterprise user needs to create enterprise information on the public platform, bind the enterprise's cloud AP with the enterprise information, and configure it on the cloud AP, such as configuring SSID, etc.
[0119] When an enterprise employee installs an enterprise application APP on his / her terminal and enters the enterprise to which he / she belongs, the enterprise application APP can collect the MAC address of the terminal and then push this information to the enterprise application cloud platform.
[0120] Step S1202, the enterprise application cloud platform pushes the MAC address and enterprise employee binding relationship to the cloud AP management platform.
[0121] In one embodiment of the present application, the enterprise employee may be the employee's work number, name, etc., or the enterprise employee's account name in the enterprise application APP, etc. Optionally, the enterprise application cloud platform may only push the MAC address to the cloud AP management platform, and maintain the binding relationship between the MAC address and the enterprise employee locally.
[0122] Step S1203: The cloud AP management platform generates and pushes a MAC-PSK hash table to the AP device SDK.
[0123] In one embodiment of the present application, the cloud AP management platform can generate a one-key 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 device SDK (Software Development Kit) of the cloud AP.
[0124] Step S1204: The cloud AP management platform generates and pushes the enterprise employee PSK to the enterprise application cloud platform.
[0125] In one embodiment of the present application, the cloud AP management platform may push the association relationship between the PSK and the MAC address to the enterprise application cloud platform, so that the enterprise application cloud platform can distribute the PSK according to the MAC address.
[0126] Optionally, there is no strict order between step S1204 and step S1203. Step S1203 may be performed first and then step S1204; step S1204 may be performed first and then step S1203; or step S1203 and step S1204 may be performed simultaneously.
[0127] Step S1205, the enterprise application cloud platform forwards the enterprise employee PSK to the enterprise application APP.
[0128] 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 actively push the PSK to the corresponding enterprise application APP, or send it to the corresponding enterprise application APP upon receiving the access key acquisition request sent by the enterprise application APP.
[0129] Step S1206: The user initiates one-click networking in the enterprise application APP.
[0130] Alternatively, if Fig.13As shown, a "one-click networking" control 1301 can be displayed in the enterprise application APP. After the user selects the enterprise network to be connected, the user can click the "one-click networking" control 1301, and then the enterprise application APP on the terminal will push the PSK to the cloud AP device. Since the cloud AP device will also obtain the MAC address of the terminal during the communication with the enterprise application APP, the cloud AP device will quickly verify according to the MAC-PSK hash table.
[0131] Specifically, the corresponding PSK can be retrieved from the MAC-PSK hash table according to the MAC address of the terminal, and then verified whether it is consistent with the PSK pushed by the enterprise application APP. If it is consistent, the verification is determined to be successful. Compared with the solution in which the AP stores the key list separately and verifies whether the PSK pushed by the enterprise application APP exists in the key list by retrieving the key in the key list, this solution 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 the access request initiated by the device with the illegal MAC address, avoiding the frequent access request initiated by the malicious device and affecting the performance of the access point device. In addition, the technical solution of the embodiment of the present application can also avoid the problem of mixed use of access keys.
[0132] The following describes an apparatus embodiment of the present application, which can be used to execute the network connection management method in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above-mentioned embodiment of the network connection management method of the present application.
[0133] Fig.14 A block diagram of a network connection management device according to an embodiment of the present application is shown. The network connection management device can be set in an access point management platform.
[0134] Reference Fig.14 As shown, according to an embodiment of the present application, a network connection management device 1400 includes: a first acquisition unit 1402 , a first generation unit 1404 , a second generation unit 1406 and a first sending unit 1408 .
[0135] Among them, the first acquisition unit 1402 is configured to obtain 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 according to the access key corresponding to the physical address of each device to be accessed; 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 verifies the access request initiated by the device to be accessed based on the access key based on the association relationship.
[0136] In some embodiments of the present 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 connected sent by the application server, and the physical address of at least one device to be connected is reported to the application server by the application client running on the at least one device to be connected.
[0137] In some embodiments of the present application, based on the aforementioned 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.
[0138] In some embodiments of the present application, based on the aforementioned solution, the first generating 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 the physical addresses of different devices to be accessed are different.
[0139] Fig.15 A block diagram of a network connection management apparatus according to an embodiment of the present application is shown. The network connection management apparatus may be arranged in an access point device.
[0140] Reference Fig.15 As shown, according to an embodiment of the present application, a network connection management device 1500 includes: a first receiving unit 1502 , a second obtaining unit 1504 and a processing unit 1506 .
[0141] Among them, the first receiving unit 1502 is configured to receive the association relationship between the physical address and the access key sent by the access point management platform, and the association relationship is generated by the access point management platform according to the access key corresponding to the physical address of each device to be accessed; the second acquisition unit 1504 is configured to obtain the physical address of the designated device and the access key contained in the access request if an access request sent by a designated device is received; the processing unit 1506 is configured to verify the access request according to the association relationship, the physical address of the designated device, and the access key contained in the access request.
[0142] In some embodiments of the present application, based on the aforementioned scheme, the processing unit 1506 is configured to: if it is determined according to the association relationship that the physical address of the designated device is associated with the access key included in the access request, then determine that the access request is successfully authenticated.
[0143] In some embodiments of the present application, based on the aforementioned solution, the processing unit 1506 is configured to: if the physical address of the designated device does not exist in the association relationship, reject the access request.
[0144] Fig.16 A block diagram of a network connection management device according to an embodiment of the present application is shown, and the network connection management device can be set in a site device.
[0145] Reference Fig.16 As shown, according to an embodiment of the present application, a network connection management device 1600 includes: a reporting unit 1602 , a second receiving unit 1604 , a third generating unit 1606 and a second sending unit 1608 .
[0146] Among them, 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 the designated access point device if a connection trigger operation is received, and the access request includes the access key; the second sending unit 1608 is configured to send the access request to the designated access point device, so that the designated access point device verifies the access request based on the association relationship between the physical address and the access key, and the association relationship is generated according to the access key corresponding to the physical address of each device to be accessed.
[0147] In some embodiments of the present application, based on the aforementioned 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.
[0148] In some embodiments of the present application, based on the aforementioned scheme, the network connection management device 1600 also includes: a determination unit, configured to display a graphical user interface, on which a network connection trigger control is displayed, and if a trigger operation on the network connection trigger control is detected, it is determined that a connection trigger operation is received.
[0149] Fig.17 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0150] It should be noted that Fig.17 The computer system 1700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0151] like Fig.17As shown, the computer system 1700 includes a central processing unit (CPU) 1701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1702 or the program loaded from the storage part 1708 to the random access memory (RAM) 1703, such as executing the method described in the above embodiment. In RAM 1703, various programs and data required for system operation are also stored. CPU 1701, ROM 1702 and RAM 1703 are connected to each other through bus 1704. Input / output (I / O) interface 1705 is also connected to bus 1704.
[0152] The following components are connected to the I / O interface 1705: an input section 1706 including a keyboard, a mouse, etc.; an output section 1707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, 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, a modem, etc. The communication section 1709 performs communication processing via a network such as the Internet. A drive 1710 is also connected to the I / O interface 1705 as needed. A removable medium 1711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1710 as needed so that a computer program read therefrom is installed into the storage section 1708 as needed.
[0153] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1709, and / or installed from a removable medium 1711. When the computer program is executed by a central processing unit (CPU) 1701, various functions defined in the system of the present application are executed.
[0154] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0155] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0156] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0157] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0158] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0159] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0160] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0161] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A network connection management method, It is characterized in that The network connection management method is executed by an access point management platform, the access point management platform is connected to an access point device, and the network connection management method includes: Receiving physical addresses of multiple devices to be connected sent by an application server, where the physical addresses of the multiple devices to be connected are reported to the application server by application clients running on the multiple devices to be connected; Generate access keys corresponding to the physical addresses of the plurality of devices to be accessed respectively; Generate an association relationship between the physical addresses and the access keys according to the access keys respectively corresponding to the physical addresses of the plurality of devices to be accessed; The association relationship is sent to the application server and the access point device, so that the application server distributes corresponding access keys to the multiple devices to be connected respectively, and the access point device verifies the access request initiated by the device to be connected based on the access key based on the association relationship.
2. The network connection management method according to claim 1, It is characterized in that Generate access keys corresponding to the physical addresses of the devices to be connected, including: An access key is generated according to the physical address of each device to be accessed, wherein the access keys generated for the physical addresses of different devices to be accessed are different.
3. A network connection management method, It is characterized in that The network connection management method is executed by an access point device, the access point device is connected to an access point management platform, and the network connection management method includes: 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 according to the access keys corresponding to the physical addresses of multiple devices to be accessed sent by the application server, wherein the physical addresses of the multiple devices to be accessed are reported to the application server by application clients running on the multiple devices to be accessed; If an access request sent by a designated device is received, obtaining a physical address of the designated device and an access key included in the access request; The access request is verified according to the association relationship, the physical address of the designated device, and the access key included in the access request.
4. The network connection management method according to claim 3, It is characterized in that Verifying the access request according to the association relationship, the physical address of the designated device, and the access key included in the access request includes: If it is determined according to the association relationship that the physical address of the designated device is associated with the access key included in the access request, it is determined that the access request is successfully authenticated.
5. The network connection management method according to claim 3 or 4, It is characterized in that Verifying the access request according to 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 designated device does not exist in the association relationship, the access request is rejected.
6. A network connection management method, It is characterized in that The network connection management method is executed by a site device, and the network connection management method includes: Reporting the physical address of the site device to the application server through the application client running on the site device; Receiving an access key corresponding to the physical address pushed by the application server, wherein the access key is determined by the application server according to an association relationship between the physical address sent by the access point management platform and the access key, wherein the association relationship is generated by the access point management platform according to the physical addresses of multiple devices to be accessed sent by the application server; If a connection trigger operation is received, generating an access request for a designated access point device, wherein the access request includes the access key; The access request is sent to the designated access point device, so that the designated access point device verifies the access request based on the association relationship between the physical address sent by the access point management platform and the access key.
7. The network connection management method according to claim 6, It is 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. The network connection management method according to claim 6 or 7, It is characterized in that The network connection management method further includes: Displaying a graphical user interface, wherein a network connection trigger control is displayed on the graphical user interface; If a trigger operation on the network connection trigger control is detected, it is determined that a connection trigger operation is received.
9. A network connection management device, It is characterized in that The network connection management device is applied to an access point management platform, the access point management platform is connected to an access point device, and the network connection management device includes: A first acquisition unit is configured to receive physical addresses of multiple devices to be connected sent by an application server, where the physical addresses of the multiple devices to be connected are reported to the application server by application clients running on the multiple devices to be connected; A first generating unit, configured to generate access keys corresponding to the physical addresses of the plurality of devices to be accessed; A second generating unit is configured to generate an association relationship between the physical address and the access key according to the access keys respectively 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 corresponding access keys to the multiple devices to be connected respectively, and the access point device verifies the access request initiated by the device to be connected based on the access key based on the association relationship.
10. A network connection management device, It is characterized in that The network connection management device is applied to an access point device, the access point device is connected to an access point management platform, and the network connection management device includes: A first receiving unit is 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 according to the access keys corresponding to the physical addresses of multiple devices to be accessed sent by the application server, and the physical addresses of the multiple devices to be accessed are reported to the application server by application clients running on the multiple devices to be accessed; A second acquisition unit, configured to, if receiving an access request sent by a designated device, acquire a physical address of the designated device and an access key included in the access request; The processing unit is configured to verify the access request according to the association relationship, the physical address of the designated device, and the access key included in the access request.
11. A network connection management device, It is characterized in that The network connection management device is applied to a site device, and the network connection management device includes: A reporting unit, configured to report the physical address of the site device to the application server through the application client running on the site device; a second receiving unit, configured to receive an access key corresponding to the physical address pushed by the application server, wherein the access key is determined by the application server according to an association relationship between the physical address sent by the access point management platform and the access key, wherein the association relationship is generated by the access point management platform according to the physical addresses of multiple devices to be accessed sent by the application server; A third generating unit is configured to generate an access request for a designated access point device if a connection triggering operation is received, wherein the access request includes 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 verifies the access request based on the association relationship between the physical address sent by the access point management platform and the access key.
12. A computer readable medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the network connection management method according to any one of claims 1 to 8 is implemented.
13. An electronic device, It is characterized in that include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the network connection management method as described in any one of claims 1 to 8.
14. A computer program product, It is characterized in that The computer program product includes a computer program, which is stored in a computer-readable storage medium. A processor of an electronic device reads and executes the computer program from the computer-readable storage medium, so that the electronic device executes the network connection management method according to any one of claims 1 to 8.
Citation Information
Cited By
Equipment association access management method and system for smart home
CN121284674A
A smart home device association access management method and system
CN121284674B
