CN116366550A - End-to-end low-delay scheduling method for time trigger stream of time sensitive network - Google Patents

End-to-end low-delay scheduling method for time trigger stream of time sensitive network Download PDF

Info

Publication number
CN116366550A
CN116366550A CN202310206255.2A CN202310206255A CN116366550A CN 116366550 A CN116366550 A CN 116366550A CN 202310206255 A CN202310206255 A CN 202310206255A CN 116366550 A CN116366550 A CN 116366550A
Authority
CN
China
Prior art keywords
time slot
time
slot
link
selecting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310206255.2A
Other languages
Chinese (zh)
Inventor
周思源
王晋
刘畅
徐江珮
王浩
田里
周亮
王捷
喻潇
龙凤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing University of Post and Telecommunications
Electric Power Research Institute of State Grid Hubei Electric Power Co Ltd
Original Assignee
Chongqing University of Post and Telecommunications
Electric Power Research Institute of State Grid Hubei Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing University of Post and Telecommunications, Electric Power Research Institute of State Grid Hubei Electric Power Co Ltd filed Critical Chongqing University of Post and Telecommunications
Priority to CN202310206255.2A priority Critical patent/CN116366550A/en
Publication of CN116366550A publication Critical patent/CN116366550A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/18End to end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0078Timing of allocation

Abstract

The invention relates to an end-to-end low-delay scheduling method of time-triggered streams of a time-sensitive network, which belongs to the field of industrial Internet and comprises the following steps: s1: acquiring information of all TT flows of the switch, and performing time slot allocation for all links through which all TT flows pass from a source node to a destination node according to the priority; s2: reducing the end-to-end delay of the TT stream by local time slot searching; s3: and according to the optimized time slot occupation table, the number of time perception shapers is reduced as much as possible, the door opening times are reduced, and a corresponding gating list is generated. The invention reduces the end-to-end delay of TT flow and also reduces the number of time perception shapers.

Description

