WO2021259184A1 - 一种设备连接方法及相关设备 - Google Patents
一种设备连接方法及相关设备 Download PDFInfo
- Publication number
- WO2021259184A1 WO2021259184A1 PCT/CN2021/101165 CN2021101165W WO2021259184A1 WO 2021259184 A1 WO2021259184 A1 WO 2021259184A1 CN 2021101165 W CN2021101165 W CN 2021101165W WO 2021259184 A1 WO2021259184 A1 WO 2021259184A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- wireless access
- access device
- configuration information
- connection
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/19—Connection re-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/08—Access security
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/04—Key management, e.g. using generic bootstrapping architecture [GBA]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/20—Manipulation of established connections
- H04W76/25—Maintenance of established connections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W92/00—Interfaces specially adapted for wireless communication networks
- H04W92/04—Interfaces between hierarchically different network devices
- H04W92/14—Interfaces between hierarchically different network devices between access point controllers and backbone network device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W92/00—Interfaces specially adapted for wireless communication networks
- H04W92/16—Interfaces between hierarchically similar devices
- H04W92/20—Interfaces between hierarchically similar devices between access points
Definitions
- This application relates to the field of communication technology, and in particular to a device connection method and related devices.
- WLAN Wireless Local Area Networks, wireless local area network
- AP access point
- the upstream root AP device is connected to the server by wire; the downstream AP device is connected to the root AP device wirelessly, and then indirectly connected to the server through the root AP device.
- a cloud management platform is deployed on the server for unified management of AP devices in the mesh network.
- users can send configuration information to AP devices in the mesh network through the cloud management platform to periodically modify the password of the AP device or adjust the channel of the AP device.
- the cloud management platform cannot deliver the configuration information to the AP device, and the AP device has not been able to restore the connection with the root AP device, causing the AP device to be out of control.
- the AP device is usually arranged for maintenance personnel to go to the site of the disconnected device and log in to the disconnected device through the serial port to change the configuration information of the disconnected device to ensure that the disconnected device restores its network connection.
- this method of restoring the network connection of disconnected devices often requires higher labor costs.
- This application provides a device connection method and related devices. After the first wireless access device is disconnected from the second wireless access device, the first wireless access device can use the pre-stored first configuration information and the first wireless access device. 2. The wireless access device establishes a connection, so that the first wireless access device can receive notification messages from the server through the connection established with the second wireless access device, thereby ensuring that the first wireless access device can use the notification message The normal connection between the second configuration information and the second wireless access device is restored, without the need for manual restoration of the connection, and the cost is low.
- the first aspect of the present application provides a device connection method, including: after the first wireless access device obtains that the connection between it and the second wireless access device is disconnected, according to the connection between the first wireless access device and the second wireless access device When the connection is disconnected, the first wireless access device uses the stored first configuration information to establish a connection with the second wireless access device; the first wireless access device establishes a connection with the second wireless access device through In the connection, a first notification message is received from the server; the first wireless access device uses second configuration information to re-establish a connection with the second wireless access device according to the instruction of the first notification message.
- connection established by the first wireless access device with the second wireless access device using the first configuration information may be a temporary connection, and the connection established by the first wireless access device with the second wireless access device using the second configuration information It can be a valid long connection.
- the first configuration information in the first wireless access device may specifically be mesh configuration information.
- the mesh configuration information may include mesh-id, initial key, encryption method, authentication method, and minimum signal strength (link- One or more of rssi-threshold).
- the first wireless access device after the first wireless access device is disconnected from the second wireless access device, it resumes the connection with the second wireless access device according to the stored first configuration information, thereby giving the first wireless access
- the device provides a temporary connection channel with the server, so that the first wireless access device can receive the first notification message from the server and based on the first notification message, use the second configuration information to re-establish a valid connection with the second wireless access device. Connection, there is no need to manually restore the connection, and the cost is low.
- the first configuration information is preset by the first wireless access device, for example, preset by the first wireless access device when it leaves the factory.
- the first configuration information is obtained by the first wireless access device from the server through the second wireless access device before the connection with the second wireless access device is disconnected .
- the server may issue the first configuration information to the first wireless access device through the second wireless access device .
- the first wireless access device stores the first configuration information so that the stored first configuration can be used after the connection with the second wireless access device is disconnected
- the information resumes the connection with the second access device, and the connection may be a temporary connection.
- the first wireless access device uses second configuration information to re-establish a connection with the second wireless access device according to the first notification message, which may include:
- the first notification message includes the second configuration information
- the first wireless access device uses the second configuration information in the first notification message to re-establish with the second wireless access device connect.
- the second configuration issued by the server may carry second configuration information, so that the first wireless access device can establish a connection with the second wireless access device based on the second configuration information in the first notification message.
- the second configuration information is obtained by the first wireless access device from the server through the second wireless access device before the connection with the second wireless access device is disconnected
- the first wireless access device uses the received second configuration information to re-establish a connection with the second wireless access device according to the instruction of the first notification message.
- the re-establishing the connection may be, for example, that the first wireless access device first disconnects the connection established with the second wireless access device through the first configuration information, and then uses the second configuration information to re-establish with the second wireless access device Connection; it can also be that the first wireless access device uses the first configuration information to establish a connection with the second wireless access device while using the second configuration information to initiate a request or authentication to the second wireless access device, to This enables the first wireless access device to be adjusted to use the second configuration information to establish a connection with the second wireless access device in a state where the user is unaware, for example.
- the method further includes: before the first wireless access device receives the first notification message from the server, the first wireless access device communicates with the The connection established by the second wireless access device sends a first message to the server, where the first message is used to notify the server that the first wireless access device has received the second configuration information.
- the first wireless access device uses the second configuration information to re-establish a connection with the second wireless access device according to the instructions of the first notification message, which specifically includes: A wireless access device receives the first notification message from the server, and then the first wireless access device uses the received second configuration information and the first notification message according to the instructions of the first notification message. 2.
- the wireless access device re-establishes the connection.
- the first wireless access device uses the stored first configuration information to communicate with the second wireless access device.
- Establishing a connection with the incoming device includes: according to a preset period of time that the connection with the second wireless access device has been disconnected, the first wireless access device uses the stored first configuration information to communicate with the second wireless access device.
- the access device establishes a connection. That is, the first wireless access device may use the stored first configuration information and all the first configuration information after learning that the connection between it and the second wireless access device has been disconnected for a preset period of time.
- the second wireless access device establishes a connection.
- the first wireless access device uses the stored first configuration information to communicate with the second wireless access device.
- Establishing a connection with an incoming device includes: according to disconnection with multiple wireless access devices including the second wireless access device, the first wireless access device uses the stored first configuration information Establish a connection with the second wireless access device.
- the first wireless access device may try to establish a connection with the foregoing multiple wireless access devices, and the first wireless access device may connect to the foregoing wireless access devices.
- the first wireless access device tries to use the stored first configuration information to establish a connection with the second wireless access device.
- the stability and flexibility of the network system operation can be improved, and on the other hand, the first wireless access device can be prevented from disconnecting due to the failure of the second wireless access device itself.
- the stored first configuration information is directly used to try to establish a connection with the second wireless access device, resulting in a connection failure.
- the method before the first wireless access device receives the first notification message from the server through the connection established with the second wireless access device, the method further The method includes: the first wireless access device sends a second message to the server through the connection established with the second wireless access device, and the second message is used to notify the server of the first
- the wireless access device uses the first configuration information to establish a connection with the second wireless access device. That is, after the first wireless access device uses the first configuration information to establish a connection with the second wireless access device, the first wireless access device may notify the server that it uses the first configuration information and the second wireless access device.
- the wireless access device establishes a connection so that the server can deliver the first notification message to it.
- a second aspect of the present application provides a device connection method, including: a server determines that a first wireless access device uses first configuration information to establish a connection with a second wireless access device, and the first configuration information is the first wireless access device. Used when the access device is disconnected from the second wireless access device; the server sends the connection to the first wireless access device through the connection between the first wireless access device and the second wireless access device The wireless access device sends a first notification message, where the first notification message is used to instruct the first wireless access device to use the second configuration information to re-establish a connection with the second wireless access device.
- the first configuration information is preset by the first wireless access device; or, the first configuration information is the connection between the first wireless access device and the Before the connection of the second wireless access device is disconnected, sent by the server to the first wireless access device through the second wireless access device.
- the first notification message includes the second configuration information
- the first notification message is used to instruct the first wireless access device to use the first configuration information.
- the second configuration information in the notification message re-establishes the connection with the second wireless access device; or, before the connection between the first wireless access device and the second wireless access device is disconnected ,
- the server sends the second configuration information to the first wireless access device through the second wireless access device; the first notification message is used to instruct the first wireless access device to use the received
- the method further includes: before the server sends the first notification message to the first wireless access device, the server receives the first wireless access device A first message sent through the connection established with the second wireless access device, where the first message is used to notify the server that the first wireless access device has received the second configuration information; The server sends a first notification message to the first wireless access device, where the first notification message is used to instruct the first wireless access device to use the received second configuration information to communicate with the second wireless access device.
- the connected device re-establishes the connection.
- the method further includes: before the server sends the first notification message to the first wireless access device, the server receives a second message, and the second The message is used to notify the server that the first wireless access device uses the first configuration information to establish a connection with the second wireless access device.
- the second message may be sent by the first wireless access device to the server, and the second message may also be sent by the second wireless access device to the server, which is not specifically limited here.
- the method further includes: the server determines that the third wireless access device uses third configuration information to establish a connection with the second wireless access device, and the third configuration information It is used when the third wireless access device is disconnected from the second wireless access device; the server according to the network topology of the first wireless access device and the third wireless access device Is determined to send the first notification message to the first wireless access device.
- the third wireless access device may be connected to the second wireless access device through the first wireless access device, and only the first wireless access device establishes a connection with the second wireless access device, and the third wireless access device In order to establish a connection with the second wireless access device.
- the server may determine to first send the first notification message to the first wireless access device according to the network topology, so as to ensure that after the first wireless access device re-establishes the connection with the second wireless device using the second configuration information , And then send to the third wireless access device a notification message for re-establishing a connection with the second wireless access device, so as to prevent the third wireless access device from being affected by the difference between the first wireless access device and the second wireless access device.
- the connection cannot be normally connected and the connection is dropped, and the third configuration information is repeatedly used to try to connect temporarily due to the connection being dropped.
- the third wireless access device is connected to the second wireless access device through the first wireless access device; After the first wireless access device sends the first notification message, the method further includes: the server re-establishes a connection with the second wireless access device according to the first wireless access device, or the server After sending the first notification message for a preset duration, send a second notification message to the third wireless access device, where the second notification message is used to instruct the third wireless access device to use the fourth configuration information Re-establish a connection with the second wireless access device.
- the server may send the second notification message to the third wireless access device after determining that the first wireless access device has successfully established a connection with the second wireless access device; the server may also be sending the second notification message to the first wireless access device.
- the wireless access device delivers the first notification message for a preset period of time, it then delivers the second notification message to the third wireless access device, that is, waits for a period of time before delivering the second notification message, so as to facilitate the first wireless access device Re-establish a connection with the second wireless access device based on the first notification message.
- the method further includes: the server determines, according to the received third message, that the third wireless access device uses the third configuration information with the second wireless access device To establish a connection, the third configuration information is used by the third wireless access device when disconnecting from the second wireless access device; the server determines that the third wireless access device uses a fourth wireless access device The configuration information cannot re-establish a connection with the second wireless access device, and the server generates alarm information.
- the server determining that the third wireless access device cannot re-establish a connection with the second wireless access device using the fourth configuration information includes: the server according to The distance between the third wireless access device and the second wireless access device and the third configuration information determine the signal between the third wireless access device and the second wireless access device Strength; the server determines that the third wireless access device cannot re-establish a connection with the second wireless access device according to the fourth configuration information based on the signal strength being less than the first threshold.
- the server can obtain the location information of the third access device and the second wireless access device, and can calculate the distance between the two based on the location information of the two.
- the server calculates based on the antenna gain, bandwidth, transmission power and other parameters in the second configuration information and the above distance, after the third wireless access device and the second wireless access device establish a connection using the above second configuration information, the two The signal strength between. If the calculated signal strength is less than the preset first threshold, it can be considered that the second wireless access device cannot establish a stable and effective connection with the third wireless access device, that is, the server can determine that the third wireless access device is based on the second The configuration information cannot re-establish a connection with the second wireless access device.
- the server determining that the third wireless access device cannot re-establish a connection with the second wireless access device using fourth configuration information includes: the server determining The number of times the third wireless access device establishes a connection with the second wireless access device according to the third configuration information; the server determines the third wireless access device according to the number of times greater than a second threshold The connection with the second wireless access device cannot be re-established according to the fourth configuration information.
- a third aspect of the present application provides a device connection method, including: a second wireless access device determines, according to stored information, that the first wireless access device is allowed to establish a connection using first configuration information, where the first configuration information is the Used when the first wireless access device is disconnected from the second wireless access device; the second wireless access device uses the connection to forward the first wireless access device sent by the server to the first wireless access device Notification message; the second wireless access device receives second configuration information from the first wireless access device, and allows the first wireless access device to re-establish a connection according to the second configuration information.
- the storage information includes a first key
- the first configuration information includes a second key
- the second wireless access device determines to allow the The first wireless access device uses the first configuration information to establish a connection, including: the second wireless access device determines that the first wireless access device is allowed according to the first key and the second key match The connection is established using the first configuration information.
- the method before the second wireless access device uses the connection to forward the first notification message sent by the server to the first wireless access device, the method further includes : The second wireless access device sends a second message to the server through the connection, and the second message is used to notify the server that the first wireless access device uses the first configuration information and The second wireless access device establishes a connection.
- the first configuration information is preset by the first wireless access device, for example, preset by the first wireless access device when it leaves the factory.
- the first configuration information is obtained by the first wireless access device from the server through the second wireless access device before the connection with the second wireless access device is disconnected .
- a fourth aspect of the present application provides a network device, including: a transceiver unit and a processing unit; the processing unit is configured to use the stored The first configuration information establishes a connection with the second wireless access device; the transceiving unit is configured to receive the first wireless access device from the server through the connection established with the second wireless access device A first notification message; the processing unit is configured to use the second configuration information for the first wireless access device to re-establish a connection with the second wireless access device according to the first notification message.
- the first configuration information is preset by the first wireless access device; or, the first configuration information is related to the second wireless access device Before the connection between the two is disconnected, the first wireless access device obtains it from the server through the second wireless access device.
- the first notification message includes the second configuration information
- the processing unit is configured to use the second configuration information in the first notification message , Re-establish a connection with the second wireless access device; or, the second configuration information is that before the connection with the second wireless access device is disconnected, the first wireless access device passes all
- the second wireless access device is obtained from the server, and the processing unit is configured to use the second configuration information to re-establish with the second wireless access device according to the instruction of the first notification message connect.
- the transceiving unit before the first wireless access device receives the first notification message from the server, the transceiving unit is configured to communicate with the second wireless access device through The connection sends a first message to the server, where the first message is used to notify the server that the first wireless access device has received the second configuration information; and the first message is received from the server A notification message, where the processing unit is configured to use the received second configuration information to re-establish a connection with the second wireless access device according to an indication of the first notification message.
- the processing unit is configured to use the stored first configuration information and The second wireless access device establishes a connection.
- the processing unit is configured to use the stored The first configuration information establishes a connection with the second wireless access device.
- the transceiving unit is configured to send a second message to the server through the connection established with the second wireless access device, and the second message is used Informing the server that the first wireless access device uses the first configuration information to establish a connection with the second wireless access device.
- a fifth aspect of the present application provides a server, including: a transceiver unit and a processing unit; the processing unit is configured to determine that a first wireless access device uses first configuration information to establish a connection with a second wireless access device, and the first wireless access device A piece of configuration information is used by the first wireless access device when disconnecting from the second wireless access device; the transceiver unit is configured to send the first wireless access device to the first wireless access device through the connection Send a first notification message, where the first notification message is used to instruct the first wireless access device to use the second configuration information to re-establish a connection with the second wireless access device.
- the first configuration information is preset by the first wireless access device; or, the first configuration information is the connection between the first wireless access device and the Before the connection of the second wireless access device is disconnected, sent by the server to the first wireless access device through the second wireless access device.
- the first notification message includes the second configuration information
- the first notification message is used to instruct the first wireless access device to use the first configuration information.
- the second configuration information in the notification message re-establishes the connection with the second wireless access device; or, before the connection between the first wireless access device and the second wireless access device is disconnected ,
- the transceiving unit is used to send the second configuration information to the first wireless access device through the second wireless access device; the first notification message is used to instruct the first wireless access device Re-establish a connection with the second wireless access device using the received second configuration information.
- the transceiving unit before the transceiving unit sends the first notification message to the first wireless access device, the transceiving unit is configured to receive the first wireless access device through and A first message sent by the connection established by the second wireless access device, where the first message is used to notify the server that the first wireless access device has received the second configuration information;
- the first wireless access device sends a first notification message, where the first notification message is used to instruct the first wireless access device to use the received second configuration information to re-establish with the second wireless access device connect.
- the transceiving unit is configured to before the first notification message is sent to the first wireless access device, the server receives a second message, and the second message is used Informing the server that the first wireless access device uses the first configuration information to establish a connection with the second wireless access device.
- the processing unit is configured to determine that the third wireless access device uses third configuration information to establish a connection with the second wireless access device, and the third configuration information is The third wireless access device is used when disconnecting from the second wireless access device; according to the positions of the first wireless access device and the third wireless access device in the network topology, determine Sending the first notification message to the first wireless access device.
- the third wireless access device is connected to the second wireless access device through the first wireless access device; and the transceiver unit is connected through the connection After sending the first notification message to the first wireless access device, the transceiving unit is further configured to re-establish a connection according to the first wireless access device and the second wireless access device, or send the After the first notification message has a preset duration, a second notification message is sent to the third wireless access device, where the second notification message is used to instruct the third wireless access device to use the fourth configuration information with the first 2.
- the wireless access device re-establishes the connection.
- the processing unit is configured to determine, according to the received third message, that the third wireless access device uses third configuration information to establish a connection with the second wireless access device,
- the third configuration information is used when the third wireless access device is disconnected from the second wireless access device; it is determined that the third wireless access device cannot communicate with the third wireless access device using the fourth configuration information.
- the second wireless access device re-establishes the connection, and the server generates alarm information.
- the processing unit is configured to determine the distance between the third wireless access device and the second wireless access device and the third configuration information.
- the second wireless access device re-establishes the connection.
- the processing unit determines the number of times that the third wireless access device establishes a connection with the second wireless access device according to the third configuration information; the processing The unit determines that the third wireless access device cannot re-establish a connection with the second wireless access device according to the fourth configuration information according to the number of times being greater than the second threshold.
- a sixth aspect of the present application provides a network device, including: a transceiver unit and a processing unit; the processing unit is configured to determine according to stored information that the first wireless access device is allowed to establish a connection using first configuration information, and the first The configuration information is used when the first wireless access device is disconnected from the second wireless access device; the transceiving unit is configured to use the connection to send to the first wireless access device forwarding server The first notification message; the transceiver unit is used to receive second configuration information from the first wireless access device, and allow the first wireless access device to re-establish a connection according to the second configuration information.
- the storage information includes a first key
- the first configuration information includes a second key
- the transceiving unit before the transceiving unit uses the connection to forward the first notification message sent by the server to the first wireless access device, the transceiving unit is further configured to pass the The connection sends a second message to the server, where the second message is used to notify the server that the first wireless access device uses the first configuration information to establish a connection with the second wireless access device .
- a seventh aspect of the present application provides a network device.
- the network device includes: a processor and a memory; the memory is used to store instructions; Any method.
- An eighth aspect of the present application provides a network device.
- the network device includes a processor; the processor is coupled to a memory, and the processor is configured to execute instructions in the memory, so that the network device executes the aforementioned first aspect or third aspect.
- a ninth aspect of the present application provides a server, which includes: a processor and a memory; the memory is used to store instructions; the processor is used to execute instructions in the memory, so that the server executes the method of any one of the foregoing second aspects.
- a tenth aspect of the present application provides a server, which includes: a processor; the processor is coupled to a memory, and the processor is configured to execute instructions in the memory, so that the server executes the method of any one of the foregoing second aspects .
- the eleventh aspect of the present application provides a computer storage medium, which may be non-volatile; the computer storage medium stores computer readable instructions, and when the computer readable instructions are executed by a processor, the first Aspect to the method in any design of the third aspect.
- the twelfth aspect of the present application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the method in any one of the first to third aspects.
- a thirteenth aspect of the present application provides a chip system including a processor for supporting network devices to implement the functions involved in the above aspects, for example, sending or processing data and/or information involved in the above methods.
- the chip system also includes a memory, and the memory is used to store the necessary program instructions and data of the network device.
- the chip system can be composed of chips, and can also include chips and other discrete devices.
- This application provides a device connection method and related devices. After the first wireless access device is disconnected from the second wireless access device, the first wireless access device can use the pre-stored first configuration information and the first wireless access device. 2. The wireless access device establishes a connection, so that the first wireless access device can receive notification messages from the server through the connection established with the second wireless access device, thereby ensuring that the first wireless access device can use the notification message.
- the normal connection between the second configuration information and the second wireless access device is restored without manual restoration of the connection, the cost is low, and the overall operating efficiency and flexibility of the wireless network system are improved.
- FIG. 1 is a schematic diagram of a mesh network provided by an embodiment of this application.
- FIG. 2 is a schematic flowchart of a device connection method 200 provided by an embodiment of this application;
- FIG. 3 is a schematic diagram of interaction for restoring device connection provided by an embodiment of this application.
- FIG. 4 is a schematic diagram of interaction for restoring device connection provided by an embodiment of this application.
- FIG. 5 is a schematic diagram of interaction for restoring device connection provided by an embodiment of this application.
- FIG. 6 is a schematic diagram of a multi-level connection mesh network provided by an embodiment of the application.
- FIG. 7 is a schematic diagram of a process for restoring a connection of a wireless access device according to an embodiment of the application.
- FIG. 8 is a schematic structural diagram of a network device/server 800 provided by an embodiment of this application.
- the naming or numbering of steps appearing in this application does not mean that the steps in the method flow must be executed in the time/logical order indicated by the naming or numbering.
- the named or numbered process steps can be implemented according to the The technical purpose changes the execution order, as long as the same or similar technical effects can be achieved.
- the division of units presented in this application is a logical division. In actual applications, there can be other divisions. For example, multiple units can be combined or integrated in another system, or some features can be ignored , Or not to execute, in addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, and the indirect coupling or communication connection between the units may be in electrical or other similar forms. There are no restrictions in the application.
- the units or subunits described as separate components may or may not be physically separate, may or may not be physical units, or may be distributed to multiple circuit units, and some or all of them may be selected according to actual needs. Unit to achieve the purpose of this application program.
- Mesh network is a "wireless mesh network", a multi-hop network, and one of the key technologies to solve the "last mile" problem.
- wireless is an indispensable technology.
- the Mesh network can communicate with other networks and is a network architecture that can be continuously expanded. Any two devices can be connected wirelessly. Relying on the characteristics of multi-hop interconnection and mesh topology, Mesh network has evolved into an effective solution for multiple wireless access networks such as broadband home networks, community networks, enterprise networks, and metropolitan area networks.
- the upstream root AP device is connected to the server by wire; the downstream AP device is connected to the root AP device wirelessly, and then indirectly connected to the server through the root AP device.
- a cloud management platform is deployed on the server for unified management of AP devices in the mesh network.
- the upstream root AP device can be connected to the server through a wired connection, it can also be connected to the downstream AP device through wireless, so the root AP device can be considered as an AP device that connects a mesh network and a non-mesh network, and the root AP device can also be It is called a mesh node gateway (mesh portal point, MPP).
- MPP mesh portal point
- the downstream AP devices can be collectively referred to as mesh points (MP).
- users can send configuration information to the MPP and MP in the mesh network through the cloud management platform on the server to periodically modify the passwords of the MPP and MP or adjust the channels of the MPP and MP.
- the cloud management platform on the server to periodically modify the passwords of the MPP and MP or adjust the channels of the MPP and MP.
- the MPP updates the configuration information first, but the MP does not receive the configuration information in time
- the connection between the MPP and the MP will be disconnected due to inconsistent configurations.
- the MPP updates the new key or channel
- the MP continues to use the old key or channel because it has not received the new configuration information
- the MP cannot communicate with MPP establishes a connection. In this way, because the connection between MPP and MP has been disconnected, the cloud management platform cannot deliver the configuration information to the MP, and the MP has not been able to restore the connection with the MPP, resulting in the MPP being out of control.
- the embodiments of the present application provide a device connection method and a network device.
- the MP can use the pre-stored first configuration information to establish a connection with the MPP, so that the MP can use it.
- the connection established with the MPP receives a notification message from the server, thereby ensuring that the MP can use the second configuration information to restore the normal connection with the MPP according to the notification message, without the need for manual connection recovery, lower cost, and faster connection repair speed.
- the mesh network includes MPP, MP1, and MP2, where MPP is connected to the server by wire, and MP1 and MP2 are connected to the MPP wirelessly, thereby indirectly connected to the server.
- a cloud management platform is deployed on the server, and the cloud management platform can deliver new configuration information to MPP, MP1, and MP2.
- the cloud management platform has issued new configuration information to MPP, MP1, and MP2, and only MPP and MP2 are successfully received, the connection between MPP and MP1 is disconnected because the configuration information between MPP and MP1 is inconsistent.
- the MP1 can use the stored first configuration information to establish a connection with the MPP.
- the wireless network system allows the MP1 to directly use the first configuration information to establish a long-term connection with the MPP.
- the first configuration information is used to establish a temporary connection between MP1 and MPP, so that MP1 can receive notification messages from the server through the connection; MP1 uses the second configuration according to the instructions of the notification message Information and MPP re-establish the connection; the second configuration information is the latest configuration information, MP1 can use the second configuration information to restore the normal connection with MPP, such as MP1 using the key in the second configuration information to restore the high connection between MPP and MPP. Safe and highly reliable connection.
- the device connection method provided in the embodiments of the present application can also be applied to other application scenarios, such as wireless distribution systems (Wireless Distribution System, WDS) and other scenarios where the above-mentioned problems may exist.
- WDS Wireless Distribution System
- the scenarios applied in the application embodiments are uniquely limited.
- the first wireless access device described below may be an MP in the mesh network
- the second wireless access device may be an MPP in the mesh network.
- the first wireless access device and the second wireless access device may also be corresponding devices in the network system.
- the first wireless access device and the second wireless access device are not specifically limited.
- FIG. 2 is a schematic flowchart of a device connection method 200 according to an embodiment of the application.
- the method 200 is executed by the first wireless access device.
- the device connection method 200 provided by the embodiment of the present application includes:
- the first wireless access device uses the stored first configuration information to establish a connection with the second wireless access device.
- the first wireless access device may use the stored first configuration information to establish a connection with the second wireless access device after acquiring that the connection between it and the second wireless access device is disconnected.
- the first wireless access device may use the first configuration information to establish a connection with the second wireless access device after learning that the connection between it and the second wireless access device is disconnected;
- the access device can also learn that the connection between it and the second wireless access device has been disconnected for a preset period of time, and the first wireless access device tries to establish a connection with the second wireless access device using the first configuration information. .
- the first wireless access device may specifically be disconnected from multiple wireless access devices including the second wireless access device, using stored The first configuration information establishes a connection with the second wireless access device.
- the first wireless access device may try to establish a connection with the foregoing multiple wireless access devices, and the first wireless access device
- the connection with the foregoing multiple wireless access devices cannot be established, that is, when the connection between the first wireless access device and the foregoing multiple wireless access devices including the second wireless access device is disconnected
- the first wireless access device may try to use the stored first configuration information to establish a connection with the second wireless access device.
- the stability and flexibility of the network system operation can be improved, and on the other hand, the first wireless access device can be prevented from disconnecting due to the failure of the second wireless access device itself.
- the stored first configuration information is directly used to try to establish a connection with the second wireless access device, resulting in a connection failure.
- the MP uses the original configuration information to try to establish a connection with the other MPPs.
- the MP uses the first configuration information to establish a connection with one of the MPPs.
- the first wireless access device can obtain the information about the disconnection between the first wireless access device and the second wireless access device in a variety of ways.
- the first wireless access device can detect the connection between the first wireless access device and the second wireless access device in real time or periodically, so that the first wireless access device and the second wireless access device can be connected between the first wireless access device and the second wireless access device. After the connection between the two is broken, it is detected that the connection between the two is broken.
- the first wireless access device may determine whether it is with the second wireless access device by detecting whether the heartbeat has timed out.
- the connection between the two wireless access devices is disconnected; for example, if the second wireless access device sends a heartbeat message to the first wireless access device at regular intervals (such as ten seconds), if the first wireless access device If the device has not received the heartbeat message after the time interval since the last time it received the heartbeat message, the first wireless access device may consider that the connection with the second wireless access device has been disconnected.
- the first wireless access device may learn that the connection between the first wireless access device and the second wireless access device is disconnected by acquiring information sent by other devices.
- a device for monitoring the connection status between wireless access devices may be provided, and the device monitors that the connection between the first wireless access device and the second wireless access device is disconnected. After being turned on, the device may send a notification message to the first wireless access device to inform the first wireless access device that the connection between it and the second wireless access device has been disconnected.
- the first configuration information may be preset by the first wireless access device.
- the first configuration information may be preset on the first wireless access device when the first wireless access device leaves the factory. Access to the device.
- the first configuration information may also be that the first wireless access device passes through the second wireless access device before the connection between the first wireless access device and the second wireless access device is disconnected.
- the wireless access device is obtained from the server. For example, when the first wireless access device and the second wireless access device are still connected, the server may issue the first configuration information to the first wireless access device through the second wireless access device .
- the first wireless access device After receiving the first configuration information, the first wireless access device stores the first configuration information so that the stored first configuration can be used after the connection with the second wireless access device is disconnected The information resumes the connection with the second access device. It is understandable that, in the case that the first wireless access device is preset with the first configuration information, the first wireless access device may also receive new configuration information issued by the server to replace the preset first configuration information.
- the first wireless access device may also perform the following operations through the method 200.
- the first wireless access device receives a first notification message from the server through the connection established with the second wireless access device.
- the server may learn that the first wireless access device uses the first configuration information to communicate with the second wireless access device.
- the access device establishes a connection. Based on this, the server can deliver a first notification message to the first wireless access device through the second wireless access device, and the first notification message is used to notify the first wireless access device to use the second configuration
- the information establishes a connection with the second wireless access device.
- the server can learn that the first wireless access device uses the first configuration information to establish a connection with the second wireless access device in multiple ways.
- the first wireless access device may pass through the second wireless access device.
- the wireless access device sends a second message to the server, where the second message is used to indicate that the first wireless access device establishes a connection with the second wireless access device based on the first configuration information. That is, according to the second message actively reported by the first wireless access device, the server can learn that the first wireless access device uses the first configuration information to successfully establish a connection with the second wireless access device of.
- the second wireless access device actively Report to the server the information about establishing a connection with the first wireless access device, and inform the server that the first wireless access device uses the first configuration information to establish a connection with it.
- the server may also learn that the first wireless access device successfully established a connection with the second wireless access device using the first configuration information .
- the first wireless access device uses second configuration information to re-establish a connection with the second wireless access device according to the first notification message.
- the first wireless access device After receiving the first notification message, uses the second configuration information to re-establish a connection with the second wireless access device according to the instruction of the first notification message.
- the re-establishing the connection may be, for example, that the first wireless access device first disconnects the connection established with the second wireless access device through the first configuration information, and then uses the second configuration information to re-establish with the second wireless access device Connection; it can also be that the first wireless access device uses the first configuration information to establish a connection with the second wireless access device while using the second configuration information to initiate a request or authentication to the second wireless access device, to This enables the first wireless access device to be adjusted to use the second configuration information to establish a connection with the second wireless access device in a state where the user is unaware, for example.
- the second configuration information may be carried in the first notification message, and the first wireless access device communicates with the second wireless access device according to the second configuration information in the first notification message.
- the device re-establishes the connection; the second configuration information may also be that the first wireless access device passes all the devices before the connection between the first wireless access device and the second wireless access device is disconnected.
- the second wireless access device is obtained from the server.
- the server sends a message to the first wireless access device and the second wireless access device respectively.
- the second wireless access device delivers second configuration information.
- the first wireless access device and the second wireless access device did not successfully establish a connection using the second configuration information, which caused the second wireless access device and the second wireless access device to disconnect. Open the connection.
- the reason for the disconnection between the first wireless access device and the second wireless access device is that the first wireless access device did not receive the latest configuration information (ie, the second wireless access device).
- Configuration information the first wireless access device using the original configuration information cannot establish a connection with the second wireless access device using the second configuration information. Therefore, the server may carry the second configuration information in the first notification message sent to the first wireless access device, so that the first wireless access device can reconfigure based on the second configuration information in the first notification message. Establish a connection with the second wireless access device.
- the server reports to the first wireless access device and The second wireless access device issues second configuration information.
- the server succeeds in delivering the second configuration information to the first wireless access device, but the server fails to deliver the second configuration information to the second wireless access device.
- the reason for the disconnection between the first wireless access device and the second wireless access device is that the second wireless access device did not receive the second configuration information, and the first wireless access device did not receive the second configuration information.
- a wireless access device using the second configuration information cannot establish a connection with the second wireless access device using the original configuration information.
- the server may send the second configuration information to the second wireless access device again by, for example, a wired manner, and then send the second configuration information to the first wireless access device.
- the access device sends the first notification message.
- the first notification message does not carry the second configuration information, and is only used to notify the first wireless access device to re-use the second configuration information with the second wireless access device establish connection.
- the first wireless access device and all the The second wireless access device may, after successfully receiving the newly issued second configuration information, notify the server that it has successfully received the second configuration information. That is, the server may obtain the message that the second wireless access device has successfully received the second configuration information fed back by the second wireless access device, but cannot obtain the message that the first wireless access device has successfully received the second configuration information, To determine that the second wireless access device has received the second configuration information and the first wireless access device has not received the second configuration information. Therefore, the server may carry the second configuration information in the first notification message sent to the first wireless access device.
- the server may obtain the message of successfully receiving the second configuration information fed back by the first wireless access device, but not the message of successfully receiving the second configuration information fed back by the second wireless access device. It is determined that the first wireless access device has received the second configuration information and the second wireless access device has not received the second configuration information. At this time, the first notification message sent by the server to the first wireless access device does not need to carry the second configuration information.
- the server delivers the second configuration information to the first wireless access device and the second wireless access device, but the first wireless access device and the second wireless access device There can be many reasons why the device fails to connect.
- the time when the server delivers the second configuration information to the first wireless access device and the second wireless access device is inconsistent, resulting in the first wireless access device and the second wireless access device.
- the device receives the second configuration information and the time when the second configuration information becomes effective is inconsistent.
- the server first delivers the second configuration information to the first wireless access device, and then after a period of time (for example, after the heartbeat timeout period between the first wireless access device and the second wireless access device is exceeded)
- the second configuration information is delivered to the second wireless access device, or although the server sends the second configuration information in time, the information did not reach the second wireless access device within the heartbeat time due to network problems;
- the first wireless access device of the second configuration information cannot establish a connection with the second wireless access device that still uses the original configuration information, that is, the connection between the first wireless access device and the second wireless access device is disconnected.
- the server first issued the second configuration information to the second wireless access device, and before the second configuration information on the second wireless access device became effective, the second configuration information was still not issued to the first wireless access device. In this way, because the first wireless access device does not receive the second configuration information, the first wireless access device is also unable to establish a connection with the second wireless access device.
- the server delivers the second configuration information to the first wireless access device or the second access device It may also fail.
- the first wireless access device and the second wireless access device usually have a function of regularly backing up data. If the server sends the second configuration information to the first wireless access device during the data backup period of the first wireless access device, the server downloads the second configuration information to the first wireless access device because the first wireless access device is busy. Sending the second configuration information may fail.
- network packet loss occurs during the server sending the second configuration information to the first wireless access device or the second wireless access device, it may also cause the server to issue the second configuration.
- the message failed.
- the packet carrying the second configuration information is lost, and the first wireless access device cannot correctly identify the packet carrying the second configuration information.
- the second configuration information is not successfully delivered to the first wireless access device, that is, the server fails to deliver the second configuration information to the first wireless access device.
- the second configuration information issued by the server when the second configuration information issued by the server conflicts with other configurations of the first wireless access device or the second wireless access device, it may also cause the second configuration information to fail to be displayed on the first wireless access device or the second wireless access device. Take effect on the connected device.
- the server delivers the second configuration information, the first wireless access device and the second wireless access device fail to establish a connection.
- the first wireless access device may use pre-stored first configuration information to establish a connection with the second wireless access device,
- the connection may be temporary, so that the first wireless access device can receive the notification message from the server through the connection established with the second wireless access device, thereby ensuring that the first wireless access device can use the first wireless access device according to the notification message. 2.
- the normal connection between the configuration information and the second wireless access device is restored, without the need for manual restoration of the connection, and the cost is low.
- the first wireless access device stores first configuration information
- the second wireless access device stores information that can be used to determine whether to allow the establishment of a connection with the first wireless access device using the first configuration information.
- the first configuration information in the first wireless access device may specifically be mesh configuration information
- the mesh configuration information may include mesh-id, initial key, encryption method, authentication method, and minimum signal to support the establishment of a connection One or more of the strength (link-rssi-threshold).
- mesh-id is the ID of the mesh network, which is used for mutual discovery and connection establishment between the first wireless access device and the second wireless access device; the initial key can specifically be a pairwise master key (pairwise master key).
- the PMK can be used to generate a key for the final encrypted data message;
- the encryption method is the encryption method when the first wireless access device sends the data message;
- the authentication method is the first wireless access device receives the other The authentication method for data packets sent by wireless access devices.
- the information stored in the second wireless access device may include the aforementioned mesh configuration information and radio frequency configuration information.
- the mesh configuration information stored in the second wireless access device is the same as the mesh configuration information stored in the first wireless access device, and the radio frequency configuration information stored in the second wireless access device may specifically include channel, bandwidth, and One or more of the transmission power.
- the first wireless access device can obtain the radio frequency configuration information of the second wireless access device by scanning the surrounding signal information, that is, obtain the first wireless access device's radio frequency configuration information. 2. Channel, bandwidth and transmission power of wireless access equipment. Then the first wireless access device negotiates with the second wireless access device based on the stored mesh configuration information. When the mesh configuration information in the first wireless access device is the same as the mesh configuration information in the second wireless access device, the first wireless access device negotiates with the second wireless access device successfully, and the second wireless access device The device determines that it may be allowed to establish a connection with the first wireless access device using the first configuration information. At this time, the first wireless access device uses the first configuration information to successfully establish a connection with the second wireless access device.
- the storage information in the second wireless access device includes the first key
- the first configuration information stored by the first wireless access device includes the second key.
- the first wireless access device sends the second key to the second wireless access device.
- the second wireless access device determines that the first wireless access device is allowed to use the first configuration information to establish a connection according to the matching of the aforementioned first key and the second key.
- the connection established by the first wireless access device with the second wireless access device using the first configuration information may be a temporary connection, and the first wireless access device and the second wireless access device
- the established temporary connection is used by the first wireless access device to obtain the first notification message from the server, so that the first wireless access device can use the second configuration information to establish a connection with the second wireless access device. That is to say, for the first wireless access device and the second wireless access device, the connection established by using the second configuration information newly issued by the server is a secure long connection, while the connection established by using the first configuration information
- the connection is a temporary connection.
- the purpose of using the first configuration information to establish a connection is to give the first wireless access device a temporary channel for communication and connection with the server, so that the first wireless access device can receive the first notification message from the server and communicate with the server based on the first notification message.
- the second wireless access device resumes the normal long connection.
- the first wireless access device uses the first configuration information After establishing a connection with the second wireless access device for a certain period of time, the connection between the first wireless access device and the second wireless access device can be forcibly terminated.
- the first wireless access device, the second wireless access device, or the server may initiate the operation of forcibly interrupting the connection between the first wireless access device and the second wireless access device.
- the first wireless access device uses the first configuration information to establish a connection with the second wireless access device
- the first wireless access device detects that the duration of the connection establishment has exceeded 2 minutes
- the first wireless access device The access device can terminate the connection with the second wireless access device.
- the second wireless access device detects that the time period for establishing a connection with the first wireless access device exceeds 2 minutes, and then the second wireless access device forcibly interrupts the communication with the first wireless access device. The connection between.
- the server detects that the connection between the first wireless access device and the second wireless access device has been established for more than 2 minutes, and then the server sends a message to the first wireless access device and/or the second wireless access device To instruct the first wireless access device and/or the second wireless access device to forcibly terminate the connection.
- the length of time that the first wireless access device can maintain a connection with the second wireless access device using the first configuration information can be determined according to the actual situation, for example, it can be the aforementioned 2 minutes or 30 seconds. Or 5 minutes, etc., this embodiment does not specifically limit the aforementioned duration.
- the first wireless access device may still be unable to The first notification message was successfully received, which resulted in the first wireless access device being unable to communicate with the second wireless access device based on the second configuration information after the connection between the first wireless access device and the second wireless access device was interrupted. establish connection.
- the first wireless access device may be reused after a certain period of time has elapsed.
- the first configuration information establishes a connection with the second wireless access device.
- the first wireless access device uses the first configuration information to establish a connection with the second wireless access device, and the first wireless access device forcibly terminates the connection after the connection is maintained for 2 minutes. If before the connection is forcibly terminated, the first wireless access device still does not receive the first notification message issued by the server, or the first wireless access device still cannot re-establish with the second wireless access device using the second configuration information Connect, the first wireless access device may use the first configuration information to establish a connection with the second wireless access device again after an interval of 1 minute.
- the interval duration during which it initiates reconnection using the first configuration information can be continuously extended as the number of reconnections increases, and the interval duration reaches a certain threshold before returning to the initial duration.
- the first wireless access device uses the first configuration information to access the second wireless access device again after an interval of 1 minute.
- the device establishes a connection; after the first wireless access device forcibly terminates the connection with the second wireless access device for the second time, the first wireless access device uses the first configuration information to connect to the second wireless access device again after an interval of 2 minutes.
- the device establishes a connection.
- the time interval for each reconnection initiated by the first wireless access device increases as the number of reconnections increases, and returns to 1 minute after the interval time reaches 8 minutes.
- the interval length of each reconnection initiated by the first wireless access device may specifically be: 1 minute, 2 minutes, 4 minutes, 8 minutes, 1 minute, 2 minutes..., and so on.
- the above mainly describes the process of the first wireless access device resuming the connection with the second wireless access device from the perspective of the first wireless access device.
- the following will combine the first wireless access device and the second wireless access device.
- the interaction process between the wireless access device and the server describes in detail the process of the first wireless access device resuming the connection with the second wireless access device.
- FIG. 3 is a schematic diagram of interaction for restoring device connection provided by an embodiment of this application.
- the first wireless access device in FIG. 3 is, for example, an MP
- the second wireless access device is, for example, an MPP.
- a possible process for the first wireless access device to restore the connection with the second wireless access device includes:
- the first wireless access device and the second wireless access device store configuration information 1.
- the configuration information 1 stored by the first wireless access device and the second wireless access device may be preset when the device leaves the factory, or may be issued by the server.
- the configuration information 1 may be, for example, the first configuration information in the foregoing method, which is used to establish a temporary connection between the first wireless access device and the second wireless access device. For details, refer to the foregoing description of the first configuration information.
- the first wireless access device uses the configuration information 2 to maintain a connection with the second wireless access device.
- the first wireless access device uses the configuration information 2 to maintain a normal long connection with the second wireless access device.
- the server delivers configuration information 3 to the second wireless access device, and the delivery is successful.
- the server may issue new configuration information to the first wireless access device and the second wireless access device.
- the server delivers configuration information 3 to the second wireless access device, and the configuration information 3 is successfully delivered to the second wireless access device.
- the configuration information 3 may be, for example, the second configuration information in the foregoing method. For details, reference may be made to the foregoing description of the second configuration information.
- the server delivers configuration information 3 to the first wireless access device, and the delivery fails.
- the server also delivers configuration information 3 to the first wireless access device, and the delivery of configuration information 3 fails.
- the reason for the failure of the delivery may be, for example, that the configuration information 3 delivered by the server to the first wireless access device has lost packets, causing the first wireless access device to not receive the configuration information 3 normally, or the server is in the first wireless access device.
- the configuration information 3 is issued, causing the configuration information 3 to fail to take effect in the first wireless access device within the required time.
- the configuration information of the devices on both sides is inconsistent and disconnected within a certain period of time; or; or wait.
- the first wireless access device Since the second wireless access device successfully received the configuration information 3, but the first wireless access device did not receive the configuration information 3, the first wireless access device continued to use the original configuration information 2 while the second wireless access device continued to use the original configuration information 2.
- the device uses configuration information 3.
- the configuration information between the first wireless access device and the second wireless access device is inconsistent, so the connection between the first wireless access device and the second wireless access device is disconnected.
- the first wireless access device obtains information about the disconnection of the connection with the second wireless access device.
- the first wireless access device can autonomously detect the connection state between the first wireless access device and the second wireless access device , To obtain information about the disconnection between it and the second wireless access device; the second wireless access device can also obtain information from other monitoring devices to know the connection between it and the second wireless access device The line is disconnected.
- the first wireless access device uses the configuration information 1 to establish a connection with the second wireless access device.
- the first wireless access device may use the stored configuration information 1 to establish a connection with the second wireless access device. Since the configuration information 1 is also stored in the second wireless access device, the first wireless access device can successfully establish a connection with the second wireless access device based on the configuration information 1.
- the first wireless access device sends a message to the server to notify the server that the first wireless access device uses the configuration information 1 to establish a connection with the second wireless access device.
- the first wireless access device After the first wireless access device establishes a connection with the second wireless access device, the first wireless access device goes online again and can be registered on the cloud management platform of the server. At the same time, in order for the server to learn that the first wireless access device uses the configuration information 1 to establish a connection with the second wireless access device, the first wireless access device may send a message to the server, and the message is used to notify the server of the first wireless access device.
- the incoming device uses the configuration information 1 to establish a connection with the second wireless access device.
- the message may be, for example, the second message in the foregoing embodiment.
- the second wireless access device may also notify the server.
- the second wireless access device may also notify the server.
- the second wireless access device after the second wireless access device establishes a connection with the first wireless access device, it actively reports to the server the information that it has established a connection with the first wireless access device, and informs the server of the first wireless access device.
- the device uses the first configuration information to establish a connection with it.
- the server delivers a notification message 1, and the notification message 1 carries configuration information 3.
- the server After the server learns that the first wireless access device is established with the second wireless access device based on the configuration information 1, the server can send the notification message 1 to the first wireless access device through the second wireless access device, the notification message 1 Carrying configuration information 3.
- the second wireless access device may report a feedback message to the server to feedback that it has successfully received the configuration information 3.
- the server learns that the first wireless access device is established with the second wireless access device based on the configuration information 1, it can determine that the first wireless access device is not successful based on the second wireless access device having successfully received the configuration information 3.
- Receive configuration information 3. the server may issue a notification message 1 to the first wireless access device, and the notification message 1 carries configuration information 3 to instruct the first wireless access device to use the configuration information 3 in the notification message 1 to communicate with the second wireless access device.
- Incoming device establishes a connection.
- the notification message 1 is successfully delivered, and the first wireless access device uses the configuration information 3 to establish a connection with the second wireless access device.
- the first wireless access device can use the configuration information 3 in the notification message 1 to re-establish a connection with the second wireless access device.
- the first wireless access device or the second wireless access device may forcibly terminate the connection between the two. After the connection between the first wireless access device and the second wireless access device is interrupted, the first wireless access device may repeat the above steps 306 to 309 until the notification message 1 is successfully delivered.
- FIG. 4 is a schematic diagram of interaction for restoring device connection provided by an embodiment of this application.
- the first wireless access device in FIG. 4 is, for example, an MP
- the second wireless access device is, for example, an MPP.
- another possible process for the first wireless access device to restore the connection with the second wireless access device includes:
- the first wireless access device and the second wireless access device store configuration information 1.
- the first wireless access device uses the configuration information 2 to maintain a connection with the second wireless access device.
- Steps 401-402 are similar to the above-mentioned steps 301-302. For details, please refer to the above-mentioned steps 301-302, which will not be repeated here.
- the server delivers configuration information 3 to the second wireless access device, and the delivery fails.
- the server delivers configuration information 3 to the first wireless access device, and the delivery is successful.
- the first wireless access device successfully receives the configuration information 3, but the second wireless access device does not receive the configuration information 3.
- the first wireless access device reports to the server that the configuration information 3 has been successfully received.
- the first wireless access device may feed back to the server that it has successfully received the configuration information 3.
- the second wireless access device continued to use the original configuration information 2 while the first wireless access device continued to use the original configuration information 2.
- the device uses configuration information 3.
- the configuration information between the first wireless access device and the second wireless access device is inconsistent, so the connection between the first wireless access device and the second wireless access device is disconnected.
- the first wireless access device obtains information about the disconnection of the connection with the second wireless access device.
- the first wireless access device uses the configuration information 1 to establish a connection with the second wireless access device.
- the first wireless access device sends a message to the server to notify the server that the first wireless access device uses the configuration information 1 to establish a connection with the second wireless access device.
- Steps 407-409 are similar to the above-mentioned steps 306-308. For details, please refer to the above-mentioned steps 306-308, which will not be repeated here.
- the server delivers configuration information 3 to the second wireless access device.
- the server After the server learns that the first wireless access device uses configuration information 1 to establish a connection with the second wireless access device, the server can determine whether it has not been successful according to the successful configuration information 3 fed back by the first wireless access device The configuration information 3 is delivered to the second wireless access device. Therefore, the server can continue to deliver the configuration information 3 to the second wireless access device.
- the server issues a notification message 2, which instructs the first wireless access device to use the configuration information 3 to establish a connection with the second wireless access device.
- the server learns that the first wireless access device is established with the second wireless access device based on the configuration information 1, it can determine that the second wireless access device is not successful based on the first wireless access device having successfully received the configuration information 3. Receive configuration information 3. Therefore, the server can first re-issue the configuration information 3 to the second wireless access device, and then issue the notification message 2 to the first wireless access device.
- the notification message 2 indicates that the first wireless access device can use the received
- the configuration information 3 establishes a connection with the second wireless access device. That is, in the case that the first wireless access device has received the configuration information 3, the server may not need to send the configuration information 3 to the first wireless access device, thereby saving signaling resources.
- the server may also deliver a notification message carrying the configuration information 3 to the first wireless access device.
- the first wireless access device can directly establish a connection with the second wireless access device according to the configuration information 3 in the notification message.
- the notification message 2 is successfully delivered, and the first wireless access device uses the configuration information 3 to establish a connection with the second wireless access device.
- Figures 4 and 5 above take the configuration information 1-3 acquired by the first wireless access device and the second wireless access device as an example. It is understandable that in other possible situations, the first wireless access device and The configuration information 1-3 obtained by the second wireless access device may also be different, but different pairing configuration information can be used for matching.
- the first wireless access device stores configuration information 1
- the second wireless access device stores configuration information 1'. Configuration information 1 and configuration information 1'are different, but the two devices can use this Configuration information 1 and configuration information 1'are temporarily connected.
- the configuration information 1 includes the key 1, and the configuration information 1'includes the key 2, and the pairing between the key 1 and the key 2 can be authenticated, so that the second wireless access device allows the A wireless access device makes a temporary connection.
- FIG. 5 is a schematic diagram of interaction for restoring device connection provided by an embodiment of this application.
- the second wireless access device is connected to the server by wire, and the third wireless access device is wirelessly connected to the second wireless access device.
- the second wireless access device is, for example, an MPP
- the third wireless access device is, for example, an MP.
- a possible process for the third wireless access device to restore the connection with the second wireless access device includes:
- the third wireless access device and the second wireless access device store configuration information 4.
- the third wireless access device uses the configuration information 5 to maintain a connection with the second wireless access device.
- the server delivers configuration information 6 to the second wireless access device, and the delivery is successful.
- the server delivers configuration information 6 to the third wireless access device, and the delivery fails.
- the third wireless access device obtains information about the disconnection of the connection with the second wireless access device.
- the third wireless access device uses the configuration information 4 to establish a connection with the second wireless access device.
- the third wireless access device sends a message to the server to notify the server that the third wireless access device uses the configuration information 4 to establish a connection with the second wireless access device.
- steps 501-508 are similar to the aforementioned steps 301-308, and for details, please refer to the aforementioned steps 301-308, which will not be repeated here.
- the server determines that the third wireless access device cannot re-establish a connection with the second wireless access device using the configuration information 6.
- the server may base on the configuration information 6, the second wireless access device and the third wireless access device To determine whether the third wireless access device uses the configuration information 6 to re-establish a connection with the second wireless access device.
- the location information of the second wireless access device and the third wireless access device may be entered into the server, for example, the second wireless access device and the third wireless access device may be specifically The coordinate information of is entered into the server, so that the server can calculate the distance between the third wireless access device and the second wireless access device based on the second wireless access device and the position information of the third wireless access device.
- the configuration information 6 may include parameters such as antenna gain, bandwidth, and transmission power. The server is based on the distance between the third wireless access device and the second wireless access device and the antenna gain and frequency in the configuration information 6.
- Parameters such as width and transmission power can be calculated to obtain the signal strength between the second wireless access device and the third wireless access device after the second wireless access device establishes a connection with the third wireless access device based on the configuration information 6. If the calculated signal strength is less than the preset first threshold, it can be considered that the second wireless access device cannot establish a stable and effective connection with the third wireless access device, that is, the server can determine that the third wireless access device is based on the configuration information 6 The connection with the second wireless access device cannot be re-established.
- the first threshold may specifically be the lowest signal strength value at which the wireless access device can establish a stable connection.
- the server generates alarm information.
- the server may no longer issue configuration information 6 to the third wireless access device, but instead generates alarm information to remind Operation and maintenance personnel adjust configuration information 6.
- the server may also determine the third wireless access device through other methods. Whether the wireless access device uses the configuration information 6 to re-establish a connection with the second wireless access device.
- the server may send a notification message to the third wireless access device to instruct the third wireless access device to use the configuration information 6 to connect to the second wireless access device.
- the third wireless access device disconnects the connection established with the third wireless access device using configuration information 5, and tries to establish a connection with the second wireless access device using configuration information 6 connect. Since the third wireless access device cannot establish a connection with the second wireless access device using the configuration information 6, therefore, when the third wireless access device cannot establish a connection with the second wireless access device using the configuration information 6, the first Third, the wireless access device continues to use the configuration information 4 to connect with the second wireless access device, and notify the server.
- the third wireless access device uses the configuration information 4 to frequently establish a connection with the second wireless access device.
- the server can determine that the third wireless access device uses the configuration information 4 to establish a connection with the second wireless access device according to the message sent every time the third wireless access device uses the configuration information 4 to establish a connection with the second wireless access device The number of times. If the third wireless access device frequently uses the configuration information 4 to establish a connection with the second wireless access device, that is, the number of times the third wireless access device uses the third configuration information to establish a connection with the second wireless access device If there is too much, the server may consider that the third wireless access device cannot re-establish a connection with the second wireless access device using the configuration information 6.
- the server may determine the third wireless access device by determining whether the number of times the third wireless access device uses the third configuration information to establish a connection with the second wireless access device is greater than a preset second threshold. Using the configuration information 6, whether the connection with the second wireless access device can be re-established. If the number of times is greater than the preset second threshold, it can be determined that the third wireless access device cannot re-establish a connection with the second wireless access device using the configuration information 6.
- the second threshold may be determined according to actual conditions. For example, the second threshold may be 3 or 5. This embodiment does not specifically limit the value of the second threshold.
- the above describes in detail the process of how the first wireless access device or the third wireless access device restores the connection in a scenario where the first wireless access device or the third wireless access device is directly connected to the second wireless access device.
- a multi-level connection scenario that is, there may be one or more other MPs connected between the MPP and a certain MP.
- FIG. 6 is a schematic diagram of a multi-level connection mesh network provided by an embodiment of the application.
- the server is directly connected to the MPP through a wired connection
- the MPP is connected to the MP1 through a wireless connection
- the MP1 is also connected to the MP2 through a wireless connection.
- MP2 is not directly connected to MPP, but indirectly connected to MPP through MP1.
- the connection between MP1 and MPP is disconnected, the connection between MP2 and MPP is also disconnected, and neither MP1 nor MP2 can communicate with the server.
- the prerequisite for establishing a connection between MP2 and MPP is that there is a connection between MP1 and MPP.
- FIG. 7 is a schematic diagram of a process of restoring a connection of a wireless access device according to an embodiment of the application.
- the second wireless access device may be, for example, the MPP shown in FIG. 6
- the first wireless access device may be, for example, MP1 shown in FIG. 6
- the third wireless access device may be, for example, FIG. MP2 shown in.
- a possible process for the first wireless access device and the third wireless access device to resume the connection with the second wireless access device includes:
- the first wireless access device, the second wireless access device, and the third wireless access device store configuration information 7.
- the pre-stored configuration information in the first wireless access device, the second wireless access device, and the third wireless access device may be the same, that is, the first wireless access device
- the same set of configuration information may be used to establish temporary connections with the second wireless access device and the third wireless access device respectively.
- the first wireless access device uses the configuration information 8 to maintain a connection with the second wireless access device, and the first wireless access device also uses the configuration information 8 to maintain a connection with the third wireless access device.
- the wireless access devices in the mesh network may also use the same configuration information to maintain the connection between each other.
- the server delivers configuration information 9 to the second wireless access device, and the delivery is successful.
- the server delivers configuration information 9 to the first wireless access device, and the delivery fails.
- the server delivers configuration information 9 to the third wireless access device, and the delivery fails.
- the server may respectively issue new configuration information (that is, configuration information 9) to the wireless access devices in the network.
- the server respectively delivers configuration information 9 to the first wireless access device, the second wireless access device, and the third wireless access device, and only the second wireless access device successfully delivers the configuration information.
- the second wireless access device may send a feedback message to the server to report to the server that the configuration information 9 has been successfully received.
- the second wireless access device Since the second wireless access device successfully receives the configuration information 9, the second wireless access device uses the configuration information 9 to establish a connection with other wireless access devices. However, the configuration information 9 is not successfully delivered to the first wireless access device, so the first wireless access device can only continue to use the configuration information 8 at this time.
- the configuration information used between the first wireless access device and the second wireless access device is inconsistent, so the connection between the first wireless access device and the second wireless access device is disconnected. Similarly, the connection between the third wireless access device and the second wireless access device is also disconnected.
- the configuration information 8 and 9 delivered by the server to the first wireless access device and the third wireless access device are the same.
- the configuration information that the server sends to the first wireless access device and the third wireless access device for establishing a secure connection may also be different.
- the server sends the first wireless access device to the first wireless access device.
- the configuration information 9 is delivered, and in step 705, the server delivers the configuration information 9'to the third wireless access device.
- the first wireless access device uses the configuration information 7 to establish a connection with the second wireless access device
- the third wireless access device uses the configuration information 7 to establish a connection with the first wireless access device.
- the first wireless access device After the first wireless access device learns that the connection between it and the second wireless access device is disconnected, the first wireless access device can use the stored configuration information 7 to establish a connection with the second wireless access device. Similarly, after the third wireless access device learns that the connection between it and the second wireless access device is disconnected, the third wireless access device also uses the stored configuration information 7 to establish a connection with the second wireless access device.
- the first wireless access device sends a message to the server to notify the server that the first wireless access device uses the configuration information 7 to establish a connection with the second wireless access device.
- the first wireless access device uses the configuration information 7 to establish a connection with the second wireless access device
- the first wireless access device can re-register with the server through the second wireless access device, and send a message to the server to transfer it
- the information about establishing a connection with the second wireless access device using the configuration information 7 is notified to the server.
- the third wireless access device sends a message to the server to notify the server that the third wireless access device uses the configuration information 7 to establish a connection with the first wireless access device.
- the third wireless access device can re-register with the server through the first wireless access device and the second wireless access device. And send a message to the server to inform the server of the information that it uses the configuration information 7 to establish a connection with the first wireless access device.
- the server determines the order of sending notification messages according to the network topology.
- the server may determine that neither the first wireless access device nor the third wireless access device can establish a connection with the second wireless access device.
- the server can determine the connection relationship between the wireless access devices according to the network topology, thereby determining the processing sequence between the wireless access devices.
- the server may determine to send a notification message to the first wireless access device first, and then send the notification message to the third wireless access device, so that the first wireless access device resumes contact with the second wireless access device. After the connection between, the third wireless access device resumes the connection with the first wireless access device.
- the server can determine the connection relationship between the wireless access devices according to the network topology, thereby determining the wireless access device Processing order.
- the server delivers a notification message 3 to the first wireless access device.
- the notification message 3 carries configuration information 9 for instructing the first wireless access device to use the configuration information 9 to establish a connection with the second wireless access device.
- the first wireless access device uses the configuration information 9 to establish a connection with the second wireless access device.
- the first wireless access device can use the configuration information 9 in the notification message 3 to re-establish a connection with the second wireless access device.
- the server delivers a notification message 4 to the third wireless access device.
- the notification message 3 carries configuration information 9 for instructing the third wireless access device to use the configuration information 9 to establish a connection with the second wireless access device.
- the server may send the notification message 4 to the third wireless access device after determining that the first wireless access device uses the configuration information 9 to successfully establish a connection with the second wireless access device.
- the first wireless access device may feed back to the server its used configuration information 9 successfully and the second wireless access device.
- the server can learn that the first wireless access device has successfully established a connection with the second wireless access device using the configuration information 9 according to the feedback of the first wireless access device.
- the second wireless access device feeds back its used configuration information 9 to the server to successfully establish a connection with the first wireless access device, and then the server can also learn that the first wireless access device based on the feedback of the second wireless access device The access device has used the configuration information 9 to successfully establish a connection with the second wireless access device.
- the server may also deliver the notification message 4 to the third wireless access device after sending the notification message 3 to the first wireless access device for a preset duration.
- the server waits for 10 seconds, and then delivers the notification message 4 to the third wireless access device.
- the preset duration may be determined according to the network transmission delay and the time required for the wireless access device to re-establish a connection according to the new configuration information, and this embodiment does not specifically limit the preset duration.
- the third wireless access device uses the configuration information 9 to establish a connection with the first wireless access device.
- the third wireless access device can use the configuration information 9 in the notification message 4 to re-establish a connection with the first wireless access device.
- FIG. 8 is a schematic structural diagram of a network device/server 800 provided by an embodiment of this application.
- the network device/server 800 shown in FIG. 8 shows certain specific features, those skilled in the art will realize from the embodiments of the present application that, for the sake of brevity, FIG. 8 does not show various other features to avoid It confuses more relevant aspects of the implementation manner disclosed in the embodiments of the present application.
- the network device/server 800 includes one or more processing units (cpu) 801, a network interface 802, a programming interface 803, a memory 804, and one or more communication buses 805, used to interconnect various components.
- the network interface 802 is used to connect to one or more other network devices/servers in the network system, among other purposes.
- the communication bus 805 includes circuits that interconnect and control communication between system components.
- the memory 804 may include non-volatile memory, for example, read-only memory (ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM) , Electrically Erasable Programmable Read-Only Memory (EPROM, EEPROM) or flash memory.
- the memory 804 may also include a volatile memory, and the volatile memory may be a random access memory (RAM), which is used as an external cache.
- RAM random access memory
- the memory 804 or the non-transitory computer-readable storage medium of the memory 804 stores the following programs, modules, and data structures, or a subset thereof, specifically including an operating system 8041, a transceiver unit 8042, and a processing unit 8043.
- the operating system 8041 is used to process various basic system services and processes for performing hardware-related tasks.
- the network device 800 may include, for example, a transceiver unit 8042 and a processing unit 8043; the processing unit 8043 is configured to use the stored first wireless access device according to the disconnection with the second wireless access device A piece of configuration information establishes a connection with the second wireless access device; the transceiver unit 8042 is configured to receive the first wireless access device from the server through the connection established with the second wireless access device The first notification message; the processing unit 8043 is configured to use the second configuration information for the first wireless access device to re-establish a connection with the second wireless access device according to the first notification message.
- the first configuration information is preset by the first wireless access device; or, the first configuration information is related to the second wireless access device Before the connection between the two is disconnected, the first wireless access device obtains it from the server through the second wireless access device.
- the first notification message includes the second configuration information
- the processing unit 8043 is configured to use the second configuration in the first notification message Information, the connection with the second wireless access device is re-established; or, the second configuration information is that before the connection with the second wireless access device is disconnected, the first wireless access device passes The second wireless access device is obtained from the server, and the processing unit 8043 is configured to use the second configuration information with the second wireless access device according to the instruction of the first notification message Re-establish the connection.
- the transceiving unit 8042 before the first wireless access device receives the first notification message from the server, the transceiving unit 8042 is configured to establish communication with the second wireless access device The connection, sending a first message to the server, the first message being used to notify the server that the first wireless access device has received the second configuration information; receiving the second configuration information from the server A notification message, the processing unit 8043 is configured to use the received second configuration information to re-establish a connection with the second wireless access device according to the instruction of the first notification message.
- the processing unit 8043 is configured to use the stored first configuration information according to a preset period of time that the connection with the second wireless access device has been disconnected Establish a connection with the second wireless access device.
- the processing unit 8043 is configured to use storage The first configuration information of Establishes a connection with the second wireless access device.
- the transceiving unit 8042 is configured to send a second message to the server through the connection established with the second wireless access device, the second message Used to notify the server that the first wireless access device uses the first configuration information to establish a connection with the second wireless access device.
- the server 800 may include, for example, a transceiving unit 8042 and a processing unit 8043; the processing unit 8043 is configured to determine that the first wireless access device uses the first configuration information to establish a connection with the second wireless access device, and the first wireless access device uses the first configuration information to establish a connection with the second wireless access device.
- the configuration information is used when the first wireless access device is disconnected from the second wireless access device; the transceiving unit 8042 is configured to communicate to the first wireless access device through the connection Send a first notification message, where the first notification message is used to instruct the first wireless access device to use the second configuration information to re-establish a connection with the second wireless access device.
- the first configuration information is preset by the first wireless access device; or, the first configuration information is the connection between the first wireless access device and the Before the connection of the second wireless access device is disconnected, sent by the server to the first wireless access device through the second wireless access device.
- the first notification message includes the second configuration information
- the first notification message is used to instruct the first wireless access device to use the first configuration information.
- the second configuration information in the notification message re-establishes the connection with the second wireless access device; or, before the connection between the first wireless access device and the second wireless access device is disconnected
- the transceiving unit 8042 is configured to send the second configuration information to the first wireless access device through the second wireless access device; the first notification message is used to instruct the first wireless access device
- the device uses the received second configuration information to re-establish a connection with the second wireless access device.
- the transceiving unit 8042 before the transceiving unit 8042 sends the first notification message to the first wireless access device, the transceiving unit 8042 is configured to receive the first wireless access device A first message sent through the connection established with the second wireless access device, where the first message is used to notify the server that the first wireless access device has received the second configuration information; The first wireless access device sends a first notification message, where the first notification message is used to instruct the first wireless access device to use the received second configuration information and the second wireless access device Re-establish the connection.
- the transceiver unit 8042 is configured to receive a second message by the server before sending the first notification message to the first wireless access device. Used to notify the server that the first wireless access device uses the first configuration information to establish a connection with the second wireless access device.
- the processing unit 8043 is configured to determine that the third wireless access device uses third configuration information to establish a connection with the second wireless access device, where the third configuration information is Used when the third wireless access device is disconnected from the second wireless access device; according to the positions of the first wireless access device and the third wireless access device in the network topology, Determining to send the first notification message to the first wireless access device.
- the third wireless access device is connected to the second wireless access device through the first wireless access device; in the transceiving unit 8042 through the After the connection sends the first notification message to the first wireless access device, the transceiving unit 8042 is further configured to re-establish a connection according to the first wireless access device and the second wireless access device, or after sending After the first notification message has a preset duration, a second notification message is sent to the third wireless access device, where the second notification message is used to instruct the third wireless access device to use the fourth configuration information to communicate with the third wireless access device.
- the second wireless access device re-establishes the connection.
- the processing unit 8043 is configured to determine, according to the received third message, that the third wireless access device uses third configuration information to establish a connection with the second wireless access device ,
- the third configuration information is used when the third wireless access device is disconnected from the second wireless access device; it is determined that the third wireless access device cannot communicate with the third wireless access device using the fourth configuration information.
- the second wireless access device re-establishes the connection, and the server generates alarm information.
- the processing unit 8043 is configured to determine according to the distance between the third wireless access device and the second wireless access device and the second configuration information The signal strength between the third wireless access device and the second wireless access device; according to the signal strength being less than the first threshold, it is determined that the third wireless access device cannot be Re-establish a connection with the second wireless access device.
- the processing unit 8043 determines the number of times that the third wireless access device establishes a connection with the second wireless access device according to the third configuration information; The processing unit 8043 determines that the third wireless access device cannot re-establish a connection with the second wireless access device according to the fourth configuration information according to the number of times being greater than the second threshold.
- the network device 800 may include, for example, a transceiving unit 8042 and a processing unit 8043; the processing unit 8043 is configured to determine, according to stored information, that the first wireless access device is allowed to establish a connection using the first configuration information, and the first configuration The information is used when the first wireless access device is disconnected from the second wireless access device; the transceiver unit 8042 is used to send to the first wireless access device forwarding server using the connection The first notification message; the transceiver unit 8042 is configured to receive second configuration information from the first wireless access device, and allow the first wireless access device to re-establish a connection according to the second configuration information.
- the storage information includes a first key
- the first configuration information includes a second key
- the processing unit 8043 is configured to The second key matches, and it is determined that the first wireless access device is allowed to use the first configuration information to establish a connection.
- the transceiving unit 8042 before the transceiving unit 8042 uses the connection to forward the first notification message sent by the server to the first wireless access device, the transceiving unit 8042 is also configured to A second message is sent to the server through the connection, the second message is used to notify the server that the first wireless access device uses the first configuration information to establish a connection with the second wireless access device connected.
- the network device/server 800 is used to execute the device connection method provided by the embodiment of the present application, for example, execute the device connection method corresponding to the embodiment shown in FIG. 3, FIG. 4, FIG. 5, or FIG. 7 .
- FIG. 8 shows a possible implementation form of the transceiver unit 8042 and the processing unit 8043 in the network device/server 800.
- the transceiver unit 8042 and the processing unit 8043 may be software modules, hardware modules, or a combination of software/hardware modules.
- the function of the transceiver unit 8042 can be executed by the network interface 802 in the network device/server 800, and the function of the processing unit 8043 is executed by the processor in the network device/server 800 calling the program code in the memory. implement.
- one embodiment or “an embodiment” mentioned throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Therefore, the appearances of "in one embodiment” or “in an embodiment” in various places throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that, in the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not correspond to the embodiments of the present application. The implementation process constitutes any limitation.
- B corresponding to A means that B is associated with A, and B can be determined according to A.
- determining B based on A does not mean that B is determined only based on A, and B can also be determined based on A and/or other information.
- the disclosed system, device, and method may be implemented in other ways.
- the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
- the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device/server, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
- the computer program product includes one or more computer instructions.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
- the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
- the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server, or data center via wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
- wired such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)
- wireless such as infrared, wireless, microwave, etc.
- the computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a server or a data center integrated with one or more available media.
- the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
- the disclosed system, device, and method may be implemented in other ways.
- the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
- the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
一种设备连接方法及网络设备,该方法具体包括:根据与第二无线接入设备之间的连接断开,第一无线接入设备使用存储的第一配置信息与所述第二无线接入设备建立连接;所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接,从服务器接收第一通知消息;所述第一无线接入设备根据所述第一通知消息,使用第二配置信息与所述第二无线接入设备重新建立连接。第一无线接入设备可以通过使用第一配置信息与第二无线接入设备建立的连接,从服务器接收通知消息,从而保证第一无线接入设备能够根据通知消息来使用第二配置信息与第二无线接入设备重新恢复正常的连接,无需人为进行连接的恢复,成本较低。
Description
本申请要求于2020年6月23日提交中国专利局、申请号为202010578997.4、发明名称为“一种设备连接方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及通信技术领域,尤其涉及一种设备连接方法及相关设备。
在WLAN(Wireless Local Area Networks,无线局域网)中,网格(mesh)网络是一种新的WLAN类型。与传统WLAN所不同的是,mesh网络中的接入点(Access Point,AP)设备之间是无线连接的,且AP设备之间可以建立多跳无线路由。
在mesh网络中,上游的根AP设备通过有线与服务器连接;下游的AP设备则通过无线与根AP设备连接,再通过根AP设备间接连接到服务器。其中,服务器上部署有云管理平台,用于对mesh网络中的AP设备进行统一管理。
通常,用户可以通过云管理平台向mesh网络中的AP设备下发配置信息,来定期修改AP设备的密码或者是调整AP设备的信道。在配置信息的下发过程中,如果根AP设备先更新了配置信息,而其他的AP设备没有及时收到配置信息,则会导致根AP设备和AP设备之间由于配置不一致而断开连接。这样一来,云管理平台也无法将配置信息下发到AP设备上,AP设备一直不能与根AP设备恢复连接,从而导致AP设备脱管。
目前,在AP设备脱管之后,通常是安排维护人员前往脱管设备的现场,通过串口登录脱管设备来更改脱管设备的配置信息,以保证脱管设备恢复网络连接。在AP设备分布较广的情况下,这种恢复脱管设备网络连接的方式往往需要较高的人力成本。
发明内容
本申请提供了一种设备连接方法及相关设备,在第一无线接入设备与第二无线接入设备的连接断开之后,第一无线接入设备可以使用预先存储的第一配置信息与第二无线接入设备建立连接,以使得第一无线接入设备可以通过其与第二无线接入设备建立的连接,从服务器接收通知消息,从而保证第一无线接入设备能够根据通知消息来使用第二配置信息与第二无线接入设备重新恢复正常的连接,无需人为进行连接的恢复,成本较低。
本申请第一方面提供了一种设备连接方法,包括:第一无线接入设备在获取到其与第二无线接入设备之间的连接断开之后,根据与第二无线接入设备之间的连接断开,第一无线接入设备使用存储的第一配置信息与所述第二无线接入设备建立连接;所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接,从服务器接收第一通知消息;所述第一无线接入设备根据所述第一通知消息的指示,使用第二配置信息与所述第二无线接入设备重新建立连接。
其中,第一无线接入设备使用第一配置信息与第二无线接入设备所建立的连接可以是临时连接,第一无线接入设备使用第二配置信息与第二无线接入设备建立的连接则可以是 有效的长连接。第一无线接入设备中的第一配置信息具体可以为mesh配置信息,该mesh配置信息可以包括有mesh-id、初始密钥、加密方式、认证方式以及支持建联的最低信号强度(link-rssi-threshold)中的一种或多种。
本方案中,第一无线接入设备在与第二无线接入设备之间的连接断开之后,根据存储的第一配置信息与第二无线接入设备恢复连接,从而给第一无线接入设备提供了与服务器临时连接的通道,以使得第一无线接入设备能够从服务器接收到第一通知消息并且基于第一通知消息,使用第二配置信息与第二无线接入设备重新建立有效的连接,无需人为进行连接的恢复,成本较低。
可选地,在一种可能的实现方式中,所述第一配置信息为所述第一无线接入设备预置的,例如是第一无线接入设备出厂时预置的。或者,所述第一配置信息为所述与第二无线接入设备之间的连接断开之前,所述第一无线接入设备通过所述第二无线接入设备而从所述服务器获取的。例如,在所述第一无线接入设备与所述第二无线接入设备还建立有连接时,服务器可以通过第二无线接入设备向第一无线接入设备下发所述第一配置信息。第一无线接入设备在接收到所述第一配置信息之后,将所述第一配置信息进行存储,以便于在与第二无线接入设备的连接断开之后,能够采用存储的第一配置信息与第二接入设备恢复连接,所述连接可以是临时的连接。
可选地,在一种可能的实现方式中,所述第一无线接入设备根据所述第一通知消息,使用第二配置信息与所述第二无线接入设备重新建立连接,可以包括:所述第一通知消息中包括所述第二配置信息,所述第一无线接入设备使用所述第一通知消息中的所述第二配置信息,与所述第二无线接入设备重新建立连接。例如在第一无线接入设备与第二无线接入设备之间的连接断开之前,第一无线接入设备没有接收到服务器下发的第二配置信息,则在服务器下发的第二配置信息中可以携带有第二配置信息,以便于第一无线接入设备基于第一通知消息中的第二配置信息与第二无线接入设备建立连接。或者,所述第二配置信息为所述与第二无线接入设备之间的连接断开之前,所述第一无线接入设备通过所述第二无线接入设备而从所述服务器获取的,所述第一无线接入设备根据所述第一通知消息的指示,使用已接收的第二配置信息与所述第二无线接入设备重新建立连接。所述重新建立连接例如可以是第一无线接入设备先断开通过所述第一配置信息与第二无线接入设备建立的连接,然后使用第二配置信息再次与第二无线接入设备建立连接;也可以是第一无线接入设备在使用所述第一配置信息与第二无线接入设备建立连接的同时,使用第二配置信息向第二无线接入设备发起请求或认证等,以使得第一无线接入设备能够在诸如用户无感知的状态下,调整为使用所述第二配置信息与第二无线接入设备建立连接。
可选地,在一种可能的实现方式中,所述方法还包括:所述第一无线接入设备从服务器接收所述第一通知消息之前,所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接,向所述服务器发送第一消息,所述第一消息用于通知所述服务器所述第一无线接入设备已接收所述第二配置信息。在这种情况下,所述第一无线接入设备根据所述第一通知消息的指示,使用所述第二配置信息与所述第二无线接入设备重新建立连接,具体包括:所述第一无线接入设备从所述服务器接收所述第一通知消息,然后所述第一无线接 入设备根据所述第一通知消息的指示,使用已接收的所述第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述根据与第二无线接入设备之间的连接断开,第一无线接入设备使用存储的第一配置信息与所述第二无线接入设备建立连接包括:根据与所述第二无线接入设备之间的连接已断开预置时长,所述第一无线接入设备使用存储的所述第一配置信息与所述第二无线接入设备建立连接。也就是说,所述第一无线接入设备可以是在获知其与所述第二无线接入设备之间的连接已断开预置时长之后,再使用存储的所述第一配置信息与所述第二无线接入设备建立连接。
可选地,在一种可能的实现方式中,所述根据与第二无线接入设备之间的连接断开,第一无线接入设备使用存储的第一配置信息与所述第二无线接入设备建立连接,包括:根据与包括所述第二无线接入设备在内的多个无线接入设备之间的连接均断开,所述第一无线接入设备使用存储的第一配置信息与所述第二无线接入设备建立连接。例如,在网络中包括有多个与服务器直接连接的无线接入设备的情况下,第一无线接入设备可以尝试与前述多个无线接入设备建立连接,在第一无线接入设备与前述多个无线接入设备均无法建立连接时,第一无线接入设备再尝试使用存储的第一配置信息与所述第二无线接入设备建立连接。这样一来,一方面可以提升网络系统运行的稳定性和灵活性,另一方面也可以避免在由于第二无线接入设备本身发生故障而导致连接断开的情况下,第一无线接入设备直接使用存储的第一配置信息尝试与第二无线接入设备建立连接而导致连接失败。
可选地,在一种可能的实现方式中,所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接,从服务器接收第一通知消息之前,所述方法还包括:所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接,向所述服务器发送第二消息,所述第二消息用于通知所述服务器所述第一无线接入设备是使用所述第一配置信息与所述第二无线接入设备建立连接的。也就是说,在第一无线接入设备使用第一配置信息与第二无线接入设备建立连接之后,第一无线接入设备可以通知服务器其是使用所述第一配置信息与所述第二无线接入设备建立连接的,以便于服务器向其下发所述第一通知消息。
本申请第二方面提供一种设备连接方法,包括:服务器确定第一无线接入设备使用第一配置信息与第二无线接入设备建立连接,所述第一配置信息为所述第一无线接入设备在与所述第二无线接入设备断开连接时使用的;所述服务器通过所述第一无线接入设备与所述第二无线接入设备之间的连接,向所述第一无线接入设备发送第一通知消息,其中,所述第一通知消息用于指示所述第一无线接入设备使用第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述第一配置信息为所述第一无线接入设备预置的;或者,所述第一配置信息为所述第一无线接入设备与所述第二无线接入设备的连接断开之前,由所述服务器通过所述第二无线接入设备向所述第一无线接入设备发送的。
可选地,在一种可能的实现方式中,所述第一通知消息中包括所述第二配置信息,所述第一通知消息用于指示所述第一无线接入设备使用所述第一通知消息中的所述第二配置 信息与所述第二无线接入设备重新建立连接;或者,在所述第一无线接入设备与所述第二无线接入设备之间的连接断开之前,所述服务器通过所述第二无线接入设备向所述第一无线接入设备发送所述第二配置信息;所述第一通知消息用于指示所述第一无线接入设备使用已接收的所述第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述方法还包括:所述服务器向所述第一无线接入设备发送第一通知消息之前,所述服务器接收所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接发送的第一消息,所述第一消息用于通知所述服务器所述第一无线接入设备已接收所述第二配置信息;所述服务器向所述第一无线接入设备发送第一通知消息,所述第一通知消息用于指示所述第一无线接入设备使用已接收的所述第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述方法还包括:所述服务器向所述第一无线接入设备发送第一通知消息之前,所述服务器接收第二消息,所述第二消息用于通知所述服务器所述第一无线接入设备是使用所述第一配置信息与所述第二无线接入设备建立连接的。其中,该第二消息可以是第一无线接入设备向所述服务器发送的,该第二消息也可以是由第二无线接入设备向所述服务器发送的,在此不做具体限定。
可选地,在一种可能的实现方式中,所述方法还包括:所述服务器确定第三无线接入设备使用第三配置信息与第二无线接入设备建立连接,所述第三配置信息为所述第三无线接入设备在与所述第二无线接入设备断开连接时使用的;所述服务器根据所述第一无线接入设备和所述第三无线接入设备在网络拓扑中的位置,确定向所述第一无线接入设备发送所述第一通知消息。其中,第三无线接入设备可以是通过第一无线接入设备与第二无线接入设备连接的,只有第一无线接入设备与第二无线接入设备建立连接,第三无线接入设备才能与第二无线接入设备建立连接。因此,服务器可以根据网络拓扑确定先向所述第一无线接入设备发送所述第一通知消息,以保证在第一无线接入设备先使用第二配置信息与第二无线设备重新建立连接之后,再向第三无线接入设备发送用于重新与第二无线接入设备重新建立连接的通知消息,以避免第三无线接入设备因第一无线接入设备和第二无线接入设备之间无法正常连接而掉线,并由于掉线而反复使用第三配置信息尝试临时连接。
可选地,在一种可能的实现方式中,所述第三无线接入设备通过所述第一无线接入设备与所述第二无线接入设备连接;在所述服务器通过所述连接向所述第一无线接入设备发送第一通知消息之后,所述方法还包括:所述服务器根据所述第一无线接入设备与所述第二无线接入设备重新建立连接,或者所述服务器在发送所述第一通知消息预设时长之后,向所述第三无线接入设备发送第二通知消息,所述第二通知消息用于指示所述第三无线接入设备使用第四配置信息与所述第二无线接入设备重新建立连接。也就是说,服务器可以是在确定第一无线接入设备与第二无线接入设备成功建立连接之后,再向第三无线接入设备下发第二通知消息;服务器也可以是在向第一无线接入设备下发第一通知消息预设时长之后,再向第三无线接入设备下发第二通知消息,即等待一段时间再下发第二通知消息,以便于第一无线接入设备基于第一通知消息与第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述方法还包括:所述服务器根据接收的第三消 息,确定第三无线接入设备使用第三配置信息与所述第二无线接入设备建立连接,所述第三配置信息为所述第三无线接入设备在与所述第二无线接入设备断开连接时使用的;所述服务器确定所述第三无线接入设备使用第四配置信息无法与所述第二无线接入设备重新建立连接,所述服务器生成告警信息。
可选地,在一种可能的实现方式中,所述服务器确定所述第三无线接入设备使用第四配置信息无法与所述第二无线接入设备重新建立连接,包括:所述服务器根据所述第三无线接入设备与所述第二无线接入设备之间的距离以及所述第三配置信息确定所述第三无线接入设备与所述第二无线接入设备之间的信号强度;所述服务器根据所述信号强度小于第一阈值,确定所述第三无线接入设备根据所述第四配置信息无法与所述第二无线接入设备重新建立连接。示例性地,在网络规划的过程中,服务器可以获得第三接入设备和第二无线接入设备的位置信息,基于两者的位置信息可以计算两者之间的距离。服务器再根据第二配置信息中的天线增益、频宽以及传输功率等参数以及上述距离,计算第三无线接入设备与第二无线接入设备采用上述的第二配置信息建立连接之后,两者之间的信号强度。如果计算得到的信号强度小于预设的第一阈值,则可以认为第二无线接入设备无法与第三无线接入设备建立稳定有效的连接,即服务器可以确定第三无线接入设备根据第二配置信息无法与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述服务器确定所述第三无线接入设备使用第四配置信息无法与所述第二无线接入设备重新建立连接,包括:所述服务器确定所述第三无线接入设备根据所述第三配置信息与所述第二无线接入设备建立连接的次数;所述服务器根据所述次数大于第二阈值,确定所述第三无线接入设备根据所述第四配置信息无法与所述第二无线接入设备重新建立连接。
本申请第三方面提供一种设备连接方法,包括:第二无线接入设备根据存储信息确定允许所述第一无线接入设备使用第一配置信息建立连接,所述第一配置信息为所述第一无线接入设备在与所述第二无线接入设备断开连接时使用的;所述第二无线接入设备使用所述连接向所述第一无线接入设备转发服务器发送的第一通知消息;所述第二无线接入设备从所述第一无线接入设备接收第二配置信息,并根据所述第二配置信息允许所述第一无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述存储信息包括第一密钥,所述第一配置信息包括第二密钥,所述第二无线接入设备根据存储信息确定允许所述第一无线接入设备使用第一配置信息建立连接,包括:所述第二无线接入设备根据所述第一密钥和所述第二密钥匹配,确定允许所述第一无线接入设备使用第一配置信息建立连接。
可选地,在一种可能的实现方式中,在所述第二无线接入设备使用所述连接向所述第一无线接入设备转发服务器发送的第一通知消息之前,所述方法还包括:所述第二无线接入设备通过所述连接向所述服务器发送第二消息,所述第二消息用于通知所述服务器所述第一无线接入设备是使用所述第一配置信息与所述第二无线接入设备建立连接的。
可选地,在一种可能的实现方式中,所述第一配置信息为所述第一无线接入设备预置 的,例如是第一无线接入设备出厂时预置的。或者,所述第一配置信息为所述与第二无线接入设备之间的连接断开之前,所述第一无线接入设备通过所述第二无线接入设备而从所述服务器获取的。
本申请第四方面提供一种网络设备,包括:收发单元和处理单元;所述处理单元,用于根据与第二无线接入设备之间的连接断开,第一无线接入设备使用存储的第一配置信息与所述第二无线接入设备建立连接;所述收发单元,用于所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接,从服务器接收第一通知消息;所述处理单元,用于所述第一无线接入设备根据所述第一通知消息,使用第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述第一配置信息为所述第一无线接入设备预置的;或者,所述第一配置信息为所述与第二无线接入设备之间的连接断开之前,所述第一无线接入设备通过所述第二无线接入设备而从所述服务器获取的。
可选地,在一种可能的实现方式中,所述第一通知消息中包括所述第二配置信息,所述处理单元,用于使用所述第一通知消息中的所述第二配置信息,与所述第二无线接入设备重新建立连接;或者,所述第二配置信息为所述与第二无线接入设备之间的连接断开之前,所述第一无线接入设备通过所述第二无线接入设备而从所述服务器获取的,所述处理单元,用于根据所述第一通知消息的指示,使用所述第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述第一无线接入设备从服务器接收所述第一通知消息之前,所述收发单元用于通过与所述第二无线接入设备建立的所述连接,向所述服务器发送第一消息,所述第一消息用于通知所述服务器所述第一无线接入设备已接收所述第二配置信息;从所述服务器接收所述第一通知消息,所述处理单元用于根据所述第一通知消息的指示,使用已接收的所述第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,根据与所述第二无线接入设备之间的连接已断开预置时长,所述处理单元用于使用存储的所述第一配置信息与所述第二无线接入设备建立连接。
可选地,在一种可能的实现方式中,根据与包括所述第二无线接入设备在内的多个无线接入设备之间的连接均断开,所述处理单元用于使用存储的第一配置信息与所述第二无线接入设备建立连接。
可选地,在一种可能的实现方式中,所述收发单元用于通过与所述第二无线接入设备建立的所述连接,向所述服务器发送第二消息,所述第二消息用于通知所述服务器所述第一无线接入设备是使用所述第一配置信息与所述第二无线接入设备建立连接的。
本申请第五方面提供一种服务器,包括:收发单元和处理单元;所述处理单元,用于确定第一无线接入设备使用第一配置信息与第二无线接入设备建立连接,所述第一配置信息为所述第一无线接入设备在与所述第二无线接入设备断开连接时使用的;所述收发单元, 用于通过所述连接,向所述第一无线接入设备发送第一通知消息,其中,所述第一通知消息用于指示所述第一无线接入设备使用第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述第一配置信息为所述第一无线接入设备预置的;或者,所述第一配置信息为所述第一无线接入设备与所述第二无线接入设备的连接断开之前,由所述服务器通过所述第二无线接入设备向所述第一无线接入设备发送的。
可选地,在一种可能的实现方式中,所述第一通知消息中包括所述第二配置信息,所述第一通知消息用于指示所述第一无线接入设备使用所述第一通知消息中的所述第二配置信息与所述第二无线接入设备重新建立连接;或者,在所述第一无线接入设备与所述第二无线接入设备之间的连接断开之前,所述收发单元用于通过所述第二无线接入设备向所述第一无线接入设备发送所述第二配置信息;所述第一通知消息用于指示所述第一无线接入设备使用已接收的所述第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述收发单元向所述第一无线接入设备发送第一通知消息之前,所述收发单元用于接收所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接发送的第一消息,所述第一消息用于通知所述服务器所述第一无线接入设备已接收所述第二配置信息;向所述第一无线接入设备发送第一通知消息,所述第一通知消息用于指示所述第一无线接入设备使用已接收的所述第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述收发单元,用于向所述第一无线接入设备发送第一通知消息之前,所述服务器接收第二消息,所述第二消息用于通知所述服务器所述第一无线接入设备是使用所述第一配置信息与所述第二无线接入设备建立连接的。
可选地,在一种可能的实现方式中,所述处理单元,用于确定第三无线接入设备使用第三配置信息与第二无线接入设备建立连接,所述第三配置信息为所述第三无线接入设备在与所述第二无线接入设备断开连接时使用的;根据所述第一无线接入设备和所述第三无线接入设备在网络拓扑中的位置,确定向所述第一无线接入设备发送所述第一通知消息。
可选地,在一种可能的实现方式中,所述第三无线接入设备通过所述第一无线接入设备与所述第二无线接入设备连接;在所述收发单元通过所述连接向所述第一无线接入设备发送第一通知消息之后,所述收发单元还用于根据所述第一无线接入设备与所述第二无线接入设备重新建立连接,或者在发送所述第一通知消息预设时长之后,向所述第三无线接入设备发送第二通知消息,所述第二通知消息用于指示所述第三无线接入设备使用第四配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述处理单元用于根据接收的第三消息,确定第三无线接入设备使用第三配置信息与所述第二无线接入设备建立连接,所述第三配置信息为所述第三无线接入设备在与所述第二无线接入设备断开连接时使用的;确定所述第三无线接入设备使用第四配置信息无法与所述第二无线接入设备重新建立连接,所述服务器生成告警信息。
可选地,在一种可能的实现方式中,所述处理单元用于根据所述第三无线接入设备与 所述第二无线接入设备之间的距离以及所述第三配置信息确定所述第三无线接入设备与所述第二无线接入设备之间的信号强度;根据所述信号强度小于第一阈值,确定所述第三无线接入设备根据所述第四配置信息无法与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述处理单元确定所述第三无线接入设备根据所述第三配置信息与所述第二无线接入设备建立连接的次数;所述处理单元根据所述次数大于第二阈值,确定所述第三无线接入设备根据所述第四配置信息无法与所述第二无线接入设备重新建立连接。
本申请第六方面提供一种网络设备,包括:收发单元和处理单元;所述处理单元用于根据存储信息确定允许所述第一无线接入设备使用第一配置信息建立连接,所述第一配置信息为所述第一无线接入设备在与所述第二无线接入设备断开连接时使用的;所述收发单元用于使用所述连接向所述第一无线接入设备转发服务器发送的第一通知消息;所述收发单元用于从所述第一无线接入设备接收第二配置信息,并根据所述第二配置信息允许所述第一无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述存储信息包括第一密钥,所述第一配置信息包括第二密钥;所述处理单元用于根据所述第一密钥和所述第二密钥匹配,确定允许所述第一无线接入设备使用第一配置信息建立连接。
可选地,在一种可能的实现方式中,在所述收发单元使用所述连接向所述第一无线接入设备转发服务器发送的第一通知消息之前,所述收发单元还用于通过所述连接向所述服务器发送第二消息,所述第二消息用于通知所述服务器所述第一无线接入设备是使用所述第一配置信息与所述第二无线接入设备建立连接的。
本申请第七方面提供一种网络设备,该网络设备包括:处理器、存储器;存储器用于存储指令;处理器用于执行存储器中的指令,使得网络设备执行如前述第一方面或第三方面中任一项的方法。
本申请第八方面提供一种网络设备,该网络设备包括:处理器;所述处理器与存储器耦合,所述处理器用于执行存储器中的指令,使得网络设备执行如前述第一方面或第三方面中任一项的方法。
本申请第九方面提供一种服务器,该服务器包括:处理器、存储器;存储器用于存储指令;处理器用于执行存储器中的指令,使得服务器执行如前述第二方面中任一项的方法。
本申请第十方面提供一种服务器,该服务器包括:处理器;所述处理器与存储器耦合,所述处理器用于执行存储器中的指令,使得服务器执行如前述第二方面中任一项的方法。
本申请第十一方面提供一种计算机存储介质,该计算机存储介质可以是非易失性的;该计算机存储介质中存储有计算机可读指令,当该计算机可读指令被处理器执行时实现第一方面至第三方面中任一设计中的方法。
本申请第十二方面提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行如第一方面至第三方面中任一设计中的方法。
本申请第十三方面提供一种芯片系统,该芯片系统包括处理器,用于支持网络设备实 现上述方面中所涉及的功能,例如,发送或处理上述方法中所涉及的数据和/或信息。在一种可能的设计中,芯片系统还包括存储器,存储器,用于保存网络设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包括芯片和其他分立器件。
从以上技术方案可以看出,本申请实施例具有以下优点:
本申请提供了一种设备连接方法及相关设备,在第一无线接入设备与第二无线接入设备的连接断开之后,第一无线接入设备可以使用预先存储的第一配置信息与第二无线接入设备建立连接,以使得第一无线接入设备可以通过其与第二无线接入设备建立的连接,从服务器接收通知消息,从而保证第一无线接入设备能够根据通知消息来使用第二配置信息与第二无线接入设备重新恢复正常的连接,无需人为进行连接的恢复,成本较低,提高了无线网络系统的整体运行效率和灵活性。
图1为本申请实施例提供的一种mesh网络的示意图;
图2为本申请实施例提供的一种设备连接方法200的流程示意图;
图3为本申请实施例提供的一种恢复设备连接的交互示意图;
图4为本申请实施例提供的一种恢复设备连接的交互示意图;
图5为本申请实施例提供的一种恢复设备连接的交互示意图;
图6为本申请实施例提供的一个多级连接的mesh网络示意图;
图7为本申请实施例提供的一种无线接入设备恢复连接的流程示意图;
图8为本申请实施例提供的一种网络设备/服务器800的结构示意图。
为了使本申请的目的、技术方案及优点更加清楚明白,下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或模块。在本申请中出现的对步骤进行的命名或者编号,并不意味着必须按照命名或者编号所指示的时间/逻辑先后顺序执行方法流程中的步骤,已经命名或者编号的流程步骤可以根据要实现的技术目的变更执行次序,只要能达到相同或者相类似的技术效果即可。本申请中所出现的单元的划分,是一种逻辑上的划分,实际应用中实现时可以有另外的划分方式,例如多个单元可以结合成或集成在另一个系统中,或一些特征可以忽 略,或不执行,另外,所显示的或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元之间的间接耦合或通信连接可以是电性或其他类似的形式,本申请中均不作限定。并且,作为分离部件说明的单元或子单元可以是也可以不是物理上的分离,可以是也可以不是物理单元,或者可以分布到多个电路单元中,可以根据实际的需要选择其中的部分或全部单元来实现本申请方案的目的。
Mesh网络即为“无线网格网络”,是一种多跳(multi-hop)网络,是解决“最后一公里”问题的关键技术之一。在向下一代网络演进的过程中,无线是一个不可缺的技术。Mesh网络可以与其它网络协同通信,是一个可以不断扩展的网络架构,任意的两个设备均可以通过无线来保持互联。Mesh网络凭借多跳互连和网状拓扑特性,已经演变为适用于宽带家庭网络、社区网络、企业网络和城域网络等多种无线接入网络的有效解决方案。
在mesh网络中,上游的根AP设备通过有线与服务器连接;下游的AP设备则通过无线与根AP设备连接,再通过根AP设备间接连接到服务器。其中,服务器上部署有云管理平台,用于对mesh网络中的AP设备进行统一管理。一般地,由于上游的根AP设备可以通过有线与服务器连接,也可以通过无线与下游的AP设备连接,因此根AP设备可以认为是连接mesh网络和非mesh网络的AP设备,根AP设备也可以称为网格节点网关(mesh portal point,MPP)。下游的AP设备则可以统一称为网格节点(mesh point,MP)。
通常,为了保障mesh网络的安全性,用户可以通过服务器上的云管理平台向mesh网络中的MPP和MP下发配置信息,来定期修改MPP和MP的密码或者是调整MPP和MP的信道。在配置信息的下发过程中,如果MPP先更新了配置信息,而MP没有及时收到配置信息,则会导致MPP和MP之间由于配置不一致而断开连接。比如,MPP在接收到了新的密钥或者信道配置信息之后,MPP更新了新的密钥或者信道,而MP由于没有接收到新的配置信息而继续采用旧的密钥或者信道,则MP无法与MPP建立连接。这样一来,由于MPP和MP之间的连接已断开,云管理平台也无法将配置信息下发到MP上,MP则一直不能与MPP恢复连接,从而导致MPP脱管。
目前,在MP脱管之后,通常是安排维护人员前往脱管设备的现场,通过串口登录脱管设备来更改脱管设备的配置信息,以保证脱管设备恢复网络连接。在AP设备分布较广的情况下,这种恢复脱管设备网络连接的方式往往需要较高的人力成本,也不利于维护无线网络系统的稳定运行。
有鉴于此,本申请实施例提供了一种设备连接方法及网络设备,在MP与MPP的连接断开之后,MP可以使用预先存储的第一配置信息与MPP建立连接,以使得MP可以通过其与MPP建立的连接,从服务器接收通知消息,从而保证MP能够根据通知消息来使用第二配置信息与MPP重新恢复正常的连接,无需人为进行连接的恢复,成本较低,连接修复速度较快。
可以参阅图1,图1为本申请实施例提供的一种mesh网络的示意图。如图1所示,mesh网络中包括有MPP、MP1和MP2,其中,MPP通过有线与服务器连接,MP1和MP2通过无线与MPP连接,从而间接与服务器连接。在服务器上部署有云管理平台,云管理平台可以向MPP、MP1和MP2下发新的配置信息。在云管理平台向MPP、MP1和MP2下发了新的配置信 息,而只有MPP和MP2接收成功时,由于MPP与MP1之间的配置信息不一致,因此MPP和MP1之间的连接断开。在与MPP之间的连接断开之后,MP1可以使用存储的第一配置信息与MPP建立连接。在一种情形下,无线网络系统允许MP1直接使用该第一配置信息与MPP长期建立连接。在另一种情形下,该第一配置信息用于MP1与MPP之间建立临时的连接,以使得MP1可以通过该连接,从服务器接收通知消息;MP1根据该通知消息的指示,使用第二配置信息与MPP重新建立连接;该第二配置信息即为最新的配置信息,MP1使用第二配置信息可以与MPP恢复正常的连接,如MP1使用第二配置信息中的密钥与MPP之间恢复高安全性、高可靠性的连接。
以上是以mesh网络为例,对本申请实施例提供的设备连接方法的应用场景进行了说明。可以理解地,本申请实施例提供的设备连接方法还可以应用于其他的应用场景下,比如无线分布式系统(Wireless Distribution System,WDS)等可能存在以上所述问题的场景,在此并不对本申请实施例所应用的场景做唯一限定。
为了便于理解,以下将以mesh网络为本申请实施例所应用的场景为例,对本申请实施例提供的设备连接方法进行详细描述。在mesh网络中,以下所述的第一无线接入设备可以为mesh网络中的MP,第二无线接入设备可以为mesh网络中的MPP。当然,在本申请实施例提供的设备连接方法应用于其他的网络系统的情况下,第一无线接入设备和第二无线接入设备还可以是该网络系统中相应的设备,本申请实施例不对第一无线接入设备和第二无线接入设备做具体限定。
可以参阅图2,图2为本申请实施例提供的一种设备连接方法200的流程示意图。所述方法200由第一无线接入设备执行。如图2所示,本申请实施例提供的设备连接方法200,包括:
201、根据与第二无线接入设备之间的连接断开,第一无线接入设备使用存储的第一配置信息与所述第二无线接入设备建立连接。
本实施例中,第一无线接入设备可以是在获取到其与第二无线接入设备之间的连接断开之后,使用存储的第一配置信息与所述第二无线接入设备建立连接。可选的,第一无线接入设备可以是在获知到其与第二无线接入设备之间的连接断开之后,便采用第一配置信息与第二无线接入设备建立连接;第一无线接入设备也可以是在获知到其与第二无线接入设备之间的连接已断开预置时长,第一无线接入设备再尝试采用第一配置信息与第二无线接入设备建立连接。
在一个可能的实施例中,所述第一无线接入设备具体可以是根据与包括所述第二无线接入设备在内的多个无线接入设备之间的连接均断开,使用存储的第一配置信息与所述第二无线接入设备建立连接。示例性地,在网络中包括有多个与服务器直接连接的无线接入设备的情况下,第一无线接入设备可以尝试与前述多个无线接入设备建立连接,在第一无线接入设备与前述多个无线接入设备均无法建立连接时,即第一无线接入设备与前述包括第二无线接入设备在内的多个无线接入设备之间连接均断开时,第一无线接入设备可以尝试使用存储的第一配置信息与所述第二无线接入设备建立连接。这样一来,一方面可以提升网络系统运行的稳定性和灵活性,另一方面也可以避免在由于第二无线接入设备本身发 生故障而导致连接断开的情况下,第一无线接入设备直接使用存储的第一配置信息尝试与第二无线接入设备建立连接而导致连接失败。
例如,在mesh网络中包括有多个通过有线与服务器连接的MPP的情况下,MP在与其中一个MPP之间的连接断开之后,MP使用原先的配置信息尝试与其他的MPP建立连接。在MP与所有其他的MPP均无法建立连接的情况下,MP再使用第一配置信息与其中的一个MPP建立连接。
其中,第一无线接入设备可以通过多种方式来获取其与第二无线接入设备之间的连接断开的信息。
在一种可能的实现方式中,第一无线接入设备可以实时或者是定期检测其与第二无线接入设备之间的连接,从而能够在第一无线接入设备与第二无线接入设备之间的连接断开之后,检测到两者之间的连接断开。示例性地,在第一无线接入设备与第二无线接入设备之间的连接具有心跳的情况下,第一无线接入设备可以通过检测心跳是否超时来确定其与第二无线接入设备之间的连接是否断开;例如,在第二无线接入设备每隔一定的时间间隔(比如十秒)向第一无线接入设备发送一次心跳报文的情况下,如果第一无线接入设备在距离上一次接收到心跳报文已超过上述的时间间隔后仍没接收到心跳报文,则第一无线接入设备可以认为与第二无线接入设备之间的连接已断开。
在另一种可能的实现方式中,第一无线接入设备可以通过获取其他的设备发送的信息来获知其与第二无线接入设备之间的连接断开。示例性地,在mesh网络中,可以设置有用于监控无线接入设备之间的连接状态的设备,在该设备监控得知第一无线接入设备与第二无线接入设备之间的连接断开之后,该设备可以向第一无线接入设备发送通知消息,以告知第一无线接入设备其与第二无线接入设备之间的连接已断开。
可以理解的是,所述第一配置信息可以是所述第一无线接入设备预置的,例如所述第一配置信息是在所述第一无线接入设备出厂时预置于第一无线接入设备内的。或者,所述第一配置信息还可以是在所述第一无线接入设备与所述第二无线接入设备之间的连接断开之前,所述第一无线接入设备通过所述第二无线接入设备而从所述服务器获取的。例如,在所述第一无线接入设备与所述第二无线接入设备还建立有连接时,服务器可以通过第二无线接入设备向第一无线接入设备下发所述第一配置信息。第一无线接入设备在接收到所述第一配置信息之后,将所述第一配置信息进行存储,以便于在与第二无线接入设备的连接断开之后,能够采用存储的第一配置信息与第二接入设备恢复连接。可以理解的是,在第一无线接入设备预置有第一配置信息的情况下,第一无线接入设备也可以接收服务器下发的新的配置信息以替代预置的第一配置信息。
在可能的实施方式中,第一无线接入设备还可以通过所述方法200执行以下操作。
202、所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接,从服务器接收第一通知消息。
在所述第一无线接入设备使用第一配置信息与所述第二无线接入设备建立连接之后,服务器可以获知所述第一无线接入设备是使用第一配置信息与所述第二无线接入设备建立连接的。基于此,服务器可以通过所述第二无线接入设备向所述第一无线接入设备下发第 一通知消息,该第一通知消息用于通知所述第一无线接入设备使用第二配置信息与所述第二无线接入设备建立连接。
其中,服务器可以通过多种方式来获知所述第一无线接入设备使用第一配置信息与所述第二无线接入设备建立连接。
在一种可能的方式中,在所述第一无线接入设备使用第一配置信息与所述第二无线接入设备成功建立连接之后,所述第一无线接入设备可以通过所述第二无线接入设备向所述服务器发送第二消息,该第二消息用于指示所述第一无线接入设备是基于第一配置信息而与所述第二无线接入设备建立连接的。也就是说,服务器根据所述第一无线接入设备主动上报的第二消息,即可获知所述第一无线接入设备是使用第一配置信息与所述第二无线接入设备成功建立连接的。
在另一种可能的方式中,还可以是在所述第一无线接入设备使用第一配置信息与所述第二无线接入设备成功建立连接之后,由所述第二无线接入设备主动向服务器上报其与所述第一无线接入设备建立连接的信息,并且告知服务器所述第一无线接入设备是使用第一配置信息与其建立连接的。这样一来,服务器根据所述第二无线接入设备所上报的信息,也可以是获知所述第一无线接入设备是使用第一配置信息与所述第二无线接入设备成功建立连接的。
203、所述第一无线接入设备根据所述第一通知消息,使用第二配置信息与所述第二无线接入设备重新建立连接。
在接收到所述第一通知消息之后,所述第一无线接入设备根据所述第一通知消息的指示,使用第二配置信息与所述第二无线接入设备重新建立连接。所述重新建立连接例如可以是第一无线接入设备先断开通过所述第一配置信息与第二无线接入设备建立的连接,然后使用第二配置信息再次与第二无线接入设备建立连接;也可以是第一无线接入设备在使用所述第一配置信息与第二无线接入设备建立连接的同时,使用第二配置信息向第二无线接入设备发起请求或认证等,以使得第一无线接入设备能够在诸如用户无感知的状态下,调整为使用所述第二配置信息与第二无线接入设备建立连接。
其中,所述第二配置信息可以是携带于所述第一通知消息中,所述第一无线接入设备根据所述第一通知消息中的第二配置信息来与所述第二无线接入设备重新建立连接;所述第二配置信息也可以是在所述第一无线接入设备与所述第二无线接入设备之间的连接断开之前,所述第一无线接入设备通过所述第二无线接入设备而从所述服务器获取到的。
在一个可能的情形中,在所述第一无线接入设备与所述第二无线接入设备之间的连接还没有断开之前,所述服务器分别向所述第一无线接入设备以及所述第二无线接入设备下发第二配置信息。然而,所述第一无线接入设备和所述第二无线接入设备并未利用第二配置信息成功建立连接,而导致所述第二无线接入设备和所述第二无线接入设备断开连接。
在这种情况下,所述第一无线接入设备与所述第二无线接入设备之间的连接断开的原因是:第一无线接入设备没有接收到最新的配置信息(即第二配置信息),所述第一无线接入设备采用原先的配置信息无法与采用第二配置信息的第二无线接入设备建立连接。因此,服务器可以在向所述第一无线接入设备发送的第一通知消息中携带所述第二配置信息,以 使得第一无线接入设备可以基于第一通知消息中的第二配置信息重新与所述第二无线接入设备建立连接。
在另一个可能的情形中,所述服务器在所述第一无线接入设备与所述第二无线接入设备之间的连接还没有断开之前,分别向所述第一无线接入设备以及所述第二无线接入设备下发第二配置信息。并且,所述服务器向所述第一无线接入设备下发第二配置信息成功,而所述服务器向所述第二无线接入设备下发第二配置信息失败。
在上述的情况下,所述第一无线接入设备与所述第二无线接入设备之间的连接断开的原因是:第二无线接入设备没有接收到第二配置信息,所述第一无线接入设备采用第二配置信息无法与采用原先的配置信息的第二无线接入设备建立连接。由于第一无线接入设备实际上已经接收到了第二配置信息,因此,服务器可以在通过例如有线的方式向第二无线接入设备重新下发第二配置信息成功之后,向所述第一无线接入设备发送所述第一通知消息,该第一通知消息没有携带第二配置信息,仅用于通知所述第一无线接入设备重新采用第二配置信息与所述第二无线接入设备建立连接。
可以理解的是,为了保证服务器能够确定所述第一无线接入设备以及所述第二无线接入设备是否有成功接收新下发的第二配置信息,所述第一无线接入设备以及所述第二无线接入设备可以在成功接收到新下发的第二配置信息之后,向服务器通告其成功接收了第二配置信息。也就是说,服务器可以根据获取到第二无线接入设备所反馈的已成功接收第二配置信息的消息,而获取不到第一无线接入设备所反馈的成功接收第二配置信息的消息,来确定第二无线接入设备接收到了第二配置信息且第一无线接入设备没有接收到第二配置信息。因此,服务器可以在向第一无线接入设备发送的第一通知消息中携带所述第二配置信息。
类似地,服务器可以根据获取到第一无线接入设备所反馈的已成功接收第二配置信息的消息,而获取不到第二无线接入设备所反馈的成功接收第二配置信息的消息,来确定第一无线接入设备接收到了第二配置信息且第二无线接入设备没有接收到第二配置信息。此时,服务器向所述第一无线接入设备发送的第一通知消息中则不需要携带所述第二配置信息。
需要说明的是,在上面所叙述的内容中,服务器向第一无线接入设备和第二无线接入设备下发第二配置信息,但所述第一无线接入设备和第二无线接入设备却连接失败的原因可以有多种。
示例性地,在一种可能的情况下,服务器向第一无线接入设备以及第二无线接入设备下发第二配置信息的时间不一致,导致第一无线接入设备和第二无线接入设备接收到第二配置信息且第二配置信息生效的时间不一致。例如,服务器先向第一无线接入设备下发了第二配置信息,并在一段时间之后(比如在超过第一无线接入设备和第二无线接入设备之间的心跳超时时间之后)再向第二无线接入设备下发第二配置信息,或者虽然服务器及时发出了第二配置信息,但该信息由于网络问题并未在心跳时间内到达第二无线接入设备;这样,在第一无线接入设备接收到第二配置信息并且第二配置信息生效之后,由于第二无线接入设备仍没有接收到第二配置信息或者第二配置信息在第二无线接入设备仍没生效, 使用第二配置信息的第一无线接入设备无法与仍使用原先的配置信息的第二无线接入设备建立连接,即第一无线接入设备与第二无线接入设备之间的连接断开。又例如,服务器先向第二无线接入设备下发了第二配置信息,并且在第二无线接入设备上的第二配置信息生效之前,第二配置信息仍没有下发到第一无线接入设备上;这样,由于第一无线接入设备没有接收到第二配置信息,因此第一无线接入设备同样无法与第二无线接入设备建立连接。
在另一种可能的情况下,在第一无线接入设备或者第二无线接入设备处于设备运行特殊时期时,服务器向第一无线接入设备或者第二接入设备下发第二配置信息也可能会失败。例如,第一无线接入设备以及第二无线接入设备通常具有定期备份数据的功能。如果在第一无线接入设备处于数据备份的期间,服务器向第一无线接入设备下发了第二配置信息,则由于第一无线接入设备比较繁忙,服务器向第一无线接入设备下发第二配置信息可能会失败。
在又一种可能的情况下,如果在服务器向第一无线接入设备或者第二无线接入设备下发第二配置信息的期间发生了网络丢包,则也有可能导致服务器下发第二配置信息失败。例如,在服务器向第一无线接入设备下发第二配置信息的过程中,携带第二配置信息的报文发生了丢包,第一无线接入设备无法正确识别携带第二配置信息的报文,导致第二配置信息没有顺利下发到第一无线接入设备上,即服务器向第一无线接入设备下发第二配置信息失败。
此外,在服务器下发的第二配置信息与第一无线接入设备或者第二无线接入设备的其他配置冲突时,也可能导致第二配置信息无法在第一无线接入设备或者第二无线接入设备上生效。
除了上述的原因之外,也可以是由其他的原因导致服务器虽下发第二配置信息,但第一无线接入设备和第二无线接入设备建连失败。
本实施例中,在第一无线接入设备与第二无线接入设备的连接断开之后,第一无线接入设备可以使用预先存储的第一配置信息与第二无线接入设备建立连接,该连接可以是临时的,以使得第一无线接入设备可以通过其与第二无线接入设备建立的连接,从服务器接收通知消息,从而保证第一无线接入设备能够根据通知消息来使用第二配置信息与第二无线接入设备重新恢复正常的连接,无需人为进行连接的恢复,成本较低。
以上详细叙述了第一无线接入设备恢复与第二无线接入设备之间的连接的过程,为了便于理解,以下将详细叙述第一无线接入设备使用第一配置信息与第二无线接入设备建立连接的过程。
具体地,在第一无线接入设备中存储有第一配置信息,在第二无线接入设备中存储有能够用于确定是否允许与使用第一配置信息的第一无线接入设备建立连接的信息。示例性地,第一无线接入设备中的第一配置信息具体可以为mesh配置信息,该mesh配置信息可以包括有mesh-id,初始密钥,加密方式,认证方式以及支持建联的最低信号强度(link-rssi-threshold)中的一种或多种。其中,mesh-id为mesh网络的ID,用于第一无线接入设备和第二无线接入设备之间的互相发现并建立连接;初始密钥具体可以是成对 主密钥(pairwise master key,PMK),该PMK可以用于生成最终加密数据报文的密钥;加密方式为第一无线接入设备发送数据报文时进行加密的方式;认证方式为第一无线接入设备接收到其他无线接入设备发送的数据报文时进行认证的方式。
对于第二无线接入设备而言,第二无线接入设备中所存储的信息可以包括上述的mesh配置信息以及射频配置信息。其中,第二无线接入设备中所存储的mesh配置信息与第一无线接入设备中存储的mesh配置信息相同,第二无线接入设备中存储的射频配置信息具体可以包括信道、频宽以及传输功率中的一种或多种。
在第一无线接入设备与第二无线接入设备建立连接的过程中,第一无线接入设备可以通过扫描周边的信号信息,来获取第二无线接入设备的射频配置信息,即获取第二无线接入设备的信道、频宽以及传输功率。然后第一无线接入设备基于存储的mesh配置信息与第二无线接入设备进行协商。在第一无线接入设备中的mesh配置信息与第二无线接入设备中的mesh配置信息相同的情况下,第一无线接入设备与第二无线接入设备协商成功,第二无线接入设备确定可以允许与使用第一配置信息的第一无线接入设备建立连接。此时,第一无线接入设备使用第一配置信息与第二无线接入设备成功建立连接。
示例性地,在第二无线接入设备中的存储信息中包括第一密钥,第一无线接入设备所存储的第一配置信息中包括第二密钥。在第一无线接入设备使用第一配置信息尝试与第二无线接入设备建立连接的过程中,第一无线接入设备向第二无线接入设备发送第二密钥。第二无线接入设备根据前述第一密钥和第二密钥匹配,确定允许第一无线接入设备使用第一配置信息建立连接。
需要说明的是,为了保障通信安全,第一无线接入设备使用第一配置信息与第二无线接入设备所建立的连接可以为临时连接,第一无线接入设备与第二无线接入设备所建立的临时连接用于第一无线接入设备从服务器处获取第一通知消息,以使得第一无线接入设备能够使用第二配置信息与第二无线接入设备建立连接。也就是说,对于第一无线接入设备以及第二无线接入设备而言,采用服务器最新下发的第二配置信息所建立的连接是安全的长连接,而使用第一配置信息所建立的连接是临时的连接。使用第一配置信息来建立连接是为了给予第一无线接入设备一个与服务器通信连接的临时通道,以便于第一无线接入设备能够从服务器处接收第一通知消息并且基于第一通知消息与第二无线接入设备恢复正常的长连接。
在一个可能的实施例中,在第一无线接入设备使用第一配置信息与第二无线接入设备所建立的连接为临时连接的情况下,在第一无线接入设备使用第一配置信息与第二无线接入设备建立连接一定时长之后,可以强制中断第一无线接入设备与第二无线接入设备之间的连接。具体地,可以由第一无线接入设备、第二无线接入设备或者服务器来发起强制中断第一无线接入设备与第二无线接入设备之间连接的操作。
示例性地,在第一无线接入设备使用第一配置信息与第二无线接入设备建立连接之后,若第一无线接入设备检测到该连接建立的时长已超过2分钟,则第一无线接入设备可以中断与第二无线接入设备的连接。在另一个示例中,也可以是第二无线接入设备检测到与第 一无线接入设备建立连接的时长已超过2分钟,然后第二无线接入设备强制中断与第一无线接入设备之间的连接。此外,还可以是服务器检测到第一无线接入设备和第二无线接入设备之间建立连接已超过2分钟,然后服务器向第一无线接入设备和/或第二无线接入设备发送消息,以指示第一无线接入设备和/或第二无线接入设备强制中断连接。
可以理解的是,第一无线接入设备使用第一配置信息与第二无线接入设备建立连接所能够维持的时长可以根据实际情况而定,例如可以是上述的2分钟,也可以是30秒或者5分钟等,本实施例不对上述的时长做具体限定。
可以理解的是,在一些情况下,比如网络环境较差的情况下,在强制中断第一无线接入设备和第二无线接入设备之间的连接之前,第一无线接入设备可能仍然无法顺利接收到第一通知消息,导致了在第一无线接入设备与第二无线接入设备之间的连接中断之后,第一无线接入设备无法基于第二配置信息与第二无线接入设备建立连接。
因此,为了提高第一无线接入设备重新恢复与第二无线接入设备之间连接的成功率,在一种可能的实施例中,第一无线接入设备可以在间隔一定时长之后,重新使用第一配置信息与第二无线接入设备建立连接。
示例性地,在第一无线接入设备使用第一配置信息与第二无线接入设备建立连接,且第一无线接入设备在该连接维持2分钟后强制中断该连接。如果在该连接强制中断之前,第一无线接入设备仍然没有接收到服务器下发的第一通知消息,或者第一无线接入设备使用第二配置信息仍然无法与第二无线接入设备重新建立连接,第一无线接入设备可以在间隔1分钟之后再使用第一配置信息再次与第二无线接入设备建立连接。
此外,考虑到在mesh网络中包括有大量MP的场景下,在批量修改MP的配置信息时,可能会导致大量MP在短时间内频繁发起重连,从而对服务器造成较大的处理压力。因此,对于MP而言,其使用第一配置信息发起重连的间隔时长可以随着重连次数的递增而不断延长,在间隔时长达到一定阈值之后再恢复为初始时长。
示例性地,在第一无线接入设备第一次强制中断与第二无线接入设备之间连接之后,第一无线接入设备间隔1分钟再使用第一配置信息再次与第二无线接入设备建立连接;在第一无线接入设备第二次强制中断与第二无线接入设备之间连接之后,第一无线接入设备间隔2分钟再使用第一配置信息再次与第二无线接入设备建立连接。以此类推,第一无线接入设备每次发起重连所间隔的时长随着重连次数的递增而延长,并且在间隔时长达到8分钟之后再恢复为1分钟。例如,第一无线接入设备每次发起重连的间隔时长具体可以为:1分钟,2分钟,4分钟,8分钟,1分钟,2分钟…,以此类推。
以上主要从第一无线接入设备的角度叙述了第一无线接入设备恢复与第二无线接入设备之间的连接的过程,为了便于理解,以下将结合第一无线接入设备、第二无线接入设备以及服务器之间的交互过程,详细叙述第一无线接入设备恢复与第二无线接入设备之间的连接的过程。
可以参阅图3,图3为本申请实施例提供的一种恢复设备连接的交互示意图。图3中的第一无线接入设备例如是MP,第二无线接入设备例如是MPP。如图3所示,第一无线接 入设备恢复与第二无线接入设备之间的连接的一种可能的过程包括:
301、第一无线接入设备和第二无线接入设备存储配置信息1。
其中,第一无线接入设备和第二无线接入设备所存储的配置信息1可以是设备出厂时预置的,也可以是由服务器下发的。该配置信息1例如可以为前述方法中的第一配置信息,用于第一无线接入设备和第二无线接入设备之间建立临时的连接,具体可参考前述对第一配置信息的描述。
302、第一无线接入设备使用配置信息2与第二无线接入设备维持连接。
在服务器下发新的配置信息之前,第一无线接入设备使用配置信息2与第二无线接入设备维持正常的长连接。
303、服务器向第二无线接入设备下发配置信息3,且下发成功。
在需要更改第一无线接入设备和第二无线接入设备之间建立连接的配置信息时,例如需要更改第一无线接入设备和第二无线接入设备之间的密钥或者信道时,服务器可以向第一无线接入设备和第二无线接入设备下发新的配置信息。
本实施例中,服务器向第二无线接入设备下发配置信息3,且配置信息3成功下发到第二无线接入设备上。该配置信息3例如可以为前述方法中的第二配置信息,具体可参考前述对第二配置信息的描述。
304、服务器向第一无线接入设备下发配置信息3,且下发失败。
本实施例中,服务器同样向第一无线接入设备下发配置信息3,且配置信息3下发失败。下发失败的原因例如可以是服务器向第一无线接入设备下发的配置信息3发生了丢包,导致第一无线接入设备没有正常接收到配置信息3,或是服务器在第一无线接入设备进行数据备份时,进行配置信息3的下发,导致配置信息3未能在需要时间内在第一无线接入设备中生效等。两侧设备的配置信息在一定时间内不一致而断连;或者;又或者是等。
305、第一无线接入设备与第二无线接入设备之间的连接断开。
由于第二无线接入设备成功接收到了配置信息3,而第一无线接入设备没有接收到配置信息3,因此,第一无线接入设备继续使用原始的配置信息2,而第二无线接入设备则使用配置信息3。第一无线接入设备与第二无线接入设备之间的配置信息不一致,因此第一无线接入设备与第二无线接入设备之间的连接断开。
306、第一无线接入设备获取到与第二无线接入设备之间的连接断开的信息。
在第一无线接入设备与第二无线接入设备之间的连接断开之后,第一无线接入设备可以通过自主检测第一无线接入设备与第二无线接入设备之间的连接状态,来获取其与第二无线接入设备之间的连接断开的信息;第二无线接入设备还可以是通过获取来自其他监控设备的信息来获知其与第二无线接入设备之间的连接已断开。
307、第一无线接入设备使用配置信息1与第二无线接入设备建立连接。
在第一无线接入设备获知其与第二无线接入设备之间的连接已断开之后,第一无线接入设备可以使用存储的配置信息1与第二无线接入设备建立连接。由于第二无线接入设备中同样存储有配置信息1,因此第一无线接入设备可以基于配置信息1成功地与第二无线接入设备建立连接。
308、第一无线接入设备向服务器发送消息,以通知服务器第一无线接入设备是使用配置信息1与第二无线接入设备建立连接的。
在第一无线接入设备与第二无线接入设备建立连接之后,第一无线接入设备重新上线,并且可以注册到服务器的云管理平台上。同时,为了使得服务器可以获知第一无线接入设备使用配置信息1与第二无线接入设备建立连接的,第一无线接入设备可以向服务器发送消息,该消息用于通知服务器第一无线接入设备是使用配置信息1与第二无线接入设备建立连接的。具体地,该消息例如可以为前述实施例中的第二消息。
可以理解的是,在本实施例中,除了可以是由第一无线接入设备向服务器发送消息来通知服务器,也可以是由第二无线接入设备通知服务器。示例性地,第二无线接入设备可以在与第一无线接入设备建立连接之后,主动向服务器上报其与所述第一无线接入设备建立连接的信息,并且告知服务器第一无线接入设备是使用第一配置信息与其建立连接的。
309、服务器下发通知消息1,该通知消息1携带配置信息3。
服务器在获知第一无线接入设备是基于配置信息1与第二无线接入设备建立之后,服务器可以通过第二无线接入设备向第一无线接入设备下发通知消息1,该通知消息1中携带有配置信息3。
需要说明的是,在第二无线接入设备成功接收到服务器下发的配置信息3之后,第二无线接入设备可以向服务器上报反馈消息,以反馈其已成功接收配置信息3。这样,在服务器获知第一无线接入设备是基于配置信息1与第二无线接入设备建立时,可以基于第二无线接入设备已成功接收配置信息3确定第一无线接入设备并没有成功接收到配置信息3。因此,服务器可以向第一无线接入设备下发通知消息1,该通知消息1中携带有配置信息3,以指示第一无线接入设备使用通知消息1中的配置信息3与第二无线接入设备建立连接。
310、通知消息1下发成功,第一无线接入设备使用配置信息3与第二无线接入设备建立连接。
在通知消息1下发成功之后,第一无线接入设备则可以使用通知消息1中的配置信息3重新与第二无线接入设备建立连接。
如果在一定时间内,例如2分钟内,通知消息1仍没有下发成功,则第一无线接入设备或者第二无线接入设备可以强制中断两者之间的连接。在第一无线接入设备与第二无线接入设备之间的连接中断之后,第一无线接入设备可以循环执行上述的步骤306至309,直至通知消息1下发成功。
上面详细叙述了在向第二无线接入设备下发配置信息3成功且向第一无线接入设备下发配置信息3失败的情况下,第一无线接入设备恢复与第二无线接入设备之间的连接的过程。以下将详细叙述在向第二无线接入设备下发配置信息3失败且向第一无线接入设备下发配置信息3成功的情况下,第一无线接入设备恢复与第二无线接入设备之间的连接的过程。
可以参阅图4,图4为本申请实施例提供的一种恢复设备连接的交互示意图。图4中的第一无线接入设备例如是MP,第二无线接入设备例如是MPP。如图4所示,第一无线接 入设备恢复与第二无线接入设备之间的连接的另一种可能的过程包括:
401、第一无线接入设备和第二无线接入设备存储配置信息1。
402、第一无线接入设备使用配置信息2与第二无线接入设备维持连接。
步骤401-402与上述的步骤301-302类似,具体可以参考上述的步骤301-302,在此不再赘述。
403、服务器向第二无线接入设备下发配置信息3,且下发失败。
404、服务器向第一无线接入设备下发配置信息3,且下发成功。
在本实施例中,第一无线接入设备成功接收配置信息3,而第二无线接入设备则没有接收到配置信息3。
405、第一无线接入设备向服务器反馈已成功接收配置信息3。
第一无线接入设备在成功接收到服务器下发的配置信息3之后,可以向服务器反馈其已成功接收配置信息3。
406、第一无线接入设备与第二无线接入设备之间的连接断开。
由于第一无线接入设备成功接收到了配置信息3,而第二无线接入设备没有接收到配置信息3,因此,第二无线接入设备继续使用原始的配置信息2,而第一无线接入设备则使用配置信息3。第一无线接入设备与第二无线接入设备之间的配置信息不一致,因此第一无线接入设备与第二无线接入设备之间的连接断开。
407、第一无线接入设备获取到与第二无线接入设备之间的连接断开的信息。
408、第一无线接入设备使用配置信息1与第二无线接入设备建立连接。
409、第一无线接入设备向服务器发送消息,以通知服务器第一无线接入设备是使用配置信息1与第二无线接入设备建立连接的。
步骤407-409与上述的步骤306-308类似,具体可以参考上述的步骤306-308,在此不再赘述。
410、服务器向第二无线接入设备下发配置信息3。
服务器在获知第一无线接入设备是使用配置信息1与第二无线接入设备建立连接的信息之后,服务器根据第一无线接入设备所反馈的已成功配置信息3,可以确定是还没有成功下发配置信息3给第二无线接入设备。因此,服务器可以继续向第二无线接入设备下发配置信息3。
411、服务器下发通知消息2,该通知消息2指示第一无线接入设备使用配置信息3与第二无线接入设备建立连接。
由于第一无线接入设备向服务器上报了反馈消息,即反馈其已成功接收配置信息3。这样,在服务器获知第一无线接入设备是基于配置信息1与第二无线接入设备建立时,可以基于第一无线接入设备已成功接收配置信息3确定第二无线接入设备并没有成功接收到配置信息3。因此,服务器可以先向第二无线接入设备重新下发配置信息3,然后再向第一无线接入设备下发通知消息2,该通知消息2指示第一无线接入设备可以使用已接受到的配置信息3与第二无线接入设备建立连接。也就是说,在第一无线接入设备已经接收到配置信息3的情况下,服务器可以不需要再向第一无线接入设备下发配置信息3,从而节省 信令资源。
当然,服务器也可以是向第一无线接入设备下发携带有配置信息3的通知消息。这样,第一无线接入设备可以直接根据通知消息中的配置信息3与第二无线接入设备建立连接。
412、通知消息2下发成功,第一无线接入设备使用配置信息3与第二无线接入设备建立连接。
以上图4和图5以第一无线接入设备和第二无线接入设备获取的配置信息1-3均相同为例,可以理解地,在其他可能的情形中,第一无线接入设备和第二无线接入设备获取的配置信息1-3也可以不同,但能够使用不同的配对配置信息进行匹配。例如,图3的301中,第一无线接入设备存储配置信息1,而第二无线接入设备存储配置信息1’,配置信息1和配置信息1’不同,但两设备之间可以使用该配置信息1和配置信息1’进行临时连接。具体地,例如配置信息1中包括密钥1,配置信息1’中包括密钥2,密钥1和密钥2之间可以配对通过认证,从而使得第二无线接入设备基于该认证允许第一无线接入设备进行临时连接。
可以参阅图5,图5为本申请实施例提供的一种恢复设备连接的交互示意图。在图5中,第二无线接入设备通过有线与服务器连接,第三无线接入设备则通过无线与第二无线接入设备连接。其中,第二无线接入设备例如是MPP,第三无线接入设备例如是MP。
如图5所示,第三无线接入设备恢复与第二无线接入设备之间的连接的一种可能的过程包括:
501、第三无线接入设备和第二无线接入设备存储配置信息4。
502、第三无线接入设备使用配置信息5与第二无线接入设备维持连接。
503、服务器向第二无线接入设备下发配置信息6,且下发成功。
504、服务器向第三无线接入设备下发配置信息6,且下发失败。
505、第三无线接入设备与第二无线接入设备之间的连接断开。
506、第三无线接入设备获取到与第二无线接入设备之间的连接断开的信息。
507、第三无线接入设备使用配置信息4与第二无线接入设备建立连接。
508、第三无线接入设备向服务器发送消息,以通知服务器第三无线接入设备是使用配置信息4与第二无线接入设备建立连接的。
其中,步骤501-508与前述的步骤301-308类似,具体可以参考上述的步骤301-308,在此不再赘述。
509、服务器确定第三无线接入设备使用配置信息6无法与第二无线接入设备重新建立连接。
本实施例中,在服务器获知第三无线接入设备是使用配置信息4与第二无线接入设备建立连接之后,服务器可以基于配置信息6、第二无线接入设备和第三无线接入设备的位置信息来确定第三无线接入设备使用配置信息6是否能够与第二无线接入设备重新建立连接。
示例性地,在网络规划的过程中,可以将第二无线接入设备以及第三无线接入设备的 位置信息录入到服务器中,例如将第二无线接入设备以及第三无线接入设备具体的坐标信息录入到服务器中,以便于服务器基于第二无线接入设备以及第三无线接入设备的位置信息计算得到第三无线接入设备与第二无线接入设备之间的距离。另外,在配置信息6中可以包括有天线增益、频宽以及传输功率等参数,服务器基于第三无线接入设备与第二无线接入设备之间的距离以及配置信息6中的天线增益、频宽以及传输功率等参数,可以计算得到第二无线接入设备基于配置信息6与第三无线接入设备建立连接后,第二无线接入设备与第三无线接入设备之间的信号强度。如果计算得到的信号强度小于预设的第一阈值,则可以认为第二无线接入设备无法与第三无线接入设备建立稳定有效的连接,即服务器可以确定第三无线接入设备根据配置信息6无法与所述第二无线接入设备重新建立连接。其中,第一阈值具体可以为无线接入设备能够建立稳定连接的最低信号强度值。
510、服务器生成告警信息。
在服务器确定第三无线接入设备使用配置信息6无法与第二无线接入设备建立连接时,服务器可以不再向第三无线接入设备下发配置信息6,而是生成告警信息,以提醒运维人员调整配置信息6。
需要说明的是,除了通过步骤509中所述的方法来确定第三无线接入设备使用配置信息6是否能够与第二无线接入设备重新建立连接,服务器还可以通过其他的方法来确定第三无线接入设备使用配置信息6是否能够与第二无线接入设备重新建立连接。
示例性地,在前述步骤508之后,服务器可以向第三无线接入设备发送通知消息,以指示第三无线接入设备使用配置信息6与第二无线接入设备连接。第三无线接入设备在接收到服务器下发的通知消息后,即断开当前使用配置信息5与第三无线接入设备建立的连接,并且尝试使用配置信息6与第二无线接入设备建立连接。由于第三无线接入设备使用配置信息6无法与第二无线接入设备建立连接,因此,在第三无线接入设备使用配置信息6无法与第二无线接入设备建立连接的情况下,第三无线接入设备继续使用配置信息4与第二无线接入设备连接,并且通知服务器。
这样一来,便会出现第三无线接入设备使用配置信息4频繁与第二无线接入设备建立连接的过程。服务器根据第三无线接入设备每次使用配置信息4与第二无线接入设备建立连接之后所发送的消息,可以确定第三无线接入设备使用配置信息4与第二无线接入设备建立连接的次数。如果第三无线接入设备频繁地使用配置信息4与第二无线接入设备建立连接,即第三无线接入设备使用所述第三配置信息与所述第二无线接入设备建立连接的次数过多,则服务器可以认为第三无线接入设备使用配置信息6无法与第二无线接入设备重新建立连接。具体地,服务器可以通过判断第三无线接入设备使用所述第三配置信息与所述第二无线接入设备建立连接的次数是否大于预置的第二阈值,来确定第三无线接入设备使用配置信息6是否能够与第二无线接入设备重新建立连接。如果次数大于预置的第二阈值,则可以确定第三无线接入设备使用配置信息6无法与第二无线接入设备重新建立连接。其中,该第二阈值可以根据实际情况来确定,例如第二阈值可以为3或5,本实施例不对第二阈值的取值做具体限定。
上面详细描述了在第一无线接入设备或第三无线接入设备直接与第二无线接入设备连接的场景下,第一无线接入设备或第三无线接入设备如何恢复连接的过程。然而,在mesh网络中,还可能存在有多级连接的场景,即MPP与某一个MP之间可能还连接有一个或多个其他的MP。
可以参阅图6,图6为本申请实施例提供的一个多级连接的mesh网络示意图。如图6所示,服务器通过有线与MPP直接连接,MPP通过无线与MP1连接,MP1还通过无线连接有MP2。也就是说,MP2并非是直接与MPP连接,而是通过MP1与MPP间接连接。在多级连接的情况下,如果MP1与MPP之间的连接断开,则MP2与MPP之间的连接也断开了,MP1和MP2均无法与服务器通信。也就是说,MP2与MPP能够建立连接的前提是MP1与MPP之间建立有连接。
为了便于理解,以下将结合图7详细叙述在具有多级连接的mesh网络下,mesh网络中的MP如何恢复与MPP的连接。
可以参阅图7,图7为本申请实施例提供的一种无线接入设备恢复连接的流程示意图。
在图7中,第二无线接入设备例如可以为图6中所示的MPP,第一无线接入设备例如可以为图6中所示的MP1,第三无线接入设备例如可以为图6中所示的MP2。
如图7所示,第一无线接入设备以及第三无线接入设备恢复与第二无线接入设备之间的连接的一种可能的过程包括:
701、第一无线接入设备、第二无线接入设备和第三无线接入设备存储配置信息7。
可以理解的是,为了便于管理和维护,在第一无线接入设备、第二无线接入设备和第三无线接入设备中预先存储的配置信息可以是相同的,即第一无线接入设备可以采用同一套配置信息分别与第二无线接入设备以及第三无线接入设备建立临时连接。
702、第一无线接入设备使用配置信息8与第二无线接入设备维持连接,第一无线接入设备还使用配置信息8与第三无线接入设备维持连接。
可以理解的是,在正常的网络状况下,mesh网络中的无线接入设备同样可以是采用相同的配置信息来维持彼此之间的连接。
703、服务器向第二无线接入设备下发配置信息9,且下发成功。
704、服务器向第一无线接入设备下发配置信息9,且下发失败。
705、服务器向第三无线接入设备下发配置信息9,且下发失败。
在需要统一更新全网中的无线接入设备的配置信息时,服务器可以分别向网络中的无线接入设备下发新的配置信息(即配置信息9)。
本实施例中,服务器分别向第一无线接入设备、第二无线接入设备以及第三无线接入设备下发配置信息9,且仅有第二无线接入设备下发成功。另外,在第二无线接入设备成功接收到服务器下发的配置信息9之后,第二无线接入设备可以向服务器发送反馈消息,以向服务器反馈已成功接收配置信息9。
706、第三无线接入设备与第二无线接入设备之间的连接断开。
由于第二无线接入设备成功接收到了配置信息9,第二无线接入设备使用配置信息9与其他无线接入设备建连。然而,配置信息9没有成功下发到第一无线接入设备,因此第 一无线接入设备此时只能继续使用配置信息8。第一无线接入设备与第二无线接入设备之间所使用的配置信息不一致,因此第一无线接入设备与第二无线接入设备之间的连接断开。类似地,第三无线接入设备与第二无线接入设备之间的连接也同样断开。
以上步骤702、704-705中,服务器向第一无线接入设备和第三无线接入设备下发的配置信息8和9是相同的。在另一种情形下,服务器向第一无线接入设备和第三无线接入设备下发的用于建立安全连接的配置信息也可以不同,例如步骤704中,服务器向第一无线接入设备下发配置信息9,而步骤705中,服务器向第三无线接入设备下发配置信息9’。
707、第一无线接入设备使用配置信息7与第二无线接入设备建立连接,第三无线接入设备使用配置信息7与第一无线接入设备建立连接。
在第一无线接入设备获知其与第二无线接入设备之间的连接断开之后,第一无线接入设备可以使用存储的配置信息7与第二无线接入设备建立连接。同样地,在第三无线接入设备获知其与第二无线接入设备之间的连接断开之后,第三无线接入设备同样使用存储的配置信息7与第二无线接入设备建立连接。
708、第一无线接入设备向服务器发送消息,以通知服务器第一无线接入设备是使用配置信息7与第二无线接入设备建立连接的。
在第一无线接入设备使用配置信息7与第二无线接入设备建立连接之后,第一无线接入设备可以通过第二无线接入设备重新注册到服务器上,并且向服务器发送消息,将其使用配置信息7与第二无线接入设备建立连接的信息告知服务器。
709、第三无线接入设备向服务器发送消息,以通知服务器第三无线接入设备是使用配置信息7与第一无线接入设备建立连接的。
类似地,在第三无线接入设备使用配置信息7与第一无线接入设备建立连接之后,第三无线接入设备可以通过第一无线接入设备和第二无线接入设备重新注册到服务器上,并且向服务器发送消息,将其使用配置信息7与第一无线接入设备建立连接的信息告知服务器。
710、服务器根据网络拓扑,确定发送通知消息的顺序。
在服务器获取到第一无线接入设备和第三无线接入设备发送的消息之后,服务器可以确定第一无线接入设备和第三无线接入设备均无法与第二无线接入设备建立连接。
由于第三无线接入设备是通过第一无线接入设备与第二无线接入设备连接的,因此,在第一无线接入设备恢复与第二无线接入设备的连接之前,第三无线接入设备是无法与第二无线接入设备恢复连接的。因此,在网络存在多级连接的情况下,服务器可以根据网络拓扑确定无线接入设备之间的连接关系,从而确定无线接入设备之间的处理顺序。
本实施例中,服务器可以确定先向第一无线接入设备发送通知消息,然后再向第三无线接入设备发送通知消息,以使得在第一无线接入设备恢复与第二无线接入设备之间的连接之后,第三无线接入设备再恢复与第一无线接入设备之间的连接。
也就是说,在多级连接的网络架构下,如果存在多级连接的无线接入设备断开连接,服务器可以根据网络拓扑确定无线接入设备之间的连接关系,从而确定无线接入设备的处理顺序。
711、服务器向第一无线接入设备下发通知消息3。
其中,该通知消息3携带有配置信息9,用于指示第一无线接入设备使用配置信息9与第二无线接入设备建立连接。
712、第一无线接入设备使用配置信息9与第二无线接入设备建立连接。
在通知消息3下发成功之后,第一无线接入设备则可以使用通知消息3中的配置信息9重新与第二无线接入设备建立连接。
713、服务器向第三无线接入设备下发通知消息4。
其中,该通知消息3携带有配置信息9,用于指示第三无线接入设备使用配置信息9与第二无线接入设备建立连接。
在一个可能的实施例中,服务器可以是在确定第一无线接入设备使用配置信息9与第二无线接入设备成功建立连接之后,再向第三无线接入设备下发通知消息4。示例性地,在第一无线接入设备使用配置信息9与第二无线接入设备成功建立连接之后,第一无线接入设备可以向服务器反馈其已使用配置信息9成功与第二无线接入设备建立连接,则服务器根据第一无线接入设备的反馈,可以获知第一无线接入设备已经使用配置信息9与第二无线接入设备成功建立连接。当然,也可以是由第二无线接入设备向服务器反馈其已使用配置信息9成功与第一无线接入设备建立连接,则服务器根据第二无线接入设备的反馈,同样可以获知第一无线接入设备已经使用配置信息9与第二无线接入设备成功建立连接。
在另一个可能的实施例中,服务器也可以是在向第一无线接入设备下发通知消息3预设时长之后,再向第三无线接入设备下发通知消息4。示例性地,在服务器向第一无线接入设备下发通知消息3之后,服务器等待10秒,再向第三无线接入设备下发通知消息4。其中,预设时长可以根据网络传输延时以及无线接入设备根据新的配置信息重新建立连接所需的时间而定,本实施例不对该预设时长做具体限定。
714、第三无线接入设备使用配置信息9与第一无线接入设备建立连接。
在通知消息4下发成功之后,第三无线接入设备则可以使用通知消息4中的配置信息9重新与第一无线接入设备建立连接。
为了实现上述实施例,本申请还提供了一种网络设备/服务器。可以参阅图8,图8为本申请实施例提供的一种网络设备/服务器800的结构示意图。
图8所示的网络设备/服务器800尽管示出了某些特定特征,但是本领域的技术人员将从本申请实施例中意识到,为了简洁起见,图8未示出各种其他特征,以免混淆本申请实施例所公开的实施方式的更多相关方面。为此,作为一个限制性的示例,在一些实现方式中,网络设备/服务器800包括一个或多个处理单元(cpu)801、网络接口802、编程接口803、存储器804和一个或多个通信总线805,用于将各种组件互连。
在一些实现方式中,网络接口802除其他用途外,用于在网络系统中和一个或多个其他的网络设备/服务器连接。在一些实现方式中,通信总线805包括互连和控制系统组件之间的通信的电路。存储器804可以包括非易失性存储器,例如,只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器 (erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。存储器804也可以包括易失性存储器,易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。
在一些实现中,存储器804或存储器804的非暂时性计算机可读存储介质存储以下程序、模块和数据结构,或其子集,具体包括操作系统8041、收发单元8042和处理单元8043。
操作系统8041用于处理各种基本系统服务和用于执行与硬件相关的任务的过程。
在一个可能的实施例中,图8所示的具体为网络设备800,该网络设备800例如可以为上述实施例中的第一无线接入设备。该网络设备800中例如可以包括:收发单元8042和处理单元8043;所述处理单元8043,用于根据与第二无线接入设备之间的连接断开,第一无线接入设备使用存储的第一配置信息与所述第二无线接入设备建立连接;所述收发单元8042,用于所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接,从服务器接收第一通知消息;所述处理单元8043,用于所述第一无线接入设备根据所述第一通知消息,使用第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述第一配置信息为所述第一无线接入设备预置的;或者,所述第一配置信息为所述与第二无线接入设备之间的连接断开之前,所述第一无线接入设备通过所述第二无线接入设备而从所述服务器获取的。
可选地,在一种可能的实现方式中,所述第一通知消息中包括所述第二配置信息,所述处理单元8043,用于使用所述第一通知消息中的所述第二配置信息,与所述第二无线接入设备重新建立连接;或者,所述第二配置信息为所述与第二无线接入设备之间的连接断开之前,所述第一无线接入设备通过所述第二无线接入设备而从所述服务器获取的,所述处理单元8043,用于根据所述第一通知消息的指示,使用所述第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述第一无线接入设备从服务器接收所述第一通知消息之前,所述收发单元8042用于通过与所述第二无线接入设备建立的所述连接,向所述服务器发送第一消息,所述第一消息用于通知所述服务器所述第一无线接入设备已接收所述第二配置信息;从所述服务器接收所述第一通知消息,所述处理单元8043用于根据所述第一通知消息的指示,使用已接收的所述第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,根据与所述第二无线接入设备之间的连接已断开预置时长,所述处理单元8043用于使用存储的所述第一配置信息与所述第二无线接入设备建立连接。
可选地,在一种可能的实现方式中,根据与包括所述第二无线接入设备在内的多个无线接入设备之间的连接均断开,所述处理单元8043用于使用存储的第一配置信息与所述第二无线接入设备建立连接。
可选地,在一种可能的实现方式中,所述收发单元8042用于通过与所述第二无线接入设备建立的所述连接,向所述服务器发送第二消息,所述第二消息用于通知所述服务器所述第一无线接入设备是使用所述第一配置信息与所述第二无线接入设备建立连接的。
在一个可能的实施例中,图8所示的具体为服务器800,该服务器800例如可以为上述实施例中的服务器。该服务器800中例如可以包括:收发单元8042和处理单元8043;所述处理单元8043,用于确定第一无线接入设备使用第一配置信息与第二无线接入设备建立连接,所述第一配置信息为所述第一无线接入设备在与所述第二无线接入设备断开连接时使用的;所述收发单元8042,用于通过所述连接,向所述第一无线接入设备发送第一通知消息,其中,所述第一通知消息用于指示所述第一无线接入设备使用第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述第一配置信息为所述第一无线接入设备预置的;或者,所述第一配置信息为所述第一无线接入设备与所述第二无线接入设备的连接断开之前,由所述服务器通过所述第二无线接入设备向所述第一无线接入设备发送的。
可选地,在一种可能的实现方式中,所述第一通知消息中包括所述第二配置信息,所述第一通知消息用于指示所述第一无线接入设备使用所述第一通知消息中的所述第二配置信息与所述第二无线接入设备重新建立连接;或者,在所述第一无线接入设备与所述第二无线接入设备之间的连接断开之前,所述收发单元8042用于通过所述第二无线接入设备向所述第一无线接入设备发送所述第二配置信息;所述第一通知消息用于指示所述第一无线接入设备使用已接收的所述第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述收发单元8042向所述第一无线接入设备发送第一通知消息之前,所述收发单元8042用于接收所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接发送的第一消息,所述第一消息用于通知所述服务器所述第一无线接入设备已接收所述第二配置信息;向所述第一无线接入设备发送第一通知消息,所述第一通知消息用于指示所述第一无线接入设备使用已接收的所述第二配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述收发单元8042,用于向所述第一无线接入设备发送第一通知消息之前,所述服务器接收第二消息,所述第二消息用于通知所述服务器所述第一无线接入设备是使用所述第一配置信息与所述第二无线接入设备建立连接的。
可选地,在一种可能的实现方式中,所述处理单元8043,用于确定第三无线接入设备使用第三配置信息与第二无线接入设备建立连接,所述第三配置信息为所述第三无线接入设备在与所述第二无线接入设备断开连接时使用的;根据所述第一无线接入设备和所述第三无线接入设备在网络拓扑中的位置,确定向所述第一无线接入设备发送所述第一通知消息。
可选地,在一种可能的实现方式中,所述第三无线接入设备通过所述第一无线接入设备与所述第二无线接入设备连接;在所述收发单元8042通过所述连接向所述第一无线接入设备发送第一通知消息之后,所述收发单元8042还用于根据所述第一无线接入设备与所述第二无线接入设备重新建立连接,或者在发送所述第一通知消息预设时长之后,向所述第三无线接入设备发送第二通知消息,所述第二通知消息用于指示所述第三无线接入设备使用第四配置信息与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述处理单元8043用于根据接收的第三消息,确定第三无线接入设备使用第三配置信息与所述第二无线接入设备建立连接,所述第三配置信息为所述第三无线接入设备在与所述第二无线接入设备断开连接时使用的;确定所述第三无线接入设备使用第四配置信息无法与所述第二无线接入设备重新建立连接,所述服务器生成告警信息。
可选地,在一种可能的实现方式中,所述处理单元8043用于根据所述第三无线接入设备与所述第二无线接入设备之间的距离以及所述第二配置信息确定所述第三无线接入设备与所述第二无线接入设备之间的信号强度;根据所述信号强度小于第一阈值,确定所述第三无线接入设备根据所述第四配置信息无法与所述第二无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述处理单元8043确定所述第三无线接入设备根据所述第三配置信息与所述第二无线接入设备建立连接的次数;所述处理单元8043根据所述次数大于第二阈值,确定所述第三无线接入设备根据所述第四配置信息无法与所述第二无线接入设备重新建立连接。
在一个可能的实施例中,图8所示的具体为网络设备800,该网络设备800例如可以为上述实施例中的第二无线接入设备。该网络设备800中例如可以包括:收发单元8042和处理单元8043;所述处理单元8043用于根据存储信息确定允许所述第一无线接入设备使用第一配置信息建立连接,所述第一配置信息为所述第一无线接入设备在与所述第二无线接入设备断开连接时使用的;所述收发单元8042用于使用所述连接向所述第一无线接入设备转发服务器发送的第一通知消息;所述收发单元8042用于从所述第一无线接入设备接收第二配置信息,并根据所述第二配置信息允许所述第一无线接入设备重新建立连接。
可选地,在一种可能的实现方式中,所述存储信息包括第一密钥,所述第一配置信息包括第二密钥;所述处理单元8043用于根据所述第一密钥和所述第二密钥匹配,确定允许所述第一无线接入设备使用第一配置信息建立连接。
可选地,在一种可能的实现方式中,在所述收发单元8042使用所述连接向所述第一无线接入设备转发服务器发送的第一通知消息之前,所述收发单元8042还用于通过所述连接向所述服务器发送第二消息,所述第二消息用于通知所述服务器所述第一无线接入设备是使用所述第一配置信息与所述第二无线接入设备建立连接的。
在各种实现中,网络设备/服务器800用于执行本申请实施例提供的设备连接方法,例如是执行上述图3、图4、图5或图7所示的实施例所对应的设备连接方法。图8示出了在网络设备/服务器800中收发单元8042和处理单元8043的可能实现形式。事实上,收发单元8042和处理单元8043可以是软件模块、硬件模块或软/硬件结合的模块。例如,在其他实现形式中,收发单元8042的功能可以由网络设备/服务器800中的网络接口802执行,处理单元8043的功能则由网络设备/服务器800中的处理器调用存储器中的程序代码而执行。
以上对本申请实施例进行了详细介绍,本申请实施例方法中的步骤可以根据实际需要 进行顺序调度、合并或删减;本申请实施例装置中的模块可以根据实际需要进行划分、合并或删减。
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
应理解,在本申请实施例中,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出 来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备/服务器等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory, ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
Claims (24)
- 一种设备连接方法,其特征在于,所述方法包括:根据与第二无线接入设备之间的连接断开,第一无线接入设备使用存储的第一配置信息与所述第二无线接入设备建立连接;所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接,从服务器接收第一通知消息;所述第一无线接入设备根据所述第一通知消息,使用第二配置信息与所述第二无线接入设备重新建立连接。
- 根据权利要求1所述的方法,其特征在于,所述第一配置信息为所述第一无线接入设备预置的;或者,所述第一配置信息为所述与第二无线接入设备之间的连接断开之前,所述第一无线接入设备通过所述第二无线接入设备而从所述服务器获取的。
- 根据权利要求1或2所述的方法,其特征在于,所述第一无线接入设备根据所述第一通知消息,使用第二配置信息与所述第二无线接入设备重新建立连接,包括:所述第一通知消息中包括所述第二配置信息,所述第一无线接入设备使用所述第一通知消息中的所述第二配置信息,与所述第二无线接入设备重新建立连接;或者,所述第二配置信息为所述与第二无线接入设备之间的连接断开之前,所述第一无线接入设备通过所述第二无线接入设备而从所述服务器获取的,所述第一无线接入设备根据所述第一通知消息的指示,使用所述第二配置信息与所述第二无线接入设备重新建立连接。
- 根据权利要求3所述的方法,其特征在于,所述方法还包括:所述第一无线接入设备从服务器接收所述第一通知消息之前,所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接,向所述服务器发送第一消息,所述第一消息用于通知所述服务器所述第一无线接入设备已接收所述第二配置信息;所述第一无线接入设备根据所述第一通知消息的指示,使用所述第二配置信息与所述第二无线接入设备重新建立连接,包括:所述第一无线接入设备从所述服务器接收所述第一通知消息,所述第一无线接入设备根据所述第一通知消息的指示,使用已接收的所述第二配置信息与所述第二无线接入设备重新建立连接。
- 根据权利要求1至4任意一项所述的方法,其特征在于,所述根据与第二无线接入设备之间的连接断开,第一无线接入设备使用存储的第一配置信息与所述第二无线接入设备建立连接包括:根据与所述第二无线接入设备之间的连接已断开预置时长,所述第一无线接入设备使用存储的所述第一配置信息与所述第二无线接入设备建立连接。
- 根据权利要求1至4任意一项所述的方法,其特征在于,所述根据与第二无线接入设备之间的连接断开,第一无线接入设备使用存储的第一配置信息与所述第二无线接入设备建立连接,包括:根据与包括所述第二无线接入设备在内的多个无线接入设备之间的连接均断开,所述 第一无线接入设备使用存储的第一配置信息与所述第二无线接入设备建立连接。
- 根据权利要求1至6任意一项所述的方法,其特征在于,所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接,从服务器接收第一通知消息之前,所述方法还包括:所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接,向所述服务器发送第二消息,所述第二消息用于通知所述服务器所述第一无线接入设备是使用所述第一配置信息与所述第二无线接入设备建立连接的。
- 一种设备连接方法,其特征在于,包括:服务器确定第一无线接入设备使用第一配置信息与第二无线接入设备建立连接,所述第一配置信息为所述第一无线接入设备在与所述第二无线接入设备断开连接时使用的;服务器通过所述连接,向所述第一无线接入设备发送第一通知消息,其中,所述第一通知消息用于指示所述第一无线接入设备使用第二配置信息与所述第二无线接入设备重新建立连接。
- 根据权利要求8所述的方法,其特征在于,所述第一配置信息为所述第一无线接入设备预置的;或者,所述第一配置信息为所述第一无线接入设备与所述第二无线接入设备的连接断开之前,由所述服务器通过所述第二无线接入设备向所述第一无线接入设备发送的。
- 根据权利要求8所述的方法,其特征在于,所述第一通知消息中包括所述第二配置信息,所述第一通知消息用于指示所述第一无线接入设备使用所述第一通知消息中的所述第二配置信息与所述第二无线接入设备重新建立连接;或者,在所述第一无线接入设备与所述第二无线接入设备之间的连接断开之前,所述服务器通过所述第二无线接入设备向所述第一无线接入设备发送所述第二配置信息;所述第一通知消息用于指示所述第一无线接入设备使用已接收的所述第二配置信息与所述第二无线接入设备重新建立连接。
- 根据权利要求8至10任意一项所述的方法,其特征在于,所述方法还包括:所述服务器向所述第一无线接入设备发送第一通知消息之前,所述服务器接收所述第一无线接入设备通过与所述第二无线接入设备建立的所述连接发送的第一消息,所述第一消息用于通知所述服务器所述第一无线接入设备已接收所述第二配置信息;所述服务器向所述第一无线接入设备发送第一通知消息,所述第一通知消息用于指示所述第一无线接入设备使用已接收的所述第二配置信息与所述第二无线接入设备重新建立连接。
- 根据权利要求8至11任意一项所述的方法,其特征在于,所述方法还包括:所述服务器向所述第一无线接入设备发送第一通知消息之前,所述服务器接收第二消息,所述第二消息用于通知所述服务器所述第一无线接入设备是使用所述第一配置信息与所述第二无线接入设备建立连接的。
- 根据权利要求8至12任意一项所述的方法,其特征在于,所述方法还包括:所述服务器确定第三无线接入设备使用第三配置信息与第二无线接入设备建立连接,所述第三配置信息为所述第三无线接入设备在与所述第二无线接入设备断开连接时使用的;所述服务器根据所述第一无线接入设备和所述第三无线接入设备在网络拓扑中的位置,确定向所述第一无线接入设备发送所述第一通知消息。
- 根据权利要求13所述的方法,其特征在于,所述第三无线接入设备通过所述第一无线接入设备与所述第二无线接入设备连接;在所述服务器通过所述连接向所述第一无线接入设备发送第一通知消息之后,所述方法还包括:所述服务器根据所述第一无线接入设备与所述第二无线接入设备重新建立连接,或者所述服务器在发送所述第一通知消息预设时长之后,向所述第三无线接入设备发送第二通知消息,所述第二通知消息用于指示所述第三无线接入设备使用第四配置信息与所述第二无线接入设备重新建立连接。
- 根据权利要求8至12任意一项所述的方法,其特征在于,所述方法还包括:所述服务器根据接收的第三消息,确定第三无线接入设备使用第三配置信息与所述第二无线接入设备建立连接,所述第三配置信息为所述第三无线接入设备在与所述第二无线接入设备断开连接时使用的;所述服务器确定所述第三无线接入设备使用第四配置信息无法与所述第二无线接入设备重新建立连接,所述服务器生成告警信息。
- 根据权利要求15所述的方法,其特征在于,所述服务器确定所述第三无线接入设备使用第四配置信息无法与所述第二无线接入设备重新建立连接,包括:所述服务器根据所述第三无线接入设备与所述第二无线接入设备之间的距离以及所述第三配置信息确定所述第三无线接入设备与所述第二无线接入设备之间的信号强度;所述服务器根据所述信号强度小于第一阈值,确定所述第三无线接入设备根据所述第四配置信息无法与所述第二无线接入设备重新建立连接。
- 根据权利要求15所述的方法,其特征在于,所述服务器确定所述第三无线接入设备使用第四配置信息无法与所述第二无线接入设备重新建立连接,包括:所述服务器确定所述第三无线接入设备根据所述第三配置信息与所述第二无线接入设备建立连接的次数;所述服务器根据所述次数大于第二阈值,确定所述第三无线接入设备根据所述第四配置信息无法与所述第二无线接入设备重新建立连接。
- 一种设备连接方法,其特征在于,包括:第二无线接入设备根据存储信息确定允许所述第一无线接入设备使用第一配置信息建立连接,所述第一配置信息为所述第一无线接入设备在与所述第二无线接入设备断开连接时使用的;所述第二无线接入设备使用所述连接向所述第一无线接入设备转发服务器发送的第一通知消息;所述第二无线接入设备从所述第一无线接入设备接收第二配置信息,并根据所述第二配置信息允许所述第一无线接入设备重新建立连接。
- 根据权利要求18所述的方法,其特征在于,所述存储信息包括第一密钥,所述第一配置信息包括第二密钥,所述第二无线接入设备根据存储信息确定允许所述第一无线接入设备使用第一配置信息建立连接,包括:所述第二无线接入设备根据所述第一密钥和所述第二密钥匹配,确定允许所述第一无线接入设备使用第一配置信息建立连接。
- 根据权利要求18或19所述的方法,其特征在于,在所述第二无线接入设备使用所述连接向所述第一无线接入设备转发服务器发送的第一通知消息之前,所述方法还包括:所述第二无线接入设备通过所述连接向所述服务器发送第二消息,所述第二消息用于通知所述服务器所述第一无线接入设备是使用所述第一配置信息与所述第二无线接入设备建立连接的。
- 一种网络设备,其特征在于,包括:处理器、存储器;存储器用于存储指令;处理器用于执行存储器中的指令,使得所述网络设备执行如权利要求1至7或18至20任意一项所述的方法。
- 一种服务器,其特征在于,包括:处理器、存储器;存储器用于存储指令;处理器用于执行存储器中的指令,使得所述服务器执行如权利要求8至17任意一项所述的方法。
- 一种芯片,其特征在于,所述芯片应用于网络设备中,所述芯片包括:处理器;所述处理器被配置为执行权利要求1至7或18至20任一项所述的方法中所述网络设备的操作。
- 一种计算机可读存储介质,其特征在于,所述计算机存储介质中存储有计算机可读指令,当该计算机可读指令被处理器执行时实现如权利要求1至20任意一项所述的方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP21828746.4A EP4156848A4 (en) | 2020-06-23 | 2021-06-21 | DEVICE CONNECTION METHOD AND ASSOCIATED APPARATUS |
| US18/069,743 US20230129846A1 (en) | 2020-06-23 | 2022-12-21 | Device connection method and related device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010578997.4A CN113840393B (zh) | 2020-06-23 | 2020-06-23 | 一种设备连接方法及相关设备 |
| CN202010578997.4 | 2020-06-23 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US18/069,743 Continuation US20230129846A1 (en) | 2020-06-23 | 2022-12-21 | Device connection method and related device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2021259184A1 true WO2021259184A1 (zh) | 2021-12-30 |
Family
ID=78963841
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/101165 Ceased WO2021259184A1 (zh) | 2020-06-23 | 2021-06-21 | 一种设备连接方法及相关设备 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20230129846A1 (zh) |
| EP (1) | EP4156848A4 (zh) |
| CN (1) | CN113840393B (zh) |
| WO (1) | WO2021259184A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP4627791A4 (en) * | 2022-12-02 | 2026-03-25 | Alarm Com Inc | RESTORING MULTI-PROTOCOL NETWORK CONNECTION |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116489822A (zh) * | 2023-05-06 | 2023-07-25 | 武汉烽火技术服务有限公司 | 无线mesh网络设备快速重连方法与系统 |
| CN119767439A (zh) * | 2024-12-27 | 2025-04-04 | 长城汽车股份有限公司 | 车辆控制方法、装置、车辆和存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080095059A1 (en) * | 2006-10-20 | 2008-04-24 | Stmicroelectronics, Inc. | System and method for providing an adaptive value of TTL (Time to Live) for broadcast/multicast messages in a mesh network using a hybrid wireless mesh protocol |
| CN101621852A (zh) * | 2009-08-07 | 2010-01-06 | 杭州华三通信技术有限公司 | Mesh网络无线接入点重接入方法及无线接入点设备 |
| US20110080908A1 (en) * | 2009-10-07 | 2011-04-07 | Electronics And Telecommunications Research Institute | Apparatus and method for controlling multicast in multi hop networks |
| CN105163333A (zh) * | 2015-06-18 | 2015-12-16 | 广东欧珀移动通信有限公司 | 一种数据处理方法及装置 |
| CN110035476A (zh) * | 2019-03-22 | 2019-07-19 | 北京星网锐捷网络技术有限公司 | 无线网络控制方法、无线接入点、接入控制器及系统 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9763088B2 (en) * | 2014-12-31 | 2017-09-12 | Ruckus Wireless, Inc. | Mesh network with personal pre-shared keys |
| US11184768B2 (en) * | 2016-10-21 | 2021-11-23 | Comcast Cable Communications, Llc | Methods and systems for automatically connecting to a network |
| CN109831832B (zh) * | 2019-02-01 | 2020-11-06 | 新华三技术有限公司 | 一种防止业务中断的方法及装置 |
-
2020
- 2020-06-23 CN CN202010578997.4A patent/CN113840393B/zh active Active
-
2021
- 2021-06-21 WO PCT/CN2021/101165 patent/WO2021259184A1/zh not_active Ceased
- 2021-06-21 EP EP21828746.4A patent/EP4156848A4/en active Pending
-
2022
- 2022-12-21 US US18/069,743 patent/US20230129846A1/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080095059A1 (en) * | 2006-10-20 | 2008-04-24 | Stmicroelectronics, Inc. | System and method for providing an adaptive value of TTL (Time to Live) for broadcast/multicast messages in a mesh network using a hybrid wireless mesh protocol |
| CN101621852A (zh) * | 2009-08-07 | 2010-01-06 | 杭州华三通信技术有限公司 | Mesh网络无线接入点重接入方法及无线接入点设备 |
| US20110080908A1 (en) * | 2009-10-07 | 2011-04-07 | Electronics And Telecommunications Research Institute | Apparatus and method for controlling multicast in multi hop networks |
| CN105163333A (zh) * | 2015-06-18 | 2015-12-16 | 广东欧珀移动通信有限公司 | 一种数据处理方法及装置 |
| CN110035476A (zh) * | 2019-03-22 | 2019-07-19 | 北京星网锐捷网络技术有限公司 | 无线网络控制方法、无线接入点、接入控制器及系统 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP4156848A4 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP4627791A4 (en) * | 2022-12-02 | 2026-03-25 | Alarm Com Inc | RESTORING MULTI-PROTOCOL NETWORK CONNECTION |
Also Published As
| Publication number | Publication date |
|---|---|
| US20230129846A1 (en) | 2023-04-27 |
| EP4156848A1 (en) | 2023-03-29 |
| CN113840393B (zh) | 2024-07-23 |
| CN113840393A (zh) | 2021-12-24 |
| EP4156848A4 (en) | 2023-11-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20230129846A1 (en) | Device connection method and related device | |
| US9774580B2 (en) | Mesh network with personal pre-shared keys | |
| JP2022502926A (ja) | Ue移行方法、装置、システム、および記憶媒体 | |
| CN104301905B (zh) | 基于选举监督策略的智能家居自组网方法及系统 | |
| EP2739093A1 (en) | Restoration of network access | |
| CN103597798B (zh) | 增强安全电信网络中的高可用性的方法以及包括多个远程节点的电信网络 | |
| US20110296044A1 (en) | Keep-alive hiatus declaration | |
| CN111937424A (zh) | 用于管理完整性保护的技术 | |
| WO2016149908A1 (zh) | 一种终端系统的升级方法、终端及系统 | |
| US10966107B2 (en) | Methods and apparatus for configuring and/or managing communications devices | |
| CN107645517B (zh) | 数据推送方法及装置 | |
| JP2019057905A (ja) | イーサネット(登録商標)スイッチ用のロールベースの自動構成システム及び方法 | |
| CN105684485A (zh) | 用于无线网络的链路恢复的方法及相应设备 | |
| CN104703165A (zh) | 一种处理无线接入的方法、转发设备及网络控制器 | |
| US8925084B2 (en) | Denial-of-service attack protection | |
| CN103763137B (zh) | 一种设备配置连接保护方法、系统及装置 | |
| EP2671348B1 (en) | System and method for providing communication connection resilience | |
| CN101699905A (zh) | 无线智能终端、网管平台及其对无线智能终端的管理方法 | |
| CN108667640B (zh) | 通信方法及设备、网络接入系统 | |
| WO2017000625A1 (zh) | 动态主机配置协议dhcp服务器管理方法及装置 | |
| CN107211385A (zh) | 一种profile下载和激活方法、集成电路卡及系统 | |
| CN118646615A (zh) | 异构设备近端互联方法及物联网设备管理系统 | |
| CN113660734B (zh) | 一种网络设备的连接方法、装置、网络设备和介质 | |
| KR101625399B1 (ko) | 소프트웨어 정의 네트워크에서의 tcp 연결 제어 방법 및 장치 | |
| CN108028773A (zh) | 用于增强包括至少一个池化移动性管理实体组的电信网络的性能的方法、电信网络、移动性管理实体池、程序和计算机程序产品 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21828746 Country of ref document: EP Kind code of ref document: A1 |
|
| ENP | Entry into the national phase |
Ref document number: 2021828746 Country of ref document: EP Effective date: 20221222 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |