Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

WHITE PAPER IT’S ABOUT (PRECISION) TIME

IT’S ABOUT (PRECISION) TIME

With the transition to IP Introduction Why PTP?


networks for all aspects of the
signal processing path, accurate Video signals have always depended on The simple answer is that PTP is
timing becomes more difficult, precise synchronization along the entire required by modern media standards,
due to the fundamentally delivery chain from camera to consumer including SMPTE ST 2110 for IP video
asynchronous, non- display, whether in analog, digital or production and AES67 for IP audio. But
deterministic nature of packet- compressed formats. Timing drives that doesn’t explain the reasoning
based networks. Fortunately, a every aspect of signal delivery, behind the decisions of the standards
solution is available, in the form particularly synchronizing video to groups. To delve deeper, it makes sense
of IEEE 1588 Precision Time audio to achieve “lip sync.” to begin with a brief look at the history
Protocol (PTP). When used With the transition to IP networks for all of video and audio signal processing
properly, this technology can aspects of the signal processing path, and to see why synchronization and
synchronize device clocks to accurate timing becomes more difficult, timing are so important.
within nanoseconds across a due to the fundamentally asynchronous,
large network with many non-deterministic nature of packet- First and foremost, video signals are
hundreds of nodes. When these based networks. Fortunately, a solution built on a foundation of timing. Each
clocks are derived from GPS is available, in the form of IEEE 1588 frame of a video signal is built up of
(Global Positioning System) Precision Time Protocol (PTP). When thousands or millions of pixels, each of
signals, PTP can provide a very used properly, this technology can which requires a data value to be
accurate and stable timebase for synchronize device clocks to within generated by a camera or delivered to a
all types of signals within nanoseconds across a large network display in the correct order and at
modern media operations. with many hundreds of nodes. When precisely the correct time. Video signals
these clocks are derived from GPS contain sync signals that indicate the
(Global Positioning System) signals, PTP start of each video scan line and the
can provide a very accurate and stable locations of every line within each video
timebase for all types of signals within frame. These sync signals are used by
modern media operations. the receiving device to properly place

Artel • White Paper • 1


WHITE PAPER IT’S ABOUT (PRECISION) TIME

each pixel in the appropriate location sync distribution path for video and standards, every media signal type (e.g.
within the video image. In traditional another one for audio. Clearly, a video or audio) has a defined alignment
video networks based on SDI, sync PTP-based solution is much simpler. point. Every signal is then defined to
signals are normally generated centrally have its alignment point occur
and distributed to each device in the simultaneously with every other signal’s
form of a “black burst” or “tri-level Using the SMPTE Epoch for alignment point at the precise moment
sync” signal in order to “genlock” the Synchronization of the epoch. From this common origin,
devices to “house sync.” For digital the time of occurrence of any future
audio, a similar function is performed In order to genlock a group of cameras alignment point for any signal can then
using a DARS (Digital Audio Reference or sync several microphones, two things be simply calculated as a multiple of the
Signal). In traditional studio are needed: a synchronized clock and a exact period of the signal. Using this
architectures, distributing these sync phase reference for each type of media basic concept, each device can align
signals requires separate, overlay signal. This second requirement is the itself to a common, aligned reference
networks that connect to every device, purpose of an “epoch,” which is a (very) simply by knowing the (precise) current
adding considerable cost and specific point in time that can serve as a time, as referenced to the common
complexity to the overall system. common time reference for multiple epoch.
signals. The SMPTE standard ST
With Ethernet networks, which are 2059-1:2015 “Generation and Alignment Perhaps a quick example will help to
inherently bi-directional, it is possible to of Interface Signals to the SMPTE explain this concept. Consider a 25 Hz
distribute a SD video signal
common time that has a period of
signal using IEEE 40 msec. As defined
1588 PTP to every in ST 2059-1, the
device without a alignment point for
separate overlay the digital version
sync network. Each of this signal is
device can then horizontal sample
accurately 732 of line 1 of this
synchronize its video signal. By
internal clock to a definition, this
single master clock. alignment point
This clock time can occurred precisely
then be used to at the time of the
accurately achieve epoch. Another
media signal alignment point
synchronization by occurred exactly 40
means of the SMPTE msec later,
Epoch, explained followed by
below. another one in at
80 msec, and so
Figure 1 shows a network made up of Epoch” provides this reference point, forth, as shown in Figure 2. To get in
multiple devices that all share a which is precisely 1970-01-01T00:00:00 phase with this signal, all that a device
common clock using PTP derived from TAI (Midnight, January 1st 1970 needs to do is calculate how many
GPS. Using this clock, each device can International Atomic Time). milliseconds have occurred since the
be referenced to the SMPTE Epoch, and epoch, and then divide the result by 40.
hence to each other, without any need With an epoch, it becomes possible to The remainder of this division gives the
for an overlay clock distribution calculate the phase of any periodic number of milliseconds since the last
network. Contrast this with a traditional signal that can be referenced to that occurrence of the alignment point
setup, which would have required one epoch. As defined in SMPTE and other (shown as t1 in figure 2), which can in

