Wavelength switching method, network node and system

By pre-negotiating the communication wavelength in the optical switching network and sending invalid data, the wave cutting time-consuming problem caused by wavelength switching is solved, communication efficiency is improved, and code error and recovery delay are reduced.

CN119676593APending Publication Date: 2025-03-21HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311222828.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-20
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The wave cutting caused by wavelength switching in existing optical switching networks takes a long time, affecting communication efficiency.

Method used

The wave-shut delay is avoided by pre-negotiating the communication wavelengths between the two parties of the communication and sending invalid data to the next network node to be communicated during the current communication process.

Benefits of technology

The switching delay caused by wave cutting is reduced, communication efficiency is improved, and the optical module is not broken, and the code error and recovery delay are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676593A_ABST
    Figure CN119676593A_ABST
Patent Text Reader

Abstract

The invention discloses a wavelength switching method, a network node and a system, relates to the technical field of optical communication, and is used for reducing wave cutting time consumption. According to the invention, the network nodes negotiate the wavelength in advance through the electric switching network to notify both parties to prepare the corresponding communication wavelength, and the invalid data is sent before the current communication is completed to prevent the optical module from light interruption, thereby reducing the time delay caused by the recovery of cut light interruption. The sending side also sends invalid data to the next to-be-communicated node in the current communication process, due to the adoption of a negotiation mechanism, the receiving side cannot process the data when the communication wavelength is not negotiated, and the communication data sent by the next to-be-communicated node is processed only after the negotiation is completed and the current communication is completed. Wave cutting time consumption can be reduced. According to the invention, receiving of dual wavelengths is supported, selective receiving is carried out between the dual wavelengths, effective data is selected for processing, and error codes caused by mutual interference between optical signals of the two wavelengths are prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of optical communication technology, and in particular to a wavelength switching method, a network node and a system. Background Art

[0002] In recent years, AI deep learning has developed rapidly, especially the rapid growth of AI large models, which has brought huge data and information processing needs, requiring large-scale network clusters. Compared with electrical switching network clusters, optical switching network clusters have the characteristics of high bandwidth, no dynamic delay, and low power consumption, which can better adapt to the development of AI clusters.

[0003] In optical switching network clusters, tunable wavelength optical modules are currently used to switch wavelengths according to demand to send data to different target network nodes. However, the current wavelength switching solution has the following problems:

[0004] However, wavelength switching will take time. The wavelength switching is performed after the communication with the current network node is completed, which brings about the wavelength cutting time. The wavelength cutting time may include, for example, the physical wavelength cutting time of the optical module and the fast connection recovery time (for example, including the trans-impedance amplifier (TIA) convergence time). Summary of the invention

[0005] The embodiments of the present application provide a wavelength switching method, a network node and a system for reducing the time consumption of wavelength switching.

[0006] In a first aspect, an embodiment of the present application provides a wavelength switching method, which is applied to a first network node, the first network node is deployed in an optical switching communication system, the optical switching cluster scheduling system includes multiple network nodes including the first network node, the multiple network nodes are connected through an optical switching network, and the multiple network nodes are also connected through an electrical switching network; the multiple network nodes also include at least a second network node and a third network node; the method includes: the first network node and the second network node to be communicated negotiate through the electrical switching network that the communication wavelength adopted is a first wavelength; the first network node sends a first optical signal of the first wavelength to the second network node through the optical switching network, and sends a first optical signal of the first wavelength to the third network node A second optical signal of a second wavelength is sent, and the communication wavelength of the third network node is the second wavelength; wherein the first optical signal carries the first communication data required by the second network node, and the second optical signal carries invalid data; the third network node is the next network node to be communicated with after the first network node completes communication with the second network node; the first network node negotiates with the next third network node to be communicated with through the electrical switching network that the communication wavelength to be adopted is the second wavelength; after completing communication with the second network node, the first network node sends a third optical signal of the second wavelength to the third network node through the optical switching network, and the third optical signal carries the second communication data required by the third network node.

[0007] In the embodiment of the present application, the communication wavelength to be used is pre-negotiated, and the communicating parties open the corresponding communication wavelength. During the current communication, the sending side also sends an optical signal to the next receiving node to be communicated. However, due to the pre-negotiation, the receiving side will not process the data if there is no negotiated communication wavelength. The sending side will only send valid data for the negotiated wavelength. For the network node at the sending end, there is no need to switch to another wavelength after completing the communication with the current network node, which can reduce the switching delay caused by wavelength cutting.

[0008] In the embodiment of the present application, during the communication process between the first network node and the second network node, the communication wavelength is negotiated with the next network node to be communicated (the third network node), and the communicating parties turn on the corresponding communication wavelengths, and start data transmission and processing after the current communication is completed.

[0009] In a possible design, the method further includes: when the first network node completes the communication with the second network node, the first network node exchanges the communication completion indication with the second network node through the optical switching network. In the above scheme, after the communication between the two communicating parties is completed, the two communicating parties promptly notify the other party through the optical switching network, so that the two communicating parties each communicate with the next network node to be communicated. By using the optical switching network notification, an indication can be added at the end of the data stream. It does not need to be executed separately, which can improve resource utilization.

[0010] In one possible design, the method further includes: when the first network node completes communication with the second network node, interacting with the second network node through the electrical exchange network to complete the communication indication.

[0011] In the above scheme, after the communication is completed, the communicating parties promptly notify the other party through the electrical switching network, so that the communicating parties each communicate with the next network node to be communicated. The above scheme does not need to occupy data transmission resources, can provide improved utilization of data transmission resources, and reduce data transmission delay.

[0012] In one possible design, the first network node includes a processing unit and an optical module;

[0013] The first network node and the second network node to be communicated negotiate through the electrical switching network to use a first wavelength as the communication wavelength, including:

[0014] The communication wavelength adopted by the first network node through the processing unit and the second network node to be communicated with through the electrical switching network is negotiated as the first wavelength;

[0015] The first network node sends a first optical signal of the first wavelength to the second network node through the optical switching network, and sends a second optical signal of the second wavelength to the third network node, including:

[0016] The optical module of the first network node sends a first optical signal of the first wavelength to the second network node through the optical switching network, and sends a second optical signal of the second wavelength to the third network node.

[0017] In one possible design, the processing unit is a neural processing unit NPU.

[0018] In one possible design, the invalid data is the first communication data.

[0019] In a second aspect, an embodiment of the present application provides a wavelength switching method, which is applied to a third network node, wherein the third network node is deployed in an optical switching communication system, and the optical switching cluster scheduling system includes multiple network nodes including the third network node, and the multiple network nodes are connected through an optical switching network, and the multiple network nodes are also connected through an electrical switching network; the multiple network nodes also include at least a first network node and a fourth network node; the method includes: the communication wavelength adopted by the third network node and the fourth network node to be communicated is negotiated through the electrical switching network as a third wavelength; the third network node receives a fourth optical signal from the fourth network node through the optical switching network, and receives a second optical signal from the first network node; the communication wavelength of the fourth optical signal is the third wavelength, and the fourth optical signal carries the third the third communication data required by the network node, the communication wavelength of the second optical signal is the second wavelength, and the second optical signal carries invalid data; the first network node is the next network node to be communicated after the third network node completes the communication with the fourth network node; the third network node processes the third communication data in the fourth optical signal and discards the invalid data in the second optical signal; the communication wavelength adopted by the third network node and the first network node to be communicated next is negotiated as the second wavelength through the electrical switching network, and after completing the communication with the fourth network node, the third network node receives the third optical signal of the second wavelength from the first network node through the optical switching network, and the third optical signal carries the second communication data required by the third network node; and processes the second communication data in the third optical signal.

[0020] In the embodiment of the present application, for the third network node, during the communication with the fourth network node, the next network node to be communicated will also send data, but the present application adopts a communication negotiation mechanism, and before the next network node to be communicated is negotiated, the third network node does not process the data of the next network node to be communicated. After the negotiated communication is completed and the communication with the current network node is completed, the communication data sent by the first network node will be processed. For the third network node, the communication wavelength is also prepared in advance, which can reduce the time consumption of cutting wavelength.

[0021] In one possible design, the method further includes: when the third network node completes communication with the fourth network node, exchanging communication completion indications with the fourth network node through the optical switching network.

[0022] In one possible design, the method further includes: when the third network node completes communication with the fourth network node, interacting with the fourth network node through the electrical exchange network to complete the communication indication.

[0023] In one possible design, the third network node includes a processing unit and an optical module; the communication wavelength adopted by the third network node and the fourth network node to be communicated through the electrical switching network through negotiation is a third wavelength, including: the communication wavelength adopted by the third network node and the fourth network node to be communicated through the electrical switching network through the processing unit is negotiated as the third wavelength; the third network node receives a fourth optical signal from the fourth network node through the optical switching network, and receives a second optical signal from the first network node, including: the optical module of the third network node receives the fourth optical signal from the fourth network node through the optical switching network, and receives the second optical signal from the first network node.

[0024] In one possible design, the third network node includes a network card, the optical module includes a first photodetector and a second photodetector; the working wavelength of the first photodetector includes the third wavelength; the working wavelength of the second photodetector includes the second wavelength; the working wavelength range of the first photodetector is different from the working wavelength range of the second photodetector;

[0025] The third network node processes the third communication data in the fourth optical signal and discards invalid data in the fifth optical signal, including:

[0026] The network card only receives the third communication data from the first photoelectric detector, and sends it to the processing unit to process the third communication data;

[0027] The method further comprises:

[0028] The third network node negotiates with the first network node to communicate next to use the second wavelength as the communication wavelength through the electrical switching network, and after completing the communication with the second network node, notifies the network card through the processing unit to switch to receiving the second communication data only from the second photodetector.

[0029] For the network nodes at the receiving end, there are still bit errors caused by wavelength cutting. For example, the communication between network node 1 and network node 2 ends (using wavelength 1), but network node 1 needs to continue to use wavelength 2 to communicate with network node 3. After network node 1 switches to wavelength 2, it sends an optical signal of wavelength 2 to network node 3, but at this time, the communication between network node 3 and other network nodes has not ended, resulting in network node 3 receiving both the optical signal of wavelength 2 and the optical signal of other network nodes. The optical signals of the two wavelengths interfere with each other, which will cause bit errors. The solution provided by the embodiment of the present application supports dual-wavelength reception, switches between dual wavelengths, selects between dual wavelengths, selects valid data for processing, and prevents bit errors caused by mutual interference between the optical signals of the two wavelengths.

[0030] In addition, for the network nodes at the receiving end, there is still the problem of optical module light failure due to wavelength cutting. For example, the communication between network node 1 and network node 2 ends, but network node 2 needs to continue to communicate with network node 3 of wavelength 2. After network node 2 switches to wavelength 2, the communication between network node 3 and other nodes has not ended, resulting in no light entering network node 2. As a result, the optical module will enter sleep mode due to the photodetector and other devices after the light is cut off, and it needs to be restored after receiving the optical signal, which will cause recovery delay. Using the solution provided by the embodiment of the present application, the network nodes to be communicated will negotiate during the execution of the current communication process, that is, before the next communication, to notify the other party to prepare the corresponding communication wavelength, and will send invalid data to prevent the optical module from breaking, thereby reducing the wavelength cutting delay and improving communication efficiency.

[0031] In one possible design, the invalid data is the third communication data.

[0032] In a third aspect, an embodiment of the present application provides a first network node, wherein the first network node is deployed in an optical switching cluster scheduling system, wherein the optical switching communication system includes multiple network nodes including the first network node, wherein the multiple network nodes are connected via an optical switching network, and the multiple network nodes are also connected via an electrical switching network; the multiple network nodes also include at least a second network node and a third network node; the first network node includes a processing unit and an optical module; wherein,

[0033] The processing unit is configured to negotiate with the second network node to be communicated with through the electrical switching network that the communication wavelength adopted is the first wavelength;

[0034] The optical module sends a first optical signal of the first wavelength to the second network node through the optical switching network, and sends a second optical signal of the second wavelength to the third network node, and the communication wavelength of the third network node is the second wavelength; wherein the first optical signal carries the first communication data required by the second network node, and the second optical signal carries invalid data; the third network node is the next network node to be communicated after the first network node completes the communication with the second network node;

[0035] The processing unit is further used to negotiate with the third network node to be communicated next through the electrical switching network that the communication wavelength to be adopted is the second wavelength;

[0036] The optical module is further used to send a third optical signal of the second wavelength to the third network node through the optical switching network after completing the communication with the second network node, and the third optical signal carries the second communication data required by the third network node.

[0037] In a fourth aspect, an embodiment of the present application provides a third network node, wherein the third network node is deployed in an optical switching cluster scheduling system, wherein the optical switching communication system includes multiple network nodes including the third network node, wherein the multiple network nodes are connected via an optical switching network, and the multiple network nodes are also connected via an electrical switching network; the multiple network nodes also include at least a first network node and a fourth network node; the third network node includes a processing unit and an optical module, wherein the processing unit is used to negotiate with the fourth network node to be communicated through the electrical switching network that the communication wavelength adopted is a third wavelength; the optical module is used to receive a fourth optical signal from the fourth network node through the optical switching network, and receive a second optical signal from the first network node; the communication wavelength of the fourth optical signal is the third wavelength, and the fourth optical signal carries the third the third communication data required by the network node, the communication wavelength of the fifth optical signal is the fourth wavelength, and the second optical signal carries invalid data; the first network node is the next network node to be communicated after the third network node completes the communication with the fourth network node; the processing unit is further used to process the third communication data in the fourth optical signal and discard the invalid data in the fifth optical signal; the optical module is also used to negotiate with the next first network node to be communicated through the electrical switching network that the communication wavelength adopted is the second wavelength, and after completing the communication with the second network node, receive the third optical signal of the second wavelength from the first network node through the optical switching network, the third optical signal carrying the second communication data required by the third network node; and process the second communication data in the third optical signal.

[0038] In a possible design, the third network node further includes a network card, and the optical module includes a first photodetector and a second photodetector; the working wavelength of the first photodetector is the third wavelength; and the working wavelength of the second photodetector is the second wavelength;

[0039] The first photodetector is used to perform detection processing on the fourth optical signal to obtain the third communication data;

[0040] The second photodetector is used to perform detection processing on the second optical signal to obtain the invalid data;

[0041] The network card is used to receive the third communication data only from the first photoelectric detector during the communication between the first network node and the second network node, and send the third communication data to the processing unit for processing;

[0042] The processing unit is also used to negotiate the communication wavelength to be adopted between the processing unit and the first network node to be communicated next through the electrical switching network, and after completing the communication with the second network node, notify the network card to switch to receiving the second communication data only from the second photodetector.

[0043] For the network nodes at the receiving end, there are still bit errors caused by wavelength cutting. For example, the communication between network node 1 and network node 2 ends (using wavelength 1), but network node 1 needs to continue to use wavelength 2 to communicate with network node 3. After network node 1 switches to wavelength 2, it sends an optical signal of wavelength 2 to network node 3, but at this time, the communication between network node 3 and other network nodes has not ended, resulting in network node 3 receiving both the optical signal of wavelength 2 and the optical signal of other network nodes. The optical signals of the two wavelengths interfere with each other, which will cause bit errors. The solution provided by the embodiment of the present application supports dual-wavelength reception, switches between dual wavelengths, selects between dual wavelengths, selects valid data for processing, and prevents bit errors caused by mutual interference between the optical signals of the two wavelengths.

[0044] In addition, for the network nodes at the receiving end, there is still the problem of optical module light failure due to wavelength cutting. For example, the communication between network node 1 and network node 2 ends, but network node 2 needs to continue to communicate with network node 3 of wavelength 2. After network node 2 switches to wavelength 2, the communication between network node 3 and other nodes has not ended, resulting in no light entering network node 2. As a result, the optical module will enter sleep mode due to the photodetector and other devices after the light is cut off, and it needs to be restored after receiving the optical signal, which will cause recovery delay. Using the solution provided by the embodiment of the present application, the network nodes to be communicated will negotiate during the execution of the current communication process, that is, before the next communication, to notify the other party to prepare the corresponding communication wavelength, and will send invalid data to prevent the optical module from breaking, thereby reducing the wavelength cutting delay and improving communication efficiency.

[0045] In a fifth aspect, an embodiment of the present application provides an optical switching communication system, comprising a plurality of network nodes, the plurality of network nodes being connected via an optical switching network, and the plurality of network nodes being also connected via an electrical switching network; the plurality of network nodes comprising at least a first network node, a second network node, and a third network node; wherein the first network node is used to negotiate with the second network node to be communicated with via the electrical switching network that the communication wavelength adopted is a first wavelength; the first network node is also used to send a first optical signal of the first wavelength to the second network node via the optical switching network, and to send a second optical signal of a second wavelength to the third network node; wherein the first optical signal carries first communication data of the second network node, and the second optical signal carries first communication data of the second network node. The second optical signal carries invalid data; the third network node is the next network node to be communicated after completing the communication with the second network node; the second network node is used to process the first communication data; the third network node is used to discard the invalid data in the second optical signal; the first network node is also used to negotiate with the third network node through the electrical switching network that the communication wavelength adopted is the second wavelength, and when completing the communication with the second network node, send the third optical signal of the second wavelength to the third network node through the optical switching network, wherein the third optical signal includes the second communication data of the third network node; the third network node is also used to process the second communication data.

[0046] In one possible design, the plurality of network nodes further include a fourth network node;

[0047] The third network node is further configured to negotiate with the fourth network node to be communicated with through the electrical switching network that the communication wavelength adopted is the third wavelength;

[0048] The fourth network node is used to send the fourth optical signal of the third wavelength to the third network node through the optical switching network; the fourth optical signal carries the third communication data required by the third network node;

[0049] The third network node is further configured to receive the fourth optical signal; the first network node is the next network node to be communicated with after the third network node completes communication with the fourth network node;

[0050] The third network node is specifically configured to process the second communication data after completing the communication with the fourth network node.

[0051] In one possible design, the first network node is further used to, when completing communication with the second network node, exchange communication completion indication with the second network node through the optical switching network.

[0052] In one possible design, the first network node is further used to, when completing communication with the second network node, interact with the second network node through the electrical switching network to provide an indication of completion.

[0053] Based on the implementations provided in the above aspects, the present application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a structural schematic diagram of an optical switching communication system;

[0055] Figure 2 A schematic diagram of the structure of an optical switching communication system provided in an embodiment of the present application;

[0056] Figure 3 A schematic diagram of a wavelength switching method provided in an embodiment of the present application;

[0057] Figure 4 A schematic diagram of another wavelength switching method provided in an embodiment of the present application;

[0058] Figure 5 A schematic diagram of a wavelength switching process provided in an embodiment of the present application;

[0059] Figure 6 A schematic diagram of the structure of a network node provided in an embodiment of the present application;

[0060] Figure 7 A schematic diagram of the structure of a receiving unit in an optical module provided in an embodiment of the present application;

[0061] Figure 8 A schematic diagram of the structure of a transmitting unit in an optical module provided in an embodiment of the present application;

[0062] Fig. 9 A schematic diagram of the structure of another network node provided in an embodiment of the present application;

[0063] Fig.10 A schematic diagram of implementing wavelength switching between network nodes provided in an embodiment of the present application;

[0064] Fig.11 A schematic diagram of an industrial Internet of Things scenario provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0066] Among them, in the description of this application, unless otherwise specified, "multiple" means two or more than two. In addition, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in this application is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different. It should also be noted that, unless otherwise specified, the specific description of some technical features in one embodiment can also be used to explain the corresponding technical features mentioned in other embodiments.

[0067] The technical solution of the present application can be applied to scenarios such as artificial intelligence (AI) deep learning, optical switching clusters, digital center networks, or industrial Internet of Things. Exemplarily, the technical solution provided by the present application can be used in optical switching communication systems that use optical switching to achieve communication in these scenarios. The optical switching communication system includes network nodes, and the network nodes are connected through an optical switching network. The network node can be a server, a virtual machine, a host, or other electronic devices that use optical switching to achieve communication.

[0068] As can be seen from the background technology, in the current optical switching network cluster, tunable wavelength optical modules are used to perform wavelength cutting to send data to different target network nodes. Figure 1FIG. 1 is a schematic diagram of the structure of an optical switching communication system. The optical switching communication system includes multiple servers, and the multiple servers communicate with each other through an optical switch. Figure 1 Take N+K servers as an example. Adjustable wavelength optical modules are deployed in the server. The adjustable wavelength optical module includes a multi-wavelength source and a wavelength selector. The server transmits optical signals of multiple wavelengths through the multi-wavelength source, and the wavelength selector selects an optical signal of a corresponding wavelength from the optical signals of multiple wavelengths to use the optical signal of the wavelength to send data to the target server. As can be seen from the above, from the perspective of sending, the server requires physical wave cutting time. From the perspective of the receiving side of the server, the optical module on the receiving side includes a photodetector and a cross-group amplifier, and the optical signal after detection by the photodetector is processed by the cross-group amplifier. After the receiving side receives the signal of one server, it needs to receive the signal of another server. The wavelengths of the optical signals received from different servers are different, so that the photodetector and the cross-group amplifier need to perform wavelength switching. As can be seen from the above, from the perspective of receiving, the server also requires physical wave cutting time, and also requires the convergence time of the cross-group amplifier.

[0069] Based on this, the embodiments of the present application provide a wavelength switching method, network node and system to solve the problem of time-consuming wavelength switching. The optical switching communication system can also be called an optical switching cluster scheduling system, and other names can also be used, which are not limited by the embodiments of the present application.

