摘要 |
<p>The present invention discloses a data stream framing method and apparatus. The data stream framing method includes: performing bit-shifting on the input data stream, wherein the data frame header of the data stream is not detected in a complete optical transport network data frame period; judging whether the data frame headers and the data frame periods of at least two continual data frames are correct in the shifted data stream; if they are correct, entering the framing state, and performing framing processing on the shifted data stream. In the background of the large capacity transmission, applying the present invention avoids that the needed programmable logic resources linearly increase with the enlargement of service capacity, and reduces the programmable logic resources and the design cost.</p> |