# US 2024/0204898 A1 · Method and Device for Time Synchronization of Time Synchronization Domains

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0204898 A1
- Document ID: US20240204898A1
- Status: Published application
- Kind: A1
- Application number: 18/226,268
- Filed: 2023-07-26
- Published: 2024-06-20
- Earliest claimed: 2022-12-19
- Assignees: Moxa Inc.
- Applicants: Moxa Inc.
- Inventors: Chi-Chuan Liu; Chun-Yu Lin; Chien-Yu Lai; Po-Hung Lin
- Web page: https://patentgrep.com/patent/US20240204898A1

## CPC

- H04J 3/0667: {Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays (arrangements for monitoring round trip delays in packet switching networks H04L43/0864)}
- H04J 3/0641: {Change of the master or reference, e.g. take-over or failure of the master}
- H04J: MULTIPLEX COMMUNICATION (transmission in general H04B; peculiar to transmission of digital information H04L5/00; systems for the simultaneous or sequential transmission of more than one television signal H04N7/08; in exchanges H04Q11/00; stereophonic systems H04S)

## Abstract

A time synchronization method for a plurality of time synchronization domains includes building a plurality of precision time protocol (PTP) instances corresponding to the plurality of time synchronization domains; determining a grandmaster clock; and synchronizing, by the plurality of PTP instances, timings of the plurality of time synchronization domains according to the grandmaster clock.

## Claims

### Claim 1

A time synchronization method, used for a plurality of time synchronization domains, the time synchronization method comprising:
building a plurality of precision time protocol (PTP) instances corresponding to the plurality of time synchronization domains;
determining a grandmaster clock; and
synchronizing, by the plurality of PTP instances, timings of the plurality of time synchronization domains according to the grandmaster clock.

### Claim 2 (depends on 1)

The time synchronization method of claim 1, wherein the step of determining the grandmaster clock comprises:
determining a plurality of local best clocks corresponding to the plurality of PTP instances; and
determining the grandmaster clock according to the plurality of local best clocks corresponding to the plurality of PTP instances.

### Claim 3 (depends on 2)

The time synchronization method of claim 2, wherein the step of determine the plurality of local best clocks corresponding to the plurality of PTP instances is determining a best clock of each time synchronization domain of the plurality of time synchronization domain according to a best master clock algorithm (BMCA) so as to determining the plurality of local best clocks corresponding to the plurality of PTP instances.

### Claim 4 (depends on 2)

The time synchronization method of claim 2, wherein the step of determining the grandmaster clock according to the plurality of local best clocks corresponding to the plurality of PTP instances is continuously comparing any two local best clocks among the plurality of local best clocks until one of the local best clocks is the best, and deciding the one of the local best clocks as the grandmaster clock.

### Claim 5 (depends on 4)

The time synchronization method of claim 4, wherein the step of continuously comparing any two local best clocks among the plurality of local best clocks comprises not repetitively comparing any two local best clocks of the plurality of local best clocks.

### Claim 6 (depends on 4)

The time synchronization method of claim 4, wherein the step of continuously comparing any two local best clocks among the plurality of local best clocks is continuously comparing priority vectors of any two local best clocks of the plurality of local best clocks.

### Claim 7 (depends on 2)

The time synchronization method of claim 2, further comprising executing the following steps when a PTP instance of the plurality of PTP instances receives an announce message from a first clock of a corresponding time synchronization domain:
comparing the first clock with a local best clock corresponding to the PTP instance;
replacing the local best clock corresponding to the PTP instance with the first clock in response to the first clock being better than the local best clock corresponding to the PTP instance;
comparing the local best clock updated by the first clock with the grandmaster clock;
replacing the grandmaster clock with the local best clock updated by the first clock in response to the local best clock updated by the first clock being better than the grandmaster clock; and
notifying the plurality of PTP instances to synchronize the time of the plurality of time synchronization domains according to the updated grandmaster clock.

