A method and apparatus for automatic networking of a kit of routers

By pre-setting the same encryption key in the router kit, the first router to connect to the local area network automatically sends the key to the main router, realizing automatic network formation of the router kit. This solves the problem of cumbersome operation in existing technologies and improves user experience and data transmission security.

CN115701160BActive Publication Date: 2026-07-03NOKIA TECHNOLOGIES OY
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NOKIA TECHNOLOGIES OY
Filing Date
2021-07-26
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

The process of setting up a network with existing router kits is cumbersome, requiring users to manually configure each router sequentially, resulting in a poor user experience.

Method used

The routers in the kit are pre-configured with the same encryption key. The first router to successfully connect to the local area network sends the encryption key to the main router. When subsequent routers automatically connect, the main router uses this key to verify their identity, thus achieving automatic network setup without user intervention.

Benefits of technology

It enhances the convenience and user experience of setting up a router suite, simplifies the multi-router access process through automation, and improves the security and reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115701160B_ABST
    Figure CN115701160B_ABST
Patent Text Reader

Abstract

This application provides a method and apparatus for automatic network formation of a set of routers, relating to the field of communication technology, to solve the problem that routers cannot automatically access the network in scenarios where a set of routers is connected to an existing router for network formation. The method includes: a first router sending a first encryption key to a master router, wherein the first router is a router in a first set of routers that has successfully accessed the local area network, and multiple routers in the first set of routers are configured with the same first encryption key, which is used by the master router to verify the identity of other routers in the first set of routers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a method and apparatus for automatic networking of packaged routing systems. Background Technology

[0002] As users' demands for Wireless Fidelity (Wi-Fi) experiences continue to increase, router kits containing multiple routers have appeared on the market. The multiple routers in the kit can form a multi-router network, thereby expanding the Wi-Fi signal coverage and improving the Wi-Fi experience.

[0003] In some scenarios, users may want to connect multiple routers from a router kit to an existing router, so that the multiple routers in the router kit and the existing router form a local area network, thereby expanding the coverage of the Wi-Fi signal.

[0004] However, the current setup process for connecting the pre-installed routers to existing routers is cumbersome, requiring users to manually configure each router in the pre-installed router set sequentially, resulting in a poor user experience. Summary of the Invention

[0005] This application provides a method and apparatus for automatic network formation of a packaged router, which solves the problem in the prior art that the router cannot automatically access the network in the scenario where a packaged router is connected to an existing router for network formation.

[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:

[0007] In a first aspect, a method for automatic networking of a set of routers is provided, applied to a first set of routers. The method includes: a first router sending a first encryption key to a master router, wherein the first router is a router in the first set of routers that has successfully accessed the local area network, and multiple routers in the first set of routers are configured with the same first encryption key, and the first encryption key is used by the master router to verify the identity of other routers in the first set of routers.

[0008] In the above technical solution, the first set of routers includes at least one router, and at least one router is pre-configured with the same first encryption key. The first router in the first set of routers that has successfully connected to the local area network can send the first encryption key to the main router. Thus, when the user needs to connect other routers in the first set of routers to the local area network, the main router can automatically verify the identity of the other routers in the first set of routers based on the obtained first encryption key. This realizes that other routers in the same set of routers can automatically complete the networking process without user intervention, thereby improving the user experience.

[0009] In one implementation, the method further includes: a second router sending a first message to the master router, wherein the second router is a router in the first set of routers, and the first message is generated based on the first encryption key; the second router receiving a second message from the master router, wherein the second message is used to indicate that the master router has successfully verified the identity of the second router.

[0010] In the above possible implementations, when a user needs to connect the second router in the first router set to the local area network (LAN), the second router can automatically send a first message to the main router after powering on, requesting the main router in the LAN to automatically verify the identity of the second router. Since the main router has already obtained the first encryption key of the first router in the first router set that first connected to the LAN, the main router can automatically and successfully authenticate the second router based on the first encryption key, without requiring manual confirmation or configuration from the user, thus achieving automatic network setup.

[0011] In one embodiment, before the second router sends the first message to the main router, the method further includes: the second router receiving a random number broadcast by the main router; and the second router encrypting the random number according to the first encryption key to obtain the first message.

[0012] The above-described possible implementation involves the main router broadcasting a random number. The second router then encrypts the received random number using a first encryption key to generate a first access request message. This allows the main router to automatically verify the second router's identity based on the first message, ensuring the security of routers accessing the network. Furthermore, the main router can confirm that the decrypted random number was generated by itself, further guaranteeing the security of automatic access and improving the user experience.

[0013] In one embodiment, the method further includes: the second router and the main router performing key negotiation to determine a second encryption key; the second router receiving network parameters from the main router and decrypting the network parameters according to the second encryption key; and the second router successfully accessing the main router based on the decrypted network parameters.

[0014] In the above possible implementation, after the main router successfully verifies the identity of the second router, it can negotiate an encryption key with the second router. This encryption key can be used to ensure the security of communication data such as network parameters transmitted between the main router and the second router, and improve the reliability of data transmission.

[0015] In one implementation, before the first router sends a first encryption key to the master router, the method further includes: the first router sending a third message to the master router, the third message being used to request access to the master router; and the first router receiving a fourth message from the master router, the fourth message being used to indicate that the first router is allowed to access the master router.

[0016] In the above possible implementation, before the first router connects to the local area network, it needs to send a third message requesting access to the main router. The main router, upon receiving the user's confirmation instruction, can send a fourth message allowing access to the first router. This enables the manual connection of the first router in the router suite, facilitating the access of other routers in the subsequent router suite and improving the flexibility of the local area network.

[0017] In one embodiment, the method further includes: the first router and the main router performing key negotiation to determine a third encryption key; the first router receiving network parameters from the main router and decrypting the network parameters according to the third encryption key; and the first router successfully accessing the main router based on the decrypted network parameters.

[0018] In the above possible implementation, after the main router successfully verifies the identity of the first router, it can negotiate an encryption key with the first router. This encryption key can be used to ensure the security of communication data such as network parameters transmitted between the main router and the first router, and improve the reliability of data transmission.

[0019] Secondly, a method for automatic networking of a set of routers is provided, applied to a local area network (LAN) communication system. The method includes: a first router sending a first encryption key to a master router, wherein the first router is a router that has successfully accessed the LAN in a first set of routers, and multiple routers in the first set of routers are configured with the same first encryption key; the first encryption key is used by the master router to verify the identity of other routers in the first set of routers; and the master router receiving the first encryption key.

[0020] In one embodiment, the method further includes: a second router sending a first message to the master router, wherein the second router is a router in the first set of routers, and the first message is generated based on the first encryption key; the master router processing the first message based on the first encryption key to verify the identity of the second router; and the master router sending a second message to the second router, wherein the second message indicates that the master router has successfully verified the identity of the second router.

[0021] In one implementation, before the second router sends a first message to the main router, the method further includes: the main router generating a random number and broadcasting the random number; the second router receiving the random number; the second router sending the first message to the main router specifically includes: the second router encrypting the random number according to the first encryption key to obtain the first message, and sending the first message to the main router; the main router sending a second message to the second router specifically includes: if the main router determines that the random number obtained after decrypting the first message based on the first encryption key is equal to the random number generated and broadcast by the main router, then the main router sends the second message to the second router.

[0022] In one embodiment, the method further includes: the second router and the main router performing key negotiation to determine a second encryption key; the main router sending network parameters to the second router, wherein the network parameters are encrypted according to the second encryption key; the second router decrypting the network parameters according to the second encryption key, and successfully accessing the main router according to the decrypted network parameters.

[0023] In one implementation, before the first router sends the first encryption key to the master router, the method further includes: the first router sending a third message to the master router, the third message being used to request access to the master router; the master router responding to the third message prompting the user to confirm whether to allow the first router to access; the master router receiving the user's confirmation access instruction and sending a fourth message to the first router, the fourth message being used to instruct the master router to allow the first router to access the master router.

[0024] In one embodiment, the method further includes: the first router and the main router performing key negotiation to determine a third encryption key; the main router sending network parameters to the first router, wherein the network parameters are encrypted according to the third encryption key; the first router decrypting the network parameters according to the third encryption key, and successfully accessing the main router according to the decrypted network parameters.

[0025] Thirdly, a method for automatic networking of a set of routers is provided, applied to a main router. The method includes: the main router receiving a first encryption key from a first router, wherein the first router is a router in a first set of routers that has successfully accessed the local area network, and multiple routers in the first set of routers are configured with the same first encryption key. The first encryption key is used by the main router to verify the identity of other routers in the first set of routers.

[0026] In one embodiment, the method further includes: receiving a first message from a second router, wherein the second router is a router in the first set of routes, and the first message is generated based on the first encryption key; processing the first message based on the first encryption key to verify the identity of the second router; and sending a second message to the second router, wherein the second message is used to indicate that the master router has successfully verified the identity of the second router.

[0027] In one implementation, before receiving the first message from the second router, the method further includes: generating a random number and broadcasting the random number; sending a second message to the second router, specifically including: if the main router determines that the random number obtained after decrypting the first message based on the first encryption key is equal to the random number generated and broadcast by the main router, then the main router sends the second message to the second router.

[0028] In one embodiment, the method further includes: performing key negotiation with the second router to determine a second encryption key; and sending network parameters to the second router, wherein the network parameters are encrypted according to the second encryption key.

[0029] In one implementation, before receiving a first encryption key from a first router, the method further includes: receiving a third message from the first router, the third message being used to request access to the main router; in response to the third message, prompting a user to confirm whether to allow the first router to access; receiving a confirmation access instruction from the user, and sending a fourth message to the first router, the fourth message being used to instruct the main router to allow the first router to access the main router.

[0030] In one embodiment, the method further includes: performing key negotiation with the first router to determine a third encryption key; and sending network parameters to the first router, wherein the network parameters are encrypted according to the third encryption key.

[0031] Fourthly, a method for automatic networking of a set of routers is provided, applied to a second router. The method includes: the second router generating a first message, wherein the second router is a router in a first set of routers, multiple routers in the first set of routers are configured with the same first encryption key, the first message is generated after encryption processing based on the first encryption key, the first encryption key is used by the main router to verify the identity of the second router; and sending the first message to the main router.

[0032] In one embodiment, the method further includes: receiving a second message from the master router, wherein the second message is used to indicate that the master router has successfully verified the identity of the second router.

[0033] In one implementation, before the second router generates the first message, the method further includes: receiving a random number broadcast by the main router; the second router generates the first message by: encrypting the random number according to the first encryption key to obtain the first message.

[0034] In one embodiment, the method further includes: negotiating a key with the main router to determine a second encryption key; receiving network parameters from the main router and decrypting the network parameters according to the second encryption key; and successfully accessing the main router according to the decrypted network parameters.

[0035] Fifthly, a suite of routers is provided, the suite of routers including a first router, the first router being used to send a first encryption key to a main router, wherein the first router is a router in the suite of routers that has successfully accessed the local area network, and multiple routers in the suite of routers are configured with the same first encryption key, the first encryption key being used by the main router to verify the identity of other routers in the suite of routers.

[0036] In one implementation, the suite routing further includes a second router: the second router is configured to send a first message to the main router, wherein the second router is a router in the suite routing, and the first message is generated based on the first encryption key; the second router is also configured to receive a second message from the main router, wherein the second message is configured to indicate that the main router has successfully verified the identity of the second router.

[0037] In one implementation, the second router is further configured to receive a random number broadcast by the main router; the second router is configured to encrypt the random number according to the first encryption key to obtain the first message.

[0038] In one embodiment, the second router is further configured to perform key negotiation with the main router to determine a second encryption key; the second router is configured to receive network parameters from the main router and decrypt the network parameters according to the second encryption key; the second router is configured to successfully access the main router according to the decrypted network parameters.

[0039] In one implementation, the first router is further configured to send a third message to the main router, the third message being a request to access the main router; the first router is further configured to receive a fourth message from the main router, the fourth message being an indication that the first router is permitted to access the main router.

[0040] In one embodiment, the first router is further configured to perform key negotiation with the main router to determine a third encryption key; the first router is configured to receive network parameters from the main router and decrypt the network parameters according to the third encryption key; the first router is configured to successfully access the main router according to the decrypted network parameters.

[0041] Sixthly, a communication device is provided, the communication device being used to perform actions performed by a main router, the communication device including a transceiver module, the transceiver module being used to receive a first encryption key from a first router, wherein the first router is a router in a first set of routers that has successfully accessed a local area network, multiple routers in the first set of routers are configured with the same first encryption key, and the first encryption key is used by the communication device to verify the identity of other routers in the first set of routers.

[0042] In one embodiment, the transceiver module is further configured to receive a first message from a second router, wherein the second router is a router in the first set of routers, and the first message is generated based on the first encryption key; the communication device further includes a processing module, which is configured to process the first message based on the first encryption key to verify the identity of the second router; the transceiver module is further configured to send a second message to the second router, wherein the second message is used to indicate that the communication device has successfully verified the identity of the second router.

[0043] In one embodiment, the processing module is further configured to generate a random number and broadcast the random number; if the processing module determines that the random number obtained after decrypting the first message based on the first encryption key is equal to the random number generated and broadcast by the communication device, then the transceiver module is further configured to send the second message to the second router.

[0044] In one embodiment, the processing module is further configured to perform key negotiation with the second router to determine a second encryption key; the transceiver module is further configured to send network parameters to the second router, wherein the network parameters are encrypted according to the second encryption key.

[0045] In one embodiment, the transceiver module is further configured to receive a third message from the first router, the third message being used to request access to the communication device; the processing module is further configured to respond to the third message by prompting the user to confirm whether to allow the first router to access; the transceiver module is further configured to receive the user's confirmation access command and send a fourth message to the first router, the fourth message being used to instruct the communication device to allow the first router to access the communication device.

[0046] In one implementation, the processing module is further configured to perform key negotiation with the first router to determine a third encryption key; the transceiver module is further configured to send network parameters to the first router, wherein the network parameters are encrypted according to the third encryption key.

[0047] In a seventh aspect, a communication device is provided, the communication device being used to execute an action of a second route execution, the communication device including a processing module and a transceiver module, the processing module being used to generate a first message, wherein the communication device is a router in a first set of routes, multiple routers in the first set of routes are configured with the same first encryption key, the first message is generated after encryption processing according to the first encryption key, the first encryption key being used by the main route to verify the identity of the second router; the transceiver module is used to send the first message to the main route.

[0048] In one embodiment, the transceiver module is further configured to receive a second message from the master router, wherein the second message is configured to indicate that the master router has successfully verified the identity of the communication device.

[0049] In one implementation, the transceiver module is further configured to receive a random number broadcast by the main router; the processing module is specifically configured to encrypt the random number according to the first encryption key to obtain the first message.

[0050] In one implementation, the processing module is further configured to perform key negotiation with the main router to determine a second encryption key; the transceiver module is further configured to receive network parameters from the main router and decrypt the network parameters according to the second encryption key; the processing module is further configured to successfully access the main router according to the decrypted network parameters.

[0051] Eighthly, a communication apparatus is provided, the communication apparatus comprising at least one processor; at least one memory for storing at least one processor-executable instruction; wherein the at least one processor is configured to execute the instruction to implement the method as described in any one of the first aspects above.

[0052] A ninth aspect provides a communication apparatus comprising at least one processor; at least one memory for storing at least one processor-executable instruction; wherein the at least one processor is configured to execute the instruction to implement the method as described in any one of the second aspects above.

[0053] A tenth aspect provides a communication apparatus comprising at least one processor; at least one memory for storing at least one processor-executable instruction; wherein the at least one processor is configured to execute the instruction to implement the method as described in any one of the third aspects above.

[0054] Eleventh aspect, a communication device is provided, the communication device comprising at least one processor; at least one memory for storing at least one processor-executable instruction; wherein the at least one processor is configured to execute the instruction to implement the method as described in any one of the fourth aspects above.

[0055] In a twelfth aspect, a computer-readable storage medium is provided, the computer-readable storage medium including a computer program that, when run on a computer, causes the computer to perform the method as described in any one of the first aspects above.

[0056] In a thirteenth aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising a computer program that, when executed on a computer, causes the computer to perform the method as described in any one of the second aspects above.

[0057] In a fourteenth aspect, a computer-readable storage medium is provided, the computer-readable storage medium including a computer program that, when run on a computer, causes the computer to perform the method as described in any one of the third aspects above.

[0058] In a fifteenth aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising a computer program that, when executed on a computer, causes the computer to perform the method as described in any one of the fourth aspects above.

[0059] In a sixteenth aspect, a computer program product is provided that, when run on a communication device, causes the communication device to perform the method as described in any one of the first aspects above.

[0060] In a seventeenth aspect, a computer program product is provided that, when the computer program product is run on a communication device, causes the communication device to perform the method as described in any one of the second aspects above.

[0061] Eighteenth aspect: A computer program product is provided that, when the computer program product is run on a communication device, causes the communication device to perform the method as described in any one of the third aspects above.

[0062] In a nineteenth aspect, a computer program product is provided that, when the computer program product is run on a communication device, causes the communication device to perform the method as described in any one of the fourth aspects above.

[0063] In a twentieth aspect, a communication system is provided, the communication system comprising a main router and a first set of routers, wherein the first router is used to send a first encryption key to the main router, wherein the first router is a router in the first set of routers that has successfully accessed a local area network, and multiple routers in the first set of routers are configured with the same first encryption key; the first encryption key is used by the main router to verify the identity of other routers in the first set of routers; and the main router is used to receive the first encryption key.

[0064] In one implementation, a second router is used to send a first message to the main router, wherein the second router is a router in the first set of routers, and the first message is generated based on the first encryption key; the main router processes the first message based on the first encryption key to verify the identity of the second router; the main router sends a second message to the second router, wherein the second message is used to indicate that the main router has successfully verified the identity of the second router.

[0065] In one implementation, the master router is further configured to generate a random number and broadcast the random number; the second router is configured to receive the random number; the second router is configured to encrypt the random number according to the first encryption key to obtain the first message, and send the first message to the master router; if the master router determines that the random number obtained after decrypting the first message based on the first encryption key is equal to the random number generated and broadcast by the master router, then the master router is configured to send the second message to the second router.

[0066] In one implementation, the second router is used to perform key negotiation with the main router to determine a second encryption key; the main router is used to send network parameters to the second router, wherein the network parameters are encrypted according to the second encryption key; the second router is used to decrypt the network parameters according to the second encryption key, and successfully access the main router according to the decrypted network parameters.

[0067] In one implementation, a first router is configured to send a third message to the main router, the third message being a request to access the main router; the main router responds to the third message by prompting the user to confirm whether to allow the first router to access; the main router is configured to receive the user's confirmation access instruction and send a fourth message to the first router, the fourth message being an indication to the main router to allow the first router to access the main router.

[0068] In one implementation, the first router is further configured to perform key negotiation with the main router to determine a third encryption key; the main router is configured to send network parameters to the first router, wherein the network parameters are encrypted according to the third encryption key; the first router is configured to decrypt the network parameters according to the third encryption key, and successfully access the main router according to the decrypted network parameters.

[0069] It is understood that any of the routing kits, communication devices, communication systems, computer-readable storage media, and computer program products provided above can be implemented by the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here. Attached Figure Description

[0070] Figure 1 A flowchart illustrating a manual router access method;

[0071] Figure 2 This is a flowchart illustrating an automatic router access method.

[0072] Figure 3 A network architecture diagram of a communication system provided in an embodiment of this application;

[0073] Figure 4 A system architecture diagram of a communication device provided in this application embodiment;

[0074] Figure 5 A flowchart illustrating an automatic networking method for packaged routing provided in this application embodiment;

[0075] Figures 6-8 A network topology for a communication system provided in this application embodiment. Figures 1 to 3 ;

[0076] Figure 9 This is a schematic diagram of the composition of a communication device provided in an embodiment of this application;

[0077] Figure 10 This is a schematic diagram illustrating the composition of a packaged routing system provided in an embodiment of this application. Detailed Implementation

[0078] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more.

[0079] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0080] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0081] Wi-Fi, also known as a "wireless hotspot," is currently widely used in various electronic products, such as personal computers, game consoles, MP3 players, smartphones, tablets, printers, laptops, and other peripheral devices that can access the internet wirelessly.

