# US 2017/0257836 A1 · Clock synchronization method, mobile network system, network controller and network switch

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

- Number: US 2017/0257836 A1
- Document ID: US20170257836A1
- Status: Published application
- Kind: A1
- Application number: 15/075,209
- Filed: 2016-03-21
- Published: 2017-09-07
- Earliest claimed: 2016-03-01
- Assignees: Industrial Technology Research Institute
- Applicants: Industrial Technology Research Institute
- Inventors: Cheng-You Ho; Tain-Lieng Kao
- Web page: https://patentgrep.com/patent/US20170257836A1

## CPC

- H04W 56/009: {Closed loop measurements}
- H04L 7/0004: {Initialisation of the receiver (H04L7/0075 and H04L7/10 take precedence)}
- H04L 43/0864: Round trip delays
- H04L 43/20: the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
- H04W 56/0015: {one node acting as a reference for the others}
- 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)}
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- 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 clock synchronization method, a mobile network system, a network controller and a network switch are provided. The method computes a round-trip delay ratio between the network controller and the network switch according to a first delay, of which the network controller transmits a packet to the network switch, and a second delay, of which the network switch transmits another packet to the network controller. The method also locks a first clock based on a time-transfer protocol with the round-trip delay ratio, wherein the first clock is synchronized with a master clock of the network controller. The method further sets the first clock being locked as a runtime clock of the network switch.

## Claims

### Claim 1

A clock synchronization method, adapted to a centralized mobile network, comprising:
computing a round-trip delay ratio between a network controller and a network switch according to a first delay, of which the network controller transmitting a packet to the network switch, and a second delay, of which the network switch transmitting another packet to the network controller;
locking a first clock based on a time-transfer protocol with the round-trip delay ratio, wherein the first clock is synchronized with a master clock of the network controller; and
setting the first clock being locked as a runtime clock of the network switch.

### Claim 2 (depends on 1)

The clock synchronization method as claimed in claim 1, wherein before the step of computing the round-trip delay ratio between the network controller and the network switch according to the first delay, of which the network controller transmitting the packet to the network switch, and the second delay, of which the network switch transmitting the another packet to the network controller, further comprises:
obtaining a second clock synchronized with a Grandmaster clock as the master clock of the network controller.

### Claim 3 (depends on 1)

The clock synchronization method as claimed in claim 1, wherein the step of computing the round-trip delay ratio between the network controller and the network switch according to the first delay, of which the network controller transmitting the packet to the network switch, and the second delay, of which the network switch transmitting the another packet to the network controller comprises:
transmitting, by the network controller, a first packet to the network switch at a first time, and recording the first time, by the network switch, after having received the first packet, wherein when a time at the network switch is recorded as the first time, the network controller is at a second time, and the second time is adding up the first time and the first delay;
transmitting, by the network controller, a second packet to the network switch at a third time, wherein a first time interval is the difference between the third time and the second time;
receiving, by the network switch, the second packet at a fourth time, and transmitting, by the network switch, a third packet to the network controller at a fifth time, wherein a second time interval is the difference between the fifth time and the fourth time;
receiving, by the network controller, the third packet at a sixth time, and calculating, by the network controller, the first delay according to the fourth time, the first time, and the first time interval, and calculating, by the network controller, the second delay according to the sixth time, the fourth time, and the second time interval; and
calculating, by the network controller, the round-trip delay ratio according to the first delay and the second delay.

### Claim 4 (depends on 1)

The clock synchronization method as claimed in claim 1, further comprising:
storing the round-trip delay ratio in a storage unit of the network controller.

### Claim 5 (depends on 4)

The clock synchronization method as claimed in claim 4, further comprising:
transmitting, by the network controller, the round-trip delay ratio to the network switch.

### Claim 6 (depends on 5)

The clock synchronization method as claimed in claim 5, further comprising:
calculating a time offset between the network controller and the network switch according to a seventh time at which the network controller transmitting a fourth packet, an eighth time at which the network switch receiving the fourth packet, a ninth time at which the network switch transmitting a fifth packet, a tenth time at which the network controller receiving the fifth packet, and the round-trip delay ratio.

### Claim 7 (depends on 6)

