Data processing method, network side equipment and storage medium

By identifying and processing error blocks in the PCS data format on the receiving end, the adverse effects caused by error blocks in the receiving end data sequence are solved, and the correctness and reliability of the data sequence are ensured.

CN119030658APending Publication Date: 2024-11-26ZTE CORP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310611791.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

When the receiving end receives a data sequence encapsulated in the PCS data format, when an error block occurs, the prior art cannot effectively process it, resulting in adverse effects of the data sequence.

Method used

By receiving the data sequence, the error block in the first flag block, data block or second flag block is determined, and the data sequence is processed according to the type of block, including restoring or replacing the inner layer block or small particle layer service, and extracting or discarding overhead , perform cyclic redundancy checks to determine the type and location of the error block.

Benefits of technology

Effectively handle error blocks to avoid their adverse effects on the data sequence and ensure the correctness and reliability of the data sequence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030658A_ABST
    Figure CN119030658A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method, network side equipment and a storage medium, belongs to the technical field of communication, and is used for processing errors occurring in a data sequence, the method comprises the following steps: receiving the data sequence, the data sequence comprising a plurality of types of blocks, the types of the blocks comprising a first flag block, a data block and a second flag block; determining a block with an error from the first flag block, the data block or the second flag block; and processing the data sequence according to the type of the block corresponding to the block with the error.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a data processing method, a network side device and a storage medium. Background Art

[0002] Providing low-latency, hard-isolated bearer technology for low-rate, fine-grained services is a current service requirement. One of the current bearer solutions for low-rate or fine-grained services is to use the physical coding sublayer (PCS) data format defined by IEEE 802.3 as the encapsulation format for low-rate, fine-grained services. The PCS data format consists of a start block (S block), L data blocks (D blocks), and an end block (T block). Among them, a 64-bit / 66-bit (64B / 66B) block includes a 2-bit sync header and a 64-bit payload. When the 2-bit sync header is 0b01, it indicates that the 64B / 66B block is a data block. When the 2-bit sync header is 0b10, it indicates that the 64B / 66B block is a control block, such as an S block and a T block.

[0003] In some scenarios, the data format of some business data is also the PCS data format (inner layer), that is, the data format of the business data is also composed of an S block, a D block and a T block. When encapsulating the business data, the business data of this data format is encapsulated in the PCS encapsulation format and then encapsulated into the channel layer (outer layer). Among them, due to abnormal conditions such as bit errors in the underlying layer, at least one of the S block, D block and T block in the outer layer may have an error and become an error block, and the data in the corresponding S block, D block and T block in the inner layer will also be affected. However, at present, when the receiving end receives a data sequence encapsulated in the PCS data format, it will use the data normally regardless of whether there is an error block in the data sequence, thereby causing adverse effects. Therefore, how to deal with the error block in the data sequence encapsulated in the PCS data format received by the receiving end is a technical problem that needs to be solved by those skilled in the art. Summary of the invention

[0004] The embodiments of the present application provide a data processing method, a network-side device, and a storage medium, which can solve the problem of how to process error blocks when a data sequence encapsulated in a PCS data format is received at a receiving end.

[0005] In a first aspect, an embodiment of the present application provides a method for processing data, the method comprising: receiving a data sequence, the data sequence comprising multiple types of blocks, the types of the blocks comprising a first marker block, a data block, and a second marker block; determining an erroneous block from the first marker block, the data block, or the second marker block; and processing the data sequence according to the type of block corresponding to the erroneous block.

[0006] Optionally, determining a block with errors from the first flag block, the data block or the second flag block includes: determining a block with synchronization header errors from the first flag block, the data block or the second flag block as the block with errors; or determining a block with type domain errors from the first flag block or the second flag block as the block with errors.

[0007] Optionally, before processing the data sequence according to the type of block corresponding to the erroneous block, the method further includes: determining the type of the block according to an expected position of a 64-bit / 66-bit block.

[0008] Optionally, determining the type of the block according to the expected position of the 64-bit / 66-bit block includes: determining the type of the previous 64-bit / 66-bit block or the type of the next 64-bit / 66-bit block according to the type of the current 64-bit / 66-bit block, or determining the type of the 64-bit / 66-bit block according to whether the 64-bit / 66-bit block contains overhead, or determining the type of the 64-bit / 66-bit block according to a data sequence structure, or determining the type of the 64-bit / 66-bit block according to a data sequence length.

[0009] Optionally, the type of the block further includes an error block, and the method further includes: determining the error block as a block with an error.

[0010] Optionally, the data sequence is processed according to the type of block corresponding to the erroneous block, including: if the block received at the expected position is the second marker block in the data sequence, but what is actually received is the erroneous block in the data sequence, then when the second marker block restores the content of the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced by the erroneous block; if the block received at the expected position is the data block in the data sequence, but what is actually received is the erroneous block, then when the data block is restored to the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced by the erroneous block.

[0011] Optionally, the data sequence is processed according to the type of block corresponding to the erroneous block, including: if the block received at the expected position is the first marker block in the data sequence, but the block actually received is an erroneous block, then the data sequence is discarded or other blocks of the data sequence are continued to be processed or the first marker block is used to restore the content of the inner block or small particle layer service, and the corresponding inner block or small particle layer service is replaced with the erroneous block.

[0012] Optionally, the first marker block contains overhead, and the processing of the data sequence according to the type of block corresponding to the erroneous block includes: when the type of block corresponding to the erroneous block is the first marker block, extracting the overhead from the first marker block; if the cyclic redundancy check in the overhead is correct, extracting the overhead or payload in the first marker block for processing; if the cyclic redundancy check in the overhead is wrong, discarding the data sequence or replacing the first marker block with an erroneous block, or discarding the overhead and continuing to process the payload.

[0013] Optionally, the data sequence is processed according to the type of block corresponding to the block with error, including: when the type of block corresponding to the block with error is the first marker block, extracting the data content of the first marker block for processing; or replacing the block with an error block; when the first marker block restores the content of the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced with the error block.

[0014] Optionally, the data sequence is processed according to the type of block corresponding to the block with error, including: when the type of block corresponding to the block with error is the second marker block, extracting the data content of the second marker block for processing; or replacing the block with the error block; when the second marker block restores the content of the inner layer block or the small particle layer service, the corresponding inner layer block or the small particle layer service is replaced with the error block.

[0015] Optionally, the second flag block contains overhead, and the processing of the data sequence according to the type of the block corresponding to the block with error includes:

[0016] In a case where the type of block corresponding to the erroneous block is the second marker block, the overhead is extracted from the second marker block; if the cyclic redundancy check in the overhead is correct, the overhead or payload in the second marker block is extracted for processing; if the cyclic redundancy check in the overhead is wrong, the data sequence is discarded or the second marker block is replaced by the erroneous block, or the overhead is discarded and the payload continues to be processed.

