Method for carrying Ethernet protocol data on FC network and building dynamic transmission routing

By setting the MTU value in the FC network and configuring a unique device number and IP address for the entire network, routes are dynamically constructed to enable Ethernet data transmission on the FC network. This solves the problem that traditional FC networks cannot carry Ethernet application services and improves transmission efficiency and compatibility.

CN119728525BActive Publication Date: 2025-09-30XIAN AVIATION COMPUTING TECH RES INST OF AVIATION IND CORP OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411810239.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-09-30
Estimated Expiration
2044-12-10

AI Technical Summary

Technical Problem

Traditional FC networks are unable to carry Ethernet application service data and are unlikely to meet the openness, digitalization, and resource sharing requirements of future aviation airborne networks.

Method used

By obtaining the maximum payload of the FC protocol data frame, setting the MTU value of the Ethernet protocol stack, configuring a unique device number and IP address for each FC network card, building a dynamic transmission route, and encapsulating Ethernet protocol data packets into FC protocol data frames, Ethernet data can be routed and transmitted on the FC network.

Benefits of technology

Without changing the FC network hardware, it achieves effective transmission of Ethernet data on the FC network, improves network transmission efficiency and bandwidth, supports the compatibility of Ethernet services, and dynamically builds routing forwarding, decoupling upper-layer applications from underlying physical links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728525B_ABST
    Figure CN119728525B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of aviation airborne network data communication technology and discloses a method for carrying Ethernet protocol data on an FC network and establishing a dynamic transmission route. The method comprises: setting the MTU of the Ethernet protocol stack; establishing a dynamic transmission route; encapsulating source-end application data into at least one Ethernet protocol data packet based on the MTU value; encapsulating the Ethernet protocol data packet into a source-end FC protocol frame data packet based on the dynamic transmission route; transmitting the source-end FC protocol frame data packet via the source-end FC network card through a switch to the destination-end FC network card based on the dynamic transmission route; and unpacking and repackaging the source-end FC protocol frame data, restoring it to source-end application data, and then caching it. The method of the present invention encapsulates Ethernet data in FC protocol frames without changing the physical hardware structure of the FC network and the FC protocol frame structure. By establishing a dynamic route, Ethernet data is carried on the FC network, enabling the FC network to support Ethernet application services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of aviation airborne network data communication, and relates to the transmission technology of Ethernet protocol data packets in FC networks. Specifically, it relates to a method for carrying Ethernet protocol data on FC networks and constructing dynamic transmission routes. Through this method, FC networks can carry Ethernet application service data. Background Art

[0002] Future avionics systems require open, flexible, higher-bandwidth, and improved quality of service (QoS) in airborne networks. Technologies such as heterogeneous converged computing, containers, virtualization, and high-security Ethernet application services are also being promoted and applied in the airborne sector. FC networks are mature, widely used, and offer stable performance in aviation airborne networks. While Ethernet will likely not fully replace FC networks for the application of Ethernet application services on airborne networks in the short term, traditional FC networks are currently unable to carry Ethernet application services, making them unable to meet the application requirements of future open, digitally intelligent, system-coordinated, and highly resource-shared aviation airborne networks.

[0003] Therefore, there is an urgent need for a method to realize IP-based FC network through traditional FC network system, so as to realize the carrying of Ethernet protocol data on FC network without changing the traditional FC network hardware equipment, and solve the problem that FC network cannot carry Ethernet service data. Summary of the Invention

[0004] In order to solve the technical problem that the existing FC network cannot carry Ethernet service data, the present invention discloses a method for carrying Ethernet protocol data on an FC network and constructing a dynamic transmission route. The method includes the following steps:

[0005] S1. Obtain the maximum payload of the FC protocol data frame, and set the MTU value of the Ethernet protocol stack according to the maximum payload;

[0006] S2. Configure a unique device number and IP address for each FC network card, and build a dynamic transmission route based on the FC switch port number and the device number and IP address of the FC network card.

[0007] S3. Encapsulating the source application data into at least one Ethernet protocol data packet through the source Ethernet protocol stack according to the MTU value;

[0008] S4. Encapsulate the Ethernet protocol data packet into a valid data payload segment of an FC protocol data frame, and fill the device number corresponding to the IP address into the device number field of the FC protocol data frame according to the dynamic transmission route, thereby encapsulating to obtain a source-end FC protocol frame data packet;

