System and method for seamless reset for seamless redundancy in TSN / DetNet
By using explicit notification flags and a new linear sequence number space, the method addresses unnecessary packet drops in TSN and DetNet networks, ensuring seamless redundancy and enabling cloud-ready FRER/PREF functionality.
Patent Information
- Application Number
- JP2022554823
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-03-13
- Filing Date
- 2021-03-12
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2041-03-12
AI Technical Summary
Current TSN and DetNet networks face challenges with unnecessary packet drops and difficulties in seamless redundancy due to frequent resets of sequence generation functions, especially in cloud environments, where FRER/PREF functionality is not adequately adapted to handle frequent changes and requires improved failure detection and adaptation.
Implementing a method that includes explicit notification of reset events through flags in the R-TAG and introducing a new linear initial sequence number space to manage sequence number generation, ensuring seamless redundancy and minimizing packet drops by using a combination of 'SeqResetFlag' and 'InitSeqFlag' to handle resets effectively.
The solution provides seamless reset for sequence number generation, enabling faster adaptation to network failures and preventing unnecessary packet drops, thereby supporting cloud-based implementations of FRER/PREF functionality.
Smart Images

Figure 0007572445000001 
Figure 0007572445000002 
Figure 0007572445000003
Abstract
Description
[Technical field]
[0001] Related Applications This application claims the benefit of Provisional Patent Application No. 62 / 989,340, filed March 13, 2020, the entire disclosure of which is incorporated herein by reference.
[0002] The present disclosure relates to Time Sensitive Networking (TSN) and Deterministic Networking (DetNet), and more particularly to frame or packet duplication and elimination in TSN or DetNet networks. [Background technology]
[0003] Time Sensitive Networking (TSN) is currently being developed at the Institute of Electrical and Electronics Engineers (IEEE) as a new technology that extends the IEEE 802.1 and IEEE 802.3 Ethernet standards to an entirely new level of determinism. Time Sensitive Networking (TSN) can be seen as an evolution of Ethernet to ensure low end-to-end latency, low jitter, and low packet loss.
[0004] The TSN Task Group (TG) within the IEEE 802.1 Working Group (WG) addresses deterministic services over IEEE 802 networks. The TSN TG specifies the tools in the TSN toolbox as well as the use of the tools for specific purposes. The TSN TG is authorized to provide deterministic services over IEEE 802 networks with: Guaranteed packet transport, Low packet loss, Bounded low latency, and Low packet delay variation.
[0005] To achieve extremely low packet loss, the TSN TG specified Frame Replication and Elimination for Reliability (FRER) (802.1CB), targeted at avoiding frame loss due to equipment failures. FRER is actually a 1+1 (or 1+n) per-frame redundancy function. There is no built-in failure detection / switching. FRER sends frames on two (or more) maximally disjoint paths, then combines the streams and drops the redundant frames.
[0006] It should be noted that to simplify implementation and allow the use of the same concepts in both Layer 2 (TSN) and Layer 3 (DetNet) networks, the same functionality as the Packet Replication and Elimination Function (PREF) is defined for Deterministic Networking (DetNet) networks. In the description provided herein, the focus is on the FRER.
[0007] It should be noted that according to IEEE 802.1CB, "...this standard specifies Frame Replication and Removal for Reliability (FRER), which splits a stream into one or more linked member streams, thus making the original stream into a composite stream. FRER replicates packets of the stream, splits the copies into multiple member streams, and then recombines the member streams at one or more other points, removes the replication, and delivers the reconstructed stream from those points."
[0008] The elimination function evaluates the "sequence_number" sub-parameter of packets of one or more member streams passed up from the lower layer to discard duplicate packets. A "SequenceHistory" variable maintains a history of the "sequence_number" sub-parameter of recently received packets. During duplicate elimination, the "sequence_number" is checked against the history window (specified by "frerSeqRcvyHistoryLength"). Packets that are outside the history window are discarded as invalid. Under normal operation, a received packet is within the history window and only duplicates are dropped.
[0009] IEEE 802.1CB specifies a timeout mechanism for the removal function to address some networking scenarios that result in frames being dropped unnecessarily (e.g., when the removal function somehow becomes out of sync with its corresponding sequence generation function, when the sequence generation function is reset, etc.). When a timeout occurs, the history is reset and the recovery algorithm is allowed to accept the next packet, regardless of the value of the "sequence_number" subparameter (see "TakeAny" in 7.4.3.2.6 of IEEE 802.1CB). Summary of the Invention
[0010] Disclosed herein are systems and methods for seamless reset for seamless redundancy, for example, of a Time Sensitive Networking (TSN) network or a Deterministic Networking (DetNet) network. In one embodiment, a method implemented by a transmitting node for packet or frame duplication includes determining that a sequence generation function at the transmitting node has been reset. The method further includes, in response to determining that a sequence generation function at the transmitting node has been reset, transmitting a first plurality of packets in a stream of packets via at least two independent paths through the network, (a) each of the first plurality of packets comprising a respective sequence number from a linear sequence number space, and (b) at least a first packet from among the first plurality of packets sent after the reset further comprising an explicit indicator of the reset. The method further includes determining that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled. The method further includes, in response to determining that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled, transmitting a second plurality of packets in the stream of packets over at least two independent paths through the network, where each of the second plurality of packets comprises a respective sequence number of the cyclic sequence number space. In this manner, a seamless reset for sequence number generation is provided.
[0011] In one embodiment, each of the first plurality of packets further comprises an explicit indication that a linear sequence number space is being used.
[0012] In one embodiment, the network is a TSN network.
[0013] In one embodiment, the method further includes resetting the sequence generation function, where resetting the sequence generation function includes resetting the sequence number history, the history window, or both the sequence number history and the history window.
[0014] In one embodiment, the steps of determining that a sequence generation function at the transmitting node has been reset, transmitting a first plurality of packets in the stream of packets, determining that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled, and transmitting a second plurality of packets in the stream of packets are performed by a frame replication and elimination for reliability (FRER) function of the transmitting node.
[0015] In one embodiment, the network is a DetNet network. In one embodiment, the steps of determining that a sequence generation function at the sending node has been reset, transmitting a first plurality of packets in the stream of packets, determining that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled, and transmitting a second plurality of packets in the stream of packets are performed by a packet replication and removal function (PRER) of the sending node.
[0016] Corresponding embodiments of a sending node are also disclosed. In one embodiment, a sending node for packet or frame duplication is adapted to determine that a sequence generation function at the sending node has been reset. The sending node is further adapted to, in response to determining that a sequence generation function at the sending node has been reset, send a first plurality of packets in a stream of packets via at least two independent paths through the network, (a) each of the first plurality of packets comprising a respective sequence number from a linear sequence number space, and (b) at least a first packet from among the first plurality of packets sent after the reset further comprises an explicit indicator of the reset. The transmitting node is further adapted to determine that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled, and in response to determining that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled, transmit a second plurality of packets in the stream of packets via at least two independent paths through the network, (a) each of the second plurality of packets comprising a respective sequence number of the cyclic sequence number space.
[0017] In one embodiment, a transmitting node for packet or frame duplication comprises a network interface and a processing circuit associated with the network interface. The processing circuit is configured to cause the transmitting node to determine that a sequence generation function at the transmitting node has been reset. The processing circuit is further configured to cause the transmitting node, in response to determining that the sequence generation function at the transmitting node has been reset, to transmit a first plurality of packets in the stream of packets via at least two independent paths through the network, (a) each of the first plurality of packets comprising a respective sequence number from a linear sequence number space, and (b) at least a first packet from among the first plurality of packets sent after the reset further comprises an explicit indicator of the reset. The processing circuitry is further configured to cause the transmitting node to determine that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled, and in response to determining that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled, to transmit a second plurality of packets in the stream of packets via at least two independent paths through the network, (a) each of the second plurality of packets comprising a respective sequence number of the cyclic sequence number space.
[0018] In one embodiment, a method implemented by a transmitting node for packet or frame duplication includes obtaining a packet to be sent and determining that the packet does not comprise a tag indicating that the packet has already been duplicated. The method further includes, in response to determining that the packet does not comprise a tag indicating that the packet has already been duplicated, determining that a linear sequence number space should be used, and in response, enabling an explicit indication in the packet indicating that the linear sequence number space is being used, adding a sequence number from the linear sequence number space to the packet, and adding a tag to the packet indicating that the packet has been duplicated. The method includes providing the packet for duplication and transmission.
[0019] In one embodiment, the method further includes, in response to determining that the packet does not include a tag indicating that the packet has already been duplicated, determining that a sequence generation function at the transmitting node has been reset, and, in response to determining that the sequence generation function at the transmitting node has been reset, enabling an explicit indication in the packet indicating that the sequence generation function has been reset or disabling an explicit indication in the packet indicating that the sequence generation function has been reset.
[0020] In one embodiment, the method further includes incrementing a sequence number from the linear sequence number space in response to determining that the linear sequence number space should be used.
[0021] In one embodiment, the method further includes repeating the method for a number of additional packets until the linear sequence number space is exhausted or the use of the linear sequence number space is disabled. In one embodiment, the method further includes obtaining a further packet to be sent after the linear sequence number space is exhausted or the use of the linear sequence number space is disabled, and determining that the further packet does not comprise a tag indicating that the further packet has already been duplicated. In response to determining that the further packet does not comprise a tag indicating that the further packet has already been duplicated, the method further includes determining that a cyclic sequence number space should be used rather than a linear sequence number space, and in response to determining that a cyclic sequence number space should be used, disabling an explicit indication in the further packet indicating that the linear sequence number space is being used, and adding a sequence number from the cyclic sequence number space to the further packet, and adding a tag to the further packet indicating that the further packet has been duplicated. The method further includes providing the further packet for duplication and transmission.
[0022] In one embodiment, the method further includes, in response to determining that the further packet does not include a tag indicating that the further packet has already been duplicated, determining whether a sequence generation function at the transmitting node has been reset, and, in response to determining that the sequence generation function at the transmitting node has been reset, enabling an explicit indication in the further packet indicating that the sequence generation function has been reset or disabling an explicit indication in the further packet indicating that the sequence generation function has been reset.
[0023] Corresponding embodiments of a transmitting node are also disclosed. In one embodiment, a transmitting node for packet or frame duplication is adapted to obtain a packet to be sent and determine that the packet does not comprise a tag indicating that the packet has already been duplicated. The transmitting node is further adapted to determine that a linear sequence number space should be used in response to determining that the packet does not comprise a tag indicating that the packet has already been duplicated. The transmitting node is further adapted to enable an explicit indication in the packet indicating that the linear sequence number space is being used and to add a sequence number from the linear sequence number space to the packet in response to determining that the linear sequence number space should be used. The transmitting node is further adapted to add a tag to the packet indicating that the packet has been duplicated and to provide the packet for duplication and transmission.
[0024] In one embodiment, a transmitting node for packet or frame duplication comprises a network interface and a processing circuit associated with the network interface. The processing circuit is configured to cause the transmitting node to obtain a packet to be sent and determine that the packet does not comprise a tag indicating that the packet has already been duplicated. The processing circuit is further configured to cause the transmitting node to determine that a linear sequence number space should be used in response to determining that the packet does not comprise a tag indicating that the packet has already been duplicated. The processing circuit is further configured to cause the transmitting node to enable an explicit indication in the packet indicating that a linear sequence number space is being used and to add a sequence number from the linear sequence number space to the packet in response to determining that the linear sequence number space should be used. The processing circuit is further configured to cause the transmitting node to add a tag to the packet indicating that the packet has been duplicated and to provide the packet for duplication and transmission.
[0025] In one embodiment, a method implemented by a receiving node for packet or frame removal includes receiving a packet from one of a plurality of replicated streams traversing independent paths through a network from a transmitting node to a receiving node, the packet comprising a sequence number. The method further includes determining that the packet comprises an explicit indication that a linear sequence number space is being used rather than a cyclic sequence number space, determining whether the packet comprises an explicit indication that a sequence generation function at the transmitting node has been reset, and determining whether the sequence number of the packet is outside a reset ignore range (iRIR) associated with use of the linear sequence number space. The method further includes accepting the packet in response to determining that the packet comprises an explicit indication that a linear sequence number space is being used and determining that the packet comprises an explicit indication that a sequence generation function at the transmitting node has been reset and the sequence number of the packet is outside the iRIR.
[0026] In one embodiment, the method further includes updating a history window and a history associated with the linear sequence number space based on the sequence number of the packet in response to determining that the packet comprises an explicit indication that the linear sequence number space is being used and determining that the packet comprises an explicit indication that a sequence generation function at the sending node has been reset and the sequence number of the packet is outside the iRIR.
[0027] In one embodiment, the method further includes, upon determining that the packet comprises an explicit indication that the linear sequence number space is being used and determining that the packet either does not comprise an explicit indication that the sequence generation function at the sending node has been reset or the sequence number of the packet is not outside the iRIR, determining whether the sequence number of the packet is within a history window (iHSW) associated with use of the linear sequence number space, determining whether the sequence number of the packet is already in a history associated with use of the linear sequence number space comprising sequence numbers from the linear sequence number space that have already been received, and accepting the packet in response to determining that the sequence number of the packet is within the iHSW and determining that the sequence number of the packet is not already in the history. In one embodiment, the method further includes discarding the packet in response to determining that the sequence number of the packet is within the iHSW and determining that the sequence number of the packet is already in the history. In one embodiment, the method further includes updating the iHSW and the history associated with the linear sequence number space based on the sequence number of the packet in response to determining that the sequence number of the packet is within the iHSW and determining that the sequence number of the packet is not already in the history.
[0028] Corresponding embodiments of a receiving node are also disclosed. In one embodiment, a receiving node for packet or frame removal is adapted to receive a packet from one of a plurality of replicated streams traversing independent paths through a network from a transmitting node to a receiving node, the packet comprising a sequence number. The receiving node is further adapted to determine that the packet comprises an explicit indication that a linear sequence number space is being used rather than a cyclic sequence number space, determine whether the packet comprises an explicit indication that a sequence generation function at the transmitting node has been reset, and determine whether the sequence number of the packet is outside a reset ignore range (iRIR) associated with the use of the linear sequence number space. The receiving node is further adapted to accept the packet in response to determining that the packet comprises an explicit indication that a linear sequence number space is being used and determining that the packet comprises an explicit indication that a sequence generation function at the transmitting node has been reset and that the sequence number of the packet is outside the iRIR.
[0029] In one embodiment, a receiving node for packet or frame removal comprises a network interface and a processing circuit associated with the network interface. The processing circuit is configured to cause the receiving node to receive a packet from one of a plurality of replicated streams traversing independent paths through the network from the transmitting node to the receiving node, the packet comprising a sequence number. The processing circuit is further configured to cause the receiving node to determine that the packet comprises an explicit indication that a linear sequence number space is being used rather than a cyclic sequence number space, determine whether the packet comprises an explicit indication that a sequence generation function at the transmitting node has been reset, and determine whether the sequence number of the packet is outside a reset ignore range (iRIR) associated with the use of the linear sequence number space. The processing circuit is further configured to cause the receiving node to accept the packet in response to determining that the packet comprises an explicit indication that a linear sequence number space is being used and determining that the packet comprises an explicit indication that a sequence generation function at the transmitting node has been reset and that the sequence number of the packet is outside the iRIR.
[0030] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate several aspects of the present disclosure and, together with the description, serve to explain the principles of the disclosure. [Brief description of the drawings]
[0031] [Figure 1] FIG. 1 illustrates a cloud-based scenario requiring improved Frame Replication and Removal (FRER) functionality for reliability. [Diagram 2] FIG. 1 illustrates the range of the IEEE 802.1CB-2017 cyclic sequence number space utilized herein for analysis of packet drop probability. [Diagram 3]FIG. 1 illustrates a system including a transmitting (TX) node and a receiving (RX) node that provide a FRER according to an embodiment of the present disclosure. [Figure 4] FIG. 2 illustrates an example of a relationship between a new (linear) sequence number space and an original (cyclic) sequence number space utilized for FRER, according to an embodiment of the present disclosure. [Diagram 5] FIG. 13 is a state diagram for a duplication function in a TX node according to one embodiment of the present disclosure. [Figure 6] 13 is a flowchart illustrating the operation of a replication function in a TX node according to one embodiment of the present disclosure. [Figure 7] 13 is a flowchart illustrating the operation of a replication function in a TX node according to another embodiment of the present disclosure. [Figure 8] FIG. 11 is a state diagram for a removal function in an RX node according to one embodiment of the present disclosure. [Figure 9A] 11 is a flowchart illustrating the operation of a removal function in an RX node according to one embodiment of the present disclosure. [Figure 9B] 11 is a flowchart illustrating the operation of a removal function in an RX node according to one embodiment of the present disclosure. [Figure 10] A diagram showing the R-TAG format in which "SeqResetFlag", "InitSeqFlag", and "new sequence number belonging to linear sequence number space" can be encoded according to IEEE 802.1CB and one embodiment of the present disclosure. [Figure 11] FIG. 2 is a schematic block diagram of a network node. [Figure 12] FIG. 2 is a schematic block diagram of a network node. [Figure 13] FIG. 2 is a schematic block diagram of a network node. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0032] Some of the embodiments contemplated herein will now be described more fully with reference to the accompanying drawings, in which: However, other embodiments are included within the scope of the subject matter disclosed herein, and the disclosed subject matter should not be construed as being limited to only the embodiments described herein, but rather, these embodiments are provided as examples to convey the scope of the subject matter to those skilled in the art.
[0033] The embodiments described below represent information to enable those skilled in the art to practice the embodiments and illustrate the best mode of practicing the embodiments. Upon reading the following description in light of the accompanying drawings, those skilled in the art will understand the concepts of the present disclosure and recognize applications of these concepts not specifically addressed herein. It is to be understood that these concepts and applications fall within the scope of the present disclosure.
[0034] Generally, all terms used herein should be interpreted according to the ordinary meaning of those terms in the relevant technical field, unless a different meaning is expressly given and / or implied from the context in which the term is used. All references to a / an / the element, apparatus, component, means, step, etc. should be openly interpreted as referring to at least one instance of that element, apparatus, component, means, step, etc., unless expressly stated otherwise. The steps of any method disclosed herein need not be performed in the exact order disclosed, unless a step is expressly described as following or preceding another step, and / or it is implicit that a step must follow or precede another step. Any feature of any of the embodiments disclosed herein may be applied to any other embodiment, wherever appropriate. Similarly, any advantage of any of the embodiments may be applied to any other embodiment, and vice versa. Other objects, features, and advantages of the enclosed embodiments will become apparent from the following description.
[0035] TSN node: As used herein, a Time Sensitive Networking (TSN) node is any network node in a TSN network. Examples of TSN nodes include TSN endpoints and TSN bridges.
[0036] Currently, there exists a challenge(s) with TSN and deterministic networking (DetNet). The available mechanisms for resetting seamless redundancy functionality involve too many unnecessary packet drops and are not cloud ready. The ultimate goal of seamless redundancy is to avoid packet loss as much as possible. Unnecessary packet drops due to the operation of seamless redundancy mechanisms should be minimized. Furthermore, moving seamless redundancy (e.g., Institute of Electrical and Electronics Engineers (IEEE) 802.1CB) components to a cloud environment creates availability challenges, and thus seamless redundancy functionality is reset much more frequently than in current industrial hardware environments. Therefore, seamless detection and adaptation to scenarios caused by resetting seamless redundancy (e.g., IEEE 802.1CB) functionality is essential.
[0037] Furthermore, the history window and timeout mechanisms described above require good design of the involved parameters. However, these are not a simple task since conflicting requirements must be met. During the history window design, one may try to select a small window size, for example, to protect the removal node resources or to protect against fake packets (security). In contrast, a large window size value is more resistant to network failures and errors. Finding the optimal window size can be a difficult task. Similarly, designing too low a timeout parameter value may cause frequent (and unnecessary) resets of the removal function. On the other hand, a too large timeout parameter value may slow down the recovery after a failure scenario and cause unnecessary networking transients. Furthermore, for bursty (non-constant bit rate (CBR)) streams, using frame replication and elimination for reliability (FRER) makes the above design more difficult or even impossible to find the right balance.
[0038] In our previous PCT patent application WO2021005397A1 (hereinafter referred to as the "'397 application"), an explicit notification solution based on a new flag, namely "SeqResetFlag", included in the R-TAG is described. This flag is set by the replica function when the sequence generation function is reset, so that such an event can be easily recognized by the removal function. For this solution, the focus is on scenarios where frames may be unnecessarily dropped (with high probability) when the sequence generation function is reset. Although this solution provides a much better solution than IEEE802.1CB-2017 when the sequence generation function is reset, this solution cannot fully provide lossless recovery in all cases. This solution may result in some dropped packets after a reset event.
[0039] Certain aspects of the present disclosure and embodiments thereof may provide solutions to the above-mentioned or other problems. Described herein are systems and methods that provide seamless recovery for a sequence number-based seamless redundancy mechanism after a sequence number generation event reset.
[0040] Embodiments of the solution proposed herein target the resolution of scenarios where frames are unnecessarily dropped by the IEEE 802.1CB-2017 function due to a reset of the sequence generation function.
[0041] Aspects of the proposed solution include the following: 1. Explicit notification of the reset event, and 2. Add a new linear initial sequence number space to the existing cyclic sequence number space of IEEE 802.1CB-2017.
[0042] Note that the existing cyclic sequence number space of IEEE 802.1CB-2017 is referred to herein as the "original sequence number space."
[0043] Explicit notification of a reset event is based on a flag contained in the R-TAG, referred to herein as "SeqResetFlag." Use of a new linear initial sequence number space (referred to herein as "InitSeqNumSpace") is referenced via a new flag contained in the R-TAG, referred to herein as "InitSeqFlag." The sequence value of the new number space ("InitSeqNumSpace") is also contained in the R-TAG.
[0044] Although the embodiments described herein focus on FRER in TSN, the solutions proposed herein are also applicable to PREF in DetNet or other seamless redundancy mechanisms based on sequence numbering or equivalent functionality (e.g., provided by timestamps).
[0045] The solution embodiments described herein enable cloudification of seamless redundancy by providing seamless reset for sequence number generation (sequence generation function), e.g., via improvements to the duplication and removal functions of IEEE 802.1CB-2017. In some embodiments, the following aspects are introduced: (1) a new flag for explicit indication of sequence generation function reset, and (2) the use of a new linear initial sequence number space, e.g., to the existing cyclic sequence number space of IEEE 802.1CB-2017. Also, while the description provided herein focuses on FRER as specified in IEEE 802.1CB, the solution described herein is applicable to other seamless redundancy mechanisms based on FRER of TSN, PREF of DetNet, or equivalent functions based on sequence numbering or equivalent functions (e.g., provided by timestamps).
[0046] Various embodiments are proposed herein that address one or more of the problems disclosed herein. Some embodiments may provide one or more of the following technical advantages: The proposed solution embodiments described herein enable seamless redundancy clouding by providing seamless reset for sequence number generation (sequence generation function) via improvements to the IEEE 802.1CB-2017 duplication and elimination functions. These improvements ensure much faster, seamless adaptation to network failure scenarios and protect against unnecessary packet drops when sequence generation is reset.
[0047] The main motivation for these improvements is to enable cloudification, i.e., "cloud-native" implementation of the FRER / Packet Replication and Removal (PREF) function. Today's trend is to move applications towards virtualized environments. This trend has also reached applications used in industrial environments, see for example Edge Computing, Fog Computing. Using FRER / PREF in a cloud-based scenario where the Talker / Listener (source / destination) is moved to the cloud creates many additional challenges for the FRER / PREF function. FRER / PREF is a TSN / DetNet function that belongs to the endpoint, and therefore FRER / PREF must work inside the cloud. For example, FRER / PREF is typically an instance in a controller-cluster (ctrl-cluster) that serves industrial applications in the cloud, as shown in Figure 1. In this regard, Figure 1 shows a cloud-based scenario that requires improvements to the FRER function.
[0048] Common cloud actions such as running multiple virtual machines (VMs) / containers / instances, creating VMs / containers / instances, moving VMs / containers / instances, resetting functions, removing VMs / containers / instances, etc., require FRER capabilities to seamlessly adapt to the changing environment, which changes are much more frequent than changes in current industrial network scenarios or network deployments without the cloud.
[0049] A highly available system requires the elimination of any single point of failure, therefore the FRER / PREF functionality (i.e., sequence generation) must be improved to be able to support various cloud-specific redundancy solutions.
[0050] Using the IEEE802.1CB FRER as an example, the effect of resetting the sequence number generation function (here, SN L The actual value of sequence_number used for the last packet sent before the reset (referred to as SN R The sequence number depends on the value of the sequence_number used for the first packet sent after a reset (referred to as the SN). R is always 0, and SN L is a value in the range {0;...;GenSeqSpace-1}.
[0051] The following scopes may be defined for analyzing the impact of a reset on (1) the solution described in IEEE 802.1CB-2017, (2) the solution described in the '397 application, and (3) the solution described herein. A:SN R >SN L +d B:SN L +d≧SN R >SN L C:SN L ≧SN R >SN L -d D:SN L -d ≥ SN R >SN L -2d E:SN L -2d ≥ SN R Here, d = "frerSeqRcvyHistoryLength" as specified in IEEE802.1CB-2017. Due to the cyclic property of the original sequence number space, "A" and "E" are adjacent ranges, and the boundary between them is modulo GenSeqSpace (SN L Note that the cyclic sequence number space is defined as cyclic sequence number 1 +GenSeqSpace / 2. Figure 2 shows the range of the cyclic sequence number space.
[0052] The assumptions for the analysis are that (i) there are no other events in the network and only the sequence generation function is reset, and (ii) “frerSeqRcvyHistoryLength” (d) takes the value of 100 for the probability calculation.
[0053] For the evaluation of the solutions described in IEEE 802.1CB-2017, the following areas are important: History Window (HSW) = {SN L +d;..;SN L -d+1}, where d = "frerSeqRcvyHistoryLength".
[0054] Note that the HSW is actually a merger of range "B" and range "C" used for evaluation.
[0055] According to IEEE802.1CB-2017, packets with sequence_number outside the history window (HSW) are dropped, and packets within the history window are evaluated against "SequenceHistory" to determine if they are duplicates. Thus, IEEE802.1CB-2017 operates as follows for each of the ranges A through E: A: Until the timer expires or the packet's sequence_number is equal to SN L Packets are dropped until +1 is reached. B: No packet drops, SN R is accepted, C: Packet sequence_number is SN L Packets are dropped until +1 is reached. D: The sequence_number of the packet is SN L Packets are dropped until +1 is reached. E: Until the timer expires or the packet's sequence_number is equal to SN L Packets are dropped until +1 is reached.
[0056] That is, in most cases, there is a high probability (99.8%) of packet drop until a timeout triggers the acceptance of the next packet. Note that packet drop means packet loss for applications whose operation may be impaired by lost packets.
[0057] For the evaluation of the solutions described in the '397 application, the following additional areas are of interest. Reset Ignore Range (RIR) = {SN L +d;..;SN L -2d+1}, where d = "frerSeqRcvyHistoryLength".
[0058] Note that the RIR is actually a merger of ranges "B", "C" and "D" used for evaluation.
[0059] RIR is the range in which the Eliminator function ignores the received "SeqResetFlag" and checks the received packet against the HSW. Range "D" also indicates that duplicates on slower redundant paths are not allowed to be routed to the SN L may have a sequence_number less than SN L Note that this is part of the RIR since it can be as low as -d. Thus, the solution described in the '397 application behaves as follows for each of the ranges: A: No packet drops, SN R is accepted, B: No packet drops, SN R is accepted, C: Packet sequence_number is SN L Packets are dropped until +1 is reached. D: The sequence_number of the packet is SN L Packets are dropped until +1 is reached. E: No packet drops, SN R is accepted.
[0060] In most cases, there is a low probability of packet drop (0.3%). When packet drop occurs, it is limited to a maximum of 2d packets after a reset. Some TSN applications may tolerate this when a reset occurs, but some may not.
[0061] The solution described herein has the following properties for each of the scopes: A: No packet drops, SN R is accepted, B: No packet drops, SN R is accepted, C: No packet drops, SN R is accepted, D: No packet drops, SN R is accepted, E: No packet drops, SN R is accepted.
[0062] No packet drops. Packets sent after the reset are immediately considered valid. TSN applications are not affected at all, and the implementation impact for FRER nodes is moderate.
[0063] Disclosed herein are systems and methods for improving removal functionality in a TSN network using FRER (or similarly in a DetNet network using PREF) according to IEEE 802.1CB. Note that the description herein uses IEEE 802.1CB terminology and, where appropriate, variable names, which are denoted as "VariableName." New variables, functions, and parameters follow the IEEE 802.1CB naming convention and are denoted as "NewEntityName."
[0064] Hereafter, the description focuses on an embodiment of the proposed solution for IEEE 802.11 FRER and therefore uses the terminology and notation as described in 802.1CB-2017 FRER, however the solution proposed herein is equally applicable to other seamless redundancy mechanisms (e.g., PREF for DetNet) based on sequence numbering or equivalent functionality (e.g., provided by timestamps).
[0065] FIG. 3 illustrates a system 300 including a transmitting (TX) node 302 and a receiving (RX) node 304, where the TX node 302 transmits a replicated stream of packets to the RX node 304 over a TSN network 306. Note that the TX node 302 and the RX node 304, in this example, may be, for example, a TSN endpoint, a TSN bridge, or any other type of TSN node. The transmission of the replicated stream of packets involves replicating the stream of packets into multiple member streams, thereby providing a composite stream. The member streams are then transmitted over the TSN network 306 via maximally disjoint paths to the RX node 304. Note that although the nodes 302 and 304 are referred to herein as the “TX node” and the “RX node,” respectively, it should be understood that these nodes may both transmit and receive streams over the TSN network 306.
[0066] As shown, the TX node 302 includes a FRER function 308 that, in this example, operates to provide a FRER according to IEEE 802.1CB. The FRER 308 includes a duplication function 310 and a removal function 312 (shown as optional in that it is not used for transmitting streams to the RX node 304). Similarly, the RX node 304 includes a FRER function 314 that, in this example, operates to provide a FRER according to IEEE 802.1CB. The FRER 314 includes a duplication function 316 (shown as optional in that it is not used for receiving streams from the TX node 302) and a removal function 322.
[0067] As shown, the duplication function 310 includes a sequence generation function 320 that operates to generate sequence numbers for packets in the packet stream. The removal function 318 includes a sequence recovery function 322 that operates on packets being passed up the protocol stack toward a higher layer function and uses the sequence number subparameter to determine which packets should be passed and which packets should be discarded.
[0068] In some embodiments, the TX node 302 is part of a cloud implementation (eg, part of the Ctrl-cluster described above with respect to FIG. 1).
[0069] The sequencing functions of FRER 308 and 314 provide a "sequence_number" subparameter for the FRER function. In particular, the sequencing functions have two types of component functions: (1) sequence generation functions (e.g., sequence generation function 320) that operate on packets being passed down the protocol stack toward the physical layer and generate a value for the sequence_number subparameter, and (2) sequence recovery functions (e.g., sequence recovery function 322) that operate on packets being passed up the protocol stack toward a higher layer function and use the sequence_number subparameter of received packets to determine which packets to pass and which packets to discard.
[0070] An embodiment of the solution described herein uses a flag introduced into R-TAG by the '379 application, namely "SeqResetFlag." This flag is used as follows: When transmitting a stream of packets, the duplication function 310 in the TX node 302 does not change the “SeqResetFlag” value of a packet if a redundant tag (R-TAG) is already included in the packet’s header (i.e., in the header of the corresponding Ethernet frame). · The Duplicate Function 310 in the TX Node 302 sets the “SeqResetFlag” (e.g., sets “SeqResetFlag” value=1) when the Sequence Generation Function 320 is reset, for a given time period, or for some sent packets. · The Duplicate Function 310 in the TX Node 302 clears the "SeqResetFlag" in all other cases (eg, sets "SeqResetFlag" value=0).
[0071] An embodiment of the solution described herein introduces a new additional sequence number space, referred to herein as "InitSeqNumSpace", which is used after an initialization or reset of the sequence generation function 320. The newly introduced InitSeqNumSpace is shown by the bold linear sequence number space in FIG. 4. The sequence_number of the next packet is stored in a new variable, namely "InitGenSeqNum". When this new number space is exhausted, the sequence generation function 320 starts using the original sequence number space, shown by the non-bold sequence number space in FIG. 4. In other words, FIG. 4 shows an example of the relationship between the new (linear) sequence number space and the original (cyclic) sequence number space.
[0072] An embodiment of the solution described herein introduces a new flag in the R-TAG, called "InitSeqFlag," which is used by the replication function 310 in the TX node 302 as follows. For each packet in the stream of packets being transmitted by TX node 302, duplication function 310 does not change the packet's “InitSeqFlag” value if an R-TAG is already included in the packet's header. · The duplication function 310 sets "InitSeqFlag" (e.g., sets "InitSeqFlag" value=1) when the sequence generation function 320 is initialized or reset. "InitSeqNumSpace" is used by the duplication function 310 to generate sequence numbers for packets. · The duplicate function 310 clears "InitSeqFlag" in all other cases (eg, sets "InitSeqFlag" value=0). "InitSeqNumSpace" is used as follows: "InitSeqNumSpace" is the linear sequence number space starting at "InitSeqStart" 32768 (e.g., a configurable parameter set to 32768 in the example in Figure 4) and ending at "GenSeqSpace-1" (i.e., 65535 according to IEEE802.1CB-2017). "InitSeqNumSpace" has its own set of variables used to handle the sequence_number of packets. Note that the InitSeqNumSpace variable names are derived from the original sequence number variable names via appending them with the "Init" prefix, e.g., "InitGenSeqNum", "InitRecovSeqNum", "InitSequenceHistory", "InitTakeAny", "InitRemainingTicks", etc. · The replication function 310 in the TX node 302 uses "InitSeqNumSpace" as follows: o "UseInitSeqSpace" is a Boolean state variable that indicates that the new "InitSeqNumSpace" (value=1) should be used by the sequence generation function 320 to generate the sequence_number for the next packet. o Whenever the sequence generation function 320 is initialized or reset, "UseInitSeqSpace" is set (e.g., value = 1) to indicate that "InitSeqNumSpace" should be used to generate the sequence_number for the packets being sent. All packets sent with a sequence_number from "InitSeqNumSpace" have "InitSeqFlag" set (eg, value = 1) in their R-Tag. o "InitGenSeqNum" takes the value of "InitSeqStart" whenever the sequence generation function 320 is initialized or reset, and is incremented by 1 when a packet is sent. o When "InitGenSeqNum" is incremented and becomes greater than its maximum value, "UseInitSeqSpace" is cleared (e.g., value=0) to indicate that "InitSeqNumSpace" cannot be used. The sequence generation function 320 then uses the original sequence number space for the next packet. o If "UseInitSeqSpace" is clear (value=0), then the sequence generation function 320 uses "GenSeqNum" to generate the sequence_number of the next packet (i.e., the original sequence number space is used).
[0073] An embodiment of the solution herein also defines a new procedure for the removal function 318 in the RX node 304. It uses a new set of variables to handle packets containing sequence_number from the "InitSeqNumSpace" described above. The size of the history window is the same for both sequence number spaces. When the removal function 318 receives a packet from one of the member streams of the stream transmitted by the TX node 302, it operates as follows: If the “InitSeqFlag” flag in the received packet is set (eg, value = 1), the sequence recovery function 322 uses a new linear sequence number space (InitSeqNumSpace) related variable as follows: o The sequence recovery function 322 sets the packet's sequence_number to InitRecovSeqNum and clears InitSequenceHistory if "SeqResetFlag" is set and the packet's sequence_number is outside the iRIR range {"InitRecovSeqNum" + "frerSeqRcvyHistoryLength";...;"InitRecovSeqNum"-2 * "frerSeqRcvyHistoryLength" + 1}. Note that the range must be calculated according to the boundaries of the new linear sequence number space. o The sequence recovery function 322 ignores the "SeqResetFlag" if the "sequence_number" of the packet is within the iRIR range. If the "sequence_number" is outside the iHSW range {"InitRecovSeqNum" + "frerSeqRcvyHistoryLength";...;"InitRecovSeqNum" - "frerSeqRcvyHistoryLength" + 1}, the packet is dropped. If the "sequence_number" is within the iHSW, it is checked if the packet has already been received. The sequence recovery function 322 does not change the "SeqResetFlag" and "InitSeqFlag" values of the packet. o The sequence recovery function 322 sets the "TakeAny" variable of the original sequence number space if the "sequence_number" of the packet is within the following range {"GenSeqSpace"-"frerSeqRcvyHistoryLength";...;"GenSeqSpace"-2*"frerSeqRcvyHistoryLength"}. Note that this range indicates that the new initial sequence number space will be exhausted soon, i.e., approaching the original sequence number space. If the "InitSeqFlag" flag in the received packet is clear (value = 0), the sequence recovery function uses the original sequence number spatial relationship variables. o The sequence recovery function 322 sets the value of the packet's "sequence_number" to "RecovSeqNum" and clears "SequenceHistory" if "SeqResetFlag" is set and the packet's "sequence_number" is outside the RIR range {"RecovSeqNum" + "frerSeqRcvyHistoryLength";...; "RecovSeqNum" - 2 * "frerSeqRcvyHistoryLength" + 1}. Note that the range must be calculated according to the modulo rule of the original sequence number space. o The sequence recovery function 322 ignores the "SeqResetFlag" if the packet's "sequence_number" is within the RIR range. If the "sequence_number" is outside the HSW range, the packet is dropped. If the "sequence_number" is within the HSW, it checks if the packet has already been received. The sequence recovery function 322 does not change the "SeqResetFlag" value of the packet.
[0074] Note that regardless of the value of the sequence_number subparameter, the timeout mechanism for sequence recovery to accept the next packet remains unchanged and does not apply for both sequence number spaces (see the "TakeAny" variable in 802.1CB-2017 for the original sequence number space).
[0075] One implementation may use two variables to enable / disable the use of the reset flag ("UsingResetFlag" = 1 / 0 (enabled / disabled)) and the new initial sequence number space ("UsingInitSpace" = 1 / 0 (enabled / disabled)).
[0076] 5 illustrates a state diagram for the replication function 310 in a TX node 302, according to one embodiment of the disclosure. As illustrated, when the replication function 310 is in a first state using the original sequence number space and UsingInitSpace=false, the replication function 310 uses the original sequence number space. If the initial sequence number space is disabled upon reset, the replication function 312 sets SeqGenNum=0 and UseInitSeqNum=false and remains in the first state. However, if the initial sequence number space is enabled upon reset, the replication function 310 transitions to a second state in which the replication function 310 uses the initial sequence number space, setting InitSeqGenNum=InitSeqStart and UseInitSeqNum=true. If the initial sequence number space is enabled upon reset while in the second state, the replication function 310 sets InitSeqGenNum=InitSeqStart and UseInitSeqNum=true and remains in the second state where the replication function 310 uses the initial sequence number space. If the initial sequence number space is exhausted while in the second state, the replication function sets SeqGenNum=0 and UseInitSeqNum=false and transitions to the first state where the replication function uses the original sequence number space. If the initial sequence number space is disabled while in the second state, the replication function sets SeqGenNum=0 and UseInitSeqNum=false and transitions to the first state where the replication function uses the original sequence number space.
[0077] FIG. 6 is a flow chart illustrating the operation of the duplication function 310 in the TX node 302, according to one embodiment of the present disclosure. Optional steps are represented by dashed lines. As shown, the duplication function 310 receives a packet to be sent (e.g., from a higher layer(s) in the protocol stack) (step 600). The duplication function 310 determines whether an R-Tag is present or set in the packet (step 602). If the R-Tag is present or set in the packet (602, yes), the packet with the set R-Tag is ready to be sent and is thus provided to a lower layer in the protocol stack for transmission (step 604). For example, multiple copies of the packet may then be generated and sent via different (e.g., independent) paths through the TSN network 306. If the R-Tag is not present or set in the packet (step 602, no), the duplication function 310 determines whether "UsingResetFlag" is enabled (step 606). If "UsingResetFlag" is enabled, the duplication function 310 determines whether the sequence generation function 320 has been recently reset (step 608). This is true if the reset occurred within a predefined or pre-set amount of time prior to receiving a packet (i.e., the current time) or within a predefined or pre-set number of packets prior to receiving a packet. If the sequence generation function 320 has been recently reset (step 608, yes), the duplication function 310 enables "SeqResetFlag" (e.g., sets "SeqResetFlag" to a value of "1") (step 610). Otherwise, the duplication function 310 disables "SeqResetFlag" (e.g., sets "SeqResetFlag" to a value of "0") (step 612).
[0078] Whether proceeding from step 610 or step 612, the replication function 310 determines whether the use of "InitSeqNumSpace" has been enabled (step 614). If the use of "InitSeqNumSpace" has not been enabled (614, no), the process proceeds to step 632, which is described below. Otherwise (step 614, yes), the replication function 310 determines whether "UseInitSeqNum" has been enabled (e.g., set to "true") (step 616). If "UseInitSeqNum" is enabled (step 616, yes), the duplication function 310 enables "InitSeqFlag" (e.g., sets "InitSeqFlag" to "1") (step 618), adds a sequence number (seq_num) equal to "InitGenSeqNum" to the packet (step 620), increments "InitGenSeqNum" (step 622), and determines whether "InitSeqNumSpace" is exhausted (step 624). If "InitSeqNumSpace" is not exhausted (step 624, no), the process proceeds to step 628, which is described below. Otherwise (step 624, yes), the duplication function 310 sets "GenSeqNum" equal to "0" and sets "UseInitSeqNum" to false (step 626). Then, regardless of whether proceeding from the "No" branch of step 624 or from step 626, the duplication function 310 adds an R-Tag to the packet (step 628) and the procedure proceeds to step 604, where the packet is ready to be sent.
[0079] Returning to step 616, if "UseInitSeqNum" is not set to "true", the duplication function 310 disables "initSeqFlag" (e.g., sets "initSeqFlag" to "0") (step 630), adds a sequence number (seq_num) equal to "GenSeqNum" to the packet (step 632), and increments "GenSeqSum" (step 634). The procedure then proceeds to step 628, where an R-Tag is added to the packet, and the packet is then ready to be sent.
[0080] 7 is a flow chart illustrating the operation of the duplication function 310 in the TX node 302 according to another embodiment of the present disclosure. This embodiment is similar to the embodiment of FIG. 6. As shown, the duplication function 310 determines that the sequence generation function 310 in the TX node 302 has been reset (step 700). In response to determining that the sequence generation function 310 in the TX node 302 has been reset, the duplication function 310 transmits a first plurality of packets in a stream of packets, where (a) each of the first plurality of packets comprises a respective sequence number from a linear sequence number space, and (b) at least a first packet from among the first plurality of packets sent after the reset further comprises an explicit indicator of the reset (step 702). The duplication function 310 determines that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled (step 704). In response to determining that the end of the linear sequence number space has been reached or that use of the linear sequence number space has been disabled, the duplication function 310 transmits a second plurality of packets in the stream of packets, (a) each of the second plurality of packets having a respective sequence number in the cyclic sequence number space (step 706).
[0081] In one embodiment, each of the first plurality of packets further comprises an explicit indication that a linear sequence number space is being used.
[0082] In one embodiment, the network is a TSN network. Moreover, in one embodiment, the method further includes resetting the sequence generation function 310, where resetting the sequence generation function 310 includes resetting the sequence number history, the history window (e.g., resetting "RecovSeqNum", which is a midpoint of the history window), or resetting both the sequence number history and the history window. In one embodiment, the steps of determining (700) that the sequence generation function 310 in the TX node 302 has been reset, transmitting (702) a first plurality of packets in the stream of packets, determining (704) that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled, and transmitting (706) a second plurality of packets in the stream of packets are performed by the FRER function 308 of the TX node 302, and more particularly, by the duplication function 310 of the TX node 302.
[0083] In another embodiment, the network is a DetNet network. Additionally, in one embodiment, the steps of determining (700) that the sequence generation function 310 at the TX node 302 has been reset, transmitting (702) a first plurality of packets in the stream of packets, determining (704) that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled, and transmitting (706) a second plurality of packets in the stream of packets are performed by the PRER of the TX node 302.
[0084] 8 illustrates a state diagram for an exemplary embodiment of the removal function 318 in the RX node 304. As illustrated, when in the first state, the removal function 318 uses the original sequence number space. When in the first packet state and a packet is received with InitSeqNumFlag=0 or a packet is received and the initial sequence number space is disabled, the removal function 318 remains in the first state. However, when in the first state and a packet is received with InitSeqNumFlag=1 and the initial sequence number space is enabled, the removal function 318 transitions to a second state where the removal function 318 uses the initial sequence number space. When in the second state and a packet is received with InitSeqNumFlag=1 and the initial sequence number space is enabled, the removal function 318 remains in the second state. When in the second state and a packet is received with InitSeqNumFlag=0 or a packet is received and the initial sequence number space is invalidated, the removal function 318 transitions to the first state.
[0085] 9A and 9B provide a flow chart illustrating the operation of the removal function 318 in the RX node 304 according to one embodiment of the present disclosure. Optional steps are represented by dashed lines. As shown, the removal function 318 receives a packet to be processed (e.g., from a lower layer(s) in a protocol stack) (step 900). The packet has a "seq_num" value. The removal function 318 determines whether "UsingResetFlag" is enabled (step 902). If "UsingResetFlag" is not enabled (step 902, no), the removal function 318 determines whether the sequence number of the packet is within the history window (HSW) (step 904). If the sequence number of the packet is not within the history window (HSW) (step 904, no), the removal function 318 determines whether "TakeAny" is enabled (step 904). If "TakeAny" is not enabled (step 906, no), the removal function 318 drops the packet (step 908). Otherwise, if "TakeAny" is enabled (step 906, yes), the procedure proceeds to step 912, which is described below. Returning to step 904, if the packet's sequence number is in the HSW (step 904, yes), the removal function 318 determines whether the packet's sequence number is already in the history (step 910). If the packet's sequence number is already in the history (step 910, yes), the removal function 318 drops the packet (step 908). Otherwise, if the packet's sequence number is not already in the history (step 910, no), the procedure proceeds to step 912, which is described below.
[0086] Returning to step 902, if "UsingResetFlag" is enabled (step 902, yes), the removal function 318 determines whether the use of "InitSeqNumSpace" is enabled (step 920). If the use of "InitSeqNumSpace" is not enabled (step 920, no), the removal function 318 determines whether "SeqResetFlag" is enabled and the sequence number of the received packet is outside the RIR (step 922). If "SeqResetFlag" is not enabled and the sequence number of the received packet is not outside the RIR (step 922, no), the procedure proceeds to step 904. Otherwise (step 922, yes), the procedure proceeds to step 912.
[0087] Whether proceeding from the Yes branch of step 906, the No branch of step 910, or the Yes branch of step 922, the removal function 318 then updates "RecovSeqNum" (step 912), updates "SequenceHistory" (step 914), clears "TakeAny" (step 916), and accepts the packet (step 918).
[0088] Returning to step 920, if the use of "InitSeqNumSpace" is enabled (step 920, yes), the removal function 318 determines whether "InitSeqFlag" is enabled (step 924). If "InitSeqFlag" is not enabled (step 924, no), the process proceeds to step 922. Otherwise (step 924, yes), the removal function 318 determines whether "SeqResetFlag" is enabled and the sequence number of the received packet is outside the iRIR (step 926). If "SeqResetFlag" is enabled and the sequence number of the received packet is outside the iRIR (step 926, yes), the procedure proceeds to step 932, which is described below. Otherwise (step 926, no), the removal function 318 determines whether the sequence number of the packet is in the iHSW (step 928). If the packet's sequence number is in the iHSW (step 928, yes), the removal function 318 determines whether the packet is already in the history (step 930). If the packet is not already in the history (step 930), the procedure proceeds to step 932. Otherwise (step 932, no), the removal function 318 drops the packet (step 944). Returning to step 928, if the packet's sequence number is not in the iHSW (step 928, no), the removal function 318 determines whether "InitTakeAny" is enabled (step 942). If "InitTakeAny" is not enabled (step 942, no), the removal function 318 discards the packet (step 944). Otherwise (step 942, yes), the process proceeds to step 932.
[0089] Whether proceeding from the YES branch of step 926, the NO branch of step 930, or the YES branch of step 942, removal function 318 updates "InitRecovSeqNum" (step 932), updates "InitSequenceHistory" (step 934), and clears "InitTakeAny" (step 936). Removal function 318 determines whether the sequence number is in a STAR (i.e., the range {"GenSeqSpace"-d;...;"GenSeqSpace"-2xd}) (step 938). If the sequence number is in a STAR (step 938, YES), removal function 318 sets "TakeAny" to true (step 940) and the packet is accepted (step 918). Otherwise (step 938, NO), removal function 318 accepts the packet (step 918).
[0090] One possible option for encoding the "SeqResetFlag", "InitSeqFlag" and the "new sequence number belonging to the linear sequence number space" in the R-TAG is described below. in the reserved field (bytes 2 and 3 of the R-TAG), and / or In the sequence number field (bytes 4 and 5 of the R-TAG).
[0091] In Figure 10, which shows the R-TAG format (Figure 7-4 in IEEE802.1CB), · "SeqResetFlag" and "InitSeqFlag" can be encoded in the R-TAG using two bits of the reserved field, one bit for each flag. According to 802.1CB-2017 "This field shall be transmitted with all zeros and shall be ignored on receipt." "A new sequence number belonging to the linear sequence number space" can be encoded in the sequence number field of the R-TAG. "InitSeqFlag" indicates how the sequence number field should be interpreted.
[0092] Other encoding methods can also be constructed. For example, the "SeqResetFlag" can be encoded in the R-TAG using one bit using the reserved field, and the "new sequence number belonging to the linear sequence number space" can be encoded in the remaining 15 bits of the reserved field. Such encoding also includes the information of the sequence number space, and therefore there is no need to explicitly encode the "InitSeqFlag".
[0093] FIG. 11 is a schematic block diagram of a network node 1100 according to some embodiments of the present disclosure. The network node 1100 may be a TX node 302 or a RX node 304 described above. As shown, the network node 1100 includes one or more processors 1104 (e.g., a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), etc.), a memory 1106, and a network interface 1108. The one or more processors 1104 are also referred to herein as processing circuits. The one or more processors 1104 operate to provide one or more functions of the network node 1100 described herein (e.g., one or more functions of the TX node 302 or one or more functions of the RX node 304 described herein). In some embodiments, the function(s) are implemented in software, e.g., stored in the memory 1106 and executed by the one or more processors 1104.
[0094] 12 is a schematic block diagram illustrating a virtualized embodiment of a network node 1100, in accordance with some embodiments of the present disclosure. This description is equally applicable to other types of network nodes. Additionally, other types of network nodes may have a similar virtualized architecture. Again, optional features are represented by dotted boxes.
[0095] As used herein, a "virtualized" network node is an implementation of a network node 1100 in which at least a portion of the functionality of the network node 1100 is implemented as a virtual component(s) (e.g., via virtual machine(s) executing on physical processing node(s) in the network(s)). As shown, in this example, the network node 1100 includes one or more processing nodes 1200 coupled to or included as part of the network(s) 1202. Each processing node 1200 includes one or more processors 1204 (e.g., CPUs, ASICs, FPGAs, etc.), memory 1206, and a network interface 1208. In this example, the functions 1210 of the network node 1100 described herein (e.g., one or more functions of the TX node 302 or one or more functions of the RX node 304 described herein) are implemented in one of the processing nodes 1200 or distributed in any desired manner across two or more of the multiple processing nodes 1200. In some particular embodiments, some or all of the functions 1210 of the network node 1100 described herein are implemented as virtual components executed by one or more virtual machines implemented in a virtual environment(s) hosted by the processing node(s) 1200.
[0096] In some embodiments, a computer program is provided that includes instructions that, when executed by at least one processor, cause the at least one processor to perform functions of the network node 1100 or a node (e.g., processing node 1200) implementing one or more of the functions 1210 of the network node 1100 in a virtual environment in accordance with any of the embodiments described herein. In some embodiments, a carrier is provided that comprises the computer program product described above. The carrier is one of an electronic signal, an optical signal, a radio signal, or a computer-readable storage medium (e.g., a non-transitory computer-readable medium such as a memory).
[0097] 13 is a schematic block diagram of a network node 1100 according to some other embodiments of the present disclosure. The network node 1100 includes one or more modules 1300, each of which is implemented in software. The module(s) 1300 provide the functionality of the network node 1100 described herein (e.g., one or more functions of the TX node 302 or one or more functions of the RX node 304 described herein). This description is equally applicable to the processing node 1200 of FIG. 12, where the module 1300 may be implemented in one of the processing nodes 1200 or distributed across multiple processing nodes 1200.
[0098] Any suitable steps, methods, features, functions, or benefits disclosed herein may be implemented through one or more functional units or modules of one or more virtual devices. Each virtual device may comprise several of these functional units. These functional units may be implemented via processing circuitry, which may include one or more microprocessors or microcontrollers, as well as other digital hardware, which may include digital signal processors (DSPs), dedicated digital logic, and the like. The processing circuitry may be configured to execute program code stored in memory, which may include one or several types of memory, such as read-only memory (ROM), random access memory (RAM), cache memory, flash memory devices, optical storage devices, and the like. The program code stored in memory includes program instructions for implementing one or more communication and / or data communication protocols, as well as instructions for performing one or more of the techniques described herein. In some implementations, the processing circuitry may be used to cause each functional unit to perform a corresponding function according to one or more embodiments of the present disclosure.
[0099] Although the processes in the figures may indicate a particular order of operations performed by some embodiments of the present disclosure, it should be understood that such orders are exemplary (e.g., alternative embodiments may perform operations in a different order, combine some operations, overlap some operations, etc.).
[0100] Some exemplary embodiments of the present disclosure are as follows. Embodiment 1: A method implemented by a sending node (302) for a network for packet or frame duplication, the method comprising the steps of: determining (700) that a sequence generation function (310) at the sending node (302) has been reset; in response to determining (700) that a sequence generation function (310) at the sending node (302) has been reset, transmitting (702) a first plurality of packets in the stream of packets, (a) each of the first plurality of packets comprising a respective sequence number from a linear sequence number space, and (b) at least a first packet from the first plurality of packets sent after the reset further comprises an explicit indicator of the reset; determining (704) that the end of the linear sequence number space has been reached or that use of the linear sequence number space has been disabled; in response to determining (704) that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled, transmitting (706) a second plurality of packets in the stream of packets, the second plurality of packets comprising a respective sequence number in the cyclic sequence number space; The method includes one or more of:
[0023] Embodiment 2: The method of embodiment 1, wherein each of the first plurality of packets further comprises an explicit indication that a linear sequence number space is being used.
[0023] Embodiment 3: The method of embodiment 1 or 2, wherein the network is a Time Sensitive Networking (TSN) network. Embodiment 4: The method of any one of embodiments 1 to 3, further comprising resetting the sequence generation function (310), wherein resetting the sequence generation function (310) comprises resetting the sequence number history, the history window, or both the sequence number history and the history window. Embodiment 5: The method of embodiment 3, wherein the steps of determining (700) that the sequence generation function (310) in the transmitting node (302) has been reset, transmitting (702) a first plurality of packets in the stream of packets, determining (704) that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled, and transmitting (706) a second plurality of packets in the stream of packets are performed by a frame duplication and elimination (FRER) function (308) for reliability of the transmitting node (302).
[0023] Embodiment 6: The method of embodiment 1 or 2, wherein the network is a deterministic networking (DetNet) network. Embodiment 7: The method of embodiment 6, wherein the steps of determining (700) that the sequence generation function (310) in the sending node (302) has been reset, transmitting (702) a first plurality of packets in the stream of packets, determining (704) that the end of the linear sequence number space has been reached or use of the linear sequence number space has been disabled, and transmitting (706) a second plurality of packets in the stream of packets are performed by a packet replication and removal function (PRER) of the sending node (302). Embodiment 8: A method implemented by a receiving node (304) for a network for packet or frame removal, the method comprising the steps of: receiving (900) a packet from one of a plurality of replicated streams traversing different paths through a network from a sending node (302) to a receiving node (304), the packet comprising a sequence number; determining (924, YES) that the packet comprises an explicit indication that a linear sequence number space is being used; determining (926) whether the packet comprises an explicit indication that the sequence generation function (310) at the sending node (302) has been reset; determining (926) whether the sequence number of the packet is outside a reset ignore range (iRIR) associated with the use of the linear sequence number space; accepting (918) the packet in response to determining (924, YES) that the packet comprises an explicit indication that a linear sequence number space is being used and determining (926, YES) that the packet comprises an explicit indication that a sequence generation function (310) at the sending node (302) has been reset and that the sequence number of the packet is outside the iRIR; The method includes one or more of: Embodiment 9: The method of embodiment 8, further comprising, in response to determining (924, yes) that the packet comprises an explicit indication that the linear sequence number space is being used and determining (926, yes) that the packet comprises an explicit indication that the sequence generation function (310) at the sending node (302) has been reset and that the sequence number of the packet is outside the iRIR, updating (932, 934) the iHSW and history associated with the linear sequence number space based on the sequence number of the packet.
[0036] Embodiment 10: Upon determining (924, yes) that the packet has an explicit indication that the linear sequence number space is being used, and determining (926, no) that the packet either does not have an explicit indication that the sequence generation function (310) at the sending node (302) has been reset or the sequence number of the packet is not outside the iRIR, determining (928) whether the sequence number of the packet is within a history window (iHSW) associated with a use of the linear sequence number space; Determining (930) whether the sequence number of the packet is already in a history associated with the use of the linear sequence number space with sequence numbers already received; Accepting the packet (918) in response to determining that the sequence number of the packet is in the iHSW (928, yes) and determining that the sequence number of the packet is not already in the history (930, no); 9. The method of embodiment 8, further comprising: Embodiment 11: The method of embodiment 10, further comprising discarding the packet (918) in response to determining that the sequence number of the packet is within the iHSW (928, yes) and determining that the sequence number of the packet is already in the history (930, yes). Embodiment 12: The method of embodiment 10, further comprising, in response to determining that the sequence number of the packet is within the iHSW (928, yes) and determining that the sequence number of the packet is not already in the history (930, no), updating the iHSW and history associated with the linear sequence number space based on the sequence number of the packet (932, 934). Embodiment 13: A method implemented by a sending node (302) for a network for packet or frame duplication, the method comprising the steps of: Obtaining (600) a packet to be sent; determining that the packet has not yet been duplicated by a previous network node in the network (e.g., determining that an R-Tag is not already present in the packet) (602, no); determining (608) whether a sequence generation function (310) in the sending node (302) has been reset; In response to determining (608) that the sequence generation function (310) at the sending node (302) has been reset, enabling (610) an explicit indication in the packet indicating that the sequence generation function (310) has been reset or disabling (612) the explicit indication in the packet; determining that a linear sequence number space should be used (616, YES); In response to determining that a linear sequence number space should be used (616, YES), o Enabling (618) an explicit indication in the packet that a linear sequence number space is being used; and - adding (620) a sequence number from a linear sequence number space to the packet; adding a tag to the packet indicating that the packet has been duplicated (628); providing (604) a packet for duplication and transmission; The method includes one or more of: Embodiment 14: A network node (302, 304, 1100) adapted to implement the method according to any one of embodiments 1 to 13.
[0101] Those skilled in the art will recognize improvements and modifications to the embodiments of the present disclosure, and all such improvements and modifications are considered within the scope of the concepts disclosed herein.
Claims
1. A method implemented by a transmitting node (302) for packet or frame duplication, the method comprising: determining (700) that a sequence generation function (310) at the sending node (302) has been reset; In response to determining (700) that the sequence generation function (310) at the sending node (302) has been reset, transmitting (702) a first plurality of packets in a stream of packets, the stream being one of a plurality of replicated streams, via at least two independent paths through a network, wherein (a) each of the first plurality of packets comprises a respective sequence number from a linear sequence number space and an explicit indication that the linear sequence number space is being used, and (b) at least a first packet from among the first plurality of packets sent after the reset further comprises an explicit indicator of the reset; determining (704) that the end of the linear sequence number space has been reached or that use of the linear sequence number space has been invalidated; in response to determining that the end of the linear sequence number space has been reached or that the use of the linear sequence number space has been revoked (704), transmitting a second plurality of packets in the stream of packets over at least two independent paths through the network, the second plurality of packets comprising a respective sequence number of a cyclic sequence number space (706); A method comprising:
2. The method of claim 1 , wherein the network is a Time Sensitive Networking (TSN) network.
3. 3. The method of claim 1, further comprising resetting the sequence generation function (310), wherein resetting the sequence generation function (310) comprises resetting a sequence number history, a history window, or both the sequence number history and the history window.
4. 4. The method of claim 2 or 3, wherein the steps of determining that the sequence generation function (310) at the sending node (302) has been reset (700), transmitting the first plurality of packets in the stream of packets (702), determining that the end of the linear sequence number space has been reached or the use of the linear sequence number space has been invalidated (704), and transmitting the second plurality of packets in the stream of packets (706) are performed by a Frame Replication and Removal for Reliability (FRER) function (308) of the sending node (302).
5. The method of claim 1 , wherein the network is a Deterministic Networking (DetNet) network.
6. 6. The method of claim 5, wherein the steps of determining (700) that the sequence generation function (310) at the sending node (302) has been reset, transmitting (702) the first plurality of packets in the stream of packets, determining (704) that the end of the linear sequence number space has been reached or the use of the linear sequence number space has been invalidated, and transmitting (706) the second plurality of packets in the stream of packets are performed by a packet duplication and removal function (PREF) of the sending node (302).
7. A transmitting node (302) for packet or frame duplication, said transmitting node (302) comprising: determining (700) that a sequence generation function (310) at the sending node (302) has been reset; In response to determining (700) that the sequence generation function (310) at the sending node (302) has been reset, transmitting (702) a first plurality of packets in a stream of packets, the stream being one of a plurality of replicated streams, via at least two independent paths through a network, wherein (a) each of the first plurality of packets comprises a respective sequence number from a linear sequence number space and an explicit indication that the linear sequence number space is being used, and (b) at least a first packet from among the first plurality of packets sent after the reset further comprises an explicit indicator of the reset; determining (704) that the end of the linear sequence number space has been reached or that use of the linear sequence number space has been invalidated; in response to determining that the end of the linear sequence number space has been reached or that the use of the linear sequence number space has been revoked (704), transmitting a second plurality of packets in the stream of packets over at least two independent paths through the network, the second plurality of packets comprising a respective sequence number of a cyclic sequence number space (706); A transmitting node (302) adapted to:
8. The transmitting node (302) of claim 7, wherein said transmitting node (302) is further adapted to perform the method according to any one of claims 2 to 6.
9. A transmitting node (302, 1100) for packet or frame duplication, said transmitting node (302, 1100) comprising: A network interface (1108, 1208); and a processing circuit (1104, 1204) associated with said network interface (1108, 1208), said processing circuit (1104, 1204) configured to transmit to said transmitting node (302, 1100): determining (700) that a sequence generation function (310) at the sending node (302, 1100) has been reset; In response to determining (700) that the sequence generation function (310) at the sending node (302, 1100) has been reset, transmitting (702) a first plurality of packets in a stream of packets, the stream being one of a plurality of replicated streams, via at least two independent paths through a network, wherein (a) each of the first plurality of packets comprises a respective sequence number from a linear sequence number space and an explicit indication that the linear sequence number space is being used, and (b) at least a first packet from among the first plurality of packets sent after the reset further comprises an explicit indicator of the reset; determining (704) that the end of the linear sequence number space has been reached or that use of the linear sequence number space has been invalidated; in response to determining that the end of the linear sequence number space has been reached or that the use of the linear sequence number space has been revoked (704), transmitting a second plurality of packets in the stream of packets over at least two independent paths through the network, the second plurality of packets comprising a respective sequence number of a cyclic sequence number space (706); A transmitting node (302, 1100) configured to cause the
10. The transmitting node (302, 1100) of claim 9, wherein the processing circuit (1104, 1204) is further configured to cause the transmitting node (302, 1100) to perform a method according to any one of claims 2 to 6.
11. A method implemented by a transmitting node (302) for packet or frame duplication, the method comprising: Obtaining (600) a packet to be sent; determining that the packet does not comprise a tag indicating that the packet has already been duplicated (602, NO); and in response to determining (602, NO) that the packet does not comprise the tag indicating that the packet has already been duplicated, o Determining that a linear sequence number space should be used (616, YES); and In response to determining that the linear sequence number space should be used (616, YES), validating (618) an explicit indication in the packet that indicates that the linear sequence number space is being used; and - adding (620) a sequence number from said linear sequence number space to said packet; Adding a tag to the packet indicating that the packet has been duplicated (628); and Providing (604) said packet for duplication and transmission; A method comprising:
12. In response to determining (602, NO) that the packet does not comprise a tag indicating that the packet has already been duplicated, determining (608) that a sequence generation function (310) at the sending node (302) has been reset; in response to determining (608) that the sequence generation function (310) at the sending node (302) has been reset, enabling (610) an explicit indication in the packet indicating that the sequence generation function (310) has been reset, or disabling (612) the explicit indication in the packet indicating that the sequence generation function (310) has been reset; The method of claim 11 further comprising:
13. 13. The method of claim 11 or 12, further comprising incrementing (622) the sequence number from the linear sequence number space in response to determining (616, YES) that the linear sequence number space should be used.
14. 14. The method of claim 13, further comprising repeating the method of claim 13 for a number of additional packets until the linear sequence number space is exhausted or use of the linear sequence number space is disabled.
15. after the linear sequence number space is exhausted or after the use of the linear sequence number space is disabled, Obtaining (600) further packets to be sent; determining that the further packet does not comprise a tag indicating that the further packet has already been duplicated (602; NO); and in response to determining (602, NO) that the further packet does not comprise a tag indicating that the further packet has already been duplicated, o determining that a cyclic sequence number space should be used rather than a linear sequence number space (616, no); In response to determining that the cyclic sequence number space should be used (616, no), Disabling (630) any explicit indication in said further packets that indicates that said linear sequence number space is being used; and - adding (632) a sequence number from said cyclic sequence number space to said further packet; and adding (628) the tag to the further packet indicating that the further packet has been duplicated; and and providing (604) said further packet for duplication and transmission; and The method of claim 14 further comprising:
16. In response to determining (602, NO) that the further packet does not comprise a tag indicating that the further packet has already been duplicated, determining (608) whether a sequence generation function (310) at the sending node (302) has been reset; in response to determining (608) that the sequence generation function (310) at the sending node (302) has been reset, enabling (610) an explicit indication in the further packet indicating that the sequence generation function (310) has been reset, or disabling (612) the explicit indication in the further packet indicating that the sequence generation function (310) has been reset; The method of claim 15 further comprising:
17. A transmitting node (302) for packet or frame duplication, said transmitting node (302) comprising: Obtaining (600) a packet to be sent; determining that the packet does not comprise a tag indicating that the packet has already been duplicated (602, NO); and In response to determining (602, NO) that the packet does not comprise a tag indicating that the packet has already been duplicated, o Determining that a linear sequence number space should be used (616, YES); and In response to determining that the linear sequence number space should be used (616, YES), validating (618) an explicit indication in the packet that indicates that the linear sequence number space is being used; and - adding (620) a sequence number from said linear sequence number space to said packet; Adding the tag to the packet indicating that the packet has been duplicated (628); and Providing (604) said packet for duplication and transmission; A transmitting node (302) adapted to:
18. The transmitting node (302) of claim 17, wherein the transmitting node (302) is further adapted to perform the method according to any one of claims 12 to 16.
19. A transmitting node (302, 1100) for packet or frame duplication, said transmitting node (302, 1100) comprising: Network interfaces (1108, 1208); a processing circuit (1104, 1204) associated with said network interface (1108, 1208), said processing circuit (1104, 1204) configured to transmit to said transmitting node (302, 1100): Obtaining (600) a packet to be sent, determining that the packet does not comprise a tag indicating that the packet has already been duplicated (602, no); and In response to determining that the packet does not comprise the tag indicating that the packet has already been duplicated (602, no), Determining that a linear sequence number space should be used (616, YES); and In response to determining that the linear sequence number space should be used (616, YES), validating (618) an explicit indication in said packet that indicates that said linear sequence number space is being used; - adding (620) a sequence number from said linear sequence number space to said packet; adding (628) the tag to the packet indicating that the packet has been duplicated; and and Providing said packet for duplication and transmission (604); A transmitting node (302, 1100) configured to cause the
20. The transmitting node (302, 1100) of claim 19, wherein the processing circuit (1104, 1204) is further configured to cause the transmitting node (302, 1100) to perform a method according to any one of claims 12 to 16.
Citation Information
Patent Citations
Mobile management method and mobile communication system
JP2004228754A
Packet transfer method and packet transfer apparatus
JP2009147579A
Method for fault tolerant message transmission in a computer network and computer network
US20190044752A1
Reliable broadcast of information in a wide area network
US5086428A
Transmission device, transmission method, reception device, and reception method
WO2016185794A1
