Communication method and device

By detecting the working state of the transmission channel in the communication device and assigning the data flow type, the problem of low bandwidth utilization caused by slowing down is solved, and the full throughput transmission and high bandwidth utilization of the transmission medium is realized.

CN120075148APending Publication Date: 2025-05-30HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311612239.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

Speed ​​reduction is used to ensure that the data received by the data receiver and the data sent by the data sender are consistent, resulting in a low bandwidth utilization rate of the transmission medium.

Method used

The communication device detects the working status of each transmission channel in the transmission medium and divides the normal and abnormal channels into two sets. Then, a first type of data stream carrying valid data is sent to the normal transmission channel, and a second type of data stream carrying valid data is sent to the abnormal transmission channel, thereby realizing data transmission of all transmission channels and improving bandwidth utilization.

Benefits of technology

In the case where some transmission channels are abnormal in working state, full throughput transmission of the transmission medium is still realized, which improves the bandwidth utilization of the transmission medium.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075148A_ABST
    Figure CN120075148A_ABST
Patent Text Reader

Abstract

The invention discloses a communication method and device, and relates to the technical field of communication. And the communication equipment transmits a first type of data stream carrying valid data to the transmission channels with normal working states and transmits a second type of data stream not carrying valid data to the transmission channels with abnormal working states according to the detected working states of the transmission channels included in the transmission media. Thus, under the condition that the working states of part of the transmission channels included in the transmission media are abnormal, all the transmission channels included in the transmission media are still used for transmitting data, full-throughput transmission of the transmission media is achieved, and the utilization rate of the bandwidth of the transmission media is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a communication method and apparatus. Background Art

[0002] Two communication devices can use a wired transmission medium to achieve data transmission. A wired transmission medium refers to a transmission medium with a physical entity that connects two communication devices, such as twisted pair, coaxial cable, optical fiber, etc. A wired transmission medium can include multiple transmission channels for transmitting data. For example, a twisted pair can include 4 transmission channels (lanes) for transmitting data. In the case where some of the transmission channels included in the transmission medium fail, it may cause the data received by the data receiving party to be inconsistent with the data sent by the data sending party. In this case, a speed reduction method can be adopted to reduce the amount of data transmitted on the transmission channel to ensure that the data received by the data receiving party is the same as the data sent by the data sending party.

[0003] In the above process, speed reduction is used to ensure that the data received by the data receiving party is consistent with the data sent by the data sending party, and the bandwidth utilization rate of the transmission medium is relatively low. Summary of the Invention

[0004] This application provides a communication method and apparatus, which solves the problem of low bandwidth utilization rate of the transmission medium caused by using speed reduction to ensure that the data received by the data receiving party is consistent with the data sent by the data sending party.

[0005] In a first aspect, this application provides a communication method. This communication method is executed by a communication device, and the communication device is connected to a transmission medium. This communication method includes: The communication device detects the working state of each of the M transmission channels included in the transmission medium, and uses the transmission channels with normal working states as a first set of transmission channels and the transmission channels with abnormal working states as a second set of transmission channels. Among them, the first set of transmission channels includes N transmission channels, the second set of transmission channels includes M - N transmission channels, M and N are both positive integers, M≥2, and N≥1. The communication device generates a first type of data stream carrying valid data and a second type of data stream not carrying valid data. The communication device sends the first type of data stream to N transmission channels and sends the second type of data stream to M - N transmission channels.

[0006] The communication device transmits a first type of data stream carrying valid data to the transmission channels with normal working states and transmits a second type of data stream not carrying valid data to the transmission channels with abnormal working states according to the detected working states of the respective transmission channels included in the transmission medium. In this way, in the case where some of the transmission channels included in the transmission medium have abnormal working states, all the transmission channels included in the transmission medium are still all used for data transmission, realizing full throughput transmission of the transmission medium and improving the bandwidth utilization rate of the transmission medium.

[0007] In a possible implementation, when the number of transmission channels with abnormal working states is less than the failure transmission channel threshold number, the communication device obtains a second rate according to M, N, and a first rate. The first rate is used to indicate the maximum data volume that the transmission medium can support for transmission per unit time when the working states of all transmission channels in the transmission medium are normal. The second rate is used to indicate the maximum data volume that the transmission medium can support for transmission per unit time when M - N transmission channels in the transmission medium have abnormal working states. The communication device sends a first type of data stream to N transmission channels and a second type of data stream to M - N transmission channels at the second rate. In this way, it is ensured that when the number of failed transmission channels is less than the failure channel threshold number, full-throughput data transmission is still maintained.

[0008] In another possible implementation, the communication device calculates the ratio of M to N to obtain a first value, and the communication device obtains a second rate according to the product of the first rate and the first value. In this way, the communication device adjusts the maximum data volume that can be supported for transmission per unit time according to the actual working state of the transmission channels, so that the data volume to be transmitted matches the actual working state of the transmission channels.

[0009] In another possible implementation, when the number of transmission channels with abnormal working states is greater than or equal to the failure transmission channel threshold number, the communication device obtains a second quantity according to M, N, and a first quantity. The first quantity is used to indicate the number of data streams sent by the communication device per unit time when the working states of all transmission channels included in the transmission medium are normal. The second quantity is used to indicate the number of data streams sent by the communication device per unit time when M - N transmission channels included in the transmission medium have abnormal working states. The communication device sends a first type of data stream to N transmission channels and a second type of data stream to M - N transmission channels at the second quantity. In this way, it is ensured that when the number of failed transmission channels is greater than or equal to the failure channel threshold number, full-throughput data transmission is still maintained.

[0010] In another possible implementation, the communication device calculates the ratio of N to M to obtain a second value, and the communication device obtains a second quantity according to the second value and the first quantity. In this way, the communication device adjusts the number of data streams sent per unit time according to the actual working state of the transmission channels, so that the number of data streams sent per unit time matches the actual working state of the transmission channels.

[0011] In another possible implementation, the communication device obtains N symbols carrying valid data according to the number of transmission channels included in the first transmission channel set, and obtains M - N symbols not carrying valid data according to the number of transmission channels included in the second transmission channel set. And the communication device generates a first type of data stream using the N symbols carrying valid data, and generates a second type of data stream using the M - N symbols not carrying valid data. In this way, it is ensured that when the number of faulty transmission channels is greater than or equal to the faulty channel number threshold, full-throughput data transmission is still maintained.

[0012] In a second aspect, the present application provides a communication method. This communication method is executed by a communication device, and the communication device is connected to a transmission medium. The communication method includes: The communication device detects the working state of each of the M transmission channels included in the transmission medium, and uses the transmission channels with normal working states as the first transmission channel set, and uses the transmission channels with abnormal working states as the second transmission channel set. Among them, the first transmission channel set includes N transmission channels, the second transmission channel set includes M - N transmission channels, both M and N are positive integers, M ≥ 2, and N ≥ 1. The communication device receives a first type of data stream sent by N transmission channels, and receives a second type of data stream sent by M - N transmission channels. Among them, the first type of data stream carries valid data, and the second type of data stream does not carry valid data. The communication device parses the first type of data stream to obtain the valid data carried by the first type of data stream.

[0013] In a possible implementation, when the number of transmission channels with abnormal working states is less than the faulty transmission channel threshold number, the communication device obtains a second rate according to M, N, and a first rate. Wherein, the first rate is used to indicate: when the working states of all transmission channels in the transmission medium are normal, the maximum amount of data that the transmission medium supports to transmit per unit time. The second rate is used to indicate: when the working states of M - N transmission channels in the transmission medium are abnormal, the maximum amount of data that the transmission medium supports to transmit per unit time. The communication device receives the first type of data stream sent by N transmission channels at the second rate, and receives the second type of data stream sent by M - N transmission channels.

