A data processing method, wherein the method comprises: receiving (S201), by a data processing device, a first data stream, wherein the first data stream comprises a first data unit and a second data unit, and the first data unit and the second data unit have a same length; obtaining (S202), by the data processing device, a boundary of the first data unit; obtaining (S203), by the data processing device, a first skew according to a boundary of a first data amount and the boundary of the first data unit, wherein the first data amount is contiguous data of the first data stream received by the data processing device within a preset time, and the first data amount comprises the boundary of the first data unit; and adjusting (S204), by the data processing device, a distance between the boundary of the first data unit and the boundary of the first data amount, according to the first skew, from the first skew to a value, wherein the value is a length of an integral quantity of first data units; characterized in that : the length of the first skew is greater than the length of the first data unit; the adjusting comprises obtaining, by the data processing device, a first length according to a difference between a length of the first skew and a length of N first data units, where N is a maximum quantity of first data units included in the first skew; and removing, by the data processing device, data that starts from the boundary of the first data amount and whose length is the first length. receiving (S201), by a data processing device, a first data stream, wherein the first data stream comprises a first data unit and a second data unit, and the first data unit and the second data unit have a same length; obtaining (S202), by the data processing device, a boundary of the first data unit; obtaining (S203), by the data processing device, a first skew according to a boundary of a first data amount and the boundary of the first data unit, wherein the first data amount is contiguous data of the first data stream received by the data processing device within a preset time, and the first data amount comprises the boundary of the first data unit; and adjusting (S204), by the data processing device, a distance between the boundary of the first data unit and the boundary of the first data amount, according to the first skew, from the first skew to a value, wherein the value is a length of an integral quantity of first data units; characterized in that : the length of the first skew is greater than the length of the first data unit; the adjusting comprises obtaining, by the data processing device, a first length according to a difference between a length of the first skew and a length of N first data units, where N is a maximum quantity of first data units included in the first skew; and removing, by the data processing device, data that starts from the boundary of the first data amount and whose length is the first length. the length of the first skew is greater than the length of the first data unit; the adjusting comprises obtaining, by the data processing device, a first length according to a difference between a length of the first skew and a length of N first data units, where N is a maximum quantity of first data units included in the first skew; and removing, by the data processing device, data that starts from the boundary of the first data amount and whose length is the first length. <EOS>