Artel • White Paper • 2


WHITE PAPER IT’S ABOUT (PRECISION) TIME

turn be used to calculate the time when


the next alignment point will occur (t2
in figure 2). Then, all a device needs to
do is align its internal video sync
reference to that alignment point, and,
presto, it becomes synced to every
other device referenced to the common
epoch.

Benefits of PTP

With precise time distribution, the need


for setting clocks across multiple
devices is eliminated, much like systems
that run NTP, only significantly more
accurate. In addition, PTP provides a
number of other benefits that are
extremely advantageous for media
networks, including:

• Multiple Media Formats – Using the • Suitable for any IP-connected • Synchronize Multiple Locations
clock/epoch system described Device – Interface cards and – PTP grandmasters are commonly
above, any device can accurately modules that provide the tied to GPS signals, making it
calculate the precise current phase timestamping function required for possible to deliver accurate clock
of any media signal (video, audio, PTP are widely available on the signals to multiple locations – even
etc.) – even signals with different market. As PTP becomes ones separated by hundreds of
time bases (such as 50 and 59.94 Hz entrenched in other markets miles. Since each location can use
video). There is no requirement to (financial services, electric power the same SMPTE Epoch and a clock
have one flavor of PTP for U.S. distribution, and factory locked to the same GPS reference,
media networks and a different automation, for example) the each location can share precisely
flavor for European media networks availability of these components synchronized video and audio
– both systems can work from the and the appropriate network signals with other locations,
same precision timing signal. infrastructure devices will continue eliminating the need to distribute a
to increase. sync signal from one location to
• No Sync Overlay Network – Since another.
the PTP clock signals are • Accurate for Media Applications
distributed over Ethernet - With accuracy levels better than 1
connections that can also be used microsecond, PTP offers much PTP System Components
for media signals, there is no longer better precision than what is
any need to install an overlay required to support video Distributing PTP over an IP/Ethernet
network to distribute synchronization, and plenty of network requires some specialized
synchronization. This can greatly margin for audio applications. For equipment, both in the form of common
reduce the complexity of cabling example, PTP can provide accuracy core equipment and within the end
systems, particularly ones that better than one-tenth of a sampling devices. The major system components
connect cameras to their control period for a 96 kHz audio signal, include:
units. which is suitable for any known
practical application.

Artel • White Paper • 3


WHITE PAPER IT’S ABOUT (PRECISION) TIME

• Grandmaster Clock – Normally transparent or boundary clocks, the timestamping. PTP requires more
installed in pairs for redundancy, a overall accuracy of the delivered than a thousand times better
grandmaster provides a single, clocks will be degraded. Networks accuracy than NTP, so hardware
common source for PTP clock signals with more than a handful of devices support is essential.
in the network (called a PTP Domain). or with multiple switches should use
Only one grandmaster can be active
at one time, so all the devices execute
a common algorithm to ensure that
one and only one device becomes the
grandmaster. This process also
ensures that if the active grandmaster
fails that another device will take
over.