End-to-end low-delay scheduling method for time trigger stream of time sensitive network
Technical Field
The invention belongs to the field of industrial Internet, and relates to an end-to-end low-delay scheduling method of time trigger streams of a time sensitive network.
Background
Time Sensitive Networks (TSNs) are a set of standards that improve the real-time performance of current ethernet networks, including a series of standards defined in the IEEE802.1 standardization organization TSN task group. Due to the recent increase in demand for industrial system functions, data communication in industrial systems faces many challenges, such as automatic driving automobiles and intelligent factories, many complex intelligent sensors and cameras are widely used, which require a large amount of communication bandwidth while satisfying their timing requirements with high data and high exchange amounts, and ensuring deterministic transmission of communication. This places further stress on the data communication design of such systems. Time sensitive networks address these recent challenges of increasing demands for industrial system functionality, mainly by deterministic stream scheduling (ieee 802.1 qbv), enhanced time synchronization (ieee 802.1 as), etc.
Although IEEE802.1Qbv proposes a mechanism for communicating scheduling information in the TSN, a gating list is proposed by the design user. In time sensitive networks, the part of the delay that can be optimized as a scheduling decision maker is mainly the switch part. As shown in FIG. 1Time-triggered flow is shown to be delayed from source node to destination node as D in a time-sensitive network ETE By time delay of transmission
Figure BDA0004111068590000011
Propagation delay->
Figure BDA0004111068590000012
Processing delay->
Figure BDA0004111068590000013
And queuing delay->
Figure BDA0004111068590000014
Four parts are composed of:
Figure BDA0004111068590000015
in local area networks, the transmission length is generally small, and the propagation delay is compared to the propagation rate of electromagnetic waves on a channel
Figure BDA0004111068590000016
Negligible; the delays that occur inside the switch are: transmission delay->
Figure BDA0004111068590000017
Processing delay->
Figure BDA0004111068590000018
Queuing delay->
Figure BDA0004111068590000019
Wherein the transmission delay->
Figure BDA00041110685900000113
The message length and the sending speed of the switch port are related to the following steps:
Figure BDA00041110685900000110
processing delay time
Figure BDA00041110685900000111
Related to the performance of the switch, typically considered as a constant value;
queuing delay
Figure BDA00041110685900000112
Is the delay caused by the waiting of the data frame in the queuing buffer queue of the switch, as shown in fig. 2; after two frames arrive at the switch at the same time, a frame is necessarily sent first and then sent later, and queuing delay is generated for the frame which is sent later. The prior art cannot minimize this queuing delay.
Disclosure of Invention
Accordingly, the present invention is directed to an end-to-end low latency scheduling method for time triggered streams in a time sensitive network.
In order to achieve the above purpose, the present invention provides the following technical solutions:
an end-to-end low-delay scheduling method of time-triggered streams of a time-sensitive network comprises the following steps:
s1: acquiring information of all TT flows of the switch, and performing time slot allocation for all links through which all TT flows pass from a source node to a destination node according to the priority;
s2: reducing the end-to-end delay of the TT stream by local time slot searching;
s3: and according to the optimized time slot occupation table, the number of time perception shapers is reduced as much as possible, the door opening times are reduced, and a corresponding gating list is generated.
Further, the step S1 specifically includes:
s11: reading and collecting information of all TT flows in a network, wherein the information comprises TT flow period, message size and priority information;
s12: sequencing all TT flows from high priority to low priority, and calculating the comprehensive scheduling period T of the TT flows A And calculate each TT stream
Figure BDA0004111068590000021
Relative to the integrated scheduling period T A The number of transmission frames N i And calculating a Slot transmission basic unit Slot;
s13: selecting a first TT stream
Figure BDA0004111068590000022
And the TT stream is routed to select the first link +.>
Figure BDA0004111068590000023
Judging the ith time slot occupying variable of the link from node m to node n>
Figure BDA0004111068590000024
If equal to 1, if not equal to 1, occupying the lower transmission
Figure BDA0004111068590000025
The required time slot->
Figure BDA0004111068590000026
And will->
Figure BDA0004111068590000027
Setting as 1; if the current time slot->
Figure BDA0004111068590000028
Then representing that the current time slot is occupied, skipping the current time slot, selecting the next time slot +.>
Figure BDA0004111068590000029
And repeating step S13;
s14: let N i =N i -1, judge N i Whether or not 0, if N i Not equal to 0, the time slot occupation time is added to
Figure BDA00041110685900000210
Period T of (2) i And is occupied again, and the device is used up again,namely: make->
Figure BDA00041110685900000211
And let N i =N i -1, wherein->
Figure BDA00041110685900000212
Indicating that time slot i is at time slot length T i The following time slot, repeating step S14 until N i =0;
S15: judging the TT flow
Figure BDA00041110685900000213
Whether all the time slots of all the links are allocated or not, if not, selecting the next link;
s16: judging whether all TT flows are scheduled, if not, selecting the next TT flow and then entering step S13;
s17: the preliminary slot occupancy table is obtained and output via steps S11-S16.
Further, the integrated scheduling period T in step S12 A The method comprises the following steps:
T A =LCM(T 1 ,T 2 ,...,T i )
wherein LCM represents the least common multiple, T 1 ~T i Representing TT flow
Figure BDA00041110685900000214
Is a period of (2);
each TT stream
Figure BDA00041110685900000215
Relative to the integrated scheduling period T A The number of transmission frames N i The calculation is as follows:
Figure BDA0004111068590000031
the Slot transmission basic unit Slot is:
Figure BDA0004111068590000032
where GCD represents the greatest common divisor,
Figure BDA0004111068590000033
indicate TT flow->
Figure BDA0004111068590000034
The required time slot size:
Figure BDA0004111068590000035
wherein SP is s Indicating the speed of the switch port transmission,
Figure BDA0004111068590000036
indicate TT flow->
Figure BDA0004111068590000037
Is a data frame size of (c).
Further, the step S2 of reducing the end-to-end delay of the TT stream by the local time slot search specifically includes:
s21: reading the preliminary time slot occupation table and selecting a first TT stream
Figure BDA0004111068590000038
Selecting a link closest to the destination node;
s22: from TT stream with lowest priority
Figure BDA0004111068590000039
Begin searching, select->
Figure BDA00041110685900000310
Selecting TT flow +.>
Figure BDA00041110685900000311
The ith time slot from node m to node nWith variable->
Figure BDA00041110685900000312
Is a time slot of (2); find forward from the time slot, judge +.>
Figure BDA00041110685900000313
In adjacent link->
Figure BDA00041110685900000314
Whether there is an idle slot on it, i.e. TT stream +.>
Figure BDA00041110685900000315
Ith time slot occupancy variable from node n to node o
Figure BDA00041110685900000316
If yes, step S23 is carried out, if no, the next link is selected, and after the link is judged, the next TT flow is selected;
s23: determine whether or not it is possible to
Figure BDA00041110685900000317
In link->
Figure BDA00041110685900000318
The time slot occupied by the last slot is moved back and then it is determined whether the time slot can be reduced after the movement>
Figure BDA00041110685900000319
If so, removing the spare time slot by the movement of the time slot occupation, and updating the time slot occupation table, and if the end-to-end delay cannot be reduced, selecting the next link;
s24: checking whether all TT flows are optimized, and if so, generating a time slot occupancy table after optimization.
Further, the step S3 specifically includes:
s31: reading a time slot occupation table generated after time slot occupation optimization, and selecting a time slot occupation table of a first link;
s32: selecting the first time slot of the link, judging
Figure BDA00041110685900000320
Whether or not equal to 1, if->
Figure BDA00041110685900000321
Eye->
Figure BDA00041110685900000322
Figure BDA00041110685900000323
Judging whether the priorities of TT streams occupying the two time slots are equal, if so, combining the two time slots, and if not, selecting the next time slot; if->
Figure BDA00041110685900000324
Eye(s) for the treatment of a person suffering from a disorder>
Figure BDA00041110685900000325
Then the two unoccupied time slots are combined; cycling until the last slot of the current link;
s33: selecting the first time slot of the link, judging
Figure BDA00041110685900000326
Whether or not equal to 1, if->
Figure BDA00041110685900000327
Generating a gating list parameter with gating priority parameter +.>
Figure BDA00041110685900000328
According to the binary number of Slot i Determining a time slot parameter by the time slot size; if it is
Figure BDA00041110685900000329
Figure BDA00041110685900000330
The gating priority parameter is set to all 1's according to Slot i Determining a time slot parameter by the time slot size; cycling until the last slot of the current link;
s34: checking whether all links have generated the gating list, outputting the generated gating list if all have generated the gating list, and selecting a link to repeat steps S32-S33 if there are links not generating the gating list.
The invention has the beneficial effects that: compared with the traditional strict priority algorithm, the method optimizes the end-to-end time delay and the time slot number, can reduce the end-to-end time delay of TT flow, and can also reduce the number of time perception shapers.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objects and other advantages of the invention may be realized and obtained by means of the instrumentalities and combinations particularly pointed out in the specification.
Drawings
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in the following preferred detail with reference to the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a TSN network delay;
FIG. 2 is a queuing delay diagram;
FIG. 3 is a schematic diagram of door opening and closing time;
FIG. 4 is a schematic diagram of slot merging;
FIG. 5 is a diagram of strict priority based look-ahead scheduling;
FIG. 6 is a strict priority based look-ahead scheduling flowchart;
FIG. 7 is a schematic diagram of end-to-end delay optimization based on local slot search;
FIG. 8 is a flow chart of end-to-end delay optimization based on local slot search;
FIG. 9 is a diagram of a gating list optimization output algorithm;
fig. 10 is a network topology diagram of the first embodiment;
fig. 11 is a preliminary time slot occupancy representation of the first embodiment;
fig. 12 is a schematic diagram of an optimized slot occupancy according to the first embodiment.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be noted that the illustrations provided in the following embodiments merely illustrate the basic idea of the present invention by way of illustration, and the following embodiments and features in the embodiments may be combined with each other without conflict.
Wherein the drawings are for illustrative purposes only and are shown in schematic, non-physical, and not intended to limit the invention; for the purpose of better illustrating embodiments of the invention, certain elements of the drawings may be omitted, enlarged or reduced and do not represent the size of the actual product; it will be appreciated by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
The same or similar reference numbers in the drawings of embodiments of the invention correspond to the same or similar components; in the description of the present invention, it should be understood that, if there are terms such as "upper", "lower", "left", "right", "front", "rear", etc., that indicate an azimuth or a positional relationship based on the azimuth or the positional relationship shown in the drawings, it is only for convenience of describing the present invention and simplifying the description, but not for indicating or suggesting that the referred device or element must have a specific azimuth, be constructed and operated in a specific azimuth, so that the terms describing the positional relationship in the drawings are merely for exemplary illustration and should not be construed as limiting the present invention, and that the specific meaning of the above terms may be understood by those of ordinary skill in the art according to the specific circumstances.
The invention provides a scheduling method for providing event trigger flow in a time sensitive network, wherein parameters shown in table 1 are referred to in the invention:
TABLE 1
Figure BDA0004111068590000051
In this time-sensitive network, there are the following constraints:
network constraints:
the whole network is a single-path, loop-free network and defines a link variable
Figure BDA0004111068590000061
Indicate TT flow->
Figure BDA0004111068590000062
Whether or not to pass, the link from node m to node n, if so +.>
Figure BDA0004111068590000063
If it does not pass->
Figure BDA0004111068590000064
After the source node and the destination node in the network are separated, all the remaining nodes need to meet the requirement of full-reliable transmission, and the packet loss rate is 0, namely the inflow flow is equal to the outflow flow:
Figure BDA0004111068590000065
for the source node, all traffic is sent from the source node, and then the following needs to be satisfied:
Figure BDA0004111068590000066
for the destination node, all the receiving ends of the traffic are slave destination nodes, and the destination node cannot send out the traffic, so that the following needs to be satisfied:
Figure BDA0004111068590000067
flow constraint:
the TT stream is a time triggered stream and is sent periodically. This requires
Figure BDA0004111068590000068
Transmission time from m to n->
Figure BDA0004111068590000069
Must be greater than 0 and require +.>
Figure BDA00041110685900000610
The transmission is completed in its period, namely:
Figure BDA00041110685900000611
Figure BDA00041110685900000612
time slot occupancy constraint:
in the process of transmitting TT streams by the switch, a port can only transmit one TT stream at the same moment, and in the same period, the same time slot can only be occupied by one TT stream. Defining a time slot occupancy variable
Figure BDA00041110685900000613
The TT flow is represented on the link from node m to node n +.>
Figure BDA00041110685900000614
In the integrated scheduling period T A If the i-th slot resource is occupied>
Figure BDA00041110685900000615
Occupying the time slot ∈ ->
Figure BDA00041110685900000616
Otherwise, 0. Then on the link from node m to node n, the port slot occupancy constraint for the same switch is as follows:
Figure BDA00041110685900000617
Figure BDA00041110685900000618
time slot optimization constraints:
judging whether one TT stream can be optimized or not, and meeting two conditions: (1) TT flow
Figure BDA00041110685900000619
Is to be used for the current end-to-end delay of (a)
Figure BDA00041110685900000620
Whether or not it is greater than the delay caused by its transmission, i.e. whether or not queuing delay is generated during transmission:
Figure BDA00041110685900000621
(2) whether enough empty time slots exist for TT flow adjustment or not, and queuing delay is reduced so as to reduce end-to-end delay
Wherein a is a time slot of the TT stream sent from the source node, and b is a time slot of the destination node receiving the TT stream:
Figure BDA0004111068590000071
time-aware shaper number constraint:
in one comprehensive dispatching period T A Each TT stream
Figure BDA0004111068590000072
The number of the transmitted data frames is N i There is a time-aware shaper operation for each transmission of a data frame. Defining a time-aware shaper event consisting of a door open time, a slot transmission occupancy time, a door close time, a door open time delta and a door close time delta are consumed for each time-aware shaper operation, as shown in fig. 3. Therefore, in order to reduce the resource consumption of the system and improve the utilization rate of the bandwidth, a plurality of time slots of continuous transmission can be combined, and the number of time perception shapers is reduced.
For two TT traffic with the same priority for adjacent transmissions on the same link within the same scheduling period:
Figure BDA0004111068590000073
or adjacent unoccupied slots on the same link during the same scheduling period:
Figure BDA0004111068590000074
for satisfying the above conditions, two time-aware shapers may be combined, as shown in fig. 4.
The method comprises the following three stages:
the first stage: acquiring the information such as the period, the message size, the priority and the like of all TT flows of the switch, and calculating the comprehensive scheduling period T A Slot transmission basic unit Slot according to priority level
Figure BDA0004111068590000075
Ordering TT flows, and preferentially scheduling +.>
Figure BDA0004111068590000076
High TT stream, corresponding time slots are allocated according to the path sequence thereof, as shown in FIGS. 5-6, specific packetsThe method comprises the following steps:
step 1-1: reading all information of the existing network, and collecting information of all TT flows in the current network;
step 1-2: sequencing all TT flows from high to low according to priority, and calculating the comprehensive scheduling period T of the TT flows A And calculate each TT stream
Figure BDA0004111068590000077
Relative to the integrated scheduling period T A The number of transmission frames N i And calculating a Slot transmission basic unit Slot;
the integrated scheduling period is determined by all TT stream periods, and the integrated scheduling period considers the transmission time of all TT streams on each link in the whole network, so that the streams reach the receiving end before the worst delay time. Thus, the overall scheduling period T A Is defined as the least common multiple (Least Common Multiple, LCM) of all TT stream periods, where T i Representing TT flow
Figure BDA0004111068590000079
The calculation formula is as follows:
T A =LCM(T 1 ,T 2 ,…,T i )
the TT flow can be calculated through the comprehensive scheduling period and needs to be transmitted for a plurality of times in the scheduling period, and the flow is triggered in time
Figure BDA0004111068590000078
The number of transmission frames in the comprehensive scheduling period is N i
Figure BDA0004111068590000081
According to switch port sending speed SP s TT stream
Figure BDA0004111068590000082
Data frame size +.>
Figure BDA0004111068590000083
Calculate->
Figure BDA0004111068590000084
The size of the required time slot
Figure BDA0004111068590000085
Figure BDA0004111068590000086
Figure BDA0004111068590000087
According to the time Slot size required by each TT stream transmission, calculating a time Slot transmission basic unit Slot which is defined as all
Figure BDA0004111068590000088
The greatest common divisor (Greatest Common Divisor, GCD) of the slot sizes required for transmission is calculated as follows:
Figure BDA0004111068590000089
step 1-3: selecting a first TT stream
Figure BDA00041110685900000810
And the TT stream is routed to select the first link +.>
Figure BDA00041110685900000811
Judging +.>
Figure BDA00041110685900000812
Whether or not 1 is equal (if 1 is representing that the current time slot is occupied), and if not 1 is occupied, transmitting +.>
Figure BDA00041110685900000813
When neededGap->
Figure BDA00041110685900000814
And will->
Figure BDA00041110685900000815
Setting as 1; if the current time slot->
Figure BDA00041110685900000816
The current time slot is skipped and the next time slot is selected +.>
Figure BDA00041110685900000817
And repeating the steps 1-3;
step 1-4: n (N) i =N i -1, judge N i Whether or not 0, if N i Not equal to 0, then time slot
Figure BDA00041110685900000818
Occupancy of, make
Figure BDA00041110685900000819
And let N i =N i -1, repeating steps 1-4 until N i =0;
Step 1-5: judging whether the TT stream is the one
Figure BDA00041110685900000820
Whether all the time slots of all the links are allocated or not, if not, selecting the next link;
step 1-6: judging whether all TT flows are scheduled, if not, selecting the next TT flow and then entering the step 1-3;
step 1-7: and outputting the preliminary time slot occupation table.
And a second stage: after the initial allocation of slots for all TT flows, the second phase of scheduling attempts to reduce the end-to-end delay of TT flows by local slot search, as shown in FIGS. 7-8.
Step 2-1: reading a time slot occupation table generated after advanced scheduling, and selecting a first TT stream
Figure BDA00041110685900000821
Selecting a link closest to the destination node;
step 2-2: from TT stream with lowest priority
Figure BDA00041110685900000822
Begin searching, select->
Figure BDA00041110685900000823
Selecting +.>
Figure BDA00041110685900000824
Is allocated to the time slot of the mobile station. Find forward from the time slot, judge +.>
Figure BDA00041110685900000825
In adjacent link->
Figure BDA00041110685900000826
Whether or not there is an idle time slot, i.e
Figure BDA00041110685900000827
Figure BDA00041110685900000828
If yes, a third step is carried out, if no, a next link is selected, and after the link is judged, a next TT flow is selected;
step 2-3: determine whether or not it is possible to
Figure BDA00041110685900000829
In link->
Figure BDA00041110685900000830
The time slot occupied by the last slot is moved backwards, and then whether the time slot can be reduced after the time slot is moved is judged>
Figure BDA00041110685900000831
End-to-end delay of (c) if any, by shifting of slot occupancyDynamically removing the free time slot, and updating a link time slot occupation table, and selecting the next link if the end-to-end delay cannot be reduced;
step 2-4: checking whether all TT flows are optimized, and if so, generating a time slot occupancy table after optimization.
And a third stage: according to the optimized time slot allocation table, the door opening times are reduced as much as possible, and a corresponding gating list is generated, as shown in fig. 9, comprising the following steps.
Step 3-1: reading an optimized time slot occupation table generated after time slot occupation optimization, and selecting a time slot occupation table of a first link;
step 3-2: selecting the first time slot of the link, judging
Figure BDA0004111068590000091
Whether or not it is equal to 1. If->
Figure BDA0004111068590000092
And is also provided with
Figure BDA0004111068590000093
Judging whether the priorities of TT streams occupying the two time slots are equal, if so, combining the two time slots, and if not, selecting the next time slot; if->
Figure BDA0004111068590000094
And->
Figure BDA0004111068590000095
Then the two unoccupied time slots are combined; cycling until the last slot of the current link;
step 3-3: selecting the first time slot of the link, judging
Figure BDA0004111068590000096
Whether or not it is equal to 1. If->
Figure BDA0004111068590000097
Then give birth toA gating list parameter, gating priority parameter is +.>
Figure BDA0004111068590000098
According to the binary number of Slot i Determining a time slot parameter by the time slot size; if->
Figure BDA0004111068590000099
The gating priority parameter is set to all 1's according to Slot i Determining a time slot parameter by the time slot size; cycling until the last slot of the current link;
step 3-4: checking whether all links have generated gating lists, outputting the generated gating list if all the links have generated gating lists, and selecting the link to repeat the steps 3-2 to 3-3 if no gating list is generated for any link.
Embodiment one:
in the network topology of the network as in fig. 10, the network is composed of two source nodes, two destination nodes, two TSN switches, wherein the ports of the switches transmit speed SP s For 100Mbps, there are 3 TT flows in the whole network, and specific information is shown in Table 2.
TABLE 2
Figure BDA00041110685900000910
Fig. 11 shows a flow of the primary schedule section, which includes links through which all TT flows must be transmitted from a source node to a destination node, described in brackets, for example, [ source node 1, TSN switch 1] and [ TSN switch 1, TSN switch 2]. The horizontal axis is time, and this slot occupancy table is a slot transmitted by allocating frames transmitted by the TT stream to links directed to its destination, but actually occupied ports.
TT stream with highest priority according to scheduling algorithm of preliminary time slot occupation
Figure BDA0004111068590000101
Starting. Because ofThis first takes TT stream +.>
Figure BDA0004111068590000102
And occupies a link from source node 1 to TSN switch 1, i.e. [ source node 1, TSN switch 1]]TSN switch 1, TSN switch 2]And [ TSN switch 2, destination node 1]]. TT flow->
Figure BDA0004111068590000103
The occupied link time Slot is represented by a block whose length corresponds to the Slot required for transmission 1 =125×8bit/100Mbps=10μs。
Next, the TT stream of priority 6 will be
Figure BDA0004111068590000104
The links allocated to the links needed to reach the destination node have lengths corresponding to the slots Slot needed for transmission 4 =375×8bit/100 mbps=30 μs. Next, the TT stream of priority 5 is +.>
Figure BDA0004111068590000105
The links allocated to the links needed to reach the destination node have lengths corresponding to the slots Slot needed for transmission 3 =250×8bit/100 mbps=20 μs. Finally TT stream of priority 4 +.>
Figure BDA0004111068590000106
The links allocated to the links needed to reach the destination node have lengths corresponding to the slots Slot needed for transmission 2 =125×8bit/100Mbps=10μs。
The final preliminary slot occupancy table is shown in FIG. 11, and it can be seen that TT flows
Figure BDA0004111068590000107
Is delayed at TSN switch 1 because TT stream +.>
Figure BDA0004111068590000108
Upon arrival at TSN switch 1, TSN switch 1 is transmitting TT flow +_ to destination node 2>
Figure BDA0004111068590000109
Fig. 12 shows a flow of the slot optimization section, and the link slot occupancy table includes all TT stream slot occupancy after the primary scheduling.
TT stream with highest priority according to time slot occupation optimization algorithm
Figure BDA00041110685900001010
Optimization is started. Firstly, TT stream +.>
Figure BDA00041110685900001011
The links traversed from the source node to the destination node are: [ Source node 3, TSN switch 1][ TSN switch 1, destination node 2]. At the position of
Figure BDA00041110685900001012
And if no free time slot exists in the transmission process, selecting the next TT stream for optimization.
Next, a TT stream of priority 6 is selected
Figure BDA00041110685900001013
Optimizing (I)>
Figure BDA00041110685900001014
The links traversed from the source node to the destination node are: [ Source node 2, TSN switch 2][ TSN switch 2, destination node 1]. At->
Figure BDA00041110685900001015
And if no free time slot exists in the transmission process, selecting the next TT stream for optimization.
TT stream of priority 5 is then selected
Figure BDA00041110685900001016
Optimizing (I)>
Figure BDA00041110685900001017
From source nodeThe links traversed by the point to the destination node are: [ Source node 2, TSN switch 2]TSN switch 2, TSN switch 1][ TSN switch 1, destination node 2]. At->
Figure BDA00041110685900001018
In the transmission process of [ TSN switch 2, TSN switch 1]]And [ TSN switch 1, destination node 2]]Free time slots are between the two links, then select move +.>
Figure BDA00041110685900001019
In [ TSN switch 2, TSN switch 1]The occupied time slot on the base station eliminates the spare time slot. After the link is optimized in the same way, for [ source node 2, TSN switch 2]As does this link.
The finally generated optimized time slot occupation table is shown in fig. 12, and it can be seen by comparing the preliminary time slot occupation table that TT stream
Figure BDA00041110685900001020
The end-to-end delay of (c) is reduced by 20 mus due to the optimization.
Finally, it is noted that the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made thereto without departing from the spirit and scope of the present invention, which is intended to be covered by the claims of the present invention.