[0082] This application's embodiments are applicable to Local Area Network (LAN) scenarios, especially Wireless Local Area Network (WLAN) scenarios, and can be applied to IEEE 802.11 system standards, such as 802.11a / b / g, 802.11n, 802.11ac, 802.11ax, or their next-generation standards, such as 802.11be or even later. Alternatively, this application's embodiments can also be applied to WLAN systems such as Internet of Things (IoT) networks or Vehicle-to-Everything (V2X) networks. This application's embodiments are also applicable to LANs using power line communication (PLC).

[0083] First, a brief introduction to the technologies and terminology involved in this application will be given.

[0084] (1) Local Area Network (LAN): A LAN is a computer communication network that uses communication technology to interconnect computer devices, enabling them to communicate with each other and share resources. Terminal devices in a LAN can connect to the router in the LAN via wired or wireless connections, thereby connecting to network devices such as Ethernet or base stations.

[0085] (2) Master Router: Routers in a local area network (LAN) can include master routers and slave routers. Routers in a LAN can be connected to each other via Wi-Fi, powerline, or wired connections.

[0086] The main router is primarily used for managing the access of other secondary routers in the LAN network, as well as controlling operations such as sending network parameters to the secondary routers. During LAN setup, users first need to configure the main router, and then use it to authenticate and manage the secondary routers, enabling other secondary routers to access the network.

[0087] The user's configuration process for the main router can be implemented with reference to existing related technologies, and this application does not impose specific limitations on it.

[0088] In addition, both the master router and the slave router can enable terminal devices within their respective signal coverage areas to access and transmit communication.

[0089] (3) Secondary Router: Also known as an auxiliary router, it can be mounted under the primary router and can be used to enhance the signal strength and coverage of the LAN network. Terminal devices can access the LAN network through the secondary router.

[0090] Specifically, the detailed process of accessing the LAN network via a router can be found in the "I. Manual Router Access Method" section below, and will not be repeated here.

[0091] (4) Packaged Routing: Also known as multi-router package, it is a package consisting of multiple routers produced by the same manufacturer. A packaged routing system can include multiple identical routers, such as 2 or 3 routers.

[0092] It's important to note that while multiple routers within a single package share the same pre-configured key, different packages have different pre-configured keys. This distinguishes packaged routing from individual routers that are not part of a package. If a user purchases a packaged router and configures one of the routers within the package as the master router for that LAN, then the other routers within the package can access that LAN as slave routers.

[0093] Specifically, please refer to the detailed description in the "II. Automatic Router Access Method" section below. By completing the parameter synchronization process through the preset key, it is very convenient to connect to the main router and realize the automatic networking of the routers in the kit.

[0094] In some scenarios, users may want to connect a router as a slave router to an existing router in their LAN network. This slave router can be a standalone router or one of the routers in a router suite. This allows the slave router to form a local area network (LAN) with the existing routers in the LAN.

[0095] Next, we will briefly introduce the current methods of manual router connection and automatic router connection upon power-up in LAN networks.

[0096] I. Manual Router Connection Method

[0097] After the main router in the LAN network is configured, users can manually configure other secondary routers to successfully connect to the LAN network. These secondary routers can be standalone routers or part of a router suite.

[0098] In some embodiments, when multiple routers within a package are connected to the LAN network as slave routers, the user can configure the network for each router in the package individually.

[0099] Specifically, the manual connection process can be as follows: Figure 1 As shown in the diagram. This implementation may include a master route and a slave route.

[0100] 101: Send an authentication request message from the router to the main router.

[0101] After a slave router is powered on, it can automatically send an authentication request message to the master router in the network. In one implementation, the slave router can broadcast the authentication request message, so that routing devices within its signal coverage area can receive the authentication request message.

[0102] Optionally, the authentication request message may include the device name or other information from the router.

[0103] 102: After receiving the authentication request message from the slave router, the master router prompts the user to confirm the slave router access.

[0104] After receiving the authentication request message from the slave router, the master router prompts the user to manually confirm whether to allow the slave router to access the network.

[0105] In one implementation, the main router can prompt the user to manually confirm via voice prompts, application message notifications, or indicator lights illuminating or flashing. For example, a notification message can be displayed via an application (APP) installed on the user's smartphone that manages network devices, prompting the user to manually confirm the access settings of the secondary router.

[0106] Optionally, users can manually confirm via a button, such as a confirmation button on the main router or a secondary router. Alternatively, they can confirm via voice interaction or through an app by inputting a command to allow the secondary router to access the network. This application does not specifically limit the above-mentioned prompting methods and user confirmation methods.

[0107] 103: After receiving the user's confirmation command, the master router sends an access confirmation message to the slave router.

[0108] 104: The router negotiates a key with the master router to determine the encryption key.

[0109] In one implementation, the key negotiation process may include: the slave router sending a key negotiation request to the master router, wherein the key negotiation request carries the slave router's encryption algorithm. Then, the master router determines a common encryption algorithm based on its own encryption algorithm and the slave router's encryption algorithm, generates an encryption key, and sends the encryption key back to the slave router.

[0110] 105: The master router sends encrypted network parameters to the slave router.

[0111] Among them, network parameters can be local area network login accounts and login passwords, etc.

[0112] For example, if the local area network is a wireless local area network (WLAN), the network parameters can be Wi-Fi network parameters, which may include parameters such as the Wi-Fi name and Wi-Fi password.

[0113] In one implementation, the master router can encrypt the network parameters according to the encryption key negotiated in step 104, and then send the encrypted network parameters to the slave router.

[0114] The router can decrypt the network parameters using the encryption key negotiated in step 104, and then access the main router's network based on the network parameters. This allows the router and the main router to form a local area network, and subsequent terminal devices can communicate normally through the router.

[0115] The above-mentioned manual router access method requires users to manually confirm or configure the access every time a new router is connected, which is cumbersome and has poor usability.

[0116] On the other hand, based on the aforementioned characteristics of packaged routers, the multiple routers in the package are configured with the same pre-set key. However, this method fails to utilize this pre-set key and fails to truly leverage the convenience of packaged router networking, making it no different for users to purchase packaged routers from users purchasing multiple routers that are not part of the package.

[0117] II. Automatic Router Connection Method

[0118] The automatic router networking mode is suitable for the following scenario: after router A1 in a router set has been manually configured for access, router A1 acts as the main router for the LAN network. In this case, the user needs to connect another router from the same router set (e.g., router A2) to the same LAN network. The following automatic router access configuration method successfully connects multiple routers from the same router set to the LAN network automatically.

[0119] Specifically, the automatic access process can be as follows: Figure 2 As shown. Among them, the router package 1 can include at least router A1 and router A2. The same encryption key is preset in the same router package, that is, router A1 and router A2 in the router package 1 are preset with the same encryption key.

[0120] 201: Router A2 sends an authentication request message using a pre-configured key.

[0121] Optionally, the authentication request message may include the device name of router A2 or other information.

[0122] In one implementation, the authentication request message is broadcast, meaning that routing devices within the signal coverage area can receive it. However, the authentication request message is encrypted using a preset key, and only routing devices with the same preset encryption key can successfully decrypt and obtain the authentication request message.

[0123] Since multiple routers in the same router suite have the same encryption key, while different router suites have different encryption keys, only other routers in the same router suite 1 as router A2 can successfully decrypt and obtain the authentication request message.

[0124] 202: Router A1 decrypts the authentication request message using the preset key, and sends an authentication success message to router A2.

[0125] Router A1 successfully decrypts the authentication request message using the preset key, then generates an authentication success message and sends it to router A2.

[0126] 203: Router A1 and Router A2 negotiate a key to determine the encryption key.

[0127] 204: Router A1 sends encrypted network parameters to router A2.

[0128] The process of router A1 negotiating a key with router A2 and sending network parameters to router A2 can be referred to the description in the aforementioned implementation method, and will not be repeated here.

[0129] The automatic router access method described above only applies to scenarios where other routers in the same router suite are automatically connected to the network and are the main router in the local area network. When a new router suite is added to the network, such as router suite 2 needing to access the network, router suite 2 cannot automatically access the network because its preset key is different from that of router suite 1. The user still needs to manually confirm or configure the access of each router in router suite 2 one by one, which is cumbersome and results in a poor user experience.