[0017] Optionally, the data sequence is processed according to the type of block corresponding to the block with error, including: when the type of block corresponding to the block with error is a data block and the data block is the first data block in the data sequence, extracting overhead from the first data block, and if the cyclic redundancy check in the overhead is correct, extracting the overhead or payload in the first data block for processing; if the cyclic redundancy check in the overhead is wrong, replacing the data block with an error block, or discarding the overhead and continuing to process the payload; when there are errors in data blocks other than the first data block in the data sequence, extracting data content of the data block for processing, or replacing the data block with an error block or when the data block restores the inner block or small particle layer service, the corresponding inner block or the small particle layer service is replaced with an error block.

[0018] Optionally, the data format of the business data corresponding to the data sequence is a physical coding sublayer data format, the business data includes multiple data blocks, the first marker block and the second marker block of the data sequence contain at least one data block of the business data, and after determining an erroneous block from the first marker block, the data block and the second marker block, the method further includes: marking the data content in the data block corresponding to the business data corresponding to the erroneous block as erroneous.

[0019] Optionally, after processing the data sequence according to the type of block corresponding to the erroneous block, it also includes: when the first flag block, the data block or the second flag block restores the inner block or the small particle layer service, if the corresponding inner block or the small particle layer service has a type domain error or a synchronization header error, the corresponding inner block or the small particle layer service is replaced with an error block.

[0020] Optionally, the first marker block is a start block, and the second marker block is an end block.

[0021] In a second aspect, an embodiment of the present application provides a data processing device, which includes: a receiving module for receiving a data sequence, the data sequence including multiple types of blocks, the types of the blocks including a first marker block, a data block, and a second marker block; an execution module for determining an erroneous block from the first marker block, the data block, or the second marker block; and a processing module for processing the data sequence according to the type of block corresponding to the erroneous block.

[0022] In a third aspect, an embodiment of the present application provides a network side device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0023] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0024] In an embodiment of the present application, a data sequence is received, wherein the data sequence includes multiple types of blocks, wherein the types of blocks include a first flag block, a data block, and a second flag block; an erroneous block is determined from the first flag block, the data block, or the second flag block; and the data sequence is processed according to the type of block corresponding to the erroneous block, so that the erroneous block can be determined from the data sequence and the error in the data sequence can be processed according to the type of the erroneous block, thereby avoiding the error in the data sequence from having an adverse effect on the data sequence. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0026] Figure 2 This is a schematic diagram of a low-rate or fine-grained service encapsulation format provided in an embodiment of the present application.

[0027] Figure 3 This is a schematic diagram of the service encapsulation provided by the embodiment of the present application;

[0028] Figure 4 This is a schematic diagram of a 64B / 66B block format provided in an embodiment of the present application;

[0029] Figure 5 This is a schematic diagram of a control block format provided by an embodiment of the present application;

[0030] Figure 6 This is a schematic diagram of an error block format provided by an embodiment of the present application;

[0031] Figure 7 This is a schematic diagram of the service encapsulation provided by the embodiment of the present application;

[0032] Figure 8 It is a structural schematic diagram of a data sequence provided in an embodiment of the present application;

[0033] Fig. 9 is a schematic diagram of the structure of another data sequence provided in an embodiment of the present application;

[0034] Fig.10 is a schematic diagram of the structure of another data sequence provided in an embodiment of the present application;

[0035] Fig.11 It is a structural schematic diagram of a data processing device provided in an embodiment of the present application;

[0036] Fig.12 It is a structural diagram of a network side device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0038] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0039] The data processing method, network side device and storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0040] Figure 1 A data processing method provided by an embodiment of the present invention is shown. The method can be executed by a network side device, and the network side device can include: a server and / or a terminal device. In other words, the method can be executed by software or hardware installed in the network side device, and the method includes the following steps:

[0041] Step 102: Receive a data sequence, where the data sequence includes multiple types of blocks.

[0042] Specifically, the network side device as a receiving end can receive a data sequence, in which the service data of the customer service is encapsulated. The data sequence includes multiple types of blocks, and the types of blocks can include a first flag block, a data block (D block) and a second flag block.

[0043] In one implementation, the first marker block is a start block, and the second marker block is an end block.

[0044] In the embodiment of the present application, the first marker block may be a start block (S block), and the second marker block may be an end block (T block). Figure 2 As shown, a first marker block (S block), L data blocks (D blocks) and a second marker block (T block) together constitute a complete data sequence, that is, a 64-bit / 66-bit (64B / 66B) block with a fixed length of L+2. Wherein, L is an integer greater than or equal to 1, the first marker block (start block) marks the beginning of the data sequence, and the second marker block (end block) marks the end of the data sequence. In addition, providing low-latency, hard-isolated bearer technology for low-speed, small-granularity layer services (Ethernet client services) is a current business requirement. Figure 3 As shown in FIG, after adding overhead, OAM message and other information to the small particle layer service, the inner layer block is obtained. The small particle layer service can also be composed of an S block, L D blocks and a T block, such as Figure 3 As shown, the inner block includes a small particle layer service and an OAM block, and the inner block can be encapsulated into a payload of a data sequence.

[0045] Step 104: Determine a block with an error from the first marker block, the data block or the second marker block.

[0046] Specifically, when an abnormal situation occurs in the network, an erroneous block may appear in the data sequence, such as an error in the bit of the block, an error block, etc. In the embodiment of the present application, it is necessary to determine the erroneous block from the first marker block, the data block, and the second marker block of the data sequence.

[0047] Step 106: Process the data sequence according to the type of block corresponding to the block with error.

[0048] Specifically, after determining the erroneous block from the data sequence, it is necessary to determine the type of block corresponding to the erroneous block, that is, determine whether the erroneous block is a first flag block, a second flag or a data block, and perform corresponding processing on the data sequence according to the type of block corresponding to the erroneous block.

[0049] The data processing method provided by the embodiment of the present invention receives a data sequence, the data sequence includes multiple types of blocks, determines the block with errors from the first marker block, the data block or the second marker block, and processes the data sequence according to the type of block corresponding to the block with errors. The error in the data sequence can be processed to avoid the error in the data sequence from having an adverse effect on the use of the data sequence.

[0050] In one implementation, determining the block with errors from the first marker block, the data block, or the second marker block includes:

[0051] A block with a synchronization header error is determined from the first flag block, the data block or the second flag block as the block with error; or a block with a type domain error is determined from the first flag block or the second flag block as the block with error.

[0052] like Figure 4 The 64B / 66B block format shown in FIG. 1 is a 64B / 66B block format, where 2 bits are the sync header and 64 bits are the payload. The 2-bit sync header is 0b01, indicating that the 64B / 66B block is a data block. The 2-bit sync header is 0b10, indicating that the 64B / 66B block is a control block. The control block can include an S block, a T block, an O block, etc. Figure 5 The control blocks shown can be distinguished by different values ​​in the block type field (blocktype field, 1 byte), such as 0x78 for S block, 0x87 for T0 block, 0xFF for T7 block, and 0x4B for O block.

[0053] In an embodiment of the present application, a block with a synchronization header error can be determined from the first marker block, the data block or the second marker block as the above-mentioned block with errors, or a block with a type domain error can be determined from the first marker block or the second marker block as the above-mentioned block with errors.

