IP Library › Granted Patent US 12,732,295
Granted Patent B2
US 12,732,295 · App. 18/506,388 · Granted Sep 8, 2026

Packet transmission method and apparatus, device, and storage medium

Inventors: Jingfei Lyu (Wuhan, CN); Silvana Rodrigues (Vancouver, CA); Hongliang Su (Wuhan, CN); Hao Li (Dongguan, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
H04J3/0667H04J3/0697
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,732,295
App. No.
18/506,388
Granted
Sep 8, 2026
Kind
B2
Abstract

This application discloses a packet transmission method and apparatus, a device, and a storage medium, and relates to the field of communication technologies. The method includes: in response to that a second slave port of a network device is invalid or the second slave port does not exist, a second master port of the network device obtains a second dataset, where the second dataset is obtained by modifying a first dataset, and the first dataset includes a timestamp carried in a first clock packet received by a first slave port and data generated by the first slave port based on the first clock packet. The network device sends a second clock packet based on the second dataset through the second master port, where a timestamp carried in the second clock packet is the timestamp carried in the first clock packet.

Claims (66)

1 . A packet transmission method, wherein the method comprises:

in response to determining that a second slave port of a network device is invalid or the second slave port does not exist, obtaining, by a second master port of the network device, a second dataset by modifying a first dataset that comprises a timestamp carried in a first clock packet sent by a third master port and received by a first slave port and data generated by the first slave port based on the first clock packet, wherein the first slave port belongs to a first clock domain, and the second master port belongs to a second clock domain that has a different domainNumber from the first clock domain; and

sending, by the network device, a second clock packet based on the second dataset through the second master port, wherein a timestamp carried in the second clock packet is the timestamp carried in the first clock packet, and the first clock packet and the second clock packet each comprises a synchronization sync packet or a follow-up packet in a precision time protocol.

2 . The method according to claim 1 , wherein the obtaining the second dataset further comprises:

receiving, by the second master port, the first dataset; and

modifying the first dataset based on information about the second clock domain to obtain the second dataset.

3 . The method according to claim 2 , wherein the first dataset comprises a domainNumber, the modifying further comprising:

modifying a value of the domain Number of the first dataset to a domainNumber of the second clock domain.

4 . The method according to claim 2 , wherein the first dataset comprises a domain name, a local port number, a synchronization receipt time, a source port identity, and a log message interval, the modifying further comprising:

modifying a value of the domain name of the first dataset to a domain name of the second clock domain;

modifying a value of the local port number to a first value;

modifying a value of the synchronization receipt time to a second value;

modifying a clock identity in the source port identity to a clock identity of the second clock domain;

modifying a port number in the source port identity to a third value; and

modifying the log message interval to a time interval at which a ClockMaster of the second clock domain sends a packet.

5 . The method according to claim 1 , wherein an interworking function (IWF) is comprised between the second master port and the first slave port, the method further comprising:

modifying, by the IWF, the first dataset based on information about the second clock domain to obtain the second dataset; and

receiving, by the second master port, the second dataset sent by the IWF.

6 . The method according to claim 1 , wherein the network device comprises a second switch, the method further comprising:

obtaining, by the second master port, the second dataset based on control of the second switch and the first dataset corresponding to the first slave port.

7 . The method according to claim 6 , wherein the network device further comprises a first switch, and a first master port belongs to the first clock domain, the method further comprising:

in response to determining that the first slave port exists and is valid, sending, by the first master port, a fourth clock packet based on control of the first switch and the first dataset corresponding to the first slave port, wherein the fourth clock packet comprises a sync packet or a follow_up packet in the precision time protocol; and

in response to determining that the first slave port is invalid or the first slave port does not exist, and the second slave port exists and is valid, sending, by the first master port, a fifth clock packet based on a control of the first switch and a third dataset corresponding to the second slave port, wherein the fifth clock packet comprises a sync packet or a follow_up packet in the precision time protocol.

8 . The method according to claim 1 , wherein the network device comprises a second switch, the method further comprising:

in response to determining that the second slave port exists and is valid, and the second slave port belongs to the second clock domain, sending, by the second master port, a third clock packet based on a control of the second switch and a third dataset corresponding to the second slave port, wherein the third clock packet comprises a sync packet or a follow_up packet in the precision time protocol.

9 . The method according to claim 1 , wherein before the obtaining, the method further comprises:

receiving, by the first slave port, the first clock packet sent by the third master port, wherein the third master port corresponds to the first clock domain of a clock source device of the network device;

obtaining, based on the received first clock packet, the data generated based on the first clock packet; and

generating the first dataset based on the timestamp carried in the first clock packet and the data generated based on the first clock packet.

10 . A packet transmission apparatus, comprising:

a processor;

a memory storing program instructions, which, when executed by the processor, cause the apparatus to:

in response to determining that a second slave port of a network device is invalid or the second slave port does not exist, obtain, by a second master port of the network device, a second dataset by modifying a first dataset that comprises a timestamp carried in a first clock packet sent by a third master port and received by a first slave port and data generated by the first slave port based on the first clock packet, wherein the first slave port belongs to a first clock domain, and the second master port belongs to a second clock domain that has a different domainNumber from the first clock domain; and

send a second clock packet based on the second dataset through the second master port, wherein a timestamp carried in the second clock packet is the timestamp carried in the first clock packet, and the first clock packet and the second clock packet each comprises a synchronization sync packet or a follow-up packet in a precision time protocol.

11 . The apparatus according to claim 10 , wherein the program instructions further cause the apparatus to:

receive, by the second master port, the first dataset; and

modify the first dataset based on information about the second clock domain, to obtain the second dataset.

12 . The apparatus according to claim 11 , wherein the first dataset comprises a domainNumber, and wherein the apparatus is further configured to:

modify a value of the domain Number of the first dataset to a domainNumber of the second clock domain of the network device.

13 . The apparatus according to claim 11 , wherein the first dataset comprises a domain name, a local port number, a synchronization receipt time, a source port identity, and a log message interval; and the apparatus is further configured to:

modify a value of the domain name of the first dataset to a domain name of the second clock domain;

modify a value of the local port number to a first value;

modify a value of the synchronization receipt time to a second value;

modify a clock identity in the source port identity to a clock identity of the second clock domain;

modify a port number in the source port identity to a third value; and

modify the log message interval to a time interval at which a ClockMaster of the second clock domain sends a packet.

14 . The apparatus according to claim 10 , wherein an interworking function (IWF) is comprised between the second master port and the first slave port, the apparatus further configured to:

modify, by the IWF, the first dataset based on information about the second clock domain to obtain the second dataset; and

receive, by the second master port, the second dataset sent by the IWF.

15 . The apparatus according to claim 10 , wherein the network device comprises a second switch; and wherein the apparatus is further configured to:

obtain, by the second master port, the second dataset based on control of the second switch and the first dataset corresponding to the first slave port.

16 . The apparatus according to claim 15 , wherein the network device further comprises a first switch, a first master port belongs to the first clock domain, and wherein the apparatus is further configured to:

in response to determining that the first slave port exists and is valid, send, by the first master port, a fourth clock packet based on control of the first switch and the first dataset corresponding to the first slave port, wherein the fourth clock packet comprises a sync packet or a follow_up packet in the precision time protocol; and

in response to determining that the first slave port is invalid or the first slave port does not exist, and the second slave port exists and is valid, send, by the first master port, a fifth clock packet based on a control of the first switch and a third dataset corresponding to the second slave port, wherein the fifth clock packet comprises a sync packet or a follow_up packet in the precision time protocol.

17 . The apparatus according to claim 10 , wherein the network device comprises a second switch, and wherein the apparatus is further configured to:

in response to determining that the second slave port exists and is valid, and the second slave port belongs to the second clock domain, send, by the second master port, a third clock packet based on a control of the second switch and a third dataset corresponding to the second slave port, wherein the third clock packet comprises a sync packet or a follow_up packet in the precision time protocol.

18 . The apparatus according to claim 10 , wherein the apparatus is further configured to:

receive, by the first slave port, the first clock packet sent by the third master port, wherein the third master port corresponds to the first clock domain of a clock source device of the network device;

obtain, based on the received first clock packet, the data generated based on the first clock packet; and

generate the first dataset based on the timestamp carried in the first clock packet and the data generated based on the first clock packet.

19 . A non-transitory computer-readable storage medium, wherein the storage medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor, to enable a computer to:

in response to determining that a second slave port of a network device is invalid or the second slave port does not exist, obtain, by a second master port of the network device, a second dataset by modifying a first dataset that comprises a timestamp carried in a first clock packet sent by a third master port and received by a first slave port and data generated by the first slave port based on the first clock packet, wherein the first slave port belongs to a first clock domain, and the second master port belongs to a second clock domain that has a different domainNumber from the first clock domain; and

send a second clock packet based on the second dataset through the second master port, wherein a timestamp carried in the second clock packet is the timestamp carried in the first clock packet, and the first clock packet and the second clock packet each comprises a synchronization sync packet or a follow-up packet in a precision time protocol.

20 . The non-transitory computer-readable storage medium of claim 19 , wherein the computer is further to:

receive, by the second master port, the first dataset; and

modify the first dataset based on information about the second clock domain to obtain the second dataset.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2025
From: LYU, JINGFEI; RODRIGUES, SILVANA; SU, HONGLIANG; LI, HAO
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 072211/0039 →
Priority Claims (2)
CN 202110518908.1 · May 12, 2021 · national
CN 202110639092.8 · Jun 8, 2021 · national
Continuity (2)
Continuation PCTCN2022073839 · Jan 25, 2022
Related Publication 20240080122A1 · Mar 7, 2024
References Cited (15)
US 9654242B2 · Cao · 2017 [cited by examiner]
US 10574348B2 · Seo · 2020 [cited by examiner]
US 11924314B2 · Han · 2024 [cited by examiner]
US 20160170439A1 · Aweya · 2016 [cited by examiner]
US 20160277138A1 · Garg · 2016 [cited by examiner]
US 20200259896A1 · Sachs · 2020 [cited by examiner]
US 20210050988A1 · Fong · 2021 [cited by examiner]
US 20210385058A1 · Guignard · 2021 [cited by examiner]
US 20220103335A1 · Moon · 2022 [cited by examiner]
US 20220149964A1 · Kang · 2022 [cited by examiner]
US 20220353167A1 · Mishra · 2022 [cited by examiner]
IEEE Standard for Local and Metropolitan Area Networks, Timing and Synchronization for Time Sensitive Applications, IEEE Std 802.1AS 2020, Jan. 30, 2020, total 421 pages. [cited by applicant]
IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems, IEEE Instrumentation and Measurement Society, IEEE Std 1588-2019, Nov. 7, 2019, total 499 pages. [cited by applicant]
Draft Standard for Local and metropolitan area networks, Timing and Synchronization for Time-Sensitive Applications, Amendment: Hot Standby, P802.1ASdm/D0.2, Mar. 15, 2021, total 47 pages. [cited by applicant]
Series G: Transmission Systems and Media, Digital Systems and Networks, Packet over Transport aspects Synchronization, quality and availability targets, Series Y: Global Information Infrastructure, Internet Protocol Asp… [cited by applicant]