[0130] To address the cumbersome networking process described above, this application provides a method for automatic networking of a suite of routers. This method is applicable to scenarios where users need to connect at least one router in a suite of routers to an existing router for networking. The method involves the first router in the suite of routers to access the network reporting a pre-configured key to the main router, thereby enabling the main router to automatically authenticate other routers in the same suite of routers and achieve automatic router access.

[0131] Using the implementation method provided in this application, when a user needs to use multiple routers in the packaged router to access an existing router in the LAN network for networking, the user only needs to manually configure one router in the packaged router, and the other routers in the packaged router can automatically complete the configuration. This reduces the number of user operations, simplifies the configuration process, and improves the user experience.

[0132] Next, we will briefly introduce the implementation environment and application scenarios of the embodiments of this application.

[0133] This application provides a LAN communication system applicable to embodiments of this application. The LAN communication system includes at least two access points (APs). For example, an AP can specifically be a router, such as... Figure 3 As shown, the LAN communication system includes at least one master router B and at least one slave router. The at least one slave router can be either router A1 or router A2 from the same router suite.

[0134] The AP involved in this application can be a device deployed in a wireless communication network, capable of providing wireless communication functions for its associated terminal devices. It can be mainly deployed in homes, buildings, and parks, with a typical coverage radius of tens to hundreds of meters; it can also be deployed outdoors. The head node among multiple APs acts as a bridge connecting wired and wireless networks, its main function being to network clients in various wireless networks and then connect the wireless networks to the Internet. Specifically, in a WLAN network, the AP can be a router, gateway, repeater, communication server, switch, or bridge, etc., equipped with a Wi-Fi chip.

[0135] It should be noted that the embodiments in this application are described using routers as examples only, and do not limit the scope of application of this application.

[0136] Optionally, embodiments of this application Figure 3 Each network element in the network can be a functional module within an AP device. It is understood that the functional module can be a component in a hardware device, such as a communication chip or communication component in the AP, or a software functional module running on hardware, or a virtualized function instantiated on a platform (e.g., a cloud platform).

[0137] For example, Figure 3 Each network element in the network can be accessed through Figure 4 This is achieved through the communication device 400. Figure 4 The diagram shows a hardware structure of a communication device applicable to embodiments of this application. The communication device 400 may include at least one processor 401, a communication line 402, a memory 403, and at least one communication interface 404.

[0138] The processor 401 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0139] Communication line 402 may include a path for transmitting information between the aforementioned components, such as a bus.

[0140] Communication interface 404 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet interfaces, radio access network (RAN) interfaces, wireless local area network (WLAN) interfaces, etc.

[0141] The memory 403 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via communication line 402. The memory may also be integrated with the processor. The memory provided in this embodiment of the application is generally non-volatile. The memory 403 is used to store computer execution instructions involved in the scheme of this application and is controlled by the processor 401 for execution. The processor 401 is used to execute computer execution instructions stored in the memory 403, thereby implementing the method provided in the embodiments of this application.

[0142] Optionally, the computer execution instructions in the embodiments of this application may also be referred to as application code, and the embodiments of this application do not specifically limit this.

[0143] In a specific implementation, as one example, processor 401 may include one or more CPUs, for example... Figure 4 CPU0 and CPU1 in the CPU.

[0144] In a specific implementation, as one example, the communication device 400 may include multiple processors, such as... Figure 4 Processors 401 and 407 are described herein. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor here may refer to one or more devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).

[0145] In a specific implementation, as one embodiment, the communication device 400 may further include an output device 405 and an input device 406. The output device 405 communicates with the processor 401 and can display information in various ways. For example, the output device 405 may be a liquid crystal display (LCD), a light-emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector, etc. The input device 406 communicates with the processor 401 and can receive user input in various ways. For example, the input device 406 may be a mouse, keyboard, touchscreen device, or sensing device, etc.

[0146] Combination Figure 3 As shown, this method can be applied to, for example... Figure 3 The LAN network shown is a primary router, which can be router B. Router B can be a single, independent router or one of the routers in a router suite; this application does not impose any restrictions on this. The LAN network also includes a router suite 1, which includes at least router A1 and router A2.

[0147] like Figure 5 As shown, the method may specifically include:

[0148] 510: After successfully connecting to the LAN network, router A1 sends the first encryption key to router B.

[0149] It should be noted that the first encryption key can also be called the preset key. It is the preset key of the router in the router package 1. That is, multiple routers included in the router package 1 are configured with the same first encryption key. For example, router A1 and router A2 are both configured with the same first encryption key.

[0150] The process of router A1 successfully accessing the network can refer to the process described in steps 301-305 above, i.e., the method of manually connecting the router to the network. Specifically, before step 510, it may also include:

[0151] 1: Router A1 sends an authentication request message to Router B.

[0152] 2: After receiving the authentication message from router A1, router B can prompt the user to confirm the access of router A1.

[0153] 3: After receiving the user's confirmation command, router B sends an access confirmation message to router A1.

[0154] 4: Router A1 and Router B negotiate a key to determine the third encryption key.

[0155] 5: Router B sends encrypted network parameters to Router A1.

[0156] Router A1 can then obtain the encrypted network parameters, decrypt the network parameters using the third encryption key determined through key negotiation, and then access the LAN network of router B based on the decrypted network parameters.

[0157] In some implementations, router A1 can use the third encryption key determined by the key negotiation between router A1 and router B in step 514 to encrypt the first encryption key sent to router B in step 510.

[0158] The preset key (i.e. the first encryption key) reported by router A1 to router B is a factory-preset key that is consistent across multiple routers in the packaged router. In other words, routers A1 and A2 in packaged router 1 are all pre-configured with the same preset key.

[0159] For example, the preset key (i.e. the first encryption key) of router A1 included in the package router 1 can be K1, and the third encryption key determined by router A1 and router B through key negotiation can be K2. In step 510, router A1 can encrypt K1 with K2 and then send the K1 encrypted with K2 to router B.

[0160] Correspondingly, after receiving and decrypting the data, router B obtains and saves the preset key of router A1 (i.e., the first encryption key).

[0161] In some embodiments, router B can store a one-to-one pair of package route numbers and corresponding preset keys, so that router B can subsequently find the corresponding preset key based on the package route number. For example, if package route 1 is numbered 00101 and its preset key is K1, then router B can record that the preset key corresponding to package route number 00101 is K1. This facilitates the lookup of the preset key during subsequent router authentication.

[0162] 520: Router A2 sends the first message to Router B.

[0163] Specifically, the first message can be an authentication request message, which is used by router A2 to request identity verification and network access from the main router, i.e., router B.

[0164] Router A2 and Router A1 are both routers in the Router Set 1.

[0165] In one implementation, the authentication request message may be encrypted using a first encryption key obtained by router A2. Router B can then decrypt the authentication request message using the first encryption key obtained in the preceding steps to authenticate router A2.

[0166] 530: Router B receives the first message and verifies it. After successful verification, it sends the second message to Router A2.

[0167] Specifically, the second message may be an authentication success message, used to indicate that the main router, i.e., router B, has successfully verified the identity of router A2.

