Next Article in Journal
Battery-Assisted Battery Charger with Maximum Power Point Tracking for Thermoelectric Generator: Concept and Experimental Proof
Previous Article in Journal
A Double-Edge-Triggered Digital LDO with Built-In Adaptive VCO Clock for Fast Transient Response and Low Power Consumption
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Global Deterministic Direct Forwarding and Scheduling of Mixed Flow Based on Time-Sensitive Network in Substation

School of Automation, China-Korea Belt and Road Joint Laboratory on Industrial Internet of Things, Chongqing University of Posts and Telecommunications, Chongqing 400065, China
*
Author to whom correspondence should be addressed.
Electronics 2023, 12(19), 4101; https://doi.org/10.3390/electronics12194101
Submission received: 25 August 2023 / Revised: 18 September 2023 / Accepted: 18 September 2023 / Published: 30 September 2023
(This article belongs to the Section Networks)

Abstract

:
Time-sensitive networks enable the high-quality mixed transmission of various types of business flows. However, the Time-Aware Scheduler mechanism fails to address the issue of interference in data flows with the same priority. This paper conducts an in-depth analysis of the store-and-forward mechanism in switches, combining it with the characteristics of critical GOOSE and SV-type flows in substations. By introducing methods such as setting offsets and allocating redundant time slots to the data flow of the transmitter in the TAS scheduling mechanism, all factors that cause conflicting interference to the data flow transmission in the TSN network are solved, and the uncertain queuing delay is eliminated. The proposed scheduling algorithm, compared to the TAS scheduling algorithm of the FIFO rule, achieves a maximum reduction of 34.35% in the transmission delay of critical business flows, while the jitter is controlled below 10 μs. Compared to the strict priority algorithm, it reduces the transmission delay by 40.26% while maintaining the standard deviation of delay within 1.59%. The maximum transmission delay and the minimum transmission delay of the data flow scheduled in this paper are between the theoretical boundary values without queuing delay, which satisfies the deterministic transmission of critical business flows under high load conditions, and provides support for future substation integrated networking and high load applications.

1. Introduction

With the continuous development of information technology in the manufacturing industry, traditional industries are accelerating their transformation and development. In order to promote the organic integration of IT (Information Technology) and OT (Operational Technology) and realize the deterministic transmission of critical information between industrial equipments, time-sensitive networks with low latency and high reliability have emerged. The IEEE 802.1 TSN (time-sensitive network) task group is committed to standardizing real-time and secure mechanisms of Ethernet, enabling the coexistence of time-sensitive and non-time-sensitive flows in Ethernet, and providing deterministic delay assurance for critical communications [1]. OT transmits real-time data required by time delay, and IT transmits non-real-time interactive data. Heterogeneous networks using TSN technology can achieve shared network bandwidth between them [2]. The core of time-sensitive networking is the TAS (Time-Aware Scheduler) gate control mechanism. Accurate synchronization of the clocks of each time sensor is the premise of all orderly scheduling [3]. TAS defines the concept of time slots, which reserves transmission time slots for critical flows with precise reservation characteristics, closes the transmission gate for other data flows, and avoids the impact of data frames with other priorities on the transmission of specific priority data flows [4]. The critical GOOSE business flow transmits tripping or control information, which is not conducive to scheduling because of its sudden change period. The critical SV business transmits the collected information, and the fixed 1 s slot transmits 4000 frames, which takes up a lot of bandwidth. GOOSE business flows and SV business flows both have very high real-time requirements, and the maximum transmission delay of GOOSE type and SV type flow is less than 3 ms, and no data packet loss is required, and no retransmission is performed [5]. Combining substations with TSN for transmission, it ensures low delay and high reliability for deterministic transmission of critical business flows, simplifying the network structure in substations. This enables the coexistence of GOOSE business flows, SV business flows, and background traffic flows while guaranteeing deterministic transmission. The main contributions of this paper are as follows:
  • Combined with the storage and forwarding model in the TAS mechanism of the switch, a deterministic transmission model without queuing delay for critical business flows is established;
  • Aiming at the problem of processing delay jitter and switch port conflict caused by data flow aggregation in actual switches, a scheduling algorithm combining data flow offset set at the transmitter and redundant time slot resource allocation for data flow is proposed to further avoid conflict interference between each critical data flow;
  • The OMnet++ test environment is built to verify that the proposed algorithm combined with the TAS scheduling mechanism solves the impact between various data flows and achieves high-quality deterministic transmission.
This paper is organized as follows. The related work is shown in Section 2. We introduce deterministic scheduling model of critical TT flow without queuing delay under the combination of storage and forwarding mechanism of switch and TAS scheduling in Section 3. The global deterministic scheduling algorithm based on offset transmission and redundant slot allocation is proposed in Section 4. Section 5 and Section 6 present the evaluation results and conclusions, respectively.

2. Related Work

