Scheduling method and system for reliable transmission of time-triggered stream

By constructing a transient fault model and an improved ILP scheduling method, reliable transmission of TT streams in TSN is achieved, which solves the problem of data transmission uncertainty and increased cost of redundant paths caused by transient faults, and improves the efficiency and efficiency of data transmission. reliability.

CN118555031AActive Publication Date: 2024-08-27XIAN UNIV OF POSTS & TELECOMM
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410423765.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-09
Publication Date
2024-08-27
Estimated Expiration
2044-04-09

AI Technical Summary

Technical Problem

In time-sensitive networks (TSN), data transmission uncertainty and redundant paths caused by transient faults increase system costs. Existing technologies cannot effectively tolerate transient faults and affect data reliability.

Method used

Use time redundancy to construct an instantaneous fault model through exponential distribution, calculate the minimum number of instance replicas required for each time-triggered flow (TT flow), and use the improved integer linear programming (ILP) method to schedule TT flows, CRC-related flows, and TT retransmits the stream and formulates corresponding constraints to ensure reliable data transmission.

Benefits of technology

Under the premise of ensuring data reliability, it reduces the waste of network resources caused by resource redundancy and improves resource utilization. It provides an effective solution for reliable transmission of TT streams when instantaneous failures occur in the factory intranet under TSN, reducing system costs. Improved data transmission efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555031A
    Figure CN118555031A
Patent Text Reader

Abstract

The invention belongs to the technical field of TT stream transmission, and discloses a scheduling method and system for reliable transmission of a time-triggered stream, and the method comprises the steps: building a fault model suitable for a transient fault through the exponential distribution; calculating the minimum number of instance copies required to be transmitted by each TT stream to tolerate the transient fault; original constraint conditions are improved, corresponding constraints are made for CRC related streams and TT retransmission streams, and the TT streams, the CRC related streams and the TT retransmission streams are scheduled by using an improved ILP method. According to the invention, reliable transmission of the TT flow is realized by adopting a time redundancy mode; the invention discloses a time slice reservation method based on time redundancy, which can reduce the problem of waste of a large number of network resources caused by resource redundancy and improve the resource utilization rate on the premise of ensuring the data reliability requirement. And an effective solution is provided for tolerating transient faults of the factory intranet under the TSN architecture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of time-triggered (TT) stream transmission, and in particular relates to a scheduling method and system for reliable transmission of time-triggered streams. Background Art

[0002] In the architecture of the Industrial Internet, network facilities are the foundation, which mainly includes two parts, namely the industrial control network and the industrial information network. As a fully decentralized, fully digital system architecture, the fieldbus control system has been widely used in the early days of industrial networks. However, due to high costs and incompatibility of different bus technologies, it has gradually been replaced by industrial Ethernet technology. The biggest advantage of industrial Ethernet is its low cost, high speed, good openness, and it can also unify the industrial control network and the industrial information network, but here it only achieves unification by transmitting control data and information data from real-time channels and standard channels respectively.

[0003] Time Sensitive Networking (TSN) is a universal standard based on Ethernet technology, which guarantees deterministic latency and bandwidth. As a standard and open Layer 2 technology, it also reduces costs and has better interoperability. Secondly, it can meet the differentiated quality of service (QoS) requirements of different levels of business flows, and also realize the integration of industrial control networks and industrial information networks, that is, the production control data and office management information are transmitted on the same network. Finally, it supports software-defined networking (SDN), which can make TSN configuration more flexible and management more convenient, and provide the possibility for intelligent operation and maintenance of the network. There are three types of traffic in TSN, namely time-triggered (TT) flow, audio / video bridging (AVB) flow and best-effort (BE) flow. TT streams are used for hard real-time applications and require deterministic low latency and high reliability. AVB streams are used for soft real-time applications and require the lowest end-to-end latency, but their latency constraints are looser than those of TT streams. BE streams do not have rigid latency requirements. In order to ensure the deterministic low latency and high reliability of TT streams, the IEEE802.1 working group has developed some standards, including precise network time synchronization mechanisms, traffic shaping mechanisms, resource management mechanisms, and reliability assurance mechanisms.

[0004] For industrial systems, once a network failure occurs, it may cause serious harm to the human body, equipment or environment. Common factors that cause network unavailability include user misoperation, packet loss caused by network congestion, network failure, etc. Network failures can be divided into three categories: permanent failures, transient failures and intermittent failures. Permanent failures refer to failures that occur continuously, which may be caused by link or switch failures, thereby interrupting data transmission; transient failures refer to failures that occur once and then disappear, which may be caused by electromagnetic interference or random hardware failure, but it only affects the current data transmission and has no effect on subsequent data transmission; intermittent failures refer to failures that occur periodically, which may be caused by a component that is about to be damaged.

[0005] Through the above analysis, the problems and defects of the existing technology are as follows: In the TSN standard, the main ones related to reliability are IEEE 802.1Qca and IEEE 802.1CB, which use spatial redundancy to tolerate three common faults in the network, namely permanent faults, transient faults and intermittent faults. In industrial applications, transient faults are more likely to occur than the other two types of faults. For example, mobile phones in buildings or vehicles, electrical equipment such as switches and relays, and lightning in the environment can all cause such transient faults. If only spatial redundancy is used, in addition to permanent faults and intermittent faults, additional redundant paths must be provided for each transient fault that needs to be tolerated, which will increase the cost of the system. Compared with spatial redundancy, temporal redundancy is more suitable for tolerating transient faults, that is, transmitting multiple frame copies through the same path. In addition, the cyclic redundancy check (CRC) can detect data errors caused by transient faults, and then return the detection results to the sender. The sender will retransmit the erroneous data just sent. However, in TSN, since transient faults occur randomly, the time for the sender to retransmit data is also random, which will bring uncertainty to the deterministic transmission of TSN, and the CRC detection result message may also encounter transient faults during transmission. Summary of the invention

[0006] In view of the problems existing in the prior art, the present invention provides a scheduling method and system for reliable transmission of time-triggered streams.

[0007] The present invention is implemented as follows: a scheduling method for reliable transmission of time-triggered streams, firstly using exponential distribution to construct a fault model suitable for instantaneous faults; using the TSRTR method, in the first part of the method, a calculation formula for the minimum number of copies required to be transmitted for a TT stream is given, and the advantages and disadvantages of two different calculation methods are compared; in the second part, an improved ILP method is used for scheduling, mainly to improve the existing ILP scheduling constraints, and to add constraints for cyclic redundancy check (CRC) related streams and TT retransmission streams.

[0008] Furthermore, the scheduling method for reliable transmission of time-triggered streams comprises the following steps:

[0009] Step 1: Use exponential distribution to build a fault model suitable for instantaneous faults;

[0010] Step 2: Calculate the minimum number of instance copies that each TT flow needs to transmit in order to tolerate transient failures;

