Scheduling method and device for transmission task of computing power network and computer equipment
By using SDN and multi-head graph attention residual network in the computing power network to adjust the transmission link weight, combined with the duel network to select links, the problem of low computational efficiency of redundant paths in the TSN scheduling mechanism is solved, and efficient fault tolerance and Scheduling.
Patent Information
- Application Number
- CN202410626356.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-20
AI Technical Summary
In the computing power network, when the TSN scheduling mechanism introduces the fault tolerance function, there is a problem of low scheduling efficiency by calculating the transmission path from a large number of redundant paths.
Software-defined networking (SDN) is used to obtain the network status of the computing network, multi-head graph attention residual network is used to reconstruct the characteristics of transmission nodes and links, the weights are adjusted through the attention mechanism, and the transmission link is selected hop-by-hop in combination with the duel network , build a scheduling route.
It achieves more efficient fault tolerance compared to the redundant path method when the computing power network fails, improves scheduling efficiency, and solves the problem of low computational efficiency of redundant paths.
Smart Images

Figure CN118540286A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric power technology, and in particular to a method, device and computer equipment for scheduling transmission tasks of a computing power network. Background Art
[0002] Computing network is a new type of information infrastructure that allocates and flexibly schedules computing resources, storage resources, and network resources between clouds, networks, and edges according to business needs. As a new paradigm of cloud-network integration, computing network has received widespread attention in the industry. In particular, with the development of cutting-edge network technologies such as cloud native, time-sensitive networks, and artificial intelligence, the development of computing network has also presented new possibilities such as computing network cloud native, computing network determinism, and computing network self-intelligence, aiming to improve the scheduling flexibility, computing transmission time sensitivity, and decision-making governance intelligence of computing network. Among them, computing network determinism includes deterministic transmission capabilities, and deterministic transmission needs to be provided to meet the specific requirements of delay-sensitive services on computing network for transmission delay and computing delay. This relies on the low-latency and high-jitter-resistant communication services provided by time-sensitive networks (TSN) based on basic capabilities such as full-network clock synchronization, time-aware shaping, and circular queue forwarding. However, if some equipment or link failures occur in the TSN network, the time-sensitive data traffic of the computing network may be lost for a long time, seriously affecting the normal operation of the computing network business. Therefore, in order to ensure the computing network determinism and the stability and reliability of TSN, the TSN scheduling mechanism that the computing network relies on needs to introduce fault tolerance functions.
[0003] When considering fault tolerance, it is mostly achieved by transmitting multiple data copies through multiple spatially redundant paths. However, this fault tolerance requires a lot of time to pre-calculate candidate redundant paths to build its redundant path set, and it also results in low effective utilization of network resources and affects the upper limit of normal scheduling performance.
[0004] Therefore, in the related art, a fault-tolerant function is introduced into the TSN scheduling mechanism that the computing power network relies on. When the transmission path is calculated from a large number of redundant paths, there is a problem of low scheduling efficiency.
[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiments of the present invention provide a method, apparatus and computer equipment for scheduling transmission tasks of a computing power network, so as to at least solve the technical problem in the related technology that a fault-tolerant function is introduced into the TSN scheduling mechanism relied on by the computing power network, and the scheduling efficiency is too low when the transmission path is calculated from a large number of redundant paths.
[0007] According to one aspect of an embodiment of the present invention, a method for scheduling transmission tasks of a computing power network is provided, comprising: obtaining a network status of the computing power network based on a software defined network (SDN), wherein the network status includes the status of transmission nodes and the status of transmission links in the computing power network, and the computing power network includes faulty transmission nodes and / or faulty transmission links; obtaining a target transmission task of the computing power network; inputting the network status and the target transmission task into a target network model to obtain a scheduling route for the target transmission task, wherein the target network model reconstructs node status characteristics of transmission nodes in the computing power network and link flow characteristics of the transmission links based on a multi-head graph attention residual network, and uses an attention mechanism to adjust the weights of the node status characteristics and the link flow characteristics; based on the adjusted weights of the node status characteristics and the link flow characteristics, a duel network is used to select a transmission link for the target transmission task, wherein a plurality of transmission links obtained hop by hop based on the multi-head graph attention residual network and the duel network constitute the scheduling route.
[0008] Optionally, the method of obtaining the network status of the computing power network based on the software defined network SDN includes: obtaining the topological structure of the computing power network; obtaining a set of transmission nodes within the topological structure, and a set of transmission links within the topological structure; determining the status of each transmission node in the transmission node set includes at least one of the following: the capacity upper limit of the port of the transmission node, the different priority sending queues virtualized by the SDN through the circular queue and forwarding queue on the port of the transmission node; the resource utilization of the transmission node, the resource utilization of the sending queue, the resource utilization of the computing power network, the status of the traffic already scheduled on the transmission node, the status of the traffic being scheduled on the transmission node, and whether the transmission node is a faulty node; determining the status of each transmission link in the transmission link set includes at least one of the following: the transmission rate of the transmission link, the maximum data frame length of the transmission link, the propagation delay of the transmission link, the synchronization delay of the transmission link, the load rate of the transmission link, and whether the transmission link is a faulty link.
[0009] Optionally, obtaining the target transmission task of the computing power network includes: obtaining multiple transmission tasks in the computing power network, and the priorities of the multiple transmission tasks; based on the priorities of the multiple transmission tasks, selecting a candidate transmission task with the highest priority from the multiple transmission tasks; in the case where there are multiple candidate transmission tasks with the highest priority, selecting the candidate transmission task with the earliest task request time as the target transmission task.
[0010] Optionally, obtaining the priorities of the multiple transmission tasks includes: determining that the priority of the transmission task corresponding to the flow that needs to be rerouted and scheduled is higher than the priority of the transmission task corresponding to the normal flow.
[0011] Optionally, the multi-head graph attention residual network in the target network model includes multiple layers, each layer has multiple independent attention mechanisms, and each attention mechanism is used to adaptively adjust the weight of each neighbor link information according to the traffic scheduling status indicated by the current layer input, selectively focus on key information, and perform weighted fusion of information transmission between different links to obtain output.
[0012] Optionally, before inputting the network state and the target transmission task into the target network model to obtain the scheduling route of the target transmission task, it also includes: obtaining a sample set for training the initial network model; based on the sample set, using the MGAR-based priority experience replay duel dual-depth q network PER-MD3QN algorithm to train the initial network model to obtain the target network model, wherein the PER-MD3QN algorithm includes three elements: state, action, and reward, wherein the state is the state of the transmission node and the state of the transmission link in the computing power network, and the action is to output a suitable route for each flow according to the state and send it to the corresponding sending queue priority, and the reward is generated by the reward value for successful scheduling, the reward for traffic scheduling and transmission in the intermediate link, and the penalty value for scheduling failure.
[0013] Optionally, based on the sample set, the MGAR-based Prioritized Experience Replay Dual Deep Q Network PER-MD3QN algorithm is used to train the initial network model to obtain the target network model, including: based on the sample set, the PER-MD3QN algorithm and the Q learning training method are used to train the initial network model to obtain the target network model, wherein when the Q learning training method is used, the Q value function is decomposed into a state value function and an advantage function, and the state value function is updated based on a time difference error, and the time difference error is the difference between the function value of the current state and the function value of the next state.
[0014] Optionally, based on the sample set, the initial network model is trained using the MGAR-based Priority Experience Replay Duel Dual Depth Q Network PER-MD3QN algorithm to obtain the target network model, including: based on the sample set, the initial network model is trained using the MGAR-based Priority Experience Replay Duel Dual Depth Q Network PER-MD3QN algorithm to obtain an intermediate network model; determining constraints for optimizing the intermediate network model, wherein the constraints include at least one of the following: routing hop constraints, path constraints, optional queues and capacity constraints; based on the constraints, the intermediate network model is optimized to obtain the target network model.
[0015] According to another aspect of the present invention, a scheduling device for transmission tasks of a computing power network is provided, comprising: a first acquisition module, used to acquire the network status of the computing power network based on a software defined network (SDN), wherein the network status includes the status of the transmission nodes and the status of the transmission links in the computing power network, and the computing power network includes faulty transmission nodes and / or faulty transmission links; a second acquisition module, used to acquire the target transmission task of the computing power network; a processing module, used to input the network status and the target transmission task into a target network model to obtain a scheduling route for the target transmission task, wherein the target network model reconstructs the node status characteristics of the transmission nodes in the computing power network and the link flow characteristics of the transmission links based on a multi-head graph attention residual network, and uses an attention mechanism to adjust the weights of the node status characteristics and the link flow characteristics; based on the adjusted weights of the node status characteristics and the link flow characteristics, a duel network is used to select the transmission link for the target transmission task, wherein the scheduling route is composed of multiple transmission links obtained hop by hop based on the multi-head graph attention residual network and the duel network.
[0016] According to another aspect of the present invention, there is provided a computer device, comprising: a memory and a processor, wherein the memory stores a computer program; the processor is used to execute the computer program stored in the memory, and when the computer program is run, the processor executes any one of the above-mentioned methods for scheduling transmission tasks of a computing power network.
[0017] In an embodiment of the present invention, the network status of the computing power network is obtained based on SDN, and the node status characteristics of the transmission nodes in the computing power network and the link flow characteristics of the transmission link are reconstructed based on the multi-head graph attention residual network using the target network model, and the weights of the node status characteristics and the link flow characteristics are adjusted using the attention mechanism; based on the adjusted weights of the node status characteristics and the link flow characteristics, a duel network is used to select the transmission link for the target transmission task, and the purpose of intelligently and efficiently determining the transmission link corresponding to the transmission task based on the status of the computing power network is achieved by combining SDN with the target network model, thereby achieving the technical effect of efficient fault tolerance in the event of a failure in the computing power network, compared with the method of determining the transmission link using redundant paths, thereby solving the technical problem of low scheduling efficiency when introducing a fault-tolerant function into the TSN scheduling mechanism on which the computing power network relies in the related technology and calculating the transmission path from a large number of redundant paths. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0019] Figure 1 is a flowchart of a method for scheduling transmission tasks of a computing power network according to an embodiment of the present invention;
[0020] Figure 2 This is a system architecture diagram of large-scale TSN network abnormal state fault tolerance provided in an optional implementation mode of the present invention;
[0021] Figure 3 is a schematic diagram of a PER-MD3QN network provided according to an embodiment of the present invention;
[0022] Figure 4 is a schematic diagram of a graph attention coefficient provided according to an embodiment of the present invention;
[0023] Figure 5 is a flow chart of the PER-MD3QN algorithm provided according to an embodiment of the present invention;
[0024] Figure 6 is a schematic diagram of the change of average reward with the number of training steps during the simulation process of an embodiment of the present invention;
[0025] Figure 7 is a schematic diagram showing the change of the scheduling success rate with the number of time-sensitive flows during the simulation process of an embodiment of the present invention;
[0026] Figure 8is a schematic diagram showing the change in the number of high-load links with the number of time-sensitive flows during the simulation process of an embodiment of the present invention;
[0027] Fig. 9 is a schematic diagram of changes in scheduling success rate under different numbers of faulty nodes during the simulation process of an embodiment of the present invention;
[0028] Fig.10 is a schematic diagram of changes in the number of high-load links under different numbers of faulty nodes during a simulation process of an embodiment of the present invention;
[0029] Fig.11 is a schematic diagram of changes in scheduling success rate under different numbers of MGBs during the simulation process of an embodiment of the present invention;
[0030] Fig.12 is a schematic diagram of the change in the number of high-load links under different numbers of MGBs during the simulation process of an embodiment of the present invention;
[0031] Fig.13 It is a structural block diagram of a scheduling device for transmission tasks of a computing power network provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0034] To facilitate the description of this application, the terms involved in this application are explained below.
[0035] Computing network: refers to a new type of network architecture that provides powerful computing power as a service through the integration of cloud computing and network technologies.
[0036] Time-sensitive networks (TSN) are network communication architectures designed for industrial applications that require determinism and low latency, with the ability to ensure that end-to-end latency is within certain upper and lower limits.
[0037] IEEE 802.1Qch: A network communication standard for TSN that supports time-deterministic network communications and ensures the determinism of transmission delays through circular queue forwarding.
[0038] Gating cycle: In network communications, a time unit used to unify different transmission cycles.
[0039] E2E (end to end): refers to the entire transmission process from one network terminal to another.
[0040] CQF Queue: A circular queue forwarding mechanism used for traffic shaping and scheduling in network communications. CQF has a ping-pong queue on the switch port, which alternates between the receiving and sending functions. The hardware scheduling time slot, that is, the alternating period of the queue flipping function, is usually obtained by dividing the gated cycle into a number of fixed time slots. CQF ensures that all traffic received by the switch in the previous time slot is sent in the next time slot. Therefore, the upper and lower limits of the E2E delay are proportional to the number of switches passed by the transmission path, ensuring the determinism of the delay.
[0041] Software Defined Network (SDN): Its core idea is to dynamically control and manage network resources through software programs, thereby improving the flexibility, programmability and intelligence of the network. In traditional network architecture, the control and management functions of network devices (such as routers and switches) are fixed in the firmware or operating system of the device itself, which limits the flexibility and scalability of the network. SDN separates the network control layer (responsible for network management and decision-making) from the data forwarding layer (responsible for the actual transmission of data), making network control more flexible and centralized.
[0042] SDN controller: In software-defined networking, a device or software used to control network behavior and manage network resources.
[0043] CUC (centralized user configuration): Centralized user configuration controller, used to analyze user transmission requests and transfer them to the network configuration for processing.
[0044] CNC (centralized network configuration): Centralized network configuration, responsible for processing user transmission requests from CUC.
[0045] ILP (integer linear programming): Integer linear programming is a mathematical method used to find integer-valued optimal solutions in linear relationships.
[0046] SMT (satisfiability modulo theories): Satisfiability modulo theories, a method for solving the satisfiability problem of logical formulas.
[0047] PER-MD3QN: A Prioritized Experience Replay, Multi-head GATResNet and Dueling Double Deep Q-Network based algorithm for scheduling problems.
[0048] MGAR (multi-head graph attention residual network): Multi-head graph attention residual network, a deep learning model that uses a multi-head graph attention mechanism and a residual network structure to process graph structured data.
[0049] MGB (multi-head graph attention networks based block): a network block based on the multi-head graph attention mechanism.
[0050] D3QN: Deep Q Network, a deep reinforcement learning algorithm that combines dueling networks and dual deep Q networks for the decision-making process.
[0051] DRL (deep reinforcement learning): Deep reinforcement learning, which combines deep learning and reinforcement learning methods to optimize the decision-making of intelligent agents.
[0052] GCN (graph convolutional network): Graph convolutional network, a deep learning model for graph structured data.
[0053] HDSR: A heuristic-based dynamic scheduling and routing algorithm.
[0054] HSFS: A heuristic-based shared fault-tolerant segment algorithm.
[0055] DRLS: A hop-by-hop scheduling algorithm based on deep reinforcement learning.
[0056] DIGS: A hop-by-hop scheduling algorithm based on deep reinforcement learning and integrated GCN.
[0057] Transmission task: The data stream that needs to be transmitted in the network, including attributes such as source node, destination node, priority, maximum delay, start time, required bandwidth and sending cycle.
[0058] MTU (maximum transmission unit): Maximum transmission unit, the maximum length of a single data frame that can be transmitted in the network.
[0059] TD (temporal-difference): Temporal difference learning, a method for estimating the error of the learning value function.
[0060] To facilitate the description of this application, the meanings of the letters involved in this application are explained below.
[0061] G = {V, E}: represents the overall network topology of the transport layer, which has a set of switching nodes V and a set of transmission links E.
[0062] V={v a ,a∈N}: indicates a=1,2,3,...,N switching nodes v in the corresponding topology a A collection of .
[0063] E={e a,b |a,b∈N,a≠b}: represents the physical link e between nodes a and b a,b A collection of .
[0064] ebw a,b Indicates link e a,b The current remaining bandwidth.
[0065] A=R N×N represents the adjacency matrix of the network topology. a,b =1 represents e a,b ∈E, when A a,b =0 means
[0066] P represents the upper limit of each node port.
[0067] M=R N×P It represents the adjacency table of the neighbor node IDs corresponding to each port of each node in G.
[0068] m a,p represents the relationship between node a and port p, where
[0069] FL represents the number of transmission tasks.
[0070] flowi represents the i-th transmission task.
[0071] sf t Indicates the number of flows that are successfully transmitted at time t.
[0072] F represents the set of all transmission tasks.
[0073] src i Indicates the source node of the transmission.
[0074] dst i Indicates the destination node ID.
[0075] pr i Represents flow i priority.
[0076] d i Represents flow i The maximum delay.
[0077] t i Represents flow i The starting time slot.
[0078] bw i Represents flow i The required bandwidth.
[0079] prd i Represents flow i The sending cycle.
[0080] φ i Represents flow i The planned transmission path.
[0081] T represents the duration of the gate control cycle.
[0082] sl represents the length of the hardware scheduling time slot.
[0083] s represents the link sending rate.
[0084] d trans Indicates the link propagation delay.
[0085] d sync Indicates the link synchronization delay.
[0086] ξ represents the upper limit of the port queue capacity.
[0087] Indicates the queue usage capacity of node a port p priority pr.
[0088] represents the resource utilization of the queue of port p of node a in time slot t, which can be expressed by the formula Calculate this value.
[0089] represents the resource utilization of node a in time slot t, which can be expressed by the formula Calculate this value.
[0090] Represents the overall network resource utilization, which can be expressed by the formula Calculate this value.
[0091] represents the usage status of node a in time slot t, such as queue bandwidth and other resources, which can be expressed by the formula Calculate this value.
[0092] represents the state of the scheduled traffic of node a in time slot t according to the destination node, priority, data frame and occupied bandwidth, which can be expressed by the formula Calculate this value.
[0093] It represents the state of the traffic that node a needs to process in time slot t, which can be expressed by the formula Calculate this value.
[0094] Indicates that node a is a faulty node or flow in time slot t i The node for which the transmission path already exists.
[0095] Indicates the shortest number of hops from node a to the destination node in time slot t.
[0096] rts t Represents the overall current state of the network at time slot t, where the value can be calculated using the formula.
[0097] Represents the h-th graph attention mechanism in the k-th layer MGB in the multi-head graph attention residual network.
[0098] Represents the feature matrix of the k-th layer MGB input at time slot t.
[0099] represents the features of the i-th node input to the k-th layer MGB at time slot t.
[0100] Represents the shared linear transformation matrix in the attention mechanism h.
[0101] ak k.h Will connect node i and node j through High-dimensional features after transformation and splicing Mapped to a matrix of real numbers, where the value can be calculated using the formula.
[0102] Represents an activation function.
[0103] represents the normalized attention coefficient of link node i and adjacent link nodes, which can be expressed by the formula Calculate this value.
[0104] The feature matrix representing the output of the h-th graph attention mechanism in the k-th layer MGB at time slot t is based on The result of weighted summation can be obtained by the formula Calculate this value.
[0105] represents the k+1th layer MGB input, which is the output of the kth layer MGB and the kth layer MGB input obtained by residual connection The sum of which can be obtained by the formula Calculate this value.
[0106] e2e i Indicates the end-to-end delay.
[0107] H i Represents flow i The number of hops remaining from the current node to the destination node can be calculated by the formula Calculate this value.
[0108] φ i Represents flow i The transmission path has been determined.
[0109] Next represents the set of next hop nodes that the current node can choose, which can be obtained by the formula Calculate this value.
[0110] successRate indicates the scheduling success rate.
[0111] hll t Indicates the number of high-load links.
[0112] thd represents the threshold value calculated as a high-load link.
[0113] S t Represents the input state of the PER-MD3QN algorithm.
[0114] act tRepresents the action space of the PER-MD3QN algorithm, which is a set of N*prMax long one-hot vectors.
[0115] a n,pr Represents the scheduling action for the send queue pr of node n.
[0116] Represents the reward function of the PER-MD3QN algorithm, which can be expressed by the formula Calculate this value.
[0117] λ represents the reward coefficient of the reward function at the intermediate node scheduling.
[0118] Z represents the reward value as a positive number in the reward function.
[0119] Represents the network in state space Action Space act t , network parameters θ t The Q-value function under .
[0120] Represented in state space Action Space act t , network parameters θ t The state value function (Value function) under .
[0121] Represented in state space Action Space act t , network parameters θ t Advantage function under .
[0122] δ represents the learning rate, which ranges from (0,1].
[0123] evalQ t (S t ,act t θ t,eval ) represents the evaluation network.
[0124] θ t,eval Represents the network parameters corresponding to the evaluation network.
[0125] targetQ t (S t ,act t θ t,target ) represents the target network.
[0126] θ t,target Indicates the network parameters corresponding to the target network.
[0127] y tIt represents the value function estimation of the current state by PER-MD3QN, which can be obtained by the formula Calculate this value.
[0128] ζ t The temporal-difference error is the calculation of the difference between the estimated value function of the current state and the estimated value function of the next state. The larger the error, the more learning and updating the experience is needed. t =y t -evalQ t (S t ,act t θ t,eval ) to calculate this value.
[0129] per t Indicates that priority experience playback is based on ζ t Give the corresponding experience playback priority, which can be obtained through the formula per t =|ζ t |+υ is calculated to obtain the value. The value can be calculated by the formula.
[0130] PER t Represents the sampling probability of the corresponding experience playback priority, which can be expressed by the formula PER t =(per t ) α / ∑(per t ) α Calculate this value.
[0131] υ represents a small constant to prevent ζ t The probability of extracting 0 experience points is 0.
[0132] α represents the priority per t The degree of use of , where 0 corresponds to the uniform situation.
[0133] Represents importance sampling, which is used to correct the priority error introduced, where it can be expressed by formula w t =(per t / min(per t )) β Calculate this value.
[0134] β represents the degree of correction.
[0135] L(θ t,eval ) represents the minimization loss function, which is used to learn the optimal network parameters θ t . The formula Calculate this value.
[0136] represents the stochastic gradient descent used to optimize the network, which can be expressed by the formula Calculate this value.
[0137] τ represents the coefficient for soft updating of the parameters of the evaluation network.
[0138] According to an embodiment of the present invention, a method embodiment of a method for scheduling transmission tasks of a computing power network is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0139] Figure 1 is a flow chart of a method for scheduling transmission tasks of a computing power network according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0140] Step S102, obtaining the network status of the computing power network based on the software defined network SDN, wherein the network status includes the status of the transmission nodes and the status of the transmission links in the computing power network, and the computing power network includes a faulty transmission node and / or a faulty transmission link;
[0141] Step S104, obtaining the target transmission task of the computing power network;
[0142] Step S106, input the network state and the target transmission task into the target network model to obtain the scheduling route of the target transmission task, wherein the target network model reconstructs the node state characteristics of the transmission nodes and the link flow characteristics of the transmission links in the computing network based on the multi-head graph attention residual network, and uses the attention mechanism to adjust the weights of the node state characteristics and the weights of the link flow characteristics; based on the adjusted weights of the node state characteristics and the weights of the link flow characteristics, a duel network is used to select the transmission link for the target transmission task, wherein the multiple transmission links obtained hop by hop based on the multi-head graph attention residual network and the duel network constitute the scheduling route.
[0143] Through the above steps, the network status of the computing power network is obtained based on SDN, and the node status characteristics of the transmission nodes and the link flow characteristics of the transmission links in the computing power network are reconstructed based on the multi-head graph attention residual network using the target network model, and the attention mechanism is used to adjust the weights of the node status characteristics and the weights of the link flow characteristics; based on the adjusted weights of the node status characteristics and the weights of the link flow characteristics, a duel network is used to select the transmission link for the target transmission task, and the purpose of intelligently determining the transmission link corresponding to the transmission task based on the status of the computing power network is achieved by combining SDN with the target network model, thereby achieving the technical effect of efficient fault tolerance in the event of a failure in the computing power network, compared with the method of determining the transmission link by redundant paths, and thus solving the technical problem of low scheduling efficiency when introducing a fault-tolerant function into the TSN scheduling mechanism on which the computing power network relies in related technologies by calculating the transmission path from a large number of redundant paths.
[0144] As an optional embodiment, when obtaining the network status of the computing network based on the software defined network SDN, a variety of methods can be used. For example, the topology of the computing network can be obtained first; then, the transmission node set in the topology and the transmission link set in the topology are obtained; the state of each transmission node in the transmission node set is determined to include at least one of the following: the capacity upper limit of the port of the transmission node, the different priority sending queues virtualized by the circular queue and forwarding queue on the port of the transmission node through the SDN; the resource utilization of the transmission node, the resource utilization of the sending queue, the resource utilization of the computing network, the traffic status already scheduled on the transmission node, the traffic status being scheduled on the transmission node, and whether the transmission node belongs to a faulty node; the state of each transmission link in the transmission link set is determined to include at least one of the following: the transmission rate of the transmission link, the maximum data frame length of the transmission link, the propagation delay of the transmission link, the synchronization delay of the transmission link, the load rate of the transmission link, and whether the transmission link belongs to a faulty link. It should be noted that the above-mentioned states of each transmission node and the state of the transmission link are only examples, and other parameters used to determine the scheduling route may also be included in the scope of this application.
[0145] As an optional embodiment, when obtaining the target transmission task of the computing power network, multiple methods can also be used. For example, multiple transmission tasks in the computing power network and the priorities of multiple transmission tasks can be obtained first; based on the priorities of multiple transmission tasks, the candidate transmission task with the highest priority is selected from the multiple transmission tasks; when there are multiple candidate transmission tasks with the highest priority, the candidate transmission task with the earliest task request time is selected as the target transmission task. Among them, the priorities of obtaining multiple transmission tasks can also be based on multiple conditions. For example, for nodes or transmission links that fail in the computing power network, since the fault point will affect the selection of other links, the transmission tasks of the streams corresponding to these fault points can be set higher. That is, when obtaining the priorities of multiple transmission tasks, it can be determined that the priority of the transmission task corresponding to the stream that needs to be rerouted and scheduled is higher than the priority of the transmission task corresponding to the normal stream. By giving priority to the transmission task of the stream corresponding to the fault point, since there is no need to adjust back and forth repeatedly, the processing efficiency can be effectively improved.
[0146] As an optional embodiment, the multi-head graph attention residual network in the target network model includes multiple layers, each layer has multiple independent attention mechanisms, and each attention mechanism is used to adaptively adjust the weight of each neighbor link information according to the traffic scheduling status indicated by the current layer input, selectively focus on key information, and perform weighted fusion of information transmission between different links to obtain output. Through the network's attention mechanism, the key information involved in determining the scheduling route is adaptively learned, and the method is not only fast but also accurate.
[0147] As an optional embodiment, before inputting the network state and the target transmission task into the target network model to obtain the scheduling route of the target transmission task, it also includes: obtaining a sample set for training the initial network model; based on the sample set, using the MGAR-based priority experience replay duel dual-depth q network PER-MD3QN algorithm to train the initial network model to obtain the target network model, wherein the PER-MD3QN algorithm includes three elements: state, action, and reward, wherein the state is the state of the transmission node and the state of the transmission link in the computing network, the action is to output a suitable route for each flow according to the state and send it to the corresponding sending queue priority, and the reward is generated by the reward value of successful scheduling, the reward of traffic scheduling transmission in the intermediate link, and the penalty value of scheduling failure. The PER-MD3QN algorithm is used to train the initial network model, wherein the action is used to make full use of real-time network information and flow information as much as possible, output a suitable route for each flow and send it to the corresponding sending queue priority, so as to maximize the use of network resources and forward the flow more reasonably; the reward of the intermediate link needs to ensure the load balancing of network resources while maximizing the scheduling success rate, and limit the occupation of queue resources exceeding the high load threshold.
[0148] As an optional embodiment, based on the sample set, the MGAR-based Priority Experience Replay Duel Dual Depth Q Network PER-MD3QN algorithm is used to train the initial network model to obtain the target network model, including: based on the sample set, the PER-MD3QN algorithm and the Q learning training method are used to train the initial network model to obtain the target network model, wherein, when the Q learning training method is used, the Q value function is decomposed into a state value function and an advantage function, and the state value function is updated based on the time difference error, and the time difference error is the difference between the function value of the current state and the function value of the next state. Among them, Q learning is a classic reinforcement learning algorithm, and its core idea is to guide the intelligent agent to make the best action in different states by learning a value function (Q function). Decomposing the Q value function into a state value function and an advantage function can simultaneously learn the value of the state and the advantages and disadvantages of different actions.
[0149] As an optional embodiment, based on the sample set, the MGAR-based Priority Experience Replay Duel Dual Depth Q Network PER-MD3QN algorithm is used to train the initial network model to obtain the target network model, including: based on the sample set, the MGAR-based Priority Experience Replay Duel Dual Depth Q Network PER-MD3QN algorithm is used to train the initial network model to obtain the intermediate network model; determine the constraints for optimizing the intermediate network model, wherein the constraints include at least one of the following: routing hop constraints, path constraints, optional queues and capacity constraints; based on the constraints, the intermediate network model is optimized to obtain the target network model. Among them, the routing hop constraint considers the maximum number of paths corresponding to the worst case. The path constraint can limit various requirements for the path, for example, each node b in the next node set next should have a link pointed to by node a, and the remaining bandwidth capacity of the link should not be less than bw i ; The selected node should not be a faulty node or an invalid node that forms a link loop, and the number of hops from the node to the destination node should not exceed the currently allowed limit, etc. Through the above constraints for optimizing the model, the success rate is improved while ensuring the load balance of the scheduling tasks as much as possible and reducing the number of high-load links, thereby reducing the flow that needs to be scheduled for retransmission when a node failure or link interruption occurs and reserving network resources that can be scheduled for retransmission.
[0150] In the face of network abnormalities such as node failures or link interruptions, most of the theoretical strategies generally used are difficult to balance scheduling performance and fault tolerance. On the one hand, scheduling mechanisms based on mathematical strategies such as heuristic algorithms, integer linear programming (ILP), satisfiability modulo theories (SMT), and optimization modulo theories are mostly implemented by transmitting multiple data copies through multiple paths with spatial redundancy when considering fault tolerance. However, this fault tolerance requires a lot of time to pre-calculate candidate redundant paths to build its redundant path set, and it results in low effective utilization of network resources and affects the upper limit of normal scheduling performance. Even if the response time is minimized by pre-calculation and storage, it is still static in nature and can only be used in small-scale closed networks to detect expected failures of traffic whose information is known and redundant paths have been calculated in advance for the source node and destination node. Moreover, when link failures occur on redundant transmission paths with limited data copies, fault tolerance will still fail. Therefore, in open large-scale TSN scenarios, the online scheduling mechanism based on mathematical strategies only reroutes and schedules traffic related to abnormal node links in order to compromise fault tolerance and scheduling success rate. However, the transmission recovery of time-sensitive flow data still requires a long response time.
[0151] In order to ensure the fault tolerance of computing power network transmission in abnormal scenarios such as node failure and link interruption and the scheduling performance in normal scenarios. In this embodiment, a TSN fault-tolerant time-sensitive flow scheduling scheme is provided, that is, a Scheduling Mechanism for Recovering Gaping Data Time-Sensitive Traffic in Computer Power Network (SRGD) is proposed, as follows.
[0152] In this embodiment, a TSN fault-tolerant system architecture based on the IEEE 802.1Qch standard and software defined network is provided. The architecture introduces the IEEE 802.1Qch standard and the idea of software defined network (SDN), captures the link status of TSN scene nodes through the SDN controller, makes routing scheduling decisions for normal traffic online, and gives priority to rerouting scheduling for abnormal traffic affected by faults.
[0153] A joint routing and scheduling optimization model is established. The model aims at a higher scheduling success rate, takes traffic delay and network resources as constraints, and uses the PER-MD3QN algorithm to solve the joint routing and scheduling results.
[0154] A dueling double deep Q network algorithm (PER-MD3QN) was constructed, which first reconstructs TSN state and traffic features based on a multi-head graph attention residual network (MGAR), and then decodes them through a multi-layer perceptron. PER-MD3QN flexibly adjusts weights through the attention mechanism of MGAR, selects information that is relatively critical to the current task from the features of each input TSN and traffic, and finds a route for the TS stream that guarantees the existence of a legal injection time slot.
[0155] The details are explained below.
[0156] (1) System architecture:
[0157] Figure 2 : is a system architecture diagram of a large-scale TSN network abnormal state fault-tolerant system provided in an optional embodiment of the present invention, such as Figure 2 The scheduling mechanism is based on SDN and designs a system architecture including the transport layer, control layer and application layer, as follows:
[0158] Transport layer: Network elements such as switches, full-duplex physical links, and various IoT devices make up the transport layer. In the transport layer, user terminals such as drones and VR devices interact with servers continuously, generating a large number of time-sensitive flows. Each TSN switch collects data on the status of network resources at a specified frequency in each sending cycle and forwards it to the control layer, and reports its own node working status and link detection status at the end of the sending cycle. The transmission request generated by the terminal is uploaded to the centralized user configuration controller (CUC) of the SDN controller, and the CUC analyzes the user transmission request and transfers it to the centralized network configuration (CNC) for processing and distribution.
[0159] Control layer: CNC can be abstracted into functional modules such as monitoring module, analysis module, decision module and scheduling module. The specific functions of each module are as follows:
[0160] Monitoring module: Node and link monitoring, which monitors and receives network status information uploaded by the transport layer switch at a certain frequency through the southbound interface, records the links where traffic loss is reduced and the problem nodes that fail to report information in time.
[0161] Analysis module: Receives and records user transmission requests from CUC and network status information provided by the monitoring module, determines the order of traffic processed by the decision module according to attributes such as whether the traffic is abnormal, arrival time, service priority, and traffic cycle size, and notifies the scheduling module to release the resources occupied by the relevant traffic when an abnormal situation occurs, and gives priority to the relevant traffic.
[0162] Decision module: Receives the transmission tasks and TSN status provided by the analysis module, builds a joint routing and scheduling problem optimization model, and uses the PER-MD3QN algorithm to solve the route with legal injection time slots hop by hop, and passes the result to the scheduling module. After that, the decision module will collect relevant experience and save it in the priority experience playback pool, and extract experience from it at a certain frequency to train and update the PER-MD3QN network;
[0163] Scheduling module: Receives and executes the operation of releasing resources occupied by traffic from the analysis module, checks whether the decision given by the decision module meets relevant constraints such as traffic delay and network resources, and finds the injection time slot that minimizes the maximum load among legal decisions. Finally, the flow table is modified to make the joint routing and scheduling operations effective.
[0164] (2) Network model:
[0165] like Figure 2 As shown, the overall network topology of the transmission layer is represented by G = {V, E}, which represents the overall network topology of the transmission layer, with a switching node set V and a transmission link set E. a , a∈N} represents a=1,2,3,...,N switching nodes v in the corresponding topology a The set of N switching nodes in the corresponding topology; E = {e a,b}|a,b∈N,a≠b} represents the set of physical links ea,b between nodes a and b, and the weight ebwa,b represents the link e a,b The current remaining bandwidth. In addition, A = R N×N represents the adjacency matrix of the network topology. a,b =1 represents e a,b ∈E, when A a,b =0 means The SDN controller will update the adjacency matrix A according to the real-time network status. The upper limit of each node port is P, M = R N×P Represents the adjacency table of neighbor node identifiers corresponding to each port of each node in G, m a,p represents the neighbor of node a corresponding to port p, where
[0166] Assume that there are FL transmission tasks. In this embodiment of the present invention, the i-th transmission task is abstracted as flowi , represented as a tuple flow i ={src i ,dst i ,pr i ,d i ,t i ,bw i ,prd i ,φ i}. The number of successfully transmitted streams at time t is sf t The set of all transfer tasks is F = {flow i ∣i∈FL}. Among them, src i ,ds i t∈V are the source node and destination node identifiers of the transmission. i ,d i ,t i ,bw i ,prd i φ i They represent flow i priority, maximum delay, start time, required bandwidth, sending cycle, and planned transmission path. i Number of priority types ρ, pr i The larger the value, the higher the priority. The scheduling mechanism schedules multiple scheduling requests uploaded at the same time in strict order of priority; for flows of the same priority, the first-come-first-served principle is used for scheduling.
[0167] In order to unify the different transmission periods of time-sensitive flows, the gating cycle period T is equal to the least common multiple of all time-sensitive flow periods, as shown in formula (1). The hardware scheduling time slot sl of CQF queue flipping is shown in formula (2).
[0168] T=lcm(prd i ),i∈FL (1)
[0169] sl=gcd(prd i ),i∈FL (2)
[0170] Assume that the transmission rate of each link is unified as s, and the maximum data frame length is MTU. To avoid congestion, it is necessary to stipulate that the total number of data frames sent by a port cannot exceed the maximum value ξ (that is, the upper limit of the port queue capacity), as shown in formula (3). Among them, s is the unified transmission rate of each link, and MTU is the maximum data frame length. trans ,d sync They are propagation delay and synchronization delay respectively.
[0171]
[0172] The upper limit of each transmission node port is P. The CQF queue of each port is virtualized by the SDN controller to obtain ρ different priority sending queues. In each cycle, each queue sends data in descending order of priority. The priority of node a port p is pr. The sending queue usage capacity is expressed as Resource utilization of queue p at node a at time t Node resource utilization and overall network resource utilization As shown in formula (3). Set the high load threshold to thd, when the queue resource utilization When the link corresponding to port p of node a is a high-load link, the total number of which is recorded as hll t (highload link), and at the same time limit the queue resource occupation of normal traffic that exceeds the thd part.
[0173]
[0174] Therefore, the node resource usage status such as queue capacity and link bandwidth of neighbor nodes pointing to themselves can be expressed as The states of each scheduled flow on the node (sfs, scheduled flow state) can be described according to the destination node, priority, data frame and occupied bandwidth recorded in the flow table as follows: Similarly, the processing scheduled flow state (pfs) on this node additionally considers the remaining delay, which can be described as where t j Indicates the arrival time at the node. Finally, to prevent link loops and traffic from being routed to faulty nodes, Indicates that node a is a faulty node or flow i The transmission path already exists for the node. It represents the shortest hop number from node a to the destination node. Therefore, the overall real-time state of the network is shown in formula (4).
[0175]
[0176] First, collect the flow information related to the problem node link i ={id i ,n src,i ,n dst,i ,pr i ,d i ,t i ,bw i ,prd i ,frm i}; Secondly, modify the flow table and release the node queue capacity occupied by the affected flow and link bandwidth ebw a,b etc. Network resources, correct the relevant representation ns a , sfs, pfs; then, modify the network topology information and set the link status of each faulty node in the network: Taking node a as an example, its resource utilization is the highest, the usage capacity of all port queues has reached the upper limit, and the remaining bandwidth of all links pointing to itself is 0, so the status ns a Indicates setting to u a =1, ebw b,a =0, at the same time Setting it to 1 indicates that it is in a faulty state. Finally, in order to reduce the impact of the fault, the flow that needs to be rerouted will take precedence over the normal transmission flow scheduling, and upload the network status and flow information to the problem optimization model in descending order of priority. The dispatched scheduling action will be received and executed after all constraint checks are passed to generate the corresponding flow table.
[0177] (3) Multi-head graph attention residual network:
[0178] Figure 3 is a schematic diagram of a PER-MD3QN network provided according to an embodiment of the present invention, such as Figure 3 As shown in Figure 2, the MGAR-based encoder model in PER-MD3QN processes the uploaded TSN network topology A and TSN scheduling information consisting of N node features. rts t Indicates the overall current state of the network at time slot t. It is then decoded by the decoder of the dueling architecture. rts t The feature extraction will be carried out by the K-layer MGB (multi-head graphattention networks based block) of the encoder residual connection in turn, and then the obtained link vectors will be concatenated into a 1-dimensional vector and provided to the decoder of the duel network architecture for decoding output. Each layer of MGB in the encoder has H independent attention mechanisms, and each attention mechanism can be described as Operation, represents the h-th graph attention mechanism in the k-th layer MG B in the multi-head graph attention residual network, Represents the feature matrix of the k-th layer MGB input at time slot t, which can be calculated based on the current k-th layer input The traffic scheduling status indicated by the algorithm is adaptively adjusted to the weight of each neighbor link information, selectively focusing on key information, and performing weighted fusion of information transmission between different links to obtain the output. Specifically, Figure 4is a schematic diagram of a graph attention coefficient provided according to an embodiment of the present invention, The calculation is as follows Figure 4 As shown, is the representation of node i in the feature matrix, that is represents the characteristics of the i-th node input to the k-th layer MGB at time slot t, is the shared linear transformation matrix in the attention mechanism h, ak k.h Will connect node i and node j through High-dimensional features after transformation and splicing Mapped to a matrix of real numbers, is an activation function. As shown in formulas (7) and (8), the attention mechanism h of the kth layer calculates the attention coefficient of each link i and the adjacent link nodes after normalization After that, the weighted sum is obtained to get the final representation Finally, the output of the k-th layer MGB is the average of the results obtained by each attention As shown in formula (9), the input of the first layer MGB of the encoder model is rts t , the k+1th layer MGB input It is the sum of the output of the k-th layer MGB and the input obtained by the residual connection of the k-th layer MGB. Therefore, the encoder model input is rts t The output is represents the normalized attention coefficient of link node i and adjacent link nodes, The feature matrix representing the output of the h-th graph attention mechanism in the k-th layer MGB at time slot t is based on The result of weighted summation is represents the k+1th layer MGB input, which is the output of the kth layer MGB and the kth layer MGB input obtained by residual connection sum.
[0179]
[0180]
[0181]
[0182] (4) Problem Optimization Model:
[0183] 1) Routing hop count constraints:
[0184] Since in the CQF model, flow i The end-to-end (E2E) delay iGenerally, it only depends on the cycle size sl and the range of the path hop number H [(H-1)*sl, (H+1)*sl]. So considering the worst case, flow i At most, H i After jumping, it reaches the destination node. i Represents flow i The number of hops remaining from the current node to the destination node.
[0185]
[0186] 2) Path constraints:
[0187] If flow i The currently determined path is φ ending with node a i , that is, φ i Represents flow i The transmission path has been determined. Then, as shown in the constraint of formula (9), each node b in the optional next node set next should have a link pointed to by node a, and the remaining bandwidth capacity of the link should not be less than bw i At the same time, the selected node should not be a faulty node or an invalid node that forms a link loop, and the number of hops from the node to the destination node should not exceed the currently allowed limit.
[0188]
[0189] 3) Optional queue and capacity constraints:
[0190] where v b The corresponding port number is p, then ξ minus the occupied cache capacity There should be flow left after i The sending queue buffer space in this time slot is shown in formula (10).
[0191]
[0192] Finally, because the scheduling mechanism of the embodiment of the present invention needs to ensure the scheduling performance of the scheduling mechanism in abnormal scenarios, the scheduling success rate successRa and the number of high-load links hl t l is used as an evaluation factor. The goal is to ensure the load balance of scheduling tasks and reduce the number of high-load links while improving successRa. t , thereby reducing the number of flows that need to be scheduled for retransmission and reserving network resources for scheduling retransmission when node failures and link interruptions occur. Therefore, the problem optimization model can be formally expressed as:
[0193]
[0194] (6) PER-MD3QN algorithm:
[0195] In the scheduling algorithm based on PER-MD3QN solution in the embodiment of the present invention, the specific meanings of state, action, and reward are as follows.
[0196] 1) Status:
[0197] In this scheduling mechanism, the state is the resource information and traffic information of each TSN node collected by the system at each time slot t. Therefore, the environmental state at time t is expressed as shown in formula (12). t Represents the input state of the PER-MD3QN algorithm
[0198] S t =rts t (12)
[0199] 2) Action:
[0200] In this scheduling mechanism, since the direct selection of flow paths will make the action space dimension of the calculation process too high, the model will use real-time network information and flow information as much as possible, output the appropriate route for each flow and send it to the corresponding sending queue priority, so as to maximize the use of network resources and forward the flow more reasonably. As shown in formula (13), the action at time t is represented by act t , is a set of N*prMax long one-hot vectors. n,pr =1 means that the sending queue pr of node a pointing to node n is selected as flow i The scheduling action is 0 for the rest. t Represents the action space of the PER-MD3QN algorithm, which is a set of N*prMax long one-hot vectors, a n,pr Represents the scheduling action for the send queue pr of node n.
[0201]
[0202] 3) Rewards:
[0203] As shown in formula (18), in this scheduling mechanism, the reward function is composed of the reward value for successful scheduling, the reward for traffic scheduling transmission in the intermediate link, and the penalty value for scheduling failure. Among them, the reward for the intermediate link needs to ensure the load balance of network resources while maximizing the scheduling success rate and limiting the occupation of queue resources exceeding the high load threshold. Therefore, and overall network resource utilization The coefficient λ is a negative number. When the scheduling is successful or the violation constraint fails, the flow scheduling ends with done. t will be 1, otherwise 0. Represents the reward function of the PER-MD3QN algorithm. λ represents the reward coefficient of the reward function in the intermediate node scheduling. Z represents the reward value as a positive number in the reward function.
[0204]
[0205] 4) Loss function:
[0206] Q learning is a classic reinforcement learning algorithm, the core idea of which is to guide the agent to make optimal actions in different states by learning a value function (Q function). In the embodiment of the present invention, the PER-MD3QN algorithm is used to solve the problem optimization model. Figure 5 is a flow chart of the PER-MD3QN algorithm provided according to an embodiment of the present invention, such as Figure 5 As shown in Figure 1, the PER-MD3QN algorithm improves the performance of the Q learning algorithm in reinforcement learning tasks by improving the Dueling architecture and Double Q-learning. As shown in formula (19), for the encoder model processing state S t Output The encoder model of the Dueling architecture converts the Q value function Decompose into state value function (Value function) and Advantage function This allows the agent to simultaneously learn the value of the state and the pros and cons of different actions. t represents the network parameters at time t. ) indicates that the network is in the state space Action Space act t , network parameters θ t The Q-value function under . Represented in state space Action Space act t , network parameters θ t The state value function (Value function) under . Represented in state space Action Space act t , network parameters θ t Advantage function under .
[0207]
[0208] Q learning uses the temporal-difference error ζ in experience replay t The learning update value function has an update rule as shown in Equation (20), where δ∈(0,1] represents the learning rate.
[0209]
[0210] TD is the calculation of the difference between the estimated value function of the current state and the estimated value function of the next state. Since the Double Q-learning computing architecture of the PER-MD3QN algorithm has an evaluation network evalQ t (S t ,act t θ t,eval ) and the target network targetQ t (S t ,act t θ t,target ), θ t,eval Indicates the network parameters corresponding to the evaluation network. So the estimated value y t and
[0211] The TD calculation method is shown in formula (21) and (22). Among them, γ discount rate, done t Indicates whether the current scheduling is finally completed. t Represents PER-MD3QN's estimate of the value function of the current state.
[0212] y t =r t +(1-done t )*γ*targetQ t (S t ′,argmax(evalQ t (S t ′,act t ′;θ t,eval ));θ t,target ) (twenty one)
[0213] ζ t =y t -evalQ t (S t ,act t θ t,eval ) (twenty two)
[0214] ζ t The temporal-difference error is the calculation of the difference between the estimated value function of the current state and the estimated value function of the next state. The larger the value, the more learning and updating the experience is needed. Therefore, the priority experience playback is based on ζ t Give the corresponding experience playback priority per t , as shown in formula (23). Where υ is a very small constant to prevent ζ tThe probability of extracting an experience of 0 is 0. The corresponding sampling probability is shown in formula (24), where the exponent α determines the high and low priority usage, and 0 corresponds to the uniform situation. The priority playback method changes the sampling method of experience, but it introduces bias, which is not conducive to the training of neural networks. As shown in formula (27), by using importance sampling To correct the error, the exponent β indicates the degree of correction. t represents the sampling probability corresponding to the experience replay priority, υ represents a very small constant to prevent ζ t The probability of extracting an experience of 0 is 0. α represents the priority per t The degree of use of , where 0 corresponds to the uniform situation. represents importance sampling, which is used to correct the priority error introduced. β represents the degree of correction.
[0215] per t =|ζ t |+υ (23)
[0216] PER t =(per t ) α ∑(per t ) α (twenty four)
[0217] w t =(per t min(per t )) β (25)
[0218] Therefore, the PER-MD3QN algorithm learns the optimal network parameters θ by iteratively minimizing the loss function t , the loss function is shown in formula (26), where L(θ t,eval ) represents the minimization loss function, which is used to learn the optimal network parameters θ t :
[0219]
[0220] The loss function can use stochastic gradient descent to optimize the network, and its gradient calculation is shown in formula (27), where: represents the stochastic gradient descent used to optimize the network, and τ represents the coefficient for soft updating the parameters of the evaluation network:
[0221]
[0222] 5) Network Update:
[0223] The PER-MD3QN algorithm updates the parameters by calculating the stochastic gradient descent by extracting a small batch of samples with weights from the experience replay pool ReplyBuffer, as shown in formula (28). At the same time, after several updates, the target network is soft-updated with a certain proportion of the parameters of the evaluation network, as shown in formula (29).
[0224]
[0225] θ t,target ←τ*θ t,eval +(1-τ)*θ t,target (29)
[0226] Algorithm 1: PER-MD3QN algorithm:
[0227] The algorithm inputs the transmission domain network topology G = {V, E}, the priority experience replay pool capacity M, the set of transmission tasks requested for scheduling F, the learning rate δ, the soft update coefficient τ, the discount factor γ, the number of training rounds ep, the number of training steps sp, and outputs the action Act for each scheduling request.
[0228]
[0229] The algorithm randomly initializes the parameters of the evaluation network evalQ of the transmission domain G, and copies the evaluation network parameters to the target network targetQ, and initializes the priority replay pool RB (lines 1 to 2);
[0230] Then process the status. Get the TSN status rts at time t t , processing to obtain state S t (line 5).
[0231] Execute the action. Select the action act using the ε-greedy algorithm t (Lines 6 to 7). Execute the action act t And according to formula (18), the reward value r is obtained t , get the end mark according to the actual situation and TSN new status rts t '(line 8)). After that, the next flow state S is processed t ′, and store the experience (S t ,act t ,r t ,S t ′, done) in the experience replay pool (line 9) to 10). According to the end mark Update the flow that needs to be scheduled (line 11).
[0232] Update the network. Take some experience from the experience pool to train and evaluate the network, and calculate the gradient descent using equations (27), (28), and (29) And update the evaluation network, and every sp step, use the evaluation network parameter θ in proportion to the soft update coefficient τ t,eval Update the target network parameters θ t,target (Lines 12 to 15).
[0233] Based on the above embodiments, the following effects can be achieved:
[0234] (A) Encoding and decoding model based on multi-head graph attention residual network: The present invention designs an encoder based on a multi-head graph attention residual network to reconstruct the features of TSN and traffic, and adopts an encoding and decoding model of duel network decoding, which can better adapt to the changing network traffic and extract key information.
[0235] (B) Scheduling mechanism based on SDN and the D3QN algorithm combined with the multi-head graph attention residual network: In normal scenarios, it provides incremental scheduling for TS flows online, achieving better scheduling success rate and load balancing effects. When abnormal situations occur in TSN, it can quickly adapt to the changing network and reroute the faulty TS flows, achieving better fault tolerance than the redundant path method.
[0236] The following is a simulation of the scheduling scheme for the transmission tasks of the above computing power network, and the simulation results are displayed.
[0237] This simulation environment is based on Python 3.9NetworkX module and SimPy module to build network topology environment and simulate traffic sending. The feature extraction algorithm based on multi-head graph attention mechanism and the joint routing and queue scheduling algorithm based on D3QN, which the problem optimization model relies on, are both built using the Pytorch library. In the problem optimization model, the number of MGB layers K is 2, the value of each layer of multi-head attention mechanism H is 3, the reward function sets the constant Z to 1.5, and the parameter λ is set to -0.25. The model is trained to improve the scheduling success rate while reducing the average resource utilization. The high-load link threshold thd is set to 0.9. The embodiment of the present invention randomly generates a network scenario consisting of 10 terminal nodes and 90 transmission nodes. Among them, the delay of each link is 1-2ms, and the initial capacity of the link is set to 350Mbit / s. The super-period time slot T of each node cyclic forwarding is 10ms, and the cache capacity of each queue is 100 data frames. During the 30-second operation, time-sensitive flows with random start and destination nodes are sent at random times in descending order of priority, simulating the uncertainty of the network environment. The bandwidth requirements of each flow follow the Poisson distribution, and the sending period is one of 2ms, 5ms, and 10ms. The maximum delay is related to the average E2E delay of the corresponding path. The algorithm training parameters are shown in Table 1.
[0238] Table 1
[0239]
[0240] Results and analysis:
[0241] In this simulation, in order to evaluate the scheduling performance of the scheduling mechanism SRGD, SRGD is combined with a heuristic-based dynamic scheduling and routing algorithm (HDSR), a heuristic-based shared fault-tolerant segment algorithm (HSFS), a deep preinforcement le arning based scheduler (DRLS), and a scheduler based on DRL with integrated GCN (DIGS). HDSR considers the impact of the location of the source node on the entire routing scheduling and generates multiple non-intersecting paths to transmit redundant data. HSFS maximizes the quality of service with the minimum bandwidth by setting shared fault-tolerant network segments for different key flows in the event of failure. DRLS perceives topology changes by recording the shortest path matrix and guides the DRL algorithm to output scheduling actions consisting of links and time slots. DIGS perceives the network resources of the graph structure based on GCN and outputs scheduling actions with the goal of minimizing the average delay. The indicators for scheduling performance evaluation are the scheduling success rate successRate and the total number of high-load links hll t .
[0242] Algorithm convergence:
[0243] In a large-scale network environment, the centralized scheduling of the problem optimization model is difficult to produce effective actions, resulting in a high failure rate in the initial stage of training, which cannot provide the model with enough successful experience for training. In order to accelerate the training process, the embodiment of the present invention adopts two strategies: 1) Applying a control gate mechanism to ignore invalid actions that violate constraints 2 and 3 with a certain probability, thereby increasing the appearance of successful experience; 2) Using the method of preferential experience replay, the model pays more attention to samples that have an important impact on improving model performance, thereby accelerating the training convergence process and improving learning efficiency; 3) The duel network is used in the PER-MD3QN algorithm to simultaneously learn the value of the state and the pros and cons of different actions, and at the same time separate the evaluation network and the target network to reduce the problem of over-estimation and improve the stability and performance of the algorithm.
[0244] Figure 6 is a schematic diagram of the change of average reward with the number of training steps during the simulation process of an embodiment of the present invention, such as Figure 6As shown, the average reward results of the algorithm after 50,000 steps of training at different learning rates generally show a trend of gradually increasing with the increase in the number of training steps. At the same time, as the strategy is optimized, the oscillation degree of the curve gradually weakens. Among them, when the learning rate is 1e-3, the average reward curve converges at about 20,000 steps; when the learning rate is 2e-4, the curve converges at about 40,000 steps; when the learning rate is 5e-4, the convergence speed is between the two. Although different learning rates have a certain effect on convergence, it can be seen that the reward values obtained after convergence of each learning rate are relatively small and are in a relatively stable range. This shows that the learning rate in the range of 2e-4 to 1e-3 has a certain effect on the convergence speed of the algorithm of the embodiment of the present invention, but has little effect on performance.
[0245] Impact of traffic scale on scheduling performance in normal scenarios:
[0246] Figure 7 is a schematic diagram of the change of the scheduling success rate with the number of time-sensitive flows during the simulation process of an embodiment of the present invention. Figure 7 As shown in the figure, as the scale of network traffic increases, the scheduling success rate of each strategy generally shows a downward trend, but the scheduling success rate of the SRGD strategy is generally higher than that of other strategies. This is because SRGD adopts a coding model based on the GAT residual network, which can better perceive the resource changes of each node in the graph structure network compared to strategies other than DIGS, thereby ensuring the scheduling success rate while maintaining resource load balance. When considering scheduling flows, DIGS takes minimizing the average delay as the goal, and pays less attention to resource load balancing. When the traffic scale is large, the scheduling success rate is lower than that of SRGD. The HDSR redundant path fault tolerance method requires more resources for each flow to be successfully scheduled, so the scheduling success rate is the lowest under limited resources. HSFS adopts a shared fault-tolerant segment fault-tolerant method that is more efficient than HDSR in resource utilization, so the scheduling success rate is relatively high.
[0247] Figure 8 FIG. 4 is a schematic diagram showing the change in the number of high-load links with the number of time-sensitive flows during the simulation process of an embodiment of the present invention. Figure 8 As shown, the hll of each strategy t As the network traffic scale increases, the number of successfully scheduled flows increases. Among them, SRGD ensures the highest scheduling success rate among all strategies while making hll t At least, HDSR has a lower scheduling success rate than DRLS and DIGS because it plans multiple redundant paths for the flow. t However, it is higher than the latter two. Therefore, the effective network utilization of HDSR is low and has a negative impact on the scheduling and routing of subsequent flows.
[0248] Impact of the number of abnormal nodes on scheduling performance:
[0249] In order to simulate the occurrence of node failures and link interruptions in abnormal scenarios, after completing all traffic scheduling in normal scenarios, 3, 6, and 12 nodes will randomly fail in 100 network nodes, and the corresponding links will also be interrupted. Each strategy will reschedule the flows related to the failures. Among them, DIGS, because the GCN used is greatly affected by the network topology, only modifies the link status of the network nodes and does not change the existing network topology, just like SRGD.
[0250] Fig. 9 FIG. 4 is a schematic diagram showing the change of the scheduling success rate under different numbers of faulty nodes during the simulation process of an embodiment of the present invention. Fig. 9 As shown in the figure, the scheduling success rate of each strategy decreases to varying degrees in abnormal scenarios. Among them, SRG D is better adapted to TSN in abnormal scenarios because GAT can perceive the difference between abnormal nodes and normal nodes, making the scheduling success rate the best compared with other strategies. HDSR relies on the fault tolerance method of redundant paths. When 6 nodes fail, the scheduling success rate does not drop much compared with normal conditions. However, when there are 12 faulty nodes, the fault tolerance capability fails because the redundant paths of multiple flows are interrupted. In addition, the scheduling cost of HDSR is high, so the scheduling success rate drops significantly. The shared fault tolerance segment of HSFS is limited. Therefore, when the number of faulty nodes increases and the shared fault tolerance segment is exhausted, the scheduling success rate drops significantly. DRLS has poor network perception of graph structure, so the scheduling success rate drops significantly when facing network topology changes. Although DIGS has excessively reduced scheduling performance due to the modification of the Laplace matrix without network topology changes, the characteristics of abnormal nodes are convoluted when nodes are aggregated, resulting in a significant decrease in its scheduling success rate.
[0251] Fig.10 is a schematic diagram of the change in the number of high-load links under different numbers of fault nodes during the simulation process of an embodiment of the present invention, such as Fig.10 As shown in Figure 2, with the increase of faulty nodes, the strategies hll t And except for SRGD, each strategy hll t The increase shows a trend of increasing first and then decreasing. This is because when there are fewer faulty nodes, the success rate of each strategy for rerouting interrupted flows is higher, which makes the load of the remaining links too heavy. When there are more faulty nodes, fewer interrupted flows are successfully rescheduled, which makes the increase of high-load links smaller. SRGD relies on GAT to perceive the changes in the resource status of each node, and can use the existing resources in abnormal scenarios to flexibly schedule traffic to improve the scheduling success rate. At the same time, it balances the load of network resources as much as possible to accommodate more traffic. Therefore, the success rate of rescheduling interrupted flows remains high, hll t The rising rate shows an increasing trend.
[0252] Impact of the number of MGB layers on scheduling performance:
[0253] Through the above experimental analysis, we can see that SRGD relies on the coding model based on the GAT residual network to perceive the network node status and achieve flexible traffic routing scheduling, and the number of MGB layers will affect the feature extraction ability of the coding model. Therefore, in order to further explore the impact of the number of MGB layers on the algorithm performance, Fig.11 FIG. 4 is a schematic diagram showing the change of the scheduling success rate under different numbers of MGBs during the simulation process of the embodiment of the present invention. Fig.11 As shown in Figure 2, the performance of SRGD is explored under the conditions where the number of node failures is 0, 3, 6, and 12.
[0254] Fig.12 FIG. 4 is a schematic diagram of the change of the number of high-load links under different numbers of MGBs during the simulation process of an embodiment of the present invention. Fig.12 As shown in the figure, although residual connections are added to MGB, the over-smoothing problem cannot be completely eliminated. When the number of MGB layers increases, the information propagation in the multi-layer GAT will make the representation of the nodes tend to cluster together, resulting in a decrease in the distinction between nodes, which in turn affects the performance of the model. Therefore, the scheduling success of SRGD first increases with the increase in the number of MGB layers, and the best effect is obtained when the number of MGB layers is 2, and then decreases with the increase in the number of MGB layers. The figure shows the SRGD network resource utilization rate with different MGB layers. When the number of MGB layers is greater than 2, the SRGD scheduling success rate is small, while hll t This is because the over-smoothing problem affects the scheduling performance, resulting in the failure to select appropriate nodes when scheduling traffic. Therefore, the transmission path of traffic distribution is long, occupying unnecessary network resources, or the distribution link load is too high.
[0255] In an embodiment of the present invention, a scheduling device for transmission tasks of a computing power network is also provided. Fig.13 is a structural block diagram of a scheduling device for transmission tasks of a computing power network provided according to an embodiment of the present invention, such as Fig.13 As shown, the device includes: a first acquisition module 132, a second acquisition module 134 and a processing module 136. The device is described below.
[0256] The first acquisition module 132 is used to obtain the network status of the computing power network based on the software defined network SDN, wherein the network status includes the status of the transmission nodes and the status of the transmission links in the computing power network, and the computing power network includes faulty transmission nodes and / or faulty transmission links; the second acquisition module 134 is connected to the above-mentioned first acquisition module 132, and is used to obtain the target transmission task of the computing power network; the processing module 136 is connected to the above-mentioned second acquisition module 134, and is used to input the network status and the target transmission task into the target network model to obtain the scheduling route of the target transmission task, wherein the target network model reconstructs the node state characteristics of the transmission nodes and the link flow characteristics of the transmission links in the computing power network based on the multi-head graph attention residual network, and uses the attention mechanism to adjust the weights of the node state characteristics and the weights of the link flow characteristics; based on the adjusted weights of the node state characteristics and the weights of the link flow characteristics, a duel network is used to select the transmission link for the target transmission task, wherein the multiple transmission links obtained hop by hop based on the multi-head graph attention residual network and the duel network constitute the scheduling route.
[0257] In an embodiment of the present invention, a computer device is also provided, including: a memory and a processor, the memory storing a computer program; the processor, used to execute the computer program stored in the memory, and when the computer program is running, the processor executes any one of the above-mentioned scheduling methods for transmission tasks of the computing power network.
[0258] In an embodiment of the present invention, a computer-readable storage medium is also provided, characterized in that the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute a scheduling method for transmission tasks of the computing power network described above.
[0259] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0260] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0261] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0262] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0263] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0264] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0265] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for scheduling transmission tasks of a computing network, characterized in that: include: Acquire a network status of a computing power network based on a software defined network (SDN), wherein the network status includes a status of a transmission node and a status of a transmission link in the computing power network, and the computing power network includes a faulty transmission node and / or a faulty transmission link; Obtaining the target transmission task of the computing power network; The network state and the target transmission task are input into the target network model to obtain the scheduling route of the target transmission task, wherein the target network model reconstructs the node state characteristics of the transmission nodes in the computing network and the link flow characteristics of the transmission link based on the multi-head graph attention residual network, and uses the attention mechanism to adjust the weights of the node state characteristics and the weights of the link flow characteristics; based on the adjusted weights of the node state characteristics and the weights of the link flow characteristics, a duel network is used to select the transmission link for the target transmission task, wherein the multiple transmission links obtained hop by hop based on the multi-head graph attention residual network and the duel network constitute the scheduling route.
2. The method according to claim 1, characterized in that The obtaining of the network status of the computing network based on the software defined network SDN includes: Obtaining the topological structure of the computing power network; Acquire a set of transmission nodes in the topology structure and a set of transmission links in the topology structure; Determining the state of each transmission node in the transmission node set includes at least one of the following: the capacity upper limit of the port of the transmission node, the different priority sending queues virtualized by the circular queue and forwarding queue on the port of the transmission node through the SDN; the resource utilization rate of the transmission node, the resource utilization rate of the sending queue, the resource utilization rate of the computing network, the status of the traffic that has been scheduled on the transmission node, the status of the traffic that is being scheduled on the transmission node, and whether the transmission node is a faulty node; Determining the state of each transmission link in the transmission link set includes at least one of the following: the transmission rate of the transmission link, the maximum data frame length of the transmission link, the propagation delay of the transmission link, the synchronization delay of the transmission link, the load rate of the transmission link, and whether the transmission link is a faulty link.
3. The method according to claim 1, characterized in that The obtaining of the target transmission task of the computing power network includes: Acquire multiple transmission tasks in the computing power network and the priorities of the multiple transmission tasks; Based on the priorities of the multiple transmission tasks, selecting a candidate transmission task with the highest priority from the multiple transmission tasks; When there are multiple candidate transmission tasks with the highest priority, the candidate transmission task with the earliest task request time is selected as the target transmission task.
4. The method according to claim 3, characterized in that The obtaining the priorities of the multiple transmission tasks includes: It is determined that the priority of the transmission task corresponding to the flow that needs to be rerouted is higher than the priority of the transmission task corresponding to the normal flow.
5. The method according to claim 1, characterized in that The multi-head graph attention residual network in the target network model includes multiple layers, each layer has multiple independent attention mechanisms, and each attention mechanism is used to adaptively adjust the weight of each neighbor link information according to the traffic scheduling status indicated by the current layer input, selectively focus on key information, and perform weighted fusion of information transmission between different links to obtain output.
6. The method according to claim 1, characterized in that Before inputting the network state and the target transmission task into the target network model to obtain the scheduling route of the target transmission task, the method further includes: Obtain a sample set for training the initial network model; Based on the sample set, the MGAR-based Priority Experience Replay Dual Deep Q Network PER-MD3QN algorithm is used to train the initial network model to obtain the target network model, wherein the PER-MD3QN algorithm includes three elements: state, action, and reward, wherein the state is the state of the transmission node and the state of the transmission link in the computing power network, the action is to output a suitable route for each flow according to the state and send it to the corresponding sending queue priority, and the reward is generated by the reward value of successful scheduling, the reward for traffic scheduling and transmission in the intermediate link, and the penalty value of scheduling failure.
7. The method according to claim 6, characterized in that The method of training the initial network model based on the sample set and obtaining the target network model by using the MGAR-based Prioritized Experience Replay Duel Dual Depth Q Network PER-MD3QN algorithm comprises: Based on the sample set, the PER-MD3QN algorithm and the Q-learning training method are used to train the initial network model to obtain the target network model, wherein when the Q-learning training method is used, the Q-value function is decomposed into a state value function and an advantage function, and the state value function is updated based on a time difference error, and the time difference error is the difference between the function value of the current state and the function value of the next state.
8. The method according to claim 6, characterized in that The method of training the initial network model based on the sample set and obtaining the target network model by using the MGAR-based Prioritized Experience Replay Duel Dual Depth Q Network PER-MD3QN algorithm comprises: Based on the sample set, the initial network model is trained using the MGAR-based Prioritized Experience Replay Duel Dual Deep Q Network PER-MD3QN algorithm to obtain an intermediate network model; Determining constraints for optimizing the intermediate network model, wherein the constraints include at least one of: routing hop count constraints, path constraints, optional queues, and capacity constraints; Based on the constraint conditions, the intermediate network model is optimized to obtain the target network model.
9. A device for scheduling transmission tasks of a computing network, characterized in that: include: A first acquisition module is used to acquire a network status of a computing power network based on a software defined network SDN, wherein the network status includes a status of a transmission node and a status of a transmission link in the computing power network, and the computing power network includes a faulty transmission node and / or a faulty transmission link; A second acquisition module is used to acquire the target transmission task of the computing power network; A processing module is used to input the network state and the target transmission task into a target network model to obtain a scheduling route for the target transmission task, wherein the target network model reconstructs the node state characteristics of the transmission nodes in the computing network and the link flow characteristics of the transmission link based on a multi-head graph attention residual network, and uses an attention mechanism to adjust the weights of the node state characteristics and the weights of the link flow characteristics; based on the adjusted weights of the node state characteristics and the weights of the link flow characteristics, a duel network is used to select a transmission link for the target transmission task, wherein the multiple transmission links obtained hop by hop based on the multi-head graph attention residual network and the duel network constitute the scheduling route.
10. A computer device, characterized in that: include: Memory and processor, The memory stores a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is running, the processor executes the scheduling method for transmission tasks of the computing power network described in any one of claims 1 to 8.
Citation Information
Patent Citations
Computing task scheduling method oriented to computing power network and related equipment
CN114745317A
Distributed intelligent routing method based on graph attention network
CN115396366A
Computing power routing method and device, equipment and storage medium
CN116915691A
Calculation power distribution network online scheduling method based on dual deep reinforcement learning
CN117834624A
Computing power routing method and system based on deep reinforcement learning and graph neural network
CN117896306A
Cited By
Flow scheduling method and device based on distributed network, medium and product
CN119299388A
Micro-service fault-tolerant scheduling method based on reinforcement learning in computing power network
CN119324927A
Optimal redundancy transmission scheduling method and system for industrial control system
CN119717730A
SDN routing method and architecture based on graph attention mechanism and dynamic priority playback
CN120321167A
SDN routing method and architecture based on graph attention mechanism and dynamic priority replay
CN120321167B