To ensure the real-time transmission of critical data flows in wired local area networks, strict priority algorithm is the most common scheduling. However, the strict priority algorithm has significant delay jitter and cannot solve the interference issue between business flows of the same priority [6]. In reference [7], a constrained optimal model for load-balancing communication in substations is established, along with an improved KSP (K-Shortest Path) algorithm, to achieve load-balancing routing and rapid identification of the optimal transmission path, thereby enhancing network stability. However, such load-balancing scheduling is too broad for strong real-time data flow transmission and cannot achieve precise scheduling for critical data flows. In reference [8], the maximum delay calculation model for data frame transmission in substations is established by analyzing the forwarding principle of IEEE 802.1Qbv switches. Through simulation analysis, the effectiveness of TSN technology in meeting the real-time requirements of critical substation business is validated. In the study of hybrid algorithms related to local area networks such as new energy and sustainable power generation, researchers have established flow scheduling algorithms based on deep learning, which use machine learning algorithms to cluster data according to time-critical characteristics, and quickly process mixed data according to cluster/priority to reduce the processing time of high-delay sensitive information [9]. Optimization algorithms for specific goals can reduce the interference of non-critical data flows on critical data flows at the software level. However, communication networks such as substations store a large amount of IT flows based on TCP/IP (Transmission Control Protocol/Internet Protocol) MMS frames. This kind of flow is sent randomly and has a retransmission mechanism. Using deep learning-based optimization models, it is difficult to determine the port occupancy time of MMS data frames and isolate the impact of non-real-time IT flow sent completely randomly into critical data flows [10]. However, the method of using particle swarm optimization algorithm to establish the objective function of the optimization object can be easily categorized as the local optimal solution, which cannot effectively realize the conflict-free situation without queuing delay of all the critical data flows in this paper [11]. The gating mechanism of TSN matches low priority to non-real-time IT flow such as MMS messages, and matches different transmission queues for each data flow [12]. The TAS gating mechanism completely blocks the queue transmission of non-real-time flow when transmitting critical data flows, and easily avoids the influence of non-key data flows on critical data flows at the hardware driver level. In view of the low real-time requirements of IT flow transmission such as MMS messages, non-real-time data flows can be transmitted using the next gated time slot, and the effective transmission of MMS messages can be realized at the expense of a certain real-time performance, as shown in Figure 1. TSN uses the time synchronization mechanism defined by 802.1AS to achieve a global unified real-time clock with nanosecond accuracy for devices in the global network [13]. Based on the synchronization clock and gating mechanism with nanosecond precision, on the basis of solving the adverse effects of non-critical data flows on critical data flows, the data flows are offset at the sender, so that each critical data flow avoids interference with each other when transmitting in the global network, and it is possible to achieve the theoretical best deterministic transmission without the queuing delay.
TSN research focuses on optimizing scheduling tables to reduce end-to-end frame delay and balance network loads to avoid congestion. Based on the Satisfiability Modulo Theories (SMT) method, reference [14] proposes a TSN scheduling method suitable for industrial scenarios, which effectively reduces the number of time slots in the Generalized Credit-based Shaper (GCL) and simplifies GCL configuration, making it more efficient. These algorithms only guarantee low end-to-end delays for newly added flows but do not ensure that the addition of these flows will not significantly impact other flows. In reference [15], Ojewale et al. address the issue of network congestion by recalculating the paths of time-triggered flows in congested conditions and computing as many disjoint paths as possible for each flow to evenly distribute the transmission paths. With more and more data flows in the future converged in networking, the use of TSN technology can easily solve the full impact of non-real-time data with random cycles on real-time critical data flows at the hardware-driven level. However, a large number of critical data flows converge in the switch. Now, the literature mostly uses the method of path constraint load balancing, but the industrial environment is usually used for the reason of distributed placement of venues and equipment. The transmission path is relatively single, and the use of TSN technology to schedule critical data flows will still be affected by FIFO to produce queuing delay. In this paper, the problem of data flow occupying port is solved in time by combining the offset transmission of data flow at the transmitter and the gating of switch, and all the reasons for queuing delay are fully analyzed. TAS’s cyclical slot resources are significantly greater than the slot resources required for data flow transmission. This paper aims to, based on TSN’s implementation of transmitting critical data flows alongside non-critical data flows, revise offsets to ensure that critical data flows’ slot resources do not conflict. It disperses the slot resources of data flows within the gate-controlled cyclical period to avoid conflicts. TSN is based on a store-and-forward network, and the slot occupation of data flows within the network is not linearly related. The goal is to find a scheduling rule that allows for a single scheduling at the switch where data flows converge, enabling direct deterministic forwarding in the network without queuing delays. This approach avoids the use of large-scale, complex SMT solvers to perform intricate calculations for each node in the global network.

3. Scheduling Model