[0011] Step 3: Improve the original constraints, formulate corresponding constraints for CRC-related flows and TT retransmission flows, and use the improved ILP method to schedule TT flows, CRC-related flows, and TT retransmission flows.

[0012] Furthermore, the instantaneous failure of the flow instance in step 1 is modeled as an exponential distribution, and the flow f is defined as i The example is in link [v a ,v b The probability of transmission failure on ] is:

[0013]

[0014] where λ is the expected number of failures per hour, For a TT stream f i The example is in link [v a ,v b ] corresponds to the transmission time on the egress port, and d is the propagation delay of the link.

[0015] Furthermore, the fault mode defines the behavior of the switch when encountering a fault; when the receiving end correctly receives the data sent by the sending end, it will return a confirmation message; when the receiving end incorrectly receives the data sent by the sending end, that is, the sending end encounters a transient fault in the process of sending data, the receiving end will return a negative confirmation so that the sending end can retransmit the data in time. If the receiving end performs a CRC test and the returned test result message also encounters a transient fault, the sending end will perform a timeout retransmission.

[0016] Further, for If pfh xIf the following equation is satisfied, then all flows in level x meet the reliability requirements;

[0017] pf x ≤PFH x

[0018] Streams in each reliability level use the same n i , while different streams of rd i ' and F i ' are different. In order to ensure that each flow in level x can meet the reliability requirements, rd i ' and F i ' is used to replace the value corresponding to each flow, so that when pfh x ≤PFH x When , each flow in level x can meet the reliability requirements.

[0019] Furthermore, for TT flow f i Instance transfer time and queue allocation The two variables are constrained as follows:

[0020] (1) Frame Constraint

[0021] Each instance must complete the transfer within its cycle. have,

[0022]

[0023]

[0024] (2) Delay Constraint

[0025] The following formula ensures that both the TT flow and the TT retransmission flow can reach the destination node before their deadlines; flow f i The path can be expressed as for have:

[0026]

[0027] in, Indicates that the last TT retransmission flow instance copy is on path r i The transmission time of the last link corresponding to the egress port.

[0028] (3) Streaming constraints

[0029] The following formula guarantees the flow f i The order in which instances are transmitted on a link must be in the order in which the predecessor link [v a ,v x] before the transmission on the subsequent link [v x ,v b ] for transmission; have:

[0030]

[0031] where n i Represents the flow f i The number of copies that need to be transmitted, d represents the propagation delay of the flow on the link, and δ represents the maximum clock synchronization error.

[0032] (4) Link Constraints

[0033] A physical link can only transmit one flow instance at a time. have:

[0034]

[0035]

[0036] in, σ∈{0,1}, M represents an infinite constant; only one of the two constraints in the above formula needs to be satisfied.

[0037] (5) Frame Isolation Constraints

[0038] For spatial isolation, different TT flow instances need to enter different queues; for temporal isolation, when different TT flow instances enter the same queue, the next instance can enter the queue only after the previous instance is transmitted. have:

[0039]

[0040]

[0041] in, w∈{0,1}, w ensures that only one of the two constraints in the above formula is satisfied, and M represents an infinite constant. It is used to determine whether two flows enter different queues, which can be expressed by the following formula:

[0042]

[0043] Furthermore, the CRC-related flow instance is in link [v a ,v b ]The transmission time corresponding to the egress port is as follows:

[0044]

[0045] CRC related flow constraints:

[0046] for have,

[0047]

[0048]

[0049] Among them, σ1∈{0,1} is used to limit that only one of the two constraints in the above formula can be satisfied; similarly, CRC-related streams need to be frame isolated to prevent crossover. have:

[0050]

[0051]

[0052] Among them, w1∈{0,1}, ensures that one of the two constraints in the above formula is satisfied, It is used to determine whether two flows enter different queues, which can be expressed as follows:

[0053]

[0054] Furthermore, the TT retransmission flow instance is in link [v a ,v b ]The transmission time of the corresponding egress port is expressed as:

[0055]

[0056] TT retransmission flow constraints:

[0057] for have:

[0058]

[0059]

[0060] Among them, σ2∈{0,1} is used to limit that only one of the two constraints in the above formula can be satisfied.

[0061] Furthermore, the objective function defined by the model minimizes the end-to-end delay of each flow, namely

[0062]

[0063] Where Ω i Indicates TT flow f i end-to-end delay.

[0064] Another object of the present invention is to provide a scheduling system for time-triggered reliable transmission of a time-triggered stream, the scheduling method for time-triggered reliable transmission of a stream, the system comprising:

[0065] A fault model building module is used to build a fault model suitable for instantaneous faults using exponential distribution;

[0066] The minimum instance replica number calculation module is used to calculate the minimum instance replica number that each TT flow needs to transmit in order to tolerate transient failures;

[0067] The scheduling module is used to schedule the TT flow, the CRC-related flow and the TT retransmission flow by using the improved ILP method.

[0068] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:

[0069] First, the present invention aims at the instantaneous failure problem caused by electromagnetic interference or random hardware failure, and realizes the reliable transmission of TT stream by using time redundancy; a time slice reservation (TSRTR) method based on time redundancy is proposed, which can reduce the large amount of network resource waste caused by resource redundancy and improve resource utilization while ensuring data reliability requirements.

[0070] A large number of experiments and analyses have proved that the algorithm proposed in this chapter is effective and provides an effective solution for tolerating transient failures in factory intranets under the TSN architecture.

[0071] Second, in order to solve the problem of instantaneous failure caused by electromagnetic interference or random hardware failure, the reliable transmission of TT flow is realized by time redundancy. Specifically, the exponential distribution is first used to construct a fault model suitable for instantaneous failure; then the TSRTR method is proposed. In the first part of the method, the calculation formula for the minimum number of copies required to transmit the TT flow is given, and the advantages and disadvantages of two different calculation methods are compared; in the second part, the improved ILP method is used for scheduling, mainly to improve the existing ILP scheduling constraints, and add constraints on cyclic redundancy check (CRC) related flows and TT retransmission flows. The effect is reflected in TSN. Many applications cannot tolerate the long delay required for dynamic network control protocols to recover from network failures. In this way, it is not feasible to use dynamic redundancy to deal with network failures. The use of static redundancy technology, namely time redundancy, becomes a feasible solution. The present invention designs a large number of test cases, and the experimental results show that the proposed method is effective, which provides an effective solution for the reliable transmission of TT flow when instantaneous failures occur in the factory intranet under TSN.

[0072] Third, the expected benefits and commercial value of the technical solution of the present invention after transformation are:

