Optical link detection method and device and related equipment

By introducing an optical link detection method into the communication system, and using processing nodes to automatically detect optical power loss on the optical link, the problems of low detection efficiency and service interruption in optical fiber communication systems are solved, and efficient optical power loss detection and abnormal alarm are achieved.

CN121603097APending Publication Date: 2026-03-03HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411162397.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

In existing technologies, the detection efficiency of optical power loss in optical fiber communication systems is low and affects the normal function of the communication system, leading to the interruption of computing cluster services.

Method used

By introducing an optical link detection method into the communication system, the processing node automatically detects the optical power loss on the optical link and adopts an automated alarm mechanism to improve detection efficiency and avoid service interruption.

Benefits of technology

It enables automated detection of optical power loss on optical links, improving detection efficiency, reducing maintenance difficulty, timely detection of optical module anomalies, and avoiding service interruptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121603097A_ABST
    Figure CN121603097A_ABST
Patent Text Reader

Abstract

The invention discloses an optical link detection method and device and related equipment, and relates to the technical field of communication. A first processing node in the communication system sends first data to a second processing node based on the first transmitting optical power and obtains first receiving optical power of an optical signal when the first data is transmitted to the second processing node, and the first processing node is connected with the second processing node through an optical fiber; and when the first optical power loss is greater than a first threshold value, the first processing node outputs alarm information for an optical link between the first processing node and the second processing node, and the first optical power loss is a difference value between the first transmitting optical power and the first receiving optical power. Thus, the first management node not only can realize automatic detection of the optical power loss on the optical link and improve the detection efficiency, but also does not influence the normal communication function of the communication system, thereby avoiding the interruption of the service on the computing node caused by the process of detecting the optical power loss, and reducing the influence on the service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to an optical link detection method, apparatus and related equipment. Background Technology

[0002] Currently, large-scale computing clusters, such as artificial intelligence (AI) computing clusters and high-performance computing (HPC) clusters, typically rely on low-latency communication systems for communication. For example, large models like generative pre-trained transformers (GPT) often involve trillions of parameters. In such cases, tens of thousands of accelerator cards (e.g., 25,000 GPUs) can be used to train these large models. Each accelerator card can be connected to a switch in the communication system via fiber optic cable, and different switches are also connected via fiber optic cables. During the training of large models, different accelerator cards can achieve rapid data exchange through the fiber optic cables and switches in the communication system.

[0003] In communication systems, optical signals (i.e., the optical signals corresponding to communication data) can be transmitted through optical fibers. The power of these optical signals, hereinafter referred to as optical power, typically decreases gradually during transmission, resulting in normal optical power loss. However, in real-world applications, optical fibers may contain impurities or be bent by external forces. This can cause abnormal optical power loss (usually excessive) during transmission, easily leading to data transmission failures in the communication system and consequently impacting services within the computing cluster. For example, during the iterative training of AI models in a computing cluster, if an optical fiber malfunction in the communication system prevents different accelerator cards from achieving normal data interaction, the computing cluster may be unable to train the AI ​​model.

[0004] Currently, the usual method for detecting optical fiber loss is for maintenance personnel to disconnect the fiber optic cable from the communication system, connect one end of the cable to a reference light source, and connect the other end to an optical power meter. This allows them to measure the optical power loss transmitted along the cable, enabling replacement if excessive power loss is detected. However, this method of detecting abnormal optical power loss is not only inefficient, but disconnecting the cable from the communication system also disrupts normal communication functions, potentially impacting services within the computing cluster. Summary of the Invention

[0005] This application provides an optical link detection method aimed at improving the efficiency of detecting optical power loss on optical links in communication systems. Furthermore, this application also provides a processing apparatus, a processing node, a computer-readable storage medium, and a computer program product.

[0006] In a first aspect, this application provides an optical link detection method, which is applied to a communication system. The communication system includes multiple processing nodes, each of which is a switching node (such as a switch) or a computing node (such as a server or an accelerator card). The multiple processing nodes are connected to each other via optical fibers. The multiple processing nodes include a first processing node and a second processing node. The first processing node and the second processing node can be two switching nodes connected by optical fibers, or one of the processing nodes can be a switching node and the other can be a computing node, etc. When detecting the optical link between the first processing node and the second processing node, the first processing node (as the data sender) sends first data to the second processing node based on the first transmitted optical power and obtains the first received optical power, which is the optical power of the optical signal when the first data is transmitted to the second processing node. Thus, when the first optical power loss is greater than the first threshold, it indicates that the optical power loss on the optical link between the first processing node and the second processing node is large. At this time, the first processing node outputs an alarm message for the optical link between the first processing node and the second processing node. Here, the first optical power loss is the difference between the first transmitted optical power and the first received optical power. This difference can be an exact value or an approximate value (such as the value obtained by rounding down the exact value).

[0007] Thus, during the process of the first management node sending data to the second management node, the first management node can calculate the optical power loss on the optical link between the two nodes based on the first transmit optical power used when sending the data and the receive optical power of the optical signal when the second management node receives the data. When the optical power loss on the optical link is high (greater than a first threshold), an alarm message can be output for that optical link. This not only enables automated detection of optical power loss on the optical link, improving detection efficiency, but also does not affect the normal communication function of the communication system during the detection process. This avoids service interruption on the computing node caused by the detection of optical power loss, reducing the impact on services. Furthermore, by automatically detecting optical power loss on the optical link, the communication system can also promptly detect problems such as dirty end faces of the optical modules used for sending / receiving data in the first processing node, or high optical power loss caused by component aging. It can also issue timely alarms when optical fibers or optical modules in switching nodes between different processing nodes show signs of sub-health, thereby preventing further deterioration of the sub-health condition of the optical fiber or optical module and subsequent service interruption on the computing node.

[0008] In one possible implementation, the first processing node sends second data to the second processing node based on the second transmitted optical power and obtains the second received optical power, which is the optical power of the optical signal when the second data is transmitted to the second processing node. Thus, when the second optical power loss exceeds a second threshold, the first processing node outputs a fault alarm for the optical link. Here, the second optical power loss is the difference between the second transmitted optical power and the second received optical power, and the second threshold used to determine the fault is greater than the first threshold used to trigger the alarm. In this way, the communication system can not only automatically detect the optical power loss of the optical signal on the optical link, but also automatically select to issue an abnormal alarm or a fault alarm for the optical link based on the severity of the optical power loss, thereby reducing the maintenance difficulty for the optical link.

[0009] In one possible implementation, if the first optical power loss is greater than a first threshold (i.e., if the optical power loss on the optical link is large), the first processing node can also send third data to the second processing node based on a third transmitted optical power, where the third transmitted optical power is greater than the first transmitted optical power. Thus, by appropriately increasing the transmitted optical power, the first management node can increase the optical power of the optical signal transmitted to the second management node, thereby ensuring that the second management node can successfully receive and identify the third data carried by the optical signal.

[0010] In one possible implementation, when the first optical power loss is not greater than a first threshold, the first processing node acquires an optical power margin, which is the difference between the first received optical power and the receiving sensitivity of the second processing node. The receiving sensitivity is the minimum received optical power required for the second processing node to successfully parse data based on the received optical signal. That is, when the optical power of the received optical signal is less than the receiving sensitivity, the second processing node typically struggles to parse the correct data. Therefore, based on the optical power margin, the first processing node can reduce the transmitted optical power used when sending data to the second processing node. Consequently, during subsequent data transmission from the first processing node to the second processing node, the light-emitting component in the first management node can transmit the corresponding optical signal based on a lower transmitted optical power, effectively slowing down the aging rate of the light-emitting component.

[0011] In one possible implementation, the first processing node can also acquire multiple historical data sets, each of which represents the optical power loss of the optical link over a past time period. For example, the first processing node can record the optical power loss corresponding to each data transmission during the past time period. Then, the first processing node inputs the multiple historical data sets into an artificial intelligence (AI) model to obtain the inference result output by the AI ​​model. This inference result indicates the reason why the optical power loss on the optical link exceeds a first threshold. In this way, the first management node can not only detect significant optical power loss on the optical link but also use the AI ​​model to pinpoint the cause of the significant optical power loss. This allows subsequent maintenance personnel to perform targeted maintenance on the optical link based on the reasons automatically analyzed by the first management node, thereby further reducing maintenance difficulty and improving maintenance efficiency.

[0012] Secondly, this application provides an optical link detection method. The communication system includes multiple processing nodes, each of which is a switching node (such as a switch) or a computing node (such as a server). The multiple processing nodes are connected to each other via optical fibers. The multiple processing nodes include a first processing node and a second processing node. The first processing node and the second processing node can be two switching nodes connected by optical fibers, or one of the processing nodes can be a switching node and the other can be a computing node, etc. When detecting the optical link between the first processing node and the second processing node, the first processing node (as the data receiver) receives first data and a first transmitted optical power from the second processing node. The first transmitted optical power is the optical power used when the first data is transmitted, that is, the second processing node transmits the first data to the first processing node based on the first transmitted optical power. In addition, the first processing node also obtains a first received optical power, which is the optical power of the optical signal when the first data is transmitted to the first processing node. Therefore, when the first optical power loss is greater than a first threshold, the first processing node outputs an alarm message for the optical link between the first processing node and the second processing node. The first optical power loss is the difference between the first transmitted optical power and the first received optical power.

