Dynamic configuration of the scheduling of transmission of streams in deterministic networks
Patent Information
- Application Number
- EP2022812678
- Authority / Receiving Office
- EP · EP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-11-19
- Filing Date
- 2022-11-07
- Publication Date
- 2024-09-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Current methods for configuring IEEE 802.1 Qbv in Time-Sensitive Networking (TSN) networks are complex and lack efficient algorithms for dynamic reconfiguration, especially when new flows arrive, leading to increased latency and interference between flows of the same priority, and existing solutions require prior knowledge of all network flows.
A method for dynamically reconfiguring flow transmission schedules in TSN networks by allocating time slots based on a fixed reference period, allowing for quick adaptation and reduced complexity in generating Gate Control Lists (GCLs, ensuring temporal isolation of flows and minimizing latency.
This approach enables rapid and efficient dynamic reconfiguration of flow transmission schedules, reducing execution time and latency, and supporting new flows without compromising existing QoS, while simplifying the allocation of time slots and managing interference between flows.
Smart Images

Figure 1.1
Abstract
Description
DESCRIPTION Title of the invention: DYNAMIC CONFIGURATION OF FLOW TRANSMISSION PLANNING IN DETERMINISTIC NETWORKS
[0001] Scope of the invention
[0002] The present invention is in the field of telecommunication networks, and relates more particularly to a method of dynamic reconfiguration of the transmission planning of multi-QoS flows in deterministic networks or time-sensitive networks (TSN) “Time Sensitive Networking”.
[0003] State of the Art
[0004] TSN is a set of standards, defined by the IEEE 802.1 working group, that extend the Ethernet network to meet the stringent requirements of real-time communications.
[0005] This type of network is intended to be used primarily in industrial networks, intra-vehicular networks, and 5G / 6G core networks.
[0006] Data transmission for critical real-time applications (e.g., rapid control systems, signal acquisition in power grids, or motion control) and data-intensive applications (e.g., video streams or computer systems) is currently implemented in separate networks to avoid mutual interference. However, the increasing flexibility and digitization of work processes have necessitated a growing convergence of IT and industrial operations, and consequently, a merging of previously separate systems. By extending and adapting existing Ethernet standards, TSN creates a convergence between information technology (IT) and industrial operations technology (OT) in industrial networks.This means that critical real-time data and data-intensive applications can be implemented over a common Ethernet cable without interfering with each other.
[0007] The TSN (IEEE 802.1) specifications provide deterministic services, enabling real-time data transmission within a predictable framework and a known time frame, in industrial environments such as machine control applications in production processes. Cloud sensor (using the established English term "cloud"). TSN offers guaranteed latency and quality of service with time synchronization.
[0008] The various documents of the TSN standard offer a complete real-time communication solution when used together in a coordinated manner. However, each standard specification is self-contained and can be used independently. The specifications can be grouped into three categories: Time synchronization corresponds to the IEEE 802.1 AS standard, where all devices participating in real-time communication must have a common understanding of time. The planning corresponds to the IEEE 802.1 Qbv standard and the shaping of traffic where all devices participating in real-time communication respect the same rules in the processing and transmission of communication packets. The selection of communication paths, path reservations and fault tolerance where all devices participating in real-time communication respect the same rules in the selection of communication paths and in the reservation of bandwidth and times, possibly using multiple simultaneous paths to achieve fault tolerance.
[0009] The IEEE 802.1 Qbv standard, one of the leading TSN standards and referred to as Qbv hereafter, provides a mechanism for ensuring bounded latencies. It allows switches in a TSN network to control traffic in queues of switch output ports, according to a predefined transmission schedule (the IEEE Time Scheduler). 802.1 Qbv), and thus ensure the quality of priority traffic. The IEEE 802.1 Qbv time scheduler is designed to separate communication on the Ethernet network into repeated time cycles of fixed length. Within these cycles, different time slices can be configured and assigned to one or more of the eight Ethernet priorities.
[0010] Figure 1 schematically illustrates the structure of a switch that allows the Qbv planning principle to be applied in a TSN network composed of of a plurality of source / destination devices connected to switches via Ethernet links.
[0011] Switches serve as intermediaries between data stream sending terminals or Talker(s) and receiving terminals or Listener(s), managing the multiplexing of data, i.e. its reception, processing and retransmission.
[0012] For the sake of simplicity, Figure 1 shows a TSN 100 switch with only two ingress ports and one egress port, as a non-limiting example of the number of ingress and egress ports. A first data stream, composed of data fragments 'A', is received by the first ingress port 102, and a second data stream, composed of data fragments 'B', is received by the second ingress port 104.
[0013] The output of each of the input ports is coupled to a 108 flow distribution module which assigns the data of each flow to an appropriate queue, generally eight in number (Q0 yes 10-0 to Q7 yes 10-7), according to the priority of each flow.
[0014] According to the definition of Ethernet frames in IEEE 802.1 Q, a priority filter determines which specific traffic flow is forwarded to the corresponding priority queues based on a priority code point (PCP). Scheduled traffic (which has the highest priority by default) enters a priority queue, and unscheduled traffic enters a non-priority queue.
[0015] The output of the queues is associated with a structure of 112 logic gates, each logic gate having two states: "open" or "closed". The current state of each gate depends on the contents of a Gate Control List (GCL) 114. When a gate is in an open state at a given time, the frames in the queue associated with that gate can pass through and be transmitted to the output port 106 via the analog switch 112. This is illustrated, for example, for queue Q7 with a bit set to '1' in the GCL at time t0, which then allows the transmission of data B to the output port 106. When a gate is in a closed state (corresponding to a bit set (at 0 in the list), frames that are in the queue associated with this gate cannot be transmitted into the network.
[0016] Although the Qbv mechanism itself is rather simple, there is an inherent complexity in the generation of GCLs, the problem being to find the right times to open and close the gates.
[0017] Furthermore, when considering the configuration of the Qbv mechanism on all TSN switches in a network, the complexity of establishing a suitable GCL for each switch increases considerably. It has been studied that synthesizing communication schedules in real-world scenarios often proves to be an NP-complete problem. However, no algorithm currently exists that generates a communication schedule in polynomial time.
[0018] Given that the Qbv standard is important in future industrial communication systems, especially in smart factories with autonomous manufacturing systems, there is a need for an algorithm that can quickly establish a Qbv configuration and deploy this configuration without disrupting the flows already circulating in the network.
[0019] In these systems, devices such as robots, actuators, and sensors must communicate with each other rapidly because they need to react very quickly to command and control systems or to unexpected events. In this way, these systems can ensure the accuracy of a manufacturing process and minimize defects.
[0020] Also, in order to respond to scenarios envisaged in industry 4.0 where production lines are rather reconfigurable (which implies a dynamic in the industrial network), or even to respond to the scenario of integrating TSN into the 5G / 6G core where the flows are not known in advance, there is a need for a flow scheduling algorithm that operates online, i.e. that is dynamic, for the incremental installation of application flows in the TSN network.
[0021] Furthermore, in order for it to be used online, such an algorithm must have a very short execution time, on the order of magnitude of less than a few seconds.
[0022] There are some approaches that partially address these issues.
[0023] The IEEE 802.1 Qcc standard provides two main approaches (centralized and distributed) for configuring TSN mechanisms [IEEE802.1 Qcc]. This standard emphasizes that the centralized approach is preferred for configuring IEEE 802.1 Qbv. However, this standard does not provide the algorithms for deciding and generating the GCL to be deployed in the network.
[0024] In the literature, the main approach generally relies on engineering tools: simulation tools such as "RTaW-Pegase" or mathematical optimization tools such as ILP formulations ("Integer Linear Programming >>) or SMT solvers ("Satisfiability modulo Theories >>).
[0025] However, these engineering tools are not suitable for an incremental and dynamic configuration like that of IEEE 802.1 Qbv. Indeed, for these tools to provide the correct Qbv configuration to deploy, prior knowledge of all the flows that could circulate in the TSN network would be necessary. Even using these tools to generate the new IEEE 802.1 Qbv configuration for each new flow would introduce latency due to the need to retrieve the list of existing flows in the network, the topology, and the characteristics of the new flow, and to provide this information to the tool in order to search for the Qbv configuration to deploy. This could take several hours before the new flow can be accepted or rejected and the chosen configuration deployed.For these reasons, these engineering tools are best suited for determining a configuration for a closed network where the flows are known in advance and where no new flows occur during network operation. They are intended for offline use before network deployment.
[0026] Numerous publications offer solutions for calculating the offline IEEE 802.1 Qbv configuration.
[0027] Some studies focus on the problem of online configuration of the IEEE 802.1 Qbv mechanism.
[0028] In the article by NG Nayak, F. Durr, K. Rothermel, “Incremental flow scheduling and routing in Time-Sensitive Software-defined networks”, IEEE transactions on industrial informatics, vol. 14, No. 5, May 2018, an incremental scheduling algorithm for periodic critical flows is presented. The algorithm relies on different ILP formulations to find the optimal solution each time. However, this paper only considers flow scheduling at the endpoints using the TSN network, which relies on "Openflow switches" without 802.1 Qbv support. Thus, the Qbv mechanism is only applied at the network entry point, leaving two questions unanswered: "How is the scheduling of flows coming from different access TSN switches managed?" and "How do the core network switches handle potential interference between flows of the same priority coming from two different switches and using the same egress queue?"
[0029] In the articles – P. Pop, ML Raagaard, M. Gutierrez, W. Steiner, “Enabling Fog Computing for Industrial Automation Through Time-Sensitive Networking (TSN)”, IEEE Communications Standards Magazine, June 2018; and – ML Raagaard, P. Pop, M. Gutierrez, W. Steiner, “Runtime Reconfiguration of Time-Sensitive Networking (TSN) Schedules for Fog Computing”, IEEE Fog World Congress (FWC), 2017 – the authors propose a heuristic for the reconfiguration of IEEE 802.1 Qbv “at runtime”. This heuristic aims to place time slots for TSN traffic by analyzing the current cycle. To calculate the cycle time Qbv, the heuristic uses the so-called hyper-period method, where the cycle time corresponds to the least common multiple (LCM) of all the periods of the TSN flows. This requires prior knowledge of the TSN flows that may be present in the network.One drawback is that the hyper-period method complicates resource allocation, and the heuristic's execution time increases with the adopted cycle duration. This is because the number of time slots to reserve depends on the flow period and the cycle duration. For example, if the cycle lasts 1 ms and the flow has a period of 200 ps, there are 5 time slots to allocate for that flow. The larger the ratio of cycle_duration to flow_period, the more complex the search for available time slots within the current cycle becomes. Furthermore, this article does not explain how the heuristic manages time slot reservations along the routing path of each flow.
[0030] Also, there is no known solution for calculating and configuring flow transmission scheduling in TSN switches, in a way dynamic, as flows arrive, without it being necessary to know in advance all the flows that may circulate in the TSN network.
[0031] The present invention addresses these various needs.
[0032] Summary of the invention
[0033] An object of the present invention is a method and a device for its implementation, enabling the rapid and dynamic calculation of a configuration for the planning of transmission of flows in deterministic networks.
[0034] The present invention specifically addresses the IEEE 802.1 Qbv configuration, online, as new flows arrive, in a TSN switch network supporting the IEEE 802.1 Qbv mechanism.
[0035] The method of the invention allows, when one or more new flows appear within a deterministic network, to quickly determine online a new flow transmission schedule, and allows to deploy the new schedule in the network in such a way as to support this or these new flows without compromising the quality of service (QoS) of the other flows already present in the network.
[0036] The invention proposes an efficient allocation of temporal resources (i.e. time slots) between access TSN switches (i.e. switches directly connected to the data stream sending and receiving terminals) in order to ensure temporal isolation of the streams and thus provide a solution to the interference that could occur between streams of the same priority arriving at the same switch and using the same queue for the same output port.
[0037] Advantageously, the allocation of temporal resources is dynamic and can adapt according to the number of flows served by each TSN switch.
[0038] In one embodiment, time slots are reserved for network control frames (e.g., IEEE 802.1 AS time synchronization frames, LLDP topology discovery frames, ...) and the remainder of the available time slots on a basic cycle are distributed according to the method of the invention between the access TSN switches.
[0039] Advantageously, the allocation of time slots is based on a less complex algorithm than those presented in the prior art, and it allows for the rapid acceptance / rejection of a flow.
[0040] Unlike known planning methods, the proposed solution for calculating a new schedule adopts a fixed-duration cycle reduced to a reference period, where the period of a periodic flow can be a multiple of the cycle. Advantageously, this effectively reduces the number of time intervals in the GCL, facilitates GCL updates, and simplifies and improves the efficiency of GCL configuration.
[0041] Still advantageous compared to the traditional hyper-period method, the proposed method allows for faster calculation of flow scheduling while guaranteeing low latency and effectively reducing execution time.
[0042] The present invention can be implemented in industrial networks (fields of the factory of the future, industry 4.0 / highly reconfigurable factories), intra-vehicular networks (fields of vehicles of all types: car, truck, bus, train, boat...), or even in the core of the 5G / 6G network (to carry real-time communications).
[0043] To obtain the desired results, a method for dynamically reconfiguring a data flow transmission schedule in a time-sensitive deterministic network is proposed. Data flows are sent from sending terminals to receiving terminals via switches grouping access switches SWj coupled to the sending and receiving terminals and core network switches to route the flows between the access switches, the switches being configured to apply flow transmission cycles according to a flow transmission schedule defined by a time scheduler, the method is implemented by computer and includes steps consisting of: receiving at least one request to add a new STi flow to the network, the new flow to be sent from a sending terminal to an access switch SWj; - determine if a flow transmission plan is in progress for said access switch SWj; - if a flow transmission schedule is in progress, determine if there are enough available time slots to transmit the new flow through the SWj access switch according to the current schedule; or - if there is no current flow transmission schedule: calculate a new flow transmission schedule such that: the transmission cycle duration is the same for all switches in the network; each transmission cycle has the same number of time slots for transmitting flows; the time slots of a given cycle are distributed among all access switches in the network; and determine for access switch SWj whether there are enough available time slots, among the number of time slots allocated to it, to transmit the new flow, according to the new schedule; and - allocate said new flow, the time slots necessary for its transmission, if there are enough time slots available to transmit this new flow through the access switch SWj according to the current schedule or according to the new schedule.
[0044] The expression "the time slots necessary for its transmission" means one or more time slots on a cycle.
[0045] The invention can be implemented according to alternative or combined embodiments, where: - The step of determining whether a flow transmission schedule is in progress for said access switch SWj includes the steps of: identifying an output port Pk of said access switch SWj to transmit the new flow into the network; retrieving the current configuration of the transmission schedule for said output port P k ; And determine if a flow transmission schedule is in progress on said output port P k . - The step of calculating a new flow transmission schedule includes steps of: determining the number of access switches in the network; retrieving a predefined value or calculating a value for a fixed reference duration for a transmission cycle; dividing the fixed reference duration into a plurality of equal time slots, the duration of a time slot being equal to the time required to send the smallest frame of a flow among the existing flows; and allocating, on the fixed reference duration, to each access switch a number of time slots from among the plurality of time slots, the number of time slots allocated to each access switch depending on the number of existing flows passing through each access switch. - The predefined or calculated value of the fixed reference duration corresponds either to the smallest period value among the critical flow periods received at system start-up, or to the largest common divisor of all critical flow periods among existing flows. - Before the time slot allocation step for a new flow, the process includes a step of reserving one or more control time slots for network control traffic. - After the step of determining whether there are enough time slots available to transmit the new flow through the access switch SWj according to the current schedule or according to the new schedule, the process includes a step of adding the new flow to a list of flows without allocation of time slots, if there are not enough time slots available to transmit the new flow. - The process further includes steps for processing the list of flows without allocated time slots, said steps consisting of searching for a flow without allocation, whether there are time slots not used by the other access switches than the one receiving said unassigned flow, and if so, steps to allocate at least one of said unused time slots to said unassigned flow according to the priority of said unassigned flow. - The process further includes, if there are no unused time slots by other access switches than the one receiving said unassigned flow, steps to determine whether said flow has a higher priority than an existing flow, and if so, steps to free up time slots from an existing lower priority flow to assign it to said unassigned flow.
[0046] The invention also relates to a device for dynamically reconfiguring a data flow transmission schedule in a time-sensitive deterministic network, the data flows being emitted by transmitting terminals to receiving terminals via switches grouping access switches SWj coupled to the transmitting and receiving terminals, and core network switches to route the flows between the access switches, the switches being configured to apply flow transmission cycles according to a flow transmission schedule defined by a time scheduler, the device comprising means for implementing the steps of the method of the invention.
[0047] Advantageously, the method of the present invention can be implemented in both network management infrastructures presented in the IEEE 802.1 Qcc standard, namely, the centralized infrastructure and the distributed infrastructure.
[0048] In one embodiment for the centralized approach, the process is executed at the level of the central CNC controller (“Central Network Controller” in English).
[0049] In one embodiment for the distributed approach, each switch in a TSN determines the allocation of time slots and publishes this allocation to its neighbors.
[0050] The invention also relates to a computer program product which includes code instructions for carrying out the steps of the process of the invention, when the program is executed on a computer.
[0051] Description of the figures
[0052] Other features and advantages of the invention will become apparent from the following description and the figures in the accompanying drawings, in which:
[0053] [Fig.1] is a simplified example of the structure of a TSN switch;
[0054] [Fig.2] illustrates the reservation of control time slots for network control traffic in a basic Qbv cycle;
[0055] [Fig.3] illustrates an allocation of time slots for different TSN flows in a Qbv cycle of fixed duration, according to one embodiment of the invention;
[0056] [Fig.4a] illustrates an example of time slot allocation in a TSN network consisting of three access switches, according to an embodiment of the invention;
[0057] [Fig. 4b] illustrates an example of changing the distribution of time slots according to the load of each access switch, according to an embodiment of the invention;
[0058] [Fig.5] is a flowchart of the steps in the process of reconfiguring the flow transmission planning, according to one embodiment of the invention;
[0059] [Fig.6] is a flowchart of the steps in the process for recovering available time slots not used by other access switches, according to one embodiment of the invention;
[0060] [Fig.7] illustrates a TSN network environment according to a centralized IEEE 802.1 Qcc approach, allowing the implementation of the method of the invention;
[0061] [Fig. 8] is a flowchart illustrating, in a centralized network environment, different stages of the process of reserving network resources for new flows, according to one embodiment of the invention; and
[0062] [Fig.9] illustrates a TSN network environment according to an IEEE 802.1 Qcc distributed approach, allowing the implementation of the method of the invention.
[0063] Detailed description of the invention
[0064] The general principle of the invention for proposing a dynamic configuration architecture for frame transmission scheduling at the TSN switch level is based on an approach that allows deciding to allocate or to free up time slots for flows, in a fast and dynamic way.
[0065] It should be noted that the expressions 'time range', 'time slot', 'time slots' are used interchangeably to refer to a duration of allocation of temporal resources.
[0066] The detailed description is provided for a deterministic TSN network environment according to the IEEE 802.1 standard and associated standards. In this description, various terms used with acronyms such as Qbv, Qcc, AS, etc., should be understood as referring to the corresponding term within the IEEE 802.1 standard. For example, the Qbv cycle refers to the cycle as defined by the IEEE 802.1 Qbv standard.
[0067] In order for the planning to ensure the bounded latencies required in the context of deterministic networks, all TSN switches as well as terminals connected to a TSN network are considered to be perfectly synchronized with each other, in particular by following the IEEE 802.1 AS standard.
[0068] In the aforementioned literature, the duration of the Qbv cycle, called "hyper-period", is in principle determined from the periods of the periodic critical fluxes (the lcm), which greatly complicates the insertion of new fluxes into a rotating cycle.
[0069] In the present invention, the duration of a Qbv cycle is taken as a fixed duration, which can correspond either to the smallest period value among the periods of the critical fluxes received at the start of the system, or to the greatest common divisor (GCD) of all the periods of the critical fluxes.
[0070] To allocate a time slot to a given flow, the invention's process searches for an available time slot across the entire Qbv cycle and allocates it, reserving it for that flow. This approach thus reduces the complexity of time slot allocation.
[0071] Since the flows do not necessarily have the same period, the process can handle flows whose period coincides with the cycle duration, and the time slot allocated to this type of flow is then entirely contained within the cycle duration Qbv. The process also allows the processing of flows whose period is a multiple of the cycle duration, and the time slot allocated to this type of flow is then distributed over several cycles. By For example, for a flow whose period is twice the cycle duration, a time slot reserved for this type of flow will be used every other cycle.
[0072] The TSN network topology for implementing the invention is considered to comprise two categories of TSN switches: (i) access switches, which are TSN switches directly connected to terminals using the network (providing and / or receiving a flow); and (ii) core switches, which are TSN switches whose role is to route and transfer flows between access switches and a final switch connected to a terminal receiving a flow. The method of the present invention operates only for access switches to limit the allocation of time slots on these switches, as they are the entry point for flows into the TSN network. The method does not allocate time slots on the core switches, as they only route flows from the access switches, applying the flow allocation determined at the access switch level.
[0073] The TSN standard requires that a set of dedicated time slots be reserved for network control traffic exchanged between switches. The method of the invention, before allocating time slots among the access switches for data flows, reserves a set of "control time slots" for network control traffic (e.g., IEEE 802.1 AS time synchronization messages, LLDP topology discovery messages, etc.). Figure 2 illustrates the reservation of two control time slots within the set of time slots in a cycle.
[0074] The time slot allocation method of the invention will make it possible to determine, among the time slots not reserved for network control traffic, a distribution of time slots to be allocated to different flows which may have different periods.
[0075] Figure 3 illustrates the allocation of time slots for different TSN streams in a fixed-duration Qbv cycle according to the invention. In this simplified example, the cycle is taken with a fixed duration of 1 ms, a first stream 'f1' taken with a period of 1 ms, a second stream 'f2' and a third stream 'f3' each having a period of 3 ms. The stream f1 then needs a time slot every cycle, and streams f2 and f3 need a time slot every three cycles.
[0076] In order to optimize resource allocation and utilization, in one embodiment, the method of the invention associates a parameter designated by "phase" with the time slot. This parameter identifies unused time slots and distributes them across multiple streams. Thus, as illustrated in Figure 3, since time slot 'n' is not used (phase '2'), it can be allocated to stream f2 in phase '0' and to stream f3 in phase '1'.
[0077] Reserving time slots for a given flow depends on the route the flow takes, i.e., the different TSNs it traverses, and the availability of time slots on each visited TSN. Therefore, as the network topology grows, the complexity of a time slot reservation algorithm increases. The algorithm must be able to find an available time slot on each visited switch and also respect the flow's latency constraints. Furthermore, if the algorithm needs to reassign some time slots (already allocated to other existing flows) so that a new flow has the appropriate time slot, it must be able to verify the impact of this reassignment on the schedules of the other switches.
[0078] Advantageously, the method of the present invention allows these constraints to be met while reducing the complexity of the reservation algorithm. To this end, as already mentioned, the cycle time for operating the algorithm is considered fixed and the same for all TSN switches, and each cycle is divided into an equal number of time slots. The duration of a time slot is taken to be equal to the time required to send the smallest frame of a stream; i.e., for an Ethernet stream, a time slot will be equal to the duration of a 64-byte frame. Therefore, for an Ethernet stream with 100-byte frames, the algorithm operated by the method of the invention will reserve two time slots in each cycle for this stream.
[0079] The main idea is to distribute the time slots (excluding those reserved for the control flow) of a given cycle among all the TSN access switches.
[0080] Figure 4a illustrates an example of time slot allocation according to an embodiment of the invention, in a TSN network consisting of three TSN access switches (S1, S2, S3). A receiving terminal L1 connected to the network subscribes to four transmitting terminals (T1, T2, T3, T4) also connected to the network. The receiving terminal receives streams from each transmitter via different paths, with the streams passing through different switches. As illustrated, a stream f1_T1 transmitted by transmitter T1 is sent to the receiver L1 via switches S1 and S3, a stream f2_T2 transmitted by transmitter T2 is sent to the receiver L1 via switches S2 and S3, a stream f3_T3 transmitted by transmitter T3 is sent to the receiver L1 via switches S2 and S3, and a stream f4_T4 transmitted by transmitter T4 is sent to the receiver L1 via switch S3.This configuration can lead to a situation where the four streams can "compete" for access to the egress port of switch S3 which delivers the streams to the receiving terminal L1, and where they can interfere with each other.
[0081] The application of the invention's method allows for the control of transmissions at the output port level of switch S3, i.e., at the GCL management level, with time slots allocated among all three switches S1, S2, and S3. The allocation of time slots for the outgoing f1_T1 flow from T1 to S1 consists of finding, at switch S1, an available slot in the cycle from among the slots allocated to switch S1. Similarly, the allocation of time slots for the outgoing f2_T2 flow from T2 to S2 and the outgoing f3_T3 flow from T3 to S2 consists of finding, at switch S2, available slots in the cycle from among the slots allocated to switch S2. The same applies to the f4-T4 flow from T4 to S3, where the allocation of time slots consists of finding, at the level of switch S3, an available time slot in the cycle among the slots allocated to switch S3.
[0082] Advantageously, there is no longer any need to analyze or verify the availability of time slots in all the network switches along the path of a flow. It is sufficient to find an available time slot at an output port of the access switch receiving this flow (the first switch to which a flow from a sender arrives).
[0083] Furthermore, the allocation of time slots within each switch depends on the load of each switch in terms of the number of flows passing through its output port. Thus, the gauge is dynamic; the number of time slots allocated to a given TSN access switch can vary depending on the number of flows passing through that switch.
[0084] The time slot allocation method of the invention allows for a dynamic distribution of time slots between the different access switches of the network, depending on the number of flows that pass through each switch.
[0085] Figure 4b illustrates a change in the allocation of time slots based on the load of each switch, taking into account the number of flows associated with each switch. In this simplified example, switch S1 carries a single flow f1_T1, and switch S2 carries three flows: the f2_T2 flow emitted by terminal T2, the f3_T3 flow emitted by terminal T3, and the f5_T3 flow emitted by terminal T3. In this configuration, more flows pass through switch S2 than through switch S1. In such a scenario, the method of the invention allows switch S2 to retrieve, from the access switch S3 (the output switch to the destination L1), time slots not used by switch S1, in order to allocate them to a flow on switch S2.This is illustrated at the S3 switch level, by the f5_T3 flow appearing in the range of time slots allocated to the S1 switch.
[0086] Figure 5 is a flowchart of the steps in the 500 time slot allocation process according to one embodiment of the invention. The steps are applied in a deterministic TSN-type network composed of a plurality of TSN switches grouping SWi access switches and core network switches. The network is used by a plurality of transmitting terminals (Speakers) to send data streams to receiving terminals (Listeners) via access switches and optionally core network switches according to a transmission schedule predefined by a time scheduler designed to separate communication on the network into repeated time cycles of fixed length. The streams may include streams of different priorities, critical streams, and non-critical streams.
[0087] The process that allows for a reconfiguration of the flow transmission schedule includes steps consisting of:
[0088] Step 502: Receive requests to admit new incoming flows (ST-i, STi, ...ST n ) in the network. The process can operate sequentially upon receipt of a new request to add one or more streams, operate after a waiting period for the receipt of several requests, or operate upon receipt of a group of requests.
[0089] In an embodiment of receiving several new flows, the process can determine the priority of the flows and operate according to the priority level of these flows, processing the highest priority flow first.
[0090] After receiving requests, the process moves to the next step.
[0091] Step 504: The process allows the output port P to be identified for a new STi flow. k in the SWj access switch coupled to the terminal sending this flow, which will send this new STi flow into the network.
[0092] Step 506: Retrieve the current transmission scheduling configuration for the SWj access switch and determine if there is a schedule in progress at the P output port. k ?
[0093] If so, the process proceeds to step 510 to determine if, among all the time slots assigned to this access switch SWj, there are any time slots available for the STi flow.
[0094] Returning to step 506, if there is no ongoing planning for the P output port k The process allows for the generation of a new plan that takes into account the new STi flow.
[0095] Step 508: The process performs a first level of allocation of time slots for all access switches in the network.
[0096] In one embodiment, step 508 includes steps consisting of:
[0097] determine the number of access switches in the TSN network;
[0098] Retrieve a predefined value or calculate a value to determine a fixed reference duration for a Qbv cycle. The reference duration is a fixed value, which can either correspond to the smallest period value among the periods of the critical flows received at system startup, or correspond to the greatest common divisor of all periods of critical flows;
[0099] divide the fixed reference duration into a plurality of equal time slots, the duration of a time slot being equal to the time required to send the smallest frame of a stream among the existing streams; and
[0100] allocate, over a fixed reference period, to each access switch a number of time slots necessary for its transmission from among the plurality of time slots, the number of time slots allocated to each access switch depending on the number of existing flows passing through each access switch.
[0101] The expression "a number of time slots necessary for its transmission" means one or more time slots on a cycle.
[0102] In one embodiment, before allocating time slots to the access switches, the method allows one or more time slots to be reserved at the beginning of the cycle for control flows for network control traffic. The step of allocating a number of time slots to each access switch is then performed from among the remaining time slots.
[0103] After allocating time slots to all access switches, the process proceeds to step 510, determining whether among all the time slots assigned to access switch SWj, there are still time slots available for the STi flow.
[0104] Step 512: If not, that is, if no time slot is available for the STi flow among the set of time slots assigned to the access switch SWj, the process allows the new STi flow to be added to a list of flows without time slot assignment.
[0105] Step 514: If yes, that is, if there is at least one time slot available for the new STi flow among all the time slots allocated to the access switch SWj, the process proceeds to a second level of allocation to reserve the number of time slots required to transmit the entire STi flow (relative to the period of the flow).
[0106] This second allocation level for a new stream also determines, based on the length of the stream frames, whether a time slot needs to be reserved for each cycle or across different cycles. In one embodiment, the process uses the aforementioned 'phase' parameter, illustrated in Figure 3, to identify the distribution of the stream over one or more cycles.
[0107] Step 516: When the allocation of the time slot(s) for the new STi flow is complete, the process iterates steps 504 to 514 to process a new time slot allocation request for a new flow.
[0108] Step 518: When all requests are processed with or without allocation of time slots for each flow, the main allocation process ends.
[0109] Once all requests received for new flows have been processed (according to process 500 illustrated by Figure 5), a complementary process 600 allows the list of flows that have not received time slots to be processed (these flows having been added to this list in step 512).
[0110] Figure 6 is a flowchart of the steps of process 600 to handle flows that have not been assigned to time slots by the initial allocation process 500. Process 600 will allow to recover, if any exist, time slots not used by other access switches and which are then available, and allow to reallocate them to all or some of the flows in the list of flows without assignment.
[0111] In one embodiment, the process allows for the reallocation of unused time slots to priority flows from the list of unassigned flows.
[0112] Method 600 aims to identify, within the sets of time slots associated with other switches, those that are not in use. If unused time slots are identified, the method allows, in one embodiment, for reserving them for high-priority flows and associating these time slots respectively with each access switch used by these priority flows.
[0113] As illustrated in Figure 6, a first step 602 consists of retrieving the list of unassigned flows STi, (i=m, ..., n), and retrieving the reservation list of time slots after the first allocation with the occupancy status of the time slots on the cycles.
[0114] In a subsequent step 604, the process which operates iteratively to process each unassigned flow in the list, makes it possible to identify for the STi flow which is being processed, the first access switch SWj on the routing path of the STi flow.
[0115] In a subsequent step 606, the process determines whether there is at least one available time slot (or one phase of an available time slot if the flow to be added has a period of more than one cycle time, this distinction not being repeated later) in all the other SW switches t , t + j, excluding the first identified access switch SWj.
[0116] If there is at least one available time slot (yes branch of 606), the process allows step 608 to reserve this time slot for the processed Sti flow, and to associate it with the first identified SWj switch.
[0117] Then, in the next step (622), the process finalizes the request to add the stream and proceeds to process the next stream from the list of unassigned streams. In this step (622), the list of unassigned streams and the list of reserved time slots with their occupancy status are updated.
[0118] Returning to step 606, if at least one available time slot has not been identified in all other access switches or if the number of remaining available slots does not allow the entire flow to be transmitted (branch not), the process makes it possible to determine in the next step 610 whether the analyzed STi flow is a critical flow, in the sense of TSN critical flows.
[0119] If it is not a critical flow (branch not of 610), the process allows the request to add the STi flow to be rejected at the next step 618, then loops back to process a next flow, with the list of unassigned flows being updated.
[0120] If it is a critical flow (yes branch of 610), the process allows the next step 612 to regain the priority of the existing ST flows k (k=0, ..., m-1 ), to check (steps 614, 616) if the priority of the analyzed flow STi is greater than that of at least one of the other flows that have time slots?
[0121] If the priority of the analyzed STi flow is lower than that of the existing flows (non-branch of 614), the process allows the request to be rejected (step 618). adding the analyzed ST flow i; then loops back to process the next stream, with the list of unassigned streams being updated.
[0122] If the priority of the analyzed flow STi is higher than the priority of an existing flow Stk (yes branch of 614), the process continues to step 620, which consists of: - Free up the time slot already allocated to the ST flow k whose priority is lower than that of the STi stream currently being processed; - Allocate the freed-up time slot to the STi stream currently being processed; and - Associate the time slot allocated to the STi flow with the first access switch SWj identified on the routing path of the STi flow.
[0123] The process then allows the next step, 622, to finalize the request to add this new flow, and loops back to process the next flow. In this step, the list of unassigned flows and the list of reserved time slots with their occupancy status are updated.
[0124] When all requests to add new flows have been processed, either by the single flow allocation process 500 (if time slots have been allocated to all flows), or with the complementary process 600 (to process flows from the list of unassigned flows), the TSN network has a new flow transmission schedule that complies with the specifications of the IEEE 802.1 standard.
[0125] The detailed description focused on managing the allocation of time slots when a new flow appears. However, in the applications relevant to the method of the invention, the flows can be dynamic, in that a flow can appear or disappear.
[0126] The disappearance of a flow will release a time slot previously allocated to it. The flow disappearance event can be handled by the application itself sending a "Leave request" or by the access switch, which identifies that the time slot associated with that flow has not been used for several cycles (for example, after 4 cycles, if no transmission has occurred for a given time slot, the access switch may issue a "Leave request"). Once the disappearance request is received, it is processed to release the corresponding time slot, which then becomes available for a new flow.
[0127] In terms of implementation, a time slot allocation consists of a new entry in a Gate Control List (GCL) to open a gate to the queue to which the new flow is assigned in that time slot. Advantageously, the time slot allocation performed by the method of the invention is done without changing the transmission cycle duration Qbv.
[0128] The allocation of time slots between access switches is as follows: in a switch SWj, all gates in all queues are closed when its time slots are reserved for another switch SW k This ensures exclusivity of time slots for each of the access switches.
[0129] In one embodiment, the update of the operational GCL configuration is done at the end of the current cycle in order to limit a latency variation problem that the current flows could experience.
[0130] It is important to note that the cycle time (Qbv) is defined during the initial phase, when the network starts up and the first flows arrive. To limit the impact that a change in cycle time could have on the performance of critical flows, the cycle time is not changed during the operational phase of the TSN. However, if the network ever reaches a state or a significant percentage where new flow requests are rejected due to a lack of available time slots (for example, 70% of requests are rejected), a complete network reconfiguration can be planned for an appropriate time, during which the cycle time and the entire GCL schedule are reassessed. For example, in a factory scenario, a complete reconfiguration could be planned when the production lines are shut down.
[0131] To ensure the configuration and management of TSN networks, the IEEE 802.1 Qcc standard primarily proposes two approaches: a centralized approach and a distributed approach. The described procedure can be implemented in either of these two configurations.
[0132] Centralized approach:
[0133] The centralized approach provided by the IEEE 802.1 Qcc standard is illustrated in Figure 7, and Figure 8 shows a flowchart of the process steps. reservation of network resources for new flows according to the invention as implemented in a centralized approach.
[0134] All TSN switches on the network are controlled, managed, and configured by a centralized network configuration entity (CNC). Terminals (speakers / listeners) that will use the TSN network provide their traffic characteristics to a centralized user configuration entity (CUC) using third-party software (middleware) such as OPC UA, ROS, and DDS. The CUC's role is to aggregate requests from terminals / applications to use the TSN network and provide them to the CNC. The CNC analyzes these requests while also considering the current capacity of the TSN network. If resource reservations for new traffic are available, the CNC informs the CUC that these terminals / applications can use the network. The CNC can also provide these terminals / applications with a time slot (i.e., when to begin using the network).For example, it can request an application to begin sending its data in x milliseconds. If resource reservation is impossible for certain data streams, the CNC rejects requests associated with those streams. In this approach, the method of the invention can be implemented and deployed at the CNC level.
[0135] Thus, in the first step 802, the CNC receives a request from the CUC to accept 'n' new STi flows. The CNC extracts the flow characteristics, retrieves the network topology and the Qbv configuration (step 804).
[0136] Then in the next step 806, it calculates a routing path for an STi stream to be processed.
[0137] The next step 808 consists of operating the resource allocation process 500 described with reference to Figure 5 and possibly followed by the complementary process 600 described with reference to Figure 6.
[0138] When all flows have been processed (with or without time slot allocation), the CNC allows (step 810) the Qbv configuration to be generated in each switch for the new flows accepted, and then (step 812) the routing rules and Qbv configuration to be broadcast in each switch involved in routing the new flows accepted.
[0139] Finally, the CNC sends (step 814) to the CUC the list of accepted flows and the configuration to be used in the terminal nodes.
[0140] Distributed approach:
[0141] In the case of distributed network management, as illustrated in Figure 9, an initial phase is necessary where the TSN access switches must exchange messages with each other to converge on a time slot allocation. Once convergence is achieved, each access switch allocates a time slot for the new flow from among its associated time slots, and then propagates this information to the TSN core switches so they can incorporate this new reservation.
[0142] Embodiments of the invention have been described which have advantageous features, the main ones being: - A distribution of temporal resources between access switches of a TSN network, which is dynamic and varies according to the number of flows served by each of the access switches. - A process that allows for the rapid reservation of temporal resources in a TSN network for each new flow, in a dynamic manner based on the characteristics of the new flow, without resorting to offline simulation tools or mathematical modeling. - Rapid allocation of time resources done online, as new flows arrive.
Claims
26 Claims: A method for dynamically reconfiguring a data flow transmission schedule in a time-sensitive deterministic network, where the data flows are transmitted from sending terminals to receiving terminals via switches comprising access switches (SWj) coupled to the sending and receiving terminals and core network switches to route the flows between the access switches, the switches being configured to apply flow transmission cycles according to a flow transmission schedule defined by a time scheduler, the method being computer-implemented and comprising the steps of: - receive at least one request to add a new STi flow to the network, the new flow having to be sent from a sending terminal to an access switch SWj; - determine if a flow transmission schedule is in progress for said access switch SWj by: - identifying an output port Pk of said access switch SWj to emit the new flow into the network; - retrieving the current transmission scheduling configuration for said Pk output port; and - determining whether a flow transmission schedule is in progress on said output port P k ; if a flow transmission schedule is in progress, determine if there are enough available time slots to transmit the new flow through the SWj access switch according to the current schedule; or - if there is no current flow transmission schedule: calculate a new flow transmission schedule such that: the transmission cycle duration is the same for all switches in the network; each transmission cycle has the same number of time slots for transmitting flows; the time slots of a given cycle are distributed among all access switches in the network; and determine for the access switch SWj whether there are enough available time slots, among the number of time slots allocated to it, to transmit the new flow, according to the new schedule; and - allocate to said new flow the time slots necessary for its transmission, if there are sufficient time slots available to transmit this new flow through the access switch SWj according to the current schedule or according to the new schedule. The method according to claim 1, wherein the step of calculating a new flow transmission schedule comprises steps consisting of: - determine the number of access switches in the network; - retrieve a predefined value or calculate a value for a fixed reference duration for a transmission cycle; - divide the fixed reference duration into a plurality of equal time slots, the duration of a time slot being equal to the time required to send the smallest frame of a stream among the existing streams; and - to allocate, over a fixed reference duration, to each access switch a number of time slots from among the plurality of time slots, the number of time slots allocated to each access switch depending on the number of existing flows passing through each access switch. The method according to claim 2 wherein the predefined or calculated value of the fixed reference duration corresponds either to the smallest period value among the critical flow periods received at system startup, or to the largest common divisor of all critical flow periods among the existing flows. The method according to any one of claims 1 to 3 comprising, prior to the time slot allocation step for a new flow, a step consisting of reserving one or more control time slots for network control traffic. The method according to any one of claims 1 to 4 comprises, after the step of determining whether there are sufficient time slots available to transmit the new flow through the access switch SWj according to the current schedule or according to the new schedule, a step of adding the new flow to a flow list without allocating time slots, if there are not sufficient time slots available to transmit the new flow.The method according to claim 5 further comprises steps for processing the list of unassigned flows, said steps consisting of searching for an unassigned flow to determine whether there are unused time slots on access switches other than the one receiving said unassigned flow, and if so, steps for allocating at least one of said unused time slots to said unassigned flow according to the priority of said unassigned flow. The method according to claim 6 further comprises, if there are no unused time slots on access switches other than the one receiving said unassigned flow, steps for determining whether said flow has a higher priority than an existing flow, and if so, steps for freeing up time slots from an existing flow of lower priority to allocate them to said unassigned flow.A computer program product, said computer program comprising code instructions for carrying out the steps of the process according to any one of claims 1 to 7, when said program is executed on a computer. 29 A device for dynamically reconfiguring a data flow transmission schedule in a time-sensitive deterministic network, the data flows being sent from sending terminals to receiving terminals via switches grouping access switches SWj coupled to the sending and receiving terminals, and core network switches to route the flows between the access switches, the switches being configured to apply flow transmission cycles according to a flow transmission schedule defined by a time scheduler, the device comprising means for implementing the steps of the method according to any one of claims 1 to 7. Use of the device according to claim 9 in a time-sensitive network implementing a centralized network architecture, in particular an architecture according to the so-called "Software Defined Network" model.Use of the device according to claim 9 in a time-sensitive network implementing a distributed network architecture. Use of the device according to any one of claims 9 to 11 in a deterministic time-sensitive network (TSN) implementing the specifications of the IEEE 802.1 standard.
