Bus network multi-priority flow admission control and dynamic planning method

By adopting a multi-priority traffic dynamic planning method in time-sensitive networks, the problem of the impact of TT flows on RC flow delays is solved. By reducing access requirements and bandwidth compression, the communication coherence and network robustness of RC flows are achieved. Addressed service degradation and interruption issues with RC streaming.

CN118740757AActive Publication Date: 2024-10-01COMP APPL TECH INST OF CHINA NORTH IND GRP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411079837.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-01
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

In time-sensitive networks (TSN), the end-to-end delay impact of low-priority traffic (RC traffic) is not considered when reconfiguring TT flows, resulting in service quality degradation or communication interruption of RC traffic.

Method used

Through a dynamic programming method based on multi-priority traffic, a scheduling plan that meets the worst-case end-to-end delay of the RC flow is solved. If it fails, the admission requirements are reduced and bandwidth compression is performed to ensure the communication continuity of the RC flow, using particle swarm The algorithm optimizes the compression and decompression scheme of RC streams to improve network robustness.

Benefits of technology

It effectively reduces the impact of TT flow on RC flow, avoids packet loss and communication interruption of RC flow, improves the robustness and certainty of the network, makes full use of network bandwidth resources, and reduces the impact of RC flow on service quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740757A_ABST
    Figure CN118740757A_ABST
Patent Text Reader

Abstract

The invention relates to a bus network multi-priority flow admission control and dynamic planning method, and belongs to the technical field of wired communication network resource dynamic scheduling and planning. The method comprises the following steps: based on a TT flow to be admitted, solving and executing a first scheduling scheme of the TT flow meeting the condition that the end-to-end worst-case time delay of each RC flow does not exceed a corresponding end-to-end time delay period; if the solution fails, solving a second scheduling scheme of TT streams with the number of RC streams as small as possible, the end-to-end worst case time delay of which exceeds the corresponding end-to-end time delay period, and if the solution fails, not passing TT stream admission; and if the solution is successful, solving the compression scheme of the part of RC streams based on the second scheduling scheme, and reducing the transmission quality by using the bandwidth compression of the part of RC streams to exchange for the communication coherence of all RC streams. According to the method provided by the invention, the influence of the newly admitted TT flow on the RC flow is minimized, the admission probability of the TT flow is increased, and the problem of RC flow end-to-end timeout caused by the influence of the newly admitted TT flow on RC flow end-to-end delay is solved from the source.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of dynamic scheduling and planning of wired communication network resources, and in particular relates to a bus network multi-priority flow admission control and dynamic planning method. Background Art

[0002] The merger of electronic system bus networks and Ethernet, especially through time-sensitive networking (TSN) technology, is an important direction for the development of industrial automation, which can bring many advantages such as data integration, network simplification and enhanced interoperability. TSN is a set of IEEE standards that aims to provide determinism and real-time performance for Ethernet, so that periodic and non-periodic data can be transmitted in the same network while maintaining high bandwidth and low latency. In TSN networks, the reconfiguration scheme of TT (Time-Triggered) flows is the key to ensuring network real-time and determinism. In the prior art, when reconfiguring TT flows, the communication performance of low-priority traffic is often not considered, and the impact on the end-to-end delay of rate-limited low-priority traffic (RC traffic) is ignored, which may cause some relatively critical RC traffic to have a degraded service quality or even communication interruption. Summary of the invention

[0003] In view of the above analysis, the present invention aims to provide a bus network multi-priority traffic admission control and dynamic planning method to solve the problem of RC flow end-to-end timeout caused by the delay of RC flow affected by the TT flow to be admitted.

[0004] The method of the present invention specifically comprises the following steps:

[0005] Based on the multiple TT flows to be admitted, solving a first scheduling scheme for the multiple TT flows that satisfies that the end-to-end worst-case delay of each RC flow does not exceed the corresponding end-to-end delay limit, if the solution is successful, executing the first scheduling scheme; otherwise,

[0006] Solve the second scheduling scheme for the plurality of TT flows with the least number of RC flows whose end-to-end worst-case delay exceeds the corresponding end-to-end delay limit as possible. If the solution fails, the plurality of TT flows are not admitted; otherwise,

[0007] Based on the second scheduling scheme, a partial RC flow compression scheme is solved to ensure that the end-to-end worst-case delay of all RC flows does not exceed the corresponding end-to-end delay limit. If the solution is successful, the second scheduling scheme and compression scheme are executed. Otherwise,

[0008] The second scheduling scheme is executed, and a traditional RC traffic reconstruction method is implemented for RC flows whose worst-case delay exceeds the corresponding end-to-end delay limit.

[0009] Furthermore, when a TT flow network exit notification is received, if there is a compressed RC flow in the network, a decompression scheme for the RC flow is solved and executed based on the compressed RC flow set in the network and the route of the network exit flow.

[0010] Further, using a particle swarm algorithm to solve the partial RC flow compression scheme based on the second scheduling scheme includes:

[0011] Determine a set of RC flows to be solved based on RC flows whose end-to-end worst-case delay exceeds the corresponding end-to-end delay limit and RC flows that share the same directed link with their routes;

[0012] Number the compression schemes corresponding to each RC flow in the RC flow set to be solved;

[0013] A combination of the corresponding compression schemes is used as a particle, a combination of numbers corresponding to the corresponding compression schemes in each particle is used to describe the particle position, and a particle swarm is randomly initialized based on the compression scheme corresponding to each RC flow of the RC flow set to be solved;

[0014] A fitness function is constructed based on the end-to-end delay and maximum bandwidth constraints of all affected RC flows;

[0015] Based on the fitness function, the optimal solution of the particle swarm is obtained, and some RC flow compression schemes are obtained.

[0016] Furthermore, the fitness function is expressed as:

[0017] F(X) = Q(X) + γE(X);

[0018] Among them, Q(X) is the objective function, Q(X) = max{D ave -min{δ}};D ave represents the average delay time rate of all RC flows; min{δ} represents the minimum value of the end-to-end delay that does not exceed the corresponding end-to-end delay limit for all affected RC flows due to compression, and δ satisfies where F RC ' represents the set of RC flows to be solved, f h represents the hth RC flow in the set, Indicates the offset of the hth RC stream reaching the destination. The data flow route vl represents the kth RC flow h The initial offset of dl h represents the end-to-end delay limit of the h-th RC flow;

[0019] γ is the penalty weight;

[0020] E(X) is the penalty function,

[0021]

[0022] in, Indicates the number of affected RC flows; vl j Indicates the route of the TT flow to be admitted or the RC flow in the network described in item j; αβ Represents the connected network node v α 、v β ; Indicates that any frame of the RC flow is from network node v α Transmit to network node v β The worst time interval; dl i represents the end-to-end delay of the i-th RC flow; E represents the set of directed communication links between network topology nodes; e represents the directed communication links between network topology nodes; l j Indicates the data stream frame length of the jth TT stream to be admitted or the RC stream in the network; p j represents the data flow period of the jth TT flow to be admitted or the RC flow in the network; C j Indicates the maximum bandwidth service rate of the directed link; It indicates that the TT flows to be admitted and the RC flows in the network are expected to meet the maximum bandwidth constraint.

[0023] Furthermore, the decompression scheme of the RC flow based on the set of compressed RC flows existing in the network and the route of the off-network flows includes:

[0024] Determine the RC flow involved in the off-network traffic based on the route through which the off-network traffic passes;

[0025] The particle swarm algorithm is used to solve the decompression solution of RC flow by the intersection of the set of RC flows involved in the network-deregulating traffic and the set of RC flows in compressed state in the network.

[0026] Further, the solving, based on the multiple TT flows to be admitted, a first scheduling scheme for the multiple TT flows that satisfies that the end-to-end worst-case delay of each RC flow does not exceed the corresponding end-to-end delay limit includes:

[0027] Based on multiple TT flows to be admitted, multiple optional routing solutions are obtained one by one;

[0028] A first routing solution is solved based on the optional routing solution so that the worst-case end-to-end delay of each RC flow does not exceed the corresponding end-to-end delay limit. If the solution is successful, a first scheduling solution for the multiple TT flows is solved based on the first routing solution; otherwise, the solution of the first scheduling solution fails.

[0029] Further, the first routing solution based on the optional routing solution to satisfy the requirement that the end-to-end worst-case delay of each RC flow does not exceed the corresponding end-to-end delay limit includes:

[0030] Iteratively solving an optimal routing solution based on the optional routing solution with the goal of optimizing the delay time rate of each RC flow affected by the TT flow;

[0031] In each round of iteration, based on the optimal routing solution obtained in this round of iteration, it is determined whether the worst-case end-to-end delay of each RC flow does not exceed the corresponding end-to-end delay limit:

[0032] If yes, the optimal routing solution obtained in this round of iteration is the first routing solution;

[0033] If not, continue with the next iteration until the maximum number of iterations is reached.

[0034] Further, a particle swarm algorithm is used to optimize the delay time rate of each RC flow affected by the TT flow, and a particle swarm algorithm is used to iteratively solve an optimal routing solution based on the optional routing solution, including:

[0035] Numbering the optional routing solutions;

[0036] A combination of routing schemes of each TT flow to be admitted is used as a particle, a combination of corresponding numbers of the routing schemes of each TT flow to be admitted in each particle is used to describe the particle position, and a particle group is randomly initialized based on the multiple optional routing schemes;

[0037] A fitness function is constructed based on the delay time rate and maximum bandwidth constraint of the affected RC flows;

[0038] In each round of iteration, the optimal solution of the particle swarm is sought based on the fitness function to obtain the optimal routing solution for that round of iteration.

[0039] Further, constructing a fitness function based on the delay time rate and maximum bandwidth constraint of the affected RC stream includes:

[0040] An objective function is constructed based on the delay time rate of the affected RC flows;

[0041] Construct a penalty function based on the maximum bandwidth constraint;

[0042] The fitness function is constructed based on the objective function, the penalty function and the weight coefficient of the penalty function.

[0043] Furthermore, the second scheduling scheme for solving the problem of the number of RC flows with the worst-case end-to-end delay exceeding the corresponding end-to-end delay limit as small as possible for the TT flows to be admitted includes:

[0044] The second routing solution is iteratively solved based on the preferred routing solutions. In each round of iteration:

[0045] Selecting a preferred routing scheme with the least number of RC flows whose end-to-end delay exceeds the corresponding worst delay among the preferred routing schemes;

[0046] Solve the second scheduling solution based on the optimal routing solution and scheduling constraints:

[0047] If successful, the preferred routing solution becomes the second routing solution, and the iteration ends;

[0048] If it fails, continue to the next iteration until all preferred routing solutions are traversed.

[0049] The present invention can achieve at least one of the following beneficial effects:

[0050] By considering the impact of the TT flow to be admitted on the end-to-end delay of the RC flow in the network, the scheduling scheme of the TT flow is determined, the impact of the TT flow on the RC flow in the TSN network is minimized, and the problem of end-to-end timeout of the RC flow caused by the newly admitted TT flow affecting the end-to-end delay of the RC flow is solved.

[0051] By solving the first routing scheme that satisfies the requirement that the end-to-end worst-case delay of all RC flows does not exceed the corresponding end-to-end delay limit, the packet loss and communication interruption of RC flows are avoided from the source; and in the case of failure to solve the first routing scheme, the admission requirements are lowered, the admission probability of new TT flows is increased, and the second scheduling scheme that satisfies the requirement that the end-to-end worst-case delay of most RC flows does not exceed the corresponding end-to-end delay limit is determined. On the basis of the second scheduling scheme, the RC flows are elastically reconstructed by compressing the bandwidth of some RC flows, the service quality of some RC flows is reduced in exchange for the communication continuity of all RC flows, the robustness and determinism of the network are guaranteed, and the secondary reconstruction (i.e., reallocation) of RC flows is avoided as much as possible.