[0054] In this way, by judging whether the synchronization header of the block is wrong, the block with errors can be determined from the first marker block, the data block or the second marker block. By judging whether the type field of the block is wrong, the block with errors can be determined from the first marker block or the second marker block. Then, the block with errors can be processed to avoid the erroneous blocks from having adverse effects on the data sequence.

[0055] In one implementation, before processing the data sequence according to the type of the block corresponding to the block with error, the method further includes:

[0056] The type of the 64-bit / 66-bit block is determined based on the expected position of the block.

[0057] In the embodiment of the present application, before processing the data sequence according to the type of the block corresponding to the block with error, the type of the block can also be determined according to the expected position of the 64-bit / 66-bit block. Specifically, the expected position can be determined by one or more of the following methods:

[0058] (1) The length of the data sequence.

[0059] (2) The structure of the data sequence.

[0060] (3) Overhead of data sequence.

[0061] (4) Synchronization headers of the start block (S block), data block (D block), and end block (T block).

[0062] (5) Types of start block (S block), data block (D block), and end block (T block).

[0063] (6) The order of the start block (S block), data block (D block), and end block (T block).

[0064] More specifically, in one implementation, determining the type of the block according to the expected position of the 64-bit / 66-bit block includes:

[0065] The type of the previous 64-bit / 66-bit block or the type of the next 64-bit / 66-bit block is determined according to the type of the current 64-bit / 66-bit block, or the type of the 64-bit / 66-bit block is determined according to whether the 64-bit / 66-bit block contains overhead, or the type of the 64-bit / 66-bit block is determined according to the data sequence structure, or the type of the 64-bit / 66-bit block is determined according to the data sequence length.

[0066] In an embodiment of the present application, the type of the previous 64-bit / 66-bit block can be determined according to the type of the current 64-bit / 66-bit block, or the type of the next 64-bit / 66-bit block can be determined. The type of the 64-bit or 66-bit block can also be determined according to whether the 64-bit or 66-bit block contains overhead. Or the type of the 64-bit or 66-bit block is determined according to the data sequence structure, or the type of the 64-bit / 66-bit block is determined according to the length of the data sequence. As an example, after the network side device receives the data sequence, if the T block of the previous data sequence is correct, and the next received 64B / 66B block is not an idle (Idle) block and is not an O block, then according to the block type and sequence, it can be determined that the block received at the expected position is the first marker block (S block). As another example, if the current is the first marker block (start block), the next block is expected to be a data block (according to the structure of the data sequence, the first block is an S block, the second block is a D block, the third block is a D block, and the L+2th block is a T block). In this way, the type of the block can be determined according to the expected position of the 64-bit / 66-bit block.

[0067] In one implementation, the type of the block further includes an error block, and the method further includes:

[0068] The error block is determined as a block having an error.

[0069] Specifically, the block type also includes an error block. Due to some exceptions, the outer 64B / 66B block may become an error block (Error block, such as Figure 6 As shown), the content of the inner layer 64B / 66B block will be affected. In the embodiment of the present application, the error block is also determined as a block with an error. Figure 7 As shown in the figure, the 66B blocks (such as block A and block B) of the Ethernet client service are encapsulated into the data sequence (such as block 1 and block 2), and the last 2 bits of block 1 and the first 62 bits of block 2 are encapsulated into the payload of block B. If block B becomes an error block during transmission, both block 1 and block 2 are affected. In this way, the error block is also determined as an error block, and the error block can also be processed to avoid the error block from having an adverse effect on the data sequence.

[0070] In one implementation, the processing of the data sequence according to the type of the block corresponding to the block with the error includes:

[0071] If the block received at the expected position is the second marker block in the data sequence, but what is actually received is an error block in the data sequence, then when the second marker block restores the content of the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced by the error block; if the block received at the expected position is a data block in the data sequence, but what is actually received is the error block, then when the data block is restored to the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced by the error block.

[0072] Specifically, if the block received at the expected position is the second marker block in the data sequence, the second marker block may be an end block, but what is actually received is an error block in the data sequence, then the content of the inner block or small particle layer service can be restored from the second marker block, that is, when the inner block or small particle layer service is extracted from the second marker block, the corresponding inner block or small particle layer service is replaced with the error block. If the block received at the expected position is a data block in the data sequence, but what is actually received is an error block, when the data block is restored to the inner block or small particle layer service, the corresponding inner block or small particle layer service can be replaced with the error block. For example, if the 64B / 66B block in the data sequence is expected to be the second marker block (end block), but what is received is an Error block, then the data sequence is discarded, or the data sequence continues to be processed, or when the Error block restores the inner block or small particle layer service, the corresponding inner block (small particle layer service) is replaced with an Error block. If the 64B / 66B block in the data sequence is used to restore the inner block or small particle layer service, and the corresponding inner block (small particle layer service) has a synchronization header or type field error, it is replaced with an Error block. For another example, if the 64B / 66B block in the data sequence is expected to be a data block, but an Error block is received, then when the Error block is used to restore the inner block or small particle layer service, the corresponding inner block (small particle layer service) is replaced with an Error block. In this way, when the block received at the expected position is the second marker block in the data sequence, but the block actually received is an error block in the data sequence, or when the block received at the expected position is a data block in the data sequence, but the block actually received is an error block, the block received at the expected position can be processed.

[0073] In one implementation, the processing of the data sequence according to the type of the block corresponding to the block with the error includes:

[0074] If the block received at the expected position is the first marker block in the data sequence, but what is actually received is an error block, the data sequence is discarded or other blocks of the data sequence are continued to be processed, or the first marker block is used to restore the content of the inner block or small particle layer service, and the corresponding inner block or small particle layer service is replaced by the error block.

[0075] In an embodiment of the present application, if the block received at the expected position is the first marker block in the data sequence, the first marker block can be the start block, but what is actually received is an error block, then the data sequence can be discarded or other blocks of the data sequence can be processed continuously, or when the first marker block is used to restore the content of the inner block or the small particle layer service, that is, when the inner block or the small particle layer service is extracted from the first marker block, the corresponding inner block or the small particle layer service is replaced with the error block. For example, if the 64B / 66B block in the data sequence is expected to be the first marker block (start block), but what is received is an Error block, then the data sequence is discarded, or the data sequence is processed continuously, or when the Error block is used to restore the inner block or the small particle layer service, the corresponding inner block (small particle layer service) is replaced with the Error block. In this way, the block received at the expected position can be processed when the block received at the expected position is the first marker block in the data sequence, but what is actually received is an error block.

[0076] In one implementation, the first flag block contains overhead, and the processing of the data sequence according to the type of the block corresponding to the block with error includes:

[0077] In the case that the type of block corresponding to the erroneous block is a first marker block (the synchronization header or type field of the received block does not match the first marker block), the overhead is extracted from the first marker block. If the cyclic redundancy check in the overhead is correct, the overhead or payload in the first marker block is extracted for processing. If the cyclic redundancy check in the overhead is wrong, the data sequence is discarded or the first marker block is replaced by an erroneous block, or the overhead is discarded and the payload continues to be processed.

