TSN network CBS flow control mechanism based on analysis of minimum bandwidth configuration method

By improving the CBS flow control mechanism and switch node port traffic scheduling, the real-time guarantee and complexity issues of CBS bandwidth reservation configuration in avionics systems were resolved, enabling real-time and stable data stream transmission under low resource conditions.

CN117714382BActive Publication Date: 2026-11-24BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311585679.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2026-11-24
Estimated Expiration
2043-11-24

AI Technical Summary

Technical Problem

In existing avionics systems, the CBS bandwidth reservation configuration suffers from a lack of real-time assurance and high configuration complexity, thus failing to effectively guarantee real-time performance requirements.

Method used

An improved CBS flow control mechanism is proposed. By improving the CBS flow control mechanism and combining it with the traffic scheduling of switch node ports, minimum bandwidth configuration is achieved to ensure real-time and stable data flow transmission.

Benefits of technology

It achieves real-time and stable data stream transmission with low network resources, reduces computational complexity, and meets the latency boundary guarantee requirements of time-critical traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117714382B_ABST
    Figure CN117714382B_ABST
Patent Text Reader

Abstract

This invention discloses a parsing-based minimum bandwidth configuration method for CBS flow control mechanisms in TSN networks. First, it obtains the correlation information of TSN network traffic in avionics systems. Then, it calculates the long-term arrival rate and burst information of each traffic flow for each node port of the switch. Next, by comprehensively considering the long-term arrival rate of traffic at node ports, traffic aggregation and separation along routes, and end-to-end deadline requirements, it selects a reference terminal according to traffic priority type and constructs a relationship between the delay boundary decomposition of other nodes and the reference terminal node. Based on the delay of different priority queues, it calculates the decomposed delay of each node port. Finally, based on the node port delay upper limit decomposition information, and considering the presence or absence of links and CBS shaping constraints, it constructs a minimum bandwidth allocation for different priorities under network node port delay guarantees. This invention performs port decomposition of end-to-end traffic delay and proposes a fast and scalable delay-aware minimum bandwidth reservation method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to TSN networks in avionics systems, and more specifically, to a parsing-based minimum bandwidth configuration method for CBS flow control mechanisms in TSN networks. Background Technology

[0002] Airborne networks are crucial for connecting various devices within avionics systems. They place higher demands on data transmission capacity, real-time performance, and reliability. Time-Sensitive Networking (TSN), as a current candidate protocol for "timely and accurate" end-to-end transmission, has attracted widespread attention in the aviation industry. Within the TSN protocol suite, the minimum bandwidth reservation configuration based on the Credit Based Shaper (CBS) mechanism is central to ensuring deterministic transmission in TSN networks. However, how to efficiently and quickly determine key network configuration parameters to meet the delay boundary guarantee requirements of time-critical traffic remains an open question.

[0003] Credit-based shaper (CBS) technology was originally used to buffer the information stream during real-time transmission of audio and video signals over Ethernet, solving the packet loss caused by buffer congestion due to sudden multimedia data streams.

[0004] The Protocol Identifier (Tag) is 0x8100, indicating that Ethernet supports 802.1Q and can provide VLAN and QoS services. The 3-bit Priority Code Point (PCP) defines eight priorities: Level 0 is the lowest, used for traditional best-effort traffic; Level 7 is the highest, used for critical routing or network management functions (the traffic type classification is referenced in the "Review of Time-Sensitive Network Traffic Shaping Technology" published in the January 2022 issue of *Microelectronics & Computer*, Vol. 39, No. 1, by Zhang Lei and Wang Panpan). TSN networks use priorities to distinguish the importance of network traffic and perform traffic scheduling and network configuration according to different application scenarios.

[0005] The types of data exchange within modern real-time networks and real-time embedded systems are becoming increasingly complex, and the volume of data is growing rapidly. Consequently, the internal design of communication platforms with real-time communication requirements is becoming increasingly complex. Next-generation Ethernet (THN) technology, Time-Sensitive Networking (TSN), not only boasts high bandwidth and high compatibility but also supports real-time communication with low latency and low jitter deterministic transmission characteristics. However, ensuring real-time communication in TSN networks relies on the rational configuration of the network based on its sub-protocols. Many existing traditional configuration methods primarily rely on configuration optimization combined with real-time performance evaluation feedback to guarantee the schedulable performance requirements of real-time system networks. However, this configuration method based on a posteriori performance analysis requires analyzing all configuration schemes across the entire TSN network search space, making it extremely time-consuming.

[0006] Currently, while CBS technology, combined with the Reserved Protocol (SRP, IEEE 802.1 Qat), can flexibly provide the maximum bandwidth required for traffic, this approach only provides the minimum requirements to avoid traffic overload and cannot guarantee real-time performance. Bandwidth allocation has always been a key aspect of real-time communication design in avionics systems. Excessive reserved bandwidth leads to a waste of system resources, while insufficient reserved bandwidth can cause a decline in real-time performance or even system crashes. Summary of the Invention

[0007] To address the technical challenges of insufficient real-time performance and high configuration complexity in CBS bandwidth reservation configuration for avionics systems operating within TSN networks, this invention proposes a parsing-based minimum bandwidth configuration method for CBS flow control mechanisms in TSN networks. First, the CBS flow control mechanism is improved. Then, the improved CBS is applied to configure minimum reserved bandwidth for different priority traffic types. Finally, under the premise of latency assurance, traffic scheduling is performed on the ports of each node on the switch, thereby enabling avionics systems to achieve stable real-time data flow transmission with limited network resources.

