Link detection method and related apparatus

By analyzing signals to determine whether there is a wavelength division device on the link, the problem of routers in the bearer network being unable to determine the connection status is solved, and the accuracy of link detection and operation and maintenance efficiency are improved.

WO2024199024A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/082572
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-28
Filing Date
2024-03-20
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In the bearer network, routers cannot determine whether the link is connected through WDM equipment, resulting in inconsistent bidirectional paths of the 1588 protocol, affecting communication performance. How to identify whether the link passes through WDM equipment has become an urgent problem to be solved.

Method used

By acquiring and analyzing signals, such as fault signals, loss of signal (LOS) or alarm signals, to determine whether there is a wavelength division device on the link, using the method of constructing and receiving these signals to determine whether the link contains wavelength division equipment, and then determining the link Test results.

Benefits of technology

It achieves accurate detection of the presence of wavelength division equipment on the target link, improves operation and maintenance efficiency, avoids the performance impact introduced by wavelength division equipment, and ensures stable communication performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082572_03102024_PF_FP_ABST
    Figure CN2024082572_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a link detection method and a related apparatus. The method comprises: a first communication apparatus acquiring a first signal, wherein the first signal is used for detecting whether there is a wavelength division device in a target link; and the first communication apparatus determining a link detection result according to the first signal, wherein the link detection result indicates that there is a wavelength division device in the target link, or that there is no wavelength division device in the target link. By means of acquiring a first signal, a first communication apparatus can detect whether there is a wavelength division device in a target link between the first communication apparatus and a second communication apparatus, such that the operation and maintenance personnel checks the connection condition of the target link, and the operation and maintenance efficiency is thus improved by means of preventing the communication performance from being affected due to the introduction of the wavelength division device.
Need to check novelty before this filing date? Find Prior Art

Description

Link detection method and related device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 28, 2023, with application number 202310359006.7 and invention name “A link detection method and related device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a link detection method and related devices. Background Art

[0003] A bearer network is a network used to carry data and enable data exchange between the access network and the core network. With the development of services, current networks now include a variety of devices, including metropolitan area network core routers (MCRs), metropolitan area network edge routers (MERs), metropolitan area network access routers (MARs), and wavelength division multiplexing (WDM) equipment. WDM equipment includes, but is not limited to, optical transport network (OTN) equipment. For example, routers can be connected directly or through WDM equipment such as OTN. When the WDM equipment between routers is configured in bit-transparent transmission mode, the routers cannot determine whether the routers are connected directly or through WDM equipment.

[0004] The 1588 protocol is a Precision Time Protocol (PTP) standard for network measurement and control systems. It is primarily used in distributed network communication scenarios to synchronize the clocks of each node. Specifically, 1588 messages are transmitted between a 1588 server (such as a building-integrated timing supply (BITS)) and network devices (such as base stations) to achieve clock synchronization.

[0005] When 1588 is enabled on the bearer network, bidirectional path inconsistencies may occur when routers and other devices transmit 1588 packets. For example, a 1588 packet sent from a BITS in the first direction passes through Router 1, a WDM device, and Router 2 before reaching the base station. A 1588 packet sent back from the base station in the second direction passes through Router 2 and Router 1 before reaching the BITS. These bidirectional path inconsistencies introduce mismatches, affecting 1588 performance and, consequently, communication performance. Therefore, identifying whether a link passes through a WDM device becomes a pressing issue.

[0006] Summary of the Invention

[0007] In a first aspect, an embodiment of the present application provides a link detection method, comprising:

[0008] The first communication device obtains a first signal, which is used to detect whether there is a wavelength division device on the target link; the first communication device determines a link detection result based on the first signal, and the link detection result indicates that the wavelength division device exists on the target link, or that the wavelength division device does not exist on the target link.

[0009] One end of the target link is a first communication device, and the other end of the target link is a second communication device.

[0010] Wavelength division multiplexing (WDM) is a technology that combines two or more optical carrier signals (carrying various information) of different wavelengths at the transmitting end using wavelength division equipment and couples them into the same optical fiber for transmission. At the receiving end, wavelength division equipment separates the optical carriers of different wavelengths and then processes them to restore the original signals. WDM equipment includes, but is not limited to, Optical Transport Network (OTN) equipment.

[0011] In an embodiment of the present application, a first communication device acquires a first signal, which is used to detect whether a wavelength division multiplexing (WDM) device exists on a target link. Based on the first signal, the first communication device can acquire a link detection result, which indicates whether a WDM device exists on the target link. By acquiring the first signal, the first communication device can detect whether a WDM device exists on the target link, allowing operations and maintenance personnel to query the connection status of the target link. This improves operations and maintenance efficiency by preventing the introduction of WDM devices that could affect communication performance.

[0012] In a possible implementation of the first aspect, the first signal is a first alarm signal generated based on an abnormal signal received from the second communication device, and the first communication device determines the link detection result based on the first signal, including: the first communication device determines the link detection result based on the first alarm signal, the link detection result indicates that the wavelength division device does not exist in the target link, the target link is the link between the second communication device and the first communication device, and the first alarm signal includes a physical PHY layer alarm signal.

[0013] In one possible implementation, the second communication device suspends transmitting optical signals to the first communication device during a first time period. Using the aforementioned method, the second communication device proactively generates a first fault signal. If the first communication device fails to receive optical signals for a period of time, the first communication device deems the signal received on the current target link abnormal and generates a first alarm signal.

[0014] In another possible implementation, the second communication device sends a predetermined loss of service (LOS) signal to the first communication device. The predetermined LOS signal sent by the second communication device is referred to as a first LOS. When the first communication device receives the first LOS, the first communication device determines that the received signal is abnormal and generates a first alarm signal in response to the first LOS.

[0015] Exemplarily, the first alarm signal includes but is not limited to: loss of signal (LOS), block unlock (Block_unlock) signal, high bit error rate (High_Bit Error Ratio, HI_BER) signal, "AM_unlock / AM_misalign" signal, signal degradation (Signal Degrade, SD) signal, signal failure (Signal Fail, SF) signal, alignment code block unlock (AlignMaker_unlock, AM_unlock) signal, and alignment character alignment status loss (AM_misalign) signal.

[0016] In a possible implementation of the first aspect, the first signal is a first loss of signal LOS sent by the second communication device, and the first communication device determines the link detection result based on the first signal, including: the first communication device determines the link detection result based on the first LOS, the link detection result indicates that the wavelength division device does not exist in the target link, and the target link is the link between the second communication device and the first communication device.

[0017] Specifically, after receiving the first LOS signal, the wavelength division device discards it and, in response to the first LOS signal, sends a third alarm signal to the next-hop node. This third alarm signal indicates that the wavelength division device has detected an abnormality in the target link. Therefore, when the first communication device receives the first LOS signal from the second communication device, it can determine based on the first LOS signal that no wavelength division device exists in the target link. For example, the first LOS signal can be "0101010101010101," "001100110011," or "0000111100001111," etc. This improves the implementation flexibility of the solution.

[0018] In a possible implementation of the first aspect, the first communication device determines the link detection result based on the first LOS, including: the first communication device receives the first LOS; the first communication device generates a second alarm signal, and the second alarm signal includes a physical PHY layer alarm signal; the first communication device determines the link detection result based on the second alarm signal, and the link detection result indicates that the wavelength division device does not exist on the target link.

[0019] Specifically, after receiving the first LOS, the first communication device generates a second alarm signal in response to the first LOS. The second alarm signal includes a PHY layer alarm signal. Therefore, the first communication device can determine that the first LOS has been received based on the generated second alarm signal, and further determine a link detection result, wherein the link detection result indicates that the wavelength division multiplexing device is not present on the target link.

[0020] Exemplarily, the second alarm signal includes but is not limited to: lost LOS signal, block unlocked (Block_unlock) signal, high bit error rate (High_Bit Error Ratio, HI_BER) signal, "AM_unlock / AM_misalign" signal, signal degradation (Signal Degrade, SD) signal, signal failure (Signal Fail, SF) signal, alignment code block unlocked (AlignMaker_unlock, AM_unlock) signal, and alignment character alignment status lost (AM_misalign) signal.

[0021] In a possible implementation of the first aspect, the first signal is a third alarm signal sent by a wavelength division device, and the first communication device determines the link detection result based on the first signal, including: the first communication device determines the link detection result based on the third alarm signal, and the link detection result indicates that the wavelength division device exists in the target link.

[0022] Specifically, after the wavelength division device receives the agreed LOS signal (e.g., the first LOS from the second communication device), the wavelength division device discards the LOS signal and sends a third alarm signal to the next-hop node. The third alarm signal indicates that the wavelength division device has detected an abnormality in the target link. Exemplary third alarm signals include, but are not limited to, link fault information, all-one-code alarm (AIS) information, or other alarm signals. Therefore, after the first communication device receives the third alarm signal sent by the wavelength division device, it can determine that the link detection result indicates that the wavelength division device exists on the target link.

[0023] In a possible implementation of the first aspect, the first communication device determines the link detection result based on the third alarm signal, including: in response to the third alarm signal received by the first communication device from the wavelength division device, and the alarm signal generated by the first communication device does not include the first alarm signal, the first communication device determines the link detection result, the link detection result indicates that the wavelength division device exists in the target link, and the first alarm signal includes a physical PHY layer alarm signal.

[0024] Specifically, after receiving the third alarm signal, the first communication device determines that the third alarm signal was sent by the wavelength division multiplexing device based on the fact that the alarm signals generated by the first communication device do not include the first alarm signal. Because the first communication device received the third alarm signal from the wavelength division multiplexing device, the first communication device determines that the wavelength division multiplexing device exists on the current target link.

[0025] In a possible implementation of the first aspect, the first communication device determines the link detection result based on the third alarm signal, including: in response to the third alarm signal received by the first communication device from the wavelength division device, and the optical signal received by the first communication device does not include the first LOS, the first communication device determines the link detection result, the link detection result indicates that the wavelength division device exists in the target link, wherein the first LOS is used to instruct the wavelength division device that receives the first LOS to discard the first LOS, and send a third alarm signal to the next-hop device, the third alarm signal being used to indicate that the wavelength division device exists in the target link.

[0026] Specifically, after receiving the third alarm signal, the first communication device determines that the third alarm signal was sent by the wavelength division device based on the fact that the received optical signal does not include the first LOS. Since the first communication device received the third alarm signal from the wavelength division device, the first communication device determines that the wavelength division device exists in the current target link.

[0027] In a possible implementation of the first aspect, the first communication device determines the link detection result based on the first signal, including: in response to the first communication device not receiving the third alarm signal, and the alarm signal generated by the first communication device does not include the alarm signal of the PHY layer, determining that the link detection result indicates that the target link has failed or the second communication device has failed, wherein the third alarm signal is sent by the wavelength division device, the third alarm signal is used to indicate the presence of the wavelength division device in the target link, and the first alarm signal indicates that the target link has no optical signal.

[0028] Specifically, due to a target link failure and / or a second communication device failure (e.g., a failure of the optical module of the second communication device), the first communication device is unable to obtain the first fault signal or first LOS constructed by the second communication device. Therefore, the alarm signal generated by the first communication device does not include an alarm signal at the PHY layer. For example, the first communication device does not generate the first alarm signal. Similarly, the first communication device is unable to receive the third alarm signal. Therefore, based on the failure to receive the third alarm signal and the fact that the alarm signal generated by the first communication device does not include an alarm signal at the PHY layer, the first communication device determines that the link detection result is a second communication device failure and / or a target link failure.

[0029] In a possible implementation of the first aspect, the first communication device determines the link detection result based on the first signal, including: in response to the optical signal received by the first communication device not including the third alarm signal and the first LOS, determining that the link detection result indicates that the target link has failed or the second communication device has failed, wherein the third alarm signal is sent by the wavelength division device, and the third alarm signal is used to indicate the presence of the wavelength division device in the target link.

[0030] Specifically, due to a target link failure and / or a second communication device failure (e.g., a failure of the second communication device's optical module), the first communication device is unable to receive the first LOS from the second communication device. Therefore, the alarm signal generated by the first communication device does not include an alarm signal from the PHY layer. For example, the first communication device does not generate the first alarm signal. Similarly, the first communication device is unable to receive the third alarm signal. Therefore, based on the failure to receive the third alarm signal and the failure of the first communication device's PHY layer to generate the first alarm signal, the first communication device determines that the link detection result is a failure of the second communication device and / or the target link.

[0031] In a possible implementation of the first aspect, the method further includes: the first communication device constructing a second signal, where the second signal is used to detect the presence of the wavelength division device on the target link, or the absence of the wavelength division device on the target link. The first communication device may further construct the second signal so that the second communication device determines a link detection result based on the second signal, thereby increasing the implementation flexibility of the solution.

[0032] In one possible implementation of the first aspect, the second signal includes a second fault signal or a second loss of optical signal (LOS). The second fault signal indicates that the first communication device suspends transmitting optical signals to the second communication device during a second time period, and the wavelength division multiplexing device discards the second LOS after receiving the second LOS. Multiple possible implementations of the second signal enhance the implementation flexibility of the solution.

[0033] In a possible implementation of the first aspect, the method further includes: the first communication device sends a link detection result to the second communication device, and the link detection result indicates that the wavelength division device does not exist on the target link; or, the link detection result indicates that the wavelength division device exists on the target link.

[0034] In a possible implementation of the first aspect, the method further includes: the first communication device sending the link detection result to a network management device. The network management device forwards the link detection result to the second communication device, so that the second communication device obtains the link detection result. Optionally, after the network management device obtains the link detection result, if the link detection result indicates that a wavelength division multiplexing device exists on the target link, the network management device may notify the operation and maintenance personnel of the wavelength division multiplexing device to inspect the wavelength division multiplexing device, so that the operation and maintenance personnel of the wavelength division multiplexing device are aware of the operating location of the wavelength division multiplexing device.

[0035] In a second aspect, an embodiment of the present application proposes a link detection method, including:

[0036] The second communication device constructs a first signal, which is used to detect whether there is a wavelength division device on the target link; the second communication device obtains a link detection result, which indicates that the wavelength division device exists on the target link, or that the wavelength division device does not exist on the target link.

[0037] One end of the target link is the second communication device, and the other end of the target link is the first communication device.

[0038] Wavelength division multiplexing (WDM) is a technology that combines two or more optical carrier signals (carrying various information) of different wavelengths at the transmitting end using wavelength division equipment and couples them into the same optical fiber for transmission. At the receiving end, wavelength division equipment separates the optical carriers of different wavelengths and then processes them to restore the original signals. WDM equipment includes, but is not limited to, Optical Transport Network (OTN) equipment.

[0039] In this embodiment of the present application, a second communication device constructs a first signal, which is used to detect whether a wavelength division multiplexing (WDM) device exists on the target link. The second communication device then obtains a link detection result, which indicates whether a WDM device exists on the target link. By constructing the first signal, the second communication device can detect whether a WDM device exists on the target link between the second communication device and the first communication device, allowing operations and maintenance personnel to query the connection status of the target link. This improves operations and maintenance efficiency by preventing the introduction of WDM devices that could affect communication performance.

[0040] In one possible implementation of the second aspect, the first signal includes a first fault signal, wherein the first fault signal indicates that the second communication device has suspended transmitting optical signals to the first communication device during a first time period. By suspending transmission of optical signals, the second communication device generates the first fault signal, thereby increasing the implementation flexibility of the solution.

[0041] In one possible implementation of the second aspect, the first signal includes a first loss of signal (LOS) signal, the first LOS being used to instruct the wavelength division device receiving the first LOS to discard the first LOS signal and to send a third alarm signal to a next-hop device, the third alarm signal being used to indicate the presence of the wavelength division device on the target link. The first LOS signal has the following characteristics: upon receiving the first LOS signal, the wavelength division device discards the first LOS signal. Therefore, the wavelength division device's next-hop device cannot receive the first LOS signal. Upon receiving the first LOS signal, the wavelength division device sends a third alarm signal to the next-hop device, the third alarm signal indicating that the wavelength division device has detected an abnormality on the target link. Exemplarily, the first LOS signal can be "0101010101010101," "0011001100110011," or "0000111100001111," etc. This improves the implementation flexibility of the solution. The third alarm signal includes but is not limited to: link fault (Link Fault) information, all-one code alarm (AIS) information, or other alarm signals.

[0042] In a possible implementation of the second aspect, the second communication device obtains the link detection result, including: the second communication device obtains a second signal; the second communication device determines the link detection result based on the obtained second signal, and the second signal is used to detect the presence of the wavelength division device in the target link, or the absence of the wavelength division device in the target link.

[0043] Specifically, there are multiple possible implementations of the second signal, which are described below:

[0044] 1. The second signal is a first alarm signal generated according to an abnormality in a signal received from the first communication device.

[0045] In one possible implementation, the first communication device suspends transmitting optical signals to the second communication device during a second time period. In this manner, the first communication device proactively generates a second fault signal. In response to the second fault signal, the first communication device determines that the signal currently being received on the target link is abnormal and generates a first alarm signal. The first alarm signal includes a physical (PHY) layer alarm signal.

[0046] In another possible implementation, a first communication device sends a predetermined loss of service (LOS) signal to a second communication device. The predetermined LOS signal sent by the first communication device is referred to as a second LOS. Upon receiving the second LOS, the second communication device determines that the received signal is abnormal and generates a first alarm signal in response to the second LOS.

[0047] Exemplarily, the first alarm signal includes but is not limited to: lost LOS signal, block unlocked (Block_unlock) signal, high bit error rate (High_Bit Error Ratio, HI_BER) signal, "AM_unlock / AM_misalign" signal, signal degradation (Signal Degrade, SD) signal, signal failure (Signal Fail, SF) signal, alignment code block unlocked (AlignMaker_unlock, AM_unlock) signal, and alignment character alignment status lost (AM_misalign) signal.

[0048] 2. The second signal is a second LOS sent by the first communication device.

[0049] 3. The second signal is a third alarm signal sent by the wavelength division device. Specifically, after receiving the agreed-upon LOS signal, the wavelength division device discards the LOS signal and sends a third alarm signal to the next-hop node. The third alarm signal indicates that the wavelength division device has detected an abnormality in the target link. Exemplary third alarm signals include, but are not limited to, link fault information, all-one-code alarm (AIS) information, or other alarm signals.

[0050] The second communication device can determine the link detection result through a variety of second signals, thereby improving the implementation flexibility of the solution.

[0051] In a possible implementation of the second aspect, the second signal is a first alarm signal generated based on an abnormal signal received from the first communication device, and the second communication device determines the link detection result based on the obtained second signal, including: the second communication device determines the link detection result based on the first alarm signal, the link detection result indicates that the wavelength division device does not exist in the target link, the target link is the link between the second communication device and the first communication device, and the first alarm signal includes a physical PHY layer alarm signal.

[0052] In one possible implementation, a first communication device suspends transmitting optical signals to a second communication device during a first time period. Using the aforementioned method, the first communication device proactively generates a second fault signal. If the second communication device fails to receive optical signals for a period of time, the second communication device deems the signal received on the current target link abnormal and generates a first alarm signal.

[0053] In another possible implementation, a first communication device sends a predetermined loss of service (LOS) signal to a second communication device. The predetermined LOS signal sent by the first communication device is referred to as a second LOS. Upon receiving the second LOS, the second communication device determines that the received signal is abnormal and generates a first alarm signal in response to the second LOS.

[0054] Exemplarily, the first alarm signal includes but is not limited to: lost LOS signal, block unlocked (Block_unlock) signal, high bit error rate (High_Bit Error Ratio, HI_BER) signal, "AM_unlock / AM_misalign" signal, signal degradation (Signal Degrade, SD) signal, signal failure (Signal Fail, SF) signal, alignment code block unlocked (AlignMaker_unlock, AM_unlock) signal, and alignment character alignment status lost (AM_misalign) signal.

[0055] In a possible implementation of the second aspect, the second signal is a second loss of signal LOS sent by the first communication device, and the second communication device determines the link detection result based on the second signal, including: the second communication device determines the link detection result based on the second LOS, the link detection result indicates that the wavelength division device does not exist in the target link, and the target link is the link between the second communication device and the first communication device.

[0056] The second LOS has the following characteristics: After receiving the second LOS, the WDM device discards it. Therefore, the next-hop device cannot receive the second LOS. Upon receiving the second LOS, the WDM device sends a third alarm signal to the next-hop device, indicating that the WDM device has detected an abnormality on the target link. For example, the second LOS can be "0101010101010101," "001100110011," or "0000111100001111," etc. This improves the implementation flexibility of the solution.

[0057] In a possible implementation of the second aspect, the second communication device determines the link detection result based on the second LOS, including: the second communication device receives the second LOS; the second communication device generates a second alarm signal, and the second alarm signal includes a physical PHY layer alarm signal; the second communication device determines the link detection result based on the second alarm signal, and the link detection result indicates that the wavelength division device does not exist on the target link.

[0058] Specifically, after receiving the second LOS, the second communication device generates a second alarm signal in response to the second LOS, the second alarm signal including a PHY layer alarm signal. The second communication device then determines a link detection result based on the second alarm signal, the link detection result indicating that no wavelength division multiplexing equipment exists on the target link.

[0059] Exemplarily, the second alarm signal includes but is not limited to: lost LOS signal, block unlocked (Block_unlock) signal, high bit error rate (High_Bit Error Ratio, HI_BER) signal, "AM_unlock / AM_misalign" signal, signal degradation (Signal Degrade, SD) signal, signal failure (Signal Fail, SF) signal, alignment code block unlocked (AlignMaker_unlock, AM_unlock) signal, and alignment character alignment status lost (AM_misalign) signal.

[0060] In a possible implementation of the second aspect, the second signal is a third alarm signal sent by the wavelength division device, and the second communication device determines the link detection result based on the second signal, including: the second communication device determines the link detection result based on the third alarm signal, and the link detection result indicates that the wavelength division device exists in the target link.

[0061] Specifically, when a wavelength division multiplexing (WDM) device receives a predetermined LOS signal (e.g., a second LOS signal from a first communication device) or detects a fault signal in a link (e.g., a second fault signal proactively generated by the first communication device), the WDM device sends a third alarm signal to the next-hop node. When a second communication device receives the third alarm signal from the WDM device, the second communication device determines a link detection result based on the third alarm signal. This link detection result indicates the presence of a WDM device in the target link.

[0062] In one possible implementation, the second communication device responds to a third alarm signal received from a wavelength division device, and the alarm signal generated by the second communication device does not include the first alarm signal, and the second communication device determines that the link detection result indicates that a wavelength division device exists in the target link.

[0063] In another possible implementation, the second communication device responds to the third alarm signal received from the wavelength division device and the optical signal received by the second communication device does not include the second LOS, and the second communication device determines that the link detection result indicates that the wavelength division device exists in the target link.

[0064] In a possible implementation of the second aspect, the second communication device obtaining the link detection result includes: the second communication device receiving the link detection result from the first communication device. The second communication device can also obtain the link detection result from the first communication device, thereby improving the implementation flexibility of the solution.

[0065] In a possible implementation of the second aspect, the method further includes: the second communication device sending the link detection result to a network management device. Optionally, after the network management device obtains the link detection result, if the link detection result indicates that a wavelength division multiplexing device exists on the target link, the network management device may notify an operator of the wavelength division multiplexing device to inspect the wavelength division multiplexing device so that the operator is aware of the operating location of the wavelength division multiplexing device.

[0066] In a third aspect, an embodiment of the present application provides a communication device, which is applied to a first communication device, and includes:

[0067] a transceiver module, configured to obtain a first signal, wherein the first signal is used to detect whether a wavelength division device exists in a target link;

[0068] The processing module is configured to determine a link detection result according to the first signal, where the link detection result indicates that the wavelength division device exists on the target link, or that the wavelength division device does not exist on the target link.

[0069] In one possible implementation,

[0070] The first signal is a first alarm signal generated according to an abnormality in a signal received from the second communication device,

[0071] The processing module is also used to determine the link detection result based on the first alarm signal, and the link detection result indicates that the wavelength division equipment does not exist in the target link. The target link is the link between the second communication device and the first communication device, and the first alarm signal includes a physical PHY layer alarm signal.

[0072] In one possible implementation,

[0073] The first signal is a first loss of service signal (LOS) sent by the second communication device.

[0074] The processing module is further configured to determine the link detection result according to the first LOS, wherein the link detection result indicates that the wavelength division device does not exist in the target link, and the target link is the link between the second communication device and the first communication device.

[0075] In one possible implementation,

[0076] a transceiver module, further configured for the first communication device to receive the first LOS;

[0077] The processing module is further configured to generate a second alarm signal, wherein the second alarm signal includes a physical (PHY) layer alarm signal;

[0078] The processing module is further configured to determine the link detection result according to the second alarm signal, where the link detection result indicates that the wavelength division device does not exist on the target link.

[0079] In one possible implementation,

[0080] The first signal is a third alarm signal sent by the wavelength division device,

[0081] The processing module is further configured to determine the link detection result according to the third alarm signal, where the link detection result indicates that the wavelength division device exists on the target link.

[0082] In one possible implementation,

[0083] The processing module is also used to determine the link detection result in response to the third alarm signal received by the first communication device from the wavelength division device, and the alarm signal generated by the first communication device does not include the first alarm signal, the link detection result indicates that the wavelength division device exists in the target link, and the first alarm signal includes a physical PHY layer alarm signal.

[0084] In one possible implementation,

[0085] The processing module is further used to determine the link detection result in response to the third alarm signal received by the first communication device from the wavelength division device, and the optical signal received by the first communication device does not include the first LOS, wherein the link detection result indicates that the wavelength division device exists on the target link, wherein the first LOS is used to instruct the wavelength division device that receives the first LOS to discard the first LOS, and to send a third alarm signal to the next-hop device, wherein the third alarm signal is used to indicate that the wavelength division device exists on the target link.

[0086] In one possible implementation,

[0087] The transceiver module is further used to construct a second signal, where the second signal is used to detect whether the wavelength division device exists on the target link or whether the wavelength division device does not exist on the target link.

[0088] In one possible implementation,

[0089] The transceiver module is further configured to send the link detection result to the second communication device.

[0090] In one possible implementation,

[0091] The transceiver module is further configured to send the link detection result to the network management device.

[0092] In a fourth aspect, an embodiment of the present application provides a communication device, which is applied to a second communication device, and includes:

[0093] a transceiver module, configured to construct a first signal for detecting whether a wavelength division device exists on a target link;

[0094] The processing module is configured to obtain a link detection result, where the link detection result indicates that the wavelength division device exists on the target link, or that the wavelength division device does not exist on the target link.

[0095] In a possible implementation, the first signal includes:

[0096] A first fault signal is generated, wherein the first fault signal is generated when the second communication device suspends sending optical signals to the first communication device within a first time period.

[0097] In a possible implementation, the first signal includes:

[0098] A first loss of signal LOS is generated, wherein the first LOS is used to instruct the wavelength division device receiving the first LOS to discard the first LOS, and a third alarm signal is sent to the next-hop device, wherein the third alarm signal is used to indicate that the wavelength division device exists on the target link.

[0099] In one possible implementation,

[0100] The transceiver module is further configured to obtain a second signal;

[0101] The processing module is further used to determine the link detection result according to the acquired second signal, where the second signal is used to detect whether the wavelength division device exists on the target link, or whether the wavelength division device does not exist on the target link.

[0102] In a possible implementation, the second signal is a first alarm signal generated according to an abnormality in a signal received from the first communication device.

[0103] The processing module is also used to determine the link detection result based on the first alarm signal, and the link detection result indicates that the wavelength division equipment does not exist in the target link. The target link is the link between the second communication device and the first communication device, and the first alarm signal includes a physical PHY layer alarm signal.

[0104] In a possible implementation, the second signal is a second loss signal LOS sent by the first communication device.

[0105] The processing module is further configured to determine the link detection result according to the second LOS, wherein the link detection result indicates that the wavelength division device does not exist in the target link, and the target link is the link between the second communication device and the first communication device.

[0106] In a possible implementation, the transceiver module is further configured to receive the second LOS;

[0107] The processing module is further configured to generate a second alarm signal, wherein the second alarm signal includes a physical (PHY) layer alarm signal;

[0108] The processing module is further configured to determine the link detection result according to the second alarm signal, where the link detection result indicates that the wavelength division device does not exist on the target link.

[0109] In a possible implementation, the second signal is a third alarm signal sent by a wavelength division device.

[0110] The processing module is further configured to determine the link detection result according to the third alarm signal, where the link detection result indicates that the wavelength division device exists on the target link.

[0111] In one possible implementation, the processing module is further used to determine the link detection result in response to the third alarm signal received by the second communication device from the wavelength division device, and the alarm signal generated by the second communication device does not include the first alarm signal, the link detection result indicates that the wavelength division device exists in the target link, and the first alarm signal includes a physical PHY layer alarm signal.

[0112] In one possible implementation, the processing module is further used to determine the link detection result in response to the third alarm signal received by the second communication device from the wavelength division device, and the optical signal received by the second communication device does not include the second LOS, and the link detection result indicates that the wavelength division device exists in the target link.

[0113] In a possible implementation, the transceiver module is further configured to receive the link detection result from the first communication device.

[0114] In a possible implementation, the transceiver module is further configured to send the link detection result to a network management device.

[0115] In a fifth aspect, an embodiment of the present application provides a communication device, which is applied to a first communication device, and includes:

[0116] A communication interface, configured to obtain a first signal, wherein the first signal is used to detect whether a wavelength division device exists in a target link;

[0117] The processor is configured to determine a link detection result according to the first signal, where the link detection result indicates that the wavelength division device exists on the target link, or that the wavelength division device does not exist on the target link.

[0118] In one possible implementation,

[0119] The first signal is a first alarm signal generated according to an abnormality in a signal received from the second communication device,

[0120] The processor is also used to determine the link detection result based on the first alarm signal, the link detection result indicates that the wavelength division device does not exist in the target link, the target link is the link between the second communication device and the first communication device, and the first alarm signal includes a physical PHY layer alarm signal.

[0121] In one possible implementation,

[0122] The first signal is a first loss of service signal (LOS) sent by the second communication device.

[0123] The processor is further configured to determine the link detection result according to the first LOS, where the link detection result indicates that the wavelength division device does not exist in the target link, and the target link is the link between the second communication device and the first communication device.

[0124] In one possible implementation,

[0125] The communication interface is further configured for the first communication device to receive the first LOS;

[0126] The processor is further configured to generate a second alarm signal, where the second alarm signal includes a physical (PHY) layer alarm signal;

[0127] The processor is further configured to determine the link detection result according to the second alarm signal, where the link detection result indicates that the wavelength division device does not exist on the target link.

[0128] In one possible implementation,

[0129] The first signal is a third alarm signal sent by the wavelength division device,

[0130] The processor is further configured to determine the link detection result according to the third alarm signal, where the link detection result indicates that the wavelength division device exists on the target link.

[0131] In one possible implementation,

[0132] The processor is further used to determine the link detection result in response to the third alarm signal received by the first communication device from the wavelength division device, and the alarm signal generated by the first communication device does not include the first alarm signal, wherein the link detection result indicates that the wavelength division device exists in the target link, and the first alarm signal includes a physical PHY layer alarm signal.

[0133] In one possible implementation,

[0134] The processor is further configured to determine the link detection result in response to the third alarm signal received by the first communication device from the wavelength division device, and the optical signal received by the first communication device does not include the first LOS, wherein the link detection result indicates that the wavelength division device exists on the target link, wherein the first LOS is used to instruct the wavelength division device that receives the first LOS to discard the first LOS, and to send a third alarm signal to the next-hop device, wherein the third alarm signal is used to indicate that the wavelength division device exists on the target link.

[0135] In one possible implementation,

[0136] The communication interface is further used to construct a second signal, where the second signal is used to detect whether the wavelength division device exists on the target link or whether the wavelength division device does not exist on the target link.

[0137] In one possible implementation,

[0138] The communication interface is further configured to send the link detection result to the second communication device.

[0139] In one possible implementation,

[0140] The communication interface is also used to send the link detection result to the network management device.

[0141] In a sixth aspect, an embodiment of the present application provides a communication device, which is applied to a second communication device, and includes:

[0142] A communication interface, configured to construct a first signal, wherein the first signal is used to detect whether a wavelength division device exists on a target link;

[0143] The processor is configured to obtain a link detection result, where the link detection result indicates that the wavelength division device exists on the target link, or that the wavelength division device does not exist on the target link.

[0144] In a possible implementation, the first signal includes:

[0145] A first fault signal is generated, wherein the first fault signal is generated when the second communication device suspends sending optical signals to the first communication device within a first time period.

[0146] In a possible implementation, the first signal includes:

[0147] A first loss of signal LOS is generated, wherein the first LOS is used to instruct the wavelength division device receiving the first LOS to discard the first LOS, and a third alarm signal is sent to the next-hop device, wherein the third alarm signal is used to indicate that the wavelength division device exists on the target link.

[0148] In one possible implementation,

[0149] The communication interface is further used to obtain a second signal;

[0150] The processor is further configured to determine the link detection result according to the acquired second signal, where the second signal is used to detect whether the wavelength division device exists on the target link or whether the wavelength division device does not exist on the target link.

[0151] In a possible implementation, the second signal is a first alarm signal generated according to an abnormality in a signal received from the first communication device.

[0152] The processor is also used to determine the link detection result based on the first alarm signal, the link detection result indicates that the wavelength division device does not exist in the target link, the target link is the link between the second communication device and the first communication device, and the first alarm signal includes a physical PHY layer alarm signal.

[0153] In a possible implementation, the second signal is a second loss signal LOS sent by the first communication device.

[0154] The processor is further configured to determine the link detection result according to the second LOS, where the link detection result indicates that the wavelength division device does not exist in the target link, and the target link is the link between the second communication device and the first communication device.

[0155] In a possible implementation, the communication interface is further configured to receive the second LOS;

[0156] The processor is further configured to generate a second alarm signal, where the second alarm signal includes a physical (PHY) layer alarm signal;

[0157] The processor is further configured to determine the link detection result according to the second alarm signal, where the link detection result indicates that the wavelength division device does not exist on the target link.

[0158] In a possible implementation, the second signal is a third alarm signal sent by a wavelength division device.

[0159] The processor is further configured to determine the link detection result according to the third alarm signal, where the link detection result indicates that the wavelength division device exists on the target link.

[0160] In one possible implementation, the processor is further used to determine the link detection result in response to the third alarm signal received by the second communication device from the wavelength division device, and the alarm signal generated by the second communication device does not include the first alarm signal, the link detection result indicates that the wavelength division device exists in the target link, and the first alarm signal includes a physical PHY layer alarm signal.

[0161] In one possible implementation, the processor is further configured to determine the link detection result in response to the third alarm signal received by the second communication device from the wavelength division device, and the optical signal received by the second communication device does not include the second LOS, and the link detection result indicates that the wavelength division device exists on the target link.

[0162] In a possible implementation manner, the communication interface is further configured to receive the link detection result from the first communication device.

[0163] In a possible implementation, the communication interface is further configured to send the link detection result to a network management device.

[0164] In a seventh aspect, a communication system is provided, the communication system including the communication device of the fifth aspect or the sixth aspect.

[0165] In an eighth aspect, the present application provides a computer storage medium, which may be non-volatile; the computer storage medium stores computer-readable instructions, which, when executed by a processor, implement the method in any one of the implementation modes of the first aspect or the second aspect.

[0166] In a ninth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method in any one of the implementations of the first or second aspect.

[0167] In a tenth aspect, the present application provides a chip system, which includes a processor and an interface circuit for supporting a network device to implement the functions involved in the above aspects, for example, sending or processing the data and / or information involved in the above methods. In one possible design, the chip system also includes a memory for storing program instructions and data necessary for the network device. The chip system can be composed of a chip or can include a chip and other discrete devices.

[0168] In an eleventh aspect, the present application provides a communication device, comprising: a communication interface;

[0169] The processor connected to the communication interface enables the communication device to execute the method as described in the first aspect or the second aspect based on the communication interface and the processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0170] FIG1 is a schematic diagram of a network structure of a bearer network;

[0171] FIG2 is a schematic diagram of a communication scenario involved in an embodiment of the present application;

[0172] FIG3 is a schematic diagram of a communication system involved in an embodiment of the present application;

[0173] FIG4 is a schematic diagram of an embodiment of a link detection method proposed in an embodiment of the present application;

[0174] FIG5 is a schematic diagram of a first fault signal according to an embodiment of the present application;

[0175] FIG6 is a schematic diagram of a first lost signal according to an embodiment of the present application;

[0176] FIG7 is another flowchart of a link detection method in an embodiment of the present application;

[0177] FIG8 is a schematic diagram of an application scenario involved in an embodiment of the present application;

[0178] FIG9 is a schematic diagram of another application scenario involved in the embodiments of the present application;

[0179] FIG10 is a schematic structural diagram of a communication device 1000 provided in an embodiment of the present application;

[0180] FIG11 is a schematic structural diagram of a communication device 1100 provided in an embodiment of the present application;

[0181] FIG12 is a schematic structural diagram of a communication device 1200 provided in an embodiment of the present application;

[0182] FIG13 is a schematic diagram of a network system 1300 proposed in an embodiment of the present application. DETAILED DESCRIPTION

[0183] The following describes the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Those skilled in the art will appreciate that as new application scenarios emerge, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0184] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the descriptions used in this way can be interchangeable where appropriate so that the embodiments can be implemented in a sequence other than that illustrated or described in this application. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or that are inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The named or numbered process steps can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved. The division of units in this application is a logical division. In actual application, there may be other division methods. For example, multiple units can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, and the indirect coupling or communication connection between units can be electrical or other similar forms, which are not limited in this application. Moreover, the units or sub-units described as separate components may or may not be physically separated, may or may not be physical units, or may be distributed into multiple circuit units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this application.

[0185] The following introduces some concepts involved in the embodiments of this application.

[0186] 1. Wavelength division equipment.

[0187] Wavelength division multiplexing (WDM) is a technology that combines two or more optical carrier signals (carrying various information) of different wavelengths at the transmitting end using wavelength division equipment and couples them into the same optical fiber for transmission. At the receiving end, wavelength division equipment separates the optical carriers of different wavelengths and then processes them to restore the original signals. WDM equipment includes, but is not limited to, Optical Transport Network (OTN) equipment.

[0188] 2. 1588 protocol.

[0189] The IEEE 1588 protocol, short for "Precision Clock Synchronization Protocol for Networked Measurement and Control Systems," also known as the Precision Time Protocol (PTP), uses a synchronization signal to periodically calibrate and synchronize the clocks of all nodes in the network, enabling Ethernet-based distributed systems to achieve precise synchronization. The IEEE 1588 protocol can be applied to any multicast network. For example, 1588 messages are transmitted between a 1588 server (such as a building-integrated timing supply (BITS)) and network devices (such as base stations) to achieve clock synchronization.

[0190] Please refer to Figure 1, which shows a schematic diagram of the bearer network architecture. Multiple communication devices are included between the BITS and the base station. These devices include metropolitan area network core routers (MCRs), metropolitan area network edge routers (MERs), metropolitan area network access routers (MARs), and wavelength division multiplexing equipment. To accurately synchronize the clocks of each node in the bearer network, these bearer network communication devices must support the IEEE 1588 standard for time synchronization.

[0191] When 1588 is enabled in the bearer network, bidirectional path inconsistencies may occur in routers and other devices during the transmission of 1588 messages. For ease of understanding, please refer to Figure 2, which is a schematic diagram of a communication scenario involved in an embodiment of the present application. In Figure 2, the direction from BITS to the base station is taken as the first direction, and the direction from the base station to the BITS is taken as the second direction. The wavelength division device 1 in this communication scenario is configured in bit transparent transmission mode. In the first direction, the 1588 message sent by BITS reaches the base station via router 1, wavelength division device 1 and router 2. The 1588 message path in the first direction is called path #1. In the second direction, the 1588 message fed back by the base station reaches BITS via router 2 and router 1. The 1588 message path in the second direction is called path #2. The above-mentioned path #1 and route #2 are inconsistent, introducing deviations, which affects the 1588 performance and thus affects the communication performance.

[0192] The applicant has discovered that when a wavelength division device is configured in bit-transparent transmission mode, current communication devices cannot determine whether a link has a wavelength division device. Therefore, how to identify whether a link passes through a wavelength division device has become an urgent problem to be solved.

[0193] An embodiment of the present application provides a link detection method, in which a first communication device obtains a first signal, which is used to detect whether a wavelength division multiplexing (WDM) device exists on a target link. Based on the first signal, the first communication device can obtain a link detection result, which indicates whether the WDM device exists on the target link. By obtaining the first signal, the first communication device can detect whether the WDM device exists on the target link, allowing operations and maintenance personnel to query the connection status of the target link. This improves operations and maintenance efficiency by preventing the introduction of WDM devices that could affect communication performance.

[0194] Please refer to Figure 3, which is a schematic diagram of a communication system involved in an embodiment of the present application. The communication system includes: a second communication device and a first communication device. A wavelength division multiplexing device may be present in the target link between the second communication device and the first communication device. Optionally, the communication system may also include a network management device for managing the second communication device, the first communication device, and any wavelength division multiplexing devices.

[0195] In conjunction with the communication system shown in FIG3 , please refer to FIG4 , which is a schematic diagram of an embodiment of a link detection method proposed in an embodiment of the present application. A link detection method proposed in an embodiment of the present application includes:

[0196] 401. A second communication device constructs a first signal, where the first signal is used to detect whether a wavelength division device exists on a target link.

[0197] In step 401, the second communication device constructs a first signal, which is used to detect whether a wavelength division device exists in the target link. There are multiple possible implementations of the first signal constructed by the second communication device, which are described below.

[0198] In one possible implementation, the first signal includes a first fault signal, where the first fault signal is generated by the second communication device suspending transmission of optical signals to the first communication device during a first time period. In other words, when the second communication device needs to detect whether a wavelength division multiplexing (WDM) device exists on a target link, the second communication device can generate a fault signal by suspending transmission of optical signals for a period of time. The second communication device uses this fault signal as a signal to detect whether a WDM device exists on the target link.

[0199] For ease of understanding, please refer to Figure 5, which is a schematic diagram of the first fault signal in an embodiment of the present application. Exemplarily, the second communication device includes an optical module, which is used to send an optical signal. Before time t1, the second communication device sends an optical signal to the first communication device through the optical module. At time t1, the second communication device suspends sending the optical signal. After the first time period (T1), at time t2, the second communication device resumes sending the optical signal to the first communication device through the optical module. During the first time period, the suspension of the second communication device sending the optical signal constitutes a fault signal. For the sake of distinction, this fault signal is referred to as the first fault signal.

[0200] In another possible implementation, the first signal includes a first loss of signal (LOS) signal. The first LOS has the following characteristics: after a wavelength division device receives the first LOS, the wavelength division device discards the first LOS. Therefore, the wavelength division device's next-hop device cannot receive the first LOS. After receiving the first LOS, the wavelength division device sends a third alarm signal to the next-hop device, indicating that the wavelength division device has detected an abnormality in the target link. For ease of understanding, please refer to Figure 6, which is a schematic diagram of the first loss of signal in an embodiment of the present application. The first LOS can be any LOS signal agreed upon between the second communication device and the first communication device. The first LOS is specifically used to identify whether a wavelength division device exists on the target link. The first LOS can also be any LOS signal. For example, the first LOS can be "0101010101010101," "0011001100110011," or "0000111100001111," etc.

[0201] In a possible scenario, before establishing a link with the first communication device, the second communication device triggers step 401. The second communication device constructs a first signal to detect whether there is a wavelength division device in the target link.

[0202] 402. The first communication device determines a link detection result according to the first signal.

[0203] In step 402, the first communication device determines a link detection result based on the first signal. The first signal includes multiple possible solutions, which are described below:

[0204] 1. The first signal is a first alarm signal generated according to an abnormality in a signal received from the second communication device.

[0205] In one possible implementation, the second communication device suspends transmitting optical signals to the first communication device during a first time period. Using the aforementioned method, the second communication device proactively generates a first fault signal. If the first communication device fails to receive optical signals for a period of time, the first communication device deems the signal being received on the current target link to be abnormal and generates a first alarm signal. This first alarm signal includes a PHY layer alarm signal for the first communication device. That is, the PHY layer of the first communication device generates the first alarm signal in response to the failure to receive optical signals on the target link for a period of time.

[0206] In another possible implementation, the second communication device sends a predetermined loss of service (LOS) signal to the first communication device. The predetermined LOS signal sent by the second communication device is referred to as a first LOS. When the first communication device receives the first LOS, the first communication device determines that the received signal is abnormal and generates a first alarm signal in response to the first LOS.

[0207] Exemplarily, the first alarm signal includes but is not limited to: lost LOS signal, block unlock (Block_unlock) signal, high bit error rate (High_Bit Error Ratio, HI_BER) signal, "AM_unlock / AM_misalign" signal, signal degradation (Signal Degrade, SD) signal, signal failure (Signal Fail, SF) signal, alignment code block unlock (AlignMaker_unlock, AM_unlock) signal, alignment character alignment status loss (AM_misalign) signal.

[0208] 2. The first signal is a first LOS sent by the second communication device.

[0209] In one possible implementation, after receiving the first LOS, the first communication device determines a link detection result based on the first LOS. The link detection result indicates that the target link does not include a wavelength division multiplexing device. Since the wavelength division multiplexing device discards the first LOS after receiving it, the first communication device, upon receiving the first LOS, determines that the current target link does not include a wavelength division multiplexing device.

[0210] In another possible implementation, the first communication device generates a second alarm signal based on the first LOS, the second alarm signal including a PHY layer alarm signal. The first communication device then determines a link detection result based on the second alarm signal, the link detection result indicating that the target link does not include a wavelength division multiplexing device.

[0211] For example, the second alarm signal includes but is not limited to: lost LOS signal, block unlocked (Block_unlock) signal, high bit error rate (High_Bit Error Ratio, HI_BER) signal, "AM_unlock / AM_misalign" signal, signal degradation (Signal Degrade, SD) signal, signal failure (Signal Fail, SF) signal, alignment code block unlocked (AlignMaker_unlock, AM_unlock) signal, alignment character alignment status lost (AM_misalign) signal.

[0212] 3. The first signal is the third alarm signal sent by the wavelength division equipment.

[0213] The wavelength division device detects the presence of a first fault signal on the target link, or, after receiving the first LOS, the wavelength division device deems the target link abnormal, and generates a third alarm signal. The third alarm signal indicates that the wavelength division device has detected an abnormality in the target link. Therefore, upon receiving the third alarm signal from the wavelength division device, the first communication device can determine that the link detection result indicates the presence of the wavelength division device on the target link.

[0214] Illustratively, the third alarm signal includes but is not limited to: link fault (Link Fault) information, all-one code alarm (AIS) information, or other alarm signals.

[0215] In one possible implementation, after receiving the third alarm signal, the first communication device determines that the third alarm signal was sent by the wavelength division multiplexing device based on the fact that the first alarm signal is not included in the alarm signals generated by the first communication device. Because the first communication device received the third alarm signal from the wavelength division multiplexing device, the first communication device determines that the wavelength division multiplexing device exists on the current target link.

[0216] In another possible implementation, after receiving the third alarm signal, the first communication device determines that the third alarm signal was sent by the wavelength division device based on the fact that the received optical signal does not include the first LOS. Because the first communication device received the third alarm signal from the wavelength division device, the first communication device determines that the wavelength division device exists on the current target link.

[0217] The following describes how the first communication device determines the link detection result in conjunction with a specific communication scenario. The specific communication scenario is shown in Table 1:

[0218] Table 1

[0219] The following is a detailed description in conjunction with Table 1:

[0220] Scenario 1: When a wavelength division multiplexing device exists on the target link, and both the target link and the second communication device are normal, the first signal constructed by the second communication device can successfully reach the wavelength division multiplexing device.

[0221] When the first signal is a first fault signal, the PHY layer of the first communication device does not generate a first alarm signal due to the presence of a wavelength division multiplexing (WDM) device in the target link. However, the wavelength division multiplexing (WDM) device in the target link does not receive an optical signal for a period of time and generates a third alarm signal. Based on the failure of the PHY layer of the first communication device to generate the first alarm signal and the receipt of the third alarm signal from the target link, the first communication device determines that the link detection result indicates the presence of a WDM device in the target link.

[0222] When the first signal is a first LOS, the first communication device does not receive the first LOS because a wavelength division device exists in the target link. However, the wavelength division device in the target link generates a third alarm signal in response to the first LOS. Based on the fact that the optical signal received by the first communication device does not include the first LOS and the fact that the first communication device receives the third alarm signal from the target link, the first communication device determines that the link detection result indicates that a wavelength division device exists in the target link.

[0223] Scenario 2: When there is no wavelength division equipment in the target link, and the target link and the second communication device are both normal.

[0224] When the first signal is a first fault signal, the first communication device can detect the first fault signal because the wavelength division multiplexing (WDM) device does not exist in the target link. The first communication device does not receive an optical signal for a period of time, and the PHY layer of the first communication device generates a first alarm signal. Based on the first alarm signal generated by the PHY layer of the first communication device, the first communication device determines that the link detection result indicates that the wavelength division multiplexing (WDM) device does not exist in the target link.

[0225] When the first signal is a first LOS, the first communication device can detect the first LOS because no wavelength division device exists in the target link. In response to the first LOS, the first communication device determines that the link detection result is that no wavelength division device exists in the target link.

[0226] Scenario 3: The target link fails, and / or the second communication device fails.

[0227] When the first signal is a first fault signal, due to a target link failure and / or a second communication device failure (e.g., a second communication device optical module failure), the first communication device is unable to receive the first fault signal from the second communication device. Therefore, the PHY layer of the first communication device does not generate a first alarm signal. Similarly, the first communication device is unable to receive the third alarm signal. Therefore, based on the failure to receive the third alarm signal and the failure of the PHY layer of the first communication device to generate the first alarm signal, the first communication device determines that the link detection result is a second communication device failure and / or a target link failure.

[0228] When the first signal is a first LOS, due to a target link failure and / or a second communication device failure (e.g., a second communication device optical module failure), the first communication device is unable to receive the first LOS from the second communication device. Therefore, the PHY layer of the first communication device does not generate a first alarm signal. Similarly, the first communication device is unable to receive the third alarm signal. Therefore, based on the failure to receive the third alarm signal and the failure of the PHY layer of the first communication device to generate the first alarm signal, the first communication device determines that the link detection result is a failure of the second communication device and / or the target link.

[0229] Furthermore, after the first communication device determines the link detection result, it can perform various actions. For example, the first communication device can notify the second communication device of the link detection result; the first communication device can upload the link detection result to a network management device, which can then forward the link detection result to the second communication device; or the first communication device can send a second signal to the second communication device, which can then determine the link detection result based on the second signal. For details, please refer to the subsequent embodiments and will not be elaborated here.

[0230] Optionally, after the first communication device determines the link detection result of the target link, regardless of whether the target link includes a wavelength division multiplexing device or does not include a wavelength division multiplexing device, the first communication device and the second communication device enter into a process of establishing a communication connection. Further, optionally, after the second communication device and the first communication device establish a communication connection, the process proceeds to step 403.

[0231] 403. The second communication device obtains a link detection result, where the link detection result indicates whether there is a wavelength division device on the target link.

[0232] In step 403, after the second communication device constructs the first signal, the second communication device can obtain the link detection result in various ways. For ease of understanding, please refer to Figure 7, which is another flowchart of a link detection method in an embodiment of the present application. As shown in Figure 7, the method for the second communication device to obtain the link detection result includes:

[0233] Optional step S1: The first communication device constructs a second signal, where the second signal is used to detect whether there is a wavelength division device on the target link.

[0234] In step S1, the first communication device constructs a second signal, which is used to detect whether a wavelength division multiplexing (WDM) device exists on the target link. The second communication device then determines whether the WDM device exists on the target link based on the second signal. The second signal can be implemented in various ways, such as including a second fault signal or a second loss of signal (LOS). The second fault signal indicates that the first communication device suspends transmission of optical signals to the second communication device during a second time period, and the WDM device discards the second LOS upon receiving it.

[0235] The second fault signal is similar to the first fault signal and will not be described in detail here. The second LOS is similar to the first LOS and will not be described in detail here.

[0236] Specifically, the manner in which the second communication device determines the link detection result according to the second signal is similar to the manner in which the first communication device determines the link detection result according to the first signal in the aforementioned step 402, and is not described in detail here.

[0237] Optional step S2: The first communication device sends a link detection result to the second communication device, where the link detection result indicates that no wavelength division device exists on the target link.

[0238] In step S2, if the first communication device determines that the link detection result indicates that no wavelength division multiplexing equipment exists on the target link, the first communication device transmits the link detection result to the second communication device. For example, the first communication device transmits first information indicating the link detection result to the second communication device. The first information can be implemented in a variety of ways, such as by carrying the first information in remote fault signaling, which is not limited in this embodiment of the present application.

[0239] Optional step S3: The first communication device sends a link detection result to the second communication device, where the link detection result indicates that a wavelength division device exists in the target link.

[0240] In step S3, the first communication device determines that the link detection result indicates that a wavelength division multiplexing device exists on the target link, and then sends the link detection result to the second communication device. Exemplarily, the first communication device sends second information to the second communication device, the second information indicating that a wavelength division multiplexing device exists on the target link.

[0241] Optional step S4: The first communication device sends the link detection result to the network management device.

[0242] Optional step S5: The network management device sends the link detection result to the second communication device.

[0243] In steps S4 and S5, the first communication device sends the link detection result to the network management device, and the network management device forwards the link detection result to the second communication device, so that the second communication device obtains the link detection result.

[0244] Optionally, after the network management device obtains the link detection result, if the link detection result indicates that there is a wavelength division multiplexing device in the target link, the network management device can notify the operation and maintenance personnel of the wavelength division multiplexing device to inspect the wavelength division multiplexing device so that the operation and maintenance personnel of the wavelength division multiplexing device can know the operating location of the wavelength division multiplexing device.

[0245] Optionally, after step 403, the second communication device establishes a communication connection with the first communication device.

[0246] In this embodiment of the present application, a second communication device constructs a first signal, which is used to detect whether a wavelength division multiplexing (WDM) device exists on the target link. The second communication device then obtains a link detection result, which indicates whether a WDM device exists on the target link. By constructing the first signal, the second communication device can detect whether a WDM device exists on the target link between the second communication device and the first communication device, allowing operations and maintenance personnel to query the connection status of the target link. This improves operations and maintenance efficiency by preventing the introduction of WDM devices that could affect communication performance.

[0247] Hereinafter, some application scenarios involved in the embodiments of the present application will be described in conjunction with the aforementioned embodiments. Exemplarily, the application scenarios of the embodiments of the present application include: the first signal is a first fault signal, or the first signal is a first LOS.

[0248] First, an application scenario in which the first signal is a first fault signal is introduced. Please refer to FIG8 , which is a schematic diagram of an application scenario involved in an embodiment of the present application. An application scenario involved in an embodiment of the present application includes:

[0249] D1. The second communication device constructs a first fault signal.

[0250] In step D1 , when the second communication device needs to establish a communication connection with the first communication device, the second communication device triggers the identification process of the wavelength division device, specifically, entering steps D1 to D11 .

[0251] First, the second communication device constructs a first fault signal by shutting down an optical module connected to a target link within a first time period.

[0252] D2. Detect whether the PHY layer generates a first alarm signal.

[0253] In step D2 , the first communication device detects whether a PHY layer of the first communication device generates a first alarm signal.

[0254] If the PHY layer of the first communication device generates the first alarm signal, the process proceeds to step D3 ; if the PHY layer of the first communication device does not generate the first alarm signal, the process proceeds to step D4 .

[0255] D3. Make sure the target link does not include wavelength division equipment.

[0256] In step D3, in response to the PHY layer of the first communication device generating the first alarm signal, the first communication device may consider that there is no optical signal in the current target link. The first communication device receives the first fault signal from the second communication device, thereby confirming that the target link does not include a wavelength division device.

[0257] D4. Detect whether the third alarm signal is received.

[0258] In step D4, the first communication device further detects whether a third alarm signal is received.

[0259] If the first communication device receives the third alarm signal, the process proceeds to step D5 ; if the first communication device does not receive the third alarm signal, the process proceeds to step D6 .

[0260] D5. Confirm that the target link includes wavelength division equipment.

[0261] In step D5 , in response to the PHY layer of the first communication device not generating the first alarm signal and the first communication device receiving the third alarm signal, the first communication device determines that the target link includes a wavelength division device.

[0262] D6. Determine whether the target link fails or the second communication device fails.

[0263] In step D6, in response to the PHY layer of the first communication device not generating the first alarm signal and the first communication device not receiving the third alarm signal, the first communication device determines that the target link is faulty, or the second communication device is faulty.

[0264] D7. The first communication device sends the first information to the second communication device, or the first communication device constructs a second fault signal.

[0265] Optionally, after step D3, the first communication device may send first information to the second communication device, so that the second communication device obtains the link detection result of the target link. The first information indicates that the link detection result of the target link is that the target link does not include a wavelength division multiplexing device.

[0266] Alternatively, the first communication device constructs a second fault signal. Specifically, the first communication device temporarily shuts down the optical module connected to the target link within the second time period to construct the second fault signal.

[0267] D8. The second communication device determines that no wavelength division equipment exists based on the second fault signal / first information.

[0268] After step D7, the process proceeds to step D8. The second communication device determines whether it has received the second fault signal by detecting whether the PHY layer of the second communication device has generated the first alarm signal. Specifically, if the PHY layer of the second communication device has generated the first alarm signal, the second communication device determines that the target link does not include (or does not exist) a wavelength division multiplexing device.

[0269] Alternatively, the second communication device receives first information from the first communication device, where the first information indicates that the target link does not include a wavelength division device.

[0270] D9. The first communication device sends second information to the second communication device, where the second information indicates that a wavelength division device exists in the target link.

[0271] After step D5, when the first communication device determines that the target link includes the wavelength division device, the first communication device sends second information to the second communication device, where the second information indicates that the wavelength division device exists in the target link.

[0272] D10. The second communication device determines, based on the second information, that a wavelength division device exists.

[0273] D11. The first communication device sends a link detection result to the network management device.

[0274] Optionally, after step D3 or step D5 or step D6, the first communication device uploads the link detection result to the network management device.

[0275] Next, an application scenario in which the first signal is the first LOS is introduced. Please refer to FIG9 , which is a schematic diagram of another application scenario involved in the embodiment of the present application. Another application scenario involved in the embodiment of the present application includes:

[0276] F1. The second communication device sends a first LOS to the first communication device.

[0277] In step F1 , when the second communication device needs to establish a communication connection with the first communication device, the second communication device triggers the identification process of the wavelength division device, specifically, entering steps F1 to F11 .

[0278] F2. Check whether the first LOS is received.

[0279] In step F2, the first communication device detects whether the first LOS is received. If so, the process proceeds to step F3; if not, the process proceeds to step F4.

[0280] F3. Make sure the target link does not include wavelength division equipment.

[0281] In step F3 , in response to the first communication device receiving the first LOS, the first communication device determines that the target link does not include a wavelength division device.

[0282] F4. Check whether the third alarm signal is received.

[0283] In step F4, in response to the first communication device not receiving the first LOS, the first communication device detects whether a third alarm signal is received. The third alarm signal is generated by the wavelength division equipment after receiving the first LOS.

[0284] If the first communication device receives the third alarm signal, the process proceeds to step F5 ; if the first communication device does not receive the third alarm signal, the process proceeds to step F6 .

[0285] F5. Confirm that the target link includes wavelength division equipment.

[0286] In step F5 , in response to the first communication device not receiving the first LOS and the first communication device receiving the third alarm signal, the first communication device determines that the target link includes a wavelength division device.

[0287] F6. Determine that the target link fails or the second communication device fails.

[0288] In step F6 , in response to the first communication device not receiving the first LOS and the first communication device not receiving the third alarm signal, the first communication device determines that the target link is faulty, or the second communication device is faulty.

[0289] F7. The first communication device sends the second LOS / first information to the second communication device.

[0290] Optionally, after step F3, the first communication device may send a second LOS to the second communication device, or send first information to the second communication device, so that the second communication device obtains the link detection result of the target link.

[0291] F8. The second communication device determines that no wavelength division equipment exists based on the second LOS / first information.

[0292] After step F7, the process proceeds to step F8. The second communication device determines whether it has received the second LOS by detecting whether the PHY layer of the second communication device has generated the first alarm signal. Specifically, if the PHY layer of the second communication device has generated the first alarm signal, the second communication device determines that the target link does not include (or does not exist) a wavelength division multiplexing device.

[0293] Alternatively, the second communication device receives first information from the first communication device, where the first information indicates that the target link does not include a wavelength division device.

[0294] F9. The first communication device sends second information to the second communication device, where the second information indicates that a wavelength division device exists in the target link.

[0295] After step F5 , when the first communication device determines that the target link includes the wavelength division device, the first communication device sends second information to the second communication device, where the second information indicates that the wavelength division device exists in the target link.

[0296] F10. The second communication device determines, based on the second information, that a wavelength division device exists.

[0297] F11. The first communication device sends a link detection result to the network management device.

[0298] Optionally, after step F3 or step F5 or step F6, the first communication device uploads the link detection result to the network management device.

[0299] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. It is understandable that, in order to implement the above functions, the first communication device or the second communication device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the modules and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0300] In the embodiment of the present application, the functional modules of the first communication device or the second communication device can be divided according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0301] The following introduces a communication device according to an embodiment of the present application. The communication device described below has any function of the first communication device or the second communication device in the above method embodiment. The communication device described in the present application can be a network device such as a switch or a router, or it can be a component of a network device, such as an interface board or a line card on a network device, or it can be a functional module on a network device, or it can be a chip system for implementing the method of the present application. The embodiment of the present application does not make specific limitations. The communication devices can be directly connected, for example, but not limited to, via an Ethernet cable or an optical fiber. When the communication device is a chip system, the transceiver module in the communication device can be, for example, an interface circuit in the chip system, and the processing module can be, for example, a processing circuit in the chip system for performing processing operations. In Flexe technology, the processing circuit is, for example, a FlexE shim. Figure 10 is a structural diagram of a communication device 1000 provided in an embodiment of the present application. As shown in Figure 10, the communication device 1000 includes: a transceiver module 1001 for executing step 401 or 403; a processing module 1002 for executing step 402.

[0302] The communication device 1000 can correspond to the first communication device or the second communication device in the above-mentioned method embodiment. The various units in the communication device 1000 and the above-mentioned other operations and / or functions are respectively for implementing the various steps and methods implemented by the first communication device or the second communication device in the method embodiment. For specific details, please refer to the above-mentioned method embodiment. For the sake of brevity, they will not be repeated here.

[0303] When the communication device 1000 executes the above-mentioned method embodiment, the division of the above-mentioned functional modules is only used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the communication device 1000 can be divided into different functional modules to complete all or part of the functions described above. In addition, the communication device 1000 provided in the above-mentioned embodiment and the embodiment method corresponding to Figures 4 to 9 above are based on the same concept. The specific implementation process is detailed in the above-mentioned method embodiment and will not be repeated here.

[0304] To implement the above embodiment, the present application further provides a communication device. Please refer to Figure 11, which is a schematic diagram of the structure of a communication device 1100 provided in an embodiment of the present application.

[0305] Although the communication device 1100 shown in Figure 11 shows certain specific features, those skilled in the art will realize from the embodiments of the present application that, for the sake of brevity, Figure 11 does not show various other features to avoid confusing more relevant aspects of the embodiments disclosed in the embodiments of the present application. To this end, as an example, in some implementations, the communication device 1100 includes one or more processors (e.g., CPU) 1101, a network interface 1102, a programming interface 1103, a memory 1104, and one or more communication buses 1105 for interconnecting various components. In other implementations, the communication device 1100 can also omit or add some functional components or units based on the above examples.

[0306] In some implementations, the network interface 1102 is used to connect to one or more other communication devices / servers in the network system. In some implementations, the communication bus 1105 includes circuits that interconnect and control communication between system components. The memory 1104 may include non-volatile memory, such as read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The memory 1104 may also include volatile memory, which may be random access memory (RAM) that is used as an external cache.

[0307] In some implementations, memory 1104 or a non-transitory computer-readable storage medium of memory 1104 stores the following programs, modules, and data structures, or a subset thereof, including, for example, a transceiver unit (not shown), an acquisition unit 11041 , and a processing unit 11042 .

[0308] In a possible embodiment, the communication device 1100 may have any functions of the first communication device or the second communication device in the method embodiments corresponding to FIG. 4 to FIG. 9 .

[0309] It should be understood that the communication device 1100 corresponds to the first communication device or the second communication device or the control management device in the above-mentioned method embodiment, and the various modules in the communication device 1100 and the above-mentioned other operations and / or functions are respectively for realizing the various steps and methods implemented by the first communication device or the second communication device or the control management device in the above-mentioned method embodiment. For specific details, please refer to the method embodiments corresponding to Figures 4 to 9 above. For the sake of brevity, they will not be repeated here.

[0310] It should be understood that in this application, the data sending and receiving operations can be completed by the network interface 1102 on the communication device 1100, or the processor can call the program code in the memory and cooperate with the network interface 1102 when necessary to implement the functions of the sending and receiving unit.

[0311] In various implementations, the communication device 1100 is used to execute the link detection method provided in the embodiments of the present application, for example, to execute the link detection method corresponding to the embodiments shown in Figures 4 to 9 above.

[0312] The specific structure of the communication device described in Figure 11 of this application can be shown in Figure 12.

[0313] FIG12 is a schematic structural diagram of a communication device 1200 provided in an embodiment of the present application. The communication device 1200 includes a main control board 1212 and an interface board 1230 .

[0314] Main control board 1212, also known as the main processing unit (MPU) or route processor, is used to control and manage various components in communication device 1200, including routing calculation, device management, device maintenance, and protocol processing. Main control board 1212 includes a central processing unit 1215 and memory 1216.

[0315] Interface board 1230, also known as a line processing unit (LPU), line card, or service board, provides various service interfaces and implements data packet forwarding. Service interfaces include, but are not limited to, Ethernet interfaces and POS (Packet over SONET / SDH) interfaces. Interface board 1230 includes a central processing unit (CPU) 1231, a network processor (NPU) 1232, a forwarding table memory 1234, and a physical interface card (PIC) 1233.

[0316] The central processing unit 1231 on the interface board 1230 is used to control and manage the interface board 1230 and communicate with the central processing unit 1215 on the main control board 1212 .

[0317] The network processor 1232 is used to implement packet forwarding processing and can be in the form of a forwarding chip.

[0318] The physical interface card 1233 is used to implement the physical layer docking function. The original traffic enters the interface board 1230 from this, and the processed message is sent from the physical interface card 1233. The physical interface card 1233 includes at least one physical interface, which is also called a physical port. The physical interface can be a Flexible Ethernet (FlexE) physical interface. The physical interface card 1233, also known as a daughter card, can be installed on the interface board 1230. It is responsible for converting the optical and electrical signals into messages and performing a validity check on the messages before forwarding them to the network processor 1232 for processing. In some embodiments, the central processing unit 1231 of the interface board 1230 can also perform the functions of the network processor 1232, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 1232 is not required in the interface board 1230.

[0319] Optionally, the communication device 1200 includes multiple interface boards. For example, the communication device 1200 further includes an interface board 1240 . The interface board 1240 includes a central processing unit 1241 , a network processor 1242 , a forwarding table entry memory 1244 , and a physical interface card 1243 .

[0320] Optionally, the communication device 1200 further includes a switching fabric board 1220. The switching fabric board 1220 may also be referred to as a switch fabric unit (SFU). If the communication device includes multiple interface boards 1230, the switching fabric board 1220 is used to exchange data between the interface boards. For example, the interface board 1230 and the interface board 1240 can communicate via the switching fabric board 1220.

[0321] The main control board 1212 is coupled to the interface board. For example, the main control board 1212, the interface board 1230, the interface board 1240, and the switching network board 1220 are interconnected via a system bus and / or a system backplane. In one possible implementation, an inter-process communication (IPC) channel is established between the main control board 1212 and the interface board 1230, and communication between the main control board 1212 and the interface board 1230 is performed via the IPC channel.

[0322] Logically, communication device 1200 comprises a control plane and a forwarding plane. The control plane includes a main control board 1212 and a central processing unit 1231. The forwarding plane includes various components that perform forwarding, such as a forwarding table entry memory 1234, a physical interface card 1233, and a network processor 1232. The control plane performs functions such as publishing routes, generating forwarding tables, processing signaling and protocol messages, and configuring and maintaining device status. The control plane sends the generated forwarding table to the forwarding plane. On the forwarding plane, the network processor 1232 forwards messages received by the physical interface card 1233 based on the forwarding table sent by the control plane. The forwarding table sent by the control plane can be stored in the forwarding table entry memory 1234. In some embodiments, the control plane and forwarding plane can be completely separate and not located on the same device.

