IP Library › Granted Patent US 12,133,185
Granted Patent B2
US 12,133,185 · App. 17/725,962 · Granted Oct 29, 2024

Synchronization method and device

Inventors: Yongzhi Liu (Dongguan, CN); Tao Lin (Shenzhen, CN); Jianqiang Liu (Dongguan, CN); Chun Yuan (Nanjing, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
H04W56/001H04J3/0667H04W80/02
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,133,185
App. No.
17/725,962
Granted
Oct 29, 2024
Kind
B2
Abstract

Embodiments of this application disclose a synchronization method and a device. A device marks, based on a preset period, a periodic code block in a data bitstream to be sent from a MAC layer to a PHY layer. The device sends the data bitstream to a peer device through the PHY layer, records a sending time of each periodic code block as a first timestamp during sending, and returns the first timestamp to the MAC layer. By marking a timestamp for the periodic code block received from the MAC layer, the device sets a PHY-layer-based time reference scale (namely, the first timestamp) at the PHY layer.

Claims (68)

1. A synchronization method, comprising:

marking, based on a preset period, a periodic code block in a data bitstream to be sent from a medium access control (MAC) layer to a physical (PHY) layer;

sending, by the PHY layer, the data bitstream, and recording a sending time of the periodic code block as a first timestamp;

sending, by the PHY layer, the first timestamp to the MAC layer;

determining, based on the first timestamp, a sending timestamp carried in a synchronization message; and

sending the synchronization message.

2. The method according to claim 1 , wherein the determining, based on the first timestamp, the sending timestamp carried in the synchronization message comprises:

calculating a unit interval (UI) between a flag bit of the synchronization message and a target code block, wherein the target code block is a periodic code block that is closest to the flag bit in the data bitstream, and the target code block is located before the flag bit;

determining a delay based on the UI; and

calculating the sending timestamp based on a second timestamp and the delay, wherein the second timestamp is a timestamp corresponding to the target code block, and the second timestamp is comprised in the first timestamp.

3. The method according to claim 2 , wherein the determining the delay based on the UI comprises:

determining a physical link rate of the PHY layer; and

determining a ratio of the UI to the physical link rate as the delay.

4. The method according to claim 1 , wherein the sending, by the PHY layer, the first timestamp to the MAC layer comprises:

sending the first timestamp to the MAC layer as an independent data bitstream; or

adding the first timestamp to the data bitstream to be transmitted from the PHY layer to the MAC layer, and sending the data bitstream.

5. The method according to claim 1 , wherein the synchronization message comprises:

a message in a 1588 protocol format.

6. A synchronization method, comprising:

marking, based on a preset period, a periodic code block in a data bitstream to be sent from a physical (PHY) layer to a medium access control (MAC) layer, and recording, as a first timestamp, a sending time at which the periodic code block is sent from the PHY layer;

sending, by the PHY layer, the first timestamp to the MAC layer; and

determining, based on the first timestamp, a receiving time at which the PHY layer obtains a synchronization message.

7. The method according to claim 6 , wherein the determining, based on the first timestamp, the receiving time at which the PHY layer obtains the synchronization message comprises:

calculating a unit interval (UI) between a flag bit of the synchronization message and a target code block, wherein the target code block is a periodic code block and that is closest to the flag bit in the data bitstream, and the target code block is located before the flag bit;

determining a delay based on the UI; and

calculating the receiving time based on a second timestamp and the delay, wherein the second timestamp is a timestamp corresponding to the target code block, and the second timestamp is comprised in the first timestamp.

8. The method according to claim 7 , wherein the determining the delay based on the UI comprises:

determining a physical link rate of the PHY layer; and

determining a ratio of the UI to the physical link rate as the delay.

9. The method according to claim 6 , wherein the sending, by the PHY layer, the first timestamp to the MAC layer comprises:

sending the first timestamp to the MAC layer as an independent data bitstream; or

adding the first timestamp to the data bitstream to be transmitted from the PHY layer to the MAC layer, and sending the data bitstream.

10. The method according to claim 6 , wherein the synchronization message comprises:

a message in a 1588 protocol format.

11. A device, comprising a processor and a memory, wherein the processor is coupled to the memory, and is configured to read and execute instructions stored in the memory, to implement following steps:

marking, based on a preset period, a periodic code block in a data bitstream to be sent from a medium access control (MAC) layer to a physical (PHY) layer;

sending, by the PHY layer, the data bitstream, and recording a sending time of the periodic code block as a first timestamp;

sending, by the PHY layer, the first timestamp to the MAC layer;

determining, based on the first timestamp, a sending timestamp carried in a synchronization message; and

sending the synchronization message.

12. The device according to claim 11 , wherein the determining, based on the first timestamp, the sending timestamp carried in the synchronization message comprises:

calculating a unit interval (UI) between a flag bit of the synchronization message and a target code block, wherein the target code block is a periodic code block that is closest to the flag bit in the data bitstream, and the target code block is located before the flag bit;

determining a delay based on the UI; and

calculating the sending timestamp based on a second timestamp and the delay, wherein the second timestamp is a timestamp corresponding to the target code block, and the second timestamp is comprised in the first timestamp.

13. The device according to claim 12 , wherein the determining the delay based on the UI comprises:

determining a physical link rate of the PHY layer; and

determining a ratio of the UI to the physical link rate as the delay.

14. The device according to claim 11 , wherein the sending, by the PHY layer, the first timestamp to the MAC layer comprises:

sending the first timestamp to the MAC layer as an independent data bitstream; or

adding the first timestamp to the data bitstream to be transmitted from the PHY layer to the MAC layer, and sending the data bitstream.

15. The device according to claim 1 , wherein the synchronization message comprises:

a message in a 1588 protocol format.

16. A device, comprising a processor and a memory, wherein the processor is coupled to the memory, and is configured to read and execute instructions stored in the memory, to implement following steps:

marking, based on a preset period, a periodic code block in a data bitstream to be sent from a PHY layer to a MAC layer, and recording, as a first timestamp, a sending time at which the periodic code block is sent from the PHY layer;

sending, by the PHY layer, the first timestamp to the MAC layer; and

determining, based on the first timestamp, a receiving time at which the PHY layer obtains a synchronization message.

17. The device according to claim 16 , wherein the determining, based on the first timestamp, the receiving time at which the PHY layer obtains the synchronization message comprises:

calculating a unit interval (UI) between a flag bit of the synchronization message and a target code block, wherein the target code block is a periodic code block and is closest to the flag bit in the data bitstream, and the target code block is located before the flag bit;

determining a delay based on the UI; and

calculating the receiving time based on a second timestamp and the delay, wherein the second timestamp is a timestamp corresponding to the target code block, and the second timestamp is comprised in the first timestamp.

18. The device according to claim 17 , wherein the determining the delay based on the UI comprises:

determining a physical link rate of the PHY layer; and

determining a ratio of the UI to the physical link rate as the delay.

19. The device according to claim 16 , wherein the sending, by the PHY layer, the first timestamp to the MAC layer comprises:

sending the first timestamp to the MAC layer as an independent data bitstream; or

adding the first timestamp to the data bitstream to be transmitted from the PHY layer to the MAC layer, and sending the data bitstream.

20. The device according to claim 16 , wherein synchronization message comprises:

a message in a 1588 protocol format.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 25, 2022
From: LIU, YONGZHI; LIN, TAO; LIU, JIANQIANG; YUAN, CHUN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 060894/0325 →
Continuity (2)
Continuation PCTCN2019112487 · Oct 22, 2019
Related Publication 20220248353A1 · Aug 4, 2022
Cited By (1)
US 12,567,919