Network networking system, method and device, computer equipment, storage medium and computer program product

By detecting link disconnection in the Mesh network and automatically selecting a new uplink node to establish a new point-to-point link, it solves the problem of Mesh network failure recovery and ensures network stability and terminal access capabilities.

CN118764897APending Publication Date: 2024-10-11CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410918917.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In a Mesh network, if a router fails, the routers cannot connect to each other, and terminals cannot normally access the Mesh network. There is no automatic fault recovery mechanism.

Method used

By establishing point-to-point links between network nodes, detecting link disconnections, determining link parameters that can connect network nodes, automatically selecting new target uplink network nodes, and establishing new point-to-point links, Ensure the end-to-end link between the network node and the root network node is restored.

Benefits of technology

It realizes the automatic recovery of Mesh network in case of failure, ensures that terminals can access the network normally, and improves the reliability and stability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764897A_ABST
    Figure CN118764897A_ABST
Patent Text Reader

Abstract

The invention relates to a network networking system, method and device, computer equipment, a storage medium and a computer program product. The system comprises at least two network nodes, the network nodes form a target network through a point-to-point link, and the network nodes are used for transmitting the target network to the network node under the condition that the point-to-point link between the network node and an uplink network node of the network node is detected to be disconnected. And determining link parameters between the network node and all connectable network nodes of the network nodes, determining a target uplink network node from the connectable network nodes according to the link parameters, and establishing a point-to-point link between the network node and the target uplink network node. By adopting the method, the Mesh network fault can be automatically repaired.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a network networking system, method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] Currently, home broadband access terminals are becoming wireless. Except for some fixed terminals (such as computers and smart TVs) that still use wired access, mobile phones, smart tablets, and smart home terminals all use wireless LAN access. This requires that the home wireless LAN has a wide coverage area and good network quality.

[0003] At present, there is a Mesh (wireless mesh) networking solution for wireless LAN. Mesh networking refers to forming a Mesh network through multiple routers. Each router in the network can publish wireless network signals. The terminal can access the Mesh network through any router, so that the terminal can access the network nearby and improve the quality of the network signal received by the terminal.

[0004] However, in the Mesh networking solution, if a router fails, the routers cannot be connected to each other and the terminal cannot access the Mesh network normally. Therefore, it is necessary to provide a solution that can automatically recover the Mesh network in the event of a Mesh network failure. Summary of the invention

[0005] Based on this, it is necessary to provide a network networking system, method, device, computer equipment, storage medium and computer program product to address the above technical problems.

[0006] In a first aspect, the present application provides a network networking system, the system comprising at least two network nodes, each of which forms a target network through a point-to-point link, wherein:

[0007] The network node is used to determine the link parameters between the network node and all connectable network nodes of the network node when it is detected that the point-to-point link between the network node and the uplink network node of the network node is disconnected, determine the target uplink network node from each of the connectable network nodes based on the link parameters, and establish a point-to-point link between the network node and the target uplink network node.

[0008] In one of the embodiments, the network node is further configured to send a link measurement request to each of the connectable network nodes;

[0009] The connectable network node is used to determine the link parameters between the network node and the connectable network node according to the link measurement request, and send the link parameters to the network node.

[0010] In one of the embodiments, the system further comprises a master network node, and the network node is further configured to send link parameters between the network node and each of the connectable network nodes to the master network node;

[0011] The master network node is further used to construct a bidirectional link parameter graph for the target network according to the link parameters of each network node.

[0012] In one of the embodiments, the master network node is further used to determine the current end-to-end link between the network node and the root network node based on the point-to-point link between the network node and the target uplink network node, and determine each available end-to-end link between the network node and the root network node;

[0013] The master network node is further configured to determine a first link score value of the current end-to-end link and a second link score value of each of the available end-to-end links based on the link parameter bidirectional graph;

[0014] The master control network node is further configured to, when a magnitude relationship between the first link score value and each of the second link score values ​​does not satisfy a preset condition, determine a target available end-to-end link from each of the available end-to-end links, and send a link change request to each of the target network nodes on the target available end-to-end link;

[0015] The target network node is also used to re-determine the upstream network node of the target network node based on the link change request, and establish a point-to-point link between the target network node and the upstream network node of the target network node, so that the end-to-end link between the network node and the root network node matches the target available end-to-end link.

[0016] In one of the embodiments, the master network node is further used to determine each first point-to-point link constituting the current end-to-end link, and obtain the link parameters of each first point-to-point link from the link parameter bidirectional graph, and determine a first link score value of the current end-to-end link according to the link parameters of each first point-to-point link;

