Network access method, electronic equipment and storage medium

By calculating and comparing the time characteristic parameters of the information transmission time on the target routing node, we automatically access the new gateway, solving the problem of manual configuration after replacing the gateway, improving access efficiency and user experience.

CN119629701APending Publication Date: 2025-03-14ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311183225.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-13
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

After replacing the gateway, users need to manually configure the IOT node to access the new gateway. The operation is complex and the user's operation level is high, which affects the user experience.

Method used

After the target routing node establishes a connection with the first gateway, the information transmission time is obtained, the time characteristic parameters are calculated, and the pre-stored parameters are compared. If the difference is within the preset range, the indication information is sent to automatically access the new gateway.

Benefits of technology

Without manual configuration from users, the IOT nodes are automatically accessed to a new gateway, reducing the operational complexity after replacing the gateway, and improving access efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629701A_ABST
    Figure CN119629701A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a network access method, electronic equipment and a storage medium, relates to the technical field of communication, and can reduce the operation complexity of accessing a new gateway after the gateway is replaced. The method is applied to a target routing node, and comprises the following steps: after establishing a connection with a first gateway, obtaining a first information transmission duration between the first gateway and at least one terminal, and obtaining a second information transmission duration between the target routing node and the at least one terminal, obtaining a first time characteristic parameter based on the first information transmission duration and the second information transmission duration; comparing the first time characteristic parameter with a pre-stored second time characteristic parameter; under the condition that the difference value between the first time characteristic parameter and the second time characteristic parameter is within a preset range, indication information is sent to at least one terminal and / or other routing nodes in the communication network, and the indication information is used for indicating access to the first gateway.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a network access method, an electronic device, and a storage medium. Background Art

[0002] With the development of network technology, the speed of gateway updates is getting faster and faster. When the new service used by the user requires a higher LAN speed, a new gateway needs to be replaced. Then the various Internet of Things (IOT) nodes connected to the original gateway need to be reconnected to the new gateway. The previous binding logic will also be lost with the replacement of the gateway, and the user needs to manually reconfigure the binding relationship. In addition, for security reasons, most IOT nodes require users to manually configure them to enter the networking mode for network access, and cooperate with the new gateway's networking protocol to complete the access to the new gateway. After connecting to the new gateway, it can be used again.

[0003] However, manual configuration requires a high level of user operation skills, which affects the user experience. Summary of the invention

[0004] The present disclosure provides a network access method, an electronic device and a storage medium, which are at least used to reduce the complexity of the operation of accessing a new gateway after replacing the gateway.

[0005] In order to at least achieve the above-mentioned purpose, the present disclosure adopts the following technical solutions:

[0006] In a first aspect, a network access method is provided, which is applied to a routing node, wherein a target routing node is arranged in a communication network composed of at least one terminal, and the method comprises: after establishing a connection with a first gateway, obtaining a first information transmission duration between the first gateway and at least one terminal, and obtaining a second information transmission duration between the target routing node and at least one terminal, and obtaining a first time characteristic parameter based on the first information transmission duration and the second information transmission duration; comparing the first time characteristic parameter with a pre-stored second time characteristic parameter; and sending indication information to at least one terminal and / or other routing nodes in the communication network when the difference between the first time characteristic parameter and the second time characteristic parameter is within a preset range, wherein the indication information is used to indicate access to the first gateway.

[0007] In a second aspect, a network access method is provided, which is applied to a first gateway, and the method includes: after establishing a connection with a target routing node in a communication network, obtaining a first information transmission duration between the first gateway and at least one terminal in the communication network; the first information transmission duration is used to verify the legitimacy of the first gateway; and sending the first information transmission duration to the target routing node.

[0008] According to a third aspect, a communication device is provided, which is applied to a target routing node, and the device includes: an acquisition unit, which is used to acquire a first information transmission duration between the first gateway and at least one terminal, and acquire a second information transmission duration between the target routing node and at least one terminal after establishing a connection with the first gateway; a processing unit, which is used to: obtain a first time characteristic parameter based on the first information transmission duration and the second information transmission duration; compare the first time characteristic parameter with a pre-stored second time characteristic parameter; and send indication information to at least one terminal and / or other routing nodes in the communication network when the difference between the first time characteristic parameter and the second time characteristic parameter is within a preset range, the indication information being used to indicate access to the first gateway.

[0009] In a fourth aspect, a communication device is provided, which is applied to a first gateway, and the device includes: an acquisition unit, which is used to obtain a first information transmission duration between the first gateway and at least one terminal in the communication network after establishing a connection with a target routing node in the communication network; the first information transmission duration is used to verify the legitimacy of the first gateway; and a sending unit, which is used to send the first information transmission duration to the target routing node.

[0010] In a fifth aspect, an electronic device is provided, comprising: one or more processors and a memory; the memory stores instructions executable by the processor; when the one or more processors are configured to execute the instructions, the electronic device implements the method provided in the first aspect or the second aspect above.

[0011] In a sixth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed on a computer, the computer executes the method provided in the first aspect or the second aspect.

[0012] According to a seventh aspect, a computer program product comprising computer instructions is provided. When the computer instructions are executed on a computer, the computer executes the method provided in the first aspect or the second aspect.

[0013] In the disclosed embodiment, the first gateway can be understood as a new gateway replaced by the communication network. When the difference between the first time characteristic parameter and the pre-stored second time characteristic parameter is within a preset range, it represents that the first gateway is a legitimate gateway, so the target routing node sends an indication message to at least one terminal and / or other routing nodes in the communication network to instruct at least one terminal and / or other routing nodes in the communication network to access the first gateway. In this way, other nodes in the communication network (at least one terminal and / or other routing nodes in the communication network) can automatically access the new gateway without manual configuration by the user, which reduces the complexity of the operation of accessing the new gateway after replacing the gateway, improves the efficiency of accessing the new gateway after the gateway is replaced, and helps to improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The accompanying drawings are used to provide further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.

[0015] Figure 1 A schematic diagram of the structure of a communication network provided by an embodiment of the present disclosure;

[0016] Figure 2 A flowchart of a network access method provided by an embodiment of the present disclosure;

[0017] Figure 3 A flowchart of another network access method provided by an embodiment of the present disclosure;