[0078] In an embodiment of the present application, the first marker block may be a start block, and the first marker block contains overhead. When the type of block corresponding to the erroneous block is the first marker block (the synchronization header or type field of the received block does not match the synchronization header or type field of the first marker block), the overhead can be extracted from the first marker block, and a cyclic redundancy check (CRC) is performed on the overhead. The cyclic redundancy check is a technology that generates a check code to detect whether the data is transmitted incorrectly when transmitting data. If the cyclic redundancy check in the overhead of the first marker block is correct, the overhead or payload in the first marker block can be extracted for processing. If the cyclic redundancy check in the overhead is wrong, the data sequence can be discarded or the first marker block can be replaced with an erroneous block, or the overhead can be discarded and the payload can continue to be processed. In this way, the first marker block can be processed when the first marker block contains overhead and the type of block corresponding to the erroneous block is the first marker block.

[0079] In one implementation, the processing of the data sequence according to the type of the block corresponding to the block with the error includes:

[0080] When the type of block corresponding to the erroneous block is the first marker block (the synchronization header or type field of the received block does not match the synchronization header or type field of the first marker block), the data content of the first marker block is extracted for processing; or the block is replaced with an erroneous block; when the first marker block restores the content of the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced with an erroneous block.

[0081] Specifically, when it is determined that the type of block corresponding to the block with error is the first marker block (start block), the data content of the first marker block can be extracted for processing, or the block can be replaced with an error block. When the first marker block restores the content of the inner block or small particle layer service, that is, when the inner block or small particle layer service is extracted from the first marker block, the corresponding inner block or small particle layer service can be replaced with an error block. For example, the 64B / 66B block in the data sequence is expected to be the first marker block (start block), but the received 64B / 66B block is incorrect (the synchronization header or type field is incorrect, or the synchronization header or type field does not match the expectation), one or more of the following operations can be performed: replace the 64B / 66B block with an Error block; or continue to process other blocks of the data sequence; or when the 64B / 66B restores the inner block or small particle layer service, the corresponding inner block (small particle layer service) is replaced with an Error block; or discard the data sequence. In this way, the first marker block can be processed when the type of block corresponding to the block with error is the first marker block.

[0082] In one implementation, the processing of the data sequence according to the type of the block corresponding to the block with the error includes:

[0083] When the type of block corresponding to the erroneous block is the second marker block (the synchronization header or type field of the received block does not match the synchronization header or type field of the second marker block), the data content of the second marker block is extracted for processing; or the block is replaced with the erroneous block; when the second marker block restores the content of the inner layer block or the small particle layer service, the corresponding inner layer block or the small particle layer service is replaced with the erroneous block.