[0017] The master control network node is further used to determine, for any of the available end-to-end links, each second point-to-point link constituting the available end-to-end link, and obtain the link parameters of each of the second point-to-point links from the link parameter bidirectional graph, and determine the second link score value of the current end-to-end link based on the link parameters of each of the second point-to-point links.

[0018] In one of the embodiments, the network node is further used to periodically detect a wireless network signal, and when the wireless network signal is a network signal corresponding to the target network, use the network node that transmits the wireless network signal as the connectable network node of the network node.

[0019] In one of the embodiments, the network node is further configured to receive the link parameters sent by each of the connectable network nodes, and store each of the link parameters in a local storage space of the network node;

[0020] The network node is also used to obtain link parameters between the network node and all connectable network nodes of the network node from the local storage space when it is detected that the point-to-point link between the network node and an uplink network node of the network node is disconnected.

[0021] In a second aspect, the present application further provides a network networking method, wherein the target network is composed of a point-to-point link between at least two network nodes, and the method is applied to any network node in the target network, including:

[0022] In case of detecting that a point-to-point link between the network node and an uplink network node of the network node is disconnected, determining link parameters between the network node and all connectable network nodes of the network node;

[0023] Determining a target uplink network node from each of the connectable network nodes according to the link parameters;

[0024] A point-to-point link is established between the network node and the target uplink network node.

[0025] In a third aspect, the present application further provides a network networking device, wherein the target network is composed of a point-to-point link between at least two network nodes, and the device is applied to any network node in the target network, including:

[0026] a detection module, configured to determine link parameters between the network node and all connectable network nodes of the network node when detecting that a point-to-point link between the network node and an uplink network node of the network node is disconnected;

[0027] A determination module, configured to determine a target uplink network node from each of the connectable network nodes according to the link parameters;

[0028] An establishing module is used to establish a point-to-point link between the network node and the target uplink network node.

[0029] In a fourth aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, any one of the above methods is implemented.

[0030] In a fifth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, any of the above methods is implemented.

[0031] In a sixth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, any of the above methods is implemented.

[0032] The above network networking system, method, device, computer equipment, storage medium and computer program product, when the point-to-point link between a network node and its uplink network node is disconnected, enables the network node to automatically select a new target uplink network node from each connectable network node according to the link parameters between itself and each connectable network node, and establish a point-to-point link with the new target uplink network node, so that the terminal accessing the network node can access the network normally. Therefore, the target network can be automatically restored in the event of a failure. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of a network networking system in one embodiment;

[0034] Figure 2 A schematic diagram of a network networking system in one embodiment;

[0035] Figure 3 is a schematic diagram of a bidirectional graph of link parameters in one embodiment;

[0036] Figure 4 is a schematic diagram of a target network in one embodiment;

[0037] Figure 5 is a schematic diagram of a target network in one embodiment;

[0038] Figure 6 A schematic diagram of a flow chart of a network networking method in an embodiment;

[0039] Figure 7A structural block diagram of a network networking device in an embodiment;

[0040] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0042] In one embodiment, Figure 1 As shown, a network networking system is provided, including at least two network nodes, and each network node forms a target network through a point-to-point link, that is, a Mesh network, wherein the network node is used to determine the link parameters between the network node and all connectable network nodes of the network node when it is detected that the point-to-point link between the network node and the uplink network node of the network node is disconnected, determine the target uplink network node from each connectable network node according to the link parameters, and establish a point-to-point link between the network node and the target uplink network node.

[0043] In an embodiment of the present application, the network node may be a device such as a router that has network data transmission and forwarding functions. The terminal may access the target network by accessing any network node. The link directly connected between two network nodes is a point-to-point link, and the link between two network nodes connected through other network nodes is an end-to-end link. The link may be a wireless link or a wired link. The target network has a root network node, which is connected to an external network and is responsible for uploading data of the terminal accessing the target network to the external network, or forwarding data sent from the external network to the terminal to the terminal. The root network node may not be a fixed network node.

[0044] On the end-to-end link between a network node and a root network node, the network node directly connected to the network node is the uplink network node. For example, when the end-to-end link between network node A and root network node C consists of two point-to-point links: network node A - network node B, and network node B - network node C, network node B is the uplink network node of network node A.

[0045] Each network node can detect whether the point-to-point link between itself and the upstream network node is connected. In one embodiment, a test data packet can be periodically sent to the upstream network node, and when a response data packet sent by the upstream network node to the network node is received, it is determined that the point-to-point link between itself and the upstream network node is connected. In another embodiment, the target network also has a master network node, and the master network node is used to manage each point-to-point link in the target network. The master network node can periodically send a link test instruction to each network node through the point-to-point link or end-to-end link between itself and the network node, instructing the network node to test whether the point-to-point link between itself and the upstream network node is connected.

