Dual-network card device with redundant backup function

By introducing redundancy backup functionality into a dual-NIC device, and utilizing FPGA chips and the 802.1CB protocol, the problem of traditional Ethernet NICs failing to meet data reliability and stability requirements is solved, achieving redundancy backup and communication reliability for the dual system.

CN223488261UActive Publication Date: 2025-10-28HEFEI HUAKONG TIANXIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202423058666.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-10-28
Estimated Expiration
2034-12-11

AI Technical Summary

Technical Problem

Traditional Ethernet network cards do not have data redundancy functions, resulting in dual network cards on the same system being unable to meet data reliability and stability requirements and being unsuitable for complex application scenarios.

Method used

A dual network card device with redundant backup function is adopted, and the DSA module and Eth_process module in the FPGA chip are used to realize the sending and receiving management of data frames. Data is exchanged with the PS_NIC module through the Eth_process module, and it interacts with the external CPU through the PCIe interface. The 802.1CB protocol is used for data redundancy backup to ensure the reliability and stability of Ethernet communication.

Benefits of technology

It realizes the redundant backup of dual systems, ensures the reliability and stability of Ethernet communication, avoids data loss, and improves the applicability and flexibility of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223488261U_ABST
    Figure CN223488261U_ABST
Patent Text Reader

Abstract

The utility model discloses a dual-network card device with a redundant backup function, which belongs to the technical field of communication equipment and comprises an FPGA (field programmable gate array) chip, an RS232 interface, an RJ45 interface, a PCIe (peripheral component interface express) interface connected with an external CPU (central processing unit), an Ethernet port 1 and an Ethernet port 2. According to the dual-network-card device with the redundant backup function, the DSA module is connected with the Ethernet module, receiving and sending of management data frames and network management are achieved, data interaction is conducted through the Ethernet module and the PSNIC module, the function of an embedded network card on a board is achieved, data interaction between the Ethernet module and a main control computer is achieved through a PCIe interface, the function of a main control network card is achieved, and the redundant backup function is achieved. Therefore, redundant backup of the dual systems is realized, the problems that the prior art does not have a data redundancy function and the dual network cards work on the same system are avoided, and the reliability and stability of Ethernet communication are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model belongs to the field of communication equipment technology, and in particular relates to a dual network card device with redundant backup function. Background Technology

[0002] A network interface card, also known as a network adapter or LAN receiver, operates at the physical and data link layers and is primarily used to receive and send data.

[0003] Traditional Ethernet network cards do not have data redundancy. Dual network cards working on the same system cannot meet the requirements of data reliability and stability, and are not suitable for more complex application scenarios.

[0004] To address this issue, we propose a dual network card device with redundant backup functionality. Utility Model Content

[0005] The purpose of this invention is to solve the problem of unstable and unreliable data transmission in the prior art, and to propose a dual network card device with redundant backup function.

[0006] In order to achieve the above purpose, the present invention adopts the following technical solutions:

[0007] A dual network card device with redundancy backup function includes an FPGA chip, a PCIe interface for connecting to an external CPU, an Ethernet port 1 for network connection and an Ethernet port 2, wherein the Ethernet port 1 and the Ethernet port 2 have redundancy backup function.

[0008] The FPGA chip includes a PS terminal and a PL terminal. The PS terminal includes a DSA module and a PS_NIC module. The DSA module is responsible for network management functions, and the PS_NIC module serves as an on-board embedded network card. The PL terminal includes a programmable logic module. The DSA module and the PS_NIC module are respectively connected to the programmable logic module circuit.

[0009] The programmable logic module includes an Eth_process module responsible for Ethernet data processing. The Eth_process module is circuitally connected to the PS_NIC module, and is also circuitally connected to Ethernet port 1 and Ethernet port 2. The Eth_process module is connected to the PCIe interface circuit and serves as the main control network card.

[0010] Preferably, the FPGA chip is a Xilinx ZYNQ series chip.

[0011] Preferably, the Eth_process module implements the Gmii interface, and the DSA module connects to the Gmii interface in the programmable logic module through a mirrored EMIO interface.

[0012] Preferably, the Eth_process module is connected to the PS_NIC module via DMA data transfer.

[0013] Preferably, the Eth_process module connects to an external CPU via the PCIe interface through XDMA data transfer.

[0014] Preferably, Ethernet port 1 is the main interface and Ethernet port 2 is the backup interface.

