Video: Precision Time Protocol (PTP) and Packet Timestamping in Linux

SMPTE’s ST-2110 standard can work on hardware or software, but its reliance on PTP, the Precision Time Protocol, makes full software support tricky. Why is this? Is this not just a question of more precise coding practices or changing programming language? There are times when PTP support for ST 2110 isn’t strictly needed and, indeed, the IPMX project is currently working on relaxing PTP requirements so that ST 2110 can be used in the ProAV market without ubiquitous PTP. But when you do need it on software deployed on a server, what are your options and what are the challenges?

This talk by Antoine Ténart looks at the pros and cons of using software vs hardware to create timestamps. First, however, Antoine looks at how PTP works. We’ve covered this before in a Cisco talk but Antoine points out that there are two methods that PTP can work, 1-step and 2-step. PTP synchronisation works by sending 2 messages from the grandmaster clock to the clock wanting to synchronise. There are also two messages sent back to the grandmaster. Keeping close track of when each of these messages was sent and received, and assuming the network delay is the same in both directions, you can work out how long it’s currently taking for timing messages to get to you. Once you’ve cracked the secret of how long messages get to you, you can accurately sync your clock to messages from the grandmaster which say ‘the time is currently …”

 

 

Without this exchange of messages, there’s no way to accurately synchronise your time with the PTP grandmaster within nanoseconds and you’d be left with NTP as your best option which can only keep accuracy within a few milliseconds. Some logs, transactions and media need much better accuracy than milliseconds. So with PTP relying on accurate timestamps, it’s important to find the best way to accurately stamp each message with its origin time.

Without hardware support, when the grandmaster sends its first message saying “This is the time”, a second message needs to be sent immediately afterwards saying “By the way, that last message actually left at a slightly different time:…” which is called the Follow-up Packet. Within broadcast, most equipment has hardware support and so can update the packet as it leaves the grandmaster with the actual time. When you can avoid the follow-up packet, this is known as a 1-step process.

As we covered in this the second talk from Cisco there is more than one type of clock: grandmaster, boundary and transparent. Antoine takes a moment to show how the boundary clock fits between end-devices and the grandmaster. For a deeper dive into PTP and its application to broadcast, watch Arista’s Gerard Philips in this IET Media talk.

Source: Antoine Ténart

Antoine tackles both software and hardware timestamping next. Software, he shows is done in the application or the kernel using the system clock. The errors/deltas involved can be big with a long time passing before transmission. Not being certain when timestamps will occur leads to jitter in the timing signal.

Hardware insertion can be done in the Ethernet layer, in PHY or by a dedicated controller like the Mellanox X5 cards. Errors and deltas are small since the timestamp is inserted close to the actual transmission. In fact, the only delta is it crossing the PHY layer.

The video ends with Antoine discussing offloading, specific calls in the kernel such as SO_TIMESTAMPING and SO_TIMESTAMPTING_TX_HARDWARE as well as introducing us to some tools such as ptp4l, which is a PTP client and ptp2sys which updates the system clock to the ptp time.

Watch now!
Speaker

Antoine Ténart Antoine Ténart
Senior Software Engineer, Red Hat
Former Linux Kernel Engineer, Bootlin

Video: The Targeted Advertising opportunity for free-to-air broadcasters

DVB-TA is a targeted advertising standard produced by HbbTV and DVB with the aim of providing a single standard for addressable advertising across Europe and in TVs. DVB-TA comprises two specifications, one covering signalling of advertising breaks, another deals with communicating with advert decision servers and the preparation of media. This webinar looks at the underlying HbbTV technology rollout in Europe.

This video brings together Sebastian Busse from smartclip.tv, Arturo Larrainzar from Artresmedia and PubItalia ’80’s Silvia Broggi to explain how targeted advertising is working in France, Germany and Italy ahead of a twenty-minute Q&A.

Sebastian is first up with the German perspective starting by outlining the motivations to move to targeted advertising. For traditional TV, he sees problems ahead as digital ad budgets surpass those of TV, consumption moves away from linear TV and tech giants specifically attacking the traditional model. To fight against this, he sees a need to improve infrastructure such as inventory management systems, focus on data control and management plus investing in addressable ad solutions. The way to make this scalable and affordable for broadcasters and TV manufacturers is to congregate around a single standard.

