Hybrid transmission method for Ethernet data and FC data borne by FC network
By building Ethernet and FC service communication channels on the FC network node end and encapsulating Ethernet data into FC protocol frame data packets, the problem that existing FC networks are difficult to carry Ethernet services and FC services at the same time is solved, and the ability to deploy two service applications on traditional FC networks is realized.
Patent Information
- Application Number
- CN202411810241.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-03-28
AI Technical Summary
In existing aviation airborne networks, FC networks are difficult to carry Ethernet services and FC services at the same time, and they need to be compatible with both services without changing the existing airborne FC network architecture.
The Ethernet service communication channel and FC service communication channel are built on the FC network nodes. The data is output to the corresponding channel by analyzing the data type identification, and the Ethernet data is encapsulated into FC protocol frame data packets and transmitted through the FC network card device.
It realizes the ability to simultaneously deploy Ethernet service applications and FC service applications on traditional FC networks, supports hybrid transmission of Ethernet service data and FC service data, and is compatible with traditional FC network devices.
Smart Images

Figure CN119728601A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of aviation airborne network data communication and relates to a hybrid transmission method of an FC network carrying Ethernet data and FC data. Background Art
[0002] With the promotion and application of heterogeneous converged computing, containers, virtualization, high security and other technologies of Ethernet application services in the airborne field, aviation airborne networks need to carry Ethernet business applications. At present, FC networks are usually used as switching networks in aviation airborne networks. In order to meet the application needs of future airborne networks, it is necessary to deploy Ethernet protocol application services on the airborne FC network without changing the existing airborne FC network architecture, while being compatible with the existing airborne FC application services. Summary of the invention
[0003] In order to realize the purpose of simultaneously realizing FC services and Ethernet services through the existing airborne FC network, the present invention discloses a hybrid transmission method of Ethernet data and FC data carried by an FC network, the method comprising the following steps:
[0004] S1. Construct an Ethernet service communication channel and an FC service communication channel at the FC network node end respectively;
[0005] S2, parsing the data to be transmitted to obtain a data type identifier, and outputting the data to be transmitted to the Ethernet service communication channel or the FC service communication channel according to the data type identifier;
[0006] S3, encapsulating the data to be transmitted in the Ethernet service communication channel into FC protocol frame data packets, and outputting them to the Ethernet message queue of the network driver function layer of the FC network card device; directly outputting the data to be transmitted in the FC service communication channel to the FC message queue of the network driver function layer of the FC network card device;
[0007] S4. Extract data from the Ethernet message queue or the FC message queue according to the data scheduling instruction, perform FC protocol framing on the data, and then transmit the data to the FC switch through the FC network card, and perform routing forwarding through the FC switch.
[0008] Furthermore, in step S1, an Ethernet service communication channel and an FC service communication channel are respectively constructed at the FC network node end, including:
[0009] S11, connecting one end of the standard Ethernet socket API function interface to the application end, and the other end to the Ethernet protocol stack, and connecting the network driver adaptation layer to the output end of the Ethernet protocol stack;
[0010] S12, establishing a custom I octl function interface, connecting one end of the custom I octl function interface to the application end, and connecting the other end to an IO device;
[0011] S13, connecting the network driver adaptation layer and the IO device to the FC network card device network driver function layer respectively, and completing the construction of the Ethernet service communication channel and the FC service communication channel.
[0012] Further, in step S2, the data to be transmitted is parsed to obtain a data type identifier, and the data to be transmitted is output to the Ethernet service communication channel or the FC service communication channel according to the data type identifier, including:
[0013] S21, parsing the data to be transmitted output by the application end to obtain a data type identifier, and determining the type of the data type identifier;
[0014] S22, when the type of the data type identifier is an Ethernet type, calling the Ethernet socket API function interface of the Ethernet service communication channel to output the data to be transmitted to the Ethernet service communication channel;
[0015] S23: When the type of the data type identifier is the FC type, calling the custom ioctl function interface of the FC service communication channel to output the data to be transmitted to the FC service communication channel.
[0016] Furthermore, in step S3, the data to be transmitted in the Ethernet service communication channel is encapsulated into an FC protocol frame data packet and output to the Ethernet message queue of the network driver function layer of the FC network card device, including:
[0017] S31. In the Ethernet service communication channel, unpack and encapsulate the data to be transmitted into at least one Ethernet protocol data packet through the Ethernet protocol stack;
[0018] S32. Encapsulate the Ethernet protocol data packet into an FC protocol frame data packet through the network adaptation layer, and send the FC protocol frame data packet to the Ethernet message queue.
[0019] Furthermore, in step S31, in the Ethernet service communication channel, the data to be transmitted is unpacked and encapsulated into at least one Ethernet protocol data packet through the Ethernet protocol stack, including:
[0020] S311, obtaining a maximum payload of a FC protocol data frame, and setting an MTU value of an Ethernet protocol stack according to the maximum payload;
[0021] S312. Split the data to be transmitted into at least one Ethernet data segment according to the MTU value, encapsulate each Ethernet data segment into an Ethernet protocol data packet, and output the Ethernet protocol data packet to the network adaptation layer.
[0022] Furthermore, in step S32, encapsulating the Ethernet protocol data packet into an FC protocol frame data packet through the network adaptation layer, and sending the FC protocol frame data packet to the Ethernet message queue includes:
[0023] S321, in the FC protocol frame data packet, putting each of the Ethernet protocol data packets into a valid data payload section of one of the FC protocol data frames;
[0024] S322, extracting the IP address of the data to be transmitted, obtaining the FC device number corresponding to the IP address according to the constructed transmission route, filling the FC device number into the device number field of the FC protocol data frame carrying the Ethernet protocol data, encapsulating to obtain an FC protocol frame data packet, and sending the FC protocol frame data packet to the Ethernet message queue.
[0025] The method of the present invention can be used in the field of data communication, and is particularly suitable for the field of aviation airborne networks, and has the following advantages:
[0026] 1. Without changing the traditional FC network hardware equipment, it can support the mixed transmission of Ethernet service data and FC service data on the FC network, and realize the ability to simultaneously deploy Ethernet service applications and FC service applications on the traditional FC network;
[0027] 2. Construct two communication channels based on the standard Ethernet Socket API function interface and the system-defined I octl function interface for the two types of business data;
[0028] 3. While supporting Ethernet service transmission, it is also compatible with the interconnection with traditional FC network equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. 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 paying creative work.
[0030] Figure 1 A flow chart of a hybrid transmission method for FC network carrying Ethernet data and FC data disclosed in an embodiment of the present invention;
[0031] Figure 2It is a schematic diagram of transmitting the data to be transmitted to the FC network card through the Ethernet service communication channel and the FC service communication channel according to the embodiment of the present invention;
[0032] Figure 3 The architecture of the Ethernet service communication channel and the FC service communication channel disclosed in the embodiment of the present invention;
[0033] Figure 4 The invention discloses a sending and receiving implementation process of hybrid transmission of Ethernet data and FC data using an FC network. DETAILED DESCRIPTION
[0034] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0035] The following describes the implementation methods of the present application through specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the content 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 implementation methods, 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 the following embodiments and the features of the embodiments can be combined with each other in the absence of conflict. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.
[0036] The embodiment of the present invention discloses a hybrid transmission method for carrying Ethernet data and FC data on an FC network. The method is used to realize the simultaneous transmission of Ethernet service data and FC service data in a traditional FC network. The underlying physical link is constructed by an FC network device, and the upper layer application receives and sends different service data by calling the Ethernet standard Socket API interface and a custom I oct l interface. Among them, the Ethernet service data passes through the Socket API interface, is processed by the Ethernet protocol stack, and then the FC network card device drives the FC network card to receive and send data. The FC service data passes through the I oct l interface, is not processed by the Ethernet protocol, and directly calls the FC network card driver to complete the data reception and transmission by the FC network card. Specifically, see Figure 1 and Figure 2 As shown, the method comprises the following steps:
[0037] S1. Construct an Ethernet service communication channel and an FC service communication channel at the FC network node end respectively;
[0038] S2, parsing the data to be transmitted to obtain a data type identifier, and outputting the data to be transmitted to the Ethernet service communication channel or the FC service communication channel according to the data type identifier;
[0039] S3, encapsulating the data to be transmitted in the Ethernet service communication channel into FC protocol frame data packets, and outputting them to the Ethernet message queue of the network driver function layer of the FC network card device; directly outputting the data to be transmitted in the FC service communication channel to the FC message queue of the network driver function layer of the FC network card device;
[0040] S4, extracting data from the Ethernet message queue or the FC message queue according to the data scheduling instruction, framing the data according to the FC protocol, and transmitting the data to the FC switch through the FC network card, and routing and forwarding the data through the FC switch. The data scheduling instruction can be issued by the scheduler.
[0041] It should be noted that after the data is output through the FC switch, it is also placed in the Ethernet message queue or FC message queue of the message receiving end, and after the message is processed respectively, it is output to the user at the destination end (ie, the application end).
[0042] Further, in step S1, see Figure 3 As shown, an Ethernet service communication channel and an FC service communication channel are respectively constructed on the FC network node side, including:
[0043] S11, connecting one end of the standard Ethernet socket API function interface to the application end, and the other end to the Ethernet protocol stack, and connecting the network driver adaptation layer to the output end of the Ethernet protocol stack;
[0044] S12, establishing a custom I octl function interface, connecting one end of the custom I octl function interface to the application end, and connecting the other end to an IO device;
[0045] S13, connecting the network driver adaptation layer and the IO device to the FC network card device network driver function layer respectively, and completing the construction of the Ethernet service communication channel and the FC service communication channel.
[0046] The flow process of Ethernet data and FC data in the two channels is as follows: in the Ethernet service communication channel, the standard Ethernet socket API function interface is used, and the application calls the socket API function interface to transmit Ethernet service data. The Ethernet service data passes through the socket API function interface, is processed by the Ethernet protocol stack and encapsulated into an Ethernet data packet, and enters the network driver adaptation layer. In the FC service communication channel, the application calls the I oct l function interface through the custom I oct l function interface to transmit FC service data, and the I oct l function interface is connected to the IO device.
[0047] Further, in step S2, the data to be transmitted is parsed to obtain a data type identifier, and the data to be transmitted is output to the Ethernet service communication channel or the FC service communication channel according to the data type identifier, including:
[0048] S21, parsing the data to be transmitted output by the application end to obtain a data type identifier, and determining the type of the data type identifier;
[0049] S22, when the type of the data type identifier is an Ethernet type, calling the Ethernet socket API function interface of the Ethernet service communication channel to output the data to be transmitted to the Ethernet service communication channel;
[0050] S23: When the type of the data type identifier is the FC type, calling the custom ioctl function interface of the FC service communication channel to output the data to be transmitted to the FC service communication channel.
[0051] Furthermore, in step S3, the data to be transmitted in the Ethernet service communication channel is encapsulated into an FC protocol frame data packet and output to the Ethernet message queue of the network driver function layer of the FC network card device, including:
[0052] S31. In the Ethernet service communication channel, unpack and encapsulate the data to be transmitted into at least one Ethernet protocol data packet through the Ethernet protocol stack;
[0053] S32. Encapsulate the Ethernet protocol data packet into an FC protocol frame data packet through the network adaptation layer, and send the FC protocol frame data packet to the Ethernet message queue.
[0054] Furthermore, in step S31, in the Ethernet service communication channel, the data to be transmitted is unpacked and encapsulated into at least one Ethernet protocol data packet through the Ethernet protocol stack, including:
[0055] S311, obtaining a maximum payload of a FC protocol data frame, and setting an MTU value of an Ethernet protocol stack according to the maximum payload;
[0056] S312. Split the data to be transmitted into at least one Ethernet data segment according to the MTU value, encapsulate each Ethernet data segment into an Ethernet protocol data packet, and output the Ethernet protocol data packet to the network adaptation layer.
[0057] In an optional embodiment of the present invention, the method further includes calculating the MTU value, and the specific method includes: obtaining the maximum payload of the FC protocol data frame in the FC network, calculating the header length of the Ethernet data; calculating the difference between the maximum payload and the header length, and using the difference as the MTU value of the Ethernet protocol stack.
[0058] Furthermore, in step S32, encapsulating the Ethernet protocol data packet into an FC protocol frame data packet through the network adaptation layer, and sending the FC protocol frame data packet to the Ethernet message queue includes:
[0059] S321, in the FC protocol frame data packet, putting each of the Ethernet protocol data packets into a valid data payload section of one of the FC protocol data frames;
[0060] S322, extracting the IP address of the data to be transmitted, obtaining the FC device number corresponding to the IP address according to the constructed transmission route, filling the FC device number into the device number field of the FC protocol data frame carrying the Ethernet protocol data, encapsulating to obtain an FC protocol frame data packet, and sending the FC protocol frame data packet to the Ethernet message queue.
[0061] In an optional embodiment of the present invention, the method further includes establishing a transmission route, and the transmission route establishment process includes:
[0062] Configure a unique device number for each FC network card and assign at least one IP address. Establish a corresponding relationship between each FC device number and IP address to obtain a mapping relationship table T. ID ; and establish a corresponding relationship between each of the FC device numbers and the FC switch ports to obtain a mapping relationship table T DP ; The mapping relationship table T DP and the mapping relationship table T ID Broadcast to the entire network to complete the construction of the transmission route.
[0063] When the method of the present invention is implemented, the main implementation process of data transmission and reception in the mixed transmission method of Ethernet service and FC service of FC network is as follows: Figure 4 As shown. Among them, the main process of data transmission is as follows:
[0064] (1) The application side selects different communication channels according to the data type. Ethernet service data is input into the Ethernet service communication channel through the Ethernet Socket API interface, and FC service data is input into the FC service communication channel through the customized I octl interface.
[0065] (2) Ethernet service data is sent through the Socket API interface. The message data is processed by the Ethernet protocol stack and encapsulated into an Ethernet data packet, which is then encapsulated into an FC protocol frame data packet that can be recognized by the FC network and placed in the Ethernet service data sending queue. FC service data is sent through the I oct l interface. The message data is not processed by the Ethernet protocol stack and is directly placed in the FC service data sending queue.
[0066] (3) The FC network card device network driver sends a scheduling instruction to obtain data from the sending queue, completes the FC protocol stack framing, and drives the transmission-end FC network card to send it through the switch.
[0067] Among them, the main process of data reception is as follows:
[0068] (1) The receiving FC network card will place the data received from the switch into different receiving buffers according to the type of service data;
[0069] (2) If the received data is Ethernet service data, the data in the Ethernet data receiving buffer is submitted to the Ethernet protocol stack for unpacking and reassembly to restore the original data, and the upper-layer application receives it through the Ethernet Socket API message receiving interface; if it is FC service data, the upper-layer application obtains the data from the corresponding buffer through the I octl interface, and the data does not pass through the Ethernet protocol stack.
[0070] The method of the present invention can be used in the field of data communication, and is particularly suitable for the field of aviation airborne networks, and has the following advantages:
[0071] 1. Without changing the traditional FC network hardware equipment, it can support the mixed transmission of Ethernet service data and FC service data on the FC network, and realize the ability to simultaneously deploy Ethernet service applications and FC service applications on the traditional FC network;
[0072] 2. Construct two communication channels based on the standard Ethernet Socket API function interface and the system-defined I octl function interface for the two types of business data;
[0073] 3. While supporting Ethernet service transmission, it is also compatible with the interconnection with traditional FC network equipment.
[0074] It should be understood by those skilled in the art that the various steps of the above-mentioned embodiments of the present invention can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made 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.
[0075] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A hybrid transmission method for carrying Ethernet data and FC data on an FC network, characterized in that: include: On the FC network node side, Ethernet service communication channels and FC service communication channels are respectively constructed; Analyze the data to be transmitted to obtain a data type identifier, and output the data to be transmitted to the Ethernet service communication channel or the FC service communication channel according to the data type identifier; Encapsulating the data to be transmitted in the Ethernet service communication channel into FC protocol frame data packets, and outputting them to the Ethernet message queue of the network driver function layer of the FC network card device; Outputting the data to be transmitted in the FC service communication channel directly to the FC message queue of the network driver function layer of the FC network card device; Data is extracted from the Ethernet message queue or the FC message queue according to the data scheduling instruction, and after FC protocol framing, the data is transmitted to the FC switch through the FC network card, and routed and forwarded through the FC switch.
2. The hybrid transmission method of Ethernet data and FC data carried by FC network according to claim 1, characterized in that: On the FC network node side, Ethernet service communication channels and FC service communication channels are constructed separately, including: Connect one end of the standard Ethernet socket API function interface to the application end, and the other end to the Ethernet protocol stack, and connect the network driver adaptation layer to the output end of the Ethernet protocol stack; Establish a custom Ioctl function interface, connect one end of the custom Ioctl function interface to the application end, and connect the other end to the IO device; The network driver adaptation layer and the IO device are respectively connected to the FC network card device network driver function layer to complete the construction of the Ethernet service communication channel and the FC service communication channel.
3. The hybrid transmission method of Ethernet data and FC data carried by FC network according to claim 2, characterized in that: Parsing the data to be transmitted to obtain a data type identifier, and outputting the data to be transmitted to the Ethernet service communication channel or the FC service communication channel according to the data type identifier, including: Parsing the data to be transmitted output by the application end to obtain a data type identifier, and determining the type of the data type identifier; When the type of the data type identifier is an Ethernet type, calling the Ethernet socket API function interface of the Ethernet service communication channel to output the data to be transmitted to the Ethernet service communication channel; When the type of the data type identifier is the FC type, the custom ioctl function interface of the FC service communication channel is called to output the data to be transmitted to the FC service communication channel.
4. The hybrid transmission method of Ethernet data and FC data carried by FC network according to claim 2, characterized in that: Encapsulating the data to be transmitted in the Ethernet service communication channel into FC protocol frame data packets and outputting them to the Ethernet message queue of the network driver function layer of the FC network card device includes: In the Ethernet service communication channel, unpacking and encapsulating the data to be transmitted into at least one Ethernet protocol data packet through the Ethernet protocol stack; The Ethernet protocol data packet is encapsulated into an FC protocol frame data packet through the network adaptation layer, and the FC protocol frame data packet is sent to the Ethernet message queue.
5. The hybrid transmission method of Ethernet data and FC data carried by FC network according to claim 4, characterized in that: In the Ethernet service communication channel, unpacking and encapsulating the data to be transmitted into at least one Ethernet protocol data packet through the Ethernet protocol stack, including: 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; The data to be transmitted is split into at least one Ethernet data segment according to the MTU value, each Ethernet data segment is encapsulated into an Ethernet protocol data packet, and the Ethernet protocol data packet is output to the network adaptation layer.
6. The hybrid transmission method of Ethernet data and FC data carried by FC network according to claim 5, characterized in that: Encapsulating the Ethernet protocol data packet into an FC protocol frame data packet through the network adaptation layer, and sending the FC protocol frame data packet to the Ethernet message queue, including: In the FC protocol frame data packet, each of the Ethernet protocol data packets is placed in a valid data payload section of the FC protocol data frame; Extract the IP address of the data to be transmitted, obtain the FC device number corresponding to the IP address according to the constructed transmission route, fill the FC device number into the device number field of the FC protocol data frame carrying the Ethernet protocol data, encapsulate to obtain an FC protocol frame data packet, and send the FC protocol frame data packet to the Ethernet message queue.