Data transmission method, communication equipment and storage medium

By dividing the data stream into multiple sub-data streams in the optical communication system and sending them through independent links, combined with the link-level retransmission mechanism, the reliability and packet loss rate problems caused by transmission link abnormalities are solved, and data transmission with high reliability and low packet loss rate is achieved.

CN120378007APending Publication Date: 2025-07-25HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410114486.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-25
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

Anomalies in transmission links in optical communication systems lead to reduced data transmission reliability and increased packet loss rate.

Method used

By dividing the data stream into multiple sub-data streams in optical communication devices and sending them through different transmission links, a link-level retransmission mechanism is adopted to ensure that the data stream can still be successfully transmitted when any link is abnormal, reducing the packet loss rate.

Benefits of technology

It improves the reliability of data transmission and reduces the packet loss rate, and even achieves zero packet loss, which improves the throughput and bandwidth utilization of the communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120378007A_ABST
    Figure CN120378007A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data transmission method, communication equipment and a storage medium, which are used for improving the reliability of data transmission and reducing the packet loss rate in the data transmission process, and even can realize zero packet loss in cooperation with link-level retransmission when a transmission link is abnormal. The method is applied to a first communication device, the first communication device comprises a sending port, and the sending port is connected with a first sending module and a second sending module. The method comprises the following steps: a first communication device sends a first sub-data stream to a first sending module through a sending port, and the first sending module is used for sending the first sub-data stream to a second communication device. The first communication device sends a second sub-data stream to the second sending module through the sending port, the second sending module is used for sending the second sub-data stream to the second communication device, the first sub-data stream and the second sub-data stream are two paths of sub-data streams, and M is any integer not smaller than 2.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a data transmission method, a communication device, and a storage medium. Background Art

[0002] With the development of fields such as telecommunication networks, data centers, cloud computing, and industrial Internet of Things, optical communication systems are increasingly widely used. An optical communication system includes at least a first optical communication device and a second optical communication device. Data is transmitted between the first optical communication device and the second optical communication device through a transmission link. The transmission link includes an optical module of the first optical communication device, an optical fiber, and an optical module of the second optical communication device that are connected in sequence.

[0003] If the transmission link malfunctions, it will cause the traffic to be transmitted through the transmission link to be interrupted, reducing the reliability of data transmission. Summary of the Invention

[0004] Embodiments of this application provide a data transmission method, a communication device, and a storage medium, which are used to improve the reliability of data transmission and reduce the packet loss rate during data transmission. When the transmission link is abnormal, in cooperation with link-level retransmission, zero packet loss can even be achieved.

[0005] In a first aspect, an embodiment of the present application provides a method for transmitting data, and the method is applied to a first communication device. The first communication device includes a first single board, and a processor of the first single board includes a transmission port, and the transmission port is respectively connected to a first transmission module and a second transmission module. The method includes: First, the transmission port of the first communication device obtains M sub-data streams, where M is any integer not less than 2, and the M sub-data streams include a first sub-data stream and a second sub-data stream. For example, the processor of the first single board divides the target data stream into M sub-data streams. Another example is that the processor of the first single board sends the target data stream to the transmission port, and the transmission port divides the target data stream to obtain M sub-data streams. Then, the first communication device sends the first sub-data stream to the first transmission module through the transmission port. The first transmission module is used to send the first sub-data stream to the second communication device. Then, the first communication device sends the second sub-data stream to the second transmission module through the transmission port, and the second transmission module is used to send the second sub-data stream to the second communication device. Wherein, the first transmission link where the first transmission module is located is different from the second transmission link where the second transmission module is located. The first transmission link specifically includes a first transmission module, a first optical fiber, and a first receiving module. The first receiving module is connected to the receiving port of the second communication device, and the first optical fiber is connected between the first transmission module and the first receiving module. The second transmission link specifically includes a second transmission module, a second optical fiber, and a second receiving module. The second transmission module is connected to the transmission port, the second receiving module is connected to the receiving port, and the second optical fiber is connected between the second transmission module and the second receiving module. It can be understood that the first transmission link and the second transmission link are different from each other and independent, and are isolated from each other.

[0006] As shown in this aspect, the first communication device divides the data stream to be sent from the same transmission port, so as to obtain a first sub-data stream and a second sub-data stream. The first sub-data stream is sent to the second communication device through the first transmission module, and the second sub-data stream is sent to the second communication device through the second transmission module, so that the target data stream is transmitted to the second communication device through different transmission links. Then, when any type of abnormality occurs in any one of the first transmission link and the second transmission link, it will not cause the interruption of the traffic of the target data stream sent by the first communication device to the second communication device, improving the reliability of the data stream transmission from the first communication device to the second communication device.

[0007] Based on the first aspect, in an optional implementation manner, the rate of the first sub-data stream is equal to the rate of the second sub-data stream. By adopting this implementation manner, the balance of the rates received by the first transmission module and the second transmission module is effectively guaranteed, and the throughput of the communication system is improved.

[0008] Based on the first aspect, in an alternative implementation, between the sending port and the first sending module, they are connected through a first sending circuit, and between the sending port and the second sending module, they are connected through a second sending circuit. The first communication device sending the first sub-data stream to the first sending module through the sending port includes: the first communication device sending the first sub-data stream to the first sending module through the sending port and via the first sending circuit; the first communication device sending the second sub-data stream to the second sending module through the sending port includes: the first communication device sending the second sub-data stream to the second sending module through the sending port and via the second sending circuit.

[0009] Adopting this implementation, the same sending port of the first communication device is respectively connected to two different first sending modules and a second sending module, and the traffic of the target data stream is sent to the two different sending modules, effectively ensuring that even if one of the first transmission link and the second transmission link has an abnormality, the traffic between this sending port and the second communication device is not interrupted, improving the reliability of data transmission.

[0010] Based on the first aspect, in an alternative implementation, after the first communication device divides the target data stream into M sub-data streams, the method further includes: the first communication device detects that the first transmission link is abnormal, the first transmission link is the transmission link where the first sending module is located, and the first transmission link is connected between the first communication device and the second communication device; the first communication device sends at least part of the first sub-data stream to the second sending module through the sending port, and the second sending module is used to send the at least part of the first sub-data stream and the second sub-data stream to the second communication device.

[0011] Adopting this implementation, when the first transmission link is abnormal, the first sub-data stream that has entered this sending port will switch to the second transmission link for transmission. Combining with the link-level retransmission technology of the transmission link, the packet loss rate is reduced, and even zero packet loss can be achieved. Moreover, the first sub-data stream that has entered the sending port is directly transmitted through the second transmission link. On the premise of reducing the packet loss rate of the first sub-data stream transmission and even achieving zero packet loss, since there is no need to retransmit the first sub-data stream through the transport layer, compared with retransmission through the transport layer, the transmission delay of the first sub-data stream is effectively reduced.

[0012] Based on the first aspect, in an alternative implementation, the first data stream includes a first data unit and a second data unit. The timing of the sending port to send the first data unit is earlier than the timing of sending the second data unit. Each data unit can be a data packet or a data frame. If the first data unit has been transmitted through the first transmission link and the second data unit has not been transmitted through the first transmission link, and moreover, the first transmission link has an abnormality, and the first data unit has passed through the first transmission link but has not been successfully sent to the second communication device, then the sending port sends the first data unit and the second data unit to the second sending module. If the first data unit has been transmitted through the first transmission link and the second data unit has not been transmitted through the first transmission link, and moreover, the first transmission link has an abnormality, and the first data unit has passed through the first transmission link and has been successfully sent to the second communication device, then the sending port sends the second data unit to the second sending module. If both the first data unit and the second data unit have been transmitted through the first transmission link, and moreover, the first transmission link has an abnormality, and the first data unit and the second data unit have passed through the first transmission link but have not been successfully sent to the second communication device, then the sending port sends the first data unit and the second data unit to the second sending module. If both the first data unit and the second data unit have been transmitted through the first transmission link, and moreover, the first transmission link has an abnormality, and the first data unit and the second data unit have passed through the first transmission link and have been successfully sent to the second communication device, then the sending port does not need to send the first data unit and the second data unit to the second sending module.

[0013] By adopting this implementation, the packet loss rate of sending the data stream to the second communication device is effectively reduced because the sending port can retransmit data units and even achieve zero packet loss.

[0014] Based on the first aspect, in an alternative implementation, the first communication device further includes a crossbar unit. Before the first communication device sends the first sub-data stream to the first sending module through the sending port and via the first sending circuit, and the first communication device sends the second sub-data stream to the second sending module through the sending port and via the second sending circuit, the method further includes: the first communication device conducts the first sending circuit and the second sending circuit through the crossbar unit.

[0015] With this implementation method, the first communication device can flexibly conduct the circuits between the sending port and each sending module according to needs through the included cross unit, thereby controlling the data stream emitted from the sending port and specifically determining which sending module to send to, improving the flexibility of data stream transmission. In this example, to improve the reliability of data stream transmission and reduce the packet loss rate of data stream transmission, the cross unit can conduct the circuit between the sending port and the first sending module and can also conduct the circuit between the sending port and the second sending module.

[0016] Based on the first aspect, in an optional implementation method, before the first communication device conducts the first sending circuit and the second sending circuit through the cross unit, the method further includes: the first communication device detects that both the first transmission link and the second transmission link are normal. The first transmission link and the second transmission link are respectively connected between the first communication device and the second communication device. The first transmission link is the transmission link where the first sending module is located, and the second transmission link is the transmission link where the second sending module is located.

[0017] With this implementation method, to improve the reliability of data stream transmission, reduce the packet loss rate of data stream transmission, and even achieve zero packet loss, the cross unit can conduct the first sending circuit and the second sending circuit to ensure that the data stream emitted from the same sending port is sent to the second communication device through two different sending modules.

[0018] Based on the first aspect, in an optional implementation method, after the first communication device divides the target data stream into M sub-data streams, the method further includes: the first communication device detects that the first transmission link is abnormal. The first transmission link is the transmission link where the first sending module is located, and the first transmission link is connected between the first communication device and the second communication device; the first communication device sends at least part of the first sub-data stream to the second sending module through the sending port and via the second sending circuit, and the second sending module is used to send the at least part of the first sub-data stream and the second sub-data stream to the second communication device.

[0019] With this implementation method, when the first communication device detects that the first transmission link is abnormal, then, the data stream emitted from the same sending port is all sent to the second communication device through the second transmission link in a normal state. Then, even if the first transmission link is abnormal, it can ensure that the traffic sent from the first communication device to the second communication device is not interrupted, and effectively reduces the packet loss rate, and even achieves zero packet loss.

[0020] Based on the first aspect, in an optional implementation, after the first communication device detects that the first transmission link is abnormal, the method further includes: when the first communication device detects that the first transmission link is normal, the first communication device obtains a first data stream, where the first data stream is a part of the data stream to be sent through the second sending module; the first communication device sends the first data stream to the first sending module through the sending port; the first communication device sends a second data stream to the second sending module through the sending port.

[0021] With this implementation, when the first communication device detects that the first transmission link has recovered from abnormal to normal, the first communication device can re-allocate the transmission rates through the first transmission link and the second transmission link, so that the first transmission link that has recovered to normal transmits the data stream. While ensuring the reliability of the data stream transmission and reducing the packet loss rate, it can also ensure the balance of the transmission rates of each transmission link between the first communication device and the second communication device, effectively improving the bandwidth utilization rate between the first communication device and the second communication device.

[0022] Based on the first aspect, in an optional implementation, the first sending module includes a first optical module, the second sending module includes a second optical module, and the first optical module and the second optical module are respectively connected to the second communication device through optical fibers. The first communication device sending the first sub-data stream to the first sending module through the sending port includes: the first communication device sending the first sub-data stream to the first optical module through the sending port, and the first optical module performing electro-optical conversion on the first sub-data stream to obtain a first optical signal and sending the first optical signal to the second communication device. The first communication device sending the second sub-data stream to the second sending module through the sending port includes: the first communication device sending the second sub-data stream to the second optical module through the sending port. The second optical module performs electro-optical conversion on the second sub-data stream to obtain a second optical signal and sends the second optical signal to the second communication device. With this implementation, the first communication device and the second communication device are applied to an optical communication system.

[0023] Based on the first aspect, in an optional implementation, the first transmission module includes a first transmission antenna, and the second transmission module includes a second transmission antenna. The first communication device sending a first sub-data stream to the first transmission module through the transmission port includes: the first communication device sending the first sub-data stream to the first transmission antenna through the transmission port, and the first transmission antenna converting the first sub-data stream into a first electromagnetic wave and radiating the first electromagnetic wave to the second communication device. The first communication device sending a second sub-data stream to the second transmission module through the transmission port includes: the first communication device sending the second sub-data stream to the second transmission antenna. The second transmission antenna converts the second sub-data stream into a second electromagnetic wave and radiates the second electromagnetic wave to the second communication device. With this implementation, the first communication device and the second communication device are applied to a wireless communication system.

[0024] Based on the first aspect, in an optional implementation, the first transmission module includes a first connector, and the second transmission module includes a second connector. The first connector and the second connector are respectively connected to the second communication device through cables. The first communication device sending a first sub-data stream to the first transmission module through the transmission port includes: the first communication device sending the first sub-data stream to the first connector through the transmission port; the first communication device sending a second sub-data stream to the second transmission module through the transmission port includes: the first communication device sending the second sub-data stream to the second connector through the transmission port. With this implementation, the first communication device and the second communication device are connected through a cable.

[0025] In the second aspect of the embodiments of the present application, a data transmission method is provided. The method is applied to a second communication device, and the second communication device includes a receiving port. The receiving port is respectively connected to a first receiving module and a second receiving module. The method includes: the receiving port of the second communication device receiving a first sub-data stream from a first communication device through the first receiving module; the receiving port of the second communication device receiving a second sub-data stream from the first communication device through the second receiving module. The first sub-data stream and the second sub-data stream are two of the M sub-data streams, where M is any integer not less than 2. The M sub-data streams come from the same transmission port of the first communication device, and the transmission link where the first receiving module is located is different from the transmission link where the second receiving module is located. For the description of the beneficial effects of this aspect, please refer to what is shown in the first aspect and will not be elaborated here.

