摘要 |
The present invention discloses a method for recognizing a Frame Check Sequence (FCS) in Generic Framing Procedure (GFP) encapsulation mode, comprising: removing the Core Header field of a GFP frame in a received GFP data stream, generating the delimiting signals in connection with the removed data stream, indicating the head of the frame, the end of the frame and whether the frame data is valid, respectively; extracting the PFI information from the GFP frame according to the delimiting signals and removing the Payload Header of the GFP frame; judging whether the GFP frame contains an FCS field according to the extracted PFI information in Step B, if yes, determining the starting position of the FCS field and removing the FCS field; otherwise, outputting the GFP data stream directly and completing the current procedure. The present invention also discloses apparatus for recognizing an FCS in GFP encapsulation mode. The method and apparatus of the present invention can eliminate error codes and be flexibly used in many applications with high adaptability.
|