Bridging device of IP and IPFC based on FPGA
By designing a bridge device for IP and IPFC based on FPGA, the problem of difficulty in upgrading communication equipment between Ethernet network and FC-AE network is solved, and efficient data transmission and upgrade process is achieved.
Patent Information
- Application Number
- CN202311149177.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-07
- Publication Date
- 2025-03-07
AI Technical Summary
The prior art is difficult to effectively upgrade communication equipment between Ethernet networks and FC-AE networks, resulting in difficulty in upgrading.
A bridge device for IP and IPFC based on FPGA is designed, including an IP data transmission module, an IPFC data transmission module and a conversion control module, through which data transmission and conversion between the Ethernet network and the FC-AE network is realized.
High real-time performance is achieved through FPGA, which improves the communication speed between the Ethernet network and the FC-AE network, simplifies the equipment upgrade process, and improves data transmission efficiency.
Smart Images

Figure CN119583680A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Ethernet network and FC-AE network communication, and in particular to a bridging device between IP and IPFC based on FPGA. Background Art
[0002] FC (Fibre Channel) is a high-throughput, low-latency, packet-switched or connection-oriented network technology that makes it possible to run today's popular channel standards and network protocols on the same physical interface. FC-AE (Fibre Channel-Avionics Environment) is widely used and is very important for both military and civilian use. IPFC (Internet Protocol over Fibre Channel) is a 4-layer protocol based on FC-AE, providing a transmission mechanism based on FC network topology that can implement Internet Protocol.
[0003] With the development of the information age, FC-AE and Ethernet are widely used, and the demand for information collection and sharing of each node is increasing. However, due to factors such as the long development cycle of model equipment, high equipment complexity, and high transformation costs, equipment upgrades based on the above scenarios have become an old, large, and difficult problem.
[0004] Therefore, a technical solution for connecting Ethernet with FC-AE is urgently needed. Summary of the invention
[0005] In view of the above analysis, an embodiment of the present invention aims to provide an FPGA-based IP and IPFC bridging device to solve the problem of difficulty in upgrading Ethernet network and FC-AE network communication equipment in the prior art.
[0006] On the one hand, an embodiment of the present invention provides an FPGA-based IP and IPFC bridging device, the bridging device comprising an IP data transmission module, an IPFC data transmission module and a conversion control module;
[0007] The IP data transmission module is used to parse the IP data frame sent by the Ethernet network and transmit the parsed valid data to the conversion control module; and is used to transmit the IP data frame converted by the conversion control module to the Ethernet network;
[0008] The IPFC data transmission module is used to verify the FC data frame sent by the conversion control module to confirm that the data carried by the FC data frame is error-free, and transmit the error-free FC data frame to the FC-AE network; and to transmit the FC data frame sent by the FC-AE network to the conversion control module;
[0009] The conversion control module is used to convert the valid data sent by the IP data transmission module into FC data frames and send them to the IPFC data transmission module; and to convert the FC data frames sent by the IPFC data transmission module into IP data frames and send them to the IP data transmission module.
[0010] Based on the further improvement of the above device, the IP data transmission module includes an RJ45 connector, an Ethernet PHY chip, an RGMII network port and a receiving engine connected in sequence;
[0011] Among them, the RJ45 connector is also connected to the Ethernet network, which is used for the transmission of IP data frames between the Ethernet network and the Ethernet PHY chip; the Ethernet PHY chip is used for receiving and sending IP data frames; the RGMII network port is used to control the transmission rate of IP data frames;
[0012] The receiving engine is used to parse the IP data frame sent by the Ethernet network, remove the guide area and padding field of the frame header of the IP data frame, and send the parsed valid data to the conversion control module.
[0013] Based on the further improvement of the above device, the receiving engine is also used to count the received IP data frames, and complete error detection according to the check sequence area, error codeword and frame length information of the IP data frames.
[0014] Based on the further improvement of the above device, the IP data transmission module also includes a sending engine, and the sending engine is connected to the RGMII network port;
[0015] The sending engine is used to receive the IP data frame sent by the conversion control module and transmit the IP data frame to the RGMII network port. The IP data frame is transmitted to the Ethernet PHY chip through the RGMII network port. The Ethernet PHY chip sends the IP data frame to the RJ45 connector, and the RJ45 connector transmits the IP data frame to the Ethernet network.
[0016] Based on the further improvement of the above device, the IPFC data transmission module also includes a verification module;
[0017] The verification module is used to verify the FC data frame sent by the conversion control module; if the FC data frame has an error, the verification module returns the error information to the conversion control module through an error status frame, and the conversion control module resends the correct FC data frame after receiving the error status frame until the verification module obtains the FC data frame that has passed the verification;
[0018] The verification module is also used to count whether the data packets corresponding to the FC data frames sent by the conversion control module have been fully received; if they have been fully received, the completion information is returned to the conversion control module through a completion status frame, and the conversion control module ends the sending of this data packet after receiving the completion status frame.
[0019] Based on the further improvement of the above device, the verification module is also used for:
[0020] When the IPFC data transmission module receives the FC data frame sent by the conversion control module, it returns an ACK frame to the conversion control module to confirm that the FC data frame has been received;
[0021] When the IPFC data transmission module receives the FC data frame sent by the FC-AE network, it returns an ACK frame to the FC-AE network to confirm that the FC data frame has been received.
[0022] Based on the further improvement of the above device, the conversion control module also includes a transmission confirmation module;
[0023] When it is necessary to stop the conversion control module from sending FC data frames to the IPFC data transmission module, the transmission confirmation module sends a termination status frame to the IPFC data transmission module to end this exchange;
[0024] The transmission confirmation module is also used to receive the ACK frame returned by the verification module, and is used to receive the error status frame and the completion status frame returned by the verification module.
[0025] Based on the further improvement of the above device, the IPFC data transmission module also includes an FC cache module;
[0026] The FC cache module is used to receive and save FC data frames sent by the FC-AE network, and determine whether all FC data frames included in the data packets sent by the FC-AE network have been received and saved; when it is determined that all FC data frames included in the data packets have been received and saved, all FC data frames included in the data packets are transmitted to the conversion control module.
[0027] Based on the further improvement of the above device, the conversion control module also includes a disorderly transmission module, which is used to
[0028] Receive the FC data frame sent by the IPFC data transmission module, and parse the FC data frame included in the data packet to obtain the valid data included in the data packet;
[0029] The valid data included in the data packet is fragmented, and the valid data corresponding to each fragment is encapsulated according to the IP frame format, and the encapsulated IP data frames are sent to the IP data transmission module in the time sequence of encapsulation completion.
[0030] On the other hand, an embodiment of the present invention provides a communication method based on the bridge device, the communication method comprising:
[0031] Receive IP data frames sent by the Ethernet network, parse the IP data frames to obtain valid data, and convert the valid data into FC data frames; check the FC data frames, and resend the FC data frames if there are errors, until the correct FC data frames are received, and send the correct FC data frames to the FC-AE network;
[0032] Receive FC data frames from the FC-AE network, parse each FC data frame to obtain all valid data; slice the valid data, encapsulate the valid data corresponding to each slice according to the IP frame format, obtain the IP frame corresponding to each slice, and send each IP frame to the Ethernet network.
[0033] Compared with the prior art, the present invention can achieve at least one of the following beneficial effects:
[0034] 1. The IPFC data transmission module verifies the FC data frame sent by the conversion control module to confirm that the data carried by the FC data frame is error-free, and transmits the error-free FC data frame to the FC-AE network. The correctness and integrity detection and error retransmission of the IP data frame sent by the Ethernet network are sent to the underlying protocol stack, and the communication speed between the Ethernet network and the FC-AE network is improved through the high real-time FPGA (Field Programmable Gate Array).
[0035] 2. Improve the data transmission of Ethernet network and FC-AE network through the RJ45 connector, Ethernet PHY chip and RGMII network port connected in sequence;
[0036] 3. The verification module verifies and counts the FC data frames sent by the conversion control module, and returns error status frames, completion status frames and ACK frames, so that the link layer can detect errors in advance and terminate transmission, saving the protocol stack's time overhead in judging data validity;
[0037] 4. The data packets sent from the FC-AE network to the Ethernet network are fragmented through the out-of-order transmission module, and the encapsulated IP data frames are sent in time without having to send them in the order of the FC data frames in the data packets, thereby improving the transmission time of the data packets and the speed of data transmission.
[0038] In the present invention, the above-mentioned technical solutions can also be combined with each other to achieve more preferred combination solutions. Other features and advantages of the present invention will be described in the subsequent description, and some advantages can become obvious from the description, or can be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained through the contents particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings are only for the purpose of illustrating specific embodiments and are not to be considered limiting of the present invention. Like reference symbols denote like components throughout the drawings.
[0040] Figure 1 A schematic diagram of the structure of an FPGA-based IP and IPFC bridging device provided in an embodiment of the present invention;
[0041] Figure 2 A flow chart of a communication method for an FPGA-based IP and IPFC bridging device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
[0043] FPGA is a product further developed on the basis of programmable devices such as programmable array logic and general array logic. It appears as a semi-custom circuit in the field of application-specific integrated circuits, which not only solves the shortcomings of custom circuits, but also overcomes the shortcomings of the limited number of gate circuits of the original programmable devices.
[0044] FPGA is the core processing chip of the FPGA-based IP and IPFC bridge device provided in the embodiment of the present invention, and therefore has low power consumption and small size.
[0045] A specific embodiment of the present invention discloses a bridging device between IP and IPFC based on FPGA, such as Figure 1 As shown, the bridging device includes an IP data transmission module, an IPFC data transmission module and a conversion control module;
[0046] The IP data transmission module is used to parse the IP data frame sent by the Ethernet network and transmit the parsed valid data to the conversion control module; and is used to transmit the IP data frame converted by the conversion control module to the Ethernet network;
[0047] The IPFC data transmission module is used to verify the FC data frame sent by the conversion control module to confirm that the data carried by the FC data frame is error-free, and transmit the error-free FC data frame to the FC-AE network; and to transmit the FC data frame sent by the FC-AE network to the conversion control module;
[0048] The conversion control module is used to convert the valid data sent by the IP data transmission module into FC data frames and send them to the IPFC data transmission module; and to convert the FC data frames sent by the IPFC data transmission module into IP data frames and send them to the IP data transmission module.
[0049] Specifically, the IP data transmission module is connected to the Ethernet network and is used to send IP data frames to the Ethernet network or receive IP data frames sent by the Ethernet network.
[0050] Specifically, the IPFC data transmission module is connected to the FC-AE network and is used to send FC data frames to the FC-AE network or receive FC data frames sent by the FC-AE network.
[0051] Specifically, when the Ethernet network sends an IP data frame to the FC-AE network, Figure 1 As shown, including:
[0052] The IP data transmission module receives the IP data frame sent by the Ethernet network, parses the IP data frame, obtains the valid data contained in the IP data frame, and transmits the valid data to the conversion control module; it can be understood that the IP data frame sent by the Ethernet network is parsed according to the IP frame format to obtain the valid data contained in the IP data frame;
[0053] The conversion control module converts the valid data sent by the IP data transmission module into an FC data frame and sends it to the IPFC data transmission module; it can be understood that the conversion control module encapsulates the valid data according to the FC frame format to obtain the FC data frame;
[0054] The IPFC data transmission module is used to verify the FC data frame sent by the conversion control module to confirm that the data carried by the FC data frame is error-free, and transmit the error-free FC data frame to the FC-AE network.
[0055] It is worth mentioning that the IPFC data transmission module verifies the FC data frame sent by the conversion control module to confirm that the data carried by the FC data frame is error-free, and transmits the error-free FC data frame to the FC-AE network, and sinks the correctness, integrity detection and error retransmission of the data sent by the Ethernet network to the underlying protocol stack, and improves the communication speed between the Ethernet network and the FC-AE network through the high real-time FPGA (Field Programmable Gate Array).
[0056] Specifically, when the FC-AE network sends FC data frames to the Ethernet network, Figure 1 As shown, including:
[0057] The IPFC data transmission module receives the FC data frame sent by the FC-AE network and transmits it to the conversion control module;
[0058] The conversion control module converts the FC data frame sent by the IPFC data transmission module into an IP data frame and sends it to the IP data transmission module; it can be understood that the conversion control module parses the FC data frame and encapsulates it according to the IP format to obtain the IP data frame, and the valid data contained in the IP data frame is the same as the valid data contained in the FC data frame sent by the FC-AE network;
[0059] The IP data transmission module transmits the IP data frames converted by the conversion control module to the Ethernet network.
[0060] Preferably, if Figure 1 As shown, the IP data transmission module includes an RJ45 connector, an Ethernet PHY chip, an RGMII network port, and a receiving engine connected in sequence;
[0061] Among them, the RJ45 connector is also connected to the Ethernet network, which is used for the transmission of IP data frames between the Ethernet network and the Ethernet PHY chip; the Ethernet PHY chip is used for receiving and sending IP data frames; the RGMII network port is used to control the transmission rate of IP data frames;
[0062] The receiving engine is used to parse the IP data frame sent by the Ethernet network, remove the guide area and padding field of the frame header of the IP data frame, and send the parsed valid data to the conversion control module.
[0063] Specifically, the RJ45 connector is a type of information socket connector in the wiring system. The connector consists of a plug (connector, crystal head) and a socket (module); one end of the RJ45 connection is connected to the Ethernet network, and the other end is connected to one end of the Ethernet PHY chip. It is used for the transmission of IP data frames between the Ethernet network and the Ethernet PHY chip.
[0064] Specifically, the other end of the Ethernet PHY chip is connected to one end of the RGMII network port; the Ethernet PHY chip is used to receive IP data frames transmitted from the RGMII network port, and is used to send IP data frames to the RGMII network port.
[0065] The other end of the RGMII network port is connected to the receiving engine; the receiving engine parses the IP data frame sent by the Ethernet network, removes the guide area and padding field of the frame header of the IP data frame, and sends the parsed valid data to the conversion control module.
[0066] The RJ45 connector, Ethernet PHY chip and RGMII network port, which are sequentially connected through an FPGA-based IP and IPFC bridge device, provided by the present invention, improve the data transmission efficiency of the Ethernet network and the FC-AE network.
[0067] Preferably, the receiving engine is also used to count the received IP data frames, and complete error detection based on the check sequence area, error codeword and frame length information of the IP data frames.
[0068] Specifically, the receiving engine counts the IP data frames sent from the Ethernet network to the FC-AE network, such as counting the number of IP data frames; and performs error detection based on the check sequence area, error codeword and frame length information of the parsed IP data frames to determine that there are no errors in the parsed valid data.
[0069] Preferably, if Figure 1 As shown, the IP data transmission module also includes a sending engine, and the sending engine is connected to the RGMII network port;
[0070] The sending engine is used to receive the IP data frame sent by the conversion control module and transmit the IP data frame to the RGMII network port. The IP data frame is transmitted to the Ethernet PHY chip through the RGMII network port. The Ethernet PHY chip sends the IP data frame to the RJ45 connector, and the RJ45 connector transmits the IP data frame to the Ethernet network.
[0071] Specifically, when the FC-AE network sends data to the Ethernet network, the receiving engine receives the IP data frame sent by the conversion control module, and transmits the IP data frame to the RGMII network port, the RGMII network port transmits the IP data frame to the Ethernet PHY chip, the Ethernet PHY chip sends the IP data frame to the RJ45 connector, and the RJ45 connector transmits the IP data frame to the Ethernet network, completing the process of the FC-AE network sending data to the Ethernet network.
[0072] It is worth noting that the present invention processes the IP data frames sent from the Ethernet network to the FC-AE network and the IP data frames corresponding to the FC data frames sent from the FC-AE network to the Ethernet network respectively through the receiving engine and the sending engine, and processes the two processes independently, thereby reducing mutual interference and reducing the error rate of data transmission.
[0073] Preferably, if Figure 1 As shown, the IPFC data transmission module also includes a verification module;
[0074] The verification module is used to verify the FC data frame sent by the conversion control module; if the FC data frame has an error, the verification module returns the error information to the conversion control module through an error status frame, and the conversion control module resends the correct FC data frame after receiving the error status frame until the verification module obtains the FC data frame that has passed the verification;
[0075] The verification module is also used to count whether the data packets corresponding to the FC data frames sent by the conversion control module have been fully received; if they have been fully received, the completion information is returned to the conversion control module through a completion status frame, and the conversion control module ends the sending of this data packet after receiving the completion status frame.
[0076] Specifically, Figure 1 As shown, the FC data frame sent by the conversion control module is the FC data frame corresponding to the IP data frame sent by the Ethernet network to the FC-AE network, and the valid data contained in the two are the same.
[0077] Specifically, the verification module verifies the FC data frame sent by the conversion control module. If the verification module detects that the FC data frame has an error, the verification module needs to return the error information to the conversion control module through an error status frame. The error status frame needs to indicate which FC data frame the error information comes from, so that the conversion control module can confirm it. After the conversion control module confirms the error information, it resends the correct FC data frame to the verification module for further verification until the verification module passes the verification of the FC data frame. It can be understood that the verification module sends the verified FC data frame to the FC-AE network.
[0078] Specifically, the verification module counts the FC data frames sent from the conversion control module, counts the number of FC data frames, and checks whether the data packets corresponding to the FC data frames have been fully received. When the verification module confirms that the FC data frames included in the data packet have been fully received, the completion information is returned to the conversion control module through a completion status frame, indicating that the IPFC data transmission module has received all the data of the data packet. It can be understood that the conversion control module ends the transmission of the data packet this time according to the returned completion status frame.
[0079] It is worth noting that the completion status frame may include the reception time of each frame of the data packet, the sequence number of each frame, etc.
[0080] Preferably, the verification module is also used for:
[0081] When the IPFC data transmission module receives the FC data frame sent by the conversion control module, it returns an ACK frame to the conversion control module to confirm that the FC data frame has been received;
[0082] When the IPFC data transmission module receives the FC data frame sent by the FC-AE network, it returns an ACK frame to the FC-AE network to confirm that the FC data frame has been received.
[0083] Specifically, Figure 1 As shown, in the process of sending data from the Ethernet network to the FC-AE network, the conversion control module converts the sent IP data frame into the corresponding FC data frame and sends it to the IPFC data transmission module. If the verification module detects that the IPFC data transmission module has received the FC data frame, the verification module returns an ACK frame to the conversion control module, indicating that the IPFC data transmission module has received the FC data frame.
[0084] Specifically, Figure 1 As shown, in the process of the FC-AE network sending data to the Ethernet network, the FC-AE network sends a FC data frame to the IPFC data transmission module, and the verification module is used to detect whether the IPFC data transmission module has received the FC data frame sent by the FC-AE network. If the IPFC data transmission module receives the FC data frame sent by the FC-AE network, the verification module returns an ACK frame to the FC-AE network to indicate that the IPFC data transmission module has received the FC data frame.
[0085] Preferably, if Figure 1 As shown, the conversion control module also includes a transmission confirmation module;
[0086] When it is necessary to stop the conversion control module from sending FC data frames to the IPFC data transmission module, the transmission confirmation module sends a termination status frame to the IPFC data transmission module to end this exchange;
[0087] The transmission confirmation module is also used to receive the ACK frame returned by the verification module, and is used to receive the error status frame and the completion status frame returned by the verification module.
[0088] Specifically, Figure 1As shown, in the process of sending data from the Ethernet network to the FC-AE network, when the conversion control module detects problems such as insufficient system resources, the transmission confirmation module sends a termination status frame to the IPFC data transmission module, and the conversion control module stops the exchange. After the IPFC data transmission module receives the termination status frame, it stops receiving the FC data frames sent by the conversion control module, and ends the exchange.
[0089] Specifically, Figure 1 As shown, in the process of sending data from the Ethernet network to the FC-AE network, the check module returns an ACK frame, an error status frame and a completion status frame to the conversion control module. At this time, the transmission confirmation module is used to detect whether the conversion control module has received the ACK frame, the error status frame and the completion status frame, and judge the transmission status based on whether the above frames are received, so that the conversion control module performs corresponding operations.
[0090] Specifically, when the conversion control module sends an FC data frame to the IPFC data transmission module, if the corresponding ACK frame returned by the verification module is not received within a certain period of time, it means that the FC data frame has failed to be sent, and the conversion control module needs to resend the FC data frame; if the corresponding ACK frame returned by the verification module is received within a certain period of time, it means that the FC data frame has been sent successfully, and the next FC data frame will continue to be sent.
[0091] Specifically, when the conversion control module sends several FC data frames included in a data packet to the IPFC data transmission module, if the transmission confirmation module detects that the conversion control module has received an error status frame, it confirms which FC data frame is wrong based on the error status frame, and then resends the correct FC data frame to the IPFC data transmission module.
[0092] Specifically, when the transmission confirmation module detects that the conversion control module receives the completion status frame, the exchange ends. If not, the conversion control module continues to send the FC data frame until the transmission confirmation module detects the completion status frame.
[0093] It is worth noting that the FPGA-based IP and IPFC bridging device provided in the embodiment of the present invention verifies and counts the FC data frames sent by the conversion control module through the verification module, and returns an error status frame, a completion status frame and an ACK frame, so that the link layer can detect errors in advance and terminate transmission, thereby saving the time overhead of the protocol stack in judging the validity of the data.
[0094] Preferably, the IPFC data transmission module further comprises an FC cache module;
[0095] The FC cache module is used to receive and save FC data frames sent by the FC-AE network, and determine whether all FC data frames included in the data packets sent by the FC-AE network have been received and saved; when it is determined that all FC data frames included in the data packets have been received and saved, all FC data frames included in the data packets are transmitted to the conversion control module.
[0096] Specifically, Figure 1 As shown, the IPFC data transmission module also includes an FC cache module.
[0097] In the process of the FC-AE network sending data to the Ethernet network, the FC cache module receives and saves the FC data frames sent by the FC-AE network, counts the received FC data frames, and saves the FC data frames belonging to the same data packet in the same memory space; when it is detected that all the data packets to be sent have been saved in the same memory space, all the FC data frames saved in the same memory space are transmitted to the conversion control module.
[0098] Preferably, the conversion control module further includes a disorderly transmission module, which is used to
[0099] Receive the FC data frame sent by the IPFC data transmission module, and parse the FC data frame included in the data packet to obtain the valid data included in the data packet;
[0100] The valid data included in the data packet is fragmented, and the valid data corresponding to each fragment is encapsulated according to the IP frame format, and the encapsulated IP data frames are sent to the IP data transmission module in the time sequence of encapsulation completion.
[0101] Specifically, Figure 1 As shown, in the process of sending data from the FC-AE network to the Ethernet network, the IPFC data transmission module transmits the FC data frame included in the data packet to the conversion control module; the out-of-order transmission module parses the received FC data frame to obtain the valid data contained in each FC data frame, and segments the valid data included in the data packet according to the format of the IP data frame, and encapsulates the valid data corresponding to each piece according to the IP frame format, and sends the encapsulated IP data frame to the IP data transmission module in the time sequence of encapsulation completion.
[0102] It is worth noting that when the out-of-order transmission module encapsulates each piece, the encapsulation completion time of each piece is uncertain. The out-of-order transmission module sends the IP data frame that completes the encapsulation first, and sends all IP data frames included in the data packet to the IP data transmission module in the order of the encapsulation completion time.
[0103] The FPGA-based IP and IPFC bridging device provided by the present invention segments the data packets sent from the FC-AE network to the Ethernet network through the disordered transmission module, and sends the encapsulated IP data frames in time without having to send them in the order of the FC data frames in the data packets, thereby improving the transmission time of the data packets and the speed of data transmission.
[0104] Compared with the prior art, the FPGA-based IP and IPFC bridging device provided in this embodiment verifies the FC data frame sent by the IPFC data transmission module to confirm that the data carried by the FC data frame is error-free, and transmits the error-free FC data frame to the FC-AE network, and sinks the correctness, integrity detection and error retransmission of the IP data frame sent by the Ethernet network to the underlying protocol stack, and transmits the error-free FC data frame to the FC-AE network through the high real-time FPGA (Field Programmable Gate The invention discloses a field programmable gate array (FPGA) which improves the communication speed between the Ethernet network and the FC-AE network; and improves the data transmission between the Ethernet network and the FC-AE network by sequentially connecting the RJ45 connector, the Ethernet PHY chip and the RGMII network port; at the same time, the FC data frame sent by the conversion control module is checked and counted by the check module, and the error status frame, the completion status frame and the ACK frame are returned, so that the link layer can find the error in advance and terminate the transmission, so as to save the time cost of the protocol stack in judging the validity of the data; and the data packet sent by the FC-AE network to the Ethernet network is fragmented by the out-of-order transmission module, and the encapsulated IP data frame is sent in time, and it is not necessary to send it according to the order of the FC data frame in the data packet, so as to improve the transmission time of the data packet and the data transmission speed.
[0105] Another specific embodiment of the present invention, as Figure 2 As shown, a communication method based on the above-mentioned bridging device is disclosed, and the communication method includes:
[0106] Step 201: receiving an IP data frame sent by an Ethernet network, parsing the IP data frame to obtain valid data, and converting the valid data into an FC data frame; checking the FC data frame, and resending the FC data frame if an error exists, until a correct FC data frame is received, and sending the correct FC data frame to the FC-AE network;
[0107] Step 202: Receive FC data frames from the FC-AE network, parse each FC data frame to obtain all valid data; slice the valid data, encapsulate the valid data corresponding to each slice according to the IP frame format, obtain an IP frame corresponding to each slice, and send each IP frame to the Ethernet network.
[0108] Specifically, Figure 2As shown, when the Ethernet network sends data to the FC-AE network, it is implemented through step 201. The IP data frame sent by the Ethernet network is parsed, and the parsed valid data is encapsulated according to the FC frame format to obtain the FC data frame; when the FC data frame is sent to the FC-AE network, the FC data frame is checked, and if there is an error, the FC data frame is resent until the correct FC data frame is received, and the correct FC data frame is sent to the FC-AE network.
[0109] Specifically, Figure 2 As shown, when the FC-AE network sends data to the Ethernet network, it is implemented through step 202. The FC data frame sent by the FC-AE network is parsed to obtain all valid data included in the data packet, the valid data is fragmented, each fragment is encapsulated according to the IP frame format to obtain an IP data frame, and the IP data frame is sent to the Ethernet network according to the time when the encapsulation is completed.
[0110] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0111] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims
1. A bridging device between IP and IPFC based on FPGA, characterized in that: The bridging device includes an IP data transmission module, an IPFC data transmission module and a conversion control module; The IP data transmission module is used to parse the IP data frame sent by the Ethernet network and transmit the parsed valid data to the conversion control module; and is used to transmit the IP data frame converted by the conversion control module to the Ethernet network; The IPFC data transmission module is used to verify the FC data frame sent by the conversion control module to confirm that the data carried by the FC data frame is error-free, and transmit the error-free FC data frame to the FC-AE network; and to transmit the FC data frame sent by the FC-AE network to the conversion control module; The conversion control module is used to convert the valid data sent by the IP data transmission module into FC data frames and send them to the IPFC data transmission module; And it is used to convert the FC data frame sent by the IPFC data transmission module into an IP data frame, and send it to the IP data transmission module.
2. The bridging device according to claim 1, characterized in that: The IP data transmission module includes an RJ45 connector, an Ethernet PHY chip, an RGMII network port, and a receiving engine connected in sequence; Among them, the RJ45 connector is also connected to the Ethernet network, which is used for the transmission of IP data frames between the Ethernet network and the Ethernet PHY chip; the Ethernet PHY chip is used for receiving and sending IP data frames; the RGMII network port is used to control the transmission rate of IP data frames; The receiving engine is used to parse the IP data frame sent by the Ethernet network, remove the guide area and padding field of the frame header of the IP data frame, and send the parsed valid data to the conversion control module.
3. The bridging device according to claim 2, characterized in that: The receiving engine is also used to count the received IP data frames and complete error detection based on the check sequence area, error codeword and frame length information of the IP data frames.
4. The bridging device according to claim 2, characterized in that: The IP data transmission module also includes a sending engine, and the sending engine is connected to the RGMII network port; The sending engine is used to receive the IP data frame sent by the conversion control module and transmit the IP data frame to the RGMII network port. The IP data frame is transmitted to the Ethernet PHY chip through the RGMII network port. The Ethernet PHY chip sends the IP data frame to the RJ45 connector, and the RJ45 connector transmits the IP data frame to the Ethernet network.
5. The bridging device according to claim 1, characterized in that: The IPFC data transmission module also includes a verification module; The verification module is used to verify the FC data frame sent by the conversion control module; if the FC data frame has an error, the verification module returns the error information to the conversion control module through an error status frame, and the conversion control module resends the correct FC data frame after receiving the error status frame until the verification module obtains the FC data frame that has passed the verification; The verification module is also used to count whether the data packets corresponding to the FC data frames sent by the conversion control module have been fully received; if they have been fully received, the completion information is returned to the conversion control module through a completion status frame, and the conversion control module ends the sending of this data packet after receiving the completion status frame.
6. The bridging device according to claim 5, characterized in that: The validation module is also used to: When the IPFC data transmission module receives the FC data frame sent by the conversion control module, it returns an ACK frame to the conversion control module to confirm that the FC data frame has been received; When the IPFC data transmission module receives the FC data frame sent by the FC-AE network, it returns an ACK frame to the FC-AE network to confirm that the FC data frame has been received.
7. The bridging device according to claim 6, characterized in that: The conversion control module also includes a transmission confirmation module; When it is necessary to stop the conversion control module from sending FC data frames to the IPFC data transmission module, the transmission confirmation module sends a termination status frame to the IPFC data transmission module to end this exchange; The transmission confirmation module is also used to receive the ACK frame returned by the verification module, and is used to receive the error status frame and the completion status frame returned by the verification module.
8. The bridging device according to claim 6, characterized in that: The IPFC data transmission module also includes an FC cache module; The FC cache module is used to receive and save FC data frames sent by the FC-AE network, and determine whether all FC data frames included in the data packets sent by the FC-AE network have been received and saved; when it is determined that all FC data frames included in the data packets have been received and saved, all FC data frames included in the data packets are transmitted to the conversion control module.
9. The bridging device according to claim 8, characterized in that: The conversion control module also includes a disorderly transmission module, which is used to Receive the FC data frame sent by the IPFC data transmission module, and parse the FC data frame included in the data packet to obtain the valid data included in the data packet; The valid data included in the data packet is fragmented, and the valid data corresponding to each fragment is encapsulated according to the IP frame format, and the encapsulated IP data frames are sent to the IP data transmission module in the time sequence of encapsulation completion.
10. A communication method based on the bridge device according to any one of claims 1 to 9, characterized in that: The communication method comprises: Receive IP data frames sent by the Ethernet network, parse the IP data frames to obtain valid data, and convert the valid data into FC data frames; check the FC data frames, and resend the FC data frames if there are errors, until the correct FC data frames are received, and send the correct FC data frames to the FC-AE network; Receive FC data frames from the FC-AE network, parse each FC data frame to obtain all valid data; slice the valid data, encapsulate the valid data corresponding to each slice according to the IP frame format, obtain the IP frame corresponding to each slice, and send each IP frame to the Ethernet network.
Citation Information
Cited By
Ethernet PHY bridging method and system, and electronic equipment
CN120956561A