[0013] Thus, during the data transmission process from the second management node to the first management node, the first management node can automatically detect optical power loss on the optical link, improving detection efficiency. Furthermore, this detection process does not affect the normal communication functions of the communication system, preventing service interruptions on the computing node and minimizing the impact on services. Additionally, by automatically detecting optical power loss on the optical link, the communication system can also promptly identify issues such as dirty end faces of optical modules used for sending / receiving data in switching nodes, or significant power loss due to component aging. It can also issue timely alarms when optical fibers between different switching nodes or optical modules within switching nodes exhibit sub-optimal health, thereby preventing further deterioration of the fiber or module's sub-optimal health and subsequent service interruptions on the computing node.

[0014] In one possible implementation, when the first processing node receives the first data and the first transmitted optical power from the second processing node, it may specifically receive a first message and a second message, where the payload of the first message carries the first data and the payload of the second message carries the first transmitted optical power; alternatively, the first processing node may receive a third message, where the payload of the third message carries the first data and the header of the third message carries the first transmitted optical power. Thus, the first transmitted optical power can be transmitted to the first processing node separately from the first data, or it can be transmitted to the first processing node together with the first data, to meet the first processing node's requirement for the first transmitted optical power.

[0015] In one possible implementation, the first processing node can also receive second data and a second transmitted optical power from the second processing node, the second transmitted optical power being the optical power used when the second data is transmitted; and the first processing node will also acquire a second received optical power, the second received optical power being the optical power of the optical signal when the second data is transmitted to the second processing node; thus, when the second optical power loss is greater than a second threshold, the first processing node outputs a fault alarm message for the optical link, the second optical power loss being the difference between the second transmitted optical power and the second received optical power, and the second threshold being greater than the first threshold. In this way, the communication system can not only automatically detect the optical power loss of the optical signal on the optical link, but also automatically select to issue an abnormal alarm or fault alarm for the optical link based on the severity of the optical power loss, thereby reducing the maintenance difficulty for the optical link.

[0016] In one possible implementation, the first processing node can also acquire multiple historical data sets, each representing the optical power loss of the optical link over a past time period. Furthermore, the first processing node inputs these historical data sets into an artificial intelligence (AI) model to obtain the model's inference results. These inference results indicate the reason why the optical power loss on the optical link exceeds a first threshold. Thus, the first management node can not only detect significant optical power loss on the optical link but also use the AI ​​model to pinpoint the cause of this loss. This allows subsequent maintenance personnel to perform targeted maintenance on the optical link based on the reasons automatically analyzed by the first management node, thereby further reducing maintenance difficulty and improving maintenance efficiency.

[0017] Thirdly, this application provides a processing apparatus applied to a first processing node among multiple processing nodes in a communication system. The multiple processing nodes in the communication system are connected via optical fibers, and each processing node is either a switching node or a computing node. In addition to the first processing node, the multiple processing nodes also include a second processing node. The processing apparatus includes: a communication module for transmitting first data to the second processing node based on a first transmitted optical power; acquiring a first received optical power, where the first received optical power is the optical power of the optical signal when the first data is transmitted to the second processing node; and an alarm module for outputting alarm information for the optical link between the first processing node and the second processing node when the first optical power loss exceeds a first threshold, where the first optical power loss is the difference between the first transmitted optical power and the first received optical power.

[0018] In one possible implementation, the communication module is further configured to send second data to the second processing node based on the second transmitted optical power; acquire the second received optical power, the second received optical power being the optical power of the optical signal when the second data is transmitted to the second processing node; the processing device further includes: a fault alarm module, configured to output fault alarm information for the optical link when the second optical power loss is greater than a second threshold, the second optical power loss being the difference between the second transmitted optical power and the second received optical power, and the second threshold being greater than a first threshold.

[0019] In one possible implementation, the communication module is further configured to send third data to the second processing node based on a third transmitted optical power, wherein the third transmitted optical power is greater than the first transmitted optical power, when the first optical power loss is greater than a first threshold.

[0020] In one possible implementation, the communication module is further configured to: when the first optical power loss is not greater than a first threshold, obtain an optical power margin, the optical power margin being the difference between the first received optical power and the receiving sensitivity of the second processing node, the receiving sensitivity being the minimum received optical power required for the second processing node to successfully parse data based on the received optical signal; and reduce the transmitted optical power used by the first processing node when sending data to the second processing node based on the optical power margin.

[0021] In one possible implementation, the processing device further includes: an acquisition module for acquiring multiple historical data, each of which is a value of optical power loss of the optical link in the past time period; and an inference module for inputting the multiple historical data into an artificial intelligence (AI) model to obtain an inference result output by the AI ​​model, the inference result being used to indicate the reason why the optical power loss on the optical link is greater than a first threshold.

[0022] The processing apparatus provided in the third aspect corresponds to the optical link detection method provided in the first aspect. Therefore, the technical effects of the third aspect and any implementation thereof can be found in the relevant descriptions of the technical effects of the first aspect and its corresponding implementation thereof, and will not be repeated here.

[0023] Fourthly, this application provides a processing apparatus applied to a first processing node among multiple processing nodes in a communication system. The multiple processing nodes are connected via optical fibers, each of which is a switching node or a computing node. The multiple processing nodes also include a second processing node. The processing apparatus includes: a communication module for receiving first data and a first transmitted optical power from the second processing node, the first transmitted optical power being the optical power used when the first data is transmitted; and acquiring a first received optical power, the first received optical power being the optical power of the optical signal when the first data is transmitted to the first processing node; and an alarm module for outputting alarm information for the optical link between the first processing node and the second processing node when the first optical power loss is greater than a first threshold, the first optical power loss being the difference between the first transmitted optical power and the first received optical power.

[0024] In one possible implementation, the communication module is configured to: receive a first message and a second message, wherein the payload of the first message carries first data and the payload of the second message carries a first transmit optical power; or, receive a third message, wherein the payload of the third message carries the first data and the header of the third message carries the first transmit optical power.

[0025] In one possible implementation, the communication module is further configured to receive second data and a second transmitted optical power from the second processing node, the second transmitted optical power being the optical power used when the second data is transmitted; and to acquire a second received optical power, the second received optical power being the optical power of the optical signal when the second data is transmitted to the second processing node; the processing device further includes: a fault alarm module, configured to output fault alarm information for the optical link when the second optical power loss is greater than a second threshold, the second optical power loss being the difference between the second transmitted optical power and the second received optical power, and the second threshold being greater than a first threshold.

[0026] In one possible implementation, the processing device further includes: an acquisition module for acquiring multiple historical data, each of which is a value of optical power loss of the optical link in the past time period; and an inference module for inputting the multiple historical data into an artificial intelligence (AI) model to obtain an inference result output by the AI ​​model, the inference result being used to indicate the reason why the optical power loss on the optical link is greater than a first threshold.

[0027] The processing apparatus provided in the fourth aspect corresponds to the optical link detection method provided in the second aspect. Therefore, the technical effects of the fourth aspect and any implementation thereof can be found in the relevant descriptions of the technical effects of the second aspect and its corresponding implementation thereof, and will not be repeated here.

[0028] Fifthly, this application provides a processing node, which includes a processor and a memory; wherein the memory is used to store instructions, and the processor executes the instructions stored in the memory to cause the processing node to perform the operation steps of the optical link detection method described in the first aspect and any implementation thereof, or to cause the processing node to perform the operation steps of the optical link detection method described in the second aspect and any implementation thereof.

[0029] Sixthly, this application provides a computer-readable storage medium storing instructions that, when executed on a computing device, cause the computing device to perform the operation steps of the optical link detection method described in the first aspect or any implementation thereof, or cause the computing device to perform the operation steps of the optical link detection method described in the second aspect or any implementation thereof.

[0030] In a seventh aspect, this application provides a computer program product containing instructions that, when run on a computing device, causes the computing device to perform the operation steps of the optical link detection method described in the first aspect or any implementation thereof, or causes the computing device to perform the operation steps of the optical link detection method described in the second aspect or any implementation thereof.

[0031] Based on the implementation methods provided in the above aspects, this application can be further combined to provide more implementation methods. Attached Figure Description

[0032] Figure 1 A schematic diagram of the structure of an exemplary communication system provided in this application;

[0033] Figure 2 A flowchart illustrating an optical link detection method provided in this application;

[0034] Figure 3 This is a schematic diagram of data interaction between switching node 101 and switching node 104 via optical fiber.

[0035] Figure 4 A flowchart illustrating another optical link detection method provided in this application;

[0036] Figure 5A flowchart illustrating another optical link detection method provided in this application;

[0037] Figure 6 A flowchart illustrating another optical link detection method provided in this application;

[0038] Figure 7 A schematic diagram of the structure of a processing device provided in this application;

[0039] Figure 8 This is a schematic diagram of the hardware structure of a processing node provided in this application. Detailed Implementation

[0040] To make the above-mentioned objectives, features, and advantages of this application more apparent and understandable, various non-limiting embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained based on the embodiments in this application and based on the above content are within the scope of protection of this application.

[0041] See Figure 1 A schematic diagram of a communication system is shown. Figure 1 The communication system 10 shown includes multiple processing nodes, each of which can be a switching node or a computing node. Furthermore, different processing nodes can communicate with each other via optical fiber. For ease of understanding and description, Figure 1 The multiple processing nodes in the China-Israel communication system 10 are specifically taken as switching nodes 101 to 105 and computing nodes 201 to 206 for illustration.

[0042] For example, each switching node can be any device with data forwarding capabilities, such as a switch, switching chip, router, etc. Furthermore, each switching node can be configured with multiple optical modules, such as... Figure 1 As shown in the diagram, the optical module is a key module for realizing optical communication, and it can include a light-emitting component and a light-receiving component. The light-emitting component, such as a laser, is used to convert electrical signals into optical signals and emit them, allowing the switching node to send data-carrying optical signals to other switching nodes. The light-receiving component, such as a photodetector, is used to receive optical signals and convert them into electrical signals, allowing the switching node to receive optical signals sent by other switching nodes.