[0168] Specifically, router B can decrypt the authentication request message in turn using one or more pre-stored keys. If decryption is successful, the identity verification of router A2 is considered successful. If none of the pre-stored keys on router B's local storage can successfully decrypt the message, the identity verification of router A2 is considered to have failed.

[0169] In another possible implementation, the process of router B verifying the identity of router A2 through the received first message (authentication request message) in steps 520-530 above can also be carried out in other ways.

[0170] For example, the authentication request message sent by router A2 to router B may carry a verification code that encrypts a pre-negotiated or pre-configured value using a first encryption key, or it may carry a verification code that encrypts a random number broadcast by router B using a first encryption key.

[0171] Next, taking the example of router B broadcasting a random number, and router A2 sending an authentication request message to router B carrying a verification code that encrypts the random number broadcast by router B according to a preset key, we will illustrate one possible implementation method. This method can specifically include:

[0172] Step 1: Router B broadcasts a random number X.

[0173] Specifically, router B can broadcast a randomly generated number to devices in the network; for example, this random number can be X. Routing devices within the coverage area of ​​router B's broadcast signal can receive the broadcast signal and obtain the random number.

[0174] In one implementation, router B can continuously broadcast random numbers, for example, it can broadcast random numbers periodically. The random number broadcast by router B each time can be the same or different. For example, router B can repeatedly broadcast random number X during a first time period, and after the first time period expires, router B randomly generates another random number Y and repeats the broadcast of random number Y during a second time period.

[0175] Alternatively, router B can also send the random number X via multicast. For example, if router B and router package 1 are routers of the same brand or from the same ecosystem, then router B and router package 1 may have the same multicast address pre-set, in which case router B can multicast the random number X.

[0176] Through the above-described implementation method of this application, a router that successfully accesses the network in a suite of routers can report the preset key of the suite of routers to the main router. This allows the main router to automatically authenticate newly added routers in the suite of routers based on the preset key of the suite of routers it has obtained. This enables other routers in the same suite of routers to automatically complete the networking process without user intervention, thus improving the user experience.

[0177] In one embodiment, the above method may further include the following steps:

[0178] Step 2: Router A2 sends an authentication request message to Router B, which includes a random number X encrypted with the first encryption key.

[0179] The newly added router A2 is a routing device in the same router package as router A1. Therefore, router A2 and router A1 are pre-configured with the same first encryption key.

[0180] For example, the first encryption key can be K1. Router A2 uses K1 to encrypt the random number X and sends the encrypted random number X in the authentication request message to router B.

[0181] In one implementation, the authentication request message may also include the router suite number of router A2, which is used by the master router (router B) to find the corresponding preset key. Additionally, the authentication request message may also include the device name or other device information of router A2.

[0182] Step 3: Router B receives the authentication request message and verifies it. If the verification is successful, it sends an authentication pass message to Router A2.

[0183] After receiving the authentication request message, Router B successfully decrypts the message using the first encryption key obtained in step 510, obtaining a random number X. If this random number is determined to be a number sent by Router B itself, then the verification of Router A2 is successful. In other words, if Router B determines that the random number X obtained in step 2 is equal to the random number X broadcast by Router B in step 1, then the verification of Router A2 is successful.

[0184] Optionally, router B can look up the router set route number of router A2 carried in the authentication request message locally, and thus obtain the preset key corresponding to the router set route number.

[0185] In the above implementation, a newly added router can request authentication from the main router by including a random number broadcast by the main router in its authentication request message. Through the reporting of the preset key by the first access router in the aforementioned router suite, the main router can obtain the preset key of the router suite. The main router can then automatically authenticate the newly added router based on the obtained preset key, without user intervention, simplifying the networking process and achieving automated networking. Furthermore, the main router can confirm that the random number obtained through decryption was generated by itself, further ensuring the security of automatically accessing routers and improving the user experience.

[0186] 540: Router B and Router A2 negotiate a key to determine the second encryption key.

[0187] The second encryption key can be used for encrypted transmission between router B and router A2. The second encryption key can be the same as or different from the aforementioned third encryption key. This application does not impose any restrictions on this comparison.

[0188] 550: Router B sends encrypted network parameters to Router A2.

[0189] The process of router B negotiating a key with router A2 and sending network parameters to router A2 can be referred to the description in the aforementioned implementation method, and will not be repeated here.

[0190] Specifically, router B can encrypt the network parameters using the second encryption key and then send them to router A2.

[0191] Router A2 can then decrypt the network using the negotiated second encryption key, obtain the network parameters, and access the LAN network of router B based on those parameters.

[0192] Through the above-described embodiments of this application, in scenarios involving multiple bundled routers in a network, by having the first router in the bundled routers to join the network report a preset key to the main router in the network, other routing devices in the same bundled router can automatically access the network. This achieves automatic access for other routing devices in the bundled routers by exchanging encrypted information, simplifying the bundled router networking process, enhancing usability, and improving the user experience.

[0193] In one possible implementation, such as Figure 6 The diagram illustrates the process before and after automatic network formation using the embodiments described above. The network topology before router A2 accesses the network can be as follows: Figure 6 As shown in LAN topology 1, the main router (Router B) and Router A1 in Suite Router 1 can form a LAN via wireless / wired connection. Through the aforementioned implementation, Router A1 reports the preset key of Suite Router 1 to Router B, allowing Router A2 in Suite Router 1 to automatically form a network. The network topology after Router A2 connects to the network is as follows: Figure 6 As shown in LAN topology 2, router B, router A1, and router A2 in package router 1 form a LAN via wireless / wired connection.

[0194] In another possible implementation, the master router B in the local area network (LAN) can be a single, independent router or one of the routers in a set of routers. That is, when setting up a LAN, a user can configure a single router as the master router, or configure one of the routers in a pre-configured set of routers as the master router. Then, each subsequent router connecting to the LAN (i.e., a slave router) can authenticate through the nearest router to access the network, and can then interact with the master router to obtain network parameter configurations, etc.

[0195] For example, such as Figure 7 As shown in (a), the primary router can be a single, independent router B. Alternatively, as... Figure 7 As shown in (b) and (c) in the figure, Figure 7 As shown in (a), it can also be router B (also called router B1) in package 2. The slave routers in this LAN can include routers B2 and B3 in package 2, and routers A1 and A2 in package 1. Among them, as Figure 7 As shown in (b), routers A1 and A2 in package router 1 can access the network through the main router B1; or, as... Figure 7As shown in (c), routers A1 and A2 in the router suite 1 can also access the network through the nearest secondary router, router B2. The specific access process can be selected based on factors such as network signal strength and the capacity of the access devices. After successful authentication, routers A1 and A2 can interact with the main router B1 to obtain network parameter configurations, etc.

[0196] Furthermore, the specific implementation methods for the entire local area network (LAN) to access the Internet can be either wired connections such as network cables or wireless connections via cellular networks provided by base stations. For example: Figure 7 As shown, a local area network (LAN) can access the Internet via a wired connection, such as... Figure 8 As shown in (a), (b) and (c), a local area network can access the Internet by establishing a wireless connection with a base station.

