Method and device for transparent transmission of 10G-BASE-R signals to OTN based on FPGA

Through the collaborative work of FPGA and switching chips, the PCS layer of the 10G-BASE-R signal is transparently transmitted to the OTN layer, which solves the problem that OPU2 cannot completely transmit the 10G-BASE-R signal, and realizes the complete transmission and transmission of the signal on OTN. Transparent business transmission.

CN115765929BActive Publication Date: 2024-08-23ANHUI WANTONG POSTS & TELECOMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211520078.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-30
Publication Date
2024-08-23
Estimated Expiration
2042-11-30

AI Technical Summary

Technical Problem

In OTN, OPU2 cannot completely transmit the 10G-BASE-R signal, especially when the PCS layer is transparently transmitted, resulting in incomplete signal transmission.

Method used

Using FPGA as the core, through the collaborative work of the switching chip and the clock chip, the PCS layer of the 10G-BASE-R signal is transparently transmitted to the OTN layer, the clock is homologous and asynchronously processed, fixed stuffing bytes are added, and mapped to OPU2E, and Perform serial-to-parallel conversion to ensure complete signal transmission.

Benefits of technology

It realizes the complete transmission of 10G-BASE-R signals on OTN, transmits preamble, SFD, IPG and other information outside the MAC layer, ensuring full-bit transparent transmission of 10GE services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115765929B
    Figure CN115765929B
Patent Text Reader

Abstract

The present invention discloses a method and device for transparently transmitting 10G-BASE-R signals to OTN based on FPGA. The method uses FPGA as the core to complete the main function of transparently transmitting 10G-BASE-R signals from the PCS layer to the OTN layer; the switching chip caches and forwards the 10G-BASE-R signal, and the clock chip assists the FPGA in realizing the scheme of clock homology for sending and clock recovery for receiving. The scheme of clock homology for sending and clock recovery for receiving and BMP mapping are completed by FPGA and clock chip, and 10G-BASE-R is transparently transmitted and mapped to the OTN layer via the PCS layer, so as to realize the direct transmission of 10G-BASE-R signals on OTN. In order to directly transmit the complete 10G‑BASE‑R signal (carrying PCS layer information) on OTN, the present invention maps the 10G‑BASE‑R signal to OPU2E by increasing the frame rate according to the G.709 protocol, thereby realizing full-bit transparent transmission of 10GE services. In addition to transmitting the MAC layer, it can also provide information such as preamble, SFD (frame start delimiter), IPG (packet gap), 64 / 66B line code, etc.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer network data communication, and in particular to a method and device for transparently transmitting a 10G-BASE-R signal to an OTN based on an FPGA. Background Art

[0002] For OTN transmission signals, the optical transport network (OTN) interface protocol G.709 specifies multiple OTN frame rates, among which the net load nominal bit rate of OPU2 is about 9995276.962Kbit / s, which is similar to the rate level of 10 Gigabit Ethernet (XGE). 10G-BASE-R is a fiber-based LAN 10 Gigabit Ethernet, which uses 64B / 66B encoding and has a rate of 10.3125Gbit / s. By comparison, it can be seen that in the case of PCS layer transparent transmission, OPU2 cannot fully transmit 10G-BASE-R signals. Summary of the invention

[0003] The present invention proposes a method for transparently transmitting 10G-BASE-R signals to OTN based on FPGA, which can solve at least one of the above technical problems.

[0004] To achieve the above object, the present invention adopts the following technical solutions:

[0005] A method for transparently transmitting a 10G-BASE-R signal to an OTN based on an FPGA, comprising:

[0006] FPGA acts as the core to transparently transmit the 10G-BASE-R signal from the PCS layer to the OTN layer. The switching chip caches and forwards the 10G-BASE-R signal. The clock chip assists FPGA in realizing the same source of the sending clock and the recovery of the receiving clock.

[0007] When the 10G-BASE-R signal enters the Ethernet side switch chip,

[0008] Step 1: The switching chip performs the first processing, writes the received 10G-BASE-R signal into the buffer BUF, and forwards the packet to the FPGA using its own clock;

[0009] Step 2: The Ethernet side serdes module of the FPGA performs the second processing. The data is converted from serial to parallel via the PMA layer without PCS layer processing. Full bit transparent transmission is performed and the packet is sent to the Ethernet side receiving asynchronous FIFO.

[0010] Step 3, the Ethernet receiving asynchronous FIFO of the FPGA performs the third processing, performs asynchronous reading and writing according to the system clock of the backward BMP mapping module and the receiving clock of the forward Ethernet side serdes, and transmits the packet to the BMP mapping module;

[0011] Step 4: The BMP mapping module of the FPGA performs the fourth processing, adds 64 fixed padding bytes to the 1905-1920 columns of the OTN frame, maps the PCS transparently transmitted data packet to the OPU2E, and sends the encapsulated OTU2E to the OTN side serdes module;

[0012] Step 5: The serdes module on the OTN side of the FPGA performs the fifth processing, uses the same clock as the 10G-BASE-R signal, performs serial-to-parallel conversion on the OTU2E, and sends the serial OTN signal out of the device from the optical port.