[0084] Specifically, when it is determined that the type of block corresponding to the block with error is the second marker block ((the synchronization header or type field of the received block does not match the synchronization header or type field of the second marker block), the data content of the second marker block can be extracted for processing, or the second marker block can be replaced with the error block. When the content of the inner block or small particle layer service is restored by the second marker block, that is, when the inner block or small particle layer service is extracted from the second marker block, the corresponding inner block or small particle layer service can be replaced with the error block. For example, the 64B / 66B block in the data sequence is expected to be the second marker block (end block), but the received 64B / 66B block is incorrect (the synchronization header or type field is incorrect, or the synchronization header or type field does not match the expectation), one or more of the following operations can be performed: replace the 64B / 66B block with the Error block; or when the 64B / 66B restores the inner block or small particle layer service, the corresponding inner block (small particle layer service) is replaced with the Error block; or the data sequence is discarded. In this way, when it is determined that the type of block corresponding to the block with error is the second marker block, the error block can be processed.

[0085] In one implementation, the second flag block contains overhead, and the processing of the data sequence according to the type of the block corresponding to the block with error includes:

[0086] In a case where the type of block corresponding to the erroneous block is the second marker block, the overhead is extracted from the second marker block; if the cyclic redundancy check in the overhead is correct, the overhead or payload in the second marker block is extracted for processing; if the cyclic redundancy check in the overhead is wrong, the data sequence is discarded or the second marker block is replaced by the erroneous block, or the overhead is discarded and the payload continues to be processed.

[0087] Specifically, the second marker block (end block) may also contain overhead. When it is determined that the type of block corresponding to the block with error is the second marker block, the overhead can be extracted from the second marker block. If the cyclic redundancy check in the overhead is correct, the overhead or payload in the second marker block can be extracted for processing. If the cyclic redundancy check in the overhead is wrong, the data sequence can be discarded or the second marker block can be replaced with an error block, or the overhead can be discarded and the payload can continue to be processed. In this way, the second marker block can contain overhead, and when it is determined that the type of block corresponding to the block with error is the second marker block, the block with error can be processed.

[0088] In one implementation, the processing of the data sequence according to the type of the block corresponding to the block with the error includes:

[0089] When the type of block corresponding to the erroneous block is a data block (the synchronization header of the received block does not match the data block synchronization header) and the data block is the first data block in the data sequence, the overhead is extracted from the first data block, and if the cyclic redundancy check in the overhead is correct, the overhead or payload in the first data block is extracted for processing; if the cyclic redundancy check in the overhead is wrong, the data block is replaced with an error block, or the overhead is discarded and the payload is continued to be processed; when there are errors in data blocks other than the first data block in the data sequence, the data content of the data block is extracted for processing, or the data block is replaced with an error block or when the data block restores the inner block or small particle layer service, the corresponding inner block or the small particle layer service is replaced with the error block.

[0090] Specifically, when the type of block corresponding to the block with error is a data block and the data block is the first data block in the data sequence, the overhead can be extracted from the first data block, and it can be determined whether the cyclic redundancy check in the overhead is correct. If the cyclic redundancy check in the overhead is correct, the overhead or the payload in the first data block can be extracted for processing; if the cyclic redundancy check in the overhead is wrong, the data block can be replaced with the error block, or the overhead can be discarded and the payload can continue to be processed.

[0091] In addition, when errors exist in data blocks other than the first data block in the data sequence, the data content of the data block can be extracted for processing, or the data block with errors can be replaced with an error block, or when the data block restores the inner block or small particle layer service, the corresponding inner block or small particle layer service is replaced with an error block. For example, if the 64B / 66B block of the data sequence is expected to be a data block, but the synchronization header of the received 64B / 66B block is erroneous or inconsistent with expectations, one or more of the following operations can be performed: extract the payload content of the 64B / 66B block for processing; or replace the 64B / 66B block with an Error block; or when the 64B / 66B block restores the inner block or small particle layer service, the corresponding inner block (small particle layer service) is replaced with an Error block.

[0092] In this way, when the block type corresponding to the erroneous block is a data block and the data block is the first data block in the data sequence, the data block can be processed, and when errors exist in data blocks other than the first data block in the data sequence, the erroneous data block can also be processed.

[0093] In one implementation, after the data sequence is processed according to the type of the block corresponding to the block with error, the method further includes:

[0094] When the first marker block, the data block or the second marker block restores the inner block or the small particle layer service, if the corresponding inner block or the small particle layer service has a type domain error or a synchronization header error, the corresponding inner block or the small particle layer service is replaced with an error block.

[0095] Specifically, after receiving the data sequence, when the inner block or small particle layer service is restored in the first marker block, data block or second marker block, that is, when the inner block or small particle layer service is extracted from the data sequence, if it is found that the inner block or small particle layer service in the data sequence has a type domain error or a synchronization header error, the above inner block or small particle layer service can be replaced with an error block to avoid the erroneous inner block or small particle layer service from having an adverse effect on the data sequence.

[0096] In one implementation, the data format of the business data corresponding to the data sequence is a physical coding sublayer data format, the business data includes multiple data blocks, the first marker block and the second marker block of the data sequence contain at least one data block of the business data, and after determining an erroneous block from the first marker block, the data block and the second marker block, the method further includes: marking the data content in the data block corresponding to the business data corresponding to the erroneous block as an error.

[0097] Specifically, in the embodiment of the present application, the service data corresponding to the data sequence may be a small particle layer service, and the data format of the service data corresponding to the data sequence is also a physical coding sublayer data format, that is, the service data also includes multiple data blocks (D blocks). Figure 3 As shown, the service data (small particle layer service) needs to be encapsulated into a data sequence, in which the data block and the second flag block contain at least one data block of the service data (small particle layer service). After determining that there is an erroneous block in the data sequence, the data content in the data block corresponding to the service data corresponding to the erroneous block is marked as an error.

[0098] In this way, after determining that there is an erroneous block in the data sequence, the data content in the database corresponding to the business data corresponding to the erroneous block can be marked as erroneous, and then the data content marked as erroneous can be processed to avoid the erroneous block from having an adverse effect on the content of the business data and the use of the business data.

[0099] The data processing method provided in the embodiments of the present application is described in detail below through specific examples.

[0100] Embodiment 1:

[0101] Figure 8 A schematic diagram of the structure of a data sequence encapsulating business data provided by an embodiment of the present application is shown. Figure 2 As shown, the data sequence consists of a first marker block (S block), L data blocks (D blocks), and a second marker block (T block), where L is an integer greater than or equal to 1, and the overhead is placed in the first data block. The data processing method includes the following steps:

[0102] Step 1: The network side device receives the data sequence.

[0103] Step 2: If the expected position is the first marker block, the next block is expected to be a data block (according to the structure of the data sequence, the first block is an S block, the second block is a D block, the third block is a D block, and the L+2th block is a T block).

[0104] If the expected position is the first marker block and the first marker block of the received data sequence is incorrect (the received block synchronization header is not 0b10 and / or the type field is not 0x78), the first marker block is replaced with an Error block; or when the first marker block is restored to an inner block or a small particle layer service, the corresponding inner block (small particle layer service) is replaced with an Error block.

[0105] Step 3: If the expected position is a data block, but the data block is an erroneous block, then:

[0106] (1) If the expected position is a data block, but the synchronization header of the data block is wrong (the synchronization header of the received block is not 0b01), extract the overhead in the data block. If the CRC in the overhead is correct, extract the overhead or payload in the data block for processing; if the CRC in the overhead is wrong, replace the data block with an Error block, or discard the overhead and continue to process the payload.

[0107] (2) Or if the expected position is a data block, but the synchronization header of the data block is wrong, you can perform one of the following operations:

[0108] The data content of the data block is extracted for processing, or the data block is replaced with an Error block, or when the data block restores the inner block or small particle layer service, the corresponding inner block (small particle layer service) is replaced with an Error block.

[0109] Step 4: The next 64B / 66B block after the first data block is expected to be a data block, then:

[0110] (1) If the expected position is a data block, but the data block is an Error block, when the data block is restored to an inner block or a small granular layer service, the corresponding inner block (small granular layer service) is replaced by an Error block.

[0111] (2) If the expected position is a data block, but the synchronization header of the data block is wrong, extract the data content of the data block for processing; or replace the block with an Error block. Or when the data block restores the inner block or small particle layer service, the corresponding inner block (small particle layer service) is replaced with an Error block.

[0112] Step 5: According to the length of the data sequence, determine the type of the next 64B / 66B block, which is expected to be a data block or a second marker block (according to the structure of the data sequence, the first block is an S block, the second block is a D block, the third block is a D block, and the L+2th block is a T block). If it is a data block, repeat step 4; if it is a second marker block, execute step 6.

[0113] Step 6: If the expected position is the second marker block, but the second marker block is an erroneous block, then:

[0114] (1) If the expected position is the second marker block, but the second marker block is an Error block, when the second marker block restores the content of the inner block or the small granular layer, the corresponding inner block (small granular layer service) is replaced by the Error block.

[0115] (2) If the expected position is the second marker block, but the synchronization header of the second marker block is wrong (the received block synchronization header is not 0b10), extract the data content of the second marker block for processing; or replace the block with an Error block; when the second marker block restores the content of the inner block or the small particle layer, the corresponding inner block (small particle layer service) is replaced with an Error block.

[0116] (3) If the expected position is the second marker block, but the type field of the second marker block is wrong (the received block type field does not match the second marker block), extract the data content of the second marker block for processing; or replace the block with an Error block; when the second marker block restores the content of the inner block or the small particle layer, the corresponding inner block (small particle layer service) is replaced with an Error block.

[0117] Embodiment 2:

[0118] Fig. 9 A schematic diagram of the structure of a data sequence encapsulating business data provided by an embodiment of the present application is shown. Fig. 9 As shown, the data sequence consists of a first marker block (S block), L data blocks (D blocks), and a second marker block (T block), where L is an integer greater than or equal to 1, and the overhead is placed in the first marker block. The data processing method includes the following steps:

[0119] Step 1: The network side device receives the data sequence.

[0120] Step 2: If the T block of the previous data sequence is correct, and the next received 64B / 66B block is not an idle block and is not an O block, the expected received block is determined to be the first marker block (S block) according to the block type and sequence. If the first marker block is an erroneous block, then:

[0121] (1) If the expected position is the first marker block, but the first marker block is an Error block, continue to process other blocks of the data sequence or discard the data sequence.

[0122] (2) If the expected position is the first marker block, but the synchronization header of the first marker block is wrong, extract the overhead in the first marker block. If the CRC in the overhead is correct, extract the overhead or payload in the first marker block for processing; if the CRC in the overhead is wrong, discard the data sequence; or replace the first marker block with an Error block, or discard the overhead and continue to process the payload.

[0123] (3) If the expected position is the first marker block, but the type field of the first marker block is wrong, extract the overhead. If the CRC in the overhead is correct, extract the overhead or payload in the first marker block for processing; if the CRC in the overhead is wrong, discard the data sequence; or replace the first marker block with an Error block, or discard the overhead and continue to process the payload.

[0124] Step 3: The next 64B / 66B after the first marker block is expected to be a data block, then:

[0125] (1) If the expected position is a data block, but the data block is an Error block, when the data block restores the content of the inner block or the small granular layer, the corresponding inner block (small granular layer service) is replaced by the Error block.

[0126] (2) If the expected position is a data block, but the synchronization header of the data block is incorrect, you can perform one of the following operations:

[0127] The data content of the data block is extracted for processing, or the data block is replaced with an Error block, or when the data block restores the inner block or small particle layer service, the corresponding inner block (small particle layer service) is replaced with an Error block.

[0128] Step 4: According to the length of the data sequence, determine whether the type of the next 64B / 66B block is expected to be a data block or a second marker block. If it is a data block, repeat step 3; if it is a second marker block, execute step 5.

[0129] Step 5: If the expected position is the second marker block, but the second marker block is an erroneous block, then:

[0130] (1) If the expected position is the second marker block, but the second marker block is an Error block, when the second marker block restores the content of the inner block or the small granular layer, the corresponding inner block (small granular layer service) is replaced by the Error block.

[0131] (2) If the expected position is the second marker block, but the synchronization header of the second marker block is wrong, the data content of the second marker block is extracted for processing; or the second marker block is replaced with an Error block; or when the second marker block is used to restore the content of the inner block or the small particle layer, the corresponding inner block (small particle layer service) is replaced with an Error block.

[0132] (3) If the expected position is the second marker block, but the type field of the second marker block is wrong, extract the content of the second marker block data for processing; or replace the second marker block with an Error block; or when the second marker block is used to restore the content of the inner block or the small particle layer, the corresponding inner block (small particle layer service) is replaced with an Error block.

[0133] Embodiment three:

[0134] Fig.10 A schematic diagram of the structure of a data sequence encapsulating customer service data provided by an embodiment of the present application is shown. Fig.10 As shown, the data sequence consists of a first marker block (S block), L data blocks (D blocks), and a second marker block (T block), where L is an integer greater than or equal to 1, and the overhead is placed in the second marker block. The data processing method includes the following steps:

[0135] Step 1: The network side device receives the data sequence.

[0136] Step 2: If the second marker block of the previous data sequence is correct, and the next received 64B / 66B block is not an idle block and is not an O block, then the expected received block is the first marker block. If the received first marker block is an erroneous block, then:

[0137] (1) If the expected position is the first marker block, but the first marker block is an Error block, the data sequence is discarded or the subsequent data blocks and the second marker block are processed.

[0138] (2) If the expected position is the first marker block, but the synchronization header of the first marker block is erroneous, the data sequence is discarded or the first marker block is replaced by an Error block; or when the first marker block is restored to an inner block or a small particle layer service, the corresponding inner block (small particle layer service) is replaced by an Error block.

[0139] (3) If the expected position is the first marker block, but the type field of the first marker block is wrong, the data sequence is discarded or the first marker block is replaced by an Error block; or when the first marker block is restored to an inner block or a small particle layer service, the corresponding inner block (small particle layer service) is replaced by an Error block.

[0140] Step 3: The next 64B / 66B block after the first marker block is expected to be a data block, then:

[0141] (1) If the expected position is a data block, but the data block is an Error block, when the data block restores the content of the inner block or the small granular layer, the corresponding inner block (small granular layer service) is replaced by the Error block data block.

[0142] (2) If the expected position is a data block, but the synchronization header of the data block is wrong, the data content of the data block is extracted for processing; or the data block is replaced with an Error block; or when the data block restores the inner block or small particle layer service, the corresponding inner block (small particle layer service) is replaced with an Error block.

[0143] Step 4: According to the length of the data sequence, determine whether the type of the next 64B / 66B block is expected to be a data block or a second marker block. If it is a data block, repeat step 3; if it is a second marker block, execute step 5.

[0144] Step 5: If the expected position is the second marker block, but the second marker block is an erroneous block, then:

[0145] (1) If the expected position is the second marker block, but the second marker block is an Error block, the data sequence can be discarded or when the second marker block restores the content of the inner block or the small particle layer, the corresponding inner block (small particle layer service) is replaced by an Error block.

[0146] (2) If the expected position is the second marker block, but the synchronization header of the second marker block is wrong, extract the overhead in the second marker block. If the CRC in the overhead is correct, extract the overhead or payload in the second marker block for processing; if the CRC in the overhead is wrong, the data sequence can be discarded; or the second marker block can be replaced with an Error block; or the overhead can be discarded and the payload can be processed.

[0147] (3) If the expected position is the second marker block, but the type field of the second marker block is wrong, the overhead in the second marker block can be extracted. If the CRC in the overhead is correct, the overhead or payload in the second marker block is extracted for processing; if the CRC in the overhead is wrong, the data sequence can be discarded; or the second marker block can be replaced with an Error block, or the overhead can be discarded and the payload can be processed.

[0148] It should be noted that the data processing method provided in the embodiment of the present application can be executed by a data processing device or a control module in the data processing device for executing the data processing method. In the embodiment of the present application, the data processing device provided in the embodiment of the present application is described by taking the data processing device executing the data processing method as an example.

[0149] Fig.11 Schematic diagram of the structure of a data processing device according to an embodiment of the present invention. Fig.11 As shown, the data processing device 1100 includes: a receiving module 1110 , an execution module 1120 and a processing module 1130 .

[0150] A receiving module 1110 is used to receive a data sequence, wherein the data sequence includes multiple types of blocks, wherein the types of the blocks include a first marker block, a data block, and a second marker block; an executing module 1120 is used to determine an erroneous block from the first marker block, the data block, or the second marker block; and a processing module 1130 is used to process the data sequence according to the type of block corresponding to the erroneous block.

[0151] In one implementation, the execution module 1120 is used to determine a block with a synchronization header error from the first marker block, the data block or the second marker block as the block with an error; or, to determine a block with a type domain error from the first marker block or the second marker block as the block with an error.

[0152] In one implementation, the execution module 1120 is further configured to determine the type of the block according to the expected position of the 64-bit / 66-bit block.

[0153] In one implementation, the execution module 1120 is used to determine the type of the previous 64-bit / 66-bit block or the type of the next 64-bit / 66-bit block according to the type of the current 64-bit / 66-bit block, or to determine the type of the 64-bit / 66-bit block according to whether the 64-bit / 66-bit block contains overhead, or to determine the type of the 64-bit / 66-bit block according to the data sequence structure, or to determine the type of the 64-bit / 66-bit block according to the data sequence length.

[0154] In an implementation manner, the type of the block further includes an error block, and the execution module 1120 is further configured to determine the error block as a block with an error.

[0155] In one implementation, the processing module 1130 is used to, if the block received at the expected position is the second marker block in the data sequence, but what is actually received is an error block in the data sequence, then when the second marker block restores the content of the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced with the error block; if the block received at the expected position is the data block in the data sequence, but what is actually received is the error block, then when the data block is restored to the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced with the error block.

[0156] In one implementation, the processing module 1130 is used to discard the data sequence or continue processing other blocks of the data sequence if the block received at the expected position is the first marker block in the data sequence, but the block actually received is an error block, or when the first marker block is restored to the content of the inner block or small particle layer service, the corresponding inner block or small particle layer service is replaced with the error block.

[0157] In one implementation, the first marker block contains overhead, and the processing module 1130 is used to extract the overhead from the first marker block when the type of block corresponding to the erroneous block is the first marker block; if the cyclic redundancy check in the overhead is correct, the overhead or payload in the first marker block is extracted for processing; if the cyclic redundancy check in the overhead is wrong, the data sequence is discarded or the first marker block is replaced by an erroneous block, or the overhead is discarded and the payload continues to be processed.

[0158] In one implementation, the processing module 1130 is used to extract the data content of the first marker block for processing when the type of block corresponding to the erroneous block is the first marker block; or replace the block with an erroneous block; when the first marker block restores the content of the inner layer block or the small particle layer service, the corresponding inner layer block or the small particle layer service is replaced with the erroneous block.

[0159] In one implementation, the processing module 1130 is used to extract the data content of the second marker block for processing when the type of block corresponding to the erroneous block is the second marker block; or replace the block with the erroneous block; when the second marker block restores the content of the inner layer block or the small particle layer service, the corresponding inner layer block or the small particle layer service is replaced with the erroneous block.

[0160] In one implementation, the second marker block contains overhead, and the processing module 1130 is used to extract the overhead from the second marker block when the type of block corresponding to the erroneous block is the second marker block; if the cyclic redundancy check in the overhead is correct, the overhead or payload in the second marker block is extracted for processing; if the cyclic redundancy check in the overhead is wrong, the data sequence is discarded or the second marker block is replaced by the erroneous block, or the overhead is discarded and the payload continues to be processed.

[0161] In one implementation, the processing module 1130 is used to extract the overhead from the first data block when the type of block corresponding to the block with error is a data block and the data block is the first data block in the data sequence; if the cyclic redundancy check in the overhead is correct, the overhead or payload in the first data block is extracted for processing; if the cyclic redundancy check in the overhead is wrong, the data block is replaced with an error block, or the overhead is discarded and the payload is continued to be processed; when there are errors in other data blocks except the first data block in the data sequence, the data content of the data block is extracted for processing, or the data block is replaced with an error block or the data block restores the inner block or small particle layer service, and the corresponding inner block or small particle layer service is replaced with the error block.

[0162] In one implementation, the data format of the business data corresponding to the data sequence is a physical coding sublayer data format, the business data includes multiple data blocks, the first flag block and the second flag block of the data sequence contain at least one data block of the business data, and the processing module 1130 is further used to mark the data content in the data block corresponding to the business data corresponding to the erroneous block as erroneous.

[0163] In one implementation, the processing module 1130 is also used to, when the first marker block, the data block or the second marker block restores the inner layer block or the small particle layer service, if the corresponding inner layer block or the small particle layer service has a type domain error or a synchronization header error, the corresponding inner layer block or the small particle layer service is replaced with an error block.

[0164] In one implementation, the first marker block is a start block, and the second marker block is an end block.

[0165] The data processing device in the embodiments of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiments of the present application.

[0166] The data processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0167] The data processing device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0168] Alternatively, if Fig.12 As shown, an embodiment of the present application further provides a network side device 1200, including a processor 1201 and a memory 1202, wherein the memory 1202 stores a program or instruction that can be run on the processor 1201, and the program or instruction, when executed by the processor 1201, implements: receiving a data sequence, wherein the data sequence includes multiple types of blocks, wherein the types of the blocks include a first marker block, a data block, and a second marker block; determining an erroneous block from the first marker block, the data block, or the second marker block; and processing the data sequence according to the type of the block corresponding to the erroneous block.

