Patent ID: 8340137

Claim:
A method for performing skew detection on data transmitted over a data channel, wherein data of a reference frame over a reference channel is composed sequentially of a reference data segment with a length of maximum common segment (Umax) over each of data channels to be subject to skew detection, and a preset maximum allowable skew detection range is Rmax, where Rmax is an integer multiple of Umax, the method comprising: S 1 ) performing the following on one frame of data transmitted in a period of one frame over one of the data channels to be subject to skew detection: a) dividing sequentially the frame of data into a plurality of data blocks starting from the start location of the frame of data according to the maximum allowable skew detection range Rmax; b) dividing each of the data blocks into a plurality of segments each with the length of Umax; c) for each of the data blocks, comparing serially each of the segments in the data block with a reference data segment over the reference channel corresponding to the data channel, to derive skew detection results of all the segments in the data block; and d) for each of the data blocks, selecting the skew detection result of one of the segments from among the skew detection results of all the segments in the data block as a skew detection result of the data block according to a predetermined setting; and S 2 ) selecting a skew detection result with the maximum skew from among the skew detection results of all the data blocks of the frame of data over the data channel as a skew detection result of the frame of data over the data channel.