Data transmission method, communication device and storage medium
By dividing the data stream into multiple sub-data streams in the optical communication system and transmitting through independent links, combined with link-level retransmission, the reliability and packet loss rate problems caused by transmission link abnormalities in the optical communication system are solved, and data transmission with high reliability and low packet loss rate is achieved.
Patent Information
- Application Number
- PCT/CN2024/110259
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-25
- Filing Date
- 2024-08-07
- Publication Date
- 2025-07-31
AI Technical Summary
The abnormality of transmission links in optical communication systems leads to reduced data transmission reliability and increased packet loss rate, which is difficult to effectively solve in the prior art.
By dividing the data stream into multiple sub-data streams in the optical communication device and sending it through an independent transmission link, combined with the link-level retransmission mechanism, it ensures that the data can still be successfully transmitted when any link is abnormal, reducing the packet loss rate.
It improves the reliability of data transmission and reduces the packet loss rate, and even achieves zero packet loss, improving the throughput and bandwidth utilization of the communication system.
Smart Images

Figure CN2024110259_31072025_PF_FP_ABST
Abstract
Description
Data transmission method, communication device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on January 25, 2024, with application number 202410114486.5 and application name “A data transmission method, communication equipment and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to a data transmission method, communication equipment, and storage medium. Background Art
[0003] With the development of telecommunications networks, data centers, cloud computing, the Industrial Internet of Things, and other fields, optical communication systems are becoming 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 and second optical communication devices via a transmission link. This transmission link includes an optical module and optical fiber of the first optical communication device, and an optical module of the second optical communication device, connected in sequence.
[0004] If an abnormality occurs in the transmission link, the traffic to be transmitted through the transmission link will be interrupted, reducing the reliability of data transmission.
[0005] Summary of the Invention
[0006] The present invention provides a data transmission method, communication device, and storage medium for improving the reliability of data transmission and reducing the packet loss rate during data transmission. When the transmission link is abnormal, link-level retransmission can even achieve zero packet loss.
[0007] In a first aspect, an embodiment of the present application provides a data transmission method, the method being applied to a first communication device. The first communication device includes a first board, and a processor of the first board includes a transmission port, each of which is connected to a first transmission module and a second transmission module. The method comprises: first, the transmission port of the first communication device obtains M sub-data streams, where M is an arbitrary 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 board divides a target data stream into M sub-data streams. In another example, the processor of the first 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 via the transmission port. The first transmission module is configured 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 via the transmission port, and the second transmission module is configured to send the second sub-data stream to the second communication device. The first transmission link of the first transmission module is different from the second transmission link of the second transmission module. The first transmission link specifically includes a first transmitting 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 transmitting module and the first receiving module. The second transmission link specifically includes a second transmitting module, a second optical fiber, and a second receiving module. The second transmitting module is connected to the transmitting port, the second receiving module is connected to the receiving port, and the second optical fiber is connected between the second transmitting module and the second receiving module. It will be understood that the first transmission link and the second transmission link are different, independent, and isolated from each other.
[0008] According to this aspect, the first communication device divides the data stream to be sent from the same sending port 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. Then, when any type of abnormality occurs in either the first transmission link or the second transmission link, the flow of the target data stream sent by the first communication device to the second communication device will not be interrupted, thereby improving the reliability of the data stream transmission from the first communication device to the second communication device.
[0009] Based on the first aspect, in an optional implementation, the rate of the first sub-data stream is equal to the rate of the second sub-data stream. This implementation effectively ensures that the rates received by the first sending module and the second sending module are balanced, thereby improving the throughput of the communication system.
[0010] Based on the first aspect, in an optional implementation, the sending port and the first sending module are connected via a first sending circuit, and the sending port and the second sending module are connected via a second sending circuit. The first communication device sends the first sub-data stream to the first sending module via the sending port, including: 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 sends the second sub-data stream to the second sending module through the sending port, including: 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.
[0011] Using this implementation method, the same sending port of the first communication device is connected to two different first sending modules and second sending modules, and the traffic of the target data stream is sent to the two different sending modules, which effectively ensures that even if an abnormality occurs in one of the first transmission link and the second transmission link, the traffic between the sending port and the second communication device is not interrupted, thereby improving the reliability of data transmission.
[0012] Based on the first aspect, in an optional implementation, after the first communication device divides the target data stream into M sub-data streams, the method also includes: the first communication device detects an abnormality in the first transmission link, the first transmission link is the transmission link in which 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 at least part of the first sub-data stream and the second sub-data stream to the second communication device.
[0013] With this implementation, when an anomaly occurs on the first transmission link, the first sub-data stream that has already entered the sending port is switched to the second transmission link for transmission. This, combined with the transmission link's link-level retransmission technology, reduces packet loss, even achieving zero packet loss. Furthermore, the first sub-data stream that has already entered the sending port is directly transmitted over the second transmission link. This reduces the packet loss rate of the first sub-data stream, even achieving zero packet loss, and eliminates the need for retransmission at the transport layer. This effectively reduces the transmission latency of the first sub-data stream compared to retransmission at the transport layer.
[0014] Based on the first aspect, in an optional implementation, the first data stream includes a first data unit and a second data unit, and the timing of sending the first data unit by the sending port 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 the first transmission link has an abnormality, and the first data unit has not been successfully sent to the second communication device via the first transmission link, 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 the first transmission link has an abnormality, and the first data unit has been successfully sent to the second communication device via the first transmission link, 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 the first transmission link has an abnormality, and the first data unit and the second data unit have not been successfully sent to the second communication device via the first transmission link, then the sending port sends the first data unit and the second data unit to the second sending module. If the first data unit and the second data unit have both been transmitted through the first transmission link, and an abnormality occurs in the first transmission link, and the first data unit and the second data unit have been successfully sent to the second communication device through the first transmission link, then the sending port does not need to send the first data unit and the second data unit to the second sending module.
[0015] By adopting this implementation, the packet loss rate of the data stream sent to the second communication device is effectively reduced, because the sending port can retransmit the data unit and even achieve zero packet loss.
[0016] Based on the first aspect, in an optional implementation, the first communication device further includes a cross unit, and 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 turns on the first sending circuit and the second sending circuit through the cross unit.
[0017] With this implementation, the first communication device, through the included cross-connect unit, can flexibly connect the circuits between the transmission port and each transmission module as needed, thereby controlling the specific transmission module to which the data stream emitted by the transmission port is sent, thereby enhancing 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-connect unit can connect the circuit between the transmission port and the first transmission module, and can also connect the circuit between the transmission port and the second transmission module.
[0018] Based on the first aspect, in an optional implementation, before the first communication device turns on the first transmitting circuit and the second transmitting circuit through the cross unit, the method also includes: the first communication device detects that 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 in which the first transmitting module is located, and the second transmission link is the transmission link in which the second transmitting module is located.
[0019] By adopting this implementation method, in order 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 turn on 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.
[0020] Based on the first aspect, in an optional implementation, after the first communication device divides the target data stream into M sub-data streams, the method also includes: the first communication device detects an abnormality in the first transmission link, the first transmission link is the transmission link in which 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 at least part of the first sub-data stream and the second sub-data stream to the second communication device.
[0021] With this implementation, if a first communication device detects an anomaly in the first transmission link, all data streams emitted from the same transmission port are transmitted to the second communication device via the normal second transmission link. This ensures that even if an anomaly occurs in the first transmission link, traffic sent from the first communication device to the second communication device remains uninterrupted, effectively reducing packet loss rates and even achieving zero packet loss.
[0022] Based on the first aspect, in an optional implementation, after the first communication device detects that the first transmission link is abnormal, the method also includes: the first communication device detects that the first transmission link is normal, the first communication device obtains a first data stream, and the first data stream is a partial 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 the second data stream to the second sending module through the sending port.
[0023] By adopting this implementation method, when the first communication device detects that the first transmission link has recovered from abnormality to normal, the first communication device can reallocate the transmission rate through the first transmission link and the second transmission link, so that the first transmission link can transmit the data stream normally, ensuring the reliability of data stream transmission and reducing the packet loss rate. At the same time, it can also ensure the balance of transmission rates of each transmission link between the first communication device and the second communication device, effectively improving the bandwidth utilization between the first communication device and the second communication device.
[0024] 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, the first optical module and the second optical module are respectively connected to the second communication device via optical fibers, and the first communication device sends a first sub-data stream to the first sending module via the sending port, including: the first communication device sends the first sub-data stream to the first optical module via the sending port, the first optical module performs electrical-to-optical conversion on the first sub-data stream to obtain a first optical signal, and sends the first optical signal to the second communication device. The first communication device sends a second sub-data stream to the second sending module via the sending port, including: the first communication device sends the second sub-data stream to the second optical module via the sending port, the second optical module performs electrical-to-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. Using this implementation, the first communication device and the second communication device are applied to an optical communication system.
[0025] Based on the first aspect, in an optional implementation, the first transmitting module includes a first transmitting antenna, the second transmitting module includes a second transmitting antenna, and the first communication device sending a first sub-data stream to the first transmitting module via the transmitting port includes: the first communication device sending the first sub-data stream to the first transmitting antenna via the transmitting port, the first transmitting antenna converting the first sub-data stream into a first electromagnetic wave and radiating the first electromagnetic wave toward the second communication device. The first communication device sending a second sub-data stream to the second transmitting module via the transmitting port includes: the first communication device sending the second sub-data stream to the second transmitting antenna. The second transmitting antenna converts the second sub-data stream into a second electromagnetic wave and radiates the second electromagnetic wave toward the second communication device. Using this implementation, the first communication device and the second communication device are applied to a wireless communication system.
[0026] Based on the first aspect, in an optional implementation, the first sending module includes a first connector, the second sending module includes a second connector, the first connector and the second connector are respectively connected to the second communication device via a cable, the first communication device sending a first sub-data stream to the first sending module via the sending port includes: the first communication device sending the first sub-data stream to the first connector via the sending port; the first communication device sending a second sub-data stream to the second sending module via the sending port includes: the first communication device sending the second sub-data stream to the second connector via the sending port. In this implementation, the first communication device and the second communication device are connected via a cable.
[0027] The second aspect of the embodiment of the present application provides a data transmission method, which is applied to a second communication device, wherein the second communication device includes a receiving port, and the receiving port is connected to a first receiving module and a second receiving module respectively. The method includes: the receiving port of the second communication device receives a first sub-data stream from the first communication device through the first receiving module; the receiving port of the second communication device receives a second sub-data stream from the first communication device through the second receiving module, wherein the first sub-data stream and the second sub-data stream are two of M sub-data streams, wherein M is an arbitrary integer not less than 2, and the M sub-data streams come from the same sending port of the first communication device, and the transmission link in which the first receiving module is located is different from the transmission link in which the second receiving module is located. For the description of the beneficial effects of this aspect, please refer to the first aspect, and no further details will be given.
[0028] Based on the second aspect, in an optional implementation, the receiving port is connected to the first receiving module through a first receiving circuit, and the receiving port is connected to the second receiving module 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.
[0029] Based on the second aspect, in an optional implementation, 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 also includes: the second communication device merges the first sub-data stream and the second sub-data stream into a target data stream.
[0030] Based on the second aspect, in an optional implementation, 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 second communication device detects an abnormality in the first transmission link; 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, the first transmission link is the transmission link in which the first receiving module is located, and the first transmission link is connected between the first communication device and the second communication device.
[0031] Based on the second aspect, in an optional implementation, the second communication device further includes a cross unit, and 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 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 turns on the first receiving circuit and the second receiving circuit through the cross unit.
[0032] 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 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 in which the first receiving module is located, and the second transmission link is the transmission link in which the second receiving module is located.
[0033] 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 also includes: the second communication device detects an abnormality in the first transmission link, the first transmission link is the transmission link in which 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 also 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.
[0034] Based on the second aspect, in an optional implementation, the first receiving module includes a first optical module, 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.
[0035] Based on the second aspect, in an optional implementation, the first receiving module includes a first receiving antenna, the second receiving module includes a second receiving antenna, and the receiving port of the second communication device is connected to the first receiving antenna and the second receiving antenna, respectively.
[0036] Based on the second aspect, in an optional implementation, the first receiving module includes a first connector, 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 port of the second communication device is respectively connected to the first connector and the second connector.
[0037] The third aspect of the embodiment of the present application provides a communication device, including a single board, a first sending module and a second sending module, the sending port of the single board is connected to the first sending module and the second sending module respectively, 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 to divide the target data stream into M sub-data streams, where M is an arbitrary integer not less than 2, and the M sub-data streams include a first sub-data stream and a second sub-data stream; the sending port is used to send the first sub-data stream to the first sending module, and the first sending module is used to send the first sub-data stream to another communication device; the sending port is used to send the second sub-data stream to the second sending module, and the second sending module is used to send the second sub-data stream to the other communication device. For the description of the beneficial effects of this aspect, please refer to the first aspect, and the details will not be repeated.
[0038] Based on the third aspect, in an optional implementation, the sending port and the first sending module are connected via a first sending circuit, and the sending port and the second sending module are connected via a second sending circuit.
[0039] Based on the third aspect, in an optional implementation, the single board is also used to detect an abnormality in the first transmission link, where the first transmission link is the transmission link in which the first sending module is located, and the first transmission link is connected between the communication device and the other communication device; the sending port is also used to send at least part of the first sub-data stream to the second sending module, and the second sending module is used to send the first sub-data stream and the second sub-data stream to the other communication device.
[0040] Based on the third aspect, in an optional implementation, the communication device further includes a cross unit, the cross unit connects the first transmitting circuit and the second transmitting circuit, and the cross unit is used to conduct the first transmitting circuit and the second transmitting circuit.
[0041] The fourth aspect of the embodiment of the present application provides a communication device, including an outer shell, a single board inside the outer shell, and the single board including a sending port. The outer shell is used to insert and fix a first sending module and a second sending module. The sending port of the single board is connected to the first sending module and the second sending module respectively, and 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 to divide the target data stream into M sub-data streams, where M is an arbitrary integer not less than 2, and the M sub-data streams include a first sub-data stream and a second sub-data stream; the sending port is used to send the first sub-data stream to the first sending module, and the first sending module is used to send the first sub-data stream to another communication device; the sending port is used to send the second sub-data stream to the second sending module, and the second sending module is used to send the second sub-data stream to the other communication device. For the description of the beneficial effects of this aspect, please refer to the first aspect, and the details will not be repeated.
[0042] The fifth aspect of the embodiment of the present application provides a communication device, including a single board, a first receiving module and a second receiving module, the receiving port of the single board is connected to the first receiving module and the second receiving module respectively, 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 to receive a first sub-data stream from another communication device through the first receiving module; the receiving port is also used to receive a second sub-data stream from the other communication device through the second receiving module, the first sub-data stream and the second sub-data stream are two of M sub-data streams, M is an arbitrary integer not less than 2, the M sub-data streams come from the same sending port of the other 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 the first aspect, and the details will not be repeated.
[0043] Based on the fifth aspect, in an optional implementation, the receiving port and the first receiving module are connected via a first receiving circuit, and the receiving port and the second receiving module are connected via a second receiving circuit.
[0044] Based on the fifth aspect, in an optional implementation, the communication device further includes a cross unit, the cross unit connects the first receiving circuit and the second receiving circuit, and the cross unit is used to conduct the first receiving circuit and the second receiving circuit.
[0045] The sixth aspect of the embodiment of the present application provides a communication device, including an outer shell, and the outer shell includes a single board. The single board includes a receiving port. The outer shell is used to insert and fix a first receiving module and a second receiving module, and the receiving port of the single board is connected to the first receiving module and the second receiving module respectively. 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 used to: receive a first sub-data stream from another communication device through the first receiving module; receive a second sub-data stream from the other 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, and M is an arbitrary integer not less than 2. For a description of the beneficial effects of this aspect, please refer to the first aspect, and no further details will be given.
[0046] A seventh aspect of an embodiment 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 lines, instructions are stored in the memory, and the processing chip is used to execute the method in any one of the embodiments of the first to second aspects.
[0047] An eighth aspect of the embodiments of the present application provides a computer storage medium comprising instructions, which, when executed on a computer, enables the computer to execute the method in any one of the embodiments of the first to second aspects above.
[0048] A ninth aspect of the embodiments of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method in any one of the embodiments of the first to second aspects above.
[0049] A tenth aspect of an embodiment 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 third aspect above, and the second communication device is as shown in the fifth aspect above.
[0050] In an eleventh aspect of the present application, a communication system is provided, wherein the communication device includes a first communication device and a second communication device, wherein the first communication device is as described in the fourth aspect above, and the second communication device is as described in the sixth aspect above. The communication device also includes a first transmitting module, a second transmitting module, a first receiving module, and a second receiving module. The transmitting port is connected to the first transmitting module and the second transmitting module, respectively. The receiving port is connected to the first receiving module and the second receiving module, respectively. The first transmitting module is connected to the first receiving module. The second transmitting module is connected to the second receiving module. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] FIG1 is a structural diagram of a first embodiment of a communication system provided by the present application;
[0052] FIG2 is a flowchart of the first step of the data transmission method provided by the present application;
[0053] FIG3 is a structural diagram of an existing communication system;
[0054] FIG4 is a flowchart of the second step of the data transmission method provided by this application;
[0055] FIG5 is an example diagram showing an abnormality in the transmission link shown in FIG1 ;
[0056] FIG6 a is an example diagram showing an abnormality in the transmission link shown in FIG3 ;
[0057] FIG6b is an example diagram of the data flow timing shown in FIG6a;
[0058] FIG7 is a flowchart of the third step of the data transmission method provided by this application;
[0059] FIG8 is a diagram illustrating a second embodiment of the communication system provided by the present application;
[0060] FIG9 is an example diagram of the cross unit shown in FIG8 ;
[0061] FIG10 is a flowchart of the fourth step of the data transmission method provided by this application;
[0062] FIG11 is a flowchart of the fifth step of the data transmission method provided by this application;
[0063] FIG12 is a flowchart of the sixth step of the data transmission method provided by this application;
[0064] FIG13 is a diagram illustrating a third embodiment of the communication system provided by the present application;
[0065] FIG14 is a diagram illustrating a fourth embodiment of the communication system provided by the present application;
[0066] FIG15 is a diagram illustrating a fifth embodiment of the communication system provided by the present application;
[0067] FIG16 is a diagram showing an example structure of the sixth embodiment of the communication system provided in this application. DETAILED DESCRIPTION
[0068] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0069] The embodiments of the present application provide a data transmission method that effectively improves the reliability of data transmission and reduces the packet loss rate during data transmission. When a transmission link is abnormal, link-level retransmission can even achieve zero packet loss. To better understand the method shown in this embodiment, the structure of the communication system used by the method shown in the embodiment of the present application is first described in conjunction with Figure 1. Figure 1 is an example diagram of the structure of the first embodiment of the communication system provided by this application. The communication system includes a first communication device 100 and a second communication device 110. Figure 1 shows an example of the communication system being an optical communication system. In this case, the first communication device 100 and the second communication device 110 are connected via an optical fiber. This example does not limit the number of communication devices included in the optical communication system. This example does not limit the networking type of the optical communication system. For example, the optical communication system can adopt a chain network, a ring network, or a star network. This example does not limit the network type used by the optical communication system. For example, the first communication device 100 and the second communication device 110 can both be switches. For another example, 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 may 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 may 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 may be OTN devices. The optical communication system shown in this example may also be applied to a data center network (DCN) or a metropolitan area network, etc., without specific limitation. Taking the first communication device 100 as an example, this example does not limit the device type of the first communication device 100. 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. It can also be a computing server (usually referred to as a server), a high-performance computer (HPC), a storage server, or a memory resource pool. The description of the type of the first communication device 100 in this example is optional, 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 the details will not be repeated here.
[0070] 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. This embodiment does not limit the number of first single boards 101 included in the first communication device 100. The first single board 101 can be used for data processing, or for data cross-linking, or for auxiliary functions. The auxiliary functions can be external alarms, access to external clocks, etc. To achieve the above functions, the first single board 101 includes a processor and memory, etc. This embodiment does not limit the type of processor. For example, the processor may include one or more chips, or one or more integrated circuits. For example, the processor may include one or more switching chips, neural processing units (NPUs), optical digital signal processors (oDSPs), field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), system-on-chips (SoCs), central processor units (CPUs), network processors (NPs), microcontroller units (MCUs), programmable logic devices (PLDs), network card chips, storage interface chips, or other integrated chips. Detailed descriptions are omitted. The processor of the first board 101 includes N transmission ports, where N is an arbitrary integer not less than 1. In this embodiment, the value of N is 2. Then, the processor of the first 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 a description of the type of the processing module, refer to the description of the processor type included in the first board 101, and a detailed description thereof is omitted. This embodiment does not limit the structure of the first transmission port 102. The first transmission port 102 can establish a link for data transmission with the second communication device 110. For a description of the second transmission port 103 included in the first board 101, refer to the description of the first transmission port 102, and a detailed description thereof is omitted.
[0071] The first communication device 100 also includes a first transmitting module 104 and a second transmitting module 105. Since the communication system shown in this embodiment is an optical communication device, the first transmitting module 104 and the second transmitting module 105 are each optical modules, which may also be referred to as optoelectronic conversion modules or optical transceiver modules. This embodiment does not limit the number of transmitting modules included in the first communication device 100. Specifically, the first transmitting port 102 includes i first electrical interfaces and j second electrical interfaces. i and j are arbitrary integers greater than 1. The i first electrical interfaces are respectively connected to the first transmitting module 104, and the j second electrical interfaces are respectively connected to the second transmitting module 105. For example, the first board 101 includes a printed circuit board (PCB). The first transmitting port 102 and the first transmitting module 104 are both packaged on the PCB. The first electrical interface and the first transmitting module 104 are connected via conductive traces on the PCB. The description of the connection between the first electrical interface and the first transmitting module 104 in this embodiment is optional and not limiting. In this example, i and j are both 2. Therefore, the first transmitting port 102 is connected to the first transmitting module 104 via two first transmitting circuits, and the first transmitting port 102 is connected to the second transmitting module 105 via two second transmitting circuits. Both the first transmitting circuits and the second transmitting circuits are formed by conductive traces on a PCB. Each of the four transmitting circuits connected to the first transmitting port 102 has a rate of 112 gigabits per second (Gbps). It should be noted that this embodiment assumes that each transmitting circuit connected to the first transmitting port 102 has the same rate. In other examples, the rates of different transmitting circuits connected to the first transmitting port 102 may be different, and this is not a specific limitation. For the description of the connection between the second electrical interface and the second transmitting module 105, refer to the description of the connection between the first electrical interface and the first transmitting module 104, and the details are not repeated here. Similarly, the second transmitting port 103 includes K first electrical interfaces and L second electrical interfaces, where K and L are arbitrary integers greater than 1. Among them, K first electrical interfaces are connected to the first sending module 104, and L second electrical interfaces are connected to the second sending module 105. It can be understood that the same sending module shown in this embodiment is connected to multiple sending ports. For example, the first sending module 104 is connected to i first electrical interfaces of the first sending port 102 and K first electrical interfaces of the second sending port 103. The first sending module 104 and the second communication device are connected through i+K optical fibers. This embodiment takes the example of i+K optical fibers being located in the same optical cable. In other examples, i+K optical fibers may be located in multiple optical cables. There is no limit on the number of optical cables connected between the first communication device 100 and the second communication device 110. This embodiment does not limit the number of sending ports connected to the same sending module.
[0072] The second communication device 110 includes a second board 111, a first receiving port 112, and a second receiving port 113. For descriptions of the second board 111, the first receiving port 112, and the second receiving port 113, please refer to the descriptions of the first board 101 and the first transmitting port 102, and no further details are given here. The first receiving port 112 of the second board 111 is connected to the first receiving module 114 and the second receiving module 115, respectively, and the second receiving port 113 is connected to the first receiving module 114 and the second receiving module 115, respectively. The first receiving port 112 of the second board 111 and the first receiving module 114, as well as the first receiving port 112 and the second receiving module 115, are connected via a receiving circuit. For descriptions of the receiving circuit, please refer to the description of the transmitting circuit of the first communication device 100, and no further details are given here. For descriptions of the various receiving modules included in the second communication device 110, please refer to the description of the various transmitting modules included in the first communication device 100, and no further details are given here.
[0073] This embodiment uses the example of a connection between the first transmitting module 104 and the first receiving module 114 via a first optical fiber 121, and a connection between the second transmitting module 105 and the second receiving module 115 via a second optical fiber 122. This embodiment does not limit the number of first optical fibers 121 and second optical fibers 122. For example, the first transmitting module 104 and the first receiving module 114 can be connected via at least one optical fiber. This embodiment uses the example of a direct connection between the first transmitting module 104 and the first receiving module 114 via the first optical fiber 121. In other examples, the first transmitting module 104 and the first receiving module 114 can also be connected to at least one optical amplifier station for amplifying optical power, or at least one scheduling station for scheduling the transmission direction of optical signals, etc., without specific limitations. This embodiment does not limit the number or type of first optical fibers 121. For example, if the number of first optical fibers 121 is four, the first transmitting module 104 and the first receiving module 114 can be connected via short range 4 multi-mode fiber (SR4).
[0074] The above description uses the example of 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. This is not limiting; the first communication device 100 can also be the receiver of the data stream, while the second communication device 110 can be the sender of the data stream. To this end, the second board 111 of the second communication device 110 also includes a first transmitting port 116 and a second transmitting port 117, and the second communication device 110 also includes a first transmitting module 118 and a second transmitting module 119. For details, please refer to the description of the first transmitting port 102, the second transmitting port 103, the first transmitting module 104, and the second transmitting module 105 of the first communication device 100; these details are not repeated here. The first communication device 100 also includes a first receiving port 108, the second receiving port 109, the first receiving module 106, and the second receiving module 107. For details, please refer to the description of the first receiving port 112, the second receiving port 113, the first receiving module 114, and the second receiving module 115 of the second communication device 110; these details are not repeated here. Taking the first communication device 100 as an example, a sending port for implementing data stream sending and a receiving port for implementing data stream reception are physically different ports. In other examples, the sending port for implementing data stream sending and the receiving port for implementing data stream reception may be the same physical port. For example, the first sending port 102 and the first receiving port 108 are divisions of logical functions and may be the same port physically. Similarly, the second sending port 103 and the second receiving port 109 are divisions of logical functions and may be the same port physically. For the description of the ports of the second communication device 110, please refer to the description of the ports of the first communication device 100, and no further details will be given.
[0075] 1 and 2 , the execution process of the data transmission method provided in an embodiment of the present application is described, wherein FIG2 is a flow chart of the first step of the data transmission method provided in the present application.
[0076] Step 201: The first sending port obtains M data streams.
[0077] The processor of the first board 101 includes a first transmission port 102 and a second transmission port 103. The processor of the first board 101 obtains a target data stream, which 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 address (MAC address) of the device that ultimately receives the M-way data stream. The data unit can be a data packet or a data frame.
[0078] 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, so the first communication device divides the target data stream into M (M=i+K) sub-data streams. This example takes M=i+K as an example. In other examples, M can also be any integer less than i+K and greater than 2. This embodiment takes the example of M sub-data streams including a first sub-data stream and a second sub-data stream. This embodiment does not limit the number of first sub-data streams and the number of second sub-data streams. For example, if i and K are both 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 112Gbps.
[0079] The processor of the first 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 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 based on the first identifier, and sends the second sub-data stream to the second sending module 105 based on the second identifier.
[0080] The above example uses the processor of first board 101 dividing the target data stream to obtain M sub-data streams. In other examples, the processor of first board 101 directly sends the target data stream to first transmission port 102. First transmission port 102 includes a processing module that divides the target data stream to obtain M sub-data streams. For a description of the process of first transmission port 102 dividing the target data stream, please refer to the description of the processor of first board 101 dividing the target data stream, and the details are not repeated here.
[0081] Step 202: The first sending port sends the first sub-data stream to the first sending module.
[0082] Step 203: The first sending port sends the second sub-data stream to the second sending module.
[0083] In this embodiment, when the first transmission port 102 of the processor of the first single board 101 obtains the first sub-data stream and the second sub-data stream, the first transmission port 102 transmits the first sub-data stream to the first transmission module 104. The first transmission port 102 also transmits the second sub-data stream to the second transmission module 105. For the connection between the first transmission port 102 and the first transmission module 104 and the second transmission module 105, please refer to the corresponding description of FIG1 , and the details are not repeated here. Specifically, the first transmission port 102 and the first transmission module 104 are connected via a first transmission circuit. Therefore, the first transmission port 102 transmits the first sub-data stream to the first transmission module 104 via the first transmission circuit. For the description of the first transmission circuit, please refer to the corresponding description of FIG1 , and the details are not repeated here. Similarly, the first transmission port 102 and the second transmission module 105 are connected via a second transmission circuit. Therefore, the first transmission port 102 transmits the second sub-data stream to the second transmission module 105 via the second transmission circuit. For the description of the second transmission circuit, please refer to the corresponding description of FIG1 , and the details are not repeated here.
[0084] This embodiment takes the case where the rate of the first sub-data stream is the same as the rate 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. This effectively ensures the balance of the rates received by the first sending module and the second sending module, thereby improving the throughput of the communication system.
[0085] This embodiment does not limit the execution sequence between step 202 and step 203.
[0086] Step 204: The first sending module sends the first sub-data stream to the second communication device.
[0087] As shown in Figure 1, first transmitting module 104 is an optical module. Upon receiving the first data substream, first transmitting module 104 performs electrical-to-optical conversion on the first data substream to obtain a first optical signal. First transmitting module 104 is connected to first receiving module 114 via first optical fiber 121. Therefore, first transmitting module 104 transmits the first optical signal to first receiving module 114 via first optical fiber 121.
[0088] In this embodiment, the first transmitting module 104 obtains two first sub-data streams from different transmitting ports and performs electro-optical conversion on the two first sub-data streams to obtain two first optical signals. As an example, two optical fibers are connected between the first transmitting module 104 and the first receiving module 114. 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 transmitting module 104. The WDM is used to wavelength division multiplex the two first optical signals into one optical signal, and transmit the signal to the second communication device 110 via a first optical fiber 121.
[0089] Step 205: The second sending module sends the second sub-data stream to the second communication device.
[0090] Second transmitting module 105 is also an optical module. Upon receiving the second sub-data stream, second transmitting module 105 performs electrical-to-optical conversion on the second sub-data stream to obtain a second optical signal. Second transmitting module 105 is connected to second receiving module 115 via second optical fiber 122. Second transmitting module 105 then transmits the second optical signal to second receiving module 115 via second optical fiber 122. The second transmitting module transmits the second sub-data stream to the second communication device, as described in step 204 for the first transmitting module transmitting the first sub-data stream to the second communication device. Details are omitted here.
[0091] As shown in steps 204 and 205, the transmission link in which the first transmitting module 104 is located is different from the transmission link in which the second transmitting module 105 is located. Specifically, the first transmitting module 104 is located in the first transmission link, and the second transmitting module 105 is located in the second transmission link. The first transmission link specifically includes the first transmitting module 104, the first optical fiber 121, and the first receiving module 114. The second transmission link specifically includes the second transmitting module 105, the second optical fiber 122, and the second receiving module 115. It will be understood that the first and second transmission links shown in this embodiment are different and independent of each other. Optionally, the first transmission link shown in this embodiment may also include the circuitry between the first transmitting module 104 and the first transmitting port of the processor. The second transmission link may also include the circuitry between the second transmitting module 105 and the first transmitting port of the processor. This embodiment does not limit the first and second transmission links, as long as the first and second sub-data streams can be transmitted to the second communication device via the first and second transmission links, respectively.
[0092] This embodiment does not limit the execution sequence between step 204 and step 205.
[0093] Step 206: The first receiving module sends the first sub-data stream to the second receiving module.
[0094] The first receiving module 114 receives the first optical signal via the first optical fiber 121 and performs optical-electrical 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, each of which is used to perform optical-electrical 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, each of which is connected to the first optical fiber 121 and the first receiving port 112 respectively. The first receiving channel receives the first optical signal from the first optical fiber 121 and performs optical-electrical 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.
[0095] Step 207: The second receiving module sends the second sub-data stream to the first receiving port.
[0096] The second receiving module 115 shown in this embodiment has multiple second receiving channels, each of which is used to perform optical-to-electrical 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, each of which is 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 optical-to-electrical 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.
[0097] The first receiving module shown in this embodiment is connected to the first receiving port via a first receiving circuit. The second receiving module is connected to the first receiving port via a second receiving circuit. For descriptions of the first and second receiving circuits, please refer to the corresponding descriptions in FIG1 , and detailed descriptions are omitted here.
[0098] As shown in step 207 and step 208, the first transmission link of the first receiving module 114 is different from the second transmission link of the second receiving module 115. For the description of the first transmission link and the second transmission link, please refer to the above embodiment and will not be described in detail.
[0099] Step 208: The first receiving port merges the first sub-data stream and the second sub-data stream into a target data stream.
[0100] When the first receiving port 112 of the second 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 and second sub-data streams to obtain a target data stream. For example, assuming the data units included in the data stream are data frames, the first receiving port 112 can sort the data streams according to the frame numbers carried in the frame headers of the first and second sub-data streams, thereby sorting the data streams according to the time sequence indicated by the frame numbers to obtain the target data stream. In this embodiment, the sorting of the first and second sub-data streams by the first receiving port 112 is used as an example, which is not limiting. For example, the first receiving port 112 can send the first and second sub-data streams to the processor of the second board 111, and the processor of the second board 111 can merge the first and second sub-data streams. For instructions on merging, please refer to the instructions for merging target data streams by the first receiving port 112, and the details are not repeated here.
[0101] It should be noted that step 208 is optional. The second communication device may not merge the sub-data streams, but instead directly forward or receive each sub-data stream based on 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, such as an NPU or any other type of communication device. If 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 perform the data stream merging process, but instead directly sends the first sub-data stream and the second sub-data stream to the NPU based on the destination address.
[0102] In this embodiment, the first receiving module and the second receiving module are both connected to the same first receiving port 112 of the second single-board processor. In other examples, the first receiving module and the second receiving module may be connected to different receiving ports of the second single-board processor. For example, the first receiving module may be connected to the first receiving port of the second single-board processor, while the second receiving module may 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 via the first receiving port and the second receiving port, respectively. This embodiment does not limit the structure of the second communication device.
[0103] To better understand the beneficial effects of the method provided by this embodiment, an existing communication system is first described with reference to FIG3 . FIG3 is a diagram illustrating the structure of an existing communication system. The communication system shown in FIG3 includes a first communication device 300 and a second communication device 310. For a description of the types of the first communication device 300 and the second communication device 310, please refer to the corresponding description in FIG1 ; the details are not repeated here. The first communication device 300 includes a first board 301. The first transmitting port 302 of the first board 301 is connected only to the first transmitting module 304. The second transmitting port 303 of the first board 301 is connected only to the second transmitting module 305. Comparing FIG1 and FIG3 , it can be seen that in the existing first communication device 300, the same transmitting port on the first board 301 is connected to only one transmitting module. In contrast, in the first communication device 100 shown in FIG1 , the same transmitting port on the first board 301 is connected to multiple transmitting modules. The second communication device 310 includes a second board 311. The first receiving port 312 of the second board 311 is connected to the first receiving module 314. The second receiving port 313 of the second board 311 is connected to the second receiving module 315. Comparing Figures 1 and 3 shows that in the existing second communication device 310, the same receiving port on the second board 311 is connected to only one receiving module. In contrast, in the second communication device 310 shown in Figure 1, the same receiving port on the second board 311 is connected to multiple receiving modules. For a description of each transmitting port, transmitting module, receiving port, and receiving module, please refer to the corresponding description in Figure 1 and will not be repeated here.
[0104] In the existing communication system shown in FIG3 , when the first transmitting port 302 obtains a target data stream to be transmitted to the second communication device, the first transmitting port 302 transmits the target data stream to the first transmitting module 304. Compared to the corresponding communication system in FIG1 , there is no connection between the first transmitting port 302 and the second transmitting module 305. Therefore, the first transmitting port 302 does not transmit a data stream to the second transmitting module 305. The first transmitting module 304 performs electrical-to-optical conversion on the target data stream from the first transmitting port 302 to obtain a target optical signal. The first transmitting module 304 transmits the target optical signal to the first receiving module 314 via the first optical fiber 321. The first receiving module 314 performs optical-to-electrical conversion on the target optical signal to obtain a target data stream, and transmits the target data stream to the first receiving port 312.
[0105] However, in existing communication systems, the first transmission link includes the first transmitting module 304, the first optical fiber 321, and the first receiving module 314. If the first transmission link is abnormal, 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.
[0106] Using the method shown in this embodiment, the first communication device divides the target data stream into a first sub-data stream and a second sub-data stream. The first sub-data stream is sent to the second communication device via the first sending module, and the second sub-data stream is sent to the second communication device via the second sending module, so that the target data stream is transmitted to the second communication device via different transmission links. The different transmission links include different sending modules, receiving modules, and optical fibers. Therefore, if any type of abnormality occurs in either of the first transmission link and the second transmission link, the target data stream sent by the first communication device to the second communication device will not be interrupted. For example, the first sub-data stream in the target data stream is sent to the second communication device via the first transmission link, and the second sub-data stream in the target data stream is sent to the second communication device via the second transmission link. If the first sending module in the first transmission link fails, but the second transmission link is operating normally, then it can be guaranteed 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, thereby improving the reliability of the target data stream transmission and effectively reducing the packet loss rate of the target data stream transmission. Continuing to refer to Figure 1, for example, the first sending module 104 fails, but because the second sub-data stream will be sent to the second communication device 110 through the second transmission link, the first receiving port 112 will still successfully receive the second sub-data stream from the second receiving module 115, thereby improving the reliability of the first communication device 100 transmitting the data stream to the second communication device.
[0107] The following describes how to transmit data streams if an abnormality occurs in the first transmission link shown in Figure 1, in conjunction with the embodiment shown in Figure 4. Figure 4 is a flow chart of the second step of the data transmission method provided by this application.
[0108] Step 401: The first sending port obtains M data streams.
[0109] For the description of the execution process of step 401 shown in this embodiment, please refer to the corresponding step 201 in Figure 2, and the details are not repeated here.
[0110] Step 402: The first sending port detects that the first transmission link is abnormal.
[0111] As shown in Figure 5, Figure 5 is an example diagram of an abnormality in the transmission link shown in Figure 1. The first transmission link includes a first transmitting module 104, a first optical fiber 121, and a first receiving module 114. For a detailed description of the first transmission link, please refer to the corresponding descriptions of Figures 1 and 2, and will not be repeated here. The abnormality of the first transmission link includes at least one of the following situations:
[0112] The first transmission link experiences an optical port disconnection, the performance of the first transmitting module 104 degrades, and the performance of the first receiving module 114 degrades. This embodiment does not limit the situation of the first transmission link being abnormal. 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. Among them, the performance degradation of the first transmitting module 104 may refer to the temperature of the first transmitting module 104 being too high, the first transmitting module 104 being aged, or the device being defective. The degradation of the performance of the first transmitting module 104 will cause the quality of the optical signal emitted by the first transmitting module 104 to degrade, the output optical power to be unstable, the wavelength emitted by the first transmitting module 104 to drift, etc. For an explanation of the performance degradation of the first receiving module 114, please refer to the explanation of the performance degradation of the first transmitting module 104, and the details will not be repeated. This embodiment does not limit the type of optical port disconnection of the first transmission link.
[0113] Optical port disconnection includes at least one of the following:
[0114] The first optical fiber 121 is damaged, the optical attenuation (also known as the energy decay of a photon) of the first optical fiber 121 is excessive, the first optical fiber 121 is excessively bent, the first optical fiber connector is damaged, the connection between the first optical fiber connector and the first optical fiber adapter is poor, the second optical fiber connector is damaged, or the connection between the second optical fiber connector and the second optical fiber adapter is poor. The first optical fiber 121 is connected to the first and second optical fiber connectors, respectively. The first optical fiber connector is connected to the first optical fiber adapter of the first transmitting module 104. The second optical fiber connector is connected to the second optical fiber adapter of the first receiving module 114.
[0115] The following describes an optional manner in which the first sending port detects an abnormality in the first transmission link:
[0116] Option 1
[0117] The first receiving module 114 of the second communication device 110 receives a first optical signal from the first optical fiber 121. For the description of the first optical signal, please refer to the embodiment corresponding to Figure 2, and the details will not be repeated here. The first receiving module 114 performs photoelectric 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 first receiving port 112 fails to perform forward error correction (FEC) decoding on the first sub-data stream, 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 embodiments do not limit the description of the second receiving device detecting an abnormality in the first transmission link. The first receiving port 112 may also directly send the first sub-data stream to the processor of the second board 111, and the processor of the second board 111 may detect whether the first transmission link is abnormal based on the first sub-data stream.
[0118] In this embodiment, 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 an explanation of the process of the second communication device 110 sending the abnormality indication message to the first communication device 100, please refer to the description of the first communication device 100 sending the data stream to the second communication device 110 corresponding to Figure 2, and the details are not repeated here. Specifically, the abnormality indication message carries the 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 based on the abnormality indication message. The first optical fiber 121 and the third optical fiber 123 shown in this embodiment can be located in the same optical cable, or the first optical fiber 121 and the third optical fiber 123 can be located in different optical cables, without specific limitation.
[0119] Option 2
[0120] The first communication device 100 has a local function for detecting whether the first transmission link is abnormal. For example, the first transmitting port of the processor on the first board detects whether the first transmission link is abnormal through heartbeat detection. The first transmitting port transmits a heartbeat packet to the second communication device 111 via the first transmission link. If the first transmission link is normal, the second communication device 110 successfully receives the heartbeat packet and transmits a heartbeat response packet to the first communication device via the third optical fiber 123. If the first transmitting port determines that the heartbeat response packet has been successfully received within the timer duration, the first transmission link is normal. If the first transmitting port determines that the heartbeat response packet has not been received within the timer duration, the first transmission link is abnormal. It should be noted that this embodiment does not limit the description of the first communication device 100 detecting whether the first transmission link is abnormal locally. It should be noted that this embodiment uses the first transmitting port detecting whether the first transmission link is abnormal as an example. In other examples, the processor on the first board may also detect whether the first transmission link is abnormal and send an indication message indicating the abnormality of the first transmission link to the first transmitting port, without further limitation.
[0121] Step 403: The first sending port sends the first sub-data stream to the second sending module.
[0122] In the embodiment corresponding to FIG2 , the first transmission link is originally used to transmit the first sub-data stream. However, in this embodiment, if the first transmission port detects that the first transmission link is abnormal, then if the first sub-data stream continues to be transmitted through the first transmission link, the bit error rate of the first sub-data stream transmission will be too high, or even a transmission interruption will occur. To this end, the first single board shown in this embodiment switches the traffic (i.e., the first sub-data stream) to be transmitted through the first transmission link to the second transmission link for transmission, thereby ensuring that the first sub-data stream can be successfully sent to the second communication device 110, and cooperates with the link-level retransmission mechanism to achieve zero packet loss in the transmission of the target data stream. In order 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 102 sends the obtained first sub-data stream to the second transmission module 105. For example, the first transmission port has a total of two transmission circuits, wherein the first transmission circuit is connected to the first transmission module, and the second transmission circuit is connected to the second transmission module. Then, the first transmission port can send the data stream to the second transmission module via the second transmission circuit.
[0123] 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 are described below:
[0124] Example 1
[0125] When the first sending port detects that the first transmission link is abnormal and the first sub-data stream has not yet been transmitted to the first transmission link, the first sending port directly sends the first sub-data stream to the second sending module.
[0126] Example 2
[0127] The first sub-data stream includes multiple data units arranged in sequence, for example, data unit 1, data unit 2, and so on, data unit P-1, and data unit P, which are arranged in chronological order from front to back. 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 yet been transmitted through the first transmission link. It can be understood that in the first sub-data stream, the first data unit group is sorted 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. Data unit P is the second data unit group that has not yet been transmitted through the first transmission link.
[0128] If the first sending port determines that the timer duration has exceeded and no reception confirmation message has been received from the second communication device. The reception confirmation message is used to indicate that the second communication device has successfully received the first data unit group (for example, data unit 1, data unit 2 to data unit P-1 shown in the above example). Then, the first sending port takes out 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 retransmitted to the second communication device via the second transmission link. The second data unit group subsequently sent by the first sending port is sent to the second sending module. It can be understood that, as shown in this example, in the event of an abnormality in the first transmission link, the first sending port will retransmit the first data unit group and continue to send the second data unit group via the second transmission link.
[0129] If the first sending port determines that it has received a receipt confirmation message from the second communication device within the timer, it indicates that the second communication device has successfully received the first data unit group via the first transmission link. Therefore, the first sending port does not need to retransmit 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.
[0130] It can be understood that, as shown in this example, if the data unit in the first sub-data stream is not successfully received by the second communication device, then the first communication device will cooperate with the link-level retransmission mechanism to retransmit the data unit, thereby achieving zero packet loss in the transmission of the first sub-data stream.
[0131] Example 3
[0132] When the first transmitting port detects an anomaly in the first transmission link, the first sub-data stream has been transmitted entirely to the first transmission link. If the first transmitting port receives a receipt confirmation message from the second communication device within the timer, the receipt confirmation message indicates that the second communication device has successfully received all of the first sub-data streams. Therefore, the first transmitting port does not need to transmit the first sub-data stream to the second transmitting module. If the first transmitting port does not receive a receipt confirmation message from the second communication device within the timer, the second communication device has not received the first sub-data stream. The first transmitting port transmits the first sub-data stream to the second transmitting module.
[0133] Example 4
[0134] The link-level retransmission buffer corresponding to the first sending port has a limited amount of data that can be cached. If the amount of data in the first sub-data stream that has been transmitted through the first transmission link but has not received a reception confirmation message within the timer's duration is greater than the amount of data that can be cached in the link-level retransmission buffer. Then, there will be some data units in the first sub-data stream that have not yet 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 overflowing from the link-level retransmission buffer will not be able to be switched to the second transmission link for retransmission, resulting in packet loss. However, as shown in this example, the data streams to be subsequently sent by the first sending port to the second communication device are all transmitted through the second transmission link, which effectively reduces the packet loss rate of the subsequently sent data streams.
[0135] Step 404: The first sending port sends the second sub-data stream to the second sending module.
[0136] For the description of the execution process of step 404 shown in this embodiment, please refer to the corresponding step 203 in Figure 2, and the details are not repeated here.
[0137] It can be understood that the second sending module shown in this embodiment receives the first sub-data stream and the second sub-data stream from the first sending module 102 .
[0138] Step 405: The second sending module sends the first sub-data stream and the second sub-data stream to the second communication device.
[0139] In this embodiment, when the second transmitting module receives the first and second sub-data streams, it can transmit the first and second sub-data streams to the second communication device. The second transmitting module electrically and optically converts the first and second sub-data streams into first and second optical signals, respectively. For a description of the process of the second transmitting module transmitting the first and second optical signals, please refer to the description of the process of the second transmitting module transmitting the second optical signal, shown in step 205 of FIG. 2 , and the details are not repeated here.
[0140] Step 406: The second receiving module sends the first sub-data stream and the second sub-data stream to the first receiving port.
[0141] The second receiving module receives the first optical signal and the second optical signal via the second transmission link. For a description of the second transmission link, please refer to the corresponding description of Figures 1 and 2, and the details are not repeated here. The second receiving module 115 performs optical-to-electrical conversion on the first optical signal and the second optical signal to obtain a first sub-data stream and a second sub-data stream, respectively, and transmits the first sub-data stream and the second sub-data stream to the first receiving port 112.
[0142] Step 407: The first receiving port merges the first sub-data stream and the second sub-data stream into a target data stream.
[0143] For the description of the execution process of step 407 shown in this embodiment, please refer to the corresponding step 208 in Figure 2, and the details are not repeated here.
[0144] FIG4 shows a process of the first communication device sending a target data stream to the second communication device, taking the first transmission link abnormality as an example. In other examples, if the second transmission link is abnormal, the first communication device may also send a 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 FIG4 showing the process of transmitting the target data stream through the second transmission link when the first transmission link is abnormal, which will not be described in detail.
[0145] To better understand the beneficial effects of the method provided by this embodiment, first, referring to Figures 6a and 6b, an existing communication system will be described to illustrate the process of transmitting a data stream when an abnormality occurs in the first transmission link. Figure 6a is an example diagram of an abnormality in the transmission link shown in Figure 3. Figure 6b is an example diagram of the data stream timing shown in Figure 6a. The communication system shown in Figure 6a includes two transmission links, namely a first transmission link and a second transmission link. The first transmission link includes a first transmitting module 304, a first optical fiber 321, and a first receiving module 314, and the second transmission link includes a second transmitting module 305, a second optical fiber 322, and a second receiving module 315. The first transmission link is used to transmit data stream 610. However, if the first transmission link is abnormal, then the first board 301 obtains data stream 620. The timing of the first board 301 sending data stream 610 is earlier than the timing of sending data stream 620. Specifically, data stream 610 is a data stream that has been transmitted through the first transmission link (i.e., the first board 301 has sent data stream 610 to the first transmission port 302), and data stream 620 is a data stream that has not yet been transmitted through the first transmission link (i.e., the first board 301 has not yet sent data stream 620 to the first transmission port 302). In order for the first board 301 to successfully send data stream 620 to the second communication device 310, the first board 301 switches the transmission of data stream 620 from the first transmission link to the second transmission link. The first board 301 sends data stream 620 to the second transmission port 303. The second transmission port 303 sends the data stream 620 to the second transmission module 305, and transmits the data stream 620 to the second communication device 310 through the second transmission link. For a description of the process of the first communication device 300 transmitting data stream 620 through the second transmission link, please refer to the description of the process of the first communication device 300 transmitting data stream 610 through the first transmission link, and the details will not be repeated here. However, because the first transmission port 302 is only connected to the first transmission module 304, the data stream 610 that has entered the first transmission port 302 cannot be switched to the second transmission link for transmission. For example, if the data stream 610 has already 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. Because the first transmission port is only connected to the first transmission module, the retransmission of the first transmission port will still retransmit the data stream 610 through the first transmission link. The abnormality of the first transmission link will result in the data stream 610 still being unable to be successfully transmitted to the second communication device even if it is retransmitted. For another example, if the data stream 610 has not yet been transmitted through the first transmission link, but an abnormality of the first transmission link has been detected, and the first transmission port is only connected to the first transmission module, then the data stream 610 will 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, resulting in packet loss.It can be understood that in the existing solutions shown in FIG. 6 a and FIG. 6 b , when the first transmission link is abnormal, the data flow of the first sending module 304 that has entered the first sending port 302 may be lost.
[0146] Using the method shown in this embodiment, for example, the communication system shown in FIG5 includes two transmission links: a first transmission link and a second transmission link. The first transmission link includes a first transmitting module 104, a first optical fiber 121, and a first receiving module 114, while the second transmission link includes a second transmitting module 105, a second optical fiber 122, and a second receiving module 115. Since both the first transmitting module 104 and the second transmitting module 105 shown in this embodiment are connected to the first transmitting port 102, it can be understood that the same first transmitting port 102 shown in this embodiment is connected to both the first transmission link and the second transmission link. Therefore, if the first transmission link fails, the first sub-data stream that has entered the first transmitting module 102 will be switched to the second transmitting module 105 for transmission, and the second transmitting module 105 will be responsible for sending the first sub-data stream to the second communication device. Using the method shown in this embodiment, if the first transmission link fails, the first sub-data stream that has entered the first transmitting port will be switched to the second transmission link for transmission, effectively reducing the packet loss rate, or 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, or even achieving zero packet loss, there is no need to perform transmission-level retransmission through the transport layer. Therefore, compared with retransmission through the transport layer, the transmission delay of the first sub-data stream is effectively reduced.
[0147] FIG7 is a flowchart of the third step of the data transmission method provided by this application. In the embodiment shown in FIG4 , the data stream transmission process is described using the example of an abnormality occurring in the first transmission link. For example, if the abnormality type of the first transmission link is a flash disconnection of the optical port, the flash disconnection of the optical port of the first transmission link generally lasts for approximately 5 seconds before returning to normal. The embodiment shown in FIG7 illustrates the data stream transmission process when the first transmission link returns to normal after an abnormality.
[0148] Step 701: The first sending port obtains M data streams.
[0149] Step 702: The first sending port detects that the first transmission link is abnormal.
[0150] Step 703: The first sending port sends the first sub-data stream to the second sending module.
[0151] Step 704: The first sending port sends the second sub-data stream to the second sending module.
[0152] Step 705: The second sending module sends the first sub-data stream and the second sub-data stream to the second communication device.
[0153] Step 706: The second receiving module sends the first sub-data stream and the second sub-data stream to the first receiving port.
[0154] Step 707: The first receiving port merges the first sub-data stream and the second sub-data stream into a target data stream.
[0155] For the description of the execution process of steps 701 to 707 shown in this embodiment, please refer to steps 401 to 407 corresponding to FIG. 4 , and detailed description is omitted.
[0156] Step 708: The first sending port detects that the first transmission link has recovered from abnormality to normal.
[0157] This embodiment does not limit the process of the first sending port detecting that the first transmission link has returned 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. The 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 based on the heartbeat data packet. The first sending port detects whether the first transmission link has returned to normal based on the heartbeat data packet and the heartbeat response data packet. Optionally, the processor of the first single board can also detect whether the first transmission link has returned to normal based on heartbeat detection. When the first transmission link recovers from abnormality to normal, the first receiving module 114 can successfully receive the data stream from the first communication device via the first transmission link, and the bit error rate of the received data stream is low, or the packet loss rate of the received data stream is low, etc.
[0158] Step 709: The first sending port obtains the first data stream and the second data stream.
[0159] The first sending port obtains the data stream to be transmitted through the second transmission link, and divides the 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, and the details are not repeated here.
[0160] Step 710: The first sending port sends a first data stream to the first sending module.
[0161] Step 711: The first sending port sends a second data stream to the second sending module.
[0162] In this embodiment, when the first sending port 102 of the first 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.
[0163] Step 712: The first sending module sends the first data stream to the second communication device.
[0164] Step 713: The second sending module sends the second data stream to the second communication device.
[0165] Step 714: The first receiving module sends the first data stream to the second board.
[0166] Step 715: The second receiving module sends the second data stream to the second board.
[0167] Step 716: The first receiving port merges the first data stream and the second data stream into a target data stream.
[0168] As shown in steps 710 to 716 in this embodiment, please refer to the process of the first communication device sending the first sub-data stream and the second sub-data stream to the second communication device shown in steps 204 to 208 corresponding to Figure 2, and the details are not repeated here.
[0169] This embodiment illustrates the data flow transmission process of the first transmission link recovering from abnormality to normal. If the data flow transmission process of the second transmission link recovering from abnormality to normal is described in detail in FIG7 , no further details are given.
[0170] By adopting the method shown in this embodiment, when the first communication device detects that the first transmission link has recovered from abnormality to normal, the first communication device can reallocate the transmission rate through the first transmission link and the second transmission link, so that the first transmission link that has returned to normal transmits the first data stream, and the second transmission link transmits the second data stream, thereby ensuring the reliability of data stream transmission and reducing the packet loss rate, and even achieving zero packet loss. It can also ensure the balance of 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 bandwidth utilization between the first communication device and the second communication device.
[0171] Figure 8 is a diagram illustrating the structure of a second embodiment of the communication system provided in 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 detailed descriptions, please refer to the corresponding description of Figure 1, and detailed descriptions are omitted. The first communication device 800 shown in Figure 8 is different from the first communication device shown in Figure 1 in that the first single board 801 shown in Figure 8 also includes a cross unit 841. The cross unit 841 is respectively connected to the first sending port 802, the second sending port 803, the first receiving port 808, and the second receiving port 809 of the first single board 801. In addition, the cross unit 841 is also respectively connected to the first sending module 804, the second sending module 805, the first receiving module 806, and the second receiving module 807. This embodiment uses the cross-connect unit 841 as an example of a module included in the first board 801, but this is not limiting. For example, the cross-connect unit 841 may also be a chip, module, or board separate from the first board 801. The cross-connect unit 841 is used to conduct the circuit between the transmitting port and a transmitting module, and to conduct the circuit between the receiving port and a receiving module. Conductivity refers to the state in which current can flow. Therefore, when the cross-connect unit 841 conducts the circuit between the transmitting port and a transmitting module, the current emitted by the transmitting port can flow to the transmitting module. When the cross-connect unit 841 conducts the circuit between the receiving port and a receiving module, the current emitted by the receiving module can flow to the receiving port.
[0172] For example, if the crossbar unit 841 receives a data stream from the first transmitting port 802, it may send the data stream to the first transmitting module 804 or the second transmitting module 805. A more detailed description of the crossbar unit is provided in FIG9 . FIG9 is an exemplary diagram of the crossbar unit shown in FIG8 . The crossbar 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 multiple circuits connected between the first transmitting port 802 and the first transmitting module 804, and between the first transmitting port 802 and the second transmitting module 805. Similarly, the crossbar array 921 also includes multiple circuits connected between the second transmitting port 803 and the first transmitting module 804, and between the second transmitting module 803 and the second transmitting module 805. The register 900 is connected to the crossbar array 921 and, through software configuration, selectively controls the on / off state of each circuit in the crossbar array 921. Specifically, taking the first sending port 902 as an example, the four electrical interfaces of the first sending 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 sending 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 sending 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 understood that the description of the number of electrical interfaces included in the first sending port 802 and each sending module in this embodiment is an optional example and is not limiting. Register 900 includes multiple bits. For example, register 900 includes bit 1 and bit 2. Bit 1 is used to turn on or off the first transmission circuit between electrical interface 901 and electrical interface 905, and bit 2 is used to turn on or off the first transmission circuit between electrical interface 902 and electrical interface 906. For another example, register 900 includes bits 3 and 4, where bit 3 is used to turn on or off the second transmission circuit between electrical interface 903 and electrical interface 909, and bit 4 is used to turn on or off the second transmission circuit between electrical interface 904 and electrical interface 910. Taking bit 1 as an example, if it is necessary to turn on the first transmission circuit between the first transmission port 802 and the first transmission module 804, the processor of the first board 801 sends a control signaling to register 900 via the bus. The control signaling is used to set bits 1 and 2 of register 900 to 1, thereby turning on the first transmission circuit between electrical interface 901 and electrical interface 905, and the first transmission circuit between electrical interface 902 and electrical interface 906. The control signaling is also used to set bit 3 and bit 4 of register 900 to 1, thereby enabling the second transmitting circuit between electrical interface 903 and electrical interface 909, and the second transmitting circuit between electrical interface 904 and electrical interface 910.The data stream output by the first transmitting port 802 via the electrical interface 901 and the electrical interface 902 is transmitted to the first transmitting module 804 via the first transmitting circuit in the crossbar array 921. The data stream output by the first transmitting port 802 via the electrical interface 903 and the electrical interface 904 is transmitted to the second transmitting module 805 via the second transmitting circuit in the crossbar array 921. This example uses the example of setting a register bit to 1 to turn on the corresponding circuit. In other examples, the register bit can also be set to 0 to turn on the corresponding circuit. This embodiment uses the example of the first board 801 including one crossbar unit. This embodiment does not limit the number of crossbar units included in the first board 801. For a description of the structure and function of each crossbar unit, please refer to the description of Figure 9, and the details are not repeated here. The description of the crossbar unit implementation in this embodiment is an optional example and is not limited. As long as the crossbar unit can connect the various circuits between the transmitting port and the transmitting module, it is sufficient.
[0173] The second communication device 810 specifically includes a second board 811, a first receiving module 814, a second receiving module 815, a first transmitting module 818, and a second transmitting module 819. For detailed descriptions, please refer to the corresponding description of FIG1 , and detailed descriptions are omitted here. The second communication device 810 shown in FIG8 differs from the second communication device shown in FIG1 in that the second board 811 shown in FIG8 also includes a cross-connect unit 842. This cross-connect unit 842 is respectively connected to the first receiving port 812, the second receiving port 813, the first transmitting port 816, and the second transmitting port 817 of the second board 811. Furthermore, this cross-connect unit 842 is also respectively connected to the first receiving module 814, the second receiving module 815, the first transmitting module 818, and the second transmitting module 819. For a description of this cross-connect unit 842, please refer to the description of the cross-connect unit 841 included in the first communication device, and detailed descriptions are omitted here. It is understood that this cross-connect unit 842 is used to connect the circuit between a transmitting port and a transmitting module, and to connect the circuit between a receiving port and a receiving port.
[0174] The execution process of the data transmission method provided by the embodiment of the present application is described with reference to Figures 8 to 10. Figure 10 is a flowchart of the fourth step of the data transmission method provided by the present application.
[0175] Step 1001: A cross unit turns on a first transmitting circuit and a second transmitting circuit.
[0176] When the processor of first board 801 determines that both the first and second transmission links are normal, it sends a first control signaling to cross-connect unit 841. Based on the first control signaling, cross-connect unit 841 connects the first and second transmission circuits. 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 a description of circuit connection by cross-connect unit 841, please refer to the corresponding description of FIG. 8 and will not be further described here.
[0177] Step 1001 shown in this embodiment may be a pre-executed step. After executing step 1001 once, the first communication device does not need to repeat step 1001 when subsequently executing the data transmission method.
[0178] Step 1002: The first sending port obtains M data streams.
[0179] For the description of the execution process of step 1002 shown in this embodiment, please refer to the corresponding step 201 in Figure 2, and the details are not repeated here.
[0180] Step 1003: The first sending port sends the first sub-data stream to the first sending module.
[0181] When the cross-connect unit 841 turns on the first transmitting circuit, the first transmitting port 802 can transmit the first sub-data stream to the first transmitting module 804 via the first transmitting circuit.
[0182] Step 1004: The first sending port sends the second sub-data stream to the second sending module.
[0183] When the cross-connect unit 841 turns on the second transmitting circuit, the first transmitting port 802 can transmit the second sub-data stream to the second transmitting module 805 via the second transmitting circuit.
[0184] This embodiment does not limit the execution sequence between step 1003 and step 1004.
[0185] Step 1005: The first sending module sends the first sub-data stream to the second communication device.
[0186] Step 1006: The second sending module sends the second sub-data stream to the second communication device.
[0187] For the description of the execution process of steps 1005 to 1006 shown in this embodiment, please refer to the corresponding steps 204 to 205 in Figure 2, and the details are not repeated here.
[0188] Step 1007: The cross unit turns on the first receiving circuit and the second receiving circuit.
[0189] When the processor of the second board 811 determines that both the first and second transmission links are normal, it sends a second control signaling to the cross-connect unit 842. Based on the second control signaling, the cross-connect unit 842 turns on the first and second receiving circuits. 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 a description of how the cross-connect unit 842 turns on the circuits, please refer to the corresponding description of FIG. 8 and will not be further described here.
[0190] Step 1007 shown in this embodiment may be a pre-executed step. After executing step 1007 once, the second communication device does not need to repeat step 1007 when subsequently executing the data transmission method. This embodiment does not limit the execution sequence of steps 1001 to 1006 and step 1007.
[0191] Step 1008: The first receiving module sends the first sub-data stream to the second receiving module.
[0192] When the cross-connect 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 the first receiving circuit.
[0193] Step 1009: The second receiving module sends the second sub-data stream to the first receiving port.
[0194] When the cross-connect 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 the second receiving circuit.
[0195] Step 1010: The first receiving port merges the first sub-data stream and the second sub-data stream into a target data stream.
[0196] For the description of the execution process of step 1010 shown in this embodiment, please refer to the corresponding step 208 in Figure 2, and the details are not repeated here.
[0197] Using the method shown in this embodiment, the first communication device, through the included cross-connect unit, can flexibly conduct circuits as needed, thereby controlling which transmitting module the data stream emitted by the first board is sent to, thereby improving the flexibility of data stream transmission. The second communication device, through the included cross-connect unit, can flexibly conduct circuits as needed, thereby controlling which receiving module receives the data stream from the first communication device, thereby improving the reliability of data stream transmission.
[0198] The following describes how to transmit data when an abnormality occurs in the first transmission link shown in Figure 8 in conjunction with the embodiment shown in Figure 11. Figure 11 is a flowchart of the fifth step of the data transmission method provided by this application.
[0199] Step 1101: The cross unit turns on the first transmitting circuit and the second transmitting circuit.
[0200] For the execution process of step 1101 shown in this embodiment, please refer to step 1001 corresponding to FIG10 , and detailed description is omitted.
[0201] Step 1102: The first sending port obtains M data streams.
[0202] Step 1103: The first sending port detects that the first transmission link is abnormal.
[0203] For the description of the execution process of step 1102 to step 1103 shown in this embodiment, please refer to the corresponding steps 401 to step 402 in Figure 4, and the details are not repeated here.
[0204] Step 1104: The first sending port sends the first sub-data stream to the second sending module.
[0205] When the cross-connect unit 841 turns on the second transmitting circuit, the first transmitting port 802 can transmit the first sub-data stream to the second transmitting module 805 via the second transmitting circuit.
[0206] As shown in Figure 8, the first transmission link includes a first transmitting module 804, a first optical fiber 812, and a first receiving module 814. The second transmission link includes a second transmitting 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 transmitting port detects that the first transmission link is abnormal. Then, if the first sub-data stream continues to be transmitted through the first transmission link, the bit error rate of the first sub-data stream transmission will be too high, or even a transmission interruption will occur. To this end, the first transmitting port 802 shown in this embodiment switches the traffic (i.e., the first sub-data stream) to be transmitted through the first transmission link to the second transmission link for transmission, thereby ensuring 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 for the target data stream transmission. In order 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 transmitting port 802 sends the first sub-data stream to the second transmitting module 805 via the second transmitting circuit that has been turned on.
[0207] Step 1105: The first sending port sends the second sub-data stream to the second sending module.
[0208] For the execution process of step 1105 shown in this embodiment, please refer to the corresponding step 1004 in Figure 10, and the details are not repeated here.
[0209] Step 1106: The second sending module sends the first sub-data stream and the second sub-data stream to the second communication device.
[0210] For the description of the execution process of step 1106 shown in this embodiment, please refer to the corresponding step 405 in Figure 4, and the details are not repeated here.
[0211] Step 1107: The cross unit turns on the first receiving circuit and the second receiving circuit.
[0212] For a description of step 1107 in this embodiment, please refer to step 1007 in FIG. 10 , and the details are not limited thereto. Step 1107 in this embodiment may be a pre-executed step. After executing step 1107 once, the second communication device does not need to repeat step 1107 when subsequently executing the data transmission method. This embodiment does not limit the execution sequence of steps 1101 through 1106 and step 1107.
[0213] Step 1108: The second receiving module sends the first sub-data stream and the second sub-data stream to the first receiving port.
[0214] Step 1109: The first receiving port merges the first sub-data stream and the second sub-data stream into a target data stream.
[0215] For the description of the execution process of steps 1108 to 1109 shown in this embodiment, please refer to steps 406 to 407 corresponding to FIG. 4 , and detailed description is omitted.
[0216] By adopting the method shown in this embodiment, the cross unit pre-turns on the first transmitting circuit and the second transmitting circuit. Then, when the first transmission link is abnormal, the data stream emitted by the first transmitting port is sent to the second transmitting module via the second transmitting circuit 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, thereby ensuring the reliability of data stream transmission, effectively reducing the packet loss rate, and cooperating with the link-level retransmission mechanism to achieve zero packet loss.
[0217] FIG12 is a flowchart of the sixth step of the data transmission method provided by this application. In the embodiment shown in FIG11, the data flow transmission process is described with an exception of the first transmission link. The embodiment shown in FIG12 illustrates the data flow transmission process when the first transmission link recovers from the exception.
[0218] Step 1201: The cross unit turns on the first transmitting circuit and the second transmitting circuit.
[0219] Step 1202: The first sending port obtains M data streams.
[0220] Step 1203: The first sending port detects that the first transmission link is abnormal.
[0221] Step 1204: The first sending port sends the first sub-data stream to the second sending module.
[0222] Step 1205: The first sending port sends the second sub-data stream to the second sending module.
[0223] Step 1206: The second sending module sends the first sub-data stream and the second sub-data stream to the second communication device.
[0224] Step 1207: The cross unit turns on the first receiving circuit and the second receiving circuit.
[0225] Step 1208: The second receiving module sends the first sub-data stream and the second sub-data stream to the first receiving port.
[0226] Step 1209: The first receiving port merges the first sub-data stream and the second sub-data stream into a target data stream.
[0227] For the description of the execution process of steps 1201 to 1209 shown in this embodiment, please refer to steps 1101 to 1109 corresponding to Figure 11, and the details are not repeated here.
[0228] Step 1210: The first sending port detects that the first transmission link recovers from abnormality to normal.
[0229] For the description of the execution process of step 1211 shown in this embodiment, please refer to step 708 corresponding to Figure 7, and the details are not repeated here.
[0230] Step 1211: The first sending port obtains a first data stream and a second data stream.
[0231] For the description of the execution process of step 1211 shown in this embodiment, please refer to the corresponding step 709 in Figure 7, and the details are not repeated here.
[0232] Step 1212: The first sending port sends the first data stream to the first sending module.
[0233] The first sending module 802 of the first board 801 shown in this embodiment sends the first data stream to the first sending module 804 via the first circuit.
[0234] Step 1213: The first sending port sends the first data stream to the second sending module.
[0235] The first sending port 802 of the first board 801 sends the second data stream to the second sending module 805 via the second circuit.
[0236] Step 1214: The first sending module sends the first data stream to the second communication device.
[0237] Step 1215: The second sending module sends the second data stream to the second communication device.
[0238] For the description of the execution process of steps 1212 to 1215 shown in this embodiment, please refer to steps 712 to 715 corresponding to Figure 7, and the details are not repeated here.
[0239] Step 1216: The first receiving module sends the first data stream to the second board.
[0240] The first receiving module 814 sends the first data stream to the second board 811 via the first receiving circuit.
[0241] Step 1217: The second receiving module sends the second data stream to the second board.
[0242] The second receiving module 815 sends the second data stream to the second board 811 via the second receiving circuit.
[0243] Step 1218: The first receiving port merges the first data stream and the second data stream into a target data stream.
[0244] For the description of the execution process of steps 1216 to 1218 shown in this embodiment, please refer to steps 714 to 716 corresponding to Figure 7, and the details are not repeated here.
[0245] By adopting the method shown in this embodiment, when the first communication device detects that the first transmission link has recovered from abnormality to normal, 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, thereby ensuring the reliability of data stream transmission and reducing the packet loss rate, and even achieving zero packet loss. It can also ensure the balance of transmission rates of each transmission link between the first communication device and the second communication device, thereby improving the utilization of bandwidth between the first communication device and the second communication device.
[0246] In the above embodiment, the first board of the first communication device includes two sending ports and the second board includes two receiving ports. Figure 13 is a structural diagram of a third embodiment of the communication system provided by this application.
[0247] The communication system shown in this embodiment includes a first communication device 1300 and a second communication device 1310. For descriptions of the types of the first communication device 1300 and the second communication device 1310, please refer to the corresponding description in FIG1 , and the details are not repeated here. The first communication device 1300 includes a first board 1301, which includes four transmission ports, namely, a first transmission port 1302, a second transmission port 1303, a third transmission port 1304, and a fourth transmission port 1305. When the first communication device 1300 includes four transmission ports, the first communication device 1300 also includes four transmission modules, namely, a first transmission module 1306, a second transmission module 1307, a third transmission module 1308, and a fourth transmission module 1309. It should be understood that this embodiment uses the example that the number of transmission ports included in the first communication device 1300 is equal to the number of transmission modules, and this is not a limitation. For example, the number of transmission ports may be greater than the number of transmission modules, and for another example, the number of transmission modules may be greater than the number of transmission 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. Similarly, 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. This embodiment uses the connection between the sending port and the sending module as shown in Figure 1 as an example. In other examples, the sending port and the sending module can also be connected via a cross unit as shown in Figure 8. For a detailed description of the cross unit, please refer to Figures 8 and 9, and will not be described in detail here.
[0248] The second communication device 1310 includes a second board 1320, which specifically includes four receiving ports: 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 also includes a first receiving module 1311, a second receiving module 1312, a third receiving module 1313, and a fourth receiving module 1314. The first receiving port 1315 is connected to the first receiving module 1311, the second receiving module 1312, the third receiving module 1313, and the fourth receiving module 1314, respectively. Similarly, the fourth receiving port 1318 is connected to the first receiving module 1311, the second receiving module 1312, the third receiving module 1313, and the fourth receiving module 1314, respectively. This embodiment takes the connection between the receiving port and the receiving module as shown in Figure 1 as an example. In other examples, the receiving port and the receiving module can also be connected via a cross unit as shown in Figure 8. For a detailed description of the cross unit, please refer to Figures 8 and 9, and no further details are given. For the description of each sending port, sending module, receiving port, and receiving module shown in this embodiment, please refer to the corresponding description of Figure 1, and no further details are given. 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, the second sub-data stream to the second sending module 1307, the third sub-data stream to the third sending module 1308, and 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, and no further details are given. This embodiment uses the example of the first, second, third, and fourth sub-data streams all having equal rates. Specifically, for example, the first sub-data stream's rate is 25% of the target data stream rate. Similarly, the fourth sub-data stream's rate is 25% of the target data stream rate, thereby improving the transmission performance and throughput of the communication system. In other examples, the first, second, third, and fourth sub-data streams' rates may be different, and this is not a limitation. This embodiment uses the example of the first, second, third, and fourth sub-data streams each being one channel, without limitation. This embodiment does not limit the number of channels for the first, second, third, and fourth sub-data streams. It should be noted that this embodiment does not limit the number of receive ports, transmit ports, receive modules, or transmit modules included in the communication device.Taking the first communication device 1300 as an example, if the first communication device 1300 includes four transmission modules, each transmission port is connected to the four transmission modules. The description of the connection relationship between the transmission ports and the transmission modules in this embodiment is an optional example and is not limiting. That is, a transmission port in the first communication device 1300 can be connected to some of the four transmission modules. For example, the first transmission port 1302 is connected to the first transmission module 1306, the second transmission module 1307, and the third transmission module 1308. As long as a transmission port is connected to at least two transmission modules, it is sufficient.
[0249] The communication system shown above takes the sending port included in the first communication device and the receiving port included in the second communication device as an example, which is a one-to-one relationship. For example, the first sending port and the first receiving port are one-to-one, 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 the communication system shown in Figure 14, the sending port included in the first communication device and the receiving port included in the second communication device can also be a one-to-many relationship. Then, the first sub-data stream and the second sub-data stream sent by the first sending port will be sent to different receiving ports. Among them, Figure 14 is an example diagram of the structure of the fourth embodiment of the communication system provided by this application. The communication system shown in this embodiment includes a first communication device 1400 and a second communication device 1410. For the description of the types of the first communication device 1400 and the second communication device 1410, please refer to the corresponding description of Figure 1, and the specific details will not be repeated. The first communication device 1400 includes a first board 1401. The first electrical interface of the first transmitting port 1402 of the first board 1401 is connected to the first transmitting module 1404, the second electrical interface is connected to the second transmitting module 1405, the third electrical interface is connected to the first transmitting module 1404, and the fourth electrical interface is connected to the second transmitting module 1405. This embodiment does not limit the number of each of the first electrical interface, the second electrical interface, the third electrical interface, and the fourth electrical interface. The first electrical interface and the second electrical interface respectively correspond to the first receiving port 1412 included in the second board 1411 of the second communication device 1410. The third electrical interface and the fourth electrical interface respectively correspond to the second receiving port 1413 included in the second board 1411. The first receiving port 1412 is connected to the first receiving module 1414 and the second receiving module 1415, respectively. The first sending port 1402 sends the first sub-data stream to the first sending module 1404 through the first electrical interface, and sends the second sub-data stream to the second sending module 1405 through the second electrical interface. The first receiving 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-mentioned method embodiments, and the details will not be repeated here. The data stream sent by the first sending port 1402 through the third electrical interface and the fourth electrical interface will be transmitted to the second receiving port 1413. For specific description, please refer to the description of the first electrical interface and the second electrical interface sending the data stream to the first receiving port 1412, and the details will not be repeated here. The sending ports and the sending modules shown in this embodiment, as well as the receiving ports and the receiving modules, can also be connected through a cross unit as shown in Figure 8. For the specific description of the cross unit, please refer to Figures 8 and 9, and the details will not be repeated here.
[0250] In the embodiment shown in Figure 14, the first sending port is capable of sending data streams to at least two different receiving ports. For example, the sending port included in the first communication device and the receiving port included in the second communication device are in a one-to-many relationship. In the embodiment shown in Figure 15, the sending port included in the first communication device and the receiving port included in the second communication device can also be in a many-to-one relationship. That is, the data streams sent by multiple sending ports of the first communication device will be transmitted to the same receiving port of the second communication device. Figure 15 is an example diagram of the structure of the fifth embodiment of the communication system provided in this application. The communication system shown in this embodiment includes a first communication device 1500 and a second communication device 1510. For the description of the types of the first communication device 1500 and the second communication device 1510, please refer to the corresponding description of Figure 1, and the details will not be repeated. The first communication device 1500 includes a first single board 1501, wherein the first transmission port 1502 of the first single board 1501 is connected to the first transmission module 1504 and the second transmission module 1505 respectively, and the second transmission port 1503 is connected to the first transmission module 1504 and the second transmission module 1505 respectively. For the specific connection description, please refer to the corresponding description of Figure 1, and the details are not repeated here. The second communication device 1510 includes a second single board 1511, wherein the first electrical interface of the second single board 1511 is connected to the first receiving module 1514, the second electrical interface is connected to the second receiving module 1515, the third electrical interface is connected to the first receiving module 1514, and the fourth electrical interface is connected to the second receiving module 1515. This embodiment does not limit the number of each of the first electrical interface, the second electrical interface, the third electrical interface, and the fourth electrical interface. 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 sending port 1502 sends the first sub-data stream to the first receiving port 1512 through the first sending module 1504, and the first sending port 1502 sends the second sub-data stream to the first receiving port 1512 through the second sending module 1505. For the description of the specific data stream transmission process, please refer to any of the above-mentioned method embodiments, and no further details are given. The third electrical interface and the fourth electrical interface of the first receiving port 1512 correspond to the second sending port 1503 included in the first single board 1501 of the first communication device. Then, the data stream sent by the second sending port 1503 will also be transmitted to the first receiving port 1512. For the specific description of the transmission, please refer to the description of the first sending port 1502 sending the data stream to the first receiving port 1512, and no further details are given. The various sending ports and sending modules shown in this embodiment, as well as the various receiving ports and the various receiving modules, can also be connected through a cross unit as shown in Figure 8. For the specific description of the cross unit, please refer to Figures 8 and 9, and no further details are given.
[0251] In the communication system shown in the above embodiment, different transmitting ports are located on the same chip on the same board, and different receiving ports are located on the same chip on the same board. In the embodiment shown in Figure 16, different transmitting ports can be located on different chips on the same board, and different receiving ports can be located on different chips on the same board. Figure 16 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 descriptions of the types of the first communication device 1600 and the second communication device 1610, please refer to the corresponding description of Figure 1, and the details are not repeated here. The first communication device 1600 shown in this embodiment includes a first board 1601. The first board 1601 specifically includes a first chip 1602 and a second chip 1603. The first chip 1602 specifically includes a first transmitting port 1604. The second chip 1603 specifically includes a second transmitting port 1605. The first transmitting port 1604 is connected to a first transmitting module 1606 and a second transmitting module 1607, respectively. The second sending port 1605 is connected to the first sending module 1606 and the second sending module 1607 respectively. For the specific connection description, please refer to the corresponding description of Figure 1, and no further details are given. 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 receiving port 1614. The second chip 1613 specifically includes a second receiving port 1615. The first receiving port 1614 is connected to the first receiving module 1616 and the second receiving module 1617 respectively. The second receiving port 1615 is connected to the first receiving module 1616 and the second receiving module 1617 respectively. For the specific connection description, please refer to the corresponding description of Figure 1, and no further details are given. For the description of the process of executing the data transmission method by the communication system shown in this embodiment, please refer to any of the above method embodiments, and no further details are given. The sending ports and sending modules, as well as the receiving ports and receiving modules shown in this embodiment, can also be connected through a cross unit as shown in Figure 8. For a detailed description of the cross unit, please refer to Figures 8 and 9, which will not be repeated here.
[0252] The above embodiments use the communication system applied to an optical communication system as an example. It should be noted 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 an explanation of the execution process of the data transmission method executed by the wireless communication system, please refer to any of the embodiments shown in Figures 2, 4, 7, 10, 11, and 12, and the details are not repeated here. The difference between the data transmission method executed by the wireless communication system and the data transmission method executed by the optical communication system lies in the different functions of the various transmitting modules and receiving modules. The wireless communication system shown in this embodiment includes various transmitting modules and receiving modules, each of which is an antenna. Continuing with Figure 1, 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 toward 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 toward 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.
[0253] For another example, the communication devices included in the communication system can be connected via cables. For an explanation of the execution process of the data transmission method performed by the communication system shown in this embodiment, please refer to any of the embodiments shown in Figures 2, 4, 7, 10, 11, and 12, and the details are not repeated here. The data transmission method performed by the communication system shown in this embodiment differs from the data transmission method performed by the optical communication system in that the functions of the various transmitting modules and receiving modules are different. The various transmitting modules and receiving modules included in the wireless communication system shown in this embodiment are connectors. Specifically, they can be active connectors or passive connectors. This embodiment uses active connectors as an example. Active connectors have a high failure rate and can easily cause transmission link abnormalities. Continuing with Figure 1 as an example, the first transmitting module 104 includes a first connector, the second transmitting 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. The first connector and the third connector are connected via a first cable. The second connector and the fourth connector are connected via a second cable. When the first connector receives the first sub-data stream from the first transmitting port 102, it transmits it to the third connector via 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 via the second cable. The fourth connector sends the second sub-data stream to the first receiving port 112.
[0254] An embodiment of the present application provides a communications device. For a description of the communications device structure, please refer to any of the embodiments shown in Figures 1, 3, 8, 13, 14, 15, and 16 above, and detailed description is omitted. It will be understood that the first communications device shown in any of the embodiments shown in Figures 1, 3, 8, 13, 14, 15, and 16 includes a first board and a transmitting module and a receiving module connected to the first board. Furthermore, a second communications device is provided as an example, including a second board and a transmitting module and a receiving module connected to the second board. In other examples, the first communications device provided in an embodiment of the present application may include an outer shell, which encloses the first board. The outer shell includes an electrical interface. That is, the first communications device shown in this example does not include a transmitting module and a receiving module, but only provides an electrical interface for connecting to the transmitting module and the receiving module. Similarly, the second communications device may include an outer shell, which encloses the second board. The outer shell includes an electrical interface. The second communications device shown in this example does not include a transmitting module and a receiving module, but only provides an electrical interface for connecting to the transmitting module and the receiving module.
[0255] An embodiment of the present application also provides a digital processing chip, including a processing chip and a memory, the memory and the processing chip are interconnected by lines, instructions are stored in the memory, and the processing chip is used to execute the process executed by the first single board or the second single board in any of the above method embodiments.
[0256] An embodiment of the present application also provides a computer storage medium including instructions, which, when executed on a computer, enables the computer to execute the process executed by the first board or the second board in any of the above method embodiments.
[0257] An embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the process executed by the first board or the second board in any of the above method embodiments.
[0258] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0259] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0260] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
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. 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. 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, wherein 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. 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, characterized in that, 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 the 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, characterized in that, 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 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.
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 further 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 further 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 further 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 reception link where the first reception module is located is different from the reception 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 further 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 reception link where the first reception module is located is different from the reception 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, characterized in that, 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
Patent Citations
Data transmission method, communication equipment and storage medium
CN120378007A
Data flow transmission method and related equipment and system
CN102215530A
Method and device for data transmission
CN103200599A
Data transmission method and related equipment
CN111726406A
Traffic flow routing method and device
WO2018032517A1