[go: up one dir, main page]

KR102064575B1 - Method, apparatus, system and computer program for enhancing the accuracy of Time Synchronization between devices - Google Patents

Method, apparatus, system and computer program for enhancing the accuracy of Time Synchronization between devices Download PDF

Info

Publication number
KR102064575B1
KR102064575B1 KR1020150162444A KR20150162444A KR102064575B1 KR 102064575 B1 KR102064575 B1 KR 102064575B1 KR 1020150162444 A KR1020150162444 A KR 1020150162444A KR 20150162444 A KR20150162444 A KR 20150162444A KR 102064575 B1 KR102064575 B1 KR 102064575B1
Authority
KR
South Korea
Prior art keywords
time
period
time synchronization
packet
communication network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
KR1020150162444A
Other languages
Korean (ko)
Other versions
KR20170058629A (en
Inventor
이순우
강지명
최성수
Original Assignee
한국전기연구원
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 한국전기연구원 filed Critical 한국전기연구원
Priority to KR1020150162444A priority Critical patent/KR102064575B1/en
Publication of KR20170058629A publication Critical patent/KR20170058629A/en
Application granted granted Critical
Publication of KR102064575B1 publication Critical patent/KR102064575B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors
    • H04L7/0033Correction by delay
    • H04L7/0037Delay of clock signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0008Synchronisation information channels, e.g. clock distribution lines

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

본 발명은 디바이스 간의 시각 동기 정밀도를 향상시키는 방법, 장치, 시스템 및 컴퓨터 프로그램에 관한 것으로서, 보다 구체적으로는 통신 네트워크에 연결된 디바이스 간의 시각을 동기화함에 있어 시각 동기를 위하여 주기적으로 발신되는 시각 동기 패킷의 전송 지연에 따른 주기 변화를 고려하여 상기 통신 네트워크에서의 트래픽을 추정하고, 이를 반영하여 상기 디바이스 간의 시각을 동기화함으로써, 상기 디바이스 간의 시각 동기 정밀도를 향상시킬 수 있는 방법, 장치, 시스템 및 컴퓨터 프로그램에 관한 것이다.
본 발명에서는, 통신 네트워크에 연결된 디바이스 간의 시각을 동기화함에 있어 시각 동기를 위하여 주기적으로 발신되는 시각 동기 패킷의 전송 지연에 따른 주기 변화를 고려하여 상기 통신 네트워크에서의 트래픽을 추정하고, 이를 반영하여 상기 디바이스 간의 시각을 동기화함으로써, 통신 네트워크에서의 트래픽이 증가하더라도 그에 따라 상기 디바이스 간에 시각 동기 오차가 발생하는 것을 억제할 수 있으며, 이에 따라 상기 디바이스 간의 시각 동기 정밀도를 높일 수 있다는 효과를 가진다.
The present invention relates to a method, an apparatus, a system, and a computer program for improving the accuracy of time synchronization between devices. A method, apparatus, system, and computer program capable of improving time synchronization accuracy between devices by estimating the traffic in the communication network in consideration of the period change due to transmission delay, and synchronizing the time between the devices by reflecting the traffic. It is about.
In the present invention, in synchronizing the time between the devices connected to the communication network, the traffic in the communication network is estimated in consideration of the change in the period according to the transmission delay of the time synchronization packet periodically transmitted for time synchronization, and reflects the traffic By synchronizing the time between the devices, even if the traffic in the communication network increases, it is possible to suppress the occurrence of the time synchronization error between the devices accordingly, thereby increasing the time synchronization accuracy between the devices.

Description

디바이스 간의 시각 동기 정밀도를 향상시키는 방법, 장치, 시스템 및 컴퓨터 프로그램{Method, apparatus, system and computer program for enhancing the accuracy of Time Synchronization between devices}Method, apparatus, system and computer program for enhancing the accuracy of Time Synchronization between devices}

본 발명은 디바이스 간의 시각 동기 정밀도를 향상시키는 방법, 장치, 시스템 및 컴퓨터 프로그램에 관한 것으로서, 보다 구체적으로는 통신 네트워크에 연결된 디바이스 간의 시각을 동기화함에 있어 시각 동기를 위하여 주기적으로 발신되는 시각 동기 패킷의 전송 지연에 따른 주기 변화를 고려하여 상기 통신 네트워크에서의 트래픽을 추정하고, 이를 반영하여 상기 디바이스 간의 시각을 동기화함으로써, 상기 디바이스 간의 시각 동기 정밀도를 향상시킬 수 있는 방법, 장치, 시스템 및 컴퓨터 프로그램에 관한 것이다.The present invention relates to a method, an apparatus, a system and a computer program for improving the accuracy of time synchronization between devices. More particularly, the present invention relates to a method of synchronizing time synchronization packets periodically transmitted for time synchronization in synchronizing time between devices connected to a communication network. A method, apparatus, system, and computer program capable of improving time synchronization accuracy between devices by estimating the traffic in the communication network in consideration of the period change due to transmission delay, and synchronizing the time between the devices by reflecting the traffic. It is about.

네트워크에서 각 네트워크 장치 사이에는 기준 시간을 공유하기 위한 프로토콜이 필요하며 네트워크 선로 외 시각 동기용 전용선을 이용하는 IRIG-B, PPS(Pulse Per Second) 방식과 네트워크 선로를 공유하여 패킷에 필요한 정보를 전송하는 NTP(Network Time Protocol), PTP(Precise Time Protocol) 등의 방식이 있다. 이 중 PTP 방식은 microsecond 이하의 정밀한 시각 동기를 맞추기 위한 방식으로 국제표준(IEEE 1588 및 IEC 61588) 에 규정되어 있다. PTP방식은 시각 동기 마스터 디바이스와 슬레이브 디바이스간 시각 동기 정보가 포함된 패킷을 주기적으로 교환하여 슬레이브 디바이스의 시간을 마스터 디바이스와 동기화 하며 하나의 마스터 디바이스로 여러 개의 슬레이브 디바이스를 동시에 동기화 할 수도 있다. 따라서 공장 자동화, 자동차 제어, 로봇 제어, 스마트 그리드 분산전원, 전력분야 고장진단 등 많은 곳에 PTP 방식이 사용된다.A protocol for sharing a reference time is required between network devices in a network.In addition, IRIG-B, Pulse Per Second (PPS), which uses a dedicated line for visual synchronization other than the network line, and a network line are shared to transmit necessary information for a packet. NTP (Network Time Protocol), PTP (Precise Time Protocol) and the like. Among these, the PTP method is defined in the international standards (IEEE 1588 and IEC 61588) as a method for precise time synchronization of microsecond or less. The PTP method periodically exchanges packets including time synchronization information between the time synchronization master device and the slave device to synchronize the time of the slave device with the master device, and simultaneously synchronizes multiple slave devices with one master device. Therefore, PTP is used in many places such as factory automation, automobile control, robot control, smart grid distributed power supply, and power failure diagnosis.

그런데, 상기 PTP 방식 등과 같이 통신 네트워크를 이용하는 시각 동기 방식은 이상적인 환경에서는 매우 정확할 수 있겠으나, 네트워크의 사용량(traffic)이 많아 통신이 지연되는 등 통신 상태가 좋지 않거나 시각 동기 마스터와 슬레이브 사이에 시각 동기를 지원하지 않는 스위치 등의 장치가 존재하게 되면 시각 동기 성능이 떨어지는 문제가 있다. 이때, 상기 스위치가 TC(transparent clock) 등의 시각 동기 기능을 포함하게 되면 이에 따른 오차는 현저히 줄어들 수 있겠으나, 이러한 경우에도 네트워크의 트래픽(traffic)이 일정하지 않아 시각 동기 패킷 교환시 집중되는 경우에는 시각 동기 오차가 커질 수 있다는 문제가 여전히 남게 된다. By the way, the time synchronization method using a communication network, such as the PTP method may be very accurate in an ideal environment, but the communication state is not good, such as delayed communication due to the large traffic (traffic), or the time between the time synchronization master and slave If there is a device such as a switch that does not support synchronization, there is a problem that the performance of time synchronization is poor. In this case, if the switch includes a time synchronization function such as a TC (transparent clock), the error may be remarkably reduced, but even in this case, when the traffic of the network is not constant, it is concentrated during time synchronization packet exchange. There remains a problem that the visual synchronization error can be large.

한국 공개특허공보 10-2009-0032306호(2000년 4월 1일 공개)Korean Unexamined Patent Publication No. 10-2009-0032306 (published April 1, 2000)

본 발명의 일 실시예에 따른 시각 동기 정밀도를 향상시키는 방법, 장치, 시스템 및 컴퓨터 프로그램은 통신 네트워크에 연결된 디바이스 간에 시각을 동기화함에 있어, 통신 네트워크에서의 트래픽이 증가하더라도 그에 따라 상기 디바이스 간에 시각 동기 오차가 발생하는 것을 억제할 수 있도록 하는 것을 목적으로 한다.A method, apparatus, system, and computer program for improving time synchronization accuracy according to an embodiment of the present invention is to synchronize time between devices connected to a communication network, even if traffic in the communication network increases, so that time synchronization between the devices accordingly. It aims at making it possible to suppress the occurrence of an error.

상기 과제를 해결하기 위한 본 발명의 한 측면에 따른 시각 동기화 방법은, 통신 네트워크에 연결된 디바이스 간의 시각을 동기화하는 방법으로서, 슬레이브 디바이스가 마스터 디바이스로부터 제1 주기에서의 제1 시각 동기 패킷을 전송받는 제1 패킷 전송 단계; 상기 슬레이브 디바이스가 상기 마스터 디바이스로부터 미리 정해진 시간 주기가 경과한 후 발신되는 제2 주기에서의 제2 시각 동기 패킷을 전송받는 제2 패킷 전송 단계; 상기 제1 시각 동기 패킷의 수신 시간 및 상기 제2 시각 동기 패킷의 수신 시각을 이용하여 상기 제1 주기에 대한 시간 주기를 산출하는 제1 주기 산출 단계; 및 상기 제1 주기에 대하여 산출된 시간 주기를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스의 시각을 동기화하는 시각 동기화 단계를 포함하는 것을 특징으로 한다.According to an aspect of the present invention, there is provided a method for synchronizing time between devices connected to a communication network, wherein a slave device receives a first time synchronization packet in a first period from a master device. First packet transmission step; A second packet transmission step of receiving, by the slave device, a second time synchronization packet in a second period transmitted after a predetermined time period has elapsed from the master device; A first period calculating step of calculating a time period for the first period by using a reception time of the first time synchronization packet and a reception time of the second time synchronization packet; And a time synchronization step of synchronizing the time of the slave device using the first time synchronization packet in consideration of the time period calculated for the first period.