[0046] When a network node detects that the point-to-point link between itself and the uplink network node is disconnected, the network node needs to repair the target network. The network node obtains all of its own connectable network nodes (connectable network nodes refer to network nodes that can establish point-to-point links with network nodes. It should be noted that since there may be more than one point-to-point link that can be established between each network node, for example, two network nodes can be connected through wired, 2.4GHz frequency band, and 5GHz frequency band, so when a point-to-point link between the network node and the uplink network node is disconnected, but other point-to-point links can still be established, the uplink network node can also be a connectable network node), and determines the link parameters between each connectable network node and itself, and then determines its own new uplink network node (target uplink network node) based on the link parameters, and establishes a point-to-point link with the target uplink network node. In this way, the end-to-end link between the network node and the root network node becomes an end-to-end link between the target uplink network node, and the link composed of the point-to-point link between the network node and the target uplink network node, and each terminal accessing the network node can normally access the external network through the root network node.

[0047] In one embodiment, the network node is also used to periodically detect wireless network signals, and when the wireless network signal is a network signal corresponding to the target network, the network node that transmits the wireless network signal is used as a connectable network node of the network node. In the embodiment of the present application, since the target network will unify the SSID (Service Set Identifier) ​​of the wireless network signals issued by all nodes belonging to the target network, the network node can periodically search for wireless network signals, and when the SSID of the searched wireless network signal is the same as the SSID of the target network, it is determined that the device that transmits the wireless network signal is a connectable network node. The network node can be associated with the connectable network node. For example, the network node records the relevant information of the connectable network node, and can also send a data packet containing its own information to the connectable network node, so that the connectable network node also records the network node as a connectable network node of the connectable network node.

[0048] Link parameters may include any parameters used to characterize the transmission quality of a point-to-point link, such as transmission rate, packet loss rate, delay, etc. A network node may obtain link parameters after the point-to-point link between itself and the uplink network node is disconnected, or may periodically obtain link parameters and store them locally, and read the link parameters locally after the point-to-point link between itself and the uplink network node is disconnected.

[0049] The link parameters may be obtained by the network node by sending a link measurement request to each connectable network node. In one embodiment, the network node is also used to send a link measurement request to each connectable network node; the connectable network node is used to determine the link parameters between the network node and the connectable network node according to the link measurement request, and send the link parameters to the network node. In the embodiment of the present application, the link measurement request is marked by a specific packet header, and the link measurement request may be composed of multiple measurement data packets. The connectable network node receives the link measurement request and obtains the link parameters based on each data packet in the link measurement request. Exemplarily, in the case where the link parameters include the transmission rate, the connectable network node calculates the transmission rate of the link by measuring the size of the data packet, the sending timestamp of the measurement data packet, and the time point when the measurement data packet is received. In the case where the link parameters include the packet loss rate, the connectable network node calculates the packet loss rate of the link by the number of measurement data packets received by itself and the total number of measurement data packets. After obtaining the link parameters, the connectable network node sends the link parameters to the network node.

[0050] In one embodiment, the network node is also used to receive link parameters sent by each connectable network node, and store each link parameter in the local storage space of the network node; the network node is also used to obtain the link parameters between the network node and all connectable network nodes of the network node from the local storage space when it is detected that the point-to-point link between the network node and the uplink network node of the network node is disconnected. In an embodiment of the present application, each network node in the target network periodically sends a link measurement request to each connectable network node, and records the link parameters fed back by each connectable network node. In the case where the point-to-point link between the network node and the uplink network node is disconnected, the link parameters of the network node and each connectable network node are read locally, and the target uplink network node is determined based on the link parameters.

[0051] The target uplink network node can be determined from each connectable network node according to preset rules and link parameters. In one embodiment, the link score value corresponding to each connectable network node is determined according to each link parameter, and the connectable network node with the highest link score value is used as the target uplink network node. The higher the link score value, the better the transmission quality of the point-to-point link. The link score value can be proportional to the transmission rate, inversely proportional to the packet loss rate, and inversely proportional to the delay.

[0052] In one embodiment, the link parameters include the MAC (Media Access Control Address) address of the network node, the MAC address of the connectable network node, the link measurement time, the link association rate (that is, the maximum rate that can be used for the wireless connection, which is only used when the link is a wireless link), and the link transmission rate. In the embodiment of the present application, since the master network node of the target network will limit the speed of the point-to-point link when the packet loss rate of the point-to-point link between the two network nodes is too high or the delay is too high, the link transmission rate between the two network nodes is sufficient to reflect the transmission quality of the link.

