Top Banner
Investigating Soſtware-Based Clock Synchronization for Industrial Networks Rahul Nandkumar Gore Mälardalen University Licentiate Thesis 311
77

Investigating Software-Based Clock Synchronization for ...

Apr 07, 2023

Download

Documents

Khang Minh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Investigating Software-Based Clock Synchronization for ...

Investigating Software-Based Clock Synchronization for Industrial NetworksRahul Nandkumar Gore

Mälardalen University Licentiate Thesis 311

ISBN 978-91-7485-526-5ISSN 1651-9256

Address: P.O. Box 883, SE-721 23 Västerås. SwedenAddress: P.O. Box 325, SE-631 05 Eskilstuna. SwedenE-mail: [email protected] Web: www.mdh.se

Ra

hu

l Na

nd

kum

ar G

ore

INV

ESTIGA

TING

SOFTW

AR

E-BASED

CLO

CK

SYN

CH

RO

NIZA

TION

FOR IN

DU

STRIA

L NETW

OR

KS 2021

Page 2: Investigating Software-Based Clock Synchronization for ...

Mälardalen University Press Licentiate ThesesNo. 311

INVESTIGATING SOFTWARE-BASED CLOCKSYNCHRONIZATION FOR INDUSTRIAL NETWORKS

Rahul Nandkumar Gore

2021

School of Innovation, Design and Engineering

Mälardalen University Press Licentiate ThesesNo. 311

INVESTIGATING SOFTWARE-BASED CLOCKSYNCHRONIZATION FOR INDUSTRIAL NETWORKS

Rahul Nandkumar Gore

2021

School of Innovation, Design and Engineering

1

Page 3: Investigating Software-Based Clock Synchronization for ...

Copyright © Rahul Nandkumar Gore, 2021ISBN 978-91-7485-526-5ISSN 1651-9256Printed by E-Print AB, Stockholm, Sweden

Copyright © Rahul Nandkumar Gore, 2021ISBN 978-91-7485-526-5ISSN 1651-9256Printed by E-Print AB, Stockholm, Sweden

2

Page 4: Investigating Software-Based Clock Synchronization for ...

Abstract

A rising level of industrialization and advances in Industry 4.0 have resulted inIndustrial Internet of Things (IIoT) gaining immense significance in today’sindustrial automation systems. IIoT promises to achieve improved productivity,reliability, and revenues by connecting time-constrained embedded systems to“the Internet”. New opportunities bring with them challenges, and in particularfor industrial networks, massively interconnected IIoT devices communicatingin real-time, require synchronized operation of devices for the ordering ofinformation collected throughout a network. Thus, a time or clocksynchronization service that aligns the devices’ clocks in the network to ensureaccurate timestamping and orderly event executions, has gained greatimportance. Achieving adequate clock synchronization in the industrial domainis challenging due to heterogeneous communication networks and exposure toharsh environmental conditions bringing interference to the communicationnetworks. The investigative study based on existing literature and theenvisioned architecture of the future industrial automation system unveils thatthe key requirements for future industrial networks are to have a cost-effective,accurate, scalable, secured, easy to deploy and maintain clock synchronizationsolution. Today’s industrial automation systems employ clock synchronizationsolutions from a wide plethora of hardware and software based solutions. Themost economical, highly scalable, maintainable software-based clocksynchronization means are best candidates for the identified future requirementas their lack in accuracy compared to hardware solutions could be compensatedby predictive software strategies.

Thus, the thesis’s overall goal is to enhance the accuracy of software-based

i

Abstract

A rising level of industrialization and advances in Industry 4.0 have resulted inIndustrial Internet of Things (IIoT) gaining immense significance in today’sindustrial automation systems. IIoT promises to achieve improved productivity,reliability, and revenues by connecting time-constrained embedded systems to“the Internet”. New opportunities bring with them challenges, and in particularfor industrial networks, massively interconnected IIoT devices communicatingin real-time, require synchronized operation of devices for the ordering ofinformation collected throughout a network. Thus, a time or clocksynchronization service that aligns the devices’ clocks in the network to ensureaccurate timestamping and orderly event executions, has gained greatimportance. Achieving adequate clock synchronization in the industrial domainis challenging due to heterogeneous communication networks and exposure toharsh environmental conditions bringing interference to the communicationnetworks. The investigative study based on existing literature and theenvisioned architecture of the future industrial automation system unveils thatthe key requirements for future industrial networks are to have a cost-effective,accurate, scalable, secured, easy to deploy and maintain clock synchronizationsolution. Today’s industrial automation systems employ clock synchronizationsolutions from a wide plethora of hardware and software based solutions. Themost economical, highly scalable, maintainable software-based clocksynchronization means are best candidates for the identified future requirementas their lack in accuracy compared to hardware solutions could be compensatedby predictive software strategies.

Thus, the thesis’s overall goal is to enhance the accuracy of software-based

i

3

Page 5: Investigating Software-Based Clock Synchronization for ...

ii

clock synchronization in heterogeneous industrial networks using predictablesoftware strategies. The first step towards developing an accurate clocksynchronization for heterogeneous industrial networks with real-timerequirements is to investigate communication parameters affecting timesynchronization accuracy. Towards this goal, we investigated actual industrialnetwork data for packet delay profiles and their impact on clocksynchronization performance. We further analyzed wired and wireless localarea networks to identify key network parameters for clock synchronization andproposed an enhanced clock synchronization algorithm CoSiNeT for field IoTdevices in industrial networks. CoSiNeT matches well with state-of-the-practiceSNTP and state-of-the-art method SPoT in good network conditions in terms ofaccuracy and precision; however, it outperforms them in scenarios withdegrading network conditions.

ii

clock synchronization in heterogeneous industrial networks using predictablesoftware strategies. The first step towards developing an accurate clocksynchronization for heterogeneous industrial networks with real-timerequirements is to investigate communication parameters affecting timesynchronization accuracy. Towards this goal, we investigated actual industrialnetwork data for packet delay profiles and their impact on clocksynchronization performance. We further analyzed wired and wireless localarea networks to identify key network parameters for clock synchronization andproposed an enhanced clock synchronization algorithm CoSiNeT for field IoTdevices in industrial networks. CoSiNeT matches well with state-of-the-practiceSNTP and state-of-the-art method SPoT in good network conditions in terms ofaccuracy and precision; however, it outperforms them in scenarios withdegrading network conditions.

4

Page 6: Investigating Software-Based Clock Synchronization for ...

Sammanfattning

En ökande grad av industrialisering och framsteg inom industri 4.0 harresulterat i att Industrial Internet of Things (IIoT) fått enorm betydelse i dagensindustriella automationssystem. IIoT lovar förbättrad produktivitet,tillförlitlighet och intäkter genom att ansluta tidskritiska inbyggda system tillInternet. Nya möjligheter medför också nya utmaningar, särskilt förindustriella nätverk bestående av stora mängder av sammankoppladeIIoT-enheter som kommunicerar i realtid. Detta kräver synkroniserad drift förhantering av de stora informationsmängder som samlas in via nätverken.Således har en tids- eller klocksynkroniseringstjänst som justerar enheternasklockor i nätverket stor betydelse för att säkerställa korrekt tidsstämpling ochordnade händelseförlopp. Att uppnå adekvat klocksynkronisering inomindustriella tillämpningar är utmanande på grund av heterogenakommunikationsnätverk och exponering av tuffa miljöförhållanden som störkommunikationsnäten. Den undersökande studien utgår från befintlig litteraturoch den tänkta arkitekturen för det framtida industriella automationssystemetvisar att de viktigaste kraven för klocksynkronisering i framtida industriellanätverk är att ha en lösning som är kostnadseffektiv, exakt, skalbar, säker, lätt attdistribuera och underhålla. Dagens industriella automationssystem använderklocksynkroniseringslösningar från en mängd olika hårdvaru- ochmjukvarubaserade lösningar. De mest ekonomiska, skalbara och underhållsbaramjukvarubaserade klocksynkroniseringslösningarna är de bästa kandidaterna fördet identifierade framtida behovet eftersom deras brist på noggrannhet jämförtmed hårdvarulösningar kan kompenseras av prediktiva programvarustrategier.

Avhandlingens övergripande mål är således att öka noggrannheten i

iii

Sammanfattning

En ökande grad av industrialisering och framsteg inom industri 4.0 harresulterat i att Industrial Internet of Things (IIoT) fått enorm betydelse i dagensindustriella automationssystem. IIoT lovar förbättrad produktivitet,tillförlitlighet och intäkter genom att ansluta tidskritiska inbyggda system tillInternet. Nya möjligheter medför också nya utmaningar, särskilt förindustriella nätverk bestående av stora mängder av sammankoppladeIIoT-enheter som kommunicerar i realtid. Detta kräver synkroniserad drift förhantering av de stora informationsmängder som samlas in via nätverken.Således har en tids- eller klocksynkroniseringstjänst som justerar enheternasklockor i nätverket stor betydelse för att säkerställa korrekt tidsstämpling ochordnade händelseförlopp. Att uppnå adekvat klocksynkronisering inomindustriella tillämpningar är utmanande på grund av heterogenakommunikationsnätverk och exponering av tuffa miljöförhållanden som störkommunikationsnäten. Den undersökande studien utgår från befintlig litteraturoch den tänkta arkitekturen för det framtida industriella automationssystemetvisar att de viktigaste kraven för klocksynkronisering i framtida industriellanätverk är att ha en lösning som är kostnadseffektiv, exakt, skalbar, säker, lätt attdistribuera och underhålla. Dagens industriella automationssystem använderklocksynkroniseringslösningar från en mängd olika hårdvaru- ochmjukvarubaserade lösningar. De mest ekonomiska, skalbara och underhållsbaramjukvarubaserade klocksynkroniseringslösningarna är de bästa kandidaterna fördet identifierade framtida behovet eftersom deras brist på noggrannhet jämförtmed hårdvarulösningar kan kompenseras av prediktiva programvarustrategier.

Avhandlingens övergripande mål är således att öka noggrannheten i

iii

5

Page 7: Investigating Software-Based Clock Synchronization for ...

iv

mjukvarubaserad klocksynkronisering i heterogena industriella nätverk medförutsägbara programvarustrategier. Det första steget mot att utveckla ennoggrann klocksynkronisering för heterogena industrinätverk med realtidskravär att undersöka de kommunikationsparametrar som påverkartidssynkroniseringsnoggrannheten. Mot detta mål undersökte vi nätverksdataför paketfördröjningsprofiler från faktiska industriella system och derasinverkan på klocksynkroniseringsprestanda. Vi analyserade också trådbundnaoch trådlösa lokala nätverk för att identifiera viktiga nätverksparametrar förklocksynkronisering och föreslog en förbättrad klocksynkroniseringsalgoritm,CoSiNeT för IIoT-enheter i industriella nätverk. CoSiNeT har liknandeprestanda som SNTP och den senaste algoritmen SPoT under branätverksförhållanden när det gäller noggrannhet och precision. CoSiNeTöverträffar både SNMP och SPoT i scenarier med försämradenätverksförhållanden.

iv

mjukvarubaserad klocksynkronisering i heterogena industriella nätverk medförutsägbara programvarustrategier. Det första steget mot att utveckla ennoggrann klocksynkronisering för heterogena industrinätverk med realtidskravär att undersöka de kommunikationsparametrar som påverkartidssynkroniseringsnoggrannheten. Mot detta mål undersökte vi nätverksdataför paketfördröjningsprofiler från faktiska industriella system och derasinverkan på klocksynkroniseringsprestanda. Vi analyserade också trådbundnaoch trådlösa lokala nätverk för att identifiera viktiga nätverksparametrar förklocksynkronisering och föreslog en förbättrad klocksynkroniseringsalgoritm,CoSiNeT för IIoT-enheter i industriella nätverk. CoSiNeT har liknandeprestanda som SNTP och den senaste algoritmen SPoT under branätverksförhållanden när det gäller noggrannhet och precision. CoSiNeTöverträffar både SNMP och SPoT i scenarier med försämradenätverksförhållanden.

6

Page 8: Investigating Software-Based Clock Synchronization for ...

In loving memory of my father,Nandkumar B. Gore

In loving memory of my father,Nandkumar B. Gore

7

Page 9: Investigating Software-Based Clock Synchronization for ...

8

Page 10: Investigating Software-Based Clock Synchronization for ...

Acknowledgment

First and foremost, I would like to express my deepest gratitude to mysupervisors Prof. Mats Björkman, Prof. Johan Äkerberg, and Dr. Elena Lisova.The work presented would not have been possible without their expert guidance,persistent help, and encouragement. I had a great opportunity to learn so manynew things from them during our meetings and discussions. Mats, thanks forguiding me on the research process and methodology. It really is acting like alighthouse in my journey so far. Johan, thanks for all the technically provocativequestions and discussions. One of the publications was solely the result of suchtalks. Elena, thanks for all the tips and suggestions on all aspects, starting fromadministrative needs to travel to the thesis. Your tenacious approach inreviewing manuscripts helped to create better scientific artifacts.

Thanks to the FIN project consortium participants Jorgen Gade, MaryamVahabi, Xiaolin Jiang from ABB Corporate Research, Thomas Lindh fromIggesund Paperboard, Johan Furunäs Åkesson from Westermo R&D, MehrzadLavassani from RISE for all the technical discussions and feedback on my work.

I wish to express my appreciation to lecturers and professors at MDH fromwhom I learned a lot during courses. Thank you, Thomas Nolte, Wasif Afzal,Mohammad Ashjai, Elena Lisova, and Ulrika Jepson Wigg. I would also like tothank IDT management staff, especially Svetlana Girs, and the administrationstaff, especially Carola Ryttersson, Jenny Hägglund, and Annika Havbrandt, formaking a work-life smoother and free from obstacles.

I want to thank all my brilliant friends and colleagues for enriching myacademic life. Mohammad Riazati (Ramon) for successfully leading ourcommon office room operations that includes monitoring of computers,

vii

Acknowledgment

First and foremost, I would like to express my deepest gratitude to mysupervisors Prof. Mats Björkman, Prof. Johan Äkerberg, and Dr. Elena Lisova.The work presented would not have been possible without their expert guidance,persistent help, and encouragement. I had a great opportunity to learn so manynew things from them during our meetings and discussions. Mats, thanks forguiding me on the research process and methodology. It really is acting like alighthouse in my journey so far. Johan, thanks for all the technically provocativequestions and discussions. One of the publications was solely the result of suchtalks. Elena, thanks for all the tips and suggestions on all aspects, starting fromadministrative needs to travel to the thesis. Your tenacious approach inreviewing manuscripts helped to create better scientific artifacts.

Thanks to the FIN project consortium participants Jorgen Gade, MaryamVahabi, Xiaolin Jiang from ABB Corporate Research, Thomas Lindh fromIggesund Paperboard, Johan Furunäs Åkesson from Westermo R&D, MehrzadLavassani from RISE for all the technical discussions and feedback on my work.

I wish to express my appreciation to lecturers and professors at MDH fromwhom I learned a lot during courses. Thank you, Thomas Nolte, Wasif Afzal,Mohammad Ashjai, Elena Lisova, and Ulrika Jepson Wigg. I would also like tothank IDT management staff, especially Svetlana Girs, and the administrationstaff, especially Carola Ryttersson, Jenny Hägglund, and Annika Havbrandt, formaking a work-life smoother and free from obstacles.

I want to thank all my brilliant friends and colleagues for enriching myacademic life. Mohammad Riazati (Ramon) for successfully leading ourcommon office room operations that includes monitoring of computers,

vii

9

Page 11: Investigating Software-Based Clock Synchronization for ...

viii

switching off lights in our absence. Mir Riyanul Islam, for inspiring me tofinish the coursework. Bahar Houten, for all the helpful tips starting from thehospital, spectacles to technical seminars. Priyan Selvaraju for helping me withcampus network measurement that I successfully utilized in one of thepublications. Adnan Ghaderi, for helping me with wide-area networkmeasurement, which would feature in an upcoming publication. Thanks, Priyanand Adnan, for being courageous enough to allow me to conduct a networkingexperiment on your computers. In a pandemic situation that significantlyrestricted our travel, I could perform all the measurements remotely from myhome because of you guys. Shahriar Hasan, Muhammad Abbas, AshalathaKunnappilly, Damir Bilic, Van-Lan Dao, Nitin Desai, and Robbert Jongeling,for all the discussions, help, and guidance. Robert for organizing PhD-fikas thatimmensely helped unwind thoughts, understand other students’ views and learnfrom each other’s experiences. Lastly, I would never forget a kind message fromRamon a day before my online licentiate proposal meeting that he would bephysically present in the office on my proposal day and could help me with anyonsite arrangements or issues. The gesture really touched me deeply, and thepositive energy motivated me to face any situation then and even now. Thankyou to all for your amazing friendship; it means a lot to me!

I would like to express my deepest gratitude to my first and biggestinspiration so far, Dr. Ertugrul Berkcan, I owe a lot to you for all the leanings.The other motivation, Dr. Dacfey Dzung, I learned immensely from you as well.Thanks for all the guidance and encouragement.

Last but not least, I would like to thank my family. I thank my siblingsJayashri, Vijayashri, Rajashri, Manisha, and Ganesh for their endless love,support, and encouragement throughout my life. I am thankful to the two mostimportant ladies in my life, my mother Seema and my wife Shraddha, and thekids Rohan and Reyansh; without them, the journey so far was just impossible.

This work was supported by the Future Industrial Networks project, withinthe Strategic innovation program for Process industrial IT and Automation, PiiA,a joint program by Vinnova, Formas and Energimyndigheten.

Rahul Nandkumar GoreVästerås, August, 2021

viii

switching off lights in our absence. Mir Riyanul Islam, for inspiring me tofinish the coursework. Bahar Houten, for all the helpful tips starting from thehospital, spectacles to technical seminars. Priyan Selvaraju for helping me withcampus network measurement that I successfully utilized in one of thepublications. Adnan Ghaderi, for helping me with wide-area networkmeasurement, which would feature in an upcoming publication. Thanks, Priyanand Adnan, for being courageous enough to allow me to conduct a networkingexperiment on your computers. In a pandemic situation that significantlyrestricted our travel, I could perform all the measurements remotely from myhome because of you guys. Shahriar Hasan, Muhammad Abbas, AshalathaKunnappilly, Damir Bilic, Van-Lan Dao, Nitin Desai, and Robbert Jongeling,for all the discussions, help, and guidance. Robert for organizing PhD-fikas thatimmensely helped unwind thoughts, understand other students’ views and learnfrom each other’s experiences. Lastly, I would never forget a kind message fromRamon a day before my online licentiate proposal meeting that he would bephysically present in the office on my proposal day and could help me with anyonsite arrangements or issues. The gesture really touched me deeply, and thepositive energy motivated me to face any situation then and even now. Thankyou to all for your amazing friendship; it means a lot to me!

I would like to express my deepest gratitude to my first and biggestinspiration so far, Dr. Ertugrul Berkcan, I owe a lot to you for all the leanings.The other motivation, Dr. Dacfey Dzung, I learned immensely from you as well.Thanks for all the guidance and encouragement.

Last but not least, I would like to thank my family. I thank my siblingsJayashri, Vijayashri, Rajashri, Manisha, and Ganesh for their endless love,support, and encouragement throughout my life. I am thankful to the two mostimportant ladies in my life, my mother Seema and my wife Shraddha, and thekids Rohan and Reyansh; without them, the journey so far was just impossible.

This work was supported by the Future Industrial Networks project, withinthe Strategic innovation program for Process industrial IT and Automation, PiiA,a joint program by Vinnova, Formas and Energimyndigheten.

Rahul Nandkumar GoreVästerås, August, 2021

10

Page 12: Investigating Software-Based Clock Synchronization for ...

List of Publications

Papers included in this thesis1

Paper A: In Sync with Today’s Industrial System ClocksRahul N. Gore, Elena Lisova, Johan Åkerberg, and Mats Björkman, in theProceedings of the 12th International Conference on COMmunication Systems& NETworkS (COMSNETS 2020).

Paper B: Clock Synchronization in Future Industrial Networks:Applications, Challenges, and DirectionsRahul Nandkumar Gore, Elena Lisova, Johan Åkerberg, and Mats Björkman, inthe Proceedings of the 112th AEIT International Annual Conference (AEIT2020).

Paper C: Delay and Jitter Analysis in Industrial Control Systems: A PaperMill Case StudyRahul Nandkumar Gore, Elena Lisova, Johan Åkerberg, and Mats Björkman, inthe Proceedings of the 17th IEEE International Conference on FactoryCommunication Systems (WFCS’21)

Paper D: CoSiNeT: A Lightweight Clock Synchronization Algorithm forIndustrial IoTRahul Nandkumar Gore, Elena Lisova, Johan Åkerberg, and Mats Björkman, inthe Proceedings of the IEEE International Conference on IndustrialCyber-Physical Systems (ICPS 2021).

1The included papers have been reformatted to comply with the thesis layout.

ix

List of Publications

Papers included in this thesis1

Paper A: In Sync with Today’s Industrial System ClocksRahul N. Gore, Elena Lisova, Johan Åkerberg, and Mats Björkman, in theProceedings of the 12th International Conference on COMmunication Systems& NETworkS (COMSNETS 2020).

Paper B: Clock Synchronization in Future Industrial Networks:Applications, Challenges, and DirectionsRahul Nandkumar Gore, Elena Lisova, Johan Åkerberg, and Mats Björkman, inthe Proceedings of the 112th AEIT International Annual Conference (AEIT2020).

Paper C: Delay and Jitter Analysis in Industrial Control Systems: A PaperMill Case StudyRahul Nandkumar Gore, Elena Lisova, Johan Åkerberg, and Mats Björkman, inthe Proceedings of the 17th IEEE International Conference on FactoryCommunication Systems (WFCS’21)

Paper D: CoSiNeT: A Lightweight Clock Synchronization Algorithm forIndustrial IoTRahul Nandkumar Gore, Elena Lisova, Johan Åkerberg, and Mats Björkman, inthe Proceedings of the IEEE International Conference on IndustrialCyber-Physical Systems (ICPS 2021).

1The included papers have been reformatted to comply with the thesis layout.

ix

11

Page 13: Investigating Software-Based Clock Synchronization for ...

12

Page 14: Investigating Software-Based Clock Synchronization for ...

Contents

I Thesis 1

1 Introduction 31.1 Problem Formulation . . . . . . . . . . . . . . . . . . . . . . 61.2 Research Methodology . . . . . . . . . . . . . . . . . . . . . 7

1.2.1 Research Goal . . . . . . . . . . . . . . . . . . . . . 81.2.2 Research Questions: . . . . . . . . . . . . . . . . . . 81.2.3 Research Process . . . . . . . . . . . . . . . . . . . . 9

1.3 Thesis Outline . . . . . . . . . . . . . . . . . . . . . . . . . . 11

2 Background 132.1 Industrial Networks . . . . . . . . . . . . . . . . . . . . . . . 13

2.1.1 Communication in Industrial Automation Systems . . 152.2 Clock Synhronization . . . . . . . . . . . . . . . . . . . . . . 16

2.2.1 Clock Synchronization Principle . . . . . . . . . . . . 172.2.2 Sources of Errors . . . . . . . . . . . . . . . . . . . . 222.2.3 Network-based Timing Protocols . . . . . . . . . . . 242.2.4 Clock Synchronization in Today’s Industrial Networks 262.2.5 Future Industrial Evolution and Clock Synchronization

Needs . . . . . . . . . . . . . . . . . . . . . . . . . . 28

3 Thesis Contributions 313.1 Thesis Contributions . . . . . . . . . . . . . . . . . . . . . . 31

3.1.1 Formulation of the key clock synchronization relatedissues in existing industrial network deployments (C1) 31

xi

Contents

I Thesis 1

1 Introduction 31.1 Problem Formulation . . . . . . . . . . . . . . . . . . . . . . 61.2 Research Methodology . . . . . . . . . . . . . . . . . . . . . 7

1.2.1 Research Goal . . . . . . . . . . . . . . . . . . . . . 81.2.2 Research Questions: . . . . . . . . . . . . . . . . . . 81.2.3 Research Process . . . . . . . . . . . . . . . . . . . . 9

1.3 Thesis Outline . . . . . . . . . . . . . . . . . . . . . . . . . . 11

2 Background 132.1 Industrial Networks . . . . . . . . . . . . . . . . . . . . . . . 13

2.1.1 Communication in Industrial Automation Systems . . 152.2 Clock Synhronization . . . . . . . . . . . . . . . . . . . . . . 16

2.2.1 Clock Synchronization Principle . . . . . . . . . . . . 172.2.2 Sources of Errors . . . . . . . . . . . . . . . . . . . . 222.2.3 Network-based Timing Protocols . . . . . . . . . . . 242.2.4 Clock Synchronization in Today’s Industrial Networks 262.2.5 Future Industrial Evolution and Clock Synchronization

Needs . . . . . . . . . . . . . . . . . . . . . . . . . . 28

3 Thesis Contributions 313.1 Thesis Contributions . . . . . . . . . . . . . . . . . . . . . . 31