[0013] When the OTN signal enters the optical port of the device,

[0014] Step 6: The serdes module on the OTN side of the FPGA performs the sixth processing, receives the OTN signal input from the optical port, performs serial-to-parallel conversion on the signal, and sends the OTU2E to the BMP demapping module;

[0015] Step 7, the BMP demapping module of the FPGA performs the seventh processing, decapsulates the OTU2E, extracts the Ethernet packet from the OPU2E, and sends the packet to the Ethernet side to the asynchronous FIFO;

[0016] Step 8, the Ethernet side of the FPGA sends the asynchronous FIFO to perform the eighth processing, caches the data packets received from the BMP demapping module, reads the data packets in the FIFO according to the sending clock of the Ethernet side serdes module, and sends the data waterline cached in the FIFO to the frequency division module;

[0017] Step 9, the frequency division module of the FPGA performs the ninth processing, compares the data watermark of the FIFO cache with the high watermark and the low watermark that have been set, adjusts the frequency division coefficient according to the comparison result, generates a frequency division signal (dynamic adjustment), and sends the frequency division signal to the clock chip;

[0018] Step 10, the clock chip performs the tenth processing, multiplies the frequency of the 156.25M sending clock of the Ethernet side serdes according to the frequency division signal, and sends the 156.25M clock to the Ethernet side serdes module;

[0019] Step 11, the Ethernet side serdes module of the FPGA performs the eleventh processing. For the data read out from the asynchronous FIFO sent by the Ethernet side, the PCS layer transparently transmits it, and the PMA layer performs serial-to-parallel conversion and sends the serial data to the switching chip;

[0020] Step 12, the switching chip performs the twelfth processing, writes the 10G-BASE-R signal from the FPGA into the buffer BUF, and uses its own clock to forward the 10G-BASE-R signal to the corresponding interface sending device.

[0021] In another aspect, the present invention provides a terminal device for transparently transmitting a 10G-BASE-R signal to an OTN based on an FPGA, the device comprising:

[0022] The switching chip is used for the transceiver processing of the 10G-BASE-R signal on the Ethernet side, forwarding the 10G-BASE-R signal from the Ethernet side to the FPGA, and receiving the 10G-BASE-R signal from the FPGA and forwarding it to the Ethernet side. The switching chip requires the clock chip to provide the same source clock.

[0023] The clock chip is used to implement the same source clock for the sending clock and the recovery scheme for the receiving clock, provide the same source clock to the switching chip and FPGA, receive the divided signal from the FPGA frequency division module and multiply the frequency to output the sending clock of the Ethernet side serdes.

[0024] FPGA is used to realize the function of transparently transmitting the 10G-BASE-R signal from the PCS layer to the OTN layer, receiving the 10G-BASE-R signal from the switching chip, and sending the processed OTN signal to the optical port; receiving the OTN signal input from the optical port, and sending the processed 10G-BASE-R signal to the switching chip. The module mainly includes the Ethernet side serdes module, the OTN side serdes module, the Ethernet receiving asynchronous FIFO, the Ethernet sending asynchronous FIFO, the BMP mapping module, the BMP demapping module and the frequency division module.

[0025] As mentioned above, when the 10G-BASE-R signal enters the Ethernet side switch chip,

[0026] In step 1, the switching chip performs the first processing, writes the received 10G-BASE-R signal into the buffer BUF, and forwards the packet to the FPGA using its own clock. The switching chip requires the clock chip to provide the same source clock for caching and forwarding 10G-BASE-R signals.

[0027] In step 2, the Ethernet side serdes module of the FPGA performs the second processing. The data is converted from serial to parallel through the PMA layer, and no PCS layer processing is performed. Full bit transparent transmission is performed and the packet is sent to the Ethernet receiving asynchronous FIFO. In order to transmit the complete 10G-BASE-R signal, the data is converted from serial data to parallel data at the PMA layer and transparently transmitted at the PCS layer. In addition to transmitting the MAC layer, it can also provide information such as preamble, SFD (frame start delimiter), IPG (packet gap), 64 / 66B line code, etc.

[0028] In step 3, the FPGA's Ethernet receiving asynchronous FIFO performs the third processing, performs asynchronous reading and writing according to the system clock of the backward BMP mapping module and the receiving clock of the forward Ethernet side serdes, and transmits the packet to the BMP mapping module. The data packet is transparently transmitted at the PCS layer, without passing through the MAC layer, and is directly sent to the FPGA's BMP mapping module across the clock domain by the asynchronous FIFO.

[0029] In step 4, the BMP mapping module of the FPGA performs the fourth processing, adds 64 fixed padding bytes to the 1905-1920 columns of the OTN frame, maps the PCS transparently transmitted data packet to OPU2E, and sends the encapsulated OTU2E to the OTN side serdes module. The BMP mapping module maps the data packet to OPU2E, performs necessary frame processing on OPU2E to obtain OTU2E, and sends OTU2E to the OTN side serdes of the FPGA.

[0030] In step 5, the OTN-side serdes module of the FPGA performs the fifth processing, uses the same clock as the 10G-BASE-R signal, performs serial-to-parallel conversion on the OTU2E, and sends the serial OTN signal out of the device from the optical port. When the OTN-side serdes sends data to the optical port, it needs to keep the same clock as the 10G-BASE-R signal.

[0031] When the OTN signal enters the optical port of the device,

[0032] In step 6, the OTN side serdes module of the FPGA performs the sixth processing, receives the OTN signal input from the optical port, performs serial-to-parallel conversion on the signal, and sends the OTU2E to the BMP demapping module.

[0033] In step 7, the BMP demapping module of the FPGA performs the seventh processing, decapsulates the OTU2E, extracts the Ethernet packet from the OPU2E, and sends the packet to the Ethernet send asynchronous FIFO. The BMP demapping module performs BMP demapping processing on the received OTU2E signal and extracts the Ethernet packet from the OPU2E.

[0034] In step 8, the Ethernet side of the FPGA sends the asynchronous FIFO to perform the eighth processing, caches the data packets received from the BMP demapping module, reads the data packets in the FIFO according to the sending clock of the Ethernet side serdes module, and sends the data watermark cached in the FIFO to the frequency division module. The Ethernet side sends the asynchronous FIFO to realize the cross-clock domain data transmission from the BMP module to the Ethernet side serdes, records the data watermark cached in the FIFO, and is used to monitor the speed relationship of the FIFO read and write clocks for adjustment.

[0035] In step 9, the frequency division module of the FPGA performs the ninth processing, compares the data watermark of the FIFO cache with the high watermark and the low watermark that have been set, adjusts the frequency division coefficient according to the comparison result, generates a frequency division signal (dynamic adjustment), and sends the frequency division signal to the clock chip. Set the high watermark and the low watermark according to the depth of the FIFO, compare the data watermark of the FIFO cache with the high and low watermarks, if it is lower than the low watermark, appropriately increase the frequency division coefficient; if it is higher than the high watermark, appropriately reduce the frequency division coefficient; if it is between the two, use the reference value to generate the frequency division signal. The frequency division module adopts the FIFO watermark algorithm, dynamically adjusts the frequency division according to the watermark of the FIFO cache data packet, and realizes the receiving clock recovery scheme (the clock does not follow in real time, and the recovery is the average value of the opposite end clock over a period of time. In addition, the fifo cache needs to be large enough to prevent the fifo from being full and causing inaccurate recovery of the clock).

[0036] In step 10, the clock chip performs the tenth processing, multiplies the frequency of the 156.25M sending clock of the Ethernet side serdes according to the frequency division signal, and sends the 156.25M clock to the Ethernet side serdes module.

[0037] In step 11, the Ethernet side serdes module of the FPGA performs the eleventh processing. For the data read out from the asynchronous FIFO sent from the Ethernet side, the PCS layer transmits transparently, and the PMA layer performs serial-to-parallel conversion, and sends the serial data to the switching chip. The Ethernet side serdes module generates tx_clk according to the 156.25M clock provided by the clock chip, uses tx_clk to read the data packet sent from the Ethernet to the asynchronous FIFO, and the PCS layer transmits transparently, and the PMA layer converts the parallel data into serial data.

[0038] In step 12, the switching chip performs the twelfth processing, writes the 10G-BASE-R signal from the FPGA into the buffer BUF, and forwards the 10G-BASE-R signal to the corresponding interface sending device using its own clock.

[0039] It can be seen from the above technical scheme that the method of transparent transmission of 10G-BASE-R signal to OTN based on FPGA of the present invention provides a design scheme and terminal equipment of transparent transmission of 10G-BASE-R signal to OTN based on FPGA. In order to directly transmit the complete 10G-BASE-R signal (carrying PCS layer information) on OTN, the present invention maps the 10G-BASE-R signal to OPU2E by increasing the frame rate according to the G.709 protocol, thereby realizing full-bit transparent transmission of 10GE service. In addition to transmitting the mac layer, it can also provide information such as preamble, SFD (frame start delimiter), IPG (packet gap), 64 / 66B line code, etc.

[0040] The beneficial effects of the present invention are:

[0041] Provided is a design scheme and terminal equipment for transparent transmission of 10G-BASE-R signals to OTN based on FPGA. In the scheme of the present invention, FPGA is used as the core to complete the main function of transparently transmitting the 10G-BASE-R signal from the PCS layer to the OTN layer. The switching chip caches and forwards the 10G-BASE-R signal, and the clock chip assists the FPGA in realizing the scheme of clock homology in the sending direction and clock recovery in the receiving direction. When the 10G-BASE-R signal enters the Ethernet side switching chip, the switching chip performs the first processing, writes the received 10G-BASE-R signal into the cache BUF, and forwards the packet to the FPGA using its own clock; the Ethernet side serdes module of the FPGA performs the second processing, the data is converted from serial to parallel through the PMA layer, no PCS layer processing is performed, full bit transparent transmission is performed, and the packet is transmitted to the Ethernet receiving asynchronous FIFO; the Ethernet receiving asynchronous FIFO of the FPGA performs the third processing, according to the system clock of the backward BMP mapping module and the forward Ethernet side serde s's receiving clock is asynchronously read and written, and the packet is transmitted to the BMP mapping module; the BMP mapping module of the FPGA performs the fourth processing, adds 64 fixed padding bytes to the 1905-1920 columns of the OTN frame, maps the PCS transparent data packet to OPU2E, and sends the encapsulated OTU2E to the serdes module on the OTN side; the serdes module on the OTN side of the FPGA performs the fifth processing, uses the same clock as the 10G-BASE-R signal, performs serial-to-parallel conversion on the OTU2E, and sends the serial OTN signal out of this device from the optical port.When the OTN signal enters the optical port of the device, the OTN side serdes module of the FPGA performs the sixth processing, receives the OTN signal input from the optical port, performs serial-to-parallel conversion on the signal, and sends the OTU2E to the BMP demapping module; the BMP demapping module of the FPGA performs the seventh processing, decapsulates the OTU2E, extracts the Ethernet packet from the OPU2E, and sends the packet to the Ethernet send asynchronous FIFO; the Ethernet send asynchronous FIFO of the FPGA performs the eighth processing, caches the data packet received from the BMP demapping module, reads the data packet in the FIFO according to the send clock of the Ethernet side serdes module, and sends the data watermark cached in the FIFO to the frequency division module; the frequency division module of the FPGA performs the ninth processing, compares the data watermark cached in the FIFO with the set The size of the high waterline and the low waterline is adjusted according to the comparison result, the frequency division coefficient is generated (dynamic adjustment), and the frequency division signal is sent to the clock chip; the clock chip performs the tenth processing, and multiplies the 156.25M sending clock of the Ethernet side serdes according to the frequency division signal, and sends the 156.25M clock to the Ethernet side serdes module; the Ethernet side serdes module of the FPGA performs the eleventh processing, for the data read out of the Ethernet side asynchronous FIFO, the PCS layer is transparently transmitted, the PMA layer performs serial-to-parallel conversion, and the serial data is sent to the switching chip; the switching chip performs the twelfth processing, writes the 10G-BASE-R signal from the FPGA into the cache BUF, and uses its own clock to forward the 10G-BASE-R signal to the corresponding interface sending device. The present invention completes the scheme of sending clock homology and receiving clock recovery and BMP mapping through FPGA and clock chip, and maps 10G-BASE-R to the OTN layer through PCS layer transparent transmission, so as to realize the direct transmission of 10G-BASE-R signal on OTN. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A flowchart of steps provided for an embodiment of the present invention;

[0043] Figure 2 A hardware connection structure diagram provided for an embodiment of the present invention;

[0044] Figure 3 A structural block diagram of a device provided in an embodiment of the present invention;

[0045] Figure 4 A first processing flow chart of a switching chip provided by an embodiment of the present invention;

[0046] Figure 5 A second processing flow chart of the Ethernet side serdes module of the FPGA provided by an embodiment of the present invention;

[0047] Figure 6A third processing flow chart of the Ethernet receiving asynchronous FIFO of the FPGA provided by the embodiment of the present invention;

[0048] Figure 7 A fourth processing flow chart of the BMP mapping module of the FPGA provided by an embodiment of the present invention;

[0049] Figure 8 A fifth processing flow chart of the OTN side serdes module of the FPGA provided by an embodiment of the present invention;

[0050] Fig. 9 A sixth processing flow chart of the OTN side serdes module of the FPGA provided by an embodiment of the present invention;

[0051] Fig.10 A seventh processing flow chart of the BMP demapping module of the FPGA provided by the embodiment of the present invention;

[0052] Fig.11 The eighth processing flow chart of the Ethernet-to-asynchronous FIFO of the FPGA provided by the embodiment of the present invention;

[0053] Fig.12 A ninth processing flow chart of the frequency division module of the FPGA provided by an embodiment of the present invention;

[0054] Fig.13 A tenth processing flow chart of a clock chip provided by an embodiment of the present invention;

[0055] Fig.14 The eleventh processing flow chart of the Ethernet side serdes module of the FPGA provided by the embodiment of the present invention;

[0056] Fig.15 This is a twelfth processing flow chart of the switching chip provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0058] like Figure 1 As shown, the method for transparently transmitting a 10G-BASE-R signal to an OTN based on an FPGA according to this embodiment includes:

[0059] When the 10G-BASE-R signal enters the Ethernet side switch chip,

[0060] Step S101, the switching chip performs the first processing, writes the received 10G-BASE-R signal into the buffer BUF, and forwards the packet to the FPGA using its own clock;

[0061] Step S102, the Ethernet side serdes module of the FPGA performs the second processing, the data is converted into serial and parallel data by the PMA layer, no PCS layer processing is performed, full bit transparent transmission is performed, and the packet is sent to the Ethernet receiving asynchronous FIFO;

