Patent ID: 11881890
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Telecommunications (Electrical engineering)
Classification: CPC H | IPC H

Claim 17:
18. A communication system, comprising:
a first network device comprising a first processor; and
a second network device comprising a second processor,, wherein
the first network device is configured to:
receive an optical signal;
determine signal status information based on a power of the optical signal,

wherein the signal status information is used to indicate a state of a first subnetwork connection carrying the optical signal;
filter the signal status information based on a preset first threshold, wherein the first threshold indicates a minimum duration in which the optical signal is in a valid state;
determine, based on the filtered signal status information, first clock or the second clock is used to initialize connection monitoring information in response to the determination of whether to switch the currently used first clock to the second clock; and
send the connection monitoring information after initializing the connection monitoring information to the second network device, and

the second network device is configured to:
receive the connection monitoring information;
determine status information of a second subnetwork connection based on the connection monitoring information, wherein the second subnetwork connection is between the first network device and the second network device; and
determine valid status information of the second subnetwork connection based on a preset second threshold and the status information of the second subnetwork connection, wherein the valid status information is used to determine whether the second network device needs to perform protection switching on the second subnetwork connection, and the second threshold indicates a minimum duration in which the second subnetwork connection is in a valid state.