3.1.1 Formulation of the key clock synchronization relatedissues in existing industrial network deployments (C1) 31

xi

13

Page 15: Investigating Software-Based Clock Synchronization for ...

xii Contents

3.1.2 Derivation of the future clock synchronizationrequirements that enable the evolution of futureindustrial automation systems (C2) . . . . . . . . . . . 32

3.1.3 Derivation of key communication performance metricsfrom industrial network traffic data affecting theperformance of clock synchronization (C3) . . . . . . 33

3.1.4 A proposed approach for an industrial network data toassess the performance of clock synchronization (C4) . 34

3.1.5 An approach to enhance the accuracy and precision ofclock synchronization using predictable network packetdelay strategies (C5) . . . . . . . . . . . . . . . . . . 35

3.2 Overview of Papers . . . . . . . . . . . . . . . . . . . . . . . 363.2.1 Personal Contributions . . . . . . . . . . . . . . . . . 373.2.2 Included Papers . . . . . . . . . . . . . . . . . . . . . 37

4 Related Work 43

5 Conclusion 475.1 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

5.1.1 Answering Research Question 1 . . . . . . . . . . . . 485.1.2 Answering Research Question 2 . . . . . . . . . . . . 495.1.3 Answering Research Question 3 . . . . . . . . . . . . 50

5.2 Future Work . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

Bibliography 53

II Included Papers 61

6 Paper A:In Sync with Today’s Industrial System Clocks 636.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 656.2 Evolution of Synchronization in Industrial Automation Systems 676.3 Synchronization in Industrial Automation Systems . . . . . . 706.4 Synchronization Challenges . . . . . . . . . . . . . . . . . . 71

xii Contents

3.1.2 Derivation of the future clock synchronizationrequirements that enable the evolution of futureindustrial automation systems (C2) . . . . . . . . . . . 32

3.1.3 Derivation of key communication performance metricsfrom industrial network traffic data affecting theperformance of clock synchronization (C3) . . . . . . 33

3.1.4 A proposed approach for an industrial network data toassess the performance of clock synchronization (C4) . 34

3.1.5 An approach to enhance the accuracy and precision ofclock synchronization using predictable network packetdelay strategies (C5) . . . . . . . . . . . . . . . . . . 35

3.2 Overview of Papers . . . . . . . . . . . . . . . . . . . . . . . 363.2.1 Personal Contributions . . . . . . . . . . . . . . . . . 373.2.2 Included Papers . . . . . . . . . . . . . . . . . . . . . 37

4 Related Work 43

5 Conclusion 475.1 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

5.1.1 Answering Research Question 1 . . . . . . . . . . . . 485.1.2 Answering Research Question 2 . . . . . . . . . . . . 495.1.3 Answering Research Question 3 . . . . . . . . . . . . 50

5.2 Future Work . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

Bibliography 53

II Included Papers 61

6 Paper A:In Sync with Today’s Industrial System Clocks 636.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 656.2 Evolution of Synchronization in Industrial Automation Systems 676.3 Synchronization in Industrial Automation Systems . . . . . . 706.4 Synchronization Challenges . . . . . . . . . . . . . . . . . . 71

14

Page 16: Investigating Software-Based Clock Synchronization for ...

Contents xiii

6.4.1 Higher Synchronization Accuracy . . . . . . . . . . . 726.4.2 Co-existence of Multiple Synchronization Profiles . . 736.4.3 Loading of Synchronization Related Traffic . . . . . . 756.4.4 Absolute and Relative Synchronization . . . . . . . . 756.4.5 Secured Synchronization . . . . . . . . . . . . . . . 766.4.6 Standardization . . . . . . . . . . . . . . . . . . . . . 77

6.5 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . 776.6 Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 78Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

7 Paper B:Clock Synchronization in Future Industrial Networks:Applications, Challenges, and Directions 837.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 857.2 Future Industrial Automation Systems . . . . . . . . . . . . . 86

7.2.1 Vision . . . . . . . . . . . . . . . . . . . . . . . . . . 867.2.2 Technology Enablers . . . . . . . . . . . . . . . . . . 877.2.3 Architecture . . . . . . . . . . . . . . . . . . . . . . . 887.2.4 Driving Applications . . . . . . . . . . . . . . . . . . 89

7.3 Synchronization in Future Industrial Automation Systems . . . 937.4 Discussion . . . . . . . . . . . . . . . . . . . . . . . . . . . . 977.5 Conclusion and Future Work . . . . . . . . . . . . . . . . . . 98Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101

8 Paper C:Delay and Jitter Analysis in Industrial Control Systems: A PaperMill Case Study 1038.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 1058.2 Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . 1068.3 Challenges with factory network analysis and our approach . 1078.4 Data measurement . . . . . . . . . . . . . . . . . . . . . . . 108

8.4.1 Industrial site: A pulp and paper factory . . . . . . . . 1098.4.2 A communication network in the factory . . . . . . . 1098.4.3 Data measurement setup . . . . . . . . . . . . . . . . 1118.4.4 RTT measurement methodology . . . . . . . . . . . . 111

Contents xiii

6.4.1 Higher Synchronization Accuracy . . . . . . . . . . . 726.4.2 Co-existence of Multiple Synchronization Profiles . . 736.4.3 Loading of Synchronization Related Traffic . . . . . . 756.4.4 Absolute and Relative Synchronization . . . . . . . . 756.4.5 Secured Synchronization . . . . . . . . . . . . . . . 766.4.6 Standardization . . . . . . . . . . . . . . . . . . . . . 77

6.5 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . 776.6 Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 78Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79

7 Paper B:Clock Synchronization in Future Industrial Networks:Applications, Challenges, and Directions 837.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 857.2 Future Industrial Automation Systems . . . . . . . . . . . . . 86

7.2.1 Vision . . . . . . . . . . . . . . . . . . . . . . . . . . 867.2.2 Technology Enablers . . . . . . . . . . . . . . . . . . 877.2.3 Architecture . . . . . . . . . . . . . . . . . . . . . . . 887.2.4 Driving Applications . . . . . . . . . . . . . . . . . . 89

7.3 Synchronization in Future Industrial Automation Systems . . . 937.4 Discussion . . . . . . . . . . . . . . . . . . . . . . . . . . . . 977.5 Conclusion and Future Work . . . . . . . . . . . . . . . . . . 98Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101

8 Paper C:Delay and Jitter Analysis in Industrial Control Systems: A PaperMill Case Study 1038.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 1058.2 Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . 1068.3 Challenges with factory network analysis and our approach . 1078.4 Data measurement . . . . . . . . . . . . . . . . . . . . . . . 108

8.4.1 Industrial site: A pulp and paper factory . . . . . . . . 1098.4.2 A communication network in the factory . . . . . . . 1098.4.3 Data measurement setup . . . . . . . . . . . . . . . . 1118.4.4 RTT measurement methodology . . . . . . . . . . . . 111

15

Page 17: Investigating Software-Based Clock Synchronization for ...

xiv Contents

8.5 Packet Delay and Variation Analysis . . . . . . . . . . . . . . 1128.5.1 RTT data . . . . . . . . . . . . . . . . . . . . . . . . 1138.5.2 Control networks . . . . . . . . . . . . . . . . . . . . 1138.5.3 Client/Server networks . . . . . . . . . . . . . . . . . 1158.5.4 PDV statistics . . . . . . . . . . . . . . . . . . . . . . 116

8.6 Performance assessment . . . . . . . . . . . . . . . . . . . . 1188.6.1 Time-sensitive application performance . . . . . . . . 1188.6.2 Time synchronization service performance . . . . . . 1198.6.3 Identifying performance bottlenecks . . . . . . . . . . 122

8.7 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . 124Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

9 Paper D:CoSiNeT: A Lightweight Clock Synchronization Algorithm forIndustrial IoT 1299.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 1319.2 Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . 1349.3 LANs: Time data measurement and analysis . . . . . . . . . . 135

9.3.1 Network data capture method . . . . . . . . . . . . . 1359.3.2 Trace 1: Wired home network . . . . . . . . . . . . . 1359.3.3 Trace 2: Wireless home network . . . . . . . . . . . . 1369.3.4 Trace 3: Wired campus network . . . . . . . . . . . . 1379.3.5 Trace 4: Wireless campus network . . . . . . . . . . . 1389.3.6 Summary: Network time data measurement . . . . . . 138

9.4 CoSiNeT algorithm . . . . . . . . . . . . . . . . . . . . . . . 1409.5 CoSiNeT Evaluation . . . . . . . . . . . . . . . . . . . . . . 140

9.5.1 Trace 1: Wired home network . . . . . . . . . . . . . 1429.5.2 Trace 2: Wireless home network . . . . . . . . . . . . 1429.5.3 Trace 3: Wired campus network . . . . . . . . . . . . 1439.5.4 Trace 4: Wireless campus network . . . . . . . . . . . 1439.5.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . 144

9.6 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . 146Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149

xiv Contents

8.5 Packet Delay and Variation Analysis . . . . . . . . . . . . . . 1128.5.1 RTT data . . . . . . . . . . . . . . . . . . . . . . . . 1138.5.2 Control networks . . . . . . . . . . . . . . . . . . . . 1138.5.3 Client/Server networks . . . . . . . . . . . . . . . . . 1158.5.4 PDV statistics . . . . . . . . . . . . . . . . . . . . . . 116

8.6 Performance assessment . . . . . . . . . . . . . . . . . . . . 1188.6.1 Time-sensitive application performance . . . . . . . . 1188.6.2 Time synchronization service performance . . . . . . 1198.6.3 Identifying performance bottlenecks . . . . . . . . . . 122

8.7 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . 124Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

9 Paper D:CoSiNeT: A Lightweight Clock Synchronization Algorithm forIndustrial IoT 1299.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 1319.2 Related Work . . . . . . . . . . . . . . . . . . . . . . . . . . 1349.3 LANs: Time data measurement and analysis . . . . . . . . . . 135

9.3.1 Network data capture method . . . . . . . . . . . . . 1359.3.2 Trace 1: Wired home network . . . . . . . . . . . . . 1359.3.3 Trace 2: Wireless home network . . . . . . . . . . . . 1369.3.4 Trace 3: Wired campus network . . . . . . . . . . . . 1379.3.5 Trace 4: Wireless campus network . . . . . . . . . . . 1389.3.6 Summary: Network time data measurement . . . . . . 138

9.4 CoSiNeT algorithm . . . . . . . . . . . . . . . . . . . . . . . 1409.5 CoSiNeT Evaluation . . . . . . . . . . . . . . . . . . . . . . 140

9.5.1 Trace 1: Wired home network . . . . . . . . . . . . . 1429.5.2 Trace 2: Wireless home network . . . . . . . . . . . . 1429.5.3 Trace 3: Wired campus network . . . . . . . . . . . . 1439.5.4 Trace 4: Wireless campus network . . . . . . . . . . . 1439.5.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . 144

9.6 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . 146Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149

16

Page 18: Investigating Software-Based Clock Synchronization for ...

I

Thesis

1

I

Thesis

1

17

Page 19: Investigating Software-Based Clock Synchronization for ...

18

Page 20: Investigating Software-Based Clock Synchronization for ...

Chapter 1

Introduction

Internet of Things (IoT) has revolutionized many businesses by changing howdata is utilized to make products and services more efficient, reliable, andprofitable. Industrial internet of things (IIoT) in its turn, can bringtransformation in automation business allowing it to achieve improvedproductivity, reliability, and revenues by connecting industrial devices to “theInternet” [1]. However, the adoption of IoT in industrial automation is lessproactive compared to other businesses [2] as industrial systems in coal, steel,oil, gas, chemical domains are complex, safety-critical, and hazardous. Also,any process failure in such systems has a significant impact as it can result inproduction stalls, a loss of revenues or human lives. To enable furtheracceptance, IIoT systems need to meet the strict requirements of industrialautomation domain by overcoming challenges related to security, availability,interoperability, reliability, and deterministic communication.

Most industrial applications that deal with control and interlock aretime-sensitive and mission-critical. They often require activities to be carriedout simultaneously and with proper time sequencing. A clock or timesynchronization solution establishes a time server that distributes time to clientdevices in the network, and enables a common time base and correctsequencing of events in an industrial network. Thus, clock synchronization isessential for the correct and consistent operation in the majority of automationsystems. Synchronized devices accurately timestamp events and enable timely

3

Chapter 1

Introduction

Internet of Things (IoT) has revolutionized many businesses by changing howdata is utilized to make products and services more efficient, reliable, andprofitable. Industrial internet of things (IIoT) in its turn, can bringtransformation in automation business allowing it to achieve improvedproductivity, reliability, and revenues by connecting industrial devices to “theInternet” [1]. However, the adoption of IoT in industrial automation is lessproactive compared to other businesses [2] as industrial systems in coal, steel,oil, gas, chemical domains are complex, safety-critical, and hazardous. Also,any process failure in such systems has a significant impact as it can result inproduction stalls, a loss of revenues or human lives. To enable furtheracceptance, IIoT systems need to meet the strict requirements of industrialautomation domain by overcoming challenges related to security, availability,interoperability, reliability, and deterministic communication.

Most industrial applications that deal with control and interlock aretime-sensitive and mission-critical. They often require activities to be carriedout simultaneously and with proper time sequencing. A clock or timesynchronization solution establishes a time server that distributes time to clientdevices in the network, and enables a common time base and correctsequencing of events in an industrial network. Thus, clock synchronization isessential for the correct and consistent operation in the majority of automationsystems. Synchronized devices accurately timestamp events and enable timely

3

19

Page 21: Investigating Software-Based Clock Synchronization for ...

4 Chapter 1. Introduction

communication of messages over a communication network. An inaccurate andinconsistent data analysis is a common consequence of impropersynchronization, and can affect automation functions, e.g., by producing falsecommands and warnings. The alignment of time, i.e., time synchronization, iscritical for the correct performance of automation functions [3].

Traditionally industrial networks predominantly used reliable wirednetworks in order to meet the hard deadlines required for critical controlfunctions. Wireless solutions are finding great attention in today’s industrialnetworks due to increased mobility, flexibility at reduced cost and weightcompared to their wired counterparts. However, wireless links are prone tofrequent missing packets and variable packet delays that may result intounreliable data communication. Many industrial systems have started adoptingwireless solutions for monitoring applications, e.g., wireless sensor networks atthe field level for data acquisition. Thus, industrial networks are increasinglybecoming heterogeneous networks that comprise of both wired and wirelessnetwork parts [4]. In addition, the industrial network conditions are moredynamic than a standard Ethernet network, and the harsh, hostile environmentin industries adds noise and interference to make the situation worse. Together,the harsh environment, and the varying channel conditions due to heterogeneousnetworks lead to packet loss, packet delay variation (PDV), and concession.Since PDV and other network deteriorating conditions directly impact theaccuracy of clock synchronization, achieving the adequate levels ofsynchronization accuracy in industrial networks is extremely challenging. Thisthesis is focused on clock synchronization in heterogeneous industrial networks.

Industrial automation systems evolve from the existing rigid automationpyramid to a flexible and re-configurable architecture due to the market andbusiness evolution. The advancement of cyber-physical systems (CPS) and IIoTis expected to enable the future evolution of industrial networks throughIndustry 4.0 with the possibility of realizing advanced industrial applicationssuch as cloud robotics, factory drones, and smart grid monitoring [5]. Thedetailed investigation of future industrial applications [3],[6] revealed key timesynchronization requirements for future industrial networks. Future timesynchronization needs to be cost-effective, accurate, precise, easy to deploy andmaintain, highly scalable and secured, and efficiently monitored among others.

4 Chapter 1. Introduction

communication of messages over a communication network. An inaccurate andinconsistent data analysis is a common consequence of impropersynchronization, and can affect automation functions, e.g., by producing falsecommands and warnings. The alignment of time, i.e., time synchronization, iscritical for the correct performance of automation functions [3].

Traditionally industrial networks predominantly used reliable wirednetworks in order to meet the hard deadlines required for critical controlfunctions. Wireless solutions are finding great attention in today’s industrialnetworks due to increased mobility, flexibility at reduced cost and weightcompared to their wired counterparts. However, wireless links are prone tofrequent missing packets and variable packet delays that may result intounreliable data communication. Many industrial systems have started adoptingwireless solutions for monitoring applications, e.g., wireless sensor networks atthe field level for data acquisition. Thus, industrial networks are increasinglybecoming heterogeneous networks that comprise of both wired and wirelessnetwork parts [4]. In addition, the industrial network conditions are moredynamic than a standard Ethernet network, and the harsh, hostile environmentin industries adds noise and interference to make the situation worse. Together,the harsh environment, and the varying channel conditions due to heterogeneousnetworks lead to packet loss, packet delay variation (PDV), and concession.Since PDV and other network deteriorating conditions directly impact theaccuracy of clock synchronization, achieving the adequate levels ofsynchronization accuracy in industrial networks is extremely challenging. Thisthesis is focused on clock synchronization in heterogeneous industrial networks.

Industrial automation systems evolve from the existing rigid automationpyramid to a flexible and re-configurable architecture due to the market andbusiness evolution. The advancement of cyber-physical systems (CPS) and IIoTis expected to enable the future evolution of industrial networks throughIndustry 4.0 with the possibility of realizing advanced industrial applicationssuch as cloud robotics, factory drones, and smart grid monitoring [5]. Thedetailed investigation of future industrial applications [3],[6] revealed key timesynchronization requirements for future industrial networks. Future timesynchronization needs to be cost-effective, accurate, precise, easy to deploy andmaintain, highly scalable and secured, and efficiently monitored among others.

20

Page 22: Investigating Software-Based Clock Synchronization for ...

5

Currently, industrial networks use two types of synchronization:hardware-based clock synchronization used by Global PositioningSystems (GPS), Inter-range instrumentation group time codes B (IRIG-B) [7],One Pulse Per Second (1PPS), Precision Time Protocol (PTP) [8] andsoftware-based clock synchronization used by Network Time Protocol (NTP),Simple Network Time Protocol (SNTP) [9] as well as many vendor-specificsolutions. Fig. 1.1 depicts the comparison of state-of-practice hardware andsoftware clock synchronization solutions. Two prominent and widely usedhardware and software-based clock synchronization solutions, PTP and NTPrespectively were selected for the comparison. The two mechanisms werequalitatively rated (very low, low, medium, high, very high) on importantparameters such as ease of implementation, maintenance, cost, accuracy,overheads, monitoring, security and scalability.

Figure 1.1. Qualitative comparison of hardware- and software-based clocksynchronization solutions

The state-of-practice hardware-based clock synchronization solutionsprovide a higher accuracy needed for advanced applications. However, theyrequire hardware support in devices for precise timestamping, resulting in

5

Currently, industrial networks use two types of synchronization:hardware-based clock synchronization used by Global PositioningSystems (GPS), Inter-range instrumentation group time codes B (IRIG-B) [7],One Pulse Per Second (1PPS), Precision Time Protocol (PTP) [8] andsoftware-based clock synchronization used by Network Time Protocol (NTP),Simple Network Time Protocol (SNTP) [9] as well as many vendor-specificsolutions. Fig. 1.1 depicts the comparison of state-of-practice hardware andsoftware clock synchronization solutions. Two prominent and widely usedhardware and software-based clock synchronization solutions, PTP and NTPrespectively were selected for the comparison. The two mechanisms werequalitatively rated (very low, low, medium, high, very high) on importantparameters such as ease of implementation, maintenance, cost, accuracy,overheads, monitoring, security and scalability.

Figure 1.1. Qualitative comparison of hardware- and software-based clocksynchronization solutions

The state-of-practice hardware-based clock synchronization solutionsprovide a higher accuracy needed for advanced applications. However, theyrequire hardware support in devices for precise timestamping, resulting in

21

Page 23: Investigating Software-Based Clock Synchronization for ...

6 Chapter 1. Introduction

higher cost, maintenance, and lower scalability. On the other hand, thesoftware-based clock synchronization solutions are economical, highly scalable,easy to deploy and maintain. Thus, software-based clock synchronizationsolutions look like better candidates for future industrial networks, even thoughthey lag in accuracy compared to hardware-based solutions.

Therefore, achieving an adequate synchronization accuracy in futureindustrial networks using software-based clock synchronization solutions thatare cost-effective, accurate, scalable, easy to deploy, and maintain is asignificant research challenge. One of the software paradigms, predictablesoftware systems is gaining attention of researchers who deal with developingtime-sensitive systems that address non-deterministic aperiodic events from itsphysical environment. Predictable software systems overcome challenges oftraditional design and validation technologies such as variability of the system,adaptability to changing scenarios, the multiplicity of infrastructures anddevices, and addressing real-time and mobility issues [10]. The principles ofpredictable software systems such as system identification, time series analysiscan be applied to deal with packet loss, PDV due to device and networkvariability, and predict delays with adequate precision. Thus, the softwarepredictable clock synchronization algorithm can potentially improve theaccuracy in industrial networks.

1.1 Problem Formulation

Industry 4.0 has enabled the implementation of advanced applications like cloudrobotics and drones for manufacturing. Most of the industrial applications arebased on the transfer of time over a network, so the alignment of time or timesynchronization is critical for further successful adaptation of IIoT [6]. Theaccuracy of network-based clock synchronization strongly depends on packetloss and PDV due to all the participating devices in industrial networks. The maincontributors of packet loss and jitter or PDV encountered by timing signals aretransmission delays associated with communication media, processing delaysrelated to end devices, and switches, and queuing delays related to networkswitches [11].

Achieving adequate time synchronization for industrial applications within

6 Chapter 1. Introduction

higher cost, maintenance, and lower scalability. On the other hand, thesoftware-based clock synchronization solutions are economical, highly scalable,easy to deploy and maintain. Thus, software-based clock synchronizationsolutions look like better candidates for future industrial networks, even thoughthey lag in accuracy compared to hardware-based solutions.

Therefore, achieving an adequate synchronization accuracy in futureindustrial networks using software-based clock synchronization solutions thatare cost-effective, accurate, scalable, easy to deploy, and maintain is asignificant research challenge. One of the software paradigms, predictablesoftware systems is gaining attention of researchers who deal with developingtime-sensitive systems that address non-deterministic aperiodic events from itsphysical environment. Predictable software systems overcome challenges oftraditional design and validation technologies such as variability of the system,adaptability to changing scenarios, the multiplicity of infrastructures anddevices, and addressing real-time and mobility issues [10]. The principles ofpredictable software systems such as system identification, time series analysiscan be applied to deal with packet loss, PDV due to device and networkvariability, and predict delays with adequate precision. Thus, the softwarepredictable clock synchronization algorithm can potentially improve theaccuracy in industrial networks.

1.1 Problem Formulation

Industry 4.0 has enabled the implementation of advanced applications like cloudrobotics and drones for manufacturing. Most of the industrial applications arebased on the transfer of time over a network, so the alignment of time or timesynchronization is critical for further successful adaptation of IIoT [6]. Theaccuracy of network-based clock synchronization strongly depends on packetloss and PDV due to all the participating devices in industrial networks. The maincontributors of packet loss and jitter or PDV encountered by timing signals aretransmission delays associated with communication media, processing delaysrelated to end devices, and switches, and queuing delays related to networkswitches [11].

Achieving adequate time synchronization for industrial applications within

22

Page 24: Investigating Software-Based Clock Synchronization for ...

1.2 Research Methodology 7

the new paradigm is challenging due to following reasons:1) The software-based clock synchronization method performs timestamping

at application layer (APP) as compared to MAC layer timestamping for hardwarecounterpart. Thus, the timing message carrying timestamps encounters delay andjitter due to TCP or UDP, IP, MAC and physical layers before entering networkduring its transmission or after being received from network to device during itsreception. Therefore, end device protocol stack contributes significantly to PDV.

2) In industrial systems the software and hardware network resources suchas switches, routers contribute significantly to delay variations, and the exposureto harsh environmental conditions bring interference to the communicationnetwork. Thus, industrial networks pose challenging conditions for establishingand maintaining clock synchronization with an adequate accuracy and precisionin field, control, or client-server networks [12],[13]. The ever-increasing networkheterogeneity due to the growing adoption of wireless networks, e.g., Wi-Fi,Bluetooth, Zigbee, in the industrial networks makes it further challenging [1].

3) IIoT incorporates hundreds of IoT devices across a factory site to collectdata from various subsystems. These typically are inexpensive field devicesthat have low-cost oscillators and are low on computation and communicationresources. Given these limitations, IIoT devices often become a source ofadditional synchronization errors, e.g., under extreme temperatures, oscillatorsintroduce significant offset errors in the synchronization process [14]. Besidesthis, the lower memory and communication capabilities limit the deployment ofcomputationally extensive and hence accurate time synchronization algorithms.

Using predictable software strategies to address these challenges andenhance the clock synchronization accuracy in industrial networks is the focusof this work.

1.2 Research Methodology

Based on the formulated problem, the goal of the research work was derived.The research goal led to the formation of the hypothesis. Finally, the researchquestions were framed in order to validate the hypothesis.

1.2 Research Methodology 7

