Incremental deployment method for segmented routing networks based on graph neural network and reinforcement learning

Through the graph neural network and multi-agent reinforcement learning method, it solves the problem of poor robustness of the existing incremental deployment SRv6 network in dynamic environments, achieves network load balancing and reduces the maximum link utilization, and improves the deployment plan. robustness and efficiency.

CN116170327BActive Publication Date: 2024-09-06XIDIAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310183713.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-01
Publication Date
2024-09-06
Estimated Expiration
2043-03-01

AI Technical Summary

Technical Problem

The existing incremental deployment method of SRv6 network has poor robustness when dealing with dynamic environments and cannot effectively balance the load of different switches, routers and links in the network, resulting in high maximum link utilization and a deployment plan that is not globally optimal.

Method used

The graph neural network and multi-agent reinforcement learning methods are used to transfer link status to each other through the message passing graph neural network. Multi-agent reinforcement learning is used to determine the traffic distribution weight, and the network is iteratively updated following the principle of minimizing the maximum link utilization. Link weight and SR node collection realize distributed processing and load balancing.

Benefits of technology

It significantly reduces the maximum link utilization of the network, improves the robustness and generalization of the deployment solution, reduces training time, avoids economic and technical difficulties, and achieves sub-minute deployment and more efficient load balancing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116170327B
    Figure CN116170327B
Patent Text Reader

Abstract

The present invention discloses a method for incremental deployment of a segmented routing network based on a graph neural network and reinforcement learning, which mainly solves the problem that the maximum link utilization of the existing network is too high and the network link load is unbalanced. Its implementation scheme is: construct an IPv6 network topology, set the link characteristics of the network topology; calculate the representative traffic matrix by collecting the historical traffic demand matrix; based on the IPv6 network topology, link characteristics and representative traffic matrix, use the graph neural network and multi-agent reinforcement learning algorithm to iteratively update the network link weight matrix and the segmented routing node set; use the final network link weight matrix and segmented routing node set obtained after the update to deploy the IPv6 network topology, and obtain an SRv6 network with incrementally deployed SR nodes. The present invention reduces the maximum link utilization, balances the link load, improves the robustness and generalization of network deployment, and can be used for forwarding of Internet Protocol version 6.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of communication technology, and in particular relates to a method for incremental deployment of segment routing, which can be used for forwarding of Internet Protocol version 6 IPv6. Background Art

[0002] With the rapid development of the Internet, network traffic has exploded, and network traffic is easily unevenly distributed on links, resulting in network congestion and reduced network service quality. However, as the most widely used Internet Protocol version IPv4, the address segment used is 32B, with only 4,294,967,296 addresses in the address space, and many addresses are reserved for special purposes. Therefore, as addresses are continuously allocated to end users, the problem of IPv4 address exhaustion is also arising. To solve this problem, the latest version of the Internet Protocol, IPv6, is gradually being applied to Internet traffic. In addition to increasing the number of addresses, the expansion and upgrade of the data packet format of IPv6 can minimize the message headers processed by routers.

[0003] Segment routing (SR) is a newly emerged source routing mechanism that can be applied to IPv6 networks by simply extending the existing internal gateway protocol. SRv6, an IPv6 network that deploys SR, can achieve network programmability through flexible IPv6 extension headers. SRv6 networks specify the traffic forwarding path in the IPv6 address extension header, and complete hop-by-hop forwarding by continuously updating the destination address through the nodes in the path to support low latency, multicast, fast switching, and high reliability concurrency. It has the advantages of being simple, easy to deploy, and scalable. However, considering the economic and technical issues caused by large-scale equipment replacement or software upgrades, it is not feasible to migrate directly from a pure IPv6 network to a full SRv6 network. Therefore, it is necessary to incrementally deploy SR nodes on the IPv6 network to achieve a smooth transition.

[0004] Existing research on incremental deployment of SRv6 mainly uses traffic engineering TE technology to make network traffic exist in the physical network in an optimal way. Zeyu Luan et al. proposed a SmartTE solution (Z. Luan, Q. Li and Y. Jiang, "Poster:," 2021 IFIP Networking Conference (IFIP Networking), Espoo and Helsinki, Finland, 2021, pp. 1-3,

[0005] doi:10.23919 / IFIPNetworking52078.2021.9472815.) It uses two centrality criteria in graph theory to decide which SR nodes should be incrementally deployed at a given upgrade ratio, and uses deep reinforcement learning (DRL) to infer the optimal traffic split ratio of multiple predefined paths between source-destination pairs to achieve the maximum utilization of minimized links. However, since traditional centralized single-agent reinforcement learning does not have good generalization properties and poor robustness, it cannot handle topologies of various sizes and structures in a distributed manner. Therefore, this method cannot adapt to dynamically unstable environments by only changing the strategy of the agent itself.