[0014] In another possible implementation, the communication device calculates the ratio of M to N to obtain a first value, and the communication device obtains a second rate according to the product of the first rate multiplied by the first value.

[0015] In another possible implementation, when the number of transmission channels with abnormal working states is greater than or equal to the failure transmission channel threshold number, the communication device obtains a second quantity according to M, N, and a first quantity. The first quantity is used to indicate the number of data streams received by the communication device per unit time when the working states of all the transmission channels included in the transmission medium are normal. The second quantity is used to indicate the number of data streams received by the communication device per unit time when the working states of M - N transmission channels included in the transmission medium are abnormal. The communication device receives the first type of data streams sent by N transmission channels and receives the second type of data streams sent by M - N transmission channels by using the second quantity.

[0016] In another possible implementation, the communication device calculates the ratio of N to M to obtain a second value, and the communication device obtains a second quantity according to the second value and the first quantity.

[0017] In a third aspect, the present application provides a communication method. The communication method is executed by a communication system, and the communication system includes: a first communication device and a second communication device, and the first communication device and the second communication device are connected by a transmission medium. The communication method includes: the first communication device and the second communication device respectively detect the working state of each of the M transmission channels included in the transmission medium, and use the transmission channels with normal working states as a first transmission channel set and use the transmission channels with abnormal working states as a second transmission channel set. The first transmission channel set includes N transmission channels, and the second transmission channel set includes M - N transmission channels, where M and N are both positive integers, M ≥ 2, and N ≥ 1. The first communication device generates a first type of data stream carrying valid data and a second type of data stream not carrying valid data. The first communication device sends the first type of data stream to N transmission channels and sends the second type of data stream to M - N transmission channels. The second communication device receives the first type of data stream sent by N transmission channels and receives the second type of data stream sent by M - N transmission channels. The first type of data stream carries valid data, and the second type of data stream does not carry valid data. The second communication device analyzes the first type of data stream to obtain the valid data carried by the first type of data stream.

[0018] In a fourth aspect, the present application provides a communication device. The communication device includes each module for executing the communication method in the first aspect or any possible design in the first aspect, or each module for executing the communication method in the second aspect or any possible design in the second aspect.

[0019] Fifth aspect, the present application provides a communication device. The communication device includes: a processor and an interface circuit. The interface circuit is configured to receive signals from other devices outside the communication device and transmit them to the processor, or send signals from the processor to other devices outside the communication device. The processor, through logic circuits or by executing code instructions, is configured to execute the communication method in the first aspect or any possible design in the first aspect, or is configured to execute the communication method in the second aspect or any possible design in the second aspect.

[0020] Sixth aspect, the present application provides a communication system. The communication system includes at least two communication devices as described in the fifth aspect.

[0021] Seventh aspect, the present application provides a computer-readable storage medium. It includes: computer software instructions; when the computer software instructions run on a computing device, the computing device is caused to execute the operation steps of the method as described in the first aspect or any possible implementation in the first aspect.

[0022] Eighth aspect, the present application provides a computer program product. When the computer program product runs on a computer, the computing device is caused to execute the operation steps of the method as described in the first aspect or any possible implementation in the first aspect.

[0023] For the beneficial effects of the above third aspect to the eighth aspect, reference may be made to the description of any implementation in the first aspect or the second aspect, which will not be elaborated here. Based on the implementation provided in the above aspects of the present application, further combinations can be made to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 is a schematic diagram of the architecture of a data transmission system provided by the present application;

[0025] Figure 2 is a schematic diagram of the structure of a communication system provided by the present application;

[0026] Figure 3 is a schematic diagram of an abnormal working state;

[0027] Figure 4 is a schematic diagram of a rate determination method;

[0028] Figure 5 is a schematic diagram of the flow of a communication method provided by the present application;

[0029] Figure 6 is a schematic diagram of the position of an ASDM provided by the present application;

[0030] Figure 7 is a schematic diagram of identification carrying provided by the present application;

[0031] Figure 8 Schematic diagram of the first type of data generation provided for this application;

[0032] Figure 9A Schematic diagram of the position of an RS provided for this application;

[0033] Figure 9B Schematic diagram of the second type of data generation provided for this application;

[0034] Figure 10 Schematic diagram of the first type of data transmission provided for this application;

[0035] Figure 11 Schematic diagram of adjusting the number of data streams transmitted per unit time provided for this application;

[0036] Figure 12 Schematic diagram of the positional relationship between an ACMB and an ASDM provided for this application;

[0037] Figure 13 Schematic diagram of the second type of data transmission provided for this application;

[0038] Figure 14 Schematic diagram of data sending and receiving provided for this application;

[0039] Figure 15 Schematic diagram of a workflow provided for this application;

[0040] Figure 16 Schematic diagram of the structure of a communication device provided for this application;

[0041] Figure 17 Schematic diagram of the structure of a communication device provided for this application. Detailed implementation manners

[0042] For the sake of clear and concise description of the following embodiments, a brief introduction to the related technologies is given first.

[0043] Figure 1 Schematic diagram of the architecture of a data transmission system provided for this application, as Figure 1 shown, the data transmission system 100 includes a source end 110 and a destination end 130, and a communication system 120 for providing communication services to the source end 110 and the destination end 130.

[0044] The source end 110 may refer to an electronic device that sends data. For example, if the source end 110 is an application server or a storage device storing data, etc., the source end 110 can use the communication system 120 to send data to other devices (such as Figure 1The destination end 130) shown sends data. The data stored at the source end 110 may include, but is not limited to: audio, video, text, or other types of data. When the data sent by the source end 110 is a video, audio, or other multimedia file, the source end 110 may use a streaming transmission method to transmit this data, such as a media stream. Before playing, the destination end 130 does not download the entire streaming media file of the media stream to reduce the latency of playing the streaming media corresponding to the media stream by the destination end 130 and improve the quality of experience (QoE) of the user end.

[0045] The communication system 120 may include multiple communication devices that communicate with each other, such as Figure 1 the communication devices 1 to communication device n shown, where n is a positive integer greater than or equal to 1. The communication devices 1 to communication device n may be connected by a transmission medium. The communication devices may include, but are not limited to: devices with data forwarding functions such as routers and switches. The transmission medium may include, but is not limited to: media with data transmission functions such as twisted pairs, coaxial cables, and optical fibers. For more content about the communication system 120, please refer to the relevant description below Figure 2 and will not be elaborated here.

[0046] The destination end 130 may refer to an electronic device that requests data. For example, if the destination end 130 refers to a terminal, the terminal may be a mobile phone, a tablet computer, a computer with wireless transceiver functions, a personal communicationservice (PCS) phone, a desktop computer, a personal digital assistant (PDA), a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, and so on.

[0047] It should be noted that the above source end 110 and destination end 130 are only examples provided in this embodiment and should not be construed as a limitation on this application. This application does not limit the specific forms and quantities of the source end 110 and destination end 130 in the data transmission system 100.

[0048] As described above in conjunction with Figure 1 the data transmission system provided by the present application, the communication system will be further described below in conjunction with Figure 2 Figure Figure 2 FIG. Figure 2 is a schematic structural diagram of a communication system provided by the present application. As shown, the communication system includes communication devices 1 to communication devices n. The communication devices 1 to communication devices n can be connected by transmission media such as twisted pair, coaxial cable, and optical fiber. Hereinafter, taking the connection between communication devices 1 to communication devices n using a twisted pair including 4 pairs of cables as an example, the communication system will be described.

[0049] Each communication device included in the communication system can communicate at rates such as 10 Gigabits Per Second (Gbps / G), 5G, 2.5G, 1G, 100 megabits per second (Mbps / M), 10M, etc. If each communication device included in the communication system is to maintain a communication rate of 1G or higher, all 4 pairs of cables included in the twisted pair need to work properly. In some possible examples, one pair of cables of the twisted pair can also be referred to as a transmission channel of the twisted pair.