the new paradigm is challenging due to following reasons:1) The software-based clock synchronization method performs timestamping

at application layer (APP) as compared to MAC layer timestamping for hardwarecounterpart. Thus, the timing message carrying timestamps encounters delay andjitter due to TCP or UDP, IP, MAC and physical layers before entering networkduring its transmission or after being received from network to device during itsreception. Therefore, end device protocol stack contributes significantly to PDV.

2) In industrial systems the software and hardware network resources suchas switches, routers contribute significantly to delay variations, and the exposureto harsh environmental conditions bring interference to the communicationnetwork. Thus, industrial networks pose challenging conditions for establishingand maintaining clock synchronization with an adequate accuracy and precisionin field, control, or client-server networks [12],[13]. The ever-increasing networkheterogeneity due to the growing adoption of wireless networks, e.g., Wi-Fi,Bluetooth, Zigbee, in the industrial networks makes it further challenging [1].

3) IIoT incorporates hundreds of IoT devices across a factory site to collectdata from various subsystems. These typically are inexpensive field devicesthat have low-cost oscillators and are low on computation and communicationresources. Given these limitations, IIoT devices often become a source ofadditional synchronization errors, e.g., under extreme temperatures, oscillatorsintroduce significant offset errors in the synchronization process [14]. Besidesthis, the lower memory and communication capabilities limit the deployment ofcomputationally extensive and hence accurate time synchronization algorithms.

Using predictable software strategies to address these challenges andenhance the clock synchronization accuracy in industrial networks is the focusof this work.

1.2 Research Methodology

Based on the formulated problem, the goal of the research work was derived.The research goal led to the formation of the hypothesis. Finally, the researchquestions were framed in order to validate the hypothesis.

23

Page 25: Investigating Software-Based Clock Synchronization for ...

8 Chapter 1. Introduction

1.2.1 Research Goal

The enhancement of the software-based clock synchronization algorithm forfuture industrial networks, aiming to enable future evolution of industrialnetworks, drives our research and leads to the overall goal of this thesis.

Goal: Enhancing the performance of clock synchronization inheterogeneous industrial networks to enable the evolution of futureindustrial automation from hierarchical and rigid to flexible, reconfigurableand convergent architectures.

Given the goal and the problem described above, the following hypothesisis used in the thesis:

Hypothesis: It is possible to improve the accuracy and precision ofsoftware-based clock synchronization in future industrial networks, utilizingpredictable software strategies to cope with heterogeneity and networkdynamics.

1.2.2 Research Questions:

To reach the goal, the following research questions must be addressed:

• RQ1: What are the key clock synchronization requirements for industrialnetworks enabling significant shift towards future industrial automationsystems?

• RQ2: How to extract key communication performance metrics fromindustrial network traffic data in order to provide guarantees on theperformance of new clock synchronization algorithms as a supportingevidence?

• RQ3: How the clock synchronization errors in industrial networks can beaddressed by means of a new software-based algorithm that improves the

8 Chapter 1. Introduction

1.2.1 Research Goal

The enhancement of the software-based clock synchronization algorithm forfuture industrial networks, aiming to enable future evolution of industrialnetworks, drives our research and leads to the overall goal of this thesis.

Goal: Enhancing the performance of clock synchronization inheterogeneous industrial networks to enable the evolution of futureindustrial automation from hierarchical and rigid to flexible, reconfigurableand convergent architectures.

Given the goal and the problem described above, the following hypothesisis used in the thesis:

Hypothesis: It is possible to improve the accuracy and precision ofsoftware-based clock synchronization in future industrial networks, utilizingpredictable software strategies to cope with heterogeneity and networkdynamics.

1.2.2 Research Questions:

To reach the goal, the following research questions must be addressed:

• RQ1: What are the key clock synchronization requirements for industrialnetworks enabling significant shift towards future industrial automationsystems?

• RQ2: How to extract key communication performance metrics fromindustrial network traffic data in order to provide guarantees on theperformance of new clock synchronization algorithms as a supportingevidence?

• RQ3: How the clock synchronization errors in industrial networks can beaddressed by means of a new software-based algorithm that improves the

24

Page 26: Investigating Software-Based Clock Synchronization for ...

1.2 Research Methodology 9

accuracy and precision of state-of-practice methods?3.1: To what level the accuracy and precision of clock synchronizationin future industrial networks can be improved over the state of practiceusing the newly developed clock synchronization algorithm?

1.2.3 Research Process

The topic of research processes and methods in computer science is importantand underlies any research activity. Several studies have proposed road-mapsand guidelines for conducting research in this field. Since the research goal ofthis thesis is to construct new methods, techniques, and theoretical foundationsbased on the existing knowledge, to contribute to solving real-world problems,we plan to adapt the research methodology proposed by Holz et al. [15]. Theauthors present the four significant steps: i) problem formulation, ii) solutiondesign, iii) implementation, and iv) evaluation of the solution. The researchmethodology adapted from these four steps is described in Fig. 1.2.

Figure 1.2. Research process

1.2 Research Methodology 9

accuracy and precision of state-of-practice methods?3.1: To what level the accuracy and precision of clock synchronizationin future industrial networks can be improved over the state of practiceusing the newly developed clock synchronization algorithm?

1.2.3 Research Process

The topic of research processes and methods in computer science is importantand underlies any research activity. Several studies have proposed road-mapsand guidelines for conducting research in this field. Since the research goal ofthis thesis is to construct new methods, techniques, and theoretical foundationsbased on the existing knowledge, to contribute to solving real-world problems,we plan to adapt the research methodology proposed by Holz et al. [15]. Theauthors present the four significant steps: i) problem formulation, ii) solutiondesign, iii) implementation, and iv) evaluation of the solution. The researchmethodology adapted from these four steps is described in Fig. 1.2.

Figure 1.2. Research process

25

Page 27: Investigating Software-Based Clock Synchronization for ...

10 Chapter 1. Introduction

In this methodology, first, the problem is formulated based on the currentstate of practice and state of the art. After that, the gap in current knowledgeis identified, and a theoretical solution to bridge the gap is proposed. Next, apractical solution is implemented based on new theoretical constructs. Finally,the implemented solution is evaluated against the initially formulated problem.

Figure 1.3. This thesiss’ research process

Fig. 1.3 describes the research process adopted in this thesis and is builtupon presented methodology. The literature review and envisioned futurearchitecture of industrial automation systems enabled us to define futureindustrial networks’ synchronization needs. Further, the analysis of futurerequirements with state-of-the-art and practice solutions revealed the researchgaps. Paper PA included the challenges in existing synchronization systems,

10 Chapter 1. Introduction

In this methodology, first, the problem is formulated based on the currentstate of practice and state of the art. After that, the gap in current knowledgeis identified, and a theoretical solution to bridge the gap is proposed. Next, apractical solution is implemented based on new theoretical constructs. Finally,the implemented solution is evaluated against the initially formulated problem.

Figure 1.3. This thesiss’ research process

Fig. 1.3 describes the research process adopted in this thesis and is builtupon presented methodology. The literature review and envisioned futurearchitecture of industrial automation systems enabled us to define futureindustrial networks’ synchronization needs. Further, the analysis of futurerequirements with state-of-the-art and practice solutions revealed the researchgaps. Paper PA included the challenges in existing synchronization systems,

26

Page 28: Investigating Software-Based Clock Synchronization for ...

1.3 Thesis Outline 11

whereas PB included future synchronization challenges in industrial networks.This analysis was used for the formulation of early research questions andhypotheses. The next step was to analyze heterogeneous communicationnetworks to understand the network dynamics. In paper PC , we selected theexisting conceptual frameworks which underlie this research and related it toexisting knowledge. Paper PC , analyzed actual industrial network data from thefactory site to identify the key communication parameters and theircharacteristics, which were further utilized to assess the performance of timesynchronization service within the industrial network.

Within the next step, Paper PD, a solution was proposed for enhancing theaccuracy of software-based clock synchronization in local area networks.Computer simulators such as Matlab were used to implement the improvedsynchronization algorithms. To evaluate the functional behavior andperformance of new methods, the network data captured from local areanetworks was used as a stimulus for the generation of output data. The outputwas then quantitatively analyzed through a statistical analysis to prove thehypothesis. Paper PE , Paper PF would comprise the new clock synchronizationmethods for wide area networks planned for the next phase.

1.3 Thesis Outline

This licentiate thesis contains two parts. Part I is an overview of the thesisand is organized as follows. We first present the background to the thesis inChapter 2. In Chapter 3, we provide an overview of the included papers andthe contributions brought by each of them. The related work is discussed inChapter 4. In Chapter 5, we present conclusions and an outline of future worktowards a doctoral thesis. Part II includes the collection of included papers.

1.3 Thesis Outline 11

whereas PB included future synchronization challenges in industrial networks.This analysis was used for the formulation of early research questions andhypotheses. The next step was to analyze heterogeneous communicationnetworks to understand the network dynamics. In paper PC , we selected theexisting conceptual frameworks which underlie this research and related it toexisting knowledge. Paper PC , analyzed actual industrial network data from thefactory site to identify the key communication parameters and theircharacteristics, which were further utilized to assess the performance of timesynchronization service within the industrial network.

Within the next step, Paper PD, a solution was proposed for enhancing theaccuracy of software-based clock synchronization in local area networks.Computer simulators such as Matlab were used to implement the improvedsynchronization algorithms. To evaluate the functional behavior andperformance of new methods, the network data captured from local areanetworks was used as a stimulus for the generation of output data. The outputwas then quantitatively analyzed through a statistical analysis to prove thehypothesis. Paper PE , Paper PF would comprise the new clock synchronizationmethods for wide area networks planned for the next phase.

1.3 Thesis Outline

This licentiate thesis contains two parts. Part I is an overview of the thesisand is organized as follows. We first present the background to the thesis inChapter 2. In Chapter 3, we provide an overview of the included papers andthe contributions brought by each of them. The related work is discussed inChapter 4. In Chapter 5, we present conclusions and an outline of future worktowards a doctoral thesis. Part II includes the collection of included papers.

27

Page 29: Investigating Software-Based Clock Synchronization for ...

28

Page 30: Investigating Software-Based Clock Synchronization for ...

Chapter 2

Background

This chapter contains background information on the work presented in thisthesis. The chapter consists of two main parts. The first part introducesindustrial networks, and the second part covers network-based clocksynchronization principles, sources of errors, protocols, and typical clocksynchronization protocols used in industrial networks. In the end, the chapterdescribes future industrial evolution and its envisioned architecture.

2.1 Industrial Networks

Industrial automation systems are used in a variety of process industries suchas oil and gas, cement and glass, paper and pulp, food beverage, electric power,chemical, pharmaceutical, metal, and mineral, marine. The automation systemsprovide an IT architecture-based integration platform with seamless connectivityto plant systems, applications, and field infrastructure that enables a flexible,integrated, and collaborative environment.

An industrial communication network is a backbone for any automationsystem architecture. It provides a powerful means of data exchange, datacontrollability, and flexibility to connect various devices. These networks canbe either Local Area Network (LAN) or Wide Area Network (WAN) required tocommunicate vast amounts of data using a limited number of channels.Commercial communication networks enable best-effort data communication

13

Chapter 2

Background

This chapter contains background information on the work presented in thisthesis. The chapter consists of two main parts. The first part introducesindustrial networks, and the second part covers network-based clocksynchronization principles, sources of errors, protocols, and typical clocksynchronization protocols used in industrial networks. In the end, the chapterdescribes future industrial evolution and its envisioned architecture.

2.1 Industrial Networks

Industrial automation systems are used in a variety of process industries suchas oil and gas, cement and glass, paper and pulp, food beverage, electric power,chemical, pharmaceutical, metal, and mineral, marine. The automation systemsprovide an IT architecture-based integration platform with seamless connectivityto plant systems, applications, and field infrastructure that enables a flexible,integrated, and collaborative environment.

An industrial communication network is a backbone for any automationsystem architecture. It provides a powerful means of data exchange, datacontrollability, and flexibility to connect various devices. These networks canbe either Local Area Network (LAN) or Wide Area Network (WAN) required tocommunicate vast amounts of data using a limited number of channels.Commercial communication networks enable best-effort data communication

13

29

Page 31: Investigating Software-Based Clock Synchronization for ...

14 Chapter 2. Background

among computers, peripherals, and other devices. In contrast, the industrialcommunication networks handle real-time control and data integrity in harshenvironments over large installations. The following are the special features ofindustrial networks that set them apart from commercial networks:Latency: Latency is defined as the time duration between a time at which data issensed by a sensor and the time the actuator receives the same processed datafor action. Most of the control and interlock applications require latency in theorder of milliseconds. Thus, offering low latency and low jitter communicationin industrial networks is an essential requirement [16].Reliability and Availability: The industrial systems for coal, steel,pharmaceuticals, oil, gas, chemicals, etc., are complex, critical, and hazardous.Any process failure has a significant impact as it can result in production stalls,a loss of revenues, or human lives. Hence, the communication systems inindustrial environments need to be highly reliable and fault-tolerant [17].Determinism: Determinism and predictability, the ability to foresee and knowhow the system will behave is critical for the support of all the components inthe system. Time-sensitive industrial applications’ performance depends uponindustrial networks providing real-time, deterministic, and predictable datatransfers [2]. The critical industrial applications require the data to beexchanged in real-time to meet the latency deadlines. These deadlines are hardand must be achieved. Consecutive deadline misses due to excessive packetdelays can put automation systems in an unsafe state.Heterogeneity: Heterogeneity can be defined at many levels of a system. In thecontext of communication, a heterogeneous network comprises networks ofdifferent natures, e.g., a network including wired and wireless sub-networks.Traditionally industrial systems used wired links to achieve timeliness anddeterministic data deliveries. However, many industrial systems have startedadopting wireless solutions for monitoring applications [18], e.g., wirednetworks at the control level for controllers and wireless sensor networks at thefield level for data acquisition. Thus, industrial networks are increasinglybecoming heterogeneous networks [19]. The wireless links can not provide thesame communication performance as wired links due to their broadcast nature.Besides, under the umbrella of wireless networks, there are possibilities to usedifferent wireless technologies together, which can potentially interfere and

14 Chapter 2. Background

among computers, peripherals, and other devices. In contrast, the industrialcommunication networks handle real-time control and data integrity in harshenvironments over large installations. The following are the special features ofindustrial networks that set them apart from commercial networks:Latency: Latency is defined as the time duration between a time at which data issensed by a sensor and the time the actuator receives the same processed datafor action. Most of the control and interlock applications require latency in theorder of milliseconds. Thus, offering low latency and low jitter communicationin industrial networks is an essential requirement [16].Reliability and Availability: The industrial systems for coal, steel,pharmaceuticals, oil, gas, chemicals, etc., are complex, critical, and hazardous.Any process failure has a significant impact as it can result in production stalls,a loss of revenues, or human lives. Hence, the communication systems inindustrial environments need to be highly reliable and fault-tolerant [17].Determinism: Determinism and predictability, the ability to foresee and knowhow the system will behave is critical for the support of all the components inthe system. Time-sensitive industrial applications’ performance depends uponindustrial networks providing real-time, deterministic, and predictable datatransfers [2]. The critical industrial applications require the data to beexchanged in real-time to meet the latency deadlines. These deadlines are hardand must be achieved. Consecutive deadline misses due to excessive packetdelays can put automation systems in an unsafe state.Heterogeneity: Heterogeneity can be defined at many levels of a system. In thecontext of communication, a heterogeneous network comprises networks ofdifferent natures, e.g., a network including wired and wireless sub-networks.Traditionally industrial systems used wired links to achieve timeliness anddeterministic data deliveries. However, many industrial systems have startedadopting wireless solutions for monitoring applications [18], e.g., wirednetworks at the control level for controllers and wireless sensor networks at thefield level for data acquisition. Thus, industrial networks are increasinglybecoming heterogeneous networks [19]. The wireless links can not provide thesame communication performance as wired links due to their broadcast nature.Besides, under the umbrella of wireless networks, there are possibilities to usedifferent wireless technologies together, which can potentially interfere and

30

Page 32: Investigating Software-Based Clock Synchronization for ...

2.1 Industrial Networks 15

degrade communication performance.

2.1.1 Communication in Industrial Automation Systems

Fig. 2.1 shows the hierarchical structure of the industrial automation systems,also known as the automation pyramid, based on the ISA-95 standard [20] forenterprise-control system integration. The hierarchical levels field, control,production, and enterprise define the stages at which decisions are made. Thebottom two and partly third levels consist of Operations Technology (OT)equipment and protocols, which are the critical part of the plant automationsystem. All the above layers consist of Information Technology (IT) equipmentand protocols. Typically, the system complexity increases and real-timeperformance requirements tighten when going from higher to lower levels.

Figure 2.1. Automation pyramid architecture of industrial automation systems

System communication in typical automation systems is based on Ethernetand TCP/IP networks. The industrial network follows a hierarchical structureconsisting of levels, namely, field, control, client/server, and corporate ITnetworks [2], [21].

2.1 Industrial Networks 15

degrade communication performance.

2.1.1 Communication in Industrial Automation Systems

Fig. 2.1 shows the hierarchical structure of the industrial automation systems,also known as the automation pyramid, based on the ISA-95 standard [20] forenterprise-control system integration. The hierarchical levels field, control,production, and enterprise define the stages at which decisions are made. Thebottom two and partly third levels consist of Operations Technology (OT)equipment and protocols, which are the critical part of the plant automationsystem. All the above layers consist of Information Technology (IT) equipmentand protocols. Typically, the system complexity increases and real-timeperformance requirements tighten when going from higher to lower levels.

Figure 2.1. Automation pyramid architecture of industrial automation systems

System communication in typical automation systems is based on Ethernetand TCP/IP networks. The industrial network follows a hierarchical structureconsisting of levels, namely, field, control, client/server, and corporate ITnetworks [2], [21].

31

Page 33: Investigating Software-Based Clock Synchronization for ...

16 Chapter 2. Background

Field Network

A field network supports different field-buses, many of which are based onEthernet. The field network connects the field devices such as sensors, actuators,IO systems, motor control systems, electrical protection relays, and gateways.

Control Network

A control network is a network that enables communication between controllersand field devices. It is a LAN that is optimized for high-performance and reliablecommunication with predictable response times. Controllers in this network areconnected to the upper-level client/server network via connectivity servers.

Client/Server Network

A client/server network is used for communication among servers and betweenclient workplaces and servers. The server functions mainly consist of dataacquisition, alarm processing, calculations, and historical data recording. Theclient functions provide a capability to access server data by mimic displays,alarm lists, trends, as well as controlling field devices. The client functions alsoprovide an ability for an engineer to configure and maintain various databasesimplemented on the server. The client/server network is a trusted network zonethat is typically protected by firewalls. From a configuration perspective, it is aprivate IP network that uses static addresses.

Plant/Corporate IT Network

The top corporate IT or plant supports administrative functions, productioncontrol, and scheduling. A plant network used for process automation purposes,is part of the already available intranet at the plant site.

2.2 Clock Synhronization

This section describes the principle behind network-based clock synchronizationprotocols, i.e., exchanging timing messages between distributed clocks and

16 Chapter 2. Background

Field Network

A field network supports different field-buses, many of which are based onEthernet. The field network connects the field devices such as sensors, actuators,IO systems, motor control systems, electrical protection relays, and gateways.

Control Network

A control network is a network that enables communication between controllersand field devices. It is a LAN that is optimized for high-performance and reliablecommunication with predictable response times. Controllers in this network areconnected to the upper-level client/server network via connectivity servers.

Client/Server Network

A client/server network is used for communication among servers and betweenclient workplaces and servers. The server functions mainly consist of dataacquisition, alarm processing, calculations, and historical data recording. Theclient functions provide a capability to access server data by mimic displays,alarm lists, trends, as well as controlling field devices. The client functions alsoprovide an ability for an engineer to configure and maintain various databasesimplemented on the server. The client/server network is a trusted network zonethat is typically protected by firewalls. From a configuration perspective, it is aprivate IP network that uses static addresses.

Plant/Corporate IT Network

The top corporate IT or plant supports administrative functions, productioncontrol, and scheduling. A plant network used for process automation purposes,is part of the already available intranet at the plant site.

2.2 Clock Synhronization

This section describes the principle behind network-based clock synchronizationprotocols, i.e., exchanging timing messages between distributed clocks and

32

Page 34: Investigating Software-Based Clock Synchronization for ...

2.2 Clock Synhronization 17

correction of deviated clocks. These exchanges provide raw delay and timeoffset measurements. The clock synchronization control algorithm uses signalprocessing techniques to process these raw measurements to improve the clocksynchronization accuracy among devices.

2.2.1 Clock Synchronization Principle

The typical clock synchronization process involves a master (server) device anda slave (client) device that continuously synchronizes its clock with the clock ofthe master device. Fig. 2.2 shows the server and client clock relationships.

Figure 2.2. Time relationship between server clock xS(t) and client clock xC(t)

The first order model of a clock server (master clock) is

xS(t) = ΦS .t+ ΘS , (2.1)

2.2 Clock Synhronization 17

correction of deviated clocks. These exchanges provide raw delay and timeoffset measurements. The clock synchronization control algorithm uses signalprocessing techniques to process these raw measurements to improve the clocksynchronization accuracy among devices.

2.2.1 Clock Synchronization Principle

The typical clock synchronization process involves a master (server) device anda slave (client) device that continuously synchronizes its clock with the clock ofthe master device. Fig. 2.2 shows the server and client clock relationships.

Figure 2.2. Time relationship between server clock xS(t) and client clock xC(t)

The first order model of a clock server (master clock) is

xS(t) = ΦS .t+ ΘS , (2.1)

33

Page 35: Investigating Software-Based Clock Synchronization for ...

18 Chapter 2. Background

where ΘS is the initial time offset, ΦS is the clock frequency, and t denotes truetime. For high quality clocks have ΦS

∼= 1. Similarly, for a client clock (slaveclock),

xC(t) = ΦC .t+ ΘC . (2.2)

In embedded systems, xC(t) and xS(t) are local readings of the local clock(counters) at time t. In general, a clock xC(t) has a time-varying offset x(t)against the reference clock xS(t),

xC(t) = xS(t) + x(t). (2.3)

The task of the clock synchronization is to synchronize the client (software)clock xC(t) to the server clock xS(t), by estimating and compensating thetime offset x(t). The time offset will, in the first-order approximation, increaselinearly with time due to the frequency offset y0 (skew),

x(t) = (ΦC − ΦS).t+ (ΘC −ΘS) = y0.t+ x0, (2.4)

where, x0 is the initial time offset between a client and a server. Thus,compensation of the time offset can be improved by also taking into accountthis linear component. In practice, the frequency offset of the client clocksshould be small, in the order of |y0| ≤ 100ppm.

The basic method to estimate the message transmission delay over anetwork is to measure the “echo” delay time of a sounding message; half of theecho round-trip time is an estimate of the one-way delay to be used for clockcorrection under the assumption of the transmission delay being symmetrical.To improve accuracy, the message processing delay is eliminated by exchangingappropriate timestamps as shown in Fig. 2.3