[0009] S5. Based on the dynamic transmission route, the source-end FC protocol frame data packet is sent via the source-end FC network card to the FC switch, and then forwarded to the destination-end FC network card via the FC switch. The destination-end FC network card receives the source-end FC protocol frame data packet, extracts the source-end application data from the source-end FC protocol frame data packet, and outputs the extracted data to the destination-end Ethernet protocol stack.

[0010] Furthermore, in step S1, obtaining the maximum payload of the FC protocol data frame and setting the MTU value of the Ethernet protocol stack according to the maximum payload include:

[0011] S11, obtaining the maximum payload of the FC protocol data frame in the FC network and calculating the header length of the Ethernet data;

[0012] S12. Calculate the difference between the maximum payload and the header length, and use the difference as the MTU value of the Ethernet protocol stack.

[0013] Furthermore, in step S2, each FC network card is configured with a unique device number and IP address in the entire network, and a dynamic transmission route is constructed based on the FC switch port number and the device number and IP address of the FC network card, including:

[0014] S21. Configure a network-wide unique device number and assign at least one IP address to each FC network card. That is, configure a network-wide unique device number and assign at least one IP address to each FC network card (each IP address is different and has no duplicates in the entire network).

[0015] S22, establish the corresponding relationship between each device number and IP address, and obtain the mapping relationship table T ID ;

[0016] S23, establish the corresponding relationship between each device number and the FC switch port, and obtain the mapping relationship table T DP ;

[0017] S24, the mapping relationship table T is converted into DP and the mapping relationship table T ID Broadcast to the entire network to complete the construction of dynamic transmission routing.

[0018] Furthermore, step S2 further includes:

[0019] S25, taking the FC switch as the center, the mapping relationship table T of the dynamic transmission route DP and the mapping relationship table T ID Perform dynamic updates.

[0020] Furthermore, in step S4, the device number corresponding to the IP address is filled into the device number field of the FC protocol data frame according to the dynamic transmission route, and encapsulated to obtain a source-end FC protocol frame data packet, including:

[0021] S41, the IP address includes the destination IP address and the source IP address, according to the mapping relationship table T in the dynamic transmission route ID , obtaining a destination device number corresponding to the destination IP address and a source device number corresponding to the source IP address;

[0022] S42: Fill the destination device number and the source device number into the destination device number field and the source device number field of the device number field of the FC protocol data frame carrying the Ethernet protocol data, respectively, to encapsulate and obtain a source FC protocol frame data packet.

[0023] Furthermore, in step S5, according to the dynamic transmission route, the source-end FC protocol frame data packet is sent via the source-end FC network card to the FC switch, and then forwarded to the destination-end FC network card via the FC switch; the destination-end FC network card receives the source-end FC protocol frame data packet, extracts the source-end application data from the source-end FC protocol frame data packet, and outputs the extracted data to the destination-end Ethernet protocol stack, including:

[0024] S51, the device number includes the destination device number and the source device number, according to the mapping relationship table T in the dynamic transmission route DP , obtaining the FC switch port corresponding to the destination device number;

[0025] S52: Output the source-end FC protocol frame data packet to the destination-end FC network card through the source-end FC network card and the switch;

[0026] S53: Extract the Ethernet protocol data packet from the source-end FC protocol frame data packet received by the destination-end FC network card, output the Ethernet protocol data packet to the destination-end Ethernet protocol stack, unpack the Ethernet protocol data packet in the destination-end Ethernet protocol stack to obtain source-end application data, and cache the source-end application data.

[0027] Furthermore, step S5 further includes:

[0028] S54: When the Ethernet data is encapsulated into a plurality of the Ethernet protocol data packets, the destination Ethernet protocol stack repackages the received plurality of the Ethernet protocol data packets into the source application data.

[0029] Furthermore, in step S1 and step S5, the source-end application data is transmitted in the destination-end Ethernet protocol stack and the source-end Ethernet protocol stack through any one communication protocol among UDP, TCP, ICMP and ARP.

[0030] Compared with the prior art, the method of the present invention has the following advantages:

[0031] 1. When Ethernet data is carried over an FC network, there is no need to modify the Ethernet and FC protocols. Upper-layer applications send and receive data by calling the Ethernet standard Socket API interface, and the physical link is the FC network device.

[0032] 2. Set the Ethernet protocol stack MTU value based on the maximum effective data payload of the FC protocol frame, fill the FC protocol frame effective data payload to the maximum extent, reduce the number of data fragmentation and reassembly times by the Ethernet protocol stack, and improve network transmission efficiency and bandwidth.

[0033] 3. Ethernet data fragmentation and reassembly are completed in the Ethernet protocol stack, and data fragmentation and reassembly are no longer performed in FC protocol processing.

[0034] 4. Ethernet protocol data is encapsulated into FC protocol frames between the Ethernet protocol stack and the FC network card. Upper-layer Ethernet applications do not need to pay attention to the characteristics of the underlying physical transmission link.

[0035] 5. Support common application protocols of Ethernet services and have good compatibility with Ethernet service applications;

[0036] 6. Implement FC protocol and Ethernet protocol conversion between the Ethernet network protocol stack and the FC network card driver layer without changing the Ethernet network protocol stack and the FC network card driver;

[0037] 7. Dynamic construction of forwarding routes is achieved by converting Ethernet data packets forwarded based on IP addresses and port numbers into FC protocol frames forwarded based on device numbers and switch ports. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0039] Figure 1 A flow chart of a method for carrying Ethernet protocol data on an FC network and establishing dynamic transmission routes disclosed in an embodiment of the present invention;

[0040] Figure 2The protocol architecture of the method for transmitting Ethernet protocol data over an FC network disclosed in an embodiment of the present invention;

[0041] Figure 3 The protocol layering of the method for transmitting Ethernet protocol data over an FC network disclosed in an embodiment of the present invention;

[0042] Figure 4 This is a schematic diagram of unicast, multicast, and broadcast transmission of Ethernet data carried by an FC network disclosed in an embodiment of the present invention;

[0043] Figure 5 The operational process of constructing a dynamic transmission route disclosed in an embodiment of the present invention;

[0044] Figure 6 The data sending and receiving process of the transmission method of Ethernet data carried on the FC network disclosed in the embodiment of the present invention;

[0045] Figure 7 This is a structural diagram of an FC protocol frame data packet disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0047] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and functions of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the absence of conflict, the following embodiments and the features of the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative work are within the scope of protection of this application.

[0048] The embodiment of the present invention discloses a method for carrying Ethernet protocol data on an FC network and establishing a dynamic transmission route. The method fills Ethernet data into FC protocol data frames, adjusts the Ethernet MTU value according to the maximum effective data payload length of the FC network, fills the FC effective payload data segment to the maximum extent, and simultaneously dynamically establishes the routing relationship between Ethernet and FC networks, thereby realizing the routing transmission of Ethernet data on the FC network. Specifically, see Figure 1 and Figure 6 As shown, the method includes the following steps:

[0049] S1. Obtain the maximum payload of the FC protocol data frame, and set the MTU value of the Ethernet protocol stack according to the maximum payload;

[0050] S2. Configure a unique device number and IP address for each FC network card, and build a dynamic transmission route based on the FC switch port number and the device number and IP address of the FC network card.

[0051] S3. Encapsulating the source application data into at least one Ethernet protocol data packet through the source Ethernet protocol stack according to the MTU value;

[0052] S4. Encapsulate the Ethernet protocol data packet into a valid data payload segment of an FC protocol data frame, and fill the device number corresponding to the IP address into the device number field of the FC protocol data frame according to the dynamic transmission route, thereby encapsulating to obtain a source-end FC protocol frame data packet;

[0053] S5. Based on the dynamic transmission route, the source-end FC protocol frame data packet is sent via the source-end FC network card to the FC switch, and then forwarded to the destination-end FC network card via the FC switch. The destination-end FC network card receives the source-end FC protocol frame data packet, extracts the source-end application data from the source-end FC protocol frame data packet, and outputs the extracted data to the destination-end Ethernet protocol stack.

[0054] The data is received by calling the standard Ethernet socket API interface. For specific implementation, see Figure 2 and Figure 3 As shown in the figure, the transmission method for Ethernet data over an FC network consists of five layers from bottom to top: the FC network link layer (which defines physical connection characteristics), the transport layer (which defines encoding and decoding rules, port receiver and transmitter status, and error control), and the Ethernet network layer, transport layer, and application layer. The underlying physical link consists of traditional FC network physical devices. Conversion between Ethernet protocol data and FC protocol frames occurs between the driver layer and the system network protocol stack. Upper-layer applications use standard Ethernet socket APIs for data transmission and reception.

