Node path determination method, device, equipment and storage medium
By recalculating CDN paths in CDN based on health parameters and heuristic algorithms, the problem of low path calculation efficiency when the number of CDN nodes is large is solved, efficient and real-time path calculation and delivery is achieved, and transmission efficiency is improved.
Patent Information
- Application Number
- CN202310945732.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-07-28
AI Technical Summary
When the number of Content Delivery Network (CDN) nodes is huge and the network environment changes slightly, common IP layer dynamic routing algorithms cause all CDN node paths to be recalculated, which cannot meet the requirements for efficient and real-time path calculation and delivery.
By determining the health parameters of the node based on the initial path, the heuristic algorithm is used to recalculate the target path to avoid all nodes re-participating in the calculation. The specific steps include obtaining the weighted calculation of network quality parameters (packet loss rate, first packet delay, bandwidth, load) and, determine the health parameters, and perform heuristic path optimization based on the previous hop node when the health parameters are abnormal.
It achieves efficient and real-time path calculation and delivery in scenarios with a large number of CDN nodes, improves the accuracy and efficiency of optimal path calculation, avoids recalculation of all nodes, makes full use of CDN storage capacity for path caching, and improves Return-to-source transmission efficiency.
Smart Images

Figure CN117014360B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a node path determination method, device, equipment and storage medium. Background Art
[0002] In scenarios where the number of content delivery network (CDN) nodes is large, there is a problem of low efficiency in optimal path calculation. The CDN dynamic routing algorithm can be regarded as a multi-constraint optimal path problem at the application layer. The relevant technology only considers using the common Internet layer (IP) dynamic routing algorithm to improve transmission efficiency, but this solution is only applicable to path calculation in scenarios with a small number of nodes. However, when the number of CDN nodes is large and the network environment changes slightly, the common IP layer dynamic routing algorithm will cause all CDN node paths to be recalculated, which cannot meet the needs of efficient and real-time path calculation and delivery. There is currently no effective solution to this problem. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a node path determination method, apparatus, device and storage medium, which aim to effectively avoid all nodes from re-participating in the calculation of the target path and achieve efficient and real-time path calculation and delivery.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application provides a node path determination method, including:
[0006] Based on the initial path, determining a health parameter of each node in at least one node of the initial path;
[0007] When the health parameter of the first node is greater than a preset threshold, determining the second node according to the first node; the first node is any node of at least one of the nodes; the second node is the previous hop node of the first node;
[0008] A first target path is determined based on the second node using a heuristic algorithm.
[0009] In the above solution, the determining of the health parameter of each node in at least one node of the initial path includes:
[0010] Obtaining a network quality parameter of each of the nodes;
[0011] A health parameter of each of the nodes is determined based on the network quality parameter.
[0012] In the above solution, the network quality parameter includes at least one of the following: a packet loss rate parameter, a first packet delay parameter, a bandwidth parameter, and a load parameter; and determining the health parameter of each node based on the network quality parameter includes:
[0013] A weighted sum is performed on at least one of the packet loss rate parameter, the first packet delay parameter, the bandwidth parameter, and the load parameter to obtain a health parameter of each of the nodes.
[0014] In the above solution, the using a heuristic algorithm to determine the first target path based on the second node includes:
[0015] determining at least one first path based on the second node, and a ranking score of each first path;
[0016] Sorting the first paths according to the sorting scores to obtain a first sorting result;
[0017] Based on the first sorting result, the first target path is determined in at least one of the first paths.
[0018] In the above solution, determining at least one first path based on the second node includes:
[0019] Determine a third node according to the probability matrix of the second node; the third node is the next hop node of the second node in the at least one node;
[0020] The initial path is updated based on the third node to obtain the first path.
[0021] In the above solution, the method further includes:
[0022] According to the first sorting result, a first path other than the first target path in at least one of the first paths is stored.
[0023] In the above solution, the method further includes:
[0024] When the health parameter of the fourth node is greater than a preset threshold, determining a second target path based on the fourth node; the fourth node is any node after the first node in at least one of the nodes;
[0025] Acquire a first duration for determining the second target path based on the fourth node;
[0026] When the first duration is greater than a preset duration, determining at least one second path including the fourth node based on at least one stored first path;
[0027] The second path ranked first in the first sorting result is determined as the second target path.
[0028] The present application provides a node path determination device, including:
[0029] A first determination module, configured to determine, based on an initial path, a health parameter of each node in at least one node of the initial path;
[0030] A second determination module is used to determine a second node according to the first node when the health parameter of the first node is greater than a preset threshold; the first node is any node of at least one of the nodes; the second node is a previous hop node of the first node;
[0031] The third determination module is used to determine the first target path based on the second node by using a heuristic algorithm.
[0032] The embodiment of the present application provides a node path determination device, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein:
[0033] The processor is used to execute the steps of the above-mentioned node path determination method when running a computer program.
[0034] An embodiment of the present application provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the above-mentioned node path determination method are implemented.
[0035] The embodiment of the present application provides a node path determination method, device, equipment and storage medium, the method comprising: based on the initial path, determining the health parameter of each node in at least one node of the initial path; when the health parameter of the first node is greater than a preset threshold, determining the second node according to the first node; the first node is any node in at least one of the nodes; the second node is the previous hop node of the first node; using a heuristic algorithm, determining the first target path based on the second node. By adopting the technical solution of the embodiment of the present application, when the health parameter of the first node in the initial path is abnormal, the first target path can be recalculated based on the previous hop node of the first node, effectively avoiding all nodes from re-participating in the calculation of the target path, and realizing efficient and real-time path calculation and distribution. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is a schematic diagram of the implementation flow of the node path determination method according to an embodiment of the present application;
[0037] Figure 2 This is a schematic diagram of the CDN dynamic routing architecture of an embodiment of the present application;
[0038] Figure 3 This is a schematic diagram of the implementation flow of a node path determination method in an application example of this application;
[0039] Figure 4 This is a schematic diagram of the structure of a node path determination device according to an embodiment of the present application;
[0040] Figure 5 This is a schematic diagram of the structure of a node path determination device according to an embodiment of the present application. DETAILED DESCRIPTION
[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0042] The embodiments of the present application provide a node path determination method, apparatus, device and storage medium, which are intended to effectively prevent all nodes from re-participating in the calculation of the target path and achieve efficient and real-time path calculation and distribution.
[0043] In the related technology, CDN acceleration generally does not cache dynamic requests, and requires real-time back-to-source acquisition. For CDN dynamic content access, the existing CDN dynamic routing technology solutions mainly include three types: one is that the CDN edge node directly returns to the source; the second is to set up a transit node on the upper layer of the CDN edge node. After the user request reaches the CDN edge node, the detection application is triggered to actively initiate periodic detection of the CDN's transit nodes and source stations, and report the detection data obtained to the central path calculation server; the central path calculation server calculates the optimal link based on the reported detection data, and by setting the detection status, the link with the faulty node is removed from the candidate back-to-source path to reduce the failure of dynamic requests to access the IP; the third is to build a virtual acceleration network between the source station and the CDN node. When each acceleration node in the virtual acceleration network selects a path, it follows the Open Shortest Path First (OSPF) dynamic routing protocol to ensure the data transmission efficiency between the CDN transmission node and the source station.
[0044] In the related art, the disadvantages of the CDN dynamic routing technology solution include at least:
[0045] 1) The dynamic routing algorithm does not integrate multi-dimensional quality indicators for modeling, and has poor resistance to network fluctuations. The current dynamic routing technology solution only detects the number of path hops and download rate indicators, which cannot fully reflect the network quality of CDN application layer nodes, resulting in inaccurate optimal path calculation results and poor resistance to network fluctuations.
[0046] 2) In scenarios with a large number of CDN nodes, the efficiency of optimal path calculation is low. The CDN dynamic routing algorithm can be regarded as a multi-constraint optimal path problem at the application layer. The current technical solution only considers using the common IP layer dynamic routing algorithm to improve transmission efficiency. This solution is only applicable to path calculation in scenarios with a small number of nodes. The number of CDN nodes is huge. When the network environment changes slightly, the common IP layer dynamic routing algorithm will cause all CDN node paths to be recalculated, which cannot meet the needs of efficient and real-time path calculation and delivery.
[0047] The present application provides a node path determination method, apparatus, device and storage medium, which abstracts the CDN dynamic routing problem into an optimal path selection problem with multiple constraints at the application layer. After the user request reaches the CDN edge node, an active detection program is triggered to detect multi-dimensional quality indicators between the CDN edge node, the intermediate forwarding node and the source station, including but not limited to packet loss rate, first packet delay, bandwidth and load as quality indicator constraint factors, which are input into a heuristic algorithm model for modeling. By utilizing its heuristic and distributed characteristics, the global optimal solution of the CDN dynamic path can be efficiently calculated in the scenario of a large number of CDN nodes.
[0048] The present application embodiment provides a node path determination method, such as Figure 1 As shown, the method includes:
[0049] Step 101: Based on an initial path, determine a health parameter of each node in at least one node of the initial path.
[0050] Exemplarily, the node path determination method can be applied to scenarios such as CDN dynamic routing, and the node can be a CDN node; the initial path determination process can input the health parameters of the CND node into the Shortest Path First (SPF) algorithm in the IP routing algorithm of the related technology, and calculate the optimal return path with each CDN node itself as the root node as the initial path.
[0051] It can be understood that in a CDN network, all CDN nodes report network data at a fixed frequency, wherein the fixed frequency can update network data for all CDN nodes at a granularity of every minute, and the network data includes network quality parameters; the health parameters of each node can be determined based on the network quality parameters of each node; wherein the network quality parameters can include parameters such as packet loss rate, first packet delay, bandwidth, and load.
[0052] In an application example, determining a health parameter of each node in at least one node of an initial path includes:
[0053] Get the network quality parameters of each node;
[0054] The health parameter of each node is determined based on the network quality parameter.
[0055] Exemplarily, the network quality parameter of each node is obtained by obtaining the network quality parameter of each node from network data reported by each node at a fixed frequency.
[0056] It can be understood that each parameter in the network quality parameters such as packet loss rate, first packet delay, bandwidth, load, etc. corresponds to a different weight value, and the multiple parameters included in the network quality parameters can be weighted and summed to obtain the health parameters of each node.
[0057] In an application example, the network quality parameter includes at least one of the following: a packet loss rate parameter, a first packet delay parameter, a bandwidth parameter, and a load parameter; and determining the health parameter of each node based on the network quality parameter includes:
[0058] A weighted sum is performed on at least one of a packet loss rate parameter, a first packet delay parameter, a bandwidth parameter, and a load parameter to obtain a health parameter of each node.
[0059] Exemplarily, a first weight value corresponding to the packet loss rate parameter, a second weight value corresponding to the first packet delay parameter, a third weight value corresponding to the bandwidth parameter, and a fourth weight value corresponding to the load parameter can be determined; based on the first weight value, the second weight value, the third weight value, and the fourth weight value, a weighted sum is performed on at least one of the packet loss rate parameter, the first packet delay parameter, the bandwidth parameter, and the load parameter to obtain the health parameter of each node.
[0060] The present application integrates multi-dimensional quality indicators to model the CDN dynamic routing algorithm, including but not limited to packet loss rate, first packet delay, bandwidth, and load, as quality indicator constraint factors input into the heuristic algorithm model to ensure that the health evaluation of each node in the CDN dynamic path is comprehensive and accurate, and improve the accuracy of the optimal path calculation.
[0061] Step 102: when the health parameter of the first node is greater than a preset threshold, determine the second node according to the first node; the first node is any node of at least one node; the second node is the previous hop node of the first node.
[0062] Exemplarily, the preset threshold can be a critical threshold for determining whether the health parameter of the first node is abnormal, which can be determined based on actual conditions and is not limited here. The second node is determined based on the first node, and the previous hop node of the abnormal node with the health parameter can be used as the starting position to continue determining the optimal path, avoiding recalculation of all nodes.
[0063] Step 103: Determine the first target path based on the second node using a heuristic algorithm.
[0064] It is understandable that the heuristic algorithm may be a heuristic path optimization algorithm. Using the heuristic algorithm to determine the first target path based on the second node may be to start the heuristic path optimization algorithm based on the second node to obtain the first target path corresponding to the second node, wherein the first target path may be an optimal path starting from the second node.
[0065] In an application example, using a heuristic algorithm to determine a first target path based on a second node includes:
[0066] Determine at least one first path based on the second node, and a ranking score of each first path;
[0067] Sort the first path according to the sorting score to obtain a first sorting result;
[0068] Based on the first sorting result, a first target path is determined in the at least one first path.
[0069] Exemplarily, at least one first path is determined based on the second node, and a first number of times of determining the first path for obtaining the second node can be determined; if the first number is greater than or equal to a preset number, the determination of the first path based on the second node is stopped. The preset number can be an iteration number, which can be determined based on a health parameter list corresponding to the second node; the health parameter list includes the health parameter of the second node and the health parameter of the next hop node of the second node.
[0070] Exemplarily, the first paths are sorted according to the sorting scores, and can be sorted in descending order according to the sorting scores, so that each first path is sorted in descending order according to the sorting scores.
[0071] Exemplarily, based on the first sorting result, determining the first target path in at least one first path may be determining, among the at least one first path in the first sorting result, a first path ranked first in the first sorting result as the first target path.
[0072] It can be understood that at least one first path is determined based on the second node, and the ranking score of each first path can be calculated to calculate the probability matrix of the second node, determine the next hop node of the second node based on the probability matrix, determine the sub-path based on the second node and the next hop node, and then determine the optimal path starting from the second node based on multiple sub-paths.
[0073] In an application example, determining at least one first path based on the second node includes:
[0074] Determine a third node according to the probability matrix of the second node; the third node is a next hop node of the second node in at least one node;
[0075] The initial path is updated based on the third node to obtain a first path.
[0076] Exemplarily, determining the third node based on the probability matrix of the second node can be to determine the transition probability between the second node and the fifth node; the fifth node can be a node in at least one node that can serve as the next hop of the second node; sorting at least one transition probability to obtain a second sorting result; determining the third node based on the second sorting result; specifically, determining the fifth node ranked first in the second sorting result as the third node.
[0077] Exemplarily, the initial path is updated based on the third node to obtain the first path, and a first sub-path can be determined based on the third node and the second node; the initial path is updated based on the first sub-path; the next hop node of the third node is determined according to the probability matrix of the third node, and the second sub-path is determined based on the third node and the next hop node of the third node; the initial path is updated based on the second sub-path until the initial path update is completed.
[0078] In an application example, the method further includes:
[0079] According to the first sorting result, the first paths other than the first target path in the at least one first path are stored.
[0080] Exemplarily, the first path ranked first in the first sorting result is taken as the optimal path starting from the second node; the first path ranked after the optimal path starting from the second node in the first sorting result is taken as the high-quality path starting from the second node, and is stored according to the first sorting result.
[0081] In other embodiments, the first number of first paths to be stored may be determined based on a storage parameter and a ratio parameter; and the first number of first paths excluding the first target path in at least one first path may be stored. The storage parameter may be a node storage capacity, and the ratio parameter may indicate that the number of first paths to be stored is proportional to the node storage capacity.
[0082] This application makes full use of the sufficient storage capacity of CDN nodes to further improve transmission efficiency. Multiple alternative paths are pre-cached according to the real-time storage capacity of each CDN node. The more sufficient the storage capacity of the node, the more alternative paths are cached, avoiding access delays or freezes caused by the quality degradation of a single path, and further improving the efficiency of back-to-source transmission.
[0083] In an application example, the method further includes:
[0084] When the health parameter of the fourth node is greater than a preset threshold, determining the second target path based on the fourth node; the fourth node is any node after the first node in the at least one node;
[0085] Acquire a first duration for determining a second target path based on the fourth node;
[0086] When the first duration is greater than the preset duration, determining at least one second path including the fourth node based on the at least one stored first path;
[0087] The second path ranked first in the first sorting result is determined as the second target path.
[0088] Exemplarily, in this embodiment, when the health parameter of the fourth node is greater than a preset threshold, the step of determining the second target path based on the fourth node can refer to the description of the step of determining the first target path based on the second node using a heuristic algorithm in the aforementioned embodiment, and will not be repeated here.
[0089] Exemplarily, timing may be started when it is determined that the health parameter of the fourth node is greater than a preset threshold, thereby obtaining a first duration for determining the second target path based on the fourth node.
[0090] Exemplarily, based on at least one stored first path, at least one second path including a fourth node is determined. It can be determined whether the at least one first path includes the fourth node. If it is determined that the first path includes the fourth node, the first path including the fourth node is determined as the second path.
[0091] Exemplarily, determining the second path ranked first in the first sorting result as the second target path may be based on determining the second path ranked first in the first sorting result as the second target path in at least one second path in the first sorting result.
[0092] In order to understand the embodiments of the present application, an efficient CDN dynamic routing method is used as an example for explanation below.
[0093] In order to solve the two major problems of the existing CDN dynamic routing solution, namely, the lack of comprehensive multi-dimensional quality indicators for modeling, resulting in insufficient accuracy of optimal path calculation, and low efficiency of optimal path calculation in scenarios with a large number of CDN nodes, the embodiment of the present application provides an efficient CDN dynamic routing method to achieve comprehensive and accurate health evaluation of each node in the CDN dynamic path, and real-time and efficient path calculation in large-scale node scenarios.
[0094] like Figure 2As shown, the CDN dynamic routing architecture proposed in this application mainly includes two parts: CDN node network and big data center. The CDN node network includes two layers: edge nodes and acceleration nodes. After the user's dynamic content access request is connected to the CDN edge node, the next hop acceleration node is found according to the routing table until the optimal path back to the source is completed; the big data center interacts with the CDN node network, is responsible for receiving the multi-dimensional quality indicators of each CDN node, inputs the heuristic algorithm model for calculation, and sends the calculated optimal path to each CDN node.
[0095] like Figure 3 As shown, the specific steps are as follows:
[0096] Step 301: All nodes in the CDN node network report network quality indicators to the data center at a fixed frequency, including packet loss rate, first packet delay, bandwidth, load and other indicators. The final CDN node health evaluation index is calculated by combining multi-dimensional quality indicators. The specific calculation method is shown in formula (1):
[0097] Health_point=0.5*Loss_t+0.3*Delay_f+0.1*BW+0.1*Load (1)
[0098] Among them, Health_point represents the CDN node health evaluation index result, Loss_t represents the packet loss rate index value, Delay_f represents the first packet delay index value, BW represents the node bandwidth, and Load represents the node load value.
[0099] Step 302: The CDN node health index is used as "cost" and input into the SPF algorithm in the common IP routing algorithm to calculate the optimal back-to-source path with each CDN node itself as the root node.
[0100] Step 303: Detect whether the health indicators of each node on the optimal path are abnormal.
[0101] Step 304: If no abnormality is detected in the health indicators of the nodes on the optimal path, the optimal path is maintained to access the dynamic content.
[0102] Step 305: If an abnormality is detected in the optimal path, the heuristic path optimization algorithm is started, using the basic principle of the ant colony algorithm, starting from the previous hop of the abnormal node detected, and continuing to calculate the optimal path to avoid recalculating all nodes. The process of the heuristic path optimization algorithm is as follows:
[0103] Step 3051: Initialize parameters:
[0104] The number of ants m: is set to 1.5 times the number of CDN nodes N. This value is an empirical value. If it is set too large, the pheromone of each CDN dynamic path will be too average. In the scenario where the number of CDN nodes is large, the convergence speed will be too slow; if it is set too small, some CDN paths will not be traversed, reducing the accuracy of the global solution. Specifically, if this value is too large, the paths will converge and the running time will be too long; if this value is too small, the global optimum cannot be guaranteed, and it may be a local optimum.
[0105] Iteration number n: When an optimal path anomaly is detected, the CDN node health list is calculated from the previous hop of the detected anomaly node, and the current CDN node health list is Normalized to [0, 1], take the node set in this detection area The mean
[0106]
[0107] Pheromone factor α: Take the empirical value 3.
[0108] Heuristic function factor β: take the empirical value 4.
[0109] Pheromone volatility factor ρ: take the empirical value of 0.4.
[0110] Pheromone constant Q: Take the experience value 500.
[0111] Step 3052: Calculate the transition probability and update the pheromone adjacency matrix:
[0112] Avoid faulty nodes and out-of-region nodes in the current optimal path, select the value with the highest probability as the next hop of the current node of the CDN dynamic path, and thus obtain the optimal sub-path of the current node. String together each optimal sub-path to obtain the optimal path.
[0113] Pheromone Matrix: Where k represents the kth ant, i represents the current position, and j represents the next hop position. represents the mean node health of the ant’s area, and Q represents the pheromone constant.
[0114] Heuristic Matrix: The specific definitions of variables with the same name are the same as above.
[0115] The calculation method of the transfer probability matrix is shown in formula (2):
[0116]
[0117] in, Represents an optional area other than the current abnormal node.
[0118] Step 3053: Determine whether the number of iterations has been reached:
[0119] If the number of iterations is reached, the calculation of the optimal path is terminated. After the number of iterations is reached, the ant colony algorithm itself will sort the path quality. Each reachable path will have a score. The high-quality paths are sorted according to the scores to obtain the sorting results, and then the updated optimal path is determined.
[0120] After obtaining the optimal path result using the heuristic algorithm, determine the optimal path in the sorting and store other reachable high-quality paths. Make full use of the CDN storage advantage to cache the optimal path. According to the node storage capacity C, cache the calculated first l high-quality path routing table l. Where l = μ*C, the number of cached paths is proportional to the node storage capacity, and the specific calculation method of μ can be determined by experience or set up an adaptive algorithm.
[0121] If the optimal path is detected to be abnormal for the second time, the previous hop of the abnormal node detected for the second time is used as the starting position, the optimal path is recalculated, and the time for recalculating the optimal path is obtained. If the time is greater than the time threshold, a new optimal path is selected from the cached high-quality paths; if the time is less than the time threshold, the recalculated optimal path is used as the new optimal path.
[0122] The CDN dynamic routing method proposed in this application can comprehensively and accurately evaluate the health of each node in the CDN dynamic path, improve the accuracy of optimal path calculation, and trigger the heuristic optimization algorithm when the optimal path is abnormal, efficiently calculate the remaining optimal path, and avoid recalculation of all nodes in scenarios with huge CDN node scale. At the same time, it fully utilizes the advantages of CDN storage resources, caches the calculated remaining optimal path according to the storage capacity, and further improves the efficiency of back-to-source transmission.
[0123] This application improves the efficiency of optimal path calculation in scenarios with a large number of CDN nodes. CDN dynamic routing is abstracted as an optimal path problem with multiple constraints at the application layer. Based on the common IP layer dynamic routing algorithm, a CDN application layer heuristic path optimization algorithm is proposed to avoid recalculating the paths of all CDN nodes when the network environment changes slightly, and to achieve efficient and real-time path calculation and delivery.
[0124] The present application embodiment provides a node path determination device, such as Figure 4 As shown, the device 400 includes:
[0125] A first determination module 401 is used to determine the health parameter of each node in at least one node of the initial path based on the initial path;
[0126] A second determination module 402 is used to determine a second node according to the first node when the health parameter of the first node is greater than a preset threshold; the first node is any node of the at least one node; the second node is a previous hop node of the first node;
[0127] The third determination module 403 is configured to determine the first target path based on the second node by using a heuristic algorithm.
[0128] In some embodiments, the first determination module 401 is further used to obtain a network quality parameter of each node; and determine a health parameter of each node based on the network quality parameter.
[0129] In some embodiments, the network quality parameters include at least one of the following: packet loss rate parameter, first packet delay parameter, bandwidth parameter and load parameter; the first determination module 401 is also used to obtain the weighted sum of at least one of the packet loss rate parameter, first packet delay parameter, bandwidth parameter and load parameter to obtain the health parameter of each node.
[0130] In some embodiments, the third determination module 403 is further used to determine at least one first path based on the second node, and a ranking score of each first path; sort the first paths according to the ranking scores to obtain a first ranking result; and determine a first target path in at least one first path based on the first ranking result.
[0131] In some embodiments, the third determination module 403 is further used to determine a third node according to the probability matrix of the second node; the third node is the next hop node of the second node in at least one node; and the initial path is updated based on the third node to obtain the first path.
[0132] In some embodiments, the node path determination device 400 further includes a storage module, which is used to store the first paths other than the first target path in the at least one first path according to the first sorting result.
[0133] In some embodiments, the third determination module 403 is used to determine the second target path based on the fourth node when the health parameter of the fourth node is greater than a preset threshold; the fourth node is any node after the first node in at least one node; obtain a first duration for determining the second target path based on the fourth node; when the first duration is greater than the preset duration, determine at least one second path including the fourth node based on at least one stored first path; and determine the second path ranked first in the first sorting result as the second target path.
[0134] It should be noted that: the node path determination device provided in the above embodiment only uses the division of the above program modules as an example when controlling. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. In addition, the node path determination device provided in the above embodiment and the aforementioned node path determination method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0135] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a node path determination device. Figure 5 Only an exemplary structure of the node path determination device is shown, not the entire structure, and can be implemented as needed. Figure 5 Partial or complete structure shown.
[0136] like Figure 5 As shown, the node path determination device 500 provided in the embodiment of the present application includes: at least one processor 501, a memory 502 and a user interface 503. The various components in the terminal device 500 are coupled together through a bus system 504. It can be understood that the bus system 504 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 504 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, in Figure 5 Various buses are labeled as bus system 504 .
[0137] The user interface 503 may include a display, a keyboard, a mouse, a trackball, a click wheel, keys, buttons, a touch pad or a touch screen.
[0138] The memory 502 in the embodiment of the present application is used to store various types of data to support the operation of the control device. Examples of such data include: any computer program used to operate on the control device.
[0139] The node path determination method disclosed in the embodiment of the present application can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the node path determination method can be completed by the hardware integrated logic circuit or software instructions in the processor 501. The above-mentioned processor 501 can be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 501 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application. The general-purpose processor can be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 502. The processor 501 reads the information in the memory 502 and completes the steps of the node path determination method provided in the embodiment of the present application in combination with its hardware.
[0140] In an exemplary embodiment, the terminal device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.
[0141] It can be understood that the memory 502 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
[0142] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, which may be a computer-readable storage medium, for example, a memory 502 storing a computer program, and the computer program may be executed by a processor 501 of a terminal device to complete the steps described in the method of the present application. The computer-readable storage medium may be a memory such as a ROM, a PROM, an EPROM, an EEPROM, a Flash Memory, a magnetic surface memory, an optical disk, or a CD-ROM.
[0143] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0144] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0145] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A node path determination method, It is characterized in that include: Based on the initial path, determining a health parameter of each node in at least one node of the initial path; When the health parameter of the first node is greater than a preset threshold, determining the second node according to the first node; The first node is any node among at least one of the nodes; The second node is a previous hop node of the first node; Determine a first target path based on the second node using a heuristic path optimization algorithm; The method further comprises: determining at least one first path based on the second node, and a ranking score of each first path; Sorting the first paths according to the sorting scores to obtain a first sorting result; According to the first sorting result, storing at least one first path other than the first target path in the first paths; When the health parameter of the fourth node is greater than a preset threshold, determining a second target path based on the fourth node; the fourth node is any node after the first node in at least one of the nodes; Acquire a first duration for determining the second target path based on the fourth node; In a case where the first duration is greater than a preset duration, determining at least one second path including the fourth node based on at least one stored first path, where the second path is the first path including the fourth node; Based on at least one of the second paths in the first sorting results, a second path ranked first in the first sorting results is determined as the second target path.
2. The method according to claim 1, It is characterized in that The determining of the health parameter of each node in at least one node of the initial path comprises: Obtaining a network quality parameter of each of the nodes; A health parameter of each of the nodes is determined based on the network quality parameter.
3. The method according to claim 2, It is characterized in that The network quality parameter includes at least one of the following: a packet loss rate parameter, a first packet delay parameter, a bandwidth parameter, and a load parameter; and determining the health parameter of each node based on the network quality parameter includes: A weighted sum is performed on at least one of the packet loss rate parameter, the first packet delay parameter, the bandwidth parameter, and the load parameter to obtain a health parameter of each of the nodes.
4. The method according to claim 1, It is characterized in that The using a heuristic algorithm to determine the first target path based on the second node includes: Based on the first sorting result, the first target path is determined in at least one of the first paths.
5. The method according to claim 1, It is characterized in that The determining at least one first path based on the second node comprises: Determine a third node according to the probability matrix of the second node; the third node is the next hop node of the second node in the at least one node; The initial path is updated based on the third node to obtain the first path.
6. A node path determination device, It is characterized in that include: A first determination module, configured to determine, based on an initial path, a health parameter of each node in at least one node of the initial path; A second determination module, configured to determine a second node according to the first node when a health parameter of the first node is greater than a preset threshold; The first node is any node among at least one of the nodes; The second node is a previous hop node of the first node; A third determination module, configured to determine a first target path based on the second node by using a heuristic path optimization algorithm; The third determination module is specifically configured to determine at least one first path based on the second node, and a ranking score of each first path; and to sort the first paths according to the ranking scores to obtain a first ranking result; The node path determination device further includes a storage module, configured to store, according to the first sorting result, a first path other than the first target path in at least one of the first paths; The third determination module is further configured to determine the second target path based on the fourth node when the health parameter of the fourth node is greater than a preset threshold; the fourth node is any node after the first node in at least one of the nodes; and obtain a first duration for determining the second target path based on the fourth node; When the first duration is greater than a preset duration, at least one second path including the fourth node is determined based on at least one stored first path, and the second path is the first path including the fourth node; based on at least one of the second paths in the first sorting result, the second path ranked first in the first sorting result is determined as the second target path.
7. A node path determination device, It is characterized in that include: A processor and a memory for storing a computer program that can be executed on the processor, wherein: The processor is used to execute the steps of the method according to any one of claims 1 to 5 when running a computer program.
8. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Mobile agent-based method for guaranteeing quality of service of wireless multimedia sensor network
CN101778423A
Energy efficiency optimization method based on ant colony routing algorithm connectivity prediction
CN108551661A
Path adjustment method, routing device and storage medium
CN115842765A
Route repairing method based on wireless Mesh network and related equipment
CN115884304A
Methods, Networks and Network Nodes for Selecting a Route
US20100195535A1