Claims (5)

1. An end-to-end low-delay scheduling method of time-triggered streams of a time-sensitive network is characterized in that: the method comprises the following steps:
s1: acquiring information of all TT flows of the switch, and performing time slot allocation for all links through which all TT flows pass from a source node to a destination node according to the priority;
s2: reducing the end-to-end delay of the TT stream by local time slot searching;
s3: and according to the optimized time slot occupation table, the number of time perception shapers is reduced as much as possible, the door opening times are reduced, and a corresponding gating list is generated.
2. The end-to-end low latency scheduling method of time-triggered streams of a time-sensitive network of claim 1, wherein: the step S1 specifically comprises the following steps:
s11: reading and collecting information of all TT flows in a network, wherein the information comprises TT flow period, message size and priority information;
s12: sequencing all TT flows from high priority to low priority, and calculating the comprehensive scheduling period T of the TT flows A And calculate each TT stream
Figure FDA0004111068580000011
Relative to the integrated scheduling period T A The number of transmission frames N i And calculating a Slot transmission basic unit Slot;
s13: selecting a first TT stream
Figure FDA0004111068580000012
And the TT stream is routed to select the first link +.>
Figure FDA0004111068580000013
Judging the ith time slot occupying variable of the link from node m to node n>
Figure FDA0004111068580000014
Whether or not equal to 1, if not equal to 1, occupy the lower transmission +.>
Figure FDA0004111068580000015
The required time slot->
Figure FDA0004111068580000016
And will->
Figure FDA00041110685800000114
Setting as 1; if the current time slot->
Figure FDA0004111068580000017
Then representing that the current time slot is occupied, skipping the current time slot, selecting the next time slot +.>
Figure FDA0004111068580000018
And repeating step S13;
s14: let N i =N i -1, judge N i Whether or not 0, if N i Not equal to 0, the time slot occupation time is added to
Figure FDA00041110685800000115
Period T of (2) i And again occupy, namely: make->
Figure FDA0004111068580000019
And let N i =N i -1, wherein->
Figure FDA00041110685800000110
Indicating that time slot i is at time slot length T i The following time slot, repeating step S14 until N i =0;
S15: judging the TT flow
Figure FDA00041110685800000111
Whether all the time slots of all the links are allocated or not, if not, selecting the next link;
s16: judging whether all TT flows are scheduled, if not, selecting the next TT flow and then entering step S13;
s17: the preliminary slot occupancy table is obtained and output via steps S11-S16.
3. The end-to-end low latency scheduling method of time-triggered streams of a time-sensitive network of claim 2, wherein: the comprehensive scheduling period T in step S12 A The method comprises the following steps:
T A =LCM(T 1 ,T 2 ,…,T i )
wherein LCM represents the least common multiple, T 1 ~T i Representing TT flow
Figure FDA00041110685800000112
Is a period of (2);
each TT stream
Figure FDA00041110685800000113
Relative to the integrated scheduling period T A The number of transmission frames N i The calculation is as follows:
Figure FDA0004111068580000021
the Slot transmission basic unit Slot is:
Figure FDA0004111068580000022
where GCD represents the greatest common divisor,
Figure FDA0004111068580000023
indicate TT flow->
Figure FDA0004111068580000024
The required time slot size:
Figure FDA0004111068580000025
wherein SP is s Indicating the speed of the switch port transmission,
Figure FDA0004111068580000026
indicate TT flow->
Figure FDA0004111068580000027
Is a data frame size of (c).
4. The end-to-end low latency scheduling method of time-triggered streams for a time-sensitive network of claim 3, wherein: the step S2 of reducing the end-to-end delay of the TT stream by local time slot search specifically includes:
s21: reading the preliminary time slot occupation table and selecting a first TT stream
Figure FDA0004111068580000028
Selecting a link closest to the destination node;
s22: from TT stream with lowest priority
Figure FDA0004111068580000029
Begin searching, select->
Figure FDA00041110685800000210
Selecting TT flow +.>
Figure FDA00041110685800000228
The i-th slot occupancy variable from node m to node n +.>
Figure FDA00041110685800000211
Is a time slot of (2); find forward from the time slot, judge +.>
Figure FDA00041110685800000212
In adjacent link->
Figure FDA00041110685800000213
Whether there is an idle slot on it, i.e. TT stream +.>
Figure FDA00041110685800000214
Ith time slot occupancy variable from node n to node o
Figure FDA00041110685800000215
If yes, step S23 is carried out, if no, the next link is selected, and after the link is judged, the next TT flow is selected;
s23: determine whether or not it is possible to
Figure FDA00041110685800000216
In link->
Figure FDA00041110685800000217
The time slot occupied by the last slot is moved back and then it is determined whether the time slot can be reduced after the movement>
Figure FDA00041110685800000229
If so, removing the spare time slot by the movement of the time slot occupation, and updating the time slot occupation table, and if the end-to-end delay cannot be reduced, selecting the next link;
s24: checking whether all TT flows are optimized, and if so, generating a time slot occupancy table after optimization.
5. The end-to-end low latency scheduling method of time-triggered streams of a time-sensitive network of claim 4, wherein: the step S3 specifically comprises the following steps:
s31: reading a time slot occupation table generated after time slot occupation optimization, and selecting a time slot occupation table of a first link;
s32: selecting the first time slot of the link, judging
Figure FDA00041110685800000218
Whether or not equal to 1, if->
Figure FDA00041110685800000219
And->
Figure FDA00041110685800000220
Slot i+1 =1, judging whether the priorities of TT streams occupying the two time slots are equal, if so, combining the two time slots, and if not, selecting the next time slot; if->
Figure FDA00041110685800000221
And->
Figure FDA00041110685800000222
Then the two unoccupied time slots are combined; cycling until the last slot of the current link;
s33: selecting the first time slot of the link, judging
Figure FDA00041110685800000223
Whether or not equal to 1, if->
Figure FDA00041110685800000224
Generating a gating list parameter with gating priority parameter +.>
Figure FDA00041110685800000225
According to the binary number of Slot i Determining a time slot parameter by the time slot size; if->
Figure FDA00041110685800000226
Figure FDA00041110685800000227
The gating priority parameter is set to all 1's according to Slot i Determining a time slot parameter by the time slot size; cycling until the last slot of the current link;
s34: checking whether all links have generated the gating list, outputting the generated gating list if all have generated the gating list, and selecting a link to repeat steps S32-S33 if there are links not generating the gating list.
CN202310206255.2A 2023-03-03 2023-03-03 End-to-end low-delay scheduling method for time trigger stream of time sensitive network Pending CN116366550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310206255.2A CN116366550A (en) 2023-03-03 2023-03-03 End-to-end low-delay scheduling method for time trigger stream of time sensitive network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310206255.2A CN116366550A (en) 2023-03-03 2023-03-03 End-to-end low-delay scheduling method for time trigger stream of time sensitive network

Publications (1)

Publication Number Publication Date
CN116366550A true CN116366550A (en) 2023-06-30

Family

ID=86938750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310206255.2A Pending CN116366550A (en) 2023-03-03 2023-03-03 End-to-end low-delay scheduling method for time trigger stream of time sensitive network

Country Status (1)

Country Link
CN (1) CN116366550A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117596200A (en) * 2024-01-15 2024-02-23 之江实验室 Time-sensitive network route scheduling method, electronic equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117596200A (en) * 2024-01-15 2024-02-23 之江实验室 Time-sensitive network route scheduling method, electronic equipment and medium
CN117596200B (en) * 2024-01-15 2024-05-07 之江实验室 Time-sensitive network route scheduling method, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN108777660B (en) Method for scheduling service in time-triggered FC network
WO2019084970A1 (en) Packet forwarding method, forwarding device, and network device
CN114422448B (en) Time-sensitive network traffic shaping method
CN113424500B (en) Method for routing in a time-sensitive network
CN115460130B (en) Multipath joint scheduling method in time sensitive network
CN112953830A (en) Routing planning and scheduling method and device for flow frames in time-sensitive network
US7391777B2 (en) Distance-sensitive scheduling of TDM-over-packet traffic in VPLS
CN114553697B (en) Industrial wireless and TSN fusion-oriented network scheduling method
CN114448894A (en) Multi-level service scheduling engine facing time sensitive network and implementation method
CN113032938A (en) Time-sensitive flow routing scheduling method, device, electronic equipment and medium
CN112468412A (en) Method for generating schedules for mixed-critical computer networks
US20150131443A1 (en) Method For Transmitting Data In A Packet-Oriented Communications Network And Correspondingly Configured User Terminal In Said Communications Network
CN104301933A (en) Method for calculating bandwidth and distributing bandwidth in wireless ad hoc network
CN114830611A (en) Centralized network configuration entity and time-sensitive network control system comprising same
CN116366550A (en) End-to-end low-delay scheduling method for time trigger stream of time sensitive network
CN115883438A (en) Routing and scheduling method and device of time trigger flow in time-sensitive network and readable storage medium
CN117560106A (en) Scheduling method for time trigger flow in time sensitive network
CN113630335B (en) Optimized selection method for switching Ethernet data flow control strategy
CN115604193B (en) Deterministic resource scheduling method and system in hot rolling control system
CN116132374A (en) Power communication network transmission delay control method combining routing and gating planning
CN114915597B (en) Deterministic resource scheduling method for time-sensitive network
US8355403B2 (en) Stale data removal using latency count in a WiMAX scheduler
CN114363270A (en) Data forwarding method and related device
Kong et al. Run-time per-class routing of AVB flows in in-vehicle TSN via composable delay analysis
CN115333998B (en) Time-sensitive network flow scheduling method suitable for power communication network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination