Clock Synchronization Algorithm in Distributed System Based on CAN Bus
- Author
- LiuJingYu
- Advisor
- ZhangYanJun
- School
- Qingdao University of Science and Technology
- Major
- Control Theory and Control Engineering
- Classification
- TP273.5 Computer control, computer control system
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 272
- Citations
- 1
- CAN bus
- Distributed system
- agreement algorithm
- Clock synchronization algorithm
- phase-decoupled algorithm
Abstract
With rapid development of computer technology, information technology and network technology get applied more and more widely. Some critical systems need high-stability and high efficiency to accomplish key works and tasks. Thus the requirement for consistency of clocks in distributed system is extremely strict. Therefore, how to synchronize all clocks of distributed system precisely is a quite important issue.The paper focuses mainly on research of clock synchronization in distributed system based on CAN (Control Area Network), designed and implemented of clock-synchronization experiment system in distributed system. The paper summarized basic knowledge of distributed system and clock synchronization in distributed system. Then put more emphasis on Lamport algorithm and other algorithms.Aiming at the distributed system, especially the multi-master system such as CAN, there is no united network clock, so the real time character is affected. In the basis of the posteriori agreement from the point of reducing the message for clock synchronization and improving the precision and accuracy of clock synchronization, the phase-decoupled algorithm is proposed. When applying the algorithm of clock synchronization, the message for synchronization will be reduced from n~2+2n to 3n. It has a fine and creative future.
Table of contents
1 Introduction 8-14
1.1 research background 8-10
1.1.1 Fieldbus Overview 8
1.1.2 fieldbus characteristics 8-9
1.1.3 fieldbus control system composed
1.1.4 Fieldbus classified 9-10
1.2 this topic Implications for research 10-11
1.3 status quo and development trend of domestic and foreign research 11-13
1.4 The main work 13-14
distributed systems principles the 14-24
2.1 distributed system overview 14-15
2.1.1 distributed system definitions and examples 14-15
2.2 distributed system hardware structure 15-18
2.2.1 bus-based multiprocessor 17-18
2.2.2 exchange-based multi-processor 18
2.2.3 bus-based multi-computer system 18
2.2.4 multi-computer system based on the exchange 18
2.3 distributed system software 18-19
2.4 distributed system characteristics 19-23
2.4.1 Fault Tolerance 20-21
2.4.2 openness 21
2.4.3 Resource sharing the concurrent 21-22
2.4.4 the 2.4.5 transparent 22
22-23
2.5 Distributed System Summary 23-24
distributed system clock synchronization algorithm 24-36
3.1 the clock synchronized Overview 24 <br / > 3.2 absolute time synchronization 24-27
3.3 time synchronization algorithm 27-32
3.3.1 Cristian algorithm 28-29
3.3.2 Berkely algorithm 29-30
3.3.3 average algorithm 30-31
3.3.4 multiple external clock source synchronization algorithm 31
3.3 .5 use of synchronous clock 31-32
3.4 logic clock 32-35
3.4.1 logical clock concept 32
3.4.2 Lamport algorithm the 32-35
3.5 Summary 35-36
4 CAN bus technology specification 36-53
4.1 CAN bus characteristics 36-38
4.2 CAN bus hierarchy the 38-48 4.2.1 Logical Link Control (LLC) sublayer
40-41
4.2. 2 Media Access Control (MAC) sublayer 41-48
4.3 timing parameters select 48-52
4.3.1 regular composition 48 - 50
4.3.2 reference clock error, and propagation delay 50
4.3.3 sync the calculation rules 50-51
the 4.3.4 bit time parameters 51-52
4.4 Summary 52-53
5 CAN bus the distributed system clock synchronization algorithm 53-67
5.1 clock synchronization concept 53
5.2 CAN bus clock synchronization the 53-56 5.2.1 CAN bus
characteristics 53-55
5.2.2 related definitions and Theorem 55-56
5.3 clock synchronization algorithm to select 56-57
5.4 CAN bus clock synchronization algorithm
5.4.1 CAN 57-59 bus network clock features 57-58
5.4.2 \
5.6 Performance Analysis 64-67
5.6.1 the number of transmit messages the 64-65 5.6.2
clock accuracy and clock accuracy 65 -67
6 CAN bus clock synchronization system design nbsp 67-73
6.1 clock synchronization model; the 67-68
6.2 Basic principles of synchronization algorithms 68 -69
the 6.3 clock offset calculation 69-70
6.4 system design the 70-72
6.4.1 server-side module design and realization 70-71
6.4.2 client module design and implementation 71-72
6.5 Summary 72-73
conclusion 73 - 74
Reference 74-76
Acknowledgements 76-77
studied papers published by the Master of the period are found; 77-78
statement 78
on paper using the instructions authorized 78
Related dissertations
- The Design of Small Coal Mine Remote Monitoring System Based on ARM
- The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
- The Design of Monitoring System for the Photovoltaic Plant Based on DSP
- A Gearman/MongoDB Based Transaction Monitoring and Reporting System Research and Implementation
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- Design and Implementation of MPC System with Remote Model Error Detection
- Study on Clock Network Structure and Synchronization in Distributed Test System
- The Design of Hybrid Electric Bus Data Acquisition and Test System
- Industrial Field Data Acquisition System Design Based on CAN Bus
- Design of the Hazard Source Monitoring System Based on CAN Bus
- The Design of Displacement Detection System Based on CPLD Grating Subdividing Technology
- Research on Data Acquisition System of Can Bus
- The Design and Implementation of Vehicle Data Acquisition and Communication Device Based on CAN Bus
- Design of Remote Monitoring System of Agricultural Field Information Based on GPRS Network
- Design and Implementation of Intelligent Wiring Hardness Detection System
- Design of distributed control system based on embedded platform
- Research on Indoor Localization System for Intelligent Wheelchair
- Research on CAN Bus Communication and Application Experiments
- Based on Can Field-bus Technology and Web Service Home Intelligent Control System Design and Realization
- Research of Fieldbus Relay Basing on CAN Bus