[0050] In some possible situations, some transmission channels included in the twisted pair may malfunction and cannot maintain a normal working state (i.e., the working state is abnormal). Figure 3 FIG. Figure 3 is a schematic diagram of an abnormal working state. As shown in (a) of Figure 3 FIG., the twisted pair includes: cable pair one (also known as pairA), cable pair two (also known as pairB), cable pair three (also known as pairC), and cable pair four (also known as pairD). Figure 3 In (a) of Figure 3 FIG., it shows that pairA has a malfunction, and this malfunction can be Figure 3 the impedance being severely discontinuous, open circuit, short circuit, etc. shown in (a) of Figure 3 FIG., or other malfunctions that cause abnormal communication not shown in (a) of Figure 4 FIG. Figure 4As shown in (a), each communication device included in the communication system first communicates at a high rate (such as 10G). In the case of communicating at this rate, it is detected whether the receiving party can successfully receive the data transmitted by the sending party. In the case where the receiving party cannot successfully receive the data transmitted by the sending party, each communication device included in the communication system communicates at a lower rate (such as 5G), and the above steps are repeated until the data transmitted by the sending party is successfully received. The flowchart of the above process can be summarized as Figure 4 the process shown in (b). Figure 4 The method shown determines the communication rate that matches the communication state of the transmission channels included in the twisted pair by gradually reducing the communication rate.

[0051] Although the communication system can adopt Figure 4 the rate reduction method shown to maintain communication in the case where the working state of the twisted pair is abnormal, the rate between each communication device included in the communication system is relatively low, generally 100M or 10M. In the case where a certain transmission channel included in the twisted pair (such as the transmission channel for realizing communication rate negotiation) fails, the communication system cannot maintain communication (link down).

[0052] For the above reasons, the present application provides a communication method. In this method: the first communication device sends a first type of data stream carrying valid data on the transmission channels with normal working states, and sends a second type of data stream not carrying valid data on the transmission channels with abnormal working states. In this way, in the case where some of the transmission channels included in the transmission medium have abnormal working states, all the transmission channels included in the transmission medium are still all used for data transmission, realizing full throughput transmission of the transmission medium and improving the utilization rate of the bandwidth of the transmission medium.

[0053] Figure 5 is a schematic flowchart of a communication method provided by the present application. This method can be implemented by Figure 1 the described communication system. This communication system includes a first communication device and a second communication device, and the first communication device and the second communication device are connected by a transmission medium. Below, taking the transmission medium as a twisted pair as an example, the communication method provided by the present application is described. This communication method includes the following S510 to S550.

[0054] S510, the first communication device detects the working state of each of the M transmission channels included in the transmission medium, and uses the transmission channels with normal working states as the first transmission channel set and the transmission channels with abnormal working states as the second transmission channel set.

[0055] Corresponding to S510, the second communication device executes S510A, specifically: the second communication device detects the working state of each of the M transmission channels included in the transmission medium, and uses the transmission channels with normal working states as the first transmission channel set and the transmission channels with abnormal working states as the second transmission channel set.

[0056] Among them, the first transmission channel set includes N transmission channels, the second transmission channel set includes M - N transmission channels, both M and N are positive integers, M≥2, and N≥1.

[0057] Exemplarily, the first communication device can use a fault diagnosis module to detect the working state of the transmission channels included in the twisted pair. Specifically: the first communication device uses the fault diagnosis module to send test signals to pairA, pairB, pairC, and pairD included in the twisted pair respectively, and detects the test signals on each transmission channel to obtain the working state of each transmission channel, and based on the working state of each transmission channel, obtains the first transmission channel set and the second transmission channel set. The fault diagnosis module can be built into the first communication device, such as the module for fault diagnosis included in the Physical Layer (phy) of the first communication device, or it can be provided by other devices or assembled on the first communication device and can implement fault diagnosis.

[0058] The first transmission channel set and the second transmission channel set can include different numbers of transmission channels. Taking a twisted pair including 4 pairs of cables, namely pairA, pairB, pairC, and pairD, as an example, where pairA corresponds to the A transmission channel (also known as A), pairB corresponds to the B transmission channel (also known as B), pairC corresponds to the C transmission channel (also known as C), and pairD corresponds to the D transmission channel (also known as D).

[0059] Example A, the first transmission channel set can include any three of A, B, C, and D, and the second transmission channel set includes the other one transmission channel of the twisted pair. For example, the first transmission channel set can include A, B, and C, and the second transmission channel set includes D.

[0060] Example B, the first transmission channel set can include any two of A, B, C, and D, and the second transmission channel set includes the other two transmission channels of the twisted pair. For example, the first transmission channel set can include A and B, and the second transmission channel set includes C and D.

[0061] Example C, the first transmission channel set can include any one of A, B, C, and D, and the second transmission channel set includes the other three transmission channels of the twisted pair. For example, the first transmission channel set can include A, and the second transmission channel set includes B, C, and D.

[0062] In a possible scenario, the first communication device may use a combination of 1s and 0s to represent the working states of the respective transmission channels included in the twisted pair cable. For example, the first communication device may use 1 to represent that the working state of the transmission channel is normal, and 0 to represent that the working state of the transmission channel is abnormal. The first communication device may store the working states of the respective transmission channels included in the twisted pair cable at the physical layer. Depending on the number of transmission channels included in the first transmission channel set and the second transmission channel set, the working states of the transmission channels included in the twisted pair cable stored by the first communication device are also different, which will be described separately in the following cases.

[0063] Case 1: The situation where one transmission channel is damaged as described in Example A.

[0064] In this case, the first communication device may store the working states of the respective channels included in the twisted pair cable in the representation shown in Table 1. Among them, "normal" in Table 1 represents that the working state is normal, "abnormal" represents that the working state is abnormal, and "other" represents other transmission channels.

[0065] Table 1

[0066]

[0067] Case 2: The situation where two transmission channels are damaged as described in Example B.

[0068] In this case, the first communication device may store the working states of the respective channels included in the twisted pair cable in the representation shown in Table 2.

[0069] Table 2

[0070]

[0071] Case 3: The situation where three transmission channels are damaged as described in Example C.

[0072] In this case, the first communication device may store the working states of the respective channels in the manner shown in Table 3.

[0073] Table 3

[0074]

[0075] As mentioned above, 1 is used to represent that the working state of the transmission channel is normal. In some possible examples, the first communication device may also use 0 to represent that the working state of the transmission channel is normal, and 1 to represent that the working state of the transmission channel is abnormal. This application does not limit the representation method of the working state. According to the actual application needs, other methods can also be used for representation.

[0076] S520, the first communication device generates a first type of data stream carrying valid data and a second type of data stream not carrying valid data.

[0077] The first communication device can generate the first type of data stream and the second type of data stream in different ways. Two possible implementation manners are given below.

[0078] Manner 1

[0079] The first communication device can use an Adaptive Symbol Distribution Module (ASDM) to generate the first type of data stream and the second type of data stream. Figure 6 This is a schematic diagram of the location of an ASDM provided by this application. As Figure 6 shown, the ASDM can be located within the physical coding sublayer (PCS) of the first communication device, such as between the media-dependent coding (such as PAM16) and the symbol distribution module. The ASDM can include a data buffer, a PAD generation module, and a control module. Among them, the data buffer is used to cache data, and the PAD generation module is used to generate pad symbols. The first communication device can use a corresponding identifier in the message to indicate the use of the ASDM. Figure 7 This is a schematic diagram of identifier carrying provided by this application. As Figure 7 shown, the reserved field (i.e., rsvd) located in the least significant bit is used to indicate the use of the ASDM.

[0080] Taking 10G-BASE-T PHY as an example below, the process of the first communication device using the ASDM to generate the first type of data stream and the second type of data stream is described.

[0081] Figure 8 This is the first schematic diagram of data generation provided by this application. As Figure 8As shown in the figure, the link layer (Medium Access Control, MAC) of the first communication device uses an XGMII interface (Xgmii interface) to send link layer packets to the PCS of the first communication device. The PCS receives the link layer packets sent by the link layer, combines two XGMII data (the single data volume is: 32 bits) into data with a data volume of 64 bits, and adds 1 bit of data or control indication to the 64-bit data to obtain the concatenated data with a data volume of 65 bits. The concatenated data with a data volume of 65 bits forms a data block (block) with a size of 65 bits after scrambling. The PCS uses 25 blocks, 97 zeros (zero), and 1 auxiliary bit to obtain 1723-bit data, and forms a 2048-bit code block using forward error correction (FEC) (such as LDPC(1723, 2048)). The 2048-bit code block forms 512 symbols after medium-dependent encoding (such as PAM16). The symbols generated by the first communication device using valid data are the first type of data stream, otherwise the generated symbols are the second type of data stream. In this application, the symbols included in the first type of data stream are called data symbols, and the symbols included in the second type of data stream are also called pad symbols.

[0082] Method 2

[0083] Figure 9A This is a schematic diagram of the position of an RS provided by this application, as Figure 9A shown, the reconciliation sublayer (RS) is located in the link layer (Medium Access Control, MAC) of the first communication device. Figure 9B This is a schematic diagram of the generation of the second type of data provided by this application, as Figure 9B shown, the first communication device uses the reconciliation sublayer to adjust the effective data bandwidth transmitted to the PCS so that the data symbols to be transmitted on the transmission channel match the normally operating transmission channel. Taking the state of each transmission channel included in the transmission medium as 1100 as an example, when sending data, the RS of the first communication device copies the data block to be sent, and the RS pulls down the MII enable signal at the position of the repeated data block, so that the data to be transmitted on each transmission channel is in the form as Figure 9B shown (D0D1D0D1...). In this case, keeping the main frequency of the PCS unchanged, the effective bandwidth between the RS and the PCS becomes the bandwidth that the physical link can actually transmit, so as to realize the full use of the existing physical bandwidth. When receiving data, the second communication device receives the data block in the same way as the RS of the first communication device, which will not be elaborated here.

[0084] S530, the first communication device sends the first type of data stream to N transmission channels and sends the second type of data stream to M - N transmission channels.

[0085] Corresponding to S530, the second communication device executes S540, specifically: the second communication device receives the first type of data stream sent by N transmission channels and the second type of data stream sent by M - N transmission channels.

[0086] According to the different numbers of transmission channels with abnormal working states, the ways for the first communication device to send data to each transmission channel included in the transmission medium are also different, which are described in different cases below.

[0087] Case 1: The number of transmission channels with abnormal working states is less than the failure transmission channel threshold number.

[0088] In a possible case, the first communication device obtains a second rate according to M, N, and a first rate, and the first communication device uses the second rate to send the first type of data stream to N transmission channels and send the second type of data stream to M - N transmission channels. Among them, the first rate is used to indicate: when the working states of all transmission channels in the transmission medium are normal, the maximum amount of data that the transmission medium can support for transmission per unit time. The second rate is used to indicate: when the working states of M - N transmission channels in the transmission medium are abnormal, the maximum amount of data that the transmission medium can support for transmission per unit time.

[0089] The first communication device can obtain the second rate in the following way, specifically: the first communication device calculates the ratio of M to N to obtain a first value, and obtains the second rate according to the product of the first rate multiplied by the first value. The first communication device can obtain the second rate in various ways, and several possible examples are given below.

[0090] Example 11, the first communication device can obtain the second rate using formula (1).

[0091]

[0092] Among them, v1 is the data transmission rate of each transmission channel when the working states of all M transmission channels are normal, v2 is the data transmission rate of each transmission channel when the working states of N transmission channels are normal, M is the total number of all transmission channels included in the transmission medium, and N is the number of transmission channels with normal working states included in the transmission medium.

[0093] Example 12, the first communication device can obtain the second rate using formula (2).

[0094]

[0095] Among them, v1 is the data transmission rate of each transmission channel when the working states of all M transmission channels are normal, v2 is the data transmission rate of each transmission channel when the working states of N transmission channels are normal, M is the total number of all transmission channels included in the transmission medium, N is the number of transmission channels with normal working states included in the transmission medium, and c is a constant.

[0096] Example 13, the first communication device can obtain the second rate by using formula (3).

[0097]

[0098] Among them, v1 is the data transmission rate of each transmission channel when the working states of all M transmission channels are normal, v2 is the data transmission rate of each transmission channel when the working states of N transmission channels are normal, M is the total number of all transmission channels included in the transmission medium, N is the number of transmission channels with normal working states included in the transmission medium, and a is a constant.

[0099] Example 14, the first communication device can obtain the second rate by using formula (4).

[0100]

[0101] Among them, v1 is the data transmission rate of each transmission channel when the working states of all M transmission channels are normal, v2 is the data transmission rate of each transmission channel when the working states of N transmission channels are normal, M is the total number of all transmission channels included in the transmission medium, N is the number of transmission channels with normal working states included in the transmission medium, and a and c are constants.

[0102] Taking the first communication device obtaining the second rate by using Example 11, the number of faulty transmission channel thresholds being 2, and 1 transmission channel being faulty as an example, the process of the first communication device transmitting the first type of data stream and the second type of data stream is described.

[0103] The first communication device compares the number of faulty transmission channels (i.e., 1) with the number of faulty transmission channel thresholds (i.e., 2), and obtains that the number of faulty transmission channels is less than the number of faulty transmission channel thresholds. In this case, Figure 10 This is the first data transmission schematic diagram provided by this application, as Figure 10As shown, based on the operating status of each transmission channel (such as 1101) obtained by the ASDM of the first communication device, data symbols are sent to the 3 transmission channels (i.e., transmission channel A, transmission channel B, and transmission channel D) included in the first transmission channel set at a rate of (4 / 3)*v1, and pad symbols are sent to 1 transmission channel (i.e., transmission channel C). The ASDM uses a data buffer and control logic to add pad symbols. The ASDM writes data symbols (the first type of data stream) into the data buffer at the in-channel clock frequency (frequency, F), and the ASDM reads the data symbols in the data buffer at a second frequency (4 / 3*F). When the counter counts to 1, 2, and 4, the read enable transmits data symbols to transmission channel A, transmission channel B, and transmission channel D, and when the counter counts to 3, pad symbols are transmitted to transmission channel C.

[0104] In the above process, in the case where transmission channel C is damaged, the data symbols in the data buffer are read at the second frequency (4 / 3*F), so that the baud rate of the data on transmission channel A, transmission channel B, and transmission channel D is 4 / 3 times the baud rate on each transmission channel when no fault occurs in each transmission channel. In this way, it is ensured that when the number of faulty transmission channels is less than the fault channel number threshold, full-throughput data transmission is still maintained.

[0105] Corresponding to the first communication device sending data symbols on the transmission channels with normal operating status and pad symbols on the transmission channels with abnormal operating status. The second communication device receives data symbols from the transmission channels with normal operating status and discards the pad symbols received on the transmission channels with abnormal operating status. Please continue to refer to Figure 10 , the second communication device can use ASDM to receive data on the transmission medium. The ASDM uses a FIFO and control logic to receive data symbols from transmission channel A, transmission channel B, and transmission channel D when the counter counts to 1, 2, and 4, and discards the pad symbols transmitted by transmission channel C when the counter counts to 3. It is realized that when the number of faulty transmission channels is less than the fault channel number threshold, the throughput remains unchanged.

[0106] Case 2: The number of transmission channels with abnormal operating status is greater than or equal to the fault transmission channel threshold number.