[0073] This solution proposes a scheduling method for reliable transmission of time-triggered streams (TT streams) when transient faults occur. This method uses time redundancy to achieve reliable transmission of TT streams in response to transient faults caused by electromagnetic interference or random hardware failures. This method proposes a time slice reservation (TSRTR) method based on time redundancy, which can reduce the waste of network resources caused by resource redundancy while ensuring data reliability requirements. This solution provides an effective solution for the reliable transmission of TT streams when transient faults occur in factory intranets under TSN. It is expected that a better reliable transmission solution can be provided for factory intranets using TSN networks, thereby enabling enterprises to have better competitiveness and profitability.

[0074] The technical solution of the present invention fills the technical gap in the industry at home and abroad:

[0075] The reliable transmission method of time-triggered (TT) streams is an important research area of ​​TSN. Current research on the transmission of TT streams focuses on ensuring the latency requirements of data through different routing and scheduling methods, and there is still little research on reliable data transmission. However, for many industrial systems, the loss of critical data caused by network failures may cause serious harm to the human body, equipment or the environment. In TSN, many applications cannot tolerate the long delay required for dynamic network control protocols to recover from network failures, so it is not feasible to use dynamic redundancy to deal with network failures. Therefore, the use of static redundancy technology becomes a feasible solution. The time slice reservation (TSRTR) method based on time redundancy proposed in the present invention can reduce the large amount of network resource waste caused by resource redundancy while ensuring data reliability requirements. Specifically, we first use the exponential distribution to build a fault model suitable for instantaneous faults. Then we propose the TSRTR method. In the first part of this method, we give a formula for calculating the minimum number of copies of the TT flow that needs to be transmitted, and compare the advantages and disadvantages of two different calculation methods. In the second part, we use the improved ILP method for scheduling, which mainly improves the existing ILP scheduling constraints and adds constraints on cyclic redundancy check (CRC) related flows and TT retransmission flows. The experimental results show that the proposed method is effective and can provide an effective solution for the reliable transmission of TT flows when instantaneous faults occur in the factory intranet under TSN.

[0076] The technical solution of the present invention solves the technical problems that people have been eager to solve but have never been able to solve successfully:

[0077] In the field of TSN, most of the current research focuses on ensuring the latency requirements of data through different routing and scheduling methods, and there is less research on whether data can be reliably transmitted in the event of a network failure. However, for industrial systems, once a network failure occurs, it may cause serious harm to the human body, equipment or environment. For example, in an automated manufacturing plant, robots work on the production line. Each robot consists of several terminal systems, such as sensors, controllers, and actuators. In order to enable them to work together, these robots are connected to the same physical network and they are also connected to a central control unit. If a robot's sensor detects a value that requires all robots to stop working immediately, the value received by the sensor will be transmitted to the central control unit through the network, and then the central control unit will send a stop message to each robot. In this case, if a network failure occurs, the transmission of the stream carrying the stop information may fail, causing damage to the equipment and even threatening the lives of workers near the production line. Therefore, solving the problem of reliable transmission when transient faults occur in TSN is a problem that must be solved.

[0078] Fourthly, the scheduling method for reliable transmission of time-triggered streams provided by the present invention has achieved remarkable results in solving technical problems in industrial applications of the prior art and obtained outstanding technical effects.

[0079] First, for the instantaneous fault problem, the present invention uses exponential distribution to construct a suitable fault model. This step effectively simulates the instantaneous fault conditions that may occur in actual industrial applications and provides an accurate fault prediction basis for subsequent scheduling strategies.

[0080] Secondly, by calculating the minimum number of instance copies that each time-triggered flow (TT flow) needs to transmit, the present invention ensures reliable data transmission even in the event of a transient failure. This strategy not only improves the reliability of data transmission, but also avoids the waste of resources caused by unnecessary data redundancy.

[0081] Thirdly, the present invention improves the original constraint conditions and formulates corresponding constraints for CRC-related flows and TT retransmission flows. These improvements and constraint formulations make the scheduling method more in line with the needs of actual industrial applications and improve the flexibility and accuracy of scheduling.

[0082] Finally, by using the improved integer linear programming (ILP) method to schedule TT flow, CRC related flow and TT retransmission flow, the present invention realizes reliable transmission scheduling of time-triggered flow. This method not only improves the efficiency of data transmission, but also reduces the risk of transmission errors, providing a more reliable and efficient data transmission solution for industrial applications.

[0083] In general, the present invention has made an important breakthrough in solving the technical problem of reliable transmission of time-triggered streams, which not only improves the reliability and efficiency of data transmission, but also provides a strong guarantee for the stability and security of industrial applications. Its innovation and practicality have important practical significance and application value in promoting technological progress in related fields. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0085] Figure 1 It is a flow chart of a scheduling method for reliable transmission of time-triggered streams provided by an embodiment of the present invention;

[0086] Figure 2 It is a structural diagram of a scheduling system for reliable transmission of time-triggered streams provided by an embodiment of the present invention;

[0087] Figure 3 Schematic diagram of the principle of TSRTR provided by an embodiment of the present invention; (a) no-fault scenario; (b) fault scenario 1; (c) fault scenario 2; (d) TSRTR principle;

[0088] Figure 4 is a schematic diagram of an experimental topology 1 provided in an embodiment of the present invention;

[0089] Figure 5 is a schematic diagram of experimental topology 2 provided in an embodiment of the present invention;

[0090] Figure 6 is a schematic diagram of experimental topology 3 provided in an embodiment of the present invention;

[0091] Figure 7 Schematic diagrams of experimental topologies provided by embodiments of the present invention to illustrate the disadvantages of spatial redundancy in tolerating transient failures; (a) a topology with two redundant paths; (b) a topology with three redundant paths;

[0092] Figure 8 It is a schematic diagram of the number of transmission copies required for TT flows included in reliability level A provided by an embodiment of the present invention;

[0093] Fig. 9 Schematic diagram of the number of copies required to be transmitted for TT flows included in other reliability levels provided by an embodiment of the present invention; (a) the number of copies required to be transmitted for TT flows included in reliability level B; (b) the number of copies required to be transmitted for TT flows included in reliability level C;

[0094] Fig.10 is a schematic diagram of PFH of all flows in reliability level A provided by an embodiment of the present invention;

[0095] Fig.11 is a schematic diagram of PFH of all flows in the reliability level provided by an embodiment of the present invention;

[0096] Fig.12 is a schematic diagram of PFH of all flows in the reliability level provided by an embodiment of the present invention;

[0097] Fig.13 The embodiment of the present invention provides λ=10 -5 Schematic diagram of the acceptability rate of the lower TT flow;

[0098] Fig.14 The embodiment of the present invention provides λ=10 -3 Schematic diagram of the acceptability rate of the lower TT flow; DETAILED DESCRIPTION

[0100] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0101] The following are two industrial application examples based on the method, showing how this scheduling method for reliable transmission of time-triggered streams can be applied in actual scenarios:

[0102] Example 1: Automated production line in the automobile manufacturing industry