[0070] See also Figure 2 FIG. 1 is a schematic diagram of the structure of an optical switching communication system provided in an embodiment of the present application. The optical switching communication system includes a plurality of network nodes. Figure 2Take n+k network nodes as an example. Multiple network nodes are connected through an optical switching network. Multiple network nodes are also connected through an electrical switching network. Exemplarily, the optical switching network and the electrical switching network are deployed in an optical switching communication system. The optical switching network can be implemented by an optical switch or by an optical network composed of multiple devices / components. The optical switch can also be a wavelength-sensitive optical switch (wavelength sensitive optical cross connect, WS-OXC), a reconfigurable optical add drop multiplexer (reconfigurable optical add drop multiplexer, ROADM), a wavelength cross connector (wavelength cross connect, WXC), an optical switching node, or a wavelength switching node, etc., which is not specifically limited in the embodiments of the present application. The optical switching network can be implemented based on wavelength division technologies such as wavelength selective switch (wavelength selective switch, WSS), arrayed waveguide grating (arrayed waveguide grating, AWG), and arrayed waveguide grating router (arrayed waveguide grating router, AWGR). The optical switching network can be implemented based on wavelength division technology. If the wavelengths of the optical signals received by the optical switching network are different, the optical signals with different wavelengths can be transmitted along different paths within the optical switching network, thereby allowing the optical signals with different wavelengths to be output through different output ports of the optical switching network.

[0071] Among the multiple network nodes of the optical switching communication system, the multiple network nodes can communicate with each other through the electrical switching network before the actual communication. The corresponding network nodes to be communicated are notified in advance to open the communication wavelength to be used to receive communication data. For the network nodes at the transmitting end, a multi-wavelength transmitter is used, and both dual-wave modulations send data. For the current target network node, the communication data sent is valid data, and for the next network node to be communicated, invalid data is sent. In the process of communicating with the current network node to be communicated, the communication wavelength to be adopted is negotiated with the next network node to be communicated, which can reduce the switching delay caused by cutting the wavelength compared to switching the wavelength after the current communication ends. For the network nodes at the receiving end, in the process of communicating with the current network node to be communicated, the communication wavelength to be adopted is negotiated with the next network node to be communicated, which can reduce the switching delay caused by cutting the wavelength compared to switching the wavelength after the current communication ends.

[0072] The solution provided in the embodiment of the present application is described below from the perspectives of the sending end and the receiving end respectively.

[0073] First, the solution provided in the embodiment of the present application is described from the perspective of the transmitting end. Figure 3 The figure is a schematic flow chart of a wavelength switching method provided in an embodiment of the present application. Figure 3 In the example, the multiple network nodes include at least a first network node, a second network node and a third network node.

[0074] 301. A first network node and a second network node to be communicated with each other negotiate through an electrical switching network to use a first wavelength as a communication wavelength.

[0075] For example, the first network node sends a negotiation request signal to the second network node through the electrical switching network, and the second network node may send a negotiation confirmation signal to the first network node through the electrical switching network to complete the negotiation between the first network node and the second network node.

[0076] 302. A first network node sends a first optical signal of a first wavelength to a second network node through an optical switching network. The first optical signal carries first communication data required by the second network node. The communication data required by the second network node may also be understood as communication data between the first network node and the second network node.

[0077] 303, the first network node sends a second optical signal of a second wavelength to a third network node through an optical switching network. The communication wavelength of the third network node is the second wavelength. The second optical signal carries invalid data. The third network node is the next network node to be communicated after the first network node completes communication with the second network node.

[0078] In some embodiments, the invalid data may be all-0 data or setting data, or may be the first communication data. Since the second optical signal is a signal sent to the third network node, for the third network node, the first communication data carried by the second optical signal is invalid data.

[0079] Exemplarily, the second optical signal and the first optical signal carry the same first communication data. For the first network node, dual wavelengths are used to send the same data, one of the dual wavelengths is the communication wavelength of the current network node to be communicated, and the other wavelength is the communication wavelength of the next network node to be communicated.

[0080] 304. The first network node negotiates with a third network node to be communicated with next through the electrical switching network to adopt the second wavelength as the communication wavelength.

[0081] 305 , after completing the communication with the second network node, the first network node sends a third optical signal of a second wavelength to a third network node through the optical switching network, where the third optical signal carries second communication data required by the third network node.

[0082] In some embodiments, when the first network node completes the communication with the second network node, it can exchange communication completion indications with the second network node through the optical switching network. For example, after all the communication data that the first network node needs to send to the second network node has been successfully sent and / or all the communication data that needs to be received from the second network node has been successfully received, a communication completion indication can be sent to the second network node through the optical switching network. Similarly, after all the communication data that the second network node needs to send to the first network node has been successfully sent and / or all the communication data that needs to be received from the first network node has been successfully received, a communication completion indication can be sent to the first network node through the optical switching network. For another example, when all the communication data that the first network node needs to send to the second network node has been successfully sent and the second network node has also successfully received all the communication data, the first network node sends a communication completion indication to the second network node; when all the communication data that the second network node needs to send to the first network node has been successfully sent and the first network node has also successfully received all the communication data, the second network node sends a communication completion confirmation indication to the first network node. For another example, when all the communication data that the first network node needs to receive from the second network node is successfully received, the first network node sends a communication completion indication to the second network node; when all the communication data that the second network node needs to receive from the first network node is successfully received, the second network node sends a communication completion indication to the first network node. Exemplarily, when the communication completion indication is exchanged through the optical switching network, the communication completion indication can be carried at the end of the communication data stream.

[0083] In some other embodiments, when the first network node completes the communication with the second network node, the first network node may communicate with the second network node via the electrical switching network to complete the indication.

[0084] In the embodiment of the present application, for the network node at the transmitting end, in the process of communicating with the current network node to be communicated, invalid data is also sent to the next network node to be communicated. Since the present application adopts a negotiation mechanism before communication, the next network node to be communicated without negotiation will not process data. For the network node at the transmitting end, there is no need to switch to another wavelength after completing the communication with the current network node, which can reduce the switching delay caused by wavelength cutting.

[0085] It should be noted that a certain network node can be used as both a sending end and a receiving end, and this embodiment of the present application does not specifically limit this. The above description of the first network node is only exemplified from the perspective of the sending end.

[0086] The following is an explanation of the solution provided in the embodiment of the present application from the perspective of the receiving end.

[0087] See also Figure 4FIG. 1 is a flow chart of another wavelength switching method provided in an embodiment of the present application. Figure 4 In the example, the multiple network nodes include at least a first network node, a third network node and a fourth network node.

[0088] 401. A third network node and a fourth network node to be communicated with negotiate through an electrical switching network that a communication wavelength to be adopted is a third wavelength.

[0089] 402. A third network node receives a fourth optical signal from a fourth network node through an optical switching network. The communication wavelength of the fourth optical signal is a third wavelength, and the fourth optical signal carries third communication data required by the third network node.

[0090] 403, the third network node receives a second optical signal from the first network node through the optical switching network. The communication wavelength of the second optical signal is the second wavelength, and the second optical signal carries invalid data. The first network node is the next network node to be communicated after the third network node completes communication with the fourth network node.

[0091] 404. The third network node processes the third communication data in the fourth optical signal, and discards invalid data in the second optical signal.

[0092] 405 , the third network node and the next first network node to be communicated with negotiate through the electrical switching network that the communication wavelength to be adopted is the second wavelength.

[0093] 406. After completing the communication with the fourth network node, receive a third optical signal of a second wavelength from the first network node through the optical switching network, where the third optical signal carries second communication data required by the third network node; and process the second communication data in the third optical signal.

[0094] In the embodiment of the present application, for the third network node, during the communication with the fourth network node, the next network node to be communicated will also send data, but the present application adopts a communication negotiation mechanism, and before the next network node to be communicated is negotiated, the third network node does not process the data of the next network node to be communicated. After the negotiated communication is completed and the communication with the current network node is completed, the communication data sent by the first network node will be processed. For the third network node, the communication wavelength is also prepared in advance, which can reduce the time consumption of cutting wavelength.

[0095] The following describes the solution provided by the embodiment of the present application from the perspective of combining the transmitting end and the receiving end. Figure 5 The figure shows a schematic diagram of the wavelength switching process provided in an embodiment of the present application. Figure 5In the example, an optical switching communication system includes at least a first network node, a second network node, a third network node, and a fourth network node. For ease of description, the current communication process is referred to as cycle 1, and the next communication process is referred to as cycle 2. It should be understood that the durations of the two cycles may be the same or different.

[0096] Cycle 1: Communication between the first network node and the second network node. Communication between the third network node and the fourth network node. It should be understood that in the embodiment of the present application, each network node supports dual-wavelength reception, but only processes a single wavelength. For example, the communication wavelengths supported by the first network node are wavelengths λ11 and λ12, and the wavelengths supported by the second network node are wavelengths λ21 and λ22. The communication wavelengths supported by the third network node are λ31 and λ32, and the communication wavelengths supported by the fourth network node are λ41 and λ42.

[0097] 501a, the first network node and the second network node negotiate the communication wavelength through the electrical switching network. After negotiation, the current working wavelength of the first network node is λ11, and the working wavelength of the second network node is λ21. It can also be understood that after negotiation, the first network node will open the communication wavelength used for communication with the second network node, and the second network node will also open the communication wavelength used for communication with the first network node.

[0098] 501b, the third network node negotiates the communication wavelength with the fourth network node through the electrical switching network. After negotiation, the current working wavelength of the third network node is λ31, and the working wavelength of the fourth network node is λ41. It can also be understood that after negotiation, the third network node will open the communication wavelength used for communication with the fourth network node, and the fourth network node will also open the communication wavelength used for communication with the third network node.

[0099] In a possible implementation, the communication wavelength used for communication between network nodes may be pre-configured. The interaction sequence between each network node in the optical switching communication system may be pre-configured in each network node by a network management device (or controller / control device) according to the scenario in which the optical switching communication system is applied.

[0100] 502a, the first network node and the second network node send communication data to each other through the optical switching network. The wavelength of the optical signal sent by the first network node to the second network node is λ21, and the wavelength of the optical signal sent by the second network node to the first network node is λ11. The first network node parses the communication data from the optical signal with a wavelength of λ11 and processes the communication data obtained by the parsing. The second network node parses the communication data from the optical signal with a wavelength of λ21 and processes the communication data obtained by the parsing.

[0101] 503a, the first network node sends invalid data to the third network node. The wavelength of the optical signal carrying the invalid data sent by the first network node to the third network node is λ32.

[0102] Exemplarily, the third network node does not parse the invalid data from the optical signal of λ32, or does not perform photoelectric detection processing on the optical signal of λ32.

[0103] 502b, the third network node and the fourth network node send communication data to each other through the optical switching network. The wavelength of the optical signal sent by the third network node to the fourth network node is λ41, and the wavelength of the optical signal sent by the fourth network node to the third network node is λ31.

[0104] 503b, the third network node sends invalid data to the first network node. The wavelength of the optical signal carrying invalid data sent by the third network node to the first network node is λ12.

[0105] Exemplarily, the first network node does not parse the invalid data from the optical signal of λ12, or does not perform photoelectric detection processing on the optical signal of λ12.

[0106] In some embodiments, during the communication between the first network node and the second network node and the communication between the third network node and the fourth network node, the two network nodes that communicate with each other in the next cycle may negotiate the communication wavelength to notify each other to turn on the corresponding communication wavelength.

[0107] 504, the first network node and the third network node negotiate the communication wavelength used through the electrical switching network. After negotiation, the first network node turns on the communication wavelength λ12 used for communication with the third network node, and the third network node turns on the communication wavelength λ32 used for communication with the first network node.

[0108] In some embodiments, the first network node turns on the communication wavelength λ12, which may be that the first network node performs photoelectric detection processing on the optical signal of the communication wavelength λ12, but discards the communication data detected without performing other processing. The third network node turns on the communication wavelength λ32, which may be that the third network node performs photoelectric detection processing on the optical signal of the communication wavelength λ32, but discards the communication data detected without performing other processing.

[0109] 505a, after the first network node and the second network node complete the communication, they send communication completion indications to each other.

[0110] 505b, after the third network node and the fourth network node complete the communication, they send communication completion indications to each other.

[0111] Cycle 2: The first network node communicates with the third network node and performs communication negotiation for the next cycle (eg, cycle 3).

[0112] 506. The first network node and the third network node send communication data to each other through the optical switching network. The wavelength of the optical signal sent by the third network node to the first network node is λ12, and the wavelength of the optical signal sent by the first network node to the third network node is λ32. The first network node parses the communication data from the optical signal with a wavelength of λ12, and processes the communication data obtained by the parsing. The third network node parses the communication data from the optical signal with a wavelength of λ32, and processes the communication data obtained by the parsing.

[0113] In some embodiments, the next network node to be communicated by the first network node is the fourth network node, and the first network node may also send invalid data to the fourth network node. The next network node to be communicated by the third network node is the second network node, and the third network node may also send invalid data to the second network node.

[0114] In some possible implementation scenarios, during the communication between the first network node and the third network node, the two network nodes that communicate with each other in the next cycle can negotiate the communication wavelength with each other to notify the other party to turn on the corresponding communication wavelength. For example, the first network node communicates with the fourth network node, and the second network node communicates with the third network node. The first network node and the fourth network node negotiate with each other through the electrical switching network, and the second network node and the third network node negotiate with each other through the electrical switching network, notifying the other party that the corresponding communication wavelength needs to be turned on. The first network node and the fourth network node send invalid data to each other through the optical switching network, and the second network node and the third network node send invalid data to each other through the optical switching network.

[0115] 507, after the first network node and the third network node complete the communication, they send each other a communication completion indication, thereby entering the next cycle and repeating the steps of cycle 1 and cycle 2 to perform communication between different nodes.

[0116] For the network nodes at the receiving end, there are still bit errors caused by wavelength cutting. For example, the communication between network node 1 and network node 2 ends (using wavelength 1), but network node 1 needs to continue to use wavelength 2 to communicate with network node 3. After network node 1 switches to wavelength 2, it sends an optical signal of wavelength 2 to network node 3, but at this time, the communication between network node 3 and other network nodes has not ended, resulting in network node 3 receiving both the optical signal of wavelength 2 and the optical signal of other network nodes. The optical signals of the two wavelengths interfere with each other, which will cause bit errors. The solution provided by the embodiment of the present application supports dual-wavelength reception, switches between dual wavelengths, selects between dual wavelengths, selects valid data for processing, and prevents bit errors caused by mutual interference between the optical signals of the two wavelengths.

[0117] In addition, for the network nodes at the receiving end, there is still the problem of optical module light failure due to wavelength cutting. For example, the communication between network node 1 and network node 2 ends, but network node 2 needs to continue to communicate with network node 3 of wavelength 2. After network node 2 switches to wavelength 2, the communication between network node 3 and other nodes has not ended, resulting in no light entering network node 2. As a result, the optical module will enter sleep mode due to the photodetector and other devices after the light is cut off, and it needs to be restored after receiving the optical signal, which will cause recovery delay. Using the solution provided by the embodiment of the present application, the network nodes to be communicated will negotiate during the execution of the current communication process, that is, before the next communication, to notify the other party to prepare the corresponding communication wavelength, and will send invalid data to prevent the optical module from breaking, thereby reducing the wavelength cutting delay and improving communication efficiency.

[0118] The following is an explanation of the structure of the network node. Figure 6 The diagram is a schematic diagram of the structure of a network node provided by an embodiment of the present application. The network node includes a processing unit and an optical module. The processing unit is used to execute an optical scheduling algorithm to perform a wavelength negotiation operation, thereby controlling the optical module to send an optical signal of a corresponding wavelength, and to perform a modulation operation on the optical signal to perform communication data. The processing unit is also used for iterating changes in the communication destination of the optical switching communication system, and adjusting the dual-wavelength selection of the transmitting end according to the destination of the current cycle and the next cycle. The optical module can modulate the data to be communicated onto the dual wavelengths, and the same data can be sent on the dual wavelengths, one of which is sent to the current target network node, that is, valid data, and the other is sent to the next target network node, that is, invalid data.

[0119] The processing unit may include at least one of the following: an application specific integrated circuit (ASIC), a central processing unit (CPU), a Tensor processing unit (TPU) for machine learning computing tasks, a graphics processing unit (GPU), a neural-network processing unit (NPU), or other types of processing units. In some embodiments, the network node is applied to an AI scenario, and the processing unit may include an NPU or the processing unit is an NPU.

[0120] In some embodiments, see Figure 6 As shown, the network node also includes a network card. The network node can pre-process the electrical signal through the network card (for example, convert the digital signal into an analog signal). The processing unit can also control the network card to analyze the communication data in the optical signal carried by which wavelength. Further, the network card determines which wavelength of the optical signal carried by which communication data is received from the optical module under the control of the processing unit.

[0121] In some embodiments, the optical module includes a transmitting unit and a receiving unit. The transmitting unit is used to perform dual-wave transmission. The receiving unit is used to perform dual-wave reception.

[0122] As an example, see Figure 7 As shown, the receiving unit may include two photoelectric detectors (PD), namely a first photoelectric detector and a second photoelectric detector. The first photoelectric detector and the second photoelectric detector have different working wavelengths. In some embodiments, the receiving unit may also include a demultiplexer, which is used to separate two optical signals corresponding to wavelengths from the received optical signal and send them to the photoelectric detectors of the corresponding wavelengths respectively. The two photoelectric detectors perform photoelectric detection processing on the received optical signals of the corresponding wavelengths respectively.

[0123] As another example, see Figure 8As shown, the transmitting unit may include multiple laser transmitters (lasers), multiple semiconductor optical amplifiers (SOAs), multiplexers, and modulators. Different laser transmitters transmit optical signals of different wavelengths. Multiple semiconductor optical amplifiers correspond one-to-one to multiple laser transmitters. The semiconductor optical amplifier can amplify the received optical signal on the one hand, and can also be used as an optical switch on the other hand. Under the control of the processing unit, the semiconductor optical amplifier is partially turned on and partially turned off. For example, the SOA corresponding to the laser transmitter that transmits the optical signal of the wavelength required by the current target network node is turned on, and the SOA corresponding to the laser transmitter that transmits the optical signal of the wavelength of the next target network node is turned on, and the remaining SOAs are turned off. The multiplexer is used to multiplex the laser signals of two wavelengths into one optical signal, and then the modulator modulates the communication data (analog data) sent by the network card on the optical signal.

[0124] In some embodiments, multiple laser transmitters emitting different wavelengths may be replaced by other transmitting structures, such as an optical frequency comb + demultiplexer. The optical frequency comb transmits an optical signal including multiple wavelengths, and then the demultiplexer demultiplexes the optical signal into multiple optical signals of different wavelengths.

[0125] In some other embodiments, the structure of modulator + multiplexer can also be replaced by other structures, such as multiple modulators + multiplexers, multiple modulators are connected to multiple SOAs in a one-to-one correspondence, and the multiplexer is used to multiplex the optical signals output by the multiple modulators into one optical signal. In some embodiments, SOA can also be replaced by other devices that can be used as optical switches. The embodiments of the present application do not specifically limit this.

[0126] It should be noted that the optical module may also include Figure 8 There may be more or fewer devices, which is not specifically limited in the embodiments of the present application.

[0127] The network node in the embodiment of the present application may also include Figure 6 More devices, such as AI scenarios, the processing unit is NPU, and it can also include a central processing unit (CPU), see Fig. 9 As shown, it is used to centrally schedule and manage the functions performed by network nodes.

[0128] Combine the following Figure 6 The structure of the network node shown in the figure is used to illustrate the wavelength switching method provided by the embodiment of the present application. Then, an optical switching communication system including a first network node, a second network node, a third network node and a fourth network node is taken as an example. The above four network nodes all adopt Figure 6 The structure shown, see Fig.10For ease of description, the communication process is referred to as a cycle. Taking two cycles as an example, the current communication process is referred to as cycle 1, and the next communication process is referred to as cycle 2. In cycle 1, the first network node communicates with the second network node, and the third network node communicates with the fourth network node. In cycle 2, the first network node communicates with the third network node as an example.

[0129] Period 1: Communication between the first network node and the second network node. Communication between the third network node and the fourth network node. For example, the communication wavelengths supported by the first network node are wavelengths λ11 and λ12, the working wavelength of PD1 of the first network node is λ11, and the working wavelength of PD2 is λ12. The wavelengths supported by the second network node are wavelengths λ21 and λ22, the working wavelength of PD1 of the second network node is λ21, and the working wavelength of PD2 is λ22. The communication wavelengths supported by the third network node are λ31 and λ32, the working wavelength of PD1 of the third network node is λ31, and the working wavelength of PD2 is λ32. The communication wavelengths supported by the fourth network node are λ41 and λ42, the working wavelength of PD1 of the fourth network node is λ41, and the working wavelength of PD2 is λ42.

[0130] See also Fig.10 As shown, the processing unit in the first network node negotiates the communication wavelength with the processing unit in the second network node through the electrical switching network. After negotiation, the current working wavelength of the first network node is λ11, and the working wavelength of the second network node is λ21, that is, the processing unit in the first network node controls PD1 to open through the network card, and the processing unit in the first network node notifies the network card to receive communication data from PD1. If there are no other communication tasks at present, the network card of the first network node starts to receive communication data from PD1. Similarly, the network card of the second network node starts to receive communication data from PD1 of the second network node under the control of the processing unit. The processing unit in the third network node negotiates the communication wavelength with the processing unit in the fourth network node through the electrical switching network. After negotiation, the current working wavelength of the third network node is λ31, and the working wavelength of the fourth network node is λ41, that is, the processing unit in the third network node controls PD1 to open through the network card, and the processing unit in the third network node notifies the network card to receive communication data from PD1. If there are no other communication tasks at present, the network card of the third network node starts to receive communication data from PD1. Similarly, under the control of the processing unit, the network card of the fourth network node starts receiving communication data from PD1 of the fourth network node.

[0131] Furthermore, the first network node and the second network node send communication data to each other through the optical switching network, and the third network node and the fourth network node send communication data to each other through the optical switching network.

[0132] In cycle 1, the first network node sends communication data to the second network node and sends invalid data to the third network node at the same time. Specifically, the processing unit of the first network node sends the first communication data to be sent to the network card, and the network card pre-processes the first communication data and sends it to the modulator of the optical module. The laser signal sent by the laser transmitter with working wavelengths of λ21 and λ32 in the first network node will enter the modulator of the first network node. Thereby, the modulator modulates the first communication data to an optical signal including wavelengths λ21 and λ32 and sends it out. Thereby, the optical switching network exchanges the optical signal of wavelength λ21 to the second network node, and exchanges the optical signal of wavelength λ32 to the third network node.

[0133] In cycle 1, the fourth network node also sends communication data to the third network node. Specifically, the processing unit of the fourth network node sends the third communication data to be sent to the network card, and the network card pre-processes the third communication data and sends it to the modulator of the optical module. The laser signal sent by the laser transmitter with a working wavelength of λ31 in the fourth network node will enter the modulator of the fourth network node. Thereby, the modulator modulates the fourth communication data onto an optical signal including the wavelength λ31 and sends it out. Thereby, the optical switching network exchanges the optical signal of wavelength λ31 to the third network node, and exchanges the optical signal of wavelength λ31 to the third network node.

[0134] For the third network node, since PD2 is not started, PD2 does not parse the optical signal with wavelength λ32. PD1 is in working state, PD1 parses the optical signal with wavelength λ31, and sends the parsed third communication data to the network card, which performs subsequent processing on the third communication data.

[0135] In cycle 1, the first network node and the third network node negotiate the communication wavelength used through the electrical switching network. After negotiation, the processing unit in the first network node controls PD2 to turn on through the network card. The network card of the third network node controls PD2 to turn on under the control of the processing unit. However, the network card of the first network node still receives data from PD1, and the network card of the third network node still receives data from PD1. After the first network node and the second network node complete communication, they send communication completion indications to each other through the optical switching network, and then the network card of the first network node controls PD1 to turn off under the control of the processing unit, and starts receiving data from PD2. After the third network node and the fourth network node complete communication, they send communication completion indications to each other through the optical switching network, and then the network card of the third network node controls PD1 to turn off under the control of the processing unit, and starts receiving data from PD2.

[0136] In cycle 2, after the first network node completes communication with the second network node, the processing unit of the first network node sends the second communication data to be sent to the network card, and the network card pre-processes the second communication data and sends it to the modulator of the optical module. Thus, the modulator modulates the second communication data to an optical signal including λ32 and sends it. Thus, the optical switching network exchanges the optical signal of wavelength λ32 to the third network node. PD2 of the third network node parses the second communication data from the optical signal of wavelength λ32 and sends it to the network card for subsequent processing.

[0137] The technical solution provided by the embodiment of the present application can be applied to scenes such as artificial intelligence (AI) deep learning, optical switching clusters, digital central networks, or industrial Internet of Things. When the optical switching communication system executes a service (such as a computing task), it is required that different network nodes can interact with each other. For example, if the optical switching communication system shown in the embodiment of the present application is used to execute an artificial intelligence (AI) training service, it can be known that the AI ​​training service is a computing-intensive service. To realize the AI ​​training service, data interaction is required between multiple network nodes included in the optical switching communication system. The execution functions of different network nodes (also referred to as computing nodes in AI) in the AI ​​training task are determined, and the execution order of the network nodes is also predetermined, so that according to the execution order, the next network node can be negotiated in the current communication process, and the corresponding wavelength can be called in advance, which can hide the time-consuming wave cutting of the optical module, and can avoid the problem of light breaking, thereby improving communication efficiency. In addition, the receiving unit of the optical module adopts a dual-wave receiving mechanism, and the dual-wavelength receives data, but the network card selects the received data for processing, and the correct data can be selected through negotiation to avoid interference between wavelengths and reduce bit errors.

[0138] In addition to being used in AI deep learning scenarios, this application can also be deployed in (future) industrial IoT, such as Fig.11 The network traffic in the industrial Internet of Things mainly consists of three parts: the first part includes various environmental and production line data collected by smart sensors, the second part includes the calculation data generated when the collected data is analyzed by parallel calculation, and the third part includes the control data transmitted to the actuator according to the data analysis results.

[0139] The data collection device (i.e., data collector) transmits the data collected by the sensor through the switching network to the data storage server for storage and backup. The data analysis server (also known as the big data analysis server) can obtain data from the storage server for big data processing and analysis. The data collector and the sensor can be connected via wireless fidelity (WiFi). The results analyzed by the data analysis server can help the controller make decisions and convey them to the actuator to perform specific operations. It can be seen that in the industrial Internet of Things, various data streams have different traffic characteristics: the traffic of sensor data streams is huge, and the network bandwidth requirements are very high; the big data analysis results and control information data streams need to be quickly and losslessly transmitted to the actuator, and the latency requirements are extremely high. The wavelength switching scheme of the optical switching communication system proposed in this application is deployed on the storage server, analysis server, data collector and controller, and the optical switching equipment serves as an optical switching network. The deterministic time scheme of the optical switching network in the industrial Internet can be realized.

[0140] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0141] One embodiment of the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for the method steps in the above method embodiment.

[0142] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) that contain computer-usable program code.

[0143] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0144] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A wavelength switching method, characterized in that: The method is applied to a first network node, the first network node is deployed in an optical switching communication system, the optical switching cluster scheduling system includes multiple network nodes including the first network node, the multiple network nodes are connected through an optical switching network, and the multiple network nodes are also connected through an electrical switching network; the multiple network nodes also include at least a second network node and a third network node; the method includes: The communication wavelength adopted by the first network node and the second network node to be communicated through the electrical switching network is negotiated as the first wavelength; The first network node sends a first optical signal of the first wavelength to the second network node through the optical switching network, and sends a second optical signal of the second wavelength to the third network node, and the communication wavelength of the third network node is the second wavelength; wherein the first optical signal carries first communication data required by the second network node, and the second optical signal carries invalid data; the third network node is the next network node to be communicated after the first network node completes communication with the second network node; The first network node negotiates with the third network node to be communicated with next through the electrical switching network that the communication wavelength to be adopted is the second wavelength; After completing the communication with the second network node, the first network node sends a third optical signal of the second wavelength to the third network node through the optical switching network, where the third optical signal carries second communication data required by the third network node.

2. The method according to claim 1, characterized in that The method further comprises: When the first network node completes the communication with the second network node, the first network node exchanges a communication completion indication with the second network node through the optical switching network.

3. The method according to claim 1, characterized in that The method further comprises: When the first network node completes the communication with the second network node, the first network node exchanges a communication completion indication with the second network node through the electrical switching network.

4. The method according to any one of claims 1 to 3, characterized in that: The first network node includes a processing unit and an optical module; The first network node and the second network node to be communicated negotiate through the electrical switching network to use a first wavelength as the communication wavelength, including: The communication wavelength adopted by the first network node through the processing unit and the second network node to be communicated with through the electrical switching network is negotiated as the first wavelength; The first network node sends a first optical signal of the first wavelength to the second network node through the optical switching network, and sends a second optical signal of the second wavelength to the third network node, including: The optical module of the first network node sends a first optical signal of the first wavelength to the second network node through the optical switching network, and sends a second optical signal of the second wavelength to the third network node.

5. The method according to claim 4, characterized in that The processing unit is a neural processing unit NPU.

6. The method according to any one of claims 1 to 5, characterized in that: The invalid data is the first communication data.

7. A wavelength switching method, characterized in that: The method is applied to a third network node, the third network node is deployed in an optical switching communication system, the optical switching cluster scheduling system includes multiple network nodes including the third network node, the multiple network nodes are connected through an optical switching network, and the multiple network nodes are also connected through an electrical switching network; the multiple network nodes also include at least a first network node and a fourth network node; the method includes: The communication wavelength adopted by the third network node and the fourth network node to be communicated through the electrical switching network is negotiated to be the third wavelength; The third network node receives a fourth optical signal from the fourth network node through the optical switching network, and receives a second optical signal from the first network node; the communication wavelength of the fourth optical signal is the third wavelength, the fourth optical signal carries the third communication data required by the third network node, the communication wavelength of the second optical signal is the second wavelength, and the second optical signal carries invalid data; the first network node is the next network node to be communicated with after the third network node completes communication with the fourth network node; The third network node processes the third communication data in the fourth optical signal and discards invalid data in the second optical signal; The third network node negotiates with the first network node to be communicated with next through the electrical switching network to adopt a second wavelength for communication, and after completing communication with the fourth network node, receives a third optical signal of the second wavelength from the first network node through the optical switching network, wherein the third optical signal carries second communication data required by the third network node; and processes the second communication data in the third optical signal.