At true time t1, or client time T1 = xC(tn), the client sends a Delay_Requestmessage to the server. The message is received by the server at true time(tn + dCS), or server time T2 = xS((tn + dCS), where dCS is the transmissiondelay from client to server. Using the linear clock models above the following

18 Chapter 2. Background

where ΘS is the initial time offset, ΦS is the clock frequency, and t denotes truetime. For high quality clocks have ΦS

∼= 1. Similarly, for a client clock (slaveclock),

xC(t) = ΦC .t+ ΘC . (2.2)

In embedded systems, xC(t) and xS(t) are local readings of the local clock(counters) at time t. In general, a clock xC(t) has a time-varying offset x(t)against the reference clock xS(t),

xC(t) = xS(t) + x(t). (2.3)

The task of the clock synchronization is to synchronize the client (software)clock xC(t) to the server clock xS(t), by estimating and compensating thetime offset x(t). The time offset will, in the first-order approximation, increaselinearly with time due to the frequency offset y0 (skew),

x(t) = (ΦC − ΦS).t+ (ΘC −ΘS) = y0.t+ x0, (2.4)

where, x0 is the initial time offset between a client and a server. Thus,compensation of the time offset can be improved by also taking into accountthis linear component. In practice, the frequency offset of the client clocksshould be small, in the order of |y0| ≤ 100ppm.

The basic method to estimate the message transmission delay over anetwork is to measure the “echo” delay time of a sounding message; half of theecho round-trip time is an estimate of the one-way delay to be used for clockcorrection under the assumption of the transmission delay being symmetrical.To improve accuracy, the message processing delay is eliminated by exchangingappropriate timestamps as shown in Fig. 2.3

At true time t1, or client time T1 = xC(tn), the client sends a Delay_Requestmessage to the server. The message is received by the server at true time(tn + dCS), or server time T2 = xS((tn + dCS), where dCS is the transmissiondelay from client to server. Using the linear clock models above the following

34

Page 36: Investigating Software-Based Clock Synchronization for ...

2.2 Clock Synhronization 19

Figure 2.3. One-way time distribution and two-way delay measurement

can be calculated:

T1 = xC(tn) = ΦC .tn + ΘC , (2.5)

T2 = xS(tn + dCS) = ΦS .(tn + dCS) + ΘS . (2.6)

The server responds at time (tn + dCS + dS), where dS is the processingtime in the server. The Delay_Response message carries the time stamps T2and T3, where T3 = xS .(tn + dCS + dS). This message is received by the

2.2 Clock Synhronization 19

Figure 2.3. One-way time distribution and two-way delay measurement

can be calculated:

T1 = xC(tn) = ΦC .tn + ΘC , (2.5)

T2 = xS(tn + dCS) = ΦS .(tn + dCS) + ΘS . (2.6)

The server responds at time (tn + dCS + dS), where dS is the processingtime in the server. The Delay_Response message carries the time stamps T2and T3, where T3 = xS .(tn + dCS + dS). This message is received by the

35

Page 37: Investigating Software-Based Clock Synchronization for ...

20 Chapter 2. Background

client at time (tn + dCS + dS + dSC), which the client time stamps withT4 = xC .(tn + dCS + dS + dSC), further T3 and T4 could be calculated as:

T3 = xS(tn + dCS + dS) = ΦS .(tn + dCS + dS) + ΘS , (2.7)

T4 = xC(tn + dCS + dS + dSC) = ΦC .(tn + dCS + dS + dSC) + ΘC . (2.8)

The four measurements T1, T2, T3, and T4 are now available at the client, fromwhich it can calculate the unknown delays (dCS + dSC) and its clock offset ΘC

by solving Eq. (2.4) to (2.8):

dCS + dSC =T4 − T1

ΦC− T3 − T2

ΦS, (2.9)

hence,

d̂ =T4 − T1

2ΦC− T3 − T2

2ΦS, (2.10)

and,

Θ̂C =1

2(T1 −

ΦC

ΦST2) +

1

2((T4 −

ΦC

ΦST3) + ΦC

∆d

2+

ΦC

ΦSΘS . (2.11)

In Eq. (2.10), d = (dCS+dSC)/2 is the average one-way delay, and in Eq. (2.11),∆d = (dCS−dSC) is the asymmetry in the bidirectional delays, i.e., dCS = d+∆d/2 and dSC = d−∆d/2. The standard assumptions in most implementationsare

• delays are symmetric, i.e., ∆d = 0;

• the clock server provides the reference clock as true time t, hence ΦS = 1and ΘS = 0;

• the client frequency error is neglected, i.e. ΦC = 1.

20 Chapter 2. Background

client at time (tn + dCS + dS + dSC), which the client time stamps withT4 = xC .(tn + dCS + dS + dSC), further T3 and T4 could be calculated as:

T3 = xS(tn + dCS + dS) = ΦS .(tn + dCS + dS) + ΘS , (2.7)

T4 = xC(tn + dCS + dS + dSC) = ΦC .(tn + dCS + dS + dSC) + ΘC . (2.8)

The four measurements T1, T2, T3, and T4 are now available at the client, fromwhich it can calculate the unknown delays (dCS + dSC) and its clock offset ΘC

by solving Eq. (2.4) to (2.8):

dCS + dSC =T4 − T1

ΦC− T3 − T2

ΦS, (2.9)

hence,

d̂ =T4 − T1

2ΦC− T3 − T2

2ΦS, (2.10)

and,

Θ̂C =1

2(T1 −

ΦC

ΦST2) +

1

2((T4 −

ΦC

ΦST3) + ΦC

∆d

2+

ΦC

ΦSΘS . (2.11)

In Eq. (2.10), d = (dCS+dSC)/2 is the average one-way delay, and in Eq. (2.11),∆d = (dCS−dSC) is the asymmetry in the bidirectional delays, i.e., dCS = d+∆d/2 and dSC = d−∆d/2. The standard assumptions in most implementationsare

• delays are symmetric, i.e., ∆d = 0;

• the clock server provides the reference clock as true time t, hence ΦS = 1and ΘS = 0;

• the client frequency error is neglected, i.e. ΦC = 1.

36

Page 38: Investigating Software-Based Clock Synchronization for ...

2.2 Clock Synhronization 21

Then, the general formulas can be simplified to the well-known formulas used,e.g., in NTP/SNTP and PTP,

d̂ =T4 − T1

2− T3 − T2

2, (2.12)

Θ̂C =1

2(T1 − T2) +

1

2(T4 − T3). (2.13)

As described above, the software clock corrects the clock reading xC(t) by theestimated offset ΘC . This two-way method for time synchronization relies on astable and reliable communication network between the clients and the server.The communication is time-critical in the sense that any stochastic variationand asymmetries in the delays dCS(t) and dSC(t) affect the synchronizationaccuracy.

Clock synchronization algorithms improve the estimation and tracking oftime offset and possibly frequency offset, using a sequence of measurementsperformed at times tn, tn+1, tn+2, ...

Such algorithms measure time offset, assuming that the (client) clock is freerunning. Given the time and frequency offset of the client clock at time tn, theclient software clock as per Eq. (2.1) is,

xC(t) = ΦC(tn).t+ ΘC(tn) for t ≥ (tn). (2.14)

In order to maintain synchronization with the reference (server) clock, the clientclock must be corrected. For clock correction, there are many methods inpractice for time and frequency compensation. In direct compensation method,once estimates of time (Θ̂C) and frequency offset ( ˆy0(n)) are available at theclient, its clock parameters from Eq. (2.14) can be updated directly by,

ΘC(tn + 1) := ΘC(tn)− Θ̂C , (2.15)

ΦC(tn + 1) := ΦC(tn)− ˆy0(n). (2.16)

It can be verified that these corrections align the client clock parameters to thereference clock parameters ΘS and ΦS .

2.2 Clock Synhronization 21

Then, the general formulas can be simplified to the well-known formulas used,e.g., in NTP/SNTP and PTP,

d̂ =T4 − T1

2− T3 − T2

2, (2.12)

Θ̂C =1

2(T1 − T2) +

1

2(T4 − T3). (2.13)

As described above, the software clock corrects the clock reading xC(t) by theestimated offset ΘC . This two-way method for time synchronization relies on astable and reliable communication network between the clients and the server.The communication is time-critical in the sense that any stochastic variationand asymmetries in the delays dCS(t) and dSC(t) affect the synchronizationaccuracy.

Clock synchronization algorithms improve the estimation and tracking oftime offset and possibly frequency offset, using a sequence of measurementsperformed at times tn, tn+1, tn+2, ...

Such algorithms measure time offset, assuming that the (client) clock is freerunning. Given the time and frequency offset of the client clock at time tn, theclient software clock as per Eq. (2.1) is,

xC(t) = ΦC(tn).t+ ΘC(tn) for t ≥ (tn). (2.14)

In order to maintain synchronization with the reference (server) clock, the clientclock must be corrected. For clock correction, there are many methods inpractice for time and frequency compensation. In direct compensation method,once estimates of time (Θ̂C) and frequency offset ( ˆy0(n)) are available at theclient, its clock parameters from Eq. (2.14) can be updated directly by,

ΘC(tn + 1) := ΘC(tn)− Θ̂C , (2.15)

ΦC(tn + 1) := ΦC(tn)− ˆy0(n). (2.16)

It can be verified that these corrections align the client clock parameters to thereference clock parameters ΘS and ΦS .

37

Page 39: Investigating Software-Based Clock Synchronization for ...

22 Chapter 2. Background

2.2.2 Sources of Errors

Theoretically, it is possible to achieve perfect clock synchronization accuracy.There are practical aspects related to a communication network and theembedded devices participating in network synchronization that degrade theclock synchronization performance. Fig. 2.4 shows the typical delaysencountered by timing messages exchanged by a server and client devices. The

Figure 2.4. Timing message path between server and client devices

main contributors of packet loss, jitter, or PDV encountered by timing signals,are transmission delays associated with communication media, processingdelays related to end devices and switches, and queuing delays related tonetwork switches [11]. Clock synchronization performance is hampered bydelays and jitter accumulated in the network and in the timestampingprocedures of the devices being synchronized. This is particularly critical insoftware timestamp-based synchronization, where both software- andhardware-related sources contribute to this behavior. The following sectiondescribes these sources of error in detail.

22 Chapter 2. Background

2.2.2 Sources of Errors

Theoretically, it is possible to achieve perfect clock synchronization accuracy.There are practical aspects related to a communication network and theembedded devices participating in network synchronization that degrade theclock synchronization performance. Fig. 2.4 shows the typical delaysencountered by timing messages exchanged by a server and client devices. The

Figure 2.4. Timing message path between server and client devices

main contributors of packet loss, jitter, or PDV encountered by timing signals,are transmission delays associated with communication media, processingdelays related to end devices and switches, and queuing delays related tonetwork switches [11]. Clock synchronization performance is hampered bydelays and jitter accumulated in the network and in the timestampingprocedures of the devices being synchronized. This is particularly critical insoftware timestamp-based synchronization, where both software- andhardware-related sources contribute to this behavior. The following sectiondescribes these sources of error in detail.

38

Page 40: Investigating Software-Based Clock Synchronization for ...

2.2 Clock Synhronization 23

Packet Delay Variation in Communication Network

In network-based clock synchronization, the special hardware-enabledcommunication switches provide in-path support for synchronization messagesby compensating for the processing/ residence/ forwarding delays along thepath, and thereby increasing the accuracy. The impact of PDV on the clocksynchronization performance depends on the in-path support and the number ofhops without compensation for delays. In software-based clock synchronizationsuch as NTP/SNTP, in-path support is not possible as the communicationswitches do not have capability to correct the delays. In the factoryenvironments, most PDV is expected to come from propagation effects andnetwork load. Paths may also change, but the impact of path changes is limitedcompared to the expected frequency of time synchronization. In wirelessenvironments, the dynamic nature of the medium results in missing timesynchronization packets and variable packet delays. Such non-deterministicperformance in packet deliveries gives rise to higher PDVs compared to wirednetworks. Even in the case of heterogeneous networks, wireless networkssignificantly contribute to PDVs. All protocols using two-way delaymeasurements, such as NTP and PTP, assume that the round-trip has asymmetric delay through the network. On direct links, the assumption might becorrect. However, on longer paths with no in-path synchronization support (e.g.,without delay-compensation), the PDV can be considerable.

Packet Delay Variation in End-devices

In practical implementations, considerable PDV may be introduced in thesoftware protocol stack if timestamping Operating System (OS) calls areperformed at the application layer. To overcome PDV in the stack and effects ofcongested channels, it is preferable to perform timestamping at the lower MAClayer or even at the hardware layer, as done in many PTP implementations [22].Fig. 2.4 shows options where time stamps can be extracted in the protocolstack [23].

Besides, the clock oscillator used in devices is a significant source of errorsin clock synchronization. Ticks of oscillator generate the clock, but thefrequency of oscillation can change due to temperature, ageing, and power

2.2 Clock Synhronization 23

Packet Delay Variation in Communication Network

In network-based clock synchronization, the special hardware-enabledcommunication switches provide in-path support for synchronization messagesby compensating for the processing/ residence/ forwarding delays along thepath, and thereby increasing the accuracy. The impact of PDV on the clocksynchronization performance depends on the in-path support and the number ofhops without compensation for delays. In software-based clock synchronizationsuch as NTP/SNTP, in-path support is not possible as the communicationswitches do not have capability to correct the delays. In the factoryenvironments, most PDV is expected to come from propagation effects andnetwork load. Paths may also change, but the impact of path changes is limitedcompared to the expected frequency of time synchronization. In wirelessenvironments, the dynamic nature of the medium results in missing timesynchronization packets and variable packet delays. Such non-deterministicperformance in packet deliveries gives rise to higher PDVs compared to wirednetworks. Even in the case of heterogeneous networks, wireless networkssignificantly contribute to PDVs. All protocols using two-way delaymeasurements, such as NTP and PTP, assume that the round-trip has asymmetric delay through the network. On direct links, the assumption might becorrect. However, on longer paths with no in-path synchronization support (e.g.,without delay-compensation), the PDV can be considerable.

Packet Delay Variation in End-devices

In practical implementations, considerable PDV may be introduced in thesoftware protocol stack if timestamping Operating System (OS) calls areperformed at the application layer. To overcome PDV in the stack and effects ofcongested channels, it is preferable to perform timestamping at the lower MAClayer or even at the hardware layer, as done in many PTP implementations [22].Fig. 2.4 shows options where time stamps can be extracted in the protocolstack [23].

Besides, the clock oscillator used in devices is a significant source of errorsin clock synchronization. Ticks of oscillator generate the clock, but thefrequency of oscillation can change due to temperature, ageing, and power

39

Page 41: Investigating Software-Based Clock Synchronization for ...

24 Chapter 2. Background

fluctuations [24]. Quartz-based, Micro-Electro-Mechanical-Systems (MEMS)based oscillators such as relaxation oscillators, basic crystal oscillators (XOs)are widely used in embedded devices. The studies have revealed the sensitivityof quartz to environmental factors such as temperature and pressure. To dealwith temperature issues, CMOS oscillators [25], temperature-compensatedcrystal oscillators (TCXO) [26], and oven-controlled crystaloscillators (OCXO) [27] have been introduced to improve the stability ofclocks; however, their cost and size could be higher. Thus, the stable crystaloscillator can provide better clock synchronization performance [28].

2.2.3 Network-based Timing Protocols

The protocols considered in this chapter only employ the two-way delaymeasurement approach.

NTP

This protocol which works on the client-server principle, was first definedin 1985 (RFC985) as the first version of NTP. Currently, fourth version ofNTP (RFC5905) [9] is widely deployed in Internet-connected clocks. Thespecification includes both (i) the protocol, i.e., the exchange of timestamps(using UDP packets to server port 123) and (ii) the clock filter algorithm insidea clock peer. The filter algorithm processes the latest eight delay/offset samplesto determine the best-offset estimate, e.g., eliminating delay spikes, and usesthis to discipline the system clock via a Phase-Locked-Loop (PLL). Each NTPclient can be configured to use several independent reference time servers. Eachreference time server is queried (polled) periodically in certain intervals, and thetime servers are then classified as time servers that agree about the same time.This allows a group of good time servers to overvote a smaller group of bad timeservers [29]. Typical NTP implementations use software-layer timestamping.Using NTP on LANs, accuracies of hundreds of milliseconds (ms) are achieved,while on WANs, accuracies of tens or hundreds of ms are realistic [30].

24 Chapter 2. Background

fluctuations [24]. Quartz-based, Micro-Electro-Mechanical-Systems (MEMS)based oscillators such as relaxation oscillators, basic crystal oscillators (XOs)are widely used in embedded devices. The studies have revealed the sensitivityof quartz to environmental factors such as temperature and pressure. To dealwith temperature issues, CMOS oscillators [25], temperature-compensatedcrystal oscillators (TCXO) [26], and oven-controlled crystaloscillators (OCXO) [27] have been introduced to improve the stability ofclocks; however, their cost and size could be higher. Thus, the stable crystaloscillator can provide better clock synchronization performance [28].

2.2.3 Network-based Timing Protocols

The protocols considered in this chapter only employ the two-way delaymeasurement approach.

NTP

This protocol which works on the client-server principle, was first definedin 1985 (RFC985) as the first version of NTP. Currently, fourth version ofNTP (RFC5905) [9] is widely deployed in Internet-connected clocks. Thespecification includes both (i) the protocol, i.e., the exchange of timestamps(using UDP packets to server port 123) and (ii) the clock filter algorithm insidea clock peer. The filter algorithm processes the latest eight delay/offset samplesto determine the best-offset estimate, e.g., eliminating delay spikes, and usesthis to discipline the system clock via a Phase-Locked-Loop (PLL). Each NTPclient can be configured to use several independent reference time servers. Eachreference time server is queried (polled) periodically in certain intervals, and thetime servers are then classified as time servers that agree about the same time.This allows a group of good time servers to overvote a smaller group of bad timeservers [29]. Typical NTP implementations use software-layer timestamping.Using NTP on LANs, accuracies of hundreds of milliseconds (ms) are achieved,while on WANs, accuracies of tens or hundreds of ms are realistic [30].

40

Page 42: Investigating Software-Based Clock Synchronization for ...

2.2 Clock Synhronization 25

SNTP

From a perspective of functionality, SNTP is a subset of NTP [RFC5905] [9]and mainly intended for applications at the extremities of a synchronizationsubnet. SNTP can be used when the ultimate performance of the full NTPimplementation is not needed. It uses the same protocol but does not implementthe complex mitigation processing of NTP. In SNTP, the delay measurementsare only used to correct a time offset but not a frequency offset. M. Ussolii etal. [31] reports SNTP accuracy measurements in simple networks consisting of2 to 10 Ethernet switches to be in the range of tens of milliseconds.

PTP (IEEE 1588)

The IEEE 1588 based synchronization standard, i.e., PTP, uses a master–slaveprotocol that can be applied over LANs supporting multicast transmissions. Byleveraging hardware time stamping and PTP-aware network devices, it achieveshigh accuracy synchronization. The first version of PTP was introduced in2002 [32] for high precision applications. The specifications were revised as thesecond version (1588-2008) in 2008 [8] and the third version (1588-2019) in2019 [33]. This protocol is based on the same two-way delay measurement asNTP and SNTP, but the design targets Ethernet LANs, which are more stablethan the Internet. To estimate and mitigate operating system latency, a masterclock periodically sends a Sync message based on its local clock to a slave clockin the network. The master marks the exact time the Sync message is sent, and aFollow_Up message with the exact time information is immediately sent to theslave clock. The slave clock is then able to identify the amount of latency in theoperating system and adjust its clock accordingly [30]. Transparent PTP-awareswitches have hardware support to update timestamps on the fly. Accuracies of10 to 100 nanoseconds are achievable with hardware timestamping and specialPTP-enabled switches [30].

After IEEE 1588 was published, many application-specific profiles andextensions of IEEE 1588 such as IEEE C37.238 (for electrical powersystems) [34], and IEEE 802.1AS (for audio-video bridging) [35] werestandardized.

2.2 Clock Synhronization 25

SNTP

From a perspective of functionality, SNTP is a subset of NTP [RFC5905] [9]and mainly intended for applications at the extremities of a synchronizationsubnet. SNTP can be used when the ultimate performance of the full NTPimplementation is not needed. It uses the same protocol but does not implementthe complex mitigation processing of NTP. In SNTP, the delay measurementsare only used to correct a time offset but not a frequency offset. M. Ussolii etal. [31] reports SNTP accuracy measurements in simple networks consisting of2 to 10 Ethernet switches to be in the range of tens of milliseconds.

PTP (IEEE 1588)

The IEEE 1588 based synchronization standard, i.e., PTP, uses a master–slaveprotocol that can be applied over LANs supporting multicast transmissions. Byleveraging hardware time stamping and PTP-aware network devices, it achieveshigh accuracy synchronization. The first version of PTP was introduced in2002 [32] for high precision applications. The specifications were revised as thesecond version (1588-2008) in 2008 [8] and the third version (1588-2019) in2019 [33]. This protocol is based on the same two-way delay measurement asNTP and SNTP, but the design targets Ethernet LANs, which are more stablethan the Internet. To estimate and mitigate operating system latency, a masterclock periodically sends a Sync message based on its local clock to a slave clockin the network. The master marks the exact time the Sync message is sent, and aFollow_Up message with the exact time information is immediately sent to theslave clock. The slave clock is then able to identify the amount of latency in theoperating system and adjust its clock accordingly [30]. Transparent PTP-awareswitches have hardware support to update timestamps on the fly. Accuracies of10 to 100 nanoseconds are achievable with hardware timestamping and specialPTP-enabled switches [30].

After IEEE 1588 was published, many application-specific profiles andextensions of IEEE 1588 such as IEEE C37.238 (for electrical powersystems) [34], and IEEE 802.1AS (for audio-video bridging) [35] werestandardized.

41

Page 43: Investigating Software-Based Clock Synchronization for ...

26 Chapter 2. Background

IEEE 802.1AS

IEEE 802.1AS-2011 [35] is the 802.1 Audio/Video Bridging (AVB) standardthat specifies the distribution of precise timing and synchronization in an AVBnetwork. AVB networks carry time-sensitive, high-quality audio/video traffic,and IEEE 802.1AS provides synchronization for these networks and ensures thatthe jitter, wander, and synchronization requirements for the time-sensitive traffic,are met. IEEE 802.1AS only runs at layer 2 over networks that follow the IEEE802 architecture. While PTP relies on Rapid Spanning Tree Protocol (RSTP),IEEE 802.1AS uses the Best Master Clock Algorithm (BMCA) to create its ownspanning tree. The profile requires that all nodes of an 802.1AS network bePTP-aware. This results in significant performance and scalability advantages,but at the cost of not allowing non-PTP-aware devices [36].

Time-sensitive networking (TSN) is a set of extended standards for the IEEE802.3 Ethernet that defines mechanisms for the time-sensitive transmission ofdata over deterministic Ethernet networks with guaranteed latencies, reliability,and fault tolerance [37]. One of the TSN standards, IEEE 802.1AS-2020 [38]focuses on improving reliability and redundancy compared to earlier versionIEEE 802.1AS-2011. The new standard supports more than one time domain,multiple active grandmasters, smooth transition from one grandmaster to anotherupon a failure, and improved failure detection mechanisms.

2.2.4 Clock Synchronization in Today’s Industrial Networks

Typical automation system supports time synchronization of all nodes withinthe system to provide a sequence-of-events (SOE) and timestamping of sensordata. SOE ensures event execution in right order, whereas timestamping isrequired for an accurate analysis of data from distantly located sensors. Typicaltime accuracy and precision levels, necessary for automation functions, are inthe milliseconds’ order. Given the industrial automation setting, automationsystems can implement one or combination of synchronization protocols fromNTP, SNTP, windows time service or vendor-specific protocols such as CNCP,MB 300 Clock Synch, and MMS Time service [39].

Time synchronization of all network nodes can be achieved in two waysbased on availability of an external time source such as GPS, or using an internal

26 Chapter 2. Background

IEEE 802.1AS

IEEE 802.1AS-2011 [35] is the 802.1 Audio/Video Bridging (AVB) standardthat specifies the distribution of precise timing and synchronization in an AVBnetwork. AVB networks carry time-sensitive, high-quality audio/video traffic,and IEEE 802.1AS provides synchronization for these networks and ensures thatthe jitter, wander, and synchronization requirements for the time-sensitive traffic,are met. IEEE 802.1AS only runs at layer 2 over networks that follow the IEEE802 architecture. While PTP relies on Rapid Spanning Tree Protocol (RSTP),IEEE 802.1AS uses the Best Master Clock Algorithm (BMCA) to create its ownspanning tree. The profile requires that all nodes of an 802.1AS network bePTP-aware. This results in significant performance and scalability advantages,but at the cost of not allowing non-PTP-aware devices [36].

Time-sensitive networking (TSN) is a set of extended standards for the IEEE802.3 Ethernet that defines mechanisms for the time-sensitive transmission ofdata over deterministic Ethernet networks with guaranteed latencies, reliability,and fault tolerance [37]. One of the TSN standards, IEEE 802.1AS-2020 [38]focuses on improving reliability and redundancy compared to earlier versionIEEE 802.1AS-2011. The new standard supports more than one time domain,multiple active grandmasters, smooth transition from one grandmaster to anotherupon a failure, and improved failure detection mechanisms.

2.2.4 Clock Synchronization in Today’s Industrial Networks

Typical automation system supports time synchronization of all nodes withinthe system to provide a sequence-of-events (SOE) and timestamping of sensordata. SOE ensures event execution in right order, whereas timestamping isrequired for an accurate analysis of data from distantly located sensors. Typicaltime accuracy and precision levels, necessary for automation functions, are inthe milliseconds’ order. Given the industrial automation setting, automationsystems can implement one or combination of synchronization protocols fromNTP, SNTP, windows time service or vendor-specific protocols such as CNCP,MB 300 Clock Synch, and MMS Time service [39].

Time synchronization of all network nodes can be achieved in two waysbased on availability of an external time source such as GPS, or using an internal

42

Page 44: Investigating Software-Based Clock Synchronization for ...

2.2 Clock Synhronization 27

Figure 2.5. Typical clock synchronization method in a process industry

time source.1) External time source: if there is a need to compare timestamps of a

particular automation system with another external system, then the widely usedtime synchronization method is to use SNTP server with GPS receiver, as shownin Fig. 2.5. Domain Controllers used for central authorization of nodes alsosynchronize directly to the SNTP servers. All the nodes of a domain, includingclients, are synchronized to the domain controller. TCP/IP forwarding is enabledin the connectivity servers for distributing the time from domain controllers toall the nodes. The field devices can receive time from connectivity servers andsynchronize themselves using the SNTP protocol.

2) Internal time source: if it is not vital to synchronize the system’s clockswith system clocks of the external world, there is no need for an external timesource. One of the control network controllers acts as a time source, andthe rest of the system is synchronized with this source. The other controllers

2.2 Clock Synhronization 27

Figure 2.5. Typical clock synchronization method in a process industry

time source.1) External time source: if there is a need to compare timestamps of a

particular automation system with another external system, then the widely usedtime synchronization method is to use SNTP server with GPS receiver, as shownin Fig. 2.5. Domain Controllers used for central authorization of nodes alsosynchronize directly to the SNTP servers. All the nodes of a domain, includingclients, are synchronized to the domain controller. TCP/IP forwarding is enabledin the connectivity servers for distributing the time from domain controllers toall the nodes. The field devices can receive time from connectivity servers andsynchronize themselves using the SNTP protocol.

2) Internal time source: if it is not vital to synchronize the system’s clockswith system clocks of the external world, there is no need for an external timesource. One of the control network controllers acts as a time source, andthe rest of the system is synchronized with this source. The other controllers