[0026] Based on the second aspect, in an optional implementation, between the receiving port and the first receiving module, they are connected through a first receiving circuit, and between the receiving port and the second receiving module, they are connected through a second receiving circuit. The receiving port of the second communication device receives a first sub-data stream from the first communication device through the first receiving module, including: the receiving port of the second communication device receives the first sub-data stream from the first receiving module via the first receiving circuit; the receiving port of the second communication device receives a second sub-data stream from the first communication device through the second receiving module, including: the receiving port of the second communication device receives the second sub-data stream from the second receiving module via the second receiving circuit.

[0027] Based on the second aspect, in an optional implementation, after the receiving port of the second communication device receives a first sub-data stream from the first communication device through the first receiving module, and the receiving port of the second communication device receives a second sub-data stream from the first communication device through the second receiving module, the method further includes: the second communication device combines the first sub-data stream and the second sub-data stream into a target data stream.

[0028] Based on the second aspect, in an optional implementation, the receiving port of the second communication device receives a second sub-data stream from the first communication device through the second receiving module, including: the second communication device detects that a first transmission link is abnormal; the receiving port of the second communication device receives the first sub-data stream and the second sub-data stream from the first communication device through the second receiving module, and the first transmission link is the transmission link where the first receiving module is located, and the first transmission link is connected between the first communication device and the second communication device.

[0029] Based on the second aspect, in an optional implementation, the second communication device further includes a cross unit. Before the receiving port of the second communication device receives the first sub-data stream from the first receiving module via the first receiving circuit, and the receiving port of the second communication device receives the second sub-data stream from the second receiving module via the second receiving circuit, the method further includes: the second communication device conducts the first receiving circuit and the second receiving circuit through the cross unit.

[0030] Based on the second aspect, in an optional implementation, the second communication device turns on the first receiving circuit and the second receiving circuit through the cross unit, including: the second communication device detects that both the first transmission link and the second transmission link are normal. The first transmission link and the second transmission link are respectively connected between the first communication device and the second communication device. The first transmission link is the transmission link where the first receiving module is located, and the second transmission link is the transmission link where the second receiving module is located.

[0031] Based on the second aspect, in an optional implementation, before the receiving port of the second communication device receives the second sub-data stream from the second receiving module via the second receiving circuit, the method further includes: the second communication device detects that the first transmission link is abnormal. The first transmission link is the transmission link where the first receiving module is located, and the first transmission link is connected between the first communication device and the second communication device; the method further includes: the receiving port of the second communication device receives the first sub-data stream from the second receiving module via the second receiving circuit.

[0032] Based on the second aspect, in an optional implementation, the first receiving module includes a first optical module, and the second receiving module includes a second optical module. The first optical module and the second optical module are respectively connected to the first communication device through optical fibers, and the receiving ports of the second communication device are respectively connected to the first optical module and the second optical module.

[0033] Based on the second aspect, in an optional implementation, the first receiving module includes a first receiving antenna, and the second receiving module includes a second receiving antenna. The receiving ports of the second communication device are respectively connected to the first receiving antenna and the second receiving antenna.

[0034] Based on the second aspect, in an optional implementation, the first receiving module includes a first connector, and the second receiving module includes a second connector. The first connector and the second connector are respectively connected to the first communication device through cables, and the receiving ports of the second communication device are respectively connected to the first connector and the second connector.

[0035] A third aspect of the embodiments of the present application provides a communication device, including a single board, a first sending module, and a second sending module. The sending ports of the single board are respectively connected to the first sending module and the second sending module. The transmission link where the first sending module is located is different from the transmission link where the second sending module is located. The single board is configured to divide a target data stream into M sub-data streams, where M is any integer not less than 2. The M sub-data streams include a first sub-data stream and a second sub-data stream. The sending port is configured to send the first sub-data stream to the first sending module, and the first sending module is configured to send the first sub-data stream to another communication device. The sending port is configured to send the second sub-data stream to the second sending module, and the second sending module is configured to send the second sub-data stream to the another communication device. For the description of the beneficial effects of this aspect, please refer to that shown in the first aspect, and details are not elaborated here.

[0036] Based on the third aspect, in an optional implementation, between the sending port and the first sending module, they are connected through a first sending circuit, and between the sending port and the second sending module, they are connected through a second sending circuit.

[0037] Based on the third aspect, in an optional implementation, the single board is further configured to detect that a first transmission link is abnormal. The first transmission link is the transmission link where the first sending module is located, and the first transmission link is connected between the communication device and the another communication device. The sending port is further configured to send at least part of the first sub-data stream to the second sending module, and the second sending module is configured to send the first sub-data stream and the second sub-data stream to the another communication device.

[0038] Based on the third aspect, in an optional implementation, the communication device further includes a cross unit. The cross unit is connected to the first sending circuit and the second sending circuit, and the cross unit is configured to conduct the first sending circuit and the second sending circuit.

[0039] A fourth aspect of the embodiments of the present application provides a communication device, including a housing. Inside the housing, there is a single board which includes a sending port. The housing is used for inserting and fixing a first sending module and a second sending module. The sending ports of the single board are respectively connected to the first sending module and the second sending module. The transmission link where the first sending module is located is different from the transmission link where the second sending module is located. The single board is used for dividing a target data stream into M sub-data streams, where M is any integer not less than 2. The M sub-data streams include a first sub-data stream and a second sub-data stream. The sending port is used for sending the first sub-data stream to the first sending module, and the first sending module is used for sending the first sub-data stream to another communication device. The sending port is used for sending the second sub-data stream to the second sending module, and the second sending module is used for sending the second sub-data stream to the another communication device. For the description of the beneficial effects of this aspect, please refer to that shown in the first aspect and will not be elaborated here.

[0040] A fifth aspect of the embodiments of the present application provides a communication device, including a single board, a first receiving module, and a second receiving module. The receiving ports of the single board are respectively connected to the first receiving module and the second receiving module. The transmission link where the first receiving module is located is different from the transmission link where the second receiving module is located. The receiving port is used for receiving a first sub-data stream from another communication device through the first receiving module. The receiving port is further used for receiving a second sub-data stream from the another communication device through the second receiving module. The first sub-data stream and the second sub-data stream are two of the M sub-data streams, where M is any integer not less than 2. The M sub-data streams come from the same sending port of the another communication device. The transmission link where the first receiving module is located is different from the transmission link where the second receiving module is located. For the description of the beneficial effects of this aspect, please refer to that shown in the first aspect and will not be elaborated here.

[0041] Based on the fifth aspect, in an optional implementation, between the receiving port and the first receiving module, they are connected through a first receiving circuit, and between the receiving port and the second receiving module, they are connected through a second receiving circuit.

[0042] Based on the fifth aspect, in an optional implementation, the communication device further includes a cross unit. The cross unit is connected to the first receiving circuit and the second receiving circuit, and the cross unit is used for conducting the first receiving circuit and the second receiving circuit.

[0043] A sixth aspect of the embodiments of the present application provides a communication device, including a housing, and a single board is included inside the housing. The single board includes a receiving port. The housing is used for inserting and fixing a first receiving module and a second receiving module, the receiving ports of the single board are respectively connected to the first receiving module and the second receiving module, and the transmission link where the first receiving module is located is different from the transmission link where the second receiving module is located; the single board is configured to: receive a first sub-data stream from another communication device through the first receiving module; receive a second sub-data stream from the another communication device through the second receiving module, where the first sub-data stream and the second sub-data stream are two of the M sub-data streams, and M is any integer not less than 2. For the description of the beneficial effects of this aspect, please refer to what is shown in the first aspect, and details are not described herein.

[0044] A seventh aspect of the embodiments of the present application provides a digital processing chip, including a processing chip and a memory. The memory and the processing chip are interconnected by a circuit. Instructions are stored in the memory, and the processing chip is configured to execute the method in any one of the first aspect to the second aspect.

[0045] An eighth aspect of the embodiments of the present application provides a computer storage medium, including instructions, which when running on a computer, cause the computer to execute the method in any one of the first aspect to the second aspect.

[0046] A ninth aspect of the embodiments of the present application provides a computer program product containing instructions, which when running on a computer, cause the computer to execute the method in any one of the first aspect to the second aspect.

[0047] A tenth aspect of the embodiments of the present application provides a communication system, which includes a first communication device and a second communication device. The first communication device is as shown in the above third aspect, and the second communication device is as shown in the above fifth aspect.

[0048] An eleventh aspect of the embodiments of the present application provides a communication system, which includes a first communication device and a second communication device. The first communication device is as shown in the above fourth aspect, and the second communication device is as shown in the above sixth aspect. The communication device further includes a first sending module, a second sending module, a first receiving module, and a second receiving module. Among them, the sending ports are respectively connected to the first sending module and the second sending module. The receiving ports are respectively connected to the first receiving module and the second receiving module. The first sending module is connected to the first receiving module. The second sending module is connected to the second receiving module. Description of the Drawings

[0049] Figure 1 It is a structural schematic diagram of the first embodiment of the communication system provided by the present application;

[0050] Figure 2 The first step flowchart of the data transmission method provided by this application;

[0051] Figure 3 The structural example diagram of an existing communication system;

[0052] Figure 4 The second step flowchart of the data transmission method provided by this application;

[0053] Figure 5 For Figure 1 The example diagram where the transmission link shown has an abnormality;

[0054] Figure 6a For Figure 3 The example diagram where the transmission link shown has an abnormality;

[0055] Figure 6b For Figure 6a The example diagram of the data flow timing;

[0056] Figure 7 The third step flowchart of the data transmission method provided by this application;

[0057] Figure 8 The structural example diagram of the second embodiment of the communication system provided by this application;

[0058] Figure 9 For Figure 8 The example diagram of the cross unit shown;

[0059] Figure 10 The fourth step flowchart of the data transmission method provided by this application;

[0060] Figure 11 The fifth step flowchart of the data transmission method provided by this application;

[0061] Figure 12 The sixth step flowchart of the data transmission method provided by this application;

[0062] Figure 13 The structural example diagram of the third embodiment of the communication system provided by this application;

[0063] Figure 14 The structural example diagram of the fourth embodiment of the communication system provided by this application;

[0064] Figure 15 The structural example diagram of the fifth embodiment of the communication system provided by this application;

[0065] Figure 16 The structural example diagram of the sixth embodiment of the communication system provided by this application. Detailed implementation manners

[0066] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0067] The embodiments of the present application provide a data transmission method, which effectively improves the reliability of data transmission and reduces the packet loss rate during data transmission. When the transmission link is abnormal, in cooperation with link-level retransmission, zero packet loss can even be achieved. To better understand the method shown in this embodiment, first, in combination with Figure 1 the structure of the communication system to which the method shown in the embodiments of the present application is applied will be described as shown below. Figure 1 FIG. is a schematic structural diagram of the first embodiment of the communication system provided by the present application. The communication system includes a first communication device 100 and a second communication device 110. Figure 1The communication system shown takes an optical communication system as an example. Then, the first communication device 100 and the second communication device 110 are connected by an optical fiber. The number of communication devices included in this example for the optical communication system is not limited. The networking type of the optical communication system in this example is not limited. For example, the optical communication system can adopt a chain networking, ring networking, star networking, etc. The network type applied to the optical communication system in this example is not limited. For example, both the first communication device 100 and the second communication device 110 can be switches. Another example is that if the optical communication system shown in this example is applied to a passive optical network (PON), one of the first communication device 100 and the second communication device 110 can be an optical network unit (ONU) or an optical network terminal (ONT), and the other of the first communication device 100 and the second communication device 110 can be an optical line terminal (OLT). If the optical communication system is applied to an optical transport network (OTN), both the first communication device 100 and the second communication device 110 can be OTN devices. The optical communication system shown in this example can also be applied to a data center network (DCN), a metropolitan area network, etc., without specific limitation. Taking the first communication device 100 as an example, the device type of the first communication device 100 in this example is not limited. For example, the first communication device 100 can be an optical transmission device, an optical access device, a router, a wireless base station, a wireless remote access device, a wireless baseband signal processing device, etc., or it can also be a computing server (usually simply referred to as a server), a high performance computer (HPC), a storage server, or a memory resource pool, etc. The description of the type of the first communication device 100 in this example is an optional example, as long as the first communication device 100 has an electro-optical conversion function and an optical interface capable of connecting to an optical fiber. For the description of the type of the second communication device 110, please refer to the description of the first communication device 100, and no specific elaboration will be made here.

[0068] Taking the first communication device 100 as an example, the first communication device 100 specifically includes a first single board 101. The first single board 101 can be an integrated device with the first communication device 100, or the first single board 101 is an independent pluggable single board in the first communication device 100. Then, the first single board 101 is one of the multiple single boards included in the first communication device. The number of the first single boards 101 included in the first communication device 100 is not limited in this embodiment. The first single board 101 can be used for data processing, or for data cross-connection, or for auxiliary functions. The auxiliary functions can be external alarms, accessing external clocks, etc. To implement the above functions, the first single board 101 includes a processor and memory, etc. The type of the processor is not limited in this embodiment. For example, the processor can include one or more chips, or one or more integrated circuits. Also, the processor can include one or more switching chips, neural processing unit (NPU), optical digital signal processor (oDSP), field-programmable gate array (FPGA), application specific integrated circuit (ASIC), system on chip (SoC), central processor unit (CPU), network processor (NP), microcontroller unit (MCU), programmable logic device (PLD), network card chip, storage interface chip, or one or more of other integrated chips, which will not be elaborated here. The processor of the first single board 101 includes N transmission ports, where N is any integer not less than 1. In this embodiment, taking N = 2 as an example, then the processor of the first single board 101 includes a first transmission port 102 and a second transmission port 103. Taking the first transmission port 102 as an example, the first transmission port 102 is a physical interface for connecting to other communication devices. The first transmission port 102 includes a processing module. For the description of the type of this processing module, reference can be made to the description of the type of the processor included in the first single board 101, which will not be elaborated here. The structure of the first transmission port 102 is not limited in this embodiment. The first transmission port 102 can create a link for data transmission with the second communication device 110. For the description of the second transmission port 103 included in the first single board 101, reference can be made to the description of the first transmission port 102, which will not be elaborated here.

[0069] The first communication device 100 further includes a first transmission module 104 and a second transmission module 105. Since the communication system shown in this embodiment is an optical communication device, the first transmission module 104 and the second transmission module 105 are respectively optical modules, which can also be referred to as optoelectronic conversion modules or optical transceiver modules, etc. This embodiment does not limit the number of transmission modules included in the first communication device 100. Specifically, the first transmission port 102 includes i first electrical interfaces and j second electrical interfaces. i and j are respectively any integers greater than 1. The i first electrical interfaces are respectively connected to the first transmission module 104, and the j second electrical interfaces are respectively connected to the second transmission module 105. For example, the first single board 101 includes a printed circuit board (PCB). The first transmission port 102 and the first transmission module 104 are both encapsulated on this PCB. Then, the first electrical interface and the first transmission module 104 are connected through conductive traces on the PCB. The description of the connection between the first electrical interface and the first transmission module 104 in this embodiment is an optional example and is not limited. In this example, taking both i and j as 2, the first transmission port 102 and the first transmission module 104 are connected through two first transmission circuits, and the first transmission port 102 and the second transmission module 105 are connected through two second transmission circuits. The first transmission circuit and the second transmission circuit are both circuits formed by conductive traces on the PCB. Among the four transmission circuits connected to the first transmission port 102, the rate of each transmission circuit is 112 gigabits per second (Gbps). It should be clear that this embodiment takes the rate of each transmission circuit connected to the first transmission port 102 as the same. In other examples, the rates of different transmission circuits connected to the first transmission port 102 can be different, and specifically, it is not limited. For the description of the connection between the second electrical interface and the second transmission module 105, please refer to the description of the connection between the first electrical interface and the first transmission module 104, and details are not repeated here. Similarly, the second transmission port 103 includes K first electrical interfaces and L second electrical interfaces, where K and L are respectively any integers greater than 1. Among them, the K first electrical interfaces are connected to the first transmission module 104, and the L second electrical interfaces are connected to the second transmission module 105. It can be understood that in the communication system shown in this embodiment, the same transmission module is connected to multiple transmission ports. For example, the first transmission module 104 is connected to the i first electrical interfaces of the first transmission port 102 and the K first electrical interfaces of the second transmission port 103. Between the first transmission module 104 and the second communication device, they are connected through i + K optical fibers. This embodiment takes i + K optical fibers being located in the same optical cable as an example. In other examples, the i + K optical fibers can be located in multiple optical cables, and the number of optical cables connected between the first communication device 100 and the second communication device 110 is not limited. This embodiment does not limit the number of transmission ports connected to the same transmission module.

[0070] The second communication device 110 includes a second single board 111, a first receiving port 112, and a second receiving port 113. For the descriptions of the second single board 111, the first receiving port 112, and the second receiving port 113, please refer to the descriptions of the first single board 101 and the first transmitting port 102, and no specific details will be elaborated here. The first receiving port 112 of the second single board 111 is respectively connected to a first receiving module 114 and a second receiving module 115, and the second receiving port 113 is respectively connected to the first receiving module 114 and the second receiving module 115. Between the first receiving port 112 of the second single board 111 and the first receiving module 114, and between the first receiving port 112 and the second receiving module 115, they are connected through a receiving circuit. For the description of the receiving circuit, please refer to the description of the transmitting circuit of the first communication device 100, and no specific details will be elaborated here. For the descriptions of the respective receiving modules included in the second communication device 110, please refer to the descriptions of the respective transmitting modules included in the first communication device 100, and no specific details will be elaborated here.

[0071] In this embodiment, it is taken as an example that the first transmitting module 104 and the first receiving module 114 are connected through a first optical fiber 121, and the second transmitting module 105 and the second receiving module 115 are connected through a second optical fiber 122. The number of the first optical fiber 121 and the second optical fiber 122 is not limited in this embodiment. For example, the first transmitting module 104 and the first receiving module 114 can be connected through at least one optical fiber. In this embodiment, it is taken as an example that the first transmitting module 104 and the first receiving module 114 are directly connected through the first optical fiber 121. In other examples, between the first transmitting module 104 and the first receiving module 114, at least one optical amplification site for amplifying the optical power can also be connected, or for example, at least one scheduling site for scheduling the transmission direction of the optical signal can also be connected, etc., and no specific limitations are made. The number and type of the first optical fiber 121 are not limited in this embodiment. For example, if the number of the first optical fiber 121 is 4, then the first transmitting module 104 and the first receiving module 114 can be connected through a short range 4 multi-mode fiber (SR4).

[0072] The above takes the first communication device 100 as the sender of the data stream and the second communication device 110 as the receiver of the data stream as an example, without limitation. The first communication device 100 can also be the receiver of the data stream, and the second communication device 110 can be the sender of the data stream. For this reason, the second single board 111 of the second communication device 110 further includes a first sending port 116 and a second sending port 117, and the second communication device 110 further includes a first sending module 118 and a second sending module 119. For specific descriptions, please refer to the descriptions of the first sending port 102, the second sending port 103, the first sending module 104, and the second sending module 105 of the first communication device 100, which will not be elaborated here. The first communication device 100 further includes a first receiving port 108, a second receiving port 109, a first receiving module 106, and a second receiving module 107. For specific descriptions, please refer to the descriptions of the first receiving port 112, the second receiving port 113, the first receiving module 114, and the second receiving module 115 included in the second communication device 110, which will not be elaborated here. Taking the first communication device 100 as an example, the sending port for implementing data stream sending and the receiving port for implementing data stream receiving are physically different ports. In other examples, the sending port for implementing data stream sending and the receiving port for implementing data stream receiving can be the same physical port. For example, the first sending port 102 and the first receiving port 108 are divided by logical functions and can be the same physical port physically. Similarly, the second sending port 103 and the second receiving port 109 are divided by logical functions and can be the same physical port physically. For the descriptions of the ports of the second communication device 110, please refer to the descriptions of the ports of the first communication device 100, which will not be elaborated here.

[0073] In combination with Figure 1 and Figure 2 as shown, the execution process of the data transmission method provided by the embodiments of the present application is described, where Figure 2 is the first step flow chart of the data transmission method provided by the present application.

[0074] Step 201, the first sending port obtains M sub-data streams.

[0075] The processor of the first single board 101 includes a first sending port 102 and a second sending port 103. The processor of the first single board 101 obtains a target data stream, and the target data stream includes multiple data units. The destination address carried by each data unit is the second communication device, or the final address that needs to be exchanged through the second communication device. The destination address can be the media access control (MAC) address that finally receives the M sub-data streams. The data unit can be a data packet or a data frame.

[0076] The processor of the first single board divides the target data stream into M sub-data streams. Specifically, the first sending port 102 included in the processor of the first single board is connected to i first sending modules and K second sending modules. Then, the first communication device divides the target data stream into M (M = i + K) sub-data streams. In this example, M = i + K is taken as an example. In other examples, M can also be any integer less than i + K and greater than 2. In this embodiment, it is taken as an example that the M sub-data streams include a first sub-data stream and a second sub-data stream. The number of the first sub-data stream and the number of the second sub-data stream are not limited in this embodiment. For example, if both i and K are 2, then the first single board divides the target data stream into four sub-data streams. The four sub-data streams specifically include two first sub-data streams and two second sub-data streams, and the rate of each sub-data stream is 112 Gbps.

[0077] The processor of the first single board 101 sends or forwards the first sub-data stream and the second sub-data stream to the first sending port 102. The first sending port 102 sends the first sub-data stream to the first sending module 104 and sends the second sub-data stream to the second sending module 105. For example, the processor of the first single board sets a first identifier in the divided first sub-data stream and sets a second identifier in the second sub-data stream. The first identifier corresponds to the first sending module 104, and the second identifier corresponds to the second sending module 105. Then, the first sending port 102 sends the first sub-data stream to the first sending module 104 according to the first identifier and sends the second sub-data stream to the second sending module 105 according to the second identifier.

[0078] The above example takes the processor of the first single board 101 dividing the target data stream to obtain M sub-data streams as an example. In other examples, the processor of the first single board 101 directly sends the target data stream to the first sending port 102. The processing module included in the first sending port 102 divides the target data stream to obtain M sub-data streams. For the description of the process of the first sending port 102 dividing the target data stream, please refer to the description of the processor of the first single board 101 dividing the target data stream, and details are not elaborated here.

[0079] Step 202: The first sending port sends the first sub-data stream to the first sending module.

[0080] Step 203: The first sending port sends the second sub-data stream to the second sending module.

[0081] In this embodiment, when the first sending port 102 of the first single-board 101 processor obtains the first sub-data stream and the second sub-data stream, the first sending port 102 sends the first sub-data stream to the first sending module 104. The first sending port 102 also sends the second sub-data stream to the second sending module 105. For the description of the connection between the first sending port 102 and the first sending module 104 and the second sending module 105 respectively, please refer to Figure 1 the corresponding description, which will not be elaborated here. Specifically, between the first sending port 102 and the first sending module 104, they are connected through the first sending circuit. Then, the first sending port 102 sends the first sub-data stream to the first sending module 104 via the first sending circuit. For the description of the first sending circuit, please refer to Figure 1 the corresponding description, which will not be elaborated here. Similarly, between the first sending port 102 and the second sending module 105, they are connected through the second sending circuit. Then, the first sending port 102 sends the second sub-data stream to the second sending module 105 via the second sending circuit. For the description of the second sending circuit, please refer to Figure 1 the corresponding description, which will not be elaborated here.

[0082] In this embodiment, taking the case where the rate of the first sub-data stream is the same as that of the second sub-data stream as an example. For example, the rates of the two first sub-data streams are respectively 25% of the target data stream rate, and the rates of the two second sub-data streams are respectively 25% of the target data stream rate, which effectively ensures the balance of the rates received by the first sending module and the second sending module, and improves the throughput of the communication system.

[0083] This embodiment does not limit the timing executed between step 202 and step 203.

[0084] Step 204, the first sending module sends the first sub-data stream to the second communication device.

[0085] As Figure 1 shown, the first sending module 104 is an optical module. When the first sending module 104 receives the first sub-data stream, it performs electro-optical conversion on the first sub-data stream to obtain the first optical signal. The first sending module 104 is connected to the first receiving module 114 through the first optical fiber 121. Then, the first sending module 104 sends the first optical signal to the first receiving module 114 through the first optical fiber 121.

[0086] This embodiment takes the example that the first transmission module 104 obtains two first sub-data streams from different transmission ports, and performs electro-optical conversion on the two first sub-data streams respectively to obtain two first optical signals. Then, taking the connection of two optical fibers between the first transmission module 104 and the first reception module 114 as an example. The two optical fibers are respectively used to transmit the two first optical signals. In other examples, the first communication device 100 may further include a wavelength division multiplexer (WDM) connected to the first transmission module 104. The WDM is used to perform wavelength division multiplexing on the two first optical signals into one optical signal, and transmit it to the second communication device 110 through a first optical fiber 121.

[0087] Step 205: The second transmission module sends a second sub-data stream to the second communication device.

[0088] The second transmission module 105 is also an optical module. When the second transmission module 105 receives the second sub-data stream, it performs electro-optical conversion on the second sub-data stream to obtain a second optical signal. The second transmission module 105 is connected to the second reception module 115 through a second optical fiber 122. Then, the second transmission module 105 sends the second optical signal to the second reception module 115 through the second optical fiber 122. For the description of the second transmission module sending the second sub-data stream to the second communication device, please refer to the description of the first transmission module sending the first sub-data stream to the second communication device shown in step 204, and details are not described here.

[0089] As can be seen from combining step 204 and step 205, the transmission link where the first transmission module 104 is located is different from the transmission link where the second transmission module 105 is located. Specifically, the first transmission module 104 is in the first transmission link, and the second transmission module 105 is in the second transmission link. Among them, the first transmission link specifically includes the first transmission module 104, the first optical fiber 121, and the first reception module 114. The second transmission link specifically includes the second transmission module 105, the second optical fiber 122, and the second reception module 115. It can be understood that the first transmission link and the second transmission link shown in this embodiment are different from each other and independent. Optionally, the first transmission link shown in this embodiment may further include the circuit between the first transmission module 104 and the first transmission port of the processor. The second transmission link may further include the circuit between the second transmission module 105 and the first transmission port of the processor. This embodiment does not limit the first transmission link and the second transmission link, as long as the first sub-data stream and the second sub-data stream can be transmitted to the second communication device via the first transmission link and the second transmission link respectively.

[0090] This embodiment does not limit the execution timing between step 204 and step 205.

[0091] Step 206: The first receiving module sends a first sub-data stream to the first receiving module.

[0092] The first receiving module 114 receives a first optical signal via the first optical fiber 121, and performs optoelectronic conversion on the first optical signal to obtain a first sub-data stream. The first receiving module 114 shown in this embodiment may have multiple first receiving channels, and each first receiving channel is used to perform optoelectronic conversion on a different first optical signal to obtain a first sub-data stream. The first receiving communication sends the first sub-data stream to the connected first receiving port. For example, the first receiving module 114 has two first receiving channels, and each first receiving channel is respectively connected to the first optical fiber 121 and the first receiving port 112. The first receiving channel receives the first optical signal from the first optical fiber 121, and performs optoelectronic conversion on the first optical signal to obtain a first sub-data stream. The first receiving channel sends the first sub-data stream to the first receiving port 112.

[0093] Step 207: The second receiving module sends a second sub-data stream to the first receiving port.

[0094] The second receiving module 115 shown in this embodiment has multiple second receiving channels, and each second receiving channel is used to perform optoelectronic conversion on a different second optical signal to obtain a second sub-data stream. The second transmission channel sends the second sub-data stream to the corresponding receiving port. For example, the second receiving module 115 has two second receiving channels, and each second receiving channel is respectively connected to the second optical fiber 122 and the first receiving port 112. The second receiving channel receives the second optical signal from the second optical fiber 122, and performs optoelectronic conversion on the second optical signal to obtain a second sub-data stream. The second receiving channel transmits the second sub-data stream to the first receiving port 112.

[0095] The first receiving module shown in this embodiment is connected to the first receiving port through a first receiving circuit. The second receiving module is connected to the first receiving port through a second receiving circuit. For the descriptions of the first receiving circuit and the second receiving circuit, please refer to Figure 1 the corresponding descriptions, and details are not elaborated here.

[0096] As can be seen from Steps 207 and 208, the first transmission link where the first receiving module 114 is located is different from the second transmission link where the second receiving module 115 is located. For the descriptions of the first transmission link and the second transmission link, please refer to the above embodiments, and details are not elaborated here.

[0097] Step 208: The first receiving port combines the first sub-data stream and the second sub-data stream into a target data stream.

[0098] When the first receiving port 112 of the second single board 111 receives the first sub-data stream from the first receiving module 114 and the second sub-data stream from the second receiving module 115, the first receiving port 112 can sort the first sub-data stream and the second sub-data stream to obtain the target data stream. For example, taking each data unit included in the data stream as a data frame, the first receiving port 112 can sort according to the frame number carried in the frame header of the first sub-data stream and the frame number carried in the frame header of the second sub-data stream, and sort according to the timing indicated by the frame number to obtain the target data stream. In this embodiment, taking the first receiving port 112 to sort the first sub-data stream and the second sub-data stream as an example, there is no limitation. For example, the first receiving port 112 can send the first sub-data stream and the second sub-data stream to the processor of the second single board 111, and the processor included in the second single board 111 merges the first sub-data stream and the second sub-data stream. For the description of the merger, please refer to the description of the first receiving port 112 merging the target data stream, and the details will not be elaborated here.

[0099] It should be clear that step 208 is an optional step. The second communication device may not merge the sub-data streams, but directly continue to forward or receive each sub-data stream according to the destination address carried by the sub-data stream. For example, if the second communication device 110 is a switch, the switch is also connected to another communication device. For example, the switch is connected to any type of communication device such as an NPU. When the destination address carried by the first sub-data stream and the destination address carried by the second sub-data stream are both the address of the NPU, then, the first receiving port 112 does not need to execute the data stream merging process, but directly sends the first sub-data stream and the second sub-data stream to the NPU according to the destination address.

[0100] In this embodiment, taking the first receiving module and the second receiving module both being connected to the same first receiving port 112 of the second single board processor as an example. In other examples, the first receiving module and the second receiving module can be connected to different receiving ports of the second single board processor. For example, the first receiving module can be connected to the first receiving port of the second single board processor, while the second receiving module can be connected to the second receiving port of the second single board processor. The processor of the second single board receives the first sub-data stream and the second sub-data stream through the first receiving port and the second receiving port respectively. This embodiment does not limit the structure of the second communication device.

[0101] To better understand the beneficial effects of the method provided in this embodiment, first, in combination with Figure 3 describe the existing communication system. Among them, Figure 3 is a structural example diagram of the existing communication system. Figure 3The communication system shown includes a first communication device 300 and a second communication device 310. For the descriptions of the types of the first communication device 300 and the second communication device 310, please refer to Figure 1 the corresponding descriptions, which will not be elaborated here. The first communication device 300 includes a first single board 301. The first transmission port 302 of the first single board 301 is only connected to the first transmission module 304. The second transmission port 303 of the first single board 301 is only connected to the second transmission module 305. Comparing Figure 1 and Figure 3 as shown, in the existing first communication device 300, the same transmission port of the first single board 301 is only connected to one transmission module. However, Figure 1 in the first communication device 100 as shown, the same transmission port of the first single board 301 is connected to multiple transmission modules. The second communication device 310 includes a second single board 311. The first reception port 312 of the second single board 311 is connected to the first reception module 314. The second reception port 313 of the second single board 311 is connected to the second reception module 315. Comparing Figure 1 and Figure 3 as shown, in the existing second communication device 310, the same reception port of the second single board 311 is only connected to one reception module. However, Figure 1 in the second communication device 310 as shown, the same reception port of the second single board 311 is connected to multiple reception modules. For the descriptions of each transmission port, transmission module, reception port, and reception module, please refer to Figure 1 the corresponding descriptions, which will not be elaborated here.

[0102] Based on Figure 3 the existing communication system as shown, when the target data stream to be sent to the second communication device is obtained at the first transmission port 302, the first transmission port 302 sends the target data stream to the first transmission module 304. Compared with Figure 1 the corresponding communication system, there is no connection relationship between the first transmission port 302 and the second transmission module 305. Then, the first transmission port 302 will not send a data stream to the second transmission module 305. The first transmission module 304 performs electro-optical conversion on the target data stream from the first transmission port 302 to obtain a target optical signal. The first transmission module 304 sends the target optical signal to the first reception module 314 through the first optical fiber 321. The first reception module 314 performs opto-electrical conversion on the target optical signal to obtain a target data stream, and sends the target data stream to the first reception port 312.

[0103] However, in existing communication systems, the first transmission link includes a first sending module 304, a first optical fiber 321, and a second receiving module 314. If the first transmission link is abnormal, then the target data stream cannot be transmitted to the second communication device via the first transmission link, reducing the reliability of the target data stream transmission.

[0104] By using the method shown in this embodiment, the first communication device divides the target data stream to obtain a first sub-data stream and a second sub-data stream. The first sub-data stream is sent to the second communication device through the first sending module, and the second sub-data stream is sent to the second communication device through the second sending module, so that the target data stream is transmitted to the second communication device through different transmission links. The sending modules, receiving modules, and optical fibers included in different transmission links are all different. Then, when any type of abnormality occurs in either the first transmission link or the second transmission link, the traffic interruption of the target data stream sent from the first communication device to the second communication device will not occur. For example, the first sub-data stream in the target data stream is sent to the second communication device through the first transmission link, and the second sub-data stream in the target data stream is sent to the second communication device through the second transmission link. If the first sending module in the first transmission link fails, however, the second transmission link is working properly, then it can be ensured that at least part of the target data stream (i.e., the second sub-data stream) can be successfully sent to the second communication device, improving the reliability of the target data stream transmission, thereby effectively reducing the packet loss rate of the target data stream transmission. Continue to refer to Figure 1 As shown, for example, the first sending module 104 fails, but since the second sub-data stream will be sent to the second communication device 110 through the second transmission link, then the first receiving port 112 will still successfully receive the second sub-data stream from the second receiving module 115, improving the reliability of the data stream transmission from the first communication device 100 to the second communication device.

[0105] The following combines Figure 4 the embodiment shown to illustrate how to transmit the data stream if Figure 1 the first transmission link shown Figure 4 is abnormal. Among them,

[0106] Step 401: The first sending port obtains M sub-data streams.

[0107] For the description of the execution process of step 401 shown in this embodiment, please refer to Figure 2 the corresponding step 201 shown, and details are not elaborated here.

[0108] Step 402: The first sending port detects that the first transmission link is abnormal.

[0109] Combined withFigure 5 as shown, where, Figure 5 is Figure 1 an example diagram showing an abnormality in the transmission link shown. The first transmission link includes a first transmission module 104, a first optical fiber 121, and a second receiving module 114. For a specific description of the first transmission link, please refer to Figure 1 and Figure 2 the corresponding description, which will not be elaborated here. The abnormality of the first transmission link includes at least one of the following situations:

[0110] The first transmission link has a flash of the optical port, a decrease in the performance of the first transmission module 104, and a decrease in the performance of the first receiving module 114. In this embodiment, the situations of the abnormality of the first transmission link are not limited. As long as the first transmission link is abnormal, it will cause the first receiving module 114 to be unable to receive the data stream, or the bit error rate of the received data stream is too high, or the packet loss rate of the received data stream is too high, etc. Among them, the decrease in the performance of the first transmission module 104 may refer to that the temperature of the first transmission module 104 is too high, the first transmission module 104 is aging, there are device defects, etc. The decrease in the performance of the first transmission module 104 will cause the quality of the optical signal emitted by the first transmission module 104 to decrease, the output optical power to be unstable, and the wavelength of the optical signal emitted by the first transmission module 104 to drift, etc. For the description of the decrease in the performance of the first receiving module 114, please refer to the description of the decrease in the performance of the first transmission module 104, which will not be elaborated here. In this embodiment, the type of the flash of the optical port of the first transmission link is not limited.

[0111] The flash of the optical port includes at least one of the following:

[0112] The first optical fiber 121 is damaged, the optical attenuation (also known as the energy attenuation of optical quanta) of the first optical fiber 121 is too large, the first optical fiber 121 is overly bent, the first optical fiber connector is damaged, the connection between the first optical fiber connector and the first optical fiber adapter is poorly contacted, the second optical fiber connector is damaged, and the connection between the second optical fiber connector and the second optical fiber adapter is poorly contacted. Among them, both ends of the first optical fiber 121 are respectively connected to the first optical fiber connector and the second optical fiber connector. The first optical fiber connector is connected to the first optical fiber adapter of the first transmission module 104. The second optical fiber connector is connected to the second optical fiber adapter of the first receiving module 114.

[0113] The following describes an optional method for the first transmission port to detect an abnormality in the first transmission link:

[0114] Optional method 1

[0115] The first receiving module 114 of the second communication device 110 receives the first optical signal from the first optical fiber 121. For the description of the first optical signal, please refer to Figure 2For corresponding embodiments, details are not described herein. The first receiving module 114 performs optoelectronic conversion on the first optical signal to obtain a first sub-data stream, and sends the first sub-data stream to the first receiving port 112. The first receiving port 112 detects the first sub-data stream to detect whether an abnormality occurs in the first transmission link. In this embodiment, the first receiving port 112 detects whether the bit error rate of the first sub-data stream is greater than the bit error rate threshold. If so, the first receiving port 112 determines that the first transmission link is abnormal. For another example, if the forward error correction (FEC) decoding of the first sub-data stream by the first receiving port 112 fails, the first receiving port 112 determines that the first transmission link is abnormal. For another example, the first receiving port 112 detects whether the packet loss rate of the first sub-data stream is greater than the packet loss rate threshold. If so, the first receiving port 112 determines that the first transmission link is abnormal. It should be noted that the description of the second receiving device detecting the abnormality of the first transmission link in the embodiment is not limited. The first receiving port 112 may also directly send the first sub-data stream to the processor of the second single board 111, and the processor of the second single board 111 detects whether the first transmission link is abnormal according to the first sub-data stream.

[0116] In this embodiment, if the third optical fiber 123 connected between the first receiving module 106 of the first communication device and the first sending module 118 of the second communication device is normal, then the second communication device sends an abnormality indication message to the first communication device through the third optical fiber 123. The abnormality indication message is used to indicate that the first transmission link is abnormal. For the description of the process of the second communication device 110 sending an abnormality indication message to the first communication device 100, please refer to Figure 2 For the description of the first communication device 100 sending a data stream to the second communication device 110 corresponding thereto, details are not described herein. Specifically, the abnormality indication message carries an identifier of the first transmission link. Then, the first single board sends the abnormality indication message to the first sending port, and the first sending port determines that the first transmission link is abnormal according to the abnormality indication message. The first optical fiber 121 and the third optical fiber 123 shown in this embodiment may be located in the same optical cable, or the first optical fiber 121 and the third optical fiber 123 may be located in different optical cables, which is not specifically limited.

[0117] Optional method 2

[0118] The first communication device 100 locally has the function of detecting whether the first transmission link is abnormal. For example, the first sending port of the first single-board processor detects whether the first transmission link is abnormal by means of heartbeat detection. The first sending port sends a heartbeat data packet to the second communication device 111 through the first transmission link. If the first transmission link is normal, then the second communication device 110 can successfully receive the heartbeat data packet and send a heartbeat response data packet to the first communication device through the third optical fiber 123. If the first sending port determines that the heartbeat response data packet is successfully received within the time period counted by the timer, it indicates that the first transmission link is normal. If the first sending port determines that the heartbeat response data packet is not received after exceeding the time period counted by the timer, it indicates that the first transmission link is abnormal. It should be noted that the description of the first communication device 100 locally detecting whether the first transmission link is abnormal in this embodiment is not limited. It should be noted that in this embodiment, taking the first sending port detecting whether the first transmission link is abnormal as an example, in other examples, the processor of the first single board may also detect whether the first transmission link is abnormal and send an indication message for indicating that the first transmission link is abnormal to the first sending port, and the specific details are not limited.

[0119] Step 403: The first sending port sends the first sub-data stream to the second sending module.

[0120] In Figure 2 In the corresponding embodiment, the first transmission link was originally used to transmit the first sub-data stream. However, in this embodiment, since the first sending port detects that the first transmission link is abnormal, if the first sub-data stream continues to be transmitted through the first transmission link, the error rate of the first sub-data stream transmission will be too high, or even a transmission interruption will occur. Therefore, in the first single board shown in this embodiment, the traffic to be transmitted through the first transmission link (i.e., the first sub-data stream) is switched to the second transmission link for transmission, so as to ensure that the first sub-data stream can be successfully sent to the second communication device 110, and cooperate with the link-level retransmission mechanism to achieve zero packet loss in the transmission of the target data stream. To achieve the purpose of switching the first sub-data stream from the first transmission link to the second transmission link for transmission, the first sending port 102 sends the obtained first sub-data stream to the second sending module 105. For example, the first sending port has a total of two sending circuits, where one is connected to the first sending module through the first sending circuit and the other is connected to the second sending module through the second sending circuit. Then, the first sending port can send the data stream to the second sending module via the second sending circuit.

[0121] The following describes several optional examples of the first sending port cooperating with the link-level retransmission mechanism to send the first sub-data stream to the second sending module:

[0122] Example 1

[0123] When the first sending port detects an abnormality in the first transmission link and the first sub-data stream has not been transmitted to the first transmission link, the first sending port directly sends the first sub-data stream to the second sending module.

[0124] Example 2

[0125] The first sub-data stream includes a plurality of data units arranged in sequence. For example, the data units are arranged in sequence from the front to the back according to the time sequence, such as data unit 1, data unit 2, and so on, data unit P-1, data unit P. When the first sending port detects an abnormality in the first transmission link, part of the first sub-data stream has been transmitted through the first transmission link. For example, the first data unit group in the first sub-data stream has been transmitted through the first transmission link, while the second data unit group has not been transmitted through the first transmission link. It can be understood that in the first sub-data stream, the sorting of the first data unit group is before the second data unit group. Specifically, in the first sub-data stream, data unit 1, data unit 2 to data unit P-1 are the first data unit group that has been transmitted through the first transmission link. And data unit P is the second data unit group that has not been transmitted through the first transmission link.

