Time-sensitive traffic online scheduling method and device based on deep reinforcement learning
Through the time-sensitive traffic online scheduling method based on deep reinforcement learning, the dual deep Q network is used to optimize the switch queue and network topology, solving the problems of low resource utilization and poor transmission performance in time-sensitive networks, and achieving more efficient resource utilization and real-time.
Patent Information
- Application Number
- CN202211204257.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-09-29
AI Technical Summary
In the existing technology, time-sensitive networks have low resource utilization, poor traffic transmission performance, and low real-time scheduling, and cannot meet the needs of high bandwidth, high reliability, high real-time performance, and high scalability.
Adopting a time-sensitive traffic online scheduling method based on deep reinforcement learning, by building a system model and a traffic scheduling state model, using a dual deep Q network for dynamic scheduling, optimizing the resource configuration of the switch queue and network topology information, realizing dynamic adjustment and flow scheduling optimization.
It improves network resource utilization, enhances transmission performance and real-time performance, reduces planning and configuration time overhead, and improves algorithm fault tolerance.
Smart Images

Figure CN115567466B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of switching networks, and in particular to a method and device for online scheduling of time-sensitive traffic based on deep reinforcement learning. Background Art
[0002] In many cyber-physical systems, traditional communication networks can no longer meet the needs of increasing data and widely distributed networks. For example, in the field of avionics, the current traditional technologies based on 1553B and CAN bus protocols have reached their limits in terms of the growing communication bandwidth requirements. At the same time, in order to meet the protocol requirements of high bandwidth, high reliability, high real-time performance, and high scalability, time-sensitive networks, based on traditional Ethernet, provide technical guarantees through mechanisms such as precise clock synchronization, high-precision data scheduling, and intelligent network configuration. In order to achieve precise forwarding control of traffic, time-sensitive networks use a time-aware mechanism to control the gate switch status on the switch egress port queue according to time, but this mechanism requires complex calculations to configure a gating list for each queue of each egress port of the switch.
[0003] As a simplified version of the time-aware mechanism, the circular queue forwarding mechanism provides deterministic and easily calculable delays for time-sensitive data without the need for complex switch configuration. For example, multiple time-sensitive data can be aggregated into the same queue without considering the input and output timing of the data packets without exceeding the total capacity of the switch queue. However, the queue length of a network switch is limited. Once a queue overflows, the corresponding time-sensitive data will be discarded, which reduces the network transmission performance and wastes other queue resources. At the same time, network traffic scheduling usually adopts a static calculation method, which requires several hours to calculate all time-sensitive flows in advance. The huge computational overhead makes the static traffic scheduling method unsuitable for the automation and real-time scenarios considered by time-sensitive networks. Therefore, how to improve network transmission performance and resource utilization while taking into account the real-time nature of data transmission has become an urgent problem to be solved in the research of time-sensitive networks. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method and device for online scheduling of time-sensitive traffic based on deep reinforcement learning, so as to solve the technical problems existing in the prior art of low network resource utilization, poor traffic transmission performance and low scheduling real-time performance.
[0005] In order to solve the above technical problems, the present invention provides a time-sensitive traffic online scheduling method based on deep reinforcement learning, including the following process:
[0006] S1. Obtain network resource configuration and network topology information of the time-sensitive network from the scheduling management center;
[0007] S2. Load the trained traffic scheduling model on the traffic scheduling platform, and input the network resource configuration, network topology structure and pre-scheduling traffic information; then measure the network parameters of the traffic scheduling model on the traffic scheduling platform;
[0008] S3,systematic modeling of traffic scheduling in time-sensitive networks based on the round-robin queue forwarding mechanism;
[0009] S4. Obtain online traffic information to be scheduled in the time-sensitive network from the scheduling management center to update the system model established in step S3 and select hyperparameters of the traffic scheduling model;
[0010] S5. Construct a traffic scheduling state model according to the system model updated in step S4 and the information of online traffic;
[0011] S6, using a fully connected convolutional neural network to extract the characteristics of the system model and the characteristics of the online traffic from the traffic scheduling state model established in step S5 and construct a traffic scheduling action model, and using a greedy strategy to select the best action for traffic scheduling from the traffic scheduling action model;
[0012] S7, judging whether the online traffic in the system model is successfully scheduled, building a traffic scheduling reward model according to the judgment result, and updating the queue resource information in the system model and the network parameters of the traffic scheduling model according to the result of the traffic scheduling reward model;
[0013] S8: According to the online traffic scheduling planning result output by the traffic scheduling model, the gating list of each switch in the traffic scheduling platform is sent down. Each switch needs to open the corresponding queue of the corresponding time slot according to the gating list to complete the scheduling.
[0014] As an improvement of the time-sensitive traffic online scheduling method based on deep reinforcement learning of the present invention:
[0015] The process of system modeling described in step S3 is:
[0016] S3.1: Based on the network resource configuration and network topology information of the time-sensitive network on the traffic scheduling platform, the network is constructed as a directed graph G = {V, L}, where V represents the set of network switch nodes and end systems, and L represents the physical link connection between each node;
[0017] S3.2: construct link instance information according to switch resource configuration in the network;
[0018] S3.3: construct data flow instance information according to the pre-scheduled traffic information and link instance information, and obtain the set of switch nodes that the data flow needs to pass through;
[0019] S3.4: construct data frame instance information according to the link instance information and the data flow instance information, and then construct a gating configuration of the network switch;
[0020] S3.5: Combined with the key scheduling constraints of the circular queue forwarding mechanism, the possible scheduling time slot range for the data frame to meet the constraints is calculated, and the optimal scheduling time slot is selected to perform system modeling on the traffic scheduling of the time-sensitive network. The established system model is stored on the traffic scheduling platform.
[0021] As a further improvement of the time-sensitive traffic online scheduling method based on deep reinforcement learning of the present invention:
[0022] The traffic scheduling state model in step S5 is:
[0023] Obtain current traffic information and queue resource allocation from the traffic scheduling platform and combine them to form a traffic scheduling state model:
[0024] s=<flow,C>
[0025] Among them, flow is the current traffic information, and C represents the queue resource allocation in the current state.
[0026] As a further improvement of the time-sensitive traffic online scheduling method based on deep reinforcement learning of the present invention:
[0027] The traffic scheduling action model in step S6 includes a set of states of all queues of all switches being turned on or off in each time slot; the action information of the optimal action of the traffic scheduling can be expressed as: a t =[a t,1 , ..., a t,n , ..., a t,M*N ], a t,n ∈{0,1}, where a t,n Represents the action of switch queue n at time interval t, 0 and 1 represent closing and opening respectively.
[0028] As a further improvement of the time-sensitive traffic online scheduling method based on deep reinforcement learning of the present invention:
[0029] The construction process of the traffic scheduling reward model in step S7 is:
[0030] S7.1. Calculate the switch queue bandwidth resource utilization rate and the remaining bandwidth in the queue of the traffic scheduling platform according to the link bandwidth, reserved bandwidth and queue length parameters of the traffic scheduling platform;
[0031] S7.2. According to the optimal action of the traffic scheduling described in step S6, the time slot and queue scheduling corresponding to the online traffic is performed, and the online traffic scheduling is planned and configured;
[0032] S7.3, determine whether the online traffic meets all the functional specification technical constraints and system parameter constraints of the system model based on the IEEE 802.1Qch standard. If so, the online traffic scheduling is successful. If not, the online traffic scheduling fails, and the execution result of step 7.2 is cleared;
[0033] S7.4. Constructing a traffic scheduling reward model:
[0034]
[0035] Among them, Fail is the reward value when online traffic scheduling fails, cap and cap′ represent the maximum occupied bandwidth in the current system link and the maximum occupied bandwidth in the system link after taking action, respectively, and α is the penalty coefficient;
[0036] Then, according to the judgment result of whether the online traffic scheduling is successful in step 7.3, if the scheduling fails, the reward value Fail is given according to formula (2), otherwise, return to step 7.1 to recalculate the switch queue bandwidth resource utilization and bandwidth surplus of the traffic scheduling platform, and according to the change in bandwidth resource utilization before and after the best action of executing traffic scheduling, the reward value for successful scheduling is given according to formula (2).
[0037] As a further improvement of the time-sensitive traffic online scheduling method based on deep reinforcement learning of the present invention:
[0038] The traffic scheduling model is a dual-depth Q network;
[0039] The network parameters of the traffic scheduling model on the traffic scheduling platform include the maximum capacity of the experience replay cache, the batch size, and the target network parameter update times;
[0040] The network resource configuration includes link bandwidth, reserved bandwidth size, and queue length parameters of the switch.
[0041] The present invention also provides an online scheduling device used in the time-sensitive traffic online scheduling method based on deep reinforcement learning:
[0042] It includes a first acquisition module, a generation module, a second acquisition module, a calculation module, an execution module, a judgment module and a sending module which are connected in sequence by signals. The setting module is connected to the second acquisition module by signal, the first acquisition module is connected to the scheduling management center by signal, and the sending module is connected to each switch by signal.
[0043] As an improvement of the online scheduling device of the present invention:
[0044] The first acquisition module is used to obtain network resource configuration and network topology information of the time-sensitive network from the scheduling management center;
[0045] The generation module is used to perform system modeling on traffic scheduling of a time-sensitive network according to a circular queue forwarding mechanism;
[0046] The second acquisition module is used to obtain online traffic information that needs to be scheduled in the time-sensitive network;
[0047] The setting module is used to build a traffic scheduling state model according to the system model and the information of online traffic;
[0048] The calculation module is used to construct and calculate the traffic scheduling state model according to the information of the system model and the information of the online traffic;
[0049] The execution module is used to extract the characteristics of the system model and the characteristics of the online traffic from the traffic scheduling state model and construct a traffic scheduling action model, and select the best action for traffic scheduling from the traffic scheduling action model;
[0050] The judgment module is used to judge whether the online traffic in the system model is successfully scheduled, build a traffic scheduling reward model according to the judgment result, and update the system model and the traffic scheduling model;
[0051] The sending module is used to send the gating list of each switch in the traffic scheduling platform according to the online traffic scheduling planning result output by the traffic scheduling model.
[0052] The beneficial effects of the present invention are mainly reflected in:
[0053] 1. The present invention uses a dual-depth Q network as a traffic scheduling model to dynamically adjust the resource configuration information and network topology information of the traffic scheduling platform, thereby reducing the planning and configuration time overhead during online traffic scheduling;
[0054] 2. The present invention improves the resource utilization of the switch queue during time-sensitive traffic scheduling and enhances the transmission performance of the network by setting the target value of the traffic scheduling reward model and updating the system model;
[0055] 3. The present invention extracts features of the traffic scheduling state model and constructs an action model based on a deep reinforcement learning neural network. The dimension of the neural network input vector is independent of the number of network switches in the actual system model, the network topology structure of the system model, and the number of switch queues, but is only related to the bandwidth resource utilization of the switch queues in the system model. When the network topology changes, there is no need to adjust the neural network, so it is topology-independent and the fault tolerance of the algorithm is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The specific implementation modes of the present invention are further described in detail below with reference to the accompanying drawings.
[0057] Figure 1A schematic diagram of a time-sensitive traffic online scheduling method based on deep reinforcement learning of the present invention;
[0058] Figure 2 A flow chart of system modeling of traffic scheduling of a time-sensitive network according to a circular queue forwarding mechanism of the present invention;
[0059] Figure 3 A flow chart of the present invention for constructing a traffic scheduling reward model and updating the system model according to the result of judging whether the online traffic in the system model is successfully scheduled;
[0060] Figure 4 It is a block diagram of an online scheduling device corresponding to the time-sensitive traffic online scheduling method based on deep reinforcement learning of the present invention. DETAILED DESCRIPTION
[0061] The present invention is further described below in conjunction with specific embodiments, but the protection scope of the present invention is not limited thereto:
[0062] Example 1: Time-sensitive traffic online scheduling method based on deep reinforcement learning, such as Figure 1 As shown, the specific steps are as follows:
[0063] 1. Offline training of time-sensitive traffic scheduling models suitable for different network resources and network topologies, measuring the network parameters of the traffic scheduling model on the traffic scheduling platform, and loading the model and related information on the traffic scheduling platform.
[0064] The traffic scheduling model with different time-sensitive network resource configurations and time-sensitive network topologies is trained on an offline computer. Considering the large amount of time-sensitive traffic information and the strong real-time requirements, the traditional method will directly solve the problem with high algorithm complexity and time cost. Therefore, the traffic scheduling model adopts the dual-depth Q network algorithm framework commonly used in network problems, and uses the method based on deep reinforcement learning to improve the efficiency of problem solving and optimal allocation. Then the trained traffic scheduling model is loaded into the traffic scheduling platform, and the corresponding network resource configuration, network topology and pre-scheduling traffic information are input again. The network parameters of the traffic scheduling model on the traffic scheduling platform are experimentally measured. The network parameters mainly include the maximum capacity of the experience replay cache, the batch size, and the number of target network parameter updates. In the specific implementation, the traffic scheduling platform refers to the hardware device that can run the deep neural network model, including artificial intelligence processors, general processors, graphics processors, field programmable logic gate arrays and other devices.
[0065] Offline training is conducive to dynamically and accurately budgeting model parameters during actual operation, so that the best planning configuration of scheduling results can be obtained under limited computing resources. The traffic scheduling platform also sets pre-scheduling traffic information to detect whether the traffic scheduling planning results meet the circular queue forwarding mechanism and whether the parameters of the traffic scheduling model are reasonable. According to the actual online traffic scheduling information, the switch's gating list can be configured more accurately. The parameter setting of the traffic scheduling model can plan online traffic scheduling to avoid wasting a large amount of resources in the switch queue in continuous time slots. Their settings can effectively avoid wasting computing resources and over-planning scheduling. In addition, the traffic scheduling platform also includes network resource configuration, which includes configuration information of the entire network, such as link bandwidth, reserved bandwidth size, switch queue length parameters, etc.
[0066] 2. Obtain network resource configuration and network topology information of the time-sensitive network from the dispatch management center;
[0067] The perception layer in the network physical system, including sensors and cameras, identifies objects and collects corresponding industrial data. The dispatching management center then accesses and manages the industrial data and reads it into the storage space of the traffic scheduling platform, that is, pre-scheduling traffic information is generated in the storage space of the traffic scheduling platform.
[0068] 3: System modeling of traffic scheduling in time-sensitive networks based on the round-robin queue forwarding mechanism, e.g. Figure 2 As shown;
[0069] 3.1: According to the network resource configuration and network topology information of the time-sensitive network on the traffic scheduling platform, the network is constructed as a directed graph G = {V, L}, where V represents the set of network switch nodes and end systems. The end system is the source node and destination node of the time-sensitive flow. Data can only be exchanged between terminals, and the switch only forwards data. In a time slot, data only completes one hop of transmission. L represents the physical link connection between each node. Represents links between nodes, where all physical links are full-duplex links based on Ethernet.
[0070] 3.2: Build link instance information based on switch resource configuration in the network;
[0071] According to the data flow communication path in the network, i.e., routing information, the link between two connected nodes is represented as [v a , v b ], the first node v a is the source node, the second node v b is the target node and is a single scheduling resource, that is, from the scheduling perspective, [v a , v b ] and [v b, v a ] have different scheduling directions, and these two links are two different resources. Each link instance information contains transmission speed, transmission delay and available queue information of the egress port, where the link transmission delay is caused by the propagation delay on the medium.
[0072] 3.3: Construct data flow instance information based on pre-scheduled traffic information and link instance information;
[0073] The data periodically transmitted from the sending node to the receiving node is called data flow instance information. Each data flow instance information contains the source node, the destination node, the data packet size, the sending period, the maximum allowed end-to-end delay information and the routing information. The set of switch nodes that the data flow needs to pass through is obtained according to the routing information of the data flow instance information.
[0074] 3.4: Based on the link instance information and data flow instance information, construct the data frame instance information, further divide the data flow granularity, and then optimize the time slot selection range of traffic scheduling planning;
[0075] According to the data flow instance information on each link in the network, the data flow can be further divided into data frame instance information. Each data frame instance information of the link includes offset, continuous transmission time, cycle and storage queue information. Among them, the offset of the data frame instance information is the time slot corresponding to the data frame when it is sent from the source node. According to the offset of the data frame instance information, the gating configuration of the network switch can be constructed; the continuous transmission time of the data frame instance information The packet size information (s i .size) and the transmission speed of link instance information ([v a , vb].s) is calculated, that is:
[0076]
[0077] Among them, slot is the time slot length of the scheduling plan.
[0078] For example, according to the IEEE 802.1Q standard, each flow cannot transmit data exceeding the maximum transmission unit, which is 1542 bytes. Then, it can be calculated that the duration of an Ethernet frame with a maximum transmission unit on a link with a transmission speed of 1 Gbit / sec is 12.336 μsec.
[0079] 3.5: Combined with the key scheduling constraints of the circular queue forwarding mechanism, the possible scheduling time slot range of the data frame that meets the constraints is calculated, and the optimal scheduling time slot is selected to perform system modeling on the traffic scheduling of the time-sensitive network. The established system model is stored on the traffic scheduling platform;
[0080] According to the IEEE 802.1Qch standard, the circular queue forwarding mechanism should meet the functional specification technical constraints and system parameter constraints, and plan a reasonable scheduling time slot range, where the maximum length of the time slot is the greatest common multiple of the transmission period of all data flow instances. According to the IEEE 802.1Qch standard, the offset information of the data frame instance information and the switch storage queue information are calculated. The offset information of the data frame instance information and the switch storage queue information can be combined with the data flow instance information to perform traffic scheduling planning on the network switch, and the traffic scheduling planning configuration is obtained and stored in the traffic scheduling platform.
[0081] 4: Obtain the online traffic information that needs to be scheduled in the time-sensitive network, update the system model established in step 3.5, and select the hyperparameters of the traffic scheduling model;
[0082] Obtain online traffic information from the scheduling management center and convert it into data flow instance information and data frame instance information, and update the system model of the specified time slot established in step 3.5. Select the hyperparameters of the traffic scheduling model from the traffic scheduling platform according to the periodic information of the system model and data frame instance information, including discount factor, learning rate and batch size, etc., to avoid adverse effects on the traffic scheduling model caused by changes in network topology or time-sensitive flow information.
[0083] 5: Construct a traffic scheduling state model based on the system model updated in step 4 and the information of online traffic;
[0084] The current traffic information flow and queue resource allocation C are obtained from the traffic scheduling platform, and the current traffic information and queue resources are combined to form a traffic scheduling state model, that is, s =<flow,C> ,As the amount of traffic input into the network continues to increase, the queue resources of each switch become less and less, and C represents the queue resource allocation in the current state.,If there are M switches in the system model, each switch has N queues, and all data flow instance information can be divided into k time slots according to the,scheduling period, then the traffic scheduling state model should contain at least,an M*N row and k column matrix.
[0085] 6: Extract the characteristics of the system model and the characteristics of the online traffic according to the traffic scheduling state model established in step 5 to build a traffic scheduling action model, execute the action selection strategy on the traffic scheduling action model, and obtain the optimal action for traffic scheduling;
[0086] A fully connected convolutional neural network is used to extract features from the traffic scheduling state model and construct a traffic scheduling action model. The traffic scheduling action model contains the state set of all queues of all switches that are turned on or off in each time slot. Based on the traffic scheduling action model, a greedy strategy is used to select the best action for traffic scheduling. The action information can be represented as a vector a t =[at,1 , ..., a t,n , ..., a t,M*N ], a t,n ∈{0,1}, where a t,n It represents the action of switch queue n in time interval t. 0 and 1 represent closing and opening respectively. The number of non-zero elements in the traffic scheduling action model is the number of switch queues scheduled to be opened in a certain time slot in the system.
[0087] The advantage of this data processing method is that the dimension of the neural network input vector has nothing to do with the number of network switches in the actual system model, the network topology structure of the system model, and the number of switch queues, but is only related to the bandwidth resource utilization of the switch queues in the system model. When the network topology changes, there is no need to adjust the neural network, so it is topology-independent and the fault tolerance of the algorithm is improved.
[0088] 7: Determine whether the online traffic in the system model is successfully scheduled, build a traffic scheduling reward model based on the judgment result, and update the system model; specifically, Figure 3 As shown, the following process is included:
[0089] 7.1: Calculate the bandwidth resource utilization and remaining bandwidth of the switch queue of the traffic scheduling platform;
[0090] Based on the link bandwidth, reserved bandwidth, and queue length parameters on the traffic scheduling platform, calculate the queue bandwidth resource ratio of the scheduled traffic and the remaining bandwidth in the queue.
[0091] 7.2: Perform time slot and queue planning for online traffic on the traffic scheduling platform based on the best action for traffic scheduling;
[0092] According to the optimal traffic scheduling action obtained in step 6, the time slot and queue scheduling corresponding to the online traffic is performed, that is, the online traffic scheduling is planned and configured.
[0093] 7.3: Determine whether the online traffic meets all functional specification technical constraints and system parameter constraints of the system model based on the IEEE 802.1Qch standard. If so, the online traffic scheduling is successful;
[0094] Otherwise, the online traffic scheduling fails and the execution result of step 7.2 is cleared; for example, according to the online traffic scheduling planning results, if there is a traffic scheduling plan that does not meet the scheduling constraints, such as unreasonable time slot planning causing the end-to-end delay to exceed the system parameter value, or unreasonable queue planning causing data packet loss, etc., it will be judged as a scheduling failure and the online traffic planning results of the scheduling failure will be cleared.
[0095] 7.4: Build a traffic scheduling reward model, and then recalculate the switch queue bandwidth resource utilization and bandwidth surplus of the traffic scheduling platform based on the judgment result of whether the online traffic scheduling is successful in step 7.3;
[0096] The construction of the traffic scheduling reward model mainly considers two aspects: one is whether the current flow scheduling plan meets its bandwidth requirements, and the other is the remaining bandwidth of the queue of the selected switch. Because for the same time-sensitive flow scheduling plan, the smaller the remaining bandwidth of the queue on the switch, the more resources of the entire network will be occupied, which is less conducive to the network accommodating more flows. The traffic scheduling reward model is shown in the following formula:
[0097]
[0098] Among them, Fail is the reward value when online traffic scheduling fails, cap and cap′ respectively represent the maximum occupied bandwidth in the current system link and the maximum occupied bandwidth in the system link after taking action, α is the penalty coefficient, which is a penalty term, so a minus sign is added in front. In the specific implementation, if the scheduling fails, the reward is given as Fail, otherwise return to step 7.1 to recalculate the bandwidth resource utilization and bandwidth surplus of the switch queue of the traffic scheduling platform, and according to the change of bandwidth resource utilization before and after the best action of executing traffic scheduling, the reward value of successful scheduling is given according to formula (2).
[0099] 7.5: According to the traffic scheduling reward model result, that is, the reward value, update the queue resource information in the system model and the network parameters of the traffic scheduling model on the traffic scheduling platform, and output the online traffic scheduling planning result;
[0100] The traffic scheduling reward model and scheduling planning results are written into the system model, and the queue resources in the system model are reallocated. The traffic scheduling platform updates the network parameters of the traffic scheduling model based on a set of data consisting of the online traffic scheduling state model, the traffic scheduling action model, the traffic scheduling reward model and the state of the next traffic scheduling, and outputs the online traffic scheduling planning results.
[0101] 8: According to the online traffic scheduling planning results output by the traffic scheduling model, the gating list of each switch in the traffic scheduling platform is sent down.
[0102] The scheduling plan for the current traffic has been determined, that is, the time slots and queues for scheduling on the current traffic path to each switch in the traffic scheduling platform have been determined. Each switch needs to open the corresponding queue of the corresponding time slot according to the gating list to complete the scheduling.
[0103] It can be seen from the above embodiments that the present application can select different traffic scheduling models to dynamically adjust the resource configuration information and network topology information of the traffic scheduling platform, thereby reducing the planning and configuration time overhead during online traffic scheduling; according to the traffic scheduling platform information, the system model, traffic scheduling state model, traffic scheduling action model, and traffic scheduling reward model are constructed; by setting the target value of the traffic scheduling reward model and updating the system model, the resource utilization of the switch queue during time-sensitive traffic scheduling is improved, and the transmission performance of the network is enhanced.
[0104] The present invention also provides an online scheduling device corresponding to the time-sensitive traffic online scheduling method based on deep reinforcement learning, such as Figure 4 As shown, it includes: a first acquisition module 21, a generation module 22, a second acquisition module 23, a calculation module 25, an execution module 26, a judgment module 27 and a sending module 28 which are connected in sequence by signals, a setting module 24 is connected by signals to the second acquisition module 23, the first acquisition module 21 is connected by signals to the scheduling management center, and the sending module is connected by signals to each switch, as shown in FIG. Figure 4 shown.
[0105] A first acquisition module 21 is used to acquire resource configuration information and network topology information of a time-sensitive network from a scheduling management center;
[0106] A generating module 22, for generating a system model for time-sensitive network traffic scheduling according to a circular queue forwarding mechanism;
[0107] The second acquisition module 23 is used to obtain online traffic information that needs to be scheduled in the time-sensitive network;
[0108] A setting module 24, used to update the system model according to the online traffic information and select a traffic scheduling model of the system model according to the resource configuration information and the network topology information;
[0109] A calculation module 25, used to construct and calculate a traffic scheduling state model according to the information of the system model and the information of the online traffic;
[0110] An execution module 26 is used to extract the characteristics of the system model and the characteristics of the online traffic according to the traffic scheduling state model to construct an action model for traffic scheduling, and execute an action selection strategy on the action model to obtain an optimal action for traffic scheduling;
[0111] A judgment module 27 is used to judge whether the online traffic in the system model is successfully scheduled, build a traffic scheduling reward model according to the judgment result, and update the system model;
[0112] The sending module 28 is used to send the online traffic scheduling planning result output by the traffic scheduling model to the gating list of each switch in the traffic scheduling platform.
[0113] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail, and will not be repeated here.
[0114] experiment:
[0115] The experiment uses a simulation environment, and the deep learning framework uses Pytorch, which is completed on a computer equipped with an Intel Core i7-10700 CPU (2.9GHz) and 32GB of RAM. The network resource configuration in the traffic scheduling platform is set to a link bandwidth of 1000Mb / s, a reserved bandwidth size of 50Kbit, and the initial value of the queue length is 10 times the maximum transmission unit, that is, 15000B, to ensure the integrity of data transmission. The experiment refers to the industrial automation network traffic characteristics described in the International Electrotechnical Commission (IEC) / IEEE 60802 to randomly generate 500 traffic information. According to the training and convergence experience of the dual-depth Q network during the experiment, Fail is set to -20. The experiment of the present invention is compared with the mainstream offline scheduling method SMT algorithm, and the most popular Z3 solver is used to encode the SMT problem.
[0116] The present invention is compared with the mainstream offline scheduling method SMT algorithm on two different topologies to verify the performance of the present invention. The network size and the selected configuration are inspired by industrial use cases. The topologies used are linear topology and ring topology used in industrial control, both of which contain 8 switches. The flow data of the linear topology can be transmitted bidirectionally in the switch nodes, and the flow data of the ring topology can only be transmitted along one direction between the switch nodes. The flow in the network based on the linear topology can be transmitted bidirectionally. Since the application of the queue analysis method is not limited by the network scale, the number of ports of each switch is the same.
[0117] The capacity of the link in the network is B, and the reserved bandwidth is Preserve. The number of frames in each queue in each time slot can be obtained through the gate control list (GCL) of each switch. t To indicate that the size of the data frame instance is f i .szie, and then calculate the load occupied by each flow in each time slot, using C i To express, then:
[0118]
[0119] Therefore, the formula for bandwidth resource utilization, i.e. bandwidth satisfaction, is:
[0120]
[0121] Among them, sum_flow is the total number of flow information, which is preset to 500.
[0122] The bandwidth satisfaction of the present invention under linear topology and ring topology is 98.7% and 85.2% respectively. The bandwidth satisfaction in the ring topology is slightly lower than that in the linear topology. The reason is that only one-way transmission can be carried out between all switches in the ring topology, while the linear topology is bidirectional transmission. Therefore, the streams scheduled in the ring topology are easily gathered on the same resource block. The bandwidth satisfaction of the SMT algorithm is 52.1% and 46.8% respectively. Compared with the SMT algorithm, the bandwidth satisfaction of the present invention is improved by 1.89 times and 1.82 times respectively. In terms of the real-time performance of data transmission, the present invention can reach the millisecond level, that is, 170ms, while SMT takes 11.4s. The real-time performance of the present invention is improved by two orders of magnitude because the neural network in deep reinforcement learning can effectively extract traffic features and reduce computing time overhead.
[0123] Finally, it should be noted that the above examples are only some specific embodiments of the present invention. Obviously, the present invention is not limited to the above embodiments, and there are many variations. All variations that can be directly derived or associated with the content disclosed by a person skilled in the art should be considered as the protection scope of the present invention.
Claims
1. A time-sensitive traffic online scheduling method based on deep reinforcement learning, characterized by The process includes: S1. Obtain network resource configuration and network topology information of the time-sensitive network from the scheduling management center; S2. Load the trained traffic scheduling model on the traffic scheduling platform, and input the network resource configuration, network topology structure and pre-scheduling traffic information; then measure the network parameters of the traffic scheduling model on the traffic scheduling platform; S3,systematic modeling of traffic scheduling in time-sensitive networks based on the round-robin queue forwarding mechanism; The process of system modeling is as follows: S3.1: Based on the network resource configuration and network topology information of the time-sensitive network on the traffic scheduling platform, the network is constructed as a directed graph G = {V, L}, where V represents the set of network switch nodes and end systems, and L represents the physical link connection between each node; S3.2: construct link instance information according to switch resource configuration in the network; S3.3: construct data flow instance information according to the pre-scheduled traffic information and link instance information, and obtain the set of switch nodes that the data flow needs to pass through; S3.4: construct data frame instance information according to the link instance information and the data flow instance information, and then construct a gating configuration of the network switch; S3.5: Combine the key scheduling constraints of the circular queue forwarding mechanism, calculate the possible scheduling time slot range for the data frame to meet the constraints, select the best scheduling time slot to perform system modeling on the traffic scheduling of the time-sensitive network, and store the established system model on the traffic scheduling platform; S4. Obtain online traffic information to be scheduled in the time-sensitive network from the scheduling management center to update the system model established in step S3 and select hyperparameters of the traffic scheduling model; S5. Construct a traffic scheduling state model according to the system model updated in step S4 and the information of online traffic; S6, using a fully connected convolutional neural network to extract the characteristics of the system model and the characteristics of the online traffic from the traffic scheduling state model established in step S5 and construct a traffic scheduling action model, and using a greedy strategy to select the best action for traffic scheduling from the traffic scheduling action model; S7, judging whether the online traffic in the system model is successfully scheduled, building a traffic scheduling reward model according to the judgment result, and updating the queue resource information in the system model and the network parameters of the traffic scheduling model according to the result of the traffic scheduling reward model; The construction process of the traffic scheduling reward model is as follows: S7.
1. Calculate the switch queue bandwidth resource utilization rate and the remaining bandwidth in the queue of the traffic scheduling platform according to the link bandwidth, reserved bandwidth and queue length parameters of the traffic scheduling platform; S7.
2. According to the optimal action of the traffic scheduling described in step S6, the time slot and queue scheduling corresponding to the online traffic is performed, and the online traffic scheduling is planned and configured; S7.3, determine whether the online traffic meets all the functional specification technical constraints and system parameter constraints of the system model based on the IEEE 802.1Qch standard. If so, the online traffic scheduling is successful. If not, the online traffic scheduling fails, and the execution result of step 7.2 is cleared; S7.
4. Constructing a traffic scheduling reward model: Among them, Fail is the reward value when online traffic scheduling fails, cap and cap′ represent the maximum occupied bandwidth in the current system link and the maximum occupied bandwidth in the system link after taking action, respectively, and α is the penalty coefficient; Then, according to the judgment result of whether the online traffic scheduling is successful in step 7.3, if the scheduling fails, the reward value Fail is given according to formula (2), otherwise, return to step 7.1 to recalculate the switch queue bandwidth resource utilization and bandwidth surplus of the traffic scheduling platform, and according to the change of bandwidth resource utilization before and after the best action of executing traffic scheduling, the reward value of successful scheduling is given according to formula (2); S8: According to the online traffic scheduling planning result output by the traffic scheduling model, the gating list of each switch in the traffic scheduling platform is sent down. Each switch needs to open the corresponding queue of the corresponding time slot according to the gating list to complete the scheduling.
2. The time-sensitive traffic online scheduling method based on deep reinforcement learning according to claim 1 is characterized by: The traffic scheduling state model in step S5 is: Obtain current traffic information and queue resource allocation from the traffic scheduling platform and combine them to form a traffic scheduling state model: s=<flow,C> Among them, flow is the current traffic information, and C represents the queue resource allocation in the current state.
3. The time-sensitive traffic online scheduling method based on deep reinforcement learning according to claim 2 is characterized by: The traffic scheduling action model in step S6 includes a set of states of all queues of all switches being turned on or off in each time slot; the action information of the optimal action of the traffic scheduling can be expressed as: a t =[a t,1 ,…,a t,n ,…,a t,M*N ],a t,n ∈{0,1}, where a t,n Represents the action of switch queue n at time interval t, 0 and 1 represent closing and opening respectively.
4. The time-sensitive traffic online scheduling method based on deep reinforcement learning according to claim 3 is characterized by: The traffic scheduling model is a dual-depth Q network; The network parameters of the traffic scheduling model on the traffic scheduling platform include the maximum capacity of the experience replay cache, the batch size, and the target network parameter update times; The network resource configuration includes link bandwidth, reserved bandwidth size, and queue length parameters of the switch.
5. The online scheduling device used in the time-sensitive traffic online scheduling method based on deep reinforcement learning according to any one of claims 1 to 4, characterized in that: The invention comprises a first acquisition module (21), a generation module (22), a second acquisition module (23), a calculation module (25), an execution module (26), a judgment module (27) and a sending module (28) which are sequentially connected by signals, wherein the setting module (24) is connected by signals to the second acquisition module (23), the first acquisition module (21) is connected by signals to a dispatching management center, and the sending module is connected by signals to each switch.
6. The online scheduling device according to claim 5, characterized in that: The first acquisition module (21) is used to acquire network resource configuration and network topology information of the time-sensitive network from the scheduling management center; The generation module (22) is used to perform system modeling on the traffic scheduling of the time-sensitive network according to the circular queue forwarding mechanism; The second acquisition module (23) is used to acquire online traffic information that needs to be scheduled in the time-sensitive network; The setting module (24) is used to construct a traffic scheduling state model according to the system model and the information of the online traffic; The calculation module (25) is used to construct and calculate a traffic scheduling state model according to the information of the system model and the information of the online traffic; The execution module (26) is used to extract the characteristics of the system model and the characteristics of the online traffic from the traffic scheduling state model and construct a traffic scheduling action model, and select the best action for traffic scheduling from the traffic scheduling action model; The judgment module (27) is used to judge whether the online traffic in the system model is successfully scheduled, build a traffic scheduling reward model according to the judgment result, and update the system model and the traffic scheduling model; The sending module (28) is used to send the online traffic scheduling planning result output by the traffic scheduling model to the gating list of each switch in the traffic scheduling platform.
Citation Information
Patent Citations
Time-sensitive network communication flow scheduling method based on deep reinforcement learning
CN113285872A
Method and device for online planning time sensitive flow, and storage medium
CN114422453A
Cited By
Online extensible configuration method and system for dynamic change of time-sensitive network
CN117792893A
A method and system for dynamically changing online scalable configuration of time-sensitive networks
CN117792893B