[0015] Preferably, the communication between Ethernet port 1 and Ethernet port 2 can be redundantly backed up, and the data redundancy backup adopts the 802.1CB protocol.

[0016] In summary, the technical effects and advantages of this utility model are as follows: This dual network card device with redundant backup function connects to the Eth_process module through the DSA module to realize the sending and receiving of management data frames and network management. The Eth_process module interacts with the PS_NIC module to realize the function of the on-board embedded network card. The Eth_process module interacts with the host computer through the PCIe interface to realize the function of the host network card, thereby realizing the redundant backup of the dual system. This avoids the problems of existing technologies that do not have data redundancy function and have dual network cards working on the same system, ensuring the reliability and stability of Ethernet communication. Attached Figure Description

[0017] Figure 1 This is a structural block diagram of the present invention;

[0018] Figure 2 This is a block diagram of the FPGA implementation in this utility model. Detailed Implementation

[0019] The technical solutions in the embodiments of the present invention will be described clearly and completely 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, rather than all the embodiments.

[0020] Reference Figure 1-2 A dual network card device with redundancy backup function includes an FPGA chip, an RS232 interface for external debugging, an RJ45 interface for communication or configuration, a PCIe interface, an Ethernet port 1 for redundancy backup, and an Ethernet port 2. The PCIe interface is directly connected to an external CPU (host computer).

[0021] The FPGA chip includes a PS side and a PL side. The PS side includes a DSA module and a PS_NIC module. The DSA module is responsible for network management functions, and the PS_NIC module is an on-board embedded network card. The PL side includes a programmable logic module. The DSA module and the PS_NIC module are respectively connected to the programmable logic module circuit.

[0022] The programmable logic module includes the Eth_process module, which is responsible for Ethernet data processing. The Eth_process module is connected to the PS_NIC module, Ethernet port 1 and Ethernet port 2, and PCIe interface, serving as the main control network card.

[0023] In the receiving direction, the Eth_process module transfers the data stream output by the PS_NIC module to the corresponding DDR memory in the PS_NIC module; the PS_NIC module then retrieves the Ethernet data from the corresponding DDR memory based on interrupt information for processing. In the transmitting direction, the PS_NIC module places the data to be transmitted into the DDR memory, retrieves the Ethernet data from the corresponding DDR address, converts it into a data stream, and inputs it to the Eth_process module.

[0024] In the receiving direction, the Eth_process module transfers the data stream output by the main control computer to the corresponding buffer space on the main control computer. The main control computer then retrieves the Ethernet data from the corresponding buffer space for processing based on interrupt information and the received address specified in the configuration. In the transmitting direction, the main control computer places the data to be transmitted into the corresponding buffer, retrieves the Ethernet data from the corresponding buffer address, converts it into a data stream, and inputs it to the Eth_process module.

[0025] This dual-NIC device with redundancy backup, in the transmission direction, uses the Eth_process module to look up a table based on the source MAC+VLAN or destination MAC+VLAN of the Ethernet data frames from the host computer and PS_NIC. Based on the lookup result, it determines that the data frame needs to be copied and obtains the corresponding flow number. It then retrieves the stored sequence number from the RAM address corresponding to the flow number, increments it by 1 to obtain the sequence number of the current data flow, and stores the newly generated sequence number in the RAM corresponding to the flow number, at the flow number address. Finally, it inserts the corresponding Rtag flag (0xf1c1) and the sequence number into the Ethernet data and sends it to the output of both Ethernet ports.

[0026] On the receiving side, the two Ethernet interfaces receive Ethernet data and retrieve the corresponding flow number by looking up the source MAC+VLAN or destination MAC+VLAN of the Ethernet data. The Rtag and sequence number are obtained from the Ethernet data frame, and the flow number, Rtag, and sequence number are sent to the frame cancellation module. The frame cancellation module is existing technology, and its principle will not be elaborated upon. The frame cancellation module receives the flow number, retrieves the previously stored sequence number from the RAM address corresponding to the flow number, and compares the input sequence number with the cached sequence number. If the input sequence number has already appeared, the data frame is discarded; if the input sequence number is a non-existent sequence number, the data frame is transmitted normally, and the sequence number is stored in the RAM corresponding to the flow number. During data transmission, even if one of the links connecting the two Ethernet ports experiences packet loss, the entire data communication remains intact, ensuring the reliability and stability of Ethernet communication.

[0027] To achieve the above functions, the FPGA chip needs to include a PS terminal and a PL terminal. The FPGA chip used is a Xilinx ZYNQ series chip, or an FPGA chip with PS function.

[0028] The Eth_process module implements the Gmii interface. The DSA module connects to the Gmii interface in the programmable logic module through the mirrored EMIO interface, thereby enabling the management of data frame transmission and reception as well as network management.

[0029] The Eth_process module connects to the PS_NIC module via DMA data transfer. On the receiving side, by controlling the DMA, the stream data output from Eth_process is converted into AXI data and transferred to the relevant DDR memory of the PS_NIC embedded network card. The PS_NIC then retrieves the Ethernet data from the corresponding DDR memory based on interrupt information for processing.

[0030] In the transmission direction, PS_NIC puts the data to be transmitted into DDR and controls the DMA module to move the Ethernet data from the corresponding DDR address and convert it into a stream data input to the Eth_process module.

[0031] The Eth_process module connects to the external CPU via the PCIe interface through XDMA data transfer, enabling data interaction with the host computer. On the receiving side, by controlling XDMA, the stream data output by Eth_process is transferred to the corresponding buffer space on the host computer. The host computer then retrieves the Ethernet data from the corresponding buffer space for processing based on interrupt information and the received address specified in the configuration.

[0032] In the transmission direction, the master computer puts the data to be transmitted into the corresponding buffer and sends the corresponding buffer address to the XDMA controller. The controller then instructs the XDMA module to retrieve the Ethernet data from the corresponding buffer address and convert it into a stream data flow for input to the Eth_process module.

[0033] Ethernet port 1 is the primary interface, and Ethernet port 2 is the backup interface. Ethernet port 1 and Ethernet port 2 do not communicate with each other; normal data transmission goes through Ethernet port 1. When the redundancy backup function is enabled, data is output from both Ethernet port 1 and Ethernet port 2 simultaneously. The PS_NIC module, the PCIe external host computer, and the external Ethernet port 1 can communicate with each other; after enabling the redundancy backup function, communication can be achieved through Ethernet port 2, improving the applicability and flexibility of the device.

[0034] Both Ethernet port 1 and Ethernet port 2 can perform data redundancy backup, which adopts the 802.1CB protocol. 802.1CB mainly defines frame duplication and frame cancellation mechanisms to improve the reliability of data transmission.

[0035] The above is only a preferred specific implementation method of the present invention, but the protection scope of the present invention is not limited to this. Any technician familiar with the technical field within the technical scope disclosed by the present invention can make equivalent replacements or changes based on the technical solution and utility model concept of the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A dual network card device with redundant backup function, characterized in that, It includes an FPGA chip, a PCIe interface for connecting to an external CPU, an Ethernet port 1 for network connection and an Ethernet port 2, wherein the Ethernet port 1 and Ethernet port 2 have redundant backup functions. The FPGA chip includes a PS terminal and a PL terminal. The PS terminal includes a DSA module and a PS_NIC module. The DSA module is responsible for network management functions, and the PS_NIC module performs... The PL terminal is an on-board embedded network card, and the DSA module and PS_NIC module are respectively connected to the programmable logic module circuit. The programmable logic module includes an Eth_process module responsible for Ethernet data processing. The Eth_process module is circuitally connected to the PS_NIC module, and is also circuitally connected to Ethernet port 1 and Ethernet port 2. The Eth_process module is connected to the PCIe interface circuit and serves as the main control network card.

2. The dual network card device with redundancy backup function according to claim 1, characterized in that, The FPGA chip used is a Xilinx ZYNQ series chip.

3. A dual network card device with redundancy backup function according to claim 1, characterized in that, The Eth_process module implements the Gmii interface, and the DSA module connects to the Gmii interface in the programmable logic module through the mirrored EMIO interface.

4. A dual network card device with redundancy backup function according to claim 1, characterized in that, The Eth_process module is connected to the PS_NIC module via DMA data transfer.

5. A dual network card device with redundancy backup function according to claim 1, characterized in that, The Eth_process module connects to the external CPU via the PCIe interface through XDMA data transfer.

6. A dual network card device with redundancy backup function according to claim 1, characterized in that, Ethernet port 1 is the main interface, and Ethernet port 2 is the backup interface.

7. A dual network card device with redundancy backup function according to claim 6, characterized in that, Both Ethernet port 1 and Ethernet port 2 can perform data redundancy backup, and the data redundancy backup adopts the 802.1CB protocol.