[0055] Furthermore, in step S1, obtaining the maximum payload of the FC protocol data frame and setting the MTU value of the Ethernet protocol stack according to the maximum payload include:

[0056] S11, obtaining the maximum payload of the FC protocol data frame in the FC network and calculating the header length of the Ethernet data;

[0057] S12. Calculate the difference between the maximum payload and the header length, and use the difference as the MTU value of the Ethernet protocol stack.

[0058] In practice, an FC protocol frame consists of a delimiter, an FC frame header (including fields such as the routing control field, sequence identifier, and device number), an ASM header, a CRC checksum, and a payload segment. To maximize the FC protocol frame payload and reduce the number of data fragmentation and reassembly operations performed by the protocol stack, the default Ethernet MTU value should be optimized. The Ethernet MTU value is the length of the IP packet, including the IP header, TCP / UDP header, and the IP packet payload length. The IP packet plus the 18-byte Ethernet header (including the 6-byte source MAC address, the 6-byte destination MAC address, the 2-byte type field, and the 4-byte checksum) constitute a complete Ethernet packet.

[0059] The optimized MTU value is the maximum payload of the FC protocol frame minus the length of the Ethernet header. Compared to the standard Ethernet MTU value, the optimized MTU value significantly increases the maximum payload of the FC protocol frame. This optimized MTU value also reduces the number of data fragmentation and reassembly operations performed by the protocol stack, improving protocol processing efficiency.

[0060] At the same time, Ethernet data fragmentation and reassembly are completed by the operating system's Ethernet protocol stack, eliminating the need for data fragmentation and reassembly at the FC protocol layer. The operating system can be either an embedded operating system or a desktop operating system, equipped with an Ethernet protocol stack and supporting Ethernet protocol processing.

[0061] Furthermore, during the specific implementation of step S3, the application calls a standard Ethernet socket API interface to receive and transmit Ethernet data. In the Ethernet protocol stack, the Ethernet data is fragmented according to the MTU value and encapsulated into at least one Ethernet protocol data packet that can be carried in the FC protocol frame's payload segment. After processing by the Ethernet protocol stack, the Ethernet protocol data packet (including the MAC address, IP header, UDP / TCP header, Payload data, checksum, etc.) is encapsulated into the Payload field of the FC protocol frame's payload segment, while the FC protocol frame structure remains unchanged.

[0062] In specific implementations, the Ethernet protocol stack performs data fragmentation based on the set MTU value. The FC network's method for transmitting Ethernet protocol data encapsulates the Ethernet protocol data within the effective data payload segment of the FC protocol frame. To maximize the use of the FC protocol frame's effective data payload, the length of the Ethernet data packet to be encapsulated is equal to the MTU value plus the Ethernet header length. In this case, data does not need to be fragmented and can fill the FC protocol frame's effective data payload to the maximum extent possible.

[0063] Furthermore, when step S4 is implemented, see Figure 4 As shown, the destination IP address of the data is parsed, unicast, multicast, and broadcast are identified, and the mapping table T is used toID The FC device number corresponding to the resolved destination IP address is found, the destination address is translated, and the destination device number (DID) field (i.e., the corresponding FC device number) in the FC protocol frame is filled in, thereby enabling unicast, multicast, and broadcast transmission on the FC network. Unicast: Sends to a single device on the network; multicast: Sends to multiple devices on the network; broadcast: Sends to all devices on the network.

[0064] Specifically, when parsing Ethernet data, you also need to determine the communication type based on the parsed destination IP address, whether it is unicast, multicast, or broadcast. Fill in the FC protocol frame destination device number based on the unicast, multicast, or broadcast communication type, as follows:

[0065] In unicast mode: specify a destination IP address and search the mapping table T based on the IP address. ID The FC network destination device number can be obtained and filled in the FC protocol frame destination device number field. When multicasting: Ethernet multicast uses the D class address identifier and searches the mapping table T according to the group packet address. ID Obtain the destination device number to be sent and fill the multicast destination device number field in the FC protocol frame. When broadcasting: Send a message to all nodes in the network. The host portion of the IP address is represented by the decimal number 255 or the binary number 11111111. In this case, the destination device number field of the FC protocol frame is set to 0xFFFF (indicating broadcast).