[0062] Step S103, the Ethernet receiving asynchronous FIFO of the FPGA performs the third processing, performs asynchronous reading and writing according to the system clock of the backward BMP mapping module and the receiving clock of the forward Ethernet side serdes, and transmits the packet to the BMP mapping module;

[0063] Step S104, the BMP mapping module of the FPGA performs the fourth processing, adds 64 fixed padding bytes to the 1905-1920 columns of the OTN frame, maps the PCS transparently transmitted data packet to the OPU2E, and sends the encapsulated OTU2E to the OTN side serdes module;

[0064] Step S105, the OTN side serdes module of the FPGA performs the fifth processing, uses a clock that is the same as the clock of the 10G-BASE-R signal, performs serial-to-parallel conversion on the OTU2E, and sends the serial OTN signal out of the device from the optical port.

[0065] When the OTN signal enters the optical port of the device,

[0066] Step S106, the OTN side serdes module of the FPGA performs the sixth processing, receives the OTN signal input by the optical port, performs serial-to-parallel conversion on the signal, and sends the OTU2E to the BMP demapping module;

[0067] Step S107, the BMP demapping module of the FPGA performs the seventh processing, decapsulates the OTU2E, extracts the Ethernet packet from the OPU2E, and sends the packet to the Ethernet send asynchronous FIFO;

[0068] Step S108, the Ethernet send asynchronous FIFO of the FPGA performs the eighth processing, caches the data packets received from the BMP demapping module, reads the data packets in the FIFO according to the send clock of the Ethernet side serdes module, and sends the data waterline cached in the FIFO to the frequency division module;

[0069] Step S109, the frequency division module of the FPGA performs the ninth processing, compares the data watermark of the FIFO buffer with the high watermark and the low watermark that have been set, adjusts the frequency division coefficient according to the comparison result, generates a frequency division signal (dynamic adjustment), and sends the frequency division signal to the clock chip;

[0070] Step S110, the clock chip performs the tenth processing, multiplies the frequency of the 156.25M sending clock of the Ethernet side serdes according to the frequency division signal, and sends the 156.25M clock to the Ethernet side serdes module;

[0071] Step S111, the Ethernet side serdes module of the FPGA performs the eleventh processing, for the data read out from the asynchronous FIFO sent by the Ethernet side, the PCS layer transparently transmits it, the PMA layer performs serial-to-parallel conversion, and sends the serial data to the switching chip;

[0072] Step S112, the switching chip performs the twelfth processing, writes the 10G-BASE-R signal from the FPGA into the buffer BUF, and forwards the 10G-BASE-R signal to the corresponding interface sending device using its own clock.

[0073] like Figure 2 As shown in the figure, FPGA is the core to complete the main function of transparently transmitting the 10G-BASE-R signal from the PCS layer to the OTN layer. The switching chip caches and forwards the 10G-BASE-R signal, and the clock chip assists the FPGA to implement the solution of clock homology for sending and clock recovery for receiving. After the 10G-BASE-R signal enters the PE device, it first enters the switching chip, which forwards it to the FPGA, which processes it into an OTN signal and sends it out to the device.

[0074] According to another aspect of an embodiment of the present invention, a terminal device for transparently transmitting a 10G-BASE-R signal to an OTN based on an FPGA is provided. Figure 3 As shown, in which the thick arrow in the figure represents forwarding traffic, the thin arrow represents a clock, and the device includes:

[0075] The switching chip is used for the transceiver processing of the 10G-BASE-R signal on the Ethernet side, forwarding the 10G-BASE-R signal from the Ethernet side to the FPGA, and receiving the 10G-BASE-R signal from the FPGA and forwarding it to the Ethernet side. The switching chip requires the clock chip to provide the same source clock.

[0076] The clock chip is used to implement the same source clock for the sending clock and the recovery scheme for the receiving clock, provide the same source clock to the switching chip and FPGA, receive the divided signal from the FPGA frequency division module and multiply the frequency to output the sending clock of the Ethernet side serdes.

[0077] FPGA is used to realize the function of transparently transmitting the 10G-BASE-R signal from the PCS layer to the OTN layer, receiving the 10G-BASE-R signal from the switching chip, and sending the processed OTN signal to the optical port; receiving the OTN signal input from the optical port, and sending the processed 10G-BASE-R signal to the switching chip. The module mainly includes the Ethernet side serdes module, the OTN side serdes module, the Ethernet receiving asynchronous FIFO, the Ethernet sending asynchronous FIFO, the BMP mapping module, the BMP demapping module and the frequency division module.

[0078] To further understand the steps and procedures of forwarding a data packet in a device provided by an embodiment of the present invention, a detailed description will be given below.

[0079] In step S101, the switching chip performs the first processing, writes the received 10G-BASE-R signal into the buffer BUF, and forwards the packet to the FPGA using its own clock. The switching chip requires the clock chip to provide a homologous clock for caching and forwarding 10G-BASE-R signals. The switching chip performs the first processing flow as follows: Figure 4 As shown:

[0080] Step S401, 10G-BASE-R signal enters the Ethernet side switching chip;