[0103] In the automated production line of automobile manufacturing, accurate time control and data transmission are crucial to ensure production efficiency and product quality. This scheduling method can be applied to the control system in the automated production line to ensure the reliability of data transmission between various robots and automated equipment during the production process.

[0104] 1. Deployment scheduling method:

[0105] The scheduling method is deployed in an automated production line, using an exponential distribution failure model to predict and respond to potential communication failures.

[0106] According to the specific requirements of the production line, the minimum number of instance copies required for each TT flow (e.g., robot control instruction flow, sensor data flow) is calculated, and the ILP method is adjusted for optimal scheduling.

[0107] 2. Effects and benefits:

[0108] By achieving accurate data retransmission and timely fault handling, production line downtime is significantly reduced and production efficiency is improved.

[0109] It improves the automation level and reliability of the production line and reduces the costs caused by human errors and downtime.

[0110] Example 2: Real-time monitoring and control of power systems

[0111] In power systems, real-time monitoring and control are essential to maintaining stable operation of the power grid and responding to emergencies. This dispatching method can be applied to the communication network of the power system to ensure the reliable transmission of key monitoring data and control instructions.

[0112] This scheduling method is deployed in the communication network of the power system, and a fault model and retransmission mechanism are established for key data flows (such as substation monitoring data flow and remote control instruction flow).

[0113] The improved ILP method is used to schedule different data streams to ensure rapid response and data retransmission in the event of a transient fault, thereby ensuring the stable operation of the power grid.

[0114] Through this method, data transmission in the power system is more reliable, reducing misoperation and delayed response caused by communication failures.

[0115] It has enhanced the grid's ability to respond to emergencies, improved the safety and stability of grid operations, and plays an important role in preventing major accidents such as large-scale power outages.

[0116] These two embodiments demonstrate the application potential and practical benefits of the scheduling method for reliable transmission of time-triggered streams in different industrial fields, and are of significant value in improving system reliability and optimizing operational efficiency.

[0117] like Figure 1 As shown, an embodiment of the present invention provides a scheduling method for reliable transmission of a time-triggered stream, comprising the following steps:

[0118] Step 1: Use exponential distribution to build a fault model suitable for instantaneous faults;

[0119] Step 2: Calculate the minimum number of instance copies that each TT flow needs to transmit in order to tolerate transient failures;

[0120] Step 3: Improve the original constraints, formulate corresponding constraints for CRC-related flows and TT retransmission flows, and use the improved ILP method to schedule TT flows, CRC-related flows, and TT retransmission flows.

[0121] Assume that the terminal systems and TSN switches in the TSN network comply with the IEEE 802.1AS and IEEE 802.1Qbv standards. The entire network adopts a fully centralized configuration mode based on SDN. First, the flow set joining the network will initiate a request to the controller, and then the controller will use the proposed method to calculate and generate a static scheduling table, and finally send the scheduling table to the TSN switch and terminal system.

[0122] The network model is a directed graph G(V,E), where V represents the set of all communication nodes in the network, consisting of terminal systems and TSN switches, that is, V = ES∪B, es represents an terminal system in the set ES, b represents a TSN switch in the set B, and E represents the set of all links. a and v b The full-duplex physical link between them corresponds to two independent unidirectional links [v a ,v b ] and [v b ,v a ], each unidirectional link [v a ,v b ] can be defined by a triple, namely (c, d, n), where c is the transmission rate of the link, d is the propagation delay of the link, and n is the number of queues at the outbound port. The switch processing delay is not considered.

[0123] In TSN, a flow refers to time-sensitive data from a source node to one or more destination nodes.

[0124] Define the relevant properties of the flow: is the set of all flows in TSN, It can be expressed as in and Respectively represent the set of TT flow and non-TT flow, Represents a collection of CRC-related streams. When the receiving end receives an instance, it will be tested through CRC and then return the test result, that is, a confirmation message or a negative confirmation message. This test result can be used To express. Indicates the set of TT flows that need to be retransmitted. It can be defined as the link [v a ,v b ], in and Respectively represent the link [v a ,v b ] is a collection of TT flows, CRC-related flows, TT retransmission flows and non-TT flows.

[0125] TT stream i Can be composed of a tuple (src i ,dst i ,T i ,sz i ,dl i ,x i ,r i ) indicates that src i and dst i T represents the source node and destination node of the flow respectively. The cycle size of the flow and the size of the data sent per cycle are respectively represented by T i and sz i Indicates that dl i Indicates the deadline of the flow. Different flows have different requirements for reliability. i Indicates the reliability level. i Represents the flow f i The selected path is a collection of multiple links. To simplify the model, it is assumed that each flow instance contains only one frame.

[0126] Table 1 Stream related attributes

[0127]

[0128] In TSN, TT flows are transmitted periodically, so the super cycle is defined Indicates that in link [v a ,v b ] is the least common multiple of all TT flow periods transmitted on the network. The calculation only needs to be carried out within one super period, and the previous calculation result will be used in the next super period. a ,v b ] corresponds to an export port one by one, so the definition For a TT stream f i The example is in link [v a ,v b ] corresponds to the transmission time on the egress port. Similarly Indicates the transmission duration of a CRC-related stream instance. Indicates TT flow f i The example is in link [v a ,v b ] The transmission time on the corresponding egress port is relative to the start time of a super cycle. Indicates the transmission time of the TT retransmission flow instance, Indicates the transmission time of the CRC related stream instance. Indicates TT flow f i In the link [v a ,vb ] The queue allocation on the egress port connected to the TT is shown in Table 1. The flow-related attributes are summarized in Table 1. Unless otherwise specified, the flow mentioned refers to the TT flow.

[0129] In order to correctly design the fault tolerance mechanism, we must first explain the fault model and fault mode encountered in the network. The most common fault in the communication system is the transient fault. The transient fault of the flow instance can usually be modeled as an exponential distribution, so we define the flow f i The example is in link [v a ,v b The probability of transmission failure on ] is,

[0130]

[0131] where λ represents the expected number of failures per hour.

[0132] On the other hand, the fault mode defines the behavior of the switch when it encounters a fault. When the receiving end correctly receives the data sent by the sending end, it will return a confirmation message; when the receiving end incorrectly receives the data sent by the sending end, that is, the sending end encounters a transient fault in the process of sending data, the receiving end will return a negative confirmation so that the sending end can retransmit the data in time. If the receiving end performs a CRC test and the returned test result message also encounters a transient fault, the sending end will perform a timeout retransmission. Note that the sending end and the receiving end refer to two TSN devices connected to the same link, which should be distinguished from the concepts of source node and destination node.

[0133] Time slice reservation method based on time redundancy:

[0134] First, make the following assumptions:

[0135] (1) A failure can only affect one instance at a time

[0136] (2) Retransmitting the TT flow instance multiple times is sufficient to overcome the impact of transient failures

[0137] (3) The devices in the network have fault detection capabilities and can detect faults within a specified time, such as using CRC, timers, etc.