The clock synchronization method as claimed in claim 6, wherein the step of locking the first clock based on the time-transfer protocol with the round-trip delay ratio comprises:
obtaining the first clock according to the time offset.

### Claim 8 (depends on 6)

The clock synchronization method as claimed in claim 6, further comprising:
periodically transmitting, by the network switch, a synchronization status message to the network controller, wherein the synchronization status message includes the time offset.

### Claim 9 (depends on 8)

The clock synchronization method as claimed in claim 8, further comprising:
periodically updating the synchronization status message corresponding to the network switch and stored in the storage unit of the network controller, according to the synchronization status message transmitted by the network switch.

### Claim 10 (depends on 8)

The clock synchronization method as claimed in claim 8, further comprising:
determining whether or not at least one module of the network switch breaks down, according to the synchronization status message transmitted by the network switch.

### Claim 11 (depends on 1)

The clock synchronization method as claimed in claim 1, wherein the step of computing the round-trip delay ratio between the network controller and the network switch according the first delay, of which the network controller transmitting the packet to the network switch, and the second delay, of which the network switch transmitting the another packet to the network controller comprises:
executing multiple measurements, recording a first plurality of delays, of which the network controller transmitting the packet to the network switch, and recording a second plurality of delays, of which the network switch transmitting the another packet to the network controller;
obtaining the first delay according to the first plurality of delays, of which the network controller transmitting the packet to the network switch;
obtaining the second delay according to the second plurality of delays, of which the network switch transmits the another packet to the network controller; and
obtaining the round-trip delay ratio, which is the first delay divided by the second delay.

### Claim 12 (depends on 1)

The clock synchronization method as claimed in claim 1, wherein the network controller communicates with the network switch through a third-party network.

### Claim 13 (depends on 1)

The clock synchronization method as claimed in claim 1, wherein the centralized mobile network is a software defined networking (SDN), and the network controller is a SDN controller.

### Claim 14 (depends on 1)

The clock synchronization method as claimed in claim 1, wherein the network switch is a software defined networking switch.

### Claim 15

A mobile network system, adapted to a centralized mobile network, comprising:
a network controller; and
a network switch, wherein
the network controller computes a round-trip delay ratio between the network controller and the network switch according to a first delay, of which the network controller transmits a packet to the network switch, and a second delay, of which the network switch transmits another packet to the network controller,
the network switch locks a first clock based on a time-transfer protocol with the round-trip delay ratio, wherein the first clock is synchronized with a master clock of the network controller,
the network switch sets the first clock being locked as a runtime clock of the network switch.

### Claim 16 (depends on 15)

The mobile network system as claimed in claim 15, wherein before the network controller computes the round-trip delay ratio between the network controller and the network switch according the first delay, of which the network controller transmits the packet to the network switch, and the second delay, of which the network switch transmits the another packet to the network controller,
the network controller obtains a second clock synchronized with a Grandmaster clock as the master clock of the network controller.

### Claim 17 (depends on 15)

The mobile network system as claimed in claim 15, wherein in an operating that the network controller computes the round-trip delay ratio between the network controller and the network switch according the first delay, of which the network controller transmits the packet to the network switch, and the second delay, of which the network switch transmits the another packet to the network controller,
the network controller transmits a first packet to the network switch at a first time, and the network switch records the first time after having received the first packet, wherein when the time at the network switch is recorded as the first time, the network controller is at a second time, and the second time is adding up the first time and the first delay;
the network controller transmits a second packet to the network switch at a third time, wherein a first time interval is the difference between the third time and the second time;
the network switch receives the second packet at a fourth time, the network switch transmits a third packet to the network controller at a fifth time, wherein a second time interval is the difference between the fifth time and the fourth time;
the network controller receives the third packet at a sixth time, the network controller calculates the first delay according to the fourth time, the first time, and the first time interval, and calculates the second delay according to the sixth time, the fourth time, and the second time interval; and
the network controller calculates the round-trip delay ratio according to the first delay and the second delay.

### Claim 18 (depends on 15)

The mobile network system as claimed in claim 15, wherein the network controller stores the round-trip delay ratio in a storage unit of the network controller.

### Claim 19 (depends on 18)

The mobile network system as claimed in claim 18, wherein the network controller transmits the round-trip delay ratio to the network switch.