[0081] Step S402, writing the received 10G-BASE-R signal into the buffer BUF;

[0082] Step S403: forward the packet to the FPGA using its own clock.

[0083] In step S102, the Ethernet side serdes module of the FPGA performs the second processing. The data is converted from serial to parallel through the PMA layer, and no PCS layer processing is performed. Full bit transparent transmission is performed and the packet is sent to the Ethernet receiving asynchronous FIFO. In order to transmit the complete 10G-BASE-R signal, the data is converted from serial data to parallel data at the PMA layer and transparently transmitted at the PCS layer. In addition to transmitting the mac layer, it can also provide information such as preamble, SFD (frame start delimiter), IPG (packet interval), 64 / 66B line code, etc. The Ethernet side serdes module of the FPGA performs the second processing flow as follows Figure 5 As shown:

[0084] Step S501: receiving a data packet from a switching chip;

[0085] Step S502: The PMA layer converts the serial data into parallel data;

[0086] Step S503: The parallel data is not processed by the PCS layer, and full-bit transparent transmission is performed;

[0087] Step S504: Send the packet to the Ethernet receiving asynchronous FIFO.

[0088] In step S103, the FPGA's Ethernet receiving asynchronous FIFO performs the third processing, performs asynchronous reading and writing according to the system clock of the backward BMP mapping module and the receiving clock of the forward Ethernet side serdes, and transmits the packet to the BMP mapping module. The data packet is transparently transmitted at the PCS layer, without passing through the MAC layer, and is directly sent to the FPGA's BMP mapping module across the clock domain by the asynchronous FIFO. The FPGA's Ethernet receiving asynchronous FIFO performs the third processing flow as follows Figure 6 As shown:

[0089] Step S601, receiving a data packet from the Ethernet side serdes module;

[0090] Step S602, write the data packet into FIFO according to the receiving clock of the Ethernet side serdes;

[0091] Step S603: read the data packet in the FIFO according to the system clock of the BMP mapping module, and transmit the packet to the BMP mapping module.

[0092] In step S104, the BMP mapping module of the FPGA performs the fourth processing, adds 64 fixed padding bytes to the 1905-1920 columns of the OTN frame, maps the PCS transparently transmitted data packet to OPU2E, and sends the encapsulated OTU2E to the OTN side serdes module. The BMP mapping module maps the data packet to OPU2E, performs necessary frame processing on OPU2E to obtain OTU2E, and sends OTU2E to the OTN side serdes of the FPGA. The BMP mapping module of the FPGA performs the fourth processing flow as follows Figure 7 As shown:

[0093] Step S701, receiving a data packet from the Ethernet to the asynchronous FIFO;

[0094] Step S702: Generate necessary indication signals and overhead signals;

[0095] Step S703: insert the data packet and overhead into the frame format according to the indication signal, and add 64 fixed padding bytes in the 1905-1920 columns of OPU2E;

[0096] Step S704: encapsulate to obtain OTU2E, and send OTU2E to the OTN side serdes module.

[0097] In step S105, the OTN side serdes module of the FPGA performs the fifth processing, uses the same clock as the 10G-BASE-R signal, performs serial-to-parallel conversion on the OTU2E, and sends the serial OTN signal out of the device from the optical port. When the OTN side serdes sends data to the optical port, it needs to keep the same clock as the 10G-BASE-R signal. The fifth processing flow of the OTN side serdes module of the FPGA is as follows: Figure 8 As shown:

[0098] Step S801: Receive OTU2E from the BMP mapping module;

[0099] Step S802: The PMA layer converts the parallel data into serial data;

[0100] Step S803: Send the serial OTN signal out of the device from the optical port.

[0101] When the OTN signal enters the optical port of the device,

[0102] In step S106, the FPGA OTN side serdes module performs the sixth processing, receives the OTN signal input from the optical port, performs serial-to-parallel conversion on the signal, and sends the OTU2E to the BMP demapping module. The FPGA OTN side serdes module performs the sixth processing flow as follows: Fig. 9 As shown:

[0103] Step S901: receiving an input OTN signal from an optical port;

[0104] Step S902: PMA converts serial data into parallel data to obtain OTU2E.

[0105] Step S903: Send OTU2E to the BMP demapping module.

[0106] In step S107, the BMP demapping module of the FPGA performs the seventh processing, decapsulates the OTU2E, extracts the Ethernet packet from the OPU2E, and sends the packet to the Ethernet send asynchronous FIFO. The BMP demapping module performs BMP demapping processing on the received OTU2E signal, extracts the Ethernet packet from the OPU2E. The BMP demapping module of the FPGA performs the seventh processing flow as follows: Fig.10 As shown:

[0107] Step S1001: Receive OTU2E from the serdes module on the OTN side;

[0108] Step S1002: decapsulate OTU2E to obtain ODU2E;

[0109] Step S1003: collecting frame overhead and format information of ODU2E;

[0110] Step S1004: extracting Ethernet packets from OPU2E according to the collected signals;

[0111] Step S1005: transmit the packet to the Ethernet asynchronous FIFO.