[0006] Bangbang Ren et al. (B. Ren, D. Guo, Y. Yuan, G. Tang, W. Wang and X. Fu, "Optimal Deployment of SRv6 to Enable Network Interconnection Service," in IEEE / ACM Transactions on Networking, vol. 30, no. 1, pp. 120-133, Feb. 2022, doi: 10.1109 / TNET.2021.3105959.) formulated the problem of studying the incremental deployment of SRv6 to provide more balanced interconnection services from the perspective of traffic engineering as an SRID problem with integer programming. After converting the SRID problem into a graph model, two greedy methods, GSI and GLI, were proposed to reduce the maximum link utilization, considering short-term and long-term effects. However, due to its own limitations, the greedy algorithm usually does not traverse all the data, and training requires a lot of time. Although it can reduce the maximum link utilization to a certain extent, it is not suitable for finding the global optimal SRv6 deployment solution, and it cannot balance the load between different switches, routers and links in the network well. Summary of the invention

[0007] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and propose a segmented routing network incremental deployment method based on graph neural network and reinforcement learning to reduce the maximum link utilization of the network, thereby better balancing the load between different switches, routers and links in the network.

[0008] The technical idea of ​​the present invention is to use the message passing graph neural network to make the status of each link mutually transmitted in the network, and use multi-agent reinforcement learning to determine the traffic allocation weight for the link, so that the weight allocation scheme follows the principle of minimizing the maximum link utilization of the network. At the same time, the SR node and traffic split ratio are determined according to the network link weight. The specific implementation steps include the following:

[0009] (1) constructing an Internet Protocol version 6 (IPv6) network topology G as a unidirectional connected graph G = (V, E), and setting link characteristics of the network topology, where V represents a node set and E represents a unidirectional link set;

[0010] (2) Obtain n historical traffic demand matrices and calculate the representative traffic matrix H using the Euclidean distance algorithm;

[0011] (3) Initialize the global strategy π θ And the state value function Where θ is the policy parameter, is the state parameter, set M episodes, and the initial episode m=0;

[0012] (4) Based on the IPv6 network topology G, the representative traffic matrix H, the link characteristics of the IPv6 network topology G, and the global strategy π θ And the state value function Using the graph neural network GNN and multi-agent reinforcement learning MARL algorithm, the network link weight matrix mt and the segment routing node set SRS are iteratively updated:

[0013] (4a) Initialize the experience replay pool, set the episode length to T, and the initial iteration number t = 0;

[0014] (4b) According to the link characteristics of the current IPv6 network topology G and the representative traffic matrix H, set the initial link hidden state The initial link hidden state is obtained by using the message passing graph neural network MPNN Perform message passing to obtain the final link hidden state of each agent Where e represents the link and k represents the number of message transmissions;

[0015] (4c) Based on the final hidden state of each agent Use the local readout function of each agent's part to obtain the feasible actions of each agent;

[0016] (4d) Propagate the actions of each agent in the communication layer and construct the current global strategy π for the state of the IPv6 network topology G in the communication layer. θ , determine the current link weight matrix mt of the network;

[0017] (4e) According to the current network link weight matrix mt and the representative traffic matrix H, determine the current SR node set SRS of the IPv6 network topology G, all available paths AP of the traffic, the traffic split ratio FR and the maximum link utilization U max ;

[0018] (4f) According to the current maximum link utilization Umax and the global strategy π θ , calculate the agent's reward value r t , cumulative reward G t 、Global strategy π θ Status value and transfer nuclear P t , and store it in the experience replay pool;

[0019] (4g) Let t = t + 1, and determine whether the current number of iterations reaches the set episode length T:

[0020] If yes, execute (4h),

[0021] Otherwise, return to (4b);

[0022] (4h) Based on the parameters in the experience playback pool, use the mini-batch stochastic gradient descent method on the T group training set to maximize the global PPO target value Update global policy π θ And the state value function The policy parameters θ and state parameters

[0023] (4i) Let m=m+1, and determine whether all episodes M are currently completed:

[0024] If yes, then output the final network link weight matrix mt and segment routing node set SRS and execute (5); otherwise, return to (4a);