[0008] One objective of this invention is to propose an improved CBS flow control mechanism. The improved bandwidth allocation technical solution for the CBS flow control mechanism is as follows:

[0009] In this invention, the service curve on any node port of a device in an avionics system is denoted as:

[0010]

[0011] This represents the service curve of the i-th priority data stream on node port h during transmission time t.

[0012] t represents the data stream transmission time.

[0013] Represents the service curve The slope, i.e., the reserved bandwidth of the port.

[0014] This represents the upper bound of the credit value for the i-th priority data stream.

[0015] In this invention, the network traffic delay at the source terminal and the switch node is denoted as:

[0016]

[0017] h represents any node port.

[0018] η represents any reference port.

[0019] i represents any priority level of the traffic type.

[0020] f represents any data stream.

[0021] F represents the total number of data streams.

[0022] This represents the traffic transmission delay of the i-th priority data stream on node port h.

[0023] This represents the traffic transmission delay of the i-th priority data stream on reference port η.

[0024] This indicates the data flow rate f transmitted on the corresponding source terminal.

[0025] This represents the sum of the flow rates of all data streams with priority i on the source terminal corresponding to the reference port η.

[0026] This represents the sum of the flow rates of all data streams with priority i on the source terminal corresponding to the current port h.

[0027] This indicates the burstiness of the data stream f transmitted on the corresponding source terminal.

[0028] This represents the sum of the burstiness of all i-th priority data streams on the source terminal corresponding to reference port η.

[0029] This represents the sum of the burstiness of all data streams with priority i on the source terminal corresponding to the current port h.

[0030] This refers to all the ports that data stream f passes through on the path of data transmission before reaching node port h; it is also simply referred to as all the ports that the data stream flows through.

[0031] This represents the sum of traffic delays across all ports, or simply the sum of port-to-port traffic delays.

[0032] In this invention, the minimum port reserved bandwidth for the highest priority data stream i=1 under no-shape constraints is denoted as:

[0033]

[0034] This represents the slope of the service curve for all data streams with the highest priority on node port h.

[0035] C represents the physical link rate.

[0036] This represents the sum of the burstiness of all data streams with the highest priority on node port h.

[0037] This represents the maximum throughput delay for the highest priority data stream on node port h.

[0038] This represents the maximum frame of sampled traffic for all low-priority k data streams on node port h.

[0039] In this invention, the minimum port reserved bandwidth for the i=2 priority data stream under no shaping constraints is denoted as:

[0040]

[0041] This represents the slope of the service curve for all data flows with priority i=2 on node port h.

[0042] This represents the sum of the burstiness of all data streams with priority i=2 on node port h.

[0043] This represents the maximum traffic transmission delay of the data stream with priority i=2 on node port h.

[0044] C represents the physical link rate.

[0045] This represents the slope of the service curve for all high-priority data streams on node port h.

[0046] This represents the sum of the service curve slopes of all high-priority j data flows on node port h.

[0047] This represents the maximum frame of high-priority j data stream traffic on node port h.

[0048] This represents the maximum frame of sampled traffic for all low-priority k data streams on node port h.

[0049] Similarly, for i=3, i=4, i=5, i=6, i=7 without integer constraints, the same method as in formula (4) is used.

[0050] In this invention, the minimum port reserved bandwidth for the data stream with the highest priority i=1 under the shaping constraint is denoted as:

[0051]

[0052] This represents the slope of the service curve for all data flows with the highest priority i=1 on node port h.

[0053] This represents the coordinates of the inflection point with the highest priority i=1 on node port h.

[0054] This represents the maximum throughput delay of the highest priority data stream (i=1) on node port h.

[0055] This represents the maximum frame of sampled traffic for all low-priority k data streams on node port h.

[0056] C represents the physical link rate.

[0057] In this invention, the minimum port reserved bandwidth for the i=2 priority data stream under shaping constraints is denoted as:

[0058]

[0059] This represents the slope of the service curve for all data flows with priority i=2 on node port h.

[0060] This represents the coordinates of the inflection point of the i=2 priority data stream on node port h.

[0061] This represents the maximum traffic transmission delay of the data stream with priority i=2 on node port h.

[0062] This represents the slope of the service curve for all high-priority data streams on node port h.

[0063] This represents the sum of the service curve slopes of all high-priority j data flows on node port h.

[0064] This represents the maximum frame of high-priority j data stream traffic on node port h.

[0065] This represents the maximum frame of sampled traffic for all low-priority k data streams on node port h.

[0066] C represents the physical link rate.

[0067] Similarly, under integer constraints, i=3, i=4, i=5, i=6, and i=7 are handled in the same way as in formula (6).

[0068] The second objective of this invention is to propose a parsing-based minimum bandwidth allocation method for TSN network CBS flow control mechanisms. First, the correlation information of TSN network traffic in the avionics system is obtained. Then, the long-term arrival rate and burst information of each traffic flow are calculated for each node port of the switch. Next, by comprehensively considering the long-term arrival rate of traffic at the node port, traffic aggregation and separation along the route, and the end-to-end deadline requirements of traffic, a reference terminal is selected according to traffic priority type, and the relationship between the delay boundary decomposition of other nodes and the reference terminal node is constructed. The decomposed delay of each node port is calculated based on the delay of different priority queues. Finally, based on the node port delay upper limit decomposition information, and considering the presence or absence of links and CBS shaping constraints, the minimum bandwidth allocation for different priorities under network node port delay guarantees is constructed. This invention performs port decomposition of end-to-end traffic delay and proposes a fast and scalable delay-aware minimum bandwidth reservation method.