[0053] In one embodiment, the network node periodically sends a link measurement request to the connectable network node, and records the link measurement time of each link measurement request. The network node saves the link parameters generated by the most recent N link measurements, and determines the change trend of the link parameters between the network node and the connectable network node based on the link measurement time and the link parameters. The network node selects the connectable network nodes with stable change trends of the link parameters (e.g., the standard deviation of the link parameters is less than a certain threshold, and the difference between the maximum and minimum values ​​of the link parameters is less than a certain threshold) as candidate uplink network nodes, and determines the link score value of the candidate uplink network node based on the link parameters of the candidate uplink network node, and selects the candidate uplink network node with the highest link score value as the target uplink network node.

[0054] The network networking system provided by the embodiment of the present application enables the network node to automatically select a new target uplink network node from each connectable network node according to the link parameters between itself and each connectable network node when the point-to-point link between the network node and its uplink network node is disconnected, and establish a point-to-point link with the new target uplink network node, so that the terminal accessing the network node can access the network normally. Therefore, the target network can be automatically restored in the event of a failure.

[0055] In one embodiment, Figure 2 As shown, the system also includes a master network node, which is also used to send the link parameters between the network node and each connectable network node to the master network node; the master network node is also used to construct a bidirectional link parameter graph for the target network based on the link parameters of each network node.

[0056] In the embodiment of the present application, the target network includes a master network node. The master network node may be a network node or may not be a network node, but a device dedicated to managing the target network. The master network node must include a functional module capable of processing data, which is used to obtain link parameters from each network node side and summarize them into the network status of the target network.

[0057] After obtaining the link parameters, each network node uploads the link parameters to the master network node, so that the master network node can record the link parameters of each point-to-point link in the target network, and build a bidirectional link parameter graph for the target network based on the link parameters of each point-to-point link. Each network node can upload link parameters through its point-to-point link or end-to-end link with the master network node. In the case where the master network node itself is a network node, the master network node also needs to collect link parameters and build a bidirectional link parameter graph for the target network based on the link parameters uploaded to it by other network nodes and the link parameters collected by itself.

[0058] It should be noted that the network node may have different periods for collecting link parameters for each of its connectable network nodes. In this case, after the network node collects link parameters for a connectable network node each time, the reported link parameters may include only the new link parameters collected this time, or may include all link parameters stored in the network node (that is, including link parameters that have not changed in this collection). After the master control network node deduplicates the received link parameters, it updates the link parameter bidirectional graph.

[0059] The link parameter bidirectional graph is composed of each network node in the target network, the directed connection relationship between each network node (there is a directed connection relationship between a network node A and another network node B, which means that network node B is a connectable network node of network node A. It should be noted that due to the different signal strength and signal search capabilities of each network node, it is possible that network node A can search for network node B, but network node B cannot search for network node A, that is, network node B is a connectable network node of network node A, but network node A is not a connectable network node of network node B), and the link parameters between each network node. See Table 1 below for the tabular form of the link parameter bidirectional graph; see Figure 3 , is the graphical form of the link parameter bidirectional graph:

[0060] Table 1

[0061]

[0062] Among them, AP is the Access Point of the wireless network, which is also the abbreviation of access node. The link parameter packet includes all link parameters. The source node refers to the network node that sends the link measurement request, and the destination node refers to the network node that receives the link measurement request and returns the link parameters to the source node. Link parameter packet 2-1 refers to a data packet consisting of various link parameters received from network node 1 after network node 2 sends a link measurement request to network node 1. The meanings of other link parameter packets are similar.

[0063] The user can view the link parameters of all point-to-point links in the target network through the link parameter bidirectional diagram in the master network node to obtain the overall network status of the target network.

[0064] In one embodiment, the master network node is further used to determine the current end-to-end link between the network node and the root network node based on the point-to-point link between the network node and the target uplink network node, and determine each available end-to-end link between the network node and the root network node; the master network node is further used to determine the first link score value of the current end-to-end link and the second link score value of each available end-to-end link based on the link parameter bidirectional graph; when the size relationship between the first link score value and each second link score value does not meet a preset condition, determine the target available end-to-end link from each available end-to-end link, and send a link change request to each target network node on the target available end-to-end link; based on the link change request, re-determine the uplink network node of the target network node, and establish a point-to-point link between the target network node and the uplink network node of the target network node, so that the end-to-end link between the network node and the root network node matches the target available end-to-end link.

