In the fourth and final part of this series, we wrap up with an explanation on how PTP is used to support SMPTE ST 2110 based services, we dive into timing constraints related to using COTS (Commercial Off-The-Shelf) hardware, i.e.: servers.
Up front we must call out that we are referring to the use of appropriate hardware for the task at hand: Datacentre class servers. These are designed to support the processing load that media workflows impose and allow for such standard hardware to be used. These systems can then be designed to run as a bare-metal solution with an application on top of an operating system on the hardware or as a virtualized resource amongst others on that same hardware. The actual performance will depend on the software vendor(s) and the application(s) capabilities. Nevertheless, at the core there is the same timing and accuracy requirements set out by the SMPTE ST 2110-21 standard related to the pacing of the IP packets.
SMPTE ST 2110-21 Traffic Model Requirements
The traffic model defined in SMPTE ST 2110-21 specifies a timing model for senders and receivers of video streams encapsulated using the Real-Time Protocol (RTP). Shaping the traffic (i.e. sending data packets at equidistant intervals) will minimise Packet Delay Variations (PDV), which could lead to increased latency or, even worse, dropped packets. The closer to the physical hardware the sender operates, the easier it is to create perfectly shaped traffic (e.g. FPGA based implementations). If the sender is a piece of software installed on an Operating System (OS), in a virtualised environment or not, it abstracts to a certain extent from the driver of the network card and therefore has less control over the traffic shaping. At times, the OS must handle and prioritize other tasks besides the video application. In a virtualized system, this control is even further removed from the hardware.
The system wide level of accuracy required to accomplish the targeted packet pacing requirements can only be reached with specific hardware support in the end node so that the timestamps for PTP messages carrying time information as well as the RTP messages within an ST 2110 flow should be taken as close as possible to the physical channel. If the accuracy requirement is violated, the integrity of an ST 2110 flow can be disrupted transiently or even permanently. In a COTS environment, the Network Interface Card (NIC) must therefore provide hardware timestamping support, unfortunately this alone isn’t sufficient to maintain the requested accuracy. “Intelligent” NICs, with onboard acceleration engines to permit switching and packet processing that offloads the host CPU from a number of network related functions is also required. This becomes more critical as the interface speed increases and the number of functions being performed by the host CPU form a performance bottleneck. These cards allow for specific queues to be assigned to specific CPU cores thereby improving performance whilst reducing latency to sub-microsecond with the right class of server hardware. They provide the basis for high-performance packet pacing that enables ST 2110-21 Narrow profile to be achieved with such NICs. Further details can be found in the “The art of conforming to SMPTE 2110-21 traffic model” NAB 2018 BETIC paper .
While these NICs may provide high throughput, there is a need for this Input/Output (I/O) performance to be passed on to the application(s) sitting on top of the Operating System (OS). This requires a capability called “kernel bypass” that will reduce the OS kernel overhead by enabling the applications to directly access the network adapter resources. The multiple kernel bypass implementationsdeveloped by the industry focus around high throughput, reduced latency and reducing CPU usage.
The last piece is the Virtual NIC or vNIC capability that isolates the PCI Express resources for sharing the NIC in a virtual environment. By doing so, multiple Virtual Machines (VMs) access the same NIC in a secured manner as if each VM owned its own NIC and can be enabled by Single Root Input/Output Virtualisation (SR-IOV). They are presented to the firmware and operating system as separate devices. Combined with the hardware timestamping and intelligent offload capabilities described above, the vNICs allow for these features to be shared amongst multiple VMs.
Server And OS Requirements
To the contrary of many other types of workloads, the real-time nature of the ST 2110 media flows requires tuning of the typical default settings that are common to general purpose COTS servers. Therefore, the servers must be specifically configured with this in mind. Such configuration settings are common for high-performance workloads across multiple industries and not specific to broadcast media.
It is particularly important to disable any power savings mode(s) that would otherwise impact the performance of the processing of network traffic at the lowest levels of the hardware and systems by sending the CPU to “sleep” and/or enabling energy saving modes. Additionally, in multi-core systems, it is key to make sure that the application processes that are running on the host are tied to the CPU and memory that are on the same Non-Uniform Memory Access (NUMA) as the PCIe bus where the NIC is located. The same applies to memory interleaving settings. Else you may end up having resources taken from another NUMA and degrading the performance of the overall real-time scheduler. Further information about these configurations can be found in the “Measurement Methodology and Real-World Compliance Results for ST 2110-21 Devices” NAB 2019 BEITC paper .
The key element to keep your mind on when designing PTP in a virtualised environment is to avoid having concurrent instances of PTP running in the different virtualised machines. This will cause additional and unrequired load on the system, and more to the point, will impact accuracy since multiple instances, possibly with different configurations or even worse multiple PTP stacks with different implementations (servo design, filters) will cause havoc to your system performance.
There should always be one, and only one PTP instance per system, accessed directly or indirectly via all the different applications sitting across the different virtualised instances hosted on that system. Drilling down into the specifics of each virtualised environment, operating system, hypervisor, the system owner must keep in mind that a single representation of the PTP Hardware Clock (PHC) is the key to stability and accuracy.
Each of the virtualised solutions offer different means of exposing the NIC resources, PHC and interface to access the PTP stack in order for the system and, more to the point, the applications can access the required timing information.
Therefore, a certain complexity may be perceived, none that should be unfamiliar with system architects and administrators who deal with virtualised systems in high performance workflows. Fortunately to ease some of this work, there are industry solutions that provide the required framework to address part or all of this complexity and allow application vendors to build cross platform (i.e.: Windows and Linux) solutions that can leverage these high performance NICs, address the accuracy constraints and deliver IP packets according to the ST 2110-21 traffic profile requirements, even matching the most stringent “Narrow” profile definition.
Industry Validation Via The JT-NM Tested Program
Earlier this year, the Joint Taskforce on Networked Media (JT-NM) orchestrated a testing event during which a number of vendors submitted their equipment to demonstrate ST 2110 related capabilities . In the mix of the numerous tested devices, there was a software-based solution built around COTS NIC. The Mellanox Rivermax software library running on top of the ConnectX-5 NIC passed the relevant tests demonstrating that building ST 2110 solutions on top of COTS hardware is possible. Additionally, during NAB 2019, a live demonstration of the virtualised version was demonstrated.
Timing is of the essence for media flows. A detailed understanding of PTP, COTS hardware capabilities, server and OS parameters are required. None which are specific to the media industry, these are all principals that are applied across many industries that require high performance compute and networking capabilities.
 “The art of conforming to SMPTE 2110-21 traffic model”, NAB BEITC 2018
 “Measurement Methodology and Real-World Compliance Results for ST 2110-21 Devices”, NAB BEITC 2019
You might also like...
Video compression, bonded cellular technology and cellular networks have evolved to the level that giant planned events like the Super Bowl no longer challenge cellular service adequacy.
The derivation of the famous CIE horseshoe was explained in the previous part in terms of a re-mapping or distortion of rg color space. The derivation is somewhat abstract because the uses of color science go far beyond the applications…
HDR is taking the broadcasting world by storm. The combination of a greater dynamic range and wider color gamut is delivering images that truly bring the immersive experience to home viewers. Vibrant colors and detailed specular highlights build a kind…
Hackers are always improving the level of sophistication and constantly finding new surface areas to attack – resulting in the surging volume and frequency of cyberattacks.
The rg color space served to document the chromaticity gamut of the HVS, and so was a great step forward in understanding color and color vision. However, it was based on a certain set of primaries. As no set of…