SYNCHRONIZATION OF SEQUENCE NUMBERS IN A NETWORK
Methods of synchronizing sequence numbers of a number of devices of a network are disclosed. A method may include resetting, at each of a first device and a second device of a network, a sequence number to an initial predetermined count value responsive to a timing event. The method may also include generating, at each of the first device and the second device, a frame for transmission. Further, the method may include incrementing, at each of the first device and the second device, the sequence number, wherein the sequence number is indicative of a number of frames generated at the associated device since the timing event. The method may also include inserting, at each of the first device and the second device, the sequence number into an associated frame. Related networks and devices are also disclosed.
This application claims the benefit of the priority date of U.S. Provisional Patent Application No. 62/982,654, filed Feb. 27, 2020, and titled “SYNCHRONIZATION OF SEQUENCE NUMBERS,” the disclosure and contents of which is incorporated herein in its entirety by this reference.
TECHNICAL FIELDThe present disclosure relates, generally, to communication networks, and more specifically to generating sequence numbers in a communication network. Yet more specifically, various embodiments of the disclosure relate to synchronizing sequence numbers at a number of devices of a communication network.
BACKGROUNDVarious interface standards for connecting computers and external peripherals may be used to provide connectivity at high speeds. A widely used, flexible networking standard for connecting computers (e.g., in Local Area Networks (LANs) and Wide Area Networks (WANs)) is the Ethernet protocol. Ethernet communication generally refers to point-to-point communication within a network of multiple end points. Ethernet generally makes efficient use of shared resources, is easy to maintain and reconfigure, and is compatible across many systems.
While this disclosure concludes with claims particularly pointing out and distinctly claiming specific embodiments, various features and advantages of embodiments within the scope of this disclosure may be more readily ascertained from the following description when read in conjunction with the accompanying drawings, in which:
In the following detailed description, reference is made to the accompanying drawings, which form a part hereof, and in which are shown, by way of illustration, specific examples of embodiments in which the present disclosure may be practiced. These embodiments are described in sufficient detail to enable a person of ordinary skill in the art to practice the present disclosure. However, other embodiments enabled herein may be utilized, and structural, material, and process changes may be made without departing from the scope of the disclosure.
The illustrations presented herein are not meant to be actual views of any particular method, system, device, or structure, but are merely idealized representations that are employed to describe the embodiments of the present disclosure. In some instances similar structures or components in the various drawings may retain the same or similar numbering for the convenience of the reader; however, the similarity in numbering does not necessarily mean that the structures or components are identical in size, composition, configuration, or any other property.
The following description may include examples to help enable one of ordinary skill in the art to practice the disclosed embodiments. The use of the terms “exemplary,” “by example,” and “for example,” means that the related description is explanatory, and though the scope of the disclosure is intended to encompass the examples and legal equivalents, the use of such terms is not intended to limit the scope of an embodiment or this disclosure to the specified components, steps, features, functions, or the like.
It will be readily understood that the components of the embodiments as generally described herein and illustrated in the drawings could be arranged and designed in a wide variety of different configurations. Thus, the following description of various embodiments is not intended to limit the scope of the present disclosure, but is merely representative of various embodiments. While the various aspects of the embodiments may be presented in the drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
Furthermore, specific implementations shown and described are only examples and should not be construed as the only way to implement the present disclosure unless specified otherwise herein. Elements, circuits, and functions may be shown in block diagram form in order not to obscure the present disclosure in unnecessary detail. Conversely, specific implementations shown and described are exemplary only and should not be construed as the only way to implement the present disclosure unless specified otherwise herein. Additionally, block definitions and partitioning of logic between various blocks is exemplary of a specific implementation. It will be readily apparent to one of ordinary skill in the art that the present disclosure may be practiced by numerous other partitioning solutions. For the most part, details concerning timing considerations and the like have been omitted where such details are not necessary to obtain a complete understanding of the present disclosure and are within the abilities of persons of ordinary skill in the relevant art.
Those of ordinary skill in the art would understand that information and signals may be represented using any of a variety of different technologies and techniques. Some drawings may illustrate signals as a single signal for clarity of presentation and description. It will be understood by a person of ordinary skill in the art that the signal may represent a bus of signals, wherein the bus may have a variety of bit widths and the present disclosure may be implemented on any number of data signals including a single data signal.
The various illustrative logical blocks, modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed with a processor such as a general purpose processor, a special purpose processor, a digital signal processor (DSP), an Integrated Circuit (IC), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform one or more of the features or functions of embodiments described herein. A general-purpose processor (may also be referred to herein as a host processor or simply a host) may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. A general-purpose computer including a processor is considered a special-purpose computer while the general-purpose computer is configured to execute computing instructions (e.g., software code) related to embodiments of the present disclosure.
The embodiments may be described in terms of a process that is depicted as a flowchart, a flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe operational acts as a sequential process, many of these acts can be performed in another sequence, in parallel, or substantially concurrently. In addition, the order of the acts may be re-arranged. A process may correspond to a method, a thread, a function, a procedure, a subroutine, a subprogram, other structure, or combinations thereof. Furthermore, the methods disclosed herein may be implemented in hardware, software, or both. If implemented in software, the functions may be stored or transmitted as one or more instructions or code on computer-readable media. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
Any reference to an element herein using a designation such as “first,” “second,” and so forth does not limit the quantity or order of those elements, unless such limitation is explicitly stated. Rather, these designations may be used herein as a convenient method of distinguishing between two or more elements or instances of an element. Thus, a reference to first and second elements does not mean that only two elements may be employed there or that the first element must precede the second element in some manner. In addition, unless stated otherwise, a set of elements may comprise one or more elements.
As used herein, the term “substantially” in reference to a given parameter, property, or condition means and includes to a degree that one of ordinary skill in the art would understand that the given parameter, property, or condition is met with a small degree of variance, such as, for example, within acceptable manufacturing tolerances. By way of example, depending on the particular parameter, property, or condition that is substantially met, the parameter, property, or condition may be at least 90% met, at least 95% met, or even at least 99% met.
Automation/control systems (e.g., industrial control systems) are employed for controlling operation of, for example, processes and/or machines, and are typically adaptable to different control applications through configuration and interconnection of multiple control system components or devices (e.g., control modules, input/output (I/O) modules, I/O devices, without limitation). Some control systems may include a processor running or executing a control program to interact with an I/O system (e.g., typically one or more I/O modules or devices) to receive system information in the form of analog and/or digital inputs from field sensors and to provide outputs (analog and/or digital) to one or more actuators. Control systems may be interconnected with management information and other systems in a manufacturing facility, and may be operatively connected to any number of communications networks to facilitate various management functions (e.g., inventory control, accounting, manufacturing control, without limitation) in addition to process/machine control functionality.
A desire to integrate business and control network structures to interconnect control systems with general purpose systems, along with the evolution and development of Ethernet (e.g., in switch mode with full duplex capability), has allowed for Ethernet networks (e.g., such as Ethernet/Internet Protocol networks that allow for direct connection of field devices to an Ethernet network) to be widely used in various applications (e.g., industrial applications).
Time-Sensitive Networking (TSN) is a set of standards developed or under development by the Time-Sensitive Networking task group of the IEEE 802.1 working group. TSN standards aim to improve network delay properties, robustness, reliability, redundancy, and failure detection ability of Ethernet so that Ethernet may be used for real-time control and safety-critical applications. IEEE 802.1CB (“Frame Replication and Elimination for Reliability”) and IEC 62439-3 (“High-availability Seamless Redundancy” (HSR) and “Parallel Redundancy Protocol” (PRP)) standards introduce redundancy and failure mitigation, which is important for certain control applications by using frame replication and duplicate elimination.
Increasing the availability of a network function may be achieved by, for example, using redundant implementations of the network function. For example, in cases of network redundancy (e.g., using redundant grand masters in accordance with IEEE 1588 or IEEE 802.1AS), two functional entities are part of a network and are capable of performing identical functions, but with distinct network identities. In this example, a timing slave may be locked to a grand master and upon failure of the grand master or of path unavailability to the grand master, the timing slave may select to become a slave of another grand master. In this case, frames (e.g., SYNC frames or so called “Announce” frames, without limitation) are sent by the grand masters with sequence numbers particular to each network identity.
In some networks (e.g., high-availability automation networks, such as in process industries (e.g., at a chemical plant)), equipment redundancy may be required. In cases of equipment redundancy, one functional entity placed in a network has two or more redundant equipment instances. Redundant equipment instances can be physically co-located or be physically separated with a network between them. An example is the use of Virtual Router Redundancy Protocol (VRRP, IETF RFC 3768) that makes two routers appear as one to a host.
Equipment redundancy can be implemented using 1:1/1+1, and generally N:M/N+M schemes, where N:M indicates that N entities are in standby and M entities are active, and N+M indicates that all entities are active with an overcapacity of N. The case of 1:1 typically uses an active/standby scheme, where one equipment is active and the other is passive (e.g., not generating frames), whereas 1+1 uses an active/active scheme with both equipment entities active (e.g. both generating frames). In both cases, if operation is to be maintained seamlessly upon an equipment failure, and a function is to generate frames including sequence numbers, the sequence number generators at the redundant equipment entities must be coordinated. An example hereof, is generation of synchronization (SYNC) frames, where an active equipment entity generates sequence number p, and the next SYNC frame is generated from a redundant equipment entity with sequence number p+1. Another example includes generation of redundant frames for network redundancy, such as in accordance with IEEE 802.1CB, IEC 62439-3 PRP and HSR, and IEC 61458-6 MRPD, where one equipment entity generates one frame and the other entity generates a redundant frame, both having the same sequence number.
Sequence numbers, which have monotonic increasing values, may be used for various purposes, such as indicating a current number of acknowledged bytes (e.g., in accordance with TCP, IETF RFC 793 protocol) or the count of an event (e.g., a number of transmitted SYNC frames (e.g., in accordance with IEEE 1588)).
A technical problem appreciated by the inventor of this disclosure is how to generate identical sequence numbers in multiple frames from redundant equipment entities such that an end system will be unaware that the frames did not originate in the same equipment entity, and that the end system may perform a proper function (e.g., IEEE 802.1CB frame elimination) upon receipt of a number of frames.
Generating identical sequence numbers in a number of devices (i.e., two equipment entities) is possible when the sequence number is derived from the time-of-day (TOD) at which the event occurs, assuming each of the number of devices are TOD synchronized. In event-based systems (i.e., that use event-based sequence numbers), sequence numbers may be continuous (whereas TOD systems may skip sequence numbers) making it possible to count a number of packets sent. Further, event-based systems may not require TOD formats and as a result may avoid time-based problems (e.g., leap-second adjustments).
Various embodiments, as described more fully below, relate to synchronization of sequence numbers in networks. More specifically, various embodiments relate to synchronization of sequence numbers to be used in networks including equipment redundancy (e.g., networks employing network redundancy protocols). As will be appreciated, various embodiments of the present disclosure may be implemented in event-based systems and/or networks (e.g., wherein a sequence number may represent an event count). For example, various embodiments may improve operation of a network (e.g., network 200 of
In some embodiments, coordination of event counting sequence number generation in two or more equipment (i.e., two or more devices) may be done via, for example, configuring one or more defined times (e.g., defined time(s) TR; see
In some embodiments, a number of defined times that each equipment is reset may be specified (e.g., set or programmed, without limitation) via a management system, or specified by a master-slave protocol in which a device with the highest or lowest identifier takes on a master role and distributes the number of defined times. Protocols other than master-slave protocols do not exceed the scope of this disclosure.
According to some embodiments, device 302A is configured to generate frame 306A, and device 302B is configured to generate frame 306B, which is the same or similar to frame 306A. In other words, frames 306A and 306B may be the same or slightly different. For example, frames 306A and 306B may have different Ethernet headers (e.g., for reasons of forwarding through a network), however, frames 306A and 306B by configuration may be considered “identical” by device 304. For example, each of device 302A and device 302B may be similarly configured and receive the same or similar inputs so as to generate the same or similar frames, as will be appreciated by a person having ordinary skill in the art.
According to various embodiments, devices 302A and 302B may be configured to generate identical sequence numbers (e.g., substantially simultaneously). In other words, sequence numbers generated by devices 302A and 302B may be synchronized. More specifically, according to some embodiments, each of device 302A and device 302B may respectively include a sequence counter (not shown in
Moreover, each of device 302A and device 302B may be configured to transmit an associated frame to device 304 (e.g., via a bus) including respective inserted sequence numbers. In some embodiments, device 302A and 302B are TOD synchronized, and thus device 302A and device 302B may be configured to transmit an associated frame at about the same time. As described more fully below, to coordinate a sequence counter at device 302A and a sequence counter at device 302B, the respective sequence counters may be reset responsive to an event (e.g., a reset event, such as a power cycle, a timing event (e.g., a periodic reset), and/or one or more other defined times for a reset).
With reference to
Node element portion 400 may further include an event generator 404, a sequence counter 406 (depicted as “counter 406” by
In some non-limiting embodiments, sequence counter 406 may operate logically at one or more layers of OSI model 450 (see
TOD counter 412, which may be synchronized (e.g., according to IEEE 1588 (Precision Time Protocol)) with a network master clock (not shown), may convey a TOD count 411 to logic 410. For example, TOD counter 412 may include a counter (e.g., a nanosecond counter) configured to output a pulse (i.e., TOD count 411) every specified number of nanoseconds (e.g., 1, 2, 10, 100, without limitation). Logic 410, which may include and/or may access a number of predefined times, each denoted as a predefined time TR (e.g., 23 h:59 m:59 s, 11 h:59 m:59 s, 07 hr:59 m:59 s, without limitation), may be configured to compare TOD count 411 to each of the predefined times TR. More specifically, for example, logic 410 may include compare logic configured to compare TOD count 411 to one or more predefined times TR 415 (e.g., predefined times TR may be within a database). Further, in response to TOD count 411 matching any of the predefined times TR 415, logic 410 may transmit a reset signal 424 (e.g., a pulse) to sequence counter 406, and responsive to the reset signal 424, sequence counter 406 may reset to an initial predetermined count value.
Logic 410 may be configured to transmit reset signal 424 to sequence counter 406, additionally or alternatively to TOD count 411 matching any of the defined times TR, in response to a received signal 413 indicative of a power reset (e.g., indicative of a power cycle of an associated network, whether or not a power cycle actually occurred or occurs). As will be further appreciated, sequence counter 406 may be reset by setting all bits (i.e., all outputs of one or more flip-flops) of sequence counter 406 to specific value (e.g., zero or another initial predetermined count value).
Notably, one or more elements of node element portion 400 may be implemented in the same or different communication layers (e.g., according to the OSI model 450, without limitation). As a non-limiting example, event generator 404, sequence counter 406, TOD counter 412, and logic 410 may be implemented in a data link layer (e.g., in a MAC element, without limitation) and logic 408 may be implemented in the data link layer or a physical layer (e.g., in a PHY element, without limitation). Other arrangements among various layers do not exceed the scope of this disclosure.
According to some embodiments, a sequence number generator may be initialized or a sequence number may be reset by resetting a sequence counter (e.g., sequence counter 406 of
At block 604, it may be determined whether or not a reset event (e.g., a timing event) has occurred. If a reset event has occurred, method 600 may proceed to block 606. If a reset event has not occurred, method 600 may return to block 602.
At block 606, variable RESET is set equal to a second value (e.g., one (i.e., RESET=1), i.e., variable RESET is HIGH, or ASSERTED) for a time duration PERIOD, and method may return to block 602. For example, time duration PERIOD is a sufficient time duration such that a count value of the sequence counter (sequence counter 406 of
At block 652, it may be determined whether or not a variable RESET is HIGH (i.e., is RESET=1?). For example, it may be determined whether or not an output of logic 410 (e.g. reset signal 424—see
At each of blocks 702A and 702B, a frame is generated or received, and method 700 may proceed to block 704. More specifically, for example, at block 702A, a frame (e.g., a first instance of frame 402) is generated at a first device (e.g., at device 302A of
At each of blocks 704A and 704B, a sequence number is determined, and method 700 may proceed to block 706. For example, in response to generation of the frame, the sequence number may be incremented by one (i.e., the sequence number may be equal to a previous sequence number+1 (e.g., sequence number=sequence number+1)), and the sequence number may be output from a sequence counter (e.g., sequence counter 406 of
At each of blocks 706A and 706B, the determined sequence number may be inserted into the frame (i.e., the frame generated at associated block 702), and method 700 may proceed to block 708. For example, at block 706A, the sequence number determined at block 704A may be inserted into the frame at the first device (e.g., device 302A of
At each of blocks 708A and 708B, the frames including respective synchronized sequence numbers may be transmitted. For example, at block 708A, the frame generated at the first device (e.g., device 302A of
Modifications, additions, or omissions may be made to method 700 without departing from the scope of the present disclosure. For example, the operations of method 700 may be implemented in differing order. Furthermore, the outlined operations and actions are only provided as examples, and some of the operations and actions may be optional, combined into fewer operations and actions, or expanded into additional operations and actions without detracting from the essence of the disclosed embodiment.
In some embodiments, a sequence number may be reset (i.e., to an integer) at a number (e.g., two or more) of devices in response to an event (e.g., a timing event and/or a power reset event). More specifically, according to some embodiments, in response to a timing event wherein a current network time (e.g., indicative of a time of day) is equal to a predefined time (e.g., a programmed time), a sequence number of a number of devices (e.g., two or more devices) of a network may be reset (i.e., to the initial predetermined count value, which is common among the number of devices). Further, according to some embodiments, in response to power reset (also referred to herein as a “power cycle”) (e.g., of the network), a sequence number of a number of devices (e.g., two or more devices) of the network may be reset (i.e., to the initial predetermined common count value). For example,
At block 802, a variable RESET may be equal to a first value (e.g., to a LOW or UNASSERTED value, RESET=0), and method 800 may proceed to block 804. For example, variable RESET may be an output of logic 410 of
At block 804, it may be determined whether or not a power cycle has occurred. For example, logic 410 of
At block 806, it may be determined whether or not a timing event has occurred. More specifically, it may be determined whether a current network time is equal to any of one or more pre-defined time (e.g., predefined times TR 415 shown in
At block 808, variable RESET is set equal to a second value (e.g., to a HIGH or ASSERTED value, RESET=1) for a time duration PERIOD, and method 800 may return to block 802. For example, logic 410 of
Modifications, additions, or omissions may be made to method 800 without departing from the scope of the present disclosure. For example, the operations of method 800 may be implemented in differing order. Furthermore, the outlined operations and actions are only provided as examples, and some of the operations and actions may be optional, combined into fewer operations and actions, or expanded into additional operations and actions without detracting from the essence of the disclosed embodiment. For example, the operations at blocks 804 and 806 may be interchanged. As another example, the operation at block 804 may be omitted, and method 800 may proceed from block 802 to block 808.
For example, frames may be generated in a number M of devices of a network (e.g., some or all devices of the network) at a rate R starting at time Ts (e.g., frames are transmitted at TOD=Ts, Ts+1/R, Ts+2*1/R, and so on). A frame generation time, TG, for the jth device is TG, j. The maximum difference in generation time, Max (TG, j−TG, k), where j=1 . . . M, and k=1 . . . M, j k, is assumed to be much smaller than 1/R. If a reset occurs at reset time TR=Ts+N*1/R, i.e. at a frame generation time, a sequence number inserted to the frame may be undetermined. In some embodiments, to avoid simultaneous frame generation and sequence number reset operations, in at least some devices of a network, a reset may be postponed a fraction of 1/R after a frame generation time. More specifically, according to at least some embodiments, one or more defined times TR may be between frame generation times (e.g., TR=Ts+½*1/R+N*1/R).
At block 902, a reset event may be detected at each of a first device and a second device of a network, and method 900 may proceed to block 904. For example, logic 410 of
At block 904, at each of the first device and the second device, an associated sequence number may be reset to an initial predetermined count value, which initial predetermined count value is common among the first and second device, responsive to the reset event, and method 900 may proceed to block 906. For example, the sequence number may be reset to the integer (e.g., N=0 or another initial predetermined count value) responsive to a timing event (e.g., a current network time being equal to a defined time TR).
At block 906, at each of the first device and the second device, a frame for transmission may be generated, and method 900 may proceed to block 908. A frame generated via the first device may be substantially identical to a frame generated via the second device. For example, the frame (e.g., frame 402 of
At block 908, at each of the first device and the second device, the associated sequence number may be incremented in response to generation of the associated frame, and method 900 may proceed to block 910. For example, a sequence number may be incremented via sequence counter 406 of
At block 910, at each of the first device and the second device, the associated sequence number, which may be indicative of a number of frames generated and/or received at the associated device since the reset event of block 904, may be determined, and method 900 may proceed to block 912. More specifically, the sequence number, which may be indicative of a number of frames generated and/or received at a node element (e.g., node element portion 400 of
At block 912, the associated sequence number may be inserted into an associated frame at each of the first device and the second device, and method 900 may proceed to block 914. For example, the sequence number may be inserted into an available portion of a frame (e.g., frame 402 of
At block 914, at each of the first device and the second device, the frame including a sequence number may be transmitted, and method 900 may proceed to block 916. For example, an associated frame may be transmitted from the first device and the second device to an end system (e.g., end system 304) (e.g., via a bus).
At block 916, a first frame including the sequence number and transmitted from the first device (e.g., device 302A of
At block 918, at the end system, either the first frame or the second frame may be discarded. More specifically, because the first frame and the second frame include identical sequence numbers, the end system may discard either the first frame or the second frame.
Modifications, additions, or omissions may be made to method 900 without departing from the scope of the present disclosure. For example, the operations of method 900 may be implemented in differing order. Furthermore, the outlined operations and actions are only provided as examples, and some of the operations and actions may be optional, combined into fewer operations and actions, or expanded into additional operations and actions without detracting from the essence of the disclosed embodiment.
As used in the present disclosure, the terms “module” or “component” may refer to specific hardware implementations configured to perform the actions of the module or component and/or software objects or software routines that may be stored on and/or executed by general purpose hardware (e.g., computer-readable media, processing devices, etc.) of the computing system. In some embodiments, the different components, modules, engines, and services described in the present disclosure may be implemented as objects or processes that execute on the computing system (e.g., as separate threads). While some of the system and methods described in the present disclosure are generally described as being implemented in software (stored on and/or executed by general purpose hardware), specific hardware implementations or a combination of software and specific hardware implementations are also possible and contemplated.
As used in the present disclosure, the term “combination” with reference to a plurality of elements may include a combination of all the elements or any of various different sub-combinations of some of the elements. For example, the phrase “A, B, C, D, or combinations thereof” may refer to any one of A, B, C, or D; the combination of each of A, B, C, and D; and any sub-combination of A, B, C, or D such as A, B, and C; A, B, and D; A, C, and D; B, C, and D; A and B; A and C; A and D; B and C; B and D; or C and D.
Terms used in the present disclosure and especially in the appended claims (e.g., bodies of the appended claims) are generally intended as “open” terms (e.g., the term “including” should be interpreted as “including, but not limited to,” the term “having” should be interpreted as “having at least,” the term “includes” should be interpreted as “includes, but is not limited to,” etc.).
Additionally, if a specific number of an introduced claim recitation is intended, such an intent will be explicitly recited in the claim, and in the absence of such recitation no such intent is present. For example, as an aid to understanding, the following appended claims may contain usage of the introductory phrases “at least one” and “one or more” to introduce claim recitations. However, the use of such phrases should not be construed to imply that the introduction of a claim recitation by the indefinite articles “a” or “an” limits any particular claim containing such introduced claim recitation to embodiments containing only one such recitation, even when the same claim includes the introductory phrases “one or more” or “at least one” and indefinite articles such as “a” or “an” (e.g., “a” and/or “an” should be interpreted to mean “at least one” or “one or more”); the same holds true for the use of definite articles used to introduce claim recitations.
In addition, even if a specific number of an introduced claim recitation is explicitly recited, those skilled in the art will recognize that such recitation should be interpreted to mean at least the recited number (e.g., the bare recitation of “two recitations,” without other modifiers, means at least two recitations, or two or more recitations). Furthermore, in those instances where a convention analogous to “at least one of A, B, and C, etc.” or “one or more of A, B, and C, etc.” is used, in general such a construction is intended to include A alone, B alone, C alone, A and B together, A and C together, B and C together, or A, B, and C together, etc.
Further, any disjunctive word or phrase presenting two or more alternative terms, whether in the description, claims, or drawings, should be understood to contemplate the possibilities of including one of the terms, either of the terms, or both terms. For example, the phrase “A or B” should be understood to include the possibilities of “A” or “B” or “A and B.”
While the present disclosure has been described herein with respect to certain illustrated embodiments, those of ordinary skill in the art will recognize and appreciate that the present invention is not so limited. Rather, many additions, deletions, and modifications to the illustrated and described embodiments may be made without departing from the scope of the invention as hereinafter claimed along with their legal equivalents. In addition, features from one embodiment may be combined with features of another embodiment while still being encompassed within the scope of the invention as contemplated by the inventor.
Claims
1. A network, comprising:
- a first device; and
- a second device that is time-of-day (TOD) synchronized with the first device, each of the first device and the second device configured to: generate a frame for transmission, wherein the frame generated via the second device is substantially identical to the frame generated via the first device; increment, at each of the first device and the second device, a count value responsive to the generation of the associated frame, wherein the count value at the first device is the same as the count value at the second device; insert the count value into the associated frame; transmit the associated frame including the count value; and reset the count value to a predetermined initial count value responsive to a timing event detectable at the first device and at the second device.
2. The network of claim 1, wherein each of the first device and the second device are further configured to compare one or more defined times to a current network time to detect the timing event.
3. The network of claim 1, wherein the first device comprises a master device and the second device comprise a slave device, wherein the first device is configured to define the timing event.
4. The network of claim 1, wherein each of the first device and the second device include an associated sequence counter to generate the count value.
5. The network of claim 4, wherein each of the first device and the second device are configured to reset, responsive to the timing event, its associated sequence counter for a sufficient time duration such that the count value is reset to the initial predetermined count value.
6. The network of claim 1, further comprising a third device configured to:
- receive a first frame including the count value from the first device;
- receive a second frame including the count value from the second device; and
- discard either the first frame or the second frame.
7. A method of synchronizing sequence numbers at a number of redundant devices of a network, the method comprising:
- resetting, at each of a first device and a second device of the network, a sequence number to an initial predetermined count value responsive to a reset event;
- generating, at each of the first device and the second device, a frame for transmission, wherein the frame generated via the first device is substantially identical to the frame generated via the second device;
- incrementing, at each of the first device and the second device, the sequence number responsive to generation of the associated frame, the sequence number being indicative of a number of frames generated at the associated device since the reset event; and
- inserting, at each of the first device and the second device, the sequence number into an associated frame.
8. The method of claim 7, wherein resetting the sequence number to the initial predetermined count value responsive to the reset event comprises resetting the sequence number responsive to a timing event.
9. The method of claim 8, further comprising detecting the timing event.
10. The method of claim 9, further comprising comparing a current time to a defined time, wherein detecting the timing event comprises detecting the timing event responsive to the current time being equal to the defined time.
11. The method of claim 8, further comprising:
- receiving, at each of the first device and the second device, a signal indicative of a current network time; and
- comparing, at each of the first device and the second device, the signal to one or more defined times to detect the timing event.
12. The method of claim 7, wherein incrementing the sequence number comprises incrementing the sequence number via an associated sequence counter.
13. The method of claim 7, further comprising transmitting an associated frame including the sequence number from each of the first device and the second device.
14. The method of claim 13, further comprising:
- receiving, at an end system, a first frame including the sequence number from the first device;
- receiving, at the end system, a second frame including the sequence number from the second device; and
- discarding, at the end system, either the first frame or the second frame.
15. An equipment entity in a communication work, comprising:
- a node element configured to: generate a data frame for transmission; increment a count value in response to generation of the data frame; insert the count value into the data frame as a sequence number; transmit the data frame via a communication bus; and reset the count value to an initial predetermined count value responsive to a timing event.
16. The equipment entity of claim 15, wherein the node element is further configured to detect the timing event responsive to a current network time being equal to a defined time.
17. The equipment entity of claim 15, wherein the node element comprises logic configured to:
- receive a signal indicative of a current network time;
- compare the signal to one or more defined times to detect the timing event; and
- in response to the timing event, convey a second signal to a sequence counter to reset the sequence counter.
18. The equipment entity of claim 15, wherein the node element comprises a sequence counter configured to increment the count value in response to generation of the data frame.
19. The equipment entity of claim 18, wherein the node element is configured to reset the sequence counter for a sufficient time duration such that the count value is reset to the initial predetermined count value.
20. The equipment entity of claim 18, wherein the node element includes logic configured to receive the count value from the sequence counter and insert the count value into an available portion of the data frame.
Type: Application
Filed: Oct 5, 2020
Publication Date: Sep 2, 2021
Inventor: Lars Ellegaard (Copenhagen S)
Application Number: 16/948,908