[0065] In the embodiment of the present application, after establishing a point-to-point link with the target uplink network node, the network node can report its new target uplink network node to the master network node. Alternatively, the master network node can also periodically send a detection data packet in the network and instruct all network nodes that forward the detection data packet to add their own identification in the detection data packet to detect the current point-to-point links of the target network.

[0066] After determining that a point-to-point link is established between the network node and the target uplink network node, the master network node updates the point-to-point links of the target network stored in itself, and determines the end-to-end link between the current network node and the root network node, that is, the current end-to-end link, and all possible end-to-end links between the network node and the root network node, that is, the available end-to-end link. The master network node can determine the available end-to-end link based on the link parameter bidirectional graph: when the directed connection relationship between network node A and network node B is recorded in the link parameter bidirectional graph, it is determined that a point-to-point link can be established between network node A and network node B. Based on the possible point-to-point links between each network node, all possible end-to-end links between the network node and the root network node are determined. Since the connection relationship between each node in the Mesh network is relatively complex, each node may become the uplink node of another node. Therefore, recording each possible point-to-point link and the link parameters of each possible point-to-point link in the form of a bidirectional graph can improve the efficiency of determining possible end-to-end links when all possible end-to-end links between the network node and the root network node need to be determined.

[0067] For example Figure 4 As shown, there are network nodes 1, 2, 3, and 4 in the target network, and the root network node is network node 4. The dotted line connection in the figure represents a possible point-to-point link, and the solid line connection represents the currently used point-to-point link. The point-to-point link between network nodes 1 and 2 is disconnected. When network node 1 selects network node 3 as the target uplink network node, the current end-to-end link is 1-3-4, and the available end-to-end links are 1-4 and 1-3-2-4.

[0068] Since the network node can only know the link parameters between itself and its own connectable nodes, the network node can only ensure that the point-to-point link between itself and the target uplink network node is the optimal point-to-point link, and cannot ensure that the current end-to-end link is the optimal end-to-end link. The master network node can modify the current end-to-end link if it finds that the current end-to-end link does not meet the requirements. The master network node can calculate the first link score value of the current end-to-end link and the second link score value of each available end-to-end link. The link score value is used to characterize the transmission quality of the link. For details, please refer to the description of the aforementioned embodiment, and the embodiments of the present application will not be repeated here. After obtaining the first link score value and the second link score value, determine whether the size relationship between the first link score value and the second link score value meets the preset conditions. In one embodiment, the preset condition is that the first link score is greater than all the second link score values, that is, the current end-to-end link has better transmission quality than all available end-to-end links; in another embodiment, the preset condition is that after calculating the difference between the second link score and the first link score, the size of all positive differences is less than the difference threshold, that is, there are better available end-to-end links, but the transmission quality of these better available end-to-end links is not much better than the current end-to-end link. In this case, the master control network node may not modify the current end-to-end link to avoid chain reactions caused by modifying the link, such as excessive network traffic carried by the modified link, resulting in a decrease in transmission rate and other problems.

[0069] The link score value of the end-to-end link is calculated based on the link score values ​​of all the point-to-point links that constitute the end-to-end link. In one embodiment, the master network node is further used to determine each first point-to-point link that constitutes the current end-to-end link, and obtain the link parameters of each first point-to-point link from the link parameter bidirectional graph, and determine the first link score value of the current end-to-end link based on the link parameters of each first point-to-point link; for any available end-to-end link, determine each second point-to-point link that constitutes the available end-to-end link, and obtain the link parameters of each second point-to-point link from the link parameter bidirectional graph, and determine the second link score value of the current end-to-end link based on the link parameters of each second point-to-point link. In an embodiment of the present application, the master network node determines each first point-to-point link constituting the current end-to-end link and each second point-to-point link constituting the available end-to-end link, obtains link parameters of the first point-to-point link and the second point-to-point link according to the link parameter bidirectional graph, and calculates link score values ​​of the first point-to-point link and the second point-to-point link; then, the link score values ​​of each first point-to-point link are summed, averaged, or medianed to obtain a first link score value of the current end-to-end link, and for any available end-to-end link, the link score values ​​of each second point-to-point link constituting the available end-to-end link are summed, averaged, or medianed to obtain a second link score value of the available end-to-end link.

[0070] If the current end-to-end link needs to be modified, the master network node can select the available end-to-end link with the highest second link score as the target available end-to-end link. The master network node then sends a link change request to each target network node involved in the target available end-to-end link, so that each target network node modifies its own upstream network node and establishes the target available end-to-end link. For example, when the current end-to-end link is 1-2-3-4 and the target available end-to-end link is 1-3-2-4, network node 1 establishes a point-to-point link with 3 after receiving the link change request. 2 establishes a point-to-point link with 4 after receiving the link change request. 3 establishes a point-to-point link with 2 after receiving the link change request, so that the data from network node 1 can be forwarded through the link of 1-3-2-4.