[0169] In one implementation, a block with a synchronization header error is determined from the first flag block, the data block, or the second flag block as the block with the error; or a block with a type domain error is determined from the first flag block or the second flag block as the block with the error.

[0170] In one implementation, before processing the data sequence according to the type of block corresponding to the block with error, the type of the block is determined according to the expected position of the 64-bit / 66-bit block.

[0171] In one implementation, the type of the previous 64-bit / 66-bit block or the type of the next 64-bit / 66-bit block is determined according to the type of the current 64-bit / 66-bit block, or the type of the 64-bit / 66-bit block is determined according to whether the 64-bit / 66-bit block contains overhead, or the type of the 64-bit / 66-bit block is determined according to the data sequence structure, or the type of the 64-bit / 66-bit block is determined according to the data sequence length.

[0172] In an implementation manner, the type of the block further includes an error block, and the error block is determined as a block with an error.

[0173] In one implementation, if the block received at the expected position is the second marker block in the data sequence, but what is actually received is an error block in the data sequence, then when the second marker block restores the content of the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced by the error block; if the block received at the expected position is a data block in the data sequence, but what is actually received is the error block, then when the data block is restored to the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced by the error block.

[0174] In one implementation, if the block received at the expected position is the first marker block in the data sequence, but what is actually received is an error block, the data sequence is discarded or other blocks of the data sequence are continued to be processed or the first marker block is used to restore the content of the inner block or small particle layer service, and the corresponding inner block or small particle layer service is replaced with the error block.