[0018] Figure 4 A flowchart of another network access method provided by an embodiment of the present disclosure;

[0019] Figure 5 A flowchart of another network access method provided by an embodiment of the present disclosure;

[0020] Figure 6 A flowchart of another network access method provided by an embodiment of the present disclosure;

[0021] Figure 7 A flowchart of another network access method provided by an embodiment of the present disclosure;

[0022] Figure 8 A flowchart of another network access method provided by an embodiment of the present disclosure;

[0023] Fig. 9 A flowchart of another network access method provided by an embodiment of the present disclosure;

[0024] Fig.10A schematic diagram of the overall process of a network access method provided by an embodiment of the present disclosure;

[0025] Fig.11 A schematic diagram of the composition of a communication device provided in an embodiment of the present disclosure;

[0026] Fig.12 A schematic diagram of another communication device provided in an embodiment of the present disclosure;

[0027] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.

[0029] Unless the context requires otherwise, throughout the specification and claims, the term "comprise" and other forms thereof, such as the third person singular form "comprises" and the present participle form "comprising", are to be interpreted as open, inclusive, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "example", "specific example" or "some examples" and the like are intended to indicate that specific features, structures, materials or characteristics associated with the embodiment or example are included in at least one embodiment or example of the present disclosure. The schematic representation of the above terms does not necessarily refer to the same embodiment or example. In addition, the specific features, structures, materials or characteristics may be included in any one or more embodiments or examples in any appropriate manner.

[0030] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, unless otherwise specified, "plurality" means two or more.

[0031] In the embodiments of the present disclosure, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present disclosure should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0032] Additionally, the use of “based on” is meant to be open and inclusive, as a process, step, calculation, or other action “based on” one or more stated conditions or values ​​may, in practice, be based on additional conditions or values ​​beyond those stated.

[0033] With the rapid development of network technology, network speed and stability are no longer the main bottlenecks restricting the development of Internet business. The fifth-generation mobile communication technology (5G) mobile network and fixed-line fiber-to-the-home have spawned many practical needs, and the smart home industry has also achieved remarkable development on this basis. At present, many fine-decorated houses will install some sensors in advance to connect to personal home gateways, such as smoke sensors, curtain controllers, lighting controllers, etc.

[0034] However, as the network develops faster and faster, the update speed of the gateway is also getting faster and faster, which will lead to some problems. For example, the sixth generation of wireless network technology (wireless fidelity 6, WIFI 6) has not yet been popularized, but the seventh generation of wireless network technology (wireless fidelity 7, WIFI 7) has also begun commercial use. In order to use new services that require higher LAN speeds, users have to replace the WIFI 7 gateway. Then, each node of the IOT network that originally belonged to the WIFI 6 gateway needs to be rejoined to the WIFI 7 gateway. And the previous binding relationship will also be lost with the switching of the gateway, and the user needs to manually configure the binding relationship again. And for security reasons, most IOT nodes require users to manually configure them to enter the network access mode for network access, and complete the access to the new gateway with the network access protocol of the new gateway. It can only be used again after accessing the new gateway. However, the installation location of some sensors is not convenient for users to operate. For example, smoke sensors (abbreviated as: smoke sensors) are generally installed on the roof, which is difficult for users to operate. On the one hand, manual configuration requires a high level of user operation skills and may bring security risks. On the other hand, hiring professional technicians to perform configuration will increase costs.

[0035] In addition, the ZigBee protocol is widely used in the smart home industry, and the Matter protocol has a better development prospect. However, terminals based on these two protocols basically trigger the terminal to join the network state by pressing a button or continuously switching to access the gateway. After changing the gateway, the above operation must be repeated to access the new gateway. The operation is relatively complicated, which affects the user experience.

[0036] In summary, how to reduce the complexity of the operation of accessing a new gateway after replacing the gateway is a technical problem that needs to be solved urgently.

[0037] Based on this, the embodiment of the present disclosure provides a network access method, electronic device and storage medium. In the case of replacing the gateway, after the target routing node establishes a connection with the first gateway, it obtains the first information transmission time between the first gateway and at least one terminal, and obtains the information transmission time between the target routing node and at least one terminal, and then obtains the first time characteristic parameter based on the first information transmission time and the second information transmission time. When the difference between the first time characteristic parameter and the pre-stored second time characteristic parameter is within a preset range, it represents that the first gateway is a legal gateway. Therefore, the target routing node sends an indication message to at least one terminal and / or other routing nodes in the communication network to instruct at least one terminal and / or other routing nodes in the communication network to access the first gateway. In this way, without the need for manual configuration by the user, other nodes in the communication network (at least one terminal and / or other routing nodes in the communication network) are automatically connected to the new gateway, which reduces the complexity of the operation of accessing the new gateway after the gateway is replaced, improves the efficiency of accessing the new gateway after the gateway is replaced, and helps to improve the user experience.

[0038] The following describes the solutions of the embodiments of the present disclosure in conjunction with the accompanying drawings.

[0039] The technical solution provided by the embodiments of the present disclosure can be applied to various communication networks, for example, an IOT network using 5G, a future mobile communication network, or a variety of communication convergence systems, etc., and the embodiments of the present disclosure are not limited to this.

[0040] Figure 1 A schematic diagram of the structure of a communication network provided by an embodiment of the present disclosure. Figure 1 , the communication network may include a gateway 11, multiple routing nodes (eg, routing node 21, routing node 22, routing node 23, and routing node 24), and multiple terminals 31.

[0041] The gateway 11 is also called an internetwork connector or a protocol converter. The gateway 11 is a network interconnection device that realizes network interconnection at the transport layer and is only used for interconnection of two networks with different high-level protocols. The gateway 11 can be used for wide area network interconnection as well as local area network interconnection. The gateway 11 is a computer system or device that performs the important task of conversion. The gateway 11 is a translator between two systems that use different communication protocols, data formats or languages, or even completely different architectures. Unlike a bridge that simply transmits information, the gateway 11 repackages the received information to meet the needs of the destination system.

[0042] In some embodiments, the gateway 11 may be communicatively connected to a plurality of routing nodes, and may be communicatively connected to a plurality of terminals 31 through the plurality of routing nodes.