[0107] In this case, according to whether the first communication device adjusts its in-channel clock frequency (i.e., the number of data streams sent per unit time, also known as the first quantity), there are also various different processing methods. Two possible examples are given below.

[0108] Example A: The first communication device adjusts the frequency of the clock on the same channel.

[0109] In the first possible scenario, the first communication device obtains a second quantity based on M, N, and the first quantity, and transmits the first type of data stream to N transmission channels using the second quantity, and transmits the second type of data stream to M - N transmission channels using the second quantity. Here, the first quantity is used to indicate the number of data streams transmitted by the communication device per unit time when all the transmission channels included in the transmission medium are in normal working states. The second quantity is used to indicate the number of data streams transmitted by the communication device per unit time when M - N transmission channels included in the transmission medium are in abnormal working states.

[0110] The first communication device can obtain the second quantity in the following manner. Specifically, the first communication device calculates the ratio of M to N to obtain a second value, and obtains the second quantity based on the product of the first rate and the second value. The first communication device can obtain the second quantity in various ways. Several possible examples are given below.

[0111] Example 21: The first communication device can obtain the second quantity using formula (5).

[0112]

[0113] Here, m1 is the number of data streams transmitted by the communication device per unit time when all M transmission channels are in normal working states. m2 is the number of data streams transmitted by the communication device per unit time when N transmission channels are in normal working states. M is the total number of transmission channels included in the transmission medium, and N is the number of transmission channels with normal working states included in the transmission medium.

[0114] Example 22: The first communication device can obtain the second quantity using formula (6).

[0115]

[0116] Here, m1 is the number of data streams transmitted by the communication device per unit time when all M transmission channels are in normal working states. m2 is the number of data streams transmitted by the communication device per unit time when N transmission channels are in normal working states. M is the total number of transmission channels included in the transmission medium, N is the number of transmission channels with normal working states included in the transmission medium, and c is a constant.

[0117] Example 23: The first communication device can obtain the second quantity using formula (7).

[0118]

[0119] Among them, m1 is the number of data streams sent by the communication device per unit time when the working states of all M transmission channels are normal. m2 is the number of data streams sent by the communication device per unit time when the working states of N transmission channels are normal. M is the total number of all transmission channels included in the transmission medium, N is the number of transmission channels with normal working states included in the transmission medium, and a is a constant.

[0120] Example 24, the first communication device can use formula (8) to obtain the second quantity.

[0121]

[0122] Among them, m1 is the number of data streams sent by the communication device per unit time when the working states of all M transmission channels are normal. m2 is the number of data streams sent by the communication device per unit time when the working states of N transmission channels are normal. M is the total number of all transmission channels included in the transmission medium, N is the number of transmission channels with normal working states included in the transmission medium, and a and c are constants.

[0123] Taking the first communication device obtaining the second quantity by using Example 21, the number of faulty transmission channel thresholds being 2, and there being 2 faulty transmission channels as an example, the process of the first communication device transmitting the first type of data stream and the second type of data stream is described.

[0124] The first communication device compares the number of faulty transmission channels (i.e., 2) with the number of faulty transmission channel thresholds (i.e., 2), and obtains that the number of faulty transmission channels is equal to the number of faulty transmission channel thresholds. In this case, the first communication device uses the Adaptive Clock Management Block (ACMB) to adjust the number of data streams sent by the first communication device per unit time (i.e., the first quantity) according to the working states of each transmission channel (such as 1001) obtained by the fault diagnosis module, and obtains the second quantity.

[0125] The process of the first communication device adjusting the first quantity to the second quantity is described as follows: The first communication device can adjust Figure 11 the value of M / N / C in it, change the first quantity to obtain the second quantity that matches the bandwidth of the normally working transmission channels. Figure 11A schematic diagram for adjusting the number of data streams sent per unit time provided by this application. ACMB takes the working status of each transmission channel (i.e., 1001) obtained by the fault diagnosis module as the input to adjust the frequency adjustment coefficient (M / N / C), thereby generating a clock frequency (i.e., the second quantity) that matches the actual bandwidth. For example, in the case of faults in transmission channels B and C, ACMB adjusts the follow - on clock frequency of the first communication device to 2 / 4 of the case where each transmission channel is working properly. In this case, the throughput of the PCS of the first communication device becomes 2 / 4 of the throughput of the PCS when each transmission channel is working properly. Regarding the adjustment process of the value of M / N / C, please refer to the general technology and will not be elaborated here. ACMB can be integrated inside the PHY chip or exist independently. Considering clock SI and chip integration, usually, ACMB is integrated in the PHY chip. As Figure 12 shown, Figure 12 A schematic diagram of the positional relationship between ACMB and ASDM provided by this application.

[0126] Figure 13 The second data transmission schematic diagram provided by this application. As Figure 13 shown, the ASDM of the first communication device sends data symbols to the 2 transmission channels (i.e., transmission channels A and D) included in the first transmission channel set and sends pad symbols to the 2 transmission channels (i.e., transmission channels B and C) according to the working status of each transmission channel (such as 1001) obtained by the fault diagnosis module. ASDM uses a data buffer and control logic to add pad symbols. When the counter counts to 1 and 4, the read enable transmits data symbols to transmission channels A and D, and when the counter counts to 2 and 3, it transmits pad symbols to transmission channels B and C.

[0127] Figure 14 A schematic diagram of data sending and receiving provided by this application. As Figure 14 shown in (a) below, when sending, the ASDM of the first communication device writes data symbols (the first type of data stream) into the data buffer according to the second quantity (2 / 4*F). And ASDM reads the data symbols in the data buffer using the first quantity (F). Specifically, the control module uses a counter with a count of 4 to read the data symbols when the counter counts to 1 or 4 and inserts pad symbols when it counts to 2 or 3. Finally, data in the form of "data symbol - pad symbol - pad symbol - data symbol" is formed, and the distribution module sends this form of data to all transmission channels included in the transmission medium. Corresponding to the data sending process of the first communication device, the second communication device receives data from the transmission channel. AsFigure 14 As shown in (b), during reception, the ASDM of the second communication device discards the pad symbols received from the transmission channels with abnormal working states, and writes the data symbols received from the transmission channels with normal working states into the data buffer. The ASDM reads data symbols from the data buffer using a second quantity (2 / 4*F). Thus, full-throughput transmission of the transmission medium (i.e., "data symbol - pad symbol - pad symbol - data symbol") is achieved in the case of two faulty transmission channels.

[0128] Example B: The first communication device does not adjust the frequency of the clock on the line.

[0129] The first communication device obtains N symbols carrying valid data according to the number of transmission channels included in the first set of transmission channels, and obtains M - N symbols not carrying valid data according to the number of transmission channels included in the second set of transmission channels. The first communication device generates a first type of data stream using the N symbols carrying valid data, and generates a second type of data stream using the M - N symbols not carrying valid data.

[0130] Exemplarily, the RS receiving side of the first communication device replicates the data symbols. And the RS sending side of the first communication device, according to the status of each transmission channel obtained by the fault diagnosis module (such as 1100), when corresponding data is transmitted to transmission channel A, transmission channel B, and transmission channel C, enables the MII signal to obtain the data symbols transmitted to transmission channel A, transmission channel B, and transmission channel C, and when corresponding data is transmitted to transmission channel D, pulls down the MII signal to obtain the pad symbols transmitted to transmission channel D. Keeping the main frequency of the PCS unchanged, the data transmitted from the MAC layer of the first communication device to the PHY layer matches the status of each transmission channel, so that the effective bandwidth between the RS and the PCS becomes the bandwidth that the transmission medium can actually transmit (i.e., the transmission channels with normal working states), thus making full use of the existing physical bandwidth.