Common data flows can be classified into time-sensitive flows (TT flows) and non-time-sensitive flows (non-TT flows). TT flows have strict quality service requirements and are typically found in periodic real-time applications. Non-TT flows have less stringent requirements for delay jitter. Based on the periodicity of TT flows, they can be further divided into Periodic TT (PTT) flows and Sporadic TT (STT) flows. PTT flows exhibit periodic behavior, while STT flows do not. In the context of substations, critical business flows, such as GOOSE and SV flows, are included. GOOSE flows are transmitted in a heartbeat manner, and the transmission period can change during bursts, making them STT flows [16]. On the other hand, SV flows are strictly transmitted according to a pre-defined period, making them PTT flows. When an emergency occurs, the period of the GOOSE flow changes, making it unable to be combined with the gated periodic scheduling mechanism on TSN for periodic scheduling. Therefore, the transmission queue control for the GOOSE flow needs to remain open continuously. However, even if the GOOSE packets are assigned a higher priority, they must be in waiting when SV packets are being transmitted, resulting in unreliable queuing delay. Although the timing of emergency cannot be determined in a timely manner, this paper introduces a recovery period in addition to the common three-segment time-based transmission cycle, allowing the GOOSE flow to return to a normal transmission state and maintain a regular cyclic sequence. The variation form of the mutation period is illustrated in Figure 2. This enables the GOOSE packets to be scheduled in a periodic TT flow manner during the normal period. The recovery period  T 4  is calculated as presented in (1).
T 4 = 2 T 0 T 1 T 2 T 3
In a store-and-forward network, the ideal TT flow scheduling type is where the data frame, upon arrival at the switch’s queuing buffer queue, is directly forwarded by the PHY chip. Similarly, the next data frame arriving at the queuing buffer layer of the switch can also be sent directly through the PHY (Physical) chip, avoiding the queuing delay caused by the data frame waiting for transmission in the MAC (Medium Access Control) queuing buffer layer. The system scheduling in this case can be abstracted as the CPU Multilevel Pipeline Scheduling Type (CPU-MPST), which resembles the pipeline scheduling type used when the CPU processes task processes. In the CPU-MPST type, the TT flow, upon arrival at the switch’s queuing buffer queue, does not need to wait in a queue for PHY chip transmission but can be directly forwarded in a pipeline-like manner, avoiding multiple data frames being in the same task state simultaneously, resulting in frame collisions and queuing delays.
As shown in Figure 3, in time-sensitive networks, the end-to-end delay of a time-triggered flow  f n  from the source node to the destination node, it is composed of four components: transmission delay, propagation delay, processing delay, and queuing delay. This can be expressed as Equation (2).
D n = d t r a n s n + d p r o p n + d p r o c n + d q u e u e n
D n = f s i z e n B W + L n c + d p r o c n + d q u e u e n
Among them,  d t r a n s n  is related to the message length and the bandwidth of the switch, where the switch’s bandwidth is primarily dependent on the performance of the PHY chip.  d p r o p n  is mainly determined by the link length and the propagation delay, as data travels at the speed of light in the link, and is typically in the nanosecond range within a local area network, and  d p r o p n  is negligible compared to the millisecond or microsecond transmission delays.  d p r o c n  is related to the performance of the switch, and empirical measurements show that the processing delay of the switch is nearly constant when underutilized.  d q u e u e n  is generated when data frames wait in the switch’s queuing buffer queue for transmission by the PHYchip. By using the scheduling algorithm, queuing delays can be optimized and improved, and in the ideal case, the queuing delay can be reduced to zero, allowing direct forwarding of data flows upon reaching the switch’s queuing buffer layer. This paper eliminates unreliable queuing delays by introducing offsets to the data flows, resulting in time-triggered flow delays primarily consisting of transmission delay and processing delays. The value of the ideal deterministic transmission delay is calculated as presented in (4). All system variables and meanings of representation in this paper are shown in Table 1.
D n = d t r a n s n + d p r o c n

4. Scheduling Algorithm

4.1. Redundant Time Slot Allocation Algorithm

When an emergency occurs, the period of the GOOSE service flow can change, and it is unable to synchronize with the periodic scheduling mechanism of TSN. Therefore, the transmission queue control of the GOOSE flow needs to be continuously open. By setting the heartbeat message transmission period of the GOOSE message, the regular GOOSE messages can be scheduled using the periodic TT flow in conjunction with the 802.1Qbv model. According to the specifications of the 802.1Qbv protocol, the TAS scheduling mechanism in TSN operates at the MAC layer, where the opening and closing of the gates take place. Only when the gate is open, the corresponding queue’s data flow will be transmitted by the PHY chip. When the queue is closed, the data flow needs to wait for the gate to open, resulting in the queuing delay. The data frames are transmitted between the opening time and closing time of the gate controlled by the TAS mechanism, as shown in Figure 4 [17].
According to the storage and forwarding mechanism, the opening time  T i n i t n , i v a  of the TAS-gated queued data flow  f n  is the time when the frame arrives at the switch queuing cache queue, and the transmission slot resource  T s o l t n , i v a  of the data frame is calculated as presented in Equations (4) and (5).
T i n i t n , i v a = d p r o c n + d t r a n n p n v a + 0 v a 1 d q u e u e n , i v a 1 + i T p r d n
T s o l t n , i v a = f s i z e n B W v a
When there are multiple data flows with the same priority or high-priority data flow transmission, the opening time of this queue should be equal to the sum of the time slots of the high-priority data frame and the same priority data frame.
Simultaneously, the uncertainty of jitter in the storage and forwarding delay of data flows accumulates as the number of hops the frame transmits in the network increases. This leads to a mismatch in the transmission delay of data flows, resulting in abnormal data frame transmission. The jitter in processing delay, denoted as  T j i t t e r , is calculated by (7), where  d p r o c m i n  represents the minimum processing delay of data frames, and  d p r o c m a x  represents the maximum processing delay of data frames.
T j i t t e r = d p r o c m a x d p r o c m i n
When TAS allocates transmission time slots for data flows, it should allocate redundant time slots according to the jitter of processing delay. According to the maximum processing delay and the minimum processing delay, the opening time  T i n i t n , i v a  and  T u l t i n , i v a  closing time are calculated as shown in Equations (8) and (9).
T i n i t n , i v a = d p r o c m i n + d t r a n n p n v a + 0 v a 1 d q u e u e n , i v a 1 + i T p r d n
T u l t i n , i v a = T i n i t n v a + p n v a T j i t t e r + d t r a n n + d q u e u e n , i v a

4.2. The Global Deterministic Scheduling Algorithm Based on Offset Transmission and Redundant Slot Allocation