[0043] In some embodiments, for each routing node in the plurality of routing nodes, such as routing node 21, the routing node may be a sensor supporting routing functions, such as a smoke sensor, a curtain controller, a light controller, a water level sensor, etc. The routing node may also be a relay device, which is not limited in the embodiments of the present disclosure.

[0044] In some embodiments, the routing node may be used to enable the terminal 31 to access the gateway 11 through the routing node, for example Figure 1 Multiple terminals 31 connected to the routing node 21 access the gateway 11 through the routing node 21.

[0045] In some embodiments, a routing node can also be used to enable other routing nodes to access the gateway 11 through the routing node. Figure 1 As shown, routing node 22 , routing node 23 and routing node 24 can access gateway 11 through routing node 21 .

[0046] In some embodiments, the communication network may be composed of sub-networks of multiple protocols. Among them, the multiple protocols include at least one of the following: ZigBee protocol, Matter protocol, Home Internet of Things Communication Protocol Technology (Thread) protocol, Z-Wave protocol, etc. Exemplarily, taking the network composed of routing node 21 and multiple terminals 31 as Matter network, the network composed of routing node 22 and multiple terminals 31 as Thread network, the network composed of routing node 23 and multiple terminals 31 as ZigBee network, and the network composed of routing node 24 and multiple terminals 31 as Z-Wave network as an example, a network access method provided by the embodiment of the present disclosure is illustrated. Among them, Matter protocol is a smart home interconnection protocol based on IP protocol, Thread protocol is a low-power mesh network technology protocol designed to connect all devices in the home, ZigBee protocol is a low-power LAN protocol based on IEEE802.15.4 standard, a short-range, low-power wireless communication technology, and Z-Wave protocol is an emerging short-range wireless communication technology based on radio frequency, low cost, low power consumption, high reliability, and suitable for the network.

[0047] In an exemplary embodiment, routing node 21 may be referred to as a root node, and other routing nodes may be referred to as slave nodes. Figure 1 , routing node 22 communicates directly with routing node 21, routing node 23 and routing node 24 access the Matter network where routing node 21 is located through the bridge technology, and routing node 21 is connected to gateway 11 through the internet protocol (IP) network between networks. In this way, gateway 11 establishes communication connections with multiple terminals 31 in the communication network through the Matter network where routing node 21 is located.

[0048] In some embodiments, for each terminal 31 in the plurality of terminals 31, the terminal 31 may be a device with wireless transceiver function, which may be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted. The terminal 31 may be a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The embodiments of the present disclosure do not limit the application scenarios. The terminal may sometimes also be referred to as a user, user equipment (UE), an access terminal, a UE unit, a UE station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a UE terminal, a wireless communication device, a UE agent or a UE device, etc., which is not limited in the embodiments of the present disclosure.

[0049] It should be understood that Figure 1 is an exemplary structural diagram, Figure 1 The number of devices included in the communication network shown is not limited, for example, the number of terminals and routing nodes is not limited. Figure 1 In addition to the equipment shown, Figure 1 The communication network shown may also include other devices, which is not limited to this.

[0050] Next, if Figure 2 As shown, the embodiment of the present disclosure provides a network access method, which can be applied to a target routing node. The target routing node can be selected by a user or automatically selected by a gateway based on the installation location, height, and other information of each routing node in the communication network. For example, the target routing node can be the above Figure 1 For the routing node 21 among the multiple routing nodes shown, the method may include the following steps:

[0051] S101. After establishing a connection with a first gateway, obtaining a first information transmission duration between the first gateway and at least one terminal, and obtaining a second information transmission duration between a target routing node and at least one terminal.

[0052] The first gateway may be understood as a new gateway replaced by the communication network.

[0053] In some embodiments, after the communication network changes the gateway, the user establishes a connection between the first gateway and the target routing node. Exemplarily, the user establishes a connection between the first gateway and the target routing node by using a network cable.

[0054] After the target routing node establishes a connection with the first gateway, in order to verify whether the first gateway is a legitimate gateway, the target routing node obtains the first information transmission duration between the first gateway and at least one terminal, and obtains the second information transmission duration between the target routing node and at least one terminal. The first information transmission duration between the first gateway and at least one terminal may be an information transmission duration matrix composed of the information transmission duration between the first gateway and each of the at least one terminal, and the second information transmission duration between the target routing node and at least one terminal may be an information transmission duration matrix composed of the information transmission duration between the target routing node and each of the at least one terminal.

[0055] As an example, the target routing node obtains the first information transmission duration between the first gateway and the at least one terminal, which may be that the target routing node receives the first information transmission duration between the first gateway and the at least one terminal sent by the first gateway.

[0056] For a description of how to obtain the second information transmission duration between the target routing node and at least one terminal, reference may be made to the corresponding descriptions in the following steps S301 to S303, which will not be repeated here.

[0057] S102: Obtain a first time characteristic parameter based on the first information transmission duration and the second information transmission duration.

[0058] As a possible example, Figure 3 As shown, based on the first information transmission duration and the second information transmission duration, obtaining the first time characteristic parameter, that is, step S102, may include the following steps:

[0059] S1021. Obtain a first characteristic value based on a first information transmission duration.

[0060] The first characteristic value is used to represent statistical information of the transmission duration of the first information.

[0061] As can be seen from the above description, the first information transmission duration may be an information transmission duration matrix composed of information transmission durations between the first gateway and each of the at least one terminal. After acquiring the first transmission duration, the target routing node may perform information statistics on the information transmission durations between the first gateway and each of the at least one terminal included in the first information transmission duration to obtain a first eigenvalue.

[0062] As an example, performing information statistics on the first information transmission duration may be any one of average value statistics, variance statistics or standard deviation statistics on the first information transmission duration, and the embodiments of the present disclosure are not limited to this.

[0063] Exemplarily, taking information statistics as average value statistics as an example, the target routing node can calculate the average value of the first information transmission duration, obtain the average value of the information transmission duration between the first gateway and each terminal in the at least one terminal included in the first information transmission duration, and then use the average value as the first time characteristic parameter.

[0064] S1022. Obtain a second characteristic value based on the second information transmission duration.

[0065] The second characteristic value is used to represent statistical information of the transmission duration of the second information.

[0066] For the description of step S1022, reference may be made to the above description of step S1021, which will not be repeated here.

[0067] S1023. Obtain a first time characteristic parameter based on the first characteristic value and the second characteristic value.

