Data sending method, communication apparatus, and storage medium
The optical module channel abnormality is obtained through the communication device, the non-abnormal channel is used for data transmission and the abnormal channel is turned off to emit light, solving the connection interruption problem caused by optical module failure, and achieving the continuity and performance improvement of AI training tasks.
Patent Information
- Application Number
- PCT/CN2025/073484
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-27
- Filing Date
- 2025-01-21
- Publication Date
- 2025-07-31
AI Technical Summary
In the prior art, when the optical module fails, the device cannot perceive, resulting in the disconnection of the remote direct memory access connection between the NPU/GPU, and the optical module needs to be replaced manually, affecting the continuity of the AI training task.
The optical module channel abnormality is obtained through the communication device, data transmission is performed using non-abnormal channels, and the control information is used to turn off the light emission of the abnormal channel or report a fault to the controller, so as to realize slow transmission to avoid interruption.
When the optical module fails, data transmission is continued through non-abnormal channels, avoiding interruptions in AI training tasks and improving training continuity and performance.
Smart Images

Figure CN2025073484_31072025_PF_FP_ABST
Abstract
Description
Data sending method, communication device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on January 27, 2024, with application number 202410119488.3 and application name “A data sending method, communication device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of communication technology, and in particular to a data sending method, a communication device, and a storage medium. Background Art
[0003] Currently, optical modules are widely used for high-speed interconnection between data center devices. In the current artificial intelligence (AI) training parameter plane network, mainstream AI servers, neural network processing units (NPUs) or graphics processing units (GPUs) need to be interconnected through optical modules or copper cables.
[0004] Because copper cables support short distances and cannot be deployed across racks, they are currently primarily connected to servers via optical modules. Furthermore, due to limitations on NPU / GPU capabilities and cost-effectiveness, most NPUs / GPUs only have one 200-gigabit (G) or 400-gigabit network interface card (NIC) port. Therefore, if the optical module plugged into an NPU / GPU NIC port fails, the remote direct memory access (RDMA) connection between the NPU / GPU and other NPUs / GPUs will be disconnected, leading to a timeout and interruption of the entire training task. Manual replacement of the optical module is required to restore training to the previous checkpoint and restart the training.
[0005] Since the light-emitting device cannot sense when a channel failure occurs in the light-emitting device, but the light-receiving device can sense it, fault notification between devices is an urgent problem to be solved. Summary of the Invention
[0006] Embodiments of the present application provide a data sending method, a communication device, and a storage medium for notifying a peer end of a channel failure when a port fails.
[0007] A first aspect of an embodiment of the present application provides a data transmission method, in which a first communication device obtains an abnormality in a first channel corresponding to a first optical module, where the first channel is a channel between the first optical module and a second optical module, and the first optical module is connected to the first communication device;
[0008] The first communication device uses N channels among the M channels corresponding to the first optical module to send and / or receive data, where the M channels are channels between the first optical module and the first communication device, and the N channels do not include a second channel, where the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M.
[0009] The first communication device sends control information to the first optical module, where the control information is used to instruct the first optical module to turn off light emission corresponding to the first channel.
[0010] In this embodiment, the first communication device turns off the light corresponding to the first channel, causing an abnormal signal to appear on the first channel of the opposite end, thereby notifying the opposite end of the transmission failure of the first channel.
[0011] In some possible implementations, channels other than the N channels among the M channels are not used for sending and / or receiving data.
[0012] Specifically, the first communication device shields channels other than N channels among the M channels and does not process data of the channels.
[0013] In some possible implementations, the port of the first optical module is a 400G port, M is 8, and N is 4, that is, the remaining 4 channels can form a 200G port.
[0014] In some possible implementations, the control information is further used to instruct the first optical module to turn off light emission corresponding to a third channel, where the third channel is a channel between the first optical module and the second optical module.
[0015] In some possible implementations, an exception occurs in a fourth channel, where the fourth channel is a channel between the first optical module and the second optical module, and the first communication device uses N channels out of M channels corresponding to the first optical module to send and / or receive data according to the first exception information, including:
[0016] If the first channel and the fourth channel meet the speed reduction condition, the first communication device uses N channels of the M channels corresponding to the first optical module to send and / or receive data, and the N channels do not include a fifth channel, and the fifth channel is at least one channel of the M channels corresponding to the fourth channel.
[0017] In this embodiment, the first communication device shields the faulty port and uses the remaining non-abnormal channels to form a low-speed port, thereby achieving a speed reduction effect without interrupting the AI training task.
[0018] A second aspect of an embodiment of the present application provides a data sending method, in which a first communication device obtains an abnormality in a first channel corresponding to a first optical module, where the first channel is a channel between the first optical module and a second optical module, and the first optical module is connected to the first communication device;
[0019] The first communication device uses N channels out of M channels corresponding to the first optical module to send and / or receive data, where the M channels are channels between the first optical module and the first communication device, and the N channels do not include a second channel, where the second channel is at least one channel out of the M channels corresponding to the first channel, and N is less than M; the first communication device sends fault information to the controller based on the first abnormality information, where the fault information is used to indicate that an abnormality has occurred in the first channel.
[0020] In some possible implementations, the fault information includes at least one of the following: first port information, second port information, the number of channels of the first port, and fault information of the first channel. The first port information includes the port number and Internet Protocol (IP) address of the first port. The second port information includes the port number and IP address of the second port. The first port is a local port, and the second port is a peer port.
[0021] In some possible implementations, channels other than N channels among the M channels are not used for sending and / or receiving data.
[0022] In some possible implementations, an exception occurs in a fourth channel, where the fourth channel is a channel between the first optical module and the second optical module, and the first communication device uses N channels out of M channels corresponding to the first optical module to send and / or receive data according to the first exception information, including:
[0023] If the first channel and the fourth channel meet the speed reduction condition, the first communication device uses N channels of the M channels corresponding to the first optical module to send and / or receive data, and the N channels do not include a fifth channel, and the fifth channel is at least one channel of the M channels corresponding to the fourth channel.
[0024] A third aspect of an embodiment of the present application provides a data transmission method, in which a second communication device obtains an abnormality in a second channel corresponding to a second optical module, where the first channel is a channel between the first optical module and the second optical module, and the second optical module is connected to the second communication device; the second communication device obtaining an abnormality in the first channel corresponding to the second optical module includes: the second communication device does not receive an optical signal sent by the first optical module through the first channel, and the first optical module actively turns off light emission corresponding to the first channel;
[0025] The second communication device uses N channels out of the M channels corresponding to the second optical module to send and / or receive data, where the M channels are channels between the second optical module and the second communication device, the N channels do not include the second channel, and the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M.
[0026] In some possible implementations, channels other than the N channels among the M channels are not used for sending and / or receiving data.
[0027] In some possible implementations, an exception occurs in a fourth channel, where the fourth channel is a channel between the first optical module and the second optical module, and the first communication device uses N channels out of M channels corresponding to the first optical module to send and / or receive data according to the first exception information, including:
[0028] If the first channel and the fourth channel meet the speed reduction condition, the first communication device uses N channels of the M channels corresponding to the first optical module to send and / or receive data, and the N channels do not include a fifth channel, and the fifth channel is at least one channel of the M channels corresponding to the fourth channel.
[0029] A fourth aspect of an embodiment of the present application provides a data transmission method, in which a second communication device receives fault information from a controller, where the fault information indicates that an abnormality has occurred in a first channel, where the first channel is a channel between a first optical module and a second optical module, and the second optical module is connected to the second communication device;
[0030] The second communication device sends and / or receives data using N channels among the M channels corresponding to the second optical module according to the fault information, where the M channels are channels between the second optical module and the second communication device, the N channels do not include the second channel, and the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M.
[0031] In some possible implementations, the fault information includes at least one of the following: first port information, second port information, the channel number of the first port, and fault information of the first channel, the first port information includes the port number and Internet Protocol IP address of the first port, the second port information includes the port number and IP address of the second port, the first port is a local port, and the second port is a peer port.
[0032] In some possible implementations, the fault information includes at least one of the following: first port information, second port information, the channel number of the first port, and fault information of the first channel. The first port information includes the port number and Internet Protocol IP address of the first port. The second port information includes the port number and IP address of the second port. The first port is the local port, and the second port is the opposite port.
[0033] In some possible implementations, channels other than the N channels among the M channels are not used for sending and / or receiving data.
[0034] In some possible implementations, an exception occurs in a fourth channel, where the fourth channel is a channel between the first optical module and the second optical module, and the first communication device uses N channels out of M channels corresponding to the first optical module to send and / or receive data according to the first exception information, including:
[0035] If the first channel and the fourth channel meet the speed reduction condition, the first communication device uses N channels of the M channels corresponding to the first optical module to send and / or receive data, and the N channels do not include a fifth channel, and the fifth channel is at least one channel of the M channels corresponding to the fourth channel.
[0036] A fifth aspect of the embodiments of the present application provides a data transmission method, in which a first optical module turns off a signal of a second channel, or sends a signal received through the first channel to a first communication device through the second channel, wherein the first channel is a channel between the first optical module and the second optical module, the first optical module is connected to the first communication device, and the second channel is at least one channel corresponding to the first channel among M channels, and the M channels are channels between the first optical module and the first communication device;
[0037] The first optical module uses N channels out of M channels to receive and / or send data, the N channels do not include the second channel, and N is less than M;
[0038] The first optical module receives control information from the first communication device, and the second control information is used to instruct the first optical module to turn off light emission corresponding to the first channel.
[0039] A sixth aspect of an embodiment of the present application provides a data transmission method, in which a second optical module turns off a signal of a second channel, or sends a signal received through a first channel to a second communication device through the second channel, wherein the first channel is a channel between the first optical module and the second optical module, the second optical module is connected to the second communication device, and the second channel is at least one channel corresponding to the first channel among M channels, and the M channels are channels between the second optical module and the second communication device;
[0040] The second optical module uses N channels out of M channels to receive and / or send data, the N channels do not include the second channel, and the N is smaller than the M channels.
[0041] In some possible implementations, channels other than N channels among the M channels are not used for sending and / or receiving data.
[0042] A seventh aspect of an embodiment of the present application provides a data transmission method, wherein a controller receives fault information from a first communication device, the fault information being used to indicate that an abnormality has occurred in a first channel, and transmits the fault information to a second communication device.
[0043] An eighth aspect of the present application provides a communication device, including:
[0044] An acquiring unit, configured to acquire an abnormality in a first channel corresponding to a first optical module, where the first channel is a channel between the first optical module and a second optical module, and the first optical module is connected to the first communication device;
[0045] a processing unit, configured to send and / or receive data using N channels among the M channels corresponding to the first optical module, where the M channels are channels between the first optical module and the first communication device, the N channels do not include a second channel, where the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M;
[0046] The sending unit is configured to send control information to the first optical module, where the control information is used to instruct the first optical module to turn off the light emission corresponding to the first channel.
[0047] A ninth aspect of the present application provides a communication device, including:
[0048] An acquiring unit, configured to acquire an abnormality in a first channel corresponding to a first optical module, where the first channel is a channel between the first optical module and a second optical module, and the first optical module is connected to the first communication device;
[0049] A processing unit, configured to send and / or receive data using N channels out of M channels corresponding to the first optical module, where the M channels are channels between the first optical module and the first communication device, the N channels do not include a second channel, and the second channel is at least one channel out of the M channels corresponding to the first channel, and N is less than M; and the first communication device sends fault information to a controller based on the first abnormality information, where the fault information is used to indicate that an abnormality has occurred in the first channel.
[0050] A tenth aspect of the embodiments of the present application provides a communication device, including:
[0051] An acquiring unit is configured to acquire an abnormality in a second channel corresponding to a second optical module, where the first channel is a channel between the first optical module and the second optical module, and the second optical module is connected to the second communication device; the abnormality in the first channel corresponding to the second optical module acquired by the second communication device includes: the second communication device fails to receive an optical signal sent by the first optical module through the first channel, and the first optical module actively shuts down light emission corresponding to the first channel;
[0052] a processing unit, configured to send and / or receive data using N channels among the M channels corresponding to the second optical module, where the M channels are channels between the second optical module and the second communication device, the N channels do not include the second channel, and the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M.
[0053] According to an eleventh aspect of the present application, a communication device is provided, including:
[0054] a receiving unit, configured to receive fault information from the controller, the fault information being used to indicate that an abnormality has occurred in a first channel, the first channel being a channel between a first optical module and a second optical module, the second optical module being connected to the second communication device;
[0055] a processing unit, configured to send and / or receive data using N channels among the M channels corresponding to the second optical module according to the fault information, where the M channels are channels between the second optical module and the second communication device, the N channels do not include a second channel, and the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M.
[0056] A twelfth aspect of the embodiments of the present application provides an optical module, including:
[0057] a processing unit, configured to shut down a signal of a second channel, or send a signal received through a first channel to a first communication device through the second channel, where the first channel is a channel between the first optical module and a second optical module, the first optical module is connected to the first communication device, and the second channel is at least one channel corresponding to the first channel among M channels, the M channels being channels between the first optical module and the first communication device;
[0058] an interface unit, configured to receive and / or transmit data using N channels out of the M channels, wherein the N channels do not include the second channel, and N is smaller than M;
[0059] The interface unit is further configured to receive control information from the first communication device, wherein the second control information is configured to instruct the first optical module to turn off the light emission corresponding to the first channel.
[0060] A thirteenth aspect of the embodiments of the present application provides an optical module, including:
[0061] a processing unit, configured to turn off a signal of a second channel, or to send a signal received through a first channel to a second communication device through the second channel, wherein the first channel is a channel between the first optical module and a second optical module, the second optical module is connected to the second communication device, and the second channel is at least one channel corresponding to the first channel among M channels, and the M channels are channels between the second optical module and the second communication device;
[0062] The interface unit is configured to receive and / or send data using N channels out of the M channels, where the N channels do not include the second channel, and N is smaller than M.
[0063] A fourteenth aspect of the present application provides a communication device, including:
[0064] A processor is configured to execute a program so that the communication device executes the method according to the first, second, third or fourth aspect and any possible implementation thereof.
[0065] Optionally, the communication device further includes a memory, and the processor is coupled to the memory; the memory is used to store programs.
[0066] A fifteenth aspect of the embodiments of the present application provides an optical module, including:
[0067] A processor is used to execute a program so that the optical module performs the method according to the fifth or sixth aspect and any possible implementation thereof.
[0068] Optionally, the optical module further includes a memory, and the processor is coupled to the memory; the memory is used to store programs.
[0069] A sixteenth aspect of the embodiments of the present application provides a data transmission system, including a communication device implementing the first aspect and any possible implementation thereof, a communication device implementing the third aspect and any possible implementation thereof, a communication device implementing the fifth aspect and any possible implementation thereof, and a communication device implementing the sixth aspect and any possible implementation thereof.
[0070] or,
[0071] A communication device that performs the second aspect and any possible implementation thereof, a communication device that performs the fourth aspect and any possible implementation thereof, and a communication device that performs the seventh aspect and any possible implementation thereof.
[0072] A seventeenth aspect of an embodiment of the present application provides a computer-readable storage medium comprising instructions, which, when executed on a computer, causes the computer to execute the method described in the first aspect above, or the method described in the second aspect above, or the method described in the third aspect above, or the method described in the fourth aspect above, or the method described in the fifth aspect above, or the method described in the sixth aspect above.
[0073] An eighteenth aspect of an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect above, or, enables the computer to execute the method described in the second aspect above, or, enables the computer to execute the method described in the third aspect above, or, enables the computer to execute the method described in the fourth aspect above, or, enables the computer to execute the method described in the fifth aspect above, or, enables the computer to execute the method described in the sixth aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] FIG1 is a diagram of a system architecture according to an embodiment of the present application;
[0075] FIG2 is a schematic diagram of an embodiment of the interaction of optical modules in an embodiment of the present application;
[0076] FIG3 is a schematic diagram of an embodiment of a data sending method according to an embodiment of the present application;
[0077] FIG4 is a schematic diagram of an embodiment of a first optical module in an embodiment of the present application;
[0078] FIG5 is a schematic diagram of another embodiment of the data sending method according to an embodiment of the present application;
[0079] FIG6 is a schematic diagram of an embodiment of a communication device according to an embodiment of the present application;
[0080] FIG7 is a schematic diagram of another embodiment of a communication device according to an embodiment of the present application;
[0081] FIG8 is a schematic diagram of an embodiment of a neural network processing unit in an embodiment of the present application;
[0082] FIG9 is a schematic diagram of another embodiment of a communication device in an embodiment of the present application. DETAILED DESCRIPTION
[0083] The embodiments of the present application provide a data sending method, a communication device, and a storage medium, which are applied in the field of communication technology and are used to notify the opposite end of a channel failure when a port fails.
[0084] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0085] The terms "first", "second" etc. in the specification, claims and drawings of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, and this is merely a way of distinguishing the objects of the same attributes when describing them in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0086] In this application, "used to indicate" can include being used for direct indication and being used for indirect indication. When describing that a certain indication information is used to indicate A, it can include that the indication information directly indicates A or indirectly indicates A, and it does not mean that the indication information must carry A.
[0087] In addition, the specific indication method can also be various existing indication methods, such as but not limited to the above-mentioned indication methods and various combinations thereof. The specific details of the various indication methods can be referred to the prior art and will not be repeated herein. As can be seen from the above, for example, when it is necessary to indicate multiple information of the same type, there may be a situation where the indication methods for different information are different. In the specific implementation process, the required indication method can be selected according to specific needs. The embodiment of the present application does not limit the selected indication method. In this way, the indication method involved in the embodiment of the present application should be understood to cover various methods that can enable the party to be indicated to obtain the information to be indicated.
[0088] In the embodiments of the present application, descriptions such as "when...", "in the case of...", "if" and "if" all mean that the device will perform corresponding processing under certain objective circumstances. It does not limit the time, nor does it require the device to perform judgment actions when implemented, nor does it mean that there are other limitations.
[0089] Please refer to FIG1 . The following briefly describes the system architecture based on which the data transmission method in the embodiment of the present application is based:
[0090] In this system architecture, a communication device 101 is connected to multiple communication devices 102, and the communication device 101 and the communication device 102 are interconnected through an optical module. Specifically, the communication device 101 includes multiple interfaces, and the optical module 104 can be inserted into any one of the multiple interfaces, thereby realizing the connection between the communication device 101 and the optical module 104. The communication device 102 includes an interface, and the optical module 103 can be inserted into the interface, thereby realizing the connection between the communication device 101 and the optical module 103. The optical module 103 and the optical module 104 are connected through an optical fiber, thereby realizing the interconnection between the communication device 101 and the communication device 102 through the optical module.
[0091] It should be understood that after the optical module is inserted into the interface of the communication device 101 , the optical module and the communication device 101 have a connection relationship, and is the optical module connected to the communication device 101 , hereinafter referred to as “the optical module of the communication device 101 ”.
[0092] It should be understood that the optical module itself may be a component of the communication device 101. In this case, the "optical module of the communication device 101" below means that the communication device 101 includes the component optical module.
[0093] It should be understood that the communication device 101 can be a network device such as a switch, a router, a virtual switch, a virtual router, a packet transport network (PTN) device, an optical transport network (OTN) device, etc. This application does not limit the device form of the communication device 101.
[0094] It should be understood that the communication device 102 can be an NPU, a GPU, a network card in a server, or the server itself carried by the NPU or GPU. This application does not limit the device form of the communication device 102.
[0095] It should be understood that the communication device 102 may also be a network device such as a switch, a router, a virtual switch, a virtual router, a packet transport network (PTN) device, an optical transport network (OTN) device, etc. For example, in a data center network, the communication device 101 may be a spine switch, and the communication device 102 may be a leaf switch.
[0096] In a possible implementation, the communication device 101 and the communication device 102 may be interconnected using other communication devices, which may implement photoelectric conversion and / or data transmission, and the specific details are not limited here.
[0097] Please refer to Figure 2, which shows a scenario in which optical modules 103 and 104 are interconnected. The optical module 103 includes a transmitter optical subassembly (TOSA), a receiver optical subassembly (ROSA), and an optical digital signal processing (oDSP) module. The main function of the TOSA is to convert electrical signals into optical signals, and it usually includes optical devices such as lasers. The main function of the ROSA is to convert optical signals transmitted from the opposite TOSA into electrical signals. It consists of a photodiode, an optical interface, a metal or plastic housing, and an electrical interface. Similar to the TOSA, the specific components of the ROSA depend on the specific functions and applications of the optical module. It may also contain other components such as amplifiers to restore input signals that have degraded due to long-distance transmission. The oDSP module can be used to modulate and demodulate laser signals, thereby increasing data transmission speed.
[0098] Based on the above architecture, the present application proposes a data transmission method, which is introduced below using the failure of the optical module of the communication device 101 as an example. When one or more channels in the optical module of the communication device 101 fail, the communication device 102 senses the abnormality, and the communication device 102 uses N channels of the M channels between the optical module to receive and / or send data, and indicates that an abnormality has occurred in a channel at the opposite end (for the communication device 102, the opposite end is the communication device 101, and for the communication device 101, the opposite end is the communication device 102).
[0099] It should be understood that the data transmission method proposed in the present application can also be that one or more channels in the optical module of the communication device 102 fail. After the communication device 101 senses the abnormality, the communication device 101 indicates that there is an abnormality in the channel of the other end. That is to say, the solution implemented by the communication device 101 can also be implemented by the communication device 102. At this time, the solution implemented by the communication device 102 is implemented by the communication device 101.
[0100] In the embodiment of the present application, there are two ways to indicate that a channel abnormality has occurred on the other end, which are described below:
[0101] It should be understood that the steps performed by the first communication device, the second communication device, the first optical module, and the second optical module in the method can also be performed by some of the components therein (such as a processor, a chip or a chip system, etc.), or the method can also be implemented by a logic module or software that can realize all or part of the functions.
[0102] The first communication device in the method may be the communication device 102 in FIG. 1 , in which case the first optical module is the optical module 103 ; the second communication device may be the communication device 101 in FIG. 1 , in which case the second optical module is the optical module 104 .
[0103] 1. Indicate by turning off the light corresponding to the abnormal channel;
[0104] Referring to FIG3 , a data sending method in an embodiment of the present application includes:
[0105] 301. A first communication device obtains that a first channel corresponding to a first optical module is abnormal. The first channel is a channel between the first optical module and a second optical module, and the first optical module is connected to the first communication device.
[0106] In this embodiment, the second communication device transmits data to the first communication device via the second optical module, and the first communication device receives data transmitted by the second communication device via the first optical module. Specifically, multiple channels are established between the first and second optical modules for transmitting and / or receiving data. For example, eight channels are established between the first and second optical modules (e.g., channels between the TOSA of communication device 101 and the ROSA of communication device 102 in FIG2 ), enabling data transmission at a rate of 400 Gbps. For a first channel, the first channel connects the first and second optical modules. The second optical module includes an interface for connecting to the first channel, and the first optical module includes an interface for connecting to the first channel. The second optical module can control the light emission corresponding to the first channel using a laser, thereby enabling data transmission, or in other words, controlling data transmission. The first optical module, as the other end of the first channel, can also receive optical signals transmitted through the first channel, thereby enabling data reception. Of course, a single channel can enable both data transmission and data reception. That is, the second optical module can transmit data to the first optical module via the first channel, and the first optical module can receive data transmitted by the second optical module via the first channel. The first optical module can also send data to the second optical module through the same first channel. In this case, the second optical module receives the data sent by the first optical module through the first channel. If only data transmission can be achieved for one channel, it does not affect the implementation of the embodiment of the present application. In a specific implementation, there will be another corresponding channel to achieve data reception. For example, the second optical module sends data to the first optical module through the first channel, and the first optical module receives the data sent by the second optical module through the first channel. The first optical module sends data to the second optical module through another channel corresponding to the first channel, and the second optical module receives the data sent by the first optical module through this channel.
[0107] There are multiple ways for the first communication device to obtain the abnormality of the first channel corresponding to the first optical module:
[0108] In a first implementation, when an abnormality occurs in the second optical module connected to the second communication device, such as a laser aging failure, causing the light power corresponding to the first channel to decrease or cease to emit light, the first optical module connected to the first communication device senses the abnormality in the corresponding first channel and shuts down the signal sent to the first communication device. Specifically, the signal corresponding to the first channel passing between the first communication device and the first optical module is shut down. If the first communication device does not receive the signal corresponding to the first channel between the first communication device and the first optical module, it determines that the first channel is abnormal. This step can be implemented by the oDSP module in Figure 2.
[0109] In a second implementation, when an anomaly occurs in the second optical module connected to the second communication device, such as a laser aging failure, causing the light power corresponding to the first channel to decrease, the signal received by the first optical module connected to the first communication device is transparently transmitted to the first communication device. Specifically, transparent transmission includes an optoelectronic conversion operation, specifically, transmission is performed through the channel corresponding to the first channel between the first communication device and the first optical module. After receiving the signal, the first communication device determines that the signal quality is poor and determines that the first channel is abnormal. This step can be implemented by the oDSP module in Figure 2.
[0110] In a specific implementation manner, after the first communication device obtains that a first channel corresponding to a first optical module is abnormal, the first communication device puts the port corresponding to the first optical module in the first communication device into a DOWN state.
[0111] 302. The first communication device uses N channels among M channels corresponding to the first optical module to send and / or receive data, where the M channels are channels between the first optical module and the first communication device, the N channels do not include a second channel, and the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M.
[0112] After obtaining the abnormality of the first channel corresponding to the first optical module, the first communication device determines that the first channel corresponding to the first optical module to which it is connected has an abnormality, and all channels between the first optical module and the second optical module, for example, 8 channels, cannot be used for data transmission, and thus uses part of the channels excluding the abnormal channel for data transmission.
[0113] In a specific implementation, the first communication device and the first optical module include M channels (for example, the channels between the TOSA of the communication device 101 and the ROSA of the communication device 102 in FIG2 ), and the first optical module and the second optical module include X channels (for example, the channels between the ODSP chip and the ASIC chip of the communication device 102 in FIG2 ). In one implementation, X=M. In another implementation, X may not be equal to M, and there is a corresponding relationship between the M channels between the first communication device and the first optical module and the X channels between the first optical module and the second optical module. For example, X=8 and M=16, in this case, the two channels between the first communication device and the first optical module correspond to one channel between the first optical module and the second optical module. This application does not limit the number of X and M.
[0114] In one specific implementation, the first communication device uses N channels out of the M channels corresponding to the first optical module to send and / or receive data. Alternatively, the first communication device does not use channels other than the N channels out of the M channels to send and / or receive data. Specifically, the first communication device blocks all channels except the N channels out of the M channels corresponding to the first optical module, leaving the N channels unblocked. The N channels do not include a second channel. The second channel is at least one channel out of the M channels corresponding to the first channel, where N is less than M. In other words, the first communication device sends data to the first optical module through the N channels, and the first optical module receives data through the N channels. In this case, the first communication device uses some of the channels to send data to the first optical module. The data is then sent to the second optical module through Y channels corresponding to the N channels. The Y channels are the channels between the first and second optical modules. The Y channels do not include the first channel, thereby enabling the first optical module to send data using some of the channels of the first module, excluding the abnormal channel.
[0115] In a specific implementation, an exception also occurs in a third channel, where the third channel is a channel between the first optical module and the second optical module, and the first communication device uses N channels out of the M channels corresponding to the first optical module to send and / or receive data according to the first exception information, including:
[0116] The first communication device sends and / or receives data using N channels among the M channels corresponding to the first optical module, where the N channels do not include a fourth channel, which is at least one channel among the M channels corresponding to the third channel.
[0117] In one specific implementation, the method further includes determining a speed reduction condition. The speed reduction condition includes determining whether a rate corresponding to a non-abnormal channel satisfies a first rate. The first rate is a predefined, standard-compliant port rate, such as 200 Gbps. Satisfaction indicates that the rate corresponding to the non-abnormal channel is greater than or equal to the first rate.
[0118] Specifically, after the first communication device detects an anomaly in the first channel corresponding to the first optical module, it determines whether the rates corresponding to the remaining non-anomalous channels meet the first rate. Non-anomalous channels are channels other than the first channel. These can be all channels other than the first channel, or a portion of the channels other than the first channel. For example, the rate of the first communication device port is 400 Gbps, which means the rate of the first optical module is 400 Gbps. In the case of X = 8, including channels 0 through 7, with channel 6 being the first channel, one channel corresponds to a rate of 50 Gbps. Non-anomalous channels can be all channels other than the first channel, that is, the remaining seven channels, with a corresponding rate of 350 Gbps, meeting the first rate requirement of 200 Gbps. For another example, non-anomalous channels can be a portion of the channels other than the first channel, or four channels other than the first channel, such as channels 0, 1, 2, and 3. In this case, the rates corresponding to these four channels are 200 Gbps, also meeting the first rate requirement of 200 Gbps.
[0119] Specifically, after the first communication device obtains that the first channel and the third channel corresponding to the first optical module are abnormal, it will determine whether the rates corresponding to the remaining non-abnormal channels meet the first rate. Among them, non-abnormal channels are channels other than the first channel and the third channel. Non-abnormal channels can be all channels other than the first channel and the third channel, or they can be some channels other than the first channel and the third channel. Specifically, the method for determining whether the rates corresponding to the remaining non-abnormal channels meet the first rate is the same as the method for determining after only the first channel is abnormal, and will not be repeated here. Optionally, the non-abnormal channels are multiple channels that are adjacent in position, or in other words, the non-abnormal channels are multiple channels with consecutive channel numbers. Optionally, the non-abnormal channels include the first channel or the last channel. The first or last here can represent the first or last position, or the minimum or maximum number. For example, in the case of 8 channels, the first channel can be channel 0, and the last channel can be channel 7.
[0120] It should be understood that in the above implementation, when determining that the rate corresponding to the non-abnormal channel meets the first rate, it can also be determined whether the rate corresponding to the non-abnormal channel in the channel between the first communication device and the first optical module meets the first rate. The specific implementation can refer to the above implementation, which will not be repeated here.
[0121] For example, since a 200Gbps port requires four channels for data transmission, a maximum of four channels of the first optical module can fail, and the remaining four channels can form a 200Gbps port. As shown in Figure 4, if the first channel is channel 6 and the third channel is channel 5, the first and third channels meet the speed reduction conditions, and the first communication device can instruct the first optical module to reduce the speed.
[0122] Exemplarily, when the first communication device is an NPU, the rate of the NPU port is 400Gbps, or in other words, the rate of the first optical module connected to the NPU is 400Gbps. After the NPU obtains an abnormality in the first channel corresponding to the first optical module, the NPU switches the port rate from 400Gbps to 200Gbps. There are 8 channels between the first optical module and the second optical module, including channels 0 to 7, and the first channel is channel 6. There are 8 channels between the NPU and the first optical module, for example, channels A to H, where channel 6 corresponds to channel G. The NPU shields channels E, F, G, and H from channels A to H, and uses channels A, B, C, and D to send data. The port rate is reduced from 400Gbps to 200Gbps. The first optical module also uses channels 0, 1, 2, and 3 corresponding to channels A, B, C, and D to send data, reducing the transmission rate of the optical module to 200Gbps.
[0123] 303. The first communication device sends control information to the first optical module, for instructing the first optical module to turn off the light emission corresponding to the first channel, or actively adjust the optical signal corresponding to the first channel to a first abnormal signal.
[0124] The first abnormal signal includes a signal indicating low luminous power.
[0125] For example, in the above example, the NPU sends control information to the first optical module to instruct the first optical module to turn off the light corresponding to channel 7.
[0126] In one possible implementation, the control information may further instruct the first optical module to turn off the light corresponding to a third channel among the M channels, where the third channel does not belong to any of the N channels. For example, the control information may instruct the first optical module to turn off the light corresponding to channels 6 and 7 in the above example, where channel 7 is the third channel and channel 6 is the first channel.
[0127] It should be understood that the control information can also instruct the first optical module to turn off the light corresponding to other channels among the M channels. As long as turning off the light of the channels does not affect data transmission, it is within the scope of protection of this application. For example, in the above example, turning off channels 4, 5, 6, and 7 is feasible. This step can be implemented by the oDSP module in Figure 2.
[0128] It should be noted that the control information can be included in a message sent by the first communication device to the first optical module, or it can be carried in a signal sent by the first communication device to the first optical module or in an instruction sent by the first communication device to the first optical module. The specific details are not limited here.
[0129] It should be understood that the ports corresponding to the first optical module and the second optical module in the embodiment of the present application are 200Gbps / 400Gbps. In some possible implementations, the ports of the optical modules can also support other rates, which are not specifically limited here.
[0130] 304. The second communication device obtains an abnormality in the first channel corresponding to the second optical module, where the first channel is a channel between the first optical module and the second optical module, and the second optical module is connected to the second communication device. The abnormality in the first channel corresponding to the second optical module obtained by the second communication device includes: the second communication device does not receive the optical signal sent by the first optical module through the first channel, the first optical module actively turns off the light emission corresponding to the first channel, or the second communication device receives the first abnormality signal sent by the first optical module through the first channel.
[0131] The first abnormal signal includes a signal indicating low luminous power.
[0132] 305. The second communication device uses N channels out of M channels corresponding to the second optical module to send and / or receive data, where the M channels are channels between the second optical module and the second communication device, the N channels do not include the second channel, and the second channel is at least one channel out of the M channels corresponding to the first channel, and N is less than M.
[0133] The specific implementation of step 305 can refer to step 302. At this time, the steps implemented by the first communication device in step 302 are implemented by the second communication device, and the steps implemented by the first optical module are implemented by the second optical module. The details are not repeated here.
[0134] Optionally, in step 306, the second communication device sends control information to the second optical module, instructing the second optical module to turn off the light corresponding to the first channel, or to actively adjust the optical signal corresponding to the first channel to the first abnormal signal. This step can be implemented by the oDSP module and TOSA module in Figure 2.
[0135] After the first communication device and the second communication device both use N channels that can operate normally to transmit data, or in other words, after the first communication device and the second communication device both use non-abnormal channels to transmit data, the two communication devices negotiate normally so that the ports of the communication devices return to the UP state and operate normally.
[0136] In the embodiment of the present application, since the first communication device and the second communication device can send data by using part of the channels in the optical module to achieve speed reduction, the failure of one or more channels causing the port to be DOWN and the link between the ports to be unavailable, which in turn avoids the interruption of the AI training task, thereby improving the training performance and thus improving the performance of the AI service.
[0137] In one possible implementation, after the first communication device or the second communication device obtains the abnormality of the corresponding optical module, it will feedback the abnormal information to the user. After the training task is completed or the relevant training content is saved, the first communication device or the second communication device can prompt the user to replace the optical module. For example, when the second optical module of the switch is removed, all channels of the first optical module of the NPU cannot receive optical signals, resulting in an abnormality. At this time, the NPU restores the shielded multiple channels. When the second optical module is reinstalled to the switch and then initialized, the corresponding lights of all channels in the second optical module are turned on, all channels of the first optical module can receive optical signals, and the two ends negotiate to restore the UP state.
[0138] Second, indicate by sending fault information to the controller;
[0139] Please refer to FIG5 . A data transmission method according to an embodiment of the present application is provided. In this method, for the connection relationship between the first communication device and the first optical module, the connection relationship between the second communication device and the second optical module, the description of the channel between the first optical module and the second optical module, the description of the channel between the first communication device and the first optical module, and the description of the channel between the second communication device and the second optical module, reference may be made to the relevant parts of the above embodiments. The method includes:
[0140] 501. A first communication device obtains an abnormality in a first channel corresponding to a first optical module, where the first channel is a channel between the first optical module and a second optical module, and the first optical module is connected to the first communication device. This step may be implemented by the oDSP module in FIG. 2 .
[0141] 502. The first communication device sends and / or receives data using N channels among M channels corresponding to the first optical module, where the M channels are channels between the first optical module and the first communication device, the N channels do not include a second channel, and the second channel is at least one channel among the M channels corresponding to the first channel, where N is less than M.
[0142] The specific implementation of steps 501 and 502 in this embodiment can refer to the implementation of steps 301 and 302 in the embodiment shown in Figure 3 above, and will not be described in detail here.
[0143] 503. The first communication device sends fault information to the controller, where the fault information is used to indicate that an abnormality occurs in the first channel.
[0144] The first communication device generates fault information and reports it to the controller. The fault information includes one or more of first port information, second port information, the number of channels of the first port, and fault information of the first channel. The first port information includes the port number and IP address of the local port, and the second port information includes the port number and IP address of the remote port. It should be understood that the fault information may also include other information indicating the port or the first channel, which is not specifically limited here.
[0145] In a possible implementation, the Link Layer Discovery Protocol (LLDP) is enabled between the first communication device and the second communication device. The LLDP protocol is used to enable devices in a network to discover each other and notify the devices of device and port information of other connected devices.
[0146] In a possible implementation, the first communication device and the second communication device are connected to the controller via a management plane or a service plane network. The fault information is sent via the service plane or the management plane network.
[0147] 504. The second communication device receives fault information from the controller, where the fault information indicates that an abnormality has occurred in a first channel, where the first channel is a channel between a first optical module and a second optical module, and the second optical module is connected to the second communication device.
[0148] The controller notifies the fault information to the second communication device through the management plane or service plane network, and the second communication device receives the fault information from the controller.
[0149] Specifically, after the second communication device receives the fault information from the controller, the second communication device determines that the first channel is abnormal.
[0150] 505. The second communication device uses N channels among the M channels corresponding to the second optical module to send and / or receive data according to the fault information, where the M channels are channels between the second optical module and the second communication device, the N channels do not include the second channel, and the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M.
[0151] The specific implementation of step 505 in this embodiment can refer to the implementation of step 305 in the embodiment shown in Figure 3 above, and will not be described in detail here.
[0152] The data transmission method in the embodiment of the present application is described above. The communication device in the embodiment of the present application is described below. In one possible implementation, the communication device 600 shown in Figure 6 can execute the method steps performed by the first communication device as shown in Figure 3. The communication device 600 includes:
[0153] The interface unit 601 is configured to obtain an abnormality in a first channel corresponding to a first optical module, where the first channel is a channel between the first optical module and a second optical module, and the first optical module is connected to the first communication device;
[0154] a processing unit 602, configured to send and / or receive data using N channels among M channels corresponding to the first optical module, where the M channels are channels between the first optical module and the first communication device, the N channels excluding a second channel, the second channel being at least one channel among the M channels corresponding to the first channel, and N being less than M;
[0155] The interface unit 601 is further configured to send control information to the first optical module, where the control information is configured to instruct the first optical module to turn off the light emission corresponding to the first channel.
[0156] In one possible implementation, the communication device 600 shown in FIG6 may execute the method steps performed by the second communication device shown in FIG3. The communication device 600 includes:
[0157] The interface unit 601 is configured to obtain an abnormality in a first channel corresponding to a first optical module, where the first channel is a channel between the first optical module and a second optical module, and the first optical module is connected to the first communication device;
[0158] The processing unit 602 is configured to send and / or receive data using N channels out of the M channels corresponding to the first optical module, where the M channels are channels between the first optical module and the first communication device, and the N channels do not include a second channel, where the second channel is at least one channel out of the M channels corresponding to the first channel, and N is less than M; and the first communication device sends fault information to the controller based on the first abnormality information, where the fault information is used to indicate that an abnormality has occurred in the first channel.
[0159] In one possible implementation, the communication device 600 shown in FIG6 may execute the method steps performed by the first communication device shown in FIG5. The communication device 600 includes:
[0160] The interface unit 601 is configured to obtain an abnormality in a second channel corresponding to a second optical module, where the first channel is a channel between the first optical module and the second optical module, and the second optical module is connected to the second communication device. The abnormality in the first channel corresponding to the second optical module obtained by the second communication device includes: the second communication device fails to receive an optical signal sent by the first optical module through the first channel, and the first optical module actively shuts down light emission corresponding to the first channel.
[0161] The processing unit 602 is configured to send and / or receive data using N channels among the M channels corresponding to the second optical module, where the M channels are channels between the second optical module and the second communication device, the N channels do not include the second channel, and the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M.
[0162] In one possible implementation, the communication device 600 shown in FIG6 may execute the method steps performed by the second communication device shown in FIG5. The communication device 600 includes:
[0163] An interface unit 601 is configured to receive fault information from a controller, the fault information indicating an abnormality in a first channel, where the first channel is a channel between a first optical module and a second optical module connected to the second communication device;
[0164] The processing unit 602 is configured to send and / or receive data using N channels among the M channels corresponding to the second optical module according to the fault information, where the M channels are channels between the second optical module and the second communication device, the N channels do not include the second channel, and the second channel is at least one channel among the M channels corresponding to the first channel, and the N is less than the M.
[0165] In one possible implementation, the optical module 700 shown in FIG7 can execute the method steps performed by the first optical module shown in FIG3 or FIG5. The optical module 700 includes:
[0166] a processing unit 702 configured to close a signal of a second channel, or send a signal received through a first channel to a first communication device through the second channel, where the first channel is a channel between the first optical module and a second optical module, the first optical module being connected to the first communication device, and the second channel is at least one channel corresponding to the first channel among M channels, the M channels being channels between the first optical module and the first communication device;
[0167] The interface unit 701 is configured to receive and / or send data using N channels out of the M channels, where the N channels do not include the second channel, and N is smaller than M.
[0168] The interface unit 701 is further configured to receive control information from the first communication device, where the second control information is used to instruct the first optical module to turn off the light emission corresponding to the first channel.
[0169] In one possible implementation, the optical module 700 shown in FIG7 can execute the method steps performed by the second optical module shown in FIG3 or FIG5. The optical module 700 includes:
[0170] The processing unit 702 turns off a signal of a second channel, or sends a signal received through a first channel to a second communication device through the second channel, where the first channel is a channel between the first optical module and a second optical module, the second optical module is connected to the second communication device, and the second channel is at least one channel corresponding to the first channel among M channels, and the M channels are channels between the second optical module and the second communication device.
[0171] The interface unit 701 is configured to receive and / or send data using N channels out of the M channels, where the N channels do not include the second channel, and N is smaller than M.
[0172] The embodiment of the present application includes a data transmission system, including a communication device that performs steps 301 to 303 in FIG. 3 , and a communication device that performs steps 304 to 306 in FIG. 3 ;
[0173] or,
[0174] The communication device executes steps 501 to 503 in FIG. 5 , and the communication device executes steps 504 to 505 in FIG. 5 .
[0175] For example, see Figure 8, which is a schematic diagram of the structure of an NPU provided in an embodiment of the present application. Specifically, it can be represented as a neural network processor NPU 800. NPU 800 is mounted on the host CPU (host CPU) as a coprocessor and is assigned tasks by the host CPU. The core of the NPU is arithmetic circuit 803, which is controlled by controller 804 to extract matrix data from memory and perform multiplication operations.
[0176] In some implementations, the arithmetic circuit 803 includes multiple processing engines (PEs). In some implementations, the arithmetic circuit 803 is a two-dimensional systolic array. The arithmetic circuit 803 can also be a one-dimensional systolic array or other electronic circuitry capable of performing mathematical operations such as multiplication and addition. In some implementations, the arithmetic circuit 803 is a general-purpose matrix processor.
[0177] For example, assume there are input matrix A, weight matrix B, and output matrix C. The computation circuit retrieves the corresponding data of matrix B from weight memory 802 and caches it on each PE in the computation circuit. The computation circuit then retrieves the data of matrix A from input memory 801 and performs a matrix operation on it with matrix B. The partial or final matrix result is stored in accumulator 808.
[0178] Unified memory 806 is used to store input and output data. Weight data is directly transferred to weight memory 802 through direct memory access controller (DMAC) 805. Input data is also transferred to unified memory 806 through DMAC.
[0179] The bus interface unit (BIU) 810 is used for interaction between the AXI bus, the DMAC, and the instruction fetch buffer (IFB) 809 .
[0180] The bus interface unit 810 (BIU) is used for the instruction fetch memory 809 to obtain instructions from the external memory, and is also used for the storage unit access controller 805 to obtain the original data of the input matrix A or the weight matrix B from the external memory.
[0181] DMAC is mainly used to transfer input data in the external memory DDR to the unified memory 806 or transfer weight data to the weight memory 802 or transfer input data to the input memory 801.
[0182] The vector calculation unit 807 includes multiple operation processing units. When necessary, it further processes the output of the operation circuit, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison, etc. It is mainly used for non-convolutional / fully connected layer network calculations in neural networks, such as batch normalization, pixel-level summation, and upsampling of feature planes.
[0183] In some implementations, the vector calculation unit 807 can store the processed output vector to the unified memory 806. For example, the vector calculation unit 807 can apply a linear function and / or a nonlinear function to the output of the operation circuit 803, such as linear interpolation of the feature plane extracted by the convolution layer, or, for example, accumulate a vector of values to generate an activation value. In some implementations, the vector calculation unit 807 generates a normalized value, a pixel-level summed value, or both. In some implementations, the processed output vector can be used as an activation input to the operation circuit 803, for example, for use in a subsequent layer in a neural network.
[0184] An instruction fetch buffer 809 connected to the controller 804 is used to store instructions used by the controller 804;
[0185] Unified memory 806, input memory 801, weight memory 802 and instruction fetch memory 809 are all on-chip memories. External memories are private to the NPU hardware architecture.
[0186] The processor mentioned in any of the above places may be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits for controlling the steps of the method of FIG. 3 or FIG. 5 .
[0187] FIG9 is a schematic structural diagram of a communication device provided in an embodiment of the present application. The communication device is implemented by a general bus architecture.
[0188] The communication device includes at least one processor 901 , a communication bus 902 , a memory 903 , and at least one communication interface 904 .
[0189] Optionally, processor 901 is a general-purpose CPU, NP, microprocessor, or one or more integrated circuits for implementing the solution of the present application, such as an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD is a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0190] Communication bus 902 is used to transmit information between the above components. Communication bus 902 is divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.
[0191] Alternatively, the memory 903 is a read-only memory (ROM) or other types of static storage devices that can store static information and instructions. Alternatively, the memory 903 is a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions. Alternatively, the memory 903 is an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. Alternatively, the memory 903 exists independently and is connected to the processor 901 via a communication bus 902. Alternatively, the memory 903 and the processor 901 are integrated together.
[0192] The communication interface 904 uses any transceiver-like device for communicating with other devices or communication networks. The communication interface 904 includes a wired communication interface. Optionally, the communication interface 904 also includes a wireless communication interface. The wired communication interface is, for example, an Ethernet interface. The Ethernet interface is an optical interface, an electrical interface, or a combination thereof. The wireless communication interface is a wireless local area network (WLAN) interface, a cellular network communication interface, or a combination thereof.
[0193] In a specific implementation, as an embodiment, the processor 901 includes one or more CPUs, such as CPU0 and CPU1 shown in FIG9 .
[0194] In a specific implementation, as an embodiment, the communication device includes multiple processors, such as processor 901 and processor 905 shown in Figure 9. Each of these processors is a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here refers to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0195] In some embodiments, the memory 903 is used to store program code 906 for executing the solution of the present application, and the processor 901 executes the program code 906 stored in the memory 903. In other words, the communication device implements the above method embodiment through the processor 901 and the program code 906 in the memory 903.
[0196] It should also be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between the modules indicates that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines.
[0197] An embodiment of the present application also provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enable the computer to execute the method in the aforementioned embodiment.
[0198] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method in the aforementioned embodiment.
[0199] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0200] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0201] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0202] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0203] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0204] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
Claims
1. A data sending method, characterized in that, Including: A first communication device obtains a first channel anomaly corresponding to a first optical module, where the first channel is a channel between the first optical module and a second optical module, and the first optical module is connected to the first communication device; The first communication device sends and / or receives data using N channels out of M channels corresponding to the first optical module, where the M channels are channels between the first optical module and the first communication device, the N channels do not include a second channel, the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M; The first communication device sends control information to the first optical module, and the control information is used to instruct the first optical module to turn off the light emission corresponding to the first channel.
2. The method according to claim 1, characterized in that The channels among the M channels other than the N channels are not used for sending and / or receiving data.
3. The method according to claim 1 or 2, characterized in that, The control information is further used to instruct the first optical module to turn off the light emission corresponding to a third channel, where the third channel is a channel between the first optical module and the second optical module.
4. The method according to any one of claims 1 to 3, characterized in that A fourth channel has an anomaly, where the fourth channel is a channel between the first optical module and the second optical module, and the first communication device sends and / or receives data using N channels out of M channels corresponding to the first optical module, including: If the first channel and the fourth channel meet the speed reduction condition, the first communication device sends and / or receives data using N channels out of M channels corresponding to the first optical module, and the N channels do not include a fifth channel, where the fifth channel is at least one channel among the M channels corresponding to the fourth channel.
5. A data sending method, characterized in that, Including: A first communication device obtains a first channel anomaly corresponding to a first optical module, where the first channel is a channel between the first optical module and a second optical module, and the first optical module is connected to the first communication device; The first communication device sends and / or receives data using N channels out of M channels corresponding to the first optical module, where the M channels are channels between the first optical module and the first communication device, the N channels do not include a second channel, the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M; The first communication device sends fault information to a controller, and the fault information is used to indicate that the first channel has an anomaly.
6. The method according to claim 5, wherein The fault information includes at least one of the following: first port information, second port information, the number of channels of the first port, and the fault information of the first channel. The first port information includes the port number and Internet Protocol (IP) address of the first port, the second port information includes the port number and IP address of the second port, the first port is the local port, and the second port is the peer port.
7. The method according to claim 5 or 6, characterized in that, The channels among the M channels other than the N channels are not used for sending and / or receiving data.
8. The method according to any one of claims 5 to 7, characterized in that A fourth channel has an anomaly, where the fourth channel is a channel between the first optical module and the second optical module, and the first communication device sends and / or receives data using N channels out of M channels corresponding to the first optical module, including: If the first channel and the fourth channel meet the speed reduction condition, the first communication device uses N channels out of the M channels corresponding to the first optical module to send and / or receive data, where the N channels do not include the fifth channel, and the fifth channel is at least one channel among the M channels corresponding to the fourth channel.
9. A data sending method, characterized in that, Including: The second communication device obtains an abnormality of the first channel corresponding to the second optical module, where the first channel is the channel between the first optical module and the second optical module, and the second optical module is connected to the second communication device; The second communication device obtaining an abnormality of the first channel corresponding to the second optical module includes: the second optical module does not receive the optical signal sent by the first optical module through the first channel, and the first optical module actively turns off the light emission corresponding to the first channel; The second communication device uses N channels out of the M channels corresponding to the second optical module to send and / or receive data, where the M channels are the channels between the second optical module and the second communication device, the N channels do not include the second channel, and the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M.
10. The method according to claim 9, wherein The channels other than the N channels among the M channels are not used for sending and / or receiving data.
11. The method according to claim 9 or 10, characterized in that, An abnormality occurs in the fourth channel, where the fourth channel is the channel between the first optical module and the second optical module. The second communication device using N channels out of the M channels corresponding to the second optical module to send and / or receive data includes: If the first channel and the fourth channel meet the speed reduction condition, the second communication device uses N channels out of the M channels corresponding to the second optical module to send and / or receive data, where the N channels do not include the fifth channel, and the fifth channel is at least one channel among the M channels corresponding to the fourth channel.
12. A data sending method, characterized in that, Including: The second communication device receives fault information from the controller, where the fault information is used to indicate an abnormality in the first channel, and the first channel is the channel between the first optical module and the second optical module, and the second optical module is connected to the second communication device; The second communication device uses N channels out of the M channels corresponding to the second optical module to send and / or receive data according to the fault information, where the M channels are the channels between the second optical module and the second communication device, the N channels do not include the second channel, and the second channel is at least one channel among the M channels corresponding to the first channel, and N is less than M.
13. The method according to claim 12, wherein The fault information includes at least one of the following: first port information, second port information, the number of channels of the first port, and the fault information of the first channel. The first port information includes the port number and Internet Protocol (IP) address of the first port, the second port information includes the port number and IP address of the second port, the first port is the local port, and the second port is the peer port.
14. The method according to claim 12 or 13, characterized in that, The channels other than the N channels among the M channels are not used for sending and / or receiving data.
15. The method according to any one of claims 12 to 14, characterized in that, An abnormality occurs in the fourth channel, where the fourth channel is the channel between the first optical module and the second optical module. The second communication device uses N channels out of M channels corresponding to the second optical module to send and / or receive data, including: If the first channel and the fourth channel meet the speed reduction condition, the second communication device uses N channels out of M channels corresponding to the second optical module to send and / or receive data, and the N channels do not include the fifth channel, where the fifth channel is at least one channel among the M channels corresponding to the fourth channel.
16. A data sending method, characterized in that, Including: The first optical module does not receive the optical signal sent by the second optical module through the first channel, and closes the signal of the second channel, or the first optical module receives an abnormal signal through the first channel. The first channel is the channel between the first optical module and the second optical module, and the first optical module is connected to the first communication device. The second channel is at least one channel among the M channels corresponding to the first channel, and the M channels are the channels between the first optical module and the first communication device; The first optical module uses N channels out of M channels to receive and / or send data, and the N channels do not include the second channel, where N is less than M; The first optical module receives control information from the first communication device, and the second control information is used to instruct the first optical module to turn off the light emission corresponding to the first channel.
17. The method according to claim 16, wherein The channels other than the N channels among the M channels are not used to send and / or receive data.
18. The method according to claim 16 or 17, characterized in that, The control information is further used to instruct the first optical module to turn off the light emission corresponding to the second channel. The second channel is the channel between the first optical module and the second optical module, the M channels include the second channel, and the N channels do not include the second channel.
19. A data sending method, characterized in that, Including: The second optical module does not receive the optical signal sent by the first optical module through the first channel, and closes the signal of the second channel, or the second optical module receives an abnormal signal through the first channel. The first channel is the channel between the first optical module and the second optical module, and the second optical module is connected to the second communication device. The second channel is at least one channel among the M channels corresponding to the first channel, and the M channels are the channels between the second optical module and the second communication device; The second optical module uses N channels out of M channels to receive and / or send data, and the N channels do not include the second channel, where N is less than M.
20. The method according to claim 19, wherein The channels other than the N channels among the M channels are not used to send and / or receive data.
21. A communication device, characterized in that, For performing the method according to any one of claims 1 to 4.
22. A communication device, characterized in that, For performing the method according to any one of claims 5 to 8.
23. A communication device, characterized in that, For performing the method according to any one of claims 9 to 11.
24. A communication device, characterized in that, For performing the method according to any one of claims 12 to 15.
25. An optical module, characterized in that, For performing the method according to any one of claims 16 to 18.
26. An optical module, characterized in that, For performing the method according to any one of claims 19 to 20.
27. A communication device, characterized in that, Including: A processor for executing a program to cause the communication device to perform the method according to any one of claims 1 to 4.
28. A communication device, characterized in that, Comprising: A processor for executing a program to cause the communication device to perform the method according to any one of claims 5 to 8.
29. A communication device, characterized in that, Comprising: A processor for executing a program to cause the communication device to perform the method according to any one of claims 9 to 11.
30. A communication device, characterized in that, Comprising: A processor for executing a program to cause the communication device to perform the method according to any one of claims 12 to 15.
31. An optical module, characterized in that, Comprising: A processor for executing a program to cause the optical module to perform the method according to any one of claims 16 to 18.
32. An optical module, characterized in that, Comprising: A processor for executing a program to cause the optical module to perform the method according to any one of claims 19 to 20.
33. A computer-readable storage medium comprising instructions that, when run on a computer, cause the computer to perform the method according to any one of claims 1 to 4, or cause the computer to perform the method according to any one of claims 5 to 8, or cause the computer to perform the method according to any one of claims 9 to 11, or cause the computer to perform the method according to any one of claims 12 to 15, or cause the computer to perform the method according to any one of claims 16 to 18, or cause the computer to perform the method according to any one of claims 19 to 20.
34. A computer program product comprising instructions that, when run on a computer, cause the computer to perform the method according to any one of claims 1 to 4, or cause the computer to perform the method according to any one of claims 5 to 8, or cause the computer to perform the method according to any one of claims 9 to 11, or cause the computer to perform the method according to any one of claims 12 to 15, or cause the computer to perform the method according to any one of claims 16 to 18, or cause the computer to perform the method according to any one of claims 19 to 20.
Citation Information
Patent Citations
Data sending method, communication device and storage medium
CN120389797A
Optical communication system, dual-homing protection method and communication system
CN115842778A
Optical transmission system and optical transmission method
JP2013126035A
Redundancy and interoperability in multi-channel optoelectronic devices
US20090060520A1