### Claim 8 (depends on 1)

The time synchronization method of claim 1, further comprising executing the following steps when a PTP instance of the plurality of PTP instances receives an announce message from a first clock of a corresponding time synchronization domain:
comparing the first clock with the grandmaster clock;
replacing the grandmaster clock with the first clock in response to the first clock being better than the grandmaster clock; and
notifying the plurality of PTP instances to synchronize the time of the plurality of time synchronization domains according to the updated grandmaster clock.

### Claim 9 (depends on 1)

The time synchronization method of claim 1, wherein the plurality of time synchronization domains use different types of PTP profiles.

### Claim 10

A time synchronization device, used for a plurality of time synchronization domains, comprising:
a processing unit, configured to execute a program code; and
a storage unit, coupled to the processing unit, configured to store the program code to instruct the processing unit to execute a time synchronization method, wherein the time synchronization method comprises:
building a plurality of precision time protocol instances (PTP instances) corresponding to the plurality of time synchronization domains;
determining a grandmaster clock; and
synchronizing, by the plurality of PTP instances, timings of the plurality of time synchronization domains according to the grandmaster clock.

### Claim 11 (depends on 10)

The time synchronization device of claim 10, wherein the step of determining the grandmaster clock comprises:
determining a plurality of local best clocks corresponding to the plurality of PTP instances; and
determining the grandmaster clock according to the plurality of local best clocks corresponding to the plurality of PTP instances.

### Claim 12 (depends on 11)

The time synchronization device of claim 11, wherein the step of determine the plurality of local best clocks corresponding to the plurality of PTP instances is determining a best clock of each time synchronization domain of the plurality of time synchronization domain according to a best master clock algorithm (BMCA) so as to determining the plurality of local best clocks corresponding to the plurality of PTP instances.

### Claim 13 (depends on 11)

The time synchronization device of claim 11, wherein the step of determining the grandmaster clock according to the plurality of local best clocks corresponding to the plurality of PTP instances is continuously comparing any two local best clocks among the plurality of local best clocks until one of the local best clocks is the best, and deciding the one of the local best clocks as the grandmaster clock.

### Claim 14 (depends on 13)

The time synchronization device of claim 13, wherein the step of continuously comparing any two local best clocks among the plurality of local best clocks comprises not repetitively comparing any two local best clocks of the plurality of local best clocks.

### Claim 15 (depends on 13)

The time synchronization device of claim 13, wherein the step of continuously comparing any two local best clocks among the plurality of local best clocks is continuously comparing priority vectors of any two local best clocks of the plurality of local best clocks.

### Claim 16 (depends on 11)

The time synchronization device of claim 11, further comprising executing the following steps when a PTP instance of the plurality of PTP instances receives an announce message from a first clock of a corresponding time synchronization domain:
comparing the first clock with a local best clock corresponding to the PTP instance;
replacing the local best clock corresponding to the PTP instance with the first clock in response to the first clock being better than the local best clock corresponding to the PTP instance;
comparing the local best clock updated by the first clock with the grandmaster clock;
replacing the grandmaster clock with the local best clock updated by the first clock in response to the local best clock updated by the first clock being better than the grandmaster clock; and
notifying the plurality of PTP instances to synchronize the time of the plurality of time synchronization domains according to the updated grandmaster clock.

### Claim 17 (depends on 10)

The time synchronization device of claim 10, further comprising executing the following steps when a PTP instance of the plurality of PTP instances receives an announce message from a first clock of a corresponding time synchronization domain:
comparing the first clock with the grandmaster clock;
replacing the grandmaster clock with the first clock in response to the first clock being better than the grandmaster clock; and
notifying the plurality of PTP instances to synchronize the time of the plurality of time synchronization domains according to the updated grandmaster clock.

### Claim 18 (depends on 10)

The time synchronization device of claim 10, wherein the plurality of time synchronization domains use different types of PTP profiles.