[0197] Based on the aforementioned implementation methods, such as Figure 9 As shown, this application also provides a communication device 900, which can be used to perform the actions performed by the main router in the above embodiments. The communication device 900 may include a transceiver module 901.

[0198] The transceiver module 901 is used to receive a first encryption key from a first router, wherein the first router is a router in a first set of routers that has successfully accessed the local area network, and multiple routers in the first set of routers are configured with the same first encryption key. The first encryption key is used by the communication device 900 to verify the identity of other routers in the first set of routers.

[0199] In one embodiment, the transceiver module 901 is further configured to receive a first message from a second router, wherein the second router is a router in the first set of routes, and the first message is generated based on the first encryption key.

[0200] like Figure 9 As shown, the communication device 900 may further include a processing module 902, which is used to process the first message based on the first encryption key to verify the identity of the second router. The transceiver module 901 is further used to send a second message to the second router, wherein the second message is used to indicate that the communication device 900 has successfully verified the identity of the second router.

[0201] In one embodiment, the processing module 902 is further configured to generate a random number and broadcast the random number. If the processing module 902 determines that the random number obtained after decrypting the first message based on the first encryption key is equal to the random number generated and broadcast by the processing module 902, then the transceiver module 901 is further configured to send the second message to the second router.

[0202] In one embodiment, the processing module 902 is further configured to perform key negotiation with the second router to determine a second encryption key; the transceiver module 901 is further configured to send network parameters to the second router, wherein the network parameters are encrypted according to the second encryption key.

[0203] In one embodiment, the transceiver module 901 is further configured to receive a third message from the first router, the third message being a request to access the communication device 900. The processing module 901 is further configured to, in response to the third message, prompt the user to confirm whether to allow the first router to access. The transceiver module 901 is further configured to receive a confirmation access command from the user and send a fourth message to the first router, the fourth message being an instruction to the communication device 900 to allow the first router to access the communication device 900.

[0204] In one embodiment, the processing module 902 is further configured to perform key negotiation with the first router to determine a third encryption key; the transceiver module 901 is further configured to send network parameters to the first router, wherein the network parameters are encrypted according to the third encryption key.

[0205] Correspondingly, this application also provides a communication device for performing the actions performed by the second router in the aforementioned embodiments. For example... Figure 9 As shown, the communication device 900 includes a processing module 902 and a transceiver module 901.

[0206] The processing module 902 is used to generate a first message. The communication device 900 is a router in a first set of routers. Multiple routers in the first set of routers are configured with the same first encryption key. The first message is generated after encryption using the first encryption key, which is used by the main router to verify the identity of the communication device 900. The transceiver module 901 is used to send the first message to the main router.

[0207] In one embodiment, the transceiver module 901 is further configured to receive a second message from the main router, wherein the second message is configured to indicate that the main router has successfully verified the identity of the communication device 900.

[0208] In one embodiment, the transceiver module 901 is further configured to receive a random number broadcast by the main router. The processing module 902 is specifically configured to encrypt the random number using the first encryption key to obtain the first message.

[0209] In one embodiment, the processing module 902 is further configured to perform key negotiation with the main router to determine a second encryption key. The transceiver module 901 is further configured to receive network parameters from the main router and decrypt the network parameters according to the second encryption key. The processing module 902 is further configured to successfully connect to the main router based on the decrypted network parameters.

[0210] Based on the above embodiments, this application also provides a packaged routing system, which includes at least one router. For example... Figure 10 As shown, the suite of routers includes a first router, which is used to send a first encryption key to the main router. The first router is a router in the suite of routers that has successfully accessed the local area network. Multiple routers in the suite of routers are configured with the same first encryption key. The first encryption key is used by the main router to verify the identity of other routers in the suite of routers.

[0211] In one implementation, such as Figure 10 As shown, the suite routing also includes a second router, which is used to send a first message to the main router, wherein the second router is a router in the suite routing, and the first message is generated based on the first encryption key; the second router is also used to receive a second message from the main router, wherein the second message is used to indicate that the main router has successfully verified the identity of the second router.

[0212] In one implementation, the second router is further configured to receive a random number broadcast by the main router; the second router is configured to encrypt the random number according to the first encryption key to obtain the first message.

[0213] In one embodiment, the second router is further configured to perform key negotiation with the main router to determine a second encryption key; the second router is configured to receive network parameters from the main router and decrypt the network parameters according to the second encryption key; the second router is configured to successfully access the main router according to the decrypted network parameters.

[0214] In one implementation, the first router is further configured to send a third message to the main router, the third message being a request to access the main router; the first router is further configured to receive a fourth message from the main router, the fourth message being an indication that the first router is permitted to access the main router.

[0215] In one embodiment, the first router is further configured to perform key negotiation with the main router to determine a third encryption key; the first router is configured to receive network parameters from the main router and decrypt the network parameters according to the third encryption key; the first router is configured to successfully access the main router according to the decrypted network parameters.

[0216] It is understood that the same step or a step or message with the same function in the embodiments of this application can be referenced and learned from each other in different embodiments.

[0217] It should be noted that the specific execution process and embodiments in the above communication device can refer to the steps and related descriptions of the main router, the second router, or the packaged router in the above method embodiments. The technical problems solved and the technical effects brought about can also refer to the content described in the foregoing embodiments, and will not be repeated here.

[0218] In this embodiment, the communication device can be presented in an integrated manner, divided into various functional modules. Here, "module" can refer to a specific circuit, a processor and memory executing one or more software or firmware programs, integrated logic circuits, and / or other devices that can provide the aforementioned functions. In a simple embodiment, those skilled in the art will understand that the communication device can adopt the aforementioned... Figure 4 As shown in the figure.

[0219] For example, Figure 9 The function / implementation process of the processing module 902 can be achieved through... Figure 4 The processor 401 in the memory calls computer program instructions stored in the memory 403 to implement the program. For example, Figure 9 The function / implementation process of the 901 transceiver module can be obtained through Figure 4 It is implemented using the communication interface 404.

[0220] In some implementations... Figure 4 The processor 401 can call computer execution instructions stored in the memory 403, so that the device 400 can perform the operations of the main router, the second router, or the packaged router in the above-described method embodiments, and realize the above-described possible implementation methods of this application.

[0221] The communication group devices in the above-described device embodiments can completely correspond to the main router, second router, or packaged router in the method embodiments. Corresponding modules or units execute the corresponding steps. For example, when the device is implemented as a chip, the communication unit can be an interface circuit used by the chip to receive signals from other chips or devices. The communication unit used for sending or receiving is an interface circuit of the device, used to send signals to other devices. For example, when the device is implemented as a chip, the communication unit can be an interface circuit used to send signals to other chips or devices.

[0222] In an exemplary embodiment, a computer-readable storage medium or a computer program product including instructions is also provided, which can be executed by the processor 401 of the communication device 400 to perform the method of the above embodiments. Therefore, the technical effects obtained can be referred to the above method embodiments, and will not be repeated here.

[0223] This application also provides a computer program product including instructions that, when executed, enable the computer to perform operations corresponding to the main router, the second router, or the packaged router described above.

[0224] This application also provides a system-on-a-chip (SoC) comprising a processing unit and a communication unit. The processing unit may be, for example, a processor, and the communication unit may be, for example, an input / output interface, pins, or circuitry. The processing unit can execute computer instructions to cause the communication device to which the chip is applied to perform the operations performed by the main router, the second router, or the packaged router in the methods provided in the above-described embodiments of this application.