[0071] In one embodiment, after the target network node re-determines the upstream network node, it disconnects the point-to-point link with the original upstream network node. That is, when the original end-to-end link between network node 2 and network node 4 is 2-3-4, and the end-to-end link between 3 and 4 is 3-4, after the end-to-end link between network node 1 and network node 4 is modified, the end-to-end links between network nodes 2, 3 and network node 4 will also change to 2-4 and 3-2-4, so as to avoid the network topology becoming too complicated.

[0072] In another embodiment, when there are network nodes other than network node 1, and the end-to-end links between the root network node include a point-to-point link between the target network node and the original uplink network node of the target network node, the target network node does not disconnect the point-to-point link between itself and the original uplink network node, and only establishes a point-to-point link with the newly determined uplink network node. If there is no such network node, the target network node can disconnect the point-to-point link between itself and the original uplink network node, avoiding large-scale changes in network topology caused by modifying the end-to-end link of network node 1.

[0073] Take the above network nodes 1, 2, 3, and 4 for illustration. That is to say, when there are nodes other than network node 1 using the link 2-3-4, 2 can continue to disconnect the point-to-point link between itself and 3, and 3 can continue to disconnect the point-to-point link between itself and 4. For example, when the end-to-end link between network node 2 and network node 4 is 2-3-4, neither 2 nor 3 disconnects the point-to-point link between itself and the original upstream network node. In this case, data from network node 1 will be forwarded to 4 via 1-3-2-4, and data from network node 2 will be forwarded to 4 via 2-3-4. Network nodes can determine which link to use to forward data by checking the source network node of the data.

[0074] It should be noted that when each network node regularly collects and reports link parameters, that is, when the link parameter bidirectional graph is regularly updated, the master network node can also perform the above-mentioned process of detecting the current end-to-end link for each network node after the link parameter bidirectional graph is updated, and determine whether the current end-to-end link needs to be modified, so as to early discover the current end-to-end links with poor transmission quality and the risk of disconnection, and modify these current end-to-end links to avoid failures in the target network in advance.

[0075] When the root network node changes, the master network node may also execute the above process of detecting the current end-to-end link and determining whether the current end-to-end link needs to be modified to re-find a better link for each network node to access the external network.

[0076] The following Figure 5 The above process is explained with a specific example. In the home scenario, there are 3 network nodes under network node 4 (home gateway), and each network node includes the following 4 functional modules: a signal sending module, which is used to detect the WLAN signals released by each network node in the Mesh network, associate each network node one by one, and send a speed test data packet. Speed ​​measurement node module: used to monitor the WLAN signals released by this network node, receive link measurement requests sent by other associated network nodes, and feed back the link parameters to the source network node. Speed ​​measurement receiving module: receives the link parameters fed back by the destination network node and saves them locally. Routing reporting module: summarizes the link parameters collected to each network node and reports them to the main control network node.

[0077] Network nodes 1 and 2 are directly connected to the home gateway via network cables, and network node 3 is connected to network node 1 wirelessly to form a Mesh network. Network nodes 1, 2, and 3 all publish the unified SSID of the Mesh network. Network node 1 searches for wireless network signals around it and detects that network nodes 2 and 3 have both published the unified SSID of the Mesh network. Then network node 1 associates 2 and 3, that is, records network nodes 2 and 3 as its own connectable nodes, and sends link measurement requests to network nodes 2 and 3.