### Claim 20 (depends on 19)

The mobile network system as claimed in claim 19, wherein the network switch calculates a time offset between the network controller and the network switch according to a seventh time at which the network controller transmits a fourth packet, an eighth time at which the network switch receives the fourth packet, a ninth time at which the network switch transmits a fifth packet, a tenth time at which the network controller receives the fifth packet, and the round-trip delay ratio.

### Claim 21 (depends on 20)

The mobile network system as claimed in claim 20, wherein in an operation that the network switch locks the first clock based on the time-transfer protocol with the round-trip delay ratio, the network switch obtains the first clock according to the time offset.

### Claim 22 (depends on 20)

The mobile network system as claimed in claim 20, wherein the network switch periodically transmits a synchronization status message to the network controller, and the synchronization status message includes the time offset.

### Claim 23 (depends on 22)

The mobile network system as claimed in claim 22, wherein the network controller periodically updates the synchronization status message corresponding to the network switch and stored in the storage unit of the network controller according to the synchronization status message transmitted by the network switch.

### Claim 24 (depends on 22)

The mobile network system as claimed in claim 22, wherein the network controller determines whether or not at least one module of the network switch breaks down according to the synchronization status message.

### Claim 25 (depends on 15)

The mobile network system as claimed in claim 15, wherein in the operating that the network controller computes the round-trip delay ratio between the network controller and the network switch according the first delay, of which the network controller transmits the packet to the network switch, and the second delay, of which the network switch transmits the another packet to the network controller,
the network controller executes multiple measurements, records a first plurality of delays, of which the network controller transmits the packet to the network switch, and records a second plurality of delays, of which the network switch transmits the another packet to the network controller,
the network controller obtains the first delay according to the first plurality of delays, of which the network controller transmits the packet to the network switch,
the network controller obtains the second delay according to the second plurality of delays, of which the network switch transmits the another packet to the network controller, and
the network controller obtains the round-trip delay ratio, which is the first delay divided by the second delay.

### Claim 26 (depends on 15)

The mobile network system as claimed in claim 15, wherein the network controller communicates with the network switch through a third-party network.

### Claim 27 (depends on 15)

The mobile network system as claimed in claim 15, wherein the centralized mobile network is a software defined networking (SDN), and the network controller is a SDN controller.

### Claim 28 (depends on 15)

The mobile network system as claimed in claim 15, wherein the network switch is a software defined networking switch.

### Claim 29

A network controller, adapted to a centralized mobile network, comprising:
a timing module, synchronizing a clock of the network controller with a Grandmaster clock, obtaining the clock synchronized with the Grandmaster clock as a master clock of the network controller; and
a clock synchronous calculation module, computing a round-trip delay ratio between the network controller and a network switch according to a first delay, of which the network controller transmits a packet to the network switch, and a second delay, of which the network switch transmits another packet to the network controller.

### Claim 30 (depends on 29)

The network controller as claimed in claim 29, further comprising:
a master clock operation module, wherein
the master clock operation module transmits a first packet at a first time to the network switch, the network switch records the first time after having received the first packet, wherein when a time at the network switch is recorded as the first time, the network controller is at a second time, and the second time is adding up the first time and the first delay,
the clock synchronous calculation module transmits a second packet at a third time to the network switch, wherein a first time interval is the difference between the third time and the second time,
wherein the second packet notifies the network switch of receiving the second packet at a fourth time, and then the network switch transmits a third packet at a fifth time to the network controller, wherein a second time interval is the difference between the fifth time and the fourth time,
the clock synchronous calculation module receives the third packet at a sixth time, the network controller calculates the first delay according to the fourth time, the first time, and the first time interval, and calculates the second delay according to the sixth time, the fourth time, and the second time interval,
the clock synchronous calculation module calculates the round-trip delay ratio according to the first delay and the second delay.

### Claim 31 (depends on 29)

The network controller as claimed in claim 29, further comprising:
a storage unit, storing the round-trip delay ratio.

### Claim 32 (depends on 31)

The network controller as claimed in claim 31, wherein the clock synchronous calculation module transmits the round-trip delay ratio to the network switch.

### Claim 33 (depends on 32)