[0069] Compared to traditional methods, the technical advantages of this invention are as follows: Most bandwidth allocation problems are configuration optimization problems, and their real-time performance guarantees rely on feedback from specialized performance evaluation models, resulting in enormous computational demands. Currently, there is no effective method to efficiently configure key parameters while ensuring real-time traffic requirements. This invention proposes a minimum bandwidth allocation method for any SR class under a queuing scheduling strategy based on the Credit Shaper (CBS) in TSN networks, while guaranteeing traffic delay deadlines. By decomposing the delay deadline of each traffic flow to each port, and solving for the minimum reserved bandwidth for each SR class based on the port's decomposed delay, this invention not only guarantees the delay deadline requirements for all CBS-scheduled Audio / Video Bridging (AVB) traffic, but also significantly reduces computational complexity because it is a priori analytical method based on a network calculus model, eliminating the need to traverse the entire solution space of parameters. Attached Figure Description

[0070] Figure 1This is a flowchart of the minimum bandwidth configuration based on parsing for the CBS flow control mechanism of TSN network according to the present invention.

[0071] Figure 2 This is a topology diagram for TSN networks.

[0072] Figure 3 This invention provides an arrival curve and service curve diagram under unshaping constraints.

[0073] Figure 4 This invention relates to arrival curves and service curves under shaping constraints.

[0074] Figure 5 This is a comparison chart of bandwidth reservation results under different methods with shaping constraints according to the present invention. Detailed Implementation

[0075] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. The examples of the parameters listed are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

[0076] According to the article "A Review of Time-Sensitive Network Traffic Shaping Techniques" published in the January 2022 issue of *Microelectronics & Computer* (Vol. 39, No. 1), authored by Zhang Lei and Wang Panpan, Time-Sensitive Networking (TSN) based on the Ethernet protocol details methods such as establishing network time synchronization and traffic scheduling. Eight traffic types are involved in traffic scheduling, and their corresponding priority levels are also provided. The abbreviations for these eight traffic types are: Priority 1 (BK), Priority 2 (EE), Priority 3 (CA), Priority 4 (VI), Priority 5 (VO), Priority 6 (IC), Priority 7 (NC), and Priority 8 (BE). BK represents the highest priority, and BE represents the lowest. Note that in TSN networks, traffic type BE is not subject to CBS shaping constraints.

[0077] For ease of explanation, in this invention, the priority identifier for traffic type is denoted as i (also referred to as any priority of traffic type), the highest priority level is represented by i = 1, the lowest priority level is represented by i = 8, and i takes values ​​from 1 to 8. The current priority level is denoted as i 当前 Then we have: Let j represent the level compared to the current priority i. 当前 Higher priority (abbreviated as high priority j, j takes a value of 1 to 7), denoted by k, is the level relative to the current priority i. 当前Low priority (referred to as low priority k, where k ranges from 2 to 8).

[0078] In this invention, any port on a device in an avionics system is called a node port, denoted as h, where h represents the identifier of the node port. If any node port is selected as the port of the reference terminal, it is called a reference port, denoted as η.

[0079] All data streams transmitted in an avionics system are denoted as the flow set MFL, and MFL = {FL1, FL2, ..., FL}. f ,…,FL F}

[0080] FL1 represents the first data stream.

[0081] FL2 represents the second data stream.

[0082] FL f This indicates the f-th data stream, where the subscript f represents the data stream identifier.

[0083] FL F This indicates the last data stream, and the subscript F indicates the total number of data streams.

[0084] For ease of explanation, the FL f Also known as any single network traffic.

[0085] Any data stream FL f If the data carries information such as the name (flow), size (size), period (period), maximum transmission time (deadline), type (type), and route (route) of the network traffic, then the network traffic FL... f Traffic association information is denoted as and

[0086] The method of this invention operates on flow manipulation in Visual Studio 2022 and later versions. Performance verification utilizes Matlab software simulation.

[0087] See Figure 1 , Figure 2 As shown, the present invention provides a parsing-based minimum bandwidth configuration method for CBS flow control mechanisms in TSN networks, comprising the following steps:

[0088] Step 1: Obtain network traffic from the avionics TSN network and extract traffic association information;

[0089] Step 11: Obtain each network device from the avionics TSN network and record its identity;

[0090] Obtain each network device from the avionics TSN network, and the network devices include at least end systems and switches.

[0091] An avionics TSN network structure includes at least one switch and three end systems. For ease of explanation, let's take... Figure 2 The network topology shown in the invention will be described in detail below. Figure 2 It includes the first end system ES1, the second end system ES2, and the third end system ES3. χ The fourth terminal system ES γ The fifth terminal system ES E and a switch SW W Through the switch SW W The information communication with the five end systems also illustrates the significance of the switch SW. W It has 5 ports: port = {port_1, port_2, port_3, port_4, port_5}.

[0092] port_1 represents the first port of the switch.

[0093] port_2 represents the second port of the switch.

[0094] port_3 represents the third port of the switch.

[0095] port_4 represents the 4th port of the switch.

[0096] port_5 represents the 5th port of the switch.

[0097] For ease of explanation, any port on the switch will be denoted as port_h. When port_h is selected as the reference port... 参考 At that time, the port_h identity is converted to port. 参考 .

[0098] Step 12: Obtain the data stream in the avionics TSN network;