[0138] (4) There is a data retransmission mechanism. When the receiving end returns a negative confirmation message, the sending end will retransmit the data

[0139] The pseudo code of the TSRTR method is shown in Algorithm 2, which is divided into two parts. The first part calculates the minimum number of instance copies that need to be transmitted for each TT flow in order to tolerate transient failures. The second part schedules the flows added to the network. In this part, time slices are reserved in advance for the retransmission of the TT flow based on the calculation results of the first part. In this way, when the receiving end correctly receives the data sent by the sender and returns a confirmation message, the reserved time slice will be used to transmit non-TT flows; if the receiving end incorrectly receives the data sent by the sender and returns a negative confirmation message, the reserved time slice will be used to retransmit the TT flow.

[0140] Specifically, line 1 uses the Dijkstra algorithm to determine the path for each flow; lines 2 to 5 calculate the minimum number of copies required to be transmitted for each TT flow, where n i Represents the flow f i The number of copies that need to be transmitted, N refers to the set of the number of copies transmitted for each flow; the 6th line uses the formula to calculate the bandwidth utilization u, where HP represents the super period, which is the least common multiple of all TT flow periods; lines 7 to 15 use the scheduling algorithm for scheduling. When u>1, the scheduling must fail, so FALSE is returned directly. When u<1, if the scheduling algorithm is solved successfully, TRUE is returned, otherwise FALSE is returned.

[0141]

[0142]

[0143] like Figure 3 As shown in the figure, the principle of the TSRTR method is as follows: Assume that there are three flows, two TT flows, namely f1 and f2, and one non-TT flow; the transmission delay of all flows is two time units, and the periods of flows f1 and f2 are 20 and 10 respectively; all flows share the egress port v of the switch a , but in three different queues, at time 0, all flows arrive from three different ingress ports of the switch.

[0144] exist Figure 3 In (a), the transmission of all flows does not encounter transient failures. In this scenario, the remaining time slices of TT flow transmission can be used to transmit non-TT flows. However, if transient failures occur at t = 1, 3, 7, 11, 13, as shown in Figure 3 (b), it is necessary to transmit multiple copies of TT flow instances to tolerate transient failures and improve the reliability of TT flow transmission. At this time, the time allocation of the egress port is as follows: TT flow f1 is transmitted on [6,10), TT flow f2 is transmitted on [0,6) and [10,16), and non-TT flows are transmitted in the remaining time slices. Note Figure 3All transmissions that encounter transient failures are represented by dashed boxes. For TT flow f1, assume that the probability of its transmission failure on a certain link is 0.1; and its reliability requirement is that the probability of transmission failure every ten time units is 0.05. In this way, if two copies of the TT flow instance are transmitted, that is, F1 = 0.1 2 =0.01<0.05, it can meet the reliability requirement. However, it should be noted that the occurrence of transient failures is random. If a transient failure only occurs at t=1, transmitting multiple instance copies will waste bandwidth and cause congestion to the network. Figure 3 (c).

[0145] Figure 3 (d) shows the principle of the proposed TSRTR method. The TT flow f1 instance is traveling along the link [v a ,v b ] transmission; at time t2, the last bit of this instance is also transmitted; at time t3, the receiving end v b The instance is successfully received; after passing the CRC check, the receiving end v b To the sender v a Transmit CRC related messages and complete the transmission at time t4; the sending end v a At time t5, a CRC-related message is received; the previous operation is then repeated.

[0146] The advantage of the TSRTR method is that after obtaining the number of times the TT stream needs to be transmitted, the required time slices are reserved in advance. a If a confirmation message is received, then the time slot [t5, t6) can be used to transmit non-TT streams. Of course, if a negative confirmation message is received, or a CRC-related message is not received on time, or an incorrect CRC-related message is received, then the time slot [t5, t6) will be used to retransmit the TT stream instance. Through the above analysis, the following conclusions are drawn:

[0147] (1) All TT flows, TT retransmission flows, and CRC-related flows will pass through the link [v during the period [t1, t9) a ,v b ] or [v b ,v a ]Complete deterministic transmission.

[0148] (2) TT flow f1 will flow from v at time t1 a The transmission starts. Since it is uncertain whether the TT stream will be retransmitted at time t5, no other streams are allowed to reach v during the period [t2, t5). a If a flow reaches v during the period [t2, t5) a, then the TT retransmission flow may not be transmitted normally at time t5, thereby increasing the end-to-end delay of TT flow f1.

[0149] (3) In this example, because TT stream f1 may be retransmitted, it must be at least at time t7 to be able to receive data from v b Start transmitting. Of course, this is related to the number of copies that need to be transmitted for each stream.

[0150] (4) During the period [t3, t4), v b Will v a Transmit CRC related messages, so in order to avoid collision, during this period, v b Can't v a Transmit other streams. The period [t7, t8) is similar.

[0151] (5) If v a If the confirmation message is received at time t5, then the non-TT flow can be transmitted during the subsequent period [t5, t9).

[0152] The core of the TSRTR method is to meet the reliability requirements of each flow by transmitting multiple instance copies, using time slice reservation instead of transmitting multiple instance copies at the same time. In the TSRTR method, a key step is to calculate the minimum number of copies that the TT flow needs to transmit to tolerate transient failures. et al. proposed two methods to calculate the number of TT flow transmission copies. In the first method, only the edge switches of the network are deployed with the frame replication function; in the second method, all switches in the network are deployed with the frame replication function. The first method is called method A, and the second method is called method B.

[0153] According to the fault model proposed in the previous section, the following lemma is proposed:

[0154] Lemma 1: For Flow i The instance is on its selected path r i The probability of failed transmission can be expressed as,

[0155]

[0156] in Represents the flow f i The example is in link [v a ,v b ]The probability of transmission failure on Represents the flow f i The example is in link [v a ,v b ], the probability of successful transmission on the stream f iThe example is in path r i The probability of successful transmission on each link in the multiplication is the flow f i The instance is in its selected path r i The probability of successful transmission is calculated by subtracting the flow f from 1. i The instance is in its selected path r i The probability of successful transmission on the flow f can be obtained i The probability of an instance failing to transmit.

[0157] Lemma 2: Flow f i At least n transmissions are required i The reliability requirement can be met by multiple instance copies. i Completed i The transmission of instance copies is defined as a round of transmission. Then the flow f i The maximum number of rounds that can be transmitted within [0, t] can be expressed as,

[0158]

[0159] where Λ i Represents the flow f i The end-to-end delay of the instance, in order to obtain the maximum number of rounds, here we calculate the shortest end-to-end delay, that is, ignoring the queuing delay, which can be expressed by the following formula:

[0160]

[0161] Formula (3) can be derived from formula (5):

[0162] t≥(rd′ i -1)*T i +Λ i (5)