[0066] When transmitting data through a switch, if the destination device number is unicast, the switch forwards the data from the corresponding port number; if the destination device number is multicast, the switch forwards the data from the corresponding port according to the multicast destination device number; if the destination device number is broadcast, the switch sends a copy of the data to each device.

[0067] Furthermore, in step S2, each FC network card is configured with a unique device number and IP address in the entire network, and a dynamic transmission route is constructed based on the FC switch port number and the device number and IP address of the FC network card, including:

[0068] S21. Configure a network-wide unique device number and assign at least one IP address to each FC network card. That is, configure a network-wide unique device number and assign at least one IP address to each FC network card (each IP address is different and has no duplicates in the entire network);

[0069] S22, establish the corresponding relationship between each device number and IP address, and obtain the mapping relationship table T ID ,;

[0070] S23, establish the corresponding relationship between each device number and the FC switch port, and obtain the mapping relationship table T DP ;

[0071] S24, the mapping relationship table T is transmitted through the switch. DP and the mapping relationship table T ID Broadcast to the entire network to complete the construction of dynamic transmission routing.

[0072] In the specific implementation, see Figure 5 As shown, the node FC network card device is used to initiate login and registration operations to the switch to achieve dynamic construction of the network topology structure and pass the mapping table T DP Maintain the network topology. At the same time, establish the mapping table T ID , complete the conversion of Ethernet IP routing to FC network routing. DP and T ID The establishment, update, and maintenance of the FC network enable the dynamic construction of Ethernet data transmission routes. Specifically, the process includes the following:

[0073] 1. After the system starts, the FC network card node (communication node) uses the default port number to initiate a port login request to the switch and waits for the switch to respond.

[0074] 2. If the switch replies that the node is allowed to log in with the default port number, it returns a successful login message; if the switch does not allow the node to log in with the default port number, it returns a new port number to the node and allows the node to log in again with the new port number;

[0075] 3. The node registers the local FC network card device number with the network manager (FC switch), and the network manager (switch) adds the device number to the global network status information table;

[0076] 4. The node completes the binding of the network card device number and the switch port number (device number, port number), and sends (device number, port number) to the switch;

[0077] 5. The switch adds the received (device number, port number) to the mapping table T between the device number and the switch port number DP , and broadcast to every node in the entire network (FC network).

[0078] In an improved embodiment, the above step S2 further includes:

[0079] S25, taking the FC switch as the center, the mapping relationship table T of the dynamic transmission route DP and the mapping relationship table T ID Dynamically update the mapping table T DP The switch performs dynamic maintenance and updates through the mapping table T DP Dynamic updates enable physical devices to be used as soon as they are connected to the switch, completing the dynamic construction of the underlying physical link.

[0080] The upper layer application calls the Ethernet standard Socket API interface to complete data transmission and reception. The upper layer application sends data based on the IP address and port number, while the lower layer physical network forwards data based on the FC network card device number and the switch port number. Establish a mapping table T between Ethernet IP address and FC network card device number ID , complete the mapping conversion from Ethernet routing to FC network routing, specifically including the following steps:

[0081] 1. The system starts, the node completes the binding of the IP address and the device number of the local FC network card, and sends the bound (IP address, device number) to the switch;

[0082] 2. The switch adds the received (IP address, device number) to the mapping table T between the IP address and the FC network card device number. ID , and broadcast to all nodes in the FC network.

[0083] In the above process, the mapping relationship between IP address and device number is established by the node, and the mapping table T ID Dynamic maintenance is performed by the switch through the mapping table T ID Dynamic updates enable the dynamic establishment of Ethernet-to-FC network routing relationships. This enables the dynamic construction of FC and Ethernet routes, allowing upper-layer applications to complete Ethernet data transmission on FC networks based on standard Ethernet Socket API interfaces without having to worry about the construction of underlying FC physical links. This decouples upper-layer applications from network physical devices and network topology.

[0084] Furthermore, in step S4, the device number corresponding to the IP address is filled into the device number field of the FC protocol data frame according to the dynamic transmission route, and encapsulated to obtain a source-end FC protocol frame data packet, including:

[0085] S41, the IP address includes the destination IP address and the source IP address, according to the mapping relationship table T in the dynamic transmission route ID , obtaining a destination device number corresponding to the destination IP address and a source device number corresponding to the source IP address;