[0099] The data streams transmitted via switches are obtained from the avionics TSN network and denoted as the data flow set MFL, where MFL = {FL1, FL2, ..., FL}. f ,…,FL F}

[0100] FL1 represents the first data stream.

[0101] FL2 indicates the second data flow.

[0102] FL fThis indicates the f-th data flow, where the subscript f represents the flow identifier.

[0103] FL F This indicates the last data traffic entry, and the subscript F indicates the total number of traffic entries.

[0104] For ease of explanation, the FL f Also known as any single data stream.

[0105] Any data flow FL f If the data flow carries information such as the flow name, flow size, flow period, maximum transmission time (deadline), flow type, and transmission link (vl), then the data flow FL can be... f Traffic association information is denoted as and

[0106] in accordance with Figure 2 The TSN network topology shown has a data traffic set MFL = {FL1,FL2,FL3,FL4,FL5,FL6,FL...} ζ ,FL ω}

[0107] Step 13, set the traffic type;

[0108] In this invention, the traffic type is set according to the different levels of network service quality requirements of the network traffic, with priority j being higher than priority i. The maximum frame length of the BE traffic is 100 bytes.

[0109] The following table records Figure 2 The diagram shows the traffic flow between network devices and the associated traffic information they carry within the avionics TSN network topology.

[0110]

[0111] FL1 represents the first data stream.

[0112] FL2 indicates the second data flow.

[0113] FL3 indicates the third data stream.

[0114] FL4 indicates the 4th data stream.

[0115] FL5 indicates the 5th data stream.

[0116] FL6 indicates the 6th data stream.

[0117] FL ζThis represents the ζ-th data stream.

[0118] FL ω This represents the ω-th data stream.

[0119] Step 14: Classify data streams according to traffic type;

[0120] Step 14A, from MFL = {FL1,FL2,FL3,FL4,FL5,FL6,FL...} ζ ,FL ω Select the traffic belonging to the i-th priority from the list, and denote it as the classified traffic set belonging to traffic type i, denoted as MFL(i), where MFL(i) = {FL1,FL2,FL3,FL4}. ζ}

[0121] Step 14B, from MFL = {FL1,FL2,FL3,FL4,FL5,FL6,FL...} ζ ,FL ω Select the traffic belonging to the j-th priority from the set}, and denote it as the classified traffic set belonging to traffic type j, denoted as MFL(j), where MFL(j) = {FL4, FL5, FL6, FL7}. ω}

[0122] Step 15: Obtaining data flow routing information;

[0123] In this invention, the routing information of a data flow refers to the routing port information for each hop of each flow. Any FL f The routing information is denoted as and

[0124] The following table records Figure 2 The routing information for each flow in the TSN network topology shown.

[0125]

[0126] Indicates FL1 from the source end to the destination The transmission path.

[0127] Indicates FL2 from the source end to the destination The transmission path.

[0128] Indicates FL3 from the source end to the destination The transmission path.

[0129] FLζ From the source to the destination The transmission path.

[0130] This indicates that FL4 is from the source end. to the destination The transmission path.

[0131] This indicates that FL5 is from the source end. to the destination The transmission path.

[0132] Indicates FL6 from the source end to the destination The transmission path.

[0133] FL ω From the source to the destination The transmission path.

[0134] Step 16: Sort the ports from largest to smallest according to the port bandwidth of the switch;

[0135] A port on a switch is denoted as port, and the set of ports on a switch is denoted as PO = {port_1, port_2, ..., port_h}. For ease of explanation, any port is denoted as port_h, where h represents the port's identifier.

[0136] In this invention, according to FL f Routing information FL f Stored on the corresponding port of the switch.

[0137] See Figure 2 As shown, based on switch SW W The ports are numbered from largest to smallest as port_1, port_2, port_3, port_4, and port_5. That is, h = 5 in port_h. Initially, the switch SW... W The sending rate of port_h (in Mbps) and burst rate (In bits) is known. This is determined by the selected switch model.

[0138] Switch SW W The network traffic stored in the first port, port_1, includes FL1, FL2, and FL5.

[0139] Switch SW W The network traffic stored in the second port, port_2, includes FL1, FL3, and FL. ζ ,FL5,FL6.

[0140] Switch SW W The network traffic stored in port_3 includes FL2, FL4, and FL. ω .

[0141] Switch SW W The network traffic stored in port 4 includes FL3 and FL. ζ ,FL4.

[0142] Switch SW W The network traffic stored in port 5 (port_5) includes FL6 and FL. ω .

[0143] Step 2: Calculate the latency breakdown of each port in the switch;

[0144] Step 21: Select the reference port of the switch and obtain the port reference delay;

[0145] In this invention, data traffic is routed through the switch SW. W The port delay decomposed on any port port_h is denoted as And port latency Including transmission rate and suddenness Right now

[0146] Due to the switch SW W Not every port has all traffic types (j,i). Therefore, for each traffic type, it is necessary to determine a source port containing that traffic type as a reference port and calculate its port reference delay according to formula (2).

[0147] in accordance with Figure 2 The TSN network topology shown includes the SW switch. W The upper reference port is denoted as port. 参考 Traffic type M i The port reference delay is denoted as and Traffic type M j The port reference delay is denoted as and

[0148] For flow type M i At reference port 参考The suddenness of the event, and

[0149] For flow type M i At reference port 参考 The sending rate on, and

[0150] For flow type M j At reference port 参考 The suddenness of the event, and

[0151] For flow type M j At reference port 参考 The sending rate on, and