The delay jitter of the data flow increases with the number of switches through which the data flow is transmitted, so this paper selects the convergence switch with the maximum jitter in data flow processing delay to sequentially schedule the global data flow. Finally, the sending offsets of the data frames are solved to satisfy the direct transmission requirement of the TT flow without queuing delay at the global node switches. Therefore, when calculating the transmission offset of each data flow, it should be based on the time slot resources with jitter boundary after allocating redundant time slot resources to completely avoid the conflict between critical data flows.
The Physical chip generates different transmission delays for data frames with different frame lengths. According to the store-and-forward mechanism, data frames can be scheduled for transmission only after they have been fully received by the switch. However, due to the different times of the switch to fully receive the data frame, the scheduling of the data flow will be confused. Sorting is based on different frame lengths, after the convergence switch  v r  completes the scheduling, and the time slot resource utilization in other hop switches  v r 1  is shown in Figure 5, which represents the convergence switch and represents the previous hop switch of the convergence switch.
According to this paper, the scheduling of data flows should prioritize scheduled data flows with larger frame lengths at the convergence switch of the last hop. This ensures that the data flows do not conflict with other nodes in the global network and avoids uncertain queuing delays. The proof is shown in Equations (10)–(14).
T u l t i n , i v r = T i n i t n + 1 , j v r
T u l t i n , i v r 1 = T i n i t n , i v r d t r a n s n d p r o c + p n v r 1 T j i t t e r + d t r a n s n
T u l t i n , i v r 1 = T u l t i n , i v r T j i t t e r d t r a n s n d p r o c
T i n i t n + 1 , j v r 1 = T i n i t n + 1 , j v r d t r a n s n 1 d p r o c
After the aggregation switch  v r  completes the conflict-free scheduling of data flows  f n  and  f n + 1 , as shown in Equations (10)–(13). According to Equation (14), the data flow also does not collide in the previous hop switch, and the time slot resources are more and more distant. This proof can guarantee that the data flow will not collide at any node in the global network.
[ T i n i t n , i v r 1 , T u l t i n , i v r 1 T i n i t n + 1 , j v r 1 , T u l t i n + 1 , j v r 1 ] = 0
If the data frames have the same size, Equation (15) is used to calculate the frame offset,  T o f f s e t n v r , in the MAC layer’s queue buffer at the convergence switch  v r , under the assumption of no queuing delay transmission mode. Data flows with larger frame offsets are scheduled in advance. If the data frames have the same size, Equation (15) is used to calculate the frame offset,  T o f f s e t n v r , in the MAC layer’s queue buffer at the convergence switch  v r , prioritizing the scheduling of data flows with larger frame offsets and fully utilizing the offset naturally generated during the data flow forwarding process.
T o f f s e t n v r = d p r o c m i n + d t r a n n p n v r
The specific process of the scheduling algorithm is as follows:
Step 1: Firstly, based on the frame length of the data flows and the frame offset  T o f f s e t n v r  at which each data flow arrives at the convergence switch, the scheduling order of the data flows is determined. The cycle period of the TAS gating mechanism  T A S c  is the maximum common multiple of the transmission cycle of each critical data flow.
Step 2: To address the issue of processing delay jitter, this paper proposes the allocation of deterministic redundant slot resources for the transmission slots. This ensures that randomly arriving data frames can be transmitted within the specified time slots. Based on Equations (16) and (17), the time slot resources  [ T i n i t n , i v r , T u l t i n , i v r ]  at node  v r  are calculated for the i-th data frame of the current periodic TT flow  f n .
T i n i t n , i v r = d p r o c m i n + d t r a n n p n v r + i T p r d n
T u l t i n , i v r = T i n i t n v r + p n v r T j i t t e r + d t r a n n
Step 3: The data flow scheduling sequence is determined according to step 1. The conflict-free detection of direct forwarding of the time slot resources [ T i n i t n , i v r , T u l t i n , i v r ] of the data frame scheduled in the data flow  f n  and the time slot resources [ T i n i t m , j v r , T u l t i m , j v r ] of the data frame in the scheduled data flow  f m  is performed. If the time slots of the two do not coincide, the critical data flow can be forwarded directly, as follows:
[ T i n i t n , i v r , T u l t i n , i v r T i n i t m , j v r , T u l t i m , j v r ] = 0
Step 4: If the time slots of the current scheduled data flow  f n  and the scheduled completed data flow  f m  overlap, it is considered that the conflict-free constraint of direct forwarding is not satisfied, which will cause uncertain queuing delay. According to (19), the offset of the data flow  f n  is modified so that the current scheduling data flow  f n  and the scheduled data flow  f m  satisfy the direct forwarding conflict-free constraint, as shown in Figure 6. The value of  O f f s e t n  in the TAS mechanism is calculated in (20) and (21).
[ T i n i t n , i v r , T u l t i n , i v r T i n i t m , i v r , T u l t i m , i v r ] 0
o f f s e t c o r r n v r = T u l t i m , i v r T i n i t n , i v r
O f f s e t n = O f f s e t n + o f f s e t c o r r n v r
Step 5: Since TAS is a periodic cyclic mechanism, the time slot boundary of the scheduled data flow should not exceed the resource boundary of the cyclic gated time slot, so the maximum time slot boundary constraint condition should be judged based on Equation (22).
T u l t i n , i v r + O f f s e t n T A S c
Step 6: Following the data flow scheduling order set in Step 1, start scheduling the next sequence of data flow  f n + 1  and perform Step 3, Step 4 and Step 5 to calculate the no queuing delay time slot resources for data flow  f n + 1  and perform time slot resource detection and dynamic offset calculation with data flow  f m  to determine the offset  O f f s e t n + 1 , until all data flow scheduling is completed.
Step 7: Determine the distribution of time slot resources for each data flow at the convergence switch.
Step 8: Based on the offsets set for each data flow, calculate the time slot resource occupancy of each data flow in the network node switch according to the queuing delay-free transmission model.
The arrival time of the i-th data frame of data flow  f n  at switch  v a  queue buffer layer  T i n i t n , i v a  is the opening time of TAS, and the complete transmission time  T u l t i n , i v a  is the closing time, and they are as follows:
T i n i t n , i v a = O f f s e t n + d p r o c m i n + d t r a n n p n v a + i T p r d n
T u l t i n , i v a = O f f s e t n + d p r o c m i n p n v a + d t r a n n p n v a + 1 + T j i t t e r p n v a + i T p r d n
The global deterministic scheduling algorithm based on offset transmission and redun-dant slot allocation flow char proposed in this paper is shown in Figure 7.