[0126] If the first sending port determines that the reception confirmation message from the second communication device has not been received after the time duration counted by the timer. The reception confirmation message is used to indicate that the second communication device has successfully received the first data unit group (such as data unit 1, data unit 2 to data unit P-1 shown in the above example). Then, the first sending port retrieves the first data unit group from its corresponding link-level retransmission buffer and sends it to the second sending module, so that the first data unit group is re-transmitted to the second communication device through the second transmission link. All subsequent second data unit groups sent by the first sending port are sent to the second sending module. It can be understood that in the case of an abnormality in the first transmission link shown in this example, the first sending port will re-transmit the first data unit group through the second transmission link and continue to send the second data unit group.

[0127] If the first sending port determines that the reception confirmation message from the second communication device has been received within the time duration counted by the timer. Then it means that the second communication device has successfully received the first data unit group via the first transmission link. Then, the first sending unit does not need to re-transmit the first data unit group. If it is subsequently determined that the first transmission link is abnormal, the first sending port will send the second data unit group to the second sending module.

[0128] It can be understood that in the example shown, if the data units in the first sub-data stream are not successfully received by the second communication device, then the first communication device will cooperate with the link-level retransmission mechanism to re-transmit the data unit, achieving zero packet loss in the transmission of the first sub-data stream.

[0129] Example 3

[0130] When the first sending port detects an abnormality in the first transmission link, all of the first sub-data stream has been transmitted to the first transmission link. If the first sending port receives a reception confirmation message from the second communication device within the time duration counted by the timer, and this reception confirmation message is used to indicate that the second communication device has successfully received all of the first sub-data stream. Then, the first sending port does not need to send this first sub-data stream to the second sending module. If the first sending port does not receive a reception confirmation message from the second communication device within the time duration counted by the timer, then the second communication device has not received the first sub-data stream. The first sending port sends this first sub-data stream to the second sending module.

[0131] Example 4

[0132] The link-level retransmission buffer corresponding to the first sending port has a limited data volume that it can cache. If, within the data volume of the first sub-data stream that has been transmitted through the first transmission link but for which a reception confirmation message has not been received within the time duration counted by the timer, is greater than the data volume that the link-level retransmission buffer can cache. Then, there will be a situation where some data units in the first sub-data stream have not been successfully sent to the second communication device via the first transmission link, and some data has overflowed the link-level retransmission buffer. Then, the data that has overflowed the link-level retransmission buffer cannot be switched to the second transmission link for retransmission, resulting in packet loss. However, as shown in this example, all subsequent data streams to be sent by the first sending port to the second communication device are transmitted through the second transmission link, effectively reducing the packet loss rate of the subsequent transmitted data streams.

[0133] Step 404: The first sending port sends the second sub-data stream to the second sending module.

[0134] For the description of the execution process of step 404 shown in this embodiment, please refer to Figure 2 As shown in the corresponding step 203, details are not elaborated here.

[0135] It can be understood that the second sending module in this embodiment receives the first sub-data stream and the second sub-data stream from the first sending module 102.

[0136] Step 405: The second sending module sends the first sub-data stream and the second sub-data stream to the second communication device.

[0137] In this embodiment, when the second sending module receives the first sub-data stream and the second sub-data stream, it can send the first sub-data stream and the second sub-data stream to the second communication device. The second sending module respectively electro-optically converts the first sub-data stream and the second sub-data stream into a first optical signal and a second optical signal. For the description of the process of the second sending module sending the first optical signal and the second optical signal, please refer to Figure 2A description of the process of the second transmission module shown in the corresponding step 205 for transmitting the second optical signal will not be elaborated here specifically.

[0138] Step 406: The second receiving module sends the first sub-data stream and the second sub-data stream to the first receiving port.

[0139] The second receiving module receives the first optical signal and the second optical signal through the second transmission link. For the description of the second transmission link, please refer to Figure 1 and Figure 2 the corresponding description, which will not be elaborated here specifically. The second receiving module 115 performs photoelectric conversion on the first optical signal and the second optical signal respectively to obtain the first sub-data stream and the second sub-data stream, and sends the first sub-data stream and the second sub-data stream to the first receiving port 112.

[0140] Step 407: The first receiving port combines the first sub-data stream and the second sub-data stream into a target data stream.

[0141] For the description of the execution process of step 407 shown in this embodiment, please refer to Figure 2 the corresponding step 208 shown, which will not be elaborated here specifically.

[0142] Figure 4 Taking the abnormality of the first transmission link as an example, the process of the first communication device sending the target data stream to the second communication device is described. In other examples, if the second transmission link is abnormal, then the first communication device can also send the data stream to the second communication device through the first transmission link while reducing the packet loss rate or even achieving zero packet loss. For the specific process, please refer to Figure 4 the process of transmitting the target data stream through the second transmission link in the case of the abnormality of the first transmission link shown, which will not be elaborated here specifically.

[0143] To better understand the beneficial effects of the method provided in this embodiment, first, in combination with Figure 6a and Figure 6b the existing communication system is described in the process of transmitting the data stream when the first transmission link appears abnormal. Figure 6a For Figure 3 the example diagram of the abnormal transmission link shown. Figure 6b For Figure 6a the example diagram of the data stream timing shown. Figure 6aThe communication system shown includes two transmission links, namely the first transmission link and the second transmission link. Among them, the first transmission link includes a first sending module 304, a first optical fiber 321, and a second receiving module 314, and the second transmission link includes a second sending module 305, a second optical fiber 322, and a second receiving module 315. The first transmission link is used to transmit the data stream 610. However, if the first transmission link is abnormal, then the first single board 301 obtains the data stream 620. The timing of the first single board 301 sending the data stream 610 is earlier than the timing of sending the data stream 620. Specifically, the data stream 610 is the data stream that has been transmitted through the first transmission link (that is, the first single board 301 has sent the data stream 610 to the first sending port 302), and the data stream 620 is the data stream that has not been transmitted through the first transmission link (that is, the first single board 301 has not sent the data stream 620 to the first sending port 302). If the first single board 301 is to successfully send the data stream 620 to the second communication device 310, then the first single board 301 will switch the transmission of the data stream 620 from the first transmission link to the second transmission link. The first single board 301 sends the data stream 620 to the second sending port 303. The second sending port 303 sends the data stream 620 to the second sending module 305, and transmits the data stream 620 to the second communication device 310 through the second transmission link. For the description of the process of the first communication device 300 transmitting the data stream 620 through the second transmission link, please refer to the description of the process of the first communication device 300 transmitting the data stream 610 through the first transmission link, and the details will not be elaborated here. However, since the first sending port 302 is only connected to the first sending module 304, the data stream 610 that has entered the first sending port 302 cannot be switched to the second transmission link for transmission. For example, if all of the data stream 610 has been transmitted through the first transmission link, and the first communication device has not received a response message indicating that the second communication device has successfully received the data stream 610. Since the first sending port is only connected to the first sending module. Then, the retransmission of the first sending port will still retransmit the data stream 610 through the first transmission link. The abnormality of the first transmission link will result in that even if the data stream 610 is retransmitted, it still cannot be successfully transmitted to the second communication device. Another example is that if the data stream 610 has not been transmitted through the first transmission link, and the first transmission link is detected to be abnormal, and the first sending port is only connected to the first sending module, then it will cause the data stream 610 to be unable to switch the transmission link, resulting in the data stream 610 being unable to be transmitted to the second communication device through the normal transmission link, thus causing packet loss. It can be understood, Figure 6a and Figure 6b In the existing solution shown, in the case of an abnormality of the first transmission link, it will cause packet loss of the data stream of the first sending module 304 that has entered the first sending port 302.

[0144] And by using the method shown in this embodiment, for exampleFigure 5 The communication system shown includes two transmission links, namely the first transmission link and the second transmission link. Among them, the first transmission link includes a first sending module 104, a first optical fiber 121, and a second receiving module 114, and the second transmission link includes a second sending module 105, a second optical fiber 122, and a second receiving module 115. Since the first sending module 104 and the second sending module 105 shown in this embodiment both have a connection relationship with the first sending port 102. It can be understood that the same first sending port 102 shown in this embodiment is connected to the first transmission link and the second transmission link at the same time. Then, in the case where the first transmission link is abnormal, the first sub-data stream that has entered the first sending module 102 will be switched to the second sending module 105 for transmission, and the second sending module 105 is responsible for sending the first sub-data stream to the second communication device. By using the method shown in this embodiment, when the first transmission link is abnormal, the first sub-data stream that has entered the first sending port will be switched to the second transmission link for transmission, effectively reducing the packet loss rate, and even achieving zero packet loss. Moreover, the first sub-data stream that has entered the first sending port is directly transmitted through the second transmission link. On the premise of reducing the packet loss rate of the first sub-data stream transmission and even achieving zero packet loss, since there is no need to perform retransmission at the transmission layer, then, compared with retransmission at the transmission layer, the transmission delay of the first sub-data stream is effectively reduced.

[0145] Figure 7 This is the third step flowchart of the data transmission method provided by this application. In Figure 4 the embodiment shown, the abnormal situation of the first transmission link is used to illustrate the data stream transmission process. Taking the optical port flash interruption of the first transmission link as an example, generally, the optical port flash interruption of the first transmission link lasts for about 5 seconds and will return to normal. Figure 7 The embodiment shown illustrates the data stream transmission process if the first transmission link recovers from an abnormal state to a normal state.

[0146] Step 701: The first sending port obtains M sub-data streams.

[0147] Step 702: The first sending port detects that the first transmission link is abnormal.

[0148] Step 703: The first sending port sends the first sub-data stream to the second sending module.

[0149] Step 704: The first sending port sends the second sub-data stream to the second sending module.

[0150] Step 705: The second sending module sends the first sub-data stream and the second sub-data stream to the second communication device.

[0151] Step 706: The second receiving module sends the first sub-data stream and the second sub-data stream to the first receiving port.

[0152] Step 707: The first receiving port combines the first sub-data stream and the second sub-data stream into a target data stream.

[0153] For the description of the execution process of steps 701 to 707 shown in this embodiment, please refer to Figure 4 The corresponding steps 401 to 407, which will not be elaborated here.

[0154] Step 708: The first sending port detects that the first transmission link has recovered from an abnormal state to a normal state.

[0155] This embodiment does not limit the process of the first sending port detecting the recovery of the first transmission link to normal. For example, the first sending port sends a heartbeat data packet to the first sending module 304 based on heartbeat detection, and the first sending port receives a heartbeat response data packet. This heartbeat response data packet is received by the second single board 311 via the first transmission link and returned to the first communication device 300 according to this heartbeat data packet. The first sending port detects whether the first transmission link has recovered to normal based on the heartbeat data packet and the heartbeat response data packet. Optionally, it can also be the processor of the first single board that detects whether the first transmission link has recovered to normal based on heartbeat detection. When the first transmission link recovers from an abnormal state to a normal state, the first receiving module 114 can successfully receive the data stream from the first communication device via the first transmission link, and the received data stream has a low bit error rate or a low packet loss rate, etc.

[0156] Step 709: The first sending port obtains the first data stream and the second data stream.

[0157] The first sending port obtains the data stream to be transmitted through the second transmission link and divides this data stream into a first data stream and a second data stream. For the division method, please refer to the description of dividing the target data stream into a first sub-data stream and a second sub-data stream shown in step 701, which will not be elaborated here.

[0158] Step 710: The first sending port sends the first data stream to the first sending module.

[0159] Step 711: The first sending port sends the second data stream to the second sending module.

[0160] In this embodiment, when the first sending port 102 of the first single board 101 obtains the first data stream and the second data stream, the first sending port 102 sends the first data stream and the second data stream to the first sending module 104 and the second sending module 105 respectively.

[0161] Step 712: The first sending module sends a first data stream to the second communication device.

[0162] Step 713: The second sending module sends a second data stream to the second communication device.

[0163] Step 714: The first receiving module sends the first data stream to the second single board.

[0164] Step 715: The second receiving module sends the second data stream to the second single board.

[0165] Step 716: The first receiving port combines the first data stream and the second data stream into a target data stream.

[0166] For the steps shown in Step 710 to Step 716 in this embodiment, please refer to Figure 2 the process in which the first communication device sends the first sub-data stream and the second sub-data stream to the second communication device as shown in the corresponding Steps 204 to 208, which will not be elaborated here.

[0167] This embodiment illustrates the transmission process of the data stream in which the first transmission link recovers from an abnormal state to a normal state. For the data stream transmission process in which the second transmission link recovers from an abnormal state to a normal state, please refer to Figure 7 the corresponding description, which will not be elaborated here.

[0168] By using the method shown in this embodiment, when the first communication device detects that the first transmission link recovers from an abnormal state to a normal state, the first communication device can reallocate the transmission rates through the first transmission link and the second transmission link, so that the restored normal first transmission link transmits the first data stream, and the second transmission link transmits the second data stream, ensuring the reliability of data stream transmission and reducing the packet loss rate. Even in the case of zero packet loss, it can also ensure the balance of the transmission rates of each transmission link between the first communication device and the second communication device, thereby restoring the bandwidth transmitted by the first transmission link and improving the utilization rate of the bandwidth between the first communication device and the second communication device.

[0169] Figure 8 This is the structural example diagram of the second embodiment of the communication system provided by this application. The communication system shown in this embodiment includes a first communication device 800 and a second communication device 810. The first communication device 800 specifically includes a first single board 801, a first sending module 804, a second sending module 805, a first receiving module 806, and a second receiving module 807. For specific descriptions, please refer to Figure 1 the corresponding description, which will not be elaborated here. Figure 8 The first communication device 800 shown Figure 1 is different from the first communication device shown Figure 8The first single board 801 shown also includes a cross-connect unit 841. The cross-connect unit 841 is respectively connected to the first transmission port 802, the second transmission port 803, the first reception port 808, and the second reception port 809 of the first single board 801. Moreover, the cross-connect unit 841 is also respectively connected to the first transmission module 804, the second transmission module 805, the first reception module 806, and the second reception module 807. In this embodiment, taking the cross-connect unit 841 as a module included in the first single board 801 as an example, there is no limitation. For example, the cross-connect unit 841 can also be a chip, module, or single board separated from the first single board 801, etc. The cross-connect unit 841 is used to conduct the circuit between the transmission port and a transmission module, and to conduct the circuit between the reception port and a reception module. The conduction means the state where current can pass through. Then, when the cross-connect unit 841 conducts the circuit between the transmission port and a transmission module, the current emitted from the transmission port can flow to the transmission module. When the cross-connect unit 841 conducts the circuit between the reception port and a reception module, the current emitted from the reception module can flow to the reception port.

[0170] For example, if the cross-connect unit 841 receives a data stream from the first transmission module 802, then the cross-connect unit 841 can send the data stream to the first transmission module 804 or the second transmission module 805. See Figure 9 the specific illustration of the cross-connect unit shown. Figure 9 For Figure 8An example diagram of the cross unit shown. The cross unit 841 shown in this embodiment may include a register 900 and a crossbar array 921. The register 900 is connected to the crossbar array 921. The crossbar array 921 includes a plurality of circuits connected between the first transmission port 802 and the first transmission module 804, and between the first transmission port 802 and the second transmission module 805. Similarly, the crossbar array 921 also includes a plurality of circuits connected between the second transmission port 803 and the first transmission module 804, and between the second transmission port 803 and the second transmission module 805. The register 900 is connected to the crossbar array 921 and, through software configuration, selects to control the conduction or cutoff of each circuit in the crossbar array 921. Specifically, taking the first transmission port 902 as an example, the four electrical interfaces of the first transmission port 802 (i.e., electrical interface 901, electrical interface 902, electrical interface 903, and electrical interface 904) are respectively connected to the crossbar array 921, the four electrical interfaces of the first transmission module 804 (i.e., electrical interface 905, electrical interface 906, electrical interface 907, and electrical interface 908) are connected to the crossbar array 921, and the four electrical interfaces of the second transmission module 805 (i.e., electrical interface 909, electrical interface 910, electrical interface 911, and electrical interface 912) are respectively connected to the crossbar array 921. It should be clear that the description of the number of electrical interfaces included in the first transmission port 802 and each transmission module in this embodiment is an optional example and is not limited. The register 900 includes a plurality of bits. For example, the register 900 includes bit 1 and bit 2. Bit 1 is used to conduct or cutoff the first transmission circuit between the electrical interface 901 and the electrical interface 905, and bit 2 is used to conduct or cutoff the first transmission circuit between the electrical interface 902 and the electrical interface 906. Another example is that the register 900 includes bit 3 and bit 4. Bit 3 is used to conduct or cutoff the second transmission circuit between the electrical interface 903 and the electrical interface 909, and bit 4 is used to conduct or cutoff the second transmission circuit between the electrical interface 904 and the electrical interface 910. Taking bit 1 as an example, if it is necessary to conduct the first transmission circuit between the first transmission port 802 and the first transmission module 804, the processor of the first single board 801 sends a control signal to the register 900 via the bus. This control signal is used to set bit 1 and bit 2 of the register 900 to 1, so that the first transmission circuit between the electrical interface 901 and the electrical interface 905, and the first transmission circuit between the electrical interface 902 and the electrical interface 906 are conducted. This control signal is also used to set bit 3 and bit 4 of the register 900 to 1, so that the second transmission circuit between the electrical interface 903 and the electrical interface 909, and the second transmission circuit between the electrical interface 904 and the electrical interface 910 are conducted. The data stream output by the first transmission port 802 via the electrical interface 901 and the electrical interface 902 will be transmitted to the first transmission module 804 via the conducted first transmission circuit in the crossbar array 921.The data stream output by the first transmission port 802 via the electrical interface 903 and the electrical interface 904 will be transmitted to the second transmission module 805 via the second transmission circuit that has been turned on in the crossbar array 921. In this example, the bit of the register is set to 1 to turn on the corresponding circuit. In other examples, the bit of the register can also be set to 0 to turn on the corresponding circuit. In this embodiment, it is taken that the first single board 801 includes one cross unit as an example, and the number of cross units included in the first single board 801 is not limited in this embodiment. For the description of the structure and function of each cross unit, please refer to Figure 9 For the description, it will not be elaborated specifically. The description of the implementation manner of the cross unit in this embodiment is an optional example and is not limited. As long as the cross unit can turn on each circuit between the transmission port and the transmission module.

[0171] The second communication device 810 specifically includes a second single board 811, a first receiving module 814, a second receiving module 815, a first transmission module 818, and a second transmission module 819. For the specific description, please refer to Figure 1 The corresponding description will not be elaborated specifically. Figure 8 The second communication device 810 shown Figure 1 The difference from the second communication device shown Figure 8 is that the second single board 811 shown

[0172] also includes a cross unit 842. The cross unit 842 is respectively connected to the first receiving port 812, the second receiving port 813, the first transmission port 816, and the second transmission port 817 of the second single board 811. Moreover, the cross unit 842 is also respectively connected to the first receiving module 814, the second receiving module 815, the first transmission module 818, and the second transmission module 819. For the description of the cross unit 842, please refer to the description of the cross unit 841 included in the first communication device, and it will not be elaborated specifically. It can be understood that the cross unit 842 is used to turn on the circuit between the transmission port and a transmission module, and to turn on the circuit between the receiving port and a receiving port.

[0172] Combined with Figures 8 to 10 shown to illustrate the execution process of the data transmission method provided by the embodiment of the present application. Among them, Figure 10 This is the fourth step flowchart of the data transmission method provided by the present application.

[0173] Step 1001: The cross unit turns on the first transmission circuit and the second transmission circuit.

[0174] When the processor of the first single board 801 determines that both the first transmission link and the second transmission link are normal, it sends a first control signal to the cross-connect unit 841. According to the first control signal, the cross-connect unit 841 turns on the first transmission circuit and the second transmission circuit. Among them, the first transmission circuit is the circuit between the first transmission port 802 and the first transmission module 804. The second transmission circuit is the circuit between the first transmission port 802 and the second transmission module 805. For the description of the cross-connect unit 841 turning on the circuit, please refer to Figure 8 The corresponding description will not be elaborated here.

[0175] Step 1001 shown in this embodiment can be a pre-executed step. After executing step 1001 once, when the first communication device subsequently executes the data transmission method, it does not need to repeat step 1001.

[0176] Step 1002: The first transmission port obtains M sub-data streams.

[0177] For the description of the execution process of step 1002 shown in this embodiment, please refer to Figure 2 As shown in the corresponding step 201, it will not be elaborated here.

[0178] Step 1003: The first transmission port sends the first sub-data stream to the first transmission module.

[0179] When the cross-connect unit 841 turns on the first transmission circuit, the first transmission port 802 can transmit the first sub-data stream to the first transmission module 804 via the first transmission circuit.

[0180] Step 1004: The first transmission port sends the second sub-data stream to the second transmission module.

[0181] When the cross-connect unit 841 turns on the second transmission circuit, the first transmission port 802 can transmit the second sub-data stream to the second transmission module 805 via the second transmission circuit.

[0182] This embodiment does not limit the timing between the execution of step 1003 and step 1004.

[0183] Step 1005: The first transmission module sends the first sub-data stream to the second communication device.

[0184] Step 1006: The second transmission module sends the second sub-data stream to the second communication device.

[0185] For the description of the execution process of steps 1005 to 1006 shown in this embodiment, please refer to Figure 2 As shown in the corresponding steps 204 to 205, it will not be elaborated here.

[0186] Step 1007: The cross unit turns on the first receiving circuit and the second receiving circuit.

[0187] When the processor of the second single board 811 determines that both the first transmission link and the second transmission link are normal, it sends a second control signal to the cross unit 842. The cross unit 842 turns on the first receiving circuit and the second receiving circuit according to this second control signal. Among them, the first receiving circuit is the circuit between the first receiving module 814 and the first receiving port 812, and the second receiving circuit is the circuit between the second receiving module 815 and the first receiving port 812. For the description of the cross unit 842 turning on the circuit, please refer to Figure 8 The corresponding description will not be elaborated here specifically.

[0188] Step 1007 shown in this embodiment can be a pre-executed step. After executing Step 1007 once, when the second communication device subsequently executes the data transmission method, it does not need to repeat executing Step 1007. This embodiment does not limit the execution timing between Step 1001 to Step 1006 and Step 1007.

[0189] Step 1008: The first receiving module sends the first sub-data stream to the first receiving module.

[0190] When the cross unit 842 turns on the first receiving circuit, the first receiving module can send the first sub-data stream to the first receiving port 812 via this first receiving circuit.

[0191] Step 1009: The second receiving module sends the second sub-data stream to the first receiving port.

[0192] When the cross unit 842 turns on the second receiving circuit, the second receiving module can send the second sub-data stream to the second receiving port 813 via this second receiving circuit.

[0193] Step 1010: The first receiving port combines the first sub-data stream and the second sub-data stream into a target data stream.

[0194] For the description of the execution process of Step 1010 shown in this embodiment, please refer to Figure 2 As shown in the corresponding Step 208, it will not be elaborated here specifically.

[0195] By using the method shown in this embodiment, the first communication device can flexibly turn on the circuit according to needs through the included cross unit, so as to control the data stream emitted by the first single board and specifically send it to which sending module, improving the flexibility of data stream transmission. The second communication device can flexibly turn on the circuit according to needs through the included cross unit, so as to control the data stream from the first communication device and specifically receive it by which receiving module, improving the reliability of data stream transmission.

[0196] The following combines with Figure 11 the embodiments shown to illustrate how Figure 8 to perform data transmission when an abnormality occurs in the first transmission link shown. Among them, Figure 11 This is the fifth step flowchart of the data transmission method provided by this application.

[0197] Step 1101: The cross unit turns on the first transmission circuit and the second transmission circuit.

[0198] For the execution process of step 1101 shown in this embodiment, please refer to Figure 10 the corresponding step 1001 shown, and details will not be elaborated here.

[0199] Step 1102: The first transmission port obtains M sub-data streams.

[0200] Step 1103: The first transmission port detects an abnormality in the first transmission link.

[0201] For the description of the execution processes of steps 1102 to 1103 shown in this embodiment, please refer to Figure 4 the corresponding steps 401 to 402 shown, and details will not be elaborated here.

[0202] Step 1104: The first transmission port sends the first sub-data stream to the second transmission module.

[0203] When the cross unit 841 turns on the second transmission circuit, the first transmission port 802 can transmit the first sub-data stream to the second transmission module 805 via the second transmission circuit.

[0204] As Figure 8 shown, the first transmission link includes a first transmission module 804, a first optical fiber 812, and a first receiving module 814. The second transmission link includes a second transmission module 805, a second optical fiber 822, and a second receiving module 815. The first transmission link is originally used to transmit the first sub-data stream. However, in this embodiment, the first transmission port detects an abnormality in the first transmission link. Then, if the first sub-data stream continues to be transmitted through the first transmission link, it will cause an excessively high error rate in the transmission of the first sub-data stream, and even transmission interruption may occur. For this reason, the first transmission port 802 shown in this embodiment switches the traffic to be transmitted through the first transmission link (i.e., the first sub-data stream) to the second transmission link for transmission, so as to ensure that the first sub-data stream can be successfully transmitted to the second communication device 810, effectively reducing the packet loss rate of the target data stream transmission, and even achieving zero packet loss in the target data stream transmission. To achieve the purpose of switching the first sub-data stream from the first transmission link to the second transmission link for transmission, the first transmission port 802 sends the first sub-data stream to the second transmission module 805 via the turned-on second transmission circuit.

[0205] Step 1105: The first sending port sends a second sub-data stream to the second sending module.

[0206] For the execution process of Step 1105 shown in this embodiment, please refer to Figure 10 the corresponding Step 1004, which will not be elaborated here.

[0207] Step 1106: The second sending module sends the first sub-data stream and the second sub-data stream to the second communication device.

[0208] For the description of the execution process of Step 1106 shown in this embodiment, please refer to Figure 4 the corresponding Step 405, which will not be elaborated here.

[0209] Step 1107: The cross unit turns on the first receiving circuit and the second receiving circuit.

[0210] For the description of Step 1107 shown in this embodiment, please refer to Figure 10 the corresponding Step 1007. There is no specific limitation here. Step 1107 shown in this embodiment can be a pre-executed step. After Step 1107 is executed once, when the second communication device subsequently executes the data transmission method, there is no need to repeat Step 1107. This embodiment does not limit the execution timing between Step 1101 to Step 1106 and Step 1107.

[0211] Step 1108: The second receiving module sends the first sub-data stream and the second sub-data stream to the first receiving port.

[0212] Step 1109: The first receiving port combines the first sub-data stream and the second sub-data stream into a target data stream.

[0213] For the description of the execution process of Step 1108 to Step 1109 shown in this embodiment, please refer to Figure 4 the corresponding Step 406 to Step 407, which will not be elaborated here.

[0214] By using the method shown in this embodiment, the cross unit pre-turns on the first sending circuit and the second sending circuit. Then, when the first transmission link is abnormal, the data stream emitted from the first sending port all passes through the second sending circuit and is sent to the second sending module, so as to ensure that when the first transmission link is abnormal, the data stream can be transmitted to the second communication device via the normal second transmission link, ensuring the reliability of the data stream transmission, effectively reducing the packet loss rate, and achieving zero packet loss in cooperation with the link-level retransmission mechanism.

[0215] Figure 12 This is the sixth step flowchart of the data transmission method provided by this application. In Figure 11In the illustrated embodiment, an abnormality occurs in the first transmission link to illustrate the data stream transmission process. Figure 12 In the illustrated embodiment, it is explained the data stream transmission process if the first transmission link recovers from an abnormality to normal.

[0216] Step 1201: The cross unit turns on the first transmission circuit and the second transmission circuit.

[0217] Step 1202: The first transmission port obtains M sub-data streams.

[0218] Step 1203: The first transmission port detects an abnormality in the first transmission link.

[0219] Step 1204: The first transmission port sends the first sub-data stream to the second transmission module.

[0220] Step 1205: The first transmission port sends the second sub-data stream to the second transmission module.

[0221] Step 1206: The second transmission module sends the first sub-data stream and the second sub-data stream to the second communication device.

[0222] Step 1207: The cross unit turns on the first reception circuit and the second reception circuit.

[0223] Step 1208: The second reception module sends the first sub-data stream and the second sub-data stream to the first reception port.

[0224] Step 1209: The first reception port combines the first sub-data stream and the second sub-data stream into a target data stream.

[0225] For the description of the execution process of steps 1201 to 1209 shown in this embodiment, please refer to Figure 11 the corresponding steps 1101 to 1109 shown, which will not be elaborated here specifically.

[0226] Step 1210: The first transmission port detects that the first transmission link recovers from an abnormality to normal.

[0227] For the description of the execution process of step 1211 shown in this embodiment, please refer to Figure 7 the corresponding step 708 shown, which will not be elaborated here specifically.

[0228] Step 1211: The first transmission port obtains the first data stream and the second data stream.

[0229] For the description of the execution process of step 1211 shown in this embodiment, please refer to Figure 7 the corresponding step 709 shown, which will not be elaborated here specifically.

[0230] Step 1212: The first sending port sends the first data stream to the first sending module.

[0231] In this embodiment, the first sending module 802 of the first single board 801 sends the first data stream to the first sending module 804 via the first circuit.

[0232] Step 1213: The first sending port sends the first data stream to the second sending module.

[0233] The first sending port 802 of the first single board 801 sends the second data stream to the second sending module 805 via the second circuit.

[0234] Step 1214: The first sending module sends the first data stream to the second communication device.

[0235] Step 1215: The second sending module sends the second data stream to the second communication device.

[0236] For the description of the execution process of steps 1212 to 1215 shown in this embodiment, please refer to Figure 7 The corresponding steps 712 to 715, and details are not elaborated here.

[0237] Step 1216: The first receiving module sends the first data stream to the second single board.

[0238] The first receiving module 814 sends the first data stream to the second single board 811 via the first receiving circuit.

[0239] Step 1217: The second receiving module sends the second data stream to the second single board.

[0240] The second receiving module 815 sends the second data stream to the second single board 811 via the second receiving circuit.

[0241] Step 1218: The first receiving port combines the first data stream and the second data stream into a target data stream.

[0242] For the description of the execution process of steps 1216 to 1218 shown in this embodiment, please refer to Figure 7 The corresponding steps 714 to 716, and details are not elaborated here.

[0243] When the method shown in this embodiment is adopted and the first communication device detects that the first transmission link has recovered from an abnormal state to a normal state, the first communication device can reallocate the transmission rates through the first transmission link and the second transmission link, so that the first transmission link that has recovered to normal transmits the first data stream, and the second transmission link transmits the second data stream, ensuring the reliability of data stream transmission and reducing the packet loss rate. Even in the case of achieving zero packet loss, it can also ensure the balance of the transmission rates of each transmission link between the first communication device and the second communication device, and improve the utilization rate of the bandwidth between the first communication device and the second communication device.

[0244] In the above embodiment, it is taken as an example that the first single board of the first communication device includes two sending ports, and the second single board includes two receiving ports. Figure 13 It is a schematic diagram of the structure of the third embodiment of the communication system provided by this application.

[0245] The communication system shown in this embodiment includes a first communication device 1300 and a second communication device 1310. For the descriptions of the types of the first communication device 1300 and the second communication device 1310, please refer to Figure 1 the corresponding descriptions, which will not be elaborated here specifically. The first communication device 1300 includes a first single board 1301, and the first single board 1301 includes four sending ports, namely a first sending port 1302, a second sending port 1303, a third sending port 1304, and a fourth sending port 1305. When the first communication device 1300 includes four sending ports, the first communication device 1300 further includes four sending modules, namely a first sending module 1306, a second sending module 1307, a third sending module 1308, and a fourth sending module 1309. It should be clear that in this embodiment, it is taken as an example that the number of sending ports included in the first communication device 1300 is equal to the number of sending modules, which is not limited. For example, the number of sending ports can be greater than the number of sending modules, or the number of sending modules can be greater than the number of sending ports. Taking the first sending port 1302 as an example, the first sending port 1302 is respectively connected to the first sending module 1306, the second sending module 1307, the third sending module 1308, and the fourth sending module 1309. By analogy, the fourth sending port 1305 is respectively connected to the first sending module 1306, the second sending module 1307, the third sending module 1308, and the fourth sending module 1309. In this embodiment, it is taken as an example that the connection between the sending port and the sending module is through Figure 1 the shown manner. In other examples, the connection between the sending port and the sending module can also be through a cross unit as shown in Figure 8 For the specific description of the cross unit, please refer to Figure 8 and Figure 9 shown, which will not be elaborated here specifically.

[0246] The second communication device 1310 includes a second single board 1320, and the second single board 1320 specifically includes four receiving ports, namely a first receiving port 1315, a second receiving port 1316, a third receiving port 1317, and a fourth receiving port 1318. The second communication device 1310 further includes a first receiving module 1311, a second receiving module 1312, a third receiving module 1313, and a fourth receiving module 1314. Among them, the first receiving port 1315 is respectively connected to the first receiving module 1311, the second receiving module 1312, the third receiving module 1313, and the fourth receiving module 1314. By analogy, the fourth receiving port 1318 is respectively connected to the first receiving module 1311, the second receiving module 1312, the third receiving module 1313, and the fourth receiving module 1314. In this embodiment, it is taken as an example that the connection between the receiving port and the receiving module is in the manner shown by Figure 1 In other examples, the connection between the receiving port and the receiving module can also be through a cross unit as shown by Figure 8 For the specific description of the cross unit, please refer to Figure 8 and Figure 9 as shown. The specific details are not described here. For the description of each sending port, sending module, receiving port, and receiving module shown in this embodiment, please refer to Figure 1The corresponding description will not be elaborated here. For example, when the first sending port 1302 receives the target data stream, the first sending port 1302 can divide the target data stream into a first sub-data stream, a second sub-data stream, a third sub-data stream, and a fourth sub-data stream, and send the first sub-data stream to the first sending module 1306, send the second sub-data stream to the second sending module 1307, send the third sub-data stream to the third sending module 1308, and send the fourth sub-data stream to the fourth sending module 1309. For the description of the transmission of the third sub-data stream and the fourth sub-data stream, please refer to the description of the transmission of the first sub-data stream and the second sub-data stream shown in the above method embodiment, which will not be elaborated here. In this embodiment, it is taken as an example that the rates of the first sub-data stream, the second sub-data stream, the third sub-data stream, and the fourth sub-data stream are all equal. Specifically, for example, the rate of the first sub-data stream is 25% of the rate of the target data stream, and by analogy, the rate of the fourth sub-data stream is 25% of the rate of the target data stream, thereby improving the transmission performance of the communication system and increasing the throughput of the communication system. In other examples, the rates of the first sub-data stream, the second sub-data stream, the third sub-data stream, and the fourth sub-data stream may also be unequal, which is not specifically limited. In this embodiment, it is taken as an example that the first sub-data stream, the second sub-data stream, the third sub-data stream, and the fourth sub-data stream are all one-way, which is not limited. In this embodiment, the number of ways of the first sub-data stream, the number of ways of the second sub-data stream, the number of ways of the third sub-data stream, and the number of ways of the fourth sub-data stream are not limited. It should be clear that in this embodiment, the number of receiving ports, sending ports, receiving modules, and sending modules included in the communication device is not limited. Taking the first communication device 1300 as an example, when the first communication device 1300 includes four sending modules, each sending port is respectively connected to the four sending modules. The description of the connection relationship between the sending port and the sending module in this embodiment is an optional example and is not limited. That is, one sending port in the first communication device 1300 can be connected to a part of the four sending modules. For example, the first sending port 1302 is connected to the first sending module 1306, the second sending module 1307, and the third sending module 1308, as long as one sending port is connected to at least two sending modules.

[0247] In the communication system shown above, it is taken as an example that the sending port included in the first communication device and the receiving port included in the second communication device are in a one-to-one relationship. For example, the first sending port and the first receiving port are in a one-to-one relationship. Then, the first sub-data stream and the second sub-data stream sent by the first sending port will both be sent to the corresponding same first receiving port. In Figure 14In the communication system shown, the transmission port included in the first communication device and the reception port included in the second communication device may also have a one-to-many relationship. Then, the first sub-data stream and the second sub-data stream transmitted by the first transmission port will be transmitted to different reception ports. Among them, Figure 14 FIG. 4 is a schematic structural diagram of a fourth embodiment of the communication system provided in the present application. The communication system shown in this embodiment includes a first communication device 1400 and a second communication device 1410. For the descriptions of the types of the first communication device 1400 and the second communication device 1410, please refer to Figure 1 the corresponding descriptions, which will not be elaborated herein specifically. The first communication device 1400 includes a first single board 1401. The first electrical interface of the first transmission port 1402 of the first single board 1401 is connected to the first transmission module 1404, the second electrical interface is connected to the second transmission module 1405, the third electrical interface is connected to the first transmission module 1404, and the fourth electrical interface is connected to the second transmission module 1405. In this embodiment, the number of each electrical interface among the first electrical interface, the second electrical interface, the third electrical interface, and the fourth electrical interface is not limited. Among them, the first electrical interface and the second electrical interface respectively correspond to the first reception port 1412 included in the second single board 1411 of the second communication device 1410. The third electrical interface and the fourth electrical interface respectively correspond to the second reception port 1413 included in the second single board 1411. The first reception port 1412 is respectively connected to the first reception module 1414 and the second reception module 1415. The first transmission port 1402 sends the first sub-data stream to the first transmission module 1404 through the first electrical interface, and sends the second sub-data stream to the second transmission module 1405 through the second electrical interface. The first reception port 1412 receives the first sub-data stream and the second sub-data stream. For the description of the specific data stream transmission process, please refer to any of the above method embodiments, which will not be elaborated herein specifically. The data stream sent by the first transmission port 1402 through the third electrical interface and the fourth electrical interface will be transmitted to the second reception port 1413. For the specific description, please refer to the description of the data stream sent by the first electrical interface and the second electrical interface to the first reception port 1412, which will not be elaborated herein specifically. Among the transmission ports and transmission modules, and among the reception ports and reception modules shown in this embodiment, they may also be connected through a cross unit as shown in Figure 8 For the specific description of the cross unit, please refer to Figure 8 and Figure 9 shown, which will not be elaborated herein specifically.

[0248] Figure 14 Taking the embodiment shown in FIG. 5 as an example, the first transmission port can send data streams to at least two different reception ports, that is, the transmission port included in the first communication device and the reception port included in the second communication device have a one-to-many relationship. Figure 15In the illustrated embodiment, the transmission ports included in the first communication device and the reception ports included in the second communication device may also have a many-to-one relationship. That is, the data streams sent from multiple transmission ports of the first communication device are transmitted to the same reception port of the second communication device. Figure 15 FIG. 5 is a structural example diagram of a fifth embodiment of the communication system provided by the present application. The communication system shown in this embodiment includes a first communication device 1500 and a second communication device 1510. For the descriptions of the types of the first communication device 1500 and the second communication device 1510, please refer to Figure 1 the corresponding descriptions, which will not be elaborated herein. The first communication device 1500 includes a first single board 1501. The first transmission port 1502 of the first single board 1501 is respectively connected to a first transmission module 1504 and a second transmission module 1505. The second transmission port 1503 is respectively connected to the first transmission module 1504 and the second transmission module 1505. For the specific connection descriptions, please refer to Figure 1 the corresponding descriptions, which will not be elaborated herein. The second communication device 1510 includes a second single board 1511. The first electrical interface of the second single board 1511 is connected to a first reception module 1514, the second electrical interface is connected to a second reception module 1515, the third electrical interface is connected to the first reception module 1514, and the fourth electrical interface is connected to the second reception module 1515. In this embodiment, the number of each of the first electrical interface, the second electrical interface, the third electrical interface, and the fourth electrical interface is not limited. Among them, the first electrical interface and the second electrical interface correspond to the first transmission port 1502 included in the first single board 1501 of the first communication device 1500. That is, the first transmission port 1502 sends a first sub-data stream to the first reception port 1512 through the first transmission module 1504, and the first transmission port 1502 sends a second sub-data stream to the first reception port 1512 through the second transmission module 1505. For the description of the specific data stream transmission process, please refer to any of the above method embodiments, which will not be elaborated herein. The third electrical interface and the fourth electrical interface of the first reception port 1512 correspond to the second transmission port 1503 included in the first single board 1501 of the first communication device. Then, the data stream sent from the second transmission port 1503 is also transmitted to the first reception port 1512. For the specific description of the transmission, please refer to the description of the data stream sent from the first transmission port 1502 to the first reception port 1512, which will not be elaborated herein. Between the transmission ports and the transmission modules shown in this embodiment, and between the reception ports and the reception modules, they can also be connected through a Figure 8 crossing unit as shown. For the specific description of the crossing unit, please refer to Figure 8 and Figure 9 shown, which will not be elaborated herein.

[0249] In the communication system shown in the above embodiments, an example is given where different transmission ports are all located on the same chip on the same single board, and different reception ports are all located on the same chip on the same single board. In Figure 16 In the shown embodiment, different transmission ports may be located on different chips on the same single board, and different reception ports may be located on different chips on the same single board. Figure 16 This is a structural example diagram of the sixth embodiment of the communication system provided by this application. The communication system shown in this embodiment includes a first communication device 1600 and a second communication device 1610. For the description of the types of the first communication device 1600 and the second communication device 1610, please refer to Figure 1 the corresponding description, which will not be elaborated here specifically. The first communication device 1600 shown in this embodiment includes a first single board 1601. The first single board 1601 specifically includes a first chip 1602 and a second chip 1603. Among them, the first chip 1602 specifically includes a first transmission port 1604. The second chip 1603 specifically includes a second transmission port 1605. The first transmission port 1604 is respectively connected to a first transmission module 1606 and a second transmission module 1607. The second transmission port 1605 is respectively connected to the first transmission module 1606 and the second transmission module 1607. For the description of the specific connection, please refer to Figure 1 the corresponding description, which will not be elaborated here specifically. The second communication device 1610 shown in this embodiment includes a second single board 1611. The second single board 1611 specifically includes a first chip 1612 and a second chip 1613. Among them, the first chip 1612 specifically includes a first reception port 1614. The second chip 1613 specifically includes a second reception port 1615. The first reception port 1614 is respectively connected to a first reception module 1616 and a second reception module 1617. The second reception port 1615 is respectively connected to the first reception module 1616 and the second reception module 1617. For the description of the specific connection, please refer to Figure 1 the corresponding description, which will not be elaborated here specifically. For the description of the process of the communication system shown in this embodiment executing the data transmission method, please refer to any of the above method embodiments, which will not be elaborated here specifically. Between each transmission port and the transmission module, and between each reception port and each reception module shown in this embodiment, they can also be connected through a cross unit as shown in Figure 8 . For the specific description of the cross unit, please refer to Figure 8 and Figure 9 shown, which will not be elaborated here specifically.

[0250] In the above embodiments, taking the application of the communication system to an optical communication system as an example, it should be clear that this application does not limit the type of system to which the communication system is applied. For example, the communication system can be applied to a wireless communication system. For the description of the process of the wireless communication system executing the data transmission method, please refer to Figure 2 andFigure 4 , Figure 7 , Figure 10 , Figure 11 and Figure 12 As shown in any of the embodiments, details are not elaborated here. The difference between the data transmission method performed by the wireless communication system and the data transmission method performed by the optical communication system lies in the different functions of each transmitting module and each receiving module. Each transmitting module and each receiving module included in the wireless communication system shown in this embodiment are all antennas. Continuing to refer to Figure 1 shown, the first transmitting module 104 includes a first transmitting antenna, and the second transmitting module 105 includes a second transmitting antenna. The first receiving module 114 includes a first receiving antenna, and the second receiving module 115 includes a second receiving antenna. When the first transmitting module 104 receives the first sub-data stream from the first transmitting port 102, the first transmitting module 104 converts the first sub-data stream into a first electromagnetic wave and radiates the first electromagnetic wave to the second communication device 110. When the second transmitting module 105 receives the second sub-data stream from the first transmitting port 102, the second transmitting module 105 converts the second sub-data stream into a second electromagnetic wave and radiates the second electromagnetic wave to the second communication device 110. The first receiving module 114 receives the first electromagnetic wave from the first transmitting module 104 and converts the first electromagnetic wave into a first sub-data stream. The first receiving module 114 sends the first sub-data stream to the first receiving port 112. The second receiving module 115 receives the second electromagnetic wave from the second transmitting module 105 and converts the second electromagnetic wave into a second sub-data stream. The second receiving module 115 sends the second sub-data stream to the first receiving port 112.

[0251] For another example, the communication devices included in the communication system can be connected by cables. For the description of the execution process of the data transmission method performed by the communication system shown in this embodiment, please refer to Figure 2 , Figure 4 , Figure 7 , Figure 10 , Figure 11 and Figure 12 As shown in any of the embodiments, details are not elaborated here. The difference between the data transmission method performed by the communication system shown in this embodiment and the data transmission method performed by the optical communication system lies in the different functions of each transmitting module and each receiving module. Each transmitting module and each receiving module included in the wireless communication system shown in this embodiment are all connectors. Specifically, they can be active connectors or passive connectors. In this embodiment, taking the connector as an active connector as an example, the failure rate of the active connector is high and it is easy to cause abnormal transmission links. Continuing with Figure 1Taking the example shown, the first sending module 104 includes a first connector, the second sending module 105 is a second connector, the first receiving module 114 is a third connector, and the second receiving module 115 is a fourth connector. Between the first connector and the third connector, they are connected by a first cable. Between the second connector and the fourth connector, they are connected by a second cable. When the first connector receives the first sub-data stream from the first sending port 102, it sends it to the third connector through the first cable. The third connector sends the first sub-data stream to the first receiving port 112. The first sending port 102 sends the second sub-data stream to the second connector and sends it to the fourth connector through the second cable. The fourth connector sends the second sub-data stream to the first receiving port 112.

[0252] An embodiment of the present application provides a communication device. For the description of the communication device structure, please refer to the above Figure 1 、 Figure 3 、 Figure 8 、 Figure 13 、 Figure 14 、 Figure 15 and Figure 16 shown in any embodiment, which will not be elaborated here. It can be understood that Figure 1 、 Figure 3 、 Figure 8 、 Figure 13 、 Figure 14 、 Figure 15 and Figure 16 Taking the first communication device shown in any embodiment as an example, it includes a first single board and a sending module and a receiving module connected to the first single board. Moreover, taking the second communication device including a second single board and a sending module and a receiving module connected to the second single board as an example. In other examples, the first communication device provided by the embodiment of the present application may include an outer housing, and the first single board is encapsulated inside the outer housing. The outer housing includes electrical interfaces. That is, the first communication device shown in this example does not include a sending module and a receiving module, and only provides electrical interfaces for connecting to the sending module and the receiving module. Similarly, the second communication device may include an outer housing. The second single board is encapsulated inside the outer housing. The outer housing includes electrical interfaces. The second communication device shown in this example does not include a sending module and a receiving module, and only provides electrical interfaces for connecting to the sending module and the receiving module.

[0253] An embodiment of the present application also provides a digital processing chip, which includes a processing chip and a memory. The memory and the processing chip are interconnected by a line. Instructions are stored in the memory, and the processing chip is used to execute the processes performed by the first single board or the second single board in any of the above method embodiments.

[0254] The embodiments of the present application also provide a computer storage medium, including instructions, which, when running on a computer, cause the computer to execute the processes executed by the first single board or the second single board in any of the above method embodiments.

[0255] The embodiments of the present application also provide a computer program product containing instructions, which, when running on a computer, cause the computer to execute the processes executed by the first single board or the second single board in any of the above method embodiments.

[0256] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.

[0257] In the several embodiments provided by the present 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 illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For example, 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 displayed or discussed mutual coupling or direct coupling or communication connection can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be in an electrical, mechanical, or other form.

[0258] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place, or can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

Claims

1. A data transmission method, characterized in that, The method is applied to a first communication device, which includes a sending port. The sending port is respectively connected to a first sending module and a second sending module. The transmission link where the first sending module is located is different from the transmission link where the second sending module is located. The method includes: The first communication device sends a first sub-data stream to the first sending module through the sending port, and the first sending module is used to send the first sub-data stream to a second communication device; The first communication device sends a second sub-data stream to the second sending module through the sending port, and the second sending module is used to send the second sub-data stream to the second communication device. The first sub-data stream and the second sub-data stream are two of M sub-data streams, and M is any integer not less than 2.

2. The method according to claim 1, characterized in that, Between the sending port and the first sending module, they are connected through a first sending circuit. Between the sending port and the second sending module, they are connected through a second sending circuit. The first communication device sending the first sub-data stream to the first sending module through the sending port includes: The first communication device sends the first sub-data stream to the first sending module through the sending port and via the first sending circuit; The first communication device sending the second sub-data stream to the second sending module through the sending port includes: The first communication device sends the second sub-data stream to the second sending module through the sending port and via the second sending circuit.

3. The method according to claim 1 or 2, characterized in that, Before the first communication device sends the first sub-data stream to the first sending module through the sending port, the method further includes: The first communication device detects that a first transmission link is abnormal. The first transmission link is the transmission link where the first sending module is located, and the first transmission link is connected between the first communication device and the second communication device; The first communication device sends at least part of the first sub-data stream to the second sending module through the sending port, and the second sending module is used to send the at least part of the first sub-data stream and the second sub-data stream to the second communication device.

4. The method according to claim 2, wherein The first communication device further includes a cross unit. Before the first communication device sends the first sub-data stream to the first sending module through the sending port and via the first sending circuit, and before the first communication device sends the second sub-data stream to the second sending module through the sending port and via the second sending circuit, the method further includes: The first communication device conducts the first sending circuit and the second sending circuit through the cross unit.

5. The method according to claim 4, wherein Before the first communication device conducts the first sending circuit and the second sending circuit through the cross unit, the method further includes: The first communication device detects that both the first transmission link and the second transmission link are normal. The first transmission link and the second transmission link are respectively connected between the first communication device and the second communication device. The first transmission link is the transmission link where the first sending module is located, and the second transmission link is the transmission link where the second sending module is located.

6. The method according to any one of claims 2, 4 or 5, characterized in that Before the first communication device sends the first sub-data stream to the first sending module through the sending port, the method further includes: The first communication device detects that the first transmission link is abnormal. The first transmission link is the transmission link where the first sending module is located, and the first transmission link is connected between the first communication device and the second communication device; The first communication device sends at least part of the first sub-data stream to the second sending module through the sending port and via the second sending circuit. The second sending module is used to send the at least part of the first sub-data stream and the second sub-data stream to the second communication device.

7. The method according to claim 3 or 6, characterized in that, After the first communication device detects that the first transmission link is abnormal, the method further includes: The first communication device detects that the first transmission link is normal, and the first communication device obtains a first data stream, which is part of the data stream to be sent through the second sending module; The first communication device sends the first data stream to the first sending module through the sending port; The first communication device sends a second data stream to the second sending module through the sending port.

8. A data transmission method, characterized in that, The method is applied to a second communication device. The second communication device includes a receiving port, and the receiving port is respectively connected to a first receiving module and a second receiving module. The method includes: The receiving port of the second communication device receives the first sub-data stream from the first communication device through the first receiving module; The receiving port of the second communication device receives the second sub-data stream from the first communication device through the second receiving module. The first sub-data stream and the second sub-data stream are two of the M sub-data streams. M is any integer not less than 2. The M sub-data streams come from the same sending port of the first communication device. The transmission link where the first receiving module is located is different from the transmission link where the second receiving module is located.

9. The method according to claim 8, wherein Between the receiving port and the first receiving module, they are connected through a first receiving circuit. Between the receiving port and the second receiving module, they are connected through a second receiving circuit. The receiving port of the second communication device receives the first sub-data stream from the first communication device through the first receiving module, including: The receiving port of the second communication device receives the first sub-data stream from the first receiving module via the first receiving circuit; The receiving port of the second communication device receives the second sub-data stream from the first communication device through the second receiving module, including: The receiving port of the second communication device receives the second sub-data stream from the second receiving module via the second receiving circuit.

10. The method according to claim 8 or 9, characterized in that, After the receiving port of the second communication device receives the first sub-data stream from the first communication device through the first receiving module, and the receiving port of the second communication device receives the second sub-data stream from the first communication device through the second receiving module, the method further includes: The second communication device combines the first sub-data stream and the second sub-data stream into a target data stream.

11. The method according to any one of claims 8 to 10, characterized in that The receiving port of the second communication device receiving the second sub-data stream from the first communication device through the second receiving module includes: The second communication device detects that a first transmission link is abnormal; The receiving port of the second communication device receives the first sub-data stream and the second sub-data stream from the first communication device through the second receiving module, where the first transmission link is the transmission link where the first receiving module is located, and the first transmission link is connected between the first communication device and the second communication device.

12. The method according to claim 9, wherein The second communication device further includes a cross unit. Before the receiving port of the second communication device receives the first sub-data stream from the first receiving module via the first receiving circuit, and the receiving port of the second communication device receives the second sub-data stream from the second receiving module via the second receiving circuit, the method further includes: The second communication device conducts the first receiving circuit and the second receiving circuit through the cross unit.

13. The method according to claim 12, wherein The second communication device conducting the first receiving circuit and the second receiving circuit through the cross unit includes: The second communication device detects that both the first transmission link and the second transmission link are normal. The first transmission link and the second transmission link are respectively connected between the first communication device and the second communication device. The first transmission link is the transmission link where the first receiving module is located, and the second transmission link is the transmission link where the second receiving module is located.

14. According to the method of any one of claims 9, 12, or 13, before the receiving port of the second communication device receives the second sub-data stream from the second receiving module via the second receiving circuit, the method further includes: The second communication device detects that a first transmission link is abnormal, where the first transmission link is the transmission link where the first receiving module is located, and the first transmission link is connected between the first communication device and the second communication device; The method further includes: The receiving port of the second communication device receives the first sub-data stream from the second receiving module via the second receiving circuit.

15. A communication device, characterized in that, It includes a single board, a first transmission module, and a second transmission module. The transmission ports of the single board are respectively connected to the first transmission module and the second transmission module. The transmission link where the first transmission module is located is different from the transmission link where the second transmission module is located; The transmission port is used to send a first sub-data stream to the first transmission module, and the first transmission module is used to send the first sub-data stream to another communication device; The transmission port is also used to send a second sub-data stream to the second transmission module, and the second transmission module is used to send the second sub-data stream to the another communication device. The first sub-data stream and the second sub-data stream are two of the M sub-data streams, and M is any integer not less than 2.

16. The communication device according to claim 15, wherein Between the transmission port and the first transmission module, they are connected through a first transmission circuit. Between the transmission port and the second transmission module, they are connected through a second transmission circuit.

17. The communication device according to claim 15 or 16, characterized in that, The single board is also used to detect that the first transmission link is abnormal. The first transmission link is the transmission link where the first transmission module is located, and the first transmission link is connected between the communication device and the another communication device; The transmission port is also used to send at least part of the first sub-data stream to the second transmission module, and the second transmission module is used to send the first sub-data stream and the second sub-data stream to the another communication device.

18. The communication device according to claim 16, wherein, The communication device further includes a cross unit. The cross unit is connected to the first transmission circuit and the second transmission circuit, and the cross unit is used to conduct the first transmission circuit and the second transmission circuit.

19. A communication device, characterized in that, It includes a single board, a first reception module, and a second reception module. The reception ports of the single board are respectively connected to the first reception module and the second reception module. The transmission link where the first reception module is located is different from the transmission link where the second reception module is located; The reception port is used to receive a first sub-data stream from another communication device through the first reception module; The reception port is also used to receive a second sub-data stream from the another communication device through the second reception module. The first sub-data stream and the second sub-data stream are two of the M sub-data streams, and M is any integer not less than 2. The M sub-data streams come from the same transmission port of the another communication device. The transmission link where the first reception module is located is different from the transmission link where the second reception module is located.

20. The communication device according to claim 19, wherein Between the reception port and the first reception module, they are connected through a first reception circuit. Between the reception port and the second reception module, they are connected through a second reception circuit.

21. The communication device according to claim 20, wherein The communication device further includes a cross unit. The cross unit is connected to the first reception circuit and the second reception circuit, and the cross unit is used to conduct the first reception circuit and the second reception circuit.

22. A computer storage medium, characterized in that, It includes an instruction that, when running on a computer, causes the computer to execute the method according to any one of claims 1 to 14.

Citation Information

Cited By

  • Data transmission method, communication device and storage medium

    WO2025156595A1