[0043] In communication system 10, some switching nodes can also establish connections with multiple computing nodes via optical fibers to provide data communication services to these computing nodes. In practical applications, the multiple switching nodes in communication system 10 can form multiple layers. Among them, the switching nodes connected to the computing nodes (such as switching nodes 101 to 103) can be called the first-level switching nodes, which are used to forward data for the computing nodes (forwarding data via optical signals), including forwarding data sent by the computing node to other switching nodes / other computing nodes, and forwarding data sent by other switching nodes / other computing nodes to the computing node. Different switching nodes located in the first level can forward data through second-level switching nodes (such as switching nodes 104 and 105), for example, switching node 101 can forward data to switching node 102 through switching node 104, etc.

[0044] The computing nodes can be nodes with data computing capabilities, such as terminals, servers, or accelerator cards. For example, an accelerator card can be a graphics processing unit (GPU), a neural network processing unit (NPU), a tensor processing unit (TPU), an AI processing chip, or a data processing unit (DPU), or other types of accelerator cards. Each computing node is equipped with an optical module, such as... Figure 1 As shown, the computing node can interact with the switching node through this optical module.

[0045] Computing nodes 201 to 206 can run services, such as model training tasks. During service operation, different computing nodes can exchange data through one or more switching nodes. Taking the data exchange between computing nodes 201 and 203 as an example, computing node 201 can use an optical module to convert data into optical signals and send the optical signals to switching node 101 via optical fiber. Switching node 101 forwards the optical signals to switching node 102 via switching node 104, and switching node 102 then forwards the optical signals to computing node 103 via optical fiber. The communication links between computing nodes and switching nodes based on optical fibers, as well as the communication links between different switching nodes based on optical fibers, can be referred to as optical links.

[0046] In practical applications, significant optical power loss may occur during transmission of optical signals on some optical links. For example, factors such as bending of the optical fiber due to external pressure, impurities in the fiber, dust contamination of the fiber or optical module end face, aging of the light-emitting components in the optical module, or poor fiber splicing quality can all lead to substantial optical power loss during transmission. Furthermore, low-quality materials, poor manufacturing processes, or contamination at the connection between the optical fiber and the optical module can also cause significant optical power loss at that connection point, resulting in overall high optical power loss along the optical link. In such cases, if maintenance personnel manually measure the optical power loss on each fiber to determine if any anomalies exist, this not only leads to low detection efficiency and timeliness, potentially impacting services in the computing cluster, but also reduces the accuracy of detection because maintenance personnel cannot detect anomalies in the optical link's optical power loss when the end face of the optical module is contaminated with dust or the light-emitting components are aging.

[0047] Based on this, Figure 1 In the communication system 10 shown, the processing node can automatically detect whether there is any abnormality in the optical power loss on the optical link. Specifically, taking a switching node 101 as the processing node, and the switching node 101 detecting the optical power loss on the optical link between itself and switching node 104 as an example, switching node 101 sends data to switching node 104 based on the transmitted optical power 1. Specifically, it sends the optical signal corresponding to the data to switching node 104 based on the transmitted optical power 1. Here, the transmitted optical power 1 refers to the optical power used by switching node 101 when sending the optical signal. Switching node 101 can store this transmitted optical power 1 locally. Switching node 104 obtains the received optical power 1 corresponding to the data. This received optical power 1 is the optical power of the optical signal when the data is transmitted to switching node 104, and switching node 104 also sends this received optical power 1 back to switching node 101. In this way, switching node 101 can calculate the optical power loss generated when the optical signal is transmitted on the optical link between switching node 101 and switching node 104 based on the received optical power I and the locally stored transmitted optical power I. Specifically, the optical power loss is the difference between the transmitted optical power I and the received optical power I. When the optical power loss is less than or equal to a threshold, it indicates that the optical power lost when the optical signal is transmitted on the optical link is within the normal range, and switching node 101 can determine that the optical power loss on the optical link is not abnormal. However, when the optical power loss is greater than the threshold, it indicates that the optical power lost when the optical signal is transmitted on the optical link is large (exceeding the normal range). In this case, switching node 101 can output alarm information for the optical link. For example, the communication system 10 may also include a network management platform (…). Figure 1(Not shown in the image), and the switching node 101 can send the alarm information to the network management platform via optical fiber or other means. In this way, the operation and maintenance personnel can determine on the network management platform that there is an abnormality in the optical power loss on the optical link between switching node 101 and switching node 104 based on the alarm information, so that the operation and maintenance personnel can perform operation and maintenance on the optical link in a timely manner.

[0048] Thus, during the process of switching node 101 sending data to switching node 104, switching node 101 can calculate the optical power loss on the optical link between switching node 101 and switching node 104 based on the transmit optical power I used when sending the data and the receive optical power I generated when switching node 104 receives the data. When the optical power loss on the optical link is large (greater than the threshold), alarm information can be output for the optical link. This not only enables automated detection of optical power loss on the optical link and improves detection efficiency, but also does not affect the normal communication function of the communication system 10 during the detection of optical power loss. This avoids the interruption of services on the computing node caused by the detection of optical power loss and reduces the impact on services.

[0049] In addition, by automatically detecting optical power loss on the optical link, the communication system 10 can also promptly detect problems such as dirty end faces of optical modules used for sending / receiving data in the switching node or large optical power loss caused by device aging of the optical modules. It can also issue timely alarms when the optical fibers between different switching nodes or the optical modules in the switching nodes are in a sub-healthy state, thereby preventing the sub-healthy state of the optical fibers or optical modules from deteriorating further and causing service interruption of the computing node.

[0050] It is understood that the above explanation uses the detection of abnormal optical power loss on the optical link between different switching nodes as an example. For the optical link between a switching node and a computing node, a similar verification method can be used. Taking the detection of optical power loss on the optical link between switching node 101 and computing node 201 as an example, switching node 101 sends data to computing node 201 based on the transmitted optical power 2 and stores the transmitted optical power 2 locally. Computing node 201 obtains the received optical power 2 corresponding to the data and sends the received optical power 2 to switching node 101. This received optical power 2 is the optical power of the optical signal when the data is transmitted to computing node 201. Thus, switching node 101 can calculate the optical power loss generated when the optical signal is transmitted on the optical link between switching node 101 and computing node 201 based on the received optical power 2 and the locally stored transmitted optical power 2. This optical power loss is the difference between the transmitted optical power 2 and the received optical power 2. When the optical power loss is less than or equal to the threshold, it indicates that the optical power loss generated when the optical signal is transmitted on the optical link is within the normal range, and the switching node 101 can determine that the optical power loss on the optical link is not abnormal. However, when the optical power loss is greater than the threshold, it indicates that the optical power loss generated when the optical signal is transmitted on the optical link is large. At this time, the switching node 101 can output alarm information for the optical link, such as outputting alarm information for the optical link to the network management platform.

[0051] Furthermore, besides the switching node detecting whether there is an anomaly in the optical power loss on the optical link between itself and the computing node, the computing node can also detect whether there is an anomaly in the optical power loss on the optical link (i.e., the processing node for detecting optical power loss is specifically the computing node). For example, when the computing node 201 sends data to the switching node 101, the switching node 101 can report the received optical power 3 back to the computing node 201. Thus, the computing node 201 can calculate the optical power loss based on the transmitted optical power 3 used when sending the data and the received optical power 3 reported by the switching node 101, and issue an alarm for the optical link when the optical power loss exceeds a threshold.

[0052] Furthermore, besides the processing node acting as the data sender detecting optical power loss on the optical link, the processing node acting as the data receiver can also detect optical power loss on the optical link. Taking a switching node as an example, if switching node 101 sends data to switching node 104, then switching node 101 will not only send the data to switching node 104, but also send the transmit optical power (I) used to send the data to switching node 104. In this way, switching node 104 can calculate the optical power loss generated during transmission on the optical link between switching node 101 and switching node 104 based on the received optical power (I) generated when receiving data and the transmit optical power (I) sent by switching node 101. If the optical power loss exceeds a threshold, it will output an alarm message for that optical link to the network management platform.

[0053] It is worth noting that the above Figure 1 The communication system 10 shown is merely an illustrative example and is not intended to limit the scope. For instance, in other possible communication systems 10, the switch hierarchy may include more layers, such as a third layer, where the third-layer switch forwards data for different switches in the second layer. Furthermore, in other possible communication systems, in addition to establishing a communication connection using optical fiber, different switching nodes may also use other types of transmission media (such as twisted-pair cables) to establish a connection; in this case, the optical fiber can be used to transmit service data (the optical signal corresponding to the specific service data), while other transmission media are used to transmit non-service data information, such as the transmitted optical power 1 or received optical power 1 mentioned above. Moreover, in other possible communication systems, each switching node may also include more functional modules, such as... Figure 3 As shown, the switching node 101 may also include a cache 1011, or the communication system may also include other nodes, such as management nodes, for managing each switching node.

[0054] For ease of understanding, the following description, in conjunction with the accompanying drawings, describes an embodiment of the present application for detecting whether there is an abnormality in the optical power loss of an optical link in a communication system.

[0055] See Figure 2 , Figure 2 This is a flowchart illustrating an exemplary optical link detection method provided in an embodiment of this application. Figure 2 The optical link detection method shown can be applied to Figure 1 The communication system 10 shown can be applied to other possible communication systems. For ease of understanding and description, it will be used in the following example. Figure 1 The following explanation uses the communication system 10 shown as an example, and takes the detection of the optical link between switching node 101 and switching node 104 as an example.