[0078] After receiving the link measurement request sent by network node 1, network node 2 and network node 3 respectively feedback link parameter packages 1-2 and 1-3 to it. After receiving link parameter packages 1-2 and 1-3, network node 1 saves them locally and uploads them to the master control network node ( Figure 5(not shown, it may be one of the network nodes 1, 2, 3, 4, or other control devices); if there is a direct network cable between network node 1 and the master network node, that is, a point-to-point link may be established between the two nodes, the link parameter package is uploaded through the direct network cable. If there is no direct network cable, the link parameter package can be uploaded through network nodes 2 and 3. The link parameter package can be uploaded at one time or in multiple times. For example, when the link parameter package has a large amount of data, in order to avoid interfering with the use of the Mesh network by terminals accessing the Mesh network, network node 1 can divide the link parameter package into multiple small data packets for transmission.

[0079] Similarly, network node 2 also uses a similar method to receive link parameter packages 2-1 and 2-3, save them locally, and upload them to the master network node through a direct network cable; network node 3 also uses a similar method to receive link parameter packages 3-1 and 3-2, save them locally, and forward them to the master network node through network node 1. Among them, 3-1 is a point-to-point link in use.

[0080] After receiving the link parameter package, the master network node saves it locally. The link parameter package can be saved using the data structure of the link parameter bidirectional graph: after receiving link parameter packages 1-2, 1-3, 2-1, 2-3, 3-1, and 3-2, the data at the corresponding positions are updated respectively. It should be noted that the data at some positions in the link parameter bidirectional graph may be incomplete. For example, in Table 1 above, if network node 1 is not a connectable network node of network node 3, then the data in the first row and third column is empty. Because in a larger Mesh network, some network nodes are invisible to each other, the corresponding position in the link parameter bidirectional graph should be "empty", indicating "unreachable".

[0081] When the point-to-point link between network node 1 and its upstream network node fails, network node 1 reselects the target upstream network node based on the locally saved link parameter package. Network node 1 first detects which network node is its downstream network node (that is, the network node that uses network node 1 as the upstream network node, which is network node 3 in the embodiment of the present application), removes downstream network node 3 from each connectable node, and then selects the target upstream network node from each connectable node after removal. This is because 3-1 is the link in use, so 3 should be abandoned as the target upstream network node, because if 1-3 and 3-1 are both links in use, the Mesh network will be routed into a ring. Therefore, in the embodiment of the present application, 1 can only select 2 as the target upstream network node.

[0082] When the point-to-point link between network node 2 and its upstream network node fails, network node 2 reselects the target upstream network node according to the link parameter package. A better link among 2-1 and 2-3, such as 2-3, can be preferentially determined, and 3 is selected as the target upstream network node. If 2-3-1-4 is not the optimal end-to-end link, the master network node can update the end-to-end link from network node 2 to network node 4.

[0083] When the point-to-point link between network node 3 and its uplink network node fails, network node 3 reselects a target uplink network node according to the link parameter package. Since 3-1 is a failed link, only 3-2 can be selected, and 2 is used as the target uplink network node.

[0084] The network networking system provided by the embodiment of the present application sets a master network node to check the end-to-end link from each network node to the root network node. If the quality of the end-to-end link currently used by the network node is not good, the master network node selects a better target available end-to-end link and issues instructions to each network node so that each network node establishes a point-to-point link that matches the target available end-to-end link. Therefore, the transmission quality between the network node and the root network node can be improved.

[0085] In one embodiment, Figure 6 As shown, a network networking method is provided, which is applied to any network node in the target network, including:

[0086] Step 602, when it is detected that the point-to-point link between the network node and an uplink network node of the network node is disconnected, determining the link parameters between the network node and all connectable network nodes of the network node;

[0087] Step 604, determining a target uplink network node from each connectable network node according to the link parameters;

[0088] Step 606: Establish a point-to-point link between the network node and the target uplink network node.

[0089] In the embodiment of the present application, when the network node detects that the point-to-point link between itself and the uplink network node is disconnected, the network node repairs the target network. The network node obtains all of its own connectable network nodes and determines the link parameters between each connectable network node and itself, and then determines its new uplink network node (target uplink network node) based on the link parameters, and establishes a point-to-point link with the target uplink network node, so that each terminal accessing the network node can normally access the external network through the root network node.

[0090] Among them, the specific method of selecting the target uplink network node can be found in the description of the aforementioned embodiment, and the embodiments of the present application will not be repeated here.

[0091] The network networking method provided by the embodiment of the present application enables the network node to automatically select a new target uplink network node from each connectable network node according to the link parameters between itself and each connectable network node when the point-to-point link between the network node and its uplink network node is disconnected, and establish a point-to-point link with the new target uplink network node, so that the terminal accessing the network node can access the network normally. Therefore, the target network can be automatically restored in the event of a failure.

[0092] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0093] Based on the same inventive concept, the embodiment of the present application also provides a network networking device for implementing the network networking method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more network networking device embodiments provided below can refer to the limitations on the network networking method above, and will not be repeated here.

[0094] In one embodiment, Figure 7 As shown, a network networking device 700 is provided, including: a detection module 702, a determination module 704, and an establishment module 706, wherein:

[0095] A detection module 702, configured to determine link parameters between the network node and all connectable network nodes of the network node when it is detected that a point-to-point link between the network node and an uplink network node of the network node is disconnected;

[0096] A determination module 704, configured to determine a target uplink network node from each of the connectable network nodes according to the link parameter;

[0097] The establishing module 706 is configured to establish a point-to-point link between the network node and the target uplink network node.

[0098] The network networking device provided in the embodiment of the present application enables the network node to automatically select a new target uplink network node from each connectable network node according to the link parameters between itself and each connectable network node when the point-to-point link between the network node and its uplink network node is disconnected, and establish a point-to-point link with the new target uplink network node, so that the terminal accessing the network node can access the network normally. Therefore, the target network can be automatically restored in the event of a failure.

[0099] Each module in the above device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0100] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a network networking method is implemented.

[0101] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0102] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0103] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0104] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0105] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0106] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0107] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0108] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A network networking system, characterized in that: The system includes at least two network nodes, each of which forms a target network through a point-to-point link, wherein: The network node is used to determine the link parameters between the network node and all connectable network nodes of the network node when it is detected that the point-to-point link between the network node and the uplink network node of the network node is disconnected, determine the target uplink network node from each of the connectable network nodes based on the link parameters, and establish a point-to-point link between the network node and the target uplink network node.

2. The system according to claim 1, characterized in that The network node is further configured to send a link measurement request to each of the connectable network nodes; The connectable network node is used to determine the link parameters between the network node and the connectable network node according to the link measurement request, and send the link parameters to the network node.

3. The system according to claim 2, characterized in that The system further comprises a master control network node, the network node being further configured to send link parameters between the network node and each of the connectable network nodes to the master control network node; The master network node is further used to construct a bidirectional link parameter graph for the target network according to the link parameters of each network node.

4. The system according to claim 3, characterized in that The master control network node is further used to determine a current end-to-end link between the network node and a root network node based on a point-to-point link between the network node and the target uplink network node, and to determine each available end-to-end link between the network node and the root network node; The master network node is further configured to determine a first link score value of the current end-to-end link and a second link score value of each of the available end-to-end links based on the link parameter bidirectional graph; The master control network node is further configured to, when a magnitude relationship between the first link score value and each of the second link score values ​​does not satisfy a preset condition, determine a target available end-to-end link from each of the available end-to-end links, and send a link change request to each of the target network nodes on the target available end-to-end link; The target network node is also used to re-determine the upstream network node of the target network node based on the link change request, and establish a point-to-point link between the target network node and the upstream network node of the target network node, so that the end-to-end link between the network node and the root network node matches the target available end-to-end link.

5. The system according to claim 4, characterized in that The master control network node is further configured to determine each first point-to-point link constituting the current end-to-end link, obtain the link parameters of each first point-to-point link from the link parameter bidirectional graph, and determine a first link score value of the current end-to-end link according to the link parameters of each first point-to-point link; The master control network node is further used to determine, for any of the available end-to-end links, each second point-to-point link constituting the available end-to-end link, and obtain the link parameters of each of the second point-to-point links from the link parameter bidirectional graph, and determine the second link score value of the current end-to-end link based on the link parameters of each of the second point-to-point links.

6. The system according to claim 1, characterized in that The network node is further configured to periodically detect a wireless network signal, and when the wireless network signal is a network signal corresponding to the target network, use a network node that transmits the wireless network signal as the connectable network node of the network node.

7. The system according to claim 2, characterized in that The network node is further configured to receive the link parameters sent by each of the connectable network nodes, and store each of the link parameters in a local storage space of the network node; The network node is also used to obtain link parameters between the network node and all connectable network nodes of the network node from the local storage space when it is detected that the point-to-point link between the network node and an uplink network node of the network node is disconnected.

8. A network networking method, characterized in that: The target network is composed of a point-to-point link between at least two network nodes, and the method is applied to any network node in the target network, including: In case of detecting that a point-to-point link between the network node and an uplink network node of the network node is disconnected, determining link parameters between the network node and all connectable network nodes of the network node; Determining a target uplink network node from each of the connectable network nodes according to the link parameters; A point-to-point link is established between the network node and the target uplink network node.

9. A network networking device, characterized in that: The target network is composed of a point-to-point link between at least two network nodes, and the device is applied to any network node in the target network, including: a detection module, configured to determine link parameters between the network node and all connectable network nodes of the network node when detecting that a point-to-point link between the network node and an uplink network node of the network node is disconnected; A determination module, configured to determine a target uplink network node from each of the connectable network nodes according to the link parameters; An establishing module is used to establish a point-to-point link between the network node and the target uplink network node.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to claim 8 are implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 8 are implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to claim 8 are implemented.

Citation Information

Cited By

  • Fault positioning method and device, equipment, storage medium and program product

    CN119449589A