5. Results and Discussion

5.1. Simulation Setup

This paper implemented a TSN testing environment using OMNet++. The computer used for the simulation had an Intel(R) Core(TM) i5-1130H CPU and 16 GB of memory. The system ran on Ubuntu 18.04, with OMNeT++ 5.6.1 as the chosen simulation environment and INET version 4.1.2. The invisible protection band mechanism was enabled. Figure 8 illustrate the network topology. The TSN switches were configured with a delay jitter of 3 μs. The processing delay in the network was randomly set between 7 μs and 10 μs. The port bandwidth of the switches in the network was set to 100 Mbits/s.
The configuration information of the TSN flow is shown in Table 2 for SV type flows, and the transmission period of flow  p f n  was set to a standard 250 μs. When sending the SV flows, the frame length was kept constant [18]. To accurately reflect the performance of the scheduling algorithm and the network’s load processing capability, the transmission period of GOOSE type flow  s f n  was set to 10 ms. Equation (1) was used for periodic shaping as a prerequisite to enable scheduling based on periodic TT flows. Additionally, at the sending ends ES2 and ES6, non-real-time Ethernet flows with low latency requirements were sent as background flow.

5.2. Result Analysis

The real-time data of the transmission delay of the operation results of the global deterministic scheduling algorithm proposed in this paper is shown in Figure 9, and the simulation time is a total of 10,000 ms.
The detailed data of the transmission delay of the proposed algorithm scheduling is shown in Table 3. According to Table 3, the recommended algorithm in this paper combines the core TAS scheduling mechanism of TSN can accurately calculate the gating open/close time. Without sacrificing a significant amount of bandwidth, the results demonstrate that the proposed algorithm, in conjunction with the TAS scheduling mechanism, can completely eliminate the additional queuing delay for critical data flows, achieving the theoretically minimum transmission delay and ensuring strong real-time transmission quality. The algorithm presented in this paper, based on the conventional TAS scheduling algorithm that avoids interference between different types of traffic flows and enables mixed transmission, further eliminates the interference among individual data flows.
The reference [8] sets the switch processing delay as a customized parameter and utilizes network calculus theory to calculate the maximum delay boundary for critical traffic flows. The scheduling algorithm’s GCL configuration is required to ensure strict synchronization between the gate open time of high-priority queues and the arrival time of time-sensitive business packets. The transmission slot is determined by the data frame’s queueing time and the complete transmission time at the current switch, ensuring that critical data frames adhere to the FIFO scheduling rule. Under the premise of Equation (1)’s periodic shaping, it guarantees that the flow  p f n  can be scheduled according to the TT flow with a period of 10 ms. Taking into account the processing delay jitter in actual switches and the potential conflicts among multiple data flows at the convergence node, the scheduling algorithm proposed in this study is compared with the TAS scheduling algorithm specified in reference [8], the redundant slot allocation scheduling algorithm based on the maximum and minimum processing delay for determining the TAS gate open and close time, and the strict priority algorithm under the non-TAS mechanism in reference [6].
The Figure 10 reflects the real-time performance of data transmission under different algorithms, with this paper’s proposed algorithm demonstrating the theoretically minimal deterministic transmission latency. TAS can allocate different transmission queues based on priority. Compared to strict priority algorithms without TAS mechanisms, where data flows are transmitted only through the corresponding channels, this approach avoids interference from randomly sent background flow on critical business flows, as shown in Figure 11 and Figure 12. The standard deviation and jitter of data flow transmission latency scheduled using two algorithms under the TAS scheduling mechanism are lower than those of the strict priority algorithm without the TAS mechanism. However, due to the FIFO rule in port transmission, higher-priority data flows may still affect higher-priority and same-priority critical business flows [19].
In addition to the isolation at the MAC layer gate control mechanism of the switch, the combination of the scheduling algorithm’s derived sender offset achieves temporal isolation for data flows in the switch and connecting links. Different critical data flows are isolated in terms of time and space, thereby eliminating non-deterministic queuing delays caused by the convergence of multiple critical data flows due to high loads [20]. This is depicted in Figure 10 and Figure 11. The scheduling algorithm proposed in this paper is only affected by uncertainties arising from the switch’s state. It further avoids interference between each critical data flow based on the TAS scheduling algorithm. Setting offsets for senders requires the use of TSN’s CUC/CNC technology to achieve global network flow traffic control and transmission. In addition to configuring bridge devices such as switches, centralized configuration of senders through the use of CUC or CNC is necessary to achieve deterministic scheduling for the entire network [21].

