Patent ID: 8989215
Filing Date: 2015-03-24
Classification: H04L

Abstract:
1. A method for locating a data frame, comprising: obtaining a data stream within a current clock cycle and allocating a plurality of respective framing state machines to each corresponding byte of the date stream within the current clock cycle; respectively and simultaneously starting, by each of the plurality of corresponding framing state machines, hunting for a plurality of data frames from the respective corresponding bytes, and obtaining corresponding plurality of data frame hunt results, wherein the framing state machines change states based on the corresponding plurality of data frame hunt results and wherein a first corresponding data frame hunt result comprises a corresponding first starting byte of a first data frame hunted out by a first respective framing state machine; selecting, by each respective framing state machine, four consecutive adjacent bytes starting from a first byte of starting a hunt, comparing HEC calculation results of values of first two adjacent bytes in the four consecutive adjacent bytes with values of last two adjacent byes, and in case of equivalence, determining that a first byte in the first two adjacent bytes is the corresponding first starting byte of the first data frame; performing a hybrid error control (HEC) calculation on values of every two adjacent bytes of the data stream; determining by a first respective framing state machine from the plurality of corresponding framing state machines, the corresponding first starting byte of the first data frame within the current clock cycle according to a previous corresponding data frame hunt result within a previous clock cycle; and respectively, matching the corresponding plurality of data frame hunt results to the corresponding first starting byte of the first data frame as a successfully-matched hunt result within the current clock cycle.