Optical transceiver based on Ethernet switching
The optical transceiver designed through Ethernet switching technology realizes data interaction with multiple types of interfaces and multiple interfaces, supports virtualization applications and independent use, solves the problem that existing optical transceivers cannot be interconnected and paired with existing communication networks, and improves the efficiency of System reliability and stability.
Patent Information
- Application Number
- CN202410757475.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-10
AI Technical Summary
The current optical transceiver cannot realize data interaction with multiple types of interfaces and a large number of interfaces, cannot be interconnected with existing communication networks, and is used in pairs, and cannot implement virtualization applications or independent use.
The optical transceiver is designed using Ethernet switching technology. It implements data processing and interface conversion through two FPGAs, network switching units, optical transceiver units and multiple external interfaces. It supports data exchange of SGMII and XAUI interfaces and is implemented through the link control sub-module. Multiplexing and redundancy.
It realizes the interconnection of the main optical fiber and the main communication cable of the optical transceiver, supports multiple communication rates, is compatible with universal Ethernet links, enhances the reliability and stability of the system, allows the virtualization application and independent use of the optical transceiver, and solves the problem of paired use. shortcoming.
Smart Images

Figure CN118631341A
Abstract
Description
Technical Field
[0001] The invention relates to an optical terminal based on Ethernet exchange, which is mainly used for computer data transmission exchange and system interconnection. Background Art
[0002] With the development of the new generation of electronic information technology in recent years, the application of electronic information technology in the fields of national defense equipment, industrial automation control, nuclear power facilities, etc. has become popular, and higher requirements have been put forward for computer data transmission exchange and system interconnection. In addition, the types of external interfaces of the system have been diversified, and it is required to realize the expansion of transmission distance and enhancement of anti-interference of multi-type interface and multi-number interface data based on the existing communication infrastructure. At present, optical terminals cannot use the existing infrastructure to realize data interaction between optical terminals with multiple types of interfaces and multiple numbers of interfaces; optical terminals that support multiple types of interfaces and multiple numbers of interfaces use customized transmission solutions as the main optical fiber data transmission method, which cannot be interconnected with the existing communication network, and cannot use the existing optical transmission equipment to realize the hardware and software upgrade of multi-type and multi-number interface transmission solutions; at present, optical terminals are used in pairs, and it is impossible to realize the virtualization application and single use of optical terminals. Summary of the invention
[0003] The purpose of the present invention is to provide a method for designing an optical terminal for computer data transmission, exchange and system interconnection, which uses Ethernet switching technology to realize transmission, exchange and system interconnection.
[0004] The objective of the present invention is achieved through the following technical scheme: an optical terminal based on Ethernet switching, comprising two FPGAs, a network switching unit, an optical transceiver unit, a network interface unit and a plurality of external interfaces; all external interfaces perform interface data processing through FPGA1, and after processing, FPGA1 sends the data to the network switching unit, and the network switching unit leads a high-speed interface to FPGA2, and FPGA2 realizes data processing of the optical transceiver unit and the network interface unit; all channel physical interfaces of the network switching unit and FPGA1 are SGMII interfaces, and the channel physical interfaces of the network switching unit and FPGA2 are XAUI interfaces, and the network switching unit completes data exchange between the SGMII and XAUI interfaces;
[0005] The FPGA1 is used to complete the data conversion from various types of external interfaces to SGMII, and the FPGA1 includes an external interface data processing submodule, a data buffer submodule and an SGMII data processing submodule;
[0006] The external interface data processing submodule is used to perform receiving and sending processing on the external interface: (1) When the external interface data processing submodule performs receiving processing, for an external interface with a non-fixed data baud rate, a transparent transmission method is used to achieve baud rate adaptation, and a sampling clock is used to continuously sample the external interface; for an external interface with a fixed data baud rate, the corresponding clock is used to parse the data according to the bus protocol and frame format corresponding to the interface data; the processed data will be sent to the data cache submodule; (2) When the external interface data processing submodule performs sending processing, the reverse transformation is performed according to the data processing method when the data is received to generate external interface data; for an external interface with a non-fixed data baud rate, the sampling clock used when receiving sampling is used to convert the prepared data into serial and output it to the external interface; for an external interface with a fixed data baud rate, the corresponding clock is used to generate the prepared data into external interface data according to the bus protocol and frame format corresponding to the interface data;
[0007] The data cache submodule caches the received and sent data. The data cache submodule is composed of m groups of FIFOs. The number of FIFO groups is consistent with the number of external interfaces. Each group of FIFOs corresponds to an external interface. Each group of FIFOs is composed of a sending FIFO and a receiving FIFO. The data processed by the external interface data processing submodule will be cached in the receiving FIFO, and the SGMII data processing submodule will read the data. The data received by the SGMII data processing submodule will be cached in the sending FIFO, and the external interface data processing submodule will read the data. Each FIFO contains an independent data counter to count the amount of data currently cached internally.
[0008] The SGMII data processing submodule completes the generation and parsing of SGMII interface data: (1) When generating SGMII data, the data cached in the receive FIFO is read out for packet assembly. First, the cache counters of each receive FIFO are queried, and the receive FIFO with the highest current cache capacity is read first according to the data counter of each receive FIFO; the frame is assembled according to the MAC frame format, and the data read from the FIFO is filled into the data frame in the MAC frame format. The data frame is added with a frame header, and the assembled MAC frame is input to the GMII interface; the frame header is an ID frame, and the ID corresponds to different cache channels and external interface data types; when the receiving end receives data, the data output by the GMII interface is parsed according to the MAC frame, and the frame header of the data frame in the MAC frame is the ID frame; (2) When parsing SGMII data, the process is as follows: Figure 6 As shown, the SGMII IP core converts the received SGMII interface data into GMII data format, parses the GMII data, determines the cache channel and external interface data type corresponding to the current data according to the ID frame, and then writes the data into the corresponding transmit FIFO in the data cache submodule;
[0009] The FPGA2 completes data conversion from the optical transceiver unit and the network interface unit to the XAUI interface, link status monitoring and multi-path selection, and includes a data conversion submodule, an Ethernet interface submodule, and a link control submodule;
[0010] The data conversion submodule parses and processes the data of the XAUI interface; converts the XAUI interface data into the XGMII data format through the XAUI IP core, and parses the XGMII data to obtain the original data; performs secondary packet processing on the parsed original data to generate GMII data according to the Ethernet MAC frame format, and adds a frame number before the frame header ID in the data frame. After each frame is sent through Ethernet, the frame number will increase by one, and the frame number is obtained by the link control submodule;
[0011] The Ethernet interface submodule completes the conversion of data to the external optical interface and network interface, and selects Gigabit Ethernet or 10 Gigabit Ethernet according to the total system bandwidth;
[0012] The link control submodule implements multi-path selection and link status monitoring as well as dual-channel redundant backup; the link status of the optical interface determines whether the optical interface has established a link by detecting the LOS signal of the optical transceiver unit, and the link status of the network interface determines whether the network interface has established a link by reading the status register of the PHY chip using the configuration interface of the PHY chip; the link control submodule contains a cache module composed of RAM, and the data conversion submodule will cache the GMII data in the MAC frame format into the RAM first when generating it. The link control submodule will continuously detect the data written to the RAM. When a complete MAC frame is written, the frame data will be read from the RAM and its frame sequence number will be recorded and transmitted to the Ethernet interface submodule to generate Ethernet data. If the current communication link is disconnected during the transmission of the frame by the Ethernet interface submodule, resulting in the incomplete transmission of the frame, the frame will be re-read from the RAM according to the frame sequence number of the frame for retransmission. When the frame is completely transmitted, the address used by the frame in the RAM will become invalid, and the invalid data will be overwritten when new data is written to the RAM.
[0013] When the external interface data processing submodule receives and processes the external interface with a non-fixed data baud rate, it is assumed that the maximum baud rate supported by a certain external interface communication is S exb , then the sampling clock rate of the external interface is S exc The following formula must be satisfied:
[0014] S exb >2*S exb .
[0015] The total bandwidth of the SGMII interface must be greater than the total bandwidth occupied by the external interface sampling. Assuming the SGMII rate is SMI , the number of channels with non-fixed baud rates in the external channel is N exm The clock corresponding to the channel with unfixed baud rate is CLK exm , the number of channels with fixed baud rate in the external channel is N exn The analysis clock corresponding to the channel with fixed baud rate is CLK exn , then the number of SGMII channels required is N MI The following conditions must be met:
[0016]
[0017] x is the number of channels.
[0018] The beneficial effects of the present invention are:
[0019] 1. The main optical fiber and main communication cable of the optical terminal are interconnected through the Ethernet protocol, which can achieve a variety of communication rates to be compatible with the general Ethernet link, so that when the system is upgraded in performance, only the terminal equipment needs to be replaced without replacing the intermediate transmission link.
[0020] 2. The main optical fiber and the main communication cable back up each other and use two different data communication link methods. Either optical transmission or electrical signal transmission can be used. When a link is interfered or fails, it automatically switches to a transmission link with better link status to enhance system reliability and stability.
[0021] 3. Using Ethernet switching technology, users can customize VLAN rules and configure the data exchange range of each port data in the switch to achieve the purpose of data transmission isolation.
[0022] 4. Connect a computer to the Internet to which the optical terminal is connected. The computer runs the optical terminal virtualization software to realize the functions of virtualization of the entire optical terminal and virtualization of designated ports and control signals, thus solving the shortcoming that optical terminals must be used in pairs.
[0023] 5. The optical terminal system has the functions of link detection and switching and continuous detection of Ethernet transmission. When the link is disconnected, it can continue to transmit the unfinished data according to the frame sequence number. It has the characteristics of redundant backup and strong anti-interference ability. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A schematic diagram of an optical terminal system of the present invention;
[0025] Figure 2 This is the connection diagram of the FPGA1 submodule;
[0026] Figure 3A flowchart for receiving data for the external interface data processing submodule;
[0027] Figure 4 A flowchart for sending data to the external interface data processing submodule;
[0028] Figure 5 A flow chart for generating SGMII data for the SGMII data processing submodule;
[0029] Figure 6 Flowchart for parsing SGMII data for the SGMII data processing submodule;
[0030] Figure 7 This is the connection diagram of FPGA2 submodule;
[0031] Figure 8 It is the Ethernet MAC frame format;
[0032] Fig. 9 Design the overall block diagram for the Gigabit Ethernet interface;
[0033] Fig.10 Design the overall block diagram for the 10 Gigabit Ethernet interface;
[0034] Fig.11 Flow chart for dual-channel redundant backup;
[0035] Fig.12 This is a block diagram of the virtualized client software;
[0036] Fig.13 This is the interconnection diagram of optical terminal application scenario 1;
[0037] Fig.14 This is a schematic diagram of the interconnection of optical terminal application scenario 2. DETAILED DESCRIPTION
[0038] The present invention provides a method for designing an optical terminal for computer data transmission, exchange and system interconnection, which uses Ethernet switching technology to realize transmission, exchange and system interconnection. While being compatible with traditional transmission links, Ethernet switching and transport layer protocols are designed to realize data isolation, routing, networking and other functions realized by a single hardware interface in a system with multiple numbers and types of hardware interfaces; the innovation of the design method lies in the virtualization of the whole machine and the designated port, which solves the defect of paired use of optical terminals. The technical solution of the present invention is further explained below in conjunction with the accompanying drawings.
[0039] like Figure 1As shown, an optical terminal based on Ethernet switching of the present invention includes two FPGAs, a network switching unit, an optical transceiver unit, a network interface unit and multiple external interfaces; all external interfaces process interface data through FPGA1, and FPGA1 sends data to the network switching unit after processing, and the network switching unit leads a high-speed interface to FPGA2, and FPGA2 realizes data processing of the optical transceiver unit and the network interface unit; wherein FPGA1 and FPGA2 can realize the functions of FPGA1 and FPGA2 through the same FPGA. The external interface realizes multiple types and multiple numbers of interfaces, and both the optical transceiver unit and the network interface unit realize Gigabit Ethernet or 10 Gigabit Ethernet. The optical transceiver unit is connected to the main optical fiber to realize the optical transmission link interface, and the network interface unit is connected to the main communication cable to realize the electrical signal transmission link interface, and the network interface unit uses an Ethernet PHY chip.
[0040] The physical interfaces of all channels between the network switching unit and FPGA1 are SGMII interfaces, and the physical interfaces of all channels between the network switching unit and FPGA2 are XAUI interfaces. The network switching unit completes the data exchange between the SGMII and XAUI interfaces. The network switching unit is mainly implemented by a network switching chip, and the network switching chip can select a 10 Gigabit Ethernet switching chip with VLAN function.
[0041] The FPGA1 is used to complete the data conversion from various types of external interfaces to SGMII, and the FPGA1 internally realizes the conversion of multiple external interfaces to SGMII interfaces. The FPGA1 internally includes an external interface data processing submodule, a data buffer submodule and an SGMII data processing submodule, and its structure is as follows: Figure 2 shown.
[0042] The external interface data processing submodule is used to perform reception and transmission processing on the external interface, and determines the processing method according to the data type of the external interface.
[0043] (1) When the external interface data processing submodule performs receiving processing, its process is as follows Figure 3 As shown. After the external interface data is input, determine whether the data baud rate is fixed. For external interfaces with non-fixed data baud rates, transparent transmission is used to achieve baud rate adaptation, and the external interface is continuously sampled using a sampling clock. Transparent transmission, also known as transparent transmission, means that the data packet does not undergo any processing or parsing during transmission, thereby ensuring the integrity and originality of the data. When the data baud rate is not fixed, it is impossible to parse the data according to the communication protocol when receiving the data, so transparent transmission is used. Transparent transmission is achieved by continuously sampling and grouping the external interface using a sampling clock. For external interfaces with fixed data baud rates, the corresponding clock is used to parse the data according to the bus protocol and frame format corresponding to the interface data to save bandwidth; the processed data will be sent to the data cache submodule;
[0044] When the external interface data processing submodule receives and processes the external interface with a non-fixed data baud rate, it is assumed that the maximum baud rate supported by a certain external interface communication is S exb , then the sampling clock rate of the external interface is S exc The following formula must be satisfied:
[0045] S exc >2*S exb .
[0046] (2) When the external interface data processing submodule performs the sending processing, it performs the reverse transformation according to the data processing method when receiving the data to generate the external interface data; its process is as follows: Figure 4 As shown. First, query the status of the transmit FIFO in the data cache submodule. If the transmit FIFO is empty, return to re-query. If it is not empty, read the data and determine whether the data baud rate is fixed. For external interfaces with non-fixed data baud rates, use the sampling clock used when receiving sampling to convert the prepared data into serial and output it to the external interface; for external interfaces with fixed data baud rates, use the corresponding clock to generate the prepared data into external interface data according to the bus protocol and frame format corresponding to the interface data.
[0047] The data cache submodule caches the received and sent data. The data cache submodule is composed of m groups of FIFOs. The number of FIFO groups is consistent with the number of external interfaces. Each group of FIFOs corresponds to an external interface. Each group of FIFOs is composed of a sending FIFO and a receiving FIFO. The data processed by the external interface data processing submodule will be cached in the receiving FIFO, and the SGMII data processing submodule will read the data. The data received by the SGMII data processing submodule will be cached in the sending FIFO, and the external interface data processing submodule will read the data. Each FIFO contains an independent data counter to count the amount of data currently cached internally.
[0048] The SGMII data processing submodule completes the generation and analysis of SGMII interface data: (1) Figure 5As shown, when generating SGMII data, the data cached in the receiving FIFO is read out for packet assembly. First, the buffer counters of each receiving FIFO are queried, and the receiving FIFO with the highest current buffer capacity is read preferentially according to the data counter of each receiving FIFO; the frame is assembled according to the MAC frame format, and the data read from the FIFO is filled into the data frame in the MAC frame format. The data frame is added with a frame header, and the assembled MAC frame is input to the GMII interface; the frame header is an ID frame, and the ID corresponds to different cache channels and external interface data types; when the receiving end receives data, the data output by the GMII interface is parsed according to the MAC frame, and the frame header of the data frame in the MAC frame is the ID frame; (2) The process of parsing SGMII data is as follows Figure 6 As shown, the SGMII IP core converts the received SGMII interface data into the GMII data format, parses the GMII data, determines the cache channel and external interface data type corresponding to the current data according to the ID frame, and then writes the data into the corresponding transmit FIFO in the data cache submodule.
[0049] The total bandwidth of the SGMII interface must be greater than the total bandwidth occupied by the external interface sampling. Assuming the SGMII rate is S MI , the number of channels with non-fixed baud rates in the external channel is N exm The clock corresponding to the channel with unfixed baud rate is CLK exm , the number of channels with fixed baud rate in the external channel is N exn The analysis clock corresponding to the channel with fixed baud rate is CLK exn , then the number of SGMII channels required is N MI The following conditions must be met:
[0050]
[0051] x is the number of channels.
[0052] The FPGA2 completes the data conversion from the optical transceiver unit and the network interface unit to the XAUI interface, link status monitoring and multi-path selection, including a data conversion submodule, an Ethernet interface submodule, and a link control submodule; its structure is as follows Figure 7 shown.
[0053] The data conversion submodule parses and processes the data of the XAUI interface; converts the XAUI interface data into the XGMII data format through the XAUI IP core, and parses the XGMII data to obtain the original data; performs secondary packet processing on the parsed original data, generates GMII data according to the Ethernet MAC frame format, and adds a frame number before the frame header ID in the data frame. After each frame is sent through Ethernet, the frame number will increase by one. The frame number is obtained by the link control submodule for dual-channel redundant backup processing. The Ethernet MAC frame format is as follows Figure 8 shown.
[0054] The Ethernet interface submodule completes the conversion of data to the external optical interface and network interface. Gigabit Ethernet or 10 Gigabit Ethernet is selected according to the total bandwidth of the system. When designing a Gigabit network, you can use Xilinx's 1G / 2.5G Ethernet PCS / PMA or SGMIIIP core. The MAC layer interface of this IP core is GMII. Two IP cores are added during design. The two IP cores are the Gigabit Network Interface IP Core and the Gigabit Optical Interface IP Core. The Gigabit Network Interface IP Core is set to SGMII mode. After the GMII data enters the IP core, it is converted to the SGMII interface. The SGMII interface is connected to the external PHY chip and converted to the network interface. The Gigabit Optical Interface IP Core is set to 1000BASEX mode. After the GMII data enters the IP core, it is converted to the SFP interface. The SFP interface is connected to the external optical module and converted to the optical interface. The Gigabit Ethernet design block diagram is as follows: Fig. 9 shown.
[0055] When designing 10 Gigabit Ethernet, you can use Xilinx's 10G Ethernet MAC IP core as the MAC layer, and the 10GEthernetPCS / PMA IP core as the PHY connected to MAC. A 10G Ethernet MAC IP core and a 10GEthernetPCS / PMA IP core form a group of IP cores. You need to add two groups of IP cores, namely the 10 Gigabit network interface IP core and the 10 Gigabit optical interface IP core. The 10G Ethernet PCS / PMA IP core in the 10 Gigabit network interface IP core is set to 10GBASE-KR mode, connected to an external PHY chip to convert it to a network interface, and the 10G EthernetPCS / PMA IP core in the 10 Gigabit optical interface IP core is set to 10GBASE-R mode, connected to an external optical module to convert it to an optical interface. The 10G Ethernet data transmission process is to send data to the 10G Ethernet MAC IP core through the axi bus. The 10G Ethernet MAC IP core converts the axi data into xgmii data and sends it to the 10G Ethernet PCS / PMA IP core. The 10G Ethernet PCS / PMA IP core performs bit synchronization, byte synchronization, 64b / 66b encoding and decoding operations inside the core and then sends it through the GTX interface. The 10G Ethernet design block diagram is shown in the figure. Fig.10 As shown, the network interface 10G MAC IP core and the optical interface 10G MAC IP core have the same settings.
[0056] The link control submodule implements multi-path selection and link status monitoring as well as dual-channel redundant backup; the link status of the optical interface determines whether the optical interface has established a link by detecting the LOS signal of the optical transceiver unit (the chips used by all optical transceiver units will output a LOS signal to determine whether the current optical link has established a link), and the link status of the network interface determines whether the network interface has established a link by reading the status register of the PHY chip using the configuration interface of the PHY chip; the link control submodule contains a cache module composed of RAM, and the data conversion submodule will cache the GMII data in the MAC frame format into the RAM first when generating it. The link control submodule will continuously detect the data written to the RAM to determine whether a complete frame of new data has been written. When a complete frame of MAC frame data is written, the frame data will be read from the RAM and its frame sequence number will be recorded and transmitted to the Ethernet interface submodule to generate Ethernet data; at the same time, the link control submodule continuously detects the link status and Ethernet transmission status to determine whether the current link is disconnected. If the current communication link is disconnected during the transmission of the frame by the Ethernet interface submodule, resulting in the incomplete transmission of the frame, the frame will be re-read from the RAM according to the frame sequence number and transmitted to the Ethernet interface submodule for retransmission; if the link is not disconnected and the frame is completely transmitted, the address used by the frame in the RAM will be invalid, and the invalid data will be overwritten when the new data is written to the RAM. If the link is not disconnected but the frame is not completely transmitted, the link status and Ethernet transmission status will be continuously detected. The entire transmission process is as follows: Fig.11 shown.
[0057] The link control submodule controls the link from the GMII data in the Ethernet interface submodule to the IP core according to the currently used link. When the system starts, the link that is first established is used as the data transceiver channel. When the current link is disconnected, the data transceiver channel is switched to another link. Fig. 9 As shown in the figure, the link from GMII data to IP core is a choice of two. When using the network interface link, the GMII data interface will be connected to the SGMII mode 1G / 2.5GEthernet PCS / PMA or SGMII IP core. When using the optical interface link, the GMII data interface will be connected to the 1000BASEX mode 1G / 2.5G Ethernet PCS / PMA or SGMII IP core. When the system uses a 10 Gigabit network design, such as Fig.10 As shown, the link from GMII data to IP core is a choice between two options. When the network interface link is used, the GMII interface is connected to the network interface 10G MAC IP core. When the optical interface link is used, the GMII data interface is connected to the optical interface 10G MAC IP core.
[0058] In order to realize the virtualization function of an optical terminal, the present invention provides a virtualization software design method, wherein the virtualization software is divided into virtualization client software and virtualization server software, wherein the virtualization client software runs on a computer platform such as a general-purpose computer or a server, and the virtualization server software runs in an FPGA2 chip of the optical terminal. The virtualization server software uses the VLAN component of the operating system to configure the VLAN function of a general-purpose computer or a server computer, and FPGA2 designs the TCP server software. Different connection ports of the server correspond to different external interfaces, and the corresponding relationship can be planned by the designer. For example, external interface 1 corresponds to TCP server connection port 8001, external interface 2 corresponds to TCP server connection port 8002, and external interface m corresponds to TCP server connection port 8000+m. The virtualization client software adopts the TCP client software architecture, and a virtualization client software is composed of one or more TCP client task programs. If m external interfaces are virtualized, the virtualization client software needs to create m TCP client tasks, and the destination IP of each TCP client task program represents a different virtualized optical terminal, and the destination port represents the external interface. The virtualization client software provides two working modes for users, the optical terminal whole machine virtualization mode and the optical terminal port virtualization mode. Both modes are specified by the user. The network interface data received by the virtualization client software TCP client task program is sent to the upper level for processing after being driven by the optical terminal platform; if the user configures the optical terminal whole machine virtualization mode, the data is sent directly to the user interface for subsequent processing by the user. If the user configures the optical terminal port virtualization mode, the network interface data is sent to the optical terminal platform driver and then to the external interface driver for processing before being sent to the user interface. The virtualization client software block diagram is shown below: Fig.12 shown.
[0059] The optical transceiver unit of the optical terminal is connected to the communication optical cable, and the network interface unit is connected to the communication cable. The communication optical cable and the electrical cable are Gigabit or 10 Gigabit Ethernet, which are compatible with the current communication network; multiple optical terminals are connected to the communication network through electrical cables and optical cables. The optical terminal has Ethernet switching function inside, and the VLAN rules of the network switching unit are configured to limit the data of the user equipment interface to the designated user equipment interface of different optical terminals; and multiple optical terminals are interconnected through Ethernet optical interfaces or electrical interfaces to form an optical terminal network, and the user equipment interface of each optical terminal has the ability to communicate with the user equipment interfaces of other optical terminals. Fig.13 This is a schematic diagram of one of the application scenarios of the present invention, which realizes networking of multiple optical terminals, data exchange routing and data isolation. Fig.13 and Fig.14 The user equipment interface in Figure 1 External interface 1 to external interface m in.
[0060] This design can also be used with a single optical terminal. The optical terminal is connected to the virtualization host through a communication network, or directly connected to the virtualization host. The virtualization host runs virtualization software, and the user equipment interface of the optical terminal is implemented on the virtualization host through software driver. Fig.14 This is the single optical terminal application scenario and the optical terminal virtualization application scenario of this design.
[0061] By applying the present invention, the system completes Figure 1 The optical terminal system shown in the figure. According to the total bandwidth occupied by the system, the designer can flexibly choose the Gigabit network or the 10 Gigabit network design, and can freely control the solution cost. In addition, the external optical fiber and cable are interconnected through the Ethernet protocol, which can achieve multiple rates and is compatible with the existing Ethernet cable transmission link and optical cable transmission link, realizing the low-cost system transmission solution upgrade. Through the virtualization server software, the VLAN component of the operating system is used to configure the VLAN function of the general computer or server computer. The designer can plan the external interface corresponding to different ports of the server by himself to realize the data transmission isolation of the optical terminal interface. Multiple optical terminals are connected to the communication network through cables and optical cables to form an optical terminal network. The user equipment interface of each optical terminal has the ability to communicate with the user equipment interface of other optical terminals, which can realize the data interface and control signal network routing and multi-optical terminal networking. Through the virtualization server software running inside the optical terminal and the virtualization client software running on the computer platform such as a general computer or server, as well as the virtualization client software, two working modes are provided to the user, the optical terminal whole machine virtualization mode and the optical terminal port virtualization mode, which can realize the virtualization of the optical terminal whole machine, the virtualization of ports and control signals, and solve the shortcomings of the paired use of optical terminals. The optical terminal system has the functions of link detection and switching and continuous detection of Ethernet transmission. When the link is disconnected, it can continue to transmit the unfinished data according to the frame sequence number. It has the characteristics of redundant backup and strong anti-interference ability.
[0062] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. An optical terminal based on Ethernet switching, characterized in that: It includes two FPGAs, a network switching unit, an optical transceiver unit, a network interface unit and multiple external interfaces; all external interfaces process interface data through FPGA1, and FPGA1 sends the data to the network switching unit after processing. The network switching unit leads a high-speed interface to FPGA2, and FPGA2 realizes data processing of the optical transceiver unit and the network interface unit; all channel physical interfaces of the network switching unit and FPGA1 are SGMII interfaces, and the channel physical interfaces of the network switching unit and FPGA2 are XAUI interfaces. The network switching unit completes data exchange between SGMII and XAUI interfaces; The FPGA1 is used to complete the data conversion from various types of external interfaces to SGMII, and the FPGA1 includes an external interface data processing submodule, a data buffer submodule and an SGMII data processing submodule; The external interface data processing submodule is used to perform receiving and sending processing on the external interface: (1) When the external interface data processing submodule performs receiving processing, for the external interface with a non-fixed data baud rate, a transparent transmission method is used to achieve baud rate adaptation, and a sampling clock is used to continuously sample the external interface; For external interfaces with fixed data baud rates, the corresponding clock is used to parse the data according to the bus protocol and frame format corresponding to the interface data; The processed data will be sent to the data cache submodule; (2) When the external interface data processing submodule performs transmission processing, it performs inverse transformation according to the data processing method when receiving data to generate external interface data; for an external interface with a non-fixed data baud rate, it uses the sampling clock used when receiving sampling to convert the prepared data into serial data and then outputs it to the external interface; for an external interface with a fixed data baud rate, it uses the corresponding clock according to the bus protocol and frame format corresponding to the interface data to generate the prepared data into external interface data; The data cache submodule caches the received and sent data. The data cache submodule is composed of m groups of FIFOs. The number of FIFO groups is consistent with the number of external interfaces. Each group of FIFOs corresponds to an external interface. Each group of FIFOs is composed of a sending FIFO and a receiving FIFO. The data processed by the external interface data processing submodule will be cached in the receiving FIFO, and the SGMII data processing submodule will read the data. The data received by the SGMII data processing submodule will be cached in the sending FIFO, and the external interface data processing submodule will read the data. Each FIFO contains an independent data counter to count the amount of data currently cached internally. The SGMII data processing submodule completes the generation and analysis of SGMII interface data: (1) When generating SGMII data, the data cached in the receive FIFO is read out for packet assembly, and the buffer counters of each receive FIFO are first queried. According to the data counter of each receive FIFO, the receive FIFO with the highest current buffer capacity is read first; According to the MAC frame format, the data read from the FIFO is filled into the data frame in the MAC frame format, a frame header is added to the data frame, and the assembled MAC frame is input to the GMII interface; The frame header is an ID frame, and the ID corresponds to different cache channels and external interface data types. When receiving data, the receiving end parses the data output by the GMII interface according to the MAC frame, and the frame header of the data frame in the MAC frame is the ID frame. (2) The process of parsing SGMII data is shown in Figure 6. The SGMII IP core converts the received SGMII interface data into the GMII data format, parses the GMII data, determines the cache channel and external interface data type corresponding to the current data according to the ID frame, and then writes the data into the corresponding transmit FIFO in the data cache submodule. The FPGA2 completes data conversion from the optical transceiver unit and the network interface unit to the XAUI interface, link status monitoring and multi-path selection, and includes a data conversion submodule, an Ethernet interface submodule, and a link control submodule; The data conversion submodule parses and processes the data of the XAUI interface; converts the XAUI interface data into the XGMII data format through the XAUI IP core, and parses the XGMII data to obtain the original data; performs secondary packet processing on the parsed original data to generate GMII data according to the Ethernet MAC frame format, and adds a frame number before the frame header ID in the data frame. After each frame is sent through Ethernet, the frame number will increase by one, and the frame number is obtained by the link control submodule; The Ethernet interface submodule completes the conversion of data to the external optical interface and network interface, and selects Gigabit Ethernet or 10 Gigabit Ethernet according to the total system bandwidth; The link control submodule implements multi-path selection, link status monitoring, and dual-channel redundant backup; the link status of the optical interface determines whether the optical interface has established a link by detecting the LOS signal of the optical transceiver unit, and the link status of the network interface determines whether the network interface has established a link by reading the status register of the PHY chip using the configuration interface of the PHY chip; The link control submodule contains a cache module composed of RAM. When the data conversion submodule generates GMII data in MAC frame format, it will first cache it in the RAM. The link control submodule will continuously detect the data written to the RAM. When a complete MAC frame is written, the frame data will be read from the RAM and its frame sequence number will be recorded and transmitted to the Ethernet interface submodule to generate Ethernet data. If the current communication link is disconnected during the transmission of the frame by the Ethernet interface submodule, resulting in the incomplete transmission of the frame, the frame will be re-read from the RAM according to the frame sequence number of the frame for retransmission. When the frame is completely transmitted, the address used by the frame in the RAM will become invalid, and the invalid data will be overwritten when new data is written to the RAM.
2. The optical terminal based on Ethernet switching according to claim 1, characterized in that: When the external interface data processing submodule receives and processes the external interface with a non-fixed data baud rate, it is assumed that the maximum baud rate supported by a certain external interface communication is S exb , then the sampling clock rate of the external interface is S exc The following formula must be satisfied: S exc >2*S exb 。 3. The optical terminal based on Ethernet switching according to claim 1, characterized in that: The total bandwidth of the SGMII interface must be greater than the total bandwidth occupied by the external interface sampling. Assuming the SGMII rate is S MI , the number of channels with non-fixed baud rates in the external channels is N exm The clock corresponding to the channel with unfixed baud rate is CLK exm , the number of channels with fixed baud rate in the external channel is N exn The analysis clock corresponding to the channel with fixed baud rate is CLK exn , then the number of SGMII channels required is N MI The following conditions must be met: x is the number of channels.
