KR102078529B1 - Time Synchronization Method in Precision Time Protocol Network and Computer Program Therefore - Google Patents

Time Synchronization Method in Precision Time Protocol Network and Computer Program Therefore Download PDF

Info

Publication number
KR102078529B1
KR102078529B1 KR1020180085482A KR20180085482A KR102078529B1 KR 102078529 B1 KR102078529 B1 KR 102078529B1 KR 1020180085482 A KR1020180085482 A KR 1020180085482A KR 20180085482 A KR20180085482 A KR 20180085482A KR 102078529 B1 KR102078529 B1 KR 102078529B1
Authority
KR
South Korea
Prior art keywords
clock
boundary
clocks
master
slave
Prior art date
Application number
KR1020180085482A
Other languages
Korean (ko)
Other versions
KR20200010880A (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 KR1020180085482A priority Critical patent/KR102078529B1/en
Publication of KR20200010880A publication Critical patent/KR20200010880A/en
Application granted granted Critical
Publication of KR102078529B1 publication Critical patent/KR102078529B1/en

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/02Speed or phase control by the received code signals, the signals containing no special synchronisation information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

본 실시예는, 복수의 경계 클럭(Boundary Clock)에서 높은 통신 로드 및 높은 대역폭 소비와 같은 불균형 문제를 일으킬 수 있는 불균형 마스터-슬레이브 구조의 문제점을 해결하고 마스터 클럭 장애 시 빠른 복구 메커니즘이 이루어질 수 있도록 하는 정밀 시각 프로토콜 네트워크에서의 시간 동기화 방법 및 그를 위한 컴퓨터 프로그램에 관한 것이다.The present embodiment solves the problem of an unbalanced master-slave structure that may cause an imbalance problem such as high communication load and high bandwidth consumption in a plurality of boundary clocks, and enables a fast recovery mechanism in case of master clock failure. A time synchronization method in a precision visual protocol network and a computer program therefor.

Description

정밀 시각 프로토콜 네트워크에서의 시간 동기화 방법 및 그를 위한 컴퓨터 프로그램{Time Synchronization Method in Precision Time Protocol Network and Computer Program Therefore}Time Synchronization Method in Precision Time Protocol Network and Computer Program Therefore}

본 실시예는 정밀 시각 프로토콜(Precision Time Protocol; PTP)에서 균형적인 마스터-슬레이브 구조와 빠른 복구 메커니즘 제공을 위한 시간 동기화 방법 및 그를 위한 컴퓨터 프로그램에 관한 것이다.This embodiment relates to a time synchronization method for providing a balanced master-slave structure and a fast recovery mechanism in a Precision Time Protocol (PTP), and a computer program therefor.

이 부분에 기술된 내용은 단순히 본 실시예에 대한 배경 정보를 제공할 뿐 종래기술을 구성하는 것은 아니다.The contents described in this section merely provide background information on the present embodiment and do not constitute a prior art.

정밀 시각 프로토콜(Precision Time Protocol; PTP)은 네트워크 간 정확한 동기화를 가능케하는 IEEE(Institute of Electrical and Electronics Engineers) 1588 표준 시간 전송 프로토콜이다Precision Time Protocol (PTP) is an Institute of Electrical and Electronics Engineers (IEEE) 1588 standard time transfer protocol that enables accurate synchronization between networks.

PTP 네트워크 장치의 시간 동기화를 위해, 종래에는 PTP 네트워크 장치의 마스터-슬레이브 구조로 구축하는 BMC(Best Master Clock; BMC) 알고리즘을 사용하였다. 그러나, BMC 알고리즘은 각각의 마스터 클럭이 많은 수의 슬레이브 클럭과 불균일한 슬레이브 개수를 갖는 마스터-슬레이브 구조를 구축하기 때문에 마스터 클럭과 슬레이브 클럭이 PTP 메시지(message)를 교환할 때 마스터 클럭과 슬레이브 클럭 간에 통신 과부화가 발생된다는 한계가 존재한다.For time synchronization of a PTP network device, a conventional BMC (Best Master Clock (BMC)) algorithm, which is constructed as a master-slave structure of a PTP network device, is used. However, because the BMC algorithm builds a master-slave structure in which each master clock has a large number of slave clocks and an uneven number of slaves, the master clock and slave clocks when the master clock and the slave clock exchange PTP messages. There is a limitation in that communication overload occurs.

또한, BMC 알고리즘은 마스터 클럭과 슬레이브 클럭간의 통신 연결이 실패될 경우, 마스터-슬레이브 구조를 빠른 시간 안에 복구하는 메커니즘을 제공하지 않는다. 예컨대, BMC 알고리즘은 마스터 클럭의 장애가 발생할 경우, 새 마스터 클럭을 다시 선택하기 위해 BMC 알고리즘 수행에 따른 시간이 소요되는 문제점이 있다.In addition, the BMC algorithm does not provide a mechanism to recover the master-slave structure in a timely manner when the communication link between the master clock and the slave clock fails. For example, the BMC algorithm has a problem in that it takes time to perform the BMC algorithm to reselect a new master clock when a master clock fails.

본 실시예는, 복수의 경계 클럭(Boundary Clock)에서 높은 통신 로드 및 높은 대역폭 소비와 같은 불균형 문제를 일으킬 수 있는 불균형 마스터-슬레이브 구조의 문제점을 해결하고 마스터 클럭 선정의 장애 또는 마스터 클럭과 슬레이브 클럭간의 링크 장애 시 빠른 복구 메커니즘이 이루어질 수 있도록 하는 정밀 시각 프로토콜 네트워크에서의 시간 동기화 방법 및 그를 위한 컴퓨터 프로그램을 제공하는 데 그 목적이 있다.This embodiment solves the problem of an unbalanced master-slave structure that can cause unbalanced problems such as high communication load and high bandwidth consumption at a plurality of boundary clocks, and the problem of master clock selection or master clock and slave clocks. It is an object of the present invention to provide a time synchronization method in a precise visual protocol network and a computer program therefor to enable a fast recovery mechanism in the event of a link failure between them.

본 실시예는, 네트워크 장치의 시간 동기화 방법에 있어서, 상기 네트워크 장치의 각각의 경계 클럭(Boundary clock)이 다른 경계 클럭들로부터 그랜드 마스터 클럭(Grand Master Clock)과의 통신 거리, 슬레이브 개수정보(Number Slaves) 및 클럭 식별정보를 포함하는 경계 클럭 데이터 정보를 각각 수신하는 과정; 상기 각각의 경계 클럭이 상기 다른 경계 클럭들로부터 수신한 경계 클럭 데이터 정보 간의 비교를 수행하는 과정; 및 상기 각각의 경계 클럭이 상기 경계 클럭 데이터 정보 간의 비교결과에 따라 마스터 클럭 또는 슬레이브 클럭으로 상기 다른 경계 클럭들의 역할을 결정하는 과정을 포함하는 시간 동기화 방법을 제공한다.According to the present embodiment, in a time synchronization method of a network device, each boundary clock of the network device may communicate with the grand master clock from other boundary clocks, and the number of slaves information (Number) Receiving boundary clock data information including Slaves) and clock identification information; Performing comparison between boundary clock data information received by the boundary clocks from the other boundary clocks; And determining, by each of the boundary clocks, the role of the other boundary clocks as a master clock or a slave clock according to a comparison result between the boundary clock data information.

또한, 본 실시예의 다른 측면에 의하면, 시간 동기화 프로그램이 네트워크 장치의 하드웨어와 결합되어, 상기 네트워크 장치의 각각의 경계 클럭이 그랜드 마스터 클럭과의 통신 거리, 슬레이브 개수정보 및 클럭 식별정보를 포함하는 경계 클럭 데이터 정보를 다른 경계 클럭들로부터 각각 수신하는 과정; 상기 각각의 경계 클럭이 상기 다른 경계 클럭들로부터 수신한 경계 클럭 데이터 정보 간의 비교를 수행하는 과정; 및 상기 각각의 경계 클럭이 상기 경계 클럭 데이터 정보 간의 비교결과에 따라 마스터 클럭 또는 슬레이브 클럭으로 상기 다른 경계 클럭들의 역활을 결정하는 과정을 실행시키기 위하여 컴퓨터로 읽을 수 있는 기록매체에 저장된 시간 동기화 프로그램을 제공한다.Further, according to another aspect of the present embodiment, a time synchronization program is combined with hardware of a network device such that each boundary clock of the network device includes a communication distance with a grand master clock, slave count information, and clock identification information. Receiving clock data information from different boundary clocks, respectively; Performing comparison between boundary clock data information received by the boundary clocks from the other boundary clocks; And a time synchronization program stored in a computer-readable recording medium for executing a process of determining the role of the other boundary clocks as a master clock or a slave clock according to the comparison result of the boundary clock data information. to provide.

이상에서 설명한 바와 같이 본 실시예에 의하면, 정밀 시각 프로토콜 네트워크의 시간 동기화 과정에 있어서 복수의 경계 클럭에서 높은 통신 로드 및 높은 대역폭 소비와 같은 불균형 문제를 일으킬 수 있는 불균형 마스터-슬레이브 구조의 문제점을 해결하면서도, 마스터 클럭의 장애 또는 마스터 틀럭과 슬레이브 클러 간의 링크 장애 시 빠른 복구 메커니즘이 이루어질 수 있는 효과가 있다.As described above, the present embodiment solves the problem of an unbalanced master-slave structure that may cause an imbalance problem such as high communication load and high bandwidth consumption in a plurality of boundary clocks in the time synchronization process of the precision time protocol network. However, there is an effect that a fast recovery mechanism can be achieved in the event of a master clock failure or a link failure between a master block and a slave clock.

도 1은 본 실시예에 따른 PTP 네트워크 장치를 나타낸 블록도이다.
도 2는 종래의 시간 동기화 방법에 따른 PTP 네트워크 장치의 마스터-슬레이브 구조의 블럭도를 나타낸 도면이다.
도 3은 본 실시예에 따른 PTP 네트워크 장치의 시간 동기화 방법의 순서도를 나타낸 도면이다.
도 4는 본 실시예에 따른 경계 클럭 데이터 정보를 예시한 예시도이다.
도 5는 본 실시예에 따른 시간 동기화 방법에 따른 PTP 네트워크 장치의 마스터-슬레이브 구조의 블럭도를 나타낸 도면이다.
도 6은 본 실시예에 따른 시간 동기화 방법에 따른 마스터 클럭과 슬레이브 클럭 간의 연결 복구 방법을 설명하기 위한 도면이다.
도 7a 내지 도 7c는 본 실시예에 따른 시간 동기화 방법에 따른 효과를 설명하기 위한 도면이다.
1 is a block diagram showing a PTP network device according to the present embodiment.
2 is a block diagram of a master-slave structure of a PTP network device according to a conventional time synchronization method.
3 is a flowchart illustrating a time synchronization method of a PTP network device according to the present embodiment.
4 is an exemplary diagram illustrating boundary clock data information according to the present embodiment.
5 is a block diagram of a master-slave structure of a PTP network apparatus according to the time synchronization method according to the present embodiment.
6 is a view for explaining a connection recovery method between a master clock and a slave clock according to the time synchronization method according to the present embodiment.
7A to 7C are diagrams for describing an effect of the time synchronization method according to the present embodiment.

이하, 본 실시예들을 예시적인 도면을 이용하여 상세하게 설명한다. 본 실시예들을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다. 또한, 첨부된 도면은 본 명세서에 개시된 실시 예를 쉽게 이해할 수 있도록 하기 위한 것일 뿐, 첨부된 도면에 의해 본 명세서에 개시된 기술적 사상이 제한되지 않으며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다.Hereinafter, the present embodiments will be described in detail with reference to exemplary drawings. In describing the present embodiments, when it is determined that a detailed description of a related well-known configuration or function may obscure the gist of the present invention, the detailed description thereof will be omitted. In addition, the accompanying drawings are intended to facilitate understanding of the embodiments disclosed herein, but are not limited to the technical spirit disclosed herein by the accompanying drawings, all changes included in the spirit and scope of the present invention. It should be understood to include equivalents and substitutes.

본 실시예에서 '포함'이라는 용어는 명세서 상에 기재된 구성요소, 특징, 단계 또는 이들을 조합한 것이 존재한다는 것이지, 하나 또는 복수 개의 구성요소나 다른 특징, 단계 또는 이들을 조합한 것의 존재 가능성을 미리 배제하지 않는 것으로 이해되어야 할 것이다.In the present embodiment, the term 'comprising' means that there is a component, a feature, a step, or a combination thereof described in the specification, and excludes in advance the possibility of the existence of one or a plurality of components or other features, steps, or a combination thereof. It should be understood that it does not.

이하, 본 실시예를 첨부된 도면을 참조하여 상세하게 설명한다.Hereinafter, the present embodiment will be described in detail with reference to the accompanying drawings.

도 1은 본 실시예에 따른 PTP 네트워크 장치를 나타낸 블록도이다.1 is a block diagram showing a PTP network device according to the present embodiment.

도 1에 도시하듯이, 본 실시예에 따른 PTP 네트워크 장치(100)는 그랜드 마스터 클럭(Grand Master Clock)(120), 일반 클럭(Ordinary Clock)(140) 및 경계 클럭(Boundary Clock)(160)을 포함한다.As shown in FIG. 1, the PTP network apparatus 100 according to the present embodiment may include a grand master clock 120, an ordinary clock 140, and a boundary clock 160. It includes.

그랜드 마스터 클럭(120)은 PTP 네트워크 장치(100)의 PTP 프로토콜에서 시간 동기화에 기준이 되는 최상위 클럭을 의미한다.The grand master clock 120 refers to the highest clock that is a reference for time synchronization in the PTP protocol of the PTP network device 100.

그랜드 마스터 클럭(120)은 GPS 신호 또는 시간에 대한 광 신호를 수신하여 하부 네트워크로 전달하는 기능을 수행한다. 본 실시예에 있어서, 그랜드 마스터 클럭(120)은 PTP 네트워크 장치(100)의 각각의 경계 클럭에 다른 경계 클럭의 경계 클럭 데이터 정보를 전달하는 역할을 수행할 수도 있다. 한편, 본 실시예에 있어서 경계 클럭 데이터 정보로는 그랜드 마스터 클럭과 경계 클럭 사이의 통신 거리(ex: 통신 홉 수), 슬레이브 클럭의 개수, 경계 클럭의 식별정보 및 포트 정보 등이 포함될 수 있다.The grand master clock 120 receives a GPS signal or an optical signal for a time and transmits the received signal to a lower network. In the present embodiment, the grand master clock 120 may serve to transmit boundary clock data information of another boundary clock to each boundary clock of the PTP network apparatus 100. In the present exemplary embodiment, the boundary clock data information may include a communication distance (eg, communication hop number) between the grand master clock and the boundary clock, the number of slave clocks, identification information of the boundary clock, port information, and the like.

일반 클럭(140)은 하나의 이더넷 포트를 갖고, 마스터-슬레이브 구조의 네트워크 장치에서 그랜드 마스터 클럭 또는 슬레이브 클럭 역할을 수행한다. 통상 클럭(140)이 슬레이브 클럭 역할을 하는 경우, 통상 클럭(140)은 통상 클럭(140)의 포트에 연결된 마스터 클럭에 시간을 동기화한다.The general clock 140 has one Ethernet port and serves as a grand master clock or slave clock in a network device of a master-slave structure. When the normal clock 140 serves as a slave clock, the normal clock 140 synchronizes time with a master clock connected to the port of the normal clock 140.

경계 클럭(160)은 마스터-슬레이브 구조의 네트워크 장치에서 마스터 클럭 또는 슬레이브 클럭 역할을 수행한다.The boundary clock 160 serves as a master clock or a slave clock in a network device of a master-slave structure.

본 실시예에 있어서, 경계 클럭(160)은 개선된 시간 동기화 방법(BSHSM: Balnaced Synchronization Hiererchy with Spare Masters)에 따라, 다른 경계 클럭과의 사이에 균형적인 마스터-슬레이브 구조를 갖도록 구현되며, 각 경계 클럭별 예비 마스터 클럭을 사전 구비함에 따라 마스터 클럭의 장애 시 빠른 복구 메커니즘이 이루어질 수 있도록 동작한다.In this embodiment, the boundary clock 160 is implemented to have a balanced master-slave structure with other boundary clocks according to an improved time synchronization method (BSHSM: Balnaced Synchronization Hiererchy with Spare Masters). By preliminary provision of a preliminary master clock for each clock, a fast recovery mechanism can be achieved in the event of a master clock failure.

이를 위해, 본 실시예에 따른 경계 클럭(160)은 다른 경계 클럭에 상응하는 경계 클럭 데이터 정보를 수신하고, 수신한 경계 클럭 데이터 정보 간 비교를 통해 상기의 상기의 마스터-슬레이브 구조의 구성 및 예비 마스터 클럭 등의 설정 동작 등을 수행한다.To this end, the boundary clock 160 according to the present embodiment receives boundary clock data information corresponding to another boundary clock, and configures and reserves the above master-slave structure by comparing the received boundary clock data information. A setting operation such as a master clock is performed.

한편, 본 실시예에 따른 경계 클럭(160)이 개선된 시간 동기화 방법에 따라 균형적인 마스터-슬레이브 구조를 구축 및 빠른 복구 메커니즘을 구현하는 구체적인 방법은 도 3 내지 도 6을 설명하는 과정에서 보다 자세히 설명하도록 한다.Meanwhile, a detailed method of constructing a balanced master-slave structure and implementing a fast recovery mechanism according to the improved time synchronization method of the boundary clock 160 according to the present embodiment will be described in more detail with reference to FIGS. 3 to 6. Explain.

도 2는 종래의 시간 동기화 방법에 따른 PTP 네트워크 장치의 마스터-슬레이브 구조의 블럭도를 나타낸 도면이다.2 is a block diagram of a master-slave structure of a PTP network device according to a conventional time synchronization method.

도 2의 마스터-슬레이브 구조는 종래의 시간 동기화 방법을 하나의 그랜드 마스터 클럭과 25개의 경계 클럭으로 구성된 PTP 네크워크 장치(100)에 적용한 결과이다. 여기서, 종래의 시간 동기화 방법은 베스트 마스터 클럭(Best Master Clock; BMC) 알고리즘이 사용되었다.The master-slave structure of FIG. 2 is a result of applying the conventional time synchronization method to the PTP network apparatus 100 including one grand master clock and 25 boundary clocks. Here, the conventional time synchronization method uses a Best Master Clock (BMC) algorithm.

도 2를 참조하면, 종래의 시간 동기화 방법에 따른 PTP 네트워크 장치(100)의 마스터-슬레이브 구조의 경우, 마스터-슬레이브 구조 내 일부의 마스터 클럭이 다른 마스터 클럭보다 더 많은 슬레이브 클럭을 갖고 있는 것을 확인할 수 있다. 예컨대, 13 번의 고유번호를 갖는 경계 클럭의 경우 5개의 슬레이브 클럭을 갖고 있는 반면, 8 번 및 12 번의 고유번호를 갖는 경계 클럭의 경우 각각 1 개의 슬레이브 클럭을 갖고 있다.2, in the case of the master-slave structure of the PTP network apparatus 100 according to the conventional time synchronization method, it is confirmed that some master clocks in the master-slave structure have more slave clocks than other master clocks. Can be. For example, a boundary clock having a unique number of 13 has five slave clocks, while a boundary clock having a unique number of eight has a slave clock of eight.

이는 곧, 마스터-슬레이브 구조에서 마스터 클럭이 갖는 슬레이브 개수가 균일하지 않음에 따라 자칫 일부 경계 클럭에 한해 시간 동기화와 관련한 데이터를 송수신함에 있어 자칫 높은 통신 과부화가 발생할 수 있다는 문제가 발생한다.In other words, as the number of slave slaves of the master clock in the master-slave structure is not uniform, there is a problem that a high communication overload may occur when transmitting and receiving data related to time synchronization for only some boundary clocks.