43

Page 45: Investigating Software-Based Clock Synchronization for ...

28 Chapter 2. Background

synchronize with the master controller. The time is distributed upwards in thesystem from the control network to the client/server network for better timeaccuracy. Connectivity servers and domain controllers fetch time from thecontroller time source.

2.2.5 Future Industrial Evolution and Clock SynchronizationNeeds

To compete with and lead the ever-growing market, improving industrial plants’efficiency and productivity is the biggest challenge for plant owners in thecoming future. Industrial automation systems are under pressure created byshortening of product life cycles and the demand for a shorter time to market.To meet this challenge, the next generation of industrial automation systemsmust be built with high flexibility and a possibility of fast reconfiguration [40].The traditional paradigm of industrial automation is not satisfactorily suitable tokeep pace with the novel requirements of such evolving business scenarios.

A distributed and networked control architecture opens a way towards aflexible, scalable, and reconfigurable production system. Once the world ofbusiness data and the world of automation data are brought closer together, thenumber of information segments and the number of isolated applications can begreatly reduced. In addition to that, the combined data will be the basis forentirely new insights. The concept of Cyber-Physical Systems (CPSs)encapsulates all the peculiarities needed to address a novel distributedautomation [41]. The future industrial automation systems envision to useService-Oriented-Architectures (SOAs) to deal with flexibility andreconfiguration issues. The paradigm shift in the architecture of futureindustrial automation systems due to the market and business evolution opensthe door for the implementation of advanced and futuristic applications that aredifficult to realize with existing automation systems. For example, a system tocontrol a device on the factory floor from a remote location is not feasible withcurrent factory implementations, but could be realized in future automationsystems due to proposed service-oriented architectures.

Fig. 2.6 depicts the architecture of the existing communication hierarchyshown in Fig. 2.6 (a) and envisioned Industrial CPS shown in Fig 2.6 (b), whichis compliant to the automation “pyramid” view, but complement it with flat

28 Chapter 2. Background

synchronize with the master controller. The time is distributed upwards in thesystem from the control network to the client/server network for better timeaccuracy. Connectivity servers and domain controllers fetch time from thecontroller time source.

2.2.5 Future Industrial Evolution and Clock SynchronizationNeeds

To compete with and lead the ever-growing market, improving industrial plants’efficiency and productivity is the biggest challenge for plant owners in thecoming future. Industrial automation systems are under pressure created byshortening of product life cycles and the demand for a shorter time to market.To meet this challenge, the next generation of industrial automation systemsmust be built with high flexibility and a possibility of fast reconfiguration [40].The traditional paradigm of industrial automation is not satisfactorily suitable tokeep pace with the novel requirements of such evolving business scenarios.

A distributed and networked control architecture opens a way towards aflexible, scalable, and reconfigurable production system. Once the world ofbusiness data and the world of automation data are brought closer together, thenumber of information segments and the number of isolated applications can begreatly reduced. In addition to that, the combined data will be the basis forentirely new insights. The concept of Cyber-Physical Systems (CPSs)encapsulates all the peculiarities needed to address a novel distributedautomation [41]. The future industrial automation systems envision to useService-Oriented-Architectures (SOAs) to deal with flexibility andreconfiguration issues. The paradigm shift in the architecture of futureindustrial automation systems due to the market and business evolution opensthe door for the implementation of advanced and futuristic applications that aredifficult to realize with existing automation systems. For example, a system tocontrol a device on the factory floor from a remote location is not feasible withcurrent factory implementations, but could be realized in future automationsystems due to proposed service-oriented architectures.

Fig. 2.6 depicts the architecture of the existing communication hierarchyshown in Fig. 2.6 (a) and envisioned Industrial CPS shown in Fig 2.6 (b), whichis compliant to the automation “pyramid” view, but complement it with flat

44

Page 46: Investigating Software-Based Clock Synchronization for ...

2.2 Clock Synhronization 29

Figure 2.6. Envisioned industrial network transformation

information-driven modern system and enhance its integrability via modernsoftware engineering practices [42]. The future communication architecturewould comprise of the following major components:(1) Operational Technology (OT) Platform: the new hardware and software-based platform would make use of open source and virtualization technologies.The platform will be equipped with real-time capabilities.(2) Service Bus: the real-time data services would be enabled by the service bus.The bus facilitates a set of data services that will tie the system together.(3) Distributed Control Node (DCN): this highly distributed edge module canparticipate in a distributed control execution environment.

The new architecture will adopt a rigorous software design framework andmodern software engineering practices so that new applications, required bymodern, fast-paced industrial environments, can be rapidly realized.

The future clock synchronization requirements are driven by the futureapplications and a type of synchronization that they require for efficientoperation. It is important to assess the capabilities of state-of-the-practicesolutions to meet these future clock synchronization requirements to identify ifthere is a need of yet another clock synchronization protocol.

2.2 Clock Synhronization 29

Figure 2.6. Envisioned industrial network transformation

information-driven modern system and enhance its integrability via modernsoftware engineering practices [42]. The future communication architecturewould comprise of the following major components:(1) Operational Technology (OT) Platform: the new hardware and software-based platform would make use of open source and virtualization technologies.The platform will be equipped with real-time capabilities.(2) Service Bus: the real-time data services would be enabled by the service bus.The bus facilitates a set of data services that will tie the system together.(3) Distributed Control Node (DCN): this highly distributed edge module canparticipate in a distributed control execution environment.

The new architecture will adopt a rigorous software design framework andmodern software engineering practices so that new applications, required bymodern, fast-paced industrial environments, can be rapidly realized.

The future clock synchronization requirements are driven by the futureapplications and a type of synchronization that they require for efficientoperation. It is important to assess the capabilities of state-of-the-practicesolutions to meet these future clock synchronization requirements to identify ifthere is a need of yet another clock synchronization protocol.

45

Page 47: Investigating Software-Based Clock Synchronization for ...

46

Page 48: Investigating Software-Based Clock Synchronization for ...

Chapter 3

Thesis Contributions

In this chapter the thesis contributions are highlighted and discussed. This isfollowed by an overview of all appended research papers that constitute thesecond part of this thesis. For each paper, a summary, and a description of thepaper’s contribution is given.

3.1 Thesis Contributions

This thesis presents the following research contributions.

3.1.1 Formulation of the key clock synchronization related issuesin existing industrial network deployments (C1)

The first contribution is identification of clock synchronization issues in existingindustrial network deployments based on a literature review. The contribution iscovered in paper PA and serves as a groundwork for answering the first researchquestion.

To this day, there is a limited research effort in identification of challengesrelated to clock synchronization in industrial networks as a whole. The previousworks investigated individual problems such as assessing the feasibility of usingwireless networks for synchronization, improving fault tolerance, and achievingsynchronization in heterogeneous networks separately. The holistic literature

31

Chapter 3

Thesis Contributions

In this chapter the thesis contributions are highlighted and discussed. This isfollowed by an overview of all appended research papers that constitute thesecond part of this thesis. For each paper, a summary, and a description of thepaper’s contribution is given.

3.1 Thesis Contributions

This thesis presents the following research contributions.

3.1.1 Formulation of the key clock synchronization related issuesin existing industrial network deployments (C1)

The first contribution is identification of clock synchronization issues in existingindustrial network deployments based on a literature review. The contribution iscovered in paper PA and serves as a groundwork for answering the first researchquestion.

To this day, there is a limited research effort in identification of challengesrelated to clock synchronization in industrial networks as a whole. The previousworks investigated individual problems such as assessing the feasibility of usingwireless networks for synchronization, improving fault tolerance, and achievingsynchronization in heterogeneous networks separately. The holistic literature

31

47

Page 49: Investigating Software-Based Clock Synchronization for ...

32 Chapter 3. Thesis Contributions

review approach of considering the entire ecosystem of automation systems ina structured way revealed significant challenges in present industrial networks.(i) Enabled by industry 4.0, factory automation is adopting IEEE 802.1 Time-Sensitive Networking (TSN) for converged networks. While the TSN networksoperate at the synchronization accuracy of ns order, most of the legacy industrialdevices that are to be integrated into TSN operate at millisecond synchronizationaccuracy levels. The integration is challenging without improving the accuracylevels of industrial devices. (ii) Industrial controllers use a variety of clocksynchronization protocols where NTP, SNTP, and PTP are common. Therecan be a situation such as in electric plant integrating process and power area,where multiple synchronization protocols have to reside on the same network.The challenge is whether so many protocols can co-exist on the same networksince they follow different procedures and engineering guidelines. (iii) Clocksynchronization-specific network traffic has always been considered negligiblein the whole scheme of network traffic; however, with the emergence of IIoT,a significant number of devices is being added to the network. There is apossibility that the periodic synchronization messages among network devicescan significantly affect the overall traffic. (iv) There are several synchronizationprotocols and standards available in the industrial automation domain, and theharmonization of synchronization standards across industrial automation systemsis a significant challenge. Besides, issues such as an increased security level andimproved redundancy are essential in industrial networks. The identified issuesneed to be addressed in the immediate or short-term future.

3.1.2 Derivation of the future clock synchronization requirementsthat enable the evolution of future industrial automationsystems (C2)

The second thesis contribution is about envisioning clock synchronizationrequirements for future industrial networks. The contribution is covered inpaper PB . This contribution C2, together with C1 help answer the first researchquestion.

Industrial systems evolve from the rigid automation pyramid to a flexibleand reconfigurable architecture due to changing market scenarios. The

32 Chapter 3. Thesis Contributions

review approach of considering the entire ecosystem of automation systems ina structured way revealed significant challenges in present industrial networks.(i) Enabled by industry 4.0, factory automation is adopting IEEE 802.1 Time-Sensitive Networking (TSN) for converged networks. While the TSN networksoperate at the synchronization accuracy of ns order, most of the legacy industrialdevices that are to be integrated into TSN operate at millisecond synchronizationaccuracy levels. The integration is challenging without improving the accuracylevels of industrial devices. (ii) Industrial controllers use a variety of clocksynchronization protocols where NTP, SNTP, and PTP are common. Therecan be a situation such as in electric plant integrating process and power area,where multiple synchronization protocols have to reside on the same network.The challenge is whether so many protocols can co-exist on the same networksince they follow different procedures and engineering guidelines. (iii) Clocksynchronization-specific network traffic has always been considered negligiblein the whole scheme of network traffic; however, with the emergence of IIoT,a significant number of devices is being added to the network. There is apossibility that the periodic synchronization messages among network devicescan significantly affect the overall traffic. (iv) There are several synchronizationprotocols and standards available in the industrial automation domain, and theharmonization of synchronization standards across industrial automation systemsis a significant challenge. Besides, issues such as an increased security level andimproved redundancy are essential in industrial networks. The identified issuesneed to be addressed in the immediate or short-term future.

3.1.2 Derivation of the future clock synchronization requirementsthat enable the evolution of future industrial automationsystems (C2)

The second thesis contribution is about envisioning clock synchronizationrequirements for future industrial networks. The contribution is covered inpaper PB . This contribution C2, together with C1 help answer the first researchquestion.

Industrial systems evolve from the rigid automation pyramid to a flexibleand reconfigurable architecture due to changing market scenarios. The

48

Page 50: Investigating Software-Based Clock Synchronization for ...

3.1 Thesis Contributions 33

industrial automation systems are transitioning to more flexible, reconfigurable,and software-centric service architectures enabled by CPS and IIoT trends,paving ways for advanced applications such as cloud robotics and drones formanufacturing and smart grid monitoring. Adequate clock synchronization isessential for the successful realization of such emerging applications. Wefollowed a methodical approach to identify eight clock synchronizationrequirements by envisioning the future automaton architecture and enablingfuture industrial networks. The envisioned future architecture makes it possibleto realize the advanced applications. Since the parent application drives theclock synchronization requirements, the emerging applications wereinvestigated in detail to reveal their clock synchronization needs. The futureclock synchronization requirements comprise functional requirements thatcover absolute synchronization, relative synchronization, synchronization overIP and wireless networks, and non-functional requirements that cover highlysecured, scalable, and well-monitored synchronization. The future clocksynchronization needs are essential to assess state-of-practice clocksynchronization, and they also act as a stepping stone for building thearchitecture of future clock synchronization.

3.1.3 Derivation of key communication performance metrics fromindustrial network traffic data affecting the performance ofclock synchronization (C3)

The third thesis contribution provides the key communication performancemetrics that affect the time synchronization services of industrial networks. Thecontribution is covered in paper PC and provides answer to part of second andthird research question.

Network PDVs adversely impact the performance of clock synchronizationservice. We carried out an offline analysis of real network data to derive theprofiling of communication parameters, packet delays, and jitters to predict theclock synchronization accuracy in all operating conditions. The network datafor the analysis was gathered from an operational industrial site, namely, apaper and pulp factory using a passive probe. The 16-hour long network datacapture resulting in a 60GB data set included hundreds of millions of packets.

3.1 Thesis Contributions 33

industrial automation systems are transitioning to more flexible, reconfigurable,and software-centric service architectures enabled by CPS and IIoT trends,paving ways for advanced applications such as cloud robotics and drones formanufacturing and smart grid monitoring. Adequate clock synchronization isessential for the successful realization of such emerging applications. Wefollowed a methodical approach to identify eight clock synchronizationrequirements by envisioning the future automaton architecture and enablingfuture industrial networks. The envisioned future architecture makes it possibleto realize the advanced applications. Since the parent application drives theclock synchronization requirements, the emerging applications wereinvestigated in detail to reveal their clock synchronization needs. The futureclock synchronization requirements comprise functional requirements thatcover absolute synchronization, relative synchronization, synchronization overIP and wireless networks, and non-functional requirements that cover highlysecured, scalable, and well-monitored synchronization. The future clocksynchronization needs are essential to assess state-of-practice clocksynchronization, and they also act as a stepping stone for building thearchitecture of future clock synchronization.

3.1.3 Derivation of key communication performance metrics fromindustrial network traffic data affecting the performance ofclock synchronization (C3)

The third thesis contribution provides the key communication performancemetrics that affect the time synchronization services of industrial networks. Thecontribution is covered in paper PC and provides answer to part of second andthird research question.

Network PDVs adversely impact the performance of clock synchronizationservice. We carried out an offline analysis of real network data to derive theprofiling of communication parameters, packet delays, and jitters to predict theclock synchronization accuracy in all operating conditions. The network datafor the analysis was gathered from an operational industrial site, namely, apaper and pulp factory using a passive probe. The 16-hour long network datacapture resulting in a 60GB data set included hundreds of millions of packets.

49

Page 51: Investigating Software-Based Clock Synchronization for ...

34 Chapter 3. Thesis Contributions

The captured network traffic data was mined to filter round trip delay/time(RTD/RTT) specific packets related to the 3-way TCP handshake for aconnection. The RTT data across all communication network areas within thefactory was baselined using statistical methods. The mean RTT values arefound to be from 18.4µs to 86µs. The jitters in the form of standard deviationare from 3.39µs to 9.72µs except for one of the control networks. Theminimum RTT value for all network areas is 1us, whereas the maximum RTTvalues range from 0.248ms to 3.949ms.

The delay profiling across all network areas derived based on real factorynetwork data, was utilized to predict the accuracy of clock synchronization.Besides, it was effectively used to provide guarantees on the performance ofnew clock synchronization algorithms by comparing the test network conditionswith industrial networks and predicting the possible accuracy levels in industrialnetworks.

3.1.4 A proposed approach for an industrial network data to assessthe performance of clock synchronization (C4)

The fourth thesis contribution is a novel packet delay and PDV-based offlineanalysis approach to evaluate the performance of time-sensitive applicationsand time synchronization services of industrial networks. The contribution iscovered in paper PC . This contribution C4, help answer the second and thirdresearch question.

Industrial control systems have strict requirements for time-sensitiveapplications and clock synchronization services. The performance of clocksynchronization applications strongly depends on the PDV introduced byindustrial networks and end devices. We devised an approach that analysespacket delays (RTD) and jitters in the industrial communication network toevaluate the application performance. To guarantee the acceptable performanceof time-sensitive applications, RTD values must be consistently lower than theminimum update rate required for most critical control applications. Theacceptable time synchronization performance was determined based on filteredPDV levels at end devices and the availability of faster packets forsynchronization during operations. We validated our approach through a casestudy conducted in a process factory. The measured maximum average delay of

34 Chapter 3. Thesis Contributions

The captured network traffic data was mined to filter round trip delay/time(RTD/RTT) specific packets related to the 3-way TCP handshake for aconnection. The RTT data across all communication network areas within thefactory was baselined using statistical methods. The mean RTT values arefound to be from 18.4µs to 86µs. The jitters in the form of standard deviationare from 3.39µs to 9.72µs except for one of the control networks. Theminimum RTT value for all network areas is 1us, whereas the maximum RTTvalues range from 0.248ms to 3.949ms.

The delay profiling across all network areas derived based on real factorynetwork data, was utilized to predict the accuracy of clock synchronization.Besides, it was effectively used to provide guarantees on the performance ofnew clock synchronization algorithms by comparing the test network conditionswith industrial networks and predicting the possible accuracy levels in industrialnetworks.

3.1.4 A proposed approach for an industrial network data to assessthe performance of clock synchronization (C4)

The fourth thesis contribution is a novel packet delay and PDV-based offlineanalysis approach to evaluate the performance of time-sensitive applicationsand time synchronization services of industrial networks. The contribution iscovered in paper PC . This contribution C4, help answer the second and thirdresearch question.

Industrial control systems have strict requirements for time-sensitiveapplications and clock synchronization services. The performance of clocksynchronization applications strongly depends on the PDV introduced byindustrial networks and end devices. We devised an approach that analysespacket delays (RTD) and jitters in the industrial communication network toevaluate the application performance. To guarantee the acceptable performanceof time-sensitive applications, RTD values must be consistently lower than theminimum update rate required for most critical control applications. Theacceptable time synchronization performance was determined based on filteredPDV levels at end devices and the availability of faster packets forsynchronization during operations. We validated our approach through a casestudy conducted in a process factory. The measured maximum average delay of

50

Page 52: Investigating Software-Based Clock Synchronization for ...

3.1 Thesis Contributions 35

0.0860ms and PDV of 0.1874ms are sufficient to support the lowest update rateof 10ms, required for most critical control applications and to confirm stablefactory network performance. The sample minimum filter applied at enddevices consistently provides less than 150µs PDV for all network areas,assuring accurate time synchronization service. This analysis approach was alsofound beneficial for identifying the bottlenecks of network performance.

3.1.5 An approach to enhance the accuracy and precision of clocksynchronization using predictable network packet delaystrategies (C5)

The fifth thesis contribution is a novel clock synchronization method for fieldIIoT devices in industrial networks. The contribution is covered in paper PD.This contribution C5, together with C3 and C4 provides an answer to the thirdresearch question.

Attaining adequate clock synchronization for resource-constrained fielddevices is challenging since process industries typically use software-basedsynchronization methods such as lightweight SNTP rather than computationallyheavy NTP-based clock synchronization. SNTP achieves accuracy andprecision in the order of few tens of milliseconds. However, SNTP cannotmaintain the same performance in all conditions. The time synchronizationperformance degrades significantly with deterioration in network conditions.Besides, typical cost-effective field IIoT devices are extremely low on resourcessuch as computing power and memory. Given these limitations, IIoT devicesoften become sources of additional synchronization errors, e.g., under extremetemperatures, oscillators introduce significant offset errors in thesynchronization process. The lower resource capabilities limit the deploymentof computationally extensive and hence accurate time synchronizationalgorithms. CoSiNeT is a lightweight, scalable yet accurate, and precise clocksynchronization algorithm for IIoT end devices that was proposed to addressthese challenges. The algorithm employs a delay prediction method to estimatetrue offset from noisy outputs. It also offers a special spike removalfunctionality to remove occasional surges in offset due to poor networkconditions. The proposed algorithm can maintain its performance even in poor

3.1 Thesis Contributions 35

0.0860ms and PDV of 0.1874ms are sufficient to support the lowest update rateof 10ms, required for most critical control applications and to confirm stablefactory network performance. The sample minimum filter applied at enddevices consistently provides less than 150µs PDV for all network areas,assuring accurate time synchronization service. This analysis approach was alsofound beneficial for identifying the bottlenecks of network performance.

3.1.5 An approach to enhance the accuracy and precision of clocksynchronization using predictable network packet delaystrategies (C5)

The fifth thesis contribution is a novel clock synchronization method for fieldIIoT devices in industrial networks. The contribution is covered in paper PD.This contribution C5, together with C3 and C4 provides an answer to the thirdresearch question.

Attaining adequate clock synchronization for resource-constrained fielddevices is challenging since process industries typically use software-basedsynchronization methods such as lightweight SNTP rather than computationallyheavy NTP-based clock synchronization. SNTP achieves accuracy andprecision in the order of few tens of milliseconds. However, SNTP cannotmaintain the same performance in all conditions. The time synchronizationperformance degrades significantly with deterioration in network conditions.Besides, typical cost-effective field IIoT devices are extremely low on resourcessuch as computing power and memory. Given these limitations, IIoT devicesoften become sources of additional synchronization errors, e.g., under extremetemperatures, oscillators introduce significant offset errors in thesynchronization process. The lower resource capabilities limit the deploymentof computationally extensive and hence accurate time synchronizationalgorithms. CoSiNeT is a lightweight, scalable yet accurate, and precise clocksynchronization algorithm for IIoT end devices that was proposed to addressthese challenges. The algorithm employs a delay prediction method to estimatetrue offset from noisy outputs. It also offers a special spike removalfunctionality to remove occasional surges in offset due to poor networkconditions. The proposed algorithm can maintain its performance even in poor

51

Page 53: Investigating Software-Based Clock Synchronization for ...

36 Chapter 3. Thesis Contributions

network conditions. The results show that the CoSiNeT algorithm in ourevaluations performs better than SNTP and state-of-the-art method SPoT by56% and 73% in a fair network environment and by 76% and 74% respectivelyin poor network conditions.

A mapping of contributions to research questions is shown in Table 3.1.

Table 3.1. Mapping of contributions to research questions.

RQ1 RQ2 RQ3

C1 XC2 XC3 X XC4 X XC5 X

3.2 Overview of Papers

Below we list abstracts and brief descriptions of the contributions of the includedpapers.

A mapping of research contributions to included papers is shown inTable 3.2.

Table 3.2. Mapping of research contributions to included papers.

C1 C2 C3 C4 C5

PA XPB XPC X XPD X

36 Chapter 3. Thesis Contributions

network conditions. The results show that the CoSiNeT algorithm in ourevaluations performs better than SNTP and state-of-the-art method SPoT by56% and 73% in a fair network environment and by 76% and 74% respectivelyin poor network conditions.

A mapping of contributions to research questions is shown in Table 3.1.

Table 3.1. Mapping of contributions to research questions.

RQ1 RQ2 RQ3

C1 XC2 XC3 X XC4 X XC5 X

3.2 Overview of Papers

Below we list abstracts and brief descriptions of the contributions of the includedpapers.

A mapping of research contributions to included papers is shown inTable 3.2.

Table 3.2. Mapping of research contributions to included papers.

C1 C2 C3 C4 C5

PA XPB XPC X XPD X

52

Page 54: Investigating Software-Based Clock Synchronization for ...

3.2 Overview of Papers 37

3.2.1 Personal Contributions

I have been the main author and driver of the work for all included papers.The co-authors have been involved in all works through brainstorming anddiscussions. Furthermore, they have provided feedback on drafts of the papers.

3.2.2 Included Papers

Paper A: In Sync with Today’s Industrial System Clocks.

Abstract:Synchronization is essential for accurate and consistent operation of automationsystems. Synchronized devices accurately time stamp the events and enabletimely communication of messages over a communication network. In absenceof a common time base, critical functions of automation systems cannot becarried out in a safe fashion. Unsynchronized systems may lead to malfunctionssuch as false alarms, wrong decisions and erroneous outcomes resulting intoserious showstoppers for plant operations.

Despite technical advances in synchronization, industrial automationsystems have been lagging compared to telecom and financial services inutilization of latest synchronization technology. Thus, there is a need toinvestigate the adoption of synchronization in industrial networks, its currentstate and implementation problems. We carried out an extensive literaturesearch in a structured way to study the evolution of synchronization inautomation systems. We also investigated today’s industrial automation systemsand their network topologies to get insight into the synchronization techniquesand mechanisms currently being used. As a outcome of study, the paperhighlights the challenges related to synchronization in existing automationnetworks that need to be addressed in the immediate and short-term future.