Europe can be a difficult place for standards since the united countries all hold on tightly to their ways of working, cultural norms and needs which creates conflicting demands on standards. However, HbbTV has spread from Germany to Spain, Italy, France and now Poland, Czechia and Austria since 2017. With DVB-TA, broadcasters can have better control over their AD delivery chain, data and addressable ad breaks so much more growth is envisaged for 2022 and onwards.

 

 

Arturo from Atresmedia gives a brief overview of Spain’s use of HbbTV which now reaches 17.4 million people in nearly 8 million households. Their approach is to target a cross-device ad model. Partnering with smartclip they were able to profile over 40% of Spanish households and use that data to allow customers to design better ad campaigns which bridge TVs and web audiences.

Arturo speaks about hybrid ads where the video is squeezed to allow a L-shaped banner around the content. Using this and other techniques, Artresmedia has been able to improve campaigns by an extra 4 points, important as extra points are usually disproportionately expensive but this is a simple approach to do the same thing. Next on the list of products is ad replacement.

Finally, the Italian perspective comes from Silvia. Since the first HbbTV application in 2018, they have moved quickly and introduced ad replacement in 2020. With a reach of 7 million households, they can insert banners or squeezes and address OTT. What PublItalia are able to do is track which linear ads are shown on TV and use that to determine which UI/banner ads are subsequently shown.

The video finishes with a Q&A session which covers: GDPR, manufacturers support of HbbTV, HbbTV-TA availability in TVs, identifying logged in users on second devices, CPM stability and many more.

Watch now!
Speakers

Sebastian Busse Sebastian Busse
Director Addressable TV, International,
smartclip
Arturo Larrainzar Arturo Larrainzar
Head of Strategy,
Atresmedia
Silvia Broggi Silvia Broggi
International Marketing & MarTech Director,
PubItalia ’80

Video: Debugging Streaming Errors with Video Analytics

Errors in streaming often require deep knowledge that system specialsts and developers have, but getting them the data they need is often an uphill struggle. This video shows ways in which we can short circuit this problem showing some approaches that Bitmovin is taking to get the data to the right people. Bitmovin announced, yesterday, €25M of further investment in the company. We’ve featured Bitmovin many times here on The Broadcast Knowledge talking about codecs, low-latency live streaming or super-resolution. Reading through this full list makes it clear that Bitmovin’s interested in the whole chain from encode to delivery.

Christoph Prager sets the scene looking at an analysis of errors showing that only 15% have a clear reason with 65% being ambiguous. If an error’s ambiguous, you need data to drill into it and disambiguate the situation. This is exacerbated by the standard aggregate metrics which make getting to the root cause very difficult. Definitions of ‘buffering percentage’ and ‘startup time’ are very useful to gauge the scale of an issue or to find there’s even a problem to begin with. But for developers, they are like the foreword to the book they need to read to find the problem. This has led Bitmovin to think from the angle that errors are a lot more obvious when you have the data.

Daniel Hölbling-Inzko takes us through Bitmovin’s new features to expose data surrounding errors. Whilst these will be coming to Bitmovin products, they show what a useful set of tools for debugging would be and can inspire the same in your platform if you are able to customise those aspects of it. Daniel points out that the right detailed information can be useful to customer support, but it’s the deeper information that he’s interested it. Bitmovin can collate all the stack traces from problem places but also track segments from the time there was an error.

Segment tracking shows the status, type, download speed, time to first byte and the size of each of 10 segments from around the time the error was collected. Viewing these can help see trends such as diminishing bandwidth or just simply show that a problem happened abruptly. Daniel talks through three errors where segment tracking can help you pinpoint problems: ‘NETWORK_SEGMENT_DOWNLOAD_TIMEOUT’, ‘ANALYTICS_BUFFERING_TIMEOUT’ and ‘DRM: license request failed’. Because the requests are now split out individually it makes it easy to see where the 403 error is that is stopping the DRM or how the internet speed is dropping resulting in an analytics timeout. Daniel highlights that it’s the trends that are usually the most important part.

Watch now!
Free Registration Required
Speakers

Christoph Prager Christoph Prager
Product Manager, Analytics
Bitmovin
Daniel Hölbling-Inzko Daniel Hölbling-Inzko
Engineering Director, Analytics
Bitmovin