[0068] Among them, the first time characteristic parameter is used to characterize the degree of difference between the first characteristic value and the second characteristic value. From the above description, it can be seen that the first characteristic value is obtained based on the first information transmission duration, and the second characteristic value is obtained based on the second information transmission duration. Therefore, the first time characteristic parameter can also be understood as being used to characterize the degree of difference between the first information transmission duration and the second information transmission duration.

[0069] As an example, the first time characteristic parameter includes a difference between the first characteristic value and the second characteristic value, that is, the first time characteristic parameter may be the difference between the first characteristic value and the second characteristic value.

[0070] As another example, the first time characteristic parameter may also be any one of the sum of the first characteristic value and the second characteristic value, the quotient of the first characteristic value and the second characteristic value, and the product of the first characteristic value and the second characteristic value, which is not limited in the embodiments of the present disclosure.

[0071] S103: Compare the first time characteristic parameter with a pre-stored second time characteristic parameter.

[0072] In some embodiments, the target routing node pre-stores a second time characteristic parameter. In order to verify whether the first gateway is a legitimate gateway, after obtaining the first time characteristic parameter, the first time characteristic parameter can be compared with the pre-stored second time characteristic parameter.

[0073] As an example, the second time characteristic parameter may be preset by a network administrator based on manual experience.

[0074] As another example, the second time characteristic parameter may be related to the second gateway, which is the gateway that the target routing node has historically accessed, and may be understood as the old gateway before the communication network replaces the gateway. In the case where the second time characteristic parameter is related to the second gateway, how the second time characteristic parameter is obtained may refer to the description of steps S401 to S403 below, which will not be described in detail here.

[0075] S104: When the difference between the first time characteristic parameter and the second time characteristic parameter is within a preset range, send indication information to at least one terminal and / or other routing nodes in the communication network.

[0076] In some embodiments, when the difference between the first time characteristic parameter and the second time characteristic parameter is within a preset range, it indicates that the first gateway is a legitimate gateway, so the target routing node sends indication information to at least one terminal and / or other routing nodes in the communication network, and the indication information is used to indicate access to the first gateway. The preset range may be preset by a network administrator, for example, the preset range is [-5 milliseconds, 5 milliseconds], etc., which is not limited in the embodiments of the present disclosure.

[0077] Taking the second time characteristic parameter being related to the second gateway as an example, when the difference between the first time characteristic parameter and the second time characteristic parameter is within a preset range, it means that the installation location of the first gateway is close to or the same as the installation location of the second gateway. Therefore, the first time characteristic parameter obtained based on the first information transmission duration and the second information transmission duration is the same as the second time characteristic parameter or the difference is within the preset range. It can be determined that the first gateway is a legitimate gateway, and at least one terminal and / or other routing node in the communication network can be notified to access the first gateway.

[0078] Exemplary, combined Figure 1 In the communication network shown, taking the target routing node as routing node 21 as an example, when the difference between the first time characteristic parameter and the second time characteristic parameter is within a preset range, routing node 21 can send indication information to multiple terminals 31 and / or routing nodes 22, routing nodes 22 and routing nodes 23 to instruct multiple terminals 31 and / or routing nodes 22, routing nodes 22 and routing nodes 23 to access gateway 11.

[0079] based on Figure 2In the embodiment shown, in the case of replacing the gateway, after the target routing node establishes a connection with the first gateway, it obtains the first information transmission duration between the first gateway and at least one terminal, and obtains the information transmission duration between the target routing node and at least one terminal, and then obtains the first time characteristic parameter based on the first information transmission duration and the second information transmission duration. When the difference between the first time characteristic parameter and the pre-stored second time characteristic parameter is within a preset range, it represents that the first gateway is a legal gateway, so the target routing node sends an indication message to at least one terminal and / or other routing nodes in the communication network to instruct at least one terminal and / or other routing nodes in the communication network to access the first gateway. In this way, other nodes in the communication network (at least one terminal and / or other routing nodes in the communication network) can automatically access the new gateway without manual configuration by the user, which reduces the complexity of the operation of accessing the new gateway after the gateway is replaced, improves the efficiency of accessing the new gateway after the gateway is replaced, and helps to improve the user experience.

[0080] In some embodiments, Figure 4 As shown, after step S104, the method further includes the following steps:

[0081] S201: Store a first time characteristic parameter of a first gateway, and delete a pre-stored second time characteristic parameter.

[0082] In some embodiments, when the difference between the first time characteristic parameter and the second time characteristic parameter is within a preset range, it represents that the first gateway is a legitimate gateway. Therefore, the target routing node stores the first time characteristic parameter of the first gateway and deletes the pre-stored second time characteristic parameter, that is, updates the locally stored time characteristic parameter, so that when the first gateway is subsequently replaced, the target routing node can detect whether the newly replaced gateway is a legitimate gateway based on the stored first time characteristic parameter of the first gateway, and then, when the new gateway is a legitimate gateway, notify other nodes in the communication network to directly access the new gateway.

[0083] In some embodiments, Figure 5 As shown, in the above step S101, obtaining the second information transmission duration between the target routing node and at least one terminal may include the following steps:

[0084] S301: Send time detection information to each terminal of at least one terminal.

[0085] The time detection information is used to determine the information transmission duration between the target routing node and the terminal.

[0086] S302: Receive at least one time probe response information sent by at least one terminal.

[0087] A time detection response message includes a first time, and the first time is the time when a terminal receives the time detection message.

[0088] S303: Based on at least one time detection response information, obtain a second information transmission duration between the target routing node and at least one terminal.

[0089] In some embodiments, for each terminal in at least one terminal, after the target routing node receives the time detection response information sent by the terminal, it can determine the information transmission duration between the terminal and the target routing node based on the first time included in the time detection response information and the time of sending the time detection information. In this way, the target routing node can obtain the information transmission duration between each terminal in at least one terminal, that is, obtain the second information transmission duration between the target routing node and the at least one terminal.

[0090] In some embodiments, Figure 6 As shown, before step S101, the method may further include the following steps:

[0091] S401: Receive a third information transmission duration between the second gateway and at least one terminal sent by the second gateway.

[0092] It can be seen from the above description that the second gateway is the gateway that the target routing node has historically accessed, which can be understood as the old gateway before the communication network replaces the gateway.