[0152] In this invention, the transmission rate and burstiness of AVB type traffic on the source port of the switch are known. The transmission rate on other ports is known, but the burstiness needs to be calculated and stored.

[0153] In this invention, based on any data stream FL f Routing information In switch SW W The port that contains the most traffic types at the source end is used as the reference port. 参考 .

[0154] In this invention, the reference port will be used. 参考 The transmission above belongs to traffic type M. i The sum of the flow cycles of all data streams is denoted as The unit is Mbps. This will be displayed on the reference port. 参考 The transmission above belongs to traffic type M. i The sum of the sizes of all data streams is denoted as Unit: bit.

[0155] In this invention, the reference port will be used. 参考 The transmission above belongs to traffic type M. j The sum of the flow cycles of all data streams is denoted as The unit is Mbps. This will be displayed on the reference port. 参考 The transmission above belongs to traffic type M. j The sum of the sizes of all data streams is denoted as Unit: bit.

[0156] in accordance with Figure 2 The network topology shown refers to the port.参考 The choice of port_2 is based on two factors: firstly, port_2 has the largest bandwidth, and secondly, the data stream stored on port_2 has... and It includes all traffic types M i and M j Therefore, the switch SW W The port_2 is identified as port 参考 Then, port_2 is decomposed into traffic type M. i The port reference latency is and Belongs to flow type M j The port reference latency is and

[0157] in accordance with Figure 2 Then there is a flow type M. i Sending rate and Belongs to flow type M i suddenness and

[0158] in accordance with Figure 2 Then there is a flow type M. j Sending rate and Belongs to flow type M j suddenness and

[0159] Step 22: Decompose the port latency of the switch ports other than the reference port;

[0160] In this invention, the port decomposition traffic delay, excluding the reference port, is calculated according to formula (2), and denoted as...

[0161] In this invention, the transmission rate and burst rate on ports port_2, port_3, port_4, and port_5 of the switch are calculated according to formula (3).

[0162] The table below records the decomposed delay boundaries for each port on the switch.

[0163]

[0164] Step 23: Calculate the port latency limit requirement based on the traffic latency information;

[0165] In this invention, the decomposition delay of ports other than the reference port has been included. All of these are represented as including the reference port decomposition delay. Therefore, the port decomposition delay is performed for each flow according to its traffic path, and the delay is accumulated. To ensure the end-to-end delay requirement of network traffic, the upper bound of the port accumulation delay for each network flow should not exceed the deadline of that flow, thus obtaining a set of... The polynomial expression.

[0166] by Figure 2 As shown, since the switch SW has already been... W Decomposition delay of ports_2,_3,_4, and_5 All of these are represented as including the reference port decomposition delay. The expression is used to decompose the port delays of each flow according to its traffic path and accumulate them. To ensure the end-to-end latency requirements of network traffic, the upper bound of the port accumulation delay for each flow should not exceed the deadline of that flow. Two traffic types M i and M j The calculation results of the decomposition delay are shown in the table below.

[0167]

[0168] Step 3: Minimum bandwidth allocation for traffic types without shaping constraints;

[0169] Step 31: Without shaping constraints, calculate the point on the arrival curve that has the maximum horizontal distance from the service curve.

[0170] Without shape constraints, the arrival port service curve satisfies burst-rate An affine curve of the form (x, y) is given by a point on the curve. Figure 3 As shown. Furthermore, regardless of the switch SW... W How is bandwidth allocated for traffic types on port_h? To ensure the stability of traffic transmission in the TSN network, the slope (i.e., long-term arrival rate) of the port aggregation traffic arrival curve for port_h must be less than the slope (i.e., long-term service rate) of the port's service curve. According to network calculus theory, the worst-case delay of aggregated traffic is the maximum horizontal distance between the corresponding arrival curve and the service curve. Therefore, for port aggregation traffic arrival curves without integer constraints, the slope must be less than the slope of the port's service curve. This ensures that the point (x, y) on the arrival curve among the two points where the aggregated traffic delay reaches its maximum must satisfy x = 0. The calculation results of the inflection points distributed on the port service curve are shown in the table below:

[0171]

[0172] In this invention, the network calculus theory is referenced from "Research on Network Calculus Theory and Application" published in the 27th issue of "Computer Engineering and Applications" in 2006, authored by Zhang Lianming, Chen Zhigang, and Huang Guosheng.

[0173] Step 32: Without shaping constraints, calculate the slope of the service curve based on the inflection point of the port service curve;

[0174] In this invention, the slope of the service curve according to formula (1) can be set in the switch SW. W The minimum reserved bandwidth for the traffic type on the arrival port service curve of port_h. and ll >type This indicates the maximum frame length of all traffic with a priority lower than the current traffic type priority.

[0175] In this invention, the arrival port service curve for the highest priority traffic type at port_h is calculated, which is referred to as the first case. That is, the arrival port service curve for traffic type M1 (i=1) involves: and Related.

[0176] This indicates that traffic type M1 is in switch SW W Port latency on port_h.

[0177] This indicates that traffic type M1 is in switch SW W The minimum reserved bandwidth on port_h.

[0178] Calculate the minimum reserved bandwidth for traffic type M1 according to formula (4). and This indicates the maximum frame length of all traffic with a priority lower than the current traffic type M1. This indicates that traffic type M1 is in switch SW W Burst rate on port_h.

