Substation differentiated service flow scheduling method, system and device and storage medium
By constructing A and B dual network transmission models in smart substations and using path preference calculation and gradient descent iterative algorithms, the problem of transmission delay and jitter requirements is solved, efficient and reliable transmission of substation business flows is achieved, and protection and measurement and control are ensured The delay and jitter of business flows are within preset values, improving the reliability and real-time performance of data transmission.
Patent Information
- Application Number
- CN202410852716.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
AI Technical Summary
When the local communication network of smart substations transmits time-sensitive information, it is difficult to meet the delay and jitter requirements, which affects the real-time and reliability of data transmission and may lead to safety issues such as protection failure, malfunction, or abnormal alarms.
Design a differentiated service traffic scheduling method for substations based on TSN gating and traffic shaping mechanisms. By constructing A and B dual network transmission models, using path preference calculation and gradient descent iterative algorithm, the transmission path with the lowest cost is dynamically selected to ensure protection. The delay and jitter of the measurement and control service flow are within the preset values.
It effectively solves the problem of combined optimization of network business traffic scheduling, ensures the bounded transmission delay and jitter of protected measurement and control business flows, realizes dynamic path selection under TSN switches at different levels, and improves the reliability and real-time performance of data transmission. .
Smart Images

Figure CN118740723A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a TSN network service traffic scheduling algorithm, and in particular to a substation differentiated service traffic scheduling method, system, device and storage medium based on TSN gating and traffic shaping mechanism. Background Art
[0002] The local communication network of the smart substation carries the operating status monitoring information of the primary equipment of the power grid, and has the characteristics of extremely high reliability and certainty requirements for industrial control business transmission. If network congestion, network storms, increased delay jitter and other problems occur in the network, affecting the real-time and reliability of data transmission, it will have serious consequences for the message transmission in the interval layer and process layer of the smart substation, leading to protection refusal, malfunction, or alarm abnormality, thus causing safety accidents to the smart substation.
[0003] In order to achieve deterministic low-latency transmission, the IEEE 802 Time-Sensitive Networking Working Group has proposed a series of standards and specifications for link layer enhancement mechanisms and traffic strategies, mainly including time synchronization, traffic scheduling, reliable transmission and network management standards. TSN follows the standard Ethernet protocol system and naturally has better interconnection advantages. It can achieve open Layer 2 forwarding while providing deterministic latency and bandwidth guarantees. In recent years, TSN, as a new generation of Ethernet technology, has been widely used in many fields such as industrial Internet, mobile fronthaul, avionics networks, vehicle networks, professional audio and video, and has received continuous attention from academia and industry.
[0004] When applying time-sensitive networks to local communications in substations, it is difficult to ensure the transmission quality of time-sensitive information flows such as Goose and SV messages, especially the requirements for delay and jitter, because traditional Ethernet uses best-effort transmission. It is necessary to design a new service flow scheduling mechanism to ensure that any transmission path of TSNA and B dual networks can be efficiently selected for specific delay-sensitive service flows to reach protection and measurement and control devices. Summary of the invention
[0005] Purpose of the invention: The purpose of the present invention is to provide a method, system, device and storage medium for scheduling differentiated service traffic in a substation based on TSN gating and traffic shaping mechanism.
[0006] In order to achieve the above technical objectives and the above technical effects, the present invention is implemented through the following technical solutions:
[0007] In a first aspect, the present invention provides a method for scheduling differentiated service flow in a substation, comprising:
[0008] Construct A and B dual network transmission models based on TSN technology for substations;
[0009] A traffic scheduling algorithm is designed based on the dual network transmission model to obtain the optimal path for multi-service traffic transmission, thereby minimizing the path transmission cost and meeting the differentiated traffic transmission performance requirements of multiple services.
[0010] Furthermore, the A and B dual networks based on TSN technology include an interval layer access switch and a process layer aggregation switch. The process layer and interval layer TSN networks constitute the A and B dual networks. The sampling value messages sent by each merging unit are sent to the protection devices A and B through the A and B dual ports, and the status quantity messages of the intelligent units are also sent to the measurement and control devices A and B through the A and B dual ports.
[0011] Furthermore, the A and B dual network models based on TSN technology are:
[0012] G=(V,E)
[0013] Among them, the merging unit, intelligent unit, access switch, aggregation switch, measurement and control device and relay protection device are abstracted as a node set V, and the direct communication link between the nodes is abstracted as a set of edges E in an undirected graph.
[0014] Further, the obtaining of the multi-service traffic transmission search optimal path includes:
[0015] Define s∈V as the source node of the routing request of the periodic service, d∈{V-{s}} as the destination node of the routing request of the periodic service, and let the routing request of the periodic service from the source node s∈V to the destination node d∈V be R(s,d), then the QoS expression of the transmission path is:
[0016]
[0017] Wherein, delay(n) and delay_jitter(n) are the delay and delay jitter of the service traffic passing through node n, respectively; delay(e) and delay_jitter(e) are the delay and delay jitter of the service traffic passing through communication link e, respectively.
[0018] For a certain service flow path request R(s,d), the transmission delay and delay jitter must be less than the preset value D budget , Reasonably set the initial values of the penalty factors λ and μ of the scheduling algorithm, and let M path search agents be responsible for searching the best path based on the calculation and update of the path preference value, where m is the path search agent index variable and t is the iteration variable;
[0019] At the beginning of each iteration of searching for the optimal path, all path search agents are initially located at the source node s. The way they select a path is to calculate the selection probability based on the path preference, and the path with the highest selection probability is the optimal result. During the tth path search iteration, when the path search agent m is located at node i, the probability of selecting a path to node j is calculated as follows:
[0020]
[0021] Among them, passed m (m=1,2,...,M) is the set of nodes selected by the path search agent m, allowed m ={i|i∈N-passed m} is the candidate node set of the path search agent m, N is the number of nodes contained in the set V, l ij is the path length from node i to node j, η ij =1 / l ij ; τ ij (t) is edge e ij In the iterative path search, the remaining preference value is selected. The path search is substituted into the above formula to calculate the probability. The candidate link with the highest probability is selected as the current next-hop link until the transmission path of the destination node d is finally selected. The above operation is performed for all path search agents. In each iteration, the path result R with the lowest cost obtained by all path search agents is retained. * (s,d),
[0022] According to the optimal path result R * (s, d), update the penalty factor of the scheduling algorithm as follows:
[0023] λ=[λ-θ t [D budget -delay(R * (s,d))]] +
[0024] Among them, the operator [z] + is max(z,0), θ t The update step is positive, and it is used to determine whether the penalty factors λ and μ converge. If so, the traffic scheduling algorithm ends, and the optimal path result obtained by this inner iteration is output as the final result; otherwise, it returns to the next iteration until the algorithm converges.
[0025] In a second aspect, the present invention provides a substation differentiated service flow scheduling system, comprising:
[0026] A construction module is used to build a dual network transmission model of A and B based on TSN technology for substations;
[0027] The optimization module is used to design a traffic scheduling algorithm based on the dual network transmission model, obtain the optimal path for multi-service traffic transmission, so as to minimize the path transmission cost and meet the differentiated traffic transmission performance requirements of multiple services.
[0028] Furthermore, the construction module is used to construct an A and B dual network transmission model based on TSN technology for the substation. The A and B dual networks based on TSN technology include an interval layer access switch and a process layer aggregation switch. The process layer and interval layer TSN networks constitute the A and B dual networks. The sampling value messages sent by each merging unit are sent to the protection devices A and B through the A and B dual ports, and the status quantity messages of the intelligent units are also sent to the measurement and control devices A and B through the A and B dual ports.
[0029] Furthermore, the construction module is used to construct an A and B dual network transmission model based on TSN technology for the substation, which is expressed as:
[0030] G=(V,E)
[0031] Among them, the merging unit, intelligent unit, access switch, aggregation switch, measurement and control device and relay protection device are abstracted as a node set V, and the direct communication link between the nodes is abstracted as a set of edges E in an undirected graph.
[0032] Furthermore, the optimization module is used to design a traffic scheduling algorithm according to the dual network transmission model to obtain the optimal path for multi-service traffic transmission search, including:
[0033] Define s∈V as the source node of the routing request of the periodic service, d∈{V-{s}} as the destination node of the routing request of the periodic service, and let the routing request of the periodic service from the source node s∈V to the destination node d∈V be R(s,d), then the QoS expression of the transmission path is:
[0034]
[0035] Wherein, delay(n) and delay_jitter(n) are the delay and delay jitter of the service traffic passing through node n, respectively; delay(e) and delay_jitter(e) are the delay and delay jitter of the service traffic passing through communication link e, respectively.
[0036] For a certain service flow path request R(s,d), the transmission delay and delay jitter must be less than the preset value D budget , Reasonably set the initial values of the penalty factors λ and μ of the scheduling algorithm, and let M path search agents be responsible for searching the best path based on the calculation and update of the path preference value, where m is the path search agent index variable and t is the iteration variable;
[0037] At the beginning of each iteration of searching for the optimal path, all path search agents are initially located at the source node s. The way they select a path is to calculate the selection probability based on the path preference, and the path with the highest selection probability is the optimal result. During the tth path search iteration, when the path search agent m is located at node i, the probability of selecting a path to node j is calculated as follows:
[0038]
[0039] Among them, passed m (m=1,2,...,M) is the set of nodes selected by the path search agent m, allowed m ={i|i∈N-passed m} is the candidate node set of the path search agent m, N is the number of nodes contained in the set V, l ij is the path length from node i to node j, η ij =1 / l ij ; τ ij (t) is edge e ij In the iterative path search, the remaining preference value is selected. The path search is substituted into the above formula to calculate the probability. The candidate link with the highest probability is selected as the current next-hop link until the transmission path of the destination node d is finally selected. The above operation is performed for all path search agents. In each iteration, the path result R with the lowest cost obtained by all path search agents is retained. * (s,d),
[0040] According to the optimal path result R * (s, d), update the penalty factor of the scheduling algorithm as follows:
[0041] λ=[λ-θ t [D budget -delay(R * (s,d))]] +
[0042] Among them, the operator [z] + is max(z,0), θ t The update step is positive, and it is used to determine whether the penalty factors λ and μ converge. If so, the traffic scheduling algorithm ends, and the optimal path result obtained by this inner iteration is output as the final result; otherwise, it returns to the next iteration until the algorithm converges.
[0043] In a third aspect, the present invention provides an electronic device, comprising a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the program is executed, the steps of the method for scheduling differentiated business flow of a substation are implemented.
[0044] In a fourth aspect, the present invention provides a computer-readable storage medium, hereinafter referred to as the storage medium, in which a computer program is stored, and the storage medium is designed to implement the steps of the substation differentiated business flow scheduling method when running.
[0045] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: it can dynamically select the transmission path with the minimum cost when delay and jitter are introduced into TSN switches at different levels, taking into account the background traffic conditions of various device configuration management messages, to ensure bounded delay and jitter in the transmission of protection measurement and control service flows; it adopts a public iterative algorithm based on the combination of intelligent path search agent and gradient descent, which can effectively solve the combinatorial optimization problem of network service traffic scheduling. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 This is a diagram of the service bearing architecture of the present invention;
[0047] Figure 2 Schematic diagram of TSN network gating and traffic shaping mechanism. DETAILED DESCRIPTION
[0048] The technical solution of the present invention is further described below in conjunction with the accompanying drawings. It will be understood by those skilled in the art that the purposes and advantages that can be achieved by the present invention are not limited to the specific description of the above beneficial effects, and the above and other purposes that can be achieved by the present invention will be more clearly understood based on the following detailed description.
[0049] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed in the present invention can be implemented in hardware, software or a combination of the two. Whether it is implemented in hardware or software depends on the specific application and design of the technical solution. Professional and technical personnel can use different methods to implement the functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0050] Reference to "embodiments" in the present invention means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0051] Embodiment 1
[0052] The present invention provides a method for scheduling differentiated service traffic in a substation, comprising constructing an A and B dual network transmission model based on TSN technology for the substation; designing a traffic scheduling algorithm according to the dual network transmission model, obtaining the optimal path for searching for multi-service traffic transmission, thereby achieving the minimum path transmission cost and meeting the performance requirements of multi-service differentiated traffic transmission.
[0053] like Figure 1 As shown in the figure, the process layer protection and measurement and control devices of the substation are connected to the merging unit and intelligent unit of the bay layer through a time-sensitive network. The substation has multiple bays. The merging unit and intelligent unit of each bay are connected to the mutual inductor and circuit breaker through optical fiber to collect the sampled values of current and voltage analog quantities and the switch status quantity. The TSN network is composed of the bay layer access switch and the process layer aggregation switch. The process layer and bay layer TSN networks constitute the A and B dual networks. The sampled value message sent by each merging unit is sent to the protection device A and B through the A and B dual ports. Similarly, the status message of the intelligent unit is also sent to the measurement and control device A and B through the A and B dual ports. By configuring redundant access switches and aggregation switches, the substation TSN network constitutes the A and B dual networks. Any periodic, delay-sensitive message of the merging unit and the status message of the intelligent unit can be transmitted to the protection and measurement and control devices through different paths. At the same time, the configuration management message of the merging unit and the intelligent unit is non-periodic and delay-insensitive traffic, which is transmitted in the TSN network as the background traffic of the sampled value and status message.
[0054] like Figure 2 As shown in the figure, for the sample value message flow of a specific merging unit, the TSN A and B dual-network transmission mode provides multiple transmission paths for the periodic service flow to reach the protection device. At the same time, there are also delay-insensitive, non-periodic merging units, and configuration management service flows of intelligent units in the network. Service flow scheduling takes into account the impact of background traffic, provides end-to-end QoS performance guarantees on the transmission path for periodic services, and can also select the transmission path with the lowest cost.
[0055] The substation TSN network model can be expressed as a weighted undirected graph G = (V, E). Among them, the merging unit, intelligent unit, access switch, aggregation switch, measurement and control device, relay protection device, etc. are abstracted as a node set V, and the direct communication link between the nodes is abstracted as a set of edges in the undirected graph E. Define s∈V as the source node of the routing request for periodic services, and d∈{V-{s}} as the destination node of the routing request for periodic services. Let the routing request R(s,d) of the periodic service from the source node s∈V to the destination node d∈V, and the QoS expression of the transmission path is:
[0056]
[0057] Among them, delay(n), delay_jitter(n), and cost(n) are the delay, delay jitter, and cost of the service traffic passing through node n, respectively; delay(e), delay_jitter(e), and cost(e) are the delay, delay jitter, and cost of the service traffic passing through communication link e. Given a service traffic transmission request R(s,d), the optimal scheduling algorithm is designed to obtain the path cost cost(R(s,d)) while satisfying the service transmission QoS. Follow the steps below to obtain the search result of the minimum cost path for a specific periodic service traffic while satisfying the minimum transmission delay and delay jitter:
[0058] Step 1: The traffic scheduling algorithm module contains two layers of iteration. Obtain the differentiated service traffic transmission requirements of the substation; TSN network node and link transmission performance parameters, which are test values after considering TSN gating and traffic shaping mechanisms; initialize and set the intermediate variables of the optimization algorithm, such as iterative optimization penalty factors, path search proxy index variables, etc. The delay and delay jitter of TSN network nodes and links are parameter values after considering the influence of gating and traffic shaping mechanisms. is a known initial parameter. For a certain service flow path request R(s,d), the transmission delay and delay jitter must be less than the preset value D budget , It is a known parameter determined by the business type; reasonably set the initial values of the penalty factors λ and μ of the scheduling algorithm. Let M path search agents be responsible for searching the best path based on the calculation and update of the path preference value, and m is the path search agent index variable. Let t be the iteration variable.
[0059] Step 2: Based on the initialization parameters of step 1, perform path search in an iterative manner. During the search process, the probability of the search agent selecting different paths is calculated, and the path results with the lowest cost obtained by all path search agents after this iterative calculation are saved. At the beginning of each iterative search for the optimal path, all path search agents are initially located at the source node s. The way they select a path is based on the path preference to calculate the selection probability, and the path with the highest selection probability is the optimal result. During the tth path search iteration, when the path search agent m is located at node i, the probability of it selecting the path to node j is calculated as follows:
[0060]
[0061] In the above formula, passed m (m=1,2,...,M) is the set of nodes selected by the path search agent m, allowed m={i|i∈N-passed m} is the candidate node set of the path search agent m, N is the number of nodes contained in the set V, l ij is the path length from node i to node j (which can be characterized by the number of transmission hops), η ij =1 / l ij τ ij (t) is edge e ij In the first iteration of the path search, the remaining preference value is selected. The path search agent calculates the probability of the alternative link with the highest probability as the current next hop link until the transmission path to the destination node d is finally selected. The above operation is performed for all path search agents. In each iteration, the path result R with the lowest cost obtained by all path search agents is retained. * (s,d).
[0062] Update the link selection preference value to prepare for calculating the path selection probability in the next path search process. In the first iteration, the selection preference values of all links are the same; in the tth iteration, update and obtain the selection preference values of each edge at the t+1th iteration:
[0063]
[0064] Among them, Φ is a preset positive constant, ρ∈(0,1) is the choice preference value attenuation coefficient, Indicates that the path search agent m selects e ij The preference increment brought by L m is the path length, minL m The shortest path length obtained by all path search agents during this loop iteration.
[0065] Step 3: The optimal path result R obtained by inner iteration in step 2 * (s, d), the penalty factor of the outer iterative scheduling algorithm is updated as follows:
[0066] λ=[λ-θ t [D budget -delay(R * (s,d))]] +
[0067] Among them, the operator [z] + is max(z,0), θ t The update step is positive, and the penalty factors λ and μ are judged whether they converge. If so, the traffic scheduling algorithm ends, and the optimal path result obtained by this inner iteration is output as the final result; otherwise, return to step 2 to continue the next iteration until the algorithm converges.
[0068] Embodiment 2
[0069] In addition, based on the same inventive concept, an embodiment of the present invention further provides a substation differentiated service flow scheduling system, including:
[0070] A construction module is used to build a dual network transmission model of A and B based on TSN technology for substations;
[0071] The optimization module is used to design a traffic scheduling algorithm based on the dual network transmission model, obtain the optimal path for multi-service traffic transmission, so as to minimize the path transmission cost and meet the differentiated traffic transmission performance requirements of multiple services.
[0072] The construction module is used to construct an A and B dual network transmission model based on TSN technology for the substation. The A and B dual networks based on TSN technology include an interval layer access switch and a process layer aggregation switch. The process layer and interval layer TSN networks constitute the A and B dual networks. The sampling value message sent by each merging unit is sent to the protection devices A and B through the A and B dual ports, and the status message of the intelligent unit is also sent to the measurement and control devices A and B through the A and B dual ports.
[0073] The construction module is used to construct the A and B dual network transmission models based on TSN technology for the substation, which is expressed as:
[0074] G=(V,E)
[0075] Among them, the merging unit, intelligent unit, access switch, aggregation switch, measurement and control device and relay protection device are abstracted as a node set V, and the direct communication link between the nodes is abstracted as a set of edges E in an undirected graph.
[0076] The optimization module is used to design a traffic scheduling algorithm according to the dual network transmission model, obtain the optimal path for multi-service traffic transmission search, and includes:
[0077] Define s∈V as the source node of the routing request of the periodic service, d∈{V-{s}} as the destination node of the routing request of the periodic service, and let the routing request of the periodic service from the source node s∈V to the destination node d∈V be R(s,d), then the QoS expression of the transmission path is:
[0078]
[0079] Wherein, delay(n) and delay_jitter(n) are the delay and delay jitter of the service traffic passing through node n, respectively; delay(e) and delay_jitter(e) are the delay and delay jitter of the service traffic passing through communication link e, respectively.
[0080] For a certain service flow path request R(s,d), the transmission delay and delay jitter must be less than the preset value D budget , Reasonably set the initial values of the penalty factors λ and μ of the scheduling algorithm, and let M path search agents be responsible for searching the best path based on the calculation and update of the path preference value, where m is the path search agent index variable and t is the iteration variable;
[0081] At the beginning of each iteration of searching for the optimal path, all path search agents are initially located at the source node s. The way they select a path is to calculate the selection probability based on the path preference, and the path with the highest selection probability is the optimal result. During the tth path search iteration, when the path search agent m is located at node i, the probability of selecting a path to node j is calculated as follows:
[0082]
[0083] Among them, passed m (m=1,2,...,M) is the set of nodes selected by the path search agent m, allowed m ={i|i∈N-passed m} is the candidate node set of the path search agent m, N is the number of nodes contained in the set V, l ij is the path length from node i to node j, η ij =1 / l ij ; τ ij (t) is edge e ij In the iterative path search, the remaining preference value is selected. The path search is substituted into the above formula to calculate the probability. The candidate link with the highest probability is selected as the current next-hop link until the transmission path of the destination node d is finally selected. The above operation is performed for all path search agents. In each iteration, the path result R with the lowest cost obtained by all path search agents is retained. * (s,d),
[0084] According to the optimal path result R * (s, d), update the penalty factor of the scheduling algorithm as follows:
[0085] λ=[λ-θ t [D budget -delay(R * (s,d))]] +
[0086] Among them, the operator [z] + is max(z,0), θ tThe update step is positive, and it is used to determine whether the penalty factors λ and μ converge. If so, the traffic scheduling algorithm ends, and the optimal path result obtained by this inner iteration is output as the final result; otherwise, it returns to the next iteration until the algorithm converges.
[0087] Embodiment 3
[0088] In addition, based on the same inventive concept, an embodiment of the present invention also provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the substation differentiated service flow scheduling method are implemented.
[0089] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0090] Embodiment 4
[0091] In addition, based on the same inventive concept, an embodiment of the present invention further provides a storage medium storing a computer program, wherein the computer program is designed to implement the steps of the substation differentiated service flow scheduling method when running.
[0092] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0093] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0094] The computer-readable storage medium mentioned above may be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.
[0095] The specific description above further illustrates the purpose, technical solutions and beneficial effects of the invention in detail. It should be understood that the above is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for scheduling differentiated service flow in a substation, characterized in that: include: Construct A and B dual network transmission models based on TSN technology for substations; A traffic scheduling algorithm is designed based on the dual network transmission model to obtain the optimal path for multi-service traffic transmission, thereby minimizing the path transmission cost and meeting the differentiated traffic transmission performance requirements of multiple services.
2. The method for scheduling differentiated service flow in a substation according to claim 1, characterized in that: The A and B dual networks based on TSN technology include an interval layer access switch and a process layer aggregation switch. The process layer and interval layer TSN networks constitute the A and B dual networks. The sampling value messages sent by each merging unit are sent to the protection devices A and B through the A and B dual ports, and the status value messages of the intelligent units are also sent to the measurement and control devices A and B through the A and B dual ports.
3. The method for scheduling differentiated service flow in a substation according to claim 1, characterized in that: The A and B dual network models based on TSN technology are: G=(V,E) Among them, the merging unit, intelligent unit, access switch, aggregation switch, measurement and control device and relay protection device are abstracted as a node set V, and the direct communication link between the nodes is abstracted as a set of edges E in an undirected graph.
4. The method for scheduling differentiated service flow in a substation according to claim 1, characterized in that: The acquiring of the optimal path for multi-service traffic transmission search comprises: Define s∈V as the source node of the routing request of the periodic service, d∈{V-{s}} as the destination node of the routing request of the periodic service, and let the routing request of the periodic service from the source node s∈V to the destination node d∈V be R(s,d), then the QoS expression of the transmission path is: Wherein, delay(n) and delay_jitter(n) are the delay and delay jitter of the service traffic passing through node n, respectively; delay(e) and delay_jitter(e) are the delay and delay jitter of the service traffic passing through communication link e, respectively. For a certain service flow path request R(s,d), the transmission delay and delay jitter must be less than the preset value D budget , Reasonably set the initial values of the penalty factors λ and μ of the scheduling algorithm, and let M path search agents be responsible for searching the best path based on the calculation and update of the path preference value, where m is the path search agent index variable and t is the iteration variable; At the beginning of each iteration of searching for the optimal path, all path search agents are initially located at the source node s. The way they select a path is to calculate the selection probability based on the path preference, and the path with the highest selection probability is the optimal result. During the tth path search iteration, when the path search agent m is located at node i, the probability of selecting a path to node j is calculated as follows: Among them, passed m (m=1,2,...,M) is the set of nodes selected by the path search agent m, allowed m ={i|i∈N-passed m } is the node set of the path search agent m, N is the number of nodes contained in the set V, lij is the path length from node i to node j, η ij =1 / l ij ; τ ij (t) is edge e ij In the iterative path search, the remaining preference value is selected. The path search is substituted into the above formula to calculate the probability. The candidate link with the highest probability is selected as the current next-hop link until the transmission path of the destination node d is finally selected. The above operation is performed for all path search agents. In each iteration, the path result R with the lowest cost obtained by all path search agents is retained. * (s,d), According to the optimal path result R * (s, d), update the penalty factor of the scheduling algorithm as follows: Among them, the operator [z] + is max(z,0), θ t The update step is positive, and it is used to determine whether the penalty factors λ and μ converge. If so, the traffic scheduling algorithm ends, and the optimal path result obtained by this inner iteration is output as the final result; otherwise, it returns to the next iteration until the algorithm converges.
5. A substation differentiated service flow dispatching system, characterized in that: include: A construction module is used to build a dual network transmission model of A and B based on TSN technology for substations; The optimization module is used to design a traffic scheduling algorithm based on the dual network transmission model, obtain the optimal path for multi-service traffic transmission, so as to minimize the path transmission cost and meet the differentiated traffic transmission performance requirements of multiple services.
6. The substation differentiated service flow dispatching system according to claim 5, characterized in that: The construction module is used to construct an A and B dual network transmission model based on TSN technology for the substation. The A and B dual networks based on TSN technology include an interval layer access switch and a process layer aggregation switch. The process layer and interval layer TSN networks constitute the A and B dual networks. The sampling value message sent by each merging unit is sent to the protection devices A and B through the A and B dual ports, and the status message of the intelligent unit is also sent to the measurement and control devices A and B through the A and B dual ports.
7. The substation differentiated service flow dispatching system according to claim 5, characterized in that: The construction module is used to construct the A and B dual network transmission models based on TSN technology for the substation, which is expressed as: G=(V,E) Among them, the merging unit, intelligent unit, access switch, aggregation switch, measurement and control device and relay protection device are abstracted as a node set V, and the direct communication link between the nodes is abstracted as a set of edges E in an undirected graph.
8. The substation differentiated service flow dispatching system according to claim 5, characterized in that: The optimization module is used to design a traffic scheduling algorithm according to the dual network transmission model to obtain the optimal path for multi-service traffic transmission search, including: Define s∈V as the source node of the routing request of the periodic service, d∈{V-{s}} as the destination node of the routing request of the periodic service, and let the routing request of the periodic service from the source node s∈V to the destination node d∈V be R(s,d), then the QoS expression of the transmission path is: Wherein, delay(n) and delay_jitter(n) are the delay and delay jitter of the service traffic passing through node n, respectively; delay(e) and delay_jitter(e) are the delay and delay jitter of the service traffic passing through communication link e, respectively. For a certain service flow path request R(s,d), the transmission delay and delay jitter must be less than the preset value D budget , Reasonably set the initial values of the penalty factors λ and μ of the scheduling algorithm, and let M path search agents be responsible for searching the best path based on the calculation and update of the path preference value, where m is the path search agent index variable and t is the iteration variable; At the beginning of each iteration of searching for the optimal path, all path search agents are initially located at the source node s. The way they select a path is to calculate the selection probability based on the path preference, and the path with the highest selection probability is the optimal result. During the tth path search iteration, when the path search agent m is located at node i, the probability of selecting a path to node j is calculated as follows: Among them, passed m (m=1,2,...,M) is the set of nodes selected by the path search agent m, allowed m ={i|i∈N-passed m } is the candidate node set of the path search agent m, N is the number of nodes contained in the set V, l ij is the path length from node i to node j, η ij =1 / l ij ; τ ij (t) is edge e ij In the iterative path search, the remaining preference value is selected. The path search is substituted into the above formula to calculate the probability. The candidate link with the highest probability is selected as the current next-hop link until the transmission path of the destination node d is finally selected. The above operation is performed for all path search agents. In each iteration, the path result R with the lowest cost obtained by all path search agents is retained. * (s,d), According to the optimal path result R * (s, d), update the penalty factor of the scheduling algorithm as follows: Among them, the operator [z] + is max(z,0), θ t The update step is positive, and it is used to determine whether the penalty factors λ and μ converge. If so, the traffic scheduling algorithm ends, and the optimal path result obtained by this inner iteration is output as the final result; otherwise, it returns to the next iteration until the algorithm converges.
9. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the differentiated service flow scheduling method for a substation according to any one of claims 1 to 4 is implemented.
10. A storage medium storing a computer program, characterized in that: The computer program is designed to implement the method for scheduling differentiated service flow in a substation according to any one of claims 1 to 4 when running.