[0131] After S540, the second communication device can also execute S550, specifically: the second communication device parses the first type of data stream to obtain the valid data carried by the first type of data stream.

[0132] The above uses a twisted pair with 4 cable pairs as the transmission medium and takes the number of faulty transmission channel thresholds as 1 as an example to illustrate the communication method provided in this application. In some possible cases, the transmission medium can also be coaxial cable, optical fiber, etc., and the number of faulty transmission channel thresholds can also be other quantities, which are not limited in this application.

[0133] Figure 15A flowchart provided for this application, as Figure 15 shown, the communication device diagnoses faults in the transmission channel, uses an adaptive symbol distribution module to distribute data to the transmission channel, and detects the accuracy of the data transmitted through the transmission channel. In this way, when some of the transmission channels included in the transmission medium are in an abnormal working state, all the transmission channels included in the transmission medium are still all used for data transmission, achieving full throughput transmission of the transmission medium and improving the utilization rate of the bandwidth of the transmission medium.

[0134] Corresponding to S530, the first communication device detects the working state of each of the M transmission channels included in the transmission medium, determines the first set of transmission channels with normal working states, and the second set of transmission channels with abnormal working states. The second communication device receives the first type of data stream sent by N transmission channels, and receives the second type of data stream sent by M - N transmission channels. Among them, the first type of data stream carries valid data, and the second type of data stream does not carry valid data. The second communication device parses the first type of data stream to obtain the valid data carried by the first type of data stream.

[0135] The above describes the communication method provided by this application by taking the first communication device as an example of sending the first type of data stream carrying valid data to the transmission channels with normal working states and sending the second type of data stream not carrying valid data to the transmission channels with abnormal working states. In some possible examples, the first communication device can also close the transmission channels with abnormal working states and send the first type of data stream carrying valid data to the transmission channels with normal working states. For example, the first communication device can use the Physical Medium Dependent Sublayer (PMA) to implement the function of sending the first type of data stream carrying valid data to the transmission channels with normal working states. In this way, the power consumption of the first communication device can be reduced. In some other possible examples, the second communication device can also close the transmission channels with abnormal working states and receive the first type of data stream carrying valid data transmitted by the transmission channels with normal working states. For example, the second communication device can use the Physical Medium Dependent Sublayer (PMA) to implement the function of receiving the first type of data stream carrying valid data transmitted by the transmission channels with normal working states. In this way, the power consumption of the second communication device can be reduced. According to the actual application needs, only one of the first communication device and the second communication device can close the transmission channels with abnormal working states, or both can close the transmission channels with abnormal working states. This application does not limit this.

[0136] This application also provides a communication device, Figure 16 which is a schematic structural diagram of a communication device provided for this application, and this communication device can implement Figure 5The functions of the first communication device or the second communication device. When the communication device 1600 is used to implement the functions of the first communication device, as Figure 16 shown, the communication device 1600 includes: a detection module 1610, a processing module 1620, and a transceiver module 1630.

[0137] The detection module 1610 is configured to: detect the working state of each of the M transmission channels included in the transmission medium, and use the transmission channels with normal working states as the first set of transmission channels and the transmission channels with abnormal working states as the second set of transmission channels. Among them, the first set of transmission channels includes N transmission channels, the second set of transmission channels includes M - N transmission channels, M and N are both positive integers, M≥2, and N≥1. The processing module 1620 is configured to: generate a first type of data stream carrying valid data and a second type of data stream not carrying valid data. The transceiver module 1630 is configured to: send the first type of data stream to the N transmission channels and send the second type of data stream to the M - N transmission channels.

[0138] In a possible scenario, when the number of transmission channels with abnormal working states is less than the failure transmission channel threshold number, the processing module 1620 is specifically configured to: obtain a second rate according to M, N, and a first rate. The first rate is used to indicate: the maximum data volume that the transmission medium supports for transmission per unit time when the working states of all transmission channels in the transmission medium are normal. The second rate is used to indicate: the maximum data volume that the transmission medium supports for transmission per unit time when the working states of M - N transmission channels in the transmission medium are abnormal. The transceiver module 1630 is specifically configured to: send the first type of data stream to the N transmission channels at the second rate, and send the second type of data stream to the M - N transmission channels.

[0139] In another possible scenario, the processing module 1620 is specifically configured to: calculate the ratio of M to N to obtain a first value, and the processing module 1620 is further specifically configured to: obtain a second rate according to the product of the first rate multiplied by the first value.

[0140] In another possible scenario, when the number of transmission channels with abnormal working states is greater than or equal to the failure transmission channel threshold number, the processing module 1620 is specifically configured to: obtain a second quantity according to M, N, and a first quantity. The first quantity is used to indicate: the number of data streams sent by the communication device per unit time when the working states of all transmission channels included in the transmission medium are normal. The second quantity is used to indicate: the number of data streams sent by the communication device per unit time when the working states of M - N transmission channels included in the transmission medium are abnormal. The transceiver module 1630 is specifically configured to: send the first type of data stream to the N transmission channels at the second quantity, and send the second type of data stream to the M - N transmission channels at the second quantity.

[0141] In another possible scenario, the processing module 1620 is specifically configured to: calculate the ratio of N to M to obtain a second value, and the processing module 1620 is further specifically configured to: obtain a second quantity according to the second value and the first quantity.

[0142] In another possible scenario, when the number of transmission channels with abnormal working states is greater than or equal to the number of faulty transmission channel thresholds, the processing module 1620 is specifically configured to: obtain N symbols carrying valid data according to the number of transmission channels included in the first transmission channel set, and obtain M - N symbols not carrying valid data according to the number of transmission channels included in the second transmission channel set. The processing module 1620 is further specifically configured to: generate a first type of data stream using the N symbols carrying valid data, and generate a second type of data stream using the M - N symbols not carrying valid data.

[0143] The above describes the functions of each module when the communication device 1600 is used to implement Figure 5 the functions of the first communication device in Figure 5 Next, the specific functions of each module when the communication device 1600 is used to implement

[0144] The detection module 1610 is configured to: detect the working state of each of the M transmission channels included in the transmission medium, and use the transmission channels with normal working states as the first transmission channel set and the transmission channels with abnormal working states as the second transmission channel set. Among them, the first transmission channel set includes N transmission channels, the second transmission channel set includes M - N transmission channels, both M and N are positive integers, M≥2, and N≥1. The transceiver module 1630 is configured to: receive the first type of data stream sent by N transmission channels, and receive the second type of data stream sent by M - N transmission channels. Among them, the first type of data stream carries valid data, and the second type of data stream does not carry valid data. The processing module 1620 is configured to: parse the first type of data stream to obtain the valid data carried by the first type of data stream.

[0145] For other functions implemented by the detection module 1610 and the processing module 1620, please refer to the relevant descriptions of the detection module 1610 and the processing module 1620 in Figure 16 above, which will not be elaborated here. Different from the first communication device, the transceiver module 1630 included in the second communication device is configured to: correspond to receiving the data sent by the transceiver module 1630 included in the first communication device. For more descriptions of the transceiver module 1630, please refer to the above, which will not be elaborated here.

[0146] On the basis of the communication method and communication device provided by the present application described above in conjunction with the accompanying drawings, the communication device provided by the present application will be described below in conjunction with the accompanying drawings.Figure 17 A schematic structural diagram of a communication device provided for this application, as Figure 17 shown, the communication device 1700 includes: a processor 1710, a bus 1720, a memory 1730, a memory unit 1750 (which can also be referred to as the main memory (m17in memory) unit), and a communication interface 1740. The processor 1710, the memory 1730, the memory unit 1750, and the communication interface 1740 are connected through the bus 1720.

[0147] It should be understood that in this embodiment, the processor 1710 can be a CPU, and the processor 1710 can also be other general-purpose processors, DSPs, ASICs, FPGAs, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.

[0148] The communication interface 1740 is used to implement the communication between the communication device 1700 and external devices or components. In this embodiment, the communication interface 1740 is used to perform data interaction with other communication devices.

[0149] The bus 1720 can include a path for transmitting information between the above components (such as the processor 1710, the memory unit 1750, and the memory 1730). In addition to the data bus, the bus 1720 can also include a power bus, a control bus, a status signal bus, etc. However, for the sake of clear illustration, all kinds of buses are labeled as the bus 1720 in the figure. The bus 1720 can be a Peripheral Component Interconnect Express (PCIe) bus, or an extended industry standard architecture (EISA) bus, a unified bus (Ubus or UB), a Compute Express Link (CXL), a Cache Coherent Interconnect for Accelerators (CCIX), etc.

[0150] As an example, the communication device 1700 can include multiple processors. The processor can be a multi-CPU processor. Here, the processor can refer to one or more devices, circuits, and / or computing units for processing data (such as computer program instructions). The processor 1710 can call the valid data stored in the memory 1730 and use the valid data to generate a first type of data stream carrying the valid data.

[0151] It should be noted that Figure 17 only taking the communication device 1700 including 1 processor 1710 and 1 memory 1730 as an example, here, the processor 1710 and the memory 1730 are respectively used to indicate a type of device or equipment. In a specific embodiment, the number of each type of device or equipment can be determined according to service requirements.

[0152] The memory unit 1750 can correspond to the storage medium for storing valid data in the above method embodiments. The memory unit 1750 can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchlink dynamic random access memory (SLDRAM), and direct rambus random access memory (DR RAM).

[0153] The memory 1730 is used to store the first application program of the new version and can be a solid-state drive or a mechanical hard drive.

[0154] It should be understood that the above communication device 1700 can be a DPU. The communication device 1700 according to this embodiment can correspond to the communication device 1600 in this embodiment and can correspond to performing Figure 5 the functions of the first communication device or the second communication device in, and the above and other operations and / or functions of each module in the communication device 1600 are respectively for implementing Figure 5 the corresponding processes in, and for the sake of brevity, they will not be described in detail here.

[0155] The method steps in this embodiment can be implemented in a hardware manner or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory (RAM), flash memory, read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), register, hard disk, removable hard disk, CD-ROM, or any other form of storage medium well-known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. Additionally, the ASIC can be located in a computing device. Of course, the processor and the storage medium can also exist as discrete components in a network device or a terminal device.

[0156] This application also provides a chip system, which includes a processor for implementing the functions of the data processing unit in the above method. In a possible design, the chip system further includes a memory for storing program instructions and / or data. The chip system can be composed of chips or can include chips and other discrete devices.

[0157] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable devices. The computer program or instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program or instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired or wireless manner. The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it can also be an optical medium, such as a digital video disc (DVD); or it can be a semiconductor medium, such as a solid state drive (SSD).

[0158] As described above, the above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A communication method, characterized in that, the method is executed by a communication device connected to a transmission medium, and the method includes: detecting the working state of each of the M transmission channels included in the transmission medium, and taking the transmission channels with normal working states as the first transmission channel set and the transmission channels with abnormal working states as the second transmission channel set; wherein, the first transmission channel set includes N transmission channels, the second transmission channel set includes M - N transmission channels, M and N are both positive integers, M ≥ 2, N ≥ 1; generating a first type of data stream carrying valid data and a second type of data stream not carrying valid data; sending the first type of data stream to the N transmission channels and sending the second type of data stream to the M - N transmission channels.

2. The method according to claim 1, characterized in that, when the number of transmission channels with abnormal working states is less than the failure transmission channel threshold number, the sending the first type of data stream to the N transmission channels and sending the second type of data stream to the M - N transmission channels includes: obtaining a second rate according to the M, the N and a first rate; wherein, the first rate is used to indicate: when the working states of all transmission channels in the transmission medium are normal, the maximum data volume supported by the transmission medium for transmission per unit time; the second rate is used to indicate: when the working states of M - N transmission channels in the transmission medium are abnormal, the maximum data volume supported by the transmission medium for transmission per unit time; sending the first type of data stream to the N transmission channels and sending the second type of data stream to the M - N transmission channels at the second rate.

3. The method according to claim 2, characterized in that, the obtaining a second rate according to the M, the N and a first rate includes: calculating the ratio of the M to the N to obtain a first value; obtaining the second rate according to the product of the first rate multiplied by the first value.

4. The method according to claim 1, characterized in that, when the number of transmission channels with abnormal working states is greater than or equal to the failure transmission channel threshold number, the sending the first type of data stream to the N transmission channels and sending the second type of data stream to the M - N transmission channels includes: obtaining a second quantity according to the M, the N and a first quantity; wherein, the first quantity is used to indicate: when the working states of all transmission channels included in the transmission medium are normal, the quantity of data streams sent by the communication device per unit time; the second quantity is used to indicate: when the working states of M - N transmission channels included in the transmission medium are abnormal, the quantity of data streams sent by the communication device per unit time; sending the first type of data stream to the N transmission channels at the second quantity and sending the second type of data stream to the M - N transmission channels at the second quantity.

5. The method according to claim 4, characterized in that, Said obtaining a second frequency according to the M, the N, and the first quantity includes: Calculating a ratio of the N to the M to obtain a second value; Obtaining the second quantity according to the second value and the first quantity.

6. The method according to claim 1, wherein, said generating a first type of data stream carrying valid data and a second type of data stream not carrying valid data includes: Obtaining N symbols carrying valid data according to the number of transmission channels included in the first transmission channel set, and obtaining M - N symbols not carrying valid data according to the number of transmission channels included in the second transmission channel set; Generating a first type of data stream by using the N symbols carrying valid data, and generating a second type of data stream by using the M - N symbols not carrying valid data.

7. A communication method, wherein, said method is executed by a communication device connected to a transmission medium, and said method includes: Detecting the working state of each of the M transmission channels included in the transmission medium, and taking the transmission channels with normal working states as the first transmission channel set and the transmission channels with abnormal working states as the second transmission channel set; wherein, the first transmission channel set includes N transmission channels, the second transmission channel set includes M - N transmission channels, M and N are both positive integers, M ≥ 2, N ≥ 1; Receiving a first type of data stream sent by the N transmission channels, and receiving a second type of data stream sent by the M - N transmission channels; wherein, the first type of data stream carries valid data, and the second type of data stream does not carry valid data; Parsing the first type of data stream to obtain the valid data carried by the first type of data stream.

8. The method according to claim 7, wherein, when the number of transmission channels with abnormal working states is less than a failure transmission channel threshold number, said receiving a first type of data stream sent by the N transmission channels, and receiving a second type of data stream sent by the M - N transmission channels includes: Obtaining a second rate according to the M, the N, and a first rate; wherein, the first rate is used to indicate: when the working states of all transmission channels in the transmission medium are normal, the maximum data volume that the transmission medium supports for transmission per unit time; the second rate is used to indicate: when the working states of M - N transmission channels in the transmission medium are abnormal, the maximum data volume that the transmission medium supports for transmission per unit time; Receiving the first type of data stream sent by the N transmission channels at the second rate, and receiving the second type of data stream sent by the M - N transmission channels.

9. The method according to claim 8, wherein, said obtaining a second rate according to the M, the N, and a first rate includes: Calculating a ratio of the M to the N to obtain a first value; Obtaining the second rate according to the product of the first rate multiplied by the first value.