8. The method according to claim 7, characterized in that The method further comprises: When the third network node completes the communication with the fourth network node, the third network node exchanges a communication completion indication with the fourth network node through the optical switching network.

9. The method according to claim 7, characterized in that The method further comprises: When the third network node completes the communication with the fourth network node, the third network node exchanges a communication completion indication with the fourth network node through the electrical switching network.

10. The method according to any one of claims 7 to 9, characterized in that: The third network node includes a processing unit and an optical module; The third network node and the fourth network node to be communicated negotiate through the electrical switching network that the communication wavelength adopted is a third wavelength, including: The third network node negotiates with the fourth network node to be communicated with through the processing unit through the electrical switching network that the communication wavelength adopted is the third wavelength; The third network node receives the fourth optical signal from the fourth network node through the optical switching network, and receives the second optical signal from the first network node, comprising: The optical module of the third network node receives the fourth optical signal from the fourth network node through the optical switching network, and receives the second optical signal from the first network node.

11. The method according to claim 10, characterized in that The third network node includes a network card, the optical module includes a first photodetector and a second photodetector; the working wavelength of the first photodetector includes the third wavelength; the working wavelength of the second photodetector includes the second wavelength; the working wavelength range of the first photodetector is different from the working wavelength range of the second photodetector; The third network node processes the third communication data in the fourth optical signal and discards invalid data in the fifth optical signal, including: The network card only receives the third communication data from the first photoelectric detector, and sends it to the processing unit to process the third communication data; The method further comprises: The third network node negotiates with the first network node to communicate next to use the second wavelength as the communication wavelength through the electrical switching network, and after completing the communication with the second network node, notifies the network card through the processing unit to switch to receiving the second communication data only from the second photodetector.

12. The method according to any one of claims 7 to 11, characterized in that: The invalid data is the third communication data.

13. A first network node, characterized in that: The first network node is deployed in an optical switching cluster scheduling system, the optical switching communication system includes multiple network nodes including the first network node, the multiple network nodes are connected through an optical switching network, and the multiple network nodes are also connected through an electrical switching network; the multiple network nodes also include at least a second network node and a third network node; the first network node includes a processing unit and an optical module; wherein, The processing unit is configured to negotiate with the second network node to be communicated with through the electrical switching network that the communication wavelength adopted is the first wavelength; The optical module sends a first optical signal of the first wavelength to the second network node through the optical switching network, and sends a second optical signal of the second wavelength to the third network node, and the communication wavelength of the third network node is the second wavelength; wherein the first optical signal carries the first communication data required by the second network node, and the second optical signal carries invalid data; the third network node is the next network node to be communicated after the first network node completes the communication with the second network node; The processing unit is further used to negotiate with the third network node to be communicated next through the electrical switching network that the communication wavelength to be adopted is the second wavelength; The optical module is further used to send a third optical signal of the second wavelength to the second network node through the optical switching network after completing the communication with the second network node, and the third optical signal carries the second communication data required by the third network node.

14. A third network node, characterized in that: The third network node is deployed in an optical switching cluster scheduling system, the optical switching communication system includes multiple network nodes including the third network node, the multiple network nodes are connected through an optical switching network, and the multiple network nodes are also connected through an electrical switching network; the multiple network nodes also include at least a first network node and a fourth network node; the third network node includes a processing unit and an optical module, wherein, The processing unit is configured to negotiate with the fourth network node to be communicated with through the electrical switching network that the communication wavelength adopted is the third wavelength; The optical module is used to receive a fourth optical signal from the fourth network node through the optical switching network, and to receive a second optical signal from the first network node; the communication wavelength of the fourth optical signal is the third wavelength, the fourth optical signal carries the third communication data required by the third network node, the communication wavelength of the fifth optical signal is the fourth wavelength, and the second optical signal carries invalid data; the first network node is the next network node to be communicated after the third network node completes communication with the fourth network node; The processing unit is further used to process the third communication data in the fourth optical signal and discard invalid data in the fifth optical signal; The optical module is also used to negotiate with the next first network node to communicate through the electrical switching network to use a second wavelength as the communication wavelength, and after completing the communication with the second network node, receive a third optical signal of the second wavelength from the second network node through the optical switching network, wherein the third optical signal carries the second communication data required by the third network node; and process the second communication data in the third optical signal.

15. The network node according to claim 14, characterized in that The third network node further includes a network card, and the optical module includes a first photodetector and a second photodetector; the working wavelength of the first photodetector is the third wavelength; and the working wavelength of the second photodetector is the second wavelength; The first photodetector is used to perform detection processing on the fourth optical signal to obtain the third communication data; The second photodetector is used to perform detection processing on the second optical signal to obtain the invalid data; The network card is used to receive the third communication data only from the first photoelectric detector during the communication between the first network node and the second network node, and send the third communication data to the processing unit for processing; The processing unit is also used to negotiate the communication wavelength to be adopted between the processing unit and the first network node to be communicated next through the electrical switching network, and after completing the communication with the second network node, notify the network card to switch to receiving the second communication data only from the second photodetector.

16. An optical switching communication system, characterized in that: The method comprises a plurality of network nodes, wherein the plurality of network nodes are connected via an optical switching network, and the plurality of network nodes are also connected via an electrical switching network; the plurality of network nodes at least comprise a first network node, a second network node, and a third network node; wherein, The first network node is configured to negotiate with the second network node to be communicated with through the electrical switching network that the communication wavelength adopted is the first wavelength; The first network node is further configured to send a first optical signal of the first wavelength to the second network node through the optical switching network, and send a second optical signal of the second wavelength to the third network node; wherein the first optical signal carries first communication data of the second network node, and the second optical signal carries invalid data; the third network node is the next network node to be communicated after completing communication with the second network node; The second network node is used to process the first communication data; The third network node is configured to discard the invalid data in the second optical signal; The first network node is further configured to negotiate with the third network node through the electrical switching network that the communication wavelength used is the second wavelength, and when completing the communication with the second network node, send a third optical signal of the second wavelength to the third network node through the optical switching network, wherein the third optical signal includes second communication data of the third network node; The third network node is further configured to process the second communication data.

17. The system of claim 16, wherein: The plurality of network nodes further includes a fourth network node; The third network node is further configured to negotiate with the fourth network node to be communicated with through the electrical switching network that the communication wavelength adopted is the third wavelength; The fourth network node is used to send the fourth optical signal of the third wavelength to the third network node through the optical switching network; the fourth optical signal carries the third communication data required by the third network node; The third network node is further configured to receive the fourth optical signal; the first network node is the next network node to be communicated with after the third network node completes communication with the fourth network node; The third network node is specifically configured to process the second communication data after completing the communication with the fourth network node.

18. The system according to claim 16 or 17, characterized in that The first network node is further configured to exchange a communication completion indication with the second network node through the optical switching network when the communication with the second network node is completed.

19. The system according to claim 16 or 17, characterized in that The first network node is further configured to, upon completing communication with the second network node, exchange a communication completion indication with the second network node via the electrical switching network.