Fieldbus & Industrial Networking


Precision Time Protocol

May 2010 Fieldbus & Industrial Networking

Using the IEEE1588 protocol for precision clock synchronisation.

Motion control and many other distributed systems in automation technology depend on precise clock synchronisation for correct operation. With most automation systems moving over to Ethernet as a communication medium, and the fact that Ethernet is not a deterministic medium, a protocol which defines the mechanism for precise time synchronisation becomes essential. It is also important that any such protocol places minimum strain on the network, as well as the CPUs of any equipment involved.

Traditional solutions used in enterprise networks (Network Time Protocol and the Simple Network Time Protocol) do not meet the stringent demands of control systems (though they offer millisecond range synchronisation), even more so when it comes to processes such as motion control.

The IEEE1588 Precision Time Protocol (PTP), first proposed by Agilent Technologies, is designed to address the requirements for time control, namely:

* Defining an international standard.

* Ease of implementation and administration.

* Synchronisation capabilities of sub-microsecond.

* Ethernet capable.

* Low CPU requirements and low bandwidth requirements.

PTP is very effective in addressing all of the above requirements, and, in Ethernet networks (PTP works on any multicast-capable network), it successfully eliminates the effects that variable network latency may have. It also caters for the effect that switches and routers have on the packet transmission, which can be exacerbated by the use of mechanisms such as QoS and ToS.

PTP does this by introducing the concept of a boundary clock, in addition to having master and slave clocks. A boundary clock is positioned at an Ethernet device (such as a switch, or a router), while the end devices are either a master or a slave clock.

To successfully synchronise clocks, two aspects must be addressed – the offset and the drift. The former ensures that the inaccurate (or less accurate) clock is set to the accurate one, while the latter ensures that the fact that different clocks may run at different speeds is compensated. Thus, PTP works in two phases. In the first phase, the offset is corrected by the master clock (usually connected to a GPS or other high precision source), which sends a time stamped synchronisation signal at regular intervals to the slave clocks. In addition to this, the master also measures the time at which the SYNC message was sent and sends this value to the slaves as well. The slaves measure the reception time and can calculate the offset (or the correction time) and correct themselves. The second phase is the delay measurement, which is measured by the Delay Request and Delay Response messages. Based on these the drift is calculated and corrected accordingly.

The process, however, depends on the latency between master and slave being symmetrical – something which is almost guaranteed when they are directly connected. This is not the case in a typical network though, when there are switches and routers connecting end devices. This is where the boundary clock concept comes in – each network device will have a clock, which is synchronised with a master directly connected to the device, and then acts as a master to all other devices connected to it. This means that the symmetrical latency requirement is always satisfied, and the synchronisation kept accurate. It is still important to adhere to general good practices for Industrial Ethernet network design, since the latency introduced by the networking devices increases proportionately with the network load.

One of the benefits of the PTP is that the selection of the master and slave clocks is handled by the protocol. This is done using the Best Master Clock algorithm, which runs on every member of the PTP. The algorithm compares the properties of the clocks and distributes them amongst the members, who in turn determine their own status. Thus no status negotiation is necessary.

The implementation of the PTP can be done either in software only, or by using relatively simple and inexpensive hardware. The purely software implementation achieves reasonably good accuracy (between 10 and 250 μs), however it is dependent on the CPU cycles and network utilisation.

Hardware implementations, such as the one used in the Hirschmann range of PTP capable switches, ensures that the dedicated Time Stamp Unit is present, which generates the time stamps directly on the transport medium. Such implementations are good for accuracy of under a microsecond.

For more information contact Vladimir Milovanovic, IAC, +27 (0)12 657 3600, [email protected], www.iaconline.co.za



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Local energy solutions rewiring resilience across Africa
News Fieldbus & Industrial Networking
Engineers across Africa are developing practical, scalable energy and mobility solutions supported by the Africa Prize for Engineering Innovation.

Read more...
Daudin expands fieldbus modular remote I/O series
Fieldbus & Industrial Networking
: The Dinkle iO-GRID X modular remote I/O family is now available, offering fieldbus coupler modules for major industrial Ethernet protocols, and over 20 types of I/O modules to help integrators and equipment builders create flexible, efficient control systems.

Read more...
Siemens and HighByte partner to scale industrial AI
Siemens South Africa IT in Manufacturing Fieldbus & Industrial Networking
Siemens is expanding its Industrial Edge ecosystem through a partnership with HighByte, enabling customers to connect, contextualise and transform data from operational technology and information technology sources to build AI models and applications at scale.

Read more...
Automotive Ethernet media converter
Fieldbus & Industrial Networking
HMS Networks has introduced its first automotive ethernet product under the PEAK brand. The PAE-Media Converter is a compact device designed to connect automotive Ethernet (100BASE-T1 or 1000BASE-T1) with standard Ethernet (100BASE-TX or 1000BASE-T) networks.

Read more...
3D electrical systems design workflow for electromechanical innovation
Siemens South Africa Fieldbus & Industrial Networking IT in Manufacturing
Siemens has announced new 3D electrical design capabilities within its Capital software, enabling electrical and mechanical engineers to work concurrently in a shared 3D environment to reduce late-stage design changes and accelerate time to market for complex electromechanical products.

Read more...
Long-distance signal delivery is critical to rail safety
Omniflex Remote Monitoring Specialists Fieldbus & Industrial Networking
A remote monitoring specialist explains why fibre optic technology is increasingly replacing copper cabling in safety-critical railway signalling systems.

Read more...
Building efficiency into cement production with SCADA and IIoT
Adroit Technologies Fieldbus & Industrial Networking
For decades, Adroit Technologies has worked alongside leading cement producers, helping them gain greater visibility into their operations through advanced SCADA and IIoT solutions.

Read more...
Loop signature Part 2-5: Interactive control systems
Michael Brown Control Engineering Fieldbus & Industrial Networking
Feedforward control was explained in the previous loop signature articles. One of the examples used was feedforward control of load changes on a heat exchanger when variations occurred in the flow of the process fluid through the exchanger.

Read more...
Integrated automation systems in poultry feed production
Adroit Technologies Fieldbus & Industrial Networking
South Africa’s poultry industry is increasingly turning to advanced automation systems to optimise operations. Working in partnership with Adroit Technologies, leading poultry supplier Sovereign implemented the Mitsubishi Adroit Process Suite across a key feed production facility, creating a scalable, integrated system capable of supporting both current operations and future expansion.

Read more...
Why secure industrial communication depends on deployment as well
Fieldbus & Industrial Networking
The Industrial Security Harmonisation Group has released a joint industry perspective highlighting a critical truth in industrial cybersecurity: secure communication is not determined by protocols alone, but by how they are deployed and managed in real-world environments.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved