This application relates to the communication field, and in particular, to a communication method, apparatus, and system, a storage medium, and a computer program product.
At present, a rate of a high-speed Ethernet interface is much higher than that of a single lane. To match the rate of the high-speed Ethernet interface, a plurality of lanes are used to transmit in parallel a data stream sent through the high-speed Ethernet interface.
For example, it is assumed that the rate of the high-speed Ethernet interface is 400 gigabits per second (G/s), and the rate of the single lane is 25 G/s. In this case, 16 lanes are needed to transmit in parallel a data stream sent through the high-speed Ethernet interface. To be specific, the data stream is divided into 16 sub-data streams at the high-speed Ethernet interface, and the 16 sub-data streams are sent.
In a process of implementing this application, the inventor finds that a current technology has at least the following disadvantages.
The foregoing solution for sending the data stream in parallel further has many drawbacks. For example, the foregoing solution is not suitable for sending information that has a relatively high requirement on time stability and reliability. Therefore, a new method for sending the information is required.
This application provides a communication method, apparatus, and system, a storage medium, and a computer program product, to provide a new method for sending information. The technical solutions are described below.
According to a first aspect, this application provides a communication method. The method includes: obtaining a data stream, where the data stream includes an alignment marker (AM) group, the AM group includes a plurality of AMs, the plurality of AMs include a first AM, the first AM includes a first boundary part and a first padding part, the first padding part includes a part or all of first information, the first information is used to indicate a specified function, and the first boundary part is used to determine a location of the first AM in the data stream; and sending the data stream.
For each of the AMs in the AM group, a recipient of the data stream does not use pad information included in a padding part of each of the AMs, and the pad information is useless information for the recipient. Therefore, when the data stream is sent, pad information included in the first padding part of the first AM in the AM group may be replaced with the first information or some content of the first information, so that the first padding part includes the first information or some content of the first information. In this way, when receiving the data stream, the recipient obtains the first information in the AM group, thereby implementing a new manner of sending information. Because the first information is sent by using the padding part of the AM, the recipient performs the specified function based on the first information, and does not have any influence on the data stream, so that an out-of-band bandwidth resource is well used to send the first information, thereby reducing a waste of the bandwidth resource. In addition, in the data stream, because the AMs are distributed in the data stream at regular intervals, that is, the AMs in the data stream are periodically sent, time for sending the AMs is stable. In this way, information that has a relatively high requirement on time stability and reliability may be sent by using the padding part of the AM.
In a possible embodiment, there are a plurality of obtained data streams, each of the data streams corresponds to one or more AMs in the AM group, and each of the data streams includes one or more AMs corresponding to each of the data streams. The one or more AMs corresponding to the data stream are distributed in the data stream at regular intervals. Therefore, by including the first information in the AMs in the AM group, and the information that has a relatively high requirement on time stability and reliability may be sent.
In another possible embodiment, the first information is associated with a first data stream, the plurality of data streams include the first data stream, an AM in the first data stream includes the first information, and the first AM is an AM in the first data stream. Because the first information is associated with the first data stream, the first information is carried in the AM in the first data stream. In this way, the recipient obtains the first information in the AM in the first data stream, and then can learn that the first information is associated with the first data stream, so that the recipient can more easily identify and parse the first information.
In another possible embodiment, the plurality of data streams include M data streams, an AM in the M data streams includes the first information, the first AM is an AM in the M data streams, and M is an integer greater than 0. In this way, padding parts of the plurality of AMs may be used to include the first information, and may be used to transmit the first information with a relatively large amount of data, so that bandwidth resources of the padding parts of the plurality of AMs are well used.
In another possible embodiment, a padding part of each AM in the M data streams includes m fields, m is an integer greater than 0, and the first information includes at least one piece of sub-information. m first fields include m pieces of first sub-information, and m second fields include m pieces of second sub-information. Them first fields are fields included in a jth AM in an ith data stream, and the m second fields are fields included in a jth AM in an (i+1)th data stream, where i=1, 2, . . . , or M−1, j=1, 2, . . . , or N, N is a quantity of AMs in the ith data stream, and the m pieces of first sub-information and the m pieces of second sub-information are 2m continuous pieces of sub-information included in the first information.
That is, the AM in each of the data streams is used to include the first information in a specified order, and the specified order is: for a jth AM in each of the data streams, a jth AM in a first data stream is used to include m continuous pieces of sub-information in the first information, a jth AM in a second data stream is used to include m continuous pieces of sub-information in the first information, . . . , and a jth AM in an Mth data stream is used to include m continuous pieces of sub-information in the first information. That is, the first information is included in the specified order. In this way, it is convenient for the recipient to obtain different parts of content of the first information in different AMs, and combine the different parts of content into the first information.
In another possible embodiment, M fields include M continuous pieces of sub-information, and the M fields include an nth field in a jth AM in each data stream in the M data streams, where n=1, 2, . . . , or m, and the first information includes the M pieces of sub-information. That is, the AM in each of the data streams is used to include the first information in a specified order, and the specified order is: for jth AMs in the M data streams, that is, M jth AMs, first fields in the M jth AMs are used to include M continuous pieces of sub-information in the first information, second fields in the M jth AMs are used to include M continuous pieces of sub-information in the first information, . . . , and mth fields in the M jth AMs are used to include M continuous pieces of sub-information in the first information. That is, the first information is included in the specified order. In this way, it is convenient for the recipient to obtain different parts of content of the first information in different AMs, and combine the different parts of content into the first information.
In another possible embodiment, the m fields in the padding part of each of the AMs include a unique pad (UP) and/or a pad. Because pad information included in the UP and the pad is not used by the recipient, the pad information included in the UP and/or the pad is replaced with the first information, so that the UP and/or the pad include/includes the first information used to indicate the specified function, and a resource is well used to transmit information useful to the recipient.
In another possible embodiment, the AM group is obtained. The AM group includes the first AM, and the first padding part of the first AM includes the first information or the part of the first information. The AM group is inserted into a second data stream to obtain the data stream. In this way, it is ensured that the AM group includes the first information.
In another possible embodiment, when the AM group is inserted into the data stream, and the inserted AM group includes the first AM, in the data stream, content carried in the first padding part of the first AM is replaced with the first information or the part of the first information. In this way, it is ensured that the AM group includes the first information.
In another possible embodiment, the first AM further includes a first identification part, and the first identification part is used to indicate a data stream corresponding to the first AM. In this way, different data streams are identified by using the first identification part.
According to a second aspect, this application provides a communication method. The method includes: receiving a data stream, where the data stream includes an alignment marker (AM) group, the AM group includes a plurality of AMs, the plurality of AMs include a first AM, the first AM includes a first boundary part and a first padding part, the first padding part includes a part or all of first information, the first information is used to indicate a specified function, and the first boundary part is used to determine a location of the first AM in the data stream; and obtaining the first information in the AM group.
For each of the AMs in the AM group, a recipient of the data stream does not use pad information included in a padding part of each of the AMs, and the pad information is useless information for the recipient. Therefore, in the data stream, pad information included in the first padding part of the first AM in the AM group may be replaced with the first information or some content of the first information, so that the first padding part includes the first information or some content of the first information. In this way, when the data stream is received, the first information in the AM group is obtained, thereby implementing a new manner of sending information. Because the padding part of the AM is used to include the first information, the specified function is performed based on the first information after the data stream is received, without any influence on the data stream, so that an out-of-band bandwidth resource is well used to send the first information, thereby reducing a waste of the bandwidth resource. In addition, in the data stream, because the AMs are distributed in the data stream at regular intervals, that is, a sender sends the AMs in the data stream periodically, time for sending the AMs is stable. In this way, information that has a relatively high requirement on time stability and reliability may be sent by using the padding part of the AM.
In a possible embodiment, there are a plurality of received data streams, each of the data streams corresponds to one or more AMs in the AM group, and each of the data streams includes one or more AMs corresponding to each of the data streams. The one or more AMs corresponding to the data stream are distributed in the data stream at regular intervals. Therefore, by including the first information in the AMs in the AM group, and the information that has a relatively high requirement on time stability and reliability may be sent.
In another possible embodiment, the first information is associated with a first data stream, the plurality of data streams include the first data stream, an AM in the first data stream includes the first information, and the first AM is an AM in the first data stream. Because the first information is associated with the first data stream, the first information is carried in the AM in the first data stream. In this way, the first information in the AM in the first data stream is obtained, and then that the first information is associated with the first data stream can be learned, to more easily identify and parse the first information.
In another possible embodiment, the plurality of data streams include M data streams, an AM in the M data streams includes the first information, the first AM is an AM in the M data streams, and M is an integer greater than 0. In this way, padding parts of the plurality of AMs may be used to include the first information, and may be used to transmit the first information with a relatively large amount of data, so that bandwidth resources of the padding parts of the plurality of AMs are well used.
In another possible embodiment, a padding part of each AM in the M data streams includes m fields, m is an integer greater than 0, and the first information includes at least one piece of sub-information. m first fields include m pieces of first sub-information, and m second fields include m pieces of second sub-information. Them first fields are fields included in a jth AM in an ith data stream, and the m second fields are fields included in a jth AM in an (i+1)th data stream, where i=1, 2, . . . , or M−1, j=1, 2, . . . , or N, N is a quantity of AMs in the ith data stream, and the m pieces of first sub-information and the m pieces of second sub-information are 2m continuous pieces of sub-information included in the first information.
That is, the AM in each of the data streams is used to include the first information in a specified order, and the specified order is: for a jth AM in each of the data streams, a jth AM in a first data stream is used to include m continuous pieces of sub-information in the first information, a jth AM in a second data stream is used to include m continuous pieces of sub-information in the first information, . . . , and a jth AM in an Mth data stream is used to include m continuous pieces of sub-information in the first information. That is, the first information is included in the specified order. In this way, it is convenient for the recipient to obtain different parts of content of the first information in different AMs, and combine the different parts of content into the first information.
In another possible embodiment, M fields include M continuous pieces of sub-information, and the M fields include an nth field in a jth AM in each data stream in the M data streams, where n=1, 2, . . . , or m, and the first information includes the M pieces of sub-information. That is, the AM in each of the data streams is used to include the first information in a specified order, and the specified order is: for jth AMs in the M data streams, that is, M jth AMs, first fields in the M jth AMs are used to include M continuous pieces of sub-information in the first information, second fields in the M jth AMs are used to include M continuous pieces of sub-information in the first information, . . . , and mth fields in the M jth AMs are used to include M continuous pieces of sub-information in the first information. That is, the first information is included in the specified order. In this way, it is convenient for the recipient to obtain different parts of content of the first information in different AMs, and combine the different parts of content into the first information.
In another possible embodiment, the m fields in the padding part of each of the AMs include a unique pad (UP) and/or a pad. Because pad information included in the UP and the pad is not used by the recipient, the pad information included in the UP and/or the pad is replaced with the first information, so that the UP and/or the pad include/includes the first information used to indicate the specified function, and a resource is well used to transmit information useful to the recipient.
In another possible embodiment, after the plurality of data streams are sorted, the first information in the AM group in the plurality of sorted data streams is obtained. Because the first information is obtained in the AM group in the sorted data streams, that is, the first information may be obtained before decoding, when sending the first information, the sender may not need to perform forward error correction (FEC) encoding on the first information, so that a computing resource used by the sender can be reduced.
In another possible embodiment, the first information is obtained in at least one first data block and at least one second data block when the at least one first data block and the at least one second data block are obtained by decoding the plurality of sorted data streams, where the at least one first data block and the at least one second data block jointly include the first information. Because the first information is obtained in the decoded data blocks, that is, the first information may be obtained after decoding, when sending the first information, the sender may perform FEC encoding on the first information, so that the first information having a relatively high safety requirement can be transmitted.
In another possible embodiment, the first information is obtained in an AM group in one data stream when the at least one first data block and the at least one second data block are interleaved to obtain the data stream. Because the first information is obtained in the AM group in the data stream obtained by interleaving, that is, the first information may be obtained after decoding, when sending the first information, the sender may perform FEC encoding on the first information, so that the first information having a relatively high safety requirement can be transmitted.
In another possible embodiment, the first AM further includes a first identification part, and the first identification part is used to indicate a data stream including the first AM. In this way, different data streams are identified by using the first identification part.
According to a third aspect, this application provides a communication apparatus, configured to perform the method according to any one of the first aspect or the possible embodiments of the first aspect. Specifically, the apparatus includes units configured to perform the method according to any one of the first aspect or the possible embodiments of the first aspect.
According to a fourth aspect, this application provides a communication apparatus, configured to perform the method according to any one of the second aspect or the possible embodiments of the second aspect. Specifically, the apparatus includes units configured to perform the method according to any one of the second aspect or the possible embodiments of the second aspect.
According to a fifth aspect, this application provides a communication device. The device includes a processor and a computer program, and the processor is configured to execute the computer program, so that the device completes the method according to any one of the first aspect or the possible embodiments of the first aspect.
According to a sixth aspect, this application provides a communication device. The device includes a processor and a computer program, and the processor is configured to execute the computer program, so that the device completes the method according to any one of the second aspect or the possible embodiments of the second aspect.
According to a seventh aspect, this application provides a computer program product. The computer program product includes a computer program, and the computer program is loaded by a computer to implement the method according to any one of the first aspect, the second aspect, the possible embodiments of the first aspect, or the possible embodiments of the second aspect.
According to an eighth aspect, this application provides a computer-readable storage medium, configured to store a computer program. The computer program is loaded by a processor to perform the method according to any one of the first aspect, the second aspect, the possible embodiments of the first aspect, or the possible embodiments of the second aspect.
According to a ninth aspect, this application provides a chip, including a processor. The processor is configured to run computer instructions, to perform the method according to any one of the first aspect, the second aspect, the possible embodiments of the first aspect, or the possible embodiments of the second aspect. The computer instructions may be in a memory inside the processor or an external memory.
According to a tenth aspect, this application provides a communication system, including the apparatus according to the third aspect and/or the apparatus according to the fourth aspect, or including the apparatus according to the fifth aspect and/or the apparatus according to the sixth aspect.
Embodiments of this application are further described in detail with reference to the accompanying drawings.
Refer to
Optionally, there are X physical channels between the first device 101 and the second device 102, where X is an integer greater than 0, to implement the communication between the first device 101 and the second device 102. Clearly, there are other manners for the communication between the first device 101 and the second device 102, and the manners are not enumerated herein. The X physical channels may be between one or more Ethernet interfaces of the first device 101 and one or more Ethernet interfaces of the second device 102.
Refer to
For example, refer to
The first device 101 may send a data stream to the second device 102. A process of sending the data stream may be as follows:
For a target data stream that needs to be sent at the first reconciliation sublayer, the first device 101 inserts, in the first PCS, an AM set into the target data stream, where the AM set includes Z AMs. The data stream with the inserted AM set is divided into Z data streams. The Z data streams are in a one-to-one correspondence with the Z AMs, each of the data streams includes an AM corresponding to each of the data streams, and each of the data streams corresponds to a PCS lane corresponding to the AM in each of the data streams, so that the Z data streams are also in a one-to-one correspondence with the Z PCS lanes. The Z data streams are input in parallel into the first PMA layer, and a position of each of the data streams in the order corresponds to a position of the PCS lane, in the order, corresponding to each of the data streams. At the first PMA layer, the Z data streams are combined into X data streams, and the X data streams are input into the first PMD layer. At the first PMD layer, the X data streams are sent to the second device 102 through the X physical channels. In addition to the foregoing combination operation performed on the Z data streams, another operation may be further performed at the first PMA layer. Another operation is not described one by one herein.
At the second PMD layer, the second device 102 receives the X data streams on the X physical channels, and inputs the X data streams into the second PMA layer. At the second PMA layer, the Z data streams are restored based on the X data streams, and the Z data streams are input into the second PCS. In the second PCS, an AM included in each data stream in the Z data streams is determined, the Z data streams are aligned based on the AM included in each of the data streams, and the PCS lane corresponding to each of the data streams is determined based on the AM included in each of the data streams. The Z aligned data streams are sorted based on the PCS lane corresponding to each of the data streams, where a position of each of the data streams in the order is the same as a position of the PCS lane, in the order, corresponding to each of the data streams. The Z data streams after being sorted are combined into one data stream, the AM set is removed from the combined data stream, the target data stream is restored based on the data stream from which the AM set is removed, and the target data stream is input into the second reconciliation sublayer.
Refer to
For example, as shown in
In this way, for the second device 102 and each data stream in the Z data streams, in the second PCS, the second device 102 determines the location of the AM in each of the data streams by identifying the boundary part included in the AM in each of the data streams, to obtain the AM in each of the data streams. A time span for obtaining the AM in each of the data streams is relatively short, and there is a large amount of other data between two adjacent AMs in each of the data streams. Therefore, all AMs obtained within the time span belong to a same AM set, and then the PCS lane corresponding to each of the data streams is determined based on the identification part included in the AM in each of the data streams.
Optionally, for each of the AMs in the AM set, boundary parts of the AMs include a same bit pattern. The bit pattern is used to determine a location of the AM. Therefore, the second device 102 may determine the AM in each data stream in the Z data streams based on the bit pattern included in the boundary part of each of the AMs. Bit patterns included in identification parts of the AMs are different from each other, and bit patterns included in identification parts of the AMs correspond to different PCS lanes. Therefore, the second device 102 determines the PCS lane corresponding to each of the data streams based on the bit pattern included in the identification part of each of the AMs.
Refer to an AM set shown in
The identification part of each of the AMs includes six fields, that is, a unique marker (UM) 0, a UM 1, a UM 2, a UM 3, a UM 4, and a UM 5. Refer to
For each of the AMs, the padding part of the AM includes three padding fields, that is, a unique pad (UP) 0, a UP 1, and a UP 2. The padding part of the AM may further include a pad, or may not include a pad. For example, refer to the eight AMs shown in
Optionally, for each of the foregoing AM sets, a size of the AM set is an integer multiple of a specified size. For example, the specified size may be 257 bits, that is, the size of the AM set is an integer multiple of 257 bits, for example, may be 8×257 bits or 16×257 bits.
The first device 101 performs, in the first PCS, different processing operations on the target data stream to obtain the Z data streams. These processing operations are as follows:
Refer to
The second device 102 performs, in the second PCS, different processing operations on the Z data streams to obtain the target data stream. These processing operations are as follows:
Refer to
The second device 102 performs lane sorting on the aligned Z data streams. A process of lane sorting may be as follows: The second device 102 determines, based on the identification part included in the AM in each of the data streams, the PCS lane corresponding to each of the data streams, and sorts the Z data streams based on the PCS lane corresponding to each of the data streams. For the sorted Z data streams, an order among the Z data streams is the same as the order among the Z data streams in the first PCS.
Then, the second device 102 deinterleaves the sorted Z data streams to obtain the first code word and the second code word, and performs FEC decoding on the first code word and the second code word to obtain the first data block and the second data block. Interleaving after FEC decoding is performed on the first data block and the second data block to obtain one data stream, and the data stream includes the AM set. The AM set is removed from the data stream, the data stream from which the AM set is removed is descrambled, inverse transcoding is performed on the descrambled data stream, and decoding and rate matching are performed on the data stream on which inverse transcoding is performed, to restore the target data stream.
In some embodiments, in a process in which the second device 102 performs FEC decoding on the first code word and the second code word, the second device 102 checks whether there is error information in the first code word and the second code word. When error information is found, the error information may be corrected, or the error information is not corrected.
It can be learned from the foregoing process in which the second device 102 processes the Z data streams in the second PCS that the second device 102 does not use the pad information included in the padding part of each of the AMs. As a result, for the second device 102, the pad information included in the padding part of each of the AMs is useless information, causing a waste of network resources. To well use a network resource, this application provides a new method for sending information. For detailed implementation of the method, refer to implementation of any one of the following embodiments.
Refer to
Operation 601: A first device obtains a data stream, where the data stream includes an AM group, the AM group includes a plurality of AMs, the plurality of AMs include a first AM, the first AM includes a first padding part, the first padding part includes a part or all of first information, and the first information is used to indicate a specified function.
The first information includes one or more of an initialization vector of a physical layer encryption algorithm, port management information, time synchronization information, and the like. The specified function includes one or more of a physical layer encryption function indicated by the initialization vector, a port management function indicated by the port management information, a time synchronization function indicated by the time synchronization information, and the like.
Optionally, the specified function is a function that needs to be performed by a recipient of the first information. For the recipient of the first information, the recipient needs to use the first information to implement one or more functions. In other words, the first information is not useless information.
Optionally, the first AM further includes a first boundary part and/or a first identification part. The first boundary part is used to determine a location of the first AM in the data stream, and the first identification part is used to identify a first data stream corresponding to the first AM and/or a PCS lane corresponding to the first AM.
The first padding part includes m fields, where m is an integer greater than 0, and the m fields jointly include the first information or some content of the first information. The m fields may be all or some of fields included in the first padding part, and the m fields are fields agreed upon between the first device and a second device in advance.
For example, the first padding part includes three UPs. All or some of the three UPs include the first information or some content of the first information. Alternatively, the first padding part may further include a pad. When the first padding part includes the pad, the first padding part includes four fields. The four fields include the three UPs and the pad, and one or more fields in the four fields include the first information or some content of the first information.
Optionally, for the plurality of AMs in the AM group, there is at least one AM in the plurality of AMs, the first AM is an AM in the at least one AM, and a padding part of the at least one AM includes the first information.
In operation 601, the first device may obtain the data stream in the following first manner or second manner. The first manner and the second manner are described below.
In the first manner, the first device obtains the AM group, where the padding part of the at least one AM in the AM group includes the first information; and inserts the AM group into the data stream.
Before the AM group is inserted into the data stream, the at least one AM in the AM group already includes the first information, and the data stream is a data stream obtained after the first device performs scrambling in a first PCS.
Refer to
An operation of the first device to obtain the AM group may be as follows: The first device generates the AM group, where the padding part of the at least one AM in the AM group includes the first information;
In the second manner, after inserting the AM group into the data stream, the first device replaces, in the data stream, the content carried in the padding part of the at least one AM in the AM group with the first information, so that the padding part of the at least one AM includes the first information.
During embodiment, for each AM in the at least one AM, for example, for the first AM, the first device replaces, in the data stream, content carried in the first padding part of the first AM with the first information or some content of the first information.
Refer to
Alternatively, refer to
It can be learned from the foregoing descriptions that the AM group may include the first information before FEC encoding. In this way, the first information may be encoded during FEC encoding, to improve safety during transmission of the first information. Alternatively, the AM group may include the first information after FEC encoding. In this way, FEC encoding does not need to be performed on the first information, thereby reducing an occupied computing resource.
Optionally, the at least one AM may include the first information in the following several manners. The manners are described below.
Manner 1: A padding part of each AM in the at least one AM includes a different part of the first information. In other words, the padding part of the at least one AM jointly includes the first information.
For the padding part of each AM, for example, of the first AM, all or some of fields in the first padding part of the first AM include some content of the first information.
When the at least one AM includes one AM, the AM is the first AM, and in this case, the first AM carries the whole first information. A data amount of the first information may be less than or equal to a size of the padding part of the first AM.
Manner 2: The at least one AM may be divided into a plurality of groups. For each AM group, the AM group includes one or more AMs, and the one or more AMs jointly include the first information. In other words, the at least one AM includes a plurality of pieces of first information that are the same.
For example, it is assumed that the at least one AM includes a first AM group and a second AM group. The first AM group includes one or more AMs. A padding part of each AM in the first AM group includes a different part of the first information. In other words, the padding part of the AM in the first AM group jointly includes the first information. The second AM group includes one or more AMs. A padding part of each AM in the second AM group includes a different part of the first information. In other words, the padding part of the AM in the second AM group jointly includes the first information. In this way, the at least one AM includes two same pieces of first information.
For the first information having a high safety requirement, the manner 2 may be used, that is, the at least one AM is used to include a plurality of same pieces of first information. In this way, during transmission of the data stream, even if the first information included in an AM group is lost, the second device can still receive the first information included in another AM group, thereby improving safety during transmission of the first information.
The manner 1 and the manner 2 are merely two examples for including the first information in the at least one AM. During embodiment, there may be another manner of including the first information in the at least one AM. Details are not described herein.
In a manner, for each AM in the at least one AM, the padding part of the AM includes at least one field, and all or some of fields in the at least one field are used to include the first information or some content of the first information.
Optionally, the data stream obtained in operation 601 includes the Z data streams. Each of the data streams corresponds to one or more AMs in the AM group, and each of the data streams includes one or more AMs corresponding to each of the data streams. For each of the data streams, each AM included in the data stream belongs to a different AM set inserted by the first device. Therefore, the AM group includes one or more AM sets inserted by the first device.
For example, refer to
In operation 601, the at least one AM may include the following two types of AMs. The two types of AMs are described below.
For a first type, the at least one AM includes the AM corresponding to the first data stream. In this case, the first information is associated with the first data stream, the Z data streams include the first data stream, and the first AM is an AM corresponding to the first data stream.
Optionally, the at least one AM is entirely in the first data stream.
For the first type of AMs, the at least one AM may include the first information in the manner 1 or the manner 2. The two manners of including detailed content of the first information are described below.
When the at least one AM includes the first information in the manner 1, the padding part of the at least one AM jointly includes the first information. For each AM in the at least one AM, m fields in the padding part of the AM may be used to include some content of the first information, where m is an integer greater than 0. The m fields may be all fields included in the padding part, or may be some of the fields included in the padding part.
The first information includes a plurality of pieces of sub-information. The m fields in the padding part of the AM include m continuous pieces of sub-information, and the m pieces of sub-information is sub-information in the first information. During embodiment, it is assumed that a quantity of AMs in the first data stream is N, where N is an integer greater than 0. That is, the at least one AM includes N AMs, and padding parts of the N AMs include N×m fields in total. The N×m fields include N×m continuous pieces of sub-information, and the N×m pieces of sub-information are all sub-information included in the first information, so that the at least one AM jointly includes the first information.
For example, refer to
In this manner, an operation of the first device to replace the content carried in the padding part of the at least one AM with the first information may be as follows: The first device separately replaces the content carried in the N×m fields with the N×m pieces of sub-information included in the first information. For example,
Optionally, for the foregoing replacement operation, the first device may replace, before inserting the AM group into the data stream, the content carried in the padding part of the at least one AM with the first information, or replace, after inserting the AM group into the data stream, the content carried in the padding part of the at least one AM with the first information.
When the at least one AM includes the first information in the manner 2, the padding part of the at least one AM includes a plurality of pieces of first information that are the same. The at least one AM includes a plurality of groups of AMs. For each AM group, the AM group includes one or more AMs, and the one or more AMs jointly include the first information.
For detailed content of the first information jointly included in the one or more AMs, refer to the detailed content of the first information jointly included in the at least one AM in the manner 1 in a case of the first type of AMs. Details are not described herein again.
For a second type, the Z data streams include M data streams, and the at least one AM includes an AM in the M data streams. That is, the AM in the M data streams includes the first information, the first AM is an AM in the M data streams, and M is an integer greater than 0.
For the second type of AMs, the at least one AM may include the first information in the manner 1 or the manner 2. The two manners of including detailed content of the first information are described below.
When the at least one AM includes the first information in the manner 1, the padding part of the at least one AM jointly includes the first information. For each AM in the at least one AM, m fields in the padding part of the AM may be used to include some content of the first information. The m fields may be all fields included in the padding part, or may be some of the fields included in the padding part.
Each data stream in the M data stream includes N AMs, where N is an integer greater than 0. The padding part of the at least one AM includes M×N×m fields, the first information includes M×N×m pieces of sub-information, and the M×N×m fields separately include the M×N×m pieces of sub-information in the first information in the following manner 1 or manner 2. The manner 1 and the manner 2 are described below.
Manner 1: m first fields include m pieces of first sub-information, and m second fields include m pieces of second sub-information, where the m first fields are fields included in a jth AM in an ith data stream, the m second fields are fields included in a jth AM in an (i+1)th data stream, i=1, 2, . . . , or M−1, j=1, 2, . . . , or N, and the m pieces of first sub-information and the m pieces of second sub-information are 2m continuous pieces of sub-information included in the first information.
The jth AM in the ith data stream and the jth AM in the (i+1)th data stream belong to a same AM set.
For example, refer to
In this way, three fields in a padding part of the AM 11 are used to include the sub-information 1, the sub-information 2, and the sub-information 3, three fields in a padding part of the AM 12 are used to include the sub-information 4, the sub-information 5, and the sub-information 6, three fields in a padding part of the AM 21 are used to include the sub-information 7, the sub-information 8, and the sub-information 9, and three fields in a padding part of the AM 22 are used to include the sub-information 10, the sub-information 11, and the sub-information 12.
In this manner, the operation of the first device to replace the content carried in the padding part of the at least one AM with the first information may be as follows:
For one AM in the at least one AM, the first device obtains, in the first information, m continuous pieces of sub-information corresponding to the AM, and replaces content carried in m fields in a padding part of the AM with the m pieces of sub-information. The first device repeats the replacement process, and an order of replacing AMs is a jth AM in a first data stream, a jth AM in a second data stream, . . . , and a jth AM in an Mth data stream, where a value of j is 1, 2, . . . , or N sequentially.
During embodiments of implementation, the first device starts to obtain m continuous pieces of sub-information in a first piece of sub-information included in the first information, and form fields included in a padding part of a first AM corresponding to the first data stream, replaces content carried in the m fields with the m obtained pieces of sub-information. m continuous pieces of sub-information are obtained in remaining sub-information included in the first information, and for m fields included in a padding part of a first AM corresponding to the second data stream, content carried in the m fields is replaced with the m obtained pieces of sub-information, and so on. m continuous pieces of sub-information are obtained in remaining sub-information included in the first information, and for m fields included in a padding part of a first AM corresponding to the Mth data stream, content carried in the m fields is replaced with the m obtained pieces of sub-information.
m continuous pieces of sub-information are obtained in remaining sub-information included in the first information, and for m fields included in a padding part of a second AM corresponding to the first data stream, content carried in the m fields is replaced with the m obtained pieces of sub-information. The foregoing process is repeated until last m pieces of sub-information included in the first information are obtained, and for m fields included in a padding part of an Nth AM corresponding to the Mth data stream, content carried in the m fields is replaced with the m obtained pieces of sub-information.
For example,
Manner 2: M fields include M continuous pieces of sub-information, where the M fields include an nth field in a jth AM in each data stream in the M data streams, n=1, 2, . . . , or m, and the first information includes the M pieces of sub-information.
jth AMs in data streams in the M data streams belong to a same AM set.
For example, refer to
In this case, a first field in a padding part of the AM 11 and a first field in a padding part of the AM 12 are used to include the sub-information 1 and the sub-information 2 respectively. A second field in the padding part of the AM 11 and a second field in the padding part of the AM 12 are used to include the sub-information 3 and the sub-information 4 respectively. A third field in the padding part of the AM 11 and a third field in the padding part of the AM 12 are used to include the sub-information 5 and the sub-information 6 respectively. A first field in a padding part of the AM 21 and a first field in a padding part of the AM 22 are used to include the sub-information 7 and the sub-information 8 respectively. A second field in the padding part of the AM 21 and a second field in the padding part of the AM 22 are used to include the sub-information 9 and the sub-information 10 respectively. A third field in the padding part of the AM 21 and a third field in the padding part of the AM 22 are used to include the sub-information 11 and the sub-information 12 respectively.
In this manner, the operation of the first device to replace the content carried in the padding part of the at least one AM with the first information may be as follows:
The first device obtains, in the first information, M fields corresponding to M pieces of sub-information, where the M fields include the nth field in a padding part of the jth AM in each of the data streams, a value of j is 1, 2, . . . , or N sequentially, and a value of n is 1, 2, . . . , or m sequentially; and replaces content carried in the M fields with the M pieces of sub-information.
During embodiments of implementation, M continuous pieces of sub-information start to be obtained in a first piece of sub-information included in the first information, and M fields are determined. The M fields include a first field in a padding part of a first AM corresponding to each of the data streams, and content carried in the M fields is replaced with the M pieces of sub-information. The first device obtains M continuous pieces of sub-information in remaining sub-information included in the first information, and determines M fields. The M fields include a second field in the padding part of the first AM corresponding to each of the data streams, and content carried in the M fields is replaced with the M pieces of sub-information, and so on. The first device obtains M continuous pieces of sub-information in remaining sub-information included in the first information, and determines M fields. The M fields include an mth field in the padding part of the first AM corresponding to each of the data streams, and content carried in the M fields is replaced with the M pieces of sub-information.
The first device obtains M continuous pieces of sub-information in remaining sub-information included in the first information, and determines M fields. The M fields include a first field in a padding part of a second AM corresponding to each of the data streams, and content carried in the M fields is replaced with the M pieces of sub-information. The foregoing process is repeated until last M pieces of sub-information included in the first information are obtained, and M fields are determined. The M fields include an mth field in a padding part of an Nth AM corresponding to each of the data streams, and content carried in the M fields is replaced with the M pieces of sub-information.
For example,
When the at least one AM includes the first information in the manner 2, the at least one AM includes a plurality of pieces of first information that are the same. The at least one AM includes a plurality of groups of AMs. For each AM group, the AM group includes one or more AMs, and the one or more AMs jointly include the first information.
For detailed content of the first information jointly included in the one or more AMs, refer to the detailed content of the first information jointly included in the at least one AM in the manner 1 in a case of the second type of AMs. Details are not described herein again.
Operation 602: The first device sends the data stream to the second device.
Refer to
In this embodiment of this application, because the second device does not use the pad information included in the padding part of each of the AMs in the AM group, for the second device, the pad information is useless information, and the padding part of each of the AMs is wasted. Therefore, the first device may use the padding part of the at least one AM in the AM group to include the first information, and then send, to the second device, the data stream including the AM group. In this way, the second device receives the data stream, and can obtain the first information in the AM group, thereby implementing a new manner of sending information. Because the padding part of the AM is used to include the first information, there is not any influence on a useful part of the data stream, so that an out-of-band bandwidth resource is well used to send the first information. In addition, in each of the data streams, because the AMs are distributed in the data stream at regular intervals, that is, the first device sends the AMs in the data stream periodically, time for sending the AMs is stable. In this way, information that has a relatively high requirement on time stability and reliability may be sent by using the padding part of the AM.
Refer to
Operation 701: A second device receives a data stream, where the data stream includes an AM group, the AM group includes a plurality of AMs, the plurality of AMs include a first AM, the first AM includes a first padding part, the first padding part includes a part or all of first information, and the first information is used to indicate a specified function.
Optionally, the first AM further includes a first boundary part and/or a first identification part. The first boundary part is used to determine a location of the first AM in the data stream, and the first identification part is used to identify a first data stream corresponding to the first AM and/or a PCS lane corresponding to the first AM.
Optionally, for the plurality of AMs in the AM group, there is at least one AM in the plurality of AMs, the first AM is an AM in the at least one AM, and a padding part of the at least one AM includes the first information.
The padding part of the at least one AM includes detailed content of the first information. For details, refer to related content in operation 601 in the method 600 shown in
Refer to
Operation 702: The second device obtains the first information in the AM group.
The at least one AM may include the following two types of AMs. The two types of AMs are described below.
For a first type, the at least one AM includes the AM in the first data stream. In this case, the first information is associated with the first data stream, the Z data streams include the first data stream, and the first AM is an AM in the at least one AM. In this way, when obtaining the first data stream, the second device obtains the first information in the padding part of the at least one AM in the first data stream.
The first data stream includes N AMs, that is, the at least one AM includes the N AMs.
Optionally, the at least one AM may include the first information in the foregoing manner 1 or manner 2. Embodiments of implementation processes in which the second device obtains the first information in the two manners are described below.
When the at least one AM includes the first information in the manner 1, the padding part of the at least one AM jointly includes the first information, the padding part of the at least one AM includes N×m fields in total, and the N×m fields include N×m continuous pieces of sub-information. In operation 702, the second device obtains the N×m continuous pieces of sub-information in the N×m fields, to obtain the first information.
For example, refer to
When the at least one AM includes the first information in the manner 2, the at least one AM includes a plurality of groups of AMs. For each AM group, the AM group includes one or more AMs, and the one or more AMs jointly include the first information. The second device obtains the first information in one or more groups of AMs in the plurality of groups of AMs.
For any group of AMs, for a detailed implementation process in which the second device obtains the first information in the AM group, refer to the detailed implementation process in which the second device obtains the first information in the padding part of the at least one AM in the manner 1 in a case of the first type of AMs. Details are not described herein again.
For a second type, the Z data streams include M data streams, and the at least one AM includes an AM in the M data streams. In this way, when obtaining the Z data streams, the second device obtains the first information in the padding part of the at least one AM in the Z data streams.
For the M data streams, each of the data streams includes N AMs, and the at least one AM includes M×N AMs in total.
Optionally, the at least one AM may include the first information in the foregoing manner 1 or manner 2. Embodiments of implementation processes in which the second device obtains the first information in the two manners are described below.
When the at least one AM includes the first information in the manner 1, the padding part of the at least one AM jointly includes the first information.
The first information includes M×N×m pieces of sub-information, and the padding part of the at least one AM includes M×N×m fields. The M×M×m fields separately include the M×N×m pieces of sub-information in the first information in the foregoing manner 1 or manner 2. The processes in which the second device obtains the first information in the foregoing manner 1 or manner 2 are described below.
When the M×N×m fields include the M×N×m pieces of sub-information in the first information in the manner 1, the second device obtains m continuous pieces of sub-information in a padding part of a jth AM in an ith data stream, where i=1, 2, . . . , or M, and j=1, 2, . . . , or N. The second device repeats the foregoing process until the entire first information is obtained.
During embodiments of implementation, the second device obtains m pieces of sub-information in a padding part of a first AM in a first data stream, obtains m pieces of sub-information in a first AM in a second data stream, . . . , and obtains m pieces of sub-information in a first AM in an Mth data stream. m pieces of sub-information are obtained in a second AM in the first data stream. The foregoing process is repeated until m pieces of sub-information are obtained in an Nth AM in the Mth data stream, to obtain the first information.
For example, refer to
When the M×N×m fields include the M×N×m pieces of sub-information in the first information in the manner 2, the second device determines M fields, where the M fields include an nth field in a jth AM in each data stream in the M data streams, j=1, 2, . . . , or N, and n=1, 2, . . . , or m, and obtains the M continuous pieces of sub-information in the M fields. The foregoing process is repeated until the entire first information is obtained.
For example, refer to
Two fields are determined. The two fields include a first field in a padding part of the AM 21 and a first field in a padding part of the AM 22, and the sub-information 7 and the sub-information 8 are obtained in the two fields. Two fields are determined. The two fields include a second field in the padding part of the AM 21 and a second field in the padding part of the AM 22, and the sub-information 9 and the sub-information 10 are obtained in the two fields. Two fields are determined. The two fields include a third field in the padding part of the AM 21 and a third field in the padding part of the AM 22, and the sub-information 11 and the sub-information 12 are obtained in the two fields.
When the at least one AM includes the first information in the manner 2, the at least one AM includes a plurality of groups of AMs. For each AM group, the AM group includes one or more AMs, and the one or more AMs jointly include the first information. The second device obtains the first information in one or more groups of AMs in the plurality of groups of AMs.
For any group of AMs, for a detailed implementation process in which the second device obtains the first information in the AM group, refer to the detailed implementation process in which the second device obtains the first information in the padding part of the at least one AM in the manner 1 in a case of the second type of AMs. Details are not described herein again.
In operation 702, in a second PCS of the second device, the second device may obtain the first information in the AM group in the following three different cases. Each of the three different cases is described below.
Refer to
Refer to
After performing lane sorting and before deinterleaving the sorted Z data streams, the second device obtains the first information in the AM group in the sorted Z data streams. After obtaining the first information, the second device deinterleaves the sorted Z data streams to obtain at least one first code word and at least one second code word. FEC decoding is performed on the at least one first code word and the at least one second code word to obtain at least one first data block and at least one second data block. Interleaving after FEC decoding is performed on the at least one first data block and the at least one second data block to obtain one data stream. The data stream includes the AM set. The AM set is removed from the data stream, the data stream from which the AM set is removed is descrambled, inverse transcoding is performed on the descrambled data stream, and decoding and rate matching are performed on the data stream on which inverse transcoding is performed, to restore the target data stream. A target data stream is input into a second reconciliation sublayer.
After sorting the aligned Z data stream lanes, the second device obtains an AM included in each data stream in the Z data streams, and identifies the AM included in each of the data streams, to obtain the first information in the AM group in the sorted Z data streams.
In the first case, the first information is obtained in the AM group in the sorted Z data streams, that is, the first information is obtained before FEC decoding is performed. In this way, the first information does not need to be decoded, reducing occupation of a computing resource. Correspondingly, when sending the first information, the first device does not need to perform FEC encoding on the first information, further reducing occupation of a computing resource of the first device.
Refer to
In this case, refer to
After obtaining the at least one first data block and the at least one second data block, and before performing interleaving, after FEC decoding, on the at least one first data block and the at least one second data block to obtain one data stream, the second device obtains the first information in the at least one first data block and the at least one second data block. After obtaining the first information, the second device performs interleaving, after FEC decoding, on the at least one first data block and the at least one second data block to obtain one data stream. The data stream includes the AM group. The second device removes the AM set from the data stream, descrambles the data stream from which the AM set is removed, performs inverse transcoding on the descrambled data stream, and decodes and performs rate matching on the data stream on which inverse transcoding is performed, to restore the target data stream. A target data stream is input into a second reconciliation sublayer.
Refer to
In this case, refer to
Before obtaining the data stream and removing the AM group from the data stream, the second device obtains the first information in the AM group in the data stream. After obtaining the first information, the second device removes the AM group from the data stream. The data stream from which the AM group is removed is descrambled, inverse transcoding is performed on the descrambled data stream, and decoding and rate matching are performed on the data stream on which inverse transcoding is performed, to restore the target data stream. A target data stream is input into a second reconciliation sublayer.
In the second case or the third case, the first information is obtained in the AM group after FEC decoding is performed. Correspondingly, when sending the first information, the first device may perform FEC encoding on the first information, to improve safety during transmission of the first information.
In this embodiment of this application, because the second device does not use the pad information included in the padding part of each of the AMs in the AM group, for the second device, the pad information is useless information, and the padding part of each of the AMs is wasted. Therefore, for the AM group included in the data stream received by the second device, a padding part of at least one AM in the AM group is used to include the first information. In this way, the second device receives the data stream, and can obtain the first information in the AM group, thereby implementing a new manner of sending information. Because the padding part of the AM is used to include the first information, there is not any influence on a useful part of the data stream, so that an out-of-band bandwidth resource is well used to send the first information. In addition, in each of the data streams, because the AMs are distributed in the data stream at regular intervals, that is, the first device sends the AMs in the data stream periodically, time for sending the AMs is stable. In this way, information that has a relatively high requirement on time stability and reliability may be sent by using the padding part of the AM.
Refer to
Optionally, for an embodiment of a detailed implementation process in which the processing unit 801 obtains the data stream, refer to related content in operation 601 in the method 600 shown in
Optionally, for an embodiment of a detailed embodiment process in which the sending unit 802 sends the data stream, refer to related content in operation 602 of the method 600 shown in
Optionally, there are a plurality of obtained data streams, each of the data streams corresponds to one or more AMs in the AM group, and each of the data streams includes one or more AMs corresponding to each of the data streams.
Optionally, the first information is associated with a first data stream, the plurality of data streams include the first data stream, an AM in the first data stream includes the first information, and the first AM is an AM in the first data stream.
Optionally, the plurality of data streams include M data streams, an AM in the M data streams includes the first information, the first AM is an AM in the M data streams, and M is an integer greater than 0.
Optionally, a padding part of each AM in the M data streams includes m fields, m is an integer greater than 0, and the first information includes at least one piece of sub-information.
m first fields include m pieces of first sub-information, and m second fields include m pieces of second sub-information. The m first fields are fields included in a jth AM in an ith data stream, and them second fields are fields included in a jth AM in an (i+1)th data stream, where i=1, 2, . . . , or M−1, j=1, 2, . . . , or N, N is a quantity of AMs in the ith data stream, and the m pieces of first sub-information and them pieces of second sub-information are 2m continuous pieces of sub-information included in the first information.
Optionally, for detailed content about the m first fields including the m pieces of first sub-information and the m second fields including the m pieces of second sub-information, refer to related content in operation 601 in the method 600 shown in
Optionally, M fields include M continuous pieces of sub-information, and the M fields include an nth field in a jth AM in each data stream in the M data streams, where n=1, 2, . . . , or m, and the first information includes the M pieces of sub-information.
Optionally, for detailed content about the M fields including the M continuous pieces of sub-information, refer to related content in operation 601 in the method 600 shown in
Optionally, the m fields in the padding part of each of the AMs include a unique pad UP and/or a pad Pad.
Optionally, the processing unit 801 is configured to:
obtain the AM group, where the AM group includes the first AM, and the first padding part of the first AM includes the first information or the part of the first information; and insert the AM group into a second data stream to obtain the data stream.
Optionally, the processing unit 801 is configured to:
when the AM group is inserted into the data stream, and the inserted AM group includes the first AM, replace, in the data stream, content carried in the first padding part of the first AM with the first information or the part of the first information.
Optionally, for an embodiment of a detailed implementation process in which the processing unit 801 replaces the content carried in the first padding part with the first information or the part of the first information, refer to related content in operation 601 in the method 600 shown in
Optionally, the first AM further includes a first identification part, and the first identification part is used to indicate a data stream corresponding to the first AM.
In this embodiment of this application, for each of the AMs in the AM group, a recipient of the data stream does not use pad information included in a padding part of each of the AMs, and the pad information is useless information for the recipient. Therefore, when the data stream is sent, the processing unit may replace pad information included in the first padding part of the first AM in the AM group with the first information or some content of the first information, so that the first padding part includes the first information or some content of the first information. In this way, when receiving the data stream, the recipient obtains the first information in the AM group, thereby implementing a new manner of sending information. Because the sending unit uses the padding part of the AM to send the first information, the recipient performs the specified function based on the first information, without any influence on the data stream, so that an out-of-band bandwidth resource is well used to send the first information, thereby reducing a waste of the bandwidth resource. In addition, in the data stream, because the AMs are distributed in the data stream at regular intervals, that is, the sending unit sends the AMs in the data stream periodically, time for sending the AMs is stable. In this way, information that has a relatively high requirement on time stability and reliability may be sent by using the padding part of the AM.
Refer to
Optionally, for an embodiment of a detailed implementation process in which the receiving unit 901 receives the data stream, refer to related content in operation 701 in the method 700 shown in
Optionally, for an embodiment of a detailed implementation process in which the processing unit 902 obtains the first information, refer to related content in operation 702 in the method 700 shown in
Optionally, there are a plurality of received data streams, each of the data streams corresponds to one or more AMs in the AM group, and each of the data streams includes one or more AMs corresponding to each of the data streams.
Optionally, the first information is associated with a first data stream, the plurality of data streams include the first data stream, an AM in the first data stream includes the first information, and the first AM is an AM in the first data stream.
Optionally, the plurality of data streams include M data streams, an AM in the M data streams includes the first information, the first AM is an AM in the M data streams, and M is an integer greater than 0.
Optionally, a padding part of each AM in the M data streams includes m fields, m is an integer greater than 0, and the first information includes at least one piece of sub-information. m first fields include m pieces of first sub-information, and m second fields include m pieces of second sub-information. Them first fields are fields included in a jth AM in an ith data stream, and them second fields are fields included in kith AM in an (i+1)th data stream, where i=1, 2, . . . , or M−1, j=1, 2, . . . , or N, N is a quantity of AMs in the ith data stream, and the m pieces of first sub-information and the m pieces of second sub-information are 2m continuous pieces of sub-information included in the first information.
Optionally, for detailed content about the m first fields including the m pieces of first sub-information and the m second fields including the m pieces of second sub-information, refer to related content in operation 601 in the method 600 shown in
Optionally, M fields include M continuous pieces of sub-information, and the M fields include an nth field in a jth AM in each data stream in the M data streams, where n=1, 2, . . . , or m, and the first information includes the M pieces of sub-information.
Optionally, for detailed content about the M fields including the M continuous pieces of sub-information, refer to related content in operation 601 in the method 600 shown in
Optionally, the m fields in the padding part of each of the AMs include a unique pad UP and/or a pad Pad.
Optionally, there are a plurality of received data streams, and the processing unit 902 is configured to:
Optionally, for an embodiment of a detailed implementation process in which the processing unit 902 obtains the first information in the AM groups in the plurality of sorted data streams, refer to related content in operation 702 in the method 700 shown in
Optionally, the processing unit 902 is configured to:
Optionally, for an embodiment of a detailed implementation process in which the processing unit 902 obtains the first information in the at least one first data block and the at least one second data block, refer to related content in operation 702 in the method 700 shown in
Optionally, the processing unit 902 is configured to:
Optionally, for an embodiment of a detailed implementation process in which the processing unit 902 obtains the first information in the AM group in the data stream, refer to related content in operation 702 in the method 700 shown in
Optionally, the first AM further includes a first identification part, and the first identification part is used to indicate a data stream including the first AM.
In this embodiment of this application, for each of the AMs in the AM group, a recipient of the data stream does not use pad information included in a padding part of each of the AMs, and the pad information is useless information for the recipient. Therefore, in the data stream, pad information included in the first padding part of the first AM in the AM group may be replaced with the first information or some content of the first information, so that the first padding part includes the first information or some content of the first information. In this way, when the data stream is received, the first information in the AM group is obtained, thereby implementing a new manner of sending information. Because the padding part of the AM is used to include the first information, the specified function is performed based on the first information after the data stream is received, without any influence on the data stream, so that an out-of-band bandwidth resource is well used to send the first information, thereby reducing a waste of the bandwidth resource. In addition, in the data stream, because the AMs are distributed in the data stream at regular intervals, that is, a sender sends the AMs in the data stream periodically, time for sending the AMs is stable. In this way, information that has a relatively high requirement on time stability and reliability may be sent by using the padding part of the AM.
The communication device 1000 is an apparatus having a hardware structure.
In some embodiments, the communication device 1000 may be configured to implement a functional module in the apparatus 800 in
The communication device 1000 may be further configured to implement a function of the first device according to any one of the foregoing embodiments.
The processor 1001 is, for example, a general-purpose central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural-network processing unit (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits configured to implement the solutions of this application. For example, the processor 1001 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or another programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. The processor may implement or execute various logical blocks, modules, and circuits described with reference to content disclosed in embodiments of this application. Alternatively, the processor may be a combination of processors implementing a computing function, for example, a combination of one or more microprocessors, or a combination of a DSP and a microprocessor.
The internal connection 1002 may include a path for transmitting information between the foregoing components. The internal connection 1002 may be a board, a bus, or the like. The bus may be a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, or the like. The bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used for representation in
The at least one network interface 1003 uses any apparatuses such as a transceiver, and is configured to communicate with another device or a communication network. The communication network may be an Ethernet, a radio access network, a wireless local area network (WLAN), or the like. The network interface 1003 may include a wired communication interface, and may further include a wireless communication interface. Specifically, the network interface 1003 may be an Ethernet interface, a fast Ethernet (FE) interface, a gigabit Ethernet (GE) interface, an asynchronous transfer mode (ATM) interface, a wireless local area network WLAN interface, a cellular network communication interface, or a combination thereof. The Ethernet interface may be an optical interface, an electrical interface, or a combination thereof. In this embodiment of this application, the network interface 1003 may be configured for communication between the communication device 1000 and another device.
In a specific embodiment, in an embodiment, the processor 1001 may include one or more CPUs, for example, a CPU 0 and a CPU 1 in
In a specific embodiment, in an embodiment, the communication device 1000 may include a plurality of processors, for example, the processor 1001 and a processor 1007 in
In a specific embodiment, in an embodiment, the communication device 1000 may further include an output device and an input device. The output device communicates with the processor 1001, and may display information in a plurality of manners. For example, the output device may be a liquid crystal display (LCD), a light-emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. When communicating with the processor 1001, the input device may receive a user input in a plurality of manners. For example, the input device may be a mouse, a keyboard, a touchscreen device, or a sensing device.
In a specific embodiment, the communication device 1000 in this embodiment of this application may correspond to the foregoing embodiments, for example, the first device in the embodiments corresponding to
The communication device 1100 is an apparatus having a hardware structure.
In some embodiments, the communication device 1100 may be configured to implement a functional module in the apparatus 900 in
The communication device 1100 may be further configured to implement a function of the second device according to any one of the foregoing embodiments.
The processor 1101 is, for example, a general-purpose central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural-network processing unit (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits configured to implement the solutions of this application. For example, the processor 701 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or another programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. The processor may implement or execute various logical blocks, modules, and circuits described with reference to content disclosed in embodiments of this application. Alternatively, the processor may be a combination of processors implementing a computing function, for example, a combination of one or more microprocessors, or a combination of a DSP and a microprocessor.
The internal connection 1102 may include a path for transmitting information between the foregoing components. The internal connection 1102 may be a board, a bus, or the like. The bus may be a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, or the like. The bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used for representation in
The at least one network interface 1103 uses any apparatuses such as a transceiver, and is configured to communicate with another device or a communication network. The communication network may be an Ethernet, a radio access network, a wireless local area network (WLAN), or the like. The network interface 1103 may include a wired communication interface, and may further include a wireless communication interface. Specifically, the network interface 1103 may be an Ethernet interface, a fast Ethernet (FE) interface, a gigabit Ethernet (GE) interface, an asynchronous transfer mode (ATM) interface, a wireless local area network WLAN interface, a cellular network communication interface, or a combination thereof. The Ethernet interface may be an optical interface, an electrical interface, or a combination thereof. In this embodiment of this application, the network interface 1103 may be configured for communication between the communication device 1100 and another device.
In a specific embodiment, in an embodiment, the processor 1101 may include one or more CPUs, for example, a CPU 0 and a CPU 1 in
In a specific embodiment, in an embodiment, the communication device 1100 may include a plurality of processors, for example, the processor 1101 and a processor 1107 in
In a specific embodiment, in an embodiment, the communication device 1100 may further include an output device and an input device. The output device communicates with the processor 1101, and may display information in a plurality of manners. For example, the output device may be a liquid crystal display (LCD), a light-emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. When communicating with the processor 1101, the input device may receive a user input in a plurality of manners. For example, the input device may be a mouse, a keyboard, a touchscreen device, or a sensing device.
In a specific embodiment, the communication device 1100 in this embodiment of this application may correspond to the foregoing embodiments, for example, the second device in the embodiments corresponding to
Optionally, the communication devices in
Optionally, all or some of the routing devices, switching devices, or servers mentioned in this application may alternatively each be a logical functional module or a virtual functional module.
Refer to
The communication apparatus 800 shown in
A sequence of operations in the description, claims, and accompanying drawings of this application is not limited to a specific sequence or order in the descriptions. It should be understood that data used in such a way are simultaneous or a sequence thereof may be altered in appropriate circumstances, so that the embodiments that are described can be implemented in a sequence other than the sequence illustrated or described in the accompanying drawings.
A person of ordinary skill in the art may understand that all or some of the operations in the foregoing embodiments may be implemented by hardware or a program instructing related hardware. The program may be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.
The foregoing descriptions are merely optional embodiments of this application, and are not intended to limit this application. Any modification, equivalent replacement, or improvement made without departing from the principle of this application shall fall within the protection scope of this application.
Number | Date | Country | Kind |
---|---|---|---|
202110099756.6 | Jan 2021 | CN | national |
202110185523.8 | Feb 2021 | CN | national |
This application is a continuation of International Application No. PCT/CN2022/073651 filed on Jan. 25, 2022, which claims priority to Chinese Patent Application No. 202110185523.8, filed on Feb. 10, 2021, and Chinese Patent Application No. 202110099756.6, filed on Jan. 25, 2021. All of the aforementioned patent applications are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2022/073651 | Jan 2022 | US |
Child | 18357398 | US |