더욱이, 종래의 시간 동기화 방법에 의하는 경우 통신 과부화 현상에 따라 각각의 경계 클럭 중 하나 이상의 슬레이브 클럭과 이에 대응하는 마스터 클럭과의 연결 통신 로드가 끊길 경우 이에 대한 빠른 복구가 이루어질 수 없다는 문제점이 존재한다. 즉, 종래의 경우 슬레이브 클럭과 마스터 클럭 사이의 통신 장애가 발생할 경우, 새로이 시간 동기화 방법을 적용하여 마스터 클럭을 재선택하고, 이와 관련하여 계층 구조 또한 다시 설정해야 함에 따라 많은 시간이 소요되게 된다.In addition, according to the conventional time synchronization method, there is a problem that a fast recovery of the connection communication load between one or more slave clocks of the respective boundary clocks and the corresponding master clock is not possible due to a communication overload phenomenon. do. That is, in the conventional case, when a communication failure between the slave clock and the master clock occurs, it takes a lot of time as a new time synchronization method is applied to reselect the master clock and the hierarchical structure must also be set in this regard.

따라서, 본 발명에서는 종래의 시간 동기화 방법에 따른 마스터-슬레이브 구조의 불균형에 따른 문제를 해결함과 동시에, 빠른 복구 메카니즘이 수행될 수 있도록 하는 개선된 시간 동기화 방법을 제안한다.Accordingly, the present invention proposes an improved time synchronization method for solving the problem caused by the imbalance of the master-slave structure according to the conventional time synchronization method, and at the same time enabling a fast recovery mechanism.

도 3은 본 실시예에 따른 PTP 네트워크 장치의 시간 동기화 방법의 순서도를 나타낸 도면이다.3 is a flowchart illustrating a time synchronization method of a PTP network device according to the present embodiment.

본 실시예에 따른 PTP 네트워크 장치(100)의 각각의 경계 클럭은 다른 경계 클럭들로부터 그랜드 마스터 클럭과 경계 클럭과의 통신거리, 슬레이브 개수 및 클럭 식별정보(ex: 고유번호)를 포함하는 경계 클럭 데이터 정보를 수신한다(S302). 단계 S302에서 각각의 경계 클럭은 다른 경계 클럭으로부터 방송 메시지 형태로 전송되는 상기의 경계 클럭 데이터 정보를 수신할 수 있다.Each boundary clock of the PTP network apparatus 100 according to the present exemplary embodiment includes a boundary clock including a communication distance between the grand master clock and the boundary clock, the number of slaves, and clock identification information (ex: unique number) from other boundary clocks. The data information is received (S302). In operation S302, each boundary clock may receive the boundary clock data information transmitted in the form of a broadcast message from another boundary clock.

한편, 본 실시예에 있어서, 각각의 경계 클럭이 다른 경계 클럭으로부터 수신하는 경계 클럭 데이터 정보는 기존 대비 슬레이브 개수정보를 추가로 포함하며, 이에 대한 구체적인 형태에 대해서는 도 4를 통해 확인할 수 있다. 이때, 슬레이브 개수로는 바람직하게는 2개의 데이터셋(Datasets) 정보 즉, CurrentDS and ParentDS가 포함될 수 있다. CurrentDS는 현재 해당 경계 클럭의 슬레이브 개수정보를 의미하며, ParentDS는 해당 클럭의 마스터 클럭의 슬레이브 개수정보를 의미한다. 경계 클럭 데이터 정보 내 포함되는 각각의 정보들은 본 실시예에 따른 시간 동기화 방법의 수행 결과에 따라 지속적으로 그 내용이 업데이트될 수 있다.Meanwhile, in the present embodiment, the boundary clock data information received by each boundary clock from another boundary clock further includes slave count information compared to the existing one, and a detailed form thereof may be confirmed through FIG. 4. In this case, the number of slaves may preferably include two datasets, that is, CurrentDS and ParentDS. CurrentDS means slave number information of the current boundary clock, and ParentDS means slave number information of the master clock of the corresponding clock. Each piece of information included in the boundary clock data information may be continuously updated according to a result of the time synchronization method according to the present embodiment.

각각의 경계 클럭은 단계 S302에서 수신한 클럭 데이터 정보를 기반으로 다른 경계 클럭들에 대하여 그랜드 마스터 클럭과의 통신 거리를 비교한다(S304). 단계 S304에서 각각의 경계 클럭은 비교결과에 기반하여, 다른 경계 클럭들 중 그랜드 마스터 클럭과의 통신 거리가 최소인 경계 클럭을 마스터 클럭으로 선정한다.Each boundary clock compares the communication distance with the grand master clock with respect to other boundary clocks based on the clock data information received in step S302 (S304). In step S304, each boundary clock selects, as the master clock, the boundary clock having the smallest communication distance with the grand master clock, among other boundary clocks, based on the comparison result.

각각의 경계 클럭은 단계 S304의 비교결과에 따라 다른 경계 클럭들에 대하여 그랜드 마스터 클럭과의 통신 거리가 동일한 경우, 다른 경계 클럭들 간 해당 경계 클럭들에 연결되는 슬레이브 개수를 비교한다(S306). 단계 S306에서 각각의 경계 클럭은 비교결과에 기반하여, 다른 경계 클럭들 중 슬레이브 개수가 최소인 경계 클럭을 마스터 클럭으로 선정한다.Each boundary clock compares the number of slaves connected to the corresponding boundary clocks between the other boundary clocks when the communication distance with the grand master clock is the same for the other boundary clocks according to the comparison result of step S304 (S306). In step S306, each boundary clock selects a boundary clock having the minimum number of slaves among the other boundary clocks as the master clock based on the comparison result.

각각의 경계 클럭은 단계 S306의 비교결과에 따라 다른 경계 클럭들에 대하여 슬레이브 개수가 동일한 경우, 다른 경계 클럭들 간 해당 경계 클럭이 갖는 경계 클럭 고유번호를 비교한다(S308). 단계 S308에서 각각의 경계 클럭은 비교결과에 따라 보다 작은 클럭 식별정보를 갖는 경계 클럭을 마스터 클럭으로서 결정한다.Each boundary clock compares the boundary clock unique number of the boundary clock between different boundary clocks when the number of slaves is the same with respect to the other boundary clocks according to the comparison result of step S306 (S308). In step S308, each boundary clock determines the boundary clock having the smaller clock identification information as the master clock according to the comparison result.

도 3에서는 각각의 과정을 순차적으로 실행하는 것으로 기재하고 있으나, 반드시 이에 한정되는 것은 아니다. 다시 말해, 도 3에 기재된 과정을 변경하여 실행하거나 하나 이상의 과정을 병렬적으로 실행하는 것으로 적용 가능할 것이므로, 도 3은 시계열적인 순서로 한정되는 것은 아니다.In FIG. 3, each process is described as being sequentially executed, but is not necessarily limited thereto. In other words, since the process described in FIG. 3 may be applied by changing or executing one or more processes in parallel, FIG. 3 is not limited to the time series order.

한편, 도 3에 기재된 시간 동기화 방법은 프로그램으로 구현되고 컴퓨터의 소프트웨어를 이용하여 읽을 수 있는 기록매체(CD-ROM, RAM, ROM, 메모리 카드, 하드 디스크, 광자기 디스크, 스토리지 디바이스 등)에 기록될 수 있다.Meanwhile, the time synchronization method described in FIG. 3 is recorded on a recording medium (CD-ROM, RAM, ROM, memory card, hard disk, magneto-optical disk, storage device, etc.) implemented as a program and readable using software of a computer. Can be.

도 5는 본 실시예에 따른 시간 동기화 방법에 따른 PTP 네트워크 장치의 마스터-슬레이브 구조의 블럭도를 나타낸 도면이다.5 is a block diagram of a master-slave structure of a PTP network apparatus according to the time synchronization method according to the present embodiment.

도 5를 참조하면, 본 실시예에 따른 마스터-슬레이브 구조의 각각의 마스터 클럭에 상응하는 슬레이브 클럭의 개수는 종래의 마스터-슬레이브 구조의 마스터 클럭에 상응하는 슬레이브 클럭의 개수보다 적음을 알 수 있다.Referring to FIG. 5, it can be seen that the number of slave clocks corresponding to each master clock of the master-slave structure according to the present embodiment is smaller than the number of slave clocks corresponding to the master clock of the conventional master-slave structure. .

도 1 및 도 3에 설명된 바와 같이, 본 실시예에 있어서, 경계 클럭에 대한 마스터 또는 슬레이브 클럭으로서의 역할을 결정짓는 경계 클럭 데이터 정보 상에는 종래의 시간 동기화 방법과 달리, 해당 경계 클럭에 상응하는 슬레이브 개수정보가 더 포함한다. 즉, 각각의 경계 클럭은 다른 경계 클럭들로부터 경계 클럭 데이터 정보를 수신한 후, 이를 도 3에 설명된 시간 동기화 방법의 순서도에 따라 비교하여 마스터 클럭 및 슬레이브 클럭을 선정하게 된다.As shown in Figs. 1 and 3, in the present embodiment, the slave clock corresponding to the boundary clock is different from the conventional time synchronization method on the boundary clock data information that determines the role as the master or slave clock for the boundary clock. The count information further includes. That is, each boundary clock receives boundary clock data information from other boundary clocks, and compares them according to the flow chart of the time synchronization method illustrated in FIG. 3 to select a master clock and a slave clock.

각각의 경계 클럭은 마스터 클럭을 선정하면, 자신의 경계 클럭에 상응하는 마스터 클럭임을 알리기 위한 마스터 선정 확인 메시지를 마스터 클럭에게 전송한다.When each boundary clock selects a master clock, it transmits a master selection acknowledgment message to the master clock to indicate that it is a master clock corresponding to its boundary clock.

새로운 마스터 클럭에게 마스터 선정 확인 메시지를 전송한 각각의 마스터 클럭은, 새로운 마스터 클럭으로부터 마스터 승인 메시지를 수신한다. 또한, 각각의 경계 클럭은, 이전의 마스터 클럭이 현재의 마스터 클럭이 아님을 알리기 위해, 이전 마스터에게 마스터 해제 메시지를 전송한다.Each master clock that has sent a master selection confirmation message to the new master clock receives a master acknowledge message from the new master clock. Each boundary clock also sends a master release message to the previous master to indicate that the previous master clock is not the current master clock.

따라서, 도 5에 도시된 바와 같이, 본 발명의 일 실시예에 따른 마스터-슬레이브 구조는, 종래의 마스터-슬레이브 구조와 달리, 각각의 마스터 클럭이 적은 수의 슬레이브 클럭을 갖고 있다. 이러한 결과는 각각의 경계 클럭이 경계 클럭 데이터 정보를 전송 및 수신함에 있어서 발생되는 통신 과부화를 감소시킬 수 있다.Therefore, as shown in FIG. 5, unlike the conventional master-slave structure, the master-slave structure according to the embodiment of the present invention has each master clock having a small number of slave clocks. This result can reduce communication overload caused by each boundary clock transmitting and receiving boundary clock data information.

이러한, 경계 클럭의 마스터 또는 슬레이브 클럭으로의 역활 선정 내역은 각각의 경계 클럭의 경계 클럭 데이터 정보 상에 업데이트되며, 이후, 새로이 경계 클럭의 역활을 선정 시 참고 자료로서 이용될 수 있다.The role selection history of the boundary clock as the master or slave clock is updated on the boundary clock data information of each boundary clock, and then used as a reference when newly selecting the role of the boundary clock.

도 6은 본 실시예에 따른 시간 동기화 방법에 따른 마스터 클럭과 슬레이브 클럭 간의 연결 복구 방법을 설명하기 위한 도면이다.6 is a view for explaining a connection recovery method between a master clock and a slave clock according to the time synchronization method according to the present embodiment.

도 6의 (a)는 본 실시예에 따른 시간 동기화 방법에 따라 구축된 예비 마스터 클럭을 갖는 마스터-슬레이브 구조를 도시한 도면이다.FIG. 6A is a diagram illustrating a master-slave structure having a preliminary master clock constructed according to the time synchronization method according to the present embodiment.

도 6의 (a)에 도시된 바와 같이, 본 실시예에 따른 시간 동기화 방법에 의하는 경우, 슬레이브 클럭이 자신에 상응하는 마스터 클럭을 제외된 인접한 경계 클럭을 예비 마스터 클럭으로 선정한다.As shown in FIG. 6A, in the time synchronization method according to the present embodiment, the slave clock selects an adjacent boundary clock except the master clock corresponding thereto as a preliminary master clock.

이를 더 상세히 설명하면, 하나 이상의 슬레이브 클럭은 자신의 경계 클럭 데이터 정보와 자신에 상응하는 마스터 클럭이 제외된 인접한 경계 클럭의 클럭 데이터 정보를 수신한다. 이후, 하나 이상의 슬레이브 클럭은 인접한 경계 클럭의 클럭 데이터 정보 간 비교를 수행한다. In more detail, the at least one slave clock receives its boundary clock data information and clock data information of an adjacent boundary clock except the corresponding master clock. Thereafter, the at least one slave clock compares clock data information of adjacent boundary clocks.

비교 결과, 하나 이상의 슬레이브 클럭은 인접한 경계 클럭 중 어느 하나의 경계 클럭을 예비 마스터 클럭으로서 선정한다. 여기서, 어느 하나의 경계 클럭은 해당 경계 클럭에 상응하는 그랜드 마스터 클럭과의 통신 거리, 슬레이브 개수 및 클럭 식별정보가 다른 인접 경계 클럭보다 작은 경계 클럭을 의미한다.,As a result of the comparison, the one or more slave clocks select one of the adjacent boundary clocks as the preliminary master clock. Here, one of the boundary clocks means a boundary clock having a communication distance with the grand master clock, the number of slaves and the clock identification information smaller than the other adjacent boundary clocks.

한편, 하나 이상의 슬레이브 클럭이 경계 클럭 데이터 정보 내 포함된 정보에 기반하여 예비 마스터 클럭을 선정하는 방법은 앞서 경계 클럭 데이터 정보를 기반으로 경계 클럭의 역활을 결정하는 방법과 동일 또는 유사하며, 이에 자세한 설명은 생략하도록 한다.Meanwhile, the method of selecting the preliminary master clock based on information included in at least one slave clock based on the boundary clock data information is the same as or similar to the method of determining the role of the boundary clock based on the boundary clock data information. The description is omitted.

도 6의 (b)는 본 실시예에 따른 시간 동기화 방법에 따라 구축된 예비 마스터 클럭을 갖는 마스터-슬레이브 구조를 이용한 연결 복구 과정을 예시한 도면이다.FIG. 6B is a diagram illustrating a connection recovery process using a master-slave structure having a preliminary master clock constructed according to the time synchronization method according to the present embodiment.

도 6의 (b)를 참조하면, 하나 이상의 슬레이브 클럭이 자신에 상응하는 마스터 클럭과의 연결이 실패될 경우, 하나 이상의 슬레이브 클럭은 자신에 상응하는 마스터 클럭을 제외한 인접한 경계 클럭을 예비 마스터 클럭으로 선정한다. 예컨데, 고유번호 11번을 갖는 슬레이브 클럭과 고유번호 6번을 갖는 마스터 클럭과의 연결이 실패될 경우, 고유번호 11번을 갖는 슬레이브 클럭은 새로운 마스터 클럭으로서 예비 마스터 클럭으로서 기 선정된 고유번호 7번을 갖는 경계 클럭을 선정한다.Referring to FIG. 6B, when one or more slave clocks fail to connect to their corresponding master clocks, the one or more slave clocks may use adjacent boundary clocks except their corresponding master clocks as the spare master clocks. Select. For example, if the connection between the slave clock having the unique number 11 and the master clock having the unique number 6 fails, the slave clock having the unique number 11 is the new master clock and the preset unique number 7 as the preliminary master clock. Select the boundary clock with burn.

도 7a 내지 도 7c는 본 실시예에 따른 시간 동기화 방법에 따른 효과를 설명하기 위한 도면이다.7A to 7C are diagrams for describing an effect of the time synchronization method according to the present embodiment.

도 7a는 본 실시예에 따른 시간 동기화 방법과 종래의 시간 동기화 방법에 의해 구축된 PTP 네트워크 장치(100)의 각각의 마스터 클럭이 갖는 슬레이브 클럭의 개수를 비교한 그래프이다. 한편, 도 7a의 수평축은 각각의 경계 클럭이 갖는 클럭 고유 번호를 나타내고, 수직축은 각각의 마스터 클럭이 갖는 슬레이브 클럭의 개수를 나타낸다.7A is a graph comparing the number of slave clocks of each master clock of the PTP network apparatus 100 constructed by the time synchronization method and the conventional time synchronization method according to the present embodiment. On the other hand, the horizontal axis of Fig. 7A represents the clock unique number of each boundary clock, and the vertical axis represents the number of slave clocks of each master clock.

도 7a에 도시하듯이, 본 실시예에 따른 시간 동기화 방법에 따라 구축된 마스터-슬레이브 구조의 경우, 각각의 마스터 클럭은 대하여 종래의 시간 동기화 방법으로 구축된 마스터-슬러이브 구조보다 적은 수의 슬레이브 클럭을 갖고 있다. 예컨데, 종래의 시간 동기화 방법으로 구축된 고유번호 7, 13 및 19 번을 갖는 마스터 클럭은 각각 5개의 슬레이브 클럭을 갖고 있으나, 본 발명의 시간 동기화 방법으로 구축된 고유 번호 7, 13 및 19번을 갖는 마스터 클럭은 각각 1개의 슬레이브 클럭을 갖고 있다.As shown in Fig. 7A, in the case of the master-slave structure constructed by the time synchronization method according to the present embodiment, each master clock has fewer slaves than the master-slave structure constructed by the conventional time synchronization method. I have a clock. For example, the master clocks having unique numbers 7, 13, and 19 constructed by the conventional time synchronization method have five slave clocks, respectively. Each master clock has one slave clock.

즉, 종래의 시간 동기화 방법으로 구축된 마스터 슬레이브 구조보다 본 실시예에 따라 시간 동기화 방법으로 구축된 마스터 슬레이브 구조가 더 적은 수의 슬레이브를 갖고 있으며 각각의 마스터 클럭은 균등한 슬레이브 클럭을 갖고 있음을 의미한다.That is, the master slave structure constructed by the time synchronization method has a smaller number of slaves than the master slave structure constructed by the conventional time synchronization method, and each master clock has an equal slave clock. it means.

도 7b 및 도 7c는 본 실시예에 따른 시간 동기화 방법과 종래의 시간 동기화 방법에 의해 구축된 PTP 네트워크 장치(100)의 경계 클럭의 개수 증가에 따른 각각의 마스터 클럭의 슬레이브 개수를 나타낸 그래프이다. 한편, 도 7b의 수평축은 경계 클럭의 개수이며, 수직축은 종래의 시간 동기화 방법과 본 발명의 시간 동기화 방법으로 구축된 마스터-슬레이브 구조에서 각각의 마스터 클럭이 갖는 슬레이브 개수의 평균값을 나타낸 그래프이다. 도 7c의 수평축은 경계 클럭의 개수이며, 수직축은 종래의 시간 동기화 방법과 본 발명의 시간 동기화 방법으로 구축된 마스터-슬레이브 구조에서 각각의 마스터 클럭이 갖는 슬레이브 개수의 표준편차를 나타내고 있다.7B and 7C are graphs showing the number of slaves of each master clock as the number of boundary clocks of the PTP network apparatus 100 constructed by the time synchronization method and the conventional time synchronization method according to the present embodiment increases. Meanwhile, the horizontal axis of FIG. 7B is the number of boundary clocks, and the vertical axis is a graph showing an average value of the number of slaves of each master clock in the master-slave structure constructed by the conventional time synchronization method and the time synchronization method of the present invention. The horizontal axis of FIG. 7C represents the number of boundary clocks, and the vertical axis represents the standard deviation of the number of slaves of each master clock in the master-slave structure constructed by the conventional time synchronization method and the time synchronization method of the present invention.

도 7b 및 도 7c의 그래프에 도시된 바와같이, 경계 클럭의 개수가 증가함에 따라, 본 실시예에 따른 시간 동기화 방법으로 구축된 각각의 마스터 클럭이 갖는 슬레이브 개수에 대한 평균값의 경우는 동등하나, 표준편차는 종래의 시간 동기화 방법으로 구축된 각각의 마스터 클럭이 갖는 슬레이브 개수에 대한 표준편자보다 0.5배 적음을 알 수 있다.As shown in the graphs of FIGS. 7B and 7C, as the number of boundary clocks increases, an average value for the number of slaves of each master clock constructed by the time synchronization method according to the present embodiment is equal, but It can be seen that the standard deviation is 0.5 times less than the standard deviation of the number of slaves of each master clock constructed by the conventional time synchronization method.

이러한 결과는, 본 실시예에 따른 시간 동기화 방법으로 구축된 각각의 마스터 클럭은 종래의 시간 동기화 방법으로 구축된 각각의 마스터 클럭보다 균일한 개수의 슬레이브 클럭을 갖는 다는 것을 의미한다. 따라서, 도 7a 내지 도 7c에서 설명했듯이 본 실시예에 따른 시간 동기화 방법은 종래의 시간 동기화 방법이 갖는 각 경계 클럭의 통신 과부화 문제점을 해결한 것을 알 수 있다.This result means that each master clock constructed by the time synchronization method according to the present embodiment has a uniform number of slave clocks than each master clock constructed by the conventional time synchronization method. Therefore, as described with reference to FIGS. 7A to 7C, it can be seen that the time synchronization method according to the present embodiment solves the communication overload problem of each boundary clock of the conventional time synchronization method.

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

100: PTP 네트워크 장치 120: 그랜드 마스터 클럭
140: 일반 클럭 160: 경계 클럭
100: PTP network device 120: grand master clock
140: normal clock 160: boundary clock

Claims (10)

네트워크 장치의 시간 동기화 방법에 있어서,
상기 네트워크 장치의 각각의 경계 클럭(Boundary clock)이 다른 경계 클럭들로부터 그랜드 마스터 클럭(Grand Master Clock)과의 통신 거리, 슬레이브 개수정보(Number Slaves) 및 클럭 식별정보를 포함하는 경계 클럭 데이터 정보를 각각 수신하는 과정;
상기 각각의 경계 클럭이 상기 다른 경계 클럭들로부터 수신한 경계 클럭 데이터 정보 간의 비교를 수행하는 과정; 및
상기 각각의 경계 클럭이 상기 경계 클럭 데이터 정보 간의 비교결과에 따라 마스터 클럭 또는 슬레이브 클럭으로 상기 다른 경계 클럭들의 역할을 결정하며, 상기 슬레이브 개수 정보를 활용 시 상기 비교결과에 따라 보다 적은 슬레이브 개수를 갖는 경계 클럭을 마스터 클럭으로서 결정하는 과정
을 포함하는 시간 동기화 방법.
In the time synchronization method of the network device,
Each boundary clock of the network device includes boundary clock data information including a communication distance from another boundary clock to a grand master clock, number of slaves, and clock identification information. Receiving each;
Performing comparison between boundary clock data information received by the boundary clocks from the other boundary clocks; And
Each of the boundary clocks determines a role of the other boundary clocks as a master clock or a slave clock according to a comparison result between the boundary clock data information, and has a smaller number of slaves according to the comparison result when utilizing the slave number information. Determining the Perimeter Clock as the Master Clock
Time synchronization method comprising a.
제 1항에 있어서,
상기 결정하는 과정은,
상기 각각의 경계 클럭이 상기 다른 경계 클럭들 간 상기 그랜드 마스터 클럭과의 통신 거리를 비교하고, 비교 결과에 따라 보다 짧은 통신 거리를 갖는 경계 클럭을 마스터 클럭으로서 결정하는 것을 특징으로 하는 시간 동기화 방법.
The method of claim 1,
The determining process,
And each boundary clock compares a communication distance between the other boundary clocks with the grand master clock, and determines a boundary clock having a shorter communication distance as a master clock according to a comparison result.
제 2항에 있어서,
상기 결정하는 과정은,
상기 통신 거리의 비교 결과가 동일 시 상기 다른 경계 클럭들 간 상기 슬레이브 개수정보를 비교하고, 비교 결과에 따라 보다 적은 슬레이브 개수를 갖는 경계 클럭을 마스터 클럭으로서 결정하는 것을 특징으로 하는 시간 동기화 방법.
The method of claim 2,
The determining process,
And comparing the slave number information between the other boundary clocks when the comparison result of the communication distances is the same, and determining a boundary clock having a smaller number of slaves as a master clock according to the comparison result.
제 3항에 있어서,
상기 결정하는 과정은,
상기 슬레이브 개수정보의 비교 결과가 동일 시 상기 다른 경계 클럭들 간 상기 클럭 식별정보를 비교하고, 비교 결과에 따라 보다 작은 클럭 식별정보를 갖는 경계 클럭을 마스터 클럭으로서 결정하는 것을 특징으로 하는 시간 동기화 방법.
The method of claim 3, wherein
The determining process,
When the comparison result of the slave number information is the same, comparing the clock identification information between the other boundary clocks, and determining a boundary clock having smaller clock identification information as a master clock according to the comparison result. .
제 1항에 있어서,
하나 이상의 마스터 클럭 및 상기 하나 이상의 마스터 클럭에 상응하는 슬레이브 클럭 간의 연결이 실패한 것으로 인지되는 경우, 상기 슬레이브 클럭이 기 설정된 예비 마스터 클럭을 새로운 마스터 클럭으로서 재선정하는 과정을 더 포함하는 것을 특징으로 하는 시간 동기화 방법.
The method of claim 1,
If it is recognized that the connection between the one or more master clocks and the slave clocks corresponding to the one or more master clocks has failed, the slave clock may further include reselecting a preset preliminary master clock as a new master clock. Synchronization method.
제 5항에 있어서,
상기 예비 마스터 클럭을 선정하는 과정을 더 포함하며, 상기 예비 마스터 클럭을 선정하는 과정은,
상기 슬레이브 클럭이 상기 슬레이브 클럭에 상응하는 마스터 클럭을 제외한 인접한 경계 클럭들로부터 그랜드 마스터 클럭과의 통신거리, 슬레이브 개수정보 및 클럭 식별정보를 포함하는 경계 클럭 데이터 정보를 수신하는 과정; 및
상기 슬레이브 클럭이 상기 인접한 경계 클럭들로부터 수신한 경계 클럭 데이터 정보 간의 비교를 수행하여 상기 예비 마스터 클럭을 선정하는 과정
을 포함하는 것을 특징으로 하는 시간 동기화 방법.
The method of claim 5,
The step of selecting the preliminary master clock further, wherein the process of selecting the preliminary master clock,
Receiving, by the slave clock, boundary clock data information including a communication distance with the grand master clock, slave number information, and clock identification information from adjacent boundary clocks other than the master clock corresponding to the slave clock; And
Selecting the preliminary master clock by performing comparison between boundary clock data information received from the adjacent boundary clocks by the slave clock;
Time synchronization method comprising a.
제 6항에 있어서,
상기 각각의 경계 클럭이 상기 다른 경계 클럭들로부터 수신한 경계 클럭 데이터 정보 간의 비교결과에 따라 상기 각각의 경계 클럭에 대하여 기 선정된 예비 마스터 클럭을 갱신하는 과정을 더 포함하는 것을 특징으로 하는 시간 동기화 방법.
The method of claim 6,
And updating the preliminary preliminary preliminary master clock for each of the boundary clocks according to a comparison result between the boundary clock data information received by the respective boundary clocks from the other boundary clocks. Way.
시간 동기화 프로그램이 네트워크 장치의 하드웨어와 결합되어,
상기 네트워크 장치의 각각의 경계 클럭이 그랜드 마스터 클럭과의 통신 거리, 슬레이브 개수정보 및 클럭 식별정보를 포함하는 경계 클럭 데이터 정보를 다른 경계 클럭들로부터 각각 수신하는 과정;
상기 각각의 경계 클럭이 상기 다른 경계 클럭들로부터 수신한 경계 클럭 데이터 정보 간의 비교를 수행하는 과정; 및
상기 각각의 경계 클럭이 상기 경계 클럭 데이터 정보 간의 비교결과에 따라 마스터 클럭 또는 슬레이브 클럭으로 상기 다른 경계 클럭들의 역활을 결정하며, 상기 슬레이브 개수 정보를 활용 시 상기 비교결과에 따라 보다 적은 슬레이브 개수를 갖는 경계 클럭을 마스터 클럭으로서 결정하는 과정
을 실행시키기 위하여 컴퓨터로 읽을 수 있는 기록매체에 저장된 시간 동기화 프로그램.
The time synchronization program is combined with the hardware of the network device,
Receiving, by each boundary clock of the network device, boundary clock data information including a communication distance with a grand master clock, slave number information, and clock identification information from other boundary clocks, respectively;
Performing comparison between boundary clock data information received by the boundary clocks from the other boundary clocks; And
Each of the boundary clocks determines a role of the other boundary clocks as a master clock or a slave clock according to a comparison result between the boundary clock data information, and has a smaller number of slaves according to the comparison result when utilizing the slave number information. Determining the Perimeter Clock as the Master Clock
A time synchronization program stored on a computer readable recording medium for executing the program.
제 8항에 있어서,
상기 결정하는 과정은,
상기 각각의 경계 클럭이 상기 다른 경계 클럭들 간 상기 그랜드 마스터 클럭과의 통신 거리, 슬레이브 개수정보 및 클럭 식별정보 중 일부 또는 전부를 비교하고, 비교결과에 따라 상기 다른 경계 클럭들의 역활을 결정하는 것을 특징으로 하는 컴퓨터로 읽을 수 있는 기록매체에 저장된 시간 동기화 프로그램.
The method of claim 8,
The determining process,
Wherein each of the boundary clocks compares some or all of the communication distance with the grand master clock, slave number information, and clock identification information between the other boundary clocks, and determines the roles of the other boundary clocks according to the comparison result. A time synchronization program stored on a computer-readable recording medium.
제 8항에 있어서,
하나 이상의 마스터 클럭 및 상기 하나 이상의 마스터 클럭에 상응하는 슬레이브 클럭 간의 연결이 실패한 것으로 인지되는 경우, 상기 슬레이브 클럭이 기 설정된 예비 마스터 클럭을 새로운 마스터 클럭으로서 재선정하는 과정을 더 포함하는 것을 특징으로 하는 컴퓨터로 읽을 수 있는 기록매체에 저장된 시간 동기화 프로그램.

