Network routing path planning model training method, path planning method and device
By training the DDPG model and combining it with policy and value network updates, the load-balanced routing path is directly calculated, solving the problems of node maintenance of routing tables and load balancing in traditional methods, and realizing efficient load balancing and improved transmission capacity of communication networks.
Patent Information
- Application Number
- CN202311615633.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-11-28
AI Technical Summary
Traditional DDPG-based routing path planning methods require each node to maintain a routing table and rely on Dijkstra's algorithm. They cannot directly calculate the most suitable path for the service, making it difficult to achieve network load balancing.
By acquiring the network topology and link spectrum resource matrix of the communication network, the DDPG model is iteratively trained to construct a load balancing routing path planning model. The weighted average update of the policy network and value network is used to avoid overestimation and directly calculate the load balancing routing path.
It achieves the elimination of the need for nodes to maintain routing tables, reduces resource consumption, improves model training reliability and load balancing, prevents network congestion, and enhances transmission capacity.
Smart Images

Figure CN117729143B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network transmission technology, and in particular to training methods, path planning methods and apparatus for network routing path planning models. Background Technology
[0002] In the pursuit of goals such as real-time performance, low latency, and load balancing, network routing optimization is a crucial issue. Link load balancing is an important concept in computer networks and communications, used to optimize data transmission on network links to ensure efficient utilization of network resources and maximize performance. Deep Deterministic Policy Gradient (DDPG) is a deep reinforcement learning algorithm specifically designed to solve continuous action space problems. This method excels in handling continuous problems, providing a powerful tool and approach for the further development of intelligent routing. In summary, the DDPG method is more adaptable and flexible than traditional routing methods, better meeting the needs of various network application scenarios to achieve more optimized routing and load balancing.
[0003] Currently, traditional DDPG-based routing path planning mechanisms require obtaining link weights from the link state information at the central node using the DDPG algorithm, which are then used to update the routing table. Each node needs to maintain a routing table containing routing information from that node to all other nodes. The Dijkstra algorithm is used to calculate the routing path from the current node to other nodes in the network, and the link weights obtained from the DDPG algorithm are used to update the routing table during the calculation process.
[0004] However, traditional DDPG-based routing path planning methods require each node in the communication network to maintain a routing table. During the calculation process, the link weights obtained by the DDPG algorithm are used to update the routing table. This algorithm still relies on the fixed-route Dijkstra algorithm and cannot directly calculate the most suitable path for the service. Therefore, it cannot meet the network load balancing requirements of routing path planning. Summary of the Invention
[0005] In view of this, embodiments of this application provide a training method, a path planning method, and an apparatus for a network routing path planning model, in order to eliminate or improve one or more defects existing in the prior art.
[0006] One aspect of this application provides a method for training a network routing path planning model, comprising:
[0007] Obtain the link spectrum resource matrix corresponding to the network topology of the communication network and the current service data;
[0008] The network topology, link spectrum resource matrix, and service data are used to iteratively train a preset DDPG model to obtain a network routing path planning model for planning load-balanced routing paths for services based on the current idle spectrum resources of each link in the communication network.
[0009] In some embodiments of this application, obtaining the link spectrum resource matrix corresponding to the network topology of the communication network and the current service data includes:
[0010] Obtain a network topology diagram of the communication network, wherein the network topology diagram includes each node in the communication network and the links between different nodes;
[0011] Based on the current idle spectrum resources of each link in the communication network, an adjacency matrix is constructed on the network topology graph to obtain the link spectrum resource matrix of the communication network.
[0012] In addition, it acquires the currently unallocated service data for the communication network.
[0013] In some embodiments of this application, the step of training a preset DDPG model using the network topology, link spectrum resource matrix, and service data to train a network routing path planning model for planning load-balanced routing paths for services based on the resource idleness of each link in the communication network includes:
[0014] Using the network topology, link spectrum resource matrix, and service data, an iterative training step is performed on the preset DDPG model until the model converges or reaches the preset number of iterations, so as to obtain a network routing path planning model for planning load-balanced routing paths for services based on the resource idleness of each link in the communication network.
[0015] The iterative training steps include:
[0016] The network topology, link spectrum resource matrix, and service data are input as the current state into the policy network of the DDPG model, so that the policy network outputs the action corresponding to the current moment and the state of the next moment, and updates the policy network parameters based on the current policy gradient. Then, the value network in the DDPG model scores the action corresponding to the current moment to obtain the q-value of the current moment. Then, the q-value of the next moment is calculated according to the target policy network and target value network in the DDPG model. The current value network gradient is calculated based on the q-value of the current moment, the q-value of the next moment, and the reward of the current moment, and the value network parameters are updated based on the value network gradient. Finally, the target policy network and the target value network in the DDPG model are updated respectively based on the current policy network parameters and the value network parameters in a weighted average manner.
[0017] In some embodiments of this application, the policy network includes: a fully connected neural network and a convolutional neural network;
[0018] The fully connected neural network and the convolutional neural network are respectively used to extract corresponding feature data from the network topology, the link spectrum resource matrix and the service data. The merged feature data formed by merging the feature data extracted by the fully connected neural network and the convolutional neural network is used as the state processing result data, so that the policy network outputs the action corresponding to the current time and the state of the next time according to the processing result data.
[0019] In some embodiments of this application, it also includes:
[0020] If it is known that the current idle spectrum resources of each link in the communication network have changed, the link spectrum resource matrix is updated according to the corresponding change data.
[0021] A second aspect of this application provides a network routing path planning method, comprising:
[0022] Acquire the current idle spectrum resources for each link in the communication network, as well as the current node, termination node, and frequency slot resources corresponding to the target service;
[0023] The idle spectrum resources, the current node, the termination node, and the frequency slot resources corresponding to the target service are input into the network routing path planning model so that the network routing path planning model outputs the load-balanced routing path of the target service. The network routing path planning model is pre-trained using the network routing path planning model training method.
[0024] A third aspect of this application provides a training apparatus for a network routing path planning model, comprising:
[0025] The matrix acquisition module is used to acquire the link spectrum resource matrix corresponding to the network topology of the communication network and the current service data.
[0026] The model training module is used to iteratively train a preset DDPG model using the network topology, link spectrum resource matrix, and service data, so as to train a network routing path planning model for planning load-balanced routing paths for services based on the current idle spectrum resources of each link in the communication network.
[0027] A fourth aspect of this application provides a network routing path planning apparatus, comprising:
[0028] The data acquisition module is used to acquire the current idle spectrum resources of each link in the communication network, as well as the current node, termination node, and frequency slot resources corresponding to the target service.
[0029] The path planning module is used to input the idle spectrum resources and the current node, termination node and frequency slot resources corresponding to the target service into the network routing path planning model, so that the network routing path planning model outputs the load-balanced routing path of the target service. The network routing path planning model is pre-trained by the network routing path planning model training method.
[0030] A fifth aspect of this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the content of a training method for the network routing path planning model, and / or to implement the content of the network routing path planning method.
[0031] A sixth aspect of this application provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the content of a training method for the network routing path planning model, and / or implements the content of the network routing path planning method.
[0032] The network routing path planning model training method provided in this application obtains the link spectrum resource matrix corresponding to the network topology of the communication network and the current service data; iteratively trains a preset DDPG model using the network topology, link spectrum resource matrix, and service data to train a network routing path planning model for planning load-balanced routing paths for services based on the current idle spectrum resources of each link in the communication network. Based on automated routing path planning in the communication network, it eliminates the need for nodes in the communication network to maintain their own routing tables, effectively reducing node resource occupancy and improving the reliability and effectiveness of model training. It also effectively improves the load balancing degree of network routing path planning, fully considers link utilization, and selects paths for services based on different idle levels of link resources, prioritizing load balancing and then considering the shortest distance path. In multi-service scenarios, it can achieve a relatively balanced state of links throughout the communication network, effectively preventing network congestion and improving the transmission capacity of the communication network.
[0033] Additional advantages, objectives, and features of this application will be set forth in part in the description which follows, and will in part become apparent to those skilled in the art upon review of the following description, or may be learned by practice of the application. The objectives and other advantages of this application can be realized and obtained by means of the structures specifically pointed out in the specification and drawings.
[0034] Those skilled in the art will understand that the purposes and advantages that can be achieved with this application are not limited to those specifically described above, and that the above and other purposes that this application can achieve will be more clearly understood from the following detailed description. Attached Figure Description
[0035] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, do not constitute a limitation thereof. The components in the drawings are not drawn to scale but are merely for illustrating the principles of this application. For ease of illustration and description of certain parts of this application, corresponding portions in the drawings may be enlarged, i.e., may appear larger relative to other components in an exemplary device actually manufactured according to this application. In the drawings:
[0036] Figure 1 This is a schematic diagram of the first process of training a network routing path planning model according to an embodiment of this application.
[0037] Figure 2 This is a schematic diagram of a second process for training a network routing path planning model according to an embodiment of this application.
[0038] Figure 3 This is a training logic diagram of the DDPG model in an application example of this application.
[0039] Figure 4 This is a flowchart illustrating a network routing path planning method according to an embodiment of this application.
[0040] Figure 5 This is a schematic diagram of the structure of a training device for a network routing path planning model in one embodiment of this application.
[0041] Figure 6 This is a schematic diagram of the network routing path planning device in one embodiment of this application. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the embodiments and accompanying drawings. Here, the illustrative embodiments and their descriptions are used to explain this application, but are not intended to limit it.
[0043] It should also be noted that, in order to avoid obscuring this application with unnecessary details, only the structures and / or processing steps closely related to the solution according to this application are shown in the accompanying drawings, while other details that are not closely related to this application are omitted.
[0044] It should be emphasized that the term "including / comprises" as used herein refers to the presence of a feature, element, step, or component, but does not exclude the presence or addition of one or more other features, elements, steps, or components.
[0045] It should also be noted that, unless otherwise specified, the term "connection" in this article can refer not only to a direct connection, but also to an indirect connection involving an intermediary.
[0046] In the following description, embodiments of the present application will be illustrated with reference to the accompanying drawings. In the drawings, the same reference numerals represent the same or similar parts, or the same or similar steps.
[0047] The rapid development of optical communication technology, big data, and cloud computing, coupled with the emergence of new network applications, has led to more diverse application demands and further expansion of communication network scale. This presents communication networks with the challenge of explosive traffic growth, driven by factors such as a surge in online applications, multimedia content, and cloud computing. This explosive traffic growth poses significant challenges to network infrastructure. Furthermore, due to limited link capacity, the increasing concentration of traffic as services within the network grows can lead to load imbalances and increased link congestion, necessitating effective load balancing to manage the traffic.
[0048] However, traditional network routing optimization methods, such as those based on shortest path algorithms, are extremely time-consuming and slow to converge during route calculation, requiring significant network resource overhead. While various heuristic algorithms can find approximate or suboptimal routing solutions, these algorithms are only applicable to specific scenarios and struggle to meet the real-time and dynamic requirements of networks. With network traffic growing exponentially, relying on manual and traditional methods to manage complex network environments leads to severe network performance degradation and increased link congestion. Therefore, in complex network environments, how to dynamically select the optimal route and achieve network load balancing is a pressing technical problem that engineers in this field need to solve.
[0049] In recent years, machine learning has become a focal point in the field of artificial intelligence. Reinforcement learning, an important branch of machine learning, allows agents to learn policies in uncertain environments to achieve predetermined goals. Agents take actions to maximize cumulative rewards by observing past environmental states and rewards. Deep reinforcement learning (DRL) combines deep learning with reinforcement learning to solve more complex problems. Therefore, utilizing DRL for proactive load balancing appears to be a viable approach.
[0050] DDPG (Deep Deterministic Policy Gradient) is a deep reinforcement learning algorithm specifically designed to solve continuous action space problems. Overcoming the limitations of DQN in handling continuous control tasks, DDPG integrates DQN and deterministic policy gradient methods, employing an Actor-Critic dual network structure. DDPG utilizes this network structure to model policy functions, enabling rapid action generation and thus constructing a stable and efficient continuous action control model. This method excels in handling continuous problems, providing a powerful tool and approach for the further development of intelligent routing. In summary, deep reinforcement learning routing methods are more adaptable and flexible than traditional routing methods, better meeting the needs of various network application scenarios to achieve more optimized routing and load balancing.
[0051] In recent years, some research results on optical network routing optimization methods combining deep learning have emerged. Previous research has proposed a routing path planning mechanism based on DDPG in highly dynamic autonomous networks. The detailed description of the DDPG-based routing path planning algorithm in highly dynamic autonomous networks is as follows:
[0052] At the central node, the status information of all links, including link transmission capacity and link load, can be obtained. Based on the link status information obtained at the central node, link weights are obtained using the DDPG algorithm and used for updating the routing table. Each node needs to maintain a routing table containing routing information from that node to all other nodes. Dijkstra's algorithm is used to calculate the routing path from the current node to other nodes in the network. During the calculation process, the link weights obtained from the DDPG algorithm are used to update the routing table. The calculation process is as follows:
[0053] (1) First, clear the contents of the local routing table;
[0054] (2) Generate an entry for a one-hop neighbor node in the routing table, mark the link weight to the one-hop neighbor node, and the destination and next-hop node in the routing table are both one-hop neighbor nodes.
[0055] (3) Look up the routing table, find the destination node D with the minimum link weight, find out if the node can reach other nodes, if it can, create a new entry in the routing table, set the destination node in the routing table as the current node, set the next hop node as node D, and update the weight metric.
[0056] (4) Repeat step (3) until all nodes have been traversed.
[0057] However, the above-mentioned DDPG-based routing path planning mechanism has the following problems:
[0058] (1) Each node must maintain a routing table, continuously update and retain the topology information of the entire network, and check whether the routing table has expired. Furthermore, each directly adjacent node needs to send topology control messages periodically, which will occupy some node space to store network topology information.
[0059] (2) The fixed-route Dijkstra algorithm (which pre-calculates a fixed route path obtained using the shortest path algorithm) is used to calculate the route path from the current node to other nodes in the network. During the calculation, the link weights obtained by the DDPG algorithm are used to update the routing table. This algorithm still relies on the fixed-route Dijkstra algorithm and cannot directly calculate the most suitable path for the service. In addition, each time the routing table is updated, the Dijkstra algorithm needs to be recalculated.
[0060] Based on this, to address the issues of each node in a communication network needing to maintain a routing table and the inability to meet load balancing requirements for routing path planning, this application provides a training method for a network routing path planning model, a training device for the network routing path planning model used to execute the training method, a network routing path planning method, a network routing path planning device used to execute the method, as well as physical devices and computer-readable storage media. From a load balancing perspective, a load balancing routing algorithm based on the Deep Deterministic Policy Gradient (DDPG) algorithm using reinforcement learning is proposed. It can fully consider link utilization and select paths for services based on the different idle levels of link resources, prioritizing load balancing and then considering the shortest path. This ensures that the links throughout the network are in a balanced state under multi-service conditions, preventing network congestion and improving network transmission capacity.
[0061] The following examples will provide a detailed description.
[0062] Based on this, embodiments of this application provide a method for training a network routing path planning model that can be implemented by a network routing path planning model training device, see [link to relevant documentation]. Figure 1 The training method for the network routing path planning model specifically includes the following:
[0063] Step 100: Obtain the link spectrum resource matrix and current service data corresponding to the network topology of the communication network.
[0064] It is understood that the communication network described can be applied to various types of communication networks, especially optical networks.
[0065] In one or more embodiments of this application, the network topology or network topology map is used as a distance matrix for training, and the link spectrum resource matrix is used to store the current idle spectrum resources of each link in the communication network, that is, the value of the current remaining bandwidth of each link.
[0066] Step 200: Iteratively train the preset DDPG model using the network topology, link spectrum resource matrix, and service data to obtain a network routing path planning model for planning load-balanced routing paths for services based on the current idle spectrum resources of each link in the communication network.
[0067] Specifically, the self-updating mechanism of reinforcement learning methods often leads to overestimation problems. Once overestimation occurs, the value network (Q-network) may consider certain actions to have high scores. Since reinforcement learning networks require iterative training, overestimated actions will receive even higher scores in the next update. This cycle repeats, resulting in severe overestimation in the value network. Consequently, the policy network's output is likely no longer the optimal path but rather some overestimated actions. To mitigate this problem as much as possible, the DDPG model introduces a new target value network for the value network and a new target policy network for the policy network. Using two value networks and two policy networks in a single parameter update avoids self-updating and thus alleviates the overestimation problem.
[0068] It is understood that the policy network in this application can also be called a deterministic policy network.
[0069] As described above, the network routing path planning model training method provided in this application, based on the automatic planning of routing paths in the communication network, eliminates the need for nodes in the communication network to maintain their own routing tables. This effectively reduces node resource occupancy and improves the reliability and effectiveness of model training. Simultaneously, it effectively enhances the load balancing of network routing path planning, fully considers link utilization, and selects paths for services based on the varying levels of link resource availability, prioritizing load balancing and then considering the shortest distance path. In multi-service scenarios, it can achieve a relatively balanced state of links throughout the communication network, effectively preventing network congestion and improving network transmission capacity.
[0070] To further improve the application effectiveness and reliability of the link spectrum resource matrix, and thus further enhance the training effectiveness of the network routing path planning model, a training method for the network routing path planning model provided in this application embodiment is described below. Figure 2 Step 100 in the training method of the network routing path planning model specifically includes the following:
[0071] Step 110: Obtain a network topology diagram of the communication network, wherein the network topology diagram contains each node in the communication network and the links between different nodes.
[0072] Specifically, obtain the network topology graph G(V,E) of the communication network, where V is the set of nodes in the communication network, and E is the set of edges between the nodes. Here, an edge refers to a communication link between different nodes, and the set of edges is the set of links formed by the links.
[0073] In one example, a typical physical network topology can be used as the network topology diagram for a communication network, such as the network topology diagram of the National Science Foundation Network (NSFNET).
[0074] Step 120: Construct an adjacency matrix for the network topology graph based on the current idle spectrum resources of each link in the communication network to obtain the link spectrum resource matrix of the communication network.
[0075] Specifically, based on obtaining different nodes and the communicable links between nodes, an adjacency matrix of the network topology is constructed according to the currently available free spectrum resources of these links, and this adjacency matrix is used as the link spectrum resource matrix B(V,E) of the communication network.
[0076] In one example, the contents of the network topology graph G(V,E) (i.e., the distance matrix) are as follows:
[0077]
[0078] The matrix above is the distance matrix G(V,E) of the NSFNET network, where INF indicates that there is no connection between nodes;
[0079] The initialization link spectrum resource matrix B(V,E) defined in this application can be represented as:
[0080]
[0081] In the example of the content of the link spectrum resource matrix B(V,E) above, the value represents the initial bandwidth resource situation, and INF indicates that there is no connection between the two nodes.
[0082] And, step 130: obtain the currently assigned service data for the communication network.
[0083] Furthermore, after step 100, in order to ensure that the spectrum resources of the links reach a load-balanced state, a reward R is calculated based on the spectrum resources of each link. The formula for calculating the reward R is as follows:
[0084] R = k1·(2000-S) 2 +k2(1000-D) 2
[0085] Where k1 represents the spectrum reward weight; k2 represents the distance reward weight; S represents the spectrum already used by the link; D represents the distance of the link; and the reward R is used to ensure that the link with the least spectrum usage and the shortest distance is selected.
[0086] Since both the deterministic policy network and the value network are fitted using neural networks, and both networks need to be initialized with parameters, the parameters for initializing the deterministic policy network and the value network are the policy gradient θ and the value network gradient ω, respectively.
[0087] After calculating the reward and initializing the gradient of the DDPG model as described above, proceed to step 200.
[0088] Based on this, in order to further improve the effectiveness and reliability of network routing path planning model training, in a training method for a network routing path planning model provided in this application embodiment, see [link to relevant documentation]. Figure 2 Step 200 in the training method of the network routing path planning model specifically includes the following:
[0089] Step 210: Using the network topology, link spectrum resource matrix, and service data, perform iterative training on a preset DDPG model until the model converges or reaches a preset number of iterations, to obtain a network routing path planning model for planning load-balanced routing paths for services based on the resource idleness of each link in the communication network. The iterative training step includes: inputting the network topology, link spectrum resource matrix, and service data as the current state into the policy network of the DDPG model, so that the policy network outputs the action corresponding to the current moment and the state at the next moment, and updates the policy network parameters based on the current policy gradient; then, the value network in the DDPG model scores the action corresponding to the current moment to obtain the q-value at the current moment, and calculates the q-value at the next moment based on the target policy network and target value network in the DDPG model; calculating the current value network gradient based on the current q-value, the next q-value, and the current reward, and updating the value network parameters based on the value network gradient; finally, updating the target policy network and the target value network in the DDPG model respectively using a weighted average based on the current policy network parameters and the value network parameters.
[0090] Specifically, the spectrum resource matrix B(V,E) of each link in the topology network and the currently unallocated service data W are used. s,d,b In a deterministic policy network where the state input is used, the policy network determines the action to be taken in the current state: a t =π(s) t θ), that is, the deterministic policy network provides the next link to be selected in the current state. The service data includes the service header node, tail node, and the bandwidth required by the service.
[0091] Among them, a ts represents the action taken by the agent at time t; t θ represents the state of the agent at time t; θ represents the policy gradient of the policy network, i.e., its neural network parameters.
[0092] The policy network parameters are updated based on the current policy gradient according to the following formula, i.e., the policy network is updated:
[0093]
[0094] The specific steps for updating the value network parameters are as follows:
[0095] In obtaining a t Then, the state s of the next moment can be obtained. t+1 And the reward r at this moment t Thus, a tuple can be observed: (s t ,a t ,r t ,s (t+1) ).
[0096] Where, r t The reward obtained by the agent at time t represents time; s represents the reward received by the agent at time t. t+1 This represents the state of the agent at time t+1 after taking the action at time t from the state at time t.
[0097] A value network is used to predict and score the action q at time t: q t =q(s t ,a t ;w); where w represents the network parameters of the value network;
[0098] A deterministic policy network is used to obtain the action at the next time step t+1: a t+1 =π(s) (t+1) ;θ), and use the value network to predict the score q at the next time step. t+1 =q(s t+1 ,a′ t+1 ;w);
[0099] At this point, by using the q value at time t and the q value at time t+1, we can obtain the error TD (differential error): δ t =q t -(r t +γ·q t+1 Where γ represents the discount factor, γ∈[0,1];
[0100] The loss function is calculated, and the parameters of the value network are updated accordingly. Where α represents the learning rate of the value network;
[0101] Furthermore, the goal of a deterministic policy network is to maximize the q-value, therefore the gradient calculation should be: Therefore, the gradient update formula is: θ←θ+β·g.
[0102] Where β represents the learning rate of the policy network.
[0103] To further improve the effectiveness and reliability of the policy network in extracting actions corresponding to states, in the training method of the network routing path planning model provided in this application embodiment, the policy network in the training method of the network routing path planning model includes: a fully connected neural network and a convolutional neural network;
[0104] The fully connected neural network and the convolutional neural network are respectively used to extract corresponding feature data from the network topology, the link spectrum resource matrix and the service data. The merged feature data formed by merging the feature data extracted by the fully connected neural network and the convolutional neural network is used as the state processing result data, so that the policy network outputs the action corresponding to the current time and the state of the next time according to the processing result data.
[0105] Specifically, in deep reinforcement learning, fully connected neural networks are commonly used. This embodiment employs a combination of fully connected neural networks and convolutional neural networks. Simply using a fully connected neural network to process the distance matrix and link spectrum resource matrix may not yield good results after training. Furthermore, using more complex neural networks would result in high computational complexity.
[0106] Convolutional neural networks have many advantages:
[0107] (1) Convolutional neural networks can extract feature information from data through convolution kernels, thereby reducing the parameter size in the network and enabling the network to have better feature extraction capabilities.
[0108] (2) Applicable to image processing;
[0109] (3) It can greatly reduce the amount of computation;
[0110] (4) It has the characteristic of reducing the computational scale.
[0111] In this embodiment, step 200 inputs two matrices: a distance matrix (i.e., a service matrix) and a link spectrum resource matrix. In this embodiment, these two matrices are treated as images, and convolution processing is used to extract more features. At the same time, a fully connected neural network is used to process the two matrices to extract features. In this embodiment, these features are merged and finally used as the state processing result, which is then input into a deterministic policy network to obtain an action, and input into a value network to obtain a score.
[0112] In other words, a deterministic policy network can be composed of a fully connected network and a convolutional neural network, which is quite different from a typical fully connected network. The initial matrix is input into both the convolutional neural network and the fully connected network. The outputs of both networks are connected to a fully connected network, and the output of the fully connected network is an Action. This entire network constitutes a deterministic policy network.
[0113] After adding a convolutional neural network, (1) the network's ability to extract features is more powerful, and more accurate information can be extracted from the state; (2) the fully connected network design does not need to be too complicated, thereby reducing the complexity of the network to a certain extent.
[0114] To further improve the effectiveness and reliability of network routing path planning model training, a training method for a network routing path planning model provided in this application embodiment is described below. Figure 2 The training method for the network routing path planning model further includes the following content between steps 100 and 200:
[0115] Step 010: If it is known that the current idle spectrum resources of each link in the communication network have changed, then update the link spectrum resource matrix according to the corresponding change data.
[0116] In other words, B(V,E) will be updated in real time according to the link load, so as to effectively improve the effectiveness and reliability of training the DDPG model using the link spectrum resource matrix.
[0117] In other words, this application proposes a load balancing routing algorithm based on the Deep Deterministic Policy Gradient (DDPG) algorithm using reinforcement learning, from the perspective of load balancing. This algorithm fully considers link utilization and selects paths for services based on the varying levels of idle link resources, prioritizing load balancing and then considering the shortest path. This ensures that the entire network remains in a balanced state under multi-service conditions, preventing network congestion and improving network transmission capacity.
[0118] To further illustrate the embodiments of the above-described network routing path planning model training method, this application also provides a specific application example of the network routing path planning model training method, see [link to relevant documentation]. Figure 3 The specific application examples of the training method for the network routing path planning model include the following:
[0119] (1) Assign the spectrum resource matrix B(V,E) of each link in the topology network and the current service matrix W to be allocated. s,d,b In a deterministic policy network that serves as state input, the deterministic policy network provides the next link that should be chosen for the current state: a = π(s; θ); where a represents the action and s represents the current state.
[0120] (2) Update the policy network according to the deterministic policy gradient:
[0121] (3) Simultaneously, the state and the next link (action) given by the deterministic policy network are input into the value network to obtain the q value at time t: q t =q(s,a;w);
[0122] (4) Using the newly introduced target policy network π(s; θ) - The value of q at the next time step is calculated using the target value network q(s,a;w).
[0123] (5) Calculate the gradient TD Error (time difference error) of the value network: δ t =q t -(r t +γ·q t+1 );
[0124] (6) Update the value network parameters using the value network gradient:
[0125] (7) Update the target policy network π(s; θ) - The target value network q(s,a;w) is updated using a weighted average: w - ←τ·w+(1-τ)·w - ,θ - ←τ·θ+(1-τ)·θ - ;
[0126] (8) Return to step (1) until the task is completed.
[0127] In other words, in this application example, the policy network is given a state, and the policy network receives an action; at the same time, based on the action, it can obtain the state at the next moment and the reward that should be obtained at this moment; the value network evaluates the value of the action at this moment and the value at the next moment; the policy network updates its own network based on the given value; and then the value network updates itself based on its own judgment, and so on.
[0128] Based on the above-described training method for the network routing path planning model, this application also provides an embodiment of a network routing path planning method, see [link to embodiment]. Figure 4 The network routing path planning method specifically includes the following:
[0129] Step 300: Obtain the current idle spectrum resources for each link in the communication network, as well as the current node, termination node, and frequency slot resources corresponding to the target service;
[0130] Step 400: Input the idle spectrum resources and the current node, termination node and frequency slot resources corresponding to the target service into the network routing path planning model, so that the network routing path planning model outputs the load balancing routing path of the target service. The network routing path planning model is pre-trained by the network routing path planning model training method.
[0131] In step 400, the idle spectrum resources, the current node, the termination node, and the frequency slot resources of the target service are input into the network routing path planning model, so that the policy network in the network routing path planning model sequentially outputs the link planning data of each node between the current node and the termination node to form the load-balanced routing path of the target service.
[0132] As described above, the network routing path planning method provided in this application, based on the automated planning of routing paths in a communication network, eliminates the need for nodes in the communication network to maintain their own routing tables. This effectively reduces node resource occupancy and improves the load balancing of network routing path planning. It fully considers link utilization and selects paths for services based on the varying levels of link resource availability, prioritizing load balancing and then considering the shortest distance path. In multi-service scenarios, it can achieve a relatively balanced state of links throughout the communication network, effectively preventing network congestion and improving network transmission capacity.
[0133] To further illustrate the embodiments of the above-described network routing path planning method, this application also provides a specific application example of the network routing path planning method, which includes the following:
[0134] (1) After the DDPG model training is completed, input the current network status and the current node, termination node and required frequency slot resources of the service;
[0135] (2) The link from the current node to the next node is given by the deterministic policy network;
[0136] (3) Update the current node to the reached node;
[0137] (4) Repeat step (2) until the termination node is reached.
[0138] Once the network is trained, it can ensure that the links of the entire network are in a balanced state under multi-service conditions.
[0139] After the DDPG network training is completed, by inputting the spectrum resources of each link, the current node and termination node of the current service, and the required frequency slot resources, the routing path of the current service that satisfies load balancing can be calculated. In the case of multiple services, it can ensure that the links of the entire network are in a balanced state. This algorithm can be used to optimize the transmission of data on network links to ensure the effective utilization of network resources and the maximization of performance.
[0140] In other words, the proposed DDPG-based deep learning-based network routing path planning method can directly calculate service routing results that satisfy link resource balancing, thus alleviating network congestion to some extent. Furthermore, it eliminates the need for each node to maintain and update its global network state routing table, and avoids the need to use Dijkstra's algorithm to calculate routes. Compared to the shortest path algorithm Dijkstra and ant colony optimization, this algorithm effectively achieves load balancing, resulting in more even bandwidth utilization across links and significantly improving network performance.
[0141] From a software perspective, this application also provides a training apparatus for all or part of the network routing path planning model in the training method for executing the network routing path planning model, see [link to relevant documentation]. Figure 5 The training device for the network routing path planning model specifically includes the following components:
[0142] The matrix acquisition module 10 is used to acquire the link spectrum resource matrix corresponding to the network topology of the communication network and the current service data.
[0143] The model training module 20 is used to iteratively train a preset DDPG model using the network topology, link spectrum resource matrix and service data, so as to train a network routing path planning model for planning load balancing routing paths for services based on the current idle spectrum resources of each link in the communication network.
[0144] The embodiments of the network routing path planning model training device provided in this application can be used to execute the processing flow of the embodiments of the network routing path planning model training method in the above embodiments. Its functions will not be repeated here, but can be referred to the detailed description of the embodiments of the network routing path planning model training method in the above embodiments.
[0145] The training device for the network routing path planning model can perform the training portion of the model either on a server or on a client device. The choice depends on the processing power of the client device and the limitations of the user scenario. This application does not impose any limitations in this regard. If all operations are performed on the client device, the client device may further include a processor for the specific processing of the network routing path planning model training.
[0146] The aforementioned client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission. The server may include a server on the task scheduling center side; in other implementation scenarios, it may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, a server cluster consisting of multiple servers, or a distributed server structure.
[0147] The server and the client device can communicate using any suitable network protocol, including those not yet developed as of the date of this application. Such network protocols may include, for example, TCP / IP, UDP / IP, HTTP, HTTPS, etc. Furthermore, such network protocols may also include RPC (Remote Procedure Call Protocol) and REST (Representational State Transfer Protocol) protocols used on top of the aforementioned protocols.
[0148] As described above, the training device for the network routing path planning model provided in this application, based on the automatic planning of routing paths in the communication network, eliminates the need for nodes in the communication network to maintain their own routing tables. This effectively reduces node resource occupancy and improves the reliability and effectiveness of model training. Simultaneously, it effectively enhances the load balancing of network routing path planning, fully considers link utilization, and selects paths for services based on the varying levels of link resource availability, prioritizing load balancing and then considering the shortest distance path. In multi-service scenarios, it can achieve a relatively balanced state of links throughout the communication network, effectively preventing network congestion and improving network transmission capacity.
[0149] From a software perspective, this application also provides a network routing path planning apparatus for performing all or part of the network routing path planning method, see [link to relevant documentation]. Figure 6 The network routing path planning device specifically includes the following components:
[0150] The data acquisition module 30 is used to acquire the current idle spectrum resources of each link in the communication network, as well as the current node, termination node and frequency slot resources corresponding to the target service;
[0151] The path planning module 40 is used to input the idle spectrum resources and the current node, termination node, and frequency slot resources corresponding to the target service into the network routing path planning model, so that the network routing path planning model outputs the load-balanced routing path for the target service. The network routing path planning model is pre-trained using a network routing path planning model training method.
[0152] The embodiments of the network routing path planning device provided in this application can be used to execute the processing flow of the network routing path planning method embodiments described above. Its functions will not be repeated here, but can be referred to the detailed description of the network routing path planning method embodiments described above.
[0153] The network routing path planning component of the aforementioned device can be executed on a server or on a client device. The choice depends on the processing power of the client device and the limitations of the user's usage scenario. This application does not impose any limitations in this regard. If all operations are performed on the client device, the client device may further include a processor for the specific processing of network routing path planning.
[0154] As described above, the network routing path planning device provided in this application, based on the automatic planning of routing paths in a communication network, eliminates the need for nodes in the communication network to maintain their own routing tables. This effectively reduces node resource occupancy and improves the load balancing of network routing path planning. It fully considers link utilization and can select paths for services based on the varying levels of link resource availability, prioritizing load balancing and then considering the shortest distance path. In multi-service scenarios, it can achieve a relatively balanced state of links throughout the communication network, effectively preventing network congestion and improving network transmission capacity.
[0155] This application also provides an electronic device, which may include a processor, a memory, a receiver, and a transmitter. The processor is used to execute the training of the network routing path planning model or the network routing path planning method mentioned in the above embodiments. The processor and the memory can be connected via a bus or other means, taking a bus connection as an example. The receiver can be connected to the processor and the memory via wired or wireless means.
[0156] The processor can be a central processing unit (CPU). The processor can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above types of chips.
[0157] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the network routing path planning model training or network routing path planning method in the embodiments of this application. The processor executes various functional applications and data processing by running the non-transitory software programs, instructions, and modules stored in the memory, thereby implementing the network routing path planning model training or network routing path planning method in the above method embodiments.
[0158] The memory may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the processor, etc. Furthermore, the memory may include high-speed random access memory and non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include memory remotely located relative to the processor, which can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0159] The one or more modules are stored in the memory, and when executed by the processor, they perform the training of the network routing path planning model or the network routing path planning method in the embodiment.
[0160] In some embodiments of this application, the user equipment may include a processor, a memory, and a transceiver unit. The transceiver unit may include a receiver and a transmitter. The processor, memory, receiver, and transmitter may be connected via a bus system. The memory is used to store computer instructions, and the processor is used to execute the computer instructions stored in the memory to control the transceiver unit to send and receive signals.
[0161] As one implementation method, the functions of the receiver and transmitter in this application can be implemented by transceiver circuits or dedicated transceiver chips, and the processor can be implemented by dedicated processing chips, processing circuits or general-purpose chips.
[0162] As another implementation approach, the server provided in this application embodiment can be implemented using a general-purpose computer. That is, the program code implementing the processor, receiver, and transmitter functions is stored in memory, and the general-purpose processor implements the processor, receiver, and transmitter functions by executing the code in memory.
[0163] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the aforementioned network routing path planning model training or network routing path planning method. The computer-readable storage medium can be a tangible storage medium, such as random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, floppy disks, hard disks, removable storage disks, CD-ROMs, or any other form of storage medium known in the art.
[0164] Those skilled in the art will understand that the exemplary components, systems, and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software, or a combination of both. Whether implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application. When implemented in hardware, it can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. The programs or code segments can be stored in a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave.
[0165] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0166] In this application, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with or in place of features of other embodiments.
[0167] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to the embodiments of this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A training method for a network routing path planning model, characterized in that, include: Obtain the link spectrum resource matrix corresponding to the network topology of the communication network and the current service data; The network topology, link spectrum resource matrix, and service data are used to iteratively train a pre-defined DDPG model to obtain a network routing path planning model for planning load-balanced routing paths for services based on the current idle spectrum resources of each link in the communication network. The policy network in the DDPG model includes a fully connected neural network and a convolutional neural network. The fully connected neural network and the convolutional neural network are respectively used to extract corresponding feature data from the network topology, link spectrum resource matrix, and service data. The merged feature data formed by combining the feature data extracted by the fully connected neural network and the convolutional neural network is used as the state processing result data, enabling the policy network to output the action corresponding to the current time and the state at the next time based on this processing result data. The formula for calculating the reward R of the DDPG model is as follows: Represents the spectrum reward weight; S represents the distance reward weight; S represents the spectrum already used by the link; D represents the distance of the link; If it is known that the current idle spectrum resources of each link in the communication network have changed, the link spectrum resource matrix is updated according to the corresponding change data; The acquisition of the link spectrum resource matrix corresponding to the network topology of the communication network and the current service data includes: Obtain a network topology diagram of the communication network, wherein the network topology diagram includes each node in the communication network and the links between different nodes; Based on the current idle spectrum resources of each link in the communication network, an adjacency matrix is constructed on the network topology graph to obtain the link spectrum resource matrix of the communication network. In addition, it acquires the currently unallocated service data for the communication network.
2. The training method for the network routing path planning model according to claim 1, characterized in that, The process of training a pre-defined DDPG model using the network topology, link spectrum resource matrix, and service data to obtain a network routing path planning model for planning load-balanced routing paths for services based on the resource idle levels of each link in the communication network includes: Using the network topology, link spectrum resource matrix, and service data, an iterative training step is performed on the preset DDPG model until the model converges or reaches the preset number of iterations, so as to obtain a network routing path planning model for planning load-balanced routing paths for services based on the resource idleness of each link in the communication network. The iterative training steps include: The network topology, link spectrum resource matrix, and service data are input as the current state into the policy network of the DDPG model, so that the policy network outputs the action corresponding to the current moment and the state of the next moment, and updates the policy network parameters based on the current policy gradient. Then, the value network in the DDPG model scores the action corresponding to the current moment to obtain the q-value of the current moment. Then, the q-value of the next moment is calculated according to the target policy network and target value network in the DDPG model. The current value network gradient is calculated based on the q-value of the current moment, the q-value of the next moment, and the reward of the current moment, and the value network parameters are updated based on the value network gradient. Finally, the target policy network and the target value network in the DDPG model are updated respectively based on the current policy network parameters and the value network parameters in a weighted average manner.
3. A network routing path planning method, characterized in that, include: Acquire the current idle spectrum resources for each link in the communication network, as well as the current node, termination node, and frequency slot resources corresponding to the target service; The idle spectrum resources and the current node, termination node and frequency slot resources corresponding to the target service are input into the network routing path planning model so that the network routing path planning model outputs the load-balanced routing path of the target service. The network routing path planning model is pre-trained by the training method of the network routing path planning model according to claim 1 or 2.
4. A training device for a network routing path planning model, characterized in that, include: The matrix acquisition module is used to acquire the link spectrum resource matrix corresponding to the network topology of the communication network and the current service data. The model training module is used to iteratively train a preset DDPG model using the network topology, link spectrum resource matrix, and service data to train a network routing path planning model for planning load-balanced routing paths for services based on the current idle spectrum resources of each link in the communication network. The policy network in the DDPG model includes a fully connected neural network and a convolutional neural network. The fully connected neural network and the convolutional neural network are respectively used to extract corresponding feature data from the network topology, link spectrum resource matrix, and service data. The merged feature data formed by combining the feature data extracted by the fully connected neural network and the convolutional neural network is used as the state processing result data, so that the policy network outputs the action corresponding to the current time and the state at the next time according to the processing result data. The formula for calculating the reward R of the DDPG model is as follows: Represents the spectrum reward weight; S represents the distance reward weight; S represents the spectrum already used by the link; D represents the distance of the link; If it is known that the current idle spectrum resources of each link in the communication network have changed, the link spectrum resource matrix is updated according to the corresponding change data; The acquisition of the link spectrum resource matrix corresponding to the network topology of the communication network and the current service data includes: Obtain a network topology diagram of the communication network, wherein the network topology diagram includes each node in the communication network and the links between different nodes; Based on the current idle spectrum resources of each link in the communication network, an adjacency matrix is constructed on the network topology graph to obtain the link spectrum resource matrix of the communication network. In addition, it acquires the currently unallocated service data for the communication network.
5. A network routing path planning device, characterized in that, include: The data acquisition module is used to acquire the current idle spectrum resources of each link in the communication network, as well as the current node, termination node, and frequency slot resources corresponding to the target service. The path planning module is used to input the idle spectrum resources and the current node, termination node and frequency slot resources corresponding to the target service into the network routing path planning model, so that the network routing path planning model outputs the load-balanced routing path of the target service. The network routing path planning model is pre-trained by the training method of the network routing path planning model according to claim 1 or 2.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the training method for the network routing path planning model as described in claim 1 or 2, and / or implements the network routing path planning method as described in claim 3.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the training method for the network routing path planning model as described in claim 1 or 2, and / or implements the network routing path planning method as described in claim 3.
Citation Information
Patent Citations
Routing and spectrum allocation method and device, storage medium and electronic equipment
CN113438173A
Routing and resource allocation method and device in elastic optical network
CN115225989A
Model training method and device, path tracking method and device and electronic equipment
CN116777954A