Paper Contributions:1) It covers the evolution journey of synchronization in industrial automationsystems as mapped to evolution of industrial automation systems. Given thatindustrial automation is a well known research area, the connection betweenclock synchronization and industrial automation systems enables a better

3.2 Overview of Papers 37

3.2.1 Personal Contributions

I have been the main author and driver of the work for all included papers.The co-authors have been involved in all works through brainstorming anddiscussions. Furthermore, they have provided feedback on drafts of the papers.

3.2.2 Included Papers

Paper A: In Sync with Today’s Industrial System Clocks.

Abstract:Synchronization is essential for accurate and consistent operation of automationsystems. Synchronized devices accurately time stamp the events and enabletimely communication of messages over a communication network. In absenceof a common time base, critical functions of automation systems cannot becarried out in a safe fashion. Unsynchronized systems may lead to malfunctionssuch as false alarms, wrong decisions and erroneous outcomes resulting intoserious showstoppers for plant operations.

Despite technical advances in synchronization, industrial automationsystems have been lagging compared to telecom and financial services inutilization of latest synchronization technology. Thus, there is a need toinvestigate the adoption of synchronization in industrial networks, its currentstate and implementation problems. We carried out an extensive literaturesearch in a structured way to study the evolution of synchronization inautomation systems. We also investigated today’s industrial automation systemsand their network topologies to get insight into the synchronization techniquesand mechanisms currently being used. As a outcome of study, the paperhighlights the challenges related to synchronization in existing automationnetworks that need to be addressed in the immediate and short-term future.

Paper Contributions:1) It covers the evolution journey of synchronization in industrial automationsystems as mapped to evolution of industrial automation systems. Given thatindustrial automation is a well known research area, the connection betweenclock synchronization and industrial automation systems enables a better

53

Page 55: Investigating Software-Based Clock Synchronization for ...

38 Chapter 3. Thesis Contributions

understanding of the processes behind the evolution of the former, and pointsout a way to predict its future directions.2) It brings out key synchronization-related issues that stand out in existingindustrial network deployments. The identification of these practical issues isimportant as they need to be addressed soon in order for industrial networksystems to work efficiently.

Status:Published in the proceedings of the 12th International Conference onCOMmunication Systems & NETworkS (COMSNETS 2020).

Paper B: Clock Synchronization in Future Industrial Networks: Applications,Challenges, and Directions.

Abstract:Time synchronization is essential for the correct and consistent operation ofautomation systems. An inaccurate analysis being a consequence of impropersynchronization, can affect automation functions, e.g., by producing falsecommands and warnings. Industrial systems are evolving from the rigidautomation pyramid to a flexible and reconfigurable architecture due to marketevolution. The new trends in Cyber-Physical-Systems (CPS), Industry 4.0, andInternet of Things (IoT) are enabling this evolution. Citing a need to understandthe future synchronization requirements, this paper envisions the architecture,communication network, and applications of future automation systems. Builton this vision, the paper derives the future needs of synchronization andanalyzes them with state-of-art synchronization means. Based on the analysis,we envision the future of synchronization systems for automation systems.

Paper Contributions:1) There is no comprehensive literature that looks into the synchronizationneeds of future industrial automation systems. The available literature describesindividual synchronization challenges such as assessing the feasibility of usingwireless networks for synchronization [43], improving fault tolerance [44], andachieving accurate synchronization in industrial networks [45]. In contrast, this

38 Chapter 3. Thesis Contributions

understanding of the processes behind the evolution of the former, and pointsout a way to predict its future directions.2) It brings out key synchronization-related issues that stand out in existingindustrial network deployments. The identification of these practical issues isimportant as they need to be addressed soon in order for industrial networksystems to work efficiently.

Status:Published in the proceedings of the 12th International Conference onCOMmunication Systems & NETworkS (COMSNETS 2020).

Paper B: Clock Synchronization in Future Industrial Networks: Applications,Challenges, and Directions.

Abstract:Time synchronization is essential for the correct and consistent operation ofautomation systems. An inaccurate analysis being a consequence of impropersynchronization, can affect automation functions, e.g., by producing falsecommands and warnings. Industrial systems are evolving from the rigidautomation pyramid to a flexible and reconfigurable architecture due to marketevolution. The new trends in Cyber-Physical-Systems (CPS), Industry 4.0, andInternet of Things (IoT) are enabling this evolution. Citing a need to understandthe future synchronization requirements, this paper envisions the architecture,communication network, and applications of future automation systems. Builton this vision, the paper derives the future needs of synchronization andanalyzes them with state-of-art synchronization means. Based on the analysis,we envision the future of synchronization systems for automation systems.

Paper Contributions:1) There is no comprehensive literature that looks into the synchronizationneeds of future industrial automation systems. The available literature describesindividual synchronization challenges such as assessing the feasibility of usingwireless networks for synchronization [43], improving fault tolerance [44], andachieving accurate synchronization in industrial networks [45]. In contrast, this

54

Page 56: Investigating Software-Based Clock Synchronization for ...

3.2 Overview of Papers 39

paper brings out the future synchronization requirements in automation systems.2) We compare the future synchronization requirements with specifications ofcurrent synchronization techniques. This analysis is a basis to decide whetherthe current synchronization means are sufficient for future industrialapplications.3) The future synchronization for industrial automation systems can beenvisioned based on the future synchronization requirements andstate-of-the-art methods.

Status:Published in the proceedings of the 112th AEIT International Annual Conference(AEIT 2020).

Paper C: Delay and Jitter Analysis in Industrial Control Systems: A PaperMill Case Study.

Abstract:Industrial control systems have strict requirements for time-sensitive Industrialcontrol systems have strict requirements for time-sensitive applications andclock synchronization services. Performance of such applications is adverselyimpacted by packet delays and jitters. The impact is especially critical inprocess industries due to harsh environmental conditions. In this paper, weanalyze delays and jitters to assess the performance of time-sensitiveapplications. To this end, we captured and analyzed round trip delay dataretrieved from a paper factory. Analysis shows that a sub-millisecond levelaverage delays and the jitters derived from the observed data are sufficient tomeet the minimum 10ms update frequency required for most critical controlapplications. Moreover, the filtered delay variations at the end devices are lessthan the recommended 150us, which guarantees an adequate timesynchronization accuracy in the factory network. Besides, this analysis canprovide significant insights into performance bottlenecks for factoryapplications.

Paper Contributions:

3.2 Overview of Papers 39

paper brings out the future synchronization requirements in automation systems.2) We compare the future synchronization requirements with specifications ofcurrent synchronization techniques. This analysis is a basis to decide whetherthe current synchronization means are sufficient for future industrialapplications.3) The future synchronization for industrial automation systems can beenvisioned based on the future synchronization requirements andstate-of-the-art methods.

Status:Published in the proceedings of the 112th AEIT International Annual Conference(AEIT 2020).

Paper C: Delay and Jitter Analysis in Industrial Control Systems: A PaperMill Case Study.

Abstract:Industrial control systems have strict requirements for time-sensitive Industrialcontrol systems have strict requirements for time-sensitive applications andclock synchronization services. Performance of such applications is adverselyimpacted by packet delays and jitters. The impact is especially critical inprocess industries due to harsh environmental conditions. In this paper, weanalyze delays and jitters to assess the performance of time-sensitiveapplications. To this end, we captured and analyzed round trip delay dataretrieved from a paper factory. Analysis shows that a sub-millisecond levelaverage delays and the jitters derived from the observed data are sufficient tomeet the minimum 10ms update frequency required for most critical controlapplications. Moreover, the filtered delay variations at the end devices are lessthan the recommended 150us, which guarantees an adequate timesynchronization accuracy in the factory network. Besides, this analysis canprovide significant insights into performance bottlenecks for factoryapplications.

Paper Contributions:

55

Page 57: Investigating Software-Based Clock Synchronization for ...

40 Chapter 3. Thesis Contributions

1) We propose a packet delay-based offline analysis approach for evaluation ofcommunication performance of time-sensitive applications in contrast tobandwidth and throughput based traditional approaches. Bandwidth andthroughput being steady state measurements, fail to capture transient behaviourof a communication network e.g. a short data bursts in a network that arecleared by switching queues may not lead to bandwidth or throughput changesbut can result into delayed or missing packets and hence delay analysis can beadvantageous over traditional approaches. 2) The analysis can be used toidentify performance bottlenecks and as a consequence, if required, to redesignthe timing applications or upgrade network infrastructure. 3) The analysis usespassive probing method to obtain packet delay measurements, thus avoiding theactive probing and its undesired effects resulting in erroneous measurements.

Status:Published in the proceedings of the 17th IEEE International Conference onFactory Communication Systems (WFCS’21)

Paper D: CoSiNeT: A Lightweight Clock Synchronization Algorithm forIndustrial IoT.

Abstract:Recent advances in industrial internet of things (IIoT) and cyber-physicalsystems drive Industry 4.0 and lead to advanced applications. The adequateperformance of time-critical automation applications depends on a clocksynchronization scheme used by control systems. Network packet delayvariations adversely impact the clock synchronization performance. The impactis significant in industrial sites, where software and hardware resources heavilycontribute to delay variations, and where harsh environmental conditionsinterfere with communication network dynamics. While existing timesynchronization methods for IIoT devices, e.g., Simple Network TimeProtocol (SNTP), provide adequate synchronization in good operatingconditions, their performance degrades significantly with deteriorating networkconditions. To overcome this issue, we propose a scalable, software-based,lightweight clock synchronization method, called CoSiNeT, for IIoT devices

40 Chapter 3. Thesis Contributions

1) We propose a packet delay-based offline analysis approach for evaluation ofcommunication performance of time-sensitive applications in contrast tobandwidth and throughput based traditional approaches. Bandwidth andthroughput being steady state measurements, fail to capture transient behaviourof a communication network e.g. a short data bursts in a network that arecleared by switching queues may not lead to bandwidth or throughput changesbut can result into delayed or missing packets and hence delay analysis can beadvantageous over traditional approaches. 2) The analysis can be used toidentify performance bottlenecks and as a consequence, if required, to redesignthe timing applications or upgrade network infrastructure. 3) The analysis usespassive probing method to obtain packet delay measurements, thus avoiding theactive probing and its undesired effects resulting in erroneous measurements.

Status:Published in the proceedings of the 17th IEEE International Conference onFactory Communication Systems (WFCS’21)

Paper D: CoSiNeT: A Lightweight Clock Synchronization Algorithm forIndustrial IoT.

Abstract:Recent advances in industrial internet of things (IIoT) and cyber-physicalsystems drive Industry 4.0 and lead to advanced applications. The adequateperformance of time-critical automation applications depends on a clocksynchronization scheme used by control systems. Network packet delayvariations adversely impact the clock synchronization performance. The impactis significant in industrial sites, where software and hardware resources heavilycontribute to delay variations, and where harsh environmental conditionsinterfere with communication network dynamics. While existing timesynchronization methods for IIoT devices, e.g., Simple Network TimeProtocol (SNTP), provide adequate synchronization in good operatingconditions, their performance degrades significantly with deteriorating networkconditions. To overcome this issue, we propose a scalable, software-based,lightweight clock synchronization method, called CoSiNeT, for IIoT devices

56

Page 58: Investigating Software-Based Clock Synchronization for ...

3.2 Overview of Papers 41

that maintains precise synchronization performance in a wide range ofoperating conditions. We have conducted measurements in local networkdeployments such as home and a university campus in order to evaluate theproposed algorithm performance. The results show that CoSiNeT matches wellwith SNTP and state-of-the-art method in good network conditions in terms ofaccuracy and precision; however, it outperforms them in degrading networkscenarios. In our measurements, in fair network conditions, CoSiNeT improvessynchronization performance by 56% and 73% compared to SNTP andstate-of-the-art method. In the case of poor network conditions, it improvesperformance by 76% and 74%, respectively.

Paper Contributions:1) We propose a lightweight, scalable and precise clock synchronizationalgorithm for inexpensive, less resourceful IIoT devices that provides a precisesynchronization over a range of harsh environmental conditions in factory.2) State-of-the-art methods typically use simulated network data or data fromcontrolled environments, e.g., laboratories. The proposed algorithm is evaluatedbased on the data from real network data measurements. The evaluation hasbeen done in wired and wireless networks with different degrees of networkqualities - from good to poorly performing networks.3) The algorithms’ performance was benchmarked against widely usedin-practice time synchronization protocol such as SNTP as well asstate-of-the-art method SPoT [46] available in literature. The superiorperformance of the proposed algorithm with methods from practice andliterature strengthens the new algorithm’s positioning.

Status:Published in the proceedings of the IEEE International Conference on IndustrialCyber-Physical Systems (ICPS 2021).

3.2 Overview of Papers 41

that maintains precise synchronization performance in a wide range ofoperating conditions. We have conducted measurements in local networkdeployments such as home and a university campus in order to evaluate theproposed algorithm performance. The results show that CoSiNeT matches wellwith SNTP and state-of-the-art method in good network conditions in terms ofaccuracy and precision; however, it outperforms them in degrading networkscenarios. In our measurements, in fair network conditions, CoSiNeT improvessynchronization performance by 56% and 73% compared to SNTP andstate-of-the-art method. In the case of poor network conditions, it improvesperformance by 76% and 74%, respectively.

Paper Contributions:1) We propose a lightweight, scalable and precise clock synchronizationalgorithm for inexpensive, less resourceful IIoT devices that provides a precisesynchronization over a range of harsh environmental conditions in factory.2) State-of-the-art methods typically use simulated network data or data fromcontrolled environments, e.g., laboratories. The proposed algorithm is evaluatedbased on the data from real network data measurements. The evaluation hasbeen done in wired and wireless networks with different degrees of networkqualities - from good to poorly performing networks.3) The algorithms’ performance was benchmarked against widely usedin-practice time synchronization protocol such as SNTP as well asstate-of-the-art method SPoT [46] available in literature. The superiorperformance of the proposed algorithm with methods from practice andliterature strengthens the new algorithm’s positioning.

Status:Published in the proceedings of the IEEE International Conference on IndustrialCyber-Physical Systems (ICPS 2021).

57

Page 59: Investigating Software-Based Clock Synchronization for ...

58

Page 60: Investigating Software-Based Clock Synchronization for ...

Chapter 4

Related Work

Most of the factories or plants employ heterogeneous local area networks fortheir operation. Typical examples of local area networks are field devicenetworks, wireless sensor networks (WSNs). Clock synchronization methodsare implemented in the field end devices that are typically low on memory andcomputation power. The existing contemporary solutions for timesynchronization, such as NTP, do not easily tailor to resource-constraineddevices. On the other hand, the available solutions for constrained systems suchas SNTP do not extend well to heterogeneous deployments. Hence, lightweightsoftware-based clock synchronization algorithms that can achieve an adequatesynchronization accuracy with a low footprint and processing are perfectcandidates for such devices. Typically the accuracy and precision performanceof software-based clock synchronization means is inferior to its hardwarecounterparts. So far, many efforts have been undertaken, looking at improvingsoftware-based synchronization schemes’ performance. Various methodsdescribed in the literature for improving software-based clock synchronizationamong IIoT end-devices in factory LANs have been listed below.

In simple software-based clock synchronization methods for LANs, theraw clock offset measurements can be averaged or filtered by a low-pass filter.Massimo Gallina et al. [47] used such an approach to synchronize devices overa powerline communication network in a smart micro-grid control application.Within these methods, the raw offset measurements are clipped to the empirical

43

Chapter 4

Related Work

Most of the factories or plants employ heterogeneous local area networks fortheir operation. Typical examples of local area networks are field devicenetworks, wireless sensor networks (WSNs). Clock synchronization methodsare implemented in the field end devices that are typically low on memory andcomputation power. The existing contemporary solutions for timesynchronization, such as NTP, do not easily tailor to resource-constraineddevices. On the other hand, the available solutions for constrained systems suchas SNTP do not extend well to heterogeneous deployments. Hence, lightweightsoftware-based clock synchronization algorithms that can achieve an adequatesynchronization accuracy with a low footprint and processing are perfectcandidates for such devices. Typically the accuracy and precision performanceof software-based clock synchronization means is inferior to its hardwarecounterparts. So far, many efforts have been undertaken, looking at improvingsoftware-based synchronization schemes’ performance. Various methodsdescribed in the literature for improving software-based clock synchronizationamong IIoT end-devices in factory LANs have been listed below.

In simple software-based clock synchronization methods for LANs, theraw clock offset measurements can be averaged or filtered by a low-pass filter.Massimo Gallina et al. [47] used such an approach to synchronize devices overa powerline communication network in a smart micro-grid control application.Within these methods, the raw offset measurements are clipped to the empirical

43

59

Page 61: Investigating Software-Based Clock Synchronization for ...

44 Chapter 4. Related Work

3σ level before passing through the filter to reduce the effect of delay outliers.However, such simple approaches result in a lower synchronization precisionand do not guarantee the same performance in networks with different qualityof communication channels.

Clock synchronization is a crucial requirement in various applications ofWireless Sensor Networks (WSNs), such as scheduling, monitoring, and tracking.However, designing and implementing a time synchronization protocol in WSNis very challenging due to insufficient hardware quality, a message delay jitter,ambient environment, and a different network topology. WSN synchronizationmethods can be classified in two categories centralized and distributed timesynchronization [48].

Centralized time synchronization methods mainly include ReferenceBroadcast Synchronization (RBS) and Flooding Time SynchronizationProtocol (FTSP). RBS described by J. Elson et al. [49] and S. Ganeriwal etal. [50] uses the receiver-to-receiver principle, where one reference senderbroadcasts packets and synchronizes a group of receivers with each other. Theprotocol requires a broadcast channel for operation, and the nodes exchangetime synchronization messages in case of events, which can lead to high trafficif the network has a large number of nodes. In FTSP, the reference time isdefined by the elected root node, and all other nodes in the network synchronizetheir clocks to the reference node by receiving flooded messages from thereference node. There are two approaches to flooding: slow flooding and rapidflooding. FTSP is slow flooding-based because each node waits apredetermined amount of time to propagate its time information. Severalstudies [51, 52] have pointed out that slow flooding decreases the accuracy oftime synchronization protocols. In contrast, rapid flooding was employed inPulseSync [53] to prevent the problem of slow flooding by propagating thetiming message from the reference node as fast as possible. However,rapid-flooding protocols must deal with the problem of collisions in the wirelessnetwork to achieve high performance.

In contrast to centralized approaches, distributed time synchronizationprotocols rely on consensus algorithms to coordinate independent clocks in thenetwork. They do not require any reference node. Therefore, they are robust tonetwork topology changes and node failures. Gradient Time Synchronization

44 Chapter 4. Related Work

3σ level before passing through the filter to reduce the effect of delay outliers.However, such simple approaches result in a lower synchronization precisionand do not guarantee the same performance in networks with different qualityof communication channels.

Clock synchronization is a crucial requirement in various applications ofWireless Sensor Networks (WSNs), such as scheduling, monitoring, and tracking.However, designing and implementing a time synchronization protocol in WSNis very challenging due to insufficient hardware quality, a message delay jitter,ambient environment, and a different network topology. WSN synchronizationmethods can be classified in two categories centralized and distributed timesynchronization [48].

Centralized time synchronization methods mainly include ReferenceBroadcast Synchronization (RBS) and Flooding Time SynchronizationProtocol (FTSP). RBS described by J. Elson et al. [49] and S. Ganeriwal etal. [50] uses the receiver-to-receiver principle, where one reference senderbroadcasts packets and synchronizes a group of receivers with each other. Theprotocol requires a broadcast channel for operation, and the nodes exchangetime synchronization messages in case of events, which can lead to high trafficif the network has a large number of nodes. In FTSP, the reference time isdefined by the elected root node, and all other nodes in the network synchronizetheir clocks to the reference node by receiving flooded messages from thereference node. There are two approaches to flooding: slow flooding and rapidflooding. FTSP is slow flooding-based because each node waits apredetermined amount of time to propagate its time information. Severalstudies [51, 52] have pointed out that slow flooding decreases the accuracy oftime synchronization protocols. In contrast, rapid flooding was employed inPulseSync [53] to prevent the problem of slow flooding by propagating thetiming message from the reference node as fast as possible. However,rapid-flooding protocols must deal with the problem of collisions in the wirelessnetwork to achieve high performance.

In contrast to centralized approaches, distributed time synchronizationprotocols rely on consensus algorithms to coordinate independent clocks in thenetwork. They do not require any reference node. Therefore, they are robust tonetwork topology changes and node failures. Gradient Time Synchronization

60

Page 62: Investigating Software-Based Clock Synchronization for ...

45

Protocol (GTSP) and Average TimeSynch (ATS) are the main examples of suchprotocols. GTSP [54] determines synchronized time by common agreementbetween neighboring nodes. Each node periodically broadcasts its time andclock rate independently. Upon receiving such information, a node periodicallyaverages overall received offsets between itself and its neighbors. This is usedto agree on a common value of the clock (reference time). ATS method [55]also uses the same principle as GTSP but uses a cascade of two consensusalgorithms, whose main task is to average local information. However, onedrawback of these methods is their slow convergence speed [56].

Recently low power Bluetooth or Wi-Fi beacons [57] have been proposedfor synchronizing all the nodes of the network; however, the synchronizationerror of these protocols is higher than that of state-of-the-art solutions in WSNs.

Several methods extensively use advanced signal processing techniquesto reduce variability and improve clock synchronization accuracy. A Kalmanfilter based clock filter algorithm estimates the server clock state (phase andfrequency) from time offset measurements [58, 59, 60]. The Kalman filter isoptimum for random Gaussian errors in offset; however, it is sensitive towardspacket delay outliers and hence occasional large spikes in offset. There is,however, a vast literature on adaptive and robust Kalman filters [61, 62] in whichif measurements are lost due to network failure, the recursive updating of thestate estimate is simply suppressed. While such algorithms can result in highersynchronization accuracy, they are computationally extensive and hence maynot be suitable for field devices in IoT deployments.

More explicitly in the IoT domain, there are time synchronization methodsdesigned for constrained IoT devices. Sridhar et al. describe the CheepSynctime synchronization protocol [63] especially tailored for applications requiringhigh time precision on resource-constrained Bluetooth Low Energy (BLE)platforms. The CheepSync framework utilizes low-level timestamping andcomprehensive error compensation mechanisms for overcoming uncertainties inmessage transmission, clock drift, and other system-specific constraints.However, this protocol exploits the broadcast MAC layer characteristics toavoid network inconsistencies and that results in time synchronization errors.S. K. Mani et al. [46] developed a synchronization system, including alightweight client, a new packet exchange protocol called SPoT, and a scalable

45

Protocol (GTSP) and Average TimeSynch (ATS) are the main examples of suchprotocols. GTSP [54] determines synchronized time by common agreementbetween neighboring nodes. Each node periodically broadcasts its time andclock rate independently. Upon receiving such information, a node periodicallyaverages overall received offsets between itself and its neighbors. This is usedto agree on a common value of the clock (reference time). ATS method [55]also uses the same principle as GTSP but uses a cascade of two consensusalgorithms, whose main task is to average local information. However, onedrawback of these methods is their slow convergence speed [56].

Recently low power Bluetooth or Wi-Fi beacons [57] have been proposedfor synchronizing all the nodes of the network; however, the synchronizationerror of these protocols is higher than that of state-of-the-art solutions in WSNs.

Several methods extensively use advanced signal processing techniquesto reduce variability and improve clock synchronization accuracy. A Kalmanfilter based clock filter algorithm estimates the server clock state (phase andfrequency) from time offset measurements [58, 59, 60]. The Kalman filter isoptimum for random Gaussian errors in offset; however, it is sensitive towardspacket delay outliers and hence occasional large spikes in offset. There is,however, a vast literature on adaptive and robust Kalman filters [61, 62] in whichif measurements are lost due to network failure, the recursive updating of thestate estimate is simply suppressed. While such algorithms can result in highersynchronization accuracy, they are computationally extensive and hence maynot be suitable for field devices in IoT deployments.

More explicitly in the IoT domain, there are time synchronization methodsdesigned for constrained IoT devices. Sridhar et al. describe the CheepSynctime synchronization protocol [63] especially tailored for applications requiringhigh time precision on resource-constrained Bluetooth Low Energy (BLE)platforms. The CheepSync framework utilizes low-level timestamping andcomprehensive error compensation mechanisms for overcoming uncertainties inmessage transmission, clock drift, and other system-specific constraints.However, this protocol exploits the broadcast MAC layer characteristics toavoid network inconsistencies and that results in time synchronization errors.S. K. Mani et al. [46] developed a synchronization system, including alightweight client, a new packet exchange protocol called SPoT, and a scalable

61

Page 63: Investigating Software-Based Clock Synchronization for ...

46 Chapter 4. Related Work

