The invention discloses an E1 emulation realization method, which relates to the field of
network simulation and comprises the following steps of: performing protocol encapsulation on a direction, and performing
serialization processing on received data to generate a real-time transport protocol value; assembling a
time division multiplexing (TDM)
payload into a frame, forming cache data packets by using the processed data, and finishing a corresponding description table; attaching packet headers to the TDM
payload, generating control word information and real-time transport protocol information according to configuration, and performing encapsulation according to a protocol; performing
clock domain adaptation on the processed data, finishing
Ethernet media access control (MAC)
processing, and transmitting
Ethernet data by using a
media independent interface (MII); performing protocol decapsulation on the direction, receiving and caching the
Ethernet data, and finishing MAC layer
processing; classifying and identifying the Ethernet data packets, extracting the
payload and related control bytes, and counting state information; and performing
clock recovery on a processed TDM payload code
stream, and externally transmitting the processed TDM payload code
stream. The method is relatively lower in cost; updating can be performed; and requirements on the performance of a
central processing unit (CPU) are reduced, and
clock recovery performance is improved.