[0025] (5) Based on the final network link weight matrix mt and the segment routing node set SRS, the IPv6 network topology G is deployed to obtain an SRv6 network with incrementally deployed SR nodes.

[0026] Compared with the prior art, this experimental invention has the following advantages:

[0027] First, since the present invention utilizes the message passing function of the graph neural network GNN to integrate the information between various intelligent agents, it can enable network devices to share computing without the need for any centralized entity, which not only saves economic costs but also makes sub-minute deployment and training possible.

[0028] Second, the present invention combines GNN and multi-agent reinforcement learning MARL to process various network states in a distributed manner, extracts network status information in a graphical manner through GNN, and uses the MARL model to determine the link weight of each link and select SR node deployment, ultimately balancing the load between different switches, routers and links in the network, which can significantly reduce the execution time of training.

[0029] Third, since the present invention aims to seek the optimal global traffic engineering TE, it uses GNN and MARL algorithms to incrementally deploy SR nodes in the IPv6 network and determine the network link weight matrix, which not only avoids the economic and technical difficulties caused by the full deployment of SR nodes, but also makes the deployment scheme more robust and generalizable. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The accompanying drawings are used to provide an understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation to the technical solution of the present invention.

[0031] Figure 1 It is the overall flow chart of the implementation of the present invention;

[0032] Figure 2 is a network topology diagram of this embodiment;

[0033] Figure 3 is a network topology diagram with SR nodes marked in this embodiment;

[0034] Figure 4 It is an iterative flow chart of the network link weight matrix and segmented routing node set based on graph neural network and multi-agent reinforcement learning;

[0035] Figure 5 This is a sub-flowchart of the message passing process of the message passing graph neural network (MPNN). DETAILED DESCRIPTION

[0036] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.

[0037] Reference Figure 1 , the implementation steps of this example are as follows:

[0038] Step 1: construct the network topology of the IPv6 network as a unidirectional connectivity graph.

[0039] like Figure 2 As shown, the specific implementation of this step is as follows:

[0040] 1.1) Set up 6 IPv6 nodes, namely A, B, C, D, E, F, and G, and establish connections between the nodes, where the link AB direction is from node A to node B, the link AC direction is from node A to node C, the link BD direction is from node B to node D, the link BE direction is from node B to node E, the link CD direction is from node C to node D, the link DF direction is from node D to node F, the link EG direction is from node E to node G, and the link FG direction is from node F to node G;

[0041] 1.2) Set the network link configuration (w e ,c), where w e represents the initial weight of link e, c represents the capacity of the link. In this example, the configuration of link AB is (1, 7), the configuration of link AC is (2, 4), the configuration of link BD is (1, 3), the configuration of link BE is (1, 4), the configuration of link CD is (3, 4), the configuration of link DF is (2, 7), the configuration of link EG is (1, 7), and the configuration of link FG is (1, 7);

[0042] 1.3) Using the links between the above 6 IPv6 nodes and the network link configuration, the network topology formed is the unidirectional connected graph G = (V, E) of the IPv6 network, where V represents the node set and E represents the unidirectional link set.

[0043] Step 2: Collect historical network traffic demands and pre-process network traffic.

[0044] 2.1) Collect m historical traffic demand matrices H' in the past period of time;

[0045] 2.2) Calculate the representative traffic matrix H using the Euclidean distance algorithm based on the historical traffic demand matrix:

[0046]

[0047] Among them TM i refers to the i-th historical flow demand matrix, and n refers to the number of historical flow demand matrices;

[0048] In this example, the representative traffic starts from the source node A and goes to the destination node G, and the traffic size is 2.

[0049] Step 3: Use the graph neural network GNN and multi-agent reinforcement learning MARL algorithm to iteratively update the network link weight matrix mt and the segment routing node set SRS.

[0050] Reference Figure 4 , the implementation process of this step is as follows:

[0051] 3.1) Initialize the global strategy π θ And the state value function Where θ is the policy parameter, As state parameters, set M episodes, the initial episode m = 0, set the episode length to T, and the initial number of iterations t = 0;

[0052] 3.2) Initialize the experience replay pool, which stores the experience generated by the agent in each episode, and each episode defines a trajectory Among them, s tis the state when the number of iterations is t, a t is the action selected by the agent when the iteration number is t, r t is the reward when the number of iterations is t, p t is the transfer core when the number of iterations is t, V t is the state value when the number of iterations is t, s t+1 is the state when the number of iterations is t+1;

[0053] 3.3) Each agent controls a link and constructs the initial link hidden state