[0179] In this invention, a flow type M is defined. i (i takes values ​​from 1 to 7) has higher priority than traffic type M. k Priority. The arrival port service curve for low-priority traffic types at port_h is calculated, which is called the second case. That is, traffic type M. k The arrival port service curve involves: Not only with Related, and also related to traffic type M i Minimum reserved bandwidth Related.

[0180] Indicates flow type M k In switch SW W Port latency on port_h.

[0181] Indicates flow type M k In switch SW W The minimum reserved bandwidth on port_h.

[0182] Indicates flow type M i In switch SW W The minimum reserved bandwidth on port_h.

[0183] Note that in the second case, when calculating... At that time, due to The parameters have been calculated and are available as known parameters. The flow type M is calculated according to formula (4). k Minimum reserved bandwidth and

[0184]

[0185] Indicates flow type M k In switch SW W Burst rate on port_h.

[0186] Indicates flow type M k In switch SW W Port latency on port_h.

[0187] Indicates flow type M i In switch SW W The minimum reserved bandwidth on port_h.

[0188] This represents the sum of the minimum reserved bandwidth for all traffic on port_h with a priority higher than the lowest priority k.

[0189] Indicates flow type M i The maximum frame length for all traffic.

[0190] This indicates that all priorities are lower than traffic type M. k The maximum frame length in the priority traffic.

[0191] by Figure 2 The calculated slopes of the service curves (reserved bandwidth allocation) without integer constraints for the network topology shown are shown in the table below:

[0192] Port_1 Port_2 Port_3 Port_4 Port_5 <![CDATA[M i ]]> 14.16250 10.94850 10.7588 8.078010 0 <![CDATA[M k ]]> 7.93115 8.79571 4.4441 0.715194 4.9327

[0193] Step 4: Minimum bandwidth allocation for traffic types under integer constraints;

[0194] Step 41: Under the shaping constraint, calculate the point on the arrival curve that has the maximum horizontal distance from the service curve.

[0195] With shaping constraints, in switch SW W The constraints on the arrival port service curve for the traffic type of port_h mainly consider physical link constraints and CBS constraints, in addition to traffic aggregation. Furthermore, it can be proven that the arrival curves from different link packets satisfy a piecewise linear concave function; similarly, regardless of the bandwidth allocation for port traffic types, to ensure the stability of message traffic transmission in the network, the arrival curve of aggregated traffic under integer constraints must have at least one segment (the last segment) whose slope is always less than the slope of the port service curve. It can be proven that there must exist a unique point (x, y) on the aggregated arrival curve that maximizes its horizontal distance to the service curve, such as... Figure 4 As shown.

[0196] In this invention, a flow type M is defined. i Priority is higher than traffic type M k priority, M j Priority is higher than traffic type M i Based on the priority of the traffic type, the arrival port service curve under the integer constraint is calculated according to formulas (5) and (6):

[0197]

[0198] σ link (t) represents the physical link constraint.

[0199] This indicates the CBS integer constraint.

[0200] C represents the physical link rate.

[0201] t represents the data stream transmission time.

[0202] This represents the arrival curve on node port h after the shaping constraint.

[0203] This represents the arrival curve on node port h without shape constraints.

[0204] This indicates the maximum frame size of traffic in the current traffic type on the previous port.

[0205] Indicates flow type M i Minimum reserved bandwidth on node port h.

[0206] Indicates flow type M i The upper limit of credit.

[0207] Indicates flow type M i The lower bound of credit.

[0208] This represents the sum of the lower bounds of the credits of all high-priority j.

[0209] This represents the maximum frame size for all traffic with a priority lower than i on node port h.

[0210] This represents the sum of the minimum reserved bandwidth for all traffic with a priority higher than i on node port h.

[0211] This indicates that the traffic type on node port h is M. i The credit reduction slope.

[0212] The calculated coordinates of the inflection point (x, y) are shown in the table below:

[0213] <![CDATA[M i ]]> <![CDATA[M j ]]> Port_1 (0,2400) (0,1600) Port_2 (8.703,2625.635) (3.692,3726.074) Port_3 (6.131,2213.097) (3.924,2174.651) Port_4 (0,1600) (0,800) Port_5 (0,0) (0,2400)

[0214] Step 42: With integer constraints, calculate the slope of the service curve based on (x,y);

[0215] In this invention, the slope of the service curve according to formula (1) can be set in the switch SW. W The minimum reserved bandwidth for the traffic type on the arrival port service curve of port_h. and ll >type This indicates the maximum frame length of all traffic with a priority lower than the current traffic type priority.

[0216] In this invention, the arrival port service curve for the highest priority traffic type at port_h is calculated, which is referred to as the first case. That is, the arrival port service curve for traffic type M1 (i=1) involves: Related.

[0217] This indicates the port latency for traffic type M1.

[0218] This indicates the minimum reserved bandwidth for traffic type M1.

[0219] This indicates the coordinates of the inflection point in port_h where the traffic type is M1.

[0220] Calculate the minimum reserved bandwidth for traffic type M1 according to formula (5). and This indicates the maximum frame length of all traffic with a priority lower than M1 (priority 1). This indicates that traffic type M1 is in switch SW W The coordinates of the inflection point on port_h.

[0221] In this invention, a flow type M is defined. i (i takes values ​​from 1 to 7) has higher priority than traffic type M. k Priority. The arrival port service curve for low-priority traffic types at port_h is calculated, which is called the second case. That is, traffic type M. k The arrival port service curve involves: and Traffic type M i Minimum reserved bandwidth Related.

[0222] Indicates flow type M k Port latency.