[0052] By decompressing the RC stream upon receiving the notification of TT stream withdrawal from the network, network bandwidth resources are fully utilized, further reducing the impact on the transmission quality of the RC stream.

[0053] By constructing a fitness function based on the delay time and maximum bandwidth constraints of the RC flow, the particle swarm algorithm is used to solve the first and second routing solutions, the partial RC flow compression solution and the decompression solution respectively, ensuring that each link of the method of the present invention obtains the optimal solution of the corresponding solution.

[0054] In this embodiment, the scheduling scheme of the TT flow is determined by considering the influence of the TT flow to be admitted on the end-to-end delay of the RC flow in the network, so as to minimize the influence of the TT flow on the RC flow in the TSN network. In the case of failure to solve the first scheduling scheme, the admission requirements can be lowered, the admission probability of the new TT flow can be increased, and the RC flow can be elastically reconstructed by compressing the bandwidth of some RC flows. The service quality of some RC flows is reduced in exchange for the communication continuity of all RC flows, and the packet loss and communication interruption of the RC flows are avoided, thereby ensuring the robustness and determinism of the network.

[0055] Other features and advantages of the present invention will be described in the following description, and some advantages may become apparent from the description, or may be understood by practicing the present invention. The purpose and other advantages of the present invention may be realized and obtained through the contents particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The accompanying drawings are only used for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the entire drawings, the same reference symbols represent the same components;

[0057] Figure 1 It is a flow chart of the flow admission control and dynamic programming method of the present invention;

[0058] Figure 2 This is a schematic diagram of the RC stream decompression process of the method of the present invention. DETAILED DESCRIPTION

[0059] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0060] A specific embodiment of the present invention discloses a bus network multi-priority traffic admission control and dynamic programming method, which specifically includes the following steps:

[0061] Step S1: based on the multiple TT flows to be admitted, solving a first scheduling scheme for the multiple TT flows that satisfies that the end-to-end worst-case delay of each RC flow does not exceed the corresponding end-to-end delay limit, and if the solution is successful, executing the first scheduling scheme;

[0062] Solve the second scheduling scheme for the plurality of TT flows with the least number of RC flows whose end-to-end worst-case delay exceeds the corresponding end-to-end delay limit. If the solution fails, the plurality of TT flows are not admitted. Otherwise, enter step S2.

[0063] Step S2: based on the second scheduling scheme, solving a compression scheme for some RC flows that satisfies the requirement that the end-to-end worst-case delay of all RC flows does not exceed the corresponding end-to-end delay limit; if the solution is successful, executing the second scheduling scheme and the compression scheme; otherwise, executing the second scheduling scheme, and implementing a traditional RC flow reconstruction method for RC flows whose worst-case delay exceeds the corresponding end-to-end delay limit;

[0064] Step S3: When receiving the network exit notification of the TT flow, if there is a compressed RC flow in the network, based on the compressed RC flow set existing in the network and the route of the network exit flow, a decompression scheme of the RC flow is solved and executed.

[0065] In this embodiment, the scheduling scheme of the TT flow is determined by considering the influence of the TT flow to be admitted on the end-to-end delay of the RC flow in the network, so as to minimize the influence of the TT flow on the RC flow in the TSN network. In the case of failure to solve the first scheduling scheme, the admission requirements can be lowered, the admission probability of the new TT flow can be increased, and the RC flow can be elastically reconstructed by compressing the bandwidth of some RC flows. The service quality of some RC flows is reduced in exchange for the communication continuity of all RC flows, and the packet loss and communication interruption of the RC flows are avoided, thereby ensuring the robustness and determinism of the network.

[0066] It should be noted that the bus network multi-priority traffic admission control and dynamic planning method of the present invention adopts the TAS scheduling model based on IEEE 802.1Qbv, and its traffic includes time-triggered (TT) traffic, rate-limited (RC) traffic (such as audio and video AVB traffic) and traditional Ethernet best-effort (BE) traffic. In the present invention, only TT traffic and RC traffic are considered. Without loss of generality, the RC traffic in the present invention is only sent periodically in the source system, and no additional scheduling algorithm is executed in the port passing through the switch, and only the basic first-in-first-out principle (FIFO) is followed. This assumption is reasonable and is backward compatible with more complex scheduling algorithms, so it has the widest scope of application.

[0067] Specifically, the TSN network topology is represented as a directed graph G(V,E), where V represents the set of network nodes of the terminal system (ES) and the switch (SW), and E represents the set of directed communication links between the network nodes. 1 and v 2 Represents two adjacent nodes and satisfies v 1 ,v 2 ∈V, then [v 1 ,v 2 ] and [v 2 ,v 1 ] can be used to represent a bidirectional data flow link. st It can be described as e st =[vs ,v t ]∈E,v s ,v t ∈V. The multi-priority traffic in time-sensitive networking (TSN) mainly includes TT, rate-limited (RC) and best-effort (BE) traffic. TT traffic is forwarded according to the offline scheduled schedule and has the highest priority. RC traffic is only sent during the execution period of the source system and is subject to the rate limit of the bandwidth allocation gap (BAG). Its priority is lower than TT traffic. BE traffic is traditional Ethernet traffic without any QoS guarantee and has the lowest priority, which is not discussed in this invention.

[0068] Furthermore, all communication tasks in the network are transmitted through data streams, including data frame instances. Let F = F TT ∪F RC Represents the set of all data flows. Any TT flow f m ∈F TT and any RC flow f n ∈F RC They can be represented by the following seven-tuple and six-tuple respectively:

[0069] f m ={s m ,d m ,l m ,p m ,dl m ,vl m ,O m} and f n ={s n ,d n ,l n ,p n ,dl n ,vl n};

[0070] where s m d m , l m 、p m 、dl m and vl m Respectively represent the source ES, destination ES, frame length in the time dimension (frame length divided by link bandwidth), traffic period, end-to-end (ETE) delay limit, and routing information. m Exclusive to TT traffic, it represents the offset set between the first data frame instance and the cycle start time of the TT flow on each directed link. The offset set of all TT flows together constitutes the time schedule of the network. In simple terms, the admission control and dynamic planning of TT flows means reallocating the routing information and corresponding offset time of TT flows.