6. Conclusions

This paper aims to achieve deterministic transmission with no queuing delay for critical data flows in the context of converged networking and mixed data flow transmission. Through an in-depth analysis of the three factors within the network that contribute to queuing delays, we can outline the approach.
(1) The first scheduling degree, when the traffic flow is mixed, reduces or avoids the impact of non-critical data flow on critical data flow, and ensures the delay quality of critical transmission flow. This method can be easily implemented using TSN-gated technology. However, the transmission of GOOSE flow is the variable cycle, which cannot be combined with the gating mechanism of the periodic cycle. Therefore, this paper proposes a method to increase the recovery time slot to solve this problem.
(2) The second scheduling degree, each critical data flow does not interfere with the other and solves the problem of queuing delay caused by the data flow occupying the port. This paper solves this problem by setting the offset at the transmitter.
(3) The third scheduling degree, in addition to the influence of data flow, solves the problem that other hardware limitations of the switch cause interference in critical data flow transmission. In addition to the data flow occupation port, there is still a problem of processing delay jitter caused by the switch according to its own state, which makes the time slot resources occupied by the data flow in an uncertain state. This paper finds the jitter boundary of the time slot resources by allocating redundant time slots and calculates the transmission offset based on the time slot resources occupied by the allocated data flow. After testing, the scheduling algorithm proposed in this paper can make the critical data flow achieve the most ideal real-time transmission without queuing delay under high load mixed flow transmission.
Avoiding the use of a large system and complex solver, the author deeply analyzed the storage and forwarding delay structure used by TSN, determined the scheduling rules, and combined the characteristics of the redundant time slot allocation model. After the aggregation switch completes a scheduling sequence, it can satisfy the deterministic transmission of the critical data flow directly forwarded into the global network. It solves the conflict that different frame length data flows do not produce conversion relationship in the storage and forwarding network. While ensuring the real-time stability of critical data flow transmission, this research provides strong support for future substation networks by simplifying network structures, achieving network integration and centralized unified configuration management.
Uninterrupted transmission represents the most ideal scenario in scheduling for deterministic data transmission. However, there are situations where this scheduling algorithm may not fully meet the constraints of time slot boundaries. In such cases, readers can explore further research avenues to improve scheduling success rates, even if it involves some trade-offs in real-time performance.

Author Contributions