• Transparent or Boundary Clocks


– Delivering the signal from the
grandmaster to the end devices
(called slaves in PTP specs) is the
responsibility of boundary clocks and
transparent clocks. These functions
are normally built into network
equipment such as IP routers and
Ethernet switches.

Transparent clocks allow PTP packets Live concerts and remote production can benefit from PTP.
to flow through a device while adding
a correction factor to the packet that transparent or boundary clocks to PTP Applications for Media
represents the amount of time that ensure signal integrity.
the packet spent in transit through As mentioned at the beginning of this
the device. Using this value, the end • Hardware Timestamping – In order to document, PTP is required by a variety
device can precisely calculate the precisely synchronize devices within a of standards used throughout the media
amount of network delay between the microsecond, precise measurements production industry, including SMPTE
device’s input and the Grandmaster’s must be made of the times that ST 2110:2017 “Professional Media over
output, allowing an accurate PTP time packets enter or leave a specific Managed IP Networks” and AES67
to be calculated. network interface. This requires “High-performance streaming audio-
timestamp measurement hardware to over-IP interoperability.” The primary
Boundary clocks act as a slave device be built into every network interface use of PTP in these standards is to
to an upstream (grand)master, and as that can gather the data used by the provide a stable timebase that can be
a master device to downstream end PTP algorithm. used to synchronize video, audio and
devices (called slaves). These allow other signals so that they can be
the output of a grandmaster to be Software timestamping is not processed easily and delivered to local
shared with multiple downstream accurate enough to properly and remote audiences.
devices without overloading the implement PTP, due to the timing
grandmaster. Accuracy levels are inaccuracies that can occur within Consider the needs of an audio
close to what can be achieved with protocol stacks. Accuracy of a few production within a live concert venue.
transparent clocks. milliseconds or better is certainly Many times, several sets of speakers
possible with software, which is why need to be coordinated, so that their
While it is possible to run a small NTP (Network Time Protocol) can be sound outputs reach all members of the
network with only a few devices using implemented using interfaces that audience without annoying echoes or,
switches that don’t support don’t support hardware worse, canceling each other out due to

Artel • White Paper • 4


WHITE PAPER IT’S ABOUT (PRECISION) TIME

phase mismatch. Achieving the best Because PTP clocks are used to Looking Forward
sound for the largest portion of the generate the timestamps within each
audience requires adding delay to some video and audio data packet, these As IP video and audio technology moves
of the speaker outputs so that their embedded timing relationships can be rapidly into the domain of IP
sounds are in phase with those emitted used wherever the IP media signals are networking, IEEE-1588 Precision Time
by other speakers in the venue. Speaker delivered. Protocol will become absolutely
arrays can also be adjusted to maximize essential to all facets of media
their “sound field” output in specific There are other applications beyond the production. This fundamental enabling
directions by adjusting the timing of the media space that will benefit from IP technology permits hundreds and even
audio signals fed into each speaker routers and Ethernet switches that thousands of devices to work together
element. PTP provides a stable support PTP. For example, financial in absolute synchronization and
timebase that allows accurate services firms and markets need support all of the timing relationships
synchronization of all the speakers. accurate timestamps for securities that are so critical to properly formatted
trading and record keeping. Factory media signals. Network infrastructure,
Remote video production can also automation systems often need to have including Ethernet switches and other
benefit from PTP, which enables every machines working in lockstep for a devices will need to natively support
camera, microphone and signal variety of tasks. Electric power utilities PTP functions to deliver the highest
processing device to be tied to a need to accurately control the phases of levels of accuracy that can be achieved
common clock. When these signals are high voltage sources and signals across with the technology.
transported across a long-haul link back their networks, to avoid damaging
to the television production facility, the current surges. Many other applications,
timing relationships between the including automobile systems, will
signals are used to allow accurate benefit from accurate, reliable PTP-
switching between video signals and enabled networks.
proper video/audio signal alignment.

Leap Seconds and PTP