[0323] It should be understood that the transceiver unit in the communication device 1100 can be equivalent to the physical interface card 1233 or the physical interface card 1243 in the communication device 1200; the acquisition unit 11041 and the processing unit 11042 in the communication device 1100 can be equivalent to the central processing unit 1215 or the central processing unit 1231 in the communication device 1200, or can be equivalent to the program code or instructions stored in the memory 1216.

[0324] It should be understood that the operations on the interface board 1240 in the embodiment of the present application are consistent with the operations on the interface board 1230. For the sake of brevity, detailed description is omitted. It should be understood that the communication device 1200 of this embodiment may correspond to the first communication device or the second communication device in each of the above-mentioned method embodiments. The main control board 1212, interface board 1230, and / or interface board 1240 in the communication device 1200 may implement the functions and / or various steps of the first communication device or the second communication device in each of the above-mentioned method embodiments. For the sake of brevity, detailed description is omitted here.

[0325] It's worth noting that there may be one or more main control boards (SBCs), which may include a primary SBC and a backup SBC. There may be one or more interface boards. The higher the data processing capability of a communication device, the more interface boards are provided. An interface board may also have one or more physical interface cards. There may be no SBCs, or one or more. Multiple SBCs can be used to achieve load balancing and redundant backup. In a centralized forwarding architecture, a communication device may not require a SBC; the interface board handles service data processing for the entire system. In a distributed forwarding architecture, a communication device may have at least one SBC, which enables data exchange between multiple interface boards, providing high-capacity data exchange and processing capabilities. Alternatively, a communication device may have only one SBC, i.e., no SBC. The functions of the interface board and the SBC are integrated on this single SBC. In this case, the central processing unit (CPU) on the interface board and the CPU on the SBC can be combined into a single CPU on this single SBC, performing the combined functions of the two. The specific architecture to be adopted depends on the specific network deployment scenario and is not intended to be exclusive here.

[0326] In some possible embodiments, the first communication device or the second communication device may be implemented as a virtualized device. The virtualized device may be a virtual machine (VM), a virtual router, or a virtual switch running a program for sending messages. The virtualized device is deployed on a hardware device (e.g., a physical server). For example, the first communication device or the second communication device may be implemented based on a general-purpose physical server in combination with network function virtualization (NFV) technology.

[0327] It should be understood that the communication devices in various product forms mentioned above respectively have any functions of the first communication device or the second communication device in the above method embodiments, which will not be described in detail here.

[0328] An embodiment of the present application also provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enables the computer to control a network device to execute any one of the implementation methods shown in the aforementioned method embodiments.

[0329] An embodiment of the present application also provides a computer program product, which includes computer program code. When the computer program code runs on a computer, it enables the computer to execute any one of the implementation methods shown in the aforementioned method embodiments.

[0330] Furthermore, an embodiment of the present application also provides a computer program product, which, when running on a communication device, enables the communication device to execute the method executed by the first communication device or the second communication device or the network management device in the method embodiments corresponding to Figures 4 to 9 above.

[0331] The present application also provides a chip system including a processor and an interface circuit, wherein the interface circuit is configured to receive instructions and transmit them to the processor, wherein the processor is configured to implement any of the above method embodiments.

[0332] Optionally, the chip system further includes a memory, and the chip system may include one or more processors. The processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor that implements any of the above method embodiments by reading software code stored in the memory.

[0333] Optionally, the memory in the chip system may be one or more memories. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited in this application. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or provided on different chips. This application does not specifically limit the type of memory or the configuration of the memory and the processor.

[0334] Please refer to Figure 13, which is a schematic diagram of a network system 1300 proposed in an embodiment of the present application. Network system 1300 includes a first communication device 1301, a second communication device 1302, and a network management device 1303. First communication device 1301 and second communication device 1302 can be physical devices such as routers, switches, or gateways, or virtual devices that support route publishing and message forwarding. This embodiment does not limit the specific types of first communication device 1301 and second communication device 1302.

[0335] Optionally, the network system 1300 further includes a network management device 1303, which may be a server that manages the first communication device 1301 and the second communication device 1302. Optionally, the first communication device 1301 may be the communication device 1000, the communication device 1100, or the communication device 1200. Optionally, the second communication device 1302 may be the communication device 1000, the communication device 1100, or the communication device 1200.

[0336] The communication devices in the above-mentioned various product forms respectively have any functions of the network devices in the above-mentioned method embodiments, which will not be described in detail here.

[0337] The embodiments of the present application are described in detail above. The steps in the method of the embodiments of the present application can be scheduled in sequence, merged or deleted according to actual needs; the modules in the device of the embodiments of the present application can be divided, merged or deleted according to actual needs.

[0338] It should be understood that “one embodiment” or “an embodiment” mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, “in one embodiment” or “in an embodiment” appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0339] The term "and / or" in this document simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. Additionally, the character " / " in this document generally indicates that the related objects are in an "or" relationship.

[0340] It should be understood that in the embodiments of the present application, "B corresponding to A" means that B is associated with A and B can be determined based on A. However, it should also be understood that determining B based on A does not mean determining B based solely on A, but B can also be determined based on A and / or other information.

[0341] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0342] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0343] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0344] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

Claims

1. A link detection method, characterized in that: include: The first communication device acquires a first signal, where the first signal is used to detect whether there is a wavelength division device in the target link; The first communication device determines a link detection result according to the first signal, where the link detection result indicates that the wavelength division device exists in the target link, or that the wavelength division device does not exist in the target link.

2. The method according to claim 1, characterized in that The first signal is a first alarm signal generated according to an abnormality of a signal received from the second communication device, and the first communication device determines the link detection result according to the first signal, including: The first communication device determines the link detection result based on the first alarm signal, and the link detection result indicates that the wavelength division device does not exist in the target link. The target link is the link between the second communication device and the first communication device, and the first alarm signal includes a physical PHY layer alarm signal.

3. The method according to claim 1, characterized in that The first signal is a first loss of signal LOS sent by the second communication device, and the first communication device determines the link detection result according to the first signal, including: The first communication device determines the link detection result according to the first LOS, and the link detection result indicates that the wavelength division device does not exist in the target link, and the target link is a link between the second communication device and the first communication device.

4. The method according to claim 3, characterized in that The first communication device determines the link detection result according to the first LOS, including: The first communication device receives the first LOS; The first communication device generates a second alarm signal, wherein the second alarm signal includes a physical PHY layer alarm signal; The first communication device determines the link detection result according to the second alarm signal, and the link detection result indicates that the wavelength division device does not exist in the target link.

5. The method according to claim 1, characterized in that: The first signal is a third alarm signal sent by the wavelength division device, and the first communication device determines the link detection result according to the first signal, including: The first communication device determines the link detection result according to the third alarm signal, and the link detection result indicates that the wavelength division device exists in the target link.

6. The method according to claim 5, characterized in that The first communication device determines the link detection result according to the third alarm signal, including: In response to the third alarm signal received by the first communication device from the wavelength division device, and the alarm signal generated by the first communication device does not include the first alarm signal, the first communication device determines the link detection result, the link detection result indicates that the wavelength division device exists in the target link, and the first alarm signal includes a physical PHY layer alarm signal.

7. The method according to claim 5, characterized in that The first communication device determines the link detection result according to the third alarm signal, including: In response to the third alarm signal received by the first communication device from the wavelength division device, and the optical signal received by the first communication device does not include the first LOS, the first communication device determines the link detection result, and the link detection result indicates that the wavelength division device exists in the target link.

8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: The first communication device constructs a second signal, where the second signal is used to detect the presence of the wavelength division device on the target link, or the absence of the wavelength division device on the target link.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: The first communication device sends the link detection result to the second communication device.

10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: The first communication device sends the link detection result to a network management device.

11. A link detection method, characterized in that: include: The second communication device constructs a first signal, wherein the first signal is used to detect whether there is a wavelength division device in the target link; The second communication device obtains a link detection result, where the link detection result indicates that the wavelength division device exists on the target link, or that the wavelength division device does not exist on the target link.

12. The method according to claim 11, characterized in that The first signal includes: A first fault signal, wherein the first fault signal is that the second communication device suspends sending optical signals to the first communication device within a first time period.

13. The method according to claim 11, characterized in that The first signal includes: A first loss of signal LOS is provided, where the first LOS is used to instruct the wavelength division device that receives the first LOS to discard the first LOS, and a third alarm signal is sent to a next-hop device, where the third alarm signal is used to indicate that the wavelength division device exists in the target link.

14. The method according to any one of claims 11 to 13, characterized in that The second communication device obtains the link detection result, including: The second communication device acquires a second signal; The second communication device determines the link detection result according to the acquired second signal, where the second signal is used to detect the presence of the wavelength division device in the target link, or the absence of the wavelength division device in the target link.

15. The method according to any one of claims 11 to 14, characterized in that The second communication device obtains the link detection result, including: The second communication device receives the link detection result from the first communication device.

16. The method according to any one of claims 11 to 15, characterized in that The method further comprises: The second communication device sends the link detection result to the network management device.

17. A communication device, characterized in that: include: Communication interface; A processor connected to the communication interface, based on the communication interface and the processor, enables the controller to execute the method as described in any one of claims 1-10 or 11-16.

18. A communication system, characterized in that: The communication system comprises a communication device, and the communication device is used to execute the method according to any one of claims 1-10 or 11-16.

19. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed by a processor, the method described in any one of claims 1-10 or 11-16 is implemented.

20. A computer program product comprising a program, characterized in that When the program is executed by a processor, the method described in any one of claims 1 to 10 or 11 to 16 is implemented.

Citation Information

Patent Citations

  • Method and device for switching overtime period, and communication equipment

    CN107204888A

  • Optical fiber link detection method and device

    CN112994820A

  • Link detection method and related equipment

    CN113114403A

  • Method and arrangement for signaling in a network comprising nodes with optical ports

    US20050129405A1