Data processing method and communication device
By inserting and removing alignment identifiers (AM groups) in communication devices to adapt to changes in the number of logical channels, the locking and alignment problem of receiver devices caused by changes in the number of logical channels is solved, thereby improving link utilization and reducing power consumption.
Patent Information
- Application Number
- CN201910482141.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-04
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-06-04
AI Technical Summary
In Ethernet communication, when the number of logical channels or physical channels changes, existing technologies struggle to guarantee that the receiving device will lock onto and align the logical channels.
By inserting and removing alignment identifiers (AM groups) in the communication device to adapt to changes in the number of logical channels, the receiving device can be ensured to correctly lock and align logical channels.
When the number of logical channels changes, the logical channels of the receiving device are kept locked and aligned to improve link utilization and reduce power consumption.
Smart Images

Figure CN112039628B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and more specifically, to a data processing method and a communication device. Background Art
[0002] In Ethernet communication, the physical coding sub-layer (PCS) distributes serial data streams to multiple channels. These channels are generally distributed inside the implementation unit and are generally called logical channels (or virtual channels). Logical channels and physical channels have a mapping relationship, and a physical channel can carry data from one or more logical channels. Since PCS distributes serial data streams to multiple logical channels, in order to ensure that the receiving device can lock and align the logical channels, the sending device will periodically insert an alignment maker group (AM group) into the serial data stream.
[0003] The AM group in the IEEE 802.3 specification is constructed based on the condition that all logical channels and physical channels are working normally, that is, it is designed and specified at full rate. However, when the number of logical channels or physical channels in the communication equipment changes, if the transmitter still uses the AM group in the standard, it will not be guaranteed that the receiver can normally lock and align the logical channels. Summary of the invention
[0004] The present application provides a data processing method and a communication device, which can ensure that the communication device at the receiving end locks and aligns the logical channels when the number of logical channels or physical channels in the communication device changes.
[0005] In a first aspect, the present application provides a data processing method, the method comprising: a first communication device inserts a first alignment identifier AM group into first data to be sent to obtain first target data, the first AM group corresponds to M sending logical channels, M is a positive integer; the first communication device sends the first target data to a second communication device on the M sending logical channels; when the number of sending logical channels in a working state of the first communication device changes from M to N, the first communication device inserts a second AM group into the second data to be sent to obtain second target data, the second AM group corresponds to N sending logical channels, N is a positive integer, and N is different from M; the first communication device sends the second target data to the second communication device on the N sending logical channels.
[0006] Optionally, the first AM group includes M AMs of M transmission logical channels, and the second AM includes N AMs of N transmission logical channels. As an example, M=4, the 4 transmission logical channels are channels 0 to 3, and N=6, the 6 transmission logical channels are channels 0 to 5, then the first AM group includes AMs of channels 0 to 3, and the second AM group includes AMs of channels 0 to 5.
[0007] In the above technical solution, the AM group inserted by the first communication device in the data to be sent corresponds to the sending logical channel in a working state. In this way, when the number of sending logical channels in a working state changes, for example, from M to N, the first communication device can insert the AM group corresponding to the sending logical channel currently in a working state into the data to be sent, so that the AM group adapts to the change in the number of sending logical channels, ensuring that the second communication device locks and aligns the logical channels.
[0008] In one possible implementation, the first communication device inserts a first AM group into first data to be sent, including: the first communication device inserts the first AM group into the first data to be sent according to a first insertion cycle; the first communication device inserts a second AM group into the second data to be sent, including: the first communication device inserts the second AM group into the second data to be sent according to a second insertion cycle.
[0009] Optionally, the first insertion period may be the number of FEC code words spaced between two adjacent first AM groups, the number of transcoded code blocks spaced between two adjacent first AM groups, or the number of bits spaced between two adjacent first AM groups, etc. Similarly, the second insertion period may be the number of FEC code words spaced between two adjacent second AM groups, the number of transcoded code blocks spaced between two adjacent second AM groups, or the number of bits spaced between two adjacent second AM groups, etc.
[0010] In actual data processing, AM must appear at the beginning of an FEC codeword, which requires that the insertion of the AM group has a certain period. After the number of the sending logical channels in the working state of the first communication device changes, if the insertion period does not change, it will not be possible to ensure that AM always appears at the beginning of an FEC codeword. In the above technical solution, the first insertion period is used for the first AM group and the second insertion period is used for the second AM, thereby solving the above problem.
[0011] In a possible implementation manner, the first insertion period is different from the second insertion period.
[0012] In a possible implementation, the first AM group includes a first identification part, the first identification part includes M AMs, and the M AMs correspond one-to-one to the M sending logical channels; the second AM group includes a second identification part, the second identification part includes N AMs, and the N AMs correspond one-to-one to the N sending logical channels.
[0013] In the above technical solution, the first AM group includes AMs corresponding to M sending logical channels, and the second AM group includes AMs corresponding to N sending logical channels. In this way, after the data distribution process, each sending logical channel in a working state can have a corresponding AM, thereby ensuring that the second communication device can complete the locking and alignment of the logical channels.
[0014] In a possible implementation, the order of the coding symbols of the first identification part is different from the order of the coding symbols of the second identification part, and the coding symbols are symbols under the error correction coding method adopted by the first communication device.
[0015] In a possible implementation, the AMs of the M sending logical channels are AM_i0, AM_i1, ..., AM_i1 in ascending order of channel numbers. M-1 ;
[0016] The p*M+1th to (p+2)*Mth coded symbols of the first identification part are:
[0017] {AM_i0_p, AM_i1_p,…, AM_i M-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i M-1 _p+1}
[0018] Alternatively, the 2p*M+1th to (2p+2)*Mth coded symbols of the first identification part are:
[0019] {AM_i0_2p, AM_i1_2p,…,AM_i M-2 _2p,AM_i M-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i M-1 _2p+1,AM_i M-2 _2p+1}
[0020] Alternatively, the 3p*M+1th to (3p+3)*Mth coded symbols of the first identification part are:
[0021] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i M-3 _3p,AM_iM-2 _3p,AM_i M-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i M-2 _3p+1,AM_i M-1 _3p+1,AM_i M-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i M-1 _3p+2,AM_i M-3 _3p+2,AM_i M-2 _3p+2}
[0022] Alternatively, the 4p*M+1th to (4p+4)*Mth coded symbols of the first identification part are:
[0023] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i M-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i M-1 _4p+3,AM_i M-4 _4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3}
[0024] Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
[0025] In a possible implementation, the AMs of the N sending logical channels are AM_i0, AM_i1, ..., AM_i1 in ascending order of channel numbers. N-1 ;
[0026] The p*N+1th to (p+2)*Nth coded symbols of the second identification part are:
[0027] {AM_i0_p, AM_i1_p,…, AM_i N-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i N-1 _p+1}
[0028] Alternatively, the 2p*N+1th to (2p+2)*Nth coded symbols of the second identification part are:
[0029] {AM_i0_2p, AM_i1_2p,…,AM_i N-2 _2p,AM_i N-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i N-1 _2p+1,AM_i N-2 _2p+1}
[0030] Alternatively, the 3p*N+1th to (3p+3)*Nth coded symbols of the second identification part are:
[0031] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i N-3 _3p,AM_i N-2 _3p,AM_i N-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i N-2 _3p+1,AM_i N-1 _3p+1,AM_i N-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i N-1 _3p+2,AM_i N-3 _3p+2,AM_i N-2 _3p+2}
[0032] Alternatively, the 4p*N+1th to (4p+4)*Nth coded symbols of the second identification part are:
[0033] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i N-4_4p,AM_i N-3 _4p,AM_i N-2 _4p,AM_i N-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i N-3 _4p+1,AM_i N-2 _4p+1,AM_i N-1 _4p+1,AM_i N-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i N-2 _4p+2,AM_i N-1 _4p+2,AM_i N-4 _4p+2,AM_i N-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i N-1 _4p+3,AM_i N-4 _4p+3,AM_i N-3 _4p+3,AM_i N-2 _4p+3}
[0034] Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
[0035] In one possible implementation, the first AM group also includes a first filling part, and the sum of the number of bits of the first filling part and the number of bits of the first identification part is an integer multiple of the size of a standard code block, and the standard code block is a code block under the transcoding method adopted by the first communication device; the second AM group also includes a second filling part, and the sum of the number of bits of the second filling part and the number of bits of the second identification part is an integer multiple of the size of the standard code block; wherein the number of bits of the first filling part is different from the number of bits of the second filling part.
[0036] In a possible implementation, M is greater than N, and the method further includes: when a first target condition is met, the first communication device controls the first sending logical channel among the M sending logical channels to exit a working state, and the first target condition is at least one of the following conditions: failure of the first sending logical channel; failure of a physical channel corresponding to the first sending logical channel; failure of a sending logical channel corresponding to the same physical channel as the first sending logical channel; failure of a first receiving logical channel corresponding to the first sending logical channel in the second communication device; failure of a physical channel corresponding to the first receiving logical channel in the second communication device; failure of a receiving logical channel corresponding to the same physical channel as the first receiving logical channel in the second communication device; the data flow of the M sending logical channels is lower than a preset flow value; and the first communication device receives a first instruction, and the first instruction is used to instruct the first communication device to control the first sending logical channel to exit a working state.
[0037] When M is greater than N, it means that some sending logical channels have exited the working state. The above text gives several situations that cause the sending logical channel to exit the working state, including passive exit situations (for example, the sending logical channel fails) and active exit situations (for example, when the data traffic is small). For the passive exit situation, compared with the prior art where a logical channel or physical channel fails and the entire link is abandoned, the above technical solution can improve the utilization rate of the link. For the active exit situation, some sending logical channels can be closed according to the actual situation to reduce power consumption.
[0038] In one possible implementation, M is less than N, and the method further includes: when a second target condition is met, the first communication device controls a second sending logical channel other than the M sending logical channels to resume working status, and the second target condition is at least one of the following conditions: elimination of a fault in the second sending logical channel; elimination of a fault in the physical channel corresponding to the second sending logical channel; elimination of a fault in a sending logical channel corresponding to the same physical channel as the second sending logical channel; elimination of a fault in a second receiving logical channel corresponding to the second sending logical channel in the second communication device; elimination of a fault in the physical channel corresponding to the second receiving logical channel in the second communication device; elimination of a fault in a receiving logical channel corresponding to the same physical channel as the second receiving logical channel in the second communication device; and the data flow of the M sending logical channels is higher than a preset flow value; the first communication device receives a second instruction, and the second instruction is used to instruct the first communication device to control the second sending logical channel to resume working status.
[0039] When M is less than N, it means that some of the sending logical channels have resumed working status. When the sending logical channels resume working status under corresponding conditions, the link utilization rate can be improved or the fast transmission of data can be ensured.
[0040] In a second aspect, the present application provides a data processing method, the method comprising: a second communication device receives first target data sent by a first communication device on M receiving logical channels, the first target data including a first AM group, the first AM group corresponding to the M receiving logical channels, M being a positive integer; the second communication device removes the first AM group from the first target data; when the number of receiving logical channels in a working state of the second communication device changes from M to N, the second communication device receives second target data sent by the first communication device on N receiving logical channels, the second target data including a second AM group, the second AM group corresponding to the N receiving logical channels, N being a positive integer, and N being different from M; the second communication device removes the second AM group from the second target data.
[0041] Optionally, the first AM group includes M AMs of M receiving logical channels, and the second AM includes N AMs of N receiving logical channels. As an example, M=4, the 4 receiving logical channels are channels 0 to 3, and N=6, the 6 receiving logical channels are channels 0 to 5, then the first AM group includes AMs of channels 0 to 3, and the second AM group includes AMs of channels 0 to 5.
[0042] In one possible implementation, the second communication device moves the first AM group out of the first target data, including: the second communication device moves the first AM group out of the first target data according to a first removal cycle; the second communication device moves the second AM group out of the second target data, including: the second communication device moves the second AM group out of the second target data according to a second removal cycle.
[0043] Optionally, the first removal period may be the number of FEC codewords between two adjacent first AM groups, the number of transcoded code blocks between two adjacent first AM groups, or the number of bits between two adjacent first AM groups. Similarly, the second removal period may be the number of FEC codewords between two adjacent second AM groups, the number of transcoded code blocks between two adjacent second AM groups, or the number of bits between two adjacent second AM groups.
[0044] The period of the second communication device removing the AM group corresponds to the period of the first communication device inserting the AM group. In actual data processing, it is required that AM must appear at the beginning of an FEC codeword, which requires that the insertion of the AM group has a certain period. After the number of sending logical channels in the working state of the first communication device changes, the insertion period of the second AM group by the first communication device may be different from the insertion period of the first AM group. In the second communication device, if the second AM group is still removed with the first removal period, the obtained data may be incorrect. In the above technical solution, the first removal period is used for the first AM group and the second removal period is used for the second AM, thereby solving the above problem.
[0045] In a possible implementation manner, the first removal period is different from the second removal period.
[0046] In one possible implementation, the first AM group includes a first identification part, the first identification part includes M AMs, and the M AMs correspond one-to-one to the M receiving logical channels; the second AM group includes a second identification part, the second identification part includes N AMs, and the N AMs correspond one-to-one to the N receiving logical channels.
[0047] In a possible implementation, the order of the coding symbols of the first identification part is different from the order of the coding symbols of the second identification part, and the coding symbols are symbols under the error correction coding method adopted by the second communication device.
[0048] In a possible implementation, the AMs of the M receiving logical channels are AM_i0, AM_i1, ..., AM_i2 in ascending order of channel numbers. M-1 ;
[0049] The p*M+1th to (p+2)*Mth coded symbols of the first identification part are:
[0050] {AM_i0_p, AM_i1_p,…, AM_i M-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i M-1 _p+1}
[0051] Alternatively, the 2p*M+1th to (2p+2)*Mth coded symbols of the first identification part are:
[0052] {AM_i0_2p, AM_i1_2p,…,AM_i M-2 _2p,AM_i M-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i M-1_2p+1,AM_i M-2 _2p+1}
[0053] Alternatively, the 3p*M+1th to (3p+3)*Mth coded symbols of the first identification part are:
[0054] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i M-3 _3p,AM_i M-2 _3p,AM_i M-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i M-2 _3p+1,AM_i M-1 _3p+1,AM_i M-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i M-1 _3p+2,AM_i M-3 _3p+2,AM_i M-2 _3p+2}
[0055] Alternatively, the 4p*M+1th to (4p+4)*Mth coded symbols of the first identification part are:
[0056] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i M-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i M-1 _4p+3,AM_i M-4_4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3}
[0057] Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
[0058] In a possible implementation, the AMs of the N receiving logical channels are AM_i0, AM_i1, ..., AM_i1 in ascending order of channel numbers. N-1 ;
[0059] The p*N+1th to (p+2)*Nth coded symbols of the second identification part are:
[0060] {AM_i0_p, AM_i1_p,…, AM_i N-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i N-1 _p+1}
[0061] Alternatively, the 2p*N+1th to (2p+2)*Nth coded symbols of the second identification part are:
[0062] {AM_i0_2p, AM_i1_2p,…,AM_i N-2 _2p,AM_i N-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i N-1 _2p+1,AM_i N-2 _2p+1}
[0063] Alternatively, the 3p*N+1th to (3p+3)*Nth coded symbols of the second identification part are:
[0064] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i N-3 _3p,AM_i N-2 _3p,AM_i N-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i N-2 _3p+1,AM_i N-1 _3p+1,AM_i N-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i N-1 _3p+2,AM_i N-3 _3p+2,AM_i N-2_3p+2}
[0065] Alternatively, the 4p*N+1th to (4p+4)*Nth coded symbols of the second identification part are:
[0066] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i N-4 _4p,AM_i N-3 _4p,AM_i N-2 _4p,AM_i N-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i N-3 _4p+1,AM_i N-2 _4p+1,AM_i N-1 _4p+1,AM_i N-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i N-2 _4p+2,AM_i N-1 _4p+2,AM_i N-4 _4p+2,AM_i N-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i N-1 _4p+3,AM_i N-4 _4p+3,AM_i N-3 _4p+3,AM_i N-2 _4p+3}
[0067] Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
[0068] In one possible implementation, the first AM group also includes a first filling part, and the sum of the number of bits of the first filling part and the number of bits of the first identification part is an integer multiple of the size of a standard code block, and the standard code block is a code block under the transcoding method adopted by the first communication device; the second AM group also includes a second filling part, and the sum of the number of bits of the second filling part and the number of bits of the second identification part is an integer multiple of the size of the standard code block; wherein the number of bits of the first filling part is different from the number of bits of the second filling part.
[0069] In a possible implementation, M is greater than N, and the method further includes: when a third target condition is met, the second communication device controls the first receiving logical channel among the M receiving logical channels to exit a working state, and the third target condition is at least one of the following conditions: failure of the first receiving logical channel; failure of a physical channel corresponding to the first receiving logical channel; failure of a receiving logical channel corresponding to the same physical channel as the first receiving logical channel; failure of a first sending logical channel corresponding to the first receiving logical channel in the first communication device; failure of a physical channel corresponding to the first sending logical channel in the first communication device; failure of a sending logical channel corresponding to the same physical channel as the first sending logical channel in the first communication device; the data flow of the M receiving logical channels is lower than a preset flow value; and the second communication device receives a third instruction, and the third instruction is used to instruct the second communication device to control the first receiving logical channel to exit a working state.
[0070] When M is greater than N, it means that some receiving logical channels have exited the working state. The above text gives several situations that cause the receiving logical channel to exit the working state, including passive exit situations (for example, the receiving logical channel fails) and active exit situations (for example, when the data traffic is small). For the passive exit situation, compared with the prior art where a logical channel or physical channel fails and the entire link is abandoned, the above technical solution can improve the utilization rate of the link. For the active exit situation, some receiving logical channels can be closed according to the actual situation to reduce power consumption.
[0071] In one possible implementation, M is less than N, and the method further includes: when a fourth target condition is met, the second communication device controls a second receiving logical channel other than the M receiving logical channels to resume working status, and the fourth target condition is at least one of the following conditions: elimination of a fault in the second receiving logical channel; elimination of a fault in the physical channel corresponding to the second receiving logical channel; elimination of a fault in the receiving logical channel corresponding to the same physical channel as the second receiving logical channel; elimination of a fault in the second sending logical channel corresponding to the second receiving logical channel in the first communication device; elimination of a fault in the physical channel corresponding to the second sending logical channel in the first communication device; elimination of a fault in the sending logical channel corresponding to the same physical channel as the second sending logical channel in the first communication device; and the data flow of the M receiving logical channels is higher than a preset flow value; the second communication device receives a fourth instruction, and the fourth instruction is used to instruct the second communication device to control the second receiving logical channel to resume working status.
[0072] When M is less than N, it means that some receiving logical channels have resumed working state. When the receiving logical channels resume working state under corresponding conditions, the link utilization rate can be improved or the fast transmission of data can be ensured.
[0073] In a third aspect, the present application provides a data processing method, the method comprising: a first communication device inserts a first alignment identifier AM group into first data to be sent to obtain first target data, the first AM group corresponds to M sending logical channels, M is a positive integer; the first communication device sends the first target data to a second communication device on the M sending logical channels; when the data distribution method adopted by the first communication device changes, the first communication device inserts a second AM group into the second data to be sent to obtain second target data, the second AM group corresponds to N sending logical channels, the second AM group is different from the first AM group, N is a positive integer. The first communication device sends the second target data to the second communication device on the N sending logical channels.
[0074] In one possible implementation, M is equal to N.
[0075] In a possible implementation, the AMs of the M sending logical channels are AM_i0, AM_i1, ..., AM_i1 in ascending order of channel numbers. M-1 ;
[0076] The p*M+1th to (p+2)*Mth coded symbols of the first identification part are:
[0077] {AM_i0_p, AM_i1_p,…, AM_i M-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i M-1 _p+1}
[0078] Alternatively, the 2p*M+1th to (2p+2)*Mth coded symbols of the first identification part are:
[0079] {AM_i0_2p, AM_i1_2p,…,AM_i M-2 _2p,AM_i M-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i M-1 _2p+1,AM_i M-2 _2p+1}
[0080] Alternatively, the 3p*M+1th to (3p+3)*Mth coded symbols of the first identification part are:
[0081] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i M-3 _3p,AM_i M-2 _3p,AM_i M-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i M-2 _3p+1,AM_i M-1 _3p+1,AM_i M-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i M-1 _3p+2,AM_i M-3 _3p+2,AM_i M-2 _3p+2}
[0082] Alternatively, the 4p*M+1th to (4p+4)*Mth coded symbols of the first identification part are:
[0083] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i M-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i M-1 _4p+3,AM_i M-4 _4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3}
[0084] Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, Q is the number of coding symbols included in an AM, and the coding symbol is the size of a symbol under the error correction coding method adopted by the first communication device.
[0085] In a possible implementation, the AMs of the N sending logical channels are AM_i0, AM_i1, ..., AM_i1 in ascending order of channel numbers. N-1 ;
[0086] The p*N+1th to (p+2)*Nth coded symbols of the second identification part are:
[0087] {AM_i0_p, AM_i1_p,…, AM_i N-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i N-1 _p+1}
[0088] Alternatively, the 2p*N+1th to (2p+2)*Nth coded symbols of the second identification part are:
[0089] {AM_i0_2p, AM_i1_2p,…,AM_i N-2 _2p,AM_i N-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i N-1 _2p+1,AM_i N-2 _2p+1}
[0090] Alternatively, the 3p*N+1th to (3p+3)*Nth coded symbols of the second identification part are:
[0091] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i N-3 _3p,AM_i N-2 _3p,AM_i N-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i N-2 _3p+1,AM_i N-1 _3p+1,AM_i N-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i N-1 _3p+2,AM_i N-3 _3p+2,AM_i N-2 _3p+2}
[0092] Alternatively, the 4p*N+1th to (4p+4)*Nth coded symbols of the second identification part are:
[0093] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i N-4 _4p,AM_i N-3 _4p,AM_i N-2 _4p,AM_i N-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i N-3 _4p+1,AM_i N-2 _4p+1,AM_i N-1 _4p+1,AM_i N-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i N-2 _4p+2,AM_i N-1 _4p+2,AM_i N-4 _4p+2,AM_i N-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i N-1 _4p+3,AM_i N-4 _4p+3,AM_i N-3 _4p+3,AM_i N-2 _4p+3}
[0094] Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, Q is the number of coding symbols included in an AM, and the coding symbol is the size of a symbol under the error correction coding method adopted by the first communication device.
[0095] In a fourth aspect, the present application provides a data processing method, the method comprising: a second communication device receives first target data sent by a first communication device on M receiving logical channels, the first target data including a first AM group, the first AM group corresponding to the M receiving logical channels, and M being a positive integer; the second communication device removes the first AM group from the first target data; when the number of receiving logical channels in a working state of the second communication device changes from M to N, the second communication device receives second target data sent by the first communication device on N receiving logical channels, the second target data including a second AM group, the second AM group corresponding to the N receiving logical channels, the second AM group being different from the first AM group, and N being a positive integer; the second communication device removes the second AM group from the second target data.
[0096] In one possible implementation, M is equal to N.
[0097] In a possible implementation, the AMs of the M sending logical channels are AM_i0, AM_i1, ..., AM_i1 in ascending order of channel numbers. M-1 ;
[0098] The p*M+1th to (p+2)*Mth coded symbols of the first identification part are:
[0099] {AM_i0_p, AM_i1_p,…, AM_i M-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i M-1 _p+1}
[0100] Alternatively, the 2p*M+1th to (2p+2)*Mth coded symbols of the first identification part are:
[0101] {AM_i0_2p, AM_i1_2p,…,AM_i M-2 _2p,AM_i M-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i M-1 _2p+1,AM_i M-2 _2p+1}
[0102] Alternatively, the 3p*M+1th to (3p+3)*Mth coded symbols of the first identification part are:
[0103] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i M-3 _3p,AM_i M-2 _3p,AM_i M-1_3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i M-2 _3p+1,AM_i M-1 _3p+1,AM_i M-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i M-1 _3p+2,AM_i M-3 _3p+2,AM_i M-2 _3p+2}
[0104] Alternatively, the 4p*M+1th to (4p+4)*Mth coded symbols of the first identification part are:
[0105] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i M-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i M-1 _4p+3,AM_i M-4 _4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3}
[0106] Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, Q is the number of coding symbols included in an AM, and the coding symbol is the size of a symbol under the error correction coding method adopted by the first communication device.
[0107] In a possible implementation, the AMs of the N sending logical channels are AM_i0, AM_i1, ..., AM_i1 in ascending order of channel numbers. N-1 ;
[0108] The p*N+1th to (p+2)*Nth coded symbols of the second identification part are:
[0109] {AM_i0_p, AM_i1_p,…, AM_i N-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i N-1 _p+1}
[0110] Alternatively, the 2p*N+1th to (2p+2)*Nth coded symbols of the second identification part are:
[0111] {AM_i0_2p, AM_i1_2p,…,AM_i N-2 _2p,AM_i N-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i N-1 _2p+1,AM_i N-2 _2p+1}
[0112] Alternatively, the 3p*N+1th to (3p+3)*Nth coded symbols of the second identification part are:
[0113] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i N-3 _3p,AM_i N-2 _3p,AM_i N-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i N-2 _3p+1,AM_i N-1 _3p+1,AM_i N-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i N-1 _3p+2,AM_i N-3 _3p+2,AM_i N-2 _3p+2}
[0114] Alternatively, the 4p*N+1th to (4p+4)*Nth coded symbols of the second identification part are:
[0115] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i N-4_4p,AM_i N-3 _4p,AM_i N-2 _4p,AM_i N-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i N-3 _4p+1,AM_i N-2 _4p+1,AM_i N-1 _4p+1,AM_i N-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i N-2 _4p+2,AM_i N-1 _4p+2,AM_i N-4 _4p+2,AM_i N-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i N-1 _4p+3,AM_i N-4 _4p+3,AM_i N-3 _4p+3,AM_i N-2 _4p+3}
[0116] Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, Q is the number of coding symbols included in an AM, and the coding symbol is the size of a symbol under the error correction coding method adopted by the first communication device.
[0117] In a fifth aspect, the present application provides a communication device, comprising a module for executing the first aspect or any one of the implementations of the first aspect.
[0118] In a sixth aspect, the present application provides a communication device, comprising a module for executing the second aspect or any one of the implementations of the second aspect.
[0119] In a seventh aspect, the present application provides a communication device, comprising a module for executing the third aspect or any one of the implementation methods of the third aspect.
[0120] In an eighth aspect, the present application provides a communication device, comprising a module for executing the fourth aspect or any one of the implementation methods of the fourth aspect.
[0121] In a ninth aspect, the present application provides a chip, which is connected to a memory and is used to read and execute a software program stored in the memory to implement the method described in the first aspect or any one of the implementation methods of the first aspect.
[0122] In a tenth aspect, the present application provides a chip, which is connected to a memory and is used to read and execute a software program stored in the memory to implement the method described in the first aspect or any one of the implementation methods of the first aspect.
[0123] In the eleventh aspect, the present application provides a chip, which is connected to a memory and is used to read and execute a software program stored in the memory to implement the method described in the first aspect or any one of the implementation methods of the first aspect.
[0124] In a twelfth aspect, the present application provides a chip, which is connected to a memory and is used to read and execute a software program stored in the memory to implement the method described in the first aspect or any one of the implementation methods of the first aspect.
[0125] In a thirteenth aspect, the present application provides a communication device, including a transceiver, a processor, and a memory, for executing the method described in the first aspect or any one of the implementations of the first aspect.
[0126] In a fourteenth aspect, the present application provides a communication device, including a transceiver, a processor, and a memory, for executing the method described in the second aspect or any one of the implementation methods of the second aspect.
[0127] In a fifteenth aspect, the present application provides a communication device, including a transceiver, a processor, and a memory, for executing the method described in the third aspect or any one of the implementation methods of the third aspect.
[0128] In a sixteenth aspect, the present application provides a communication device, including a transceiver, a processor, and a memory, for executing the method described in the fourth aspect or any one of the implementation methods of the fourth aspect.
[0129] In the seventeenth aspect, the present application provides a computer-readable storage medium, including instructions, which, when executed on a communication device, enables the communication device to execute the method described in the first aspect or any one of the implementations of the first aspect.
[0130] In an eighteenth aspect, the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a communication device, enables the communication device to execute the method described in the second aspect or any one of the implementations of the second aspect.
[0131] In the nineteenth aspect, the present application provides a computer-readable storage medium, including instructions, which, when executed on a communication device, enables the communication device to execute the method described in the third aspect or any one of the implementations of the third aspect.
[0132] In the twentieth aspect, the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a communication device, enables the communication device to execute the method described in the fourth aspect or any one of the implementations of the fourth aspect.
[0133] In the twenty-first aspect, the present application provides a computer program product, which, when executed on a communication device, enables the communication device to execute the method described in the first aspect or any one of the implementations of the first aspect.
[0134] In aspect 22, the present application provides a computer program product which, when executed on a communication device, enables the communication device to execute the method described in aspect 2 or any one of the implementations of aspect 2.
[0135] In the twenty-third aspect, the present application provides a computer program product, which, when executed on a communication device, enables the communication device to execute the method described in the third aspect or any one of the implementations of the third aspect.
[0136] In the twenty-fourth aspect, the present application provides a computer program product, which, when executed on a communication device, enables the communication device to execute the method described in the fourth aspect or any one of the implementations of the fourth aspect.
[0137] In a twenty-fifth aspect, the present application provides a communication system, wherein the communication system includes the communication device provided in the fifth aspect or the seventh aspect; or
[0138] The communication system includes the communication device provided by the sixth aspect or the eighth aspect; or
[0139] The communication system includes the communication device provided in the thirteenth and fifteenth aspects above; or
[0140] The communication system includes the communication equipment provided by the above-mentioned fourteenth and sixteenth aspects. BRIEF DESCRIPTION OF THE DRAWINGS
[0141] Figure 1 It is a schematic diagram of the system architecture provided in an embodiment of the present application.
[0142] Figure 2 It is the AM format for 200G / 400G Ethernet.
[0143] Figure 3 It is the AM format for 40G / 100G Ethernet.
[0144] Figure 4 It is a schematic diagram of the data processing process of the first communication device and the second communication device in an embodiment of the present application.
[0145] Figure 5It is a schematic diagram of data distribution by a first communication device under multiple channels.
[0146] Figure 6 This is another schematic diagram of the first communication device distributing data under multiple channels.
[0147] Figure 7 It is a schematic diagram of a second communication device receiving data under multiple channels.
[0148] Figure 8 It is a schematic flow chart of the data processing method of an embodiment of the present application.
[0149] Fig. 9 It is a functional circuit diagram for calculating the insertion / removal cycle.
[0150] Fig.10 is another functional circuit diagram for calculating the insertion / removal cycle.
[0151] Fig.11 It is a schematic diagram of code block distribution of the first communication device.
[0152] Fig.12 It is a schematic diagram of adjusting the coding symbols within the GColumn of the AM group in an embodiment of the present application.
[0153] Fig.13 This is a schematic diagram of a failure in two physical channels of 200G (4*50G).
[0154] Fig.14 It is the AM group provided in the embodiments of the present application.
[0155] Fig.15 It is another AM group provided in the embodiment of the present application.
[0156] Fig.16 It is another AM group provided in the embodiment of the present application.
[0157] Fig.17 This is a schematic diagram showing that one of the two faulty physical channels of 200G (4*50G) has disappeared.
[0158] Fig.18 It is another AM group provided in the embodiment of the present application.
[0159] Fig.19 This is a schematic diagram of a failure in two physical channels of 400G (8*50G).
[0160] Fig. 20 It is another AM group provided in the embodiment of the present application.
[0161] Fig.21 It is another AM group provided in the embodiment of the present application.
[0162] Fig. 22 This is a schematic diagram of 200G (4*50G) using 4-channel FEC codewords for data distribution.
[0163] Fig.23 It is another AM group provided in the embodiment of the present application.
[0164] Fig.24 It is another AM group provided in the embodiment of the present application.
[0165] Fig.25 It is a schematic diagram of 100G Ethernet technology data distribution.
[0166] Fig.26 It is another AM group provided in the embodiment of the present application.
[0167] Fig. 27 It is another AM group provided in the embodiment of the present application.
[0168] Fig.28 It is a schematic structural diagram of a communication device according to an embodiment of the present application.
[0169] Fig.29 It is a schematic structural diagram of a communication device according to another embodiment of the present application.
[0170] Fig.30 It is a schematic structural diagram of a communication device provided in another embodiment of the present application.
[0171] Fig.31 It is a schematic structural diagram of a communication device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0172] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0173] IEEE 802.3 specifies 40G / 50G / 100G / 200G / 400G multi-channel architecture, where data can be transmitted on multiple physical channels. Figure 1In the system architecture diagram shown, the first communication device and the second communication device are connected through several physical channels, and multiple physical channels are transmitted in parallel, which can improve the speed of Ethernet. For example, the physical channel can be a high-speed bus, such as a copper wire, so that the first communication device and the second communication device can be electrically interconnected through the copper wire. For example, for 200G Ethernet technology, the first communication device and the second communication device can be connected through 8 physical channels, 4 physical channels, 2 physical channels, or 1 physical channel; for another example, for 400G Ethernet technology, the first communication device and the second communication device can be connected through 16 physical channels, 8 physical channels, 4 physical channels, 2 physical channels, or 1 physical channel. For another example, for 100G Ethernet technology, the first communication device and the second communication device can be connected through 4 physical channels, 2 physical channels, or 1 physical channel.
[0174] It can be understood that the first communication device and the second communication device can be chips or units or physical devices with transceiver functions. If the first communication device sends data, the second communication device receives the data; if the second communication device sends data, the first communication device receives the data. The sending physical channel of the first communication device corresponds one-to-one with the receiving physical channel of the second communication device; the sending physical channel of the second communication device corresponds one-to-one with the receiving physical channel of the first communication device. This application is described by taking the first communication device as a transmitting end device and the second communication device as a receiving end device as an example.
[0175] The physical channels and logical channels in the first communication device and the second communication device have a mapping relationship, for example, one physical channel corresponds to one logical channel, or one physical channel corresponds to two logical channels, or one physical channel corresponds to four logical channels, etc. That is, one physical channel can carry data of one or more logical channels.
[0176] In addition, IEEE 802.3 defines different numbers of logical channels for Ethernet technologies of different speeds. For example, the number of logical channels of 100G Ethernet technology is 4. For another example, the number of logical channels of 200G Ethernet technology is 8. For another example, the number of logical channels of 400G Ethernet technology is 16.
[0177] It should be noted that the logical channel mentioned here can be a PCS channel or a forward error correction (FEC) channel. For example, for a 200G / 400G Ethernet interface, the logical channel can be called a PCS channel or a FEC channel. For another example, for a 100G Ethernet interface, the logical channel can be called a FEC channel. Since PCS channels and FEC channels are usually distributed inside the implementation unit, and for the purpose of distinguishing them from physical medium attachment (PMA) channels, they are generally referred to as logical channels. In this application, they are also referred to as logical channels.
[0178] When the first communication device and the second communication device transmit data through multiple logical channels, in order to ensure that the second communication device can lock and align the logical channels, IEEE 802.3 also specifies an alignment marker (AM) to identify each logical channel.
[0179] AM has a specific format. Taking 200G / 400G Ethernet technology as an example, the AM format is as follows: Figure 2 As shown, CM0-CM5 in the common marker (CM) is the common marker of multiple logical channels, UM0-UM5 in the unique marker (UM) is used to uniquely identify a logical channel, and UP0, UP1 and UP2 in the unique padding (UP) are padding bits. In other words, the CM0, CM1, CM2, CM3, CM4 and CM5 in the AM of each logical channel are the same, and the UM0, UM1, UM2, UM3, UM4 and UM5 and UP0, UP1 and UP2 of any two logical channels are different. Taking 100G / 40G Ethernet technology as an example, the format of AM is as follows: Figure 3 As shown, M in M0, M1, M2, M4, M5, and M6 represents a marker, BIP in BIP3 and BIP7 represents a bit interleave parity, and BIP3 or BIP7 may also be a padding field.
[0180] The forms of AM of Ethernet technologies of other speeds are similar to those of 200G and 400G, or may vary from those of 200G and 400G. To avoid redundancy, examples are not given here one by one.
[0181] AM corresponds to a logical channel one by one. Taking 200G Ethernet technology as an example, both the first communication device and the second communication device have 8 logical channels, and the AM of each logical channel is shown in Table 1. In Table 1, one row represents the AM of one channel. That is to say, the second communication device can only lock a logical channel and correctly identify the channel number of the logical channel when it receives an AM whose other fields except UP0-UP2 match the AM in Table 1.
[0182] Table 1
[0183] Logical channel number <![CDATA[{CM0,CM1,CM2,UP0,CM3,CM4,CM5,UP1,UM0,UM1,UM2,UP2,UM3,UM4,UM5}]]> 0 0x9A,0x4A,0x26,0x05,0x65,0xB5,0xD9,0xD6,0xB3,0xC0,0x8C,0x29,0x4C,0x3F,0x73 1 0x9A,0x4A,0x26,0x04,0x65,0xB5,0xD9,0x67,0x5A,0xDE,0x7E,0x98,0xA5,0x21,0x81 2 0x9A,0x4A,0x26,0x46,0x65,0xB5,0xD9,0xFE,0x3E,0xF3,0x56,0x01,0xC1,0x0C,0xA9 3 0x9A,0x4A,0x26,0x5A,0x65,0xB5,0xD9,0x84,0x86,0x80,0xD0,0x7B,0x79,0x7F,0x2F 4 0x9A,0x4A,0x26,0xE1,0x65,0xB5,0xD9,0x19,0x2A,0x51,0xF2,0xE6,0xD5,0xAE,0x0D 5 0x9A,0x4A,0x26,0xF2,0x65,0xB5,0xD9,0x4E,0x12,0x4F,0xD1,0xB1,0xED,0xB0,0x2E 6 0x9A,0x4A,0x26,0x3D,0x65,0xB5,0xD9,0xEE,0x42,0x9C,0xA1,0x11,0xBD,0x63,0x5E 7 0x9A,0x4A,0x26,0x22,0x65,0xB5,0xD9,0x32,0xD6,0x76,0x5B,0xCD,0x29,0x89,0xA4
[0184] The first communication device inserts AM into the data to be sent in the form of an AM group. Correspondingly, the second communication device also removes AM in the form of an AM group. The first communication device can insert an AM group into the data to be sent at a certain period, and correspondingly, the second communication device can also remove the AM group from the data at a certain period. The AM group consists of two parts: the part composed of the AM of each logical channel and the filling part.
[0185] Combine the following Figure 4 The data processing process of the first communication device and the second communication device is described.
[0186] Figure 4 Take 200G Ethernet technology as an example. Figure 4As shown, the first communication device receives an Ethernet frame from the data link layer, and the Ethernet frame reaches the media access control (MAC) layer and the coordination sublayer (RS). The Ethernet frame is checked at the MAC layer, and the checked bit data is sent to the PCS sublayer through the RS sublayer according to various media independent interfaces (xMII); the PCS sublayer receives relevant bits from the xMII, and encodes and rate matches according to a specific first-size bit block; after encoding and rate matching, the code block of the first-size bit block is transcoded to obtain a serial code block stream of a second-size bit block; the serial code block stream of the second-size bit block is scrambled and then inserted into an AM group, and the AM group includes a plurality of second-size bit blocks; after the AM group is inserted, the serial multiple second-size bit blocks are forward error corrected (forwarding error correction) correction, FEC) coding adds check bits; then distributes the second size bit block code block to several PCS channels or FEC channels according to a certain number of bits through distribution and interleaving, and each AM constituting the AM group is distributed on the corresponding PCS channel or FEC channel; the bits on the PCS channel or FEC channel can be sent to the second communication device through the PMA channel. The aforementioned physical channel can be a PMA channel.
[0187] The second communication device receives the bits sent by the first communication device through PMD and PMA, uses the AM on each PCS channel or FEC channel to lock the channel, and reorders the channels to obtain a serial code block stream; then, after FEC decoding the serial code block stream, the AM group in the serial code block stream is removed; then, the serial code block stream after removing the AM group is descrambled and reversely transcoded to obtain a serial code block stream of first-size bit blocks; the serial code block stream of the first-size bit blocks is decoded and rate-matched and sent to the RS sublayer and MAC layer, and the data is transmitted to the data link layer through the MAC layer.
[0188] It can be understood that for different Ethernet technologies, the first size bit block and the second size bit block are different. For example, for 200G / 400G Ethernet technology, the first size bit block is 64 bits (bit, B) B / 66B, the second size bit block is 256B / 257B, and the AM group consists of 4 or 8 257B code blocks. For another example, for 100G Ethernet technology, the first size bit block is 64B / 66B, the second size bit block is 256B / 257B, and the AM group consists of 5 257B code blocks.
[0189] It should be noted that for ease of understanding, Figure 4It only briefly describes the processing flow of the Ethernet interface. In specific applications, other processing processes may be added, or the above processing processes may not be included. For example, for 40G and 100G Ethernet interfaces, the FEC encoding and FEC decoding processes may not be included. For different Ethernet technologies, the processing process is different. For example, for 200G and 400G Ethernet technologies, the FEC encoding and FEC decoding processes may be included, and the FEC is located inside the PCS sublayer. For 40G and 100G Ethernet technologies, the FEC encoding and FEC decoding processes may be included or not. When 40G and 100G Ethernet technologies include the FEC encoding and FEC decoding processes, the FEC sublayer is located between the PCS and PMA sublayers as an independent sublayer.
[0190] Combine the following Figures 5 to 7 The process of data transmission between the first communication device and the second communication device through multiple channels is described in more detail.
[0191] Figure 5 This is a schematic diagram of the first communication device distributing data under multiple channels. Take the 200G data distribution process as an example. Figure 5 As shown in FIG. 1 , after the first communication device inserts the AM group into the serial data to be sent, it distributes the serial data stream to 8 logical channels through two distribution processes. Among them, the data to be sent inserted into the AM group is distributed to 2 parallel data streams through distribution 1, and FEC encoding is performed to obtain 2 parallel data streams after FEC encoding (the first communication device can obtain several parallel data streams by using several FEC codewords), as shown in FIG. Figure 5 As shown, two FEC-encoded parallel data streams A and B can be obtained; through distribution 2, the data of the two FEC-encoded parallel data streams A and B can be distributed to 8 logical channels, and then the data is sent to the second communication device through the physical channel.
[0192] Taking 200G Ethernet technology as an example, the above two distributions are described in detail. Figure 6As shown, first, the serial data stream that has been inserted into the AM group forms two parallel data streams A and B according to the distribution rule of distribution 1 (i.e., first take one coding symbol and distribute it to data stream A, then take one coding symbol and distribute it to data stream B, and so on, and A, B, A, B... can be used to represent this distribution process); then, the two parallel data streams A and B form two parallel data streams A and B according to the distribution rule of distribution 2 (i.e., the first coding symbol of data stream A is distributed to logical channel 0, the 0th coding symbol of data stream B is distributed to logical channel 1, the first coding symbol of data stream A is distributed to logical channel 2, and the 1st coding symbol of data stream B is distributed to logical channel 3). The first coded symbol of data stream A is distributed to logical channel 3, the second coded symbol of data stream A is distributed to logical channel 4, the second coded symbol of data stream B is distributed to logical channel 5, the third coded symbol of data stream A is distributed to logical channel 6, and the fourth coded symbol of data stream B is distributed to logical channel 7. This distribution process can be represented by A, B, A, B, A, B, A, B; the next distribution process is B, A, B, A, B, A, B, A; the next distribution process is A, B, A, B, A, B, A, B; and so on) distributed to 8 logical channels. Among them, the coded symbol is a data unit for data distribution by the first communication device. For example, the coded symbol can be 10 bits, 12 bits, etc. It should be understood that the reason why distribution 2 uses the above distribution method is to improve the ability to resist burst errors.
[0193] Therefore, in order to ensure that the AM corresponding to each logical channel appears completely on each logical channel according to the expected mode, before inserting the AM group into the serial data stream, the AM group must be constructed according to the AM format of the logical channel and the specific distribution rules, so that the second communication device can receive the AM in the correct format and then lock and align the logical channel.
[0194] Figure 7 This is a schematic diagram of the second communication device receiving data under multiple channels. Figure 7 As shown, the second communication device receives data from the first communication device through the physical channel and the logical channel, performs AM locking, de-jittering, logical channel reordering and de-interleaving on the logical channel to form two parallel data streams A and B. The two parallel data streams A and B are decoded and interleaved to obtain serial data including AM groups, and the AM groups are further removed from the data to obtain the data actually transmitted by the first communication device.
[0195] Figures 5 to 7 Taking 200G Ethernet technology as an example, the data processing process for 40G, 50G, 100G and 400G is similar and will not be repeated here.
[0196] The AM group of the current IEEE 802.3 specification is constructed based on the condition that all logical channels and physical channels are working normally, that is, it is designed and specified according to the full rate. However, when the number of logical channels or physical channels in the communication device changes (for example, some logical channels fail, some logical channels actively exit the working state, some logical channels fail, some logical channels actively enter the working state, etc.), the existing AM group will be difficult to ensure that the second communication device can still lock and align the logical channels.
[0197] The present application provides a data processing method, which can ensure that a communication device at a receiving end locks and aligns logical channels when the number of logical channels or physical channels in the communication device changes.
[0198] Figure 8 It is a schematic flow chart of the data processing method of an embodiment of the present application. Figure 8 The illustrated method 800 may include at least some of 810 - 870 .
[0199] In 810, the first communication device inserts a first AM group into first data to be transmitted to obtain first target data, where the first AM group corresponds to M transmission logical channels, where M is a positive integer.
[0200] In 820, the first communication device sends the first target data to the second communication device on the M sending logical channels; the second communication device receives the first target data sent by the first communication device on the M receiving logical channels.
[0201] In 830 , the second communication device removes the first AM group from the first target data.
[0202] In 840 , the number of the sending logical channels in the working state of the first communication device changes from M to N, and the number of the receiving logical channels in the working state of the second communication device changes from M to N.
[0203] In 850, the first communication device inserts a second AM group into the second data to be sent to obtain second target data, where the second AM group corresponds to N sending logical channels, where N is a positive integer and is different from M.
[0204] In 860, the first communication device sends the second target data to the second communication device on the N sending logical channels; the second communication device receives the second target data sent by the first communication device on the N receiving logical channels.
[0205] In 870, the second communication device removes the second AM group from the second target data.
[0206] That is to say, when the number of sending logical channels in working state of the first communication device and the number of receiving logical channels in working state of the second communication device change, the first communication device will insert the AM group corresponding to the sending logical channel currently in working state into the data to be sent, and accordingly, the second communication device will also remove the AM group corresponding to the receiving logical channel currently in working state.
[0207] The embodiment of the present application does not specifically limit the type of the first communication device, as long as it can communicate with other communication devices (for example, the second communication device) through Ethernet technology. For example, the first communication device is a box-type or frame-type switch, router, etc.
[0208] The embodiment of the present application does not specifically limit the type of the second communication device, as long as it can communicate with other communication devices (for example, the first communication device) through Ethernet technology. For example, the first communication device is a box-type or frame-type switch, router, etc.
[0209] The first data to be sent and the second data to be sent can be different serial data streams in different transmission processes, or can be two parts of a serial data stream in the same transmission process. The first data to be sent and the second data to be sent are separated by a change in the number of logical channels used by the first communication device and the second communication device. For example, when the first data to be sent and the second data to be sent are two parts of the same serial data stream, the first data to be sent is the part before the number of sending logical channels of the first communication device and the number of receiving logical channels of the second communication device change, and the second data to be sent is the part after the number of sending logical channels of the first communication device and the number of receiving logical channels of the second communication device change. In the embodiment of the present application, for the convenience of description, they are respectively referred to as the first data to be sent and the second data to be sent.
[0210] Similarly, the first target data and the second target data may correspond to different serial data streams in different transmission processes, or may correspond to two parts of a serial data stream in the same transmission process. The first target data and the second target data are separated by a change in the number of logical channels used by the first communication device and the second communication device. For example, when the first target data and the second target data correspond to two parts of the same serial data stream, the first target data is inserted into the part of the first AM group, and the second target data is inserted into the part of the second AM. For the convenience of description in the embodiments of the present application, they are respectively referred to as the first target data and the second target data.
[0211] In the embodiment of the present application, the sending logical channel of the first communication device corresponds one-to-one to the receiving logical channel of the second communication device. For example, the first communication device has 8 sending logical channels, and the second communication device has 8 receiving logical channels that correspond one-to-one to the 8 sending logical channels of the first communication device. Therefore, when the number of logical channels of any one of the first communication device and the second communication device changes, the number of logical channels of the opposite communication device changes accordingly. For example, if the sending logical channel 0 of the first communication device exits the working state due to a fault, then the receiving logical channel 0 of the second communication device will also exit the working state regardless of whether there is a fault or not.
[0212] Since the AM group inserted by the first communication device in the transmitted data is related to the number of the currently working transmission logical channels, before inserting the AM group into the data to be transmitted, the first communication device determines the currently working transmission logical channels and obtains the AM group corresponding to the currently working transmission logical channels. The second communication device also needs to determine the currently working reception logical channels so as to correctly remove the AM group.
[0213] Optionally, AM groups corresponding to different numbers of transmit logical channels may be preconfigured.
[0214] There are many situations that cause a logical channel to enter or exit a working state. Take, for example, a change in the number of sending logical channels of a first communication device.
[0215] When M is greater than N, the first sending logical channel among the M sending logical channels will exit the working state when at least one of the following conditions is met: the first sending logical channel fails; the physical channel corresponding to the first sending logical channel fails; the sending logical channel corresponding to the same physical channel as the first sending logical channel fails; the first receiving logical channel corresponding to the first sending logical channel in the second communication device fails; the physical channel corresponding to the first receiving logical channel in the second communication device fails; the receiving logical channel corresponding to the same physical channel as the first receiving logical channel in the second communication device fails; the data flow of the M sending logical channels is lower than the preset flow value; the first communication device receives a first instruction, and the first instruction is used to instruct the first communication device to control the first sending logical channel to exit the working state. The first instruction can be a manual instruction.
[0216] When M is less than N, the second sending logical channel other than the M sending logical channels will resume working status when at least one of the following conditions is met: the fault of the second sending logical channel is eliminated; the fault of the physical channel corresponding to the second sending logical channel is eliminated; the fault of the sending logical channel corresponding to the same physical channel as the second sending logical channel is eliminated; the fault of the second receiving logical channel corresponding to the second sending logical channel in the second communication device is eliminated; the fault of the physical channel corresponding to the second receiving logical channel in the second communication device is eliminated; the fault of the receiving logical channel corresponding to the same physical channel as the second receiving logical channel in the second communication device is eliminated; and the data flow of the M sending logical channels is higher than the preset flow value; the first communication device receives a second instruction, and the second instruction is used to instruct the first communication device to control the second sending logical channel to resume working status.
[0217] The exit or entry into the working state of the receiving logical channel in the second communication device is similar to the processing of the sending logical channel by the first communication device, and will not be repeated here.
[0218] There are many situations in which the number of transmission logical channels in the working state of the first communication device changes from M to N. As an example, when M is greater than N, the N transmission logical channels may be a subset of the M transmission logical channels, that is, the first communication device controls MN transmission logical channels among the M transmission logical channels to exit the working state so that the number of transmission logical channels is reduced from M to N; and / or, when M is less than N, the M transmission logical channels may be a subset of the N transmission logical channels, that is, the first communication device controls NM transmission logical channels other than the M transmission logical channels to enter the working state so that the number of transmission logical channels is increased from M to N.
[0219] As another example, when M is greater than N, F of the N sending logical channels belong to the M sending logical channels, and F is a non-negative integer less than or equal to N. That is, in the process of reducing the number of sending logical channels of the first communication device from M to N, there are sending logical channels other than the M sending logical channels entering the working state, and some or all of the M sending logical channels exit the working state, which eventually reduces the number of sending logical channels from M to N; and / or, when M is less than N, F of the N sending logical channels belong to the M sending logical channels, and F is a non-negative integer less than or equal to M. That is, in the process of increasing the number of sending logical channels of the first communication device from M to N, there are sending logical channels other than the M sending logical channels exit the working state, and by making more sending logical channels other than the M sending logical channels enter the working state, the number of sending logical channels is eventually reduced from M to N.
[0220] In actual data processing, AM must appear at the beginning of an FEC codeword, which requires that the insertion of the AM group has a certain period. After the number of sending logical channels in the working state of the first communication device changes, if the insertion period does not change, it will not be possible to ensure that AM always appears at the beginning of an FEC codeword. Therefore, the embodiment of the present application uses a first insertion period for the first AM group and a second insertion period for the second AM, thereby solving the above problem. Specifically, the first communication device inserts the first AM group into the first data to be sent according to the first insertion period; and inserts the second AM group into the second data to be sent according to the second insertion period.
[0221] The first insertion period may be the number of FEC code words between two adjacent first AM groups, the number of transcoded code blocks between two adjacent first AM groups, or the number of bits between two adjacent first AM groups. Similarly, the second insertion period may be the number of FEC code words between two adjacent second AM groups, the number of transcoded code blocks between two adjacent second AM groups, or the number of bits between two adjacent second AM groups.
[0222] Optionally, the first insertion period is different from the second insertion period.
[0223] As an example, when the number of sending logical channels in a working state of the first communication device changes from M to N, the first communication device can determine the second insertion period based on N. Table 2 shows the correspondence between insertion periods corresponding to different numbers of logical channels in a 400G standard. Table 3 shows the correspondence between insertion periods corresponding to different numbers of logical channels in a 200G standard. The insertion periods in Tables 2 and 3 are in units of FEC codewords. For example, if the insertion period is 512, it means that an AM group is inserted every 512 FEC codewords. It should be understood that Tables 2 and 3 are exemplary.
[0224] Table 2
[0225] Number of logical channels Insertion cycle 1 512 2 1024 3 1536 4 2048 5 2560 6 3072 7 3584 8 4096 9 4608 10 5120 11 5632 12 6144 13 6656 14 7168 15 7680 16 8192
[0226] Table 3
[0227]
[0228]
[0229] Tables 2 and 3 are based on Fig. 9 The functional circuit diagram shown is calculated. Among them, Fig. 9 N effLane Represents the number of sending logical channels in working state, N NewFECPayload Represents the number of 64B / 66B contained in the payload of a codeword of the currently selected FEC, N standLane Indicates the number of logical transmission channels defined in the standard, N standdis Indicates the distance of the FEC codeword defined in the standard, N standFECPayload Indicates the number of 64B / 66B contained in the payload part of a FEC codeword defined in the standard, C NewFECSymbol It indicates the number of coded symbols contained in a codeword of the currently selected FEC, and mod means remainder.
[0230] As another example, when the number of the transmission logical channels in the working state of the first communication device changes from M to , the second insertion period may also be equal to the first insertion period. Optionally, for each possible number of transmission logical channels, a same insertion period may be selected, and the insertion period may satisfy that under each possible number of transmission logical channels, AM can be guaranteed to appear at the beginning of an FEC codeword.
[0231] Specifically, the insertion cycle can be achieved by Fig.10 The functional circuit diagram shown is calculated. Among them, Fig.10 N effLane1 ~N effLaneM The number of logical channels in working state is 1 to M, CNewFECSymbol Indicates the number of coded symbols contained in a codeword of the currently selected FEC, mod means remainder, processing element (PE) 1~PE M Indicates processing unit 1 to processing unit M.
[0232] Since the insertion period of the AM group inserted by the first communication device changes, the appearance period of the AM group in the serial data stream changes. Therefore, the period of the AM group removed by the second communication device must correspond to the period of the AM group inserted by the first communication device. The first removal period is used for the first AM group, and the second removal period is used for the second AM, so as to avoid the data finally obtained by the second communication device being incorrect. Specifically, the second communication device removes the first AM group from the first target data according to the first removal period; and removes the second AM group from the second target data according to the second removal period.
[0233] Similarly, the first removal period may be the number of FEC codewords between two adjacent first AM groups, the number of transcoded code blocks between two adjacent first AM groups, or the number of bits between two adjacent first AM groups. Similarly, the second removal period may be the number of FEC codewords between two adjacent second AM groups, the number of transcoded code blocks between two adjacent second AM groups, or the number of bits between two adjacent second AM groups.
[0234] Optionally, the first removal period is different from the second removal period. The second removal period is determined in a similar manner to the second insertion period, except that the sending logical channel is correspondingly changed to a receiving logical channel, which will not be described in detail here.
[0235] There are many ways to correspond AM groups to transmission logical channels. As an example, the first AM group includes M AMs, and the M AMs correspond one-to-one to the M transmission logical channels respectively, and the second AM group includes N AMs, and the N AMs correspond one-to-one to the N transmission logical channels respectively. For example, M=4, the 4 transmission logical channels are channels 0 to 3, and N=6, the 6 transmission logical channels are channels 0 to 5, then the first AM group includes AMs of channels 0 to 3, and the second AM group includes AMs of channels 0 to 5.
[0236] As another example, the first AM group may include a first identification part and a first filling part, wherein the first identification part includes M AMs, and the M AMs correspond one-to-one to the M transmission logical channels respectively. The second AM group may include a second identification part and a second filling part, and the second identification part includes N AMs, and the N AMs correspond one-to-one to the N transmission logical channels respectively. The sum of the number of bits of the first filling part and the number of bits of the first identification part is an integer multiple of the size of a standard code block, and the sum of the number of bits of the second filling part and the number of bits of the second identification part is an integer multiple of the size of the standard code block. Among them, the standard code block is a code block under the transcoding method adopted by the first communication device. For example, when the transcoding method adopted by the first communication device is 256B / 257B, the standard code block is 257B. For another example, when the transcoding method adopted by the first communication device is 512B / 513B, the standard code block is 513B.
[0237] Optionally, the sum of the number of bits of the first filling part and the number of bits of the first identification part is a minimum integer multiple of the size of a standard code block, and the sum of the number of bits of the second filling part and the number of bits of the second identification part is a minimum integer multiple of the size of the standard code block.
[0238] Optionally, the number of bits of the first padding portion is different from the number of bits of the second padding portion.
[0239] Optionally, the AMs of the M and N transmission logical channels may be in the format of AM specified in IEEE 802.3.
[0240] The way in which the AM group corresponds to the receiving logical channel is similar to the way in which the AM group corresponds to the sending logical channel, and will not be repeated here.
[0241] The order of the coding symbols of the first identification part of the embodiment of the present application is different from the order of the coding symbols of the second identification part, wherein the coding symbols are symbols under the error correction coding method adopted by the first communication device. There are many factors that affect the order of coding symbols in the AM group. The embodiment of the present application mainly relates to the number of AMs included in the AM group (or the number of sending logical channels currently in working state), the data distribution method adopted by the first communication device, and the number of FECs adopted by the first communication device. As long as any one of the above three factors changes, the order of the coding symbols of the identification part of the AM group will change.
[0242] As an example, in the case where the first communication device does not perform FEC encoding or the first communication device adopts 1 FEC, and the first communication device adopts the first data distribution mode, when the number of AMs included in the AM group changes from M to N, the M AMs are AM_i0, AM_i1, ..., AM_i in ascending order of channel number.M-1 , the p*M+1th to (p+2)*Mth coded symbols of the first identification part are:
[0243] {AM_i0_p, AM_i1_p,…, AM_i M-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i M-1 _p+1}
[0244] The AMs of the N logical transmission channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number. N-1 , the p*N+1th to (p+2)*Nth coded symbols of the second identification part are:
[0245] {AM_i0_p, AM_i1_p,…, AM_i N-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i N-1 _p+1}
[0246] Among them, p+1 is a non-negative integer less than or equal to Q-1, Q is the number of coding symbols included in an AM, and the first data distribution method is to distribute target data to R sending logical channels in the order of 0, 1, ..., R-1, 0, 1, ..., R-1, 0, 1, ..., R-1, ... in units of coding symbols to obtain R parallel data streams, and 0, 1, ..., R-1 represents the channel numbers of the R sending logical channels.
[0247] As another example, when the first communication device adopts 2 FECs, and the first communication device adopts the second data distribution mode, and the number of AMs included in the AM group changes from M to N, the AMs of the M sending logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel numbers. M-1 , the 2p*M+1th to (2p+2)*Mth coded symbols of the first identification part are:
[0248] {AM_i0_2p, AM_i1_2p,…,AM_i M-2 _2p,AM_i M-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i M-1 _2p+1,AM_i M-2 _2p+1}
[0249] The AMs of the N logical transmission channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number. N-1 , the 2p*N+1th to (2p+2)*Nth coded symbols of the second identification part are:
[0250] {AM_i0_2p, AM_i1_2p,…,AM_i N-2 _2p,AM_i N-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i N-1 _2p+1,AM_i N-2 _2p+1}
[0251] Among them, 2p+1 is a non-negative integer less than or equal to Q-1, Q is the number of distribution symbols included in an AM, and the second data distribution method is to convert the target data into two parallel data streams in the order of A, B, A, B,... based on the coding symbols as units, and A and B represent that from the Ath data stream and the Bth data stream, continue to distribute to R sending logical channels once in the order of A, B, A, B, A, B,... based on the coding symbols as units, and then distribute to R sending logical channels once in the order of B, A, B, A, B, A,..., and then distribute to R sending logical channels once in the order of A, B, A, B, A, B,..., and then distribute to R sending logical channels once in the order of A, B, A, B, A, B,..., and so on.
[0252] As another example, when the first communication device adopts 3 FECs, and the first communication device adopts the third data distribution mode, and the number of AMs included in the AM group changes from M to N, the AMs of the M sending logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel numbers. M-1 , the 3p*M+1th to (3p+3)*Mth coded symbols of the first identification part are:
[0253] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i M-3 _3p,AM_i M-2 _3p,AM_i M-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i M-2 _3p+1,AM_i M-1 _3p+1,AM_i M-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i M-1 _3p+2,AM_i M-3 _3p+2,AM_i M-2 _3p+2}
[0254] The AMs of the N logical transmission channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number.N-1 , the 3p*N+1th to (3p+3)*Nth coded symbols of the second identification part are:
[0255] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i N-3 _3p,AM_i N-2 _3p,AM_i N-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i N-2 _3p+1,AM_i N-1 _3p+1,AM_i N-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i N-1 _3p+2,AM_i N-3 _3p+2,AM_i N-2 _3p+2}
[0256] Among them, 3p+2 is a non-negative integer less than or equal to Q-1, Q is the number of distribution symbols included in an AM, and the third data distribution method is to convert the target data into three parallel data streams in the order of A, B, C, A, B, C, A, B, C, ... based on the coding symbols as units, wherein A, B, C represent that from the Ath data stream, the Bth data stream, and the Cth data stream, the coding symbols are continued to be used as units, and the order of A, B, C, A, B, C, A, B, C, ... is sequentially distributed to R sending logical channels once, and then the order of B, C, A, B, C, A, B, C, A, ... is sequentially distributed to R sending logical channels once, and then the order of C, A, B, C, A, B, C, A, B, ... is sequentially distributed to R sending logical channels once, and then the order of C, A, B, C, A, B, C, A, B, ... is sequentially distributed to R sending logical channels once, and so on.
[0257] As another example, when the first communication device adopts 4 FECs, and the first communication device adopts the fourth data distribution mode, and the number of AMs included in the AM group changes from M to N, the AMs of the M sending logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel numbers. M-1 , the 3p*M+1th to (3p+3)*Mth coded symbols of the first identification part are:
[0258] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1_4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i M-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i M-1 _4p+3,AM_i M-4 _4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3}
[0259] The AMs of the N logical transmission channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number. N-1 , the 4p*N+1th to (4p+4)*Nth coded symbols of the second identification part are:
[0260] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i N-4 _4p,AM_i N-3 _4p,AM_i N-2 _4p,AM_i N-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i N-3 _4p+1,AM_i N-2 _4p+1,AM_i N-1 _4p+1,AM_i N-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i N-2 _4p+2,AM_i N-1 _4p+2,AM_i N-4 _4p+2,AM_i N-3_4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i N-1 _4p+3,AM_i N-4 _4p+3,AM_i N-3 _4p+3,AM_i N-2 _4p+3}
[0261] Wherein, 4p+3 is a non-negative integer less than or equal to Q-1, Q is the number of distribution symbols included in an AM, and the fourth data distribution mode is to convert the target data into 4 parallel data streams in the order of A, B, C, D, A, B, C, D, A, B, C, D, ... based on the coding symbol as a unit, wherein A, B, C, D represent from the Ath data stream, the Bth data stream, the Cth data stream, and the Dth data stream, and continue to use the coding symbol as a unit, in the order of A, B, C, D, A, B, C, D, A, B, C, D, A , B, C, D, … are distributed to the R sending logical channels once in the order of B, C, D, A, B, C, D, A, B, C, D, A, B, C, D, …, and then distributed to the R sending logical channels once in the order of C, D, A, B, C, D, A, B, C, D, A, B, C, D, A, B, …, and then distributed to the R sending logical channels once in the order of D, A, B, C, D, A, B, C, D, A, B, C, …, and so on.
[0262] As another example, when the number of the sending logical channels in the working state of the first communication device changes from M to N, the number of FECs used by the first communication device (taking 4 FECs to 2 FECs as an example) also changes, and the distribution mode used by the first communication device changes from the fourth data distribution mode to the second data distribution mode, the AMs of the M sending logical channels are AM_i0, AM_i1, ..., AM_i2 in the order of the channel numbers from small to large. M-1 , the 4p*M+1th to (4p+4)*Mth coded symbols of the first identification part are:
[0263] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…, AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_iM-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i M-1 _4p+3,AM_i M-4 _4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3}
[0264] The AMs of the N logical transmission channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number. N-1 , the 2p*N+1th to (2p+2)*Nth coded symbols of the second identification part are:
[0265] {AM_i0_2p, AM_i1_2p,…,AM_i N-2 _2p,AM_i N-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i N-1 _2p+1,AM_i N-2 _2p+1}
[0266] Wherein, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of distribution symbols included in one AM.
[0267] As another example, in the case where the number of the sending logical channels in the working state of the first communication device is M and the number of FECs used by the first communication device is changed (taking 2 FECs to 4 FECs as an example), and the distribution mode used by the first communication device is changed from the second data distribution mode to the fourth data distribution mode, the AMs of the M sending logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of the channel numbers. M-1 , before the change, the 2p*M+1th to (2p+2)*Mth coded symbols of the first identification part are:
[0268] {AM_i0_2p, AM_i1_2p,…,AM_i M-2_2p,AM_i M-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i M-1 _2p+1,AM_i M-2 _2p+1}
[0269] After the change, the 4p*M+1th to (4p+4)*Mth coded symbols of the first identification part are:
[0270] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i M-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i M-1 _4p+3,AM_i M-4 _4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3}
[0271] Wherein, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of distribution symbols included in one AM.
[0272] It should be understood that the above examples do not list all possible situations. The number of FECs used by the first communication device can be more, for example, 8 FECs, 16 FECs, etc.; the number of FECs used by the first communication device can change from less to more, or from more to less; the first communication device can use other data distribution methods, and the order of the coding symbols of the corresponding AM group is also adjusted accordingly. For example, in the case of using 4 FECs, the data distribution method can also be A, B, C, D, A, B, C, D, A, B, C, D, A, B, C, D, …
[0273] The specific mapping process of the AM group in the embodiment of the present application is described in detail below.
[0274] Fig.11 Schematic diagram of the code block distribution of the first communication device. Fig.11 As shown, the control unit can generate configuration information of the sending logical channel in the working state. The configuration information of the sending logical channel in the working state can be referred to as PCSLC. For example, PCSLC is [1,1,1,1,0,0,0,0], which means that channels 0 to 3 of the 8 sending logical channels are in the working state, and channels 4 to 7 are in the non-working state. The AM group adjustment unit can map and insert the AM group according to PCSLC. It can be understood that the second communication device also includes a control unit, and the function is the same as that of the control unit of the first communication device, which will not be repeated here. The specific mapping process of the AM group is as follows.
[0275] 1) According to the configuration information of the sending logical channels in working state generated by the control unit of the first communication device, the number Y of the sending logical channels in working state is determined, and the AM of each sending logical channel in working state is obtained.
[0276] 2) According to the rules for distributing the local serial data stream to the sending logical channel, the mapped AM group is constructed from the Y AMs obtained in 1). Specifically,
[0277] a. Determine the size N of the encoding symbol symbol according to the FEC encoding method selected by the first communication device sym ;
[0278] b. Initialize the mapping of the AM group:
[0279] b1.N sym As a unit, each of the Y AMs is divided into (F+1) coded symbols, and the Y AMs are arranged in ascending order according to the channel number of the sending logical channel as AM_i0, AM_i1, ..., AM_i Y-1 , where i0 <i1<…i Y-1, that is, AM_i0=(AM_i0_0, AM_i0_1,..., AM_i0_F), AM_i1=(AM_i1_0, AM_i1_1,..., AM_i1_F),..., AM_i Y-1 =(AM_i Y-1 _0,AM_i Y-1 _1,…,AM_i Y-1 _F);
[0280] b2. Take AM_i in sequence j The kth encoding symbol forms a column GColumn k =(AM_i0_k, AM_i1_k,…, AM_i Y-1 _k), a total of (F+1) GColumns, where i0≤j≤…i Y-1 , 0≤k≤F;
[0281] c. Adjust the AM group according to the number of symbol distribution functions used (i.e., the number of distributions) and the distribution principle:
[0282] c1. If a symbol distribution function is used to convert a serial stream into Y parallel data streams, the distribution rule is 0, 1, 2, 3, ...Y-1, 0, 1, 2, 3, ...Y-1, ..., then GColumn k remain unchanged;
[0283] c2. If two symbol distribution functions are used, the first symbol distribution function converts a serial data stream into Y1 parallel streams, and the second symbol distribution function converts Y1 parallel data streams into Y parallel data streams, then:
[0284] c21. The second symbol distribution function distribution principle is:
[0285] First distribution: 0, 1, 2, 3, ... Y1-1, 0, 1, 2, 3, ... Y1-1, 0, 1, 2, 3, ... Y1-1, ...
[0286] Second distribution: 0, 1, 2, 3, ... Y1-1, 0, 1, 2, 3, ... Y1-1, 0, 1, 2, 3, ... Y1-1, ...
[0287] The third distribution: 0, 1, 2, 3, ... Y1-1, 0, 1, 2, 3, ... Y1-1, 0, 1, 2, 3, ... Y1-1, ...
[0288] At this time, GColumn k remain unchanged;
[0289] c22. The second symbol distribution function distribution principle is:
[0290] First distribution: 0, 1, 2, 3, ... Y1-1, 0, 1, 2, 3, ... Y1-1, 0, 1, 2, 3, ... Y1-1, ...
[0291] Second distribution: Y1-1,…,3,2,1,0,Y1-1,…,3,2,1,0,Y1-1,…,3,2,1,0,…
[0292] The third distribution: 0, 1, 2, 3, ... Y1-1, 0, 1, 2, 3, ... Y1-1, 0, 1, 2, 3, ... Y1-1, ...
[0293] When mod(Y, Y1) = 0, the GColumn with an odd subscript k The coding symbols are processed as follows: in units of Y1, the first coding symbol is exchanged with the Yth coding symbol, the second coding symbol is exchanged with the Y-1th coding symbol, and so on. Fig.12 As shown;
[0294] When mod(Y, Y1)≠0 and Y1=2, GColumn k remain unchanged;
[0295] 3) According to the transcoding mode or transcoding type adopted by the first communication device, a padding portion (padding) is added to the AM group so that the mapped AM group is the minimum integer multiple of the size of the standard code block, and the output AM group is:
[0296] <GColumn0,GColumn1,GColumn2,…,GColumn F ,padding>
[0297] The standard code block is a code block under the transcoding method adopted by the first communication device. For example, when the transcoding method adopted by the first communication device is 256B / 257B, the standard code block is 257B. For another example, when the transcoding method adopted by the first communication device is 512B / 513B, the standard code block is 513B;
[0298] It should be noted that, for Ethernet technologies that may include status domain fields (e.g., 200G and 400G Ethernet technologies), these status domain fields are also part of the padding in the embodiments of the present application;
[0299] 4) According to the number of sending logical channels in working state and FEC encoding mode, calculate the insertion period of AM group, and insert the mapped AM group with the insertion period. For the specific calculation method, please refer to Fig. 9 and Fig.10 , I will not go into details here.
[0300] It should be understood that Fig.11 and Fig.12 This is for illustrative purposes only and is intended to facilitate understanding of the technical solutions of the embodiments of the present application. When the number of FECs and the data distribution method used by the first communication device change, the AM group also needs to be adjusted accordingly.
[0301] Accordingly, the second communication device determines the receiving logical channel in working state according to the configuration information PSCLC of the receiving logical channel generated by the control unit of the second communication device; performs AM detection, locking and alignment, reordering and deinterleaving on the receiving logical channel in working state according to the detection period, and obtains Y1 parallel data stream, and the Y1 parallel data stream is decoded and interleaved to obtain serial data including AM group, and further removes the AM group from the serial data according to the removal period to obtain the data actually transmitted by the first communication device. The specific calculation method of the removal period can be found in Fig. 9 and Fig.10 , I will not go into details here.
[0302] The technical solution of the embodiment of the present application is described in more detail below with reference to specific examples.
[0303] Example 1: In 200G Ethernet, the selected FEC is Reed-Solomon forward error correction (RS-FEC) (544, 514, 10, 15), the transcoding method is 256B / 257B, and two FEC codewords are used. The RS-FEC sublayer inserts the AM group into the serial data stream. After FEC encoding, the 10-bit coded symbols are distributed to 8 transmit logical channels in sequence. Fig.13 As shown, two physical channels of the first communication device and the second communication device fail, and the number of corresponding logical channels in working state changes from 8 to 4, and the AM group also needs to be changed accordingly.
[0304] Before the channel failure, the 8 sending logical channels are in working state. The AM of the 8 sending logical channels, namely AM_0, AM_1, AM_2, AM_3, AM_4, AM_5, AM_6, and AM_7, are divided into 12 coded symbols in 10-bit units. Since the transcoding method is 256B / 257B transcoding, the minimum L_padding of ((L_padding+(11+1)×10×8))mod 257=0 is 68, so the padding length to be added is 68 bits. At this time, the mapped AM group is as follows Fig.14 As shown, the insertion period is 4096 FEC code words.
[0305] After the channel fails, the control unit of the first communication device generates PCSLC=[00001111], and the sending logic channels 4 to 7 are in working state. In units of 10 bits, the AM of the four sending logic channels, namely AM_4, AM_5, AM_6, and AM_7, are divided into 12 coding symbols. Since mod(4, 2)=0, GColumn1, GColumn3, GColumn5, GColumn7, GColumn9, and GColumn1 are adjusted. 11 Specifically, in units of 2, GColumn k The first coded symbol is exchanged with the second coded symbol, and the third coded symbol is exchanged with the fourth coded symbol, k = 1, 3, 5, 7, 9, 11. Since the transcoding method is 256B / 257B transcoding, the minimum L_padding of ((L_padding+(11+1)×10×4))mod 257=0 is 34, so the padding length to be added is 34 bits. At this time, the mapped AM group is as follows Fig.15 As shown, the insertion period is 2048 FEC code words.
[0306] Correspondingly, the second communication device determines that the receiving logical channels in working state are 4 to 7 according to the configuration information PSCLC of the receiving logical channels generated by the control unit of the second communication device. The calculated AM group removal period is 2048.
[0307] In a high-speed Ethernet link, when some physical channels fail, according to the above technical solution, the logical channels corresponding to the failed physical channels are excluded, and the sending end then remaps the AM and inserts it according to the new insertion cycle. The second communication device can then lock and align the AM normally, effectively ensuring that the code block receiving and sending process is not affected.
[0308] Example 2, such as Fig.13As shown in the figure, in 200G Ethernet, the selected FEC is RS-FEC (544, 514, 10, 15), the transcoding method is 256B / 257B, and two FEC codewords are used. The RS-FEC sublayer inserts the AM group into the serial data stream. After FEC encoding, the 10-bit encoding symbols are distributed to the four transmission logical channels in sequence.
[0309] If the FEC selected by the first communication device is RS-FEC (372, 342, 12, 15) and the transcoding method is 512B / 513B, the AM group also needs to be changed accordingly. Specifically, the control unit of the first communication device generates PCSLC=[00001111], and the sending logical channels 4 to 7 are in working state. In units of 12-bit, the AMs of the four sending logical channels, namely AM_4, AM_5, AM_6, and AM_7, are divided into 10 encoding symbols respectively. Since the transcoding method is 512B / 513B transcoding, the minimum L_padding of ((L_padding+(9+1)×12×4))mod 513=0 is 33, so the padding length to be added is 33 bits. At this time, the mapped AM group is as follows Fig.16 As shown, the insertion period is 2560 FEC code words.
[0310] Correspondingly, the second communication device determines that the receiving logical channels in working state are 4 to 7 according to the configuration information PSCLC of the receiving logical channels generated by the control unit of the second communication device. The calculated AM group removal period is 2560.
[0311] Considering 200G high-speed Ethernet, when the RS-FEC used by the first communication device is RS (372, 342, 12, 15) and the transcoding method is 512B / 513B, the first communication device only needs to re-map the AM according to the above technical solution and insert the AM group according to the new insertion period. The second communication device can lock and align the AM normally, effectively ensuring that the code block reception and transmission process is not affected.
[0312] Example 3: In 200G Ethernet, the selected FEC is RS-FEC (544, 514, 10, 15), the transcoding mode is 256B / 257B, and two FEC codewords are used. The RS-FEC sublayer inserts the AM group into the serial data stream. After FEC encoding, the 10-bit encoding symbols are distributed to the 8 transmission logical channels in sequence. Fig.17 As shown, the fault of one of the two faulty physical channels of the first communication device and the second communication device disappears, and the number of corresponding logical channels in working state changes from 4 to 6, and the AM group also needs to be changed accordingly.
[0313] Before the channel fault disappears, that is, when the number of logical channels in working state is 4, reference may be made to the relevant description of Example 1, which will not be repeated here.
[0314] After the channel fault disappears, the control unit of the first communication device generates PCSLC=[00111111], and the sending logical channels 2 to 7 are in working state. In units of 10 bits, the AMs of the 6 sending logical channels, namely AM_2, AM_3, AM_4, AM_5, AM_6, and AM_7, are divided into 12 coding symbols. Since the transcoding method is 256B / 257B transcoding, the minimum L_padding of ((L_padding+(11+1)×10×6))mod 257=0 is 51, so the padding length to be added is 51 bits. At this time, the mapped AM group is as follows Fig.18 As shown, the insertion period is 3072 FEC code words.
[0315] Correspondingly, the second communication device determines that the receiving logical channels in working state are 2 to 7 according to the configuration information PSCLC of the receiving logical channels generated by the control unit of the second communication device. The removal period of the AM group is calculated to be 3072.
[0316] Considering 200G high-speed Ethernet, when the fault of one of the two faulty physical channels disappears, the first communication device then remaps the AM and inserts the AM group according to the new insertion cycle. The second communication device can then lock and align the AM normally, effectively ensuring that the code block receiving and sending process is not affected.
[0317] Example 4: In 400G Ethernet, the selected FEC is RS-FEC (544, 514, 10, 15), the transcoding mode is 256B / 257B, and two FEC codewords are used. The RS-FEC sublayer inserts the AM group into the serial data stream. After FEC encoding, the 10-bit encoding symbols are distributed to 16 transmit logical channels in sequence. Fig.19 As shown, two physical channels of the first communication device and the second communication device are faulty, and the number of corresponding logical channels in working state changes from 16 to 12, and the AM group also needs to be changed accordingly.
[0318] Before the channel failure, the 16 sending logical channels are in working state. The AM of the 16 sending logical channels, namely AM_0, AM_1, ..., AM_15, are divided into 12 coding symbols in 10-bit units. Since the transcoding method is 256B / 257B transcoding, the minimum L_padding of ((L_padding+(11+1)×10×16))mod 257=0 is 136, so the padding length to be added is 136 bits. At this time, the mapped AM group is as follows Fig. 20 As shown, the insertion period is 8192 FEC code words.
[0319] After the channel fails, the control unit of the first communication device generates PCSLC=[0000111111111111], and the sending logical channels 4 to 15 are in working state. In units of 10 bits, the AMs of the 12 sending logical channels, namely AM_4, AM_5, ..., AM_15, are divided into 12 coding symbols. Since the transcoding method is 256B / 257B transcoding, the minimum L_padding of ((L_padding+(11+1)×10×12))mod 257=0 is 102, so the padding length to be added is 102 bits. At this time, the mapped AM group is as follows Fig.21 As shown, the insertion period is 6144 FEC code words.
[0320] Correspondingly, the second communication device determines, according to the configuration information PSCLC of the receiving logical channels generated by the control unit of the second communication device, that the receiving logical channels in working state are 4 to 15. The removal period of the AM group is calculated to be 6144.
[0321] In a high-speed Ethernet link, when some physical channels fail, according to the above technical solution, the logical channels corresponding to the failed physical channels are excluded, and the sending end then remaps the AM and inserts it according to the new insertion cycle. The second communication device can then lock and align the AM normally, effectively ensuring that the code block receiving and sending process is not affected.
[0322] Example 5: In 200G Ethernet, the selected FEC is RS-FEC (544, 514, 10, 15), the transcoding mode is 256B / 257B, and 4 FEC codewords are used. The RS-FEC sublayer inserts the AM group into the serial data stream. After FEC encoding, the 10-bit encoding symbol is distributed to 8 transmit logical channels in sequence, such as Fig. 22 shown.
[0323] The control unit of the first communication device generates PCSLC=[11111111], and the sending logical channels 0 to 7 are in working state. In units of 10 bits, the AMs of the 8 sending logical channels, namely AM_0, AM_1, ..., AM_7, are divided into 12 coding symbols. Since the transcoding method is 256B / 257B transcoding, the minimum L_padding of ((L_padding+(11+1)×10×8))mod 257=0 is 68, so the padding length to be added is 68 bits. The insertion period is 4096 FEC code words.
[0324] When the first communication device distributes the 4 parallel data streams after FEC encoding to 8 transmission logical channels in the order of A, B, C, D, A, B, C, D, D, C, B, A, D, C, B, A, A, B, C, D, A, B, C, D, ..., the mapped AM group is as follows: Fig.23 shown.
[0325] When the first communication device distributes the 4 parallel data streams after FEC encoding to the 8 transmission logical channels in the order of A, B, C, D, A, B, C, D, B, C, D, A, C, D, A, B, C, D, A, B, C, D, A, B, C, ..., the mapped AM group is as follows: Fig.24 shown. Fig.24 Only the first 4*8 coding symbols of the AM group are shown, and the order of subsequent coding symbols can refer to the order of the first 4*8 coding symbols.
[0326] Correspondingly, the second communication device determines, according to the configuration information PSCLC of the receiving logical channels generated by the control unit of the second communication device, that the receiving logical channels in working state are 0 to 7. The removal period of the AM group is calculated to be 4096.
[0327] Example 6: In 200G Ethernet, the selected FEC is RS-FEC (544, 514, 10, 15), and the transcoding mode is 256B / 257B. The RS-FEC sublayer inserts the AM group into the serial data stream. After FEC encoding, the 10-bit encoding symbols are distributed to 8 transmit logical channels in sequence. Fig.13 As shown, two physical channels of the first communication device and the second communication device are faulty, and the number of corresponding logical channels in working state changes from 8 to 4. Due to the reduction of sending logical channels and receiving logical channels, the first communication device and the second communication device can switch from 4-channel FEC codewords to 2-channel FEC codewords. Before the change, the processing flow of the first communication device can be seen in Fig. 22 After the change, the processing flow of the first communication device can be found in Fig.13 The relevant description will not be repeated here.
[0328] Taking into account that 200G high-speed Ethernet uses 4 FEC codewords in the process of coding symbol distribution, when the number of sending logical channels decreases and the number of FEC codewords also decreases, the first communication device only needs to re-map the AM group according to the above technical solution and insert the AM group according to the new insertion period. The second communication device can normally lock and align the AM, effectively ensuring that the code block reception and transmission process is not affected.
[0329] Example 7: In 200G Ethernet, the selected FEC is RS-FEC (544, 514, 10, 15), and the transcoding method is 256B / 257B. The RS-FEC sublayer inserts the AM group in the serial data stream. After FEC encoding, the 10-Bit coded symbols are distributed to 8 transmitting logical channels in sequence. The two faulty physical channels of the first communication device and the second communication device return to normal. Due to the increase in the transmitting logical channel and the receiving logical channel, the first communication device and the second communication device can switch from 2-channel FEC codewords to 4-channel FEC codewords. Before the change, the processing flow of the first communication device can be seen in Fig.13 After the change, the processing flow of the first communication device can be found in Fig. 22 The relevant description will not be repeated here.
[0330] Example 8: In 100G Ethernet, the selected FEC is RS-FEC (544, 514, 10, 15), the transcoding mode is 256B / 257B, and 1 FEC codeword is used. The RS-FEC sublayer inserts the AM group into the serial data stream. After FEC encoding, the 10-bit encoding symbols are distributed to the 4 transmission logical channels in sequence. Fig.25 As shown, two physical channels of the first communication device and the second communication device fail, and the number of corresponding FEC channels in working state changes from four to two, and the AM group also needs to be changed accordingly.
[0331] Before the channel failure, the four sending logical channels are in working state, and the AMFEC of each FEC channel is AMFEC_0=<AM_0,AM_4,AM_8,AM_12,AM_16> ,AMFEC_1=<AM_1,AM_5,AM_9,AM_13,AM_17> ,AMFEC_2=<AM_2,AM_6,AM_10,AM_14,AM_18> ,AMFEC_3=<AM_3,AM_7,AM_11,AM_15,AM_19> . In 10-bit units, the AMFEC of the four logical transmission channels is divided into 32 coded symbols. Since the transcoding method is 256B / 257B transcoding, the minimum L_padding of ((L_padding+(31+1)×10×4))mod 257=0 is 5, so the padding length to be added is 5 bits. At this time, the mapped AM group is as follows Fig.26 As shown, the insertion period is 4096 FEC code words.
[0332] After the channel fails, the control unit of the first communication device generates PCSLC=
[0011] , and FEC logical channels 2 and 3 are in working state. In units of 10-bit, the AMFEC of the two FEC logical channels, namely AMFEC_2 and AMFEC_3, are divided into 32 encoding symbols respectively. Since the transcoding method is 256B / 257B transcoding, the minimum L_padding of ((L_padding+(11+1)×10×2))mod 257=0 is 131, so the padding length to be added is 131bit. At this time, the mapped AM group is as follows Fig. 27 As shown, the insertion period is 2048 FEC code words.
[0333] Correspondingly, the second communication device determines, according to the configuration information PSCLC of the receiving logical channels generated by the control unit of the second communication device, that the receiving logical channels in working state are 2 and 3. The removal period of the AM group is calculated to be 2048.
[0334] Taking into account that 100G high-speed Ethernet uses one FEC codeword in the process of coding symbol distribution, the first communication device only needs to re-map the AM group according to the above technical solution and insert the AM group according to the new insertion period. The second communication device can normally lock and align the AM, effectively ensuring that the code block reception and transmission process is not affected.
[0335] Combine the following Figure 28 to Figure 31 An embodiment of the device of the present application is described.
[0336] Fig.28It is a schematic structural diagram of a communication device according to an embodiment of the present application. Fig.28 The communication device 2800 shown may correspond to the first communication device described above, such as Fig.28 As shown, the communication device 2800 includes a processing module 2830 and a sending module 2820 .
[0337] The processing module 2830 is configured to insert a first alignment identifier AM group into the first data to be sent to obtain first target data, wherein the first AM group corresponds to M sending logical channels, where M is a positive integer.
[0338] The sending module 2820 is used to send the first target data to the second communication device on the M sending logical channels.
[0339] When the number of sending logical channels in working state of the first communication device changes from M to N, the processing module 2830 is also used to insert a second AM group into the second data to be sent to obtain second target data, where the second AM group corresponds to N sending logical channels, N is a positive integer, and N is different from M.
[0340] The sending module 2820 is further configured to send the second target data to the second communication device on the N sending logical channels.
[0341] Optionally, the processing module 2830 is specifically used to insert the first AM group into the first data to be sent according to a first insertion cycle; the processing module 2830 is also specifically used to insert the second AM group into the second data to be sent according to a second insertion cycle.
[0342] Optionally, the first insertion period is different from the second insertion period.
[0343] Optionally, the first AM group includes a first identification part, the first identification part includes M AMs, and the M AMs correspond one-to-one to the M sending logical channels; the second AM group includes a second identification part, the second identification part includes N AMs, and the N AMs correspond one-to-one to the N sending logical channels.
[0344] Optionally, the order of the coding symbols of the first identification part is different from the order of the coding symbols of the second identification part, and the coding symbols are symbols under the error correction coding method adopted by the first communication device.
[0345] Optionally, the AMs of the M sending logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel numbers. M-1 ;
[0346] The p*M+1th to (p+2)*Mth coded symbols of the first identification part are:
[0347] {AM_i0_p, AM_i1_p,…, AM_i M-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i M-1 _p+1}
[0348] Alternatively, the 2p*M+1th to (2p+2)*Mth coded symbols of the first identification part are:
[0349] {AM_i0_2p, AM_i1_2p,…,AM_i M-2 _2p,AM_i M-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i M-1 _2p+1,AM_i M-2 _2p+1}
[0350] Alternatively, the 3p*M+1th to (3p+3)*Mth coded symbols of the first identification part are:
[0351] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i M-3 _3p,AM_i M-2 _3p,AM_i M-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i M-2 _3p+1,AM_i M-1 _3p+1,AM_i M-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i M-1 _3p+2,AM_i M-3 _3p+2,AM_i M-2 _3p+2}
[0352] Alternatively, the 4p*M+1th to (4p+4)*Mth coded symbols of the first identification part are:
[0353] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1_4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i M-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i M-1 _4p+3,AM_i M-4 _4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3}
[0354] Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
[0355] Optionally, the AMs of the N sending logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel numbers. N-1 ;
[0356] The p*N+1th to (p+2)*Nth coded symbols of the second identification part are:
[0357] {AM_i0_p, AM_i1_p,…, AM_i N-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i N-1 _p+1}
[0358] Alternatively, the 2p*N+1th to (2p+2)*Nth coded symbols of the second identification part are:
[0359] {AM_i0_2p, AM_i1_2p,…,AM_i N-2 _2p,AM_i N-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i N-1 _2p+1,AM_i N-2 _2p+1}
[0360] Alternatively, the 3p*N+1th to (3p+3)*Nth coded symbols of the second identification part are:
[0361] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i N-3 _3p,AM_i N-2 _3p,AM_i N-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i N-2 _3p+1,AM_i N-1 _3p+1,AM_i N-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i N-1 _3p+2,AM_i N-3 _3p+2,AM_i N-2 _3p+2}
[0362] Alternatively, the 4p*N+1th to (4p+4)*Nth coded symbols of the second identification part are:
[0363] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i N-4 _4p,AM_i N-3 _4p,AM_i N-2 _4p,AM_i N-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i N-3 _4p+1,AM_i N-2 _4p+1,AM_i N-1 _4p+1,AM_i N-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i N-2 _4p+2,AM_i N-1 _4p+2,AM_i N-4 _4p+2,AM_i N-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i N-1 _4p+3,AM_i N-4 _4p+3,AM_i N-3 _4p+3,AM_i N-2 _4p+3}
[0364] Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
[0365] Optionally, the first AM group also includes a first filling part, and the sum of the number of bits of the first filling part and the number of bits of the first identification part is an integer multiple of the size of a standard code block, and the standard code block is a code block under the transcoding method adopted by the first communication device; the second AM group also includes a second filling part, and the sum of the number of bits of the second filling part and the number of bits of the second identification part is an integer multiple of the size of the standard code block; wherein the number of bits of the first filling part is different from the number of bits of the second filling part.
[0366] Optionally, M is greater than N, and the processing module is further configured to control a first sending logical channel among the M sending logical channels to exit a working state when a first target condition is met, where the first target condition is at least one of the following conditions:
[0367] The first sending logical channel fails;
[0368] A physical channel corresponding to the first sending logical channel fails;
[0369] A sending logical channel corresponding to the same physical channel as the first sending logical channel fails;
[0370] A first receiving logical channel corresponding to the first sending logical channel in the second communication device fails;
[0371] A physical channel corresponding to the first receiving logical channel in the second communication device fails;
[0372] A receiving logical channel in the second communication device that corresponds to the same physical channel as the first receiving logical channel fails;
[0373] The data flow of the M sending logical channels is lower than a preset flow value;
[0374] The first communication device receives a first instruction, where the first instruction is used to instruct the processing module 2830 to control the first sending logical channel to exit a working state.
[0375] Optionally, M is less than N, and the processing module is further configured to control a second sending logical channel other than the M sending logical channels to resume a working state when a second target condition is met, where the second target condition is at least one of the following conditions:
[0376] Elimination of a fault in the second sending logical channel;
[0377] Elimination of a fault in a physical channel corresponding to the second sending logical channel;
[0378] Eliminate a fault of a sending logical channel corresponding to the same physical channel as the second sending logical channel;
[0379] Elimination of a fault in a second receiving logical channel corresponding to the second sending logical channel in the second communication device;
[0380] Elimination of a fault in a physical channel corresponding to the second receiving logical channel in the second communication device;
[0381] Elimination of a fault of a receiving logical channel in the second communication device corresponding to the same physical channel as the second receiving logical channel;
[0382] And the data flow of the M sending logical channels is higher than the preset flow value;
[0383] The first communication device receives a second instruction, where the second instruction is used to instruct the processing module 2830 to control the second sending logical channel to resume a working state.
[0384] The sending module 2820 may be implemented by a transceiver. The processing module 2830 may be implemented by a processor. The specific functions and beneficial effects of the sending module 2820 and the processing module 2830 may be referred to in Figure 8 The description of the method shown will not be repeated here.
[0385] Fig.29 It is a schematic structural diagram of a communication device according to another embodiment of the present application. Fig.29 The communication device 2900 shown may correspond to the second communication device described above, such as Fig.29 As shown, the communication device 2900 includes a receiving module 2910 and a processing module 2930 .
[0386] The receiving module 2910 is used to receive first target data sent by a first communication device on M receiving logical channels, where the first target data includes a first AM group, and the first AM group corresponds to the M receiving logical channels, where M is a positive integer.
[0387] The processing module 2930 is used to remove the first AM group from the first target data.
[0388] When the number of receiving logical channels in working state of the second communication device changes from M to N, the receiving module 2910 is also used to receive second target data sent by the first communication device on the N receiving logical channels, the second target data including a second AM group, the second AM group corresponding to the N receiving logical channels, N is a positive integer, and N is different from M.
[0389] The processing module 2930 is further configured to remove the second AM group from the second target data.
[0390] Optionally, the processing module 2930 is specifically used to remove the first AM group from the first target data according to a first removal cycle; the processing module 2930 is also specifically used for the second communication device to remove the second AM group from the second target data according to a second removal cycle.
[0391] Optionally, the first removal period is different from the second removal period.
[0392] Optionally, the first AM group includes a first identification part, the first identification part includes M AMs, and the M AMs correspond one-to-one to the M receiving logical channels; the second AM group includes a second identification part, the second identification part includes N AMs, and the N AMs correspond one-to-one to the N receiving logical channels.
[0393] Optionally, the order of the coding symbols of the first identification part is different from the order of the coding symbols of the second identification part, and the coding symbols are symbols under the error correction coding method adopted by the second communication device.
[0394] Optionally, the AMs of the M receiving logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel numbers. M-1 ;
[0395] The p*M+1th to (p+2)*Mth coded symbols of the first identification part are:
[0396] {AM_i0_p, AM_i1_p,…, AM_i M-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i M-1 _p+1}
[0397] Alternatively, the 2p*M+1th to (2p+2)*Mth coded symbols of the first identification part are:
[0398] {AM_i0_2p, AM_i1_2p,…,AM_i M-2 _2p,AM_i M-1_2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i M-1 _2p+1,AM_i M-2 _2p+1}
[0399] Alternatively, the 3p*M+1th to (3p+3)*Mth coded symbols of the first identification part are:
[0400] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i M-3 _3p,AM_i M-2 _3p,AM_i M-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i M-2 _3p+1,AM_i M-1 _3p+1,AM_i M-3 _3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i M-1 _3p+2,AM_i M-3 _3p+2,AM_i M-2 _3p+2}
[0401] Alternatively, the 4p*M+1th to (4p+4)*Mth coded symbols of the first identification part are:
[0402] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i M-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3_4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i M-1 _4p+3,AM_i M-4 _4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3}
[0403] Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
[0404] Optionally, the AMs of the N receiving logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel numbers. N-1 ;
[0405] The p*N+1th to (p+2)*Nth coded symbols of the second identification part are:
[0406] {AM_i0_p, AM_i1_p,…, AM_i N-1 _p, AM_i0_p+1, AM_i1_p+1,…, AM_i N-1 _p+1}
[0407] Alternatively, the 2p*N+1th to (2p+2)*Nth coded symbols of the second identification part are:
[0408] {AM_i0_2p, AM_i1_2p,…,AM_i N-2 _2p,AM_i N-1 _2p, AM_i1_2p+1, AM_i0_2p+1,…, AM_i N-1 _2p+1,AM_i N-2 _2p+1}
[0409] Alternatively, the 3p*N+1th to (3p+3)*Nth coded symbols of the second identification part are:
[0410] {AM_i0_3p, AM_i1_3p, AM_i2_3p,…, AM_i N-3 _3p,AM_i N-2 _3p,AM_i N-1 _3p, AM_i1_3p+1, AM_i2_3p+1, AM_i0_3p+1,…, AM_i N-2 _3p+1,AM_i N-1 _3p+1,AM_i N-3_3p+1, AM_i2_3p+2, AM_i0_3p+2, AM_i1_3p+2,…, AM_i N-1 _3p+2,AM_i N-3 _3p+2,AM_i N-2 _3p+2}
[0411] Alternatively, the 4p*N+1th to (4p+4)*Nth coded symbols of the second identification part are:
[0412] {AM_i0_4p, AM_i1_4p, AM_i2_4p, AM_i3_4p,…,AM_i N-4 _4p,AM_i N-3 _4p,AM_i N-2 _4p,AM_i N-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i N-3 _4p+1,AM_i N-2 _4p+1,AM_i N-1 _4p+1,AM_i N-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i N-2 _4p+2,AM_i N-1 _4p+2,AM_i N-4 _4p+2,AM_i N-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i N-1 _4p+3,AM_i N-4 _4p+3,AM_i N-3 _4p+3,AM_i N-2 _4p+3}
[0413] Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
[0414] Optionally, the first AM group also includes a first filling part, and the sum of the number of bits of the first filling part and the number of bits of the first identification part is an integer multiple of the size of a standard code block, and the standard code block is a code block under the transcoding method adopted by the first communication device; the second AM group also includes a second filling part, and the sum of the number of bits of the second filling part and the number of bits of the second identification part is an integer multiple of the size of the standard code block; wherein the number of bits of the first filling part is different from the number of bits of the second filling part.
[0415] Optionally, M is greater than N, and the processing module 2930 is further configured to control a first receiving logical channel among the M receiving logical channels to exit a working state when a third target condition is met, where the third target condition is at least one of the following conditions:
[0416] The first receiving logical channel fails;
[0417] A physical channel corresponding to the first receiving logical channel fails;
[0418] A receiving logical channel corresponding to the same physical channel as the first receiving logical channel fails;
[0419] A first sending logical channel corresponding to the first receiving logical channel in the first communication device fails;
[0420] A physical channel corresponding to the first sending logical channel in the first communication device fails;
[0421] A transmission logical channel failure in the first communication device corresponding to the same physical channel as the first transmission logical channel;
[0422] The data flow of the M receiving logical channels is lower than a preset flow value;
[0423] The second communication device receives a third instruction, where the third instruction is used to instruct the processing module 2930 to control the first receiving logical channel to exit a working state.
[0424] Optionally, M is less than N, and the processing module 2930 is further configured to, when a fourth target condition is met, control the second communication device to restore a second receiving logical channel other than the M receiving logical channels to a working state, where the fourth target condition is at least one of the following conditions:
[0425] Elimination of a fault in the second receiving logical channel;
[0426] Elimination of a fault in a physical channel corresponding to the second receiving logical channel;
[0427] Eliminate a fault of a receiving logical channel corresponding to the same physical channel as the second receiving logical channel;
[0428] Elimination of a fault in a second sending logical channel corresponding to the second receiving logical channel in the first communication device;
[0429] Elimination of a fault in a physical channel corresponding to the second sending logical channel in the first communication device;
[0430] Elimination of a fault in a sending logical channel of the first communication device corresponding to the same physical channel as the second sending logical channel;
[0431] And the data flow of the M receiving logical channels is higher than the preset flow value;
[0432] The second communication device receives a fourth instruction, where the fourth instruction is used to instruct the processing module 2930 to control the second receiving logical channel to resume a working state.
[0433] The receiving module 2910 may be implemented by a transceiver. The processing module 2930 may be implemented by a processor. The specific functions and beneficial effects of the receiving module 2910 and the processing module 2930 may be referred to in Figure 8 The description of the method shown will not be repeated here.
[0434] Fig.30 3000 is a schematic structural diagram of a communication device provided in another embodiment of the present application. The communication device 3000 may correspond to the first communication device described above, such as Fig.30 As shown, the communication device 3000 may include a transceiver 3010 , a processor 3020 , and a memory 3030 .
[0435] Fig.30 Only one memory and processor are shown. In an actual communication device product, there may be one or more processors and one or more memories. The memory may also be referred to as a storage medium or a storage device. The memory may be set independently of the processor or may be integrated with the processor, and the embodiments of the present application do not limit this.
[0436] The transceiver 3010, the processor 3020, and the memory 3030 communicate with each other through internal connection paths to transmit control and / or data signals.
[0437] Specifically, the processor 3020 is used to insert a first alignment identifier AM group into the first data to be sent to obtain the first target data, where the first AM group corresponds to M sending logical channels, and M is a positive integer.
[0438] The transceiver 3010 is used to send the first target data to the second communication device on the M sending logical channels.
[0439] When the number of sending logical channels in working state of the first communication device changes from M to N, the processor 3020 is further used to insert a second AM group into the second data to be sent to obtain second target data, where the second AM group corresponds to N sending logical channels, N is a positive integer, and N is different from M.
[0440] The transceiver 3010 is further configured to send the second target data to the second communication device on the N sending logical channels.
[0441] The specific working process and beneficial effects of the communication device 3000 can be found in Figure 8 The description in the illustrated embodiment will not be repeated here.
[0442] Fig.31 3100 is a schematic structural diagram of a communication device provided in another embodiment of the present application. The communication device 3100 may correspond to the second communication device described above, such as Fig.31 As shown, the communication device 3100 may include a transceiver 3110 , a processor 3120 , and a memory 3130 .
[0443] Fig.31 Only one memory and processor are shown. In an actual communication device product, there may be one or more processors and one or more memories. The memory may also be referred to as a storage medium or a storage device. The memory may be set independently of the processor or may be integrated with the processor, and the embodiments of the present application do not limit this.
[0444] The transceiver 3110 , the processor 3120 , and the memory 3130 communicate with each other through internal connection paths to transmit control and / or data signals.
[0445] Specifically, the transceiver 3110 is used to receive first target data sent by a first communication device on M receiving logical channels, where the first target data includes a first AM group, and the first AM group corresponds to the M receiving logical channels, where M is a positive integer.
[0446] The processor 3120 is configured to remove the first AM group from the first target data.
[0447] When the number of receiving logical channels in working state of the second communication device changes from M to N, the transceiver 3110 is also used to receive second target data sent by the first communication device on the N receiving logical channels, the second target data including a second AM group, the second AM group corresponding to the N receiving logical channels, N is a positive integer, and N is different from M.
[0448] The processor 3120 is further configured to remove the second AM group from the second target data.
[0449] The specific working process and beneficial effects of the communication device 3100 can be found in Figure 8 The description in the illustrated embodiment will not be repeated here.
[0450] The transceiver in each embodiment of the present application may also be referred to as a transceiver unit, a transceiver, a transceiver device, etc. The processor may also be referred to as a processing unit, a processing board, a processing module, a processing device, etc. Optionally, the device used to implement the receiving function in the transceiver may be regarded as a receiving unit, and the device used to implement the sending function in the transceiver may be regarded as a sending unit, that is, the transceiver includes a receiving unit and a sending unit. The receiving unit may also be sometimes referred to as a receiver, a receiver, or a receiving circuit, etc. The sending unit may also be sometimes referred to as a transmitter, a transmitter, or a transmitting circuit, etc.
[0451] The memory described in each embodiment of the present application is used to store computer instructions and parameters required for the operation of the processor.
[0452] The processor described in each embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The processor described in each embodiment of the present application may be a general-purpose processor, a digital signal processor (digitalsignal processor, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory (random access memory, RAM), a flash memory, a read-only memory (read-only memory, ROM), a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the instructions in the memory and completes the steps of the above method in combination with its hardware.
[0453] In various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0454] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by 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 instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer 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 instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0455] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0456] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0457] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0458] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0459] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0460] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0461] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data processing method, characterized in that: include: The first communication device inserts a first alignment identifier AM group into the first data to be sent according to a first insertion cycle to obtain first target data, wherein the first AM group corresponds to M sending logical channels, where M is a positive integer, and the first AM group includes a first identification part, and the first identification part includes M AMs, and the M AMs correspond to the M sending logical channels one by one; The first communication device sends the first target data to the second communication device on the M sending logical channels; In a case where the number of the transmission logical channels in the working state of the first communication device changes from M to N, the first communication device inserts a second AM group into the second data to be transmitted according to a second insertion period to obtain second target data, the second AM group corresponds to N transmission logical channels, N is a positive integer, and N is different from M, the second AM group includes a second identification part, the second identification part includes N AMs, the N AMs correspond one-to-one to the N transmission logical channels, the order of the coding symbols of the first identification part is different from the order of the coding symbols of the second identification part, and the coding symbols are symbols under the error correction coding mode adopted by the first communication device; The first communication device sends the second target data to the second communication device on the N sending logical channels.
2. The method according to claim 1, characterized in that The first insertion period is different from the second insertion period.
3. The method according to claim 1 or 2, characterized in that: The AMs of the M sending logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number. M-1 ; The p*M+1th to (p+2)*Mth coded symbols of the first identification part are: {AM_i0_p,AM_i1_p,…,AM_i M-1 _p, AM_i0_p+1,AM_i1_p+1,…,AM_i M-1 _p+1} Alternatively, the 2p*M+1th to (2p+2)*Mth coded symbols of the first identification part are: {AM_i0_2p,AM_i1_2p,…,AM_i M-2 2p,AM_i M-1 _2p, AM_i1_2p+1,AM_i0_2p+1,...,AM_i M-1 _2p+1,AM_i M-2 _2p+1} Alternatively, the 3p*M+1th to (3p+3)*Mth coded symbols of the first identification part are: {AM_i0_3p,AM_i1_3p,AM_i2_3p,...,AM_i M-3 _3p,AM_i M-2 _3p,AM_i M-1 _3p, AM_i1_3p+1,AM_i2_3p+1,AM_i0_3p+1,...,AM_i M-2 _3p+1,AM_i M-1 _3p+1,AM_i M-3 _3p+1, AM_i2_3p+2,AM_i0_3p+2,AM_i1_3p+2,...,AM_i M-1 _3p+2,AM_i M-3 _3p+2,AM_i M-2 _3p+2} Alternatively, the 4p*M+1th to (4p+4)*Mth coded symbols of the first identification part are: {AM_i0_4p,AM_i1_4p,AM_i2_4p,AM_i3_4p,…,AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1 _4p, AM_i1_4p+1,AM_i2_4p+1,AM_i3_4p+1,AM_i0_4p+1,…,AM_i M-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1, AM_i2_4p+2,AM_i3_4p+2,AM_i0_4p+2,AM_i1_4p+2,…,AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3 _4p+2, AM_i3_4p+3,AM_i0_4p+3,AM_i1_4p+3,AM_i2_4p+3,…,AM_i M-1 _4p+3,AM_i M-4 _4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3} Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
4. The method according to any one of claims 1 to 3, characterized in that The AMs of the N sending logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number. N-1 ; The p*N+1th to (p+2)*Nth coded symbols of the second identification part are: {AM_i0_p,AM_i1_p,...,AM_i N-1 _p, AM_i0_p+1,AM_i1_p+1,…,AM_i N-1 _p+1} Alternatively, the 2p*N+1th to (2p+2)*Nth coded symbols of the second identification part are: {AM_i0_2p,AM_i1_2p,...,AM_i N-2 _2p,AM_i N-1 _2p, AM_i1_2p+1,AM_i0_2p+1,...,AM_i N-1 _2p+1,AM_i N-2 _2p+1} Alternatively, the 3p*N+1th to (3p+3)*Nth coded symbols of the second identification part are: {AM_i0_3p,AM_i1_3p,AM_i2_3p,...,AM_i N-3 _3p,AM_i N-2 _3p,AM_i N-1 _3p, AM_i1_3p+1,AM_i2_3p+1,AM_i0_3p+1,...,AM_i N-2 _3p+1,AM_i N-1 _3p+1,AM_i N-3 _3p+1, AM_i2_3p+2,AM_i0_3p+2,AM_i1_3p+2,...,AM_i N-1 _3p+2,AM_i N-3 _3p+2,AM_i N-2 _3p+2} Alternatively, the 4p*N+1th to (4p+4)*Nth coded symbols of the second identification part are: {AM_i0_4p,AM_i1_4p,AM_i2_4p,AM_i3_4p,...,AM_i N-4 _4p,AM_i N-3 _4p,AM_i N-2 _4p,AM_i N-1 _4p, AM_i1_4p+1,AM_i2_4p+1,AM_i3_4p+1,AM_i0_4p+1,…,AM_i N-3 _4p+1,AM_i N-2 _4p+1,AM_i N-1 _4p+1,AM_i N-4 _4p+1, AM_i2_4p+2,AM_i3_4p+2,AM_i0_4p+2,AM_i1_4p+2,...,AM_i N-2 _4p+2,AM_i N-1 _4p+2,AM_i N-4 _4p+2,AM_i N-3 _4p+2, AM_i3_4p+3,AM_i0_4p+3,AM_i1_4p+3,AM_i2_4p+3,…,AM_i N-1 _4p+3,AM_i N-4 _4p+3,AM_i N-3 _4p+3,AM_i N-2 _4p+3} Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
5. The method according to any one of claims 1 to 4, characterized in that The first AM group further includes a first padding part, the sum of the number of bits of the first padding part and the number of bits of the first identification part is an integer multiple of the size of a standard code block, and the standard code block is a code block in a transcoding mode adopted by the first communication device; The second AM group further includes a second padding part, and the sum of the number of bits of the second padding part and the number of bits of the second identification part is an integer multiple of the size of the standard code block; The number of bits of the first filling part is different from the number of bits of the second filling part.
6. The method according to any one of claims 1 to 5, characterized in that M is greater than N, and the method further comprises: When a first target condition is met, the first communication device controls a first sending logical channel among the M sending logical channels to exit a working state, wherein the first target condition is at least one of the following conditions: The first sending logical channel fails; A physical channel corresponding to the first sending logical channel fails; A sending logical channel corresponding to the same physical channel as the first sending logical channel fails; A first receiving logical channel corresponding to the first sending logical channel in the second communication device fails; A physical channel corresponding to the first receiving logical channel in the second communication device fails; A receiving logical channel in the second communication device that corresponds to the same physical channel as the first receiving logical channel fails; The data flow of the M sending logical channels is lower than a preset flow value; The first communication device receives a first instruction, where the first instruction is used to instruct the first communication device to control the first sending logical channel to exit a working state.
7. The method according to any one of claims 1 to 6, characterized in that M is less than N, the method further comprising: When a second target condition is met, the first communication device controls a second sending logical channel other than the M sending logical channels to resume a working state, where the second target condition is at least one of the following conditions: Elimination of a fault in the second sending logical channel; Elimination of a fault in a physical channel corresponding to the second sending logical channel; Eliminate a fault of a sending logical channel corresponding to the same physical channel as the second sending logical channel; Elimination of a fault in a second receiving logical channel corresponding to the second sending logical channel in the second communication device; Elimination of a fault in a physical channel corresponding to the second receiving logical channel in the second communication device; Elimination of a fault of a receiving logical channel in the second communication device corresponding to the same physical channel as the second receiving logical channel; And the data flow of the M sending logical channels is higher than the preset flow value; The first communication device receives a second instruction, where the second instruction is used to instruct the first communication device to control the second sending logical channel to resume a working state.
8. A data processing method, characterized in that: include: The second communication device receives first target data sent by the first communication device on M receiving logical channels, where the first target data includes a first AM group, the first AM group corresponds to the M receiving logical channels, M is a positive integer, the first AM group includes a first identification part, the first identification part includes M AMs, and the M AMs correspond to the M receiving logical channels one by one; The second communication device removes the first AM group from the first target data according to a first removal cycle; In a case where the number of receiving logical channels in a working state of the second communication device changes from M to N, the second communication device receives second target data sent by the first communication device on the N receiving logical channels, the second target data includes a second AM group, the second AM group corresponds to the N receiving logical channels, N is a positive integer, and N is different from M, the second AM group includes a second identification part, the second identification part includes N AMs, the N AMs correspond one-to-one to the N receiving logical channels, the order of the coding symbols of the first identification part is different from the order of the coding symbols of the second identification part, and the coding symbols are symbols under the error correction coding mode adopted by the second communication device; The second communication device removes the second AM group from the second target data according to a second removal cycle.
9. The method according to claim 8, characterized in that The first removal period is different from the second removal period.
10. The method according to claim 8 or 9, characterized in that: The AMs of the M receiving logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number. M-1 ; The p*M+1th to (p+2)*Mth coded symbols of the first identification part are: {AM_i0_p,AM_i1_p,…,AM_i M-1 _p, AM_i0_p+1,AM_i1_p+1,…,AM_i M-1 _p+1} Alternatively, the 2p*M+1th to (2p+2)*Mth coded symbols of the first identification part are: {AM_i0_2p,AM_i1_2p,…,AM_i M-2 _2p,AM_i M-1 _2p, AM_i1_2p+1,AM_i0_2p+1,...,AM-i M-1 -2p+1,AM-i M-2 _2p+1} Alternatively, the 3p*M+1th to (3p+3)*Mth coded symbols of the first identification part are: {AM_i0_3p,AM_i1_3p,AM_i2_3p,...,AM_i M-3 _3p,AM_i M-2 _3p,AM_i M-1 _3p, AM_i1_3p+1,AM_i2_3p+1,AM_i0_3p+1,...,AM_i M-2 _3p+1,AM_i M-1 _3p+1,AM_i M-3 _3p+1, AM_i2_3p+2,AM_i0_3p+2,AM_i1_3p+2,...,AM_i M-1 _3p+2,AM_i M-3 _3p+2,AM_i M-2 _3p+2} Alternatively, the 4p*M+1th to (4p+4)*Mth coded symbols of the first identification part are: {AM_i0_4p,AM_i1_4p,AM_i2_4p,AM_i3_4p,…,AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1 _4p, AM_i1_4p+1,AM_i2_4p+1,AM_i3_4p+1,AM_i0_4p+1,…,AM_i M-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1, AM_i2_4p+2,AM_i3_4p+2,AM_i0_4p+2,AM_i1_4p+2,...,AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3 _4p+2, AM_i3_4p+3,AM_i0_4p+3,AM_i1_4p+3,AM_i2_4p+3,…,AM_i M-1 _4p+3,AM_i M-4 _4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3} Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
11. The method according to any one of claims 8 to 10, characterized in that The AMs of the N receiving logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number. N-1 ; The p*N+1th to (p+2)*Nth coded symbols of the second identification part are: {AM_i0_p,AM_i1_3,...,AM_i N-1_p _3, AM_i0_p+1,AM_i1_p+1,…,AM_i N-1 _p+1} Alternatively, the 2p*N+1th to (2p+2)*Nth coded symbols of the second identification part are: {AM_i0_2p,AM_i1_2p,...,AM_i N-2 _2p,AM_i N-1 _2p, AM_i1_2p+1,AM_i0_2p+1,...,AM_i N-1 _2p+1,AM_i N-2 _2p+1} Alternatively, the 3p*N+1th to (3p+3)*Nth coded symbols of the second identification part are: {AM_i0_3p,AM_i1_3p,AM_i2_3p,...,AM_i N-3 _3p,AM_i N-2 _3p,AM_i N-1 _3p, AM_i1_3p+1,AM_i2_3p+1,AM_i0_3p+1,...,AM_i N-2 _3p+1,AM_i N-1 _3p+1,AM_i N-3 _3p+1, AM_i2_3p+2,AM_i0_3p+2,AM_i1_3p+2,...,AM_i N-1 _3p+2,AM_i N-3 _3p+2,AM_i N-2 _3p+2} Alternatively, the 4p*N+1th to (4p+4)*Nth coded symbols of the second identification part are: {AM_i0_4p,AM_i1_4p,AM_i2_4p,AM_i3_4p,...,AM_i N-4 _4p,AM_i N-3 _4p,AM_i N-2 _4p,AM_i N-1 _4p, AM_i1_4p+1,AM_i2_4p+1,AM_i3_4p+1,AM_i0_4p+1,…,AM_i N-3 _4p+1,AM_i N-2 _4p+1,AM_i N-1 _4p+1,AM_i N-4 _4p+1, AM_i2_4p+2,AM_i3_4p+2,AM_i0_4p+2,AM_i1_4p+2,…,AM_i N-2 _4p+2,AM_i N-1 _4p+2,AM_i N-4 _4p+2,AM_i N-3 _4p+2, AM_i3_4p+3,AM_i0_4p+3,AM_i1_4p+3,AM_i2_4p+3,…,AM_i N-1 _4p+3,AM_i N-4 _4p+3,AM_i N-3 _4p+3,AM_i N-2 _4p+3} Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
12. The method according to any one of claims 8 to 11, characterized in that The first AM group further includes a first padding part, the sum of the number of bits of the first padding part and the number of bits of the first identification part is an integer multiple of the size of a standard code block, and the standard code block is a code block in a transcoding mode adopted by the first communication device; The second AM group further includes a second padding part, and the sum of the number of bits of the second padding part and the number of bits of the second identification part is an integer multiple of the size of the standard code block; The number of bits of the first filling part is different from the number of bits of the second filling part.
13. The method according to any one of claims 8 to 12, characterized in that M is greater than N, and the method further comprises: When a third target condition is met, the second communication device controls a first receiving logical channel among the M receiving logical channels to exit a working state, and the third target condition is at least one of the following conditions: The first receiving logical channel fails; A physical channel corresponding to the first receiving logical channel fails; A receiving logical channel corresponding to the same physical channel as the first receiving logical channel fails; A first sending logical channel corresponding to the first receiving logical channel in the first communication device fails; A physical channel corresponding to the first sending logical channel in the first communication device fails; A transmission logical channel failure in the first communication device corresponding to the same physical channel as the first transmission logical channel; The data flow of the M receiving logical channels is lower than a preset flow value; The second communication device receives a third instruction, where the third instruction is used to instruct the second communication device to control the first receiving logical channel to exit a working state.
14. The method according to any one of claims 8 to 13, characterized in that M is less than N, the method further comprising: When a fourth target condition is met, the second communication device controls a second receiving logical channel other than the M receiving logical channels to resume a working state, and the fourth target condition is at least one of the following conditions: Elimination of a fault in the second receiving logical channel; Elimination of a fault in a physical channel corresponding to the second receiving logical channel; Eliminate a fault of a receiving logical channel corresponding to the same physical channel as the second receiving logical channel; Elimination of a fault in a second sending logical channel corresponding to the second receiving logical channel in the first communication device; Elimination of a fault in a physical channel corresponding to the second sending logical channel in the first communication device; Elimination of a fault in a sending logical channel of the first communication device corresponding to the same physical channel as the second sending logical channel; And the data flow of the M receiving logical channels is higher than the preset flow value; The second communication device receives a fourth instruction, where the fourth instruction is used to instruct the second communication device to control the second receiving logical channel to resume a working state.
15. A communication device, characterized in that: The communication device is a first communication device, comprising: a processing module, configured to insert a first alignment identifier AM group into first data to be sent according to a first insertion cycle to obtain first target data, wherein the first AM group corresponds to M sending logical channels, where M is a positive integer, and the first AM group includes a first identification part, the first identification part includes M AMs, and the M AMs correspond one-to-one to the M sending logical channels; A sending module, configured to send the first target data to the second communication device on the M sending logical channels; In the case where the number of the sending logical channels in the working state of the first communication device changes from M to N, the processing module is further used to insert a second AM group into the second data to be sent according to a second insertion cycle to obtain second target data, the second AM group corresponds to N sending logical channels, N is a positive integer, and N is different from M, the second AM group includes a second identification part, the second identification part includes N AMs, the N AMs correspond to the N sending logical channels one by one, the order of the coding symbols of the first identification part is different from the order of the coding symbols of the second identification part, and the coding symbols are symbols under the error correction coding method adopted by the first communication device; The sending module is further used to send the second target data to the second communication device on the N sending logical channels.
16. The communication device according to claim 15, characterized in that The first insertion period is different from the second insertion period.
17. The communication device according to claim 15 or 16, characterized in that: The AMs of the M sending logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number. M-1 ; The p*M+1th to (p+2)*Mth coded symbols of the first identification part are: {AM_i0_p,AM_i1_p,…,AM_i M-1 _p, AM_i0_p+1,AM_i1_p+1,…,AM_i M-1 _p+1} Alternatively, the 2p*M+1th to (2p+2)*Mth coded symbols of the first identification part are: {AM_i0_2p,AM_i1_2p,…,AM_i M-2 _2p,AM_i M-1 _2p, AM_i1_2p+1,AM_i0_2p+1,…,AM_i M-1 _2p+1,AM_i M-2 _2p+1} Alternatively, the 3p*M+1th to (3p+3)*Mth coded symbols of the first identification part are: {AM_i0_3p,AM_i1_3p,AM_i2_3p,…,AM_i M-3 _3p,AM_i M-2 _3p,AM_i M-1 _3p, AM_i1_3p+1,AM_i2_3p+1,AM_i0_3p+1,…,AM_i M-2 _3p+1,AM_i M-1 _3p+1,AM_i M-3 _3p+1, AM_i2_3p+2,AM_i0_3p+2,AM_i1_3p+2,…,AM_i M-1 _3p+2,AM_i M-3 _3p+2,AM_i M-2 _3p+2} Alternatively, the 4p*M+1th to (4p+4)*Mth coded symbols of the first identification part are: {AM_i0_4p,AM_i1_4p,AM_i2_4p,AM_i3_4p,…,AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i M-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i M-1 _4p+3,AM_i M-4 _4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3}wherein p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
18. The communication device according to any one of claims 15 to 17, characterized in that: The AMs of the N sending logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number. N-1 ; The p*N+1th to (p+2)*Nth coded symbols of the second identification part are: {AM_i0_p,AM_i1_p,…,AM_i N-1 _p, AM_i0_p+1,AM_i1_p+1,…,AM_i N-1 _p+1} Alternatively, the 2p*N+1th to (2p+2)*Nth coded symbols of the second identification part are: {AM_i0_2p,AM_i1_2p,…,AM_i N-2 _2p,AM_i N-1 _2p, AM_i1_2p+1,AM_i0_2p+1,…,AM_i N-1 _2p+1,AM_i N-2 _2p+1} Alternatively, the 3p*N+1th to (3p+3)*Nth coded symbols of the second identification part are: {AM_i0_3p,AM_i1_3p,AM_i2_3p,…,AM_i N-3 _3p,AM_i N-2 _3p,AM_i N-1 _3p, AM_i1_3p+1,AM_i2_3p+1,AM_i0_3p+1,…,AM_i N-2 _3p+1,AM_i N-1 _3p+1,AM_i N-3 _3p+1, AM_i2_3p+2,AM_i0_3p+2,AM_i1_3p+2,…,AM_i N-1 _3p+2,AM_i N-3 _3p+2,AM_i N-2 _3p+2} Alternatively, the 4p*N+1th to (4p+4)*Nth coded symbols of the second identification part are: {AM_i0_4p,AM_i1_4p,AM_i2_4p,AM_i3_4p,…,AM_i N-4 _4p,AM_i N-3 _4p,AM_i N-2 _4p,AM_i N-1 _4p, AM_i1_4p+1, AM_i2_4p+1, AM_i3_4p+1, AM_i0_4p+1,…, AM_i N-3 _4p+1,AM_i N-2 _4p+1,AM_i N-1 _4p+1,AM_i N-4 _4p+1,AM_i2_4p+2, AM_i3_4p+2, AM_i0_4p+2, AM_i1_4p+2,…, AM_i N-2 _4p+2,AM_i N-1 _4p+2,AM_i N-4 _4p+2,AM_i N-3 _4p+2,AM_i3_4p+3, AM_i0_4p+3, AM_i1_4p+3, AM_i2_4p+3,…, AM_i N-1 _4p+3,AM_i N-4 _4p+3,AM_i N-3 _4p+3,AM_i N-2 _4p+3}wherein p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
19. The communication device according to any one of claims 15 to 18, characterized in that: The first AM group further includes a first padding part, the sum of the number of bits of the first padding part and the number of bits of the first identification part is an integer multiple of the size of a standard code block, and the standard code block is a code block in a transcoding mode adopted by the first communication device; The second AM group further includes a second padding part, and the sum of the number of bits of the second padding part and the number of bits of the second identification part is an integer multiple of the size of the standard code block; The number of bits of the first filling part is different from the number of bits of the second filling part.
20. The communication device according to any one of claims 15 to 19, characterized in that: M is greater than N, and the processing module is further used for: When a first target condition is met, controlling a first sending logical channel among the M sending logical channels to exit a working state, wherein the first target condition is at least one of the following conditions: The first sending logical channel fails; A physical channel corresponding to the first sending logical channel fails; A sending logical channel corresponding to the same physical channel as the first sending logical channel fails; A first receiving logical channel corresponding to the first sending logical channel in the second communication device fails; A physical channel corresponding to the first receiving logical channel in the second communication device fails; A receiving logical channel in the second communication device that corresponds to the same physical channel as the first receiving logical channel fails; The data flow of the M sending logical channels is lower than a preset flow value; The first communication device receives a first instruction, where the first instruction is used to instruct the processing module to control the first sending logical channel to exit a working state.
21. The communication device according to any one of claims 15 to 20, characterized in that: M is less than N, and the processing module is further used for: When a second target condition is met, controlling a second sending logical channel other than the M sending logical channels to resume a working state, wherein the second target condition is at least one of the following conditions: Elimination of a fault in the second sending logical channel; Elimination of a fault in a physical channel corresponding to the second sending logical channel; Eliminate a fault of a sending logical channel corresponding to the same physical channel as the second sending logical channel; Elimination of a fault in a second receiving logical channel corresponding to the second sending logical channel in the second communication device; Elimination of a fault in a physical channel corresponding to the second receiving logical channel in the second communication device; Elimination of a fault of a receiving logical channel in the second communication device corresponding to the same physical channel as the second receiving logical channel; And the data flow of the M sending logical channels is higher than the preset flow value; The first communication device receives a second instruction, where the second instruction is used to instruct the processing module to control the second sending logical channel to resume a working state.
22. A communication device, characterized in that: The communication device is a second communication device, comprising: A receiving module, configured to receive first target data sent by a first communication device on M receiving logical channels, wherein the first target data includes a first AM group, the first AM group corresponds to the M receiving logical channels, M is a positive integer, the first AM group includes a first identification part, the first identification part includes M AMs, and the M AMs correspond to the M receiving logical channels one by one; A processing module, configured to remove the first AM group from the first target data according to a first removal cycle; In a case where the number of receiving logical channels in a working state of the second communication device changes from M to N, the receiving module is further used to receive second target data sent by the first communication device on the N receiving logical channels, the second target data includes a second AM group, the second AM group corresponds to the N receiving logical channels, N is a positive integer, and N is different from M, the second AM group includes a second identification part, the second identification part includes N AMs, the N AMs correspond one-to-one to the N receiving logical channels, the order of the coding symbols of the first identification part is different from the order of the coding symbols of the second identification part, and the coding symbols are symbols under the error correction coding method adopted by the second communication device; The processing module is further configured to remove the second AM group from the second target data according to a second removal cycle.
23. The communication device according to claim 22, characterized in that The first removal period is different from the second removal period.
24. The communication device according to claim 22 or 23, characterized in that: The AMs of the M receiving logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number. M-1 ; The p*M+1th to (p+2)*Mth coded symbols of the first identification part are: {AM_i0_p,AM_i1_p,…,AM_i M-1 _p, AM_i0_p+1,AM_i1_p+1,…,AM_i M-1 _p+1} Alternatively, the 2p*M+1th to (2p+2)*Mth coded symbols of the first identification part are: {AM_i0_2p,AM_i1_2p,…,AM_i M-2 _2p,AM_i M-1 _2p, AM_i1_2p+1,AM_i0_2p+1,...,AM_i M-1 _2p+1,AM_i M-2 _2p+1} Alternatively, the 3p*M+1th to (3p+3)*Mth coded symbols of the first identification part are: {AM_i0_3p,AM_i1_3p,AM_i2_3p,...,AM_i M-3 _3p,AM_i M-2 _3p,AM_i M-1 _3p, AM_i1_3p+1,AM_i2_3p+1,AM_i0_3p+1,...,AM_i M-2 _3p+1,AM_i M-1 _3p+1,AM_i M-3 _3p+1, AM_i2_3p+2,AM_i0_3p+2,AM_i1_3p+2,...,AM_i M-1 _3p+2,AM_i M-3 _3p+2,AM_i M-2 _3p+2} Alternatively, the 4p*M+1th to (4p+4)*Mth coded symbols of the first identification part are: {AM_ix_4p,AM_i1_4p,AM_i2_4p,AM_i3_4p,…,AM_i M-4 _4p,AM_i M-3 _4p,AM_i M-2 _4p,AM_i M-1 _4p, AM_i1_4p+1,AM_i2_4p+1,AM_i3_4p+1,AM_i0_4p+1,…,AM_i M-3 _4p+1,AM_i M-2 _4p+1,AM_i M-1 _4p+1,AM_i M-4 _4p+1, AM_i2_4p+2,AM_i3_4p+2,AM_i0_4p+2,AM_i1_4p+2,…,AM_i M-2 _4p+2,AM_i M-1 _4p+2,AM_i M-4 _4p+2,AM_i M-3 _4p+2, AM_i3_4p+3,AM_i0_4p+3,AM_i1_4p+3,AM_i2_4p+3,…,AM_i M-1 _4p+3,AM_i M-4 _4p+3,AM_i M-3 _4p+3,AM_i M-2 _4p+3} Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
25. The communication device according to any one of claims 22 to 24, characterized in that: The AMs of the N receiving logical channels are AM_i0, AM_i1, ..., AM_i in ascending order of channel number. N-1 ; The p*N+1th to (p+2)*Nth coded symbols of the second identification part are: {AM_i0_p,AM_i1_3,...,AM_i N-1 _p, AM_i0_p+1,AM_i1_p+1,…,AM_i N-1 _p3+1} Alternatively, the 2p*N+1th to (2p+2)*Nth coded symbols of the second identification part are: {AM_i0_2p,AM_i1_2p,...,AM_i N-2 _2p,AM_i N-1 _2p, AM_i1_2p+1,AM_i0_2p+1,...,AM_i N-1 _2p+1,AM_i N-2 _2p+1} Alternatively, the 3p*N+1th to (3p+3)*Nth coded symbols of the second identification part are: {AM_i0_3p,AM_i1_3p,AM_i2_3p,...,AM_i N-3 _3p,AM_i N-2 _3p,AM_i N-1 _3p, AM_i1_3p+1,AM_i2_3p+1,AM_i0_3p+1,...,AM_i N-2 _3p+1,AM_i N-1 _3p+1,AM_i N-3 _3p+1, AM_i2_3p+2,AM_i0_3p+2,AM_i1_3p+2,...,AM_i N-1 _3p+2,AM_i N-3 _3p+2,AM_i N-2 _3p+2} Alternatively, the 4p*N+1th to (4p+4)*Nth coded symbols of the second identification part are: {AM_i0_4p,AM_i1_4p,AM_i2_4p,AM_i3_4p,...,AM_i N-4 _4p,AM_i N-3 _4p,AM_i N-2 _4p,AM_i N-1 _4p, AM_i1_4p+1,AM_i2_4p+1,AM_i3_4p+1,AM_i0_4p+1,…,AM_i N-3 _4p+1,AM_i N-2 _4p+1,AM_i N-1 _4p+1,AM_i N-4 _4p+1, AM_i2_4p+2,AM_i3_4p+2,AM_i0_4p+2,AM_i1_4p+2,…,AM_i N-2 _4p+2,AM_i N-1 _4p+2,AM_i N-4 _4p+2,AM_i N-3 _4p+2, AM_i3_4p+3,AM_i0_4p+3,AM_i1_4p+3,AM_i2_4p+3,…,AM_i N-1 _4p+3,AM_i N-4 _4p+3,AM_i N-3 _4p+3,AM_i N-2 _4p+3} Wherein, p is a non-negative integer, 4p+3 is a non-negative integer less than or equal to Q-1, and Q is the number of coding symbols included in an AM.
26. The communication device according to any one of claims 22 to 25, characterized in that: The first AM group further includes a first padding part, the sum of the number of bits of the first padding part and the number of bits of the first identification part is an integer multiple of the size of a standard code block, and the standard code block is a code block in a transcoding mode adopted by the first communication device; The second AM group further includes a second padding part, and the sum of the number of bits of the second padding part and the number of bits of the second identification part is an integer multiple of the size of the standard code block; The number of bits of the first filling part is different from the number of bits of the second filling part.
27. The communication device according to any one of claims 22 to 26, characterized in that: M is greater than N, and the processing module is further used for: When a third target condition is met, controlling a first receiving logical channel among the M receiving logical channels to exit a working state, wherein the third target condition is at least one of the following conditions: The first receiving logical channel fails; A physical channel corresponding to the first receiving logical channel fails; A receiving logical channel corresponding to the same physical channel as the first receiving logical channel fails; A first sending logical channel corresponding to the first receiving logical channel in the first communication device fails; A physical channel corresponding to the first sending logical channel in the first communication device fails; A transmission logical channel failure in the first communication device corresponding to the same physical channel as the first transmission logical channel; The data flow of the M receiving logical channels is lower than a preset flow value; The second communication device receives a third instruction, where the third instruction is used to instruct the processing module to control the first receiving logical channel to exit a working state.
28. The communication device according to any one of claims 22 to 27, characterized in that: M is less than N, and the processing module is further used for: When a fourth target condition is met, the second communication device controls a second receiving logical channel other than the M receiving logical channels to resume a working state, and the fourth target condition is at least one of the following conditions: Elimination of a fault in the second receiving logical channel; Elimination of a fault in a physical channel corresponding to the second receiving logical channel; Eliminate a fault of a receiving logical channel corresponding to the same physical channel as the second receiving logical channel; Elimination of a fault in a second sending logical channel corresponding to the second receiving logical channel in the first communication device; Elimination of a fault in a physical channel corresponding to the second sending logical channel in the first communication device; Elimination of a fault in a sending logical channel of the first communication device corresponding to the same physical channel as the second sending logical channel; And the data flow of the M receiving logical channels is higher than the preset flow value; The second communication device receives a fourth instruction, where the fourth instruction is used to instruct the processing module to control the second receiving logical channel to resume a working state.
Citation Information
Patent Citations
Flexible ethernet logical lane aggregation
US20170272308A1