Conceptualization, Z.S. and H.W.; methodology, Z.S., H.W. and M.W.; software, Z.S.; validation Z.S., H.W. and P.W.; formal analysis, P.W.; investigation, H.W.; resources, P.W.; data curation, H.W; writing—original draft preparation, Z.S.; writing—review and editing, Z.S.; visualization, M.W.; supervision, P.W.; project administration, M.W.; funding acquisition, P.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by The National Key Research and Development Program of China (2022YFE0204500).

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Yin, C.C.; Li, Y.J.; Zhu, H.L.; He, X.X.; Han, W.X. HSTC: Hybrid traffic scheduling mechanism in time-sensitive networking. J. Commun. 2022, 43, 119–132. [Google Scholar]
  2. Schriegel, S.; Jasperneite, J. A Migration Strategy for Profinet Toward Ethernet TSN-Based Field-Level Communication: An Approach to Accelerate the Adoption of Converged IT/OT Communication. IEEE Ind. Electron. Mag. 2021, 15, 43–53. [Google Scholar] [CrossRef]
  3. Nasrallah, A.; Thyagaturu, A.S.; Alharbi, Z.; Wang, C.X.; Shao, X.; Reisslein, M.; Elbakoury, H. Performance Comparison of IEEE 802.1 TSN Time Aware Shaper (TAS) and Asynchronous Traffic Shaper (ATS). IEEE Access 2019, 7, 44165–44181. [Google Scholar] [CrossRef]
  4. Farzaneh, M.H.; Knoll, A. An ontology-based Plug-and-Play approach for in-vehicle Time-Sensitive Networking (TSN). In Proceedings of the IEEE 7th Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON), Vancouver, BC, Canada, 13–15 October 2016. [Google Scholar]
  5. IEC 61850-5: 2013; Communication Networks and Systems for Power Utility Automation—Part 5: Communication Requirements for Functions and Device Models. IEC: Geneva, Switzerland, 2003.
  6. Barradi, M.; Hafid, A.S.; Gallardo, J.R. Establishing Strict Priorities in IEEE 802.11p WAVE Vehicular Networks. In Proceedings of the 2010 IEEE Global Telecommunications Conference GLOBECOM 2010, Miami, FL, USA, 6–10 December 2010. [Google Scholar]
  7. Ding, W. Human resource data integration system based on Artificial Intelligence. Autom. Instrum. 2023, 5, 172–176. [Google Scholar]
  8. Jia, H.B.; Hu, Z.H.; Wu, K.; Wu, W.R. Calculation Method for Maximum Time Delay of Substation Communication Network Based on Time-sensitive Networking. Autom. Electr. Power Syst. 2023, 47, 192–199. [Google Scholar]
  9. Xu, G.; Gao, D.M.; Fu, C.Y.; Huang, K.M. A smart grid heterogeneous data fusion using delay sensitivity. Inf. Technol. 2022, 8, 70. [Google Scholar]
  10. Yang, J.X.; Zhang, S.; Liu, J.C.; Han, X.Y.; Peng, W.; Liu, J. Dynamic Dispatch of Hybrid Hydro/PV/PHS Complementary Power Generation System Based On Deep Reinforcement Learning. In Proceedings of the 2021 IEEE 5th Conference on Energy Internet and Energy System Integration (EI2), Taiyuan, China, 21–24 October 2021; pp. 2125–2129. [Google Scholar] [CrossRef]
  11. Yin, L.Z.; Han, X.W.; Gao, C.J.; Zhang, J.; Li, Z. Optimization Method of power grid data fusion for High Proportion New Energy System. In Proceedings of the 2022 International Conference on Intelligent Transportation, Big Data & Smart City (ICITBS), Hengyang, China, 26–27 March 2022; pp. 827–831. [Google Scholar]
  12. IEEE Std 802.1Q-2018 (Revision of IEEE Std 802.1Q-2014); IEEE Standard for Local and Metropolitan Area Network–Bridges and Bridged Networks. IEEE: Piscataway, NJ, USA, 2018.
  13. IEEE 802.1AS-2020; Timing and Synchronization for Time-Sensitive Applications. IEEE Standard for Local and Metropolitan Area Networks. IEEE: Piscataway, NJ, USA, 2020; pp. 1–421.
  14. Li, Q.; Li, D.; Jin, X.; Wang, Q.; Zeng, P. A Simple and Efficient Time-Sensitive Networking Traffic Scheduling Method for Industrial Scenarios. Electronics 2020, 9, 2131. [Google Scholar] [CrossRef]
  15. Ojewale, M.A.; Yomsi, P. Routing heuristics for load-balanced transmission in TSN-based networks. SIGBED Rev. 2020, 16, 20–25. [Google Scholar] [CrossRef]
  16. Youssef, T.A.; Esfahani, M.M.; Mohammed, O. Data-Centric Communication Framework for Multicast IEC 61850 Routable GOOSE Messages over the WAN in Modern Power Systems. Appl. Sci. 2020, 10, 848. [Google Scholar]
  17. IEEE Std 802.1Qbv-2015; Bridges and Bridged Networks-Amendment 25: Enhancements for Scheduled Traffic. IEEE Standard for Local and Metropolitan Area Networks. IEEE: Piscataway, NJ, USA, 2016; pp. 1–57.
  18. Zhou, Y.G.; Liu, X.; Zhang, B. Security communication strategy for smart substation based on multistage transmission. Autom. Electr. Power Syst. 2021, 45, 105–114. [Google Scholar]
  19. Li, J.E.; Lu, Q.Y.; Liu, J.; Yuan, K.; Tian, W.; Peng, B.J. Communication service priority in smart substation and its queue scheduling method. J. Commun. 2021, 7, 25. [Google Scholar]
  20. He, L.; Hao, X.G. Acceptance test technology of communication network in digitalized substation. Power Syst. Prot. Control. 2010, 10, 75. [Google Scholar]
  21. IEEE Std 802.1Qcc-2018 (Amendment to IEEE Std 802.1Q-2018 as Amended by IEEE Std 802.1Qcp-2018); Bridges and BridgedNetworks-Amendment 31: Stream Reservation Protocol (SRP) Enhancements and Performance lmprovements. IEEE Standard for Local and Metropolitan Area Networks. IEEE: Piscataway, NJ, USA, 2018; pp. 1–208.
Figure 1. Scheduling transmission diagram based on fixed time slots technology.
Figure 1. Scheduling transmission diagram based on fixed time slots technology.
Electronics 12 04101 g001
Figure 2. The GOOSE flow transmission interval of variation.
Figure 2. The GOOSE flow transmission interval of variation.
Electronics 12 04101 g002
Figure 3. Direct Store and forward delay model.
Figure 3. Direct Store and forward delay model.
Electronics 12 04101 g003
Figure 4. Time-sensitive network mapping model.
Figure 4. Time-sensitive network mapping model.
Electronics 12 04101 g004
Figure 5. Performance of traffic flow conflict under different scheduling orders. (a) Prioritize scheduling flows with smaller frame length. (b) Prioritize scheduling flows with large frame length.
Figure 5. Performance of traffic flow conflict under different scheduling orders. (a) Prioritize scheduling flows with smaller frame length. (b) Prioritize scheduling flows with large frame length.
Electronics 12 04101 g005
Figure 6. Performance frame in the switch port occupancy conflict order. (a) The flow is transmitted without setting. (b) Set the offset when the flow is transmitted.
Figure 6. Performance frame in the switch port occupancy conflict order. (a) The flow is transmitted without setting. (b) Set the offset when the flow is transmitted.
Electronics 12 04101 g006
Figure 7. The global deterministic scheduling algorithm based on offset transmission and redundant slot allocation flow chart.
Figure 7. The global deterministic scheduling algorithm based on offset transmission and redundant slot allocation flow chart.
Electronics 12 04101 g007
Figure 8. Simulation network topology diagram.
Figure 8. Simulation network topology diagram.
Electronics 12 04101 g008
Figure 9. The transmission delay distribution of flows under the proposed algorithm on simulation.
Figure 9. The transmission delay distribution of flows under the proposed algorithm on simulation.
Electronics 12 04101 g009
Figure 10. The average transmission delay of flows under each scheduling algorithm [6,8].
Figure 10. The average transmission delay of flows under each scheduling algorithm [6,8].
Electronics 12 04101 g010
Figure 11. The jitter of flows under each scheduling algorithm [6,8].
Figure 11. The jitter of flows under each scheduling algorithm [6,8].
Electronics 12 04101 g011
Figure 12. The standard deviation of flows under each scheduling algorithm [6,8].
Figure 12. The standard deviation of flows under each scheduling algorithm [6,8].
Electronics 12 04101 g012
Table 1. System variables and meaning of representation.
Table 1. System variables and meaning of representation.
VariablesDescription
  v a Any node switch in the network
  v a 1 The previous hop switch of data flow on node switch  v a
  v a + 1 The next hop switch of data flow on node switch  v a
  E S n Terminal node
  v r The last convergence switch in the node switch  v a
  f n The n-th time-triggered flow in the scheduling sequence
  f m The data flow that has completed deterministic scheduled in the scheduling sequence
  p f n Periodic TT flow
  s f n Non-periodic TT flow
  D n The transmission delay of the n-th data flow, the unit of the quantity of variation is μs.
  L n The length of the link in the path of the n-th TT flow
  c 0 Standard light speed, the quantity is 299,792.458 km/s
  T i The i th variable transmission periods of the GOOSE flow
  T A S c In the TAS gating mechanism cycle period in TSN, the unit of the quantity of variation is μs.
  f s i z e n The frame length of each data frame in the periodic TT flow, the unit of the quantity of variation is Byte.