[0054] 3.3.1) Calculate the link utilization based on the link traffic demand and link weight in the representative traffic matrix H

[0055]

[0056] in, is the traffic demand of link e when the number of iterations is t, is the link weight of link e when the number of iterations is t;

[0057] 3.3.2) The agent will link the weights and link utilization Construct a fixed-size vector as input features The first two components are input features, and the rest are filled with zeros. This vector is the initial link hidden state of the agent;

[0058] 3.4) Based on the initial link hidden state Use the existing message passing graph neural network MPNN to pass messages and obtain the final link hidden state

[0059] Reference Figure 5 , the implementation of this step is as follows:

[0060] 3.4.1) Assume that the initial number of message transmissions k = 0, and the total number of message transmissions is Q;

[0061] 3.4.2) Each agent shares its hidden state with its neighbor B(e) through messages and processes its internal state by applying the message function m() and the current hidden states of all links in the neighborhood And the aggregate information is obtained by combining the processed messages through the aggregation function a()

[0062]

[0063] in, is the hidden state of link e when the number of message transmissions is k, is the current hidden state of the agent's neighborhood link i when the number of message transmissions is k, m() is the message function, i is the agent's neighborhood link, B(e) is the set of link e's neighborhood, and a() is the aggregation function;

[0064] 3.4.3) Based on the new aggregate information of each agent And the hidden state of the link of the agent when the number of message transmissions is k Each agent uses the update function u() to get the new hidden state of the agent.

[0065]

[0066] in, is the link hidden state of link e when the number of message transmissions is k, and u() is the update function;

[0067] 3.4.4) Let k = k + 1, and determine whether the Q message transmission process is completed:

[0068] If yes, go to 3.5);

[0069] Otherwise, return to 3.4.2);

[0070] 3.5) Based on the final hidden state of a single agent Use the local readout function to obtain the unnormalized logit probability of each possible action e (a):

[0071]

[0072] Among them, logit e refers to the action probability of link e, a is the action selected by the agent, and r() is the local readout function;

[0073] 3.6) Propagate the actions of each agent in the communication layer and construct the current global strategy π for the state of the IPv6 network topology G in the communication layer θ , determine the current link weight matrix mt of the network:

[0074] 3.6.1) In the communication layer, each agent receives the action probability logit of other agents e (a), where a∈A e , e∈E,logit e refers to the action probability of link e, a is the action selected by the agent, and A eis the action space, e is the link in the IPv6 network topology G, and E is the link set in the IPv6 network topology G;

[0075] 3.6.2) Through each agent's action probability logit e (a) Get the action probability set logit_set and calculate the global strategy π θ :

[0076] π θ ←CategoricalDist(logit_set)

[0077] Among them, CategoricalDist() is the classification distribution function;

[0078] 3.6.3) According to the global strategy π θ , by sharing the same action probability logit_set, all agents start from π θ The same action a is sampled in , so as to select the agent that needs to increase one unit weight, and increase the link weight corresponding to the agent by one unit, and obtain the current link weight matrix mt of the network;

[0079] 3.7) According to the current network link weight matrix mt, determine the current SR node set SRS of the IPv6 network topology G:

[0080] 3.7.1) Calculate the degree DEG(v) of the node in the IPv6 network topology G:

[0081] DEG(v)=|{e|es(e)=v∨et(e)=v}|

[0082] Among them, es(e) and et(e) represent the head and tail of link e respectively;

[0083] This example is based on Figure 2 The network topology diagram, the calculated node degree results are shown in Table 1:

[0084] Table 1. Degree of each node

[0085] node A B C D E F G DEG 2 3 2 3 2 2 2

[0086] 3.7.2) Calculate the centrality of the node BTW(v):

[0087]

[0088] Among them, σ st (v) represents the number of shortest paths from source node s to destination node t passing through node v;

[0089] This example is based on Figure 2The network topology diagram, the calculated node centrality results are shown in Table 2:

[0090] Table 2. Centrality of each node

[0091] node A B C D E F G BTW 0 0.33 0 0.33 0.167 0.167 0

[0092] 3.7.3) According to the current link weight, calculate the link MLL(v) with the most loading times:

[0093]

[0094] Where e is a link in the IPv6 network topology G, E is a set of links in the IPv6 network topology G, s(e) is the original node of link e, v represents a node in the IPv6 network topology G, and util(e) represents the utilization of link e when TM only routes through OSPF.

[0095] This example is based on Figure 2 The network topology diagram, the calculated link with the most loading times is shown in Table 3:

[0096] Table 3. Most loaded links

