KR101973264B1 - Clocks timing fault recovery method and apparatus in precision time protocol system - Google Patents

Clocks timing fault recovery method and apparatus in precision time protocol system Download PDF

Info

Publication number
KR101973264B1
KR101973264B1 KR1020170083194A KR20170083194A KR101973264B1 KR 101973264 B1 KR101973264 B1 KR 101973264B1 KR 1020170083194 A KR1020170083194 A KR 1020170083194A KR 20170083194 A KR20170083194 A KR 20170083194A KR 101973264 B1 KR101973264 B1 KR 101973264B1
Authority
KR
South Korea
Prior art keywords
time synchronization
port
time
message
ptp
Prior art date
Application number
KR1020170083194A
Other languages
Korean (ko)
Other versions
KR20190002906A (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 KR1020170083194A priority Critical patent/KR101973264B1/en
Publication of KR20190002906A publication Critical patent/KR20190002906A/en
Application granted granted Critical
Publication of KR101973264B1 publication Critical patent/KR101973264B1/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/04Speed or phase control by synchronisation signals

Abstract

PTP(precision time protocol) 시스템에서의 시간 동기 장애 복구 방법 및 그 장치가 개시된다. PTP(Precision Time Protocol)에서 슬레이브 노드의 시간 동기 장애 복구 방법은, 특정 포트로 시간 동기화가 수행되는 동안 장애가 발생한 경우 나머지 표토들로 시간 동기 신호를 수신하고 수신된 시간 동기 신호들 중 최적의 시간 동기 신호를 통하여 시간 동기화를 수행할 수 있다. 이를 통해, 본 발명은 장애를 빠른 시간에 감지하여 복구함으로써 네트워크의 시간 동기를 안정적으로 유지할 수 있는 이점이 있다. A time synchronization failure recovery method and apparatus in a precision time protocol (PTP) system are disclosed. The method of recovering the time synchronization failure of the slave node in the PTP (Precision Time Protocol) is a method of recovering the time synchronization failure of the slave node by receiving a time synchronization signal to the remaining topsoil in case of a failure during time synchronization to a specific port, Time synchronization can be performed through a signal. Accordingly, the present invention has an advantage in that time synchronization of the network can be stably maintained by detecting and recovering a failure in a short period of time.

Description

PTP(precision time protocol) 시스템에서의 시간 동기 장애 복구 방법 및 그 장치{Clocks timing fault recovery method and apparatus in precision time protocol system}TECHNICAL FIELD [0001] The present invention relates to a time synchronization failure recovery method and apparatus in a PTP (precision time protocol)

본 발명은 PTP 시스템에서의 시간 동기 장애 복구 방법 및 그 장치에 관한 것이다. The present invention relates to a time synchronization failure recovery method and apparatus in a PTP system.

Precision Time Protocol 시스템은 두 노드(장비)간 특별한 메시지를 송수신함으로써 시간을 계산하고 동기를 맞출 수 있다. 이러한 PTP는 네트워크 정밀 시간 동기를 위한 IEEE 표준으로, 100ns 이하의 시간 동기에 적용이 가능하다.The Precision Time Protocol system can calculate and synchronize time by sending and receiving special messages between two nodes (machines). This PTP is an IEEE standard for network precision time synchronization, and can be applied to time synchronization of less than 100 ns.

그러나 현재 PTP 시스템 표준에는 고장 장애에 대한 논의는 있으나, 이에 대한 해결 방법에 대해 표준으로 제시된 바가 없다. However, the current PTP system standard has a discussion of fault tolerance, but there is no standard for how to solve it.

본 발명은 PTP 시스템에서의 시간 동기 장애 복구 방법 및 그 장치를 제공하기 위한 것이다.The present invention provides a method and apparatus for recovering a time synchronization failure in a PTP system.

본 발명은 PTP 시스템에서 특정 포트로의 시간 동기화 도중 장애가 발생하면, 다른 포트를 통해 시간 동기화를 수행할 수 있는 PTP 시스템에서의 시간 동기 장애 복구 방법 및 그 장치를 제공하기 위한 것이다. The present invention provides a method and apparatus for recovering a time synchronization failure in a PTP system capable of performing time synchronization through another port when a failure occurs during time synchronization from a PTP system to a specific port.

본 발명의 일 측면에 따르면 PTP(precision time protocol) 시스템에서의 시간 동기 장애 복구 방법이 제공된다. According to an aspect of the present invention, a time synchronization failure recovery method in a precision time protocol (PTP) system is provided.

본 발명의 일 실시예에 따르면, PTP(Precision Time Protocol)에서 슬레이브 노드의 시간 동기 장애 복구 방법에 있어서, 제1 포트를 통해 시간 동기화를 수행하는 동안 장애 발생 여부를 판단하는 단계; 및 상기 제1 포트에 장애가 발생한 경우, 제2 포트를 통해 시간 동기 신호를 수신하여 시간 동기화를 수행하는 단계를 포함하는 PTP에서 슬레이브 노드의 시간 동기 장애 복구 방법이 제공될 수 있다. According to an embodiment of the present invention, there is provided a method of recovering a time synchronization failure of a slave node in a Precision Time Protocol (PTP), the method comprising: determining whether a failure occurs during time synchronization through a first port; And receiving the time synchronization signal through the second port and performing time synchronization when a failure occurs in the first port, the time synchronization failure recovery method of the slave node in the PTP may be provided.

제1 포트의 장애 발생 여부를 판단하는 단계는, 상기 제1 포트로부터 기준 시간 동안 공지 메시지(announce message)가 미수신되면, 상기 제1 포트로의 링크에 장애가 발생한 것으로 판단할 수 있다.The step of determining whether or not a fault has occurred in the first port may determine that a failure has occurred in the link to the first port when an announce message is not received during the reference time from the first port.

상기 제2 포트를 통해 시간 동기화를 수행하는 단계는, 비활성화 상태인 상기 제2 포트를 활성화 상태로 변경한 후 상기 제2 포트를 통해 시간 동기 신호를 수신하여 시간 동기화를 수행할 수 있다.The performing time synchronization through the second port may perform time synchronization by receiving the time synchronization signal through the second port after changing the inactive second port to the active state.

상기 시간 동기화를 수행하는 단계 이전에, 활성화 상태로 변경되는 상기 제2 포트는 복수이되, 복수의 활성화 상태로 변경된 제2 포트 중 어느 하나를 최적 포트로 선정한 후 나머지 포트를 비활성 상태로 변경할 수 있다.Before performing the time synchronization, one of the second ports changed to the activated state may be a plurality of the second ports changed to the plurality of activated states, and then the remaining ports may be changed to the inactive state .

본 발명의 다른 실시예에 따르면, PTP(Precision Time Protocol)에서 슬레이브 노드의 시간 동기 장애 복구 방법에 있어서, 복수의 포트를 통해 링크 확인 메시지(Link Alive message)를 전송하는 단계; 및 상기 링크 확인 메시지의 응답으로 상기 복수의 포트 중 적어도 일부 포트를 통해 수신되는 시간 동기 신호를 이용하여 시간 동기화를 수행하는 단계를 포함하는 PTP에서 슬레이브 노드의 시간 동기 장애 복구 방법이 제공될 수 있다.According to another embodiment of the present invention, there is provided a method of recovering a time synchronization failure of a slave node in a Precision Time Protocol (PTP), the method comprising: transmitting a link acknowledgment message through a plurality of ports; And performing time synchronization using a time synchronization signal received through at least some ports of the plurality of ports in response to the link confirmation message, in a PTP, .

상기 시간 동기화를 수행하는 단계는, 상기 복수의 포트 중 적어도 일부를 통해 상기 링크 확인 메시지에 대한 응답으로 공지 메시지(Announce message)를 수신하는 단계; 및 상기 수신된 공지 메시지를 이용하여 마스터 노드를 선택한 후 상기 선택된 마스터 노드와 시간 동기화를 수행하는 단계를 포함할 수 있다.The performing time synchronization may include receiving an announcement message in response to the link confirmation message through at least a portion of the plurality of ports; And selecting a master node using the received notification message and performing time synchronization with the selected master node.

상기 수신된 공지 메시지를 이용하여 마스터 노드를 선택하는 것은, 상기 수신된 공지 메시지에 포함된 시간 정보를 이용하여 상기 복수의 포트 중 적어도 일부의 각 포트와 연결된 마스터 노드 중 어느 하나를 선택할 수 있다.The selecting of the master node using the received notification message can select any of the master nodes connected to each port of at least a part of the plurality of ports by using the time information included in the received notification message.

제1 기준 시간 동안 상기 링크 확인 메시지의 응답이 미수신되면, 상기 복수의 포트를 통해 재전송하는 단계; 및 상기 재전송 이후 제2 기준 시간 동안 응답이 미수신되면, 상기 슬레이브 노드는 마스터 노드로 설정되어 하의 서브 네트워크에 공지 메시지를 전송하여 서브 네트워크에 포함된 서브 노드들과의 시간 동기화를 수행하는 단계를 더 포함할 수 있다.Retransmitting through the plurality of ports if a response of the link confirmation message is not received during a first reference time; And if the response is not received during the second reference time after the retransmission, the slave node is set as a master node and transmits a notification message to a lower sub network to perform time synchronization with the sub nodes included in the sub network .

본 발명의 또 다른 실시예에 따르면, PTP 시스템에서 시간 동기화를 위한 프레임 구조에 있어서, 헤더 필드; 및 데이터 필드를 포함하되, 상기 데이터 필드는 노드의 상태가 포함되는 제1 플래그 필드, 동기 신호 요청 여부를 포함하는 제2 플래그 필드 및 메시지를 전송한 포트의 아이디를 포함하는 제3 필드를 포함하는 것을 특징으로 하는 PTP 시스템에서 시간 동기화를 위한 프레임 구조가 제공될 수 있다.According to another embodiment of the present invention, there is provided a frame structure for time synchronization in a PTP system, the frame structure comprising: a header field; And a data field, wherein the data field includes a first field including a status of a node, a second flag field including whether a synchronous signal is requested, and a third field including an ID of a port transmitting the message A frame structure for time synchronization in the PTP system can be provided.

본 발명의 또 다른 실시예에 따르면, PTP 시스템에서 시간 동기화를 위한 프레임 구조에 있어서, 헤더 필드; 및 데이터 필드를 포함하되, 노드 타입이 포함되는 제1 플래그 필드, 시간 정보 요청 여부를 나타내는 제2 플래그 필드, 슬레이브의 전송 포트 아이디가 포함되는 제3 필드, 마스터의 전송 포트 아이디가 포함되는 제4 필드를 포함하는 것을 특징으로 하는 프레임 구조가 제공될 수 있다.According to another embodiment of the present invention, there is provided a frame structure for time synchronization in a PTP system, the frame structure comprising: a header field; And a data field, wherein a first flag field including a node type, a second flag field indicating whether a time information is requested, a third field including a slave transmission port ID, a fourth field including a master transmission port ID, Field may be provided.

본 발명의 다른 측면에 따르면, 본 발명의 일 실시예에 따르면 PTP(precision time protocol) 시스템에서의 시간 동기 장애 복구를 위한 장치가 제공된다.According to another aspect of the present invention, there is provided an apparatus for time-synchronous failure recovery in a precision time protocol (PTP) system, according to an embodiment of the present invention.

본 발명의 일 실시예에 따르면, PTP(Precision Time Protocol)에서 시간 동기 장애 복구를 수행하는 슬레이브 노드에 있어서, 제1 포트를 통해 시간 동기화를 수행하는 동안 장애 발생 여부를 판단하는 감지부; 및 상기 제1 포트에 장애가 발생한 경우, 제2 포트를 통해 시간 동기 신호를 수신하여 시간 동기화를 수행하는 동기화부를 포함하는 슬레이브 노드가 제공될 수 있다. According to an embodiment of the present invention, there is provided a slave node performing a time synchronization failure recovery in a PTP (Precision Time Protocol), the slave node comprising: a sensing unit for determining whether a failure has occurred during time synchronization through a first port; And a synchronization unit receiving the time synchronization signal through the second port and performing time synchronization when a failure occurs in the first port.

본 발명의 다른 실시예에 따르면, PTP(Precision Time Protocol)에서 시간 동기 장애 복구를 수행하는 슬레이브 노드에 있어서, 복수의 포트를 통해 링크 확인 메시지(Link Alive message)를 전송하는 통신부; 및 상기 링크 확인 메시지의 응답으로 상기 복수의 포트 중 적어도 일부 포트를 통해 수신되는 시간 동기 신호를 이용하여 시간 동기화를 수행하는 동기화부를 포함하는 슬레이브 노드가 제공될 수 있다. According to another embodiment of the present invention, there is provided a slave node for performing a time synchronization failure recovery in a PTP (Precision Time Protocol), comprising: a communication unit for transmitting a link acknowledgment message through a plurality of ports; And a synchronization unit for performing time synchronization using a time synchronization signal received through at least some ports of the plurality of ports in response to the link confirmation message.

본 발명의 일 실시예에 따른, PTP(precision time protocol) 시스템에서의 시간 동기 장애 복구 방법 및 그 장치를 제공함으로써, PTP 시스템에서 특정 포트로의 시간 동기화 도중 장애가 발생하면, 다른 포트를 통해 시간 동기화를 수행하여 시간 장애를 복구할 수 있다. The present invention provides a method and apparatus for recovering a time synchronization failure in a PTP (precision time protocol) system, in which, when a failure occurs during time synchronization from a PTP system to a specific port, To recover time failure.

도 1은 본 발명의 일 실시예에 따른 PTP 네트워크 시스템을 설명하기 위해 도시한 도면.
도 2에는 PTP에서 마스터-슬레이브 포트 상태를 설명하기 위해 도시한 도면.
도 3은 일반적인 PTP에서의 시간 동기화 방법을 나타낸 흐름도.
도 4는 본 발명의 일 실시예에 따른 PTP에서 시간 동기 장애 복구 방법을 설명하기 위해 도시한 순서도.
도 5, 도 6, 도 8, 도 10, 도 11 및 도 13은 본 발명의 일 실시예에 따른 PTP에서 시간 동기 장애 복구 방법을 설명하기 위해 도시한 도면.
도 7은 본 발명의 일 실시예에 따른 PTP에서 시간 동기 장애 복구 방법을 설명하기 위해 도시한 흐름도.
도 9는 본 발명의 일 실시예에 따른 Link Alive Message 포맷을 나타낸 도면.
도 12는 본 발명의 일 실시예에 따른 공지 메시지(Announce message)의 포맷을 나타낸 도면.
도 14는 본 발명의 일 실시예에 따른 PTP에서 슬레이브 노드의 내부 구성을 개략적으로 도시한 도면.
1 is a diagram illustrating a PTP network system according to an embodiment of the present invention;
Fig. 2 is a diagram for explaining master-slave port status in PTP; Fig.
3 is a flowchart illustrating a time synchronization method in a general PTP.
4 is a flowchart illustrating a time synchronization failure recovery method in a PTP according to an embodiment of the present invention.
5, 6, 8, 10, 11, and 13 are diagrams for explaining a time synchronization failure recovery method in a PTP according to an embodiment of the present invention.
FIG. 7 is a flowchart illustrating a time synchronization failure recovery method in a PTP according to an embodiment of the present invention; FIG.
9 is a diagram illustrating a Link Alive Message format according to an embodiment of the present invention.
FIG. 12 illustrates a format of an announcement message according to an embodiment of the present invention; FIG.
FIG. 14 schematically illustrates an internal configuration of a slave node in a PTP according to an embodiment of the present invention; FIG.

본 명세서에서 사용되는 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "구성된다" 또는 "포함한다" 등의 용어는 명세서상에 기재된 여러 구성 요소들, 또는 여러 단계들을 반드시 모두 포함하는 것으로 해석되지 않아야 하며, 그 중 일부 구성 요소들 또는 일부 단계들은 포함되지 않을 수도 있고, 또는 추가적인 구성 요소 또는 단계들을 더 포함할 수 있는 것으로 해석되어야 한다. 또한, 명세서에 기재된 "...부", "모듈" 등의 용어는 적어도 하나의 기능이나 동작을 처리하는 단위를 의미하며, 이는 하드웨어 또는 소프트웨어로 구현되거나 하드웨어와 소프트웨어의 결합으로 구현될 수 있다.As used herein, the singular forms "a", "an" and "the" include plural referents unless the context clearly dictates otherwise. In this specification, the terms " comprising ", or " comprising " and the like should not be construed as necessarily including the various elements or steps described in the specification, Or may be further comprised of additional components or steps. Also, the terms " part, " " module, " and the like described in the specification mean units for processing at least one function or operation, which may be implemented in hardware or software or a combination of hardware and software .

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

도 1은 본 발명의 일 실시예에 따른 PTP 네트워크 시스템을 설명하기 위해 도시한 도면이다. PTP(Precision Time Protocol) 시스템은 두 노드(장비)간 특별한 메시지를 송수신함으로써 시간을 계산하고 동기를 맞출 수 있다. 이러한 PTP는 네트워크 정밀 시간 동기를 위한 IEEE 표준으로, 100ns 이하의 시간 동기에 적용이 가능하다.FIG. 1 is a diagram illustrating a PTP network system according to an embodiment of the present invention. Referring to FIG. Precision Time Protocol (PTP) systems can calculate and synchronize time by sending and receiving special messages between two nodes (equipment). This PTP is an IEEE standard for network precision time synchronization, and can be applied to time synchronization of less than 100 ns.

PTP 네트워크 시스템에서의 시간 동기는 도 1에 도시된 바와 같이, 각 장치(노드)들의 마스터-슬레이브 계층 구조를 기반으로 루트 마스터(root master)의 시간 정보를 전체 네트워크에 전송하여 동기를 맞춘다.The time synchronization in the PTP network system synchronizes time information of the root master to the entire network based on the master-slave hierarchy of each device (node) as shown in FIG.

도 2에는 PTP에서 마스터-슬레이브 포트 상태를 설명하기 위해 도시한 도면이다. 도 2를 참조하면, 마스터(master)는 해당 상태의 포트에서 제공되는 시간은 다른 포트들의 기준이 되는 것으로, 노드의 출력 포트가 mater 포트일 수 있다. 또한, 슬레이브(slave)는 해당 상태의 포트는 노드(장치)가 마스터 상태의 포트에 동기화되는 것을 의미한다. 따라서, 노드의 입력 포트가 slave 포트일 수 있다. 패시브(passive)는 해당 상태의 포트는 마스터가 아니고, 마스터에 동기화되지 않는 것을 의미한다. FIG. 2 is a diagram illustrating a master-slave port state in the PTP. Referring to FIG. 2, the time provided at the port of the master is a reference of other ports, and the output port of the node may be the mater port. Also, the slave means that the port in the corresponding state is synchronized with the port in the master state by the node (device). Thus, the input port of the node may be a slave port. Passive means that the port in that state is not the master and is not synchronized to the master.

도 3를 참조하여 종래의 PTP에서의 시간 동기화 방법에 대해 간략하게 설명하기로 한다.The time synchronization method in the conventional PTP will be briefly described with reference to FIG.

도 3은 일반적인 PTP에서의 시간 동기화 방법을 나타낸 흐름도이다.3 is a flowchart illustrating a time synchronization method in a general PTP.

도 3에 도시된 바와 같이, 마스터가 동기화를 수행하는 슬레이브로 현재 표준 시간이 포함된 동기(sync) 메시지를 전송한다. 이때, 마스터는 모든 슬레이브에 동기 메시지를 브로드캐스팅할 수 있다(310). As shown in FIG. 3, the master transmits a sync message including a current standard time to a slave performing synchronization. At this time, the master can broadcast a synchronization message to all the slaves (310).

동기 메시지를 전송한 후, 마스터는 동기 메시지에 대한 타입 스템프 정보가 포함된 후속 메시지(follow up)를 슬레이브로 전송(브로드캐스팅)한다(315).After transmitting the synchronization message, the master transmits (broadcasts) a follow-up message including type stamp information for the synchronization message to the slave (315).

마스터의 메시지를 수신한 슬레이브는 자신의 시간과 수신된 시간을 비교하여 오프셋을 계산한다.The slave receiving the master's message compares its time with the received time to calculate the offset.

도 3에서는 슬레이브의 시간과 마스터로부터 수신된 시간이 +3 만큼 차이가 발생하므로 슬레이브는 오프셋을 계산하여 자신의 시간을 변경한다.In FIG. 3, since the difference between the slave time and the master received time is +3, the slave calculates the offset and changes its own time.

이러한 오프셋 정보는 마스터와 슬레이브 사이의 메시지 전송 지연이 반영되지 않았으므로, 이를 확인하기 위해서 슬레이브는 마스터에 지연 요청 메시지를 전송(320)하고, 이를 수신한 마스터는 자신의 수신 시 표준 시간 정보를 포함하는 지연 응답 메시지를 슬레이브에 전송한다(325).Since the offset information does not reflect the message transmission delay between the master and the slave, the slave transmits (320) a delay request message to the master in order to check the offset information, and the master receiving the offset information includes the standard time information To the slave (325).

슬레이브는 지연 응답 메시지를 수신한 시간에서 지연 요청 메시지를 전송한 시간을 뺀 지연 정보를 구하여 그절반을 자신과 마스터 사이의 지연으로 간주한다. 도 3에서는 지연 응답 메시지를 수신한 시간에서 지연 요청 메시지를 전송한 시간의 절반에 해당하는 +2를 지연 정보로 계산한다.The slave obtains the delay information by subtracting the delay request message transmission time from the time when the delay response message is received, and regards half of the delay information as a delay between itself and the master. In FIG. 3, +2 corresponding to half of the time at which the delay request message is transmitted at the time of receiving the delay response message is calculated as delay information.

이렇게 슬레이브는 표준 시간 동기화를 위한 오프셋과 지연 정보를 계산한 후 이를 자신의 시간 정보에 반영하여 표준 시간과 동기화를 수행함으로써 네트워크 상의 시간 서버를 이용하여 표준 시간을 알 수 있다.In this way, the slave calculates the offset and delay information for standard time synchronization, reflects it in its own time information, and synchronizes with the standard time so that the standard time can be known using the time server on the network.

PTP와 관련된 표준에서는 시간 동기화가 수행되는 도중 장애가 발생한 경우, 이를 해결하기 위한 방안에 대해서는 제시되어 있지 않다. 따라서, 이하에서 본 발명의 일 실시예에 따른 PTP에서의 시간 동기 장애 복구 방법에 대해 보다 상세히 설명하기로 한다.The standard related to PTP does not provide a solution to the problem when a time synchronization occurs. Therefore, the time synchronization failure recovery method in the PTP according to an embodiment of the present invention will be described in more detail.

도 4는 본 발명의 일 실시예에 따른 PTP에서 시간 동기 장애 복구 방법을 설명하기 위해 도시한 순서도이고, 도 5, 도 6, 도 8, 도 10, 도 11 및 도 13은 본 발명의 일 실시예에 따른 PTP에서 시간 동기 장애 복구 방법을 설명하기 위해 도시한 도면이고, 도 7은 본 발명의 일 실시예에 따른 PTP에서 시간 동기 장애 복구 방법을 설명하기 위해 도시한 흐름도이고, 도 9는 본 발명의 일 실시예에 따른 Link Alive Message 포맷을 나타낸 도면이며, 도 12는 본 발명의 일 실시예에 따른 공지 메시지(Announce message)의 포맷을 나타낸 도면이다.FIG. 4 is a flowchart illustrating a time synchronization failure recovery method in a PTP according to an exemplary embodiment of the present invention. FIGS. 5, 6, 8, 10, 11, FIG. 7 is a flowchart illustrating a time synchronization failure recovery method in a PTP according to an embodiment of the present invention. FIG. 9 is a flowchart illustrating a time synchronization failure recovery method in a PTP according to an exemplary embodiment of the present invention. FIG. 12 is a diagram illustrating a format of a public announcement message according to an embodiment of the present invention. Referring to FIG.

단계 410에서 슬레이브 노드는 특정 포트로 시간 동기화를 수행하는 도중 장애가 발생했는지 여부를 판단한다. In step 410, the slave node determines whether a failure has occurred while performing time synchronization with a specific port.

예를 들어, 슬레이브 노드는 특정 포트를 통해 기준 시간(예를 들어, 3초) 동안 공지 메시지(announce-message)가 수신되지 않으면, 해당 특정 포트로의 링크에 장애가 발생된 것으로 판단할 수 있다. For example, the slave node may determine that a failure has occurred in the link to the specific port if an announce-message is not received for a reference time (e.g., 3 seconds) through a specific port.

이에 따라, 장애가 발생한 것으로 판단된 경우, 단계 415에서 슬레이브 노드는 다른 포트를 통해 다른 마스터 노드를 통해 시간 동기 메시지를 수신하고, 이를 이용하여 시간 동기화를 수행한다. Accordingly, if it is determined that a failure has occurred, the slave node receives the time synchronization message through another port through another master node in step 415, and performs time synchronization using the received time synchronization message.

이에 대해 보다 상세히 설명하면 다음과 같다. This will be described in more detail as follows.

예를 들어, 도 5에 도시된 바와 같이 슬레이브 노드가 제1 링크(510)를 통해 마스터 노드와 시간 동기화 도중에 해당 제1 링크에 장애가 발생하였다고 가정하자. 이때, 슬레이브 노드는 제2 포트(520A)와 제3 포트(520B)가 각각 비활성 상태로 설정되어 있다고 가정하기로 한다.For example, assume that the slave node has failed over the first link 510 during time synchronization with the master node via the first link 510, as shown in FIG. At this time, it is assumed that the second port 520A and the third port 520B of the slave node are set in the inactive state, respectively.

슬레이브 노드는 도 5와 같이 비활성 상태인 제2 포트(520A)와 제3 포트(520B)를 도 6과 같이 활성 상태로 변경한다. The slave node changes the inactive second port 520A and the third port 520B to the active state as shown in FIG.

이와 같이, 비활성 포트를 모두 활성 상태로 변경한 후 도 7에 도시된 이후 과정을 수행한다.After all the inactive ports are changed to the active state, the subsequent steps shown in FIG. 7 are performed.

이하, 도 7을 참조하여 이후 시간 동기 장애 복구 방법에 대해 보다 상세히 설명하기로 한다. Hereinafter, the time synchronization failure recovery method will be described in more detail with reference to FIG.

단계 710에서 슬레이브 노드는 활성 상태로 변경된 모든 포트를 통해 링크 확인 메시지(Link Alive Message)를 전송한다.In step 710, the slave node transmits a Link Alive Message through all ports changed to the active state.

도 8에서 보여지는 바와 같이, 슬레이브 노드는 활성 상태의 모든 포트를 통해 Link Alive Message를 전송할 수 있다. 도 6에 도시된 바와 같이, 제2 포트(520A)와 제3 포트(520B)가 활성 상태로 변경되었으므로, 슬레이브 노드는 활성 상태로 설정된 제1 포트 내지 제3 포트를 통해 Link Alive Message를 전송할 수 있다. As shown in FIG. 8, the slave node can transmit the Link Alive Message through all ports in the active state. As shown in FIG. 6, since the second port 520A and the third port 520B are changed to the active state, the slave node can transmit the Link Alive Message through the first port to the third port set in the active state have.

도 9에는 본 발명의 일 실시예에 따른 Link Alive Message 포맷이 도시되어 있다. 도 9를 참조하면, Link-Alive-Message는 8비트의 PTP 헤더 필트와 데이터 필드를 포함한다. 여기서, PTP 헤더 필드에 포함되는 각각의 필드에 대한 신택스는 도 6에 도시된 바와 같다. PTP 헤더 필드에 포함되는 각각의 필드에 대한 신택스는 당업자에게는 자명한 사항이므로 이에 대한 별도의 설명은 생략하기로 한다.FIG. 9 shows a Link Alive Message format according to an embodiment of the present invention. Referring to FIG. 9, the Link-Alive-Message includes an 8-bit PTP header field and a data field. Here, the syntax for each field included in the PTP header field is as shown in FIG. The syntax for each field included in the PTP header field will be obvious to those skilled in the art and will not be described further.

데이터 필드에는 시그널링 메시지에 관련된 데이터가 포함된다. 이러한 데이터 필드는 도 9에 도시된 바와 같이, 제1 플래그 필드, 제2 플래그 필드 및 포트 필드를 포함한다.The data field includes data related to the signaling message. This data field includes a first flag field, a second flag field, and a port field, as shown in FIG.

제1 플래그 필드는 예를 들어, Link Alive Flag 필드로, 1인 경우 슬레이브를 나타내고 0이면 마스터를 나타낸다. The first flag field is, for example, a Link Alive Flag field. When the flag is 1, it indicates a slave. If 0, it indicates a master.

제2 플래그 필드는 동기 요청 플래그(Clock Request Flag) 필드로, 1이면 동기 신호 요청을 나타낸다. The second flag field indicates a synchronization request flag (Clock Request Flag) field.

또한, 포트 필드는 슬레이브 노드에서 해당 메시지를 전송한 포트 ID가 포함된다. In addition, the port field includes a port ID of a message transmitted from the slave node.

단계 715에서 슬레이브 노드는 활성 상태의 포트 중 적어도 일부를 통해 Link-Alive-Message"를 수신한 마스터 노드로부터 공지 메시지를 수신한다.At step 715, the slave node receives a notification message from the master node that has received the Link-Alive-Message through at least a portion of the active ports.

여기서, 공지 메시지는 각 마스터 노드의 시간 정보를 수신할 수 있다. Here, the notification message can receive the time information of each master node.

예를 들어, 활성 상태로 변경된 포트가 두개인 경우, 슬레이브 노드는 두 포트를 통해 각기 다른 마스터 노드로 "Link-Alive-Message"를 전송할 수 있다. 복수의 마스터 노드로 "Link-Alive-Message"가 전송된 이후 해당 메시지를 수신한 마스터 노드는 슬레이브 노드로 공지 메시지를 전송한다. 슬레이브 노드가 활성 상태로 변경된 두개의 포트를 통해 "Link-Alive-Message"를 전송하더라도 두개의 마스터 노드가 모두 "Link-Alive-Message"를 수신하는 것을 보증하지는 않는다. 경우에 따라 하나의 마스터 노드에 있는 여러 포트가 슬레이브 노드의 여러 포트와 연결되어 있기에 이러한 경우는 하나의 마스터 노드가 "Link-Alive-Message"를 수신할 수 있다. For example, if there are two ports that have changed to the active state, the slave node can send a "Link-Alive-Message" to the other master node via the two ports. After the "Link-Alive-Message" is transmitted to the plurality of master nodes, the master node receiving the message transmits a notification message to the slave node. Even if the slave node transmits a "Link-Alive-Message" via two ports that have been changed to the active state, it does not guarantee that both master nodes receive the "Link-Alive-Message". In some cases, multiple ports on one master node are connected to multiple ports on the slave node, so that one master node can receive a "Link-Alive-Message".

예를 들어 도 10을 참조하여 설명하기로 한다. 슬레이브 노드는 도 8에 도시된 바와 같이, 제1 포트 내지 제3 포트를 통해 각각의 마스터 노드로 "Link-Alive-Message"를 전송하였다. 그러나, 이미 전술한 바와 같이, 제1 포트로의 링크에 장애가 발생하였으므로, 도 10에 도시된 바와 같이, 제1 포트에 연결된 마스터 노드는 슬레이브 노드의 "Link-Alive-Message"를 수신하지 못하므로 그에 따른 응답을 전송하지 않는다. 다만, 제2 포트와 제3 포트의 링크를 장애가 발생하지 않은 상태이므로, 제2 포트와 제3 포트에 연결된 마스터 노드는 "Link-Alive-Message"를 수신하고, 도 10에 도시된 바와 같이, 응답으로 각 마스터 노드의 시간 정보를 포함하는 공지 메시지를 전송한다. For example, with reference to FIG. The slave node transmits a " Link-Alive-Message " to each of the master nodes through the first to third ports as shown in Fig. However, as described above, since the failure has occurred in the link to the first port, the master node connected to the first port does not receive the " Link-Alive-Message " of the slave node And does not transmit a response thereto. However, since no failure has occurred in the link between the second port and the third port, the master node connected to the second port and the third port receives the " Link-Alive-Message " And sends a notification message containing the time information of each master node in response.

슬레이브 노드는 공지 메시지에 포함된 각 마스터 노드의 시간 정보를 이용하여 최적의 마스터 노드를 선택한다. 이는 PTP 표준에 따른 Best Clock Time 알고리즘을 이용하여 최적의 마스터 노드를 선택할 수 있다.The slave node selects the optimal master node using the time information of each master node included in the announcement message. It is possible to select the optimum master node by using the best clock time algorithm according to the PTP standard.

도 11에 도시된 바와 같이, 제3 포트의 링크에 연결된 마스터 노드가 최적의 마스터 노드가 선택되었다고 가정하기로 한다. 슬레이브 노드는 마스터-슬레이브 계층 구조를 다시 구성할 수 있다. 즉, 마스터-슬레이브 계층에서 슬레이브는 시간 정보를 수신하는 포트만 활성 상태(Active)로 변경하고, 나머지 포트는 비활성 상태(Passive)로 설정할 수 있다. 즉, 도 11에 도시된 바와 같이, 최적 마스터 노드로 선정된 노드와 연결된 포트(제3 포트)만 활성 상태를 유지하며, 나머지 포트(제1 포트, 제2 포트)는 비활성 상태로 변경한다. As shown in FIG. 11, it is assumed that the master node connected to the link of the third port selects the optimal master node. The slave node can reconfigure the master-slave hierarchy. That is, in the master-slave layer, the slave can change only the port receiving the time information to the active state and set the remaining ports to the passive state. That is, as shown in FIG. 11, only the port (the third port) connected to the node selected as the optimum master node remains active, and the remaining ports (the first port and the second port) are changed to the inactive state.

도 715에서는 Link-Alive-Message에 대한 응답으로 공지 메시지가 수신된 것을 가정하여 설명하고 있으나, 공지 메시지가 미수신될 수도 있다. 이와 같은 경우, 슬레이브 노드는 제2 기준 시간(예를 들어, 6초)동안 마스터 노드로부터 공지 메시지가 수신되기를 대기한다. 그러나, 제2 기준 시간 동안 공지 메시지가 미수신되면, 슬레이브 노드는 슬레이브의 상태를 마스터로 변경한 후 하위 네트워크에 공지 메시지를 전송하여 시간 동기화를 수행할 수 있다. 715, it is assumed that a notification message is received in response to a Link-Alive-Message, but a notification message may not be received. In this case, the slave node waits for a notification message from the master node to be received for a second reference time (e.g., 6 seconds). However, if the notification message is not received during the second reference time, the slave node may change the state of the slave to master and transmit a notification message to the sub-network to perform time synchronization.

단계 720에서 슬레이브 노드는 동기 요청 메시지(Sync request message)를 마스터 노드로 전송한다. In step 720, the slave node transmits a sync request message to the master node.

도 11에는 본 발명의 일 실시예에 다른 동기 요청 메시지의 포맷이 예시되어 있다. 도 11을 참조하면, 동기 요청 메시지는, 제1 플래그 필드, 제2 플래그 필드, 제1 포트 필드, 제2 포트 필드를 포함한다. 물론, 동기 요청 메시지는 도 11에는 도시되어 있지 않으나, 도 9에 도시된 바와 같은 PTP 헤더를 포함할 수 있음은 당연하다.FIG. 11 illustrates a format of a synchronization request message according to an embodiment of the present invention. Referring to FIG. 11, the synchronization request message includes a first flag field, a second flag field, a first port field, and a second port field. Of course, the synchronization request message is not shown in FIG. 11, but it is of course possible to include a PTP header as shown in FIG.

제1 플래그 필드는 슬레이브 노드를 정의하는 필드로, 1이면 슬레이브 노드를 나타낸다. 제2 플래그 필드는 시간 정보 요청 여부를 나타낸다. 제2 플래그 필드가 1이면 시간 정보를 나타내는 것으로 해석될 수 있다.The first flag field is a field for defining a slave node, and 1 indicates a slave node. The second flag field indicates whether to request time information. If the second flag field is 1, it can be interpreted as representing time information.

제1 포트 필드는 슬레이브 노드의 전송 포트 아이디가 포함되며, 제2 포트 필드는 마스터 노드의 전송 포트 아이디가 포함된다. The first port field includes the transmission port ID of the slave node, and the second port field includes the transmission port ID of the master node.

단계 725에서 슬레이브 노드는 마스터 노드로부터 동기 신호(Sync message)를 수신하고, 이를 이용하여 시간 동기화를 시작한다(도 13 참조). 이후의 동작 과정은 도 3에서 설명한 바와 동일하므로 중복되는 설명은 생략하기로 한다. In step 725, the slave node receives a sync signal from the master node and uses it to start time synchronization (see FIG. 13). The subsequent operation process is the same as that described with reference to FIG. 3, and a duplicate description will be omitted.

도 14는 본 발명의 일 실시예에 따른 PTP에서 슬레이브 노드의 내부 구성을 개략적으로 도시한 도면이다.FIG. 14 is a diagram schematically illustrating an internal configuration of a slave node in a PTP according to an embodiment of the present invention. Referring to FIG.

도 14를 참조하면, 본 발명의 일 실시예에 따른 슬레이브 노드는 통신부(1410), 감지부(1415), 동기화부(1420), 메모리(1425) 및 프로세서(1430)를 포함하여 구성된다. 14, a slave node according to an exemplary embodiment of the present invention includes a communication unit 1410, a sensing unit 1415, a synchronization unit 1420, a memory 1425, and a processor 1430.

통신부(1410)는 각각의 포트를 통해 다른 노드와 연결되어 데이터를 송수신하기 위한 수단이다.The communication unit 1410 is a means for transmitting and receiving data by being connected to other nodes through respective ports.

감지부(1415)는 특정 포트를 통해 시간 동기화를 수행하는 도중 해당 포트와 연결된 링크의 장애 발생 여부를 감지하기 위한 수단이다.The sensing unit 1415 is a unit for detecting whether or not a failure occurs in a link connected to a corresponding port during time synchronization through a specific port.

동기화부(1420)는 특정 포트에서 장애가 발생한 경우, 다른 포트를 통해 시간 동기 신호를 수신하고, 이를 통해 시간 동기화를 수행하기 위한 수단이다. 이에 대한 상세한 설명은 상술한 바와 같으므로 중복되는 설명은 생략하기로 한다.The synchronization unit 1420 is a means for receiving a time synchronization signal through another port and performing time synchronization through the other port when a failure occurs in a specific port. The detailed description thereof is the same as that described above, and a duplicate description will be omitted.

메모리(1425)는 본 발명의 일 실시예에 따른 시간 동기 장애 복구 방법을 수행하기 위해 필요한 다양한 알고리즘, 이 과정에서 파생된 다양한 데이터 등을 저장하기 위한 수단이다.The memory 1425 is a means for storing various algorithms necessary for performing the time synchronization failure recovery method according to an embodiment of the present invention, various data derived in the process, and the like.

프로세서(1430)는 본 발명의 일 실시예에 따른 슬레이브 노드의 내부 구성 요소들(예를 들어, 통신부(1410), 감지부(1415), 동기화부(1420), 메모리(1425) 등)을 제어하기 위한 수단이다. The processor 1430 controls the internal components (e.g., the communication unit 1410, the sensing unit 1415, the synchronization unit 1420, the memory 1425, etc.) of the slave node according to an embodiment of the present invention .

상술한 본 발명에 따른 PTP 시스템에서 시간 동기 장애 복구 방법은 컴퓨터로 읽을 수 있는 기록 매체에 컴퓨터가 읽을 수 있는 코드로서 구현되는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체로는 컴퓨터 시스템에 의하여 해독될 수 있는 데이터가 저장된 모든 종류의 기록 매체를 포함한다. 예를 들어, ROM(Read Only Memory), RAM(Random Access Memory), 자기 테이프, 자기 디스크, 플래쉬 메모리, 광 데이터 저장장치 등이 있을 수 있다. 또한, 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 통신망으로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 읽을 수 있는 코드로서 저장되고 실행될 수 있다. The time synchronization failure recovery method in the PTP system according to the present invention can be implemented as a computer-readable code on a computer-readable recording medium. The computer-readable recording medium includes all kinds of recording media storing data that can be decoded by a computer system. For example, it may be a ROM (Read Only Memory), a RAM (Random Access Memory), a magnetic tape, a magnetic disk, a flash memory, an optical data storage device, or the like. In addition, the computer-readable recording medium may be distributed and executed in a computer system connected to a computer network, and may be stored and executed as a code readable in a distributed manner.

상기한 본 발명의 실시예는 예시의 목적을 위해 개시된 것이고, 본 발명에 대한 통상의 지식을 가지는 당업자라면 본 발명의 사상과 범위 안에서 다양한 수정, 변경, 부가가 가능할 것이며, 이러한 수정, 변경 및 부가는 하기의 특허청구범위에 속하는 것으로 보아야 할 것이다. It will be apparent to those skilled in the art that various modifications, additions and substitutions are possible, without departing from the spirit and scope of the invention as defined by the appended claims. Should be regarded as belonging to the following claims.

1410: 통신부
1415: 감지부
1420: 동기화부
1425: 메모리
1430: 프로세서
1410:
1415:
1420:
1425: Memory
1430: Processor

Claims (13)

PTP(Precision Time Protocol)에서 슬레이브 노드의 시간 동기 장애 복구 방법에 있어서,
제1 포트를 통해 시간 동기화를 수행하는 동안 장애 발생 여부를 판단하는 단계; 및
상기 제1 포트에 장애가 발생한 경우, 제2 포트를 통해 시간 동기 신호를 수신하여 시간 동기화를 수행하는 단계를 포함하되,
제1 포트의 장애 발생 여부를 판단하는 단계는,
상기 제1 포트로부터 기준 시간 동안 공지 메시지(announce message)가 미수신되면, 상기 제1 포트로의 링크에 장애가 발생한 것으로 판단하되,
상기 공지 메시지는,
헤더 필드; 및
데이터 필드를 포함하되,
상기 데이터 필드는 노드 타입이 포함되는 제1 플래그 필드, 시간 정보 요청 여부를 나타내는 제2 플래그 필드, 슬레이브의 전송 포트 아이디가 포함되는 제3 필드, 마스터의 전송 포트 아이디가 포함되는 제4 필드를 포함하는 것을 특징으로 하는 PTP에서 슬레이브 노드의 시간 동기 장애 복구 방법.
A method for recovering a time synchronization failure of a slave node in a Precision Time Protocol (PTP)
Determining whether a failure has occurred during time synchronization through the first port; And
And performing time synchronization by receiving a time synchronization signal through a second port when a failure occurs in the first port,
The method of claim 1,
When an announce message is not received from the first port during a reference time, it is determined that a failure has occurred in the link to the first port,
The notification message includes:
Header field; And
Data fields,
The data field includes a first flag field including a node type, a second flag field indicating whether a time information is requested, a third field including a slave transmission port ID, and a fourth field including a master transmission port ID Time synchronization fault recovery method of a slave node in a PTP.
삭제delete 제1 항에 있어서,
상기 제2 포트를 통해 시간 동기화를 수행하는 단계는,
비활성화 상태인 상기 제2 포트를 활성화 상태로 변경한 후 상기 제2 포트를 통해 시간 동기 신호를 수신하여 시간 동기화를 수행하는 것을 특징으로 하는 PTP에서 슬레이브 노드의 시간 동기 장애 복구 방법.
The method according to claim 1,
Wherein performing time synchronization through the second port comprises:
Wherein the time synchronization is performed by receiving the time synchronization signal through the second port after changing the inactive state of the second port to the active state.
제3 항에 있어서,
상기 시간 동기화를 수행하는 단계 이전에,
활성화 상태로 변경되는 상기 제2 포트는 복수이되, 복수의 활성화 상태로 변경된 제2 포트 중 어느 하나를 최적 포트로 선정한 후 나머지 포트를 비활성 상태로 변경하는 것을 특징으로 하는 PTP에서 슬레이브 노드의 시간 동기 장애 복구 방법.
The method of claim 3,
Prior to performing the time synchronization,
Wherein the second port is changed to the active state and the second port is changed to a plurality of active states, and then the remaining ports are changed to the inactive state after selecting any one of the second ports as the optimal port. How to recover from a failure.
PTP(Precision Time Protocol)에서 슬레이브 노드의 시간 동기 장애 복구 방법에 있어서,
복수의 포트를 통해 링크 확인 메시지(Link Alive message)를 전송하는 단계; 및
상기 링크 확인 메시지의 응답으로 상기 복수의 포트 중 적어도 일부 포트를 통해 수신되는 시간 동기 신호를 이용하여 시간 동기화를 수행하는 단계;
제1 기준 시간 동안 상기 링크 확인 메시지의 응답이 미수신되면, 상기 복수의 포트를 통해 재전송하는 단계; 및
상기 재전송 이후 제2 기준 시간 동안 응답이 미수신되면, 상기 슬레이브 노드는 상기 슬레이브 노드의 상태를 마스터 노드로 변경한 후 하위 서브 네트워크에 공지 메시지를 전송하여 상기 하위 서브 네트워크에 포함된 서브 노드들과의 시간 동기화를 수행하는 단계를 포함하는 PTP에서 슬레이브 노드의 시간 동기 장애 복구 방법.
A method for recovering a time synchronization failure of a slave node in a Precision Time Protocol (PTP)
Transmitting a Link Alive message through a plurality of ports; And
Performing time synchronization using a time synchronization signal received through at least some ports of the plurality of ports in response to the link confirmation message;
Retransmitting through the plurality of ports if a response of the link confirmation message is not received during a first reference time; And
If the response is not received during the second reference time after the retransmission, the slave node changes the status of the slave node to the master node and transmits a notification message to the lower-level sub-network, A method for recovering a time synchronization failure of a slave node in a PTP, the method comprising: performing time synchronization.
제5 항에 있어서,
상기 시간 동기화를 수행하는 단계는,
상기 복수의 포트 중 적어도 일부를 통해 상기 링크 확인 메시지에 대한 응답으로 공지 메시지(Announce message)를 수신하는 단계; 및
상기 수신된 공지 메시지를 이용하여 마스터 노드를 선택한 후 상기 선택된 마스터 노드와 시간 동기화를 수행하는 단계를 포함하는 PTP에서 슬레이브 노드의 시간 동기 장애 복구 방법.
6. The method of claim 5,
Wherein performing the time synchronization comprises:
Receiving an announcement message in response to the link confirmation message through at least a portion of the plurality of ports; And
Selecting a master node using the received notification message and performing time synchronization with the selected master node; and recovering the time synchronization failure of the slave node in the PTP.
제5 항에 있어서,
상기 수신된 공지 메시지를 이용하여 마스터 노드를 선택하는 것은,
상기 수신된 공지 메시지에 포함된 시간 정보를 이용하여 상기 복수의 포트 중 적어도 일부의 각 포트와 연결된 마스터 노드 중 어느 하나를 선택하는 것을 특징으로 하는 PTP에서 슬레이브 노드의 시간 동기 장애 복구 방법.
6. The method of claim 5,
Selecting a master node using the received notification message comprises:
And selecting one of the master nodes connected to each port of at least a part of the plurality of ports using the time information included in the received notification message.
삭제delete 제1 항 또는 제5항에 따른 방법을 수행하기 위한 프로그램 코드를 기록한 컴퓨터로 판독 가능한 기록매체 제품.
6. A computer readable recording medium having recorded thereon a program code for performing the method according to any one of claims 1 to 5.
PTP 시스템에서 시간 동기화를 위한 프레임 구조에 있어서,
헤더 필드; 및
데이터 필드를 포함하되,
상기 데이터 필드는 노드의 상태가 포함되는 제1 플래그 필드, 동기 신호 요청 여부를 포함하는 제2 플래그 필드 및 메시지를 전송한 포트의 아이디를 포함하는 제3 필드를 포함하는 것을 특징으로 하는 PTP 시스템에서 시간 동기화를 위한 프레임 구조.
A frame structure for time synchronization in a PTP system,
Header field; And
Data fields,
Wherein the data field includes a first flag field including a state of a node, a second flag field including a request for a synchronization signal request, and a third field including an ID of a port transmitting the message. Frame structure for time synchronization.
PTP 시스템에서 시간 동기화를 위한 프레임 구조에 있어서,
헤더 필드; 및
데이터 필드를 포함하되,
상기 데이터 필드는 노드 타입이 포함되는 제1 플래그 필드, 시간 정보 요청 여부를 나타내는 제2 플래그 필드, 슬레이브의 전송 포트 아이디가 포함되는 제3 필드, 마스터의 전송 포트 아이디가 포함되는 제4 필드를 포함하는 것을 특징으로 하는 프레임 구조.
A frame structure for time synchronization in a PTP system,
Header field; And
Data fields,
The data field includes a first flag field including a node type, a second flag field indicating whether a time information is requested, a third field including a slave transmission port ID, and a fourth field including a master transmission port ID And the frame structure.
PTP(Precision Time Protocol)에서 시간 동기 장애 복구를 수행하는 슬레이브 노드에 있어서,
제1 포트를 통해 시간 동기화를 수행하는 동안 장애 발생 여부를 판단하는 감지부; 및
상기 제1 포트에 장애가 발생한 경우, 제2 포트를 통해 시간 동기 신호를 수신하여 시간 동기화를 수행하는 동기화부를 포함하되,
상기 감지부는 상기 제1 포트로부터 기준 시간 동안 공지 메시지(announce message)가 미수신되면, 상기 제1 포트로의 링크에 장애가 발생한 것으로 판단하며,
상기 공지 메시지는
헤더 필드; 및
데이터 필드를 포함하되,
상기 데이터 필드는 노드 타입이 포함되는 제1 플래그 필드, 시간 정보 요청 여부를 나타내는 제2 플래그 필드, 슬레이브의 전송 포트 아이디가 포함되는 제3 필드, 마스터의 전송 포트 아이디가 포함되는 제4 필드를 포함하는 것을 특징으로 하는 슬레이브 노드.
A slave node that performs time synchronization failure recovery in a Precision Time Protocol (PTP)
A sensing unit for determining whether a failure has occurred during time synchronization through the first port; And
And a synchronization unit for receiving the time synchronization signal through the second port and performing time synchronization when a failure occurs in the first port,
The sensing unit determines that a failure has occurred in the link to the first port when an announce message is not received from the first port for a reference time,
The notification message
Header field; And
Data fields,
The data field includes a first flag field including a node type, a second flag field indicating whether a time information is requested, a third field including a slave transmission port ID, and a fourth field including a master transmission port ID To the slave node.
PTP(Precision Time Protocol)에서 시간 동기 장애 복구를 수행하는 슬레이브 노드에 있어서,
복수의 포트를 통해 링크 확인 메시지(Link Alive message)를 전송하는 통신부; 및
상기 링크 확인 메시지의 응답으로 상기 복수의 포트 중 적어도 일부 포트를 통해 수신되는 시간 동기 신호를 이용하여 시간 동기화를 수행하는 동기화부를 포함하되,
상기 동기화부는,
제1 기준 시간 동안 상기 링크 확인 메시지의 응답이 미수신되면, 상기 복수의 포트를 통해 재전송하고, 상기 재전송 이후 제2 기준 시간 동안 응답이 미수신되면, 상기 슬레이브 노드는 상기 슬레이브 노드의 상태를 마스터 노드로 변경한 후 하위 서브 네트워크에 공지 메시지를 전송하여 상기 하위 서브 네트워크에 포함된 서브 노드들과의 시간 동기화를 수행하는 것을 특징으로 하는 슬레이브 노드.


A slave node that performs time synchronization failure recovery in a Precision Time Protocol (PTP)
A communication unit for transmitting a link acknowledgment message through a plurality of ports; And
And a synchronization unit for performing time synchronization using a time synchronization signal received through at least some ports of the plurality of ports in response to the link confirmation message,
Wherein the synchronization unit comprises:
If the response of the link confirmation message is not received during the first reference time, the slave node retransmits through the plurality of ports, and if the response is not received during the second reference time after the retransmission, the slave node transmits the status of the slave node to the master node And transmits a notification message to the lower sub-network to perform time synchronization with the sub-nodes included in the lower sub-network.


KR1020170083194A 2017-06-30 2017-06-30 Clocks timing fault recovery method and apparatus in precision time protocol system KR101973264B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020170083194A KR101973264B1 (en) 2017-06-30 2017-06-30 Clocks timing fault recovery method and apparatus in precision time protocol system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020170083194A KR101973264B1 (en) 2017-06-30 2017-06-30 Clocks timing fault recovery method and apparatus in precision time protocol system

Publications (2)

Publication Number Publication Date
KR20190002906A KR20190002906A (en) 2019-01-09
KR101973264B1 true KR101973264B1 (en) 2019-04-26

Family

ID=65017353

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170083194A KR101973264B1 (en) 2017-06-30 2017-06-30 Clocks timing fault recovery method and apparatus in precision time protocol system

Country Status (1)

Country Link
KR (1) KR101973264B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102241999B1 (en) 2020-02-26 2021-04-19 부산대학교 산학협력단 Gateway for automotive Ethernet application and System and Method for synchronizing sensor and node using the same

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101489402B1 (en) * 2013-12-27 2015-02-06 현대자동차주식회사 Method of efficient synchrozing time in a network and appratus for implementing the same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2367309B1 (en) * 2010-02-10 2016-07-13 Alcatel Lucent Method for detecting a synchronization failure of a transparent clock and related protection schemes
EP2712099B1 (en) * 2012-09-19 2015-04-01 Alcatel Lucent Method for managing and maintaining an accurate distribution of time in a network when a failure occurs

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101489402B1 (en) * 2013-12-27 2015-02-06 현대자동차주식회사 Method of efficient synchrozing time in a network and appratus for implementing the same

Also Published As

Publication number Publication date
KR20190002906A (en) 2019-01-09

Similar Documents

Publication Publication Date Title
US9577817B2 (en) Method and apparatus for providing in-vehicle network time synchronization using redundant grandmaster
US7944815B2 (en) System and method for network recovery from multiple link failures
US9876596B2 (en) Method and device for detecting fault in synchronization link
JP5525068B2 (en) Method and associated protection scheme for detecting transparent clock synchronization failure
US20090100189A1 (en) Data network with a time synchronization system
JP6388423B2 (en) Data transmission method, communication device, and communication system
CN103916950A (en) Time synchronization method and system
EP2528283B1 (en) Guardian strategy for distributed time-triggered protocols
CN102843205A (en) Method and device for time synchronization convergence based on precision time protocol
US8463945B2 (en) Method for synchronizing local clocks in a distributed computer network
JP5120097B2 (en) Time synchronization system and time synchronization apparatus
US9197441B2 (en) Method and system for service protection
JP6555445B1 (en) Time synchronization system, time master, management master, and time synchronization method
KR101973264B1 (en) Clocks timing fault recovery method and apparatus in precision time protocol system
CN105812492A (en) Data synchronizing method and system
CN102263672A (en) Institute of electrical and electronic engineers (IEEE) 1588 link detection method, system and IEEE 1588 link device
EP2698949B1 (en) METHOD AND SYSTEM FOR SETTING DETECTION FRAME TIMEOUT DURATION OF ETHERNET NODEs
CN112332955B (en) Data synchronization method, system and storage medium
JP2023554065A (en) Method and apparatus for selecting a clock source
CN114051036A (en) Data synchronization method, device and equipment for rail transit signal system and storage medium
CN113890880A (en) Method, system, equipment and storage medium for data synchronization among multiple nodes
JP6274918B2 (en) Communications system
JP5221292B2 (en) Cyclic transmission system and transmission method thereof
US20220337384A1 (en) Clock Port Attribute Recovery Method, Device, and System
WO2016188499A1 (en) Network management method and apparatus, network device and data synchronization system

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