[0163] where Λ i Represents the flow f i The time it takes for the first round of instance transmission, (rd′ i -1)*T i Indicates how long the next few rounds after the first will take.

[0164] In order to describe the reliability of the network, we refer to the DO-178B safety standard, as shown in Table 2, where x represents the reliability level and PFH represents the probability of failure in the system running for 1 hour. If the set of all flows at reliability level x is recorded as Then when through The failure rate of the flow calculation in is less than PFH x When The reliability requirements are met. Five reliability levels are defined in this standard, and different levels correspond to different reliability requirements. Levels A, B, and C correspond to TT flows, while levels D and E correspond to non-TT flows.

[0165] Table 2 DO-178B safety standards

[0166]

[0167] Lemma 3: At reliability level x, the probability of a network failure per hour can be expressed as,

[0168]

[0169] where n i Represents the flow f i The minimum number of replicas that need to be transferred to tolerate transient failures, Represents the flow f i n i The instance copies are in their selected path r i The probability of transmission failure is i The probability of a failed transmission within one hour is For each flow in reliability level x The sum is pfh' x In addition, the calculation here only considers the TT flows corresponding to the three levels A, B, and C.

[0170] Lemma 4: Based on the above lemma, we can deduce that pfh' x The upper bound of

[0171]

[0172] in

[0173] Theorem: For If pfh x If equation (4.8) is satisfied, then all flows at level x are said to meet the reliability requirements.

[0174] pf x ≤PFH x (8)

[0175] To simplify the problem, the flows in each reliability level use the same n i , while rd′ of different flows i and F′ i are different, so in order to make each flow in level x meet the reliability requirements, rd′ needs to be used i and F′ iThe maximum value of pfh is used to replace the value corresponding to each flow. x ≤PFH x When , each flow in level x can meet the reliability requirements.

[0176] The main difference between method B and method A is whether all switches in the network are equipped with the frame replication function.

[0177] Lemma 5: Corresponding to Lemma 1 in Method A, for Flow i Instance n i The number of copies in path r i The probability of failed transmission can be expressed as,

[0178]

[0179] Since each switch is equipped with a frame replication function, as long as one instance successfully reaches the switch, the switch will transmit n frames again. i instance copies.

[0180] Lemma 6: Corresponding to Lemma 3 in Method A, at reliability level x, the probability of network failure per hour can be expressed as,

[0181]

[0182] Among them, rd′ i The calculation method of is the same as method A.

[0183] Lemma 7: Corresponding to Lemma 4 in Method A, pfh' x The upper bound of can be expressed as,

[0184]

[0185] in The final theorem is consistent with method A.

[0186] For the above two methods, some switches in method A are commercial off-the-shelf (COTS) products with common standards on the market, which can significantly reduce network costs, while method B requires each switch in the network to deploy frame replication functions, which will inevitably increase costs. However, under the condition of meeting the same reliability requirements, the number of instance copies required to be transmitted by method A is greater than that of method B, so using method A will cause network congestion, thereby affecting the schedulability of TT flows.

[0187] Scheduling method based on ILP: Is there a feasible solution to schedule TT flow, CRC-related flow and TT retransmission flow in the scenario of instantaneous failure? The simple and easy ILP method is adopted. The present invention not only schedules TT flow, but also CRC-related flow and TT retransmission flow, so the original constraint conditions are improved, and corresponding constraints are formulated for CRC-related flow and TT retransmission flow.

[0188] The core of TSN scheduling problem is to find a feasible scheduling schedule, which can be converted into i Instance transfer time and queue allocation To solve these two variables, we need to make the following constraints on them:

[0189] (1) Frame constraint: Each instance must complete transmission within its period.

[0190] (2) Delay constraint: ensure that both the TT flow and the TT retransmission flow can reach the destination node before their deadline.

[0191] (3) Stream transmission constraints: ensure that the stream f i The order in which instances are transmitted on a link must be in the order in which the predecessor link [v a ,v x ] before the transmission on the subsequent link [v x ,v b ] for transmission.

[0192] (4) Link constraint: A physical link can only transmit one flow instance at a time.

[0193] (5) Frame isolation constraint: In order to prevent different TT flow instances from crossing in the queue, they must be isolated in space or time. On the one hand, in terms of space, different TT flow instances need to enter different queues. On the other hand, in terms of time, when different TT flow instances enter the same queue, the next instance can enter the queue only after the previous instance is transmitted.

[0194] (6) CRC-related flow constraints: Whenever the sender transmits an instance to the receiver, the receiver returns a CRC check message. Based on this check message, the receiver determines whether the next reserved time slot is used to retransmit the TT flow or transmit the non-TT flow.

[0195] like Figure 3 As shown, an embodiment of the present invention provides a scheduling system for time-triggered reliable transmission of a scheduling method for time-triggered reliable transmission of a stream, the system comprising:

[0196] A fault model building module is used to build a fault model suitable for instantaneous faults using exponential distribution;

[0197] The minimum instance replica number calculation module is used to calculate the minimum instance replica number that each TT flow needs to transmit in order to tolerate transient failures;

[0198] The scheduling module is used to schedule the TT flow, the CRC-related flow and the TT retransmission flow by using the improved ILP method.

[0199] The effectiveness of the TSRTR method is demonstrated through experiments. First, a simple experiment is used to illustrate the disadvantages of using spatial redundancy to tolerate instantaneous failures. Then, two methods proposed for calculating the number of TT stream transmission copies are compared. Finally, the TSRTR method of the present invention is analyzed from three perspectives: reliability, schedulability, and resource waste rate.

[0200] The simulation work of the experimental part was completed based on Python on an Intel(R)Core(TM)i5-8250U processor with 1.60GHz and 8GB RAM. In the experiment, the three topologies required for the experiment were first generated through the network modeling tool networkX and flows were randomly generated on the experimental platform built based on Python; then the Dijkstra algorithm was used to generate a shortest path for each flow; finally, the TSRTR method was used for scheduling. The TSRTR method can be divided into two steps. The first step is to calculate the number of TT flow transmission copies. Through experiments, it can be found that under the condition of meeting the same reliability requirements, the number of instance copies that method B needs to transmit is less than method A. Therefore, the result calculated by method B is used for the second step. In the second step, the ILP method is used to schedule on the Gurobi solver. The topology 1 used in the experiment is as follows: Figure 4 As shown, the topology 2 used in the experiment is as follows Figure 5 As shown, the topology 3 used in the experiment is as follows Figure 6 As shown in the figure, in these three topologies, the number of TSN switches is 6, 8, and 10 respectively, the number of terminal nodes is set to 6, the transmission rate c of the link is uniformly set to 1 Gbps, that is, the link bandwidth, and the link propagation delay d is uniformly set to 1 μs. The processing delay of the switch is not considered. Each time an experiment is conducted, one of the three topologies is randomly selected as the experimental topology. The expected number of failures per hour in the fault model can be set to 10 -3 or 10 -5These two values. For the setting of flow parameters, the source and destination nodes of each flow are randomly selected from ES, and the flow period set is set to {400μs, 800μs, 1600μs}, the data length set sent in each period is set to {100B, 200B, 400B, 800B, 1500B}, and the reliability level set to which the flow belongs is set to {A, B, C}. The period, data length and reliability level of each flow are randomly selected from the corresponding set. In addition, the deadline of each flow is set to its period. The deadline is not clearly defined here. On the contrary, all frames are required to complete the transmission within their period. The effectiveness of the TSRTR method of the present invention is independent of the selection of network parameters.