[0175] In one implementation, the first marker block contains overhead. When the type of block corresponding to the erroneous block is the first marker block, the overhead is extracted from the first marker block. If the cyclic redundancy check in the overhead is correct, the overhead or payload in the first marker block is extracted for processing. If the cyclic redundancy check in the overhead is wrong, the data sequence is discarded or the first marker block is replaced by an erroneous block, or the overhead is discarded and the payload continues to be processed.

[0176] In one implementation, when the type of block corresponding to the erroneous block is the first marker block, the data content of the first marker block is extracted for processing; or the block is replaced with an erroneous block; when the first marker block restores the content of the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced with the erroneous block.

[0177] In one implementation, when the type of block corresponding to the erroneous block is the second marker block, the data content of the second marker block is extracted for processing; or the block is replaced with the erroneous block; when the second marker block restores the content of the inner layer block or the small particle layer service, the corresponding inner layer block or the small particle layer service is replaced with the erroneous block.

[0178] In one implementation, the second marker block contains overhead. When the type of block corresponding to the erroneous block is the second marker block, the overhead is extracted from the second marker block. If the cyclic redundancy check in the overhead is correct, the overhead or payload in the second marker block is extracted for processing. If the cyclic redundancy check in the overhead is wrong, the data sequence is discarded or the second marker block is replaced by the erroneous block, or the overhead is discarded and the payload continues to be processed.

[0179] In one implementation, when the type of block corresponding to the block with error is a data block and the data block is the first data block in the data sequence, the overhead is extracted from the first data block, and if the cyclic redundancy check in the overhead is correct, the overhead or payload in the first data block is extracted for processing; if the cyclic redundancy check in the overhead is wrong, the data block is replaced with an error block, or the overhead is discarded and the payload is continued to be processed; when there are errors in other data blocks except the first data block in the data sequence, the data content of the data block is extracted for processing, or the data block is replaced with an error block or the data block restores the inner block or small particle layer service, and the corresponding inner block or small particle layer service is replaced with the error block.

