A method including providing a network element including an ingress port, an egress port, and a delay equalizer, providing an equalization message generator, receiving, at the ingress port, a plurality of data packets from multiple sources, each data packet having a source indication and a source-provided time stamp, determining, at the ingress port, a received time stamp for at least some of the received data packets, passing the received data packets, the source-provided time stamps, and the received time stamps to the delay equalizer, the delay equalizer computing, for each source, a delay for synchronizing that source with other sources, the equalization message generator receiving an output, for each source, including the delay for that source, from the delay equalizer and producing a delay message instructing each source regarding the delay for that source, and sending, from the egress port, the delay message to each source. Related apparatus is also provided.
|
1. A method comprising:
providing a network element comprising an ingress port, an egress port, and a delay equalizer;
providing an equalization message generator;
receiving, at the ingress port, a plurality of data packets from multiple sources, each data packet having a source indication and a source-provided time stamp;
determining, at the ingress port, a received time stamp for at least some of the received data packets;
passing the received data packets, the source-provided time stamps, and the received time stamps to the delay equalizer;
the delay equalizer computing, for each source, a delay for synchronizing that source with other sources;
the equalization message generator receiving an output, for each source, comprising the delay for that source, from the delay equalizer and producing a delay message instructing each source regarding the delay for that source; and
sending, from the egress port, the delay message to each source.
13. Apparatus comprising:
a network element comprising:
an ingress port;
an egress port; and
a delay equalizer; and
an equalization message generator,
the ingress port being configured for receiving a plurality of data packets from multiple sources external to the apparatus, each data packet having a source indication and a source-provided time stamp,
the ingress port being further configured for determining a received time stamp for at least some of the data packets and to pass the received data packets, the source-provided time stamps, and the received time stamps to the delay equalizer,
the delay equalizer being configured for computing, for each source, a delay for synchronizing that source with other sources,
the equalization message generator being configured for receiving an output, for each source, comprising the delay for that source, from the delay equalizer and for producing a delay message instructing each source regarding the delay for that source, and
the egress port being configured for sending the delay message to each source.
2. The method according to
3. The method according to
4. The method according to
5. The method according to
6. The method according to
7. The method according to
8. The method according to
9. The method according to
10. The method according to
11. The method according to
12. The method according to
for each data packet, determining a communication trip time for the source which sent that data packet by comparing the received time stamp for that packet to the source-provided time stamp for that packet;
determining a maximum communication trip time for the sources; and
computing, for each source, a difference between the communication time for that source and the maximum communication time, and assigning the delay for that source based on the computed difference for that source.
14. Apparatus according to
15. Apparatus according to
16. Apparatus according to
17. Apparatus according to
18. Apparatus according to
19. Apparatus according to
20. Apparatus according to
21. Apparatus according to
22. Apparatus according to
23. Apparatus according to
24. Apparatus according to
for each data packet, determining a communication trip time for the source which sent that data packet by comparing the received time stamp for that packet to the source-provided time stamp for that packet;
determining the maximum communication trip time for the sources; and
computing, for each source, a difference between the communication time for that source and the maximum communication time, and assigning the delay for that source based on the computed difference for that source.
|
The present invention relates to stream synchronization.
In the past, SDI (Serial Digital Interface) switches have been used for stream synchronization. In the particular example of media and entertainment, when Internet Protocol (IP) was not used in the past for media, the video switcher would re-clock the streams with up to one frame of buffer (about 25 milliseconds, frame rate dependent) if the flows were not aligned. Over time, an increase in bandwidth caused a need for larger buffers. With the move to IP, with IP streams being switched by an IP switch, using existing techniques, synchronization cannot be done except on the receiver device, since holding a video frame or audio sample is not what an IP switch is designed for. Furthermore, holding a video frame or audio sample would introduce undesirable latency. The receiver-based flow switch requires doubling of bandwidth, since both the current flow and the new flow need to be sent to the receiver, since flow alignment may not be guaranteed.
The present invention, in certain embodiments thereof, seeks to provide an improved system and method for synchronizing streams.
There is thus provided in accordance with an exemplary embodiment of the present invention a method including providing a network element including an ingress port, an egress port, and a delay equalizer, providing an equalization message generator, receiving, at the ingress port, a plurality of data packets from multiple sources, each data packet having a source indication and a source-provided time stamp, determining, at the ingress port, a received time stamp for at least some of the received data packets, passing the received data packets, the source-provided time stamps, and the received time stamps to the delay equalizer, the delay equalizer computing, for each source, a delay for synchronizing that source with other sources, the equalization message generator receiving an output, for each source, including the delay for that source, from the delay equalizer and producing a delay message instructing each source regarding the delay for that source, and sending, from the egress port, the delay message to each source.
Further in accordance with an exemplary embodiment of the present invention the network element includes the equalization message generator.
Still further in accordance with an exemplary embodiment of the present invention the ingress port includes a plurality of ingress ports.
Additionally in accordance with an exemplary embodiment of the present invention the determining includes determining a received time stamp for all of the received data packets.
Moreover in accordance with an exemplary embodiment of the present invention each source sets a source delay based on the delay message received by each source.
Further in accordance with an exemplary embodiment of the present invention, after each source sets the source delay, packets sent from each source to the network element are received at the network element in synchronization with packets sent from each other source.
Still further in accordance with an exemplary embodiment of the present invention each source includes at least one stream source.
Additionally in accordance with an exemplary embodiment of the present invention the at least one stream source includes one of an audio source, a video source, and an audio/video source.
Moreover in accordance with an exemplary embodiment of the present invention the at least one stream source includes a meta-data source.
Further in accordance with an exemplary embodiment of the present invention the meta-data includes at least one of meta-data associated with audio, meta-data associated with video, meta-data associated with a financial application, and meta-data associated with telemetry.
Still further in accordance with an exemplary embodiment of the present invention the network element also includes an equalization database configured for storing, for each data packet, the source-provided time stamp, the received time stamp, and the delay.
Additionally in accordance with an exemplary embodiment of the present invention the delay equalizer computes the delay for each source by performing the following: for each data packet, determining a communication trip time for the source which sent that data packet by comparing the received time stamp for that packet to the source-provided time stamp for that packet, determining a maximum communication trip time for the sources, and computing, for each source, a difference between the communication time for that source and the maximum communication time, and assigning the delay for that source based on the computed difference for that source.
There is also provided in accordance with another exemplary embodiment of the present invention apparatus including a network element including an ingress port, an egress port, and a delay equalizer, and an equalization message generator, the ingress port being configured for receiving a plurality of data packets from multiple sources external to the apparatus, each data packet having a source indication and a source-provided time stamp, the ingress port being further configured for determining a received time stamp for at least some of the data packets and to pass the received data packets, the source-provided time stamps, and the received time stamps to the delay equalizer, the delay equalizer being configured for computing, for each source, a delay for synchronizing that source with other sources, the equalization message generator being configured for receiving an output, for each source, including the delay for that source, from the delay equalizer and for producing a delay message instructing each source regarding the delay for that source, and the egress port being configured for sending the delay message to each source.
Further in accordance with an exemplary embodiment of the present invention the network element includes the equalization message generator
Still further in accordance with an exemplary embodiment of the present invention the ingress port includes a plurality of ingress ports.
Additionally in accordance with an exemplary embodiment of the present invention the determining includes determining a received time stamp for all of the received data packets.
Moreover in accordance with an exemplary embodiment of the present invention each source sets a source delay based on the delay message received by each source.
Further in accordance with an exemplary embodiment of the present invention after each source sets the source delay, packets sent from each source to the network element are received at the network element in synchronization with packets sent from each other the source.
Still further in accordance with an exemplary embodiment of the present invention each source includes at least one stream source.
Additionally in accordance with an exemplary embodiment of the present invention the at least one stream source includes one of an audio source, a video source, and an audio/video source.
Moreover in accordance with an exemplary embodiment of the present invention the at least one stream source includes a meta-data source.
Further in accordance with an exemplary embodiment of the present invention the meta-data includes at least one of meta-data associated with audio, meta-data associated with video, meta-data associated with a financial application, and meta-data associated with telemetry.
Sill further in accordance with an exemplary embodiment of the present invention the network element also includes an equalization database configured for storing, for each data packet, the source-provided time stamp, the received time stamp, and the delay.
Additionally in accordance with an exemplary embodiment of the present invention the delay equalizer is configured for computing the delay for each source by performing the following: for each data packet, determining a communication trip time for the source which sent that data packet by comparing the received time stamp for that packet to the source-provided time stamp for that packet, determining the maximum communication trip time for the sources, and computing, for each source, a difference between the communication time for that source and the maximum communication time, and assigning the delay for that source based on the computed difference for that source.
The present invention will be understood and appreciated more fully from the following detailed description, taken in conjunction with the drawings in which:
Generally speaking, a problem can arise when a number of stream sources (sources of streams such as, by way of non-limiting example, audio/video streams) each send a stream to a central device, such as a switching device. In many applications, it can be desirable to synchronize the various stream sources so that, for example, if a transition is intended to occur at a certain time (for example, at 10:00:00 AM), each source will be synchronized to exactly the same time and it will be easier for the transition to take place. A problem arises in that, in general, different sources are not exactly synchronized; even if each source is synchronized to a high-precision clock, differences in distance and in communication media from the switching device can lead to a lack of synchronization at the switching device. In the view of the inventors of the present example, there are no fully adequate known solutions to such a problem.
In one particular non-limiting example, consider the example of the media and entertainment market. While in general media, entertainment, and audio/video are described herein, it is appreciated that exemplary embodiments of the present invention are not limited to such systems. Rather, it is contemplated that, by way of non-limiting example, certain embodiments of the present invention may apply to any appropriate data stream, such as, without limiting the generality of the foregoing, meta-data streams (which might include meta-data associated with audio or video; meta-data associated with a financial application; meta-data associated with telemetry; or any other appropriate meta-data).
In media and entertainment, often many source streams from many transmission devices are forwarded to a selector switch. The media and entertainment producer selects a single stream from a set of source streams (which could, by way of particular non-limiting examples, be a live sporting event; could apply in any appropriate production environment such as a large broadcaster who needs to change the input for their output, and needs to align correctly; could apply at a particular time, such as midnight, when moving to a different content line-up, which needs to do it with continuity, known as “salvo”). The selected single stream is to be used by a given device via selector switch; an example is the live stream to be aired from any one of the sources, such as, by way of non-limiting example a camera.
When the producer replaces the source for a broadcast stream, the replaced stream and the replacing stream should be closely synchronized in order to assure a smooth transition between the streams. In case the streams are not synchronized, the broadcast stream may suffer from lack or duplication of data which will cause for stream quality degradation due to cutting in the middle of the transmitted image, audio sample or meta-data.
Reference is now made to
The exemplary system of
One particular non-limiting example of a switch which could be modified in accordance with the description herein is the Spectrum-2 family of switches, commercially available from Mellanox Technologies Ltd. Similarly, one particular non-limiting example of both a NIC and an HCA is the ConnectX-5 device, also commercially available from Mellanox Technologies limited.
The network element 100 comprises an ingress port 105, at which packets from stream sources (exemplary embodiments of which are described in more detail below with reference to
The network element 100 further comprises an incoming time stamp unit 110, which applies a time stamp to each packet received at the ingress port 105, indicating time of receipt of each packet.
The network element 100 further comprises a buffer 115, which buffers incoming packets on their way to further processing by other elements of the network element 100.
Received packets are then sent to a return trip time (RTT) and equalization database 120, which is operatively associated with an RTT calculator 125, both of which are comprised in the network element 100. The RTT calculator calculates a round trip time for communicating with the stream sources, based on the time stamp indicating a time at which the packets were sent to the network element 100, and on the time stamp applied by the time stamp unit 110 indicating a time at which the packets were received by the network element 100; generally speaking, the RTT will be approximately twice the difference between the two time stamps. For greater precision, packets may be sent by the network element 100 to the stream sources, and responded to with return packets, thus more directly determining RTT.
The RTT is provided to the RTT and equalization database 120, which stores round trip times for a plurality of stream sources. The term “equalization” in its various grammatical forms, as discussed in further detail below, refers herein to determining a value based on computed RTT for all streams, in order to provide synchronization as explained above.
The RTT for each stream source is provided to a switch delay equalizer 130 comprised in the network element 130. The switch delay equalizer compares the RTT for each stream source, and determines, for each stream source, a delay which is to be applied in order to synchronize that stream source with other stream sources.
In exemplary embodiments of the present invention, the maximum RTT for the various stream sources, within a given media frame, is determined. Generally speaking, the RTT for a stream source which is farthest from the network element 100 will be the maximum. In exemplary embodiments, a goal is to compensate for alignment of media offset between the various stream sources, so that each stream source will present packets to the network element 100 with simultaneous frame start, in so far as possible. In general, packets sent from a given stream source are provided with a flag or sequence number indicating frame start.
In certain exemplary embodiments of the present invention, one-way packet transmission delay may be used instead of RTT. In such a case, persons skilled in the art will appreciate that replacing the term “RTT” herein with “one-way delay” or “frame offset arrival delay” will thus yield certain alternative exemplary embodiments, mutatis mutandis.
The switch delay equalizer 130 provides the determined switch delay for each stream source to an equalization message generator 135 comprised in the network element 100.
While the equalization message generator 135 is shown and described as comprised in the network element 100 for ease of depiction and description, it is appreciated that, in alternative exemplary embodiments of the present invention, the equalization message generator may be external to the network element 100. In one particular non-limiting example, a device which identifies lip-sync issues based on visual image processing may comprise an equalization message generator 135 external to the network element 100, and may send equalization messages as described herein to the network element 100.
Similarly, it is appreciated that, in certain exemplary embodiments of the present invention, other arrangements of elements, in which certain other elements shown as comprised in the network element 100 are in operative association with the network element 100 but not necessarily comprised therein, may be used.
The equalization message generator 135 produces, for each stream source, an equalization message, intend for each such stream source, informing the stream source of a delay to bring that steam source into synchronization with other stream sources.
The network element 100 also comprises buffers 140 and 145, and an outgoing time stamp unit 150; in certain exemplary embodiments of the present invention, the outgoing time stamp unit 150 may be optional. Calculated RTT values are sent to a buffer 140, while equalization messages produced by the equalization message generator 135 are sent to a buffer 145. The equalization messages each receive an egress time stamp at a time stamp unit 150, and are passed on to an egress port 155, for sending to an appropriate stream source. It is appreciated that while buffers 140 and 145 are shown as separate buffers for purposes of ease of understanding of exemplary embodiments of the present invention, alternatively only a single buffer may be used.
Reference is now additionally made to
The stream source 200 comprises an input port 205, in operative communication with the egress port 155 (
The stream source includes one or more stream generators 235, which generate streams (such as audio-visual streams) comprising packets, which are sent to delay and shaping buffers 230. In the delay and shaping buffers 230, packets produced by the stream generators 235 are delayed in accordance with the delay indicated in received equalization messages and shaped/paced so that the packets are output with appropriate spacing therebetween, as is known in the art; the packets are then sent on to an output port 240 in operative communication with the ingress port 105 (
Reference is now made to
In the process of
Once delay equalization has occurred, streams sent from each of the stream sources 200 to the network element 100 arrive in a synchronized manner, as is indicated in the portion of the process depicted in
Reference is now additionally made to
Reference is now made to
A switch (as a non-limiting example of a network element) is provided. The switch includes an ingress port, and egress port, a delay equalizer, and an equalization message generator (step 510).
At the ingress port, a plurality of data packets are received from multiple sources. Each data packet has a source indication and a time stamp provided at the respective source (step 520).
At the ingress port, a received time stamp is determined for each data packet (step 530). In alternative exemplary embodiments of the present invention, instead of determining a received time stamp for each data packets, the determination may be made for only certain packets such as, by way of particular non-limiting example, “start of frame” packets.
The received data packets, the source-provided time stamps, and the received time stamps are passed to the delay equalizer (step 540).
For each source, the delay equalizer computes a delay for synchronizing that source with other sources (step 550).
The equalization message generator receives, from the delay equalizer, an output for each source. The output includes the delay for that source. The equalization message generator produces a delay message instructing each source regarding the delay for that source (step 560).
The respective delay messages are sent from the egress port to each source (step 570).
In exemplary embodiments of the present invention, the process of
It is appreciated that software components of the present invention may, if desired, be implemented in ROM (read only memory) form. The software components may, generally, be implemented in hardware, if desired, using conventional techniques. It is further appreciated that the software components may be instantiated, for example: as a computer program product or on a tangible medium. In some cases, it may be possible to instantiate the software components as a signal interpretable by an appropriate computer, although such an instantiation may be excluded in certain embodiments of the present invention.
It is appreciated that various features of the invention which are, for clarity, described in the contexts of separate embodiments may also be provided in combination in a single embodiment. Conversely, various features of the invention which are, for brevity, described in the context of a single embodiment may also be provided separately or in any suitable subcombination.
It will be appreciated by persons skilled in the art that the present invention is not limited by what has been particularly shown and described hereinabove. Rather the scope of the invention is defined by the appended claims and equivalents thereof:
Levi, Dotan David, Kernen, Thomas, Almog, Ariel
Patent | Priority | Assignee | Title |
11606408, | Aug 19 2019 | Bose Corporation | Audio synchronization in wireless systems |
11835999, | Jan 18 2022 | MELLANOX TECHNOLOGIES, LTD. | Controller which adjusts clock frequency based on received symbol rate |
11915315, | Aug 10 2022 | BGC PARTNERS, L P | Method, apparatus and system for time stamping and sequencing data items |
11917045, | Jul 24 2022 | Mellanox Technologies, LTD; MELLANOX TECHNOLOGIES, LTD. | Scalable synchronization of network devices |
ER2658, |
Patent | Priority | Assignee | Title |
7336646, | Oct 26 2004 | Nokia Technologies Oy | System and method for synchronizing a transport stream in a single frequency network |
7346698, | Dec 20 2000 | G. W. Hannaway & Associates; G W HANNAWAY & ASSOCIATES | Webcasting method and system for time-based synchronization of multiple, independent media streams |
20080181260, | |||
20110051754, | |||
20150063375, | |||
20150163048, | |||
20170353749, | |||
20190089615, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Feb 28 2019 | KERNEN, THOMAS | MELLANOX TECHNOLOGIES TLV LTD | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 048497 | /0828 | |
Feb 28 2019 | LEVI, DOTAN DAVID | MELLANOX TECHNOLOGIES TLV LTD | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 048497 | /0828 | |
Mar 04 2019 | MELLANOX TECHNOLOGIES TLV LTD. | (assignment on the face of the patent) | / | |||
Mar 05 2019 | ALMOG, ARIEL | MELLANOX TECHNOLOGIES TLV LTD | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 048566 | /0901 | |
Nov 29 2021 | MELLANOX TECHNOLOGIES TLV LTD | Mellanox Technologies, LTD | MERGER SEE DOCUMENT FOR DETAILS | 058517 | /0564 |
Date | Maintenance Fee Events |
Mar 04 2019 | BIG: Entity status set to Undiscounted (note the period is included in the code). |
Feb 21 2024 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Date | Maintenance Schedule |
Sep 15 2023 | 4 years fee payment window open |
Mar 15 2024 | 6 months grace period start (w surcharge) |
Sep 15 2024 | patent expiry (for year 4) |
Sep 15 2026 | 2 years to revive unintentionally abandoned end. (for year 4) |
Sep 15 2027 | 8 years fee payment window open |
Mar 15 2028 | 6 months grace period start (w surcharge) |
Sep 15 2028 | patent expiry (for year 8) |
Sep 15 2030 | 2 years to revive unintentionally abandoned end. (for year 8) |
Sep 15 2031 | 12 years fee payment window open |
Mar 15 2032 | 6 months grace period start (w surcharge) |
Sep 15 2032 | patent expiry (for year 12) |
Sep 15 2034 | 2 years to revive unintentionally abandoned end. (for year 12) |