이때, 상기 시각 동기화 단계는, 상기 제1 주기에 대하여 산출된 시간 주기를 고려하여 상기 제1 주기에서의 통신 네트워크 상태를 추정하는 단계; 및 상기 제1 주기에서의 통신 네트워크 상태를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스의 시각을 동기화하는 단계를 포함할 수 있다.In this case, the time synchronization step may include estimating a communication network state in the first period in consideration of the time period calculated for the first period; And synchronizing the time of the slave device by using the first time synchronization packet in consideration of the communication network state in the first period.

여기서, 상기 시각 동기화 단계에서는, 상기 통신 네트워크 상태가 소정의 기준치에 미치지 못하는 경우, 상기 제1 시각 동기 패킷을 상기 슬레이브 디바이스에 대한 시각 동기화를 위하여 사용하지 않거나, 상기 제1 시각 동기 패킷에 상기 통신 네트워크 상태에 따른 가중치를 주어 상기 슬레이브 디바이스에 대한 시각 동기화에 사용할 수 있다.Here, in the time synchronization step, when the communication network state does not reach a predetermined reference value, the first time synchronization packet is not used for time synchronization for the slave device, or the communication is performed on the first time synchronization packet. Weights according to network conditions may be used for time synchronization with the slave device.

또한, 본 발명에 따른 시각 동기화 방법은 상기 슬레이브 디바이스가 상기 마스터 디바이스로부터 미리 정해진 시간 주기가 경과한 후 발신되는 제3 주기에서의 제3 시각 동기 패킷을 전송받는 제3 패킷 전송 단계; 상기 제2 시각 동기 패킷의 수신 시간 및 상기 제3 시각 동기 패킷의 수신 시각을 이용하여 상기 제2 주기에 대한 시간 주기를 산출하는 제2 주기 산출 단계; 및 상기 제1 주기에 대하여 산출된 시간 주기 및 상기 제2 주기에 대하여 산출된 시간 주기를 비교하여 상기 제1 주기에서의 통신 네트워크 상태를 추정하는 단계를 더 포함할 수 있다.In addition, the time synchronization method according to the present invention includes a third packet transmission step in which the slave device receives a third time synchronization packet in a third period transmitted after a predetermined time period has elapsed from the master device; A second period calculating step of calculating a time period for the second period by using a reception time of the second time synchronization packet and a reception time of the third time synchronization packet; And estimating a communication network state in the first period by comparing the time period calculated for the first period and the time period calculated for the second period.

본 발명의 다른 측면에 따른 컴퓨터로 판독 가능한 매체에 저장된 프로그램은 컴퓨터에서 상기 시각 동기화 방법의 각 단계를 실행하기 위한 프로그램인 것을 특징으로 한다.A program stored in a computer readable medium according to another aspect of the present invention is a program for executing each step of the time synchronization method in a computer.

본 발명의 또 다른 측면에 따른 슬레이브 디바이스 장치는, 통신 네트워크에 연결된 디바이스 간의 시각을 동기화하는 슬레이브 디바이스 장치로서, 마스터 디바이스로부터 제1 주기에서의 제1 시각 동기 패킷을 전송받는 제1 패킷 수신부; 상기 마스터 디바이스로부터 미리 정해진 시간 주기가 경과한 후 발신되는 제2 주기에서의 제2 시각 동기 패킷을 전송받는 제2 패킷 수신부; 상기 제1 시각 동기 패킷의 수신 시간 및 상기 제2 시각 동기 패킷의 수신 시각을 이용하여 상기 제1 주기에 대한 시간 주기를 산출하는 제1 주기 산출부; 및 상기 제1 주기에 대하여 산출된 시간 주기를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스의 시각을 동기화하는 시각 동기화부를 포함하는 것을 특징으로 한다.According to another aspect of the present invention, a slave device device includes: a slave device device for synchronizing time between devices connected to a communication network, the slave device device comprising: a first packet receiving unit receiving a first time synchronization packet in a first period from a master device; A second packet receiver configured to receive a second time synchronization packet in a second period transmitted after a predetermined time period has elapsed from the master device; A first period calculator configured to calculate a time period for the first period by using a reception time of the first time synchronization packet and a reception time of the second time synchronization packet; And a time synchronization unit for synchronizing the time of the slave device using the first time synchronization packet in consideration of the time period calculated for the first period.

이때, 상기 시각 동기화부는, 상기 제1 주기에 대하여 산출된 시간 주기를 고려하여 상기 제1 주기에서의 통신 네트워크 상태를 추정하는 통신 네트워크 상태 추정부; 및 상기 제1 주기에서의 통신 네트워크 상태를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스의 시각을 동기화하는 시각 동기부를 포함할 수 있다.In this case, the time synchronization unit may include a communication network state estimating unit estimating a communication network state in the first period in consideration of the time period calculated for the first period; And a time synchronizer configured to synchronize the time of the slave device using the first time sync packet in consideration of the communication network state in the first period.

여기서, 상기 시각 동기화부에서는, 상기 통신 네트워크 상태가 소정의 기준치에 미치지 못하는 경우, 상기 제1 시각 동기 패킷을 상기 슬레이브 디바이스에 대한 시각 동기화를 위하여 사용하지 않거나, 상기 제1 시각 동기 패킷에 상기 통신 네트워크 상태에 따른 가중치를 주어 상기 슬레이브 디바이스에 대한 시각 동기화에 사용할 수 있다.Here, in the time synchronization unit, when the communication network state does not reach a predetermined reference value, the first time synchronization packet is not used for time synchronization for the slave device, or the communication is performed in the first time synchronization packet. Weights according to network conditions may be used for time synchronization with the slave device.

또한, 본 발명에 따른 슬레이브 디바이스 장치는, 상기 마스터 디바이스로부터 미리 정해진 시간 주기가 경과한 후 발신되는 제3 주기에서의 제3 시각 동기 패킷을 전송받는 제3 패킷 수신부; 상기 제2 시각 동기 패킷의 수신 시간 및 상기 제3 시각 동기 패킷의 수신 시각을 이용하여 상기 제2 주기에 대한 시간 주기를 산출하는 제2 주기 산출부; 및 상기 제1 주기에 대하여 산출된 시간 주기 및 상기 제2 주기에 대하여 산출된 시간 주기를 비교하여 상기 제1 주기에서의 통신 네트워크 상태를 추정하는 통신 네트워크 상태 추정부를 더 포함할 수 있다.In addition, the slave device apparatus according to the present invention, a third packet receiving unit for receiving a third time synchronization packet in a third period transmitted after a predetermined time period from the master device; A second period calculator configured to calculate a time period for the second period by using a reception time of the second time synchronization packet and a reception time of the third time synchronization packet; And a communication network state estimator for estimating a communication network state in the first period by comparing the time period calculated for the first period and the time period calculated for the second period.

본 발명의 또 다른 측면에 따른 시각 동기화 시스템은, 통신 네트워크에 연결된 디바이스 간의 시각을 동기화하는 시각 동기화 시스템으로서, 제1 주기에서 제1 시각 동기 패킷을 전송한 후, 미리 정해진 시간 주기가 경과한 후의 제2 주기에서 제2 시각 동기 패킷을 전송하는 마스터 디바이스; 및 상기 마스터 디바이스로부터 제1 주기에서 제1 시각 동기 패킷을 전송받고, 제2 주기에서 제2 시각 동기 패킷을 전송받은 후, 상기 제1 시각 동기 패킷의 수신 시간 및 상기 제2 시각 동기 패킷의 수신 시각을 이용하여 상기 제1 주기에 대한 시간 주기를 산출하고, 상기 제1 주기에 대하여 산출된 시간 주기를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 마스터 디바이스에 대한 시각을 동기화하는 슬레이브 디바이스를 포함하는 것을 특징으로 한다.A time synchronization system according to another aspect of the present invention is a time synchronization system for synchronizing time between devices connected to a communication network, and after transmitting a first time synchronization packet in a first period, after a predetermined time period has elapsed. A master device for transmitting a second time synchronization packet in a second period; And receiving a first time synchronization packet from the master device in a first period and receiving a second time synchronization packet in a second period, and then receiving a reception time of the first time synchronization packet and receiving the second time synchronization packet. A slave device that calculates a time period for the first period by using a time, and synchronizes the time for the master device using the first time synchronization packet in consideration of the time period calculated for the first period. Characterized in that it comprises a.

본 발명의 일 실시예에 따른 시각 동기 정밀도를 향상시키는 방법, 장치, 시스템 및 컴퓨터 프로그램은, 통신 네트워크에 연결된 디바이스 간의 시각을 동기화함에 있어 시각 동기를 위하여 주기적으로 발신되는 시각 동기 패킷의 전송 지연에 따른 주기 변화를 고려하여 상기 통신 네트워크에서의 트래픽을 추정하고, 이를 반영하여 상기 디바이스 간의 시각을 동기화함으로써, 통신 네트워크에서의 트래픽이 증가하더라도 그에 따라 상기 디바이스 간에 시각 동기 오차가 발생하는 것을 억제할 수 있으며, 이에 따라 상기 디바이스 간의 시각 동기 정밀도를 높일 수 있다는 효과를 가진다.Method, apparatus, system and computer program for improving the time synchronization precision according to an embodiment of the present invention, in synchronizing the time between the devices connected to the communication network in the transmission delay of the time synchronization packet periodically sent for time synchronization By estimating the traffic in the communication network in consideration of the change in the period, and synchronizing the time between the devices by reflecting this, it is possible to suppress the occurrence of time synchronization error between the devices accordingly even if the traffic in the communication network increases. As a result, the time synchronization accuracy between the devices can be improved.

또한, 본 발명의 일 실시예에 따른 시각 동기 정밀도를 향상시키는 방법, 장치, 시스템 및 컴퓨터 프로그램은 추가적인 장치 등을 부가하지 않고도 구현이 가능하므로 추가적인 비용이 소요되지 않으며, 또한 추가적인 네트워크 트래픽(traffic)을 발생시키지 않으면서도 디바이스 간의 시각 동기 정밀도를 높일 수 있다.In addition, since the method, apparatus, system, and computer program for improving the time synchronization accuracy according to an embodiment of the present invention can be implemented without adding an additional device, no additional cost is required, and additional network traffic is also required. It is possible to increase the accuracy of time synchronization between devices without generating.

