# US 2022/0255653 A1 · Robust clock synchronization over computer network

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

- Number: US 2022/0255653 A1
- Document ID: US20220255653A1
- Status: Published application
- Kind: A1
- Application number: 17/248,755
- Filed: 2021-02-05
- Published: 2022-08-11
- Earliest claimed: 2021-02-05
- Assignees: Zoox, Inc.
- Applicants: Zoox, Inc.
- Inventors: Mehran Ferdowsi; Turhan Karadeniz; Minh Nguyen; Subasingha Shaminda Subasingha; Harrison Thomas Waschura
- Web page: https://patentgrep.com/patent/US20220255653A1

## CPC

- H04J 3/065: {using timestamps}
- 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/025: {Filter arrangements (H04J3/08 takes precedence; filters per se H03H7/00, H03H9/00)}
- H04J 3/0697: {Synchronisation in a packet node}
- H04L 43/106: using time related information in packets, e.g. by adding timestamps
- H04L 43/12: Network monitoring probes
- 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)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques for facilitating a robust clock synchronization across a computer network that presumes network jitter exists are discussed herein. A first device and a second device transceive a plurality of sets of time-synchronization messages to synchronize a synchronization clock of the second device to a first clock of the first device. The second device calculates a smoothing of time delay data of a plurality of sets. The time delay data is associated with a transmission duration of time-synchronization messages of the sets of the plurality. The second device sets a synchronization clock based on a time at the first device and the smoothed time delay data.

## Claims

### Claim 1

A system comprising:
a first device having a first clock;
a second device having a second clock;
one or more processors; and
one or more non-transitory computer-readable media storing computer-executable instructions that, when executed, cause the system to perform operations comprising:
transceiving, via a communication network between the first device and second device, a plurality of sets of time-synchronization messages, a set of time-synchronization messages of the plurality including information about times at the first device according to the first clock that time-synchronization messages of a set were sent and received by the first device;
determining, for a set of the plurality and based, at least in part, on the information of the set, a message-transmission duration of the time-synchronization messages transceived;
determining, over the plurality, a moving average of message-transmission durations based on the sets of the plurality; and
setting the second clock of the second device to a combination of a time at the first device and the moving average.

### Claim 2 (depends on 1)

The system of claim 1, wherein the operations further comprise measuring a second-device receipt time of the second clock associated with the second device receiving an initial time-synchronization message and a second-device send time of the second clock associated with the second device transmitting an acknowledgment time-synchronization message,
wherein the determining of the message-transmission duration is further based at least in part on the second-device receipt time and the second-device send time.

### Claim 3 (depends on 1)

The system of claim 1, wherein the transceiving of the plurality includes transceiving a set of the plurality, the transceiving of the set includes:
sending, by the first device and at a first-device send time according to the first clock, an initial time-synchronization message to the second device, the initial time-synchronization message comprising first timing data including the first-device send time;
receiving, by the second device and at a second-device receipt time according to the second clock, the initial time-synchronization message;
sending, by the second device and at a second-device send time according to the second clock, an acknowledgment time-synchronization message to the first device;
receiving, by the first device at a first-device receipt time according to the first clock, the acknowledgment time-synchronization message;
sending, by the first device, a responsive time-synchronization message to the second device, the responsive time-synchronization message comprising second timing data including the first-device receipt time; and
receiving, by the second device, the responsive time-synchronization message from the first device.

### Claim 4 (depends on 3)

The system of claim 3, wherein the determining of the message-transmission duration comprises determining an average message-transmission duration based, at least in part, upon the first-device send time, the second-device receipt time, the second-device send time, and the first-device receipt time.

### Claim 5 (depends on 1)

The system of claim 1, wherein the operations further comprise:
determining, using a sensor of the second device, a measurement of a condition observable by the sensor at a measurement time according to the second clock;
generating a timestamp based on the measurement time; and
sending, to a computing system via the communication network, the measurement and the timestamp.

### Claim 6 (depends on 1)

The system of claim 1 further comprising setting a resettable sync clock of the second device to a combination of a time at the first device and the moving average.

### Claim 7