[0097] node A B C D E F G MLL 0.43 0.75 0 0 0.43 0 0

[0098] 3.7.4) According to the current network link weight matrix mt, the importance CEN(v) of each node in the IPv6 network topology G is calculated using a heuristic algorithm:

[0099] CEN(v)=c1×DEG(v)+c2×BTW(v)+c3×MLL(v)

[0100] Among them, c1, c2, c3 are three constants with different values;

[0101] In this example, the three constants c1, c2, and c3 are all set to 1, and the calculation results of the importance CEN(v) of each node are shown in Table 4:

[0102] Table 4. Node importance CEN

[0103] node A B C D E F G CEN 2.43 4.08 2 3.33 2.597 2.167 2

[0104] 3.7.5) According to the importance CEN(v) of each node in the IPv6 network topology G, select p nodes corresponding to the p largest CEE(v) to form the SR node set SRS;

[0105] In this example, two nodes are selected, namely node B and node D;

[0106] 3.7.6) Update nodes B and D to SR nodes. Figure 2 The IPv6 nodes B and D in are updated to SR nodes, such as Figure 3 As shown;

[0107] 3.8) According to the current network link weight matrix mt and the representative traffic matrix H, determine all available paths AP for the traffic:

[0108] 3.8.1) The paths of the IPv6 network topology G are divided into three types, where the first type is the shortest path from the source node to the SR node, the second type is the shortest path between any two SR nodes, and the third type is the shortest path from the SR node or the source node to the destination node;

[0109] 3.8.2) According to the three types of paths, all sub-paths required for each traffic demand are obtained, as shown in Table 5:

[0110] Table 5. All sub-paths required for traffic requirements

[0111]

[0112] 3.8.3) The complete path set of each traffic demand is obtained according to all sub-paths of each traffic demand through depth-first search, and then the duplicate sub-paths are removed through pruning and each path is limited to use at most 2 sub-paths of the second type. The remaining paths are all available path APs for the traffic, as shown in Table 6:

[0113] Table 6. All available paths for traffic

[0114] path P1 ABEG P2 ABDFG

[0115] 3.9) According to the current network link weight matrix mt and the representative traffic matrix H, determine the traffic split ratio FR and the maximum link utilization U of the IPv6 network topology G max :

[0116] 3.9.1) Set four constraints and construct a linear programming problem:

[0117] Constraint 1: Make the maximum link utilization U in the IPv6 network topology G max Minimum

[0118] Constraint 2: Each traffic demand is completely routed on its path, that is, the sum of the traffic of any flow on all available paths is greater than or equal to the size of the traffic demand. The formula is as follows:

[0119]

[0120] Among them, p is the available path, P l are all available paths for flow demand l, FR l(p) is the flow split ratio of flow demand l on path p;

[0121] Constraint three: The traffic carried by a link cannot exceed its capacity, that is, the total traffic passing through any link is less than or equal to the product of the capacity of the link and the maximum link utilization of the link. The formula is as follows:

[0122]

[0123] Among them, p is the available path, P l are all available paths for traffic demand l, l is a traffic demand, L is all traffic demands, S p is the set of subpaths used by path p, s is S p A subpath in ,FR l (p) is the flow split ratio of flow demand l on path p, is a binary variable indicating whether link e belongs to subpath s, and the size of the flow demand of t(l), U max is the maximum link utilization, Link e ij Capacity;

[0124] Constraint 4: The flow rate of any flow on any available path must be greater than or equal to 0. The formula is as follows:

[0125] 0≤FR l (p)≤1

[0126] Among them, FR l (p) is the flow split ratio of flow demand l on path p;

[0127] 3.9.2) Combine constraints 2 to 4 to obtain the range of the traffic split ratio FR. Within the range, find the maximum link utilization U max The flow split ratio FR corresponding to the minimum point;

[0128] 3.10) According to the current maximum link utilization U max , calculate the initial maximum link utilization U max The ratio of (s1) to the global maximum link utilization when the number of iterations is t is:

[0129]

[0130] Among them, U max (s t ) is the maximum link utilization when the number of iterations is t;

[0131] 3.11) According to the ratio a, calculate the reward value r when the number of iterations is t t :

[0132]

[0133] 3.12) According to the agent's reward value r t , calculate the cumulative reward G t :

[0134]

[0135] Among them, γ t is the discount factor when the number of iterations is t, γ t ∈(0,1],r t is the reward value r when the number of iterations is t t ;

[0136] 3.13) According to the global strategy π θ , calculate the global strategy π θ Status value and transfer nuclear P t :