도 1은 정밀시각 동기(PTP, IEEE1588) 방식에 따른 시각 동기용 통신 패킷 교환 순서를 설명하는 예시도이다.
도 2는 본 발명의 일 실시예에 따른 시각 동기화 시스템의 구성도이다.
도 3은 본 발명의 일 실시예에 따른 시각 동기화 방법에서의 시각 동기용 패킷 교환 및 이를 이용한 시각 동기용 패킷 주기 산출을 설명하는 예시도이다.
도 4는 본 발명의 일 실시에에 따라 산출된 시각 동기용 패킷 주기를 이용하여 시각 동기의 정밀도를 개선하는 방법을 설명하기 위한 그래프이다.
도 5는 본 발명의 일 실시예에 따른 시각 동기화 방법의 순서도이다.
도 6은 본 발명의 일 실시예에 따른 시각 동기 장치의 구성도이다.
FIG. 1 is an exemplary diagram illustrating a procedure for exchanging time synchronization communication packets in accordance with the precision time synchronization (PTP, IEEE1588) method.
2 is a block diagram of a time synchronization system according to an embodiment of the present invention.
3 is an exemplary diagram illustrating a time synchronization packet exchange and a time synchronization packet period calculation using the time synchronization packet in the time synchronization method according to an embodiment of the present invention.
4 is a graph for explaining a method of improving the accuracy of time synchronization using the time synchronization packet period calculated according to one embodiment of the present invention.
5 is a flowchart of a time synchronization method according to an embodiment of the present invention.
6 is a block diagram of a time synchronization device according to an embodiment of the present invention.

본 발명에서 사용되는 기술적 용어는 단지 특정한 실시 예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아님을 유의해야 한다. 또한, 본 발명에서 사용되는 기술적 용어는 본 발명에서 특별히 다른 의미로 정의되지 않는 한, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 의미로 해석되어야 하며, 과도하게 포괄적인 의미로 해석되거나, 과도하게 축소된 의미로 해석되지 않아야 한다. 또한, 본 발명에서 사용되는 기술적인 용어가 본 발명의 사상을 정확하게 표현하지 못하는 잘못된 기술적 용어일 때에는, 당업자가 올바르게 이해할 수 있는 기술적 용어로 대체되어 이해되어야 할 것이다. 또한, 본 발명에서 사용되는 일반적인 용어는 사전에 정의되어 있는 바에 따라, 또는 전후 문맥상에 따라 해석되어야 하며, 과도하게 축소된 의미로 해석되지 않아야 한다.Technical terms used in the present invention are merely used to describe particular embodiments, it should be noted that it is not intended to limit the present invention. In addition, the technical terms used in the present invention should be interpreted as meanings generally understood by those skilled in the art unless the present invention is defined in any other meaning in the present invention, and is excessively comprehensive. It shall not be construed in the sense of or in the sense of being excessively reduced. In addition, when the technical terminology used in the present invention is an incorrect technical term that does not accurately express the spirit of the present invention, it should be understood as being replaced by a technical term that can be properly understood by those skilled in the art. In addition, the general terms used in the present invention should be interpreted as defined in the dictionary or according to the context before and after, and should not be interpreted in an excessively reduced sense.

이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 실시 예를 상세히 설명하되, 도면 부호에 관계없이 동일하거나 유사한 구성 요소는 동일한 참조 번호를 부여하고 이에 대한 중복되는 설명은 생략하기로 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings, and the same or similar components will be given the same reference numerals regardless of the reference numerals and redundant description thereof will be omitted.

또한, 본 발명을 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다. 또한, 첨부된 도면은 본 발명의 사상을 쉽게 이해할 수 있도록 하기 위한 것일 뿐, 첨부된 도면에 의해 본 발명의 사상이 제한되는 것으로 해석되어서는 아니 됨을 유의해야 한다.In addition, in describing the present invention, when it is determined that the detailed description of the related known technology may obscure the gist of the present invention, the detailed description thereof will be omitted. In addition, it is to be noted that the accompanying drawings are only for easily understanding the spirit of the present invention and should not be construed as limiting the spirit of the present invention by the accompanying drawings.

이하에서는, 본 발명에 따른 시각 동기 정밀도를 향상시키는 방법 및 장치의 예시적인 실시형태들을 첨부된 도면을 참조하여 상세히 설명한다.DETAILED DESCRIPTION Hereinafter, exemplary embodiments of a method and apparatus for improving time synchronization precision according to the present invention will be described in detail with reference to the accompanying drawings.

먼저, 본 발명에 대한 구체적인 설명에 앞서 통신 네트워크를 이용하여 디바이스들 간의 시각을 동기화하는 방법에 대하여 간략하게 설명을 하고, 이어서 본 발명의 구체적인 구성에 대하여 설명을 하도록 한다.First, prior to a detailed description of the present invention, a method for synchronizing time between devices using a communication network will be briefly described, and then a detailed configuration of the present invention will be described.

먼저, 도 1에서는 통신 네트워크를 사용하여 디바이스들 간의 시각을 동기화하는 방법 중 하나의 예로서, 정밀시각 동기(PTP) 방식에서의 시각 동기화를 위한 시각 동기용 통신 패킷의 처리 순서를 예시하고 있다.First, FIG. 1 illustrates an example of a method of synchronizing time between devices using a communication network, and illustrates a processing procedure of a time synchronization communication packet for time synchronization in a precision time synchronization (PTP) scheme.

도 1에서 볼 수 있는 바와 같이, 정밀시각 동기 (PTP, IEEE1588) 방식에 따른 시각 동기용 통신 패킷 교환 순서는 ①Sync, ②Follow_up, ③Delay_Req, ④ Delay_Resp 의 총 4단계로 구성된다.As can be seen in Figure 1, the time synchronization communication packet exchange sequence according to the precision time synchronization (PTP, IEEE1588) scheme is composed of a total of four steps of ①Sync, ②Follow_up, ③Delay_Req, ④ Delay_Resp.

슬레이브 디바이스에서는 상기와 같은 4단계의 패킷 교환으로 마스터 디바이스의 시간과 동기화하게 되며, 마스터 디바이스와 슬레이브 디바이스 내에는 각각 정밀한 타이머(PTP 방식에서는 일반적으로 수ns~ 수십ns 단위)가 포함된다. The slave device synchronizes with the time of the master device through the four-stage packet exchange as described above, and each of the master device and the slave device includes a precise timer (usually several ns to several tens of ns units in the PTP method).

먼저, 시각 동기 마스터 디바이스에서 통신 네트워크를 통하여 Sync 패킷을 슬레이브 디바이스에 전송한다. 이때, 마스터 디바이스에서는 Sync 패킷을 전송한 시간 (t1)을 내부의 정밀 타이머로 측정한 뒤, Follow_Up 패킷에 상기 Sync 패킷을 전송한 시간 정보(t1)를 포함하여 전송한다. 슬레이브 디바이스는 상기 Sync 패킷을 수신한 시간을 내부 정밀 타이머로 측정한다 (t2). 이어서, 슬레이브 디바이스는 상기 Follow_up 패킷을 수신하여 Sync 의 출발시점(t1)을 알 수 있게 된다. 다음으로, 상기 슬레이브 디바이스는 Delay_Req 패킷을 마스터 디바이스에 송신하며 동시에 Delay_Req 패킷 송신 시간(t3)을 기록한다. Delay_Req 패킷이 마스터 디바이스에 도착하면 내부 타이머를 이용하여 Delay_Req 패킷의 수신 시간(t4)을 측정하고 Delay_Resp 패킷에 그 정보(t4)를 담아 슬레이브 디바이스로 다시 전송한다. 이와 같은 4단계의 패킷 교환을 통하여 슬레이브 디바이스는 t1, t2, t3, t4 를 모두 알 수 있으며, 따라서 하기 수학식1을 사용하여 마스터 디바이스에 대한 슬레이브 디바이스에서의 시간 차이(offsetMS)를 산출할 수 있게 되며, 따라서 슬레이브 디바이스는 자신의 타이머를 보정하여 시각을 동기화할 수 있게 된다.First, the time synchronization master device transmits a Sync packet to a slave device through a communication network. At this time, the master device measures the time t 1 of transmitting the Sync packet with an internal precision timer, and then transmits the Follow_Up packet with time information t 1 of transmitting the Sync packet. The slave device measures the time of receiving the Sync packet with an internal precision timer (t 2 ). Subsequently, the slave device can know the start time t 1 of the sync by receiving the Follow_up packet. Next, the slave device transmits a Delay_Req packet to the master device and simultaneously records a Delay_Req packet transmission time t 3 . When the Delay_Req packet arrives at the master device, it measures the reception time (t 4 ) of the Delay_Req packet using an internal timer and transmits the information (t 4 ) in the Delay_Resp packet to the slave device again. Through this four-stage packet exchange, the slave device can know all of t 1 , t 2 , t 3 , and t 4. Therefore, the time difference (offset MS) of the slave device with respect to the master device using Equation 1 ), So that the slave device can synchronize its time by calibrating its timer.

Figure 112015112939780-pat00001
Figure 112015112939780-pat00001

그런데, 상기와 같이 마스터 디바이스와 슬레이브 디바이스 간의 시간차를 보정하는 경우, 이상적인 네트워크 환경에서는 수 마이크로 초(us) 이하의 정밀한 시각 동기를 구현할 수 있겠으나, 네트워크 상황이 좋지 않은 경우, 예를 들어 시각 동기용 패킷 교환 시점에서의 네트워크 트래픽(traffic)이 과도하여 상기 시각 동기용 패킷의 전송이 지연되는 등의 경우에는 상기 수학식 1에 의해 산출되는 시간차의 오차가 커지게 되며, 따라서 시각 동기의 정밀도가 낮아지는 문제가 발생할 수 있다. However, in the case of correcting the time difference between the master device and the slave device as described above, in the ideal network environment, precise time synchronization of several microseconds or less may be realized. However, when the network situation is not good, for example, time synchronization. When the network traffic at the time of packet exchange is excessive and the transmission of the time synchronization packet is delayed, the error of the time difference calculated by Equation 1 becomes large, so that the accuracy of time synchronization is increased. Lowering problems may occur.

이때, 만일 상기 통신 네트워크에서의 트래픽(traffic) 상태를 알 수 있다면 해당 시점에서는 시각 동기 패킷교환을 하지 않거나, 또는 이 패킷을 시각 동기에 이용하지 않을 수 있다. 그러나, 시각 동기를 위한 패킷 교환은 수초 이내의 주기로 반복적으로 이루어지고 있기 때문에 트래픽(traffic) 모니터링을 위해서는 매우 빠른 실시간 갱신(update)이 필요하고 이를 위하여 네트워크 트래픽(traffic)을 높이게 된다. At this time, if the traffic state in the communication network is known, the time synchronization packet exchange may not be performed at that time, or the packet may not be used for time synchronization. However, since the packet exchange for time synchronization is repeatedly performed within a few seconds, very fast real-time updates are required for traffic monitoring, thereby increasing network traffic.

상기와 같은 문제점을 해결하기 위하여 본 발명에서는 시각 동기 패킷 교환시의 네트워크 환경을 추정하여 만일 당시의 네트워크 환경이 좋지 않다고 판단될 경우에는 상기 수학식 1의 결과를 슬레이브 디바이스의 시간 보정에 적용하지 않거나, 또는 네트워크 환경에 따른 가중치를 반영하여 슬레이브 디바이스에서의 시간을 보정하는 방식을 사용할 수 있다.In order to solve the above problems, the present invention estimates the network environment during time synchronization packet exchange, and if it is determined that the network environment at that time is not good, the result of Equation 1 is not applied to the time correction of the slave device. , Or a method of correcting the time at the slave device by using the weight according to the network environment may be used.

보다 구체적으로, 도 2에서는 본 발명의 일 실시예에 따른 시각 동기화 시스템(100)의 구성도를 도시하고 있다. 도 2에서 볼 수 있는 바와 같이 본 발명의 일 실시예에 따른 시각 동기화 시스템(100)은 마스터 디바이스(110) 및 복수의 슬레이브 디바이스(120, 120a, 120n)를 포함하여 구성될 수 있으며, 상기 마스터 디바이스(110) 및 슬레이브 디바이스(120)들은 통신 네트워크(130)를 통해 연결될 수 있다.More specifically, FIG. 2 illustrates a configuration diagram of the time synchronization system 100 according to an embodiment of the present invention. As shown in FIG. 2, the time synchronization system 100 according to an exemplary embodiment of the present invention may include a master device 110 and a plurality of slave devices 120, 120a, and 120n. The device 110 and the slave device 120 may be connected via the communication network 130.

먼저, 상기 마스터 디바이스(110)는 미리 정해진 시간 주기 마다 시각 동기 패킷을 상기 슬레이브 디바이스(120)에게 전송하게 된다. 이어서 상기 마스터 디바이스(110)와 슬레이브 디바이스(120)는 앞서 살핀 바와 같이 상호 일련의 패킷들을 교환할 수 있다. 이에 따라, 상기 슬레이브 디바이스(120)는 상기 마스터 디바이스(110)에 대한 시간 차이를 산출할 수 있게 된다. 따라서, 상기 슬레이브 디바이스(120)는 상기 산출된 시간 차이(offset)를 반영하여 상기 마스터 디바이스(110)에 동기화를 수행하여 대한 시각 차이를 보정할 수 있게 된다.First, the master device 110 transmits a time synchronization packet to the slave device 120 at a predetermined time period. Subsequently, the master device 110 and the slave device 120 may exchange a series of packets with each other as described above. Accordingly, the slave device 120 may calculate a time difference with respect to the master device 110. Accordingly, the slave device 120 may correct the time difference by synchronizing with the master device 110 by reflecting the calculated time offset.

그런데, 상기 마스터 디바이스(110)와 슬레이브 디바이스(120) 간에 전송되는 시각 동기 패킷 등은 상기 통신 네트워크(130)에서의 트래픽(traffic) 등 상태에 따라, 전송이 지연되는 등 전송 시간에 편차가 발생할 수 있으며, 이러한 경우 상기 슬레이브 디바이스(120)에서는 상기 마스터 디바이스(110)에 대한 정확한 시간 차이(offset)을 산출할 수 없게 되며, 나아가 상기 마스터 디바이스(110)에 대하여 정확하게 시각 차이를 보정할 수 없게 된다.However, the time synchronization packet transmitted between the master device 110 and the slave device 120 may cause a deviation in transmission time, such as delay in transmission, depending on a traffic state or the like in the communication network 130. In this case, the slave device 120 cannot calculate an accurate time offset with respect to the master device 110, and furthermore, cannot correct the time difference with respect to the master device 110 accurately. do.

이에 대하여, 본 발명에서는 마스터 디바이스(110)에서 주기적으로 발신되는 시각 동기 패킷에 대한 주기를 슬레이브 디바이스(120)에서 측정하여 상기 통신 네트워크(130)에서의 트래픽을 추정하고, 이를 반영하여 상기 슬레이브 디바이스(120)에서의 시각을 동기화함으로써, 상기 마스터 디바이스(110)에 대한 슬레이브 디바이스(120)에서의 시각 동기 정밀도를 향상시킬 수 있게 된다.On the other hand, in the present invention, the period for the time synchronization packet periodically sent from the master device 110 is measured in the slave device 120 to estimate the traffic in the communication network 130, and reflects the slave device By synchronizing the time at 120, it is possible to improve the time synchronization accuracy at the slave device 120 with respect to the master device 110.

본 발명의 일 실시예로서, 도 3에서는 정밀시각 동기(PTP) 방식에서의 시각 동기화를 위한 시각 동기용 패킷 교환 및 이를 이용한 시각 동기용 패킷 주기 산출을 설명하는 도면을 도시하고 있다. 도 3에서는 정밀시각 동기(PTP) 방식에서의 실시예를 도시하고 있으나, 본 발명이 반드시 이에 한정되는 것은 아니며, 이외에도 통신 네트워크(130)를 이용하여 시각 동기용 통신 패킷을 전송하는 경우라면 본 발명이 적용될 수 있다.As an embodiment of the present invention, FIG. 3 is a diagram illustrating a time synchronization packet exchange for time synchronization in a precise time synchronization (PTP) scheme and a calculation of a time synchronization packet cycle using the same. Although FIG. 3 illustrates an embodiment in the PTP scheme, the present invention is not necessarily limited thereto. In addition, the present invention is not limited thereto. This can be applied.

정밀시각 동기(PTP) 방식에서는 일반적으로 정밀한 시각 동기를 위하여 도 3에서 볼 수 있는 바와 같이 마스터 디바이스(110)와 슬레이브 디바이스(120)는 주기적으로 시각 동기 패킷을 교환할 수 있으며, 예를 들어 도 3과 같이 k번째 주기에 Sync (k), Follow_up(k), Delay_Req(k), Delay_Res (k)와 같이 총 4개의 패킷을 교환할 수 있다. In the precise time synchronization (PTP) scheme, as shown in FIG. 3, the master device 110 and the slave device 120 may periodically exchange time synchronization packets, for example, for precise time synchronization. As shown in FIG. 3, four packets can be exchanged in the kth period, such as Sync (k), Follow_up (k), Delay_Req (k), and Delay_Res (k).

이때, 마스터 디바이스(110)는 내장하는 정밀 타이머를 이용하여 각 주기의 간격( Tk = tk+1,1 - tk,1 )을 정밀하게 유지하면서 Sync(k) 패킷을 전송하게 된다. 또한, 슬레이브 디바이스(120)는 내장하는 정밀 타이머를 이용하여 각 주기의 간격을 계산하여 (T' = tk+1,2 - tk,2 ) 상기 Sync(k) 패킷 전송 당시의 통신 네트워크(130)에서의 트래픽 등 전송 환경을 추정하게 된다. At this time, the master device 110 transmits a Sync (k) packet while precisely maintaining the interval (T k = t k + 1,1 -t k, 1 ) of each period using a built-in precision timer. In addition, the slave device 120 calculates the interval of each period using a built-in precision timer (T '= t k + 1,2 -t k, 2 ) and the communication network at the time of transmission of the Sync (k) packet ( The transmission environment such as traffic at 130 is estimated.

이에 따라, 슬레이브 디바이스(120)에서 계산된 주기의 차 (ΔT'k = T'k - T'k-1 )를 도 4와 같이 나타낼 수 있으며 만일 이 값 ΔT'k이 미리 설정된 소정의 기준치보다 크다면, 상기 슬레이브 디바이스(120)는 해당 패킷 { Sync (k), Follow_up(k), Delay_Req(k), Delay_Res (k) }을 마스터 디바이스(110)에 대한 시간 보정에 이용하지 않고 다음번 패킷을 기다릴 수 있다.Accordingly, the difference (ΔT ' k = T' k - T ' k-1 ) of the period calculated by the slave device 120 may be represented as shown in FIG. 4, and if the value ΔT' k is larger than a predetermined reference value, If large, the slave device 120 does not use the corresponding packet {Sync (k), Follow_up (k), Delay_Req (k), Delay_Res (k)} for the time correction for the master device 110 and then uses the next packet. I can wait.

본 발명에서는 상기와 같이 추가적인 트래픽(traffic) 모니터링이 필요 없이 시각 동기 패킷 교환 당시의 네트워크 환경을 추정할 수 있게 된다. 본 발명에서는 시각 동기 패킷의 주기가 T 라고 가정하면(일반적으로 수 초 이내) 마스터 디바이스(110)는 시각 동기용 정밀 타이머를 이용하여 이 주기를 정확히 제어하여 패킷을 생성한다. 이어서 슬레이브 디바이스(120)는 해당 시각 동기 패킷의 수신시 시각 동기용 정밀 타이머를 이용하여 주기 T 를 관측하여 시각 동기 패킷 발생당시의 네트워크 환경을 추정하게 된다. 반면, 종래 통상적인 정밀시각 동기(PTP) 방식에서는 주기T 정보를 시각 동기에 사용하지 않고, 이에 따라 엄격히 주기T를 제어하지 않으며 수신시에도 주기T 정보를 복원하지 않는다.In the present invention, it is possible to estimate the network environment at the time of time synchronization packet exchange without the need for additional traffic monitoring as described above. In the present invention, assuming that the period of the time synchronization packet is T (generally within a few seconds), the master device 110 generates the packet by precisely controlling this period using a time synchronization precision timer. Subsequently, the slave device 120 estimates the network environment at the time of generating the time synchronization packet by observing the period T by using the time synchronization precision timer when the time synchronization packet is received. On the other hand, the conventional precision time synchronization (PTP) scheme does not use the period T information for time synchronization, and thus does not strictly control the period T and does not restore the period T information upon reception.

나아가, 상기 슬레이브 디바이스(120)에서 계산된 주기의 차 ΔT'k 는 단순히 해당 주기(k)의 패킷을 시각 보정시 제외하는 방식으로 사용할 수도 있으나, 이외에 좀더 다양한 방식으로 활용할 수도 있다. 예를 들어 ΔT'k 를 이용하여 슬레이브 디바이스(120)에 내장되는 정밀 타이머를 보정하는 경우, 상기 ΔT'k 의 분산 등과 같은 소정의 통계 값을 산출하여 이용할 수도 있다. 또는, 상기 슬레이브 디바이스(120)에 내장되는 정밀 타이머를 보정함에 있어, 칼만필터와 같은 재귀 필터(recursive filter)를 사용하여 ΔT'k의 정보를 상기 재귀 필터의 k번째 가중치로 사용할 수 있다. 나아가, 이외에도 본 발명의 실시예로서 슬레이브 디바이스(120)에서 계산된 주기(ΔT'k)를 마스터 디바이스(110)에 대한 시각을 보정하여 동기화하는 여러 방식들을 사용하여 다양하게 구현될 수 있다.Further, the difference ΔT ′ k of the period calculated by the slave device 120 may be used simply by excluding a packet of the corresponding period k during time correction, but may be used in various ways. For example, may be used in ΔT 'by using the k if compensation precision timer incorporated in the slave device 120, the ΔT' calculates a predetermined statistic, such as the variance of k. Or, in the following correction precision timer which is incorporated in the slave device 120, by using a recursive filter (recursive filter), such as a Kalman filter may use the information in the ΔT 'k to the k-th weight of the recursive filter. In addition, as an embodiment of the present invention, the period ΔT ′ k calculated by the slave device 120 may be variously implemented using various methods of synchronizing by correcting the time with respect to the master device 110.

또한, 도 5에서는 본 발명의 일 실시예에 따른 시각 동기화 방법의 순서도를 예시하고 있다. 도 5에서 볼 수 있는 바와 같이, 본 발명의 일 실시예에 따른 시각 동기화 방법은, 통신 네트워크에 연결된 디바이스 간의 시각을 동기화하는 방법으로서, 슬레이브 디바이스(1200)가 마스터 디바이스(110)로부터 제1 주기에서의 제1 시각 동기 패킷을 전송받는 제1 패킷 전송 단계(S1100), 상기 슬레이브 디바이스(120)가 상기 마스터 디바이스(110)로부터 미리 정해진 시간 주기가 경과한 후 발신되는 제2 주기에서의 제2 시각 동기 패킷을 전송받는 제2 패킷 전송 단계(S1200), 상기 제1 시각 동기 패킷의 수신 시간 및 상기 제2 시각 동기 패킷의 수신 시각을 이용하여 상기 제1 주기에 대한 시간 주기를 산출하는 제1 주기 산출 단계(S1300) 및 상기 제1 주기에 대하여 산출된 시간 주기를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스(120)의 시각을 동기화하는 시각 동기화 단계(S1400)를 포함할 수 있다.5 illustrates a flowchart of a time synchronization method according to an embodiment of the present invention. As shown in FIG. 5, a time synchronization method according to an embodiment of the present invention is a method of synchronizing time between devices connected to a communication network, wherein a slave device 1200 receives a first period from a master device 110. A first packet transmission step (S1100) of receiving a first time synchronization packet at, a second in a second period in which the slave device 120 is transmitted after a predetermined time period has elapsed from the master device 110 A second packet transmission step (S1200) of receiving a time synchronization packet, a first period of calculating a time period for the first period by using a reception time of the first time synchronization packet and a reception time of the second time synchronization packet. In consideration of the period calculating step (S1300) and the time period calculated for the first period, the time of the slave device 120 using the first time synchronization packet is determined. A may include a time synchronization step (S1400) for synchronization.

아래에서는 도 3과 도5를 참조하여 본 발명의 일 실시예에 따른 시각 동기화 방법의 각 단계를 보다 자세하게 살펴본다. Hereinafter, each step of the time synchronization method according to an embodiment of the present invention will be described in detail with reference to FIGS. 3 and 5.

먼저, S1100 단계에서는 슬레이브 디바이스(1200)가 마스터 디바이스(110)로부터 제1 주기에서의 제1 시각 동기 패킷을 전송받게 된다. 도 3을 참조하여 살펴보면, 마스터 디바이스(110)는 미리 정해진 소정의 시점(tk,1)에 Sync(k) 패킷을 통신 네트워크(130)를 통하여 슬레이브 디바이스(120)로 전송하게 된다. 이때, 상기 슬레이브 디바이스(120)는 상기 Sync(k) 패킷을 수신한 시점(tk,2)을 기록한다. 이어서, 상기 슬레이브 디바이스(120)는 상기 마스터 디바이스(110)와의 시각 차이(offset)을 산출하기 위하여 일련의 패킷을 추가적으로 교환할 수도 있다(Follow_up(k), Delay_Req(k), Delay_Resp(k) 패킷 등).First, in operation S1100, the slave device 1200 receives a first time synchronization packet in a first period from the master device 110. Referring to FIG. 3, the master device 110 transmits a Sync (k) packet to the slave device 120 through the communication network 130 at a predetermined time t k, 1 . At this time, the slave device 120 records the time (t k, 2 ) when receiving the Sync (k) packet. Subsequently, the slave device 120 may further exchange a series of packets to calculate a time offset with the master device 110 (Follow_up (k), Delay_Req (k), Delay_Resp (k) packets. Etc).

이어서, S1200 단계에서는 상기 슬레이브 디바이스(120)가 상기 마스터 디바이스(110)로부터 미리 정해진 시간 주기가 경과한 후 발신되는 제2 주기에서의 제2 시각 동기 패킷을 전송받게 된다. 도 3을 참조하면, 마스터 디바이스(110)는 미리 정해진 시간 주기(Tk)가 경과한 후 Sync(k+1) 패킷을 통신 네트워크(130)를 통하여 슬레이브 디바이스(120)로 전송하게 된다. 이때, 상기 슬레이브 디바이스(120)는 또한 상기 Sync(k+1) 패킷을 수신한 시점(tk+1,2)을 기록한다. 또한, 상기 슬레이브 디바이스(120)는 상기 마스터 디바이스(110)와의 시각 차이(offset)을 산출하기 위하여 일련의 패킷을 추가적으로 교환할 수도 있다(Follow_up(k+1), Delay_Req(k+1), Delay_Resp(k+1) 패킷 등).Subsequently, in operation S1200, the slave device 120 receives a second time synchronization packet in a second period transmitted after a predetermined time period elapses from the master device 110. Referring to FIG. 3, the master device 110 transmits a Sync (k + 1) packet to the slave device 120 through the communication network 130 after a predetermined time period T k elapses. At this time, the slave device 120 also records a time point (t k + 1,2 ) when the Sync (k + 1) packet is received. In addition, the slave device 120 may further exchange a series of packets to calculate a time offset with the master device 110 (Follow_up (k + 1), Delay_Req (k + 1), Delay_Resp). (k + 1) packets, etc.).

다음으로, S1300 단계에서는 상기 제1 시각 동기 패킷의 수신 시간 및 상기 제2 시각 동기 패킷의 수신 시각을 이용하여 상기 제1 주기에 대한 시간 주기를 산출하게 된다. 도 3의 경우에는 앞서 측정된 제1 시각 동기 패킷(Sync(k))의 수신 시간(tk,2) 및 상기 제2 시각 동기 패킷(Sync(k+1))의 수신 시각(tk+1,2)을 이용하여 상기 제1 주기에 대한 시간 주기(T'k = tk+1,2 - tk,2)를 산출하게 된다.Next, in step S1300, the time period for the first period is calculated using the reception time of the first time synchronization packet and the reception time of the second time synchronization packet. In the case of FIG. 3, the reception time t k, 2 of the first time synchronization packet Sync (k) and the reception time t k + of the second time synchronization packet Sync (k + 1) measured above. 1,2 ) to calculate the time period T ' k = t k + 1,2 -t k, 2 for the first period.

마지막으로, S1400 단계에서는 상기 제1 주기에 대하여 산출된 시간 주기를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스(120)의 시각을 동기화하게 된다.Finally, in step S1400, the time of the slave device 120 is synchronized using the first time synchronization packet in consideration of the time period calculated for the first period.

나아가, 상기 S1400 단계는 상기 제1 주기에 대하여 산출된 시간 주기를 고려하여 상기 제1 주기에서의 통신 네트워크(130)의 트래픽 등 통신 상태를 추정하는 단계 및 상기 제1 주기에서의 통신 네트워크(130) 상태를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스(120)의 시각을 동기화하는 단계를 포함하여 구성될 수도 있다.Further, the step S1400 may include estimating a communication state such as traffic of the communication network 130 in the first period in consideration of the time period calculated for the first period, and the communication network 130 in the first period. Taking into consideration the state), the method may include synchronizing the time of the slave device 120 using the first time synchronization packet.

보다 구체적으로, 상기 S1400 단계에서는 상기 통신 네트워크(130) 상태가 소정의 기준치에 미치지 못하는 경우, 상기 제1 시각 동기 패킷을 상기 슬레이브 디바이스(120)에 대한 시각 동기화를 위하여 사용하지 않거나, 상기 제1 시각 동기 패킷에 상기 통신 네트워크(130) 상태에 따른 가중치를 주어 상기 슬레이브 디바이스(120)에 대한 시각 동기화에 사용할 수도 있다.More specifically, in step S1400, when the communication network 130 state does not reach a predetermined reference value, the first time synchronization packet is not used for time synchronization with respect to the slave device 120, or the first time synchronization packet 130 is not used. A time synchronization packet may be weighted according to the state of the communication network 130 to be used for time synchronization of the slave device 120.

나아가, 본 발명의 일 실시예에 따른 시각 동기화 방법은, 상기 슬레이브 디바이스(120)가 상기 마스터 디바이스(110)로부터 미리 정해진 시간 주기가 경과한 후 발신되는 제3 주기에서의 제3 시각 동기 패킷을 전송받는 제3 패킷 전송 단계, 상기 제2 시각 동기 패킷의 수신 시간 및 상기 제3 시각 동기 패킷의 수신 시각을 이용하여 상기 제2 주기에 대한 시간 주기를 산출하는 제2 주기 산출 단계 및 상기 제1 주기에 대하여 산출된 시간 주기 및 상기 제2 주기에 대하여 산출된 시간 주기를 비교하여 상기 제1 주기에서의 통신 네트워크(130) 상태를 추정하는 단계를 더 포함할 수도 있다.Furthermore, in the time synchronization method according to an embodiment of the present invention, the slave device 120 receives a third time synchronization packet in a third period transmitted after a predetermined time period passes from the master device 110. A second period calculating step of calculating a time period for the second period by using a third packet transmission step of receiving, a reception time of the second time synchronization packet, and a reception time of the third time synchronization packet; The method may further include estimating the state of the communication network 130 in the first period by comparing the time period calculated for the period and the time period calculated for the second period.

즉, 상기 제1 주기(k)에서의 시각 동기 패킷을 이용하여 제1 주기(k)에서의 시간 주기를 산출하고, 나아가 이를 제2 주기(즉, k+1 등 다른 주기)에서의 시각 동기 패킷을 이용하여 산출된 제2 주기에서의 시간 주기와 비교하여, 상기 제1 주기에서의 통신 네트워크(130)의 트래픽 등 상태를 추정할 수 있으며, 나아가 이를 이용하여 상기 제1 주기에서의 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스의 시각을 동기화할 것인지 여부를 결정할 수 있게 된다.That is, the time period in the first period k is calculated using the time synchronization packet in the first period k, and further, this is the time synchronization in the second period (ie, another period such as k + 1). Compared to the time period in the second period calculated using the packet, it is possible to estimate the state of traffic and the like of the communication network 130 in the first period, further using the time synchronization in the first period It is possible to determine whether to synchronize the time of the slave device using a packet.

한편, 상술한 본 발명의 실시예들은 컴퓨터에서 실행될 수 있는 프로그램으로 작성가능하고, 컴퓨터로 읽을 수 있는 기록매체를 이용하여 상기 프로그램을 동작시키는 컴퓨터에서 구현될 수 있다.Meanwhile, the above-described embodiments of the present invention can be written as a program that can be executed in a computer, and can be implemented in a computer that operates the program using a computer-readable recording medium.

상기 프로그램은 컴파일러에 의해 만들어지는 기계어 코드로 구현된 프로그램뿐만 아니라, 인터프리터 등을 사용해서 컴퓨터에서 실행될 수 있는 고급 언어 코드로 구현된 프로그램일 수도 있다. The program may be a program implemented in a high-level language code that may be executed in a computer using an interpreter, as well as a program implemented in machine code generated by a compiler.

또한, 상기 컴퓨터로 읽을 수 있는 기록매체는 마그네틱 저장매체(예를 들면, 롬, 플로피 디스크, 하드디스크 등), 광학적 판독 매체(예를 들면, 시디롬, 디브이디 등)와 같은 일체의 저장매체를 포함한다. In addition, the computer-readable recording medium may include any storage medium such as a magnetic storage medium (for example, a ROM, a floppy disk, a hard disk, etc.), an optical reading medium (for example, a CD-ROM, a DVD, etc.). do.

또한, 상기 컴퓨터로서는 퍼스널 컴퓨터(PC)나 노트북 컴퓨터 등에 한정되지 아니하며, 서버, 스마트폰, 태블릿 PC, PDA, 휴대전화 등 중앙처리장치(CPU)를 구비하여 컴퓨터 프로그램을 실행할 수 있는 일체의 정보처리 장치를 포함한다.In addition, the computer is not limited to a personal computer (PC) or a notebook computer, but is provided with a central processing unit (CPU) such as a server, a smart phone, a tablet PC, a PDA, a mobile phone, and any information processing capable of executing a computer program. Device.

또한, 도 6에서는 본 발명의 일 실시예에 따른 시각 동기 슬레이브 디바이스(120) 장치의 구성도를 도시하고 있다. 도 6에서 볼 수 있는 바와 같이, 본 발명의 일 실시예에 따른 시각 동기 슬레이브 디바이스(120) 장치는, 통신 네트워크(130)에 연결된 디바이스 간의 시각을 동기화하는 슬레이브 디바이스(120) 장치로서, 제1 패킷 수신부(122), 제2 패킷 수신부(124), 제1 주기 산출부(126) 및 시각 동기화부(128)를 포함하여 구성될 수 있다.In addition, FIG. 6 illustrates a configuration diagram of a time-synchronous slave device 120 apparatus according to an embodiment of the present invention. As can be seen in FIG. 6, the time-synchronizing slave device 120 apparatus according to an embodiment of the present invention is a slave device 120 apparatus that synchronizes time between devices connected to the communication network 130. The packet receiver 122, the second packet receiver 124, the first period calculator 126, and the time synchronizer 128 may be configured.

아래에서는 도 3과 도 6을 참조하여 본 발명의 일 실시예에 따른 시각 동기 슬레이브 디바이스(120) 장치를 각 구성 요소 별로 자세하게 살핀다.Hereinafter, the apparatus of the time-synchronizing slave device 120 according to an embodiment of the present invention will be described in detail with reference to FIGS. 3 and 6.

먼저, 제1 패킷 수신부(122)에서는 마스터 디바이스(110)로부터 제1 주기(k)에서의 제1 시각 동기 패킷을 전송받게 된다. First, the first packet receiver 122 receives a first time synchronization packet in a first period k from the master device 110.

도 3을 참조하여 살펴보면, 마스터 디바이스(110)는 미리 정해진 소정의 시점(tk,1)에 Sync(k) 패킷을 통신 네트워크(130)를 통하여 슬레이브 디바이스(120)로 전송하게 된다. 이때, 상기 제1 패킷 수신부(122)는 상기 Sync(k) 패킷을 수신하고, 이를 수신한 시점(tk,2)을 기록한다. 이어서, 상기 슬레이브 디바이스(120)는 상기 마스터 디바이스(110)와의 시각 차이(offset)을 산출하기 위하여 일련의 패킷을 추가적으로 교환할 수도 있다(Follow_up(k), Delay_Req(k), Delay_Resp(k) 패킷 등).Referring to FIG. 3, the master device 110 transmits a Sync (k) packet to the slave device 120 through the communication network 130 at a predetermined time t k, 1 . At this time, the first packet receiver 122 receives the Sync (k) packet and records the time point (t k, 2 ) at which it was received. Subsequently, the slave device 120 may further exchange a series of packets to calculate a time offset with the master device 110 (Follow_up (k), Delay_Req (k), Delay_Resp (k) packets. Etc).

다음으로, 제2 패킷 수신부(124)에서는 상기 마스터 디바이스(110)로부터 미리 정해진 시간 주기가 경과한 후 발신되는 제2 주기에서의 제2 시각 동기 패킷을 전송받게 된다. 도 3을 참조하면, 마스터 디바이스(110)는 미리 정해진 시간 주기(Tk)가 경과한 후 Sync(k+1) 패킷을 통신 네트워크(130)를 통하여 슬레이브 디바이스(120)로 전송하게 된다. 이에 따라, 상기 제2 패킷 수신부(124)는 상기 Sync(k+1) 패킷을 수신하고, 이를 수신한 시점(tk+1,2)을 기록한다. 또한, 상기 슬레이브 디바이스(120)는 상기 마스터 디바이스(110)와의 시각 차이(offset)을 산출하기 위하여 일련의 패킷을 추가적으로 교환할 수도 있다(Follow_up(k+1), Delay_Req(k+1), Delay_Resp(k+1) 패킷 등).Next, the second packet receiving unit 124 receives the second time synchronization packet in the second period transmitted after a predetermined time period has elapsed from the master device 110. Referring to FIG. 3, the master device 110 transmits a Sync (k + 1) packet to the slave device 120 through the communication network 130 after a predetermined time period T k elapses. Accordingly, the second packet receiver 124 receives the Sync (k + 1) packet and records the time point (t k + 1,2 ) at which it was received. In addition, the slave device 120 may further exchange a series of packets to calculate a time offset with the master device 110 (Follow_up (k + 1), Delay_Req (k + 1), Delay_Resp). (k + 1) packets, etc.).

도 6에서는 상기 제1 패킷 수신부(122)와 상기 제2 패킷 수신부(124)를 별개의 구성 요소로 도시하였으나, 이는 기능적 구분에 따른 하나의 실시예에 불과하며, 제1 패킷 수신부(122)와 상기 제2 패킷 수신부(124)가 하나의 통신 모듈을 공통으로 사용하도록 구현되거나, 나아가 하나의 모듈로서 구현하는 것도 가능하다.In FIG. 6, the first packet receiver 122 and the second packet receiver 124 are illustrated as separate components. However, this is only an exemplary embodiment according to functional division, and the first packet receiver 122 and the first packet receiver 122 are illustrated in FIG. The second packet receiver 124 may be implemented to use one communication module in common, or may be implemented as one module.

다음으로, 제1 주기 산출부(126)에서는 상기 제1 시각 동기 패킷의 수신 시간 및 상기 제2 시각 동기 패킷의 수신 시각을 이용하여 상기 제1 주기에 대한 시간 주기를 산출하게 된다. 도 3의 경우에는 앞서 측정된 제1 시각 동기 패킷(Sync(k))의 수신 시간(tk,2) 및 상기 제2 시각 동기 패킷(Sync(k+1))의 수신 시각(tk+1,2)을 이용하여 상기 제1 주기에 대한 시간 주기(T? = tk+1,2 - tk,2)를 산출하게 된다.Next, the first period calculator 126 calculates a time period for the first period using the reception time of the first time synchronization packet and the reception time of the second time synchronization packet. In the case of FIG. 3, the reception time t k, 2 of the first time synchronization packet Sync (k) and the reception time t k + of the second time synchronization packet Sync (k + 1) measured above. 1,2 ) to calculate a time period T? = T k + 1,2 -t k, 2 for the first period.

마지막으로, 시각 동기화부(128)에서는 상기 제1 주기에 대하여 산출된 시간 주기를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스(120)의 시각을 동기화하게 된다.Finally, the time synchronizer 128 synchronizes the time of the slave device 120 using the first time synchronization packet in consideration of the time period calculated for the first period.

나아가, 상기 시각 동기화부(128)는 상기 제1 주기에 대하여 산출된 시간 주기를 고려하여 상기 제1 주기에서의 통신 네트워크(130)의 트래픽 등 통신 상태를 추정하는 통신 네트워크 상태 추정부(미도시) 및 상기 제1 주기에서의 통신 네트워크(130) 상태를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스(120)의 시각을 동기화하는 시각 동기부(미도시)를 포함하여 구성될 수도 있다.Further, the time synchronizer 128 estimates a communication state such as traffic of the communication network 130 in the first period in consideration of the time period calculated for the first period (not shown). And a time synchronizer (not shown) for synchronizing the time of the slave device 120 using the first time synchronization packet in consideration of the state of the communication network 130 in the first period. It may be.

보다 구체적으로, 상기 시각 동기화부(128)에서는 상기 통신 네트워크(130) 상태가 소정의 기준치에 미치지 못하는 경우, 상기 제1 시각 동기 패킷을 상기 슬레이브 디바이스(120)에 대한 시각 동기화를 위하여 사용하지 않거나, 상기 제1 시각 동기 패킷에 상기 통신 네트워크(130) 상태에 따른 가중치를 주어 상기 슬레이브 디바이스(120)에 대한 시각 동기화에 사용할 수도 있다.More specifically, the time synchronization unit 128 does not use the first time synchronization packet for time synchronization with respect to the slave device 120 when the state of the communication network 130 does not reach a predetermined reference value. In addition, the first time synchronization packet may be weighted according to the communication network 130 state to be used for time synchronization with respect to the slave device 120.

나아가, 본 발명의 일 실시예에 따른 시각 동기 슬레이브 디바이스(120) 장치는, 상기 마스터 디바이스(110)로부터 미리 정해진 시간 주기가 경과한 후 발신되는 제3 주기에서의 제3 시각 동기 패킷을 전송받는 제3 패킷 수신부(미도시), 상기 제2 시각 동기 패킷의 수신 시간 및 상기 제3 시각 동기 패킷의 수신 시각을 이용하여 상기 제2 주기에 대한 시간 주기를 산출하는 제2 주기 산출부(미도시) 및 상기 제1 주기에 대하여 산출된 시간 주기 및 상기 제2 주기에 대하여 산출된 시간 주기를 비교하여 상기 제1 주기에서의 통신 네트워크(130) 상태를 추정하는 통신 네트워크 상태 추정부(미도시)를 더 포함할 수도 있다.Furthermore, the apparatus of time synchronization slave device 120 according to an embodiment of the present invention receives a third time synchronization packet in a third period transmitted after a predetermined time period elapses from the master device 110. A third packet receiver (not shown), a second period calculator (not shown) that calculates a time period for the second period by using a reception time of the second time synchronization packet and a reception time of the third time synchronization packet. And a communication network state estimator (not shown) for estimating the state of the communication network 130 in the first period by comparing the time period calculated for the first period and the time period calculated for the second period. It may further include.

즉, 상기 제1 주기(k)에서의 시각 동기 패킷을 이용하여 제1 주기(k)에서의 시간 주기를 산출하고, 나아가 이를 제2 주기(즉, k+1 등 다른 주기)에서의 시각 동기 패킷을 이용하여 산출된 제2 주기에서의 시간 주기와 비교하여, 상기 제1 주기에서의 통신 네트워크(130)의 트래픽 등 상태를 추정할 수 있으며, 나아가 이를 이용하여 상기 제1 주기에서의 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스의 시각을 동기화할 것인지 여부를 결정할 수 있게 된다.That is, the time period in the first period k is calculated using the time synchronization packet in the first period k, and further, this is the time synchronization in the second period (ie, another period such as k + 1). Compared to the time period in the second period calculated using the packet, it is possible to estimate the state of traffic and the like of the communication network 130 in the first period, further using the time synchronization in the first period It is possible to determine whether to synchronize the time of the slave device using a packet.

이상의 설명은 본 발명의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서 본 발명에 기재된 실시예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의해서 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.The above description is merely illustrative of the technical idea of the present invention, and those skilled in the art to which the present invention pertains may various modifications and changes without departing from the essential characteristics of the present invention. Therefore, the embodiments described in the present invention are not intended to limit the technical spirit of the present invention but to describe the present invention, and are not limited to these embodiments. The protection scope of the present invention should be interpreted by the following claims, and all technical ideas within the equivalent scope should be interpreted as being included in the scope of the present invention.

100: 시각 동기화 시스템
110 : 마스터 디바이스
120, 120a, 120n : 슬레이브 디바이스
122 : 제1 패킷 수신부
124 : 제2 패킷 수신부
126 : 제1 주기 산출부
128 : 시각 동기화부
130 : 통신 네트워크
100: visual synchronization system
110: master device
120, 120a, 120n: slave device
122: first packet receiver
124: second packet receiving unit
126: first cycle calculator
128: time synchronization unit
130: communication network

Claims (10)

통신 네트워크에 연결된 디바이스 간의 시각을 동기화하는 방법에 있어서,
슬레이브 디바이스가 마스터 디바이스로부터 미리 정해진 시간 주기(T) 마다 발신되는 시각 동기 패킷 중 제1 주기에서의 제1 시각 동기 패킷을 전송받는 제1 패킷 전송 단계;
상기 슬레이브 디바이스가 상기 마스터 디바이스로부터 상기 미리 정해진 시간 주기(T)가 경과한 후 발신되는 제2 주기에서의 제2 시각 동기 패킷을 전송받는 제2 패킷 전송 단계;
상기 제1 시각 동기 패킷의 수신 시간 및 상기 제2 시각 동기 패킷의 수신 시각의 차이를 이용하여 상기 제1 주기에 대한 시간 주기 계산치(T')를 산출하는 제1 주기 산출 단계; 및
상기 제1 주기에 대하여 산출된 시간 주기 계산치(T')로부터 추정되는 상기 제1 주기에 대한 통신 네트워크 상태를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스의 시각을 동기화하는 시각 동기화 단계를 포함하는 것을 특징으로 하는 시각 동기화 방법.
A method of synchronizing time between devices connected to a communication network,
A first packet transmission step of receiving, by the slave device, a first time synchronization packet in a first period of time synchronization packets transmitted at a predetermined time period T from the master device;
A second packet transmission step of receiving, by the slave device, a second time synchronization packet in a second period transmitted after the predetermined time period (T) has passed from the master device;
A first period calculating step of calculating a time period calculation value T 'for the first period by using a difference between a reception time of the first time synchronization packet and a reception time of the second time synchronization packet; And
Time synchronization for synchronizing the time of the slave device using the first time synchronization packet in consideration of the communication network state for the first period estimated from the time period calculation value T 'calculated for the first period. And a step comprising the steps of time synchronization.
삭제delete 제1항에 있어서,
상기 시각 동기화 단계에서는,
상기 통신 네트워크 상태가 소정의 기준치에 미치지 못하는 경우,
상기 제1 시각 동기 패킷을 상기 슬레이브 디바이스에 대한 시각 동기화를 위하여 사용하지 않거나,
상기 제1 시각 동기 패킷에 상기 통신 네트워크 상태에 따른 가중치를 주어 상기 슬레이브 디바이스에 대한 시각 동기화에 사용하는 것을 특징으로 하는 시각 동기화 방법.
The method of claim 1,
In the time synchronization step,
When the communication network state does not reach a predetermined reference value,
Do not use the first time synchronization packet for time synchronization for the slave device, or
And assigning a weight to the first time synchronization packet according to the communication network state to use the time synchronization for the slave device.
제1항에 있어서,
상기 슬레이브 디바이스가 상기 마스터 디바이스로부터 상기 미리 정해진 시간 주기(T)가 경과한 후 발신되는 제3 주기에서의 제3 시각 동기 패킷을 전송받는 제3 패킷 전송 단계;
상기 제2 시각 동기 패킷의 수신 시간 및 상기 제3 시각 동기 패킷의 수신 시각의 차이를 이용하여 상기 제2 주기에 대한 시간 주기 계산치(T')를 산출하는 제2 주기 산출 단계; 및
상기 제1 주기에 대하여 산출된 시간 주기 계산치(T') 및 상기 제2 주기에 대하여 산출된 시간 주기 계산치(T')를 비교하여 상기 제1 주기에서의 통신 네트워크 상태를 추정하는 단계를 더 포함하는 것을 특징으로 하는 시각 동기화 방법.
The method of claim 1,
A third packet transmission step of receiving, by the slave device, a third time synchronization packet in a third period transmitted after the predetermined time period (T) has elapsed from the master device;
A second period calculating step of calculating a time period calculation value T 'for the second period by using a difference between a reception time of the second time synchronization packet and a reception time of the third time synchronization packet; And
Estimating a communication network state in the first period by comparing the time period calculation value T 'calculated for the first period and the time period calculation value T' calculated for the second period. Time synchronization method characterized in that.
컴퓨터에서 제1항, 제3항 내지 4항 중 어느 한 항에 기재된 방법을 실행시키기 위한 컴퓨터로 판독 가능한 매체에 저장된 프로그램.A program stored in a computer readable medium for executing the method according to any one of claims 1 to 3 on a computer. 통신 네트워크에 연결된 디바이스 간의 시각을 동기화하는 슬레이브 디바이스 장치에 있어서,
마스터 디바이스로부터 미리 정해진 시간 주기(T) 마다 발신되는 시각 동기 패킷 중 제1 주기에서의 제1 시각 동기 패킷을 전송받는 제1 패킷 수신부;
상기 마스터 디바이스로부터 상기 미리 정해진 시간 주기(T)가 경과한 후 발신되는 제2 주기에서의 제2 시각 동기 패킷을 전송받는 제2 패킷 수신부;
상기 제1 시각 동기 패킷의 수신 시간 및 상기 제2 시각 동기 패킷의 수신 시각의 차이를 이용하여 상기 제1 주기에 대한 시간 주기 계산치(T')를 산출하는 제1 주기 산출부; 및
상기 제1 주기에 대하여 산출된 시간 주기 계산치(T')로부터 추정되는 상기 제1 주기에 대한 통신 네트워크 상태를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 슬레이브 디바이스의 시각을 동기화하는 시각 동기화부를 포함하는 것을 특징으로 하는 슬레이브 디바이스 장치.
A slave device apparatus for synchronizing time between devices connected to a communication network,
A first packet receiver configured to receive a first time synchronization packet in a first period among time synchronization packets transmitted at a predetermined time period T from the master device;
A second packet receiver configured to receive a second time synchronization packet in a second period transmitted after the predetermined time period T passes from the master device;
A first period calculator configured to calculate a time period calculation value T ′ for the first period by using a difference between a reception time of the first time synchronization packet and a reception time of the second time synchronization packet; And
Time synchronization for synchronizing the time of the slave device using the first time synchronization packet in consideration of the communication network state for the first period estimated from the time period calculation value T 'calculated for the first period. Slave device apparatus comprising a.
삭제delete 제6항에 있어서,
상기 시각 동기화부에서는,
상기 통신 네트워크 상태가 소정의 기준치에 미치지 못하는 경우,
상기 제1 시각 동기 패킷을 상기 슬레이브 디바이스에 대한 시각 동기화를 위하여 사용하지 않거나,
상기 제1 시각 동기 패킷에 상기 통신 네트워크 상태에 따른 가중치를 주어 상기 슬레이브 디바이스에 대한 시각 동기화에 사용하는 것을 특징으로 하는 슬레이브 디바이스 장치.
The method of claim 6,
In the time synchronization unit,
When the communication network state does not reach a predetermined reference value,
Do not use the first time synchronization packet for time synchronization for the slave device, or
And the first time synchronization packet is weighted according to the communication network state to be used for time synchronization with the slave device.
제6항에 있어서,
상기 마스터 디바이스로부터 상기 미리 정해진 시간 주기(T)가 경과한 후 발신되는 제3 주기에서의 제3 시각 동기 패킷을 전송받는 제3 패킷 수신부;
상기 제2 시각 동기 패킷의 수신 시간 및 상기 제3 시각 동기 패킷의 수신 시각의 차이를 이용하여 상기 제2 주기에 대한 시간 주기 계산치(T')를 산출하는 제2 주기 산출부; 및
상기 제1 주기에 대하여 산출된 시간 주기 계산치(T') 및 상기 제2 주기에 대하여 산출된 시간 주기 계산치(T')를 비교하여 상기 제1 주기에서의 통신 네트워크 상태를 추정하는 통신 네트워크 상태 추정부를 더 포함하는 것을 특징으로 하는 슬레이브 디바이스 장치.
The method of claim 6,
A third packet receiver configured to receive a third time synchronization packet in a third period transmitted after the predetermined time period T has elapsed from the master device;
A second period calculator configured to calculate a time period calculation value T ′ for the second period by using a difference between a reception time of the second time synchronization packet and a reception time of the third time synchronization packet; And
A communication network state estimation for estimating a communication network state in the first period by comparing the time period calculated value T 'calculated for the first period and the time period calculated value T' calculated for the second period The slave device device further comprises.
통신 네트워크에 연결된 디바이스 간의 시각을 동기화하는 시각 동기화 시스템에 있어서,
미리 정해진 시간 주기(T) 마다 발신되는 시각 동기 패킷 중 제1 주기에서 제1 시각 동기 패킷을 전송한 후,
상기 미리 정해진 시간 주기(T)가 경과한 후의 제2 주기에서 제2 시각 동기 패킷을 전송하는 마스터 디바이스; 및
상기 마스터 디바이스로부터 상기 제1 주기에서 상기 제1 시각 동기 패킷을 전송받고,
상기 제2 주기에서 상기 제2 시각 동기 패킷을 전송받은 후,
상기 제1 시각 동기 패킷의 수신 시간 및 상기 제2 시각 동기 패킷의 수신 시각의 차이를 이용하여 상기 제1 주기에 대한 시간 주기 계산치(T')를 산출하고,
상기 제1 주기에 대하여 산출된 시간 주기 계산치(T')로부터 추정되는 상기 제1 주기에 대한 통신 네트워크 상태를 고려하여, 상기 제1 시각 동기 패킷을 이용하여 상기 마스터 디바이스에 대한 시각을 동기화하는 슬레이브 디바이스를 포함하는 것을 특징으로 하는 시각 동기화 시스템.
A time synchronization system for synchronizing time between devices connected to a communication network,
After transmitting the first time synchronization packet in the first period of the time synchronization packets transmitted every predetermined time period T,
A master device for transmitting a second time synchronization packet in a second period after the predetermined time period T has elapsed; And
Receiving the first time synchronization packet in the first period from the master device,
After receiving the second time synchronization packet in the second period,
Calculating a time period calculation value T ′ for the first period by using a difference between a reception time of the first time synchronization packet and a reception time of the second time synchronization packet,
Slave for synchronizing the time for the master device using the first time synchronization packet in consideration of the communication network state for the first period estimated from the time period calculation value T 'calculated for the first period. And a device.
KR1020150162444A 2015-11-19 2015-11-19 Method, apparatus, system and computer program for enhancing the accuracy of Time Synchronization between devices Active KR102064575B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020150162444A KR102064575B1 (en) 2015-11-19 2015-11-19 Method, apparatus, system and computer program for enhancing the accuracy of Time Synchronization between devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020150162444A KR102064575B1 (en) 2015-11-19 2015-11-19 Method, apparatus, system and computer program for enhancing the accuracy of Time Synchronization between devices

Publications (2)

Publication Number Publication Date
KR20170058629A KR20170058629A (en) 2017-05-29
KR102064575B1 true KR102064575B1 (en) 2020-02-11

Family

ID=59053294

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020150162444A Active KR102064575B1 (en) 2015-11-19 2015-11-19 Method, apparatus, system and computer program for enhancing the accuracy of Time Synchronization between devices

Country Status (1)

Country Link
KR (1) KR102064575B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102491106B1 (en) 2021-07-26 2023-01-25 한국전자기술연구원 System and method to support precision time synchronization protocol of stealth clock type

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102360182B1 (en) * 2017-09-05 2022-02-08 삼성전자주식회사 Device and method for performing data communication with slave device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101114702B1 (en) * 2008-12-18 2012-02-29 삼성전자주식회사 Method and system for time synchronization between nodes in a wireless communication system
KR101197280B1 (en) * 2005-07-15 2012-11-05 삼성전자주식회사 Time synchronizing method and apparatus based on time stamp
KR101204445B1 (en) * 2011-12-07 2012-11-26 시큐아이닷컴 주식회사 Time synchronization system and time synchronization method between a master device and a slave device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090032306A (en) 2007-09-27 2009-04-01 한국전자통신연구원 Time synchronization system and method on the network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101197280B1 (en) * 2005-07-15 2012-11-05 삼성전자주식회사 Time synchronizing method and apparatus based on time stamp
KR101114702B1 (en) * 2008-12-18 2012-02-29 삼성전자주식회사 Method and system for time synchronization between nodes in a wireless communication system
KR101204445B1 (en) * 2011-12-07 2012-11-26 시큐아이닷컴 주식회사 Time synchronization system and time synchronization method between a master device and a slave device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102491106B1 (en) 2021-07-26 2023-01-25 한국전자기술연구원 System and method to support precision time synchronization protocol of stealth clock type

Also Published As

Publication number Publication date
KR20170058629A (en) 2017-05-29

Similar Documents

Publication Publication Date Title
US9671761B2 (en) Method, time consumer system, and computer program product for maintaining accurate time on an ideal clock
US9634782B2 (en) Clock synchronization system, clock synchronization method, and storage medium whereupon clock synchronization program is stored
US8108558B2 (en) Circuit arrangement and method for synchronization of clocks in a network
US11606155B2 (en) Method for exchanging time synchronization packet and network apparatus
EP4044466B1 (en) Synchronization method and device
US10333611B2 (en) Communication system, time synchronization method, and radio relay device
US10594424B2 (en) Time synchronization slave apparatus capable of adjusting time synchronization period, and method of determining time synchronization period
JP6192995B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND COMPUTER PROGRAM
JP6463495B2 (en) Global clock determination method and structure between systems
WO2021026023A1 (en) Systems for timestamping events on edge devices
US20200382233A1 (en) Information processing apparatus and time synchronization method
WO2016177090A1 (en) Clock synchronization method and device
CN103532693A (en) Time synchronizing device and method
KR102064575B1 (en) Method, apparatus, system and computer program for enhancing the accuracy of Time Synchronization between devices
CN102710359B (en) Accurate clock frequency synchronizing method and device based on IEEE1588 (institute of electrical and electronics engineers)
US10222786B2 (en) Numerical control system having synchronous control function between units
KR101176798B1 (en) Method for clock synchronization between slave and master
CN111107623A (en) System clock synchronization method
KR20120114532A (en) Method for synchronizing of clock between sensor nodes in wireless sensor network
KR20190072745A (en) Stable Network-based Time Synchronization Method
Guchhait et al. Joint minimum variance unbiased and maximum likelihood estimation of clock offset and skew in one-way packet transmission
EP2398173A1 (en) Remote I/O system and synchronization method in the same
KR101593822B1 (en) Apparatus for providing communication service, control method thereof, recording medium for recording program for executing the control method, application saved in the recording medium for executing the control method being combined with hardware
JP2020107959A (en) Communications system
JP2009192276A (en) Highly precise time synchronizing apparatus, high-precision time synchronous method, and program

Legal Events

Date Code Title Description
PA0109 Patent application

Patent event code: PA01091R01D

Comment text: Patent Application

Patent event date: 20151119

PG1501 Laying open of application
PA0201 Request for examination

Patent event code: PA02012R01D

Patent event date: 20171211

Comment text: Request for Examination of Application

Patent event code: PA02011R01I

Patent event date: 20151119

Comment text: Patent Application

E902 Notification of reason for refusal
PE0902 Notice of grounds for rejection

Comment text: Notification of reason for refusal

Patent event date: 20190121

Patent event code: PE09021S01D

E90F Notification of reason for final refusal
PE0902 Notice of grounds for rejection

Comment text: Final Notice of Reason for Refusal

Patent event date: 20190821

Patent event code: PE09021S02D

E701 Decision to grant or registration of patent right
PE0701 Decision of registration

Patent event code: PE07011S01D

Comment text: Decision to Grant Registration

Patent event date: 20191025

GRNT Written decision to grant
PR0701 Registration of establishment

Comment text: Registration of Establishment

Patent event date: 20200103

Patent event code: PR07011E01D

PR1002 Payment of registration fee

Payment date: 20200106

End annual number: 3

Start annual number: 1

PG1601 Publication of registration
PR1001 Payment of annual fee

Payment date: 20230103

Start annual number: 4

End annual number: 4