CODE ERROR DETECTION METHOD, DEVICE AND SYSTEM, AND COMPUTER-READABLE STORAGE MEDIUM
20190229846 ยท 2019-07-25
Inventors
Cpc classification
H04L1/00
ELECTRICITY
H04L1/0083
ELECTRICITY
International classification
Abstract
Provided are a code error detection method, device and system, and a computer-readable storage medium, which are applied to a transmitting end in a flexible Ethernet (FlexE) network structure. The method includes: checking, by the transmitting end, an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted; saving, by the transmitting end, the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame to a pre-set code error detection field in the next overhead frame; and transmitting, by the transmitting end, the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame along with the next overhead frame.
Claims
1. A code error detection method applied to a transmitting end in a flexible Ethernet (FlexE) network structure, the method comprising: checking, by the transmitting end, an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted; saving, by the transmitting end, the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame to a pre-set code error detection field in the next overhead frame; and transmitting, by the transmitting end, the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame along with the next overhead frame, wherein the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame for use by a receiving end to detect whether a code error occurs during data transfer by the transmitting end.
2. The method according to claim 1, wherein before checking, by the transmitting end, an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted, the method further comprises: setting, by the transmitting end, the code error detection field in reserved fields in the overhead frame according to a pre-set setting strategy, wherein the number of the code error detection field is at least one.
3. The method according to claim 1, wherein checking, by the transmitting end, an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted, comprises: determining, by the transmitting end, a checking start end in the information block to be transmitted, and determining a checking interval within the coverage of the current overhead frame; acquiring, by the transmitting end, sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and operating, by the transmitting end, on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking reference value corresponding to the information block to be transmitted.
4. A code error detection method applied to a receiving end in a FlexE network structure, the method comprising: when receiving an information block within the coverage of a current overhead frame, checking, by the receiving end, according to a pre-set checking strategy to acquire a checking result corresponding to the information block within the coverage of the current overhead frame; acquiring, by the receiving end, a checking reference value from a pre-set code error detection field in the next overhead frame received; and comparing, by the receiving end, the checking result with the checking reference value; and determining, by the receiving end, that there is no code error in the information block within the coverage of the received current overhead frame if the checking result is the same as the checking reference value; or determining, by the receiving end, that a code error occurs in the information block within the coverage of the received current overhead frame if the checking result is different from the checking reference value.
5. The method according to claim 4, wherein when receiving an information block within the coverage of a current overhead frame, checking, by the receiving end, according to a pre-set checking strategy to acquire a checking result corresponding to the information block within the coverage of the current overhead frame, comprises; determining, by the receiving end, a checking start end in the received information block within the coverage of the current overhead frame, and determining a checking interval within the coverage of the current overhead frame; acquiring, by the receiving end, sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and operating, by the receiving end, on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking result corresponding to the received information block.
6. A code error checking method, comprising, at a transmitting end in a flexible Ethernet (FlexE) network structure, performing a method comprising: checking, by the transmitting end, an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted; saving, by the transmitting end, the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame to a pre-set code error detection field in the next overhead frame; and transmitting, by the transmitting end, the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame along with the next overhead frame, and at a receiving end in a flexible Ethernet (FlexE) network structure, performing the method of claim 4.
7. A transmitting-end device, comprising: a first checking module, a saving module, and a transmitting module, wherein the first checking module is configured to check an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted; the saving module is configured to save the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame to a pre-set code error detection field in the next overhead frame; and the transmitting module is configured to transmit the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame along with the next overhead frame, wherein the transmitted checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame for use by a receiving end to detect whether a code error occurs during data transfer by the transmitting end.
8. The transmitting-end device according to claim 7, further comprising: a setting module configured to set the code error detection field in reserved fields in the overhead frame according to a pre-set setting strategy, wherein the number of the code error detection field is at least one.
9. The transmitting-end device according to claim 7, wherein the first checking module is configured to: determine a checking start end in the information block to be transmitted, and determine a checking interval within the coverage of the current overhead frame; acquire sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and operate on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking reference value corresponding to the information block to be transmitted.
10. A receiving-end device, comprising: a receiving module, a second checking module, an acquiring module, and a determining module, wherein the receiving module is configured to receive an information block within the coverage of a current overhead frame; the second checking module is configured to, when the receiving module receives the information block within the coverage of the current overhead frame, check according to a pre-set checking strategy to acquire a checking result corresponding to the information block within the coverage of the current overhead frame; the receiving module is further configured to receive the next overhead frame; the acquiring module is configured to acquire a checking reference value from a pre-set code error detection field in the next overhead frame received by the receiving module; and the determining module is configured to compare the checking result with the checking reference value; and determine that there is no code error in the information block within the coverage of the received current overhead frame if the checking result is the same as the checking reference value; or determine that a code error occurs in the information block within the coverage of the received current overhead frame if the checking result is different from the checking reference value.
11. The receiving-end device according to claim 10, wherein the second checking module is configured to: determine a checking start end in the received information block within the coverage of the current overhead frame, and determine a checking interval within the coverage of the current overhead frame; acquire sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and operate on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking result corresponding to the received information block.
12. A code error checking system, the system comprising a transmitting-end device and a receiving device of claim 10 in a flexible Ethernet (FlexE) network structure, wherein the transmitting-end device is configured to: check an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted; save the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame to a pre-set code error detection field in the next overhead frame; and transmit the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame along with the next overhead frame to the receiving-end device.
13. A computer-readable storage medium having stored thereon a computer program that is executed by a processor to implement the steps of the method of claim 1.
14. A computer program comprising instructions, when executed by a processor, cause the processor to implement the method of claim 1.
15. The method according to claim 2, wherein checking, by the transmitting end, an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted, comprises: determining, by the transmitting end, a checking start end in the information block to be transmitted, and determining a checking interval within the coverage of the current overhead frame; acquiring, by the transmitting end, sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and operating, by the transmitting end, on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking reference value corresponding to the information block to be transmitted.
16. The transmitting-end device according to claim 8, wherein the first checking module is configured to: determine a checking start end in the information block to be transmitted, and determine a checking interval within the coverage of the current overhead frame; acquire sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and operate on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking reference value corresponding to the information block to be transmitted.
17. The code error checking method of claim 6, wherein before checking, by the transmitting end, an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted, the method further comprises: setting, by the transmitting end, the code error detection field in reserved fields in the overhead frame according to a pre-set setting strategy, wherein the number of the code error detection field is at least one.
18. The code error checking method of claim 6, wherein when receiving an information block within the coverage of a current overhead frame, checking, by the receiving end, according to a pre-set checking strategy to acquire a checking result corresponding to the information block within the coverage of the current overhead frame, comprises; determining, by the receiving end, a checking start end in the received information block within the coverage of the current overhead frame, and determining a checking interval within the coverage of the current overhead frame; acquiring, by the receiving end, sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and operating, by the receiving end, on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking result corresponding to the received information block.
19. The code error checking method of claim 6, wherein checking, by the transmitting end, an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted, comprises: determining, by the transmitting end, a checking start end in the information block to be transmitted, and determining a checking interval within the coverage of the current overhead frame; acquiring, by the transmitting end, sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and operating, by the transmitting end, on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking reference value corresponding to the information block to be transmitted.
20. The code error checking method of claim 17, wherein checking, by the transmitting end, an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted, comprises: determining, by the transmitting end, a checking start end in the information block to be transmitted, and determining a checking interval within the coverage of the current overhead frame; acquiring, by the transmitting end, sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and operating, by the transmitting end, on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking reference value corresponding to the information block to be transmitted.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0064]
[0065]
[0066]
[0067]
[0068]
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076]
[0077]
[0078]
[0079]
DETAILED DESCRIPTION
[0080] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.
[0081] In an optical module, 100G data messages are 64/66 encoded before being transmitted, that is, 64-bit data is expanded into 66-bit data blocks, the added 2-bit data being located at the front of the 66-bit data block and serving as a start flag of the 66-bit data block; and is then transmitted from an optical port in the form of the 66-bit data blocks. Upon reception, an optical port discriminates the 66-bit data blocks from the received data stream, then recovers the original 64-bit data from the 66-bit data blocks, and reassembles same to obtain the data message.
[0082] The FlexE protocol is in a block conversion layer from 64-bit data block to 66-bit data block. Before transmitting the 66-bit data blocks, a transmitting end sorts and plans the 66-bit data blocks. As shown in
[0083] When multiple physical channels with a low bandwidth speed are bundled into a logical channel with a high bandwidth speed by using the FlexE protocol, the transmitting end transmits all the data block groups to the multiple physical channels with the low bandwidth speed on average and in a polling manner, so that the data blocks on all the physical channels are fully aligned at the time of transmission, and the overhead blocks are simultaneously inserted on all the physical channels at intervals of 1023 data block groups, thereby ensuring that the data blocks and the overhead blocks on the physical channels are fully aligned. Taking the FlexE network structure shown in
[0084] At a receiving end, each of the physical channels separately receives a data block and then determines the location of the overhead block. Each physical channel realigns the data block groups of the four physical channels using the location of the overhead block as a reference. The data block groups of the four physical channels are aligned using the location of the overhead block as a reference, and are reordered according to the inverse process of the polling allocation at the time of transmission: a first data block group after the overhead block is obtained from the first physical channel and is ordered in the front, a first data block group after the overhead block is obtained from the second physical channel and is ordered thereafter, a first data block group after the overhead block is obtained from the third physical channel and is ordered still thereafter, and a first data block group after the overhead block is obtained from the fourth physical channel and is ordered at the end; and then the above process is re-executed, a second data block group after the overhead block is obtained from the first physical channel and is ordered thereafter, a second data block group after the overhead block is obtained from the second physical channel and is ordered still thereafter, and so on, so that the data block groups of the four physical channels are reordered into a data block group of a large logical channel.
[0085] In this way, the four physical channels can be bundled to form a large logical channel. In terms of the service, the user can only perceive one large logical channel and deliver the service through the large logical channel without knowledge of the underlying four physical channels.
[0086] Based on the above example of the FlexE network structure and the data transfer manner, the following embodiments of the present invention are proposed.
[0087] Referring to
[0088] S501: checking, by the transmitting end, an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted;
[0089] S502: saving, by the transmitting end, the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame to a pre-set code error detection field in the next overhead frame; and
[0090] S503: transmitting, by the transmitting end, the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame along with the next overhead frame.
[0091] S504: when receiving the information block within the coverage of the current overhead frame, checking, by the receiving end, according to a pre-set checking strategy to acquire a checking result corresponding to the information block within the coverage of the current overhead frame;
[0092] S505: acquiring, by the receiving end, the checking reference value from the pre-set code error detection field in the next overhead frame received; and
[0093] S506: comparing, by the receiving end, the checking result with checking reference value; and determining, by the receiving end, that there is no code error in the information block within the coverage of the received current overhead frame if the checking result is the same as the checking reference value; or determining, by the receiving end, that a code error occurs in the information block within the coverage of the received current overhead frame if the checking result is different from the checking reference value.
[0094] In the technical solution shown in
[0095] An overhead block consists of a 2-bit block flag and 64-bit block contents. The block flag is located in the first 2 columns, the next 64 columns are the block contents, the block flag of the first overhead block is 10, and the block flags of the following 7 overhead blocks are 01 or SS (SS indicates that the contents are undetermined). The contents of the first overhead block are: 0x4B (8 bits, 4B in hexadecimal), C bit (1 bit, indicating adjustment control), OMF bit (1 bit, denoting an overhead frame multiframe indication), RPF bit (1 bit, denoting a remote defect indication), RES bit (1 bit, a reserved bit), FlexE group number (20 bits, denoting the serial number of a bundle group), 0x5 (4 bits, 5 in hexadecimal), and 000000 (28 bits, all being 0). 0x4B and 0x5 are the flag indications of the first overhead block, and during reception, when it is found that the corresponding locations in an overhead block are 0x4B and 0x5, it indicates that the overhead block is the first overhead block in the overhead frame, and the overhead block forms one overhead frame with the following seven consecutive overhead blocks. In the overhead frame, the reserved parts are reserved fields, which have not yet been defined, as shown by the hatched block in
[0096] With the technical solution shown in
[0097] With regard to the technical solution shown in
[0098] setting, by the transmitting end, the code error detection field in reserved fields in the overhead frame according to a pre-set setting strategy, wherein the number of the code error detection field is at least one.
[0099] Specifically, the pre-set setting strategy may be negotiated and determined in advance by the receiving end and the transmitting end, or may be set by an upper-layer system, which will not be described in this embodiment. Both the receiving end and the transmitting end know the locations of the code error detection field in the reserved fields in the overhead frame, so that the transmitting end can save the checking reference value in the code error detection field, and accordingly, the receiving end can acquire the checking reference value from the code error detection field. After the setting of the code error detection field in the reserved fields is completed, the structure of the overhead frame is as shown in
[0100] With regard to the technical solution shown in
[0101] As an example, for the transmitting end, referring to
[0102] S5011: determining, by the transmitting end, a checking start end in the information block to be transmitted, and determining a checking interval within the coverage of the current overhead frame;
[0103] S5012: acquiring, by the transmitting end, sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and
[0104] S5013: operating, by the transmitting end, on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking reference value corresponding to the information block to be transmitted.
[0105] With regard to the process shown in
[0106] in the information block to be transmitted within the coverage of the current overhead frame, starting from the first overhead block, the transmitting end takes 11 bits of data from the block, and then continues to take 11 bits of data from the block, and performs an XOR operation on the first 11 bits of data and the later 11 bits of data bit by bit, of which the operation result also has 11 bits;
[0107] thereafter, the transmitting end takes the subsequent 11 bits of data from the overhead block, and performs an XOR operation on same and the previous operation result to obtain a new operation result; and by analogy, the transmitting end continues to take the subsequent 11 bits of data from the block, and performs an XOR operation on same and the previous operation result to obtain a new operation result, until all the bits in the first overhead block are subjected to the operation. Since one overhead block or data block has a length of 66 bits, each time 11 bits of data are taken for operation, then six operations are required to complete the operations for one information block.
[0108] After the operations on the data of the first overhead block are completed, operations are performed on the operation result of the first overhead block and the data in the next data block in the same manner until the operations on the next data block are also completed, and then the process proceeds to the third data block, . . . ; after all the 102320 data blocks have been involved in the operations, the process continues to perform operations on the second overhead block in the same way, and then performs the operations on the next 102320 data block, . . . , and so on, until the operations on all the data of the 8(102320+1) information blocks are completed, so that the 11-bit operation result is obtained, which is the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame as described in
[0109] In the foregoing specific example, it can be understood that the checking start end is the start bit of the first overhead block within the coverage of the current overhead frame; the checking interval is the entire range covered by the current overhead frame, i.e. 8(102320+1) information blocks; the pre-set operation strategy is the XOR operation; and the pre-set data length is 11 bits, and therefore, the sub-intervals to be checked are data intervals divided every 11 bits within the entire range covered by the current overhead frame and starting with the start bit of the first overhead block within the coverage of the current overhead frame.
[0110] It should be noted that the foregoing specific example is only used to illustrate the process shown in
[0111] Correspondingly, for the receiving end, since the checking strategy according to which the receiving end checks is the same as the checking strategy according to which the transmitting end checks, referring to
[0112] S5041: determining, by the receiving end, a checking start end in the received information block within the coverage of the current overhead frame, and determining a checking interval within the coverage of the current overhead frame;
[0113] S5042: acquiring, by the receiving end, sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and
[0114] S5043: operating, by the receiving end, on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking result corresponding to the received information block.
[0115] It can be understood that, since the checking strategy according to which the receiving end checks is the same as the checking strategy according to which the transmitting end checks, the solution shown in
[0116] With regard to the process described in
[0117] thereafter, taking the subsequent 11 bits of data from the overhead block, and performing an XOR operation on same and the previous operation result to obtain a new operation result, and performing the XOR operation on same and the subsequent bits; . . . , and so on, until the operations on the 8(102320+1) information blocks, i.e. all the 66-bit blocks within the coverage of an overhead frame are completed. The operation result is retained, which is the checking result.
[0118] It should be noted that, since the transmitting end saves the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame in the next overhead frame, the receiving end checks the received information block within the coverage of the current overhead frame and then can compare the checking result corresponding to the received information block within the coverage of the current overhead frame with the checking reference value saved in the next overhead frame, and depending on whether the two are the same, determine whether a code error occurs during the data transfer process.
[0119] This embodiment provides a checking method applied to a transmitting end and a receiving end in a FlexE network structure, wherein the transmitting end transmits the checking information of the data to be transmitted to the receiving end, so that the receiving end can check the received data according to the checking information transmitted by the transmitting end, and can check the physical channels in the FlexE protocol, thereby improving the reliability and application value of the FlexE protocol.
[0120] Based on the same technical concept as that of the foregoing embodiment, referring to
[0121] S1101: checking, by the transmitting end, an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted;
[0122] S1102: saving, by the transmitting end, the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame to a pre-set code error detection field in the next overhead frame; and
[0123] S1103: transmitting, by the transmitting end, the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame along with the next overhead frame.
[0124] wherein the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame is used by a receiving end to detect whether a code error occurs during data transfer by the transmitting end.
[0125] As an example, before step S1101, the method may further comprise:
[0126] setting, by the transmitting end, the code error detection field in reserved fields in the overhead frame according to a pre-set setting strategy, wherein the number of the code error detection field is at least one.
[0127] Specifically, the pre-set setting strategy may be negotiated and determined in advance by the receiving end and the transmitting end, or may be set by an upper-layer system, which will not be described in this embodiment. Both the receiving end and the transmitting end know the locations of the code error detection field in the reserved fields in the overhead frame, so that the transmitting end can save the checking reference value in the code error detection field, and accordingly, the receiving end can acquire the checking reference value from the code error detection field. After the setting of the code error detection field in the reserved fields is completed, the structure of the overhead frame is as shown in
[0128] As an example, for the transmitting end, in step S1101, checking, by the transmitting end, an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted, comprises: determining, by the transmitting end, a checking start end in the information block to be transmitted, and determining a checking interval within the coverage of the current overhead frame;
[0129] acquiring, by the transmitting end, sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and
[0130] operating, by the transmitting end, on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking reference value corresponding to the information block to be transmitted.
[0131] It should be noted that, since the transmitting end saves the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame in the next overhead frame, the receiving end checks the received information block within the coverage of the current overhead frame and then can compare the checking result corresponding to the received information block within the coverage of the current overhead frame with the checking reference value saved in the next overhead frame, and depending on whether the two are the same, determine whether a code error occurs during the data transfer process.
[0132] Based on the same technical concept as that of the foregoing embodiment, referring to
[0133] S1201: when receiving an information block within the coverage of a current overhead frame, checking, by the receiving end, according to a pre-set checking strategy to acquire a checking result corresponding to the information block within the coverage of the current overhead frame;
[0134] S1202: acquiring, by the receiving end, a checking reference value from a pre-set code error detection field in the next overhead frame received; and
[0135] S1203: comparing, by the receiving end, the checking result with checking reference value; and determining, by the receiving end, that there is no code error in the information block within the coverage of the received current overhead frame if the checking result is the same as the checking reference value; or determining, by the receiving end, that a code error occurs in the information block within the coverage of the received current overhead frame if the checking result is different from the checking reference value.
[0136] As an example, for the receiving end, since the checking strategy according to which the receiving end checks is the same as the checking strategy according to which the transmitting end checks, for step S1201, when receiving an information block within the coverage of a current overhead frame, the receiving end performing checking according to a pre-set checking strategy, to acquire a checking result corresponding to the information block within the coverage of the current overhead frame, may specifically comprise:
[0137] determining, by the receiving end, a checking start end in the received information block within the coverage of the current overhead frame, and determining a checking interval within the coverage of the current overhead frame;
[0138] acquiring, by the receiving end, sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and
[0139] operating, by the receiving end, on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking result corresponding to the received information block.
[0140] It can be understood that, since the checking strategy according to which the receiving end checks is the same as the checking strategy according to which the transmitting end checks, the checking start end, the checking interval, the pre-set data length, and the pre-set operation strategy used by the receiving end in the process of checking are consistent with those used by the transmitting end in the process of checking, which will not be described in detail in this embodiment.
[0141] It should be noted that, since the transmitting end saves the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame in the next overhead frame, the receiving end checks the received information block within the coverage of the current overhead frame and then can compare the checking result corresponding to the received information block within the coverage of the current overhead frame with the checking reference value saved in the next overhead frame, and depending on whether the two are the same, determine whether a code error occurs during the data transfer process.
[0142] Based on the same technical concept as that of the foregoing embodiment, referring to
[0143] the first checking module 1301 is configured to check an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted;
[0144] the saving module 1302 is configured to save the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame to a pre-set code error detection field in the next overhead frame; and
[0145] the transmitting module 1303 is configured to transmit the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame along with the next overhead frame,
[0146] wherein the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame is used by a receiving end to detect whether a code error occurs during data transfer by the transmitting end.
[0147] As an example, referring to
[0148] As an example, the first checking module 1301 is specifically configured to:
[0149] determine a checking start end in the information block to be transmitted, and determine a checking interval within the coverage of the current overhead frame;
[0150] acquire sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and
[0151] operate on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking reference value corresponding to the information block to be transmitted.
[0152] Based on the same technical concept as that of the foregoing embodiment, referring to
[0153] the receiving module 1501 is configured to receive an information block within the coverage of a current overhead frame;
[0154] the second checking module 1502 is configured to, when the receiving module 1501 receives the information block within the coverage of the current overhead frame, check according to a pre-set checking strategy to acquire a checking result corresponding to the information block within the coverage of the current overhead frame;
[0155] the receiving module 1501 is further configured to receive the next overhead frame;
[0156] the acquiring module 1503 is configured to acquire a checking reference value from a pre-set code error detection field in the next overhead frame received by the receiving module 1501; and
[0157] the determining module 1504 is configured to compare the checking result with the checking reference value, and determine that there is no code error in the information block within the coverage of the received current overhead frame if the checking result is the same as the checking reference value; or determine that a code error occurs in the information block within the coverage of the received current overhead frame if the checking result is different from the checking reference value.
[0158] As an example, the second checking module 1502 is specifically configured to:
[0159] determine a checking start end in the received information block within the coverage of the current overhead frame, and determine a checking interval within the coverage of the current overhead frame;
[0160] acquire sub-intervals to be checked starting from the checking start end within the checking interval according to a pre-set data length; and
[0161] operate on data within the sub-intervals to be checked according to a pre-set operation strategy sequentially to acquire the checking result corresponding to the received information block.
[0162] Based on the same technical concept as that of the foregoing embodiment, referring to
[0163] the transmitting end 130 is configured to: check an information block to be transmitted within the coverage of a current overhead frame according to a pre-set checking strategy to acquire a checking reference value corresponding to the information block to be transmitted;
[0164] save the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame to a pre-set code error detection field in the next overhead frame; and
[0165] transmit the checking reference value corresponding to the information block to be transmitted within the coverage of the current overhead frame along with the next overhead frame to the receiving end; and
[0166] the receiving end 150 is configured to: when receiving an information block within the coverage of the current overhead frame, check according to a pre-set checking strategy to acquire a checking result corresponding to the information block within the coverage of the current overhead frame;
[0167] acquire the checking reference value from the pre-set code error detection field in the next overhead frame received; and
[0168] compare the checking result with the checking reference value; and determine that there is no code error in the information block within the coverage of the received current overhead frame if the checking result is the same as the checking reference value; or determine that a code error occurs in the information block within the coverage of the received current overhead frame if the checking result is different from the checking reference value.
[0169] A skilled person in the art will understand that an embodiment of the disclosure may be provided as a method, a system, or a computer program product. Therefore, the present invention may adopt hardware embodiments, software embodiments, or embodiments with a combination of software and hardware. Moreover, the present invention may adopt the form of a computer program product that is implemented on one or more computer-usable storage mediums (including but not limited to a disk memory, an optical memory, and the like) that include computer-usable program code.
[0170] The present invention is described by referring to the flow charts and/or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present invention. It should be understood that each flow and/or block in the flow charts and/or block diagrams and any combination of the flows and/or blocks in the flow charts and/or block diagrams may be implemented with computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a dedicated-purpose computer, an embedded processor or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of a computer or other programmable data processing devices generate a means for implementing the functions specified in one or more flows of the flowcharts and/or one or more blocks of the block diagrams.
[0171] These computer program instructions may also be stored in a computer-readable memory which may guide a computer or other programmable data processing devices to operate in a specific manner, so that the instructions stored in the computer-readable memory generate an article of manufacture including an instruction means which can implement the functions specified in one or more flows of the flowcharts and/or one or more blocks of the block diagrams.
[0172] These computer program instructions may also be loaded in a computer or other programmable data processing devices, so that a series of operation steps are executed by the computer or other programmable devices to realize computer-implemented processing and thus the instructions executed by the computer or other programmable devices provide steps for implementing the functions specified in one or more flows of the flow charts and/or one or more blocks of the block diagrams.
[0173] On this basis, an embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program that is executed by a processor to implement the steps of the method for the transmitting end, or the steps of the method for the receiving end.
[0174] The foregoing descriptions are merely illustrative of the preferred embodiments of the invention but not intended to limit the scope of the present invention.
INDUSTRIAL APPLICABILITY
[0175] In the solutions provided in the embodiments of the present invention, the checking reference value of the data to be transferred is transferred by the transmitting end to the receiving end, so that the receiving end can check the received data according to the checking reference value transferred by the transmitting end, and can perform code error detection on the physical channel in the FlexE protocol, thereby improving the reliability and application value of the FlexE protocol.