reference server. However, this method was not found efficient in dealing withpacket errors and spikes in offsets introduced during bad network conditions.

For a typical IIoT deployment, different size networks have differentsolutions of time synchronization. For LANs, typically employedsoftware-based time synchronization methods are NTP, SNTP, and manyvendor-specific solutions. IIoT field devices may synchronize to the Internettime, e.g., using NTP. However, these solutions’ computation and energyconsumption requirements cannot be fulfilled by end devices with constrainedcomputational and energy resources, and such devices call for computationallylightweight methods. SNTP can be a fitting solution in this case, but itsperformance is not suitable for heterogeneous industrial networks. The existingtime synchronization solutions for WSNs are designed for constrained devices,but their performance is tailored for a specific application scenario. Advancedsignal processing based synchronization approaches are not suitable due to theneed for heavy computational resources. While there are methods proposedespecially for constrained IoT devices, their performance degrades inchallenging communication networks with wireless sub-networks. Thus, thereis a need to develop a better clock synchronization method that achievesadequate clock synchronization accuracy for constrained IIoT field devices inheterogeneous industrial networks with harsh environmental conditions.

46 Chapter 4. Related Work

reference server. However, this method was not found efficient in dealing withpacket errors and spikes in offsets introduced during bad network conditions.

For a typical IIoT deployment, different size networks have differentsolutions of time synchronization. For LANs, typically employedsoftware-based time synchronization methods are NTP, SNTP, and manyvendor-specific solutions. IIoT field devices may synchronize to the Internettime, e.g., using NTP. However, these solutions’ computation and energyconsumption requirements cannot be fulfilled by end devices with constrainedcomputational and energy resources, and such devices call for computationallylightweight methods. SNTP can be a fitting solution in this case, but itsperformance is not suitable for heterogeneous industrial networks. The existingtime synchronization solutions for WSNs are designed for constrained devices,but their performance is tailored for a specific application scenario. Advancedsignal processing based synchronization approaches are not suitable due to theneed for heavy computational resources. While there are methods proposedespecially for constrained IoT devices, their performance degrades inchallenging communication networks with wireless sub-networks. Thus, thereis a need to develop a better clock synchronization method that achievesadequate clock synchronization accuracy for constrained IIoT field devices inheterogeneous industrial networks with harsh environmental conditions.

62

Page 64: Investigating Software-Based Clock Synchronization for ...

Chapter 5

Conclusion

This chapter presents main conclusions of the thesis and points direction forfuture continuation of the research.

5.1 Summary

Industrial automation systems evolve from the existing rigid automationpyramid to a flexible and reconfigurable architecture due to the market andbusiness evolution. The future architecture will support the implementation ofemerging applications. To understand the clock synchronization needs of futureindustrial networks, the architecture of future industrial automation systems wasenvisioned. We investigated the emerging industrial applications that can berealized with flat and information-driven future industrial networks to derive thefuture clock synchronization requirements. Owing to the highlysoftware-centric and service-based future architecture of automation systems,the study suggested that a fully software-based clock synchronization systemwith performance comparable with hardware-based synchronization systemscan be envisioned as a future clock synchronization solution for industrialautomation systems. Software-based synchronization such as NTP is a fittingsolution to many future synchronization requirements and fares equally well orbetter than hardware-based methods such as PTP. However, it lacks the accuracyand precision requirement, which can be improved using promising predictive

47

Chapter 5

Conclusion

This chapter presents main conclusions of the thesis and points direction forfuture continuation of the research.

5.1 Summary

Industrial automation systems evolve from the existing rigid automationpyramid to a flexible and reconfigurable architecture due to the market andbusiness evolution. The future architecture will support the implementation ofemerging applications. To understand the clock synchronization needs of futureindustrial networks, the architecture of future industrial automation systems wasenvisioned. We investigated the emerging industrial applications that can berealized with flat and information-driven future industrial networks to derive thefuture clock synchronization requirements. Owing to the highlysoftware-centric and service-based future architecture of automation systems,the study suggested that a fully software-based clock synchronization systemwith performance comparable with hardware-based synchronization systemscan be envisioned as a future clock synchronization solution for industrialautomation systems. Software-based synchronization such as NTP is a fittingsolution to many future synchronization requirements and fares equally well orbetter than hardware-based methods such as PTP. However, it lacks the accuracyand precision requirement, which can be improved using promising predictive

47

63

Page 65: Investigating Software-Based Clock Synchronization for ...

48 Chapter 5. Conclusion

software strategies. Hence, the research topic of improving the accuracy ofsoftware-based clock synchronization methods using predictive delay-basedstrategies is in focus for this thesis.

The accuracy of the clock synchronization service can be affected by PDVintroduced by end devices and networks. To understand the PDV levels innetwork, a delay-based analysis was conducted on real industrial network dataobtained from a paper and pulp factory. The study provided the delay and PDVprofiles of all network areas within the factory network. Based on them, wedevised an approach to evaluate the accuracy of clock synchronization. Usingthe approach we proved that the network conditions in the factory were sufficientto provide an adequate clock synchronization accuracy.

Finally, a new, scalable, lightweight clock synchronization algorithm calledCoSiNeT was proposed as suitable for less resourceful and inexpensive IIoTdevices in industrial LANs. The IIoT devices with low-cost oscillators, lowcomputation, and memory resources often introduce additional synchronizationerrors and lead to higher PDV. The algorithm performs better than widelyemployed SNTP and state-of-the-art methods in degrading network conditions.The algorithm can successfully deal with offset changes due to step changesin delays and multiple consecutive or random errors in timing messages due tonetwork deterioration, leading to improved system reliability and safety. Thelearnings from industrial site data in terms of delay and PDV profiles provideenough confidence that the algorithm can offer the same or better performancein actual factory networks.

The research questions are brought up again in the sections below to mapconclusions for them.

5.1.1 Answering Research Question 1

RQ1: What are the key clock synchronization requirements for industrialnetworks enabling significant shift towards future industrial automationsystems?

Based on the study of applications that are most likely to be implemented infuture automation systems, we identified the future network architecturerequired for these applications to be realized. Five functional and three

48 Chapter 5. Conclusion

software strategies. Hence, the research topic of improving the accuracy ofsoftware-based clock synchronization methods using predictive delay-basedstrategies is in focus for this thesis.

The accuracy of the clock synchronization service can be affected by PDVintroduced by end devices and networks. To understand the PDV levels innetwork, a delay-based analysis was conducted on real industrial network dataobtained from a paper and pulp factory. The study provided the delay and PDVprofiles of all network areas within the factory network. Based on them, wedevised an approach to evaluate the accuracy of clock synchronization. Usingthe approach we proved that the network conditions in the factory were sufficientto provide an adequate clock synchronization accuracy.

Finally, a new, scalable, lightweight clock synchronization algorithm calledCoSiNeT was proposed as suitable for less resourceful and inexpensive IIoTdevices in industrial LANs. The IIoT devices with low-cost oscillators, lowcomputation, and memory resources often introduce additional synchronizationerrors and lead to higher PDV. The algorithm performs better than widelyemployed SNTP and state-of-the-art methods in degrading network conditions.The algorithm can successfully deal with offset changes due to step changesin delays and multiple consecutive or random errors in timing messages due tonetwork deterioration, leading to improved system reliability and safety. Thelearnings from industrial site data in terms of delay and PDV profiles provideenough confidence that the algorithm can offer the same or better performancein actual factory networks.

The research questions are brought up again in the sections below to mapconclusions for them.

5.1.1 Answering Research Question 1

RQ1: What are the key clock synchronization requirements for industrialnetworks enabling significant shift towards future industrial automationsystems?

Based on the study of applications that are most likely to be implemented infuture automation systems, we identified the future network architecturerequired for these applications to be realized. Five functional and three

64

Page 66: Investigating Software-Based Clock Synchronization for ...

5.1 Summary 49

non-functional synchronization requirements were derived for each of theseapplications. Among functional requirements, relative and absolute clocksynchronization for plant devices, sub-systems, and systems is imperative.Traditional industrial sites typically employ relative clock synchronizationwherein plant entities are synchronized to each other. The emergence ofadvanced applications such as remote monitoring requires plant entities to besynchronized with remote sites. Hence, having absolute synchronization tocommon time sources such as GPS is paramount. The future factories wouldemploy heterogeneous communication networks comprising a specificcombination of wired, wireless, public, and private IP networks. Each of thesenetworks imposes varying network conditions for the clock synchronizationservice. The use of collaborative cloud-based monitoring and controlapplications such as cloud Robotics is expected to rise, thus, synchronizingfactory devices with distributed clouds physically located in differentgeographies is one of the upcoming challenges. Among non-functionalrequirements, security threats imposed by devices participating insynchronization and communication networks such as public IP networks areincreasing every day. They warrant a highly secured clock synchronizationmechanism. The scalability of the clock synchronization mechanism needs tobe higher since many IIoT devices are being added to the network continuouslydue to industry 4.0 initiatives. The mission-critical applications of industrialnetworks require an efficiently monitored clock synchronization to predictsynchronization failures in advance. Thus, these key requirements must be metfor the success of advanced industrial applications.

5.1.2 Answering Research Question 2

RQ2: How to extract key communication performance metrics from industrialnetwork traffic data in order to provide guarantees on the performance of newclock synchronization algorithms as a supporting evidence?

We proposed a packet delay-based offline analysis approach to evaluateclock synchronization accuracy in a network in contrast to bandwidth andthroughput-based traditional methods. Bandwidth and throughput being steady-state measurements, fail to capture transient behavior of a communication

5.1 Summary 49

non-functional synchronization requirements were derived for each of theseapplications. Among functional requirements, relative and absolute clocksynchronization for plant devices, sub-systems, and systems is imperative.Traditional industrial sites typically employ relative clock synchronizationwherein plant entities are synchronized to each other. The emergence ofadvanced applications such as remote monitoring requires plant entities to besynchronized with remote sites. Hence, having absolute synchronization tocommon time sources such as GPS is paramount. The future factories wouldemploy heterogeneous communication networks comprising a specificcombination of wired, wireless, public, and private IP networks. Each of thesenetworks imposes varying network conditions for the clock synchronizationservice. The use of collaborative cloud-based monitoring and controlapplications such as cloud Robotics is expected to rise, thus, synchronizingfactory devices with distributed clouds physically located in differentgeographies is one of the upcoming challenges. Among non-functionalrequirements, security threats imposed by devices participating insynchronization and communication networks such as public IP networks areincreasing every day. They warrant a highly secured clock synchronizationmechanism. The scalability of the clock synchronization mechanism needs tobe higher since many IIoT devices are being added to the network continuouslydue to industry 4.0 initiatives. The mission-critical applications of industrialnetworks require an efficiently monitored clock synchronization to predictsynchronization failures in advance. Thus, these key requirements must be metfor the success of advanced industrial applications.

5.1.2 Answering Research Question 2

RQ2: How to extract key communication performance metrics from industrialnetwork traffic data in order to provide guarantees on the performance of newclock synchronization algorithms as a supporting evidence?

We proposed a packet delay-based offline analysis approach to evaluateclock synchronization accuracy in a network in contrast to bandwidth andthroughput-based traditional methods. Bandwidth and throughput being steady-state measurements, fail to capture transient behavior of a communication

65

Page 67: Investigating Software-Based Clock Synchronization for ...

50 Chapter 5. Conclusion

network, e.g., short data bursts in a network that are cleared by switching queuesmay not lead to bandwidth or throughput changes but can result in delayedor missing packets and hence the delay analysis can be advantageous overtraditional approaches. The network data for the analysis was gathered froman operational industrial site, namely, a paper and pulp factory using a passiveprobe for 16 hours. The generated data set of 60 GB included hundreds ofmillions of data transaction packets. The captured network traffic data wasmined to filter round trip delay/time (RTD/RTT) specific packets related to the3-way TCP handshake for a connection.

The analysis resulted in PDV distribution across all network areas withinthe factory network. The jitters in the form of standard deviation were found tobe from 3.39µs to 9.72µs except for one of the control networks. The proposedapproach assessed time synchronization accuracy in a network based on PDVprofiles. Limiting PDV can optimize time synchronization performance byachieving an adequate accuracy. In a typical clock synchronization process,managing PDV and controlling them to acceptable levels is achieved byimplementing filtering mechanisms. The filtered PDV levels at end devices andthe availability of faster packets for synchronization during operationsdetermined the satisfactory time synchronization performance. The sampleminimum filter applied at end devices consistently provides less than 150µsPDV for all network areas, assuring an accurate time synchronization service ina factory network.

5.1.3 Answering Research Question 3

RQ3: How the clock synchronization errors in industrial networks can beaddressed by means of a new software-based algorithm that improves theaccuracy and precision of state-of-practice methods?

3.1: To what level the accuracy and precision of clock synchronization infuture industrial networks can be improved over the state of practice usingnewly developed clock synchronization algorithm?

The accuracy of clock synchronization strongly depends on the PDVintroduced by end devices and industrial networks. The main contributors ofPDV encountered by timing signals are transmission delays associated with

50 Chapter 5. Conclusion

network, e.g., short data bursts in a network that are cleared by switching queuesmay not lead to bandwidth or throughput changes but can result in delayedor missing packets and hence the delay analysis can be advantageous overtraditional approaches. The network data for the analysis was gathered froman operational industrial site, namely, a paper and pulp factory using a passiveprobe for 16 hours. The generated data set of 60 GB included hundreds ofmillions of data transaction packets. The captured network traffic data wasmined to filter round trip delay/time (RTD/RTT) specific packets related to the3-way TCP handshake for a connection.

The analysis resulted in PDV distribution across all network areas withinthe factory network. The jitters in the form of standard deviation were found tobe from 3.39µs to 9.72µs except for one of the control networks. The proposedapproach assessed time synchronization accuracy in a network based on PDVprofiles. Limiting PDV can optimize time synchronization performance byachieving an adequate accuracy. In a typical clock synchronization process,managing PDV and controlling them to acceptable levels is achieved byimplementing filtering mechanisms. The filtered PDV levels at end devices andthe availability of faster packets for synchronization during operationsdetermined the satisfactory time synchronization performance. The sampleminimum filter applied at end devices consistently provides less than 150µsPDV for all network areas, assuring an accurate time synchronization service ina factory network.

5.1.3 Answering Research Question 3

RQ3: How the clock synchronization errors in industrial networks can beaddressed by means of a new software-based algorithm that improves theaccuracy and precision of state-of-practice methods?

3.1: To what level the accuracy and precision of clock synchronization infuture industrial networks can be improved over the state of practice usingnewly developed clock synchronization algorithm?

The accuracy of clock synchronization strongly depends on the PDVintroduced by end devices and industrial networks. The main contributors ofPDV encountered by timing signals are transmission delays associated with

66

Page 68: Investigating Software-Based Clock Synchronization for ...

5.1 Summary 51

communication media, processing delays related to end devices and switches,and queuing delays associated with network switches. In the case ofresource-constrained and low-cost field IIoT devices, an inexpensive clockoscillator introduces significant synchronization errors in the presence of harshindustrial environmental conditions. The constrained memory and processors ofdevices make it challenging to achieve adequate clock synchronization accuracywithout employing computationally extensive algorithms. To overcome thesechallenges, we proposed a lightweight, software-based clock synchronizationalgorithm, CoSiNeT.

The algorithm is executed on the client device and includes periodicalexchanges of timing messages with the server device. Based on these messages,an offset and a RTD between client and server devices are determined. Further,the algorithm takes raw offset and RTD values as inputs. It predicts a newoffset based on the principle that the faster timing packets indicate the bestnetwork conditions and subsequently correspond to true offset values. It furtheruses a special spike detection and removal module that compares the differencebetween estimated and raw offset values with a threshold to detect a spike inraw offset values due to errors and replaces it with a previous valid offset. Thus,the estimated time offset is free from most offset errors and is further used tocorrect the client device’s clock to synchronize with the server device.

We conducted measurements in local network deployments such as homeand university campus to evaluate the proposed algorithm performance. Theresults show that CoSiNeT matches well with SNTP and state-of-the-art methodin good network conditions in terms of accuracy and precision; however, itoutperforms them in degrading network scenarios. In our measurements, in fairnetwork conditions, CoSiNeT improves synchronization performance by 56%and 73% compared to SNTP and state-of-the-art method. In poor networkconditions, it improves performance by 76% and 74%, respectively.

By proposing a software-based clock synchronization algorithm for industrialLANs, a significant step towards developing a fully software-based clocksynchronization method suitable for all types of heterogeneous industrialnetworks has been taken.

5.1 Summary 51

communication media, processing delays related to end devices and switches,and queuing delays associated with network switches. In the case ofresource-constrained and low-cost field IIoT devices, an inexpensive clockoscillator introduces significant synchronization errors in the presence of harshindustrial environmental conditions. The constrained memory and processors ofdevices make it challenging to achieve adequate clock synchronization accuracywithout employing computationally extensive algorithms. To overcome thesechallenges, we proposed a lightweight, software-based clock synchronizationalgorithm, CoSiNeT.

The algorithm is executed on the client device and includes periodicalexchanges of timing messages with the server device. Based on these messages,an offset and a RTD between client and server devices are determined. Further,the algorithm takes raw offset and RTD values as inputs. It predicts a newoffset based on the principle that the faster timing packets indicate the bestnetwork conditions and subsequently correspond to true offset values. It furtheruses a special spike detection and removal module that compares the differencebetween estimated and raw offset values with a threshold to detect a spike inraw offset values due to errors and replaces it with a previous valid offset. Thus,the estimated time offset is free from most offset errors and is further used tocorrect the client device’s clock to synchronize with the server device.

We conducted measurements in local network deployments such as homeand university campus to evaluate the proposed algorithm performance. Theresults show that CoSiNeT matches well with SNTP and state-of-the-art methodin good network conditions in terms of accuracy and precision; however, itoutperforms them in degrading network scenarios. In our measurements, in fairnetwork conditions, CoSiNeT improves synchronization performance by 56%and 73% compared to SNTP and state-of-the-art method. In poor networkconditions, it improves performance by 76% and 74%, respectively.

By proposing a software-based clock synchronization algorithm for industrialLANs, a significant step towards developing a fully software-based clocksynchronization method suitable for all types of heterogeneous industrialnetworks has been taken.

67

Page 69: Investigating Software-Based Clock Synchronization for ...

52 Chapter 5. Conclusion

5.2 Future Work

Having investigated clock synchronization challenges in factory LANs, wewould like to explore the clock synchronization challenges in WAN as a naturalprogressive step. The future industrial networks pave ways for advancedapplications such as cloud robotics (controlling factory robots using clouds),remote control (controlling factory operations remotely), remote maintenance(repairing factory equipment remotely), mobility automation (automated guidedvehicles, e.g., drones used for transportation in ports and mines), and smart gridcontrol (wide-area monitoring and control of power equipment). Theseapplications require local factory and remote control sites to be connected overWAN. Having a common notion of time at local and remote operations isessential for the correct sequencing of events and decision-making based ontimely signals. Thus, adequate clock synchronization among varioussub-systems (both local and remote to factory) is paramount for the success ofnext-generation industrial applications. WANs typically can include anycombination of wired, wireless, public, private IP networks. The interferenceand noise levels over a communication network are significantly high. Theunreliable communication networks result in higher events of missing packetsand PDV compared to LANs. Thus, achieving adequate clock synchronizationover WAN using software-based approaches is extremely challenging. Parentapplications drive the clock synchronization needs, and the study indicates thatthe advanced applications require a higher synchronization accuracy thanachieved by state-of-practice NTP. Thus, it is a significant research challenge toinvestigate ways to improve the accuracy of software-based clocksynchronization in WAN.

52 Chapter 5. Conclusion

5.2 Future Work

Having investigated clock synchronization challenges in factory LANs, wewould like to explore the clock synchronization challenges in WAN as a naturalprogressive step. The future industrial networks pave ways for advancedapplications such as cloud robotics (controlling factory robots using clouds),remote control (controlling factory operations remotely), remote maintenance(repairing factory equipment remotely), mobility automation (automated guidedvehicles, e.g., drones used for transportation in ports and mines), and smart gridcontrol (wide-area monitoring and control of power equipment). Theseapplications require local factory and remote control sites to be connected overWAN. Having a common notion of time at local and remote operations isessential for the correct sequencing of events and decision-making based ontimely signals. Thus, adequate clock synchronization among varioussub-systems (both local and remote to factory) is paramount for the success ofnext-generation industrial applications. WANs typically can include anycombination of wired, wireless, public, private IP networks. The interferenceand noise levels over a communication network are significantly high. Theunreliable communication networks result in higher events of missing packetsand PDV compared to LANs. Thus, achieving adequate clock synchronizationover WAN using software-based approaches is extremely challenging. Parentapplications drive the clock synchronization needs, and the study indicates thatthe advanced applications require a higher synchronization accuracy thanachieved by state-of-practice NTP. Thus, it is a significant research challenge toinvestigate ways to improve the accuracy of software-based clocksynchronization in WAN.

68

Page 70: Investigating Software-Based Clock Synchronization for ...

Bibliography

[1] S. Vitturi, C. Zunino, and T. Sauter. Industrial Communication Systemsand Their Future Challenges: Next-Generation Ethernet, IIoT, and 5G.Proceedings of the IEEE, pages 944–961, 2019.

[2] T. Lennvall, M. Gidlund, and J. Åkerberg. Challenges when bringing IoTinto industrial automation. In 2017 IEEE AFRICON, pages 905–910, 2017.

[3] R. N. Gore, E. Lisova, J. Åkerberg, and M. Björkman. In Sync withToday’s Industrial System Clocks. In 2020 International Conference onCOMmunication Systems NETworkS (COMSNETS), pages 785–790, 2020.

[4] S. Schriegel, H. Trsek, and J. Jasperneite. Enhancement for a clocksynchronization protocol in heterogeneous networks. In 2009 InternationalSymposium on Precision Clock Synchronization for Measurement, Controland Communication, pages 1–5, 2009.

[5] E. Oztemel and S. Gursev. Literature review of Industry 4.0 and relatedtechnologies. Journal of Intelligent Manufacturing, pages 127–182, 2020.

[6] R. N. Gore, E. Lisova, J. Åkerberg, and M. Björkman. ClockSynchronization in Future Industrial Networks: Applications, Challenges,and Directions. In 2020 AEIT International Annual Conference (AEIT),pages 1–6, 2020.

[7] IRIG Serial Time Code Formats, Standard 200-16, Aug. 2016.

53

Bibliography

[1] S. Vitturi, C. Zunino, and T. Sauter. Industrial Communication Systemsand Their Future Challenges: Next-Generation Ethernet, IIoT, and 5G.Proceedings of the IEEE, pages 944–961, 2019.

[2] T. Lennvall, M. Gidlund, and J. Åkerberg. Challenges when bringing IoTinto industrial automation. In 2017 IEEE AFRICON, pages 905–910, 2017.

[3] R. N. Gore, E. Lisova, J. Åkerberg, and M. Björkman. In Sync withToday’s Industrial System Clocks. In 2020 International Conference onCOMmunication Systems NETworkS (COMSNETS), pages 785–790, 2020.

[4] S. Schriegel, H. Trsek, and J. Jasperneite. Enhancement for a clocksynchronization protocol in heterogeneous networks. In 2009 InternationalSymposium on Precision Clock Synchronization for Measurement, Controland Communication, pages 1–5, 2009.

[5] E. Oztemel and S. Gursev. Literature review of Industry 4.0 and relatedtechnologies. Journal of Intelligent Manufacturing, pages 127–182, 2020.

[6] R. N. Gore, E. Lisova, J. Åkerberg, and M. Björkman. ClockSynchronization in Future Industrial Networks: Applications, Challenges,and Directions. In 2020 AEIT International Annual Conference (AEIT),pages 1–6, 2020.

[7] IRIG Serial Time Code Formats, Standard 200-16, Aug. 2016.

53

69

Page 71: Investigating Software-Based Clock Synchronization for ...

54 Bibliography

[8] IEEE Standard for a Precision Clock Synchronization Protocol forNetworked Measurement and Control Systems. IEEE Std 1588-2008(Revision of IEEE Std 1588-2002), pages 1–300, 2008.

[9] D. Mills, U. Delaware, E. J. Martin, J. Burbank, and W. Kasch. NetworkTime Protocol Version 4: Protocol and Algorithms Specification [Online],https://tools.ietf.org/html/rfc5905.

[10] J. Sztipanovits, X. Koutsoukos, G. Karsai, N. Kottenstette, P. Antsaklis,V. Gupta, B. Goodwine, J. Baras, and S. Wang. Toward a Science ofCyber–Physical System Integration. Proceedings of the IEEE, pages 29–44, 2012.

[11] L. D. Orehawa. Real-time motion control over switched industrial Ethernetutilising IEEE1588 synchronisation. In IET Conf. on Control Automat.:Uniting Problems and Solutions, pages 1–5, 2013.

[12] A. Ahlen, J. Akerberg, M. Eriksson, A. J. Isaksson, T. Iwaki, K. H.Johansson, S. Knorn, T. Lindh, and H. Sandberg. Toward Wireless Controlin Industrial Process Automation: A Case Study at a Paper Mill. IEEEControl Systems Magazine, pages 36–57, 2019.