The SMPTE epoch is identical to the one used for IEEE-1588, which is referenced to the TAI (International Atomic Time)
epoch used by labs worldwide with the most accurate atomic clocks. Another epoch that is commonly used is the GPS
(Global Positioning System) epoch which is 0000 UT (midnight) on January 6, 1980, and is offset from TAI by a constant
19 seconds. The epoch used for Coordinated Universal Time (UTC) is closely related to TAI, except that the epoch for UTC
is 1972-01-01T00:00:00Z, or exactly 63,072,010 seconds later than the SMPTE epoch. The Network Time Protocol (NTP) is
also based on UTC. The difference between UTC and SMPTE/PTP time is not fixed, it changes every time a leap second
occurs.

Leap seconds are used to match a clock to the speed of the Earth’s rotation. A normal day is 86,400 seconds (60 x 60
x24), but in reality, it takes the earth an extra millisecond or so to complete a full revolution. The amount of deviation
isn’t constant – some days the earth revolves faster and other days slower, depending on the season, earthquakes, and a
host of other natural processes. Adjusting for leap seconds can cause headaches for different applications, so the SMPTE
system does not use them. Instead, the clock used for measuring time from the SMPTE epoch increases linearly, with no
leap seconds added. UTC takes a different approach, and adds leap seconds whenever they are needed by designating a
single day to last 86,401 seconds. The last leap second occurred at midnight UTC between December 31, 2016 and
January 1, 2017. Since this date, the difference between TAI time and UTC is 37 seconds.

Artel • White Paper • 5


WHITE PAPER IT’S ABOUT (PRECISION) TIME

About the Author

Rafael Fonseca, Vice President Product Management

Rafael brings to Artel significant experience in executive management, product


management and marketing, sales, and sales operations at established and startup
companies. Previously, Rafael was Vice President of Product Management,
Marketing, and Sales Engineering and member of the founding team at Cedar Point
Communications, acquired by GENBAND specializing in technology,
telecommunications, and multimedia IP solutions. Early in his career, Rafael was a
member of Bell Laboratories technical team responsible for research and
development in the areas of networking synchronization and equalization for data
communication and optical networking systems. He has authored several articles
and spoken at industry venues on the operational costs of delivering next
generation services and other topics. Rafael holds a M.S.E.E. from Cornell
University, a B.S. in Electrical Engineering from the University of Puerto Rico at
Mayaguez, and a MBA Certification from Wharton School of Business.

Related White Papers

Time Travels: A Closer Look at PTP


Exam the key elements and considerations of PTP deployments including PTP
synchronization, master clock selection, transparent and boundary clock functions,
PTP domain and profile configuration, and other network considerations.

Related Products

Artel’s Quarra PTP Ethernet Switches


Artel Quarra 10G PTP Ethernet Switch
Artel’s Quarra family supports the SMPTE ST 2110-10 standard for System Timing
and Definition and ST 2059-2 permitting interoperable use of IP-based media
Artel Quarra 1G PTP Ethernet Switch equipment with conventional genlocked SDI equipment. The Artel Quarra switches
are designed for audio/video broadcast, defense and security, finance, utilities,
telecom, and enterprise IT applications in which accurate timing and control are
Artel Quarra 1G Compact PTP Ethernet Switch required.

About Artel
Artel Video Systems is a world-class provider of innovative, real-time, multimedia delivery solutions serving global markets. Today the majority of the
live events in the US traverse Artel products to support their mission critical work-flows. Artel’s expertise in IP- and fiber-based technologies spans
more than 30 years and has established Artel as a trusted partner in the development of reliable, standards-based, IP infrastructures. Artel’s
integrated solutions include fiber and IP based multimedia delivery, precision timing, OTT, and data networking. An employee-owned business since
2014. More information is available at www.artel.com.

World Headquarters
5B Lyberty Way
Westford, MA 01886
USA
Tel: (978) 263-5775
Fax: (978) 263-9755 Contents subject to change without notice.
Artel.com | info@artel.com AR207-900002-00_D

Artel • White Paper •

You might also like