[0112] In step S108, the Ethernet send asynchronous FIFO of the FPGA performs the eighth processing, caches the data packets received from the BMP demapping module, reads the data packets in the FIFO according to the send clock of the Ethernet side serdes module, and sends the data watermark cached in the FIFO to the frequency division module. The Ethernet send asynchronous FIFO realizes the cross-clock domain data transmission from the BMP module to the Ethernet side serdes, records the data watermark cached in the FIFO, and is used to monitor the speed relationship of the FIFO read and write clocks for adjustment. The Ethernet send asynchronous FIFO of the FPGA performs the eighth processing flow as follows: Fig.11 As shown:

[0113] Step S1101, receiving a data packet from a BMP demapping module;

[0114] Step S1102, writing the data packet into the FIFO according to the system clock of the BMP demapping module;

[0115] Step S1103, according to the sending clock of the Ethernet side serdes module, read the data packet in the FIFO and transmit the packet to the Ethernet side serdes module;

[0116] Step S1104: extract the data waterline buffered in the FIFO, and send the data waterline buffered in the FIFO to the frequency division module.

[0117] In step S109, the frequency division module of the FPGA performs the ninth processing, compares the data watermark of the FIFO cache with the size of the high watermark and the low watermark that have been set, adjusts the frequency division coefficient according to the comparison result, generates a frequency division signal (dynamic adjustment), and sends the frequency division signal to the clock chip. The high watermark and the low watermark are set according to the depth of the FIFO, and the data watermark of the FIFO cache is compared with the high and low watermarks. If it is lower than the low watermark, the frequency division coefficient is appropriately increased; if it is higher than the high watermark, the frequency division coefficient is appropriately reduced; if it is between the two, the reference value is used to generate the frequency division signal. The frequency division module adopts the FIFO watermark algorithm to dynamically adjust the frequency division according to the watermark of the FIFO cache data packet to realize the receiving clock recovery scheme (the clock does not follow in real time, and the recovered clock is the average value of the opposite clock over a period of time. In addition, the fifo cache needs to be large enough to prevent the fifo from being empty and full, resulting in inaccurate recovery of the clock). The frequency division module of the FPGA performs the ninth processing flow as follows Fig.12 As shown:

[0118] Step S1201, sending the data watermark buffered in the FIFO from Ethernet to the asynchronous FIFO;

[0119] Step S1202, determining whether the data waterline in the FIFO buffer is lower than the low waterline;

[0120] Step S1203: if yes, increase the frequency division coefficient;

[0121] Step S1204: If no, determine whether the data waterline of the buffer in the FIFO is higher than the high waterline;

[0122] Step S1205: if yes, reduce the frequency division coefficient;

[0123] Step S1206: If no, use the reference value of the frequency division coefficient;

[0124] Step S1207: Generate a frequency-divided signal according to the frequency-divided coefficient, and send the frequency-divided signal to the clock chip.

[0125] In step S110, the clock chip performs the tenth processing, multiplies the frequency of the 156.25M clock of the Ethernet side serdes according to the frequency division signal, and sends the 156.25M clock to the Ethernet side serdes module. The clock chip performs the tenth processing flow as follows: Fig.13 As shown:

[0126] Step S1301, receiving a frequency division signal from a frequency division module;

[0127] Step S1302: multiply the 156.25M sending clock of the Ethernet side serdes according to the frequency division signal;

[0128] Step S1303: Send the 156.25M clock to the Ethernet side serdes module.

[0129] In step S111, the Ethernet side serdes module of the FPGA performs the eleventh processing. For the data read out from the asynchronous FIFO sent from the Ethernet side, the PCS layer transmits it transparently, and the PMA layer performs serial-to-parallel conversion, and sends the serial data to the switching chip. The Ethernet side serdes module generates tx_clk according to the 156.25M clock provided by the clock chip, uses tx_clk to read the data packet sent from the Ethernet to the asynchronous FIFO, and the PCS layer transmits it transparently, and the PMA layer converts the parallel data into serial data. The client side serdes module of the FPGA performs the eleventh processing flow as follows: Fig.14 As shown:

[0130] Step S1401, receiving a 156.25M clock from a clock chip;

[0131] Step S1402, generating tx_clk according to the 156.25M clock;

[0132] Step S1403, using tx_clk to read the data packet in the Ethernet asynchronous FIFO;

[0133] Step S1404: transparently transmit the data packet at the PCS layer;

[0134] Step S1405, the PMA layer converts the parallel data into serial data;

[0135] Step S1406: Send the serial data to the switching chip.

[0136] In step S112, the switching chip performs the twelfth processing, writes the 10G-BASE-R signal from the FPGA into the buffer BUF, and uses its own clock to forward the 10G-BASE-R signal to the corresponding interface sending device. The switching chip performs the twelfth processing flow as follows Fig.15 As shown:

[0137] Step S1501, receiving a data packet from the Ethernet side serdes module;

[0138] Step S1502, writing the 10G-BASE-R signal from the FPGA into the buffer BUF;

[0139] Step S1503: Use its own clock to forward the 10G-BASE-R signal to the corresponding interface sending device.

[0140] In yet another aspect, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of any of the above methods.

[0141] On the other hand, the present invention further discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any of the above methods.

[0142] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the steps of any method in the above embodiments.

[0143] It is understandable that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts in the above method.

[0144] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0145] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0146] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for transparently transmitting 10G-BASE-R signals to OTN based on FPGA, characterized in that: FPGA acts as the core to transparently transmit the 10G-BASE-R signal from the PCS layer to the OTN layer. The switching chip caches and forwards the 10G-BASE-R signal. The clock chip assists FPGA in realizing the same source of the sending clock and the recovery of the receiving clock. The following steps are included: When the 10G-BASE-R signal enters the Ethernet side switch chip, Step 1: The switching chip performs the first processing, writes the received 10G-BASE-R signal into the buffer BUF, and forwards the packet to the FPGA using its own clock; Step 2: The Ethernet side serdes module of the FPGA performs the second processing. The data is converted from serial to parallel via the PMA layer without PCS layer processing. Full bit transparent transmission is performed and the packet is sent to the Ethernet receiving asynchronous FIFO. Step 3, the Ethernet receiving asynchronous FIFO of the FPGA performs the third processing, performs asynchronous reading and writing according to the system clock of the backward BMP mapping module and the receiving clock of the forward Ethernet side serdes, and transmits the packet to the BMP mapping module; Step 4: The BMP mapping module of the FPGA performs the fourth processing, adds 64 fixed padding bytes to the 1905-1920 columns of the OTN frame, maps the PCS transparently transmitted data packet to the OPU2E, and sends the encapsulated OTU2E to the OTN side serdes module; Step 5: The serdes module on the OTN side of the FPGA performs the fifth processing, uses the same clock as the 10G-BASE-R signal, performs serial-to-parallel conversion on the OTU2E, and sends the serial OTN signal out of the device from the optical port; When the OTN signal enters the optical port of the device, Step 6: The serdes module on the OTN side of the FPGA performs the sixth processing, receives the OTN signal input from the optical port, performs serial-to-parallel conversion on the signal, and sends the OTU2E to the BMP demapping module; Step 7, the BMP demapping module of the FPGA performs the seventh processing, decapsulates the OTU2E, extracts the Ethernet packet from the OPU2E, and sends the packet to the Ethernet send asynchronous FIFO; Step 8, the Ethernet send asynchronous FIFO of the FPGA performs the eighth processing, caches the data packets received from the BMP demapping module, reads the data packets in the FIFO according to the send clock of the Ethernet side serdes module, and sends the data waterline cached in the FIFO to the frequency division module; Step 9, the frequency division module of the FPGA performs the ninth processing, compares the data watermark of the FIFO cache with the high watermark and the low watermark that have been set, adjusts the frequency division coefficient according to the comparison result, generates a frequency division signal, and sends the frequency division signal to the clock chip; Step 10, the clock chip performs the tenth processing, multiplies the frequency of the 156.25M sending clock of the Ethernet side serdes according to the frequency division signal, and sends the 156.25M clock to the Ethernet side serdes module; Step 11, the Ethernet side serdes module of the FPGA performs the eleventh processing. For the data read out from the asynchronous FIFO sent by the Ethernet side, the PCS layer transparently transmits it, and the PMA layer performs serial-to-parallel conversion and sends the serial data to the switching chip; Step 12, the switching chip performs the twelfth processing, writes the 10G-BASE-R signal from the FPGA into the buffer BUF, and uses its own clock to forward the 10G-BASE-R signal to the corresponding interface sending device.

2. A terminal device for transparently transmitting 10G-BASE-R signals to OTN based on FPGA, used to implement the method for transparently transmitting 10G-BASE-R signals to OTN based on FPGA according to claim 1, comprising: The switching chip is used for the transceiver processing of the 10G-BASE-R signal on the Ethernet side, forwarding the 10G-BASE-R signal from the Ethernet side to the FPGA, and receiving the 10G-BASE-R signal from the FPGA and forwarding it to the Ethernet side; the switching chip requires the clock chip to provide the same source clock; The clock chip is used to implement the same source clock for the sending clock and the recovery scheme for the receiving clock, provide the same source clock to the switching chip and FPGA, receive the divided signal of the FPGA frequency division module and multiply the frequency of the sending clock of the Ethernet side serdes; FPGA is used to realize the function of transparently transmitting the 10G-BASE-R signal from the PCS layer to the OTN layer, receiving the 10G-BASE-R signal from the switching chip, and sending the processed OTN signal to the optical port; receiving the OTN signal input from the optical port, and sending the processed 10G-BASE-R signal to the switching chip.

3. The FPGA-based 10G-BASE-R signal transparent transmission to the OTN terminal device according to claim 2, characterized in that: The FPGA module internally comprises an Ethernet side serdes module, an OTN side serdes module, an Ethernet receiving asynchronous FIFO, an Ethernet sending asynchronous FIFO, a BMP mapping module, a BMP demapping module and a frequency division module.