[0223] Indicates flow type M k The minimum reserved bandwidth.

[0224] Indicates flow type M i The minimum reserved bandwidth.

[0225] Note that in the second case, when calculating... At that time, due to The parameters have been calculated and are available as known parameters. The flow type M is calculated according to formula (6). k Minimum reserved bandwidth and

[0226]

[0227] This indicates that all priorities are lower than traffic type M. k The maximum frame length in the traffic of priority k.

[0228] Indicates flow type M i The maximum frame length of all traffic in the process.

[0229] Indicates the traffic type M on port_h. k Port latency.

[0230] Indicates the traffic type M on port_h. i The minimum reserved bandwidth.

[0231] Indicates flow type M k In switch SW W The inflection point coordinates on port_h

[0232] The minimum reserved bandwidth allocation for the final calculated slope of the service curve with shaping constraints is shown in the table below:

[0233] Port0 Port1 Port2 Port3 Port4 <![CDATA[Class M1]]> 14.16250 9.16022 10.53810 8.078010 0 <![CDATA[Class M2]]> 7.93115 8.73257 4.41614 0.715194 5.01516

[0234] exist Figure 5 In the test, two different methods were used to determine the bandwidth reservation for each port for SR class: the method of this invention (idSlMin / NC) and the standard method for calculating the minimum idle slope (idSlMin / Std). From Figure 5 It can be seen that the worst-case delay of the SR class calculated using the idSlMin / NC method is smaller than that of the standard method (idSlMin / Std), and both meet the flow deadline, thus proving the effectiveness and superiority of the proposed method.

Claims

1. A parsing-based minimum bandwidth configuration method for CBS flow control mechanism in TSN networks, characterized in that... The bandwidth allocation for the CBS flow control mechanism has been improved as follows: The service curve on any node port of an avionics system is denoted as: ; Indicates the transmission time Inner node port Upper Service curves for priority data streams; Indicates the transmission time of the data stream; Indicates the service curve The slope, i.e., the reserved bandwidth of the port; Indicates the first Upper bound of credit value for priority data streams; The network traffic delay at the source terminal and the switch node is denoted as: ; Represents any node port; Indicates any reference port; Indicates any priority level for the traffic type; Represents any data stream; Indicates the total number of data streams; Indicates node port Upper Priority data stream transmission latency; Indicates reference port Upper Priority data stream transmission latency; This indicates the data stream transmitted on the corresponding source terminal. Flow rate; Indicates at the reference port All the corresponding source terminals The sum of the flow rates of priority data streams; Indicates the current port All the corresponding source terminals The sum of the flow rates of priority data streams; This indicates the data stream transmitted on the corresponding source terminal. Traffic bursts; Indicates at the reference port All the corresponding source terminals The sum of the burstiness of priority data streams; Indicates the current port All the corresponding source terminals The sum of the burstiness of priority data streams; Indicates the transmission of data streams On the path, and upon reaching the node port Previous data stream All ports traversed, or simply all ports through which the flow passes; This represents the sum of traffic delays across all ports, or simply the sum of port-to-traffic delays. Highest priority without integer constraints The minimum port reserved bandwidth for the data stream is denoted as: ; Indicates node port The slope of the service curve for all data streams with the highest priority; C represents the physical link rate; Indicates the node port The sum of the burstiness of all data streams with the highest priority; Indicates node port Maximum throughput delay for the highest priority data stream; Indicates the node port All low priority The maximum frame of the data stream's sampling flow; Without plasticity constraints, the first The minimum port reserved bandwidth for priority data streams is denoted as: ; Indicates node port Upper Prioritize the slope of the service curve for all data streams; Indicates the node port Upper Priority is the sum of the burstiness of all data streams; Indicates node port Upper Maximum throughput delay for priority data streams; Indicates node port Prioritize The slope of the service curve for all data streams; Indicates the node port All high priority The sum of the slopes of the service curves of the data stream; Indicates node port Prioritize The maximum frame size of the data stream; Indicates the node port All low priority The maximum frame of the data stream's sampling flow; Similarly, under no integer constraint , , , , The same method as formula (4) is used; Highest priority under integer constraints The minimum port reserved bandwidth for the data stream is denoted as: ; Indicates node port Highest priority The slope of the service curve for all data streams; ( , ) indicates the node port Highest priority The coordinates of the inflection point; Indicates node port Highest priority The maximum throughput latency of the data stream; Indicates the node port All low priority The maximum frame of the data stream's sampling flow; Under the constraint of plasticity The minimum port reserved bandwidth for priority data streams is denoted as: ; Indicates node port Upper Prioritize the slope of the service curve for all data streams; Indicates the node port Upper The coordinates of the inflection point of the priority data stream; Indicates node port Upper Maximum throughput delay for priority data streams; Indicates node port Prioritize The slope of the service curve for all data streams; Indicates the node port All high priority The sum of the slopes of the service curves of the data stream; Indicates node port Prioritize The maximum frame size in the data stream; Indicates the node port All low priority The maximum frame of the data stream's sampling flow; Similarly, under the constraint of integer shaping, , , , , The same method as formula (6) is used.

2. The parsing-based minimum bandwidth configuration method for CBS flow control mechanism in TSN networks according to claim 1, characterized in that... It includes the following steps: Step 1: Obtain network traffic from the avionics TSN network and extract traffic association information; Step 11: Obtain each network device from the avionics TSN network and record its identity; Obtain each network device from the avionics TSN network, and the network devices include at least end systems and switches; An avionics TSN network structure includes at least one switch and three end systems; information communication is completed through the switch and the end systems. Any port on the switch, denoted as ;when Selected as reference port At that time, the Identity conversion ; Step 12: Obtain the data stream in the avionics TSN network; The data stream transmitted via the switch is obtained from the avionics TSN network and denoted as the data traffic set. ,and ; This indicates the first data stream; This indicates the second data flow; Indicates the first Data traffic, subscript Indicates the traffic identification number; Indicates the last data traffic, subscript This indicates the total number of traffic entries; Step 13, set the traffic type; Traffic types are set according to the degree to which network traffic demands network service quality, with higher priority categories. Priority ; Step 14: Classify data streams according to traffic type; Step 14A, from Select the one belonging to the first Priority traffic is denoted as belonging to traffic type. The categorized traffic set is denoted as ,and ; Step 14B, from Select the one belonging to the first Priority traffic is denoted as belonging to traffic type. The categorized traffic set is denoted as ,and ; Step 15: Obtaining data flow routing information; The routing information of a data flow refers to the routing port information for each hop of each flow; any flow... The routing information is denoted as ,and ; Step 16: Sort the ports from largest to smallest according to the port bandwidth of the switch; The ports on the switch are denoted as The set of ports on the switch is denoted as Any port is denoted as , The identifier number representing the port; according to Routing information Will Stored on the corresponding port of the switch; Step 2: Calculate the latency breakdown of each port in the switch; Step 21: Select the reference port of the switch and obtain the port reference delay; Data traffic at the switch any port The port delay of the above decomposition is denoted as And port delay Including transmission rate and suddenness ,Right now ; Based on the network topology, refer to the port. The selection of the port is due to two factors. The bandwidth is the largest, on the other hand, due to the port The data stream stored on the upper part has ,and It includes all traffic types. and Therefore, the switch port Identity marker So, port The decomposition belongs to the flow type The port reference latency is ,and ; belongs to the traffic type The port reference latency is ,and ; Step 22: Decompose the port latency of the switch ports other than the reference port; The port decomposition traffic delay, excluding the reference port, is calculated according to formula (2) and denoted as . ; Calculate the port of the switch according to formula (3). The transmission rate and burst rate; Step 23: Calculate the port latency limit requirement based on the traffic latency information; Because the decomposition delay of ports other than the reference port has already been taken into account. All of these are represented as including the reference port decomposition delay. Therefore, the port decomposition delay is performed for each flow according to its traffic path, and the delay is accumulated. To ensure the end-to-end delay requirement of network traffic, the upper bound of the port accumulation delay for each network flow should not exceed the deadline of that flow, thus obtaining a set of... The polynomial expression; Step 3: Minimum bandwidth allocation for traffic types without shaping constraints; Step 31: Without shaping constraints, calculate the point on the arrival curve that has the maximum horizontal distance from the service curve. Without shape constraints, the arrival port service curve satisfies burst-rate An affine curve of the form , where points on the curve are denoted as . Regardless of the switch port How is bandwidth allocated for different traffic types to ensure the stability of traffic transmission in the TSN network? The slope of the arrival curve for aggregated traffic at a port is always less than the slope of the service curve for that port. According to network calculus theory, the worst-case delay of aggregated traffic is the maximum horizontal distance between the corresponding arrival and service curves. Therefore, for port aggregated traffic without shape constraints, the slope of the arrival curve must be less than the slope of the port service curve, such that the point where the aggregated traffic delay is maximized is located on the arrival curve. Definitely satisfy ; Step 32: Without shaping constraints, calculate the slope of the service curve based on the inflection point of the port service curve; The slope of the service curve according to formula (1) can be set on the switch. port Minimum reserved bandwidth for traffic type on the arrival port service curve ; Calculate the highest priority traffic type on the port The arrival port service curve is called the first case; Calculate the flow type according to formula (4) Minimum reserved bandwidth ; Define traffic type Priority is higher than traffic type Priority; calculate the low-priority traffic types on the port. The arrival port service curve is called the second case; Calculate the flow type according to formula (4) Minimum reserved bandwidth ; Step 4: Minimum bandwidth allocation for traffic types under integer constraints; Step 41: Under the shaping constraint, calculate the point on the arrival curve that has the maximum horizontal distance from the service curve. With shaping constraints, in the switch port The constraints on the arrival port service curve for traffic types, in addition to traffic aggregation, mainly consider physical link constraints and CBS constraints; under the shaping constraint, the arrival curve of port aggregation traffic must have at least one segment whose slope is less than the slope of the port service curve. Define traffic type Priority is higher than traffic type priority, Priority is higher than traffic type Priority; calculate the arrival port service curve of the traffic type with integer constraints according to formula (5) and formula (6); Step 42: With integer constraints, calculate the slope of the service curve based on (x,y); The slope of the service curve according to formula (1) can be set on the switch. port Minimum reserved bandwidth for traffic type on the arrival port service curve ; Calculate the highest priority traffic type on the port The arrival port service curve is called the first case; Calculate the flow type according to formula (5) Minimum reserved bandwidth ; Define traffic type Priority is higher than traffic type Priority; calculate the low-priority traffic types on the port. The arrival port service curve is called the second case; Calculate the flow type according to formula (6) Minimum reserved bandwidth .

3. The parsing-based minimum bandwidth configuration method for CBS flow control mechanism in TSN networks according to claim 1 or 2, characterized in that: There are 8 traffic types, and the priority levels of traffic types are sorted from high to low.