-
公开(公告)号:US12287666B2
公开(公告)日:2025-04-29
申请号:US18175365
申请日:2023-02-27
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Jiang Wang , Rui Wang , Zhaoqi Zhou
IPC: G06F1/12
Abstract: This application discloses a clock synchronization method and a related apparatus in a distributed system. The distributed system includes a plurality of nodes, and the plurality of nodes include a master node and a plurality of slave nodes. The master node obtains a plurality of local clock offsets, where each of the plurality of local clock offsets indicates a clock offset between two nodes in the distributed system. The master node determines a global clock offset of a target slave node relative to the master node based on the plurality of local clock offsets, and sends the global clock offset to the target slave node. The target slave node obtains a clock reference value of a local clock, and then performs clock synchronization based on the clock reference value and the global clock offset.