[0093] In some embodiments, during the operation of the second gateway, in order to enable other nodes in the communication network to automatically access the new gateway when the communication network changes the gateway, the second gateway can obtain the third information transmission duration between at least one terminal, and then send the third information transmission duration to the target routing node, so that the target routing node generates a second time characteristic parameter based on the third information transmission duration. Correspondingly, the target routing node receives the third information transmission duration sent by the second gateway.

[0094] Combined with the above Figure 5 In the embodiment shown, the second gateway obtains the third information transmission duration between the second gateway and at least one terminal. It can also be that the second gateway sends time detection information to at least one terminal, and then receives at least one time detection response information sent by at least one terminal, and then obtains the third information transmission duration between the second gateway and at least one terminal based on the time of sending the time detection information and at least one time detection response information.

[0095] S402: Obtain a second time characteristic parameter based on the third information transmission duration and the second information transmission duration.

[0096] For the description of step S402 , reference may be made to the corresponding description of step S102 , which will not be repeated here.

[0097] S403: Store the second time characteristic parameter.

[0098] In some embodiments, in order to enable other nodes in the communication network to automatically access the new gateway after the communication network replaces the gateway, thereby reducing the operational complexity of accessing the new gateway after the gateway is replaced, after obtaining the second time characteristic parameter, the target routing node stores the second time characteristic parameter so that after establishing a connection with the new gateway, the first time characteristic parameter related to the new gateway can be compared with the second time characteristic parameter to determine the legitimacy of the new gateway.

[0099] It should be noted that Figure 6 The illustrated embodiment is described by taking the target routing node obtaining the second time characteristic parameter based on the third information transmission duration and the second information transmission duration as an example. In some embodiments, in step S401, the target routing node may send the second information transmission duration to the second gateway, and the second gateway may obtain the second time characteristic parameter based on the second information transmission duration and the third information transmission duration, and then send the second time characteristic parameter to the target routing node. Accordingly, the target routing node receives the second time characteristic parameter sent by the second gateway and stores the second time characteristic parameter.

[0100] In some embodiments, Figure 7 As shown, the embodiment of the present disclosure also provides a network access method, which is applied to a first gateway, and the first gateway can be the above Figure 1 The gateway 11 shown, the method comprises the following steps:

[0101] S501. After establishing a connection with a target routing node in a communication network, obtain a first information transmission duration between a first gateway and at least one terminal in the communication network.

[0102] In some embodiments, after the first gateway establishes a connection with a target routing node in the communication network, in order to enable other nodes in the communication network to automatically access the first gateway, the first gateway obtains a first information transmission duration between the first gateway and at least one terminal in the communication network.

[0103] As an example, the first gateway obtains the first information transmission duration between the first gateway and at least one terminal in the communication network, which may be that the first gateway sends time detection information to the at least one terminal, and then receives at least one time detection response information sent by the at least one terminal, and then obtains the first information transmission duration between the first gateway and the at least one terminal based on the time of sending the time detection information and the at least one time detection response information. The first information transmission duration is used to verify the legitimacy of the first gateway.

[0104] It should be noted that after the first gateway establishes a connection with the target routing node in the communication network, since the first gateway has not yet established a connection with other nodes in the communication network, it cannot directly communicate with other nodes in the communication network. Therefore, after the first gateway establishes a connection with the target routing node in the communication network, the target routing node sends device information to the first gateway, and the device information includes the identifier of at least one terminal connected to the target routing node, so that the first gateway sends time detection information to at least one terminal based on the identifier of at least one terminal. Correspondingly, the first gateway receives the device information sent by the target routing node, and then sends time detection information to at least one terminal based on the identifier of at least one terminal included in the device information, so as to obtain the transmission duration of the first information. Among them, the identifier of a terminal is used to uniquely indicate a terminal, for example, it can be the network address of the terminal.

[0105] As an example, the identifier of the terminal may be a media access control (MAC) address of the terminal.

[0106] S502: Send a first information transmission duration to a target routing node.

[0107] As an example, the first gateway may send the first information transmission duration to the target routing node based on the connection established with the target routing node, so that the target routing node can verify whether the first gateway is a legitimate gateway based on the first information transmission duration.

[0108] In some embodiments, Figure 8 As shown, after step S502, the method may further include the following steps:

[0109] S601: Receive an access request sent by at least one terminal.

[0110] In some embodiments, when the target routing node determines that the first gateway is a legitimate gateway, the first gateway receives an access request sent by at least one terminal, wherein the access request is used to request access to the first gateway.

[0111] As an example, an access request includes an identifier of a terminal, so that the first gateway determines whether to allow the terminal to access the first gateway based on the identifier of the terminal.

[0112] S602: In response to the access request, send an access response to at least one terminal.

[0113] The access response is used to indicate successful access to the first gateway.

[0114] In some embodiments, after receiving the access request sent by at least one terminal, the first gateway detects whether the device information sent by the target routing node includes the identifier of the at least one terminal, and determines to allow the at least one terminal to access if the identifier of the at least one terminal exists. Then the first gateway sends an access response to the at least one terminal to indicate that the at least one terminal has successfully accessed the first gateway. Accordingly, each of the at least one terminal receives the access response sent by the first gateway, and determines to successfully access the first gateway based on the access response.

[0115] In some embodiments, Fig. 9 As shown, the embodiment of the present disclosure also provides a network access method, which is applied to the second gateway and includes the following steps:

[0116] S701: When at least one terminal in a communication network accesses a second gateway, obtain a third information transmission duration between the second gateway and the at least one terminal.

[0117] S702: Send a third information transmission duration to a target routing node.

[0118] For the description of step S701 to step S702, reference may be made to the corresponding description of step S401, which will not be repeated here.

[0119] It should be noted that the above-mentioned embodiment is illustrated by taking the example that the target routing node obtains the second time characteristic parameter based on the second information transmission duration and the third information transmission duration. In some embodiments, after step S701, the second gateway may also send an indication information to the target routing node to instruct the target routing node to report the second information transmission duration, and then the second gateway receives the second information transmission duration sent by the target routing node, and then obtains the second time characteristic parameter based on the second information transmission duration and the third information transmission duration, and sends an indication information to other nodes in the communication network to instruct the storage of the second time characteristic parameter.