[0180] In one implementation, the data format of the business data corresponding to the data sequence is a physical coding sublayer data format, the business data includes multiple data blocks, the first marker block and the second marker block of the data sequence contain at least one data block of the business data, and after determining an erroneous block from the first marker block, the data block and the second marker block, the data content in the data block corresponding to the business data corresponding to the erroneous block is marked as erroneous.

[0181] In one implementation, after the data sequence is processed according to the type of block corresponding to the erroneous block, when the first marker block, the data block or the second marker block restores the inner block or the small particle layer service, if the corresponding inner block or the small particle layer service has a type domain error or a synchronization header error, the corresponding inner block or the small particle layer service is replaced with an erroneous block.

[0182] In one implementation, the first marker block is a start block, and the second marker block is an end block.

[0183] The specific execution steps can refer to the various steps of the above-mentioned data processing method embodiment, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.

[0184] It should be noted that the network side devices in the embodiments of the present application include: servers, terminals or other devices except terminals.

[0185] The above network side device structure does not constitute a limitation on the network side device. The network side device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured with a display panel in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0186] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM).

[0187] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor.

[0188] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned data processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0189] The processor is the processor in the network side described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as ROM, RAM, magnetic disk or optical disk.

[0190] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0191] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0192] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data processing method, characterized in that: The method comprises: Receive a data sequence, the data sequence comprising a plurality of types of blocks, the types of the blocks comprising a first flag block, a data block, and a second flag block; Determine a block with an error from the first marker block, the data block, or the second marker block; The data sequence is processed according to the type of the block corresponding to the block with error.

2. The method according to claim 1, characterized in that The determining a block having an error from the first marker block, the data block or the second marker block comprises: Determine the block with a synchronization header error as the block with error from the first marker block, the data block or the second marker block; Alternatively, a block with a type domain error is determined from the first flag block or the second flag block as the block with error.

3. The method according to claim 1, characterized in that Before processing the data sequence according to the type of the block corresponding to the block with error, the method further includes: The type of the 64-bit / 66-bit block is determined based on the expected position of the block.

4. The method according to claim 3, characterized in that The determining the type of the block according to the expected position of the 64-bit / 66-bit block includes: The type of the previous 64-bit / 66-bit block or the type of the next 64-bit / 66-bit block is determined according to the type of the current 64-bit / 66-bit block, or the type of the 64-bit / 66-bit block is determined according to whether the 64-bit / 66-bit block contains overhead, or the type of the 64-bit / 66-bit block is determined according to the data sequence structure, or the type of the 64-bit / 66-bit block is determined according to the data sequence length.

5. The method according to claim 1, characterized in that The type of the block further includes an error block, and the method further includes: The error block is determined as a block having an error.

6. The method according to claim 3, characterized in that The processing of the data sequence according to the type of the block corresponding to the block with error includes: If the block received at the expected position is the second marker block in the data sequence, but what is actually received is an error block in the data sequence, when the second marker block restores the content of the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced by the error block; If the block received at the expected position is a data block in the data sequence, but what is actually received is the error block, when the data block is restored to an inner block or a small particle layer service, the corresponding inner block or the small particle layer service is replaced by the error block.

7. The method according to claim 3, characterized in that The processing of the data sequence according to the type of the block corresponding to the block with error includes: If the block received at the expected position is the first marker block in the data sequence, but what is actually received is an error block, the data sequence is discarded or other blocks of the data sequence are continued to be processed, or the first marker block is used to restore the content of the inner block or small particle layer service, and the corresponding inner block or small particle layer service is replaced by the error block.

8. The method according to claim 2, characterized in that: The first flag block contains overhead, and the processing of the data sequence according to the type of the block corresponding to the block with error includes: In a case where the type of block corresponding to the erroneous block is a first marker block, overhead is extracted from the first marker block; if the cyclic redundancy check in the overhead is correct, the overhead or payload in the first marker block is extracted for processing; if the cyclic redundancy check in the overhead is wrong, the data sequence is discarded or the first marker block is replaced by an erroneous block, or the overhead is discarded and the payload continues to be processed.

9. The method according to claim 2, characterized in that: The processing of the data sequence according to the type of the block corresponding to the block with error includes: In the case that the type of block corresponding to the block with error is the first marking block, extracting the data content of the first marking block for processing; or replacing the block with an error block; When the first marker block restores the content of the inner block or the small particle layer service, the corresponding inner block or the small particle layer service is replaced by an error block.

10. The method according to claim 2, characterized in that The processing of the data sequence according to the type of the block corresponding to the block with error includes: In the case that the type of block corresponding to the block with error is the second marking block, extracting the data content of the second marking block for processing; or replacing the block with the error block; When the second marker block restores the content of the inner layer block or the small particle layer service, the corresponding inner layer block or the small particle layer service is replaced by an error block.

11. The method according to claim 2, characterized in that The second flag block contains overhead, and the processing of the data sequence according to the type of the block corresponding to the block with error includes: In a case where the type of block corresponding to the erroneous block is the second marker block, the overhead is extracted from the second marker block; if the cyclic redundancy check in the overhead is correct, the overhead or payload in the second marker block is extracted for processing; if the cyclic redundancy check in the overhead is wrong, the data sequence is discarded or the second marker block is replaced by the erroneous block, or the overhead is discarded and the payload continues to be processed.

12. The method according to claim 2, characterized in that: The processing of the data sequence according to the type of the block corresponding to the block with error includes: In the case where the type of block corresponding to the block with error is a data block and the data block is the first data block in the data sequence, extracting overhead from the first data block, and if the cyclic redundancy check in the overhead is correct, extracting the overhead or payload in the first data block for processing; if the cyclic redundancy check in the overhead is wrong, replacing the data block with an error block, or discarding the overhead, and continuing to process the payload; When errors exist in data blocks other than the first data block in the data sequence, the data content of the data block is extracted for processing, or the data block is replaced with an error block or when the data block restores the inner block or small particle layer service, the corresponding inner block or small particle layer service is replaced with the error block.

13. The method according to any one of claims 1 to 12, characterized in that: The data format of the service data corresponding to the data sequence is a physical coding sublayer data format, the service data includes a plurality of data blocks, the first flag block and the second flag block of the data sequence contain at least one data block of the service data, and after determining the block with error from the first flag block, the data block and the second flag block, the method further includes: The data content in the data block corresponding to the business data corresponding to the erroneous block is marked as an error.

14. The method according to claim 1, characterized in that After processing the data sequence according to the type of the block corresponding to the block with error, the method further includes: When the first marker block, the data block or the second marker block restores the inner block or the small particle layer service, if the corresponding inner block or the small particle layer service has a type domain error or a synchronization header error, the corresponding inner block or the small particle layer service is replaced with an error block.

15. The method according to claim 1, characterized in that The first marker block is a start block, and the second marker block is an end block.

16. A network side device, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 15 are implemented.

17. A readable storage medium storing a program or an instruction, wherein the program or the instruction, when executed by a processor, implements the steps of the method according to any one of claims 1 to 15.

Citation Information

Cited By

  • Data processing method, network-side device and storage medium

    EP4718755A1