A dynamic self-organizing network method, device, equipment and medium
By using optimized distance evaluation functions and dynamic update strategies in self-organizing networks, the problem of inaccurate distance evaluation caused by neglect of connectivity between nodes is solved, network organization and search efficiency is improved, and network organization and search efficiency are improved to adapt to large-scale network changes.
Patent Information
- Application Number
- CN202410128038.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-01-30
AI Technical Summary
The traditional self-organizing network method ignores the network connectivity between nodes, resulting in inaccurate distance evaluation and affecting the organization efficiency and search efficiency of the network.
The optimized distance evaluation function is used to consider the direct connectivity between nodes, update the node's initial neighbor list, form a target neighbor list, and dynamically update it in the network topology to achieve more accurate distance evaluation and efficient node search.
It improves network organization efficiency and search accuracy, enables more efficient node search in large-scale networks, and adapts to network scale changes and node dynamic behavior.
Smart Images

Figure CN117880917B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless mobile communications, and in particular to a dynamic self-organizing network method, device, equipment and medium. Background Art
[0002] A self-organizing network is a network that combines mobile communications and computer networks. User terminals can move freely within the network and maintain communication. Self-organizing networks can use the routing and forwarding functions of mobile terminals to communicate without infrastructure, thus making up for the defect of no network communication infrastructure available. Self-organizing networks have the characteristics of decentralization and peer-to-peer between nodes, self-discovery, automatic configuration, self-organization, and self-healing. They can quickly, accurately and efficiently forward data packets and maintain routes, adapt to rapid changes in network topology, reduce the introduction of additional delays and control information for maintaining routes, and reduce the overhead of routing protocols to meet the limitations of mobile terminal computing power, storage space, and power supply.
[0003] However, traditional self-organizing network methods often ignore the network connectivity between nodes, that is, the ability of nodes in the network to communicate with each other, resulting in inaccurate distance assessment during the network formation process, thus affecting the network's organizational efficiency and search efficiency. Summary of the invention
[0004] The purpose of the present invention is to provide a dynamic self-organizing network method, device, equipment and medium, which are used to solve the problem that the existing self-organizing network method ignores the network connectivity between nodes, the distance evaluation is inaccurate, and the network organization efficiency and search efficiency are low.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] In a first aspect, the present invention provides a dynamic self-organizing network method, comprising:
[0007] Creating multiple nodes in the network to form a network topology structure: each of the nodes includes a hash value and an initial neighbor list; the initial neighbor list includes N random nodes; N is greater than 0;
[0008] For any node in the network topology structure: according to the hash value of the current node and the direct connectivity between the current node and other nodes in the network topology structure, the distance between the current node and other nodes is calculated using the optimized distance evaluation function; the direct connectivity means that there are no other nodes between any two adjacent nodes;
[0009] The initial neighbor list of the current node is updated according to the distance between the current node and other nodes to obtain a target neighbor list corresponding to the current node; the target neighbor list is a collection of nodes whose distance from the current node is less than a preset threshold range; the target neighbor list is dynamically updated when a new node is added to the network topology or a node is offline;
[0010] The initial neighbor lists of all nodes are updated to complete the network formation; each node in the formed network communicates with the nearest node in its corresponding target neighbor list.
[0011] Compared with the prior art, the dynamic self-organizing network method provided by the present invention comprises: creating multiple nodes in the network to form a network topology structure; for any node in the network topology structure: according to the hash value of the current node and the direct connectivity between the current node and other nodes in the network topology structure, using the optimized distance evaluation function to calculate the distance between the current node and other nodes, when performing the distance evaluation, the direct connectivity between the nodes is considered, and the calculated distance result can more accurately reflect the actual distance between the nodes; according to the size of the distance between the current node and other nodes, the initial neighbor list of the current node is updated to obtain the target neighbor list corresponding to the current node, because it is based on the calculated The initial neighbor list of the node is updated with a more accurate distance, and the neighbor node closest to each node can be determined, thereby improving the efficiency of node organization; the target neighbor list is dynamically updated when a new node is added to the network topology or the node is offline, which can implement a dynamic node organization strategy and can cope with changes in network scale and dynamic behavior of nodes; each node in the established network communicates with the nearest node in its corresponding target neighbor list. When searching for the target node to be communicated, the optimized distance evaluation function is used to guide the search direction. The path searched during the node search process is shorter and the search is more accurate, which can achieve more efficient node search in large-scale networks.
[0012] In a second aspect, the present invention provides a dynamic self-organizing network device, comprising:
[0013] A node creation module is used to create multiple nodes in the network to form a network topology structure: each of the nodes includes a hash value and an initial neighbor list; the initial neighbor list includes N random nodes; N is greater than 0;
[0014] The node distance calculation module is used to calculate the distance between the current node and other nodes using an optimized distance evaluation function for any node in the network topology structure according to the hash value of the current node and the direct connectivity between the current node and other nodes in the network topology structure; the direct connectivity means that there are no other nodes between any two adjacent nodes;
[0015] An initial neighbor list update module is used to update the initial neighbor list of the current node according to the distance between the current node and other nodes, and obtain a target neighbor list corresponding to the current node; the target neighbor list is a collection of nodes whose distance from the current node is less than a preset threshold range; the target neighbor list is dynamically updated when a new node is added to the network topology or a node is offline;
[0016] The network building completion module is used to update the initial neighbor lists of all nodes and complete the network building; each node in the built network communicates with the nearest node in its corresponding target neighbor list.
[0017] In a third aspect, the present invention provides a dynamic self-organizing network device, comprising:
[0018] A communication unit / communication interface, used to create multiple nodes in the network to form a network topology structure: each of the nodes includes a hash value and an initial neighbor list; the initial neighbor list includes N random nodes; N is greater than 0;
[0019] A processing unit / processor, configured to calculate, for any node in the network topology structure: a distance between the current node and other nodes using an optimized distance evaluation function according to a hash value of the current node and direct connectivity between the current node and other nodes in the network topology structure; the direct connectivity indicates that there are no other nodes between any two adjacent nodes;
[0020] The initial neighbor list of the current node is updated according to the distance between the current node and other nodes to obtain a target neighbor list corresponding to the current node; the target neighbor list is a collection of nodes whose distance from the current node is less than a preset threshold range; the target neighbor list is dynamically updated when a new node is added to the network topology or a node is offline;
[0021] The initial neighbor lists of all nodes are updated to complete the network formation; each node in the formed network communicates with the nearest node in its corresponding target neighbor list.
[0022] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, the above-mentioned dynamic self-organizing network method is implemented.
[0023] Compared with the prior art, the beneficial effects of the second aspect device type solution, the third aspect equipment type solution, and the fourth aspect computer-readable storage medium type solution provided by the present invention are the same as the beneficial effects of the hybrid block hash encryption method described in the above technical solution, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0025] Figure 1 A flow chart of a dynamic self-organizing network method provided by the present invention;
[0026] Figure 2 A structural schematic diagram of a dynamic self-organizing network device provided by the present invention;
[0027] Figure 3 A schematic diagram of the structure of a dynamic self-organizing network device provided by the present invention. DETAILED DESCRIPTION
[0028] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first threshold and the second threshold are only used to distinguish different thresholds, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0029] It should be noted that, in the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0030] In the present invention, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, the combination of a and b, the combination of a and c, the combination of b and c, or the combination of a, b and c, where a, b, c can be single or multiple.
[0031] Existing self-organizing network methods usually use distance evaluation functions such as Euclidean distance and Manhattan distance to evaluate the distance between nodes. These distance evaluation functions do not consider the direct connectivity between nodes. Since the network environment is a complex and changing process, the calculated distance cannot truly reflect the actual distance between nodes, affecting the network's organizational efficiency and node search efficiency.
[0032] To solve the above problems, the present invention provides a dynamic self-organizing network method, device, equipment and medium, introduces network connectivity, and optimizes the distance evaluation function to more accurately reflect the actual distance between nodes. Secondly, the dynamic node organization strategy can cope with changes in network scale and dynamic behavior of nodes. Finally, the search strategy based on heuristic function can realize efficient node search in large-scale networks, which is explained below with reference to the accompanying drawings.
[0033] Figure 1 A flow chart of a dynamic self-organizing network method provided by the present invention, such as Figure 1 As shown, the dynamic self-organizing network method includes the following steps:
[0034] Step 101: creating multiple nodes in the network to form a network topology structure: each of the nodes includes a hash value and an initial neighbor list;
[0035] The number of nodes created is determined according to demand. Each node has a corresponding unique identifier. The hash value of the node is obtained by hashing the unique identifier of the node.
[0036] The initial neighbor list includes N random nodes; N is greater than 0; if the number of nodes created is M, N can be equal to M-1, M-2, etc. The number of nodes in the neighbor list is determined according to demand. The neighbor list of a node refers to the list of nodes directly connected to the node.
[0037] Step 102: for any node in the network topology structure: according to the hash value of the current node and the direct connectivity between the current node and other nodes in the network topology structure, the distance between the current node and other nodes is calculated using the optimized distance evaluation function;
[0038] Direct connectivity means that there are no other nodes between any two adjacent nodes, and the two nodes can communicate directly with each other.
[0039] Specifically, the use of the optimized distance evaluation function to calculate the distance between the current node and other nodes includes: performing an XOR operation on the hash values of the two nodes to be calculated to obtain an XOR result;
[0040] Substitute the XOR result and the direct connectivity of the two nodes to be calculated in the network topology into the optimized distance evaluation function formula to obtain the distance between the two nodes to be calculated. The optimized distance evaluation function formula is as follows:
[0041] d(i,j)=α*H(i,j)+(1-α)*C(i,j)(1)
[0042] Wherein, d(i,j) represents the distance between the two nodes to be calculated, i and j are the two nodes to be calculated respectively, H(i,j) is the XOR result corresponding to the two nodes to be calculated, C(i,j) is the direct connectivity of the two nodes to be calculated in the network topology structure, when there is direct connectivity between the two nodes, it can be represented by 1, if there is no direct connectivity, it can be represented by 0, α is the weight parameter, α is greater than 0 and less than 1, and the value of α can change dynamically.
[0043] The optimized distance evaluation function is non-negative, because H(i,j) and C(i,j) are both non-negative; Identity: d(i,i) = 0, because H(i,i) = 0, C(i,i) = 0. Symmetry: d(i,j) = d(j,i), because H(i,j) = H(j,i), C(i,j) = C(j,i). Triangle inequality: For all i,j,k, d(i,j) < = d(i,k) + d(k,j).
[0044] Step 103: updating the initial neighbor list of the current node according to the distance between the current node and other nodes, and obtaining the target neighbor list corresponding to the current node;
[0045] This step is the process of grouping and organizing nodes. Each node only selects a few nodes closest to it as its neighbors, which can maintain the sparsity and efficiency of the network.
[0046] The target neighbor list is a set of N nodes whose distance to the current node is less than a preset threshold range. The number of nodes in the target neighbor list can be customized according to needs, and the preset threshold range is determined based on the distance between the current node and all other nodes. The target neighbor list is dynamically updated when a new node is added to the network topology or a node goes offline.
[0047] As an optional method, the initial neighbor list of the current node is updated according to the distance between the current node and other nodes, and the target neighbor list of the current node is obtained, which specifically includes:
[0048] Sort the distances between the current node and other nodes in ascending order to obtain a sorted distance set;
[0049] The nodes corresponding to the first N distances in the sorted distance set are determined as nodes in the target neighbor list of the current node. If the Nth distance is L, the preset threshold range is less than or equal to L.
[0050] Step 104: Update the initial neighbor lists of all nodes to complete the network establishment; each node in the established network communicates with the nearest node in its corresponding target neighbor list.
[0051] The self-organizing network that has been built is based on a search strategy based on a heuristic function. This strategy uses an optimized distance evaluation function to guide the node search direction. Specifically, after the network is built, the process of finding the target communication node through node search for communication includes:
[0052] Determine the first node closest to the starting node according to the target neighbor list of the starting node;
[0053] Determine a second node closest to the first node according to the target neighbor list of the first node;
[0054] The next node closest to the second node is determined according to the target neighbor list of the second node until the target communication node is found, thereby achieving communication between the starting node and the target communication node.
[0055] The dynamic self-organizing network method provided by the present invention adopts an optimized distance evaluation function to calculate the distance between the current node and other nodes. When performing the distance evaluation, the direct connectivity between the nodes is considered, and the calculated distance result can more accurately reflect the actual distance between the nodes; the initial neighbor list of the current node is updated according to the size of the distance between the current node and other nodes to obtain a target neighbor list corresponding to the current node. Since the initial neighbor list of the node is updated based on the more accurate distance obtained by calculation, the neighbor node closest to each node can be determined, thereby improving the node organization efficiency; the target neighbor list is dynamically updated when a new node is added to the network topology or the node is offline, so that a dynamic node organization strategy can be implemented, and changes in the network scale and the dynamic behavior of the node can be coped with; each node in the formed network communicates with the node closest to the corresponding target neighbor list, and when searching for the target node to be communicated, since the optimized distance evaluation function is used to guide the search direction, the path searched in the node search process is shorter, the search is more accurate, and more efficient node search can be implemented in a large-scale network.
[0056] The network formed by this solution has a dynamic processing function. When a new node is added, a node is offline, or the weight parameter α changes, the system will automatically update the neighbor list of the relevant node and reorganize the node. As an optional method, when a new node is added to the formed network, the target neighbor list is dynamically updated including:
[0057] Calculating a target distance set between the new node and other nodes in the network topology after the new node is added;
[0058] The target neighbor list of each node is updated according to the target distance set and the distance between each node in the network topology before the new node is added.
[0059] As an optional method, when there are offline nodes in the established network, the target neighbor list dynamic update includes:
[0060] Determine a target node that includes the offline node in the target neighbor list;
[0061] Determine whether the offline node is a node communicating with the target node. If so, delete the offline node from the target neighbor list of the target node, and determine the second node in the target neighbor list as the node closest to the target node. If not, determine the next target node; the second node is the node closest to the target node except the offline node.
[0062] In the specific implementation, it is assumed that the network consists of five nodes: A, B, C, D, and E. Each node has a corresponding unique identifier, and a unique hash value is obtained through hash operation. In the initial state, the neighbor list of each node is set to a random set of nodes. Next, the distance between nodes is evaluated using the optimized distance evaluation function, where α is set to 0.5. Based on the optimized distance evaluation function, the nodes are grouped and organized. For example, node A may choose the two closest and second closest nodes as its new neighbors, such as B and D. When a new node F joins the network, the network automatically updates the neighbor list of the relevant nodes and reorganizes the nodes. Finally, a search strategy based on a heuristic function is adopted, which uses the optimized distance evaluation function to guide the search direction. For example, to find the node closest to node A, start searching from A's neighbor nodes, and then gradually expand the search range until the target node is found.
[0063] The efficiency of node organization in this scheme, assuming that we have proved that d(i,j) is a qualified distance function, we can further analyze the efficiency of using d(i,j) for node organization. This may require designing an algorithm or strategy that can effectively organize nodes according to the value of d(i,j). In order to prove the efficiency of this organization strategy, we need to define a suitable efficiency indicator, such as the diameter of the network (the maximum distance between any two nodes). Then, we need to construct the worst case of the network, calculate the diameter in this case, and prove its relationship with N nodes.
[0064] Efficiency of the search strategy in this solution: Assuming that we use an algorithm for node search, we need to prove that its time complexity is O(N log N) and space complexity is O(N). First, we need to describe in detail how the algorithm works, including its heuristic function, expansion strategy, etc. Then, we need to analyze the time and space consumption of the algorithm in the worst case, and finally get their relationship with N nodes.
[0065] The embodiment of the present invention can divide the functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0066] In the case of dividing each functional module into corresponding functional modules, Figure 2 FIG. 2 shows a schematic diagram of the structure of a dynamic self-organizing network device provided by the present invention. Figure 2 As shown, the device comprises:
[0067] The node creation module 201 is used to create multiple nodes in the network to form a network topology structure: each of the nodes includes a hash value and an initial neighbor list; the initial neighbor list includes N random nodes; N is greater than 0;
[0068] The node distance calculation module 202 of any node is used to calculate the distance between the current node and other nodes using the optimized distance evaluation function for any node in the network topology structure according to the hash value of the current node and the direct connectivity between the current node and other nodes in the network topology structure; the direct connectivity means that there are no other nodes between any two adjacent nodes;
[0069] The initial neighbor list update module 203 of any node is used to update the initial neighbor list of the current node according to the distance between the current node and other nodes, and obtain the target neighbor list corresponding to the current node; the target neighbor list is a collection of nodes whose distance from the current node is less than a preset threshold range; the target neighbor list is dynamically updated when a new node is added to the network topology or a node is offline;
[0070] The initial neighbor list sequential updating module 204 is used to update the initial neighbor lists of all nodes to complete the network establishment; each node in the established network communicates with the nearest node in its corresponding target neighbor list.
[0071] Optionally, the node distance calculation module of any node includes:
[0072] A hash value calculation unit, used to perform an XOR operation on the hash values of two nodes to be calculated to obtain an XOR result;
[0073] The distance calculation unit is used to substitute the XOR result and the direct connectivity of the two nodes to be calculated in the network topology into the following optimized distance evaluation function formula to obtain the distance between the two nodes to be calculated:
[0074] d(i,j)=α*H(i,j)+(1-α)*C(i,j)
[0075] Wherein, d(i,j) represents the distance between the two nodes to be calculated, i and j are the two nodes to be calculated, H(i,j) is the XOR result corresponding to the two nodes to be calculated, C(i,j) is the direct connectivity of the two nodes to be calculated in the network topology, and α is the weight parameter, which is greater than 0 and less than 1.
[0076] Optionally, when a new node is added to the established network, the target neighbor list is dynamically updated including:
[0077] Calculating a target distance set between the new node and other nodes in the network topology after the new node is added;
[0078] The target neighbor list of each node is updated according to the target distance set and the distance between each node in the network topology before the new node is added.
[0079] Optionally, when there are offline nodes in the established network, the target neighbor list dynamic update includes:
[0080] Determine a target node that includes the offline node in the target neighbor list;
[0081] Determine whether the offline node is a node communicating with the target node. If so, delete the offline node from the target neighbor list of the target node, and determine the second node in the target neighbor list as the node closest to the target node. If not, determine the next target node; the second node is the node closest to the target node except the offline node.
[0082] Optionally, the initial neighbor list updating module 203 of any node includes:
[0083] A sorting unit is used to sort the distances between the current node and other nodes in ascending order to obtain a sorted distance set;
[0084] The target neighbor list determination unit is used to determine the nodes corresponding to the first N distances in the sorted distance set as nodes in the target neighbor list of the current node.
[0085] Optionally, the hash value of the node is obtained by hashing a unique identifier of the node.
[0086] Optionally, the device further includes a node search module, which may specifically include:
[0087] A first node determining unit, configured to determine a first node closest to the starting node according to a target neighbor list of the starting node;
[0088] A second node determining unit, configured to determine a second node that is closest to the first node according to a target neighbor list of the first node;
[0089] The next node determination unit is used to determine the next node closest to the second node according to the target neighbor list of the second node until the target communication node is found, thereby realizing communication between the starting node and the target communication node.
[0090] The above mainly introduces the solution provided by the embodiment of the present invention from the perspective of the interaction between various modules. It can be understood that in order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of various functions. It should be easy for those skilled in the art to realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0091] In the case of using the corresponding integrated unit, Figure 3 FIG. 2 is a schematic diagram showing a structure of a dynamic self-organizing network device provided by the present invention. Figure 3 As shown, the device includes:
[0092] A communication unit / communication interface, used to create multiple nodes in the network to form a network topology structure: each of the nodes includes a hash value and an initial neighbor list; the initial neighbor list includes N random nodes; N is greater than 0;
[0093] A processing unit / processor, configured to calculate, for any node in the network topology structure: a distance between the current node and other nodes using an optimized distance evaluation function according to a hash value of the current node and direct connectivity between the current node and other nodes in the network topology structure; the direct connectivity indicates that there are no other nodes between any two adjacent nodes;
[0094] The initial neighbor list of the current node is updated according to the distance between the current node and other nodes to obtain a target neighbor list corresponding to the current node; the target neighbor list is a collection of nodes whose distance from the current node is less than a preset threshold range; the target neighbor list is dynamically updated when a new node is added to the network topology or a node is offline;
[0095] The initial neighbor lists of all nodes are updated to complete the network formation; each node in the formed network communicates with the nearest node in its corresponding target neighbor list.
[0096] Wherein, the processing unit may be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. The processor may also be a combination that implements a computing function, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module may be a transceiver, a transceiver circuit or a communication interface, and the like. The storage module may be a memory.
[0097] like Figure 3As shown, the processor may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present invention. The communication interface may be one or more. The communication interface may use any transceiver-like device for communicating with other devices or communication networks.
[0098] like Figure 3 As shown, the terminal device may further include a communication line. The communication line may include a path to transmit information between the components.
[0099] Optional, such as Figure 3 As shown, the terminal device may further include a memory. The memory is used to store computer-executable instructions for executing the solution of the present invention, and the execution is controlled by the processor. The processor is used to execute the computer-executable instructions stored in the memory, thereby implementing the method provided by the embodiment of the present invention.
[0100] like Figure 3 As shown, the memory may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor through a communication line. The memory may also be integrated with the processor.
[0101] Optionally, the computer-executable instructions in the embodiment of the present invention may also be referred to as application program codes, which is not specifically limited in the embodiment of the present invention.
[0102] In a specific implementation, as an example, Figure 3 As shown, the processor may include one or more CPUs, such as Figure 3 CPU0 and CPU1 in.
[0103] In a specific implementation, as an example, Figure 3 As shown, the terminal device may include multiple processors, such as Figure 3 Each of these processors can be a single-core processor or a multi-core processor.
[0104] On the one hand, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed, the above-mentioned dynamic self-organizing network method is implemented.
[0105] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present invention is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a terminal, a user device or other programmable device. The computer program or instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program or instruction can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, a hard disk, or a tape; it can also be an optical medium, such as a digital video disc (DVD); it can also be a semiconductor medium, such as a solid state drive (SSD).
[0106] Although the present invention is described herein in conjunction with various embodiments, in the process of implementing the claimed invention, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0107] Although the present invention has been described in conjunction with specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present invention. Accordingly, this specification and the accompanying drawings are merely exemplary illustrations of the present invention as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present invention. Obviously, those skilled in the art may make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, the present invention is intended to include such modifications and variations if they fall within the scope of the claims of the present invention and their equivalents.
Claims
1. A dynamic self-organizing network method, characterized in that: include: Creating multiple nodes in the network to form a network topology structure: each of the nodes includes a hash value and an initial neighbor list; The initial neighbor list includes N random nodes; N is greater than 0; For any node in the network topology structure: according to the hash value of the current node and the direct connectivity between the current node and other nodes in the network topology structure, the distance between the current node and other nodes is calculated using the optimized distance evaluation function; the direct connectivity means that there are no other nodes between any two adjacent nodes; The use of the optimized distance evaluation function to calculate the distance between the current node and other nodes includes: performing an XOR operation on the hash values of the two nodes to be calculated to obtain an XOR result; substituting the XOR result and the direct connectivity of the two nodes to be calculated in the network topology into the following optimized distance evaluation function formula to obtain the distance between the two nodes to be calculated: d(i,j)=α*H(i,j)+(1-α)*C(i,j) Wherein, d(i,j) represents the distance between the two nodes to be calculated, i and j are the two nodes to be calculated, H(i,j) is the XOR result of the two nodes to be calculated, C(i,j) is the direct connectivity of the two nodes to be calculated in the network topology structure, when there is direct connectivity between the two nodes, it is represented by 1, when there is no direct connectivity between the two nodes, it is represented by 0, α is the weight parameter, α is greater than 0 and less than 1; The initial neighbor list of the current node is updated according to the distance between the current node and other nodes to obtain a target neighbor list corresponding to the current node; the target neighbor list is a collection of nodes whose distance from the current node is less than a preset threshold range; the target neighbor list is dynamically updated when a new node is added to the network topology or a node is offline; The initial neighbor lists of all nodes are updated to complete the network formation; each node in the formed network communicates with the nearest node in its corresponding target neighbor list.
2. The dynamic self-organizing network method according to claim 1, characterized in that: When a new node is added to the established network, the target neighbor list is dynamically updated including: Calculating a target distance set between the new node and other nodes in the network topology after the new node is added; The target neighbor list of each node is updated according to the target distance set and the distance between each node in the network topology before the new node is added.
3. The dynamic self-organizing network method according to claim 1, characterized in that: When there are offline nodes in the established network, the target neighbor list is dynamically updated including: Determine a target node that includes the offline node in the target neighbor list; Determine whether the offline node is a node communicating with the target node. If so, delete the offline node from the target neighbor list of the target node, and determine the second node in the target neighbor list as the node closest to the target node. If not, determine the next target node; the second node is the node closest to the target node except the offline node.
4. The dynamic self-organizing network method according to claim 1, characterized in that: The updating of the initial neighbor list of the current node according to the distance between the current node and other nodes to obtain the target neighbor list of the current node includes: Sort the distances between the current node and other nodes in ascending order to obtain a sorted distance set; The nodes corresponding to the first N distances in the sorted distance set are determined as the nodes in the target neighbor list of the current node.
5. The dynamic self-organizing network method according to claim 1, characterized in that: The hash value of the node is obtained by performing a hash calculation on the unique identifier of the node.
6. The dynamic self-organizing network method according to claim 1, characterized in that: After the network is established, the following steps are also included: Determine the first node closest to the starting node according to the target neighbor list of the starting node; Determine a second node closest to the first node according to the target neighbor list of the first node; The next node closest to the second node is determined according to the target neighbor list of the second node until the target communication node is found, thereby achieving communication between the starting node and the target communication node.
7. A dynamic self-organizing network device, characterized in that: include: A node creation module is used to create multiple nodes in the network to form a network topology structure: each of the nodes includes a hash value and an initial neighbor list; The initial neighbor list includes N random nodes; N is greater than 0; The node distance calculation module of any node is used for calculating the distance between the current node and other nodes using an optimized distance evaluation function according to the hash value of the current node and the direct connectivity between the current node and other nodes in the network topology structure for any node in the network topology structure; The direct connectivity means that there are no other nodes between any two adjacent nodes; The use of the optimized distance evaluation function to calculate the distance between the current node and other nodes includes: performing an XOR operation on the hash values of the two nodes to be calculated to obtain an XOR result; substituting the XOR result and the direct connectivity of the two nodes to be calculated in the network topology into the following optimized distance evaluation function formula to obtain the distance between the two nodes to be calculated: d(i,j)=α*H(i,j)+(1-α)*C(i,j) Wherein, d(i,j) represents the distance between the two nodes to be calculated, i and j are the two nodes to be calculated, H(i,j) is the XOR result of the two nodes to be calculated, C(i,j) is the direct connectivity of the two nodes to be calculated in the network topology structure, when there is direct connectivity between the two nodes, it is represented by 1, when there is no direct connectivity between the two nodes, it is represented by 0, α is the weight parameter, α is greater than 0 and less than 1; The initial neighbor list update module of any node is used to update the initial neighbor list of the current node according to the distance between the current node and other nodes to obtain the target neighbor list corresponding to the current node; the target neighbor list is a collection of nodes whose distance from the current node is less than a preset threshold range; the target neighbor list is dynamically updated when a new node is added to the network topology or a node is offline; The initial neighbor list sequentially updates the module, which is used to update the initial neighbor lists of all nodes to complete the network formation; each node in the formed network communicates with the nearest node in its corresponding target neighbor list.
8. A dynamic self-organizing network device, characterized in that: include: A communication unit / communication interface, used to create multiple nodes in the network to form a network topology: each of the nodes includes a hash value and an initial neighbor list; The initial neighbor list includes N random nodes; N is greater than 0; A processing unit / processor, configured to calculate, for any node in the network topology structure: a distance between the current node and other nodes using an optimized distance evaluation function according to a hash value of the current node and direct connectivity between the current node and other nodes in the network topology structure; The direct connectivity means that there are no other nodes between any two adjacent nodes; The use of the optimized distance evaluation function to calculate the distance between the current node and other nodes includes: performing an XOR operation on the hash values of the two nodes to be calculated to obtain an XOR result; substituting the XOR result and the direct connectivity of the two nodes to be calculated in the network topology into the following optimized distance evaluation function formula to obtain the distance between the two nodes to be calculated: d(i,j)=α*H(i,j)+(1-α)*C(i,j) Wherein, d(i,j) represents the distance between the two nodes to be calculated, i and j are the two nodes to be calculated, H(i,j) is the XOR result of the two nodes to be calculated, C(i,j) is the direct connectivity of the two nodes to be calculated in the network topology structure, when there is direct connectivity between the two nodes, it is represented by 1, when there is no direct connectivity between the two nodes, it is represented by 0, α is the weight parameter, α is greater than 0 and less than 1; The initial neighbor list of the current node is updated according to the distance between the current node and other nodes to obtain a target neighbor list corresponding to the current node; the target neighbor list is a collection of nodes whose distance from the current node is less than a preset threshold range; the target neighbor list is dynamically updated when a new node is added to the network topology or a node is offline; The initial neighbor lists of all nodes are updated to complete the network formation; each node in the formed network communicates with the nearest node in its corresponding target neighbor list.
9. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the instructions are executed, the dynamic self-organizing network method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Block chain network transmission method and transmission medium based on KAD gemini model
CN114465933A
Network topology construction method and device, equipment and storage medium
CN116962194A