[0071] Specifically, in step S1, based on multiple TT flows to be admitted, solving a first scheduling scheme for the multiple TT flows that satisfies that the end-to-end worst-case delay of each RC flow does not exceed the corresponding end-to-end delay limit includes steps S11-S12.

[0072] S11. Based on multiple TT flows to be admitted and the network topology, a Dijkstra algorithm is used to calculate and obtain multiple optional routing solutions.

[0073] S12. Based on the optional routing scheme, a first routing scheme is solved to ensure that the worst-case end-to-end delay of each RC flow does not exceed the corresponding end-to-end delay limit. If the solution is successful, a first scheduling scheme for the multiple TT flows is solved based on the first routing scheme; otherwise, the first scheduling scheme fails to be solved.

[0074] Furthermore, step S12 includes S121-S123.

[0075] S121, with the goal of optimizing the delay time rate of each RC flow affected by the TT flow to be admitted, use the particle swarm algorithm to iteratively solve the optimal routing solution based on the optional routing solutions.

[0076] Specifically, the optional routing solutions are numbered, with values ​​ranging from 1 to k.

[0077] Furthermore, the combination of the routing schemes of the TT flows to be admitted is taken as a particle, and the particle position is described by the combination of the corresponding numbers of the routing schemes of the TT flows in each particle. The position of each particle is represented as an M-dimensional vector X = [x 1 ,x 2 ,...,x M ], where x m (m∈[1,M]) represents the TT flow f to be admitted m The routing scheme number is determined based on the optional routing range. The routing number ranges from 1 to k. The speed of the particle is expressed as V = [v 1 ,v 2 ,...,v M ], where v m Indicates the distance the particle moves in the mth dimension, ranging from -(k-1) to (k-1).

[0078] Furthermore, an objective function is constructed based on the delay time rate of the affected RC flows.

[0079] The objective function is expressed as:

[0080]

[0081] Where Q(X) is the objective function, which is used to calculate the delay time rate of the affected RC flow; X is a c-dimensional vector, representing the particle position, X = [x 1 ,x 2 ,...,x m ]; c is the number of TT flows to be admitted; Indicates the number of affected RC flows; represents the worst end-to-end delay of the ith RC flow, where vl i represents the route e of the i-th RC flow αβ Represents the connected network node v α 、v β The directed edge of Indicates that any frame of the RC flow is from network node v α Transmit to network node v β The worst time interval; dl i represents the end-to-end delay of the i-th RC flow; D ave represents the average delay time rate of all RC flows, F RC |Indicates the total number of RC flows in the network.

[0082] Furthermore, a penalty function is constructed based on the maximum bandwidth constraint.

[0083] The penalty function is expressed as:

[0084]

[0085] Where E represents the set of directed communication links between network topology nodes; vl j represents the route of the jth TT flow to be admitted or the RC flow in the network; e represents the directed communication link between the nodes in the network topology; l j Indicates the data stream frame length of the jth TT stream to be admitted or the RC stream in the network; p j represents the data flow period of the jth TT flow to be admitted or the RC flow in the network; C j Indicates the maximum bandwidth service rate of the directed link; It indicates that the TT flows to be admitted and the RC flows in the network are expected to meet the maximum bandwidth constraint.

[0086] Furthermore, a fitness function is constructed based on the objective function, the penalty function and the weight coefficient of the penalty function to evaluate the performance of the routing scheme represented by the particle position. The lower the fitness function value, the better the performance of the selected route.

[0087] The fitness function is expressed as: F(X)=Q(X)+γE(X); wherein γ is a penalty weight, which varies according to different topologies and traffic flows, and preferably, is 300.

[0088] Furthermore, in each round of iteration, the optimal solution of the particle swarm is sought based on the fitness function, and the optimal routing solution of the round of iteration is obtained and recorded.

[0089] Specifically, in the process of searching for the optimal solution, the position and velocity of the particle are updated according to two values: the current optimal solution pBest of a single particle and the optimal solution gBest of all particles in the population; the search process is expressed as:

[0090] V t+1 =ωV t +c 1 r 1 (pBest-X t )+c 2 r 2 (gBest-X t );

[0091] X t+1 =X t +V t ;

[0092] Where ω is the inertia weight, which is used to adjust the degree to which the particle maintains its original velocity. Its value range is between 0 and 1, and is preferably set to 0.9; c 1 and c 2 Representing self-learning and social learning factors, they are used to balance local and global search capabilities. c1 controls the speed and direction of self-update of particles in the search space. The larger the value, the more inclined to search along the direction of its own historical optimal solution, and the smaller the value, the more inclined to random exploration. c2 controls the speed at which particles update according to the optimal solution of neighboring particles in space. The larger the value, the more inclined to search under the influence of neighboring particles, and the smaller the value, the more inclined to independent search. 1 and c 2 The sum is not greater than 4, preferably, c 1 and c 2 are set to 2 and 0.9 respectively; r 1 and r 2 is a random number between 0 and 1; t represents the number of searches during the solution process.

[0093] S122. Based on the preferred routing solution obtained in each round of iteration, determine whether the end-to-end worst-case delay of each RC flow does not exceed the corresponding end-to-end delay limit: if so, the preferred routing solution obtained in this round of iteration is the first routing solution; if not, continue with the next round of iteration until the maximum number of iterations is reached.

[0094] Specifically, the calculation method of the worst-case end-to-end delay of each RC stream is:

[0095] Calculate the worst transmission interval of each RC flow between every two nodes of the network link based on the preferred routing solution;

[0096] The worst-case delay of the corresponding RC stream is calculated based on all the worst transmission intervals of each RC stream.

[0097] Further, the calculation of the worst transmission interval of each RC flow between every two nodes in the network link based on the preferred routing solution includes:

[0098]