[0120] The following is an example of a network access method provided by an embodiment of the present disclosure. Fig.10 FIG. 1 is a schematic diagram of the overall process of a network access method provided by an embodiment of the present disclosure. Fig.10 , the method comprises the following steps:

[0121] S1. The second gateway switches to configuration mode.

[0122] With the above Figure 1 The communication network shown is an IOT network as an example. In some embodiments, when the IOT system is built, the user can control the second gateway to switch to the configuration mode. When the second gateway is in the configuration mode, the user can configure the parameters of the second gateway, such as configuring the name of the second gateway, configuring the access method of the second gateway, etc.

[0123] In some embodiments, the configuration mode may also be called by other names, for example, the screening mode.

[0124] S2. Each sub-network is connected to the second gateway.

[0125] From the above Figure 1 From the description, it can be seen that the sub-networks can include Matter network, Thread network, ZigBee network and Z-Wave network. Connecting each sub-network to the IOT system means connecting the Matter network, Thread network, ZigBee network and Z-Wave network to the second gateway in the IOT system.

[0126] S3. At least one terminal of each sub-network is connected to the second gateway respectively.

[0127] Combined with the above Figure 1 As described above, multiple terminals 31 are respectively connected to the second gateway in the IOT system.

[0128] S4. The second gateway switches to normal operation mode.

[0129] S5. Use the routing node of the Matter network as the root node of the entire IOT network.

[0130] It should be understood that the root node is also the above-mentioned target routing node.

[0131] S6. The second gateway sends time detection information to at least one terminal according to the network device list.

[0132] In some embodiments, when multiple terminals access the second gateway, the second gateway can obtain device information of each terminal to form a network device list, which includes the network address of each terminal. The second gateway can send time detection information to each terminal in the at least one terminal according to the network device list to determine the transmission duration of the third information between the second gateway and the at least one terminal.

[0133] S7. At least one terminal sends time probe response information to the second gateway.

[0134] For the description of the time detection response information, please refer to the description of the time detection response information in the above steps, which will not be repeated here.

[0135] S8. The second gateway determines a third information transmission duration between the second gateway and the at least one terminal based on the time detection response information sent by the at least one terminal.

[0136] In some embodiments, after the second gateway receives the time detection response information sent by each terminal, the second gateway determines the third information transmission duration between the second gateway and at least one terminal based on the time of sending the time detection information and the time detection response information sent by each terminal, that is, establishes an information transmission time matrix between the second gateway and each terminal. Among them, the number of rows and columns of the information transmission duration matrix can be pre-set by the network management personnel, for example, 5 rows * 5 columns, or it can be determined by the second gateway according to the number of terminals in the IOT system, which is not limited in the embodiments of the present disclosure. An element in the information transmission duration matrix between the second gateway and each terminal is the information transmission duration between the second gateway and a terminal.

[0137] S9. The second gateway determines a third characteristic value based on the third information transmission duration.

[0138] After the second gateway establishes the information transmission time matrix between the second gateway and each terminal, the second gateway can perform information statistics on the information transmission time matrix to obtain a third eigenvalue. The description of the third eigenvalue can refer to the relevant description of the first eigenvalue in the above step S1021, which is not repeated here.

[0139] S10. The second gateway sends indication detection information to the root node.

[0140] The indication detection information is used to instruct the root node to detect the second information transmission duration between the root node and at least one terminal.

[0141] S11. The root node feeds back to the second gateway a second information transmission duration between the root node and at least one terminal.

[0142] After receiving the indication information, the root node may also send time detection information to each terminal to obtain the second information transmission duration between the root node and at least one terminal, and feed back the second information transmission duration between the root node and at least one terminal to the second gateway.

[0143] S12: The second gateway receives the second information transmission duration sent by the root node.

[0144] In some embodiments, after the second gateway receives the second information transmission duration sent by the root node, the second gateway constructs an information transmission duration matrix between the root node and at least one terminal, wherein an element in the information transmission duration matrix between the root node and each terminal is the information transmission duration between the root node and a terminal.

[0145] S13. The second gateway determines a second characteristic value based on the second information transmission duration.

[0146] After the second gateway constructs the information transmission duration matrix between the root node and each terminal, it can perform information statistics on the information transmission duration matrix to obtain the second eigenvalue of the information transmission duration matrix between the root node and at least one terminal. For the description of the second eigenvalue, reference can be made to the description of the second eigenvalue in the above step S1022, which will not be repeated here.

[0147] S14. The second gateway calculates a second time characteristic parameter.

[0148] After obtaining the third eigenvalue of the information transmission time matrix between the second gateway and at least one terminal and the second eigenvalue of the information transmission duration matrix between the root node and at least one terminal, the second gateway may use the difference between the two eigenvalues ​​as the second time characteristic parameter.

[0149] S15. The second gateway sends a second time characteristic parameter to at least one terminal, and instructs the at least one terminal to store the second time characteristic parameter.

[0150] In some embodiments, the second gateway may also send the second time characteristic parameter to the routing node in the IOT network to instruct the routing node to store the second time characteristic parameter.

[0151] S16. Replace the second gateway.

[0152] After replacing the second gateway with the first gateway, the root node will lose communication with the second gateway.

[0153] S17: Start the configuration mode of the first gateway and configure the first gateway to establish a connection with the root node.

[0154] S18. The first gateway determines a first information transmission duration between the first gateway and at least one terminal.

[0155] For the description of how the first gateway determines the first information transmission duration, reference may be made to the description of how the second gateway determines the third information transmission duration in S6-S8 above, which will not be described in detail here.

[0156] S19. The first gateway sends a first information transmission duration to the root node.

[0157] S20. The root node determines a first time characteristic parameter according to the first information transmission duration and the second information transmission duration, and compares the first time characteristic parameter with a pre-stored second time characteristic parameter.

[0158] S21. When a difference between the first time characteristic parameter and the second time characteristic parameter is within a preset range, send indication information to at least one terminal.

[0159] The indication information is used to indicate access to the first gateway.

[0160] It should be understood that when the difference is within the preset range, it means that the sub-networks in the IOT network have not changed, the first gateway is a legal gateway, and each terminal can access the new gateway.