[0137]

[0138] P t =π θ (a t |s t )

[0139] Among them, G t is the cumulative reward when the number of iterations is t, a t is the action of the agent when the number of iterations is t, s t is the state when the number of iterations is t.

[0140] 3.14) The state s when the number of iterations is t t , the action a chosen by the agent t , Reward t , transfer nuclear p t 、Status value V t And the state s when the iteration number is t+1 t+1 Stored in the experience replay pool;

[0141] 3.15) Let t = t + 1, and determine whether the current number of iterations reaches the set episode length T:

[0142] If yes, execute (3.16),

[0143] Otherwise, return to (3.3);

[0144] 3.16) Based on the parameters in the experience playback pool, use the mini-batch stochastic gradient descent method on the T group training set to maximize the global PPO target value Update global policy π θ And the state value function The policy parameters θ and state parameters

[0145] 3.16a) Calculate the strategy parameter π when the number of iterations is t θ The probability ratio r t (θ):

[0146]

[0147] Among them, a t is the action of the agent when the number of iterations is t, s t is the state when the number of iterations is t, π θ is the strategy parameter, are the strategy parameters before updating;

[0148] 3.16b) According to the probability ratio r t (θ), calculate the estimator of the advantage function when the number of iterations is t

[0149]

[0150] in, γ is the discount factor, λ is the adjustment factor, T is the episode length, t is the number of iterations, is the state value when the number of iterations is t;

[0151] 3.16c) Based on the above estimates and the probability ratio r t (θ), calculate the policy target term

[0152]

[0153] Among them, ξ is a hyperparameter, r t (θ)∈(1-ξ,1+ξ), clip() is the clipping function;

[0154] 3.16d) Randomly extract small batches of samples from the T group training set and use the stochastic gradient descent method to derive the state value function The loss function Minimize to get the minimum loss function Among them, V t targ is the state value when the number of iterations is t The predicted value of

[0155] 3.16e) According to the minimum loss function and policy target items Calculate the maximum global PPO objective

[0156]

[0157] Among them, c 1, c2 is two constants with different values, S represents entropy addition, is the minimum value of the loss function, π θ is the global strategy, s t is the state when the number of iterations is t;

[0158] 3.17) Let m=m+1, and determine whether all episodes M are currently completed:

[0159] If yes, then output the final network link weight matrix mt and segment routing node set SRS, and execute step 4.

[0160] Otherwise, return to step 3.1).

[0161] Step 4: Deploy SR nodes to obtain an incrementally deployed SRv6 network

[0162] According to the final network link weight matrix mt and the segment routing node set SRS, the IPv6 network topology G is deployed to obtain an SRv6 network with incrementally deployed SR nodes.

[0163] The above description is only a specific example of the present invention and does not constitute any limitation to the present invention. It is obvious that for professionals in this field, after understanding the content and principles of the present invention, they may make various modifications and changes in form and details without departing from the principles and structures of the present invention. However, these modifications and changes based on the ideas of the present invention are still within the scope of protection of the claims of the present invention.

Claims