[0225] Optionally, any of the communication devices provided in the above embodiments of this application may include the system chip.

[0226] Optionally, the computer instructions are stored in a storage unit.

[0227] This application also provides a communication system, which may include any of the main router, second router, or packaged routers described in the above embodiments.

[0228] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, it can be implemented, in whole or in part, as a computer program product. This computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0229] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.

[0230] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method of automatic networking of a kit route, characterized in that, The method includes: The first router sends a first encryption key to the main router. The first router is a router in the first set of routers that has successfully accessed the local area network. Multiple routers in the first set of routers are configured with the same first encryption key. The first encryption key is used by the main router to verify the identity of other routers in the first set of routers. The second router sends a first message to the main router, wherein the second router is a router in the first set of routers, and the first message is generated based on the first encryption key; The second router receives a second message from the master router, wherein the second message is used to indicate that the master router has successfully verified the identity of the second router; The second router negotiates a key with the main router to determine a second encryption key; The second router receives network parameters from the main router and decrypts the network parameters according to the second encryption key; The second router successfully connected to the main router based on the network parameters obtained through decryption.

2. The method of claim 1, wherein, Before the second router sends the first message to the main router, the method further includes: The second router receives the random number broadcast by the main router; The second router encrypts the random number using the first encryption key to obtain the first message.

3. The method according to claim 1 or 2, characterized in that, Before the first router sends the first encryption key to the master router, the method further includes: The first router sends a third message to the main router, the third message being used to request access to the main router; The first router receives a fourth message from the master router, the fourth message indicating that the first router is allowed to access the master router.

4. The method according to claim 3, characterized in that, The method further includes: The first router and the main router negotiate a key to determine a third encryption key; The first router receives network parameters from the main router and decrypts the network parameters according to the third encryption key; The first router successfully connected to the main router based on the network parameters obtained through decryption.

5. A method for automatic network formation of a packaged router, characterized in that, The method includes: The main router receives a first encryption key from the first router, wherein the first router is a router in the first set of routers that has successfully accessed the local area network. Multiple routers in the first set of routers are configured with the same first encryption key. The first encryption key is used by the main router to verify the identity of other routers in the first set of routers. Receive a first message from a second router, wherein the second router is a router in the first set of routers, and the first message is generated based on the first encryption key; The first message is processed based on the first encryption key to verify the identity of the second router; Send a second message to the second router, wherein the second message is used to indicate that the master router has successfully verified the identity of the second router; Perform key negotiation with the second router to determine the second encryption key; Send network parameters to the second router, wherein the network parameters are encrypted using the second encryption key.

6. The method according to claim 5, characterized in that, Before receiving the first message from the second router, the method further includes: Generate a random number and broadcast the random number; Send a second message to the second router, specifically including: If the main router determines that the random number obtained after decrypting the first message based on the first encryption key is equal to the random number generated and broadcast by the main router, then the main router sends the second message to the second router.

7. The method according to claim 5 or 6, characterized in that, Before receiving the first encryption key from the first router, the method further includes: Receive a third message from the first router, the third message being used to request access to the main router; In response to the third message, the user is prompted to confirm whether to allow the first router to access the network; The system receives a confirmation access command from the user and sends a fourth message to the first router, the fourth message being used to instruct the main router to allow the first router to access the main router.

8. The method according to claim 7, characterized in that, The method further includes: Perform key negotiation with the first router to determine the third encryption key; Send network parameters to the first router, wherein the network parameters are encrypted using the third encryption key.

9. A packaged router, characterized in that, The packaged router includes a first router. The first router is used to send a first encryption key to the main router. The first router is a router in the packaged router that has successfully accessed the local area network. Multiple routers in the packaged router are configured with the same first encryption key. The first encryption key is used by the main router to verify the identity of other routers in the packaged router. The second router is used to send a first message to the main router, wherein the second router is a router in the packaged router, and the first message is generated based on the first encryption key; The second router is also configured to receive a second message from the master router, wherein the second message is configured to indicate that the master router has successfully verified the identity of the second router; The second router is used to receive network parameters from the main router and decrypt the network parameters according to the second encryption key; The second router is used to successfully connect to the main router based on the network parameters obtained through decryption.

10. The packaged router according to claim 9, characterized in that, The second router is also used to receive random numbers broadcast by the main router; The second router is used to encrypt the random number according to the first encryption key to obtain the first message.

11. The packaged router according to claim 9 or 10, characterized in that, The first router is also configured to send a third message to the main router, the third message being used to request access to the main router; The first router is also configured to receive a fourth message from the master router, the fourth message indicating permission for the first router to access the master router.

12. The packaged router according to claim 11, characterized in that, The first router is also used to negotiate a key with the main router to determine a third encryption key; The first router is used to receive network parameters from the main router and decrypt the network parameters according to the third encryption key; The first router is used to successfully connect to the main router based on the network parameters obtained through decryption.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 1-4.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on a computer, causes the computer to perform the method as described in any one of claims 5-8.

15. A communication system, characterized in that, The communication system includes a main router and a first set of routers. The first router is used to send a first encryption key to the main router, wherein the first router is a router in the first set of routers that has successfully accessed the local area network, and multiple routers in the first set of routers are configured with the same first encryption key; the first encryption key is used by the main router to verify the identity of other routers in the first set of routers. The main router is used to receive the first encryption key; The second router is used to send a first message to the main router, wherein the second router is a router in the first set of routers, and the first message is generated based on the first encryption key; The main router processes the first message based on the first encryption key to verify the identity of the second router; The master router sends a second message to the second router, wherein the second message is used to indicate that the master router has successfully verified the identity of the second router; The second router negotiates a key with the main router to determine a second encryption key; The main router is used to send network parameters to the second router, wherein the network parameters are encrypted using the second encryption key; The second router is used to decrypt the network parameters according to the second encryption key, and successfully connect to the main router according to the decrypted network parameters.

16. The communication system according to claim 15, characterized in that, The main route is also used to generate random numbers and broadcast the random numbers; The second router is used to receive the random number; The second router is used to encrypt the random number according to the first encryption key to obtain the first message, and send the first message to the main router; If the main router determines that the random number obtained after decrypting the first message based on the first encryption key is equal to the random number generated and broadcast by the main router, then the main router is used to send the second message to the second router.

17. The communication system according to claim 15 or 16, characterized in that, The first router is used to send a third message to the main router, the third message being used to request access to the main router; The main router responds to the third message by prompting the user to confirm whether to allow the first router to access the network. The master router is used to receive the user's confirmation access command and send a fourth message to the first router. The fourth message is used to instruct the master router to allow the first router to access the master router.

18. The communication system according to claim 17, characterized in that, The first router is also used to negotiate a key with the main router to determine a third encryption key; The main router is used to send network parameters to the first router, wherein the network parameters are encrypted according to the third encryption key; The first router is used to decrypt the network parameters according to the third encryption key, and successfully connect to the main router according to the decrypted network parameters.

Citation Information

Patent Citations

  • Method for household appliance to access router network and household appliance

    CN110958665A