[0161] S22: When it is detected that the terminals of each sub-network are connected to the first gateway, the root node instructs the first gateway to switch to a normal operation mode.

[0162] S23: The first gateway updates the first time characteristic parameter.

[0163] In some embodiments, after the first gateway switches to the normal operating mode, the steps performed by the second gateway in the above S6-S14 are performed again to update the first time characteristic parameter.

[0164] S24. The first gateway sends the updated first time characteristic parameter to each node in the IOT system.

[0165] Each node includes at least one terminal and a root node.

[0166] After receiving the updated first time characteristic parameter, each node stores the updated first time characteristic parameter and deletes the first time characteristic parameter previously stored.

[0167] In this way, the process of each terminal in the IOT system accessing the new gateway after the gateway is replaced is completed. A network access method provided by the embodiment of the present disclosure only needs to configure the new gateway access root node after the gateway is replaced, and each node in the IOT system can automatically access the new gateway without manual configuration by the user, thereby realizing automatic terminal access to the new gateway, reducing the complexity of the operation of accessing the new gateway after the gateway is replaced, improving the efficiency of accessing the new gateway after the gateway is replaced, and helping to improve the user experience.

[0168] In some embodiments, a network access method provided by an embodiment of the present disclosure may be applied to a house decoration process, and may include the following steps:

[0169] S31. Deploy the IOT system in the house.

[0170] S32: Determine a second time characteristic parameter.

[0171] S33. Writing the second time characteristic parameter into the gateway, routing node and terminal during the production process of the gateway, routing node and terminal.

[0172] S34: After each terminal is deployed in the house, the second gateway is powered on and switched to configuration mode.

[0173] S35. Connect the designated root node (ie, the target routing node) to the second gateway. After the root node verifies the second time characteristic parameter, each terminal is enabled to access the second gateway.

[0174] S36. After the first access to the second gateway is completed, the second gateway updates the second time characteristic parameter and sends the updated second time characteristic parameter to other nodes (including other routing nodes and at least one terminal) in the IOT system.

[0175] In this way, the first deployment process is completed. After the second gateway is replaced with the first gateway, a network access method provided by the embodiment of the present disclosure can be executed, without the need for manual configuration by the user, and other nodes in the communication network (at least one terminal and / or other routing nodes in the communication network) can be automatically connected to the new gateway, which reduces the complexity of the operation of accessing the new gateway after the gateway is replaced, improves the efficiency of accessing the new gateway after the gateway is replaced, and helps to improve the user experience.

[0176] The above mainly introduces the solution provided by the present disclosure from the perspective of the interaction between each node. It is understandable that each node, such as the target routing node, includes a hardware structure and / or software module corresponding to the execution of each function in order to realize the above functions. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0177] Fig.11 FIG. 1 is a schematic diagram showing the composition of a communication device provided by an embodiment of the present disclosure. Fig.11 As shown, the communication device 80 includes an acquisition unit 801 , a processing unit 802 and a sending unit 803 .

[0178] The communication device 80 may be the target routing node or a chip in the target routing node. When the communication device 80 is used to implement the function of the target routing node in the above embodiment, each unit is specifically used to implement the following functions.

[0179] In some embodiments, the acquisition unit 801 is used to acquire a first information transmission duration between the first gateway and at least one terminal, and acquire a second information transmission duration between the target routing node and at least one terminal after establishing a connection with the first gateway.

[0180] The processing unit 802 is used to: obtain a first time characteristic parameter based on the first information transmission duration and the second information transmission duration; and compare the first time characteristic parameter with a pre-stored second time characteristic parameter.

[0181] The sending unit 803 is used to send indication information to at least one terminal and / or other routing nodes in the communication network when the difference between the first time characteristic parameter and the second time characteristic parameter is within a preset range, and the indication information is used to indicate access to the first gateway.

[0182] In some embodiments, the processing unit 802 is specifically used to: obtain a first characteristic value based on the first information transmission duration; the first characteristic value is used to characterize the statistical information of the first information transmission duration; obtain a second characteristic value based on the second information transmission duration; the second characteristic value is used to characterize the statistical information of the second information transmission duration; obtain a first time characteristic parameter based on the first characteristic value and the second characteristic value.

[0183] In some embodiments, the first time characteristic parameter is used to characterize the degree of difference between the first characteristic value and the second characteristic value.

[0184] In some embodiments, the second time characteristic parameter is related to a second gateway, and the second gateway is a gateway that the target routing node has historically accessed.

[0185] In some embodiments, the acquiring unit 801 is further configured to receive a third information transmission duration between the second gateway and at least one terminal sent by a second gateway, where the second gateway is a gateway that the target routing node has historically accessed;

[0186] The processing unit 802 is further used to: obtain a second time characteristic parameter based on the third information transmission duration and the second information transmission duration; and store the second time characteristic parameter.

[0187] In some embodiments, the processing unit 802 is further configured to: store the first time characteristic parameter of the first gateway, and delete the pre-stored second time characteristic parameter.

[0188] In some embodiments, the sending unit 803 is further used to send time detection information to each terminal in the at least one terminal, where the time detection information is used to determine the information transmission duration between the target routing node and the terminal.

[0189] The acquisition unit 801 is specifically used to receive at least one time detection response information sent by at least one terminal, where the time detection response information includes a first time, and the first time is the time when a terminal receives the time detection information; based on the at least one time detection response information, a second information transmission duration between the target routing node and the at least one terminal is obtained.

[0190] Fig.12 FIG. 2 is a schematic diagram showing the composition of another communication device provided by an embodiment of the present disclosure. Fig.12 As shown, the communication device 90 includes an acquiring unit 901 and a sending unit 902 .

[0191] The communication device 90 may be the first gateway or a chip in the first gateway. When the communication device 90 is used to implement the function of the first gateway in the above embodiment, each unit is specifically used to implement the following functions.

[0192] The acquisition unit 901 is used to acquire the first information transmission duration between the first gateway and at least one terminal in the communication network after establishing a connection with the target routing node in the communication network; the first information transmission duration is used to verify the legitimacy of the first gateway.

[0193] The sending unit 902 is configured to send a first information transmission duration to a target routing node.

[0194] In some embodiments, the acquiring unit 901 is further configured to receive an access request sent by at least one terminal, where the access request is used to request access to the first gateway;

