Scope
This document covers the steps required to confirm proper PTP clock operation on an Ubuntu host system where Docker containers are hosted.
Description
When installing many containerized Telos Alliance products (VXs in this example) the product uses the host clock. This is contrary to some Livewire+ products that sync to PTP (or Livewire) clock directly. In this example, the host clock is synchronized to a PTP master clock and the container gets its clock from the host operating system.
Checking PTP Clock
The easiest way to test PTP clock on the host is to install linuxptp in Ubuntu if not already installed.
Installing the linuxptp program
Using a terminal program connect to your Ubuntu host.
If you installed Ubuntu with a Desktop environment you can use the terminal program there. You can also use PuTTy or another terminal program to make an SSH connection remotely. In our example, we are using Terminal and connecting over the network using SSH.
Install the Linux program linuxptp using apt-get install. From the prompt;
dbjones@vxs:~$ sudo apt-get install linuxptp
From the command line, run the following command where eth1 is YOUR interface connected to the network with PTP.
dbjones@vxs:~$ sudo ptp4l -s -m -H -i eth1
Use -S in place of -H if hardware time stamp is not available