BWThe sending rate of the PHY chip, the unit of the quantity of variation is Mbps.
  d t r a n s n The transmission delay of the n-th TT flow at the network node switch, the unit of the quantity of variation is μs.
  d p r o c n The processing delay of the n-th TT flow at the network node switch, the unit of the quantity of variation is μs.
  d q u e n e n The queuing delay of the n-th TT flow at the network node switch, the unit of the quantity of variation is μs.
  d p r o p n The propagation delay of the n-th TT flow at the network node switch, the unit of the quantity of variation is μs.
  T p r d n The transmission period of periodic TT flow, the unit of the quantity of variation is μs.
  T i n i t n , i v a The start transmission time of the i-th data of TT flow  f n  at switch without the queuing delay, the unit of the quantity of variation is μs.
  T u l t i n , i v a The complete transmission time of the i-th data of TT flow at the switch without the queuing delay, the unit of the quantity of variation is μs.
  T s l o t n , i v a The data frame of the data flow accounts for the time slot
resources of the TAS cycle, the unit of the quantity of variation is μs.
  T o f f s e t n Frame offset of TT flow
f n  at node  v a , the unit of the quantity of variation is μs.
  O f f s e t n The offset of TT flow  f n  at the sender side, the unit of the quantity of variation is μs.
  O f f s e t c o r r n Correction value for the offset of TT flow, the unit of the quantity of variation is μs.
Table 2. All configuration information of each critical flow.
Table 2. All configuration information of each critical flow.
Scheduling SequenceCritical Business FlowSource NodeTransmitter PathFrame Length Configure
Offset
  f 1   s f 2   E S 7 ( E S 7 , S W 4 , E S 8 )   500   B y t e s 0 μs
  f 2   p f 3   E S 5 ( E S 5 , S W 2 , S W 4 , E S 8 )   375   B y t e s 16 μs
  f 3   p f 2   E S 4 ( E S 4 , S W 2 , S W 4 , E S 8 )   375   B y t e s 52 μs
  f 4   s f 1   E S 3 ( E S 3 , S W 2 , S W 4 , E S 8 )   250   B y t e s 108 μs
  f 5   p f 1   E S 1 ( E S 1 , S W 1 , S W 2 , S W 4 , E S 8 )   250   B y t e s 107 μs
Table 3. The transmission delay details of each critical flow under this paper to propose the scheduling algorithm.
Table 3. The transmission delay details of each critical flow under this paper to propose the scheduling algorithm.
Critical Business FlowTheoretical Transmission
Delay without Queuing Delay
Minimum
Delay
Maximum
Delay
Average
Delay
Standard
Deviation
Jitter
  p f 1 [101 μs, 110 μs]101.14 μs   109.9   μ s   105.51   μ s   1.51   μ s 8.76 μs
  s f 1 [74 μs, 80 μs]74.11 μs   79.95   μ s   76.95   μ s   1.23   μ s 5.84 μs
  s f 2 [87 μs, 90 μs]87.01 μs   89.99   μ s 88.56 μs   0.84   μ s 2.98 μs
  p f 2 [104 μs, 110 μs]104.03 μs   109.97   μ s   107.0   μ s   1.22   μ s 5.94 μs
  p f 3 [104 μs, 110 μs]104.01 μs   109.98   μ s   107.0   μ s   1.22   μ s 5.97 μs
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Shen, Z.; Wang, H.; Wei, M.; Wang, P. Research on Global Deterministic Direct Forwarding and Scheduling of Mixed Flow Based on Time-Sensitive Network in Substation. Electronics 2023, 12, 4101. https://doi.org/10.3390/electronics12194101

AMA Style

Shen Z, Wang H, Wei M, Wang P. Research on Global Deterministic Direct Forwarding and Scheduling of Mixed Flow Based on Time-Sensitive Network in Substation. Electronics. 2023; 12(19):4101. https://doi.org/10.3390/electronics12194101

Chicago/Turabian Style

Shen, Zhongyuan, Hao Wang, Min Wei, and Ping Wang. 2023. "Research on Global Deterministic Direct Forwarding and Scheduling of Mixed Flow Based on Time-Sensitive Network in Substation" Electronics 12, no. 19: 4101. https://doi.org/10.3390/electronics12194101

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop