Data transmission method, communication equipment and storage medium
By dividing the data stream into multiple substreams in the optical communication system and transmitting through independent links, combined with link-level retransmission, the reliability and packet loss problems caused by transmission link exceptions are solved, and data transmission with high reliability and low packet loss is achieved.
Patent Information
- Application Number
- CN202510413006.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-25
- Publication Date
- 2025-08-12
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 target data stream into multiple sub-data streams in the communication device and sending them through different transmission links, it is ensured that even if one link is abnormal, data transmission will not be interrupted. Combined with link-level retransmission technology, zero packet loss is achieved.
Improves the reliability and throughput of data transmission, reduces packet loss rate, and even achieves zero packet loss, reducing transmission delay.
Smart Images

Figure CN120474620A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202410114486.5, and the original application date is January 25, 2024. The entire content of the original application is incorporated into this application by reference. 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. Summary of the Invention
[0005] 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.
[0006] 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.
[0007] 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.
[0008] 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.
[0009] 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.
[0010] 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.
[0011] 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.
[0012] 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.
[0013] 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.
[0014] 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.
[0015] 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.
[0016] 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.
[0017] 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.
[0018] 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.
[0019] 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.
[0020] 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.
[0021] 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.
[0022] 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.
[0023] 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.
[0024] 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.
[0025] 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.
[0026] 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.
[0027] 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.
[0028] 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.
[0029] 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.
[0030] 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.
[0031] 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.
[0032] 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.
[0033] 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.
[0034] 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.
[0035] 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.
[0036] 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.
[0037] 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.
[0038] 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.
[0039] 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.
[0040] 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.
[0041] 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.
[0042] 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.
[0043] 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.
[0044] 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.
[0045] 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.
[0046] 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.
[0047] 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.
[0048] 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.
[0049] 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
[0050] Figure 1 This is a diagram illustrating the structure of the first embodiment of the communication system provided by this application;
[0051] Figure 2 This is a flowchart of the first step of the data transmission method provided by this application;
[0052] Figure 3 This is a structural example diagram of an existing communication system;
[0053] Figure 4 A flowchart of the second step of the data transmission method provided by this application;
[0054] Figure 5 for Figure 1 The example diagram shows an abnormal transmission link;
[0055] Figure 6a for Figure 3 The example diagram shows an abnormal transmission link.
[0056] Figure 6b for Figure 6a The data flow timing example diagram shown;
[0057] Figure 7 This is a flowchart of the third step of the data transmission method provided by this application;
[0058] Figure 8 This is a diagram illustrating a second embodiment of the communication system provided in this application;
[0059] Figure 9 for Figure 8 Example diagram of a cross unit shown;
[0060] Figure 10 This is a flowchart of the fourth step of the data transmission method provided by this application;
[0061] Figure 11 This is a flowchart of the fifth step of the data transmission method provided by this application;
[0062] Figure 12 This is a flowchart of the sixth step of the data transmission method provided by this application;
[0063] Figure 13 This is a diagram illustrating the structure of a third embodiment of the communication system provided in this application;
[0064] Figure 14 This is a diagram illustrating the structure of the fourth embodiment of the communication system provided by this application;
[0065] Figure 15 This is a diagram illustrating a fifth embodiment of the communication system provided in this application;
[0066] Figure 16 This is an example diagram of the structure of the sixth embodiment of the communication system provided in this application. DETAILED DESCRIPTION
[0067] 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.
[0068] The embodiment of the present application provides a data transmission method that effectively improves the reliability of data transmission and reduces the packet loss rate during data transmission. When the transmission link is abnormal, it can even achieve zero packet loss by coordinating link-level retransmission. To better understand the method shown in this embodiment, first combine Figure 1 The structure of the communication system to which the method shown in the embodiment of the present application is applied is illustrated. Figure 1 This is a diagram illustrating a first embodiment of a communication system provided in this application. The communication system includes a first communication device 100 and a second communication device 110. Figure 1The communication system shown in the example is an optical communication system. Then, 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 type of network applied to 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 communication devices in the first communication device 100 and the second communication device 110 can be an optical network unit (ONU) or an optical network terminal (ONT), and the other communication device in the first communication device 100 and the second communication device 110 can be an optical line terminal (OLT). If the optical communication system is applied to an optical transport network (OTN), the first communication device 100 and the second communication device 110 can both be OTN devices. The optical communication system shown in this example can also be applied to a data center network (DCN) or a metropolitan area network, etc., without specific limitations. 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 (often 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 electrical-to-optical conversion function and an optical interface capable of connecting to an optical fiber, it can be used. 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 are not repeated here.
[0069] 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.
[0070] 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 interfaces are connected to the first transmitting module 104 via conductive traces on the PCB. The connection between the first electrical interfaces and the first transmitting module 104 in this embodiment is an optional example and is 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.
[0071] 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.
[0072] 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).
[0073] 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.
[0074] Combine Figure 1 as well as Figure 2 As shown, the execution process of the data transmission method provided in the embodiment of the present application is described, wherein: Figure 2 This is a flowchart of the first step of the data transmission method provided by this application.
[0075] Step 201: The first sending port obtains M data streams.
[0076] 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.
[0077] 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.
[0078] 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.
[0079] 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.
[0080] Step 202: The first sending port sends the first sub-data stream to the first sending module.
[0081] Step 203: The first sending port sends the second sub-data stream to the second sending module.
[0082] In this embodiment, when the first sending 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 sending port 102 sends the first sub-data stream to the first sending module 104. The first sending port 102 also sends the second sub-data stream to the second sending module 105. For a description of the connection between the first sending port 102 and the first sending module 104 and the second sending module 105, see Figure 1 Specifically, the first transmission port 102 and the first transmission module 104 are connected via a first transmission circuit. Then, 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, see Figure 1 Similarly, the first transmission port 102 and the second transmission module 105 are connected via a second transmission circuit. Then, 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 Figure 1 The corresponding instructions are not detailed here.
[0083] 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.
[0084] This embodiment does not limit the execution sequence between step 202 and step 203.
[0085] Step 204: The first sending module sends the first sub-data stream to the second communication device.
[0086] Depend on Figure 1 As shown, the first transmitting module 104 is an optical module. Upon receiving the first sub-data stream, the first transmitting module 104 performs electrical-to-optical conversion on the first sub-data stream to obtain a first optical signal. The first transmitting module 104 is connected to the first receiving module 114 via the first optical fiber 121. Therefore, the first transmitting module 104 transmits the first optical signal to the first receiving module 114 via the first optical fiber 121.
[0087] 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.
[0088] Step 205: The second sending module sends the second sub-data stream to the second communication device.
[0089] 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.
[0090] 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.
[0091] This embodiment does not limit the execution sequence between step 204 and step 205.
[0092] Step 206: The first receiving module sends the first sub-data stream to the second receiving module.
[0093] 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.
[0094] Step 207: The second receiving module sends the second sub-data stream to the first receiving port.
[0095] 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.
[0096] The first receiving module shown in this embodiment is connected to the first receiving port via the first receiving circuit. The second receiving module is connected to the first receiving port via the second receiving circuit. For the description of the first receiving circuit and the second receiving circuit, please refer to Figure 1 The corresponding instructions are not detailed here.
[0097] 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.
[0098] Step 208: The first receiving port merges the first sub-data stream and the second sub-data stream into a target data stream.
[0099] 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 that 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 first receiving port 112 sorts the first and second sub-data streams 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 included in the second board 111 merges 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.
[0100] 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.
[0101] 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.
[0102] To better understand the beneficial effects of the method provided by this embodiment, first combine Figure 3 Explain the existing communication system. Figure 3 This is a structural example diagram of an existing communication system. Figure 3The communication system shown 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, see Figure 1 The first communication device 300 includes a first board 301, and a first transmission port 302 of the first board 301 is only connected to a first transmission module 304. A second transmission port 303 of the first board 301 is only connected to a second transmission module 305. Figure 1 and Figure 3 As shown, in the existing first communication device 300, the same sending port of the first board 301 is only connected to one sending module. Figure 1 In the first communication device 100 shown, the same transmitting port of 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. Figure 1 and Figure 3 As shown, in the existing second communication device 310, the same receiving port of the second board 311 is only connected to one receiving module. Figure 1 In the second communication device 310 shown, the same receiving port of the second board 311 is connected to multiple receiving modules. For a description of each sending port, sending module, receiving port and receiving module, see Figure 1 The corresponding instructions are not detailed here.
[0103] based on Figure 3 In the existing communication system shown in FIG, when the first sending port 302 obtains the target data stream to be sent to the second communication device, the first sending port 302 sends the target data stream to the first sending module 304. Figure 1 In the corresponding communication system, if there is no connection between the first transmitting port 302 and the second transmitting module 305, the first transmitting port 302 will not send 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.
[0104] However, in existing communication systems, the first transmission link includes the first transmitting module 304, the first optical fiber 321, and the second 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.
[0105] However, by adopting the method shown in this embodiment, the first communication device divides the target data stream to obtain a first sub-data stream and a second sub-data stream. The first sub-data stream is sent to the second communication device through the first sending module, and the second sub-data stream is sent to the second communication device through the second sending module, so that the target data stream is transmitted to the second communication device through different transmission links. Different transmission links include different sending modules, receiving modules and optical fibers. Then, when any type of abnormality occurs in any transmission link of the first transmission link and the second transmission link, the target data stream flow 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 through the first transmission link, and the second sub-data stream in the target data stream is sent to the second communication device through the second transmission link. If the first sending module in the first transmission link fails, but the second transmission link is working 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, thereby effectively reducing the packet loss rate of the target data stream transmission. Continue to see Figure 1 As shown, 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 data stream transmission from the first communication device 100 to the second communication device.
[0106] The following combination Figure 4 The embodiment shown in FIG. Figure 1 The first transmission link shown is abnormal, how to transmit the data stream. Figure 4 This is a flowchart of the second step of the data transmission method provided by this application.
[0107] Step 401: The first sending port obtains M data streams.
[0108] For a description of the execution process of step 401 shown in this embodiment, please refer to Figure 2 The corresponding step 201 is shown and will not be described in detail.
[0109] Step 402: The first sending port detects that the first transmission link is abnormal.
[0110] Combine Figure 5 As shown, Figure 5 for Figure 1 The first transmission link includes a first transmitting module 104, a first optical fiber 121 and a second receiving module 114. For a detailed description of the first transmission link, see Figure 1 as well as Figure 2 The corresponding description is omitted for clarity. The first transmission link abnormality includes at least one of the following situations:
[0111] 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.
[0112] Optical port disconnection includes at least one of the following:
[0113] 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.
[0114] The following describes an optional manner in which the first sending port detects an abnormality in the first transmission link:
[0115] Option 1
[0116] The first receiving module 114 of the second communication device 110 receives the first optical signal from the first optical fiber 121. For a description of the first optical signal, see Figure 2The corresponding embodiments are not described in detail. 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 the first transmission link is abnormal. 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 understood that the embodiment does not limit the description of the second receiving device detecting the abnormality of 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 detects whether the first transmission link is abnormal based on the first sub-data stream.
[0117] In this embodiment, the third optical fiber 123 connected between the first receiving module 106 of the first communication device and the first transmitting module 118 of the second communication device is normal. Then, the second communication device sends an abnormality indication message to the first communication device via 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 Figure 2 The corresponding description of the first communication device 100 sending a data stream to the second communication device 110 is not detailed here. Specifically, the abnormality indication message carries the identifier of the first transmission link. Then, the first 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.
[0118] Option 2
[0119] 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.
[0120] Step 403: The first sending port sends the first sub-data stream to the second sending module.
[0121] exist Figure 2 In the corresponding embodiment, the first transmission link is originally used to transmit the first sub-data stream. However, in this embodiment, 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 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 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.
[0122] 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:
[0123] Example 1
[0124] 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.
[0125] Example 2
[0126] 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.
[0127] 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.
[0128] 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.
[0129] 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.
[0130] Example 3
[0131] 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.
[0132] Example 4
[0133] 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.
[0134] Step 404: The first sending port sends the second sub-data stream to the second sending module.
[0135] For a description of the execution process of step 404 in this embodiment, please refer to Figure 2 The corresponding step 203 is shown and will not be described in detail.
[0136] 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 .
[0137] Step 405: The second sending module sends the first sub-data stream and the second sub-data stream to the second communication device.
[0138] In this embodiment, when the second sending module receives the first sub-data stream and the second sub-data stream, the first sub-data stream and the second sub-data stream can be sent to the second communication device. The second sending module converts the first sub-data stream and the second sub-data stream into a first optical signal and a second optical signal respectively. For an explanation of the process of the second sending module sending the first optical signal and the second optical signal, please refer to Figure 2The description of the process of the second sending module sending the second optical signal shown in the corresponding step 205 is not detailed here.
[0139] Step 406: The second receiving module sends the first sub-data stream and the second sub-data stream to the first receiving port.
[0140] The second receiving module receives the first optical signal and the second optical signal through the second transmission link. For a description of the second transmission link, see Figure 1 as well as Figure 2 The second receiving module 115 performs photoelectric conversion on the first optical signal and the second optical signal to obtain a first sub-data stream and a second sub-data stream, and sends the first sub-data stream and the second sub-data stream to the first receiving port 112 .
[0141] Step 407: The first receiving port merges the first sub-data stream and the second sub-data stream into a target data stream.
[0142] For a description of the execution process of step 407 in this embodiment, please refer to Figure 2 The corresponding step is shown in step 208 and will not be described in detail.
[0143] Figure 4 The following example illustrates the process of the first communication device sending the target data stream to the second communication device when the first transmission link is abnormal. In other examples, if the second transmission link is abnormal, the first communication device can also send the data stream to the second communication device through the first transmission link while reducing the packet loss rate or even achieving zero packet loss. For the specific process, please refer to Figure 4 The first transmission link shown is abnormal, and the process of transmitting the target data stream through the second transmission link is not described in detail.
[0144] To better understand the beneficial effects of the method provided by this embodiment, first combine Figure 6a as well as Figure 6b The present invention describes the process of transmitting data streams in an existing communication system when an abnormality occurs in the first transmission link. Figure 6a for Figure 3 The following figure shows an example of an abnormal transmission link. Figure 6b for Figure 6a The data flow timing diagram is shown as an example. Figure 6aThe communication system shown 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 second 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, 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 sending 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 sending port 302). To successfully transmit data stream 620 to second communication device 310, first board 301 switches transmission of data stream 620 from the first transmission link to the second transmission link. First board 301 transmits data stream 620 to second transmission port 303. Second transmission port 303 transmits data stream 620 to second transmission module 305, which transmits data stream 620 to second communication device 310 via the second transmission link. For a description of the process by which first communication device 300 transmits data stream 620 via the second transmission link, please refer to the description of the process by which first communication device 300 transmits data stream 610 via the first transmission link, which will not be further described. However, because first transmission port 302 is only connected to first transmission module 304, data stream 610 that has entered first transmission port 302 cannot be switched to the second transmission link for transmission. For example, if data stream 610 has already been transmitted via the first transmission link, and the first communication device has not received a response message indicating that the second communication device has successfully received data stream 610, Because the first sending port is only connected to the first sending module. Then, the retransmission of the first sending port will still retransmit the data stream 610 through the first transmission link. The abnormality of the first transmission link will result in that even if the data stream 610 is retransmitted, it will still not be successfully transmitted to the second communication device. For another example, if the data stream 610 has not yet been transmitted through the first transmission link, but the abnormality of the first transmission link has been detected, and the first sending port is only connected to the first sending module, then the data stream 610 will not be able 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 Figure 6a as well as Figure 6b In the conventional solution shown, 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.
[0145] And adopt the method shown in this embodiment, for example Figure 5 The illustrated communication system includes two transmission links, namely 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 second 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 is 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 is abnormal, 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 is abnormal, 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.
[0146] Figure 7 This is a flowchart of the third step of the data transmission method provided by this application. Figure 4 In the embodiment shown, the data flow transmission process is described by taking the first transmission link as abnormal. For example, if the optical port disconnection is the abnormality type of the first transmission link, the optical port disconnection of the first transmission link generally lasts for about 5 seconds and then returns to normal. Figure 7 The embodiment shown illustrates the data flow transmission process when the first transmission link recovers from abnormality to normal.
[0147] Step 701: The first sending port obtains M data streams.
[0148] Step 702: The first sending port detects that the first transmission link is abnormal.
[0149] Step 703: The first sending port sends the first sub-data stream to the second sending module.
[0150] Step 704: The first sending port sends the second sub-data stream to the second sending module.
[0151] Step 705: The second sending module sends the first sub-data stream and the second sub-data stream to the second communication device.
[0152] Step 706: The second receiving module sends the first sub-data stream and the second sub-data stream to the first receiving port.
[0153] Step 707: The first receiving port merges the first sub-data stream and the second sub-data stream into a target data stream.
[0154] For a description of the execution process of steps 701 to 707 shown in this embodiment, please refer to Figure 4 The corresponding steps 401 to 407 are shown and are not described in detail.
[0155] Step 708: The first sending port detects that the first transmission link has recovered from abnormality to normal.
[0156] 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.
[0157] Step 709: The first sending port obtains the first data stream and the second data stream.
[0158] 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.
[0159] Step 710: The first sending port sends a first data stream to the first sending module.
[0160] Step 711: The first sending port sends a second data stream to the second sending module.
[0161] 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.
[0162] Step 712: The first sending module sends the first data stream to the second communication device.
[0163] Step 713: The second sending module sends the second data stream to the second communication device.
[0164] Step 714: The first receiving module sends the first data stream to the second board.
[0165] Step 715: The second receiving module sends the second data stream to the second board.
[0166] Step 716: The first receiving port merges the first data stream and the second data stream into a target data stream.
[0167] In this embodiment, steps 710 to 716 are shown in FIG. Figure 2 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 corresponding steps 204 to 208 is not described in detail.
[0168] This embodiment shows the data flow transmission process of the first transmission link recovering from abnormality to normal. If the second transmission link recovers from abnormality to normal data flow transmission process, please refer to Figure 7 The corresponding instructions are not detailed here.
[0169] 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.
[0170] Figure 8 This is a diagram illustrating 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 board 801, a first sending module 804, a second sending module 805, a first receiving module 806, and a second receiving module 807. For details, see Figure 1 The corresponding instructions are not detailed here. Figure 8 The first communication device 800 shown, relative to Figure 1 The first communication device shown is distinguished by: Figure 8The illustrated first board 801 also includes a cross-connect unit 841. The cross-connect unit 841 is connected to the first transmitting port 802, the second transmitting port 803, the first receiving port 808, and the second receiving port 809 of the first board 801, respectively. Furthermore, the cross-connect unit 841 is also connected to the first transmitting module 804, the second transmitting module 805, the first receiving module 806, and the second receiving module 807, respectively. This embodiment uses the cross-connect unit 841 as a module included in the first board 801, but this is not limiting. For example, the cross-connect unit 841 can also be a separate chip, module, or board from the first board 801. The cross-connect unit 841 is used to conduct electrical circuits between a transmitting port and a transmitting module, and to conduct electrical circuits between a receiving port and a receiving module. Conductivity refers to the state in which current can flow. Therefore, when the cross-connect unit 841 conducts electrical circuits between a transmitting port and a transmitting module, current emitted by the transmitting port can flow to the transmitting module. When the cross unit 841 conducts the circuit between the receiving port and one receiving module, the current emitted by the receiving module can flow to the receiving port.
[0171] For example, if the cross-connect unit 841 receives a data stream from the first sending module 802, the cross-connect unit 841 may send the data stream to the first sending module 804 or the second sending module 805. Figure 9 The figure shows a specific description of the cross unit. Figure 9 for Figure 8An example diagram of a crossbar unit is shown. 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 transmission port 802 and the first transmission module 804, and between the first transmission port 802 and the second transmission module 805. Similarly, the crossbar array 921 also includes multiple circuits connected between the second transmission port 803 and the first transmission module 804, and between the second transmission module 803 and the second transmission module 805. The register 900 is connected to the crossbar array 921 and, through software configuration, selectively controls the conduction or shutdown 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. This control signaling is also used to set bits 3 and 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 first transmitting port 802 via electrical interface 901 and electrical interface 902 is transmitted to first transmitting module 804 via the enabled first transmitting circuit in crossbar array 921.The data stream output by the first transmission port 802 via the electrical interface 903 and the electrical interface 904 is transmitted to the second transmission module 805 via the second transmission circuit in the crossbar array 921. This example uses the example of setting the 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 single board 801 including one crossbar unit. This embodiment does not limit the number of crossbar units included in the first single board 801. For a description of the structure and function of each crossbar unit, see. Figure 9 The description of the implementation of the cross unit in this embodiment is an optional example and is not limited to this, as long as the cross unit can conduct the various circuits between the sending port and the sending module.
[0172] The second communication device 810 specifically includes a second board 811, a first receiving module 814, a second receiving module 815, a first sending module 818, and a second sending module 819. For details, see Figure 1 The corresponding instructions are not detailed here. Figure 8 The second communication device 810 shown, relative to Figure 1 The second communication device shown is distinguished in that Figure 8 The second board 811 shown also includes a cross-connect unit 842. The 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, the 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 the cross-connect unit 842, please refer to the description of the cross-connect unit 841 included in the first communication device, and the details are not repeated here. It is understood that the cross-connect unit 842 is used to conduct circuits between a transmitting port and a transmitting module, and to conduct circuits between a receiving port and a receiving port.
[0173] Combine Figures 8 to 10 The figure illustrates the execution process of the data transmission method provided in the embodiment of the present application. Figure 10 This is a flowchart of the fourth step of the data transmission method provided in this application.
[0174] Step 1001: A cross unit turns on a first transmitting circuit and a second transmitting circuit.
[0175] When the processor of the first board 801 determines that both the first transmission link and the second transmission link are normal, it sends a first control signaling to the cross-connect unit 841. Based on the first control signaling, the cross-connect unit 841 turns on the first transmission circuit and the second transmission circuit. 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 how the cross-connect unit 841 turns on the circuits, see Figure 8 The corresponding instructions are not detailed here.
[0176] 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.
[0177] Step 1002: The first sending port obtains M data streams.
[0178] For a description of the execution process of step 1002 shown in this embodiment, please refer to Figure 2 The corresponding step 201 is shown and will not be described in detail.
[0179] Step 1003: The first sending port sends the first sub-data stream to the first sending module.
[0180] 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.
[0181] Step 1004: The first sending port sends the second sub-data stream to the second sending module.
[0182] 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.
[0183] This embodiment does not limit the execution sequence between step 1003 and step 1004.
[0184] Step 1005: The first sending module sends the first sub-data stream to the second communication device.
[0185] Step 1006: The second sending module sends the second sub-data stream to the second communication device.
[0186] For a description of the execution process of steps 1005 to 1006 shown in this embodiment, please refer to Figure 2 The corresponding steps 204 to 205 are shown and will not be described in detail.
[0187] Step 1007: The cross unit turns on the first receiving circuit and the second receiving circuit.
[0188] When the processor of the second board 811 determines that both the first transmission link and the second transmission link are normal, it sends a second control signaling to the cross unit 842. Based on the second control signaling, the cross unit 842 turns on the first receiving circuit and the second receiving circuit. 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 the circuit turning on by the cross unit 842, please refer to Figure 8 The corresponding instructions are not detailed here.
[0189] 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.
[0190] Step 1008: The first receiving module sends the first sub-data stream to the second receiving module.
[0191] 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.
[0192] Step 1009: The second receiving module sends the second sub-data stream to the first receiving port.
[0193] 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.
[0194] Step 1010: The first receiving port merges the first sub-data stream and the second sub-data stream into a target data stream.
[0195] For a description of the execution process of step 1010 shown in this embodiment, please refer to Figure 2 The corresponding step is shown in step 208 and will not be described in detail.
[0196] 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.
[0197] The following combination Figure 11 The embodiment shown in FIG. Figure 8 If the first transmission link shown is abnormal, how to transmit data. Figure 11 This is a flowchart of the fifth step of the data transmission method provided in this application.
[0198] Step 1101: The cross unit turns on the first transmitting circuit and the second transmitting circuit.
[0199] For the execution process of step 1101 shown in this embodiment, please refer to Figure 10 The corresponding step is shown in step 1001 and will not be described in detail.
[0200] Step 1102: The first sending port obtains M data streams.
[0201] Step 1103: The first sending port detects that the first transmission link is abnormal.
[0202] For a description of the execution process of steps 1102 to 1103 in this embodiment, please refer to Figure 4 The corresponding steps 401 to 402 are shown and will not be described in detail.
[0203] Step 1104: The first sending port sends the first sub-data stream to the second sending module.
[0204] 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.
[0205] like Figure 8 As shown, 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.
[0206] Step 1105: The first sending port sends the second sub-data stream to the second sending module.
[0207] For the execution process of step 1105 shown in this embodiment, please refer to Figure 10 The corresponding step is shown in step 1004 and will not be described in detail.
[0208] Step 1106: The second sending module sends the first sub-data stream and the second sub-data stream to the second communication device.
[0209] For a description of the execution process of step 1106 in this embodiment, please refer to Figure 4 The corresponding step is shown in step 405 and will not be described in detail.
[0210] Step 1107: The cross unit turns on the first receiving circuit and the second receiving circuit.
[0211] For a description of step 1107 in this embodiment, see Figure 10 The corresponding step 1007 is shown, and the specific details are not limited. Step 1107 shown in this embodiment can 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 to 1106 and step 1107.
[0212] Step 1108: The second receiving module sends the first sub-data stream and the second sub-data stream to the first receiving port.
[0213] Step 1109: The first receiving port merges the first sub-data stream and the second sub-data stream into a target data stream.
[0214] For a description of the execution process of steps 1108 to 1109 in this embodiment, please refer to Figure 4 The corresponding steps 406 to 407 are shown and will not be described in detail.
[0215] 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.
[0216] Figure 12 This is a flowchart of the sixth step of the data transmission method provided by this application. Figure 11In the embodiment shown, the transmission process of the data stream is explained by taking the case where an abnormality occurs in the first transmission link. Figure 12 The embodiment shown illustrates the data flow transmission process when the first transmission link recovers from abnormality to normal.
[0217] Step 1201: The cross unit turns on the first transmitting circuit and the second transmitting circuit.
[0218] Step 1202: The first sending port obtains M data streams.
[0219] Step 1203: The first sending port detects that the first transmission link is abnormal.
[0220] Step 1204: The first sending port sends the first sub-data stream to the second sending module.
[0221] Step 1205: The first sending port sends the second sub-data stream to the second sending module.
[0222] Step 1206: The second sending module sends the first sub-data stream and the second sub-data stream to the second communication device.
[0223] Step 1207: The cross unit turns on the first receiving circuit and the second receiving circuit.
[0224] Step 1208: The second receiving module sends the first sub-data stream and the second sub-data stream to the first receiving port.
[0225] Step 1209: The first receiving port merges the first sub-data stream and the second sub-data stream into a target data stream.
[0226] For a description of the execution process of steps 1201 to 1209 shown in this embodiment, please refer to Figure 11 The corresponding steps 1101 to 1109 are shown and will not be described in detail.
[0227] Step 1210: The first sending port detects that the first transmission link recovers from abnormality to normal.
[0228] For a description of the execution process of step 1211 shown in this embodiment, please refer to Figure 7 The corresponding step is shown in step 708 and will not be described in detail.
[0229] Step 1211: The first sending port obtains a first data stream and a second data stream.
[0230] For a description of the execution process of step 1211 shown in this embodiment, please refer to Figure 7 The corresponding step is shown in step 709 and will not be described in detail.
[0231] Step 1212: The first sending port sends the first data stream to the first sending module.
[0232] 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.
[0233] Step 1213: The first sending port sends the first data stream to the second sending module.
[0234] 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.
[0235] Step 1214: The first sending module sends the first data stream to the second communication device.
[0236] Step 1215: The second sending module sends the second data stream to the second communication device.
[0237] For a description of the execution process of steps 1212 to 1215 shown in this embodiment, please refer to Figure 7 The corresponding steps 712 to 715 are shown and will not be described in detail.
[0238] Step 1216: The first receiving module sends the first data stream to the second board.
[0239] The first receiving module 814 sends the first data stream to the second board 811 via the first receiving circuit.
[0240] Step 1217: The second receiving module sends the second data stream to the second board.
[0241] The second receiving module 815 sends the second data stream to the second board 811 via the second receiving circuit.
[0242] Step 1218: The first receiving port merges the first data stream and the second data stream into a target data stream.
[0243] For a description of the execution process of steps 1216 to 1218 shown in this embodiment, please refer to Figure 7 The corresponding steps 714 to 716 are shown and are not described in detail.
[0244] 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.
[0245] In the above embodiment, it is taken as an example that the first board of the first communication device includes two sending ports and the second board includes two receiving ports. Figure 13 This is an example diagram of the structure of the third embodiment of the communication system provided in this application.
[0246] 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, see Figure 1 The corresponding description will not be repeated in detail. The first communication device 1300 includes a first single 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 noted 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 transmission port 1302 as an example, the first transmission port 1302 is connected to the first transmission module 1306, the second transmission module 1307, the third transmission module 1308, and the fourth transmission module 1309, respectively. By analogy, the fourth sending port 1305 is connected to the first sending module 1306, the second sending module 1307, the third sending module 1308 and the fourth sending module 1309 respectively. Figure 1 As an example, in other examples, the sending port and the sending module can also be connected through Figure 8 For detailed description of cross-units, please refer to Figure 8 as well as Figure 9 As shown, no further details are given.
[0247] The second communication device 1310 includes a second single board 1320, which specifically includes four receiving ports, namely a first receiving port 1315, a second receiving port 1316, a third receiving port 1317, and a fourth receiving port 1318. The second communication device 1310 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. In this embodiment, the receiving ports and the receiving modules are connected via Figure 1 As an example, in other examples, the receiving port and the receiving module can also be connected by Figure 8 For detailed description of cross-units, please refer to Figure 8 as well as Figure 9 For the description of each sending port, sending module, receiving port and receiving module shown in this embodiment, please refer to Figure 1The corresponding description is not repeated in detail. 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 the details are not repeated here. This embodiment takes the example of the first sub-data stream rate, the second sub-data stream rate, the third sub-data stream rate, and the fourth sub-data stream rate being equal. For example, the rate of the first sub-data stream is 25% of the target data stream rate. By analogy, the rate of the fourth sub-data stream is 25% of the target data stream rate, thereby improving the transmission performance of the communication system and improving the throughput of the communication system. In other examples, the rates of the first sub-data stream, the second sub-data stream, the third sub-data stream, and the fourth sub-data stream may also be different, and are not specifically limited. 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 sub-data stream, the second sub-data stream, the third sub-data stream, and the fourth sub-data stream. It should be noted that this embodiment does not limit the number of receiving ports, transmitting ports, receiving modules, and transmitting modules included in a communication device. Taking the first communication device 1300 as an example, if the first communication device 1300 includes four transmitting modules, each transmitting port is connected to four transmitting modules. The description of the connection relationship between the transmitting ports and the transmitting modules in this embodiment is an optional example and is not limited. That is, one transmitting port in the first communication device 1300 can be connected to some of the four transmitting modules. For example, the first sending port 1302 is connected to the first sending module 1306 , the second sending module 1307 , and the third sending module 1308 . It only needs one sending port to be connected to at least two sending modules.
[0248] The communication system shown above takes the transmission 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, if the first transmission 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 transmission port will both be sent to the same corresponding first receiving port. Figure 14In the communication system shown, the sending port included in the first communication device and the receiving port included in the second communication device can also be in 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. Figure 14 This is a diagram illustrating a fourth embodiment of the communication system provided in this application. The communication system shown in this embodiment includes a first communication device 1400 and a second communication device 1410. For a description of the types of the first communication device 1400 and the second communication device 1410, see Figure 1 The corresponding description is not detailed here. 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 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 details, 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 transmission ports and the transmission modules shown in this embodiment, as well as the reception ports and the reception modules, can also be connected through the following methods: Figure 8 For detailed description of cross-units, please refer to Figure 8 as well as Figure 9 As shown, no further details are given.
[0249] Figure 14 In the illustrated embodiment, the first sending port is capable of sending data streams to at least two different receiving ports. That is, 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. Figure 15In the illustrated embodiment, the transmitting ports of the first communication device and the receiving ports of the second communication device may also have a many-to-one relationship, that is, data streams sent from multiple transmitting ports of the first communication device will be transmitted to the same receiving port of the second communication device. Figure 15 This is a diagram illustrating a 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 a description of the types of the first communication device 1500 and the second communication device 1510, see Figure 1 The first communication device 1500 includes a first board 1501, a first transmission port 1502 of the first board 1501 is connected to a first transmission module 1504 and a second transmission module 1505, and a second transmission port 1503 is connected to the first transmission module 1504 and the second transmission module 1505. For detailed connection instructions, see Figure 1 The corresponding description is not described in detail here. The second communication device 1510 includes a second single board 1511, 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 sending 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 method embodiments, and the specific description is not repeated here. 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 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. The details will not be repeated here. The transmission ports and the transmission modules shown in this embodiment, as well as the reception ports and the reception modules, can also be connected through the following methods: Figure 8 For detailed description of cross-units, please refer to Figure 8 as well as Figure 9 As shown, no further details are given.
[0250] In the communication system shown in the above embodiment, different transmission ports are located on the same chip on the same board, and different reception ports are located on the same chip on the same board as an example. Figure 16 In the illustrated embodiment, different transmitting ports may be located on different chips of the same board, and different receiving ports may be located on different chips of the same board. Figure 16 This is a diagram illustrating a sixth embodiment of the communication system provided in this application. The communication system shown in this embodiment includes a first communication device 1600 and a second communication device 1610. For a description of the types of the first communication device 1600 and the second communication device 1610, see Figure 1 The corresponding description is not repeated here. The first communication device 1600 shown in this embodiment includes a first single board 1601. The first single board 1601 specifically includes a first chip 1602 and a second chip 1603. Among them, the first chip 1602 specifically includes a first transmission port 1604. The second chip 1603 specifically includes a second transmission port 1605. The first transmission port 1604 is connected to the first transmission module 1606 and the second transmission module 1607 respectively. The second transmission port 1605 is connected to the first transmission module 1606 and the second transmission module 1607 respectively. For the specific connection description, please refer to Figure 1 The corresponding description is not repeated here. 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 Figure 1 The corresponding description is not repeated here. For the description of the data transmission method executed by the communication system shown in this embodiment, please refer to any of the above method embodiments, and the specific description is not repeated here. The transmission ports and the transmission modules shown in this embodiment, as well as the reception ports and the reception modules, can also be connected by the following method: Figure 8 For detailed description of cross-units, please refer to Figure 8 as well as Figure 9 As shown, no further details are given.
[0251] The above embodiment takes the application of the communication system to the optical communication system as an example. It should be clear that this application does not limit the type of system to which the communication system is applied. For example, the communication system can be applied to a wireless communication system. For an explanation of the execution process of the data transmission method executed by the wireless communication system, please refer to Figure 2 、 Figure 4 、 Figure 7 、 Figure 10 、 Figure 11 as well as Figure 12 The difference between the data transmission method performed by the wireless communication system and the data transmission method performed by the optical communication system is that the functions of each sending module and each receiving module are different. The wireless communication system shown in this embodiment includes each sending module and each receiving module, which are antennas. Figure 1 As shown, the first transmitting module 104 includes a first transmitting antenna, and the second transmitting module 105 includes a second transmitting antenna. The first receiving module 114 includes a first receiving antenna, and the second receiving module 115 includes a second receiving antenna. When the first transmitting module 104 receives a 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 a 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 it into a first sub-data stream. The first receiving module 114 transmits 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 it into a second sub-data stream. The second receiving module 115 transmits the second sub-data stream to the first receiving port 112.
[0252] For another example, the communication devices included in the communication system can be connected via cables. Figure 2 、 Figure 4 、 Figure 7 、 Figure 10 、 Figure 11 as well as Figure 12 As shown in any embodiment, the details will not be repeated. The communication system shown in this embodiment performs a data transmission method, which is different from the data transmission method performed by the optical communication system in that the functions of each sending module and each receiving module are different. The wireless communication system shown in this embodiment includes each sending module and each receiving module, which are connectors. Specifically, they can be active connectors or passive connectors. This embodiment takes the connector as an active connector as an example. The failure rate of active connectors is high, which can easily cause transmission link abnormalities. Continue with Figure 1As shown in the 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 a first sub-data stream from the first transmitting port 102, it transmits it to the third connector via the first cable. The third connector transmits the first sub-data stream to the first receiving port 112. The first transmitting port 102 transmits a second sub-data stream to the second connector, which then transmits it to the fourth connector via the second cable. The fourth connector transmits the second sub-data stream to the first receiving port 112.
[0253] The present application embodiment provides a communication device. For the description of the communication device structure, please refer to the above Figure 1 、 Figure 3 、 Figure 8 、 Figure 13 、 Figure 14 、 Figure 15 as well as Figure 16 Any embodiment is shown, and no further details are given. It can be understood that Figure 1 、 Figure 3 、 Figure 8 、 Figure 13 、 Figure 14 、 Figure 15 as well as Figure 16 The first communication device shown in any embodiment includes a first single board and a sending module and a receiving module connected to the first single board. Moreover, the second communication device includes a second single board and a sending module and a receiving module connected to the second single board as an example. In other examples, the first communication device provided in the embodiment of the present application may include an outer shell, in which the first single board is encapsulated. The outer shell includes an electrical interface. That is, the first communication device shown in this example does not include a sending module and a receiving module, and only provides an electrical interface for connecting to the sending module and the receiving module. Similarly, the second communication device may include an outer shell. The second single board is encapsulated inside the outer shell. The outer shell includes an electrical interface. The second communication device shown in this example does not include a sending module and a receiving module, and only provides an electrical interface for connecting to the sending module and the receiving module.
[0254] 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.
[0255] 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.
[0256] 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.
[0257] 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.
[0258] 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.
[0259] 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, the first communication device includes a sending port, the sending port is connected to a first sending module and a second sending module respectively, the transmission link of the first sending module is different from the transmission link of the second sending module, and the method includes: The first communication device sends the first sub-data stream to the first sending module through the sending port, and the first sending module is used to send the first sub-data stream to the second communication device; The first communication device sends the second sub-data stream to the second sending module through the sending port, and the second sending module is used to send the second sub-data stream to the second communication device. The first sub-data stream and the second sub-data stream are two of M sub-data streams, where M is any integer not less than 2.
2. The method according to claim 1, characterized in that The transmitting port is connected to the first transmitting module via a first transmitting circuit, the transmitting port is connected to the second transmitting module via a second transmitting circuit, and the first communication device sends the first sub-data stream to the first transmitting module via the transmitting port, comprising: 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 an abnormality in a first transmission link, where the first transmission link is a transmission link where the first sending module is located, and the first transmission link is connected between the first communication device and the second communication device; The first communication device sends at least part of the first sub-data stream to the second sending module through the sending port, and the second sending module is used to send 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, characterized in that The first communication device further includes a cross-connect 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 transmitting circuit and the second transmitting circuit through the cross unit.
5. The method according to claim 4, characterized in that Before the first communication device switches on the first transmitting circuit and the second transmitting circuit through the cross unit, the method further includes: The first communication device detects that the first transmission link and the second transmission link are both 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 sending module is located, and the second transmission link is the transmission link in which 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 an abnormality in a first transmission link, where the first transmission link is a 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 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, where the first data stream is a partial data stream to be sent by 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, the receiving port is connected to the first receiving module and the second receiving module respectively, and 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 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 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.
9. The method according to claim 8, characterized in that The receiving port is connected to the first receiving module via a first receiving circuit, the receiving port is connected to the second receiving module via a second receiving circuit, and the receiving port of the second communication device receives the first sub-data stream from the first communication device via 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 receiving the second sub-data stream from the first communication device through the second receiving module includes: 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 merges 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. 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.
12. The method according to claim 9, characterized in that The second communication device further includes a cross-connect unit, and 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 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 conducts the first receiving circuit and the second receiving circuit through the cross unit.
13. The method according to claim 12, characterized in that The second communication device conducts the first receiving circuit and the second receiving circuit through the cross unit, including: The second communication device detects that both the first transmission link and the second transmission link are normal. The first transmission link and the second transmission link are respectively connected between the first communication device and the second communication device. The first transmission link is the transmission link 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.
14. The method according to any one of claims 9, 12 or 13, wherein 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 comprises: The second communication device detects that a first transmission link is abnormal, where the first transmission link is a 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 comprises: 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: The system comprises a single board, a first sending module, and a second sending module, wherein a sending port of the single board is connected to the first sending module and the second sending module respectively, and a transmission link in which the first sending module is located is different from a transmission link in which the second sending module is located; 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 further used to send a 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. 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.
16. The communication device according to claim 15, characterized in that The sending port is connected to the first sending module via a first sending circuit, and the sending port is connected to the second sending module via a second sending circuit.
17. The communication device according to claim 15 or 16, characterized in that The board is further configured to detect an abnormality in a first transmission link, where the first transmission link is a 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 further configured to send at least a portion of the first sub-data stream to the second sending module, and the second sending module is configured to send the first sub-data stream and the second sub-data stream to the other communication device.
18. The communication device according to claim 16, wherein: The communication device further includes a cross unit, the cross unit connecting the first transmitting circuit and the second transmitting circuit, and the cross unit is configured to conduct the first transmitting circuit and the second transmitting circuit.
19. A communication device, characterized in that: The system comprises a single board, a first receiving module, and a second receiving module, wherein the receiving port of the single board is connected to the first receiving module and the second receiving module respectively, and the transmission link of the first receiving module is different from the transmission link of the second receiving module; 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 in which the first receiving module is located is different from the transmission link in which the second receiving module is located.
20. The communication device according to claim 19, wherein The receiving port is connected to the first receiving module via a first receiving circuit, and the receiving port is connected to the second receiving module via a second receiving circuit.
21. The communication device according to claim 20, wherein: The communication device further includes a cross unit, the cross unit connecting the first receiving circuit and the second receiving circuit, and the cross unit is configured to conduct the first receiving circuit and the second receiving circuit.
22. A computer storage medium, characterized in that The method comprises instructions which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Data flow transmission method and related equipment and system
CN102215530A
Method and device for data transmission
CN103200599A
Data transmission method and system for visible light communication
CN105634599A
Data transmission method and device and user equipment
CN105682146A
Control plane redundancy for optical networks
US11101883B1