[0201] Compared with the use of time redundancy in the present invention to tolerate instantaneous failures using spatial redundancy: To illustrate that using time redundancy is more suitable for tolerating instantaneous failures than spatial redundancy, the topology used is as follows: Figure 7 As shown, Figure 7 (a) shows a topology with two redundant paths, which is the topology used in the first four experiments. Figure 7 (b) shows a topology with three redundant paths, which is the topology used in the fifth experiment. In addition, the port corresponding to the connection between the terminal node es1 and the path l1 is recorded as port 1, and so on for port 2 and port 3. In each experiment, 100 frames are transmitted from es0 to es1 on each path, and then the packet loss rate of different egress ports is set on the terminal node es0 through the netem module according to the experimental requirements to simulate the occurrence of failures. Finally, the network analysis tool Wireshark is used on the terminal node es1 to capture the traffic received from different ports.

[0202] Table 3 shows the number of frames received on each port in each experiment, as well as the number of frames lost in the experiment. Experiment 1 shows the situation where there is no fault in the network. The terminal node es0 transmits 100 frames on two different paths, and es1 receives them correctly. No frames are lost at this time. Experiment 2, the packet loss rate of the corresponding port connected to the l1 path on es0 is set to 5% to simulate the occurrence of a transient fault, while the data transmission on the l2 path does not fail. In this way, a transient fault is tolerated by using two redundant paths, and no frames are lost at this time. Experiment 3, the packet loss rate of the corresponding port connected to the l1 path on es0 is set to 100% to simulate the occurrence of a permanent fault, while the data transmission on the l2 path does not fail. In this way, a permanent fault is tolerated by using two redundant paths, and no frame loss is found at this time. Experiment 4, the packet loss rate of the corresponding port connected to the l1 path on es0 is set to 5% to simulate the occurrence of a transient fault, and the packet loss rate of the corresponding port connected to the l2 path on es0 is set to 100% to simulate the occurrence of a permanent fault. In this case, 95 frames were received at port 1, but no frames were received at port 2. At this time, 5 frames were found to be lost, which shows that it is impossible to tolerate a permanent fault and a transient fault at the same time using two redundant paths. Experiment 5 added a path l3 based on Experiment 4, and found that no frames were lost at this time. This shows that if spatial redundancy is used to tolerate permanent faults and transient faults that occur simultaneously, additional paths need to be added. It can be seen that the use of spatial redundancy will increase network costs, but spatial redundancy is needed to tolerate permanent faults. Therefore, in order to reduce network costs and improve the efficiency of spatial redundancy in tolerating permanent faults, time redundancy is more suitable for tolerating transient faults.

[0203] Table 3 shows the experimental results of the disadvantages of spatial redundancy in tolerating transient failures.

[0204]

[0205] Comparison of two calculation methods for the number of TT stream transmission copies: Method A and Method B are compared. Under the premise of meeting the same reliability, the number of TT stream transmission copies is calculated using two methods. In this experiment, the expected number of failures per hour in the failure model is set to 10 -3 In order to make the experiment more convincing, the results of this experiment are the average of 50 experiments. For non-integer results, the method of rounding up is adopted.

[0206] Figure 8 shows the number of copies required to be transmitted for TT flows included in reliability level A. Figure 8The horizontal axis n_l represents the maximum number of links in the path selected by the TT flow in reliability level A; the vertical axis n represents the number of copies that the TT flow needs to transmit. When the number of links is n_l = 1, the number of TT transmission copies calculated by the two methods is the same, but as the number of links increases, the number of copies that need to be transmitted calculated by method B begins to gradually decrease from method A, and the gap becomes larger and larger. In method A, only the edge switch has the frame replication function. For a certain TT flow, the longer the path it chooses, the more likely it is to encounter transient failures, so the more copies need to be transmitted to meet its reliability requirements. For method B, all switches in the network have the frame replication function, that is, as long as one copy successfully reaches the switch, the switch can replicate multiple copies again at the corresponding egress port. Therefore, for a certain TT flow, the longer the path it chooses, the more times the copy passes through the switch, the stronger the ability to tolerate transient failures, and the fewer copies need to be transmitted. Fig. 9 The number of copies required for transmission of TT flows included in reliability levels B and C is shown in Fig. 9 The trend of the line chart in (a) and (a) is basically the same Figure 8 Stay consistent with Figure 8 By comparison, the lower the reliability level, the fewer copies of the TT stream it contains need to be transmitted.

[0207] In addition, using method B can be easily upgraded to a dynamic replication scheme, that is, each switch adjusts the number of replicas in response to different situations. In view of the advantages of method B, the experimental results of method B will be used to complete the following experiments.

[0208] Reliability Analysis: 500 test scenarios were generated to conduct reliability analysis of our proposed TSRTR method. Fig.10 The PFH of all flows in reliability level A is shown, where the horizontal axis u represents the bandwidth utilization, which is defined by the following formula, and the vertical axis PFH represents the probability of network failure per hour calculated by formula (6).

[0209]

[0210] HP stands for super period. Note that each result in the figure is an average value within a range. For example, the PFH value when u = 0.6 is the average value of u between [0.55, 0.65]. Fig.10 It can be seen that no matter the expected number of failures per hour λ in the fault model is set to 10 -3 Still 10 -5 , the PFH value will show an upward trend as u increases. The larger the u, the more TT flows are added to the network, and the PFH value calculated according to formula (6) will also become larger. Fig.10 It can also be found that all flows in reliability level A can meet their reliability requirements, that is, the PFH value obtained is less than the PFH value required for level A in the DO-178B safety standard, which is reflected in the figure that the blue line and the yellow line are both below the red line. In addition, the larger the λ, the greater the probability of failure in the network. i When λ is large, we always hope that it can be as small as possible, so the PFH value solved will also become larger accordingly, that is, Figure 8 The yellow line is above the blue line. Fig.11 , Fig.12 The PFH of all flows in reliability levels B and C are shown respectively, and it can be found that all flows in them can also meet their reliability requirements.

[0211] 500 test scenarios were generated to analyze the schedulability of the TSRTR method. In the experiment, the worst case was simulated, that is, if a TT flow needs to transmit 3 copies, it will encounter 2 transient failures. In order to better show the experimental results, the acceptable rate AR is defined here.