The network controller as claimed in claim 32, wherein the clock synchronous calculation module further includes a controller agent module, periodically receiving a synchronization status message from the network switch, wherein the synchronization status message includes a time offset.

### Claim 34 (depends on 33)

The network controller as claimed in claim 33, wherein the controller agent module periodically updates the synchronization status message corresponding to the network switch and stored in the storage unit of the network controller according to the synchronization status message received from the network switch.

### Claim 35 (depends on 33)

The network controller as claimed in claim 33, wherein the clock synchronous calculation module determines whether or not at least one module of the network switch breaks down according to the synchronization status message.

### Claim 36 (depends on 29)

The network controller as claimed in claim 29, wherein the clock synchronous calculation module computes the round-trip delay ratio between the network controller and the network switch according to the first delay, of which the network controller transmits the packet to the network switch, and the second delay, of which the network switch transmits the another packet to the network controller,
the clock synchronous calculation module executes multiple measurements, records a first plurality of delays, of which the network controller transmits the packet to the network switch, and records a second plurality of delays, of which the network switch transmits the another packet to the network controller,
the clock synchronous calculation module obtains the first delay according to the first plurality of delays, of which the network controller transmits the packet to the network switch,
the clock synchronous calculation module obtains the second delay according to the second plurality of delays, of which the network switch transmits the another packet to the network controller, and
the clock synchronous calculation module obtains the round-trip delay ratio, which is the first delay divided by the second delay.

### Claim 37 (depends on 29)

The network controller as claimed in claim 29, wherein the centralized mobile network is a software defined networking (SDN), and the network controller is a SDN controller.

### Claim 38

A network switch, adapted to a centralized mobile network, comprising:
a slave clock operation module, receiving a round-trip delay ratio from a network controller in the centralized mobile network, wherein the round-trip delay ratio is computed according to a first delay, of which the network controller transmits a packet to the network switch, and a second delay, of which the network switch transmits another packet to the network controller; and
a timing module, locking a first clock based on a time-transfer protocol with the round-trip delay ratio, wherein the first clock is synchronized with a master clock of the network controller,
wherein the slave clock operation module sets the first clock being locked as a runtime clock of the network switch.

### Claim 39 (depends on 38)

The network switch as claimed in claim 38, wherein the network switch further comprises a message proxy module,
wherein the slave clock operation module receives the round-trip delay ratio from a network controller,
the slave clock operation module records a first time after having received a first packet from the network switch, wherein the first packet is transmitted from the network controller, when the time of the network switch is recorded as the first time, the network controller is at a second time, and the second time is adding up the first time and the first delay,
when the message proxy module, at a fourth time, receives a second packet transmitted from the network controller at a third time, the message proxy module transmits a third packet at a fifth time to the network controller, wherein a first time interval is the difference between the third time and the second time, a second time interval is the difference between the fifth time and the fourth time,
after the message proxy module transmits the third packet at the fifth time to the network controller at the fifth time, the message proxy module receives the round-trip delay ratio from the network controller,
wherein the network controller calculates the round-trip delay ratio according to the first delay and the second delay,
wherein the network controller calculates the first delay according to the fourth time, the first time, and the first time interval,
wherein the network controller calculates the second delay according to a sixth time at which the network controller receives the third packet, the fourth time, and the second time interval.

### Claim 40 (depends on 38)

The network switch as claimed in claim 38, wherein the slave clock operation module calculates a time offset between the network controller and the network switch according to a seventh time at which the network controller transmits a fourth packet, an eighth time at which the network switch receives the fourth packet, a ninth time at which the network switch transmits a fifth packet, a tenth time at which the network controller receives the fifth packet, and the round-trip delay ratio.

### Claim 41 (depends on 40)

The network switch as claimed in claim 40, wherein the timing module of the network switch obtains the first clock according to the time offset.

### Claim 42 (depends on 40)

The network switch as claimed in claim 40, further comprising:
a message proxy module, periodically transmitting a synchronization status message to the network controller, wherein the synchronization status message includes the time offset.

### Claim 43 (depends on 38)

The network switch as claimed in claim 38, wherein the network switch communicates with the network controller through a third-party network.

### Claim 44 (depends on 38)

The network switch as claimed in claim 38, wherein the network switch is a software defined networking switch.