1. A segmented routing network incremental deployment method based on graph neural network and reinforcement learning, characterized in that: The steps include: (1) constructing an Internet Protocol version 6 (IPv6) network topology G as a unidirectional connected graph G = (V, E), and setting link characteristics of the network topology, where V represents a node set and E represents a unidirectional link set; (2) Obtain n historical traffic demand matrices and calculate the representative traffic matrix H using the Euclidean distance algorithm; (3) Initialize the global strategy π θ And the state value function Where θ is the policy parameter, is the state parameter, set M episodes, and the initial episode m=0; (4) Based on the IPv6 network topology G, the representative traffic matrix H, the link characteristics of the IPv6 network topology G, and the global strategy π θ And the state value function Using the graph neural network GNN and multi-agent reinforcement learning MARL algorithm, the network link weight matrix mt and the segment routing node set SRS are iteratively updated: (4a) Initialize the experience replay pool, set the episode length to T, and the initial iteration number t = 0; (4b) According to the link characteristics of the current IPv6 network topology G and the representative traffic matrix H, set the initial link hidden state The initial link hidden state is obtained by using the message passing graph neural network MPNN Perform message passing to obtain the final link hidden state of each agent Where e represents the link and k represents the number of message transmissions; the implementation is as follows: (4b1) Assume that the initial number of message transmissions k = 0, and the total number of message transmissions is Q; (4b2) Based on the hidden state of the agent in its neighborhood Combine the hidden states of the links of the agent when the number of message transmissions is k and the current hidden states of all links in the neighborhood Get new aggregate information in, is the hidden state of link e when the number of message transmissions is k, is the current hidden state of the agent's neighborhood link i when the number of message transmissions is k, m() is the message function, i is the agent's neighborhood link, B(e) is the set of link e's neighborhood, and a() is the aggregation function; (4b3) Based on the new aggregate information of each agent And the hidden state of the link of the agent when the number of message transmissions is k Each agent uses the update function u() to get the new hidden state of the agent. in, is the link hidden state of link e when the number of message transmissions is k, and u() is the update function; (4b4) Let k = k + 1, and determine whether Q message transfers have been completed: If so, then use the local readout function of each agent's part to obtain the feasible actions for each agent. Otherwise, return to (4b2); (4c) Based on the final hidden state of each agent Use the local readout function of each agent's part to obtain the feasible actions of each agent; (4d) Propagate the actions of each agent in the communication layer and construct the current global strategy π for the state of the IPv6 network topology G in the communication layer. θ , determine the current link weight matrix mt of the network; (4e) According to the current network link weight matrix mt and the representative traffic matrix H, determine the current SR node set SRS of the IPv6 network topology G, all available paths AP of the traffic, the traffic split ratio FR and the maximum link utilization U max ; (4f) According to the current maximum link utilization U max and the global strategy π θ , calculate the agent's reward value r t , cumulative reward G t 、Global strategy π θ Status value and transfer nuclear P t , and store it in the experience replay pool; (4g) Let t = t + 1, and determine whether the current number of iterations reaches the set episode length T: If yes, execute (4h), Otherwise, return to (4b); (4h) Based on the parameters in the experience playback pool, use the mini-batch stochastic gradient descent method on the T group training set to maximize the global PPO target value Update global policy π θ And the state value function The policy parameters θ and state parameters (4i) Let m=m+1, and determine whether all episodes M are currently completed: If yes, then output the final network link weight matrix mt and segment routing node set SRS, and execute (5). Otherwise, return to (4a); (5) Based on the final network link weight matrix mt and the segment routing node set SRS, the IPv6 network topology G is deployed to obtain an SRv6 network with incrementally deployed SR nodes.

2. The method according to claim 1, characterized in that In step (1), the link characteristics of the network topology are set, including the capacity of the link e∈E and the initial weight of the link.

3. The method according to claim 1, characterized in that In step (2), the representative flow matrix H is selected using the Euclidean distance algorithm, and the formula is as follows: Where H' is a historical traffic demand matrix, TM i refers to the i-th historical traffic demand matrix, and n refers to the number of historical traffic demand matrices.

4. The method according to claim 1, characterized in that: In step (4d), the current global policy π is constructed for the state of the IPv6 network topology G at the communication layer. θ , determine the current link weight matrix mt of the network, and implement it as follows: (4d1) In the communication layer, each agent receives the action probability logit of other agents e (a), where a∈A e , e∈E,logit e refers to the action probability of link e, a is the action selected by the agent, and A e is the action space, e is the link in the IPv6 network topology G, and E is the link set in the IPv6 network topology G; (4d2) Through the action probability logit of each agent e (a) Get the action probability set logit_set and calculate the global strategy π θ : π θ ←CategoricalDist(logit_set) Among them, CategoricalDist() is the classification distribution function; (4d3) According to the global strategy π θ , by sharing the same action probability logit_set, all agents start from π θ The same action a is sampled in , so as to select the agent that needs to increase one unit weight, and increase the link weight corresponding to the agent by one unit to obtain the current link weight matrix mt of the network.

5. The method according to claim 1, characterized in that In step (4e), the current SR node set SRS of the IPv6 network topology G is determined as follows: (4e1) According to the current network link weight matrix mt, the importance CEN(v) of each node in the IPv6 network topology G is calculated using a heuristic algorithm: CEN(v)=c1×DEG(v)+c2×BTW(v)+c3×MLL(v) Among them, c1, c2, c3 are three constants with different values, DEG(v) is the degree of node v, BTW(v) is the centrality of node v, and MLL(v) is the link with the most loading times; (4e2) According to the importance CEN(v) of each node in the IPv6 network topology G, p nodes corresponding to the p largest CEN(v) are selected to obtain the current node set SRS.