[0056] exist Figure 2 In the illustrated embodiment, the optical power loss on the optical link is detected by the data transmitting end, and the processing node for detecting optical power loss is specifically a switching node. Figure 2 As shown, the optical link detection method may specifically include the following steps.

[0057] S201: Switching node 101 sends data 1 to switching node 104 based on transmitted optical power 1.

[0058] In communication system 10, switching node 101 typically sends data to switching node 104. For example, when computing node 201 sends data to computing node 203, the data sent by computing node 201 can be forwarded to computing node 203 sequentially through switching node 101, switching node 104, and switching node 102. During this process, switching node 101 forwards the data to switching node 104. For ease of distinction, the data sent by switching node 101 to switching node 104 will be referred to as data 1 below.

[0059] Specifically, when switching node 101 sends data 1, it means that switching node 101 sends the optical signal corresponding to data 1. This optical signal can be transmitted to switching node 104 through the optical link between switching node 101 and switching node 104.

[0060] In specific implementation, such as Figure 3 As shown, switching node 101 can use its internally configured optical module to generate an optical signal corresponding to data 1, and transmit this optical signal to the optical fiber between switching node 101 and switching node 104 based on a pre-configured transmit optical power 1. Normally, this optical signal will be transmitted through the optical fiber and eventually reach switching node 104. Switching node 104 can use its built-in optical module to detect the optical signal in the optical fiber, and upon detection, capture the optical signal and convert it into a corresponding electrical signal. The electrical signal, as the data carrier, can indicate data through changes in its voltage level. Therefore, after successfully converting the received optical signal into an electrical signal, switching node 104 can realize the transmission of data from switching node 101 to switching node 104.

[0061] In practical applications, while sending data 1, switching node 101 can also locally store the transmitted optical power 1. For example, as Figure 3 As shown, the switching node 101 can be configured with a cache 1011, and the switching node 101 can store the transmitted optical power 1 in the cache 1011 so that the required transmitted optical power 1 can be read from the cache 1011 later.

[0062] S202: Switching node 104 obtains the received optical power 1 corresponding to data 1. The received optical power 1 is the optical power of the optical signal when data 1 is transmitted to switching node 104.

[0063] Here, the received optical power 1 corresponding to data 1 refers to the optical power that the optical signal corresponding to data 1 has when it is transmitted to the switching node 104.

[0064] As an implementation example, during the reception of data 1, switching node 104 can detect the optical signal corresponding to data 1 transmitted to switching node 104, and can further measure the optical power of the optical signal when it arrives at switching node 104. The measured optical power can be temporarily stored in a register. The implementation method for measuring the optical power of the optical signal already exists in practical scenarios and will not be described further. Then, switching node 104 can query the register and save the optical power in the register to cache 1041, such as... Figure 3 As shown, the stored optical power is the received optical power 1 mentioned above.

[0065] S203: Switching node 104 sends received optical power 1 to switching node 101.

[0066] In this embodiment, the switching node 104 sends the measured received optical power 1 to the switching node 101 so that the switching node 101 can subsequently determine the optical power loss generated by the optical signal during transmission based on the received optical power 1.

[0067] In one possible implementation, switching node 104 can read the received optical power 1 from buffer 1041 and encapsulate the received optical power 1 into a message using a preset communication protocol, such as the Link Layer Discovery Protocol (LLDP) or other communication protocols. Switching node 104 can then send the message carrying the received optical power 1 to switching node 101, for example, via optical fiber, or via another transmission medium connected to switching node 101.

[0068] S204: Switching node 101 calculates the difference between transmitted optical power 1 and received optical power 1 to obtain optical power loss 1.

[0069] When the switching node 104 feeds back the received optical power 1 to the switching node 101, the switching node 101 can determine the optical power loss that occurs during the transmission of the optical signal based on the power of the optical signal before transmission (i.e., the transmitted optical power 1) and the power of the optical signal when it is transmitted to the switching node 104 (i.e., the received optical power 1).

[0070] In one possible implementation, switching node 101 can parse the received optical power 1 from the received message, read the transmitted optical power 1 from the buffer 1011, and calculate the difference between the transmitted optical power 1 and the received optical power 1. This difference reflects the amount of optical power lost during the transmission of the optical signal from switching node 101 to switching node 104. In this embodiment, this difference is referred to as optical power loss 1. The difference can be an exact value or a rounded value; there is no limitation on this.

[0071] S205: Switching node 101 determines whether the optical power loss 1 is greater than the first threshold. If the optical power loss 1 is greater than the first threshold, proceed to step S206; if the optical power loss 1 is less than or equal to the first threshold, proceed to step S207.

[0072] S206: Switching node 101 outputs alarm information for the optical link between switching node 101 and switching node 104.

[0073] In practical applications, during the transmission of optical signals through optical fibers, some energy may be absorbed by the fiber material (part of the optical signal's energy is converted into heat energy after absorption), resulting in a gradual decrease in the optical power of the signal as it propagates. That is, the optical link between switching nodes 101 and 104, built on optical fibers, will experience normal optical power loss, but this loss is usually within a controllable range. Therefore, an appropriate threshold can be set for the optical link between switching nodes 101 and 104. If the optical power loss during transmission is less than or equal to this threshold, the optical link between switching nodes 101 and 104 is considered to be in a normal state; that is, switching node 101 can determine that the optical power loss on this link is not abnormal. However, when the optical power loss during transmission exceeds this threshold, it indicates that the optical signal will experience significant optical power loss in the optical link between switching nodes 101 and 104, meaning the loss exceeds the normal range. In this case, switching node 101 can determine that the optical power loss on this link is abnormal.

[0074] Typically, the optical link between switching node 101 and switching node 104 will experience significant optical power loss, which may be due to several reasons.

[0075] 1. The optical fiber connecting switching node 101 and switching node 104 is bent due to external force. As a result, the optical signal transmission to the bend in the optical fiber will suffer a significant loss of optical power, leading to substantial optical power loss in the optical link between switching node 101 and switching node 104.

[0076] 2. The end face of the optical fiber (i.e., the port section where the optical fiber connects to switching node 101 / switching node 104) is contaminated with dust. When the optical signal is transmitted to this end face, the dust will absorb a significant amount of energy from the optical signal, resulting in a substantial loss of optical power at this end face, and consequently, significant optical power loss in the optical link.

[0077] 3. Fiber optic cables contain impurities. During the transmission of optical signals through optical fibers, impurities within the fiber can absorb a significant amount of the signal's energy, resulting in substantial optical power loss in the optical link.

[0078] 4. Poor fiber optic splice quality. In this case, the optical signal will lose a significant amount of energy at the splice point, resulting in substantial optical power loss in the optical link.

[0079] 5. The end face (i.e., the port section where the optical module contacts the optical fiber) of the optical module in switching node 101 or switching node 104 is contaminated with dust. When the optical signal is transmitted from this end face to the optical fiber, or from the optical fiber to this end face, the dust on the end face will absorb more of the optical signal energy, resulting in a large optical power loss in the optical link.

[0080] 6. The light-emitting components in the optical modules of switching node 101 or switching node 104 are aging. This results in poor stability of the output optical signal during the generation of the optical signal. This instability affects the transmission quality of the optical signal, leading to significant optical power loss during transmission.

[0081] If switching node 101 determines that the optical power loss 1 is greater than a first threshold, switching node 101 can generate alarm information for the optical link between switching node 101 and switching node 104, and output the alarm information, such as to a network management platform. For example, the alarm information output by switching node 101 may include an alarm type and alarm details. The alarm type indicates an alarm caused by excessive optical power loss on the optical link. The alarm details refer to detailed information about the optical link, such as information indicating the optical link, such as the optical link identifier (e.g., optical link number), or the identifiers of switching nodes 101 and 104 (indicating the optical link between these two switching nodes). Furthermore, the alarm details may also include information such as optical power loss 1 and the first threshold.

[0082] Upon receiving the alarm information, the network management platform can notify maintenance personnel about significant optical power loss in the optical link between switching node 101 and switching node 104. This can be achieved by sending a notification message to the maintenance personnel's terminal (e.g., a mobile phone). In practical applications, each switching node can use the above method to detect optical power loss on its optical links with other switching nodes and output an alarm message for that optical link when significant optical power loss is detected. This allows maintenance personnel to promptly identify optical links in the communication system 10 that are in a sub-optimal state (i.e., optical links with significant optical power loss) and perform targeted maintenance on those links.

[0083] Thus, during data communication between different switching nodes, by acquiring the transmitted and received optical power of the switching nodes, the optical power loss on the optical link between different switching nodes can be automatically detected, thereby improving detection efficiency. Simultaneously, during the detection of optical power loss, normal data communication can continue between different switching nodes, preventing service interruptions on computing nodes caused by optical power loss detection and reducing the impact on services. Furthermore, when the end face of the optical module is contaminated, or the light-emitting components in the optical module age (or due to other non-fiber reasons), the switching node can also detect problems causing significant optical power loss in the optical link, thereby improving detection accuracy.

[0084] Furthermore, the alarm information output by the switching node 101 to the network management platform may also include the cause of the large optical power loss in the optical link. This cause may be any one of the six exemplary causes mentioned above, or it may be other types of causes.

[0085] As an implementation example, switching node 101 is pre-configured with an AI model, which can be a neural network model or a random forest model, etc., capable of inferring the cause of excessive optical power loss in the optical link. After determining that the optical power loss 1 is greater than a first threshold, switching node 101 can acquire multiple historical data points. Each historical data point represents the optical power loss value of the optical link between switching node 101 and switching node 104 over a past time period. For example, during the process of switching node 101 sending data to switching node 104 multiple times over a past time period, the optical power loss value generated during each data transmission can be recorded in cache 1011, memory, or local disk. Then, switching node 101 can input these multiple historical data points into the AI ​​model, which then performs inference based on these historical data points. Specifically, it can perform inference based on the characteristics of these multiple historical data points (such as data amplitude, data change characteristics, etc.) to obtain a corresponding inference result. This inference result indicates the cause of the optical power loss on the optical link exceeding the first threshold. For example, when the differences in optical power loss values ​​indicated by multiple historical data points are small, the AI ​​model can infer that the cause of the large optical power loss in the AI ​​model is the bending of the optical fiber due to external force (each optical signal experiences a significant energy loss when transmitting to this bend). The AI ​​model can be pre-trained based on at least one set of sample data, including different causes and the resulting optical power loss values.

[0086] In this way, switching node 101 can not only detect that the optical power loss on the optical link is large, but also use AI model to locate the cause of the large optical power loss on the optical link. This allows the network management platform to notify the operation and maintenance personnel of the alarm information, and the operation and maintenance personnel can carry out targeted operation and maintenance on the optical link based on the cause automatically analyzed by switching node 101, thereby further reducing the difficulty of operation and maintenance and improving the efficiency of operation and maintenance.

[0087] In real-world applications, optical fiber or optical modules in switching nodes may also fail, leading to more severe optical power loss during transmission of the optical signal from switching node 101 to switching node 104. Therefore, in a further possible implementation, the communication system 10 can determine whether to output an alarm message or a fault alarm message for the optical link based on the severity of the optical power loss.

[0088] In a specific implementation, taking the case where a fault is detected in the optical link when switching node 101 sends data 2 to switching node 104 as an example, switching node 101 can send data 2 to switching node 104 based on the transmitted optical power 2, specifically sending the optical signal corresponding to data 2. Correspondingly, switching node 104, while receiving data 2, obtains the received optical power 2 corresponding to data 2 and sends a message including the received optical power 2 to switching node 101. Then, switching node 101 can calculate the optical power lost during the transmission of the optical signal corresponding to data 2 from switching node 101 to switching node 104 based on the transmitted and received optical power 2; this is referred to as optical power loss 2. Furthermore, switching node 101 can compare optical power loss 2 with a second threshold. When the optical power loss 2 exceeds the second threshold, indicating excessive optical power loss during transmission (usually due to fiber or optical module failure), switching node 101 can determine that the optical link between switching node 101 and switching node 104 is faulty and output fault alarm information for the optical link, such as sending the alarm information to the network management platform. This allows the network management platform to promptly notify maintenance personnel to restore the faulty optical link, such as replacing the fiber or optical module on the link. For example, the fault alarm information output by switching node 101 may include a fault type and fault details. The fault type indicates that the optical link has failed. The fault details may include the optical link indication information, the optical power loss 2, and the second threshold.

[0089] When the optical power loss is less than or equal to the second threshold, the switching node 101 can further determine whether the optical power loss 2 is greater than the first threshold, which is less than the second threshold. Furthermore, if the optical power loss 2 is greater than the first threshold, indicating that the optical power lost during transmission is relatively large (but not to the extent of optical power loss caused by an optical link failure), the switching node 101 can output alarm information for the optical link to the network management platform, so that the network management platform can promptly notify maintenance personnel to perform abnormal repairs on the faulty optical link, such as straightening the bent fiber portion.

[0090] In this way, the communication system 10 can not only automatically detect the optical power loss of the optical signal on the optical link, but also automatically select to issue an abnormal alarm or fault alarm for the optical link according to the severity of the optical power loss, thereby reducing the maintenance difficulty for the operation and maintenance personnel for the optical link.

[0091] In practical applications, when the optical power loss of the optical link between switching node 101 and switching node 104 is large (greater than the first threshold and less than the second threshold), since it takes a certain amount of time for the network management platform to notify the maintenance personnel to perform maintenance on the optical link and for the maintenance personnel to perform maintenance operations, switching node 101 can increase the transmitted optical power to ensure the successful transmission of data from switching node 101 to switching node 104 during this period.

[0092] In specific implementation, assuming that after sending data 1 to switching node 104, switching node 101 determines that the calculated optical power loss 1 is greater than a first threshold (and less than a second threshold), when switching node 101 needs to send new data to switching node 104, hereinafter referred to as data 3, switching node 101 can send data 3 to switching node 104 based on the transmitted optical power 3, where the transmitted optical power 3 is greater than the aforementioned transmitted optical power 1. Thus, by appropriately increasing the transmitted optical power, switching node 101 can increase the optical power of the optical signal transmitted to switching node 104, thereby ensuring that switching node 104 can successfully receive and identify the data 3 carried by the optical signal.

[0093] For example, when increasing the transmitted optical power, the switching node 101 can specifically increase the transmitted optical power by a fixed amount based on the original transmitted optical power 1, that is, the transmitted optical power 3 is the sum of the transmitted optical power 1 and the fixed amount of optical power. Alternatively, the switching node 101 can also determine the increase in transmitted optical power based on the magnitude of the optical power loss 1. Generally, the larger the optical power loss 1, the larger the increase in transmitted optical power, that is, the larger the increased transmitted optical power. For example, the switching node 101 can be pre-configured with a mapping relationship between optical power loss and transmitted optical power, so that after calculating the optical power loss 1, the switching node 101 can look up the mapping relationship, determine the transmitted optical power 3 corresponding to the optical power loss 1, and send the new data that needs to be forwarded later according to the transmitted optical power 3.

[0094] S207: Switching node 101 obtains an optical power margin, which is the difference between the received optical power 1 and the receiving sensitivity of switching node 104.

[0095] The receiving sensitivity is the minimum received optical power required for the switching node 104 to successfully parse data from the received optical signal. That is, when the optical power of the optical signal transmitted to the switching node 104 is greater than or equal to the receiving sensitivity, the switching node 104 can identify the data corresponding to the optical signal; conversely, when the optical power of the optical signal transmitted to the switching node 104 is less than the receiving sensitivity, the switching node 104 has difficulty identifying the data corresponding to the optical signal.

[0096] In one possible implementation, since the receiving sensitivity of switching node 104 is typically relatively fixed, switching node 104 can notify other switching nodes (including switching node 101) connected to it of its receiving sensitivity during initialization, or it can send the receiving sensitivity to other switching nodes after receiving a request message from other switching nodes 101 regarding that receiving sensitivity. In practical applications, switching node 101 can also send its own receiving sensitivity to switching node 104. In this way, switching node 101 can locally store the receiving sensitivity of switching node 104. Thus, after switching node 104 feeds back the received optical power 1 corresponding to data 1 to switching node 101, switching node 101 can calculate the difference between the received optical power 1 and the receiving sensitivity of switching node 104 to obtain the optical power margin.

[0097] S208: Based on the optical power margin, the switching node 101 adjusts the transmit optical power used when sending data from the switching node 101 to the switching node 104.

[0098] It is understandable that the optical signal fluctuates each time it is transmitted from switching node 101 to switching node 104; that is, some optical signals are transmitted to switching node 104 with lower optical power, while others are transmitted to switching node 104 with higher optical power. Therefore, to ensure that the optical power transmitted to switching node 104 is not less than the receiving sensitivity, the optical power margin is usually kept greater than 0 to ensure the reliability of optical signal transmission on the optical link. However, when the optical power margin is too large, the transmit optical power used by switching node 101 when sending data will also be too high, which will accelerate the aging of the light-emitting components in the optical module of switching node 101. Based on this, switching node 101 can adjust the transmit optical power used by switching node 101 when sending data according to the optical power margin, so as to ensure the reliability of optical signal transmission on the optical link while slowing down the aging rate of the light-emitting components in switching node 101 as much as possible.

[0099] As an example, switching node 101 can compare an optical power margin with a fourth threshold (a value greater than 0). When the optical power margin is greater than the fourth threshold, switching node 101 can reduce the transmit optical power used when sending data to switching node 104. For example, switching node 101 can calculate a first difference between the optical power margin and the fourth threshold, and further calculate a second difference between the transmit optical power 1 used by switching node 101 when sending data 1 to switching node 104 and the first difference. Switching node 101 can then use this second difference as the transmit optical power used when subsequently sending other data to switching node 104. Thus, during subsequent transmission of other data to switching node 104, the light-emitting component in switching node 101 can transmit the optical signal corresponding to that data with a lower transmit optical power, which can effectively slow down the aging rate of the light-emitting component.

[0100] Furthermore, when the optical power margin is less than the fourth threshold, switching node 101 can further determine whether the optical power margin is less than the fifth threshold, which is a value less than the fourth threshold and greater than 0. If the optical power margin is less than the fifth threshold, it indicates that the optical power margin is too small. This may cause the optical power of the optical signal corresponding to the data to switch node 104 to reach switch node 104 to be less than the receiving sensitivity of switch node 104. In this case, switching node 101 can increase its transmit optical power according to the optical power margin. For example, switching node 101 can calculate the third difference between the fifth threshold and the optical power margin, and further calculate the sum of the third difference and the transmit optical power, and use this sum as the transmit optical power used when sending other data to switch node 104 in the future. Thus, during subsequent transmission of other data to switching node 104, the light-emitting component in switching node 101 can transmit the optical signal corresponding to that data with a higher transmit optical power. This ensures that the optical power of the optical signal transmitted to switching node 104 is greater than the receive sensitivity of switching node 104, thereby guaranteeing the reliability of optical signal transmission on the optical link. Furthermore, when the optical power margin is greater than or equal to the fifth threshold and less than or equal to the fourth threshold, switching node 101 does not need to adjust its transmit optical power.

[0101] Of course, the above-described method of switching node 101 adjusting the transmitted optical power according to the optical power margin is only an example. In actual applications, switching node 101 may also adjust the transmitted optical power in other ways according to the optical power margin, and there is no limitation on this.

[0102] It is understood that the above example uses the detection of optical power loss on the optical link when switching node 101 sends data to switching node 104 as an example. In actual applications, switching node 104 may also send data to switching node 101. In this case, switching node 104 can also refer to the above-mentioned method to detect the optical power loss of the optical link used when switching node 104 sends data to switching node 101. This will not be elaborated further.

[0103] It should be noted that the first, second, fourth, and fifth thresholds mentioned in this embodiment can be determined based on the relevant attributes of the optical link between switching node 101 and switching node 104, and can be determined in advance by technical personnel. These relevant attributes may include, for example, the length of the optical fiber, the material of the optical fiber, and the product type of the optical module. Furthermore, the applicable thresholds may differ for different optical links. For instance, the optical fiber in optical link 1 between switching node 101 and switching node 105 may be longer than the optical fiber in optical link 2 between switching node 101 and switching node 104, allowing the first threshold value applicable to optical link 1 to be greater than the first threshold value applicable to optical link 2.

[0104] The above Figure 2 The illustrated embodiment primarily uses the example of the data transmitter detecting the optical power loss of the optical link for illustrative purposes. In other embodiments, the data receiver may also detect the optical power loss of the optical link. The following will combine... Figure 4 This is a non-limiting statement.

[0105] See Figure 4 This illustrates a flowchart of another optical link detection method. Figure 4 In the embodiment shown, the processing node used to detect optical power loss on the optical link is a switching node, and taking switching node 101 to switching node 104 as an example, the method embodiment includes the following steps.

[0106] S401: Switching node 101 sends data 1 to switching node 104 based on transmitted optical power 1, and sends the transmitted optical power 1 back to switching node 101.

[0107] In this embodiment, the following implementation examples of transmitting data 1 and transmitting optical power 1 are provided.

[0108] In the first implementation example, switching node 101 can send data 1 and transmitted optical power 1 to switching node 104 respectively. Specifically, switching node 101 can send message 1 and message 2 to switching node 104, where message 1 includes data 1 and message 2 includes transmitted optical power 1. Thus, switching node 101 can send data 1 and transmitted optical power 1 to switching node 104 respectively by sending message 1 and message 2 to switching node 104. Message 1 is transmitted to switching node 104 based on the optical link between switching node 101 and switching node 104. Message 2 can also be transmitted to switching node 104 based on this optical link. Alternatively, when switching node 101 and switching node 104 also include other links, such as links constructed through twisted-pair cables or other transmission media, message 2 can also be transmitted to switching node 104 based on these other links.

[0109] Message 1 typically includes a header and a payload. The header may carry information such as the address of the switching node 104 and the message type. The payload may carry the data 1 to be sent to the switching node 104. Similarly, the transmitted optical power 1 may also be carried in the payload of message 2.

[0110] In the second implementation example, switching node 101 can send data 1 and transmitted optical power 1 together to switching node 104. Specifically, switching node 101 can send message 3 to switching node 104. The header of message 3 can carry transmitted optical power 1, such as using an extended field in the header. The payload of message 3 can carry data 1. Thus, switching node 101 can send data 1 and transmitted optical power 1 to switching node 104 by sending message 3. Message 3 is transmitted to switching node 104 via the optical link between switching node 101 and switching node 104.

[0111] In practical applications, switching node 101 can also send data 1 and transmitted optical power 1 to switching node 104 in other ways, without limitation.

[0112] S402: Switching node 104 obtains the received optical power 1 corresponding to data 1. The received optical power 1 is the optical power of the optical signal when data 1 is transmitted to switching node 104.

[0113] For the specific implementation of step S402, please refer to the above. Figure 2 The relevant details of step S202 in the embodiments are described, and will not be repeated here.

[0114] S403: Switching node 104 calculates the difference between transmitted optical power 1 and received optical power 1 to obtain optical power loss 1.

[0115] In this embodiment, since the switching node 101 sends the transmitted optical power 1 to the switching node 104, the switching node 104 can calculate the difference between the received transmitted optical power 1 and the acquired received optical power 1 to obtain the optical power loss 1, that is, the optical power lost by the optical signal during the transmission from the switching node 101 to the switching node 104.

[0116] S404: Switching node 104 determines whether the optical power loss 1 is greater than the first threshold. If the optical power loss 1 is greater than the first threshold, proceed to step S405; if the optical power loss 1 is less than or equal to the first threshold, proceed to step S406.

[0117] S405: Switching node 104 outputs alarm information for the optical link between switching node 101 and switching node 104.

[0118] For the specific implementation of steps S403 to S405, please refer to the above. Figure 2 The relevant parts of steps S204 to S206 in the embodiment are described, and will not be repeated here.

[0119] S406: Switching node 104 obtains an optical power margin, which is the difference between the received optical power 1 and the receiving sensitivity of switching node 104.

[0120] S407: Based on the optical power margin, switching node 104 sends a notification message to switching node 101, which instructs switching node 101 to adjust the transmit optical power used when sending data to switching node 104.

[0121] S408: Based on the notification message, switching node 101 adjusts the transmit optical power used when sending data from switching node 101 to switching node 104.

[0122] In this embodiment, when the optical power loss on the optical link is within the normal range, the switching node 104 can further calculate the optical power margin and notify the switching node 101 to adjust the transmitted optical power based on the optical power margin. Specifically, when the optical power margin is large (greater than the fourth threshold), the switching node 104 can notify the switching node 101 to reduce the transmitted optical power to slow down the aging rate of the light-emitting components in the switching node 101 as much as possible; while when the optical power margin is small (less than the fifth threshold), the switching node 104 can notify the switching node 101 to increase the transmitted optical power so that the optical power transmitted to the switching node 104 is not less than the receiving sensitivity of the switching node 104, ensuring the reliability of the optical signal transmission on the optical link.

[0123] The specific implementation method for adjusting the transmitted optical power of switching node 101 can be found in the above. Figure 2 The relevant details in the illustrated embodiments are described in detail here, and will not be repeated here.

[0124] The above Figure 2 as well as Figure 4 The illustrated embodiment uses the example of the sending or receiving end detecting optical power loss on the optical link during data communication between two switching nodes. In real-world applications, switching nodes may also communicate with computing nodes via optical links. During this process, either the switching node or the computing node can also detect optical power loss on the optical link. The following sections will discuss this in conjunction with... Figure 5 as well as Figure 6 Examples will be provided for each of these.

[0125] See Figure 5 This illustrates a flowchart of another optical link detection method. Figure 5 In the embodiment shown, the switching node 101 can send data 4 to the computing node 201, and the switching node 101 can be responsible for detecting the optical power loss on the optical link between the switching node 101 and the computing node 201 (that is, the processing node for detecting optical power loss is the switching node 101). Figure 5 The illustrated embodiment may specifically include the following steps.

[0126] S501: Switching node 101 sends data 4 to computing node 201 based on transmitted optical power 4.

[0127] S502: Computing node 201 obtains the received optical power 4 corresponding to data 4. The received optical power 4 is the optical power of the optical signal when data 4 is transmitted to computing node 201.

[0128] S503: Computing node 201 sends received optical power 4 to switching node 101.

[0129] S504: Switching node 101 calculates the difference between the transmitted optical power 4 and the received optical power 4 to obtain the optical power loss 3.

[0130] S505: Switching node 101 determines whether the optical power loss 3 is greater than the third threshold. If the optical power loss 3 is greater than the third threshold, proceed to step S506; if the optical power loss 3 is less than or equal to the third threshold, proceed to step S507.

[0131] The third threshold can be determined based on the relevant attributes of the optical link between the switching node 101 and the computing node 201. The implementation method can be found in the relevant description of the implementation method of determining the first threshold above, and will not be repeated here.

[0132] S506: Switching node 101 outputs alarm information for the optical link between switching node 101 and computing node 201.

[0133] Furthermore, switching node 101 can automatically select whether to output alarm information or fault alarm information for the optical link based on the optical power loss 3. Specifically, when the optical power loss 3 is greater than the sixth threshold, switching node 101 can output fault alarm information for the optical link; while when the optical power loss 3 is less than the sixth threshold but greater than the third threshold, switching node 101 can output alarm information for the optical link. The implementation method of switching node 101 outputting fault alarm information can be found above. Figure 2 The relevant descriptions of the output fault alarm information in the illustrated embodiments are not repeated here.

[0134] S507: Switching node 101 obtains optical power margin, which is the difference between the received optical power 4 and the receiving sensitivity of computing node 201.

[0135] S508: Based on the optical power margin, the switching node 101 adjusts the transmit optical power used when sending data to the computing node 201.

[0136] For the specific implementation methods of steps S501 to S508, please refer to the above. Figure 2 The relevant parts of steps S201 to S208 in the embodiment are described, and will not be repeated here.

[0137] The above Figure 5 In the illustrated embodiment, the detection of optical power loss on the optical link is exemplified by the switching node 101 (data transmitter). In other embodiments, the detection of optical power loss on the optical link can also be performed by the computing node 201 (data receiver). The following will combine... Figure 6 This will be illustrated by example.

[0138] See Figure 6 This illustrates a flowchart of another optical link detection process. Figure 6 In the embodiment shown, the processing node for detecting optical power loss is computing node 201. Figure 6 The illustrated embodiment may specifically include the following steps.

[0139] S601: Switching node 101 sends data 4 to computing node 201 based on transmitted optical power 1, and sends the transmitted optical power 4 to computing node 201.

[0140] S602: Computing node 201 obtains the received optical power 4 corresponding to data 4. The received optical power 4 is the optical power of the optical signal when data 4 is transmitted to computing node 201.

[0141] S603: Calculate node 201 to calculate the difference between the transmitted optical power 4 and the received optical power 4, and obtain the optical power loss 3.

[0142] S604: Calculate node 201 to determine the relationship between optical power loss 3 and the third threshold. If optical power loss 3 is greater than the third threshold, continue to step S605; if optical power loss 3 is less than or equal to the third threshold, proceed to step S606.

[0143] S605: Computing node 201 outputs alarm information for the optical link between switching node 101 and computing node 201.

[0144] S606: Computation node 201 obtains the optical power margin, which is the difference between the received optical power 4 and the receiving sensitivity of computation node 201.

[0145] S607: The computing node 201 sends a notification message to the switching node 101 based on the optical power margin. The notification message is used to instruct the switching node 101 to adjust the transmit optical power used when sending data to the computing node 201.

[0146] S608: Based on the notification message, the switching node 101 adjusts the transmit optical power used when sending data to the computing node 201.

[0147] For the specific implementation methods of steps S601 to S608, please refer to the above. Figure 4 The relevant parts of steps S401 to S408 in the embodiment are described, and will not be repeated here.

[0148] It is worth noting that other reasonable combinations of steps that can be conceived by those skilled in the art based on the above description also fall within the scope of protection of this application. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to this application.

[0149] The above combination Figures 1 to 6 The optical link detection method provided in the embodiments of this application will be introduced. Next, the hardware structure of the processing device and processing node provided in the embodiments of this application will be described with reference to the accompanying drawings.

[0150] See Figure 7 A schematic diagram of a processing device is shown. Figure 7 The processing device 700 shown is applied to a first processing node among a plurality of processing nodes in a communication system. The plurality of processing nodes are connected by optical fibers, and each of the plurality of processing nodes is a switching node or a computing node. The plurality of processing nodes also includes a second processing node.

[0151] like Figure 7 As shown, the processing device 700 includes a communication module 701 and an alarm module 702. Optionally, the processing device 700 may also include a fault alarm module 703, an acquisition module 704, and an inference module 705.

[0152] The first processing node can act as either a data sender or a data receiver. The functions of each module in the processing device 700 when the first processing node acts as a sender and when it acts as a receiver are described below.

[0153] Example 1: The first processing node acts as the data sender, and the second processing node acts as the data receiver.

[0154] Communication module 701 is used to send first data to the second processing node based on a first transmitted optical power; and to acquire a first received optical power, wherein the first received optical power is the optical power of the optical signal when the first data is transmitted to the second processing node;

[0155] The alarm module 702 is used to output alarm information for the optical link between the first processing node and the second processing node when the first optical power loss is greater than the first threshold, wherein the first optical power loss is the difference between the first transmitted optical power and the first received optical power.

[0156] In one possible implementation, the communication module 701 is further configured to transmit second data to the second processing node based on the second transmitted optical power; and to acquire the second received optical power, wherein the second received optical power is the optical power of the optical signal when the second data is transmitted to the second processing node; in this case, the processing device 700 may further include:

[0157] The fault alarm module 703 is used to output fault alarm information for the optical link when the second optical power loss is greater than the second threshold, wherein the second optical power loss is the difference between the second transmitted optical power and the second received optical power, and the second threshold is greater than the first threshold.

[0158] In one possible implementation, the communication module 701 is further configured to send third data to the second processing node based on a third transmitted optical power, wherein the third transmitted optical power is greater than the first transmitted optical power, when the first optical power loss is greater than the first threshold.

[0159] In one possible implementation, the communication module 701 is further configured to:

[0160] When the first optical power loss is not greater than the first threshold, an optical power margin is obtained. The optical power margin is the difference between the first received optical power and the receiving sensitivity of the second processing node. The receiving sensitivity is the minimum received optical power required for the second processing node to successfully parse data based on the received optical signal.

[0161] Based on the optical power margin, the transmit optical power used by the first processing node when sending data to the second processing node is reduced.

[0162] In one possible implementation, when the processing device 700 further includes an acquisition module 704 and an inference module 705, the acquisition module 704 is used to acquire multiple historical data, each of which is a value of the optical power loss of the optical link in the past time period; the inference module 705 is used to input the multiple historical data into an artificial intelligence (AI) model to obtain an inference result output by the AI ​​model, the inference result being used to indicate the reason why the optical power loss on the optical link is greater than the first threshold.

[0163] Example 2: The first processing node acts as the data receiver, while the second processing node acts as the data sender.

[0164] The communication module 701 is configured to receive first data and a first transmitted optical power from the second processing node, wherein the first transmitted optical power is the optical power used when the first data is transmitted; and to acquire a first received optical power, wherein the first received optical power is the optical power of the optical signal when the first data is transmitted to the first processing node.

[0165] The alarm module 702 is used to output alarm information for the optical link between the first processing node and the second processing node when the first optical power loss is greater than the first threshold, wherein the first optical power loss is the difference between the first transmitted optical power and the first received optical power.

[0166] In one possible implementation, the communication module 701 is used for:

[0167] Receive a first message and a second message, wherein the payload of the first message carries the first data and the payload of the second message carries the first transmitted optical power;

[0168] Alternatively, a third message may be received, wherein the payload of the third message carries the first data and the header of the third message carries the first transmitted optical power.

[0169] In one possible implementation, the communication module 701 is further configured to receive second data and a second transmitted optical power from the second processing node, the second transmitted optical power being the optical power used when the second data is transmitted; and to acquire a second received optical power, the second received optical power being the optical power of the optical signal when the second data is transmitted to the second processing node; in this case, the processing device 700 further includes:

[0170] The fault alarm module 703 is used to output fault alarm information for the optical link when the second optical power loss is greater than the second threshold, wherein the second optical power loss is the difference between the second transmitted optical power and the second received optical power, and the second threshold is greater than the first threshold.

[0171] In one possible implementation, when the processing device 700 further includes an acquisition module 704 and an inference module 705, the acquisition module 704 is used to acquire multiple historical data, each of which is a value of the optical power loss of the optical link in the past time period; the inference module 705 is used to input the multiple historical data into an artificial intelligence (AI) model to obtain an inference result output by the AI ​​model, the inference result being used to indicate the reason why the optical power loss on the optical link is greater than the first threshold.

[0172] because Figure 7 The processing device 700 shown corresponds to the above. Figures 2 to 6 The switching node or computing node in the illustrated embodiment, therefore Figure 7 For details on the specific implementation of the processing device 700 and its technical effects, please refer to the above. Figures 2 to 6 The relevant details in the illustrated embodiments are described in detail here, and will not be repeated here.

[0173] Figure 8 This application provides a schematic diagram of the hardware structure of a processing node 800, which, for example, can implement the above-described... Figures 2 to 6 The example shown includes a switching node or a computing node.

[0174] like Figure 8 As shown, the processing node 800 includes a processor 801, a memory 802, and a communication interface 803. The processor 801, memory 802, and communication interface 803 communicate via a bus 804, or via wireless transmission or other means. The memory 802 stores instructions, and the processor 801 executes the instructions stored in the memory 802. Further, the processing node 800 may also include a memory unit 805, which is connected to the processor 801, the storage medium 802, and the communication interface 803 via the bus 804. The memory 802 stores program code, and the processor 801 can call the program code stored in the memory 802 to perform the following operations:

[0175] First data is sent to the second processing node based on the first transmit optical power. The second processing node is one of multiple processing nodes in the communication system. The multiple processing nodes are connected by optical fiber. Each of the multiple processing nodes is a switching node or a computing node.

[0176] Obtain the first received optical power, which is the optical power of the optical signal when the first data is transmitted to the second processing node;

[0177] When the first optical power loss is greater than the first threshold, an alarm message is output for the optical link between the first processing node and the second processing node. The first optical power loss is the difference between the first transmitted optical power and the first received optical power.

[0178] Alternatively, processor 801 can call program code stored in memory 802 to perform the following operations:

[0179] The system receives first data and first transmitted optical power from a second processing node. The first transmitted optical power is the optical power used when the first data is transmitted. The second processing node is one of multiple processing nodes in the communication system. The multiple processing nodes are connected by optical fiber. Each of the multiple processing nodes is a switching node or a computing node.

[0180] Obtain the first received optical power, which is the optical power of the optical signal when the first data is transmitted to the first processing node;

[0181] When the first optical power loss is greater than the first threshold, an alarm message is output for the optical link between the first processing node and the second processing node. The first optical power loss is the difference between the first transmitted optical power and the first received optical power.

[0182] It should be understood that in this embodiment, the processor 801 can be a CPU, but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete device assemblies, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0183] The memory 802 may include read-only memory and random access memory, and provides instructions and data to the processor 801. The memory 802 may also include non-volatile random access memory.

[0184] The memory 802 can be volatile memory or non-volatile memory, or it can include both. The non-volatile memory can be 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 volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0185] The communication interface 803 is used to communicate with other devices connected to the processing node 800. The bus 804 may include a data bus, a power bus, a control bus, and a status signal bus, etc. However, for clarity, all buses are labeled as bus 804 in the figure.

[0186] It should be understood that the processing node 800 according to the embodiments of this application may correspond to the processing device 700 in the embodiments of this application, and may correspond to the execution of the process according to the embodiments of this application. Figures 2 to 6 The methods executed by the exchange node or computing node in the illustrated method, and the above and other operations and / or functions implemented by the processing node 800, are respectively for the purpose of implementing... Figures 2 to 6 The process of the corresponding methods in [the document] will not be elaborated here for the sake of brevity.

[0187] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computing device can store, or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to perform the aforementioned optical link detection method.

[0188] This application also provides a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computing device, all or part of the processes or functions described in this application are generated.

[0189] The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, or data center to another website, computer, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means.

[0190] The computer program product can be a software installation package. When any of the aforementioned optical link detection methods is required, the computer program product can be downloaded and executed on a computing device.

[0191] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented using software, the above embodiments can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. A semiconductor medium can be a solid-state drive.

[0192] The terminology used in the above embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to also include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the embodiments of this application, “one or more” refers to one, two, or more; the character “ / ” generally indicates that the preceding and following objects are in an “or” relationship. In the embodiments of this application, “simultaneously” means within the same time period, including situations where they are at the same moment. The terms “first,” “second,” etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate, and this is merely a way of distinguishing objects with the same attributes in the embodiments of this application.

[0193] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0194] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An optical link detection method, characterized in that, The method is applied to a communication system, which includes multiple processing nodes connected by optical fibers. Each of the multiple processing nodes is a switching node or a computing node. The multiple processing nodes include a first processing node and a second processing node. The method includes: The first processing node sends first data to the second processing node based on the first transmitted optical power; The first processing node acquires the first received optical power, which is the optical power of the optical signal when the first data is transmitted to the second processing node; When the first optical power loss is greater than the first threshold, the first processing node outputs an alarm message for the optical link between the first processing node and the second processing node. The first optical power loss is the difference between the first transmitted optical power and the first received optical power.

2. The method according to claim 1, characterized in that, The method further includes: The first processing node sends the second data to the second processing node based on the second transmitted optical power; The first processing node acquires the second received optical power, which is the optical power of the optical signal when the second data is transmitted to the second processing node; When the second optical power loss is greater than the second threshold, the first processing node outputs a fault alarm message for the optical link. The second optical power loss is the difference between the second transmitted optical power and the second received optical power, and the second threshold is greater than the first threshold.

3. The method according to claim 1 or 2, characterized in that, The method further includes: When the first optical power loss is greater than the first threshold, the first processing node sends third data to the second processing node based on the third transmitted optical power, wherein the third transmitted optical power is greater than the first transmitted optical power.

4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: When the first optical power loss is not greater than the first threshold, the first processing node obtains an optical power margin, which is the difference between the first received optical power and the receiving sensitivity of the second processing node. The receiving sensitivity is the minimum received optical power required for the second processing node to successfully parse data based on the received optical signal. The first processing node reduces the transmit optical power used when sending data to the second processing node based on the optical power margin.

5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: The first processing node acquires multiple historical data, each of which is a value of the optical power loss of the optical link in the past time period; The first processing node inputs the multiple historical data into the artificial intelligence (AI) model to obtain the inference result output by the AI ​​model. The inference result is used to indicate the reason why the optical power loss on the optical link is greater than the first threshold.

6. An optical link detection method, characterized in that, The method is applied to a communication system, which includes multiple processing nodes connected by optical fibers. Each of the multiple processing nodes is a switching node or a computing node. The multiple processing nodes include a first processing node and a second processing node. The method includes: The first processing node receives first data and a first transmitted optical power from the second processing node, wherein the first transmitted optical power is the optical power used when the first data is transmitted; The first processing node acquires the first received optical power, which is the optical power of the optical signal when the first data is transmitted to the first processing node; When the first optical power loss is greater than the first threshold, the first processing node outputs an alarm message for the optical link between the first processing node and the second processing node. The first optical power loss is the difference between the first transmitted optical power and the first received optical power.

7. The method according to claim 6, characterized in that, The first processing node receives first data and a first transmitted optical power from the second processing node, including: The first processing node receives a first message and a second message. The payload of the first message carries the first data, and the payload of the second message carries the first transmitted optical power. Alternatively, the first processing node receives a third message, the payload of which carries the first data and the header of which carries the first transmitted optical power.

8. The method according to claim 6 or 7, characterized in that, The method further includes: The first processing node receives second data and a second transmitted optical power from the second processing node, wherein the second transmitted optical power is the optical power used when the second data is transmitted; The first processing node acquires the second received optical power, which is the optical power of the optical signal when the second data is transmitted to the second processing node; When the second optical power loss is greater than the second threshold, the first processing node outputs a fault alarm message for the optical link. The second optical power loss is the difference between the second transmitted optical power and the second received optical power, and the second threshold is greater than the first threshold.

9. The method according to any one of claims 6 to 8, characterized in that, The method further includes: The first processing node acquires multiple historical data, each of which is a value of the optical power loss of the optical link in the past time period; The first processing node inputs the multiple historical data into the artificial intelligence (AI) model to obtain the inference result output by the AI ​​model. The inference result is used to indicate the reason why the optical power loss on the optical link is greater than the first threshold.

10. A processing apparatus, characterized in that, The processing device is applied to a first processing node among a plurality of processing nodes in a communication system. The plurality of processing nodes are connected by optical fiber. Each of the plurality of processing nodes is a switching node or a computing node. The plurality of processing nodes also includes a second processing node. The processing apparatus includes: The communication module is used to send first data to the second processing node based on a first transmitted optical power; and to acquire a first received optical power, wherein the first received optical power is the optical power of the optical signal when the first data is transmitted to the second processing node; The alarm module is used to output alarm information for the optical link between the first processing node and the second processing node when the first optical power loss is greater than the first threshold. The first optical power loss is the difference between the first transmitted optical power and the first received optical power.

11. The processing apparatus according to claim 10, characterized in that, The communication module is further configured to send second data to the second processing node based on the second transmitted optical power; and to acquire the second received optical power, wherein the second received optical power is the optical power of the optical signal when the second data is transmitted to the second processing node; The processing device further includes: The fault alarm module is used to output fault alarm information for the optical link when the second optical power loss is greater than the second threshold, wherein the second optical power loss is the difference between the second transmitted optical power and the second received optical power, and the second threshold is greater than the first threshold.

12. The processing apparatus according to claim 10 or 11, characterized in that, The communication module is further configured to send third data to the second processing node based on a third transmitted optical power when the first optical power loss is greater than the first threshold, wherein the third transmitted optical power is greater than the first transmitted optical power.

13. The processing apparatus according to any one of claims 10 to 12, characterized in that, The communication module is also used for: When the first optical power loss is not greater than the first threshold, an optical power margin is obtained. The optical power margin is the difference between the first received optical power and the receiving sensitivity of the second processing node. The receiving sensitivity is the minimum received optical power required for the second processing node to successfully parse data based on the received optical signal. Based on the optical power margin, the transmit optical power used by the first processing node when sending data to the second processing node is reduced.

14. The processing apparatus according to any one of claims 10 to 13, characterized in that, The processing device further includes: The acquisition module is used to acquire multiple historical data, each of which is a value of the optical power loss of the optical link in the past time period; The inference module is used to input the multiple historical data into the artificial intelligence (AI) model to obtain the inference result output by the AI ​​model. The inference result is used to indicate the reason why the optical power loss on the optical link is greater than the first threshold.

15. A processing apparatus, characterized in that, The processing device is applied to a first processing node among a plurality of processing nodes in a communication system. The plurality of processing nodes are connected by optical fiber. Each of the plurality of processing nodes is a switching node or a computing node. The plurality of processing nodes also includes a second processing node. The processing apparatus includes: The communication module is configured to receive first data and a first transmitted optical power from the second processing node, wherein the first transmitted optical power is the optical power used when the first data is transmitted; and to acquire a first received optical power, wherein the first received optical power is the optical power of the optical signal when the first data is transmitted to the first processing node. The alarm module is used to output alarm information for the optical link between the first processing node and the second processing node when the first optical power loss is greater than the first threshold. The first optical power loss is the difference between the first transmitted optical power and the first received optical power.

16. The processing apparatus according to claim 15, characterized in that, The communication module is used for: Receive a first message and a second message, wherein the payload of the first message carries the first data and the payload of the second message carries the first transmitted optical power; Alternatively, a third message may be received, wherein the payload of the third message carries the first data and the header of the third message carries the first transmitted optical power.

17. The processing apparatus according to claim 15 or 16, characterized in that, The communication module is further configured to receive second data and a second transmitted optical power from the second processing node, wherein the second transmitted optical power is the optical power used when the second data is transmitted; Obtain the second received optical power, which is the optical power of the optical signal when the second data is transmitted to the second processing node; The processing device further includes: The fault alarm module is used to output fault alarm information for the optical link when the second optical power loss is greater than the second threshold, wherein the second optical power loss is the difference between the second transmitted optical power and the second received optical power, and the second threshold is greater than the first threshold.

18. The processing apparatus according to any one of claims 15 to 17, characterized in that, The processing device further includes: The acquisition module is used to acquire multiple historical data, each of which is a value of the optical power loss of the optical link in the past time period; The inference module is used to input the multiple historical data into the artificial intelligence (AI) model to obtain the inference result output by the AI ​​model. The inference result is used to indicate the reason why the optical power loss on the optical link is greater than the first threshold.

19. A processing node, characterized in that, The processing node includes a processor and a memory; The memory is used to store instructions, and the processor executes the instructions stored in the memory to cause the processing node to perform the method as described in any one of claims 1 to 9.

20. A computer-readable storage medium, characterized in that, Includes instructions that, when executed on a computing device, cause the computing device to perform the method as described in any one of claims 1 to 9.

21. A computer program product containing instructions, characterized in that, When it is run on at least one computing device, it causes the at least one computing device to perform the method as described in any one of claims 1 to 9.