[0195] The sending unit 902 is further configured to send an access response to at least one terminal in response to the access request, where the access response is used to indicate successful access to the first gateway.

[0196] It should be noted that Fig.11 and Fig.12 The units in the system may also be referred to as modules, for example, the sending unit may be referred to as a sending module. Fig.11 and Fig.12 In the illustrated embodiment, the names of the various units may not be the names shown in the figure. For example, the sending unit may also be called a communication unit.

[0197] Fig.11 and Fig.12If each unit in the embodiment is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of each embodiment of the present disclosure. The storage medium for storing computer software products includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0198] When the communication device 80 or the communication device 90 implements the functions of the integrated modules in the form of hardware, the present disclosure provides a schematic diagram of the structure of an electronic device. Fig.13 As shown, the electronic device 100 includes: a processor 1002 , a communication interface 1003 , and a bus 1004 . Optionally, the electronic device 100 may further include a memory 1001 .

[0199] The processor 1002 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. The processor 1002 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. The processor 1002 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0200] The communication interface 1003 is used to connect with other devices via a communication network, such as Ethernet, wireless access network, wireless local area network (WLAN), etc.

[0201] The memory 1001 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0202] As a possible implementation, the memory 1001 may exist independently of the processor 1002, and the memory 1001 may be connected to the processor 1002 via the bus 1004 to store instructions or program codes. When the processor 1002 calls and executes the instructions or program codes stored in the memory 1001, the network access method provided in the embodiment of the present disclosure can be implemented.

[0203] In another possible implementation, the memory 1001 may also be integrated with the processor 1002 .

[0204] The bus 1004 may be an extended industry standard architecture (EISA) bus, etc. The bus 1004 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.13 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0205] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and conciseness of the description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal can be divided into different functional modules to complete all or part of the functions described above.

[0206] The embodiment of the present disclosure also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be completed by computer instructions to instruct the relevant hardware, and the program can be stored in the above computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be the memory or memory of any of the above embodiments. The above computer-readable storage medium can also be an external storage device of the above electronic device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the above electronic device. Further, the above computer-readable storage medium can also include both the internal storage unit of the above terminal and an external storage device. The above computer-readable storage medium is used to store the above computer program and other programs and data required by the above electronic device. The above computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.

[0207] The embodiments of the present disclosure also provide a computer program product, which includes a computer program. When the computer program product is run on a computer, the computer is enabled to execute any one of the network access methods provided in the above embodiments.

[0208] Although the present disclosure is described herein in conjunction with various embodiments, in the process of implementing the claimed disclosure, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0209] Although the present disclosure has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present disclosure. Accordingly, this specification and the drawings are merely exemplary illustrations of the present disclosure as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present disclosure. Obviously, those skilled in the art may make various modifications and variations to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.

[0210] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A network access method, characterized in that: The method is applied to a target routing node, the target routing node is arranged in a communication network formed with at least one terminal, and the method comprises: After establishing a connection with the first gateway, obtaining a first information transmission duration between the first gateway and the at least one terminal, and obtaining a second information transmission duration between the target routing node and the at least one terminal; Obtaining a first time characteristic parameter based on the first information transmission duration and the second information transmission duration; comparing the first time characteristic parameter with a pre-stored second time characteristic parameter; When the difference between the first time characteristic parameter and the second time characteristic parameter is within a preset range, indication information is sent to the at least one terminal and / or other routing nodes in the communication network, where the indication information is used to indicate access to the first gateway.

2. The method according to claim 1, characterized in that The obtaining a first time characteristic parameter based on the first information transmission duration and the second information transmission duration includes: Based on the first information transmission duration, a first characteristic value is obtained; the first characteristic value is used to characterize statistical information of the first information transmission duration; Based on the second information transmission duration, a second characteristic value is obtained; the second characteristic value is used to characterize statistical information of the second information transmission duration; The first time characteristic parameter is obtained based on the first characteristic value and the second characteristic value.

3. The method according to claim 2, characterized in that The first time characteristic parameter is used to characterize the degree of difference between the first characteristic value and the second characteristic value.

4. The method according to claim 1, characterized in that The second time characteristic parameter is related to a second gateway, and the second gateway is a gateway that the target routing node has historically accessed.

5. The method according to claim 1, characterized in that After establishing a connection with the first gateway, before acquiring a first information transmission duration between the first gateway and the at least one terminal, and before acquiring a second information transmission duration between the target routing node and the at least one terminal, the method further includes: receiving a third information transmission duration between the second gateway and the at least one terminal sent by a second gateway, where the second gateway is a gateway that the target routing node has historically accessed; Based on the third information transmission duration and the second information transmission duration, obtaining the second time characteristic parameter; The second time characteristic parameter is stored.

6. The method according to claim 1, characterized in that After sending the indication information to the at least one terminal and / or other routing nodes in the communication network, the method further includes: The first time characteristic parameter of the first gateway is stored, and the pre-stored second time characteristic parameter is deleted.

7. The method according to claim 1, characterized in that The acquiring a second information transmission duration between the target routing node and the at least one terminal includes: Sending time detection information to each of the at least one terminal, wherein the time detection information is used to determine the information transmission duration between the target routing node and the terminal; Receiving at least one time detection response message sent by the at least one terminal, wherein the time detection response message includes a first time, and the first time is a time when the terminal receives the time detection message; Based on the at least one time detection response information, a second information transmission duration between the target routing node and the at least one terminal is obtained.

8. A network access method, characterized in that: The method is applied to a first gateway, and the method includes: After establishing a connection with a target routing node in a communication network, obtaining a first information transmission duration between the first gateway and at least one terminal in the communication network; the first information transmission duration is used to verify the legitimacy of the first gateway; The first information transmission duration is sent to the target routing node.

9. The method according to claim 8, characterized in that The method further comprises: receiving an access request sent by the at least one terminal, where the access request is used to request access to the first gateway; In response to the access request, an access response is sent to the at least one terminal, where the access response is used to indicate successful access to the first gateway.

10. An electronic device, characterized in that: include: one or more processors and memory; The memory stores instructions executable by the processor; When the one or more processors are configured to execute the instructions, the electronic device implements the method according to any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises computer instructions, which, when executed on a computer, cause the computer to perform the method according to any one of claims 1 to 9.