[0099] in, Indicates that any frame of the RC flow is from network node v α Transmit to network node v β The worst time interval; and Respectively represent any frame of the RC flow transmitted to the network node v β and v α moment; represents the technical delay introduced by each data frame; represents the delay effect of the TT flow on the RC flow, where F TT Indicates the set of other TT flows that are not waiting to be admitted, f k Indicates other TT flows to be admitted to the TT flow. Any frame of the RC flow is sent from the network node v α Transmit to network node v β The time offset between k represents the data stream frame time length of the kth TT stream to be admitted, p k Indicates the kth TT flow data cycle to be admitted; Indicates the delay impact of other RC flows on this RC flow, where F RC represents the RC flow set, f l Indicates the TT flow to be admitted, F TTRec Indicates the set of TT flows to be admitted, l l Indicates the time length of the lth other RC stream frame, p k It indicates the lth other RC flow cycle; It indicates the additional delay of TT flow to the RC due to the preemptive integration strategy; l i Indicates the frame time length of the RC stream.

[0100] The following describes the principle of calculating the worst transmission interval of each RC flow between every two nodes in the network link:

[0101] In the method of the present invention, it is reasonably assumed that all RC flows have passed the worst-case end-to-end delay verification in the design phase, i.e. (wcdn represents the worst-case end-to-end delay of the nth RC flow). When judging whether the worst-case end-to-end delay of each RC flow does not exceed the corresponding end-to-end delay limit, it is only necessary to judge the RC flows that have an intersection with the routes of the TT flow to be admitted. This is because in the delay analysis, the end-to-end delay of non-intersecting RC flows may change, but their worst-case end-to-end delay wcd remains unchanged (regardless of the delay calculation method such as network calculation or trajectory method).

[0102] Furthermore, the end-to-end delay of the RC flow is mainly affected by four aspects in addition to the transmission delay: ① related technical delay, such as the delay caused by the data validity and integrity check between nodes, the delay caused by the bandwidth allocation interval error containment delay, etc.; ② the delay caused by the competition for bandwidth resources between RC flows; ③ the delay caused by high-priority TT traffic to the RC flow; ④ the delay caused by the integration of TT and RC flows, which is mainly divided into three types according to different integration strategies: shuffling, preemption and timely blocking. The most common preemption strategy (this strategy is the most general, representative and practical) is adopted in the method of the present invention.

[0103] Furthermore, the end-to-end delay of the RC flow mainly consists of two parts: ① the queuing delay of the source ES; ② the delay of each intermediate node (link).

[0104] First, consider the queuing delay at the source ES. Specifically, the set of RC flows that have an intersection with the routes of the TT flows to be admitted is identified as F RC ′. Since the initial phase (offset) of the route corresponding to the RC flow can be allocated by the traditional offset allocation algorithm, vl i The initial offset is recorded as Furthermore, the transmission time when it leaves the end node and enters the network (denoted as ) can be calculated as follows:

[0105]

[0106] Where FIFO(j,i) represents TT flow f j The data frame is earlier than the RC stream f i The data frame enters the buffer; when FIFO(j,i) is an empty set, Therefore, the RC flow f entering the network i The offset can be represented by several possible discrete values.

[0107] Secondly, the delay calculation of each intermediate node (link) is considered. Specifically, the present invention adopts an iterative strategy of overall timing analysis and uses the concept of busy period to analyze the delay of the affected RC flow in the network. For any data frame of the RC flow, its busy period on a certain link can be defined as a time interval, that is, from the time when the frame arrives at the node v α To transmit the frame to the next node v β The time interval is expressed as Define the frame arrival node v α To transmit the frame to the next node v β Time interval The end-to-end delay of the RC flow is expressed as To ensure that the worst-case end-to-end delay of each RC flow does not exceed the corresponding end-to-end delay limit dl i , the worst time interval Described as (for any known ):

[0108]

[0109] in, represents the technical delay introduced by each data frame; Indicates the delay impact of the TT flow on the RC flow; Indicates the delay impact of other RC flows on this RC flow; It indicates the additional delay of TT flow to this RC due to the preemptive integration strategy.

[0110] Since the above formula contains both sides is a recursive function, so we can use the recursive tree method to solve it. Indicates from At the beginning of time, link e αβ Medium RC flow i The worst-case end-to-end delay, which guarantees the transmission of all TT flows and other backlogged RC flows that arrive earlier within the time period. Can be used as vl i The start time of the next link in the process is used to solve the busy period until the until.

[0111] The above is the principle of calculating the worst transmission interval of each RC flow between every two nodes in the network link.

[0112] Further, in S1022, it is determined whether the worst-case end-to-end delay of each RC stream does not exceed the corresponding end-to-end delay limit, which can be expressed as:

[0113]

[0114] S123. Solve a first scheduling solution for the multiple TT flows based on the first solution obtained in step S122.

[0115] Specifically, if the first routing solution fails in step S122, it means that the first scheduling solution fails; if the first routing solution is successfully solved in step S122, an integer linear programming solver is used to solve the first scheduling solution that satisfies the scheduling constraints based on the first routing solution, and the solver can be selected such as gurobi, cplex, etc. Since the solver and the solution method are both existing technologies, they will not be discussed here.

[0116] Furthermore, if the first scheduling solution is successfully solved based on the first routing solution, the first scheduling solution is distributed as a new configuration solution A to the corresponding nodes in the network for configuration switching to execute the first scheduling solution. If it is not successful, it is determined whether the maximum number of iterations of the particle swarm algorithm has been reached. If the maximum number of iterations has not been reached, the first routing solution of the next iteration is solved; if the maximum number of iterations has been reached, it means that the solution of the first scheduling solution has failed. It should be noted that, in general, the solution of the first scheduling solution based on the first routing solution is related to the network load, and the probability of failure in actual applications is extremely small.

[0117] Specifically, in step S1, if solving the first scheduling solution fails, proceed to step S13.

[0118] Step S13, solving a second scheduling scheme for the multiple TT flows with as few RC flows as possible whose end-to-end worst-case delay exceeds the corresponding end-to-end delay limit; if the solution fails, the multiple TT flows are not admitted.

