Method and apparatus for selecting clock source
AssigneeHuawei Technologies Co., Ltd.
InventorsYawei Zhang, Jingfei Lyu, Songyan Chen, Cong Chen
Life of this patent
Estimating the term…
Abstract
A method for selecting a clock source includes a first network device that obtains synchronization offset data between the first network device and a second network device through a first port in a clock synchronization failed state. The first network device determines, based on the synchronization offset data, whether to refer to, during clock source selection, clock information received by the first port.
Claims30
A method implemented by a first network device for selecting a clock source, the method comprising:
- receiving, through a first port, a synchronization packet from a second network device, wherein the first port is in a clock synchronization failed state;
- determining, based on the synchronization packet, that the port is in a clock synchronization normal state;
- receiving, by the first port, clock information after receiving the synchronization packet;
- and
- determining, based on the first port being in the clock synchronization normal state, to refer to the clock information during clock source selection.
A first network device comprising:
- one or more processors;
- and
- a memory configured to store program instructions, which, when executed by the one or more processors, cause the first network device to:
- receive, through a first port, a synchronization packet from a second network device, wherein the first port is in a clock synchronization failed state;
- determine, based on the synchronization packet, that the port is in the clock synchronization normal state;
- receive, by the first port, clock information after receiving the synchronization packet;
- and
- determine, based on the first port being in the clock synchronization normal state, to refer to the clock information during clock source selection.
A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable medium and that, when executed by one or more processors, cause a first network device to:
- receive, through a first port, a synchronization packet from a second network device, wherein the first port is in a clock synchronization failed state;
- determine, based on the synchronization packet, that the port is in the clock synchronization normal state;
- receive, by the first port, clock information after receiving the synchronization packet;
- and
- determine, based on the first port being in the clock synchronization normal state, to refer to the clock information during clock source selection.
Dependencies are inferred from the claim text.