# US 2015/0092793 A1 · Method and devices for synchronization

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

- Number: US 2015/0092793 A1
- Document ID: US20150092793A1
- Status: Published application
- Kind: A1
- Application number: 14/043,068
- Filed: 2013-10-01
- Published: 2015-04-02
- Earliest claimed: 2013-10-01
- Assignees: Khalifa University of Science, Technology, and Research; Emirates Telecommunications Corporation; British Telecommunications plc
- Applicants: Khalifa University of Science, Technology, and Research; Emirates Telecommunications Corporation; British Telecommunications plc
- Inventors: James Aweya
- Web page: https://patentgrep.com/patent/US20150092793A1

## 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/0685: {Clock or time synchronisation in a node; Intranode synchronisation}
- 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

This invention relates to methods and devices for time and frequency synchronization. The invention has particular application where time and frequency synchronization over packet networks using, for example, the IEEE 1588 Precision Time Protocol (PTP) is being carried out. The primary challenge in clock distribution over packet networks is the variable transit delays experienced by timing packets, packet delay variations (PDVs). Embodiments of the invention provide a method for time offset alignment with PDV compensation where a synchronized frequency signal is available at a slave device via Synchronous Ethernet and is used to determine the compensation parameters for the PDV.

## Claims

### Claim 1

A method of synchronising the frequency and time of a slave clock in a slave device to a master clock in a master device, wherein the master device and the slave device are connected by an Ethernet network, the method including the steps of:
synchronising the frequency of the slave clock to that of the master clock using Synchronous Ethernet communications between the master device and the slave device;
receiving in the slave device first and second timing messages sent from the master device and respective first and second timestamps being the time of sending of the first and second messages according to the master clock, and recording the time of receipt of the first and second messages according to the slave clock;
calculating the forward variable delay encountered by the first and second messages in travelling from the master device to the slave device over the network by comparing the difference between the interval between the time of sending of said messages and the interval between the time of receipt of said messages;
receiving in the master device third and fourth timing messages sent from the slave device and recording the time of receipt of the third and fourth messages according to the master clock;
recording in the slave device the time of sending of the third and fourth messages according to the slave clock;
sending the recorded time of receipt of the third and fourth messages to the slave device;
calculating the reverse variable delay encountered by the third and fourth messages in travelling from the slave device to the master device over the network by comparing the difference between the interval between the time of sending said messages and the interval between the time of receipt of said messages;
calculating, from the forward and reverse variable delays, a measure of the noise associated with both the receipt of the first and second timing messages and receipt of third and fourth timing messages;
estimating the variance of the measurement noise; and
adjusting the actual time of the slave clock to synchronize it with the time of the master using the first and third timestamps, the recorded times of receipt of the first and third messages and the estimated variance.

### Claim 2 (depends on 1)

A method according to claim 1 wherein the timing messages are messages according to the IEEE 1588 Precision Time Protocol, and the first and second timing messages are Sync messages and the third and fourth messages are Delay_Req messages.

### Claim 3 (depends on 1)

A method according to claim 1 wherein the step of adjusting the actual time of the slave clock uses a linear Kalman filter to update a state equation representing the offset and skew of the slave clock compared to the master clock using the estimated variance of the measurement noise following receipt of each timing message in the slave device.

### Claim 4 (depends on 3)

A method according to claim 3, further including the steps of, prior to adjusting the actual time of the slave clock, determining the skew of the slave clock according to the updated state equation, and only proceeding to adjust the actual time of the slave clock based on the updated state equation if the skew is less than a predetermined level.

### Claim 5 (depends on 1)

A method according to claim 1 wherein the step of estimating the variance of the measurement noise calculates a running variance in a recursive manner using the previous estimate of the variance and the calculated measurement noise.

### Claim 6 (depends on 1)

A method according to claim 1 further including the step of, prior to steps of estimating the variance of the measurement noise and adjusting the actual time of the slave clock, screening out data having unusually large measurement noise.

### Claim 7

A slave device connected to a master device having a master clock over an Ethernet network, wherein the slave device includes:
a slave clock;
an Ethernet adapter; and
a processor, wherein:
the Ethernet adapter is arranged to receive, at the physical layer, timing signals from the master device via Synchronous Ethernet and the processor synchronises the frequency of the slave clock to the frequency of the master clock using those timing signals; and
the Ethernet adapter is arranged to receive, through a layer above the physical layer, first and second timing messages sent from the master device and respective first and second timestamps being the time of sending of the first and second messages according to the master clock, and to record the time of receipt of the first and second messages according to the slave clock; and further wherein
the processor is arranged to:
calculate the forward variable delay encountered by the first and second messages in travelling from the master device to the slave device over the network by comparing the difference between the interval between the time of sending of said messages and the interval between the time of receipt of said messages;
send third and fourth timing messages to the master device for the master device to record the time of receipt of the third and fourth messages according to the master clock;
record the time of sending of the third and fourth messages according to the slave clock;
receive, from the master device, the recorded time of receipt of the third and fourth messages;
calculate the reverse variable delay encountered by the third and fourth messages in travelling from the slave device to the master device over the network by comparing the difference between the interval between the time of sending said messages and the interval between the time of receipt of said messages;
calculate, from the forward and reverse variable delays, a measure of the noise associated with both the receipt of the first and second timing messages and receipt of third and fourth timing messages;
estimate the variance of the measurement noise; and
adjust the actual time of the slave clock to synchronize it with the time of the master using the first and third timestamps, the recorded times of receipt of the first and third messages and the estimated variance.

### Claim 8 (depends on 7)

A slave device according to claim 7 wherein the timing messages are messages according to the IEEE 1588 Precision Time Protocol, and the first and second timing messages are Sync messages and the third and fourth messages are Delay_Req messages.

### Claim 9 (depends on 7)

A slave device according to claim 7 wherein the processor adjusts the actual time of the slave clock by using a linear Kalman filter to update a state equation representing the offset and skew of the slave clock compared to the master clock using the estimated variance of the measurement noise following receipt of each timing message in the slave device.

### Claim 10 (depends on 9)

A slave device according to claim 9 wherein the processor determines the skew of the slave clock according to the updated state equation, and only adjusts the actual time of the slave clock based on the updated state equation if the skew is less than a predetermined level.

### Claim 11 (depends on 7)

A slave device according to claim 7 wherein the processor estimates the variance of the measurement noise by calculating a running variance in a recursive manner using the previous estimate of the variance and the calculated measurement noise.

### Claim 12 (depends on 7)

A slave device according to claim 7 wherein the processor screens out data having unusually large measurement noise prior to making its estimate of the variance of the measurement noise and adjusting the actual time of the slave clock.

### Claim 13

A system for synchronising the frequency and time of a slave clock in a slave device to a master clock in a master device, the system including:
the master device having the master clock and a first Ethernet adapter;
the slave device having the slave clock, a second Ethernet adapter and a processor; and
an Ethernet network connecting the master device and the slave device,
wherein:
the first Ethernet adapter is arranged to send, at the physical layer, timing signals based on said master clock using the Synchronous Ethernet protocol;
the second Ethernet adapter is arranged to receive, at the physical layer, said timing signals from the master device and the processor synchronises the frequency of the slave clock to the frequency of the master clock using those timing signals;
the master device is arranged to send, through the first Ethernet adapter, using a layer above the physical layer, first and second timing messages and respective first and second timestamps being the time of sending of the first and second messages according to the master clock;
the second Ethernet adapter is arranged to receive, through a layer above the physical layer, said first and second timing messages and said first and second timestamps, and to record the time of receipt of the first and second messages according to the slave clock;
the slave device is arranged to send, through the second Ethernet adapter, using a layer above the physical later, third and fourth timing messages, and to record the time of sending of the third and fourth messages according to the slave clock;
the first Ethernet adapter is arranged to receive, through a layer above the physical layer, said third and fourth timing messages and sent from the slave device and to record the time of receipt of the third and fourth messages according to the master clock and send the recorded time of receipt of the third and fourth messages to the slave device;
and further wherein
the processor in the slave device is arranged to:
calculate the forward variable delay encountered by the first and second messages in travelling from the master device to the slave device over the network by comparing the difference between the interval between the time of sending of said messages and the interval between the time of receipt of said messages;
calculate the reverse variable delay encountered by the third and fourth messages in travelling from the slave device to the master device over the network by comparing the difference between the interval between the time of sending said messages and the interval between the time of receipt of said messages;
calculate, from the forward and reverse variable delays, a measure of the noise associated with both the receipt of the first and second timing messages and receipt of third and fourth timing messages;
estimate the variance of the measurement noise; and
adjust the actual time of the slave clock to synchronize it with the time of the master using the first and third timestamps, the recorded times of receipt of the first and third messages and the estimated variance.

### Claim 14 (depends on 13)

A system according to claim 13 wherein the timing messages are messages according to the IEEE 1588 Precision Time Protocol, and the first and second timing messages are Sync messages and the third and fourth messages are Delay_Req messages.

### Claim 15 (depends on 13)

A system according to claim 13 wherein the processor adjusts the actual time of the slave clock by using a linear Kalman filter to update a state equation representing the offset and skew of the slave clock compared to the master clock using the estimated variance of the measurement noise following receipt of each timing message in the slave device.

### Claim 16 (depends on 15)

A system according to claim 15 wherein the processor determines the skew of the slave clock according to the updated state equation, and only adjusts the actual time of the slave clock based on the updated state equation if the skew is less than a predetermined level.

### Claim 17 (depends on 13)

A system according to claim 13 wherein the processor estimates the variance of the measurement noise by calculating a running variance in a recursive manner using the previous estimate of the variance and the calculated measurement noise.

### Claim 18 (depends on 13)

A system according to claim 13 wherein the processor screens out data having unusually large measurement noise prior to making its estimate of the variance of the measurement noise and adjusting the actual time of the slave clock.