[0119] Specifically, based on all the preferred routing solutions obtained in step S121, the second routing solution is iteratively solved. Specifically, in each round of iteration:

[0120] Selecting a preferred routing scheme with the least number of RC flows whose end-to-end delay exceeds the corresponding worst delay among the preferred routing schemes;

[0121] Based on the preferred routing solution and the scheduling constraints, the second scheduling solution is solved using an integer linear programming solver:

[0122] If successful, the preferred routing solution becomes the second routing solution, and the iteration ends;

[0123] If it fails, it is determined whether all the preferred routing solutions have been traversed. If not, the next round of iteration is continued; if yes, it means that the second scheduling solution has failed and the admission requests of the multiple TT flows to be admitted are not passed.

[0124] It should be noted that, since in each round of iteration, solving the second scheduling solution based on the preferred routing solution and scheduling constraints selected in that round is related to the network load, in practical applications, the probability of failure in solving the second scheduling solution is extremely small.

[0125] Specifically, if the second scheduling scheme is obtained in step S1, then in step S2, a partial RC stream compression scheme is solved based on the second scheduling scheme so that the worst-case end-to-end delay of all RC streams does not exceed the corresponding end-to-end delay limit.

[0126] Furthermore, a particle swarm algorithm is used based on the second scheduling scheme to solve a partial RC flow compression scheme that satisfies that the end-to-end worst-case delay of all RC flows does not exceed the corresponding end-to-end delay limit. Specifically, it includes S21-S25.

[0127] S21. Determine a set of RC flows to be solved based on RC flows whose end-to-end worst-case delay exceeds a corresponding end-to-end delay limit and RC flows that share the same directed link with their routes.

[0128] Specifically, based on the second scheduling scheme, the RC flows whose corresponding end-to-end worst-case delay exceeds the corresponding end-to-end delay limit and the RC flows that share the same directed link with their routes are determined to form a set F RC ', the set F RC The number of RC flows of ' is denoted as M'.

[0129] S22, number the compression schemes corresponding to each RC flow set to be solved, and number the set F RC The total number of periodic scheme numbers for each RC flow in ' is denoted as k'.

[0130] S23, using the combination of the corresponding compression schemes as particles, describing the particle position with the combination of the corresponding numbers of the corresponding compression schemes in each particle, and based on the RC flow set to be solved F RC 'The compression scheme corresponding to each RC flow randomly initializes the particle swarm.