6. The method according to claim 1, characterized in that In step (4e), all available path APs for the traffic are determined, which is implemented as follows: (4e3) The paths are divided into three types, where the first type is the shortest path from the source node to the SR node, the second type is the shortest path between any two SR nodes, and the third type is the shortest path from the SR node or source node to the destination node; (4e4) According to the three types of paths, obtain all sub-paths required for each traffic demand; (4e5) obtaining a complete path set of each traffic demand according to all subpaths of the traffic demand through depth-first search; (4e6) Based on the complete path set for each traffic demand, duplicate sub-paths are removed by pruning and each path is restricted to use at most 2 sub-paths of the second type. The remaining paths are all available path APs for the traffic.

7. The method according to claim 1, characterized in that In step (4e), the traffic split ratio FR and the maximum link utilization U are determined. max , implemented as follows: (4e7) Set four constraints and construct a linear programming problem: Constraint 1: Make the maximum link utilization U in the IPv6 network topology G max Minimum Constraint 2: Each traffic demand is completely routed on its path, that is, the sum of the traffic of any flow on all available paths is greater than or equal to the size of the traffic demand. The formula is as follows: Among them, p is the available path, P l are all available paths for flow demand 1, FR l (p) is the flow split ratio of flow demand 1 on path p; Constraint three: The traffic carried by a link cannot exceed its capacity, that is, the total traffic passing through any link is less than or equal to the product of the capacity of the link and the maximum link utilization of the link. The formula is as follows: Among them, p is the available path, P l are all available paths for flow demand 1, l is a flow demand, L is all flow demands, S p is the set of subpaths used by path p, s is S p A subpath in ,FR l (p) is the flow split ratio of flow demand 1 on path p, is a binary variable indicating whether link e belongs to subpath s, and the size of the flow demand of t(l), U max is the maximum link utilization, Link e ij Capacity; Constraint 4: The flow rate of any flow on any available path is greater than or equal to 0. The formula is as follows: 0≤FR l (p)≤1 Among them, FR l (p) is the flow split ratio of flow demand 1 on path p; (4e8) Combine constraints 2 to 4 to obtain the range of the flow split ratio FR; (4e9) Find the maximum link utilization U within the range of the traffic split ratio FR. max The flow split ratio FR corresponding to the minimum point.

8. The method according to claim 1, characterized in that In step (4f), the agent’s reward value r is calculated t , implemented as follows: Calculate the initial maximum link utilization U max The ratio of (s1) to the global maximum link utilization when the number of iterations is t is: Among them, U max (s t ) is the maximum link utilization when the number of iterations is t; According to the initial maximum link utilization U max The ratio a of (s1) to the global maximum link utilization when the number of iterations is t, and the reward value r when the number of iterations is t is calculated t , the formula is as follows:

9. The method according to claim 1, characterized in that: Calculate the cumulative reward G in step (4f) t , the formula is as follows: Among them, t is the discount factor when the number of iterations is t, Υ t ∈(0,1],r t is the reward value r when the number of iterations is t t .

10. The method according to claim 1, characterized in that In step (4f), the global strategy π is calculated θ Status value and transfer nuclear P t , the formula is as follows: P t =π θ (a t |s t ) Among them, G t is the cumulative reward when the number of iterations is t, a t is the action of the agent when the number of iterations is t, s t is the state when the number of iterations is t.

11. The method according to claim 1, characterized in that: In step (4h), a mini-batch stochastic gradient descent method is used on the T group training set to maximize the global PPO target value. The implementation is as follows: (4h1) Calculate the strategy parameter π when the number of iterations is t θ The probability ratio r t (θ): Among them, a t is the action of the agent when the number of iterations is t, s t is the state when the number of iterations is t, π θ is the strategy parameter, are the strategy parameters before updating; (4h2) According to the probability ratio r t (θ), calculate the estimator of the advantage function when the number of iterations is t The formula is as follows: in, γ is the discount factor, λ is the adjustment factor, T is the episode length, t is the number of iterations, is the state value when the number of iterations is t; (4h3) Based on the above estimates and the probability ratio r t (θ), calculate the policy target term Among them, ξ is a hyperparameter, r t (θ)∈(1-ξ,1+ξ), clip() is the clipping function; (4h4) Randomly extract small batches of samples from the T group training set, and use the stochastic gradient descent method to derive the state value function The loss function Minimize to get the minimum loss function Among them, V t targ is the state value when the number of iterations is t The predicted value of (4h5) According to the minimum loss function and policy target items Calculate the maximum global PPO objective Among them, c1 and c2 are two constants with different values, S represents entropy addition, is the minimum value of the loss function, π θ is the global strategy, s t is the state when the number of iterations is t.