A method comprising:
receiving, by a second device and at a second-device receipt time according to a second clock, an initial time-synchronization message that was sent by a first device and comprising a first-device send time according to a first clock;
sending, by the second device an acknowledgment time-synchronization message to the first device comprising a second-device send time according to the second clock;
receiving, by the second device, a responsive time-synchronization message from the first device, the responsive time-synchronization message comprising second timing data including a first-device receipt time according to the first clock that the first device received the acknowledgment time-synchronization message from the second device; and
determining a time delay data, wherein the time delay data is associated with a transmission duration of the initial time-synchronization message and the acknowledgment time-synchronization message.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
repeatedly receiving additional initial time-synchronization messages, sending of additional acknowledgment time-synchronization messages, receiving of additional responsive time-synchronization messages, and determining additional time delay data as additional sets of a plurality of sets of associated initial time-synchronization message, acknowledgment time-synchronization message, and responsive time-synchronization message; and
determining, based at least in part on a portion of the plurality, a smoothing of the time delay data of the sets of the plurality.

### Claim 9 (depends on 8)

The method of claim 8, further comprising setting a resettable sync clock of the second device to a combination of a first-device send time of the initial time-synchronization message of set of the plurality and the smoothing of the time delay data of the sets of the plurality.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
determining, using a sensor of the second device, a measurement of a condition observable by the sensor at a measurement time according to the resettable sync clock;
generating a timestamp based on the measurement time; and
sending, to a computing system via a communication network, the measurement and the timestamp.

### Claim 11 (depends on 8)

The method of claim 8, wherein the determining the smoothing includes performing a moving average of the time delay data of the sets of the plurality.

### Claim 12 (depends on 8)

The method of claim 8, wherein the determining the smoothing includes performing a smoothing function that is selected from a group consisting of additive smoothing, butterworth filtering, Chebyshev filtering, digital filtering, elliptic filtering, exponential smoothing, Kalman filtering, kernel smoothing, Kolmogorov-Zurbenko filtering, Laplacian smoothing, local regressing, low-pass filtering, moving averaging, Ramer-Doublas-Peucker downsampling, Savitzky-Golay smooth filtering, smooth splining, and stretched grid approximating.

### Claim 13 (depends on 7)

The method of claim 7, wherein the determining of the time delay data is based, at least in part, on the second-device receipt time and the second-device send time.

### Claim 14

One or more non-transitory computer-readable media storing instructions executable by one or more processors, wherein the instructions, when executed, cause the one or more processors to perform operations comprising:
receiving, by a second device and at a second-device receipt time according to a second clock, an initial time-synchronization message that was sent by a first device and comprising a first-device send time according to a first clock;
sending, by the second device an acknowledgment time-synchronization message to the first device comprising a second-device send time according to the second clock;
receiving, by the second device, a responsive time-synchronization message from the first device, the responsive time-synchronization message comprising second timing data including a first-device receipt time according to the first clock that the first device received the acknowledgment time-synchronization message from the second device; and
determining a time delay data, wherein the time delay data is associated with a transmission duration of the initial time-synchronization message and the acknowledgment time-synchronization message.

### Claim 15 (depends on 14)

The one or more non-transitory computer-readable media of claim 14, wherein the operations further comprise:
repeatedly receiving additional initial time-synchronization messages, sending of additional acknowledgment time-synchronization messages, receiving of additional responsive time-synchronization messages, and determining additional time delay data as additional sets of a plurality of sets of associated initial time-synchronization message, acknowledgment time-synchronization message, and responsive time-synchronization message; and
determining, based at least in part on a portion of the plurality, a smoothing of the time delay data of the sets of the plurality.

### Claim 16 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the operations further comprise setting a resettable sync clock of the second device to a combination of a first-device send time of the initial time-synchronization message of set of the plurality and the smoothing of the time delay data of the sets of the plurality.

### Claim 17 (depends on 16)

The one or more non-transitory computer-readable media of claim 16, wherein the operations further comprise:
determining, using a sensor of the second device, a measurement of a condition observable by the sensor at a measurement time according to the resettable sync clock;
generating a timestamp based on the measurement time; and
sending, to a computing system via a communication network, the measurement and the timestamp.

### Claim 18 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the determining the smoothing includes performing a moving average of the time delay data of the sets of the plurality.

### Claim 19 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the determining the smoothing includes performing a smoothing function that is selected from a group consisting of additive smoothing, butterworth filtering, Chebyshev filtering, digital filtering, elliptic filtering, exponential smoothing, Kalman filtering, kernel smoothing, Kolmogorov-Zurbenko filtering, Laplacian smoothing, local regressing, low-pass filtering, moving averaging, Ramer-Doublas-Peucker downsampling, Savitzky-Golay smooth filtering, smooth splining, and stretched grid approximating.

### Claim 20 (depends on 14)

The one or more non-transitory computer-readable media of claim 14, wherein the first device is a computing device and the second device is a sensor device.