The method of claim 8,
If it is recognized that the connection between the at least one master clock and the slave clock corresponding to the at least one master clock has failed, the slave clock may further include reselecting a preset preliminary master clock as a new master clock. A time synchronization program stored on a readable medium.

KR1020180085482A 2018-07-23 2018-07-23 Time Synchronization Method in Precision Time Protocol Network and Computer Program Therefore KR102078529B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180085482A KR102078529B1 (en) 2018-07-23 2018-07-23 Time Synchronization Method in Precision Time Protocol Network and Computer Program Therefore

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180085482A KR102078529B1 (en) 2018-07-23 2018-07-23 Time Synchronization Method in Precision Time Protocol Network and Computer Program Therefore

Publications (2)

Publication Number Publication Date
KR20200010880A KR20200010880A (en) 2020-01-31
KR102078529B1 true KR102078529B1 (en) 2020-02-19

Family

ID=69369170

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180085482A KR102078529B1 (en) 2018-07-23 2018-07-23 Time Synchronization Method in Precision Time Protocol Network and Computer Program Therefore

Country Status (1)

Country Link
KR (1) KR102078529B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101596759B1 (en) * 2014-11-26 2016-03-07 현대자동차주식회사 Method and apparatus for providing time synchronization in in-vehicle Ethernet communication
JP6343395B2 (en) * 2014-09-29 2018-06-13 アルカテル−ルーセント Distribution of dynamic accuracy information in IEEE 1588 clock network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104541465A (en) * 2012-06-20 2015-04-22 诺基亚通信公司 Synchronization in computer network
KR20180052065A (en) * 2016-11-09 2018-05-17 지티시스템 주식회사 Apparatus and method for managing alarm message in ethernet communication network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6343395B2 (en) * 2014-09-29 2018-06-13 アルカテル−ルーセント Distribution of dynamic accuracy information in IEEE 1588 clock network
KR101596759B1 (en) * 2014-11-26 2016-03-07 현대자동차주식회사 Method and apparatus for providing time synchronization in in-vehicle Ethernet communication

Also Published As

Publication number Publication date
KR20200010880A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
US20130227008A1 (en) Clock synchronization based on predefined grandmaster
WO2015170201A1 (en) A method for robust ptp synchronization with default 1588v2 profile
KR20150016327A (en) Methods and apparatus for detecting and handling split brain issues in a link aggregation group
EP3121996B1 (en) Synchronization failure processing method and system for clock and time synchronization network
EP2519037A1 (en) Method and network for sharing sensor data among mobile terminals
US11329866B2 (en) Battery management system and communication method thereof
CN112425124B (en) Topology discovery in automotive Ethernet networks
CN108494828B (en) Node data updating method, medium, device and computing equipment
JP6555445B1 (en) Time synchronization system, time master, management master, and time synchronization method
KR101398346B1 (en) Data communication system and data communication device
CN102546073B (en) Multi-clock-ring based method for avoiding clock jitter in switching process
CN106230622B (en) Cluster implementation method and device
TW201722177A (en) Zigbee network system and the backup method thereof
WO2023184983A1 (en) Method, apparatus and system for direct connection control of air conditioner, and storage medium
CN111641470A (en) Time consistency synchronization method for distributed simulation
JP6045950B2 (en) Communication control device and communication system
CN106909197B (en) Virtualization host time management method and virtualization host system
CN103825839A (en) Message transmission method and equipment based on aggregated link
US20190068441A1 (en) Reconfigurable network of sensors
CN107995047B (en) Topology networking method and device for data center
KR102078529B1 (en) Time Synchronization Method in Precision Time Protocol Network and Computer Program Therefore
CN114826466A (en) Selection and switching method of redundant master clock
TW201516657A (en) Interpreting signals received from redundant buses
JP6240635B2 (en) Wireless communication method and wireless communication system
WO2019134653A1 (en) Synchronization information transmission method, synchronization method, network node and storage medium

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant