Networking method, networking system and electronic device
By broadcasting topology information requests to neighboring nodes and detecting link congestion, and selecting a suitable parent node to establish a route, the reliability and latency issues in tree-structured networks are resolved, thereby improving network stability and robustness.
Patent Information
- Application Number
- CN202511331331.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-17
- Publication Date
- 2026-02-03
AI Technical Summary
Existing tree-structured networks suffer from low reliability due to the failure of child nodes when the parent node fails. Furthermore, data transmission latency increases significantly as the network size expands, and the lack of dynamic path optimization capabilities makes it difficult to adapt to dynamic changes in network topology.
By broadcasting topology information requests to neighboring nodes, receiving and detecting link congestion, selecting a suitable parent node to establish an uplink route based on network status parameters, and using a preset delay strategy to send topology information to avoid retransmission, the network stability and robustness are optimized.
It improves network stability and robustness, reduces instantaneous network load, ensures that nodes not yet connected to the network can quickly and stably integrate into the existing network, and enhances the network's dynamic path optimization capabilities.
Smart Images

Figure CN121463052A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a networking method, system and electronic device. BACKGROUND
[0002] In recent years, networking technology has gradually developed from simple star and bus topologies to complex distributed and adaptive network structures, such as mesh, tree and hybrid networking. With the rapid development of Internet of Things (IoT) and 5G technology, networking technology pays more attention to supporting large-scale device connection, low-latency communication and dynamic topology adjustment.
[0003] Currently, for the scenario of hierarchical management, tree networking is mostly used, which organizes nodes through a hierarchical structure to form a directed acyclic graph (DAG) from the root node to the leaf node.
[0004] However, the failure of the parent node in tree networking will cause the child nodes to be disconnected from the network, and the reliability is low. Moreover, as the network scale expands and the depth of the tree structure increases, the data transmission delay significantly rises, and the dynamic path optimization capability is lacking, making it difficult to adapt to the dynamic changes of network topology. SUMMARY
[0005] The present application provides a networking method, system and electronic device to solve the defect of poor reliability in the prior art, which can avoid the situation of retransmission caused by sending data under poor network conditions, reduce network instantaneous load, improve the stability and robustness of the entire network, and help unconnected nodes to quickly, stably and efficiently integrate into the existing network.
[0006] The present application provides a networking method, comprising: broadcasting a topology information request to a neighbor connected node; receiving network topology information returned by the neighbor connected node based on the topology information request; wherein the network topology information is sent by the neighbor connected node based on link congestion detection and a preset delay sending strategy according to a link congestion detection result; selecting a node as a parent node according to the network topology information, and establishing an uplink route with the parent node to connect to the network.
[0007] According to the networking method provided by the present application, the link congestion detection result is determined based on whether the network topology information changes and whether the network state parameter is less than the preset threshold, wherein the network state parameter is used to represent the network performance and operating state; based on the network state parameter being greater than or equal to the preset threshold, the link congestion detection result is determined as link congestion; and based on the network state parameter being less than the preset threshold, the link congestion detection result is determined as link not congested.
[0008] According to a networking method provided in this application, the network topology information is sent by a neighboring node based on a first preset delay duration when the link congestion detection result indicates link congestion. The first preset delay duration is obtained by the neighboring node by looking up preset delay configuration information based on network status parameters. The preset delay configuration information is configured based on historical congestion conditions and corresponding preset delay durations. Alternatively, the first preset delay duration is determined by the neighboring node based on network status parameters, combined with preset thresholds and preset delay coefficients corresponding to the network status parameters.
[0009] According to a networking method provided in this application, network topology information is sent by a neighboring node based on a first preset delay duration when the link congestion detection result indicates link congestion. Specifically: the first preset delay duration is obtained by the neighboring node updating the preset delay duration based on network state changes and a first preset optimization strategy; the first preset optimization strategy is used to update the corresponding preset delay duration according to the preset time difference corresponding to each network state change; the network state changes are obtained by the neighboring node based on the network state before and after monitoring the network topology information sent previously; the preset delay duration is obtained by the neighboring node looking up preset delay information based on network state parameters; the preset delay configuration information is configured based on historical congestion conditions and the corresponding preset delay duration. Alternatively, the first preset delay duration is determined by the neighboring node updating the preset threshold and preset delay coefficient corresponding to the network state parameters based on network state changes and a second preset optimization strategy; the second preset optimization strategy is used to update the preset threshold and preset delay coefficient of the corresponding network state parameters according to each network state change.
[0010] According to a networking method provided in this application, the first preset delay duration is obtained by reducing the preset delay duration by a preset time difference obtained based on a first preset optimization strategy when the neighboring node determines that the corresponding network status parameter has changed according to the network status change; or, the first preset delay duration is determined by increasing the preset threshold corresponding to the network status parameter by a first preset value obtained based on a second preset optimization strategy when the neighboring node determines that the corresponding network status parameter has changed according to the network status change, decreasing the preset delay coefficient corresponding to the network status parameter by a second preset value obtained based on the second preset optimization strategy, and based on the updated preset threshold and preset delay coefficient.
[0011] According to a networking method provided in this application, network topology information is sent by a neighboring node after determining that the link congestion detection result is that the link is not congested, based on a second preset delay time.
[0012] According to a networking method provided in this application, the network topology information is generated by neighboring nodes adding the link congestion detection results to the network topology information after obtaining them, and then sending them according to a preset delay strategy.
[0013] According to a networking method provided in this application, selecting a node as a parent node based on network topology information includes: parsing the network topology information to obtain the RANK (Rank), Received Signal Strength Indication (RSSI), and node type of each node; selecting a first preset number of nodes in ascending order of RANK based on the principle of minimum RANK, and / or selecting a second preset number of nodes in descending order of RSSI based on the principle of maximum strength, to determine a candidate node set; for the candidate node set, prioritizing the selection of fixed nodes based on node type and preset priority, if there is only one fixed node, then it is selected as the parent node; if there are at least two fixed nodes or no fixed nodes, then filtering nodes with RANK greater than the preset RANK threshold and filtering nodes with RSSI less than the preset signal quality threshold using a preset RANK threshold, and performing a weighted summation based on the RANK and RSSI of each filtered candidate node to determine the weighted score of the corresponding candidate node; and selecting the candidate node with the largest weighted score as the parent node based on the weighted scores of each candidate node.
[0014] This application also provides a networking system, including: a request broadcast module for broadcasting a topology information request to neighboring network-entering nodes; an information receiving module for receiving network topology information returned by neighboring network-entering nodes based on the topology information request; wherein the network topology information is sent by neighboring network-entering nodes based on the topology information request after performing link congestion detection and according to the link congestion detection results and a preset delay sending strategy; and a networking module for selecting a node as a parent node based on the network topology information and using the parent node to establish an uplink route for network entry.
[0015] This application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the networking method as described above through the computer program.
[0016] This application also provides a computer-readable storage medium comprising a stored program, wherein the program, when executed, implements any of the networking methods described above.
[0017] This application also provides a computer program product, including a computer program that, when executed by a processor, implements any of the networking methods described above.
[0018] The networking method and system electronic device provided in this application ensure that all neighboring nodes receive the request by broadcasting topology information requests to neighboring nodes, increasing the chance of finding a suitable parent node. Furthermore, the method receives network topology information returned by neighboring nodes based on link congestion detection and a preset delayed transmission strategy. This allows neighboring nodes to postpone sending network topology information when links are heavily congested, avoiding data retransmissions under poor network conditions and reducing instantaneous network load. The method also selects a parent node based on the network topology information to avoid connecting non-networked nodes to potentially overloaded or soon-to-fail nodes, thereby improving the stability and robustness of the entire network. Finally, the method establishes uplink routes through the parent node to complete the network entry process, helping non-networked nodes to quickly, stably, and efficiently integrate into the existing network. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a schematic diagram of the hardware environment of a networking method according to an embodiment of this application; Figure 2 This is one of the flowcharts illustrating the networking method provided in this application; Figure 3 This is the second flowchart illustrating the networking method provided in this application; Figure 4 This is a schematic diagram of the network system provided in this application; Figure 5 This is a schematic diagram of the electronic device provided in this application. Detailed Implementation
[0022] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0024] According to one aspect of the embodiments of this application, a networking method is provided. This networking method is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligence house ecosystems. Optionally, in this embodiment, the above-mentioned networking method can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.
[0025] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.
[0026] Figure 2A flowchart illustrating a networking method is shown, which includes: S21, broadcast a request for topology information to neighboring network nodes; S22, Receive network topology information returned by neighboring nodes based on topology information requests; wherein, the network topology information is sent by neighboring nodes based on topology information requests to perform link congestion detection, and according to the link congestion detection results and a preset delay transmission strategy; S23. Based on the network topology information, select a node as the parent node and use the parent node to establish an uplink route to enter the network.
[0027] It should be noted that the above method is implemented by nodes that are not yet connected to the network. The step numbers "S21-S23" in this manual do not represent the order of the networking methods. The following details will be provided in conjunction with... Figure 3 The networking method of the present invention is described.
[0028] Step S21: Broadcast a topology information request to neighboring nodes joining the network. It should be noted that the Topology Information Solicitation (DIS) is a control message in the RPL protocol used by new nodes to discover and request their topology information from neighboring nodes. When a node not yet joining the network needs to join a Destination-Oriented Directed Acyclic Graph (DODAG), it will proactively send a DIS message to request its topology information from surrounding nodes.
[0029] Additionally, RPL (Routing Protocol for low-power and Lossy Networks) is a distance-vector routing protocol, a low-power, packet-loss-prone wireless network routing protocol. It is centered around a root node, and other nodes join a target DODAG by exchanging topology information requests, network topology information (DODAG Information Object, DIO), and destination advertisement objects (DAO) with neighboring nodes, thereby achieving network formation. The specific network formation process is described below and will not be repeated here.
[0030] It should be noted that when using the RPL protocol for networking, the starting point of DODAG, i.e. the root node, should be initialized first. Initializing the root node includes setting the DODAG identifier (ID) of the root node, configuring parameters such as the DODAG version number and path cost.
[0031] Step S22: Receive network topology information returned by neighboring nodes based on topology information requests; wherein, the network topology information is sent by neighboring nodes based on topology information requests to perform link congestion detection, and according to the link congestion detection results and a preset delay sending strategy.
[0032] It should be added that network topology information can be DODAG Information Object (DIO). DIO messages are a type of control message in the RPL protocol, sent by neighboring nodes joining the network. They carry the topology information of the nodes to help non-joining nodes select a parent node and join the network. DIO messages include key information such as the RANK, MAC address, DODAG ID, Received Signal Strength Indicator (RSSI), and node type of each node in the network, which are used to describe the node's position and role in the network.
[0033] In one optional embodiment, the link congestion detection result is determined by a neighboring node requesting to detect whether the network topology information has changed based on the topology information, and obtaining network status parameters based on whether the network status parameters are less than a preset threshold; wherein: the network status parameters are used to characterize network performance and operating status; if the network status parameters are greater than or equal to the preset threshold, the link congestion detection result is determined to be link congestion; if the network status parameters are less than the preset threshold, the link congestion detection result is determined to be link non-congestion.
[0034] It should be noted that by performing link congestion detection on links of nodes not yet connected to the network only when it is confirmed that the network topology information has not changed, unnecessary information transmission and processing are avoided. Network topology information is then sent based on the link congestion detection results and a preset delayed transmission strategy. This effectively avoids the situation where information is blindly sent when there is link congestion, which would exacerbate network congestion. The preset delayed transmission strategy ensures that network topology information is sent to nodes not yet connected to the network at the appropriate time, thus guaranteeing the stability and reliability of information transmission.
[0035] In other words, before a non-networked node receives network topology information returned by a neighboring networked node based on a topology information request, the neighboring networked node performs the following actions: receives the topology information request broadcast by the non-networked node; detects whether the topology information of the DODAG has changed based on the topology information request; if the topology information of the DODAG has not changed, obtains network status parameters; determines whether the network status parameters are less than a corresponding preset threshold based on the network status parameters, and determines the link congestion detection result as link congestion based on the network status being greater than or equal to the corresponding preset threshold; otherwise, determines the link congestion detection result as link not congested; and sends network topology information to the non-networked node based on the link congestion result and a preset delayed transmission strategy.
[0036] Furthermore, the network status parameters include at least one of the following: message transmission and reception volume within the target time, channel load, and packet failure rate. Based on the network status parameters, it is determined whether the network status parameters are less than the corresponding preset thresholds, including: determining that the link is congested when the message transmission and reception volume is greater than or equal to a first preset threshold, determining that the channel load is greater than or equal to a second preset threshold, or determining that the packet failure rate is greater than or equal to a third preset threshold; otherwise, determining that the link is not congested.
[0037] It should be noted that before neighboring nodes send network topology information, link congestion detection is performed to avoid link congestion problems when the network is large, to prevent data packets from being lost due to failure to be transmitted in time, and to prevent frequent route switching due to nodes needing to wait for the link to be idle or to retransmit data. This improves the stability of DODAG and provides a more efficient and reliable networking solution for modern IoT applications.
[0038] Furthermore, when the network status parameters include the number of messages sent and received within the target time, the channel load, and the packet failure rate, it can also be determined whether the number of messages sent and received, the channel load, and the packet failure rate are greater than or equal to the corresponding preset thresholds in a preset order, and link congestion is determined when there is a value greater than or equal to the corresponding preset threshold.
[0039] For example, the preset order is that message transmission and reception volume takes precedence over channel load, and channel load takes precedence over packet failure rate. Accordingly, when performing link congestion detection, it is first determined whether the message transmission and reception volume is greater than or equal to a first preset threshold. If the message transmission and reception volume is greater than or equal to the first preset threshold, then link congestion is determined; otherwise, it is determined whether the channel load is greater than or equal to a second preset threshold. If the channel load is greater than or equal to the second preset threshold, then link congestion is determined; otherwise, it is determined whether the packet failure rate is greater than or equal to a third preset threshold. If the packet failure rate is greater than or equal to the third preset threshold, then link congestion is determined; otherwise, the link is determined not to be congested.
[0040] Additionally, when a neighboring node requests to detect changes in network topology information based on topology information, the DIO timer is reset, and the network topology information is re-detected for changes until no changes have occurred. It's worth noting that the DIO timer is configured to control the transmission of network topology information from a neighboring node to a non-joining node, ensuring that the information is sent with a corresponding delay.
[0041] In one alternative embodiment, reference Figure 3The network topology information is sent by the neighboring node according to a first preset delay duration when the link congestion detection result is determined to be link congestion. The first preset delay duration is obtained by the neighboring node by looking up the preset delay configuration information based on the network status parameters. The preset delay configuration information is configured based on historical congestion conditions and corresponding preset delay durations. Alternatively, the first preset delay duration is determined by the neighboring node based on the network status parameters, combined with the preset threshold and preset delay coefficient corresponding to the network status parameters.
[0042] It is worth noting that after the neighboring node sends the network topology information to the non-networking node according to the corresponding preset delay duration, it also updates the network status changes before and after sending the network topology information, updates the preset delay duration in the preset delay configuration information, or updates the preset threshold and preset delay coefficient corresponding to the network status parameters. For details, please refer to the following text, which will not be repeated here.
[0043] It should be noted that the preset delay configuration information can be configured according to actual design requirements or prior experience, and no further restrictions are imposed here. Additionally, when neighboring nodes determine the first preset delay duration based on network status parameters, corresponding thresholds for those parameters, and preset delay coefficients, they can do so by combining the ratio of the acquired actual network status parameters to the corresponding preset threshold with the corresponding preset delay coefficient. For example, if the acquired network status parameters include channel load, packet transmission / reception volume, and packet failure rate, then the corresponding first preset delay duration = preset base duration + (packet transmission / reception volume / first preset threshold) * first preset delay coefficient + (channel load / second preset threshold) * second preset delay coefficient + (packet failure rate / third preset threshold) * third preset delay coefficient. The specific configuration can be based on actual design requirements, and no further restrictions are imposed here.
[0044] In addition, before the neighboring node determines the first preset delay duration based on the network status parameters and the preset threshold and preset delay coefficient corresponding to the network status parameters, the process includes: inputting the network status parameters into the coefficient prediction model to obtain the delay coefficient of the corresponding network status parameters output by the coefficient model; wherein, the coefficient prediction model is trained based on the historical network status parameters and the coefficient labels corresponding to the historical network status parameters; or, based on the network status parameters, searching for the previously configured coefficient configuration information to obtain the delay coefficient of the corresponding network status parameters.
[0045] It should be added that the coefficient prediction model can employ methods such as PID controllers or adaptive algorithms, which can be selected based on actual design requirements; no further limitations are imposed here. Additionally, the coefficient configuration information is obtained after configuring the corresponding delay coefficients based on different network state parameters combined with actual design requirements or prior experience. Furthermore, when configuring the delay coefficients corresponding to channel load, message transmission / reception volume, and packet failure rate, the impact of channel load, message transmission / reception volume, and packet failure rate on network performance can be considered; no further limitations are imposed here.
[0046] In another optional embodiment, the network topology information is sent by a neighboring node based on a first preset delay duration when the link congestion detection result indicates link congestion; wherein: the first preset delay duration is obtained by the neighboring node updating the preset delay duration based on network state changes and in conjunction with a first preset optimization strategy, the first preset optimization strategy being used to update the corresponding preset delay duration according to the preset time difference corresponding to each network state change; the network state changes are obtained by the neighboring node based on the network state before and after monitoring the network topology information sent previously; the preset delay duration is obtained by the neighboring node looking up preset delay information based on network state parameters, and the preset delay configuration information is configured based on historical congestion conditions and corresponding preset delay durations; or, the first preset delay duration is determined by the neighboring node updating the preset threshold and preset delay coefficient corresponding to the network state parameters based on network state changes and in conjunction with a second preset optimization strategy, the second preset optimization strategy being used to update the preset threshold and preset delay coefficient of the corresponding network state parameters according to each network state change.
[0047] Specifically, the first preset delay duration is obtained by reducing the preset delay duration by the preset time difference obtained based on the first preset optimization strategy when the neighboring node determines that the corresponding network status parameter has changed according to the network status change; or, the first preset delay duration is determined by increasing the preset threshold corresponding to the network status parameter by the first preset value obtained based on the second preset optimization strategy when the neighboring node determines that the corresponding network status parameter has changed according to the network status change, decreasing the preset delay coefficient corresponding to the network status parameter by the second preset value obtained based on the second preset optimization strategy, and based on the updated preset threshold and preset delay coefficient.
[0048] It should be added that the network status parameters include at least one of the following: message transmission and reception volume, channel load, and packet failure rate within the target time. The network status changes include at least one of the following: message traffic changes, channel load changes, and packet failure rate changes. The network status changes are determined based on the network status parameters.
[0049] Furthermore, when determining network state parameters including the packet transmission and reception volume within a target time period, network state changes include packet traffic changes. The first preset delay duration is obtained by reducing the preset delay duration by the first preset time difference obtained based on the first preset optimization strategy when the neighboring network node determines that the packet traffic has decreased based on the packet traffic changes; or, the first preset delay duration is obtained by increasing the preset threshold corresponding to the packet transmission and reception volume by the first preset value obtained based on the second preset optimization strategy, and then reducing the preset delay coefficient corresponding to the packet transmission and reception volume by the second preset value obtained based on the second preset optimization strategy, based on the updated preset threshold and preset delay coefficient when the neighboring network node determines that the packet traffic has decreased based on the packet traffic changes.
[0050] In addition, when determining network state parameters including channel load within a target time period, network state changes include channel load changes. The first preset delay duration is obtained by reducing the preset delay duration by the second preset time difference obtained based on the first preset optimization strategy when the neighboring node determines that the channel load has decreased based on the channel load changes; or, the first preset delay duration is obtained by adding the preset threshold corresponding to the channel load to the first preset value obtained based on the second preset optimization strategy, reducing the preset delay coefficient corresponding to the channel load by the second preset value obtained based on the second preset optimization strategy, and then using the updated preset threshold and preset delay coefficient.
[0051] Furthermore, when determining network state parameters including the packet failure rate within a target time period, network state changes include changes in the packet failure rate. The first preset delay duration is obtained by reducing the preset delay duration by the third preset time difference obtained based on the first preset optimization strategy when the neighboring network node determines that the packet failure rate has decreased based on the changes in the packet failure rate; or, the first preset delay duration is obtained by increasing the preset threshold corresponding to the packet failure rate by the first preset value obtained based on the second preset optimization strategy and decreasing the preset delay coefficient corresponding to the packet failure rate by the second preset value obtained based on the second preset optimization strategy when the neighboring network node determines that the packet failure rate has decreased based on the changes in the packet failure rate.
[0052] It should be added that when the network status parameters include any one of the message transmission / reception volume, channel load, and packet failure rate within the target time, the first preset delay duration is determined according to the above corresponding method. When the network status parameters include at least two of the message transmission / reception volume, channel load, and packet failure rate within the target time, the link congestion detection result is determined based on whether the message transmission / reception volume, channel load, and packet failure rate are less than the corresponding preset threshold in a preset order, and is determined based on the existence of a case where the value is greater than or equal to the corresponding preset threshold. Accordingly, the first preset delay duration can be determined according to the first preset delay duration corresponding to the network status parameters that are initially determined to be greater than or equal to the corresponding preset threshold. For example, if it is first determined that the message transmission / reception volume is less than the first preset threshold, and then it is determined that the channel load is greater than or equal to the second preset threshold, and link congestion is determined, then the first preset delay duration can be determined according to the above method of determining the first preset delay duration corresponding to the channel load, as described above, and will not be repeated here.
[0053] It should be noted that the aforementioned preset time differences and preset values can be configured according to actual design requirements, and no further limitations are imposed here. Furthermore, the adjustment of the preset delay coefficients can be based on the above adjustment methods, using the adjusted preset delay coefficients as coefficient labels for the corresponding network states to optimize the coefficient prediction model, or using the adjusted preset delay coefficients and their corresponding network states to update the coefficient configuration information.
[0054] In an alternative embodiment, continue to refer to Figure 3 Network topology information is sent by neighboring nodes after a second preset delay, based on the link congestion detection result indicating that the link is not congested. In other words, neighboring nodes send network topology information to non-joining nodes after a second preset delay, based on the link congestion result indicating that the link is not congested.
[0055] It should be noted that the second preset delay duration is less than the first preset delay duration. The second preset delay duration can be configured according to the actual urgency of message sending and / or prior experience, and the second preset delay duration can be set based on the DIO timer. No further limitations are made here.
[0056] Furthermore, if a change in network topology information is detected, the DIO timer is reset, and after sending the network topology information for a second preset delay, the DIO timer is reset again to facilitate the next transmission of network topology information.
[0057] In one optional embodiment, the network topology information is generated by neighboring nodes adding the link congestion detection results to the network topology information after receiving them, and then sending it according to a preset delay policy. In other words, neighboring nodes add the link congestion detection results to the network topology information to update it, and then send the updated network topology information to non-joining nodes.
[0058] In addition, neighboring nodes can send updated network topology information to other nodes in the network, so that other nodes can also adjust their routing decisions based on the link congestion detection results in the network topology information.
[0059] Step S23: Based on the network topology information, select a node as the parent node and use the parent node to establish an uplink route to enter the network.
[0060] In this embodiment, selecting a node as a parent node based on network topology information includes: parsing the network topology information to obtain the RANK (Rank), Received Signal Strength Indication (RSSI), and node type of each node; selecting a first preset number of nodes based on the principle of minimum RANK, from smallest to largest, and / or selecting a second preset number of nodes based on the principle of maximum strength, from largest to smallest RSSI, to determine a candidate node set; for the candidate node set, prioritizing the selection of fixed nodes based on node type and preset priority; if there is only one fixed node, it is selected as the parent node; if there are at least two fixed nodes or no fixed nodes, nodes with RANK greater than the preset RANK threshold are filtered using a preset RANK threshold, and nodes with RSSI less than the preset signal quality threshold are filtered using a preset signal quality threshold; and a weighted sum is performed based on the RANK and RSSI of each filtered candidate node to determine the weighted score of the corresponding candidate node; and the candidate node with the largest weighted score is selected as the parent node based on the weighted scores of each candidate node.
[0061] In addition, establishing an uplink route for network access using the parent node includes: sending a target advertisement object to the parent node; after receiving the target advertisement object, the parent node, based on the network topology information, passes the target advertisement object up level by level until it reaches the root node, thereby establishing an uplink route for the node not yet connected to the network through the root node, thus enabling the node not yet connected to the network to join the network.
[0062] It's worth noting that a Destination Advertisement Object (DAO) is an object used to manage information about nodes not yet connected to the network. By encapsulating information such as the address and reachability of these nodes, it helps the parent node quickly locate them, thereby optimizing data transmission paths and maintaining network topology information. Furthermore, when the parent node is the root node, uplink routes for these nodes are directly established based on the DAO, thus enabling network formation.
[0063] In an optional embodiment, after sending the target notification object to the parent node, the method includes: receiving a Destination Advertisement Object Acknowledgment (DAO-ACK) message returned by the parent node based on the target notification object, to confirm that the parent node has successfully received the target notification object.
[0064] In an optional embodiment, the parent node establishes uplink routes for nodes not yet in the network, including: adding or updating entries for the corresponding nodes not yet in the network in the local routing table according to the target advertisement object; updating the routing table; associating the network prefix of the nodes not yet in the network with their corresponding link layer addresses or identifiers to lay the foundation for data packets to flow from other parts of the network to the new node; and adding information about the nodes not yet in the network (such as their roles, prefixes, etc.) to the DODAG structure maintained by the dynamic routing protocol to ensure that the new node is correctly incorporated into the hierarchical routing structure of the network, enabling it to participate in the network's route discovery and path maintenance process, which is beneficial to the overall connectivity and functional implementation of the network.
[0065] In an optional embodiment, after the parent node adds the information of nodes not yet in the network to the DODAG structure maintained by the dynamic routing protocol, the process includes: updating the node information in the DODAG, and broadcasting a new DIO message to notify other nodes in the network based on the updated DODAG, ensuring that all nodes in the network have the latest network topology information. It should be noted that link congestion detection can also be performed before broadcasting the new DIO message; the specific method can be found above and will not be repeated here.
[0066] In an optional embodiment, the method further includes: Unconnected nodes broadcast topology information requests to neighboring connected nodes. Neighboring nodes that have joined the network perform link congestion detection based on topology information requests, and send network topology information to nodes that have not joined the network according to the link congestion detection results and the preset delay sending strategy. Unconnected nodes receive network topology information, select a node as a parent node based on the network topology information, and send the target notification object to the parent node. The parent node, based on the network topology information, propagates the target advertisement object upwards level by level until it reaches the root node, so as to establish uplink routes for nodes not yet in the network through the root node.
[0067] It should be noted that the specific implementation method can be referred to the method described above, and will not be repeated here.
[0068] In summary, this embodiment of the invention broadcasts a topology information request to neighboring nodes, ensuring that all nearby nodes receive the request, increasing the chance of finding a suitable parent node. It also receives network topology information returned by neighboring nodes based on link congestion detection and a preset delayed transmission strategy. This allows neighboring nodes to postpone sending network topology information when links are heavily congested, avoiding data retransmissions under poor network conditions and reducing instantaneous network load. Furthermore, it selects a parent node based on the network topology information to avoid connecting non-networked nodes to potentially overloaded or soon-to-fail nodes, thereby improving the stability and robustness of the entire network. Finally, it establishes an uplink route through the parent node to complete the network entry process, helping non-networked nodes to quickly, stably, and efficiently integrate into the existing network.
[0069] The networking system provided in this application is described below. The networking system described below can be referred to in correspondence with the networking method described above.
[0070] Figure 4 A schematic diagram of a networking system is shown, which includes: The request broadcast module 41 broadcasts a request for topology information to neighboring network nodes; The information receiving module 42 receives network topology information returned by neighboring network nodes based on topology information requests; wherein, the network topology information is sent by neighboring network nodes based on topology information requests to perform link congestion detection and according to the link congestion detection results and a preset delay sending strategy. The networking module 43 selects a node as a parent node based on the network topology information and uses the parent node to establish an uplink route to enter the network.
[0071] In one optional embodiment, the link congestion detection result is determined by a neighboring node requesting to detect whether the network topology information has changed based on the topology information, and obtaining network status parameters based on whether the network status parameters are less than a preset threshold; wherein: the network status parameters are used to characterize network performance and operating status; if the network status parameters are greater than or equal to the preset threshold, the link congestion detection result is determined to be link congestion; if the network status parameters are less than the preset threshold, the link congestion detection result is determined to be link non-congestion.
[0072] In other words, the neighboring node is used to: receive the topology information request broadcast by the non-networking node before the non-networking node receives the network topology information returned by the neighboring node based on the topology information request; detect whether the topology information of the DODAG has changed based on the topology information request; if the topology information of the DODAG has not changed, obtain the network status parameters; determine whether the network status parameters are less than the corresponding preset threshold based on the network status parameters, and determine the link congestion detection result as link congestion based on the network status being greater than or equal to the corresponding preset threshold; otherwise, determine the link congestion detection result as link not congested; and send the network topology information to the non-networking node based on the link congestion result and a preset delay transmission strategy.
[0073] Furthermore, the network status parameters include at least one of the following: message transmission and reception volume within the target time, channel load, and packet failure rate, as well as neighboring network nodes. They are also used to: determine link congestion when the message transmission and reception volume is greater than or equal to a first preset threshold, when the channel load is greater than or equal to a second preset threshold, or when the packet failure rate is greater than or equal to a third preset threshold; otherwise, determine that the link is not congested.
[0074] Furthermore, when the network status parameters include the number of messages sent and received within the target time, the channel load, and the packet failure rate, neighboring nodes can also determine whether the number of messages sent and received, the channel load, and the packet failure rate are greater than or equal to the corresponding preset thresholds in a preset order, and determine link congestion based on the existence of a value greater than or equal to the corresponding preset threshold.
[0075] For example, the preset order is that message transmission and reception volume takes priority over channel load, and channel load takes priority over packet failure rate. Accordingly, neighboring nodes joining the network include: first determining whether the message transmission and reception volume is greater than or equal to a first preset threshold; if the message transmission and reception volume is greater than or equal to the first preset threshold, then link congestion is determined; otherwise, determining whether the channel load is greater than or equal to a second preset threshold; if the channel load is greater than or equal to the second preset threshold, then link congestion is determined; otherwise, determining whether the packet failure rate is greater than or equal to a third preset threshold; if the packet failure rate is greater than or equal to the third preset threshold, then link congestion is determined; otherwise, the link is not congested.
[0076] In addition, neighboring nodes are also used to: when a request is made to detect changes in network topology information based on topology information, the DIO timer is reset and the network topology information is re-detected until no changes have been made to the network topology information.
[0077] In one optional embodiment, the network topology information is sent by a neighboring node based on a first preset delay duration when the link congestion detection result indicates link congestion. The first preset delay duration is obtained by the neighboring node by looking up preset delay configuration information based on network status parameters. The preset delay configuration information is configured based on historical congestion conditions and corresponding preset delay durations. Alternatively, the first preset delay duration is determined by the neighboring node based on network status parameters, combined with preset thresholds and preset delay coefficients corresponding to the network status parameters.
[0078] In addition, neighboring nodes are also used to: input network state parameters into a coefficient prediction model before determining the first preset delay duration based on network state parameters and the preset threshold and preset delay coefficient corresponding to the network state parameters, and obtain the delay coefficient of the corresponding network state parameters output by the coefficient model; wherein, the coefficient prediction model is trained based on historical network state parameters and the coefficient labels corresponding to the historical network state parameters; or, based on the network state parameters, look up the previously configured coefficient configuration information to obtain the delay coefficient of the corresponding network state parameters.
[0079] In another optional embodiment, the network topology information is sent by a neighboring node based on a first preset delay duration when the link congestion detection result indicates link congestion; wherein: the first preset delay duration is obtained by the neighboring node updating the preset delay duration based on network state changes and in conjunction with a first preset optimization strategy, the first preset optimization strategy being used to update the corresponding preset delay duration according to the preset time difference corresponding to each network state change; the network state changes are obtained by the neighboring node based on the network state before and after monitoring the network topology information sent previously; the preset delay duration is obtained by the neighboring node looking up preset delay information based on network state parameters, and the preset delay configuration information is configured based on historical congestion conditions and corresponding preset delay durations; or, the first preset delay duration is determined by the neighboring node updating the preset threshold and preset delay coefficient corresponding to the network state parameters based on network state changes and in conjunction with a second preset optimization strategy, the second preset optimization strategy being used to update the preset threshold and preset delay coefficient of the corresponding network state parameters according to each network state change.
[0080] Specifically, the first preset delay duration is obtained by reducing the preset delay duration by the preset time difference obtained based on the first preset optimization strategy when the neighboring node determines that the corresponding network status parameter has changed according to the network status change; or, the first preset delay duration is determined by increasing the preset threshold corresponding to the network status parameter by the first preset value obtained based on the second preset optimization strategy when the neighboring node determines that the corresponding network status parameter has changed according to the network status change, decreasing the preset delay coefficient corresponding to the network status parameter by the second preset value obtained based on the second preset optimization strategy, and based on the updated preset threshold and preset delay coefficient.
[0081] It should be added that the network status parameters include at least one of the following: message transmission and reception volume within the target time period, channel load, and packet failure rate. The network status changes include at least one of the following: changes in message traffic, changes in channel load, and packet failure rate.
[0082] Furthermore, when determining network state parameters including the packet transmission and reception volume within a target time period, network state changes include packet traffic changes. The first preset delay duration is obtained by reducing the preset delay duration by the first preset time difference obtained based on the first preset optimization strategy when the neighboring network node determines that the packet traffic has decreased based on the packet traffic changes; or, the first preset delay duration is obtained by increasing the preset threshold corresponding to the packet transmission and reception volume by the first preset value obtained based on the second preset optimization strategy, and then reducing the preset delay coefficient corresponding to the packet transmission and reception volume by the second preset value obtained based on the second preset optimization strategy, based on the updated preset threshold and preset delay coefficient when the neighboring network node determines that the packet traffic has decreased based on the packet traffic changes.
[0083] In addition, when determining network state parameters including channel load within a target time period, network state changes include channel load changes. The first preset delay duration is obtained by reducing the preset delay duration by the second preset time difference obtained based on the first preset optimization strategy when the neighboring node determines that the channel load has decreased based on the channel load changes; or, the first preset delay duration is obtained by adding the preset threshold corresponding to the channel load to the first preset value obtained based on the second preset optimization strategy, reducing the preset delay coefficient corresponding to the channel load by the second preset value obtained based on the second preset optimization strategy, and then using the updated preset threshold and preset delay coefficient.
[0084] Furthermore, when determining network state parameters including the packet failure rate within a target time period, network state changes include changes in the packet failure rate. The first preset delay duration is obtained by reducing the preset delay duration by the third preset time difference obtained based on the first preset optimization strategy when the neighboring network node determines that the packet failure rate has decreased based on the changes in the packet failure rate; or, the first preset delay duration is obtained by increasing the preset threshold corresponding to the packet failure rate by the first preset value obtained based on the second preset optimization strategy and decreasing the preset delay coefficient corresponding to the packet failure rate by the second preset value obtained based on the second preset optimization strategy when the neighboring network node determines that the packet failure rate has decreased based on the changes in the packet failure rate.
[0085] It should be added that when the network status parameters include any one of the message transmission / reception volume, channel load, and packet failure rate within the target time, the first preset delay duration is determined according to the above corresponding method. When the network status parameters include at least two of the message transmission / reception volume, channel load, and packet failure rate within the target time, the link congestion detection result is determined based on whether the message transmission / reception volume, channel load, and packet failure rate are less than the corresponding preset threshold in a preset order, and is determined based on the existence of a case where the value is greater than or equal to the corresponding preset threshold. Accordingly, the first preset delay duration can be determined according to the first preset delay duration corresponding to the network status parameters that are initially determined to be greater than or equal to the corresponding preset threshold. For example, if it is first determined that the message transmission / reception volume is less than the first preset threshold, and then it is determined that the channel load is greater than or equal to the second preset threshold, and link congestion is determined, then the first preset delay duration can be determined according to the above method of determining the first preset delay duration corresponding to the channel load, as described above, and will not be repeated here.
[0086] In one optional embodiment, the network topology information is sent by a neighboring node after a second preset delay period when the link congestion detection result indicates that the link is not congested. In other words, the neighboring node is also used to: send network topology information to non-joining nodes based on the link congestion result indicating that the link is not congested, according to the second preset delay period.
[0087] In one optional embodiment, the network topology information is generated by neighboring nodes adding the link congestion detection results to the network topology information after receiving them, and then sending it according to a preset delay strategy. In other words, neighboring nodes are also used to: add the link congestion detection results to the network topology information to update the network topology information, and send the updated network topology information to nodes that have not yet joined the network.
[0088] In addition, neighboring nodes can also be used to send updated network topology information to other nodes in the network, so that other nodes can also adjust their routing decisions based on the link congestion detection results in the network topology information.
[0089] In this embodiment, the networking module 43 includes: a parsing unit, which parses the network topology information to obtain the RANK, Received Signal Strength Indication (RSSI), and node type of each node; a first node selection unit, which selects a first preset number of nodes based on the principle of minimum RANK, from smallest to largest RANK, and / or, based on the principle of maximum strength, selects a second preset number of nodes based on maximum RSSI, to determine a candidate node set; a second node selection unit, which, for the candidate node set, prioritizes the selection of fixed nodes according to node type and preset priority. If there is only one fixed node, it is used as the parent node; if there are at least two fixed nodes or no fixed nodes, nodes with RANK greater than the preset RANK threshold are filtered using a preset RANK threshold, and nodes with RSSI less than the preset signal quality threshold are filtered using a preset signal quality threshold. The weighted sum of the RANK and RSSI of each filtered candidate node is then calculated to determine the weighted score of the corresponding candidate node; and a third node selection unit, which selects the candidate node with the largest weighted score as the parent node based on the weighted scores of each candidate node.
[0090] In addition, the networking module 43 also includes an object sending unit, which sends a target announcement object to the parent node. After receiving the target announcement object, the parent node passes the target announcement object up level by level according to the network topology information until it reaches the root node, thereby establishing an uplink route for the unconnected node through the root node and enabling the unconnected node to join the network.
[0091] In an optional embodiment, the system further includes: a message receiving module, which, after sending the target notification object to the parent node, receives a Destination Advertisement Object Acknowledgment (DAO-ACK) message returned by the parent node based on the target notification object.
[0092] In an optional embodiment, the parent node is used to: add or update entries for corresponding non-network-joined nodes in the local routing table according to the target advertisement object; update the routing table; associate the network prefix of the non-network-joined node with its corresponding link layer address or identifier to lay the foundation for data packets to flow from other parts of the network to the new node; and add the information of the non-network-joined node (such as its role, prefix, etc.) to the DODAG structure maintained by the dynamic routing protocol to ensure that the new node is correctly incorporated into the hierarchical routing structure of the network, enabling it to participate in the network's route discovery and path maintenance process, which is beneficial to the overall connectivity and functional implementation of the network.
[0093] In an optional embodiment, the parent node is further configured to: after adding the information of nodes not yet in the network to the DODAG structure maintained by the dynamic routing protocol, update the node information in the DODAG, and broadcast a new DIO message to notify other nodes in the network based on the updated DODAG, ensuring that all nodes in the network have the latest network topology information. It should be noted that link congestion detection can also be performed before broadcasting the new DIO message; the specific method can be found above and will not be repeated here.
[0094] In an optional embodiment, the system further includes: Unconnected nodes broadcast topology information requests to neighboring connected nodes. Neighboring nodes that have joined the network perform link congestion detection based on topology information requests, and send network topology information to nodes that have not joined the network according to the link congestion detection results and the preset delay sending strategy. Unconnected nodes receive network topology information, select a node as a parent node based on the network topology information, and send the target notification object to the parent node. The parent node, based on the network topology information, propagates the target advertisement object upwards level by level until it reaches the root node, so as to establish uplink routes for nodes not yet in the network through the root node.
[0095] In summary, this embodiment of the invention broadcasts a topology information request to neighboring nodes via a request broadcast module, ensuring that all neighboring nodes receive the request and increasing the chance of finding a suitable parent node. Furthermore, the information receiving module receives network topology information returned by neighboring nodes based on link congestion detection and a preset delayed transmission strategy. This allows neighboring nodes to postpone sending network topology information when links are heavily congested, avoiding data retransmissions under poor network conditions and reducing instantaneous network load. The networking module selects a parent node based on the network topology information to avoid connecting non-networked nodes to potentially overloaded or soon-to-fail nodes, thereby improving the stability and robustness of the entire network. Finally, the parent node establishes an uplink route to complete the network entry process, facilitating the rapid, stable, and efficient integration of non-networked nodes into the existing network.
[0096] Figure 5 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 5As shown, the electronic device may include a processor 510, a communications interface 520, a memory 530, and a communication bus 540. The processor 510, communications interface 520, and memory 530 communicate with each other via the communication bus 540. The processor 510 can call logical instructions in the memory 530 to execute a networking method. This method includes: broadcasting a topology information request to neighboring nodes; receiving network topology information returned by neighboring nodes based on the topology information request; wherein the network topology information is sent by neighboring nodes based on link congestion detection performed according to the topology information request, and according to the link congestion detection results and a preset delay transmission strategy; selecting a node as a parent node based on the network topology information, and establishing an uplink route using the parent node to join the network.
[0097] Furthermore, the logical instructions in the aforementioned memory 530 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0098] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the networking method provided by the above methods. The method includes: broadcasting a topology information request to neighboring network access nodes; receiving network topology information returned by neighboring network access nodes based on the topology information request; wherein the network topology information is sent by neighboring network access nodes based on the link congestion detection performed by the topology information request and according to the link congestion detection result and a preset delay transmission strategy; selecting a node as a parent node according to the network topology information, and using the parent node to establish an uplink route for network access.
[0099] In another aspect, this application also provides a computer-readable storage medium, which includes a stored program, wherein the program executes the networking method provided by the above methods when it runs. The method includes: broadcasting a topology information request to neighboring network-entering nodes; receiving network topology information returned by neighboring network-entering nodes based on the topology information request; wherein the network topology information is sent by neighboring network-entering nodes based on the topology information request, performing link congestion detection, and according to the link congestion detection result and a preset delay transmission strategy; selecting a node as a parent node according to the network topology information, and using the parent node to establish an uplink route for network entry.
[0100] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0101] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A networking method, characterized in that, include: Broadcast a request for topology information to neighboring nodes joining the network; Receive network topology information returned by the neighboring node based on the topology information request; wherein, the network topology information is sent by the neighboring node based on the topology information request to perform link congestion detection and according to the link congestion detection result and a preset delay transmission strategy; Based on the network topology information, a node is selected as the parent node, and an uplink route is established using the parent node to enter the network.
2. The networking method according to claim 1, characterized in that, The link congestion detection result is determined by the neighboring inbound node requesting to detect whether the network topology information has changed based on the topology information, and obtaining network status parameters based on whether the network status parameters are less than a preset threshold; wherein: The network state parameters are used to characterize network performance and operating status; Based on the network state parameter being greater than or equal to the preset threshold, the link congestion detection result is determined to be link congestion; Based on the fact that the network state parameter is less than the preset threshold, the link congestion detection result is determined to be that the link is not congested.
3. The networking method according to claim 2, characterized in that, The network topology information is sent by the neighboring node after a first preset delay when the link congestion detection result is determined to be link congestion. The first preset delay duration is obtained by the neighboring node looking up preset delay configuration information based on the network status parameters. This preset delay configuration information is configured based on historical congestion data and corresponding preset delay durations; or... The first preset delay duration is determined by the neighboring node based on the network status parameters, combined with the preset threshold and preset delay coefficient corresponding to the network status parameters.
4. The networking method according to claim 2, characterized in that, The network topology information is sent by the neighboring node after a first preset delay duration when the link congestion detection result indicates link congestion; wherein: The first preset delay duration is obtained by the neighboring network node updating the preset delay duration based on network status changes and in conjunction with the first preset optimization strategy. The first preset optimization strategy is used to update the corresponding preset delay duration according to the preset time difference corresponding to each network status change. The network status changes are obtained by the neighboring network node based on the network status before and after monitoring the network topology information sent once in the previous instance. The preset delay duration is obtained by the neighboring node looking up the preset delay information based on the network status parameters; the preset delay configuration information is configured based on historical congestion conditions and corresponding preset delay durations; or, The first preset delay duration is determined by the neighboring node after updating the preset threshold and preset delay coefficient corresponding to the network state parameters based on the network state changes and in conjunction with the second preset optimization strategy. The second preset optimization strategy is used to update the preset threshold and preset delay coefficient of the corresponding network state parameters according to each network state change.
5. The networking method according to claim 4, characterized in that, The first preset delay duration is obtained by reducing the preset delay duration by a preset time difference based on the first preset optimization strategy when the neighboring node determines that the corresponding network status parameter has decreased according to the network status change; or... The first preset delay duration is determined by the neighboring node based on the network status change, when the corresponding network status parameter decreases, by increasing the preset threshold corresponding to the network status parameter by a first preset value obtained based on the second preset optimization strategy, and by decreasing the preset delay coefficient corresponding to the network status parameter by a second preset value obtained based on the second preset optimization strategy, and based on the updated preset threshold and preset delay coefficient.
6. The networking method according to claim 2, characterized in that, The network topology information is sent by the neighboring network node according to a second preset delay duration when the link congestion detection result is determined to be that the link is not congested.
7. The networking method according to claim 1, characterized in that, The network topology information is generated by the neighboring node adding the link congestion detection result to the network topology information after obtaining the link congestion detection result, and then sending it according to the preset delay strategy.
8. The networking method according to claim 1, characterized in that, Based on the network topology information, nodes are selected as parent nodes, including: The network topology information is parsed to obtain the RANK, RSSI, and node type of each node; Based on the principle of minimum level, a first preset number of nodes are selected according to the RANK from smallest to largest, and / or, based on the principle of maximum strength, a second preset number of nodes are selected according to the RSSI from largest to smallest, to determine the candidate node set; For the candidate node set, a fixed node is selected first based on the node type and preset priority. If there is only one fixed node, it is taken as the parent node. If there are at least two fixed nodes or no fixed nodes, nodes with RANK greater than the preset level threshold are filtered using a preset level threshold, and nodes with RSSI less than the preset signal quality threshold are filtered using a preset signal quality threshold. The weighted sum of RANK and RSSI of each candidate node after filtering is then calculated to determine the weighted score of the corresponding candidate node. Based on the weighted scores of each candidate node, the candidate node with the highest weighted score is selected as the parent node.
9. A networking system, characterized in that, include: The request broadcast module broadcasts a request for topology information to neighboring network nodes; The information receiving module receives network topology information returned by the neighboring network node based on the topology information request; wherein, the network topology information is sent by the neighboring network node based on the topology information request to perform link congestion detection and according to the link congestion detection result and a preset delay sending strategy; The networking module selects a node as a parent node based on the network topology information and uses the parent node to establish an uplink route to enter the network.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 8 through the computer program.