10. The method according to claim 7, wherein, when the number of transmission channels with abnormal working states is greater than or equal to a failure transmission channel threshold number, Receiving the first type of data stream sent by the N transmission channels and receiving the second type of data stream sent by the M - N transmission channels includes: Obtaining a second quantity according to the M, the N, and a first quantity; Wherein, the first quantity is used to indicate the quantity of data streams received by the communication device per unit time when all the transmission channels included in the transmission medium are in normal working states; the second quantity is used to indicate the quantity of data streams received by the communication device per unit time when the M - N transmission channels included in the transmission medium are in abnormal working states; Receiving the first type of data stream sent by the N transmission channels by using the second quantity, and receiving the second type of data stream sent by the M - N transmission channels by using the second quantity.

11. According to the method described in claim 10, characterized in that, the obtaining a second frequency according to the M, the N, and the first quantity includes: Calculating the ratio of the N to the M to obtain a second value; Obtaining the second quantity according to the second value and the first quantity.

12. A communication method, characterized in that, the communication method is executed by a communication system, the communication system includes a first communication device and a second communication device, the first communication device and the second communication device are connected by a transmission medium, and the method includes: The first communication device and the second communication device respectively detect the working state of each of the M transmission channels included in the transmission medium, and use the transmission channels with normal working states as a first transmission channel set and the transmission channels with abnormal working states as a second transmission channel set; wherein, the first transmission channel set includes N transmission channels, the second transmission channel set includes M - N transmission channels, both M and N are positive integers, M≥2, N≥1; The first communication device generates a first type of data stream carrying valid data and a second type of data stream not carrying valid data; The first communication device sends the first type of data stream to the N transmission channels and sends the second type of data stream to the M - N transmission channels; The second communication device receives the first type of data stream sent by the N transmission channels and receives the second type of data stream sent by the M - N transmission channels; wherein, the first type of data stream carries valid data, and the second type of data stream does not carry valid data; The second communication device parses the first type of data stream to obtain the valid data carried by the first type of data stream.

13. A communication device, characterized in that, the communication device includes: A detection module, configured to: detect the working state of each of the M transmission channels included in the transmission medium, and use the transmission channels with normal working states as a first transmission channel set and the transmission channels with abnormal working states as a second transmission channel set; wherein, the first transmission channel set includes N transmission channels, the second transmission channel set includes M - N transmission channels, both M and N are positive integers, M≥2, N≥1; A processing module, configured to: generate a first type of data stream carrying valid data and a second type of data stream not carrying valid data; A transceiver module, configured to: send the first type of data stream to the N transmission channels and send the second type of data stream to the M - N transmission channels.

14. The apparatus according to claim 13, wherein, when the number of transmission channels with abnormal working states is less than the failure transmission channel threshold number, the processing module is specifically configured to: obtain a second rate according to the M, the N, and a first rate; wherein the first rate is used to indicate: when the working states of all transmission channels in the transmission medium are normal, the maximum amount of data that the transmission medium supports transmitting per unit time; the second rate is used to indicate: when the working states of M - N transmission channels in the transmission medium are abnormal, the maximum amount of data that the transmission medium supports transmitting per unit time; the transceiver module is specifically configured to: send the first type of data stream to the N transmission channels at the second rate, and send the second type of data stream to the M - N transmission channels.

15. The apparatus according to claim 14, wherein, the processing module is specifically configured to: calculate a ratio of the M to the N to obtain a first value; the processing module is further specifically configured to: obtain the second rate according to a product of the first rate multiplied by the first value.

16. The apparatus according to claim 13, wherein, when the number of transmission channels with abnormal working states is greater than or equal to the failure transmission channel threshold number, the processing module is specifically configured to: obtain a second quantity according to the M, the N, and a first quantity; wherein the first quantity is used to indicate: when the working states of all transmission channels included in the transmission medium are normal, the number of data streams that the communication device sends per unit time; the second quantity is used to indicate: when the working states of M - N transmission channels included in the transmission medium are abnormal, the number of data streams that the communication device sends per unit time; the transceiver module is specifically configured to: send the first type of data stream to the N transmission channels at the second quantity, and send the second type of data stream to the M - N transmission channels at the second quantity.

17. The apparatus according to claim 16, wherein, the processing module is specifically configured to: calculate a ratio of the N to the M to obtain a second value; the processing module is further specifically configured to: obtain the second quantity according to the second value and the first quantity.

18. The apparatus according to claim 13, wherein, when the number of transmission channels with abnormal working states is greater than or equal to the failure transmission channel threshold number, the processing module is specifically configured to: obtain N symbols carrying valid data according to the number of transmission channels included in the first transmission channel set, and obtain M - N symbols not carrying valid data according to the number of transmission channels included in the second transmission channel set; The processing module is further specifically configured to: generate a first type of data stream by using the N symbols carrying valid data, and generate a second type of data stream by using the M - N symbols not carrying valid data.

19. A communication device, characterized in that the communication device includes: a detection module, configured to: detect the working state of each of the M transmission channels included in the transmission medium, and use the transmission channels with normal working states as a first set of transmission channels and the transmission channels with abnormal working states as a second set of transmission channels; where the first set of transmission channels includes N transmission channels, the second set of transmission channels includes M - N transmission channels, and both M and N are positive integers, M ≥ 2, N ≥ 1; a transceiver module, configured to: receive the first type of data stream sent by the N transmission channels, and receive the second type of data stream sent by the M - N transmission channels; where the first type of data stream carries valid data, and the second type of data stream does not carry valid data; a processing module, configured to: parse the first type of data stream to obtain the valid data carried by the first type of data stream.

20. The communication device according to claim 19, characterized in that when the number of transmission channels with abnormal working states is less than the failure transmission channel threshold number, the processing module is specifically configured to: obtain a second rate according to the M, the N, and a first rate; where the first rate is used to indicate: when the working states of all the transmission channels in the transmission medium are normal, the maximum amount of data that the transmission medium supports for transmission per unit time; the second rate is used to indicate: when the working states of M - N transmission channels in the transmission medium are abnormal, the maximum amount of data that the transmission medium supports for transmission per unit time; the transceiver module is specifically configured to: receive the first type of data stream sent by the N transmission channels at the second rate, and receive the second type of data stream sent by the M - N transmission channels.

21. The communication device according to claim 20, characterized in that the processing module is specifically configured to: calculate the ratio of the M to the N to obtain a first value; the processing module is further specifically configured to: obtain the second rate according to the product of the first rate multiplied by the first value.

22. The communication device according to claim 19, characterized in that when the number of transmission channels with abnormal working states is greater than or equal to the failure transmission channel threshold number, the processing module is specifically configured to: obtain a second quantity according to the M, the N, and a first quantity; where the first quantity is used to indicate: when the working states of all the transmission channels included in the transmission medium are normal, the number of data streams received by the communication device per unit time; the second quantity is used to indicate: when the working states of M - N transmission channels included in the transmission medium are abnormal, the number of data streams received by the communication device per unit time; The transceiver module is specifically configured to: receive the first type of data stream sent by the N transmission channels using the second quantity, and receive the second type of data stream sent by the M - N transmission channels using the second quantity.

23. The communication device according to claim 22, wherein, the processing module is specifically configured to: calculate the ratio of the N and the M to obtain a second value The processing module is further specifically configured to: obtain the second quantity according to the second value and the first quantity.

24. A communication device, wherein, comprises: a processor and an interface circuit, the interface circuit is configured to receive a signal from a device other than the communication device and transmit it to the processor, or send a signal from the processor to a device other than the communication device; The processor is configured to implement the method according to any one of claims 1 to 11 through logic circuits or by executing code instructions.

25. A communication system, wherein, the communication system comprises: at least two communication devices according to claim 24; One of the communication devices is connected to another communication device through a transmission medium, the one communication device is configured to implement the method according to any one of claims 1 to 6, and the other communication device is configured to implement the method according to any one of claims 7 to 11.

26. A computer-readable storage medium, wherein, comprises: computer software instructions; when the computer software instructions run in a communication device, the communication device executes the method according to any one of claims 1 - 11.