A precise time synchronization method for real-time schedulers

Tatsushi Kikutani, Takahiro Yakoh

Research output: Contribution to journalArticle

1 Citation (Scopus)

Abstract

This paper proposed a precise time synchronization method between schedulers of real-time operating systems by communicating time stamps over a network. An NTP-based communication protocol was used to measure the time offset between nodes. To minimize the measurement error, a light-weight network stack called RT-Messenger was used instead of common transmission control protocol/Internet protocol (TCP/IP) stack. Also, a Kalman filter was introduced to eliminate such error and to estimate time offset and drift. Furthermore, a real-time scheduler in RTAI/Linux (where RTAI is real-time application interface) was modified to compensate the time difference using the estimated offset and drift. The time compensation of a scheduler clock affects the next resume times for real-time tasks. Therefore, a recalculation process of next resume times for all real-time tasks and a reordering process of real-time task queue were added to the real-time scheduler. To validate the proposed method, time differences of resume times for two real-time tasks on different nodes were measured under various experimental conditions. The results confirm that the resume time differences were successfully kept lower than 400 ns with 300 ns standard deviation under the condition of observation period at 1 s and correction period at 10 s.

Original languageEnglish
Pages (from-to)21-29
Number of pages9
JournalElectronics and Communications in Japan
Volume101
Issue number12
DOIs
Publication statusPublished - 2018 Dec 1

Fingerprint

time synchronization
Transmission control protocol
Time Synchronization
Internet protocols
Scheduler
Measurement errors
Kalman filters
Clocks
Synchronization
Real-time
Network protocols
Compensation and Redress
Linux
Timestamp
Reordering
Communication Protocol
Vertex of a graph
Operating Systems
Measurement Error
Standard deviation

Keywords

  • Kalman filter
  • real-time operating system
  • time synchronization

ASJC Scopus subject areas

  • Signal Processing
  • Physics and Astronomy(all)
  • Computer Networks and Communications
  • Electrical and Electronic Engineering
  • Applied Mathematics

Cite this

A precise time synchronization method for real-time schedulers. / Kikutani, Tatsushi; Yakoh, Takahiro.

In: Electronics and Communications in Japan, Vol. 101, No. 12, 01.12.2018, p. 21-29.

Research output: Contribution to journalArticle

@article{9f875b5acea54338a6f073e3468ba24c,
title = "A precise time synchronization method for real-time schedulers",
abstract = "This paper proposed a precise time synchronization method between schedulers of real-time operating systems by communicating time stamps over a network. An NTP-based communication protocol was used to measure the time offset between nodes. To minimize the measurement error, a light-weight network stack called RT-Messenger was used instead of common transmission control protocol/Internet protocol (TCP/IP) stack. Also, a Kalman filter was introduced to eliminate such error and to estimate time offset and drift. Furthermore, a real-time scheduler in RTAI/Linux (where RTAI is real-time application interface) was modified to compensate the time difference using the estimated offset and drift. The time compensation of a scheduler clock affects the next resume times for real-time tasks. Therefore, a recalculation process of next resume times for all real-time tasks and a reordering process of real-time task queue were added to the real-time scheduler. To validate the proposed method, time differences of resume times for two real-time tasks on different nodes were measured under various experimental conditions. The results confirm that the resume time differences were successfully kept lower than 400 ns with 300 ns standard deviation under the condition of observation period at 1 s and correction period at 10 s.",
keywords = "Kalman filter, real-time operating system, time synchronization",
author = "Tatsushi Kikutani and Takahiro Yakoh",
year = "2018",
month = "12",
day = "1",
doi = "10.1002/ecj.12124",
language = "English",
volume = "101",
pages = "21--29",
journal = "Electronics and Communications in Japan",
issn = "1942-9533",
publisher = "Scripta Technica",
number = "12",

}

TY - JOUR

T1 - A precise time synchronization method for real-time schedulers

AU - Kikutani, Tatsushi

AU - Yakoh, Takahiro

PY - 2018/12/1

Y1 - 2018/12/1

N2 - This paper proposed a precise time synchronization method between schedulers of real-time operating systems by communicating time stamps over a network. An NTP-based communication protocol was used to measure the time offset between nodes. To minimize the measurement error, a light-weight network stack called RT-Messenger was used instead of common transmission control protocol/Internet protocol (TCP/IP) stack. Also, a Kalman filter was introduced to eliminate such error and to estimate time offset and drift. Furthermore, a real-time scheduler in RTAI/Linux (where RTAI is real-time application interface) was modified to compensate the time difference using the estimated offset and drift. The time compensation of a scheduler clock affects the next resume times for real-time tasks. Therefore, a recalculation process of next resume times for all real-time tasks and a reordering process of real-time task queue were added to the real-time scheduler. To validate the proposed method, time differences of resume times for two real-time tasks on different nodes were measured under various experimental conditions. The results confirm that the resume time differences were successfully kept lower than 400 ns with 300 ns standard deviation under the condition of observation period at 1 s and correction period at 10 s.

AB - This paper proposed a precise time synchronization method between schedulers of real-time operating systems by communicating time stamps over a network. An NTP-based communication protocol was used to measure the time offset between nodes. To minimize the measurement error, a light-weight network stack called RT-Messenger was used instead of common transmission control protocol/Internet protocol (TCP/IP) stack. Also, a Kalman filter was introduced to eliminate such error and to estimate time offset and drift. Furthermore, a real-time scheduler in RTAI/Linux (where RTAI is real-time application interface) was modified to compensate the time difference using the estimated offset and drift. The time compensation of a scheduler clock affects the next resume times for real-time tasks. Therefore, a recalculation process of next resume times for all real-time tasks and a reordering process of real-time task queue were added to the real-time scheduler. To validate the proposed method, time differences of resume times for two real-time tasks on different nodes were measured under various experimental conditions. The results confirm that the resume time differences were successfully kept lower than 400 ns with 300 ns standard deviation under the condition of observation period at 1 s and correction period at 10 s.

KW - Kalman filter

KW - real-time operating system

KW - time synchronization

UR - http://www.scopus.com/inward/record.url?scp=85053696220&partnerID=8YFLogxK

UR - http://www.scopus.com/inward/citedby.url?scp=85053696220&partnerID=8YFLogxK

U2 - 10.1002/ecj.12124

DO - 10.1002/ecj.12124

M3 - Article

AN - SCOPUS:85053696220

VL - 101

SP - 21

EP - 29

JO - Electronics and Communications in Japan

JF - Electronics and Communications in Japan

SN - 1942-9533

IS - 12

ER -