[0212]

[0213] Where #sched represents the number of schedulable TT flows, #F TT represents the total number of TT flows. We compared the AR of several methods.

[0214] (1) NORMAL1: Reliability is not considered and only one TT flow instance is transmitted per cycle

[0215] (2) NORMAL2: Use method B to calculate the number of copies n that need to be transmitted for the TT flow i , and then directly transmit this n in each cycle i copies

[0216] (3)OUR: Using the TSRTR method proposed in this invention

[0217] like Fig.13 and 14 The expected number of failures per hour is set to 10. -5 and 10 -3The acceptable rate of TT flow in two cases. The horizontal axis u represents the bandwidth utilization, and the vertical axis AR represents the acceptable rate. It can be seen from the figure that no matter which method is used, its acceptable rate AR will decrease as the bandwidth utilization u increases. In order to tolerate transient failures, the NORMAL2 and OUR methods need to transmit multiple copies in addition, so the scheduled instances are more than those using the NORMAL1 method, so their acceptable rate AR is naturally smaller than the AR calculated using the NORMAL1 method. In addition, the OUR method also needs to schedule CRC-related flows, so its acceptable rate AR will be slightly smaller than the AR calculated using the NORMAL2 method. Comparison Fig.13 and 14 ,It is found that when λ is large, the AR calculated using NORMAL2 and OUR methods will be smaller, because the larger λ is, the greater the possibility of transient failure, and more instance copies need to be transmitted to meet the reliability requirements.

[0218] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.

Claims

1. A scheduling method for reliable transmission of time-triggered streams, characterized in that: The following steps are involved: Step 1: Use exponential distribution to build a fault model suitable for instantaneous faults; Step 2: Calculate the minimum number of instance copies that each TT flow needs to transmit in order to tolerate transient failures; Step 3: Improve the original constraints, formulate corresponding constraints for CRC-related flows and TT retransmission flows, and use the improved ILP method to schedule TT flows, CRC-related flows, and TT retransmission flows.

2. The scheduling method for reliable transmission of time-triggered streams as claimed in claim 1, characterized in that: In step 1, the instantaneous failure of the flow instance is modeled as an exponential distribution, and the flow f is defined i The example is in link [v a ,v b The probability of transmission failure on ] is: where λ is the expected number of failures per hour, For a TT stream f i The example is in link [v a ,v b ] corresponds to the transmission time on the egress port, and d is the propagation delay of the link.

3. The scheduling method for reliable transmission of time-triggered streams as claimed in claim 1, characterized in that: The fault mode defines the behavior of the switch when it encounters a fault. When the receiving end correctly receives the data sent by the sending end, it will return a confirmation message. When the receiving end incorrectly receives the data sent by the sending end, that is, the sending end encounters a transient fault in the process of sending data, the receiving end will return a negative confirmation so that the sending end can retransmit the data in time. If the receiving end performs a CRC test and the returned test result message also encounters a transient fault, the sending end will perform a timeout retransmission.

4. The scheduling method for reliable transmission of time-triggered streams as claimed in claim 1, characterized in that: for If pfh x If the following equation is satisfied, then all flows in level x meet the reliability requirements; pfh x ≤PFH x Streams in each reliability level use the same n i , while rd′ of different flows i and F′ i are different. In order to ensure that each flow in level x can meet the reliability requirements, rd′ needs to be used. i and F′ i The maximum value of pfh is used to replace the value corresponding to each flow. x ≤PFH x When , each flow in level x can meet the reliability requirements.

5. The scheduling method for reliable transmission of time-triggered streams as claimed in claim 1, characterized in that: For TT flow i Instance transfer time and queue allocation The two variables are constrained as follows: (1) Frame Constraint Each instance must complete the transfer within its cycle. have, (2) Delay Constraint The following formula ensures that both the TT flow and the TT retransmission flow can reach the destination node before their deadlines; flow f i The path can be expressed as for have: in, Indicates that the last TT retransmission flow instance copy is on path r i The transmission time of the last link corresponding to the egress port; (3) Streaming constraints The following formula guarantees the flow f i The order in which instances are transmitted on a link must be in the order in which the predecessor link [va,v x ] before the transmission on the subsequent link [v x ,v b ] for transmission; have: where n i Represents the flow f i The number of copies that need to be transmitted, d represents the propagation delay of the flow on the link, and δ represents the maximum clock synchronization error; (4) Link Constraints A physical link can only transmit one flow instance at a time. have: in, M represents an infinite constant; only one of the two constraints in the above formula needs to be satisfied; (5) Frame Isolation Constraints For spatial isolation, different TT flow instances need to enter different queues; for temporal isolation, when different TT flow instances enter the same queue, the next instance can enter the queue only after the previous instance is transmitted. have: in, w ensures that only one of the two constraints in the above formula is satisfied. M represents an infinite constant. It is used to determine whether two flows enter different queues, which can be expressed by the following formula:

6. The scheduling method for reliable transmission of time-triggered streams as claimed in claim 1, characterized in that: CRC related flow example in link [v a ,v b ]The transmission time corresponding to the egress port is as follows: CRC related flow constraints: for have, Among them, σ1∈{0,1} is used to limit that only one of the two constraints in the above formula can be satisfied; similarly, CRC-related streams need to be frame isolated to prevent crossover. have: Among them, w1∈{0,1}, ensures that one of the two constraints in the above formula is satisfied, It is used to determine whether two flows enter different queues, which can be expressed as follows:

7. The scheduling method for reliable transmission of time-triggered streams as claimed in claim 1, characterized in that: TT retransmission flow example in link [v a ,v b ]The transmission time of the corresponding egress port is expressed as: TT retransmission flow constraints: for have: Among them, σ2∈{0,1} is used to limit that only one of the two constraints in the above formula can be satisfied.

8. The scheduling method for reliable transmission of time-triggered streams as claimed in claim 1, characterized in that: The objective function defined by the model minimizes the end-to-end delay of each flow, namely Where Ω i Indicates TT flow f i end-to-end delay.

9. A scheduling system for time-triggered reliable transmission of a time-triggered stream according to any one of claims 1 to 8, characterized in that: The system includes: A fault model building module is used to build a fault model suitable for instantaneous faults using exponential distribution; The minimum instance replica number calculation module is used to calculate the minimum instance replica number that each TT flow needs to transmit in order to tolerate transient failures; The scheduling module is used to schedule the TT flow, the CRC-related flow and the TT retransmission flow by using the improved ILP method.

Citation Information

Patent Citations

  • Time-aware shaper enhancement method for solving emergency flow in time-sensitive network

    CN116032855A

  • Real-time stream transient fault tolerance scheduling method for IEEE 802.1 CB

    CN117675683A

  • Virtual machine data placement in a virtualized computing environment

    US20160371020A1

  • Path management with direct device communication

    US20220377823A1