[13] K. Yu, J. Åkerberg, M. Gidlund, and M. Björkman. Realization andmeasurements of industrial wireless sensor and actuator networks. In 2015IEEE International Conference on Automation Science and Engineering(CASE), pages 131–137, 2015.

[14] J. M. Castillo-Secilla, J. M. Palomares, and J. Olivares. Temperature-aware methodology for time synchronisation protocols in wireless sensornetworks. Electronics Letters, pages 506–508, 2013.

[15] H. Holz, E. Applin, B. Haberman, D. Joyce, H. Purchase, and C. Reed.Research methods in computing: what are they, and how should we teachthem? ACM SIGCSE Bulletin, pages 96–114, 2006.

[16] M. Luvisotto, Z. Pang, and D. Dzung. High-Performance WirelessNetworks for Industrial Control Applications: New Targets and Feasibility.Proceedings of the IEEE, pages 1074–1093, 2019.

54 Bibliography

[8] IEEE Standard for a Precision Clock Synchronization Protocol forNetworked Measurement and Control Systems. IEEE Std 1588-2008(Revision of IEEE Std 1588-2002), pages 1–300, 2008.

[9] D. Mills, U. Delaware, E. J. Martin, J. Burbank, and W. Kasch. NetworkTime Protocol Version 4: Protocol and Algorithms Specification [Online],https://tools.ietf.org/html/rfc5905.

[10] J. Sztipanovits, X. Koutsoukos, G. Karsai, N. Kottenstette, P. Antsaklis,V. Gupta, B. Goodwine, J. Baras, and S. Wang. Toward a Science ofCyber–Physical System Integration. Proceedings of the IEEE, pages 29–44, 2012.

[11] L. D. Orehawa. Real-time motion control over switched industrial Ethernetutilising IEEE1588 synchronisation. In IET Conf. on Control Automat.:Uniting Problems and Solutions, pages 1–5, 2013.

[12] A. Ahlen, J. Akerberg, M. Eriksson, A. J. Isaksson, T. Iwaki, K. H.Johansson, S. Knorn, T. Lindh, and H. Sandberg. Toward Wireless Controlin Industrial Process Automation: A Case Study at a Paper Mill. IEEEControl Systems Magazine, pages 36–57, 2019.

[13] K. Yu, J. Åkerberg, M. Gidlund, and M. Björkman. Realization andmeasurements of industrial wireless sensor and actuator networks. In 2015IEEE International Conference on Automation Science and Engineering(CASE), pages 131–137, 2015.

[14] J. M. Castillo-Secilla, J. M. Palomares, and J. Olivares. Temperature-aware methodology for time synchronisation protocols in wireless sensornetworks. Electronics Letters, pages 506–508, 2013.

[15] H. Holz, E. Applin, B. Haberman, D. Joyce, H. Purchase, and C. Reed.Research methods in computing: what are they, and how should we teachthem? ACM SIGCSE Bulletin, pages 96–114, 2006.

[16] M. Luvisotto, Z. Pang, and D. Dzung. High-Performance WirelessNetworks for Industrial Control Applications: New Targets and Feasibility.Proceedings of the IEEE, pages 1074–1093, 2019.

70

Page 72: Investigating Software-Based Clock Synchronization for ...

Bibliography 55

[17] J. Åkerberg, M. Gidlund, and M. Björkman. Future research challenges inwireless sensor and actuator networks targeting industrial automation. In2011 9th IEEE International Conference on Industrial Informatics, pages410–415, 2011.

[18] A. Neumann, M. Ehrlich, L. Wisniewski, and J. Jasperneite. Towardsmonitoring of hybrid industrial networks. In 2017 IEEE 13th InternationalWorkshop on Factory Communication Systems (WFCS), pages 1–4, 2017.

[19] P. Gaj, S. Scanzio, and L. Wisniewski. Guest Editorial: HeterogeneousIndustrial Networks of the Current and Next-Generation Factories. IEEETransactions on Industrial Informatics, pages 5539–5542, 2020.

[20] Enterprise-Control System Integration - Part 1: Models and Terminology,ANSI/ISA-95.00.01-2010 (IEC 62264-1 Mod), 2010.

[21] ABB Ability, Control System 800xA Network Configuration 5.1, UserManual, https://new.abb.com/control-systems/system-800xa, (AccessedNov 5, 2020).

[22] G. Cena, I. Cibrario Bertolotti, S. Scanzio, A. Valenzano, and C. Zunino.Synchronize Your Watches: Part II: Special-Purpose Solutions forDistributed Real-Time Control. IEEE Industrial Electronics Magazine,pages 27–39, 2013.

[23] R. Exel. Clock synchronization in IEEE 802.11 wireless LANs usingphysical layer timestamps. In 2012 IEEE International Symposiumon Precision Clock Synchronization for Measurement, Control andCommunication Proceedings, pages 1–6, 2012.

[24] J. -J. Gagnepain. Sensitivity of quartz oscillators to the environment:characterization methods and pitfalls. IEEE Transactions on Ultrasonics,Ferroelectrics, and Frequency Control, pages 347–354, 1990.

[25] K. Sundaresan, P. E. Allen, and F. Ayazi. Process and temperaturecompensation in a 7-MHz CMOS clock oscillator. IEEE Journal of Solid-State Circuits, pages 433–442, 2006.

Bibliography 55

[17] J. Åkerberg, M. Gidlund, and M. Björkman. Future research challenges inwireless sensor and actuator networks targeting industrial automation. In2011 9th IEEE International Conference on Industrial Informatics, pages410–415, 2011.

[18] A. Neumann, M. Ehrlich, L. Wisniewski, and J. Jasperneite. Towardsmonitoring of hybrid industrial networks. In 2017 IEEE 13th InternationalWorkshop on Factory Communication Systems (WFCS), pages 1–4, 2017.

[19] P. Gaj, S. Scanzio, and L. Wisniewski. Guest Editorial: HeterogeneousIndustrial Networks of the Current and Next-Generation Factories. IEEETransactions on Industrial Informatics, pages 5539–5542, 2020.

[20] Enterprise-Control System Integration - Part 1: Models and Terminology,ANSI/ISA-95.00.01-2010 (IEC 62264-1 Mod), 2010.

[21] ABB Ability, Control System 800xA Network Configuration 5.1, UserManual, https://new.abb.com/control-systems/system-800xa, (AccessedNov 5, 2020).

[22] G. Cena, I. Cibrario Bertolotti, S. Scanzio, A. Valenzano, and C. Zunino.Synchronize Your Watches: Part II: Special-Purpose Solutions forDistributed Real-Time Control. IEEE Industrial Electronics Magazine,pages 27–39, 2013.

[23] R. Exel. Clock synchronization in IEEE 802.11 wireless LANs usingphysical layer timestamps. In 2012 IEEE International Symposiumon Precision Clock Synchronization for Measurement, Control andCommunication Proceedings, pages 1–6, 2012.

[24] J. -J. Gagnepain. Sensitivity of quartz oscillators to the environment:characterization methods and pitfalls. IEEE Transactions on Ultrasonics,Ferroelectrics, and Frequency Control, pages 347–354, 1990.

[25] K. Sundaresan, P. E. Allen, and F. Ayazi. Process and temperaturecompensation in a 7-MHz CMOS clock oscillator. IEEE Journal of Solid-State Circuits, pages 433–442, 2006.

71

Page 73: Investigating Software-Based Clock Synchronization for ...

56 Bibliography

[26] J.M. Castillo-Secilla, J.M. Palomares, and J. Olivares. Temperature-Compensated Clock Skew Adjustment. Sensors, pages 10981–11006,2013.

[27] J. Vig and Y. Kim. The low-power potential of oven-controlled memsoscillators. IEEE Transactions on Ultrasonics, Ferroelectrics, andFrequency Control, pages 851–853, 2013.

[28] F. Tirado-Andrés and A. Araujo. Performance of clock sourcesand their influence on time synchronization in wireless sensornetworks. International Journal of Distributed Sensor Networks, page1550147719879372, 2019.

[29] D.L. Mills. Computer Network Time Synchronization: The Network TimeProtocol on Earth and in Space, Second Edition. CRC Press, 2017.

[30] G. Cena, I. C. Bertolotti, S. Scanzio, A. Valenzano, and C. Zunino.Synchronize your watches: Part I: General-purpose solutions for distributedreal-time control. IEEE Industrial Electronics Magazine, pages 18–29,2013.

[31] M. Ussoli and G. Prytz. SNTP time synchronization accuracymeasurements. In 2013 IEEE 18th Conference on Emerging TechnologiesFactory Automation (ETFA), pages 1–4, 2013.

[32] IEEE Standard for a Precision Clock Synchronization Protocol forNetworked Measurement and Control Systems. IEEE Std 1588-2002,pages 1–154, 2002.

[33] IEEE Standard for a Precision Clock Synchronization Protocol forNetworked Measurement and Control Systems. IEEE Std 1588-2019(Revision of IEEE Std 1588-2008), pages 1–499, 2020.

[34] IEEE Standard Profile for Use of IEEE 1588 Precision Time Protocol inPower System Applications. IEEE Std C37.238-2017 (Revision of IEEEStd C37.238-2011), pages 1–42, 2017.

56 Bibliography

[26] J.M. Castillo-Secilla, J.M. Palomares, and J. Olivares. Temperature-Compensated Clock Skew Adjustment. Sensors, pages 10981–11006,2013.

[27] J. Vig and Y. Kim. The low-power potential of oven-controlled memsoscillators. IEEE Transactions on Ultrasonics, Ferroelectrics, andFrequency Control, pages 851–853, 2013.

[28] F. Tirado-Andrés and A. Araujo. Performance of clock sourcesand their influence on time synchronization in wireless sensornetworks. International Journal of Distributed Sensor Networks, page1550147719879372, 2019.

[29] D.L. Mills. Computer Network Time Synchronization: The Network TimeProtocol on Earth and in Space, Second Edition. CRC Press, 2017.

[30] G. Cena, I. C. Bertolotti, S. Scanzio, A. Valenzano, and C. Zunino.Synchronize your watches: Part I: General-purpose solutions for distributedreal-time control. IEEE Industrial Electronics Magazine, pages 18–29,2013.

[31] M. Ussoli and G. Prytz. SNTP time synchronization accuracymeasurements. In 2013 IEEE 18th Conference on Emerging TechnologiesFactory Automation (ETFA), pages 1–4, 2013.

[32] IEEE Standard for a Precision Clock Synchronization Protocol forNetworked Measurement and Control Systems. IEEE Std 1588-2002,pages 1–154, 2002.

[33] IEEE Standard for a Precision Clock Synchronization Protocol forNetworked Measurement and Control Systems. IEEE Std 1588-2019(Revision of IEEE Std 1588-2008), pages 1–499, 2020.

[34] IEEE Standard Profile for Use of IEEE 1588 Precision Time Protocol inPower System Applications. IEEE Std C37.238-2017 (Revision of IEEEStd C37.238-2011), pages 1–42, 2017.

72

Page 74: Investigating Software-Based Clock Synchronization for ...

Bibliography 57

[35] IEEE Standard for Local and Metropolitan Area Networks - Timing andSynchronization for Time-Sensitive Applications in Bridged Local AreaNetworks. IEEE Std 802.1AS-2011, pages 1–292, 2011.

[36] G. M. Garner, M. Ouellette, and M. J. Teener. Using an IEEE 802.1ASnetwork as a distributed IEEE 1588 boundary, ordinary, or transparentclock. In 2010 IEEE International Symposium on Precision ClockSynchronization for Measurement, Control and Communication, pages109–115, 2010.

[37] L. Lo Bello and W. Steiner. A Perspective on IEEE Time-SensitiveNetworking for Industrial Communication and Automation Systems.Proceedings of the IEEE, pages 1094–1120, 2019.

[38] IEEE Standard for Local and Metropolitan Area Networks–Timing andSynchronization for Time-Sensitive Applications. IEEE Std 802.1AS-2020(Revision of IEEE Std 802.1AS-2011), pages 1–421, 2020.

[39] ABB Ability™ 800xA Control System, AC 800M CommunicationProtocols 6.0.2, User Manual, https://new.abb.com/control-systems/system-800xa, (Accessed May 31, 2020).

[40] M. Wollschlaeger, T. Sauter, and J. Jasperneite. The Future of IndustrialCommunication: Automation Networks in the Era of the Internet of Thingsand Industry 4.0. IEEE Industrial Electronics Magazine, pages 17–27,2017.

[41] J. Delsing, F. Rosenqvist, O. Carlsson, A. W. Colombo, and T. Bangemann.Migration of industrial process control systems into service orientedarchitecture. In IECON 2012 - 38th Annual Conference on IEEE IndustrialElectronics Society, pages 5786–5792, 2012.

[42] H. Forbes. ExxonMobil’s Quest for the Future of Process Automation.Technical report, ARC Advisory Group, April 2016.

[43] D. Cavalcanti, J. Perez-Ramirez, M. M. Rashid, J. Fang, M. Galeev, andK. B. Stanton. Extending Accurate Time Distribution and Timeliness

Bibliography 57

[35] IEEE Standard for Local and Metropolitan Area Networks - Timing andSynchronization for Time-Sensitive Applications in Bridged Local AreaNetworks. IEEE Std 802.1AS-2011, pages 1–292, 2011.

[36] G. M. Garner, M. Ouellette, and M. J. Teener. Using an IEEE 802.1ASnetwork as a distributed IEEE 1588 boundary, ordinary, or transparentclock. In 2010 IEEE International Symposium on Precision ClockSynchronization for Measurement, Control and Communication, pages109–115, 2010.

[37] L. Lo Bello and W. Steiner. A Perspective on IEEE Time-SensitiveNetworking for Industrial Communication and Automation Systems.Proceedings of the IEEE, pages 1094–1120, 2019.

[38] IEEE Standard for Local and Metropolitan Area Networks–Timing andSynchronization for Time-Sensitive Applications. IEEE Std 802.1AS-2020(Revision of IEEE Std 802.1AS-2011), pages 1–421, 2020.

[39] ABB Ability™ 800xA Control System, AC 800M CommunicationProtocols 6.0.2, User Manual, https://new.abb.com/control-systems/system-800xa, (Accessed May 31, 2020).

[40] M. Wollschlaeger, T. Sauter, and J. Jasperneite. The Future of IndustrialCommunication: Automation Networks in the Era of the Internet of Thingsand Industry 4.0. IEEE Industrial Electronics Magazine, pages 17–27,2017.

[41] J. Delsing, F. Rosenqvist, O. Carlsson, A. W. Colombo, and T. Bangemann.Migration of industrial process control systems into service orientedarchitecture. In IECON 2012 - 38th Annual Conference on IEEE IndustrialElectronics Society, pages 5786–5792, 2012.

[42] H. Forbes. ExxonMobil’s Quest for the Future of Process Automation.Technical report, ARC Advisory Group, April 2016.

[43] D. Cavalcanti, J. Perez-Ramirez, M. M. Rashid, J. Fang, M. Galeev, andK. B. Stanton. Extending Accurate Time Distribution and Timeliness

73

Page 75: Investigating Software-Based Clock Synchronization for ...

58 Bibliography

Capabilities Over the Air to Enable Future Wireless Industrial AutomationSystems. Proceedings of the IEEE, pages 1132–1152, 2019.

[44] J. Dong, L. Gu, and C. Zheng. Research on Fault-Tolerant Strategy of TimeSynchronization for Industrial Wireless Sensor Network. In 2011 ThirdInternational Conference on Measuring Technology and MechatronicsAutomation, pages 1146–1149, 2011.

[45] F. Girela-López, J. López-Jiménez, M. Jiménez-López, R. Rodríguez,E. Ros, and J. Díaz. IEEE 1588 High Accuracy Default Profile:Applications and Challenges. IEEE Access, pages 45211–45220, 2020.

[46] S. Mani, R. Durairajan, P. Barford, and J. Sommers. An architecturefor IoT clock synchronization. In Proceedings of the 8th InternationalConference on the Internet of Things, pages 1–8, 2018.

[47] M. Gallina, M. Tasca, T. Erseghe, and S. Tomasin. Microgrid control viapowerline communications: Network synchronization field tests with primemodules. In 2012 IEEE International Energy Conference and Exhibition(ENERGYCON), pages 941–946, 2012.

[48] F. Ren, C. Lin, and F. Liu. Self-correcting time synchronizationusing reference broadcast in wireless sensor network. IEEE WirelessCommunications, pages 79–85, 2008.

[49] J. Elson, L. Girod, and D. Estrin. Fine-Grained Network TimeSynchronization Using Reference Broadcasts. SIGOPS Oper. Syst. Rev.,page 147–163, December 2003.

[50] S. Ganeriwal, R. Kumar, and M. B. Srivastava. Timing-Sync Protocol forSensor Networks. In Proceedings of the 1st International Conference onEmbedded Networked Sensor Systems, SenSys ’03, page 138–149, NewYork, NY, USA, 2003. Association for Computing Machinery.

[51] K. S. Yildirim and A. Kantarci. Time Synchronization Based on Slow-Flooding in Wireless Sensor Networks. IEEE Transactions on Paralleland Distributed Systems, pages 244–253, 2014.

58 Bibliography

Capabilities Over the Air to Enable Future Wireless Industrial AutomationSystems. Proceedings of the IEEE, pages 1132–1152, 2019.

[44] J. Dong, L. Gu, and C. Zheng. Research on Fault-Tolerant Strategy of TimeSynchronization for Industrial Wireless Sensor Network. In 2011 ThirdInternational Conference on Measuring Technology and MechatronicsAutomation, pages 1146–1149, 2011.

[45] F. Girela-López, J. López-Jiménez, M. Jiménez-López, R. Rodríguez,E. Ros, and J. Díaz. IEEE 1588 High Accuracy Default Profile:Applications and Challenges. IEEE Access, pages 45211–45220, 2020.

[46] S. Mani, R. Durairajan, P. Barford, and J. Sommers. An architecturefor IoT clock synchronization. In Proceedings of the 8th InternationalConference on the Internet of Things, pages 1–8, 2018.

[47] M. Gallina, M. Tasca, T. Erseghe, and S. Tomasin. Microgrid control viapowerline communications: Network synchronization field tests with primemodules. In 2012 IEEE International Energy Conference and Exhibition(ENERGYCON), pages 941–946, 2012.

[48] F. Ren, C. Lin, and F. Liu. Self-correcting time synchronizationusing reference broadcast in wireless sensor network. IEEE WirelessCommunications, pages 79–85, 2008.

[49] J. Elson, L. Girod, and D. Estrin. Fine-Grained Network TimeSynchronization Using Reference Broadcasts. SIGOPS Oper. Syst. Rev.,page 147–163, December 2003.

[50] S. Ganeriwal, R. Kumar, and M. B. Srivastava. Timing-Sync Protocol forSensor Networks. In Proceedings of the 1st International Conference onEmbedded Networked Sensor Systems, SenSys ’03, page 138–149, NewYork, NY, USA, 2003. Association for Computing Machinery.

[51] K. S. Yildirim and A. Kantarci. Time Synchronization Based on Slow-Flooding in Wireless Sensor Networks. IEEE Transactions on Paralleland Distributed Systems, pages 244–253, 2014.

74

Page 76: Investigating Software-Based Clock Synchronization for ...

Bibliography 59

[52] C. Lenzen, P. Sommer, and R. Wattenhofer. Optimal ClockSynchronization in Networks. In Proceedings of the 7th ACM Conferenceon Embedded Networked Sensor Systems, SenSys ’09, page 225–238, NewYork, NY, USA, 2009. Association for Computing Machinery.

[53] C. Lenzen, P. Sommer, and R. Wattenhofer. PulseSync: An Efficient andScalable Clock Synchronization Protocol. IEEE/ACM Transactions onNetworking, pages 717–727, 2015.

[54] P. Sommer and R. Wattenhofer. Gradient clock synchronization in wirelesssensor networks. In 2009 International Conference on InformationProcessing in Sensor Networks, pages 37–48, 2009.

[55] L. Schenato and F. Fiorentin. Average TimeSynch: A consensus-based protocol for clock synchronization in wireless sensor networks.Automatica, 47:1878–1886, 09 2011.

[56] J. He, P. Cheng, L. Shi, J. Chen, and Y. Sun. Time Synchronizationin WSNs: A Maximum-Value-Based Consensus Approach. IEEETransactions on Automatic Control, pages 660–675, 2014.

[57] T. Hao, R. Zhou, G. Xing, and M. Mutka. WizSync: Exploiting Wi-FiInfrastructure for Clock Synchronization in Wireless Sensor Networks. In2011 IEEE 32nd Real-Time Systems Symposium, pages 149–158, 2011.

[58] A. Bletsas. Evaluation of Kalman filtering for network time keeping. IEEETransactions on Ultrasonics, Ferroelectrics, and Frequency Control, pages1452–1460, 2005.

[59] G. Giorgi and C. Narduzzi. Performance analysis of Kalman filter-basedclock synchronization in IEEE 1588 networks. In 2009 InternationalSymposium on Precision Clock Synchronization for Measurement, Controland Communication, pages 1–6, 2009.

[60] S. Yang, C. Xu, J. Guan, and T. Zhang. Event-based Diffusion KalmanFilter Strategy for Clock Synchronization in WSNs. In 2018 InternationalConference on Networking and Network Applications (NaNA), pages 270–276, 2018.

Bibliography 59

[52] C. Lenzen, P. Sommer, and R. Wattenhofer. Optimal ClockSynchronization in Networks. In Proceedings of the 7th ACM Conferenceon Embedded Networked Sensor Systems, SenSys ’09, page 225–238, NewYork, NY, USA, 2009. Association for Computing Machinery.

[53] C. Lenzen, P. Sommer, and R. Wattenhofer. PulseSync: An Efficient andScalable Clock Synchronization Protocol. IEEE/ACM Transactions onNetworking, pages 717–727, 2015.

[54] P. Sommer and R. Wattenhofer. Gradient clock synchronization in wirelesssensor networks. In 2009 International Conference on InformationProcessing in Sensor Networks, pages 37–48, 2009.

[55] L. Schenato and F. Fiorentin. Average TimeSynch: A consensus-based protocol for clock synchronization in wireless sensor networks.Automatica, 47:1878–1886, 09 2011.

[56] J. He, P. Cheng, L. Shi, J. Chen, and Y. Sun. Time Synchronizationin WSNs: A Maximum-Value-Based Consensus Approach. IEEETransactions on Automatic Control, pages 660–675, 2014.

[57] T. Hao, R. Zhou, G. Xing, and M. Mutka. WizSync: Exploiting Wi-FiInfrastructure for Clock Synchronization in Wireless Sensor Networks. In2011 IEEE 32nd Real-Time Systems Symposium, pages 149–158, 2011.

[58] A. Bletsas. Evaluation of Kalman filtering for network time keeping. IEEETransactions on Ultrasonics, Ferroelectrics, and Frequency Control, pages1452–1460, 2005.

[59] G. Giorgi and C. Narduzzi. Performance analysis of Kalman filter-basedclock synchronization in IEEE 1588 networks. In 2009 InternationalSymposium on Precision Clock Synchronization for Measurement, Controland Communication, pages 1–6, 2009.

[60] S. Yang, C. Xu, J. Guan, and T. Zhang. Event-based Diffusion KalmanFilter Strategy for Clock Synchronization in WSNs. In 2018 InternationalConference on Networking and Network Applications (NaNA), pages 270–276, 2018.

75

Page 77: Investigating Software-Based Clock Synchronization for ...

[61] G. Giorgi and C. Narduzzi. Kalman filtering for multi-path networksynchronization. In 2014 IEEE International Symposium on PrecisionClock Synchronization for Measurement, Control, and Communication(ISPCS), pages 65–70, 2014.

[62] R. Le and X. Wang. Smart Power Grid Synchronization Using ExtendedKalman Filtering: Theory and Implementation with CompactRIO. In 2018IEEE Green Technologies Conference (GreenTech), pages 38–43, 2018.

[63] S. Sridhar, P. Misra, G. S. Gill, and J. Warrior. Cheepsync: a timesynchronization service for resource constrained bluetooth le advertisers.IEEE Communications Magazine, 54(1):136–143, 2016.

[61] G. Giorgi and C. Narduzzi. Kalman filtering for multi-path networksynchronization. In 2014 IEEE International Symposium on PrecisionClock Synchronization for Measurement, Control, and Communication(ISPCS), pages 65–70, 2014.

[62] R. Le and X. Wang. Smart Power Grid Synchronization Using ExtendedKalman Filtering: Theory and Implementation with CompactRIO. In 2018IEEE Green Technologies Conference (GreenTech), pages 38–43, 2018.

[63] S. Sridhar, P. Misra, G. S. Gill, and J. Warrior. Cheepsync: a timesynchronization service for resource constrained bluetooth le advertisers.IEEE Communications Magazine, 54(1):136–143, 2016.

76