[0131] Specifically, the position of each particle is represented by an M'-dimensional vector X' = [x' 1 ,x' 2 ,...,x' M ], where x' m' (m'∈[1,M']) represents the RC flow to be solved f m' The compression scheme number of , the movement range of the particle is -(k'-1) to (k'-1).

[0132] S24. Construct a fitness function based on the end-to-end delay and maximum bandwidth constraints of all affected RC flows.

[0133] Specifically, an objective function is constructed based on the end-to-end delay of all affected RC flows. The objective function is expressed as:

[0134] Q(X)=max{D ave -min{δ}};

[0135] Among them, D ave represents the average delay time rate of all RC flows; min{δ} represents the minimum value of the end-to-end delay that does not exceed the corresponding end-to-end delay limit for all affected RC flows due to compression, and δ satisfies where F RC ' represents the set of RC flows to be solved, f h represents the hth RC flow in the set, represents the offset of the hth RC stream reaching the destination. The calculation method and principle have been described in step S1022 and will not be discussed here. The data flow route vl represents the kth RC flow h The initial offset of dl h Indicates the end-to-end delay limit of the hth RC flow.

[0136] Furthermore, a penalty function is constructed based on the maximum bandwidth constraint. The penalty function is the same as the penalty function in step S121, and is expressed as:

[0137]

[0138] in, Indicates the number of affected RC flows; vl j represents the route of the new TT flow or RC flow in the network described in item j; αβ Represents the connected network node v α 、v β ; Indicates that any frame of the RC flow is from network node v α Transmit to network node v β The worst time interval; dl i represents the end-to-end delay of the i-th RC flow; E represents the set of directed communication links between network topology nodes; e represents the directed communication links between network topology nodes; l j p represents the data stream frame length of the new TT stream or RC stream in the network described in item j; j represents the data flow period of the new TT flow or RC flow in the network described in item j; C j Indicates the maximum bandwidth service rate of the directed link; It indicates that the TT flows to be admitted and the RC flows in the network are expected to meet the maximum bandwidth constraint.

[0139] Furthermore, a fitness function is constructed based on the objective function, the penalty function and the weight coefficient of the penalty function. The fitness function is expressed as:

[0140] F(X) = Q(X) + γE(X);

[0141] Where γ is the penalty weight; preferably, the value is 300.

[0142] S25. Based on the fitness function, the optimal solution for the particle swarm is obtained to obtain a partial RC flow compression solution.

[0143] Specifically, in each round of iteration of the particle swarm that reaches the maximum number of iterations, the current optimal solution pBest of a single particle and the optimal solution gBest of all particles in the swarm are obtained based on the fitness function. According to the fitness function constructed in S24, it can be known that the solution obtained needs to satisfy Furthermore, in the desired iterations that reach the maximum number of iterations, an optimal solution is determined based on the best fitness function value, and a partial RC stream compression solution is obtained.

[0144] Specifically, in steps S21-S25, if the partial RC flow compression scheme is successfully solved, the second scheduling scheme and compression scheme are distributed as a new configuration scheme B to the corresponding nodes in the network for configuration switching to execute the second scheduling scheme and compression scheme; otherwise,

[0145] Execute step S26, distribute the second scheduling scheme as a new configuration scheme B' to the corresponding nodes in the network for configuration switching to execute the second scheduling scheme, and implement the traditional RC traffic reconstruction method for the RC flow whose worst-case delay exceeds the corresponding end-to-end delay limit. .

[0146] It should be noted that, in practical applications, the probability of failure in solving the compression scheme for some RC streams in steps S21-S25 is extremely small, and the communication continuity of all RC streams can be maximized by reducing the service quality of some RC streams, thereby avoiding packet loss and communication interruption of RC streams.

[0147] The following is an explanation of the traditional RC traffic reconstruction method in the prior art: the traditional RC traffic reconstruction method is a post hoc traffic reconfiguration method, that is, in the design stage, only the routing and scheduling schemes of the newly added TT traffic are considered to meet the relevant delay and jitter constraints; after the newly added TT traffic is distributed to the node, it is determined whether to reconfigure the specified RC traffic according to the specific frame loss situation in the network node (continuous periodic frame loss or communication timeout); at this time, the communication of these timed RC traffic is interrupted (that is, data transmission is stopped), and the routing scheme is re-solved and distributed according to the link load information; the process is repeated until there is no communication timeout of RC traffic in the network, or when the problem cannot be solved after a sufficient number of iterations, a subset of the set of these RC traffic components is gradually tried to be restored; when the problem cannot be solved after a sufficient number of further iterations, the subset is gradually tried to be reduced until the subset is an empty set (an empty set means that all specified RC traffic is not restored and all no longer communicates). Among them, the strategy of reducing the subset is based on expert experience and the importance ranking of RC traffic, which is pre-defined during the initial design.

[0148] Further, in the bus network multi-priority traffic admission control and dynamic programming method described in this embodiment, when step S1 and step S2 are implemented, the admission control and dynamic programming of multiple TT flows to be admitted in this round have been completed (such as Figure 1 shown).

[0149] Further, in step S3 (such as Figure 2 As shown), when receiving the network exit notification of the TT flow, if there is an RC flow in a compressed state in the network, based on the RC flow set in the compressed state existing in the network and the route of the network exit flow, the decompression scheme of the RC flow is solved and executed.

[0150] Further, in step S3, the RC flows involved in the off-network traffic are determined based on the route of the off-network traffic; the intersection of the set of RC flows involved in the off-network traffic and the set of RC flows in a compressed state existing in the network is the set of RC flows to be solved for the decompression solution, denoted as F RC ”.

[0151] Furthermore, the particle swarm algorithm is used to RC Solve the decompression solution of the RC stream. Specifically, the solution process is consistent with the process of solving the compression solution of the partial RC stream in step S2.

[0152] Furthermore, if a decompression solution is obtained within the maximum number of iterations, the decompression solution is distributed as a new configuration solution C to corresponding nodes in the network for configuration switching to execute the decompression solution. If the solution fails, the existing configuration solution B in the network is not changed and remains as it is.

[0153] The present embodiment discloses a bus network multi-priority traffic admission control and dynamic planning method, which determines the scheduling scheme of the TT flow by considering the impact of the TT flow to be admitted on the end-to-end delay of the RC flow in the network, thereby minimizing the impact of the TT flow on the RC flow in the TSN network, and solving the problem of end-to-end timeout of the RC flow caused by the newly admitted TT flow affecting the end-to-end delay of the RC flow.

[0154] By solving the first routing scheme that satisfies the requirement that the end-to-end worst-case delay of all RC flows does not exceed the corresponding end-to-end delay limit, the packet loss and communication interruption of RC flows are avoided from the source; and in the case of failure to solve the first routing scheme, the admission requirements are lowered, the admission probability of new TT flows is increased, and the second scheduling scheme that satisfies the requirement that the end-to-end worst-case delay of most RC flows does not exceed the corresponding end-to-end delay limit is determined. On the basis of the second scheduling scheme, the RC flows are elastically reconstructed by compressing the bandwidth of some RC flows, the service quality of some RC flows is reduced in exchange for the communication continuity of all RC flows, the robustness and determinism of the network are guaranteed, and the secondary reconstruction (i.e., reallocation) of RC flows is avoided as much as possible.

[0155] By decompressing the RC stream upon receiving the notification of TT stream withdrawal from the network, network bandwidth resources are fully utilized, further reducing the impact on the transmission quality of the RC stream.

[0156] By constructing a fitness function based on the delay time and maximum bandwidth constraints of the RC flow, the particle swarm algorithm is used to solve the first and second routing solutions, the partial RC flow compression solution and the decompression solution respectively, ensuring that each link of the method of the present invention obtains the optimal solution of the corresponding solution.

[0157] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A bus network multi-priority traffic admission control and dynamic programming method, characterized in that: The steps include: Based on the multiple TT flows to be admitted, solving a first scheduling scheme for the multiple TT flows that satisfies that the end-to-end worst-case delay of each RC flow does not exceed the corresponding end-to-end delay limit, if the solution is successful, executing the first scheduling scheme; otherwise, Solve the second scheduling scheme for the plurality of TT flows with the least number of RC flows whose end-to-end worst-case delay exceeds the corresponding end-to-end delay limit as possible. If the solution fails, the plurality of TT flows are not admitted; otherwise, Based on the second scheduling scheme, a partial RC flow compression scheme is solved to ensure that the end-to-end worst-case delay of all RC flows does not exceed the corresponding end-to-end delay limit. If the solution is successful, the second scheduling scheme and compression scheme are executed. Otherwise, The second scheduling scheme is executed, and a traditional RC traffic reconstruction method is implemented for RC flows whose worst-case delay exceeds the corresponding end-to-end delay limit.

2. The flow admission control and dynamic programming method according to claim 1 is characterized in that: When receiving the network exit notification of the TT flow, if there is a compressed RC flow in the network, based on the compressed RC flow set existing in the network and the route of the network exit flow, the decompression scheme of the RC flow is solved and executed.

3. The flow admission control and dynamic programming method according to claim 2 is characterized in that: Solving the partial RC flow compression scheme based on the second scheduling scheme using a particle swarm algorithm includes: Determine a set of RC flows to be solved based on RC flows whose end-to-end worst-case delay exceeds the corresponding end-to-end delay limit and RC flows that share the same directed link with their routes; Number the compression schemes corresponding to each RC flow in the RC flow set to be solved; A combination of the corresponding compression schemes is used as a particle, a combination of numbers corresponding to the corresponding compression schemes in each particle is used to describe the particle position, and a particle swarm is randomly initialized based on the compression scheme corresponding to each RC flow of the RC flow set to be solved; A fitness function is constructed based on the end-to-end delay and maximum bandwidth constraints of all affected RC flows; Based on the fitness function, the optimal solution of the particle swarm is obtained, and some RC flow compression schemes are obtained.

4. The flow admission control and dynamic programming method according to claim 3 is characterized in that: The fitness function is expressed as: F(X) = Q(X) + γE(X); Among them, Q(X) is the objective function, Q(X) = max{D ave -min{δ}};D ave represents the average delay time rate of all RC flows; min{δ} represents the minimum value of the end-to-end delay that does not exceed the corresponding end-to-end delay limit for all affected RC flows due to compression, and δ satisfies Among them, F RC ' represents the set of RC flows to be solved, f h represents the hth RC flow in the set, Indicates the offset of the hth RC stream reaching the destination. The data flow route vl represents the kth RC flow h The initial offset of dl h represents the end-to-end delay limit of the h-th RC flow; γ is the penalty weight; E(X) is the penalty function, in, Indicates the number of affected RC flows; vl j Indicates the route of the TT flow to be admitted or the RC flow in the network described in item j; αβ Represents the connected network node v α 、v β ; Indicates that any frame of the RC flow is from network node v α Transmit to network node v β The worst time interval; dl i represents the end-to-end delay of the i-th RC flow; E represents the set of directed communication links between network topology nodes; e represents the directed communication links between network topology nodes; l j Indicates the data stream frame length of the jth TT stream to be admitted or the RC stream in the network; p j represents the data flow period of the jth TT flow to be admitted or the RC flow in the network; C j Indicates the maximum bandwidth service rate of the directed link; It indicates that the TT flows to be admitted and the RC flows in the network are expected to meet the maximum bandwidth constraint.

5. The flow admission control and dynamic programming method according to claim 4 is characterized in that: The decompression scheme of the RC flow based on the RC flow set in the compressed state existing in the network and the route of the off-network flow includes: Determine the RC flow involved in the off-network traffic based on the route through which the off-network traffic passes; The particle swarm algorithm is used to solve the decompression solution of RC flow by the intersection of the set of RC flows involved in the network-deregulating traffic and the set of RC flows in a compressed state existing in the network.

6. The flow admission control and dynamic programming method according to any one of claims 1 to 5, characterized in that: The solving, based on the multiple TT flows to be admitted, a first scheduling scheme for the multiple TT flows that satisfies that the end-to-end worst-case delay of each RC flow does not exceed the corresponding end-to-end delay limit comprises: Based on multiple TT flows to be admitted, multiple optional routing solutions are obtained one by one; A first routing solution is solved based on the optional routing solution so that the worst-case end-to-end delay of each RC flow does not exceed the corresponding end-to-end delay limit. If the solution is successful, a first scheduling solution for the multiple TT flows is solved based on the first routing solution; otherwise, the solution of the first scheduling solution fails.

7. The flow admission control and dynamic programming method according to claim 6 is characterized in that: The first routing solution based on the optional routing solution to ensure that the worst-case end-to-end delay of each RC flow does not exceed the corresponding end-to-end delay limit includes: Iteratively solving an optimal routing solution based on the optional routing solution with the goal of optimizing the delay time rate of each RC flow affected by the TT flow; In each round of iteration, based on the optimal routing solution obtained in this round of iteration, it is determined whether the worst-case end-to-end delay of each RC flow does not exceed the corresponding end-to-end delay limit: If yes, the optimal routing solution obtained in this round of iteration is the first routing solution; If not, continue with the next iteration until the maximum number of iterations is reached.

8. The flow admission control and dynamic programming method according to claim 7, characterized in that: Using a particle swarm algorithm to optimize the delay time rate of each RC flow affected by the TT flow, and using the particle swarm algorithm to iteratively solve the optimal routing solution based on the optional routing solution, including: Numbering the optional routing solutions; A combination of routing schemes of each TT flow to be admitted is used as a particle, a combination of corresponding numbers of the routing schemes of each TT flow to be admitted in each particle is used to describe the particle position, and a particle group is randomly initialized based on the multiple optional routing schemes; A fitness function is constructed based on the delay time rate and maximum bandwidth constraint of the affected RC flows; In each round of iteration, the optimal solution of the particle swarm is sought based on the fitness function to obtain the optimal routing solution for that round of iteration.

9. The flow admission control and dynamic programming method according to claim 8, characterized in that: The fitness function constructed based on the delay time rate and maximum bandwidth constraint of the affected RC stream includes: An objective function is constructed based on the delay time rate of the affected RC flows; Construct a penalty function based on the maximum bandwidth constraint; The fitness function is constructed based on the objective function, the penalty function and the weight coefficient of the penalty function.

10. The flow admission control and dynamic programming method according to any one of claims 7 to 9, characterized in that: The second scheduling scheme for solving the problem of the number of RC flows whose end-to-end worst-case delay exceeds the corresponding end-to-end delay limit and the number of TT flows to be admitted being as small as possible includes: The second routing solution is iteratively solved based on the preferred routing solutions. In each round of iteration: Selecting a preferred routing scheme with the least number of RC flows whose end-to-end delay exceeds the corresponding worst delay among the preferred routing schemes; Solve the second scheduling solution based on the optimal routing solution and scheduling constraints: If successful, the preferred routing solution becomes the second routing solution, and the iteration ends; If it fails, continue to the next iteration until all preferred routing solutions are traversed.

Citation Information

Patent Citations

  • Method for generating schedule for mixed critical computer network

    CN112468412A

  • Planning method and device for joint scheduling of time-sensitive service flow and route

    CN114374647A

  • Time-sensitive network scheduling method based on bandwidth reservation

    CN116192651A

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

    CN117675683A

  • Communication system with priority data compression

    US7319667B1