[0086] S42, respectively fill the destination device number and the source device number into the destination device number field and the source device number field of the device number field of the FC protocol data frame carrying the Ethernet protocol data, and encapsulate to obtain a source FC protocol frame data packet. The structure of the final source FC protocol frame data packet is as follows: Figure 7 As shown, Figure 7 The IP data packet shown in FIG is the Ethernet protocol data packet formed in step S2.

[0087] Furthermore, in step S5, according to the dynamic transmission route, the source-end FC protocol frame data packet is sent via the source-end FC network card to the FC switch, and then forwarded to the destination-end FC network card via the FC switch; the destination-end FC network card receives the source-end FC protocol frame data packet, extracts the source-end application data from the source-end FC protocol frame data packet, and outputs the extracted data to the destination-end Ethernet protocol stack, including:

[0088] S51, the device number includes the destination device number and the source device number, according to the mapping relationship table T in the dynamic transmission route DP , obtaining the FC switch port corresponding to the destination device number;

[0089] S52: Output the source-end FC protocol frame data packet to the destination-end FC network card through the source-end FC network card and the switch;

[0090] S53: Extract the Ethernet protocol data packet from the source-end FC protocol frame data packet received by the destination-end FC network card, output the Ethernet protocol data packet to the destination-end Ethernet protocol stack, unpack the Ethernet protocol data packet in the destination-end Ethernet protocol stack to obtain source-end application data, and cache the source-end application data.

[0091] Furthermore, step S5 further includes:

[0092] S54: When the Ethernet data is encapsulated into a plurality of the Ethernet protocol data packets, the destination Ethernet protocol stack repackages the received plurality of the Ethernet protocol data packets into the source application data.

[0093] Furthermore, in step S1 and step S5, the source-end application data is transmitted in the destination-end Ethernet protocol stack and the source-end Ethernet protocol stack through any one communication protocol among UDP, TCP, ICMP and ARP.

[0094] Compared with the prior art, the method of the present invention has the following advantages:

[0095] 1. When Ethernet data is carried over an FC network, there is no need to modify the Ethernet and FC protocols. Upper-layer applications send and receive data by calling the Ethernet standard Socket API interface, and the physical link is the FC network device.

[0096] 2. Set the Ethernet protocol stack MTU value based on the maximum effective data payload of the FC protocol frame, fill the FC protocol frame effective data payload to the maximum extent, reduce the number of data fragmentation and reassembly times by the Ethernet protocol stack, and improve network transmission efficiency and bandwidth.

[0097] 3. Ethernet data fragmentation and reassembly are completed in the Ethernet protocol stack, and data fragmentation and reassembly are no longer performed in FC protocol processing.

[0098] 4. Ethernet protocol data is encapsulated into FC protocol frames between the Ethernet protocol stack and the FC network card. Upper-layer Ethernet applications do not need to pay attention to the characteristics of the underlying physical transmission link.

[0099] 5. Support common application protocols of Ethernet services and have good compatibility with Ethernet service applications;

[0100] 6. Implement FC protocol and Ethernet protocol conversion between the Ethernet network protocol stack and the FC network card driver layer without changing the Ethernet network protocol stack and the FC network card driver;

[0101] 7. Dynamic construction of forwarding routes is achieved by converting Ethernet data packets forwarded based on IP addresses and port numbers into FC protocol frames forwarded based on device numbers and switch ports.

[0102] Obviously, those skilled in the art should understand that the various steps of the above-mentioned embodiments of the present invention can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices. Alternatively, they can be implemented using program code executable by the computing device, so that they can be stored in a storage device and executed by the computing device. In some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the embodiments of the present invention are not limited to any specific combination of hardware and software.

[0103] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.

Claims

1. A method for carrying Ethernet protocol data on an FC network and constructing a dynamic transmission route, characterized in that: The method comprises: Obtaining a maximum payload of an FC protocol data frame, and setting an MTU value of an Ethernet protocol stack according to the maximum payload; Configure a unique device number and IP address for each FC network card, and build a dynamic transmission route based on the FC switch port number and the device number and IP address of the FC network card; Encapsulating the source application data into at least one Ethernet protocol data packet through the source Ethernet protocol stack according to the MTU value; Encapsulating the Ethernet protocol data packet into a valid data payload segment of an FC protocol data frame, and filling the device number corresponding to the IP address into the device number field of the FC protocol data frame according to the dynamic transmission route, thereby encapsulating to obtain a source-end FC protocol frame data packet; According to the dynamic transmission route, the source-end FC protocol frame data packet is sent to the FC switch via the source-end FC network card, and then forwarded to the destination-end FC network card via the FC switch; the destination-end FC network card receives the source-end FC protocol frame data packet, extracts the source-end application data from the source-end FC protocol frame data packet, and outputs the extracted data to the destination-end Ethernet protocol stack.

2. The method for carrying Ethernet protocol data on an FC network and constructing a dynamic transmission route according to claim 1, characterized in that: Obtaining a maximum payload of an FC protocol data frame and setting an MTU value of an Ethernet protocol stack according to the maximum payload includes: Obtain the maximum payload of the FC protocol data frame in the FC network and calculate the header length of the Ethernet data; The difference between the maximum payload and the header length is calculated, and the difference is used as the MTU value of the Ethernet protocol stack.

3. The method for carrying Ethernet protocol data on an FC network and constructing dynamic transmission routes according to claim 1, characterized in that: Each FC network card is configured with a unique device number and IP address in the entire network. Based on the FC switch port number and the device number and IP address of the FC network card, a dynamic transmission route is constructed, including: Configure each FC network card with a unique device number and assign at least one IP address, establish a corresponding relationship between each device number and IP address, and obtain a mapping relationship table T ID ; Establish the corresponding relationship between each device number and FC switch port to obtain the mapping relationship table T DP ; The mapping relationship table T is converted into DP and the mapping relationship table T ID Broadcast to the entire network to complete the construction of dynamic transmission routing.

4. The method for carrying Ethernet protocol data on an FC network and constructing a dynamic transmission route according to claim 3, characterized in that: Also includes: Taking the FC switch as the center, the mapping relationship table T of the dynamic transmission route DP and the mapping relationship table T ID Perform dynamic updates.

5. The method for carrying Ethernet protocol data on an FC network and constructing a dynamic transmission route according to claim 4, characterized in that: Filling the device number corresponding to the IP address into the device number field of the FC protocol data frame according to the dynamic transmission route, and encapsulating to obtain a source-end FC protocol frame data packet, including: The IP address includes the destination IP address and the source IP address, according to the mapping relationship table T in the dynamic transmission route. ID , obtaining a destination device number corresponding to the destination IP address and a source device number corresponding to the source IP address; The destination device number and the source device number are respectively filled into the destination device number field and the source device number field in the device number field of the FC protocol data frame carrying the Ethernet protocol data, and encapsulated to obtain a source FC protocol frame data packet.

6. The method for carrying Ethernet protocol data on an FC network and constructing dynamic transmission routes according to claim 5, characterized in that: According to the dynamic transmission route, the source-end FC protocol frame data packet is sent through the source-end FC network card to the FC switch, and then forwarded to the destination-end FC network card through the FC switch; the destination-end FC network card receives the source-end FC protocol frame data packet, extracts the source-end application data from the source-end FC protocol frame data packet, and outputs the extracted data to the destination-end Ethernet protocol stack, including: The device number includes the destination device number and the source device number, according to the mapping relationship table T in the dynamic transmission route. DP , obtaining the FC switch port corresponding to the destination device number; Output the source FC protocol frame data packet to the destination FC network card through the source FC network card and the switch; The Ethernet protocol data packet is extracted from the source-end FC protocol frame data packet received by the destination-end FC network card, the Ethernet protocol data packet is output to the destination-end Ethernet protocol stack, the Ethernet protocol data packet is unpacked in the destination-end Ethernet protocol stack to obtain source-end application data, and the source-end application data is cached.

7. The method for carrying Ethernet protocol data on an FC network and constructing a dynamic transmission route according to claim 6, characterized in that: Also includes: When Ethernet data is encapsulated into a plurality of the Ethernet protocol data packets, the received plurality of the Ethernet protocol data packets are grouped and restored into the source-end application data in the destination-end Ethernet protocol stack.

8. The method for carrying Ethernet protocol data on an FC network and constructing dynamic transmission routes according to claim 1, characterized in that: The source-end application data is transmitted in the destination-end Ethernet protocol stack and the source-end Ethernet protocol stack through any one communication protocol among UDP, TCP, ICMP and ARP.