Method for bearing Ethernet protocol data and constructing dynamic transmission route in FC network
By configuring the device number and IP address of the FC network and building dynamic transmission routes, the problem that the FC network cannot bear Ethernet application service data is solved, and the efficient transmission of the FC network carries Ethernet data is realized, meeting the future application needs of aviation airborne networks.
Patent Information
- Application Number
- CN202411810239.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-10
AI Technical Summary
The existing FC network cannot carry Ethernet application service data, and it is difficult to meet the application needs of future open, digital, system collaboration, and highly shared resources.
By obtaining the maximum payload of the FC protocol data frame, setting the MTU value of the Ethernet protocol stack, and configuring a unique device number and IP address for each FC network card to build a dynamic transmission route to realize the transmission of Ethernet protocol data packets in the FC network.
Without modifying the Ethernet protocol and FC protocol, the FC network can carry Ethernet data, improve network transmission efficiency and bandwidth, support common Ethernet application protocols, and realize the dynamic construction of Ethernet and FC network routing.
Smart Images

Figure CN119728525A_ABST
Abstract
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, and specifically to a method for FC networks to carry Ethernet protocol data and construct dynamic transmission routes, through which the FC network can carry Ethernet application service data. Background Art
[0002] The future avionics system has put forward the requirements of open and flexible network construction, higher bandwidth and better service quality for airborne networks. Heterogeneous converged computing, containers, virtualization, high security and many other technologies of Ethernet application services are also being promoted and applied in the airborne field. FC network is mature in aviation airborne networks, with a wide range of applications and stable performance. It is difficult to completely replace FC network with Ethernet to realize the application of Ethernet application services on airborne networks in a short period of time. However, the traditional FC network cannot carry Ethernet application services at present, making it difficult to meet the application requirements of future open, digital, system-coordinated and highly resource-sharing 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 comprising 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 in the entire network, and build a dynamic transmission route according to 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, encapsulating the Ethernet protocol data packet into a valid data payload segment of an FC protocol data frame, 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;
[0009] S5. 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 is 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] Further, in step S1, the maximum payload of the FC protocol data frame is obtained, and the MTU value of the Ethernet protocol stack is set according to the maximum payload, including:
[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 according to the FC switch port number and the device number and IP address of the FC network card, including:
[0014] S21, configuring a network-wide unique device number for each FC network card and allocating at least one IP address, that is, configuring a network-wide unique device number for the FC network card and allocating at least one IP address (each IP address is different and has no duplication 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 a 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 Make 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 in 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 to the FC switch via the source-end FC network card, and is 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 it 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, outputting 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, extracting the Ethernet protocol data packet from the source-end FC protocol frame data packet received by the destination-end FC network card, outputting the Ethernet protocol data packet to the destination-end Ethernet protocol stack, unpacking the Ethernet protocol data packet in the destination-end Ethernet protocol stack to obtain source-end application data, and caching the source-end application data.
[0027] Furthermore, step S5 also includes:
[0028] S54: When the 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 application data in the destination Ethernet protocol stack.
[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 the FC network, there is no need to modify the Ethernet protocol and the FC protocol. The upper-layer application sends and receives 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 according to the maximum effective data load of the FC protocol frame, fill the FC protocol frame effective data load to the maximum, reduce the number of data fragmentation and reassembly times of the Ethernet protocol stack, and improve network transmission efficiency and bandwidth.
[0033] 3. The splitting and reassembly of Ethernet data are completed in the Ethernet protocol stack, and data fragmentation and reassembly are no longer performed in the FC protocol processing.
[0034] 4. Ethernet protocol data is encapsulated into FC protocol frames between the Ethernet protocol stack and the FC network card. The upper-layer Ethernet application does 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. The conversion between FC protocol and Ethernet protocol is realized 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 by routing based on IP addresses and port numbers into FC protocol frames forwarded by routing 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 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.
[0039] Figure 1 A flow chart of a method for carrying Ethernet protocol data on an FC network and building a dynamic transmission route disclosed in an embodiment of the present invention;
[0040] Figure 2The protocol architecture of the transmission method of Ethernet protocol data carried by FC network disclosed in the embodiment of the present invention;
[0041] Figure 3 The protocol layering of the transmission method of Ethernet protocol data carried by FC network disclosed in the embodiment of the present invention;
[0042] Figure 4 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 operation process of constructing a dynamic transmission route disclosed in the embodiment of the present invention;
[0044] Figure 6 The data sending and receiving process of the transmission method of Ethernet data carried by the FC network disclosed in the embodiment of the present invention;
[0045] Figure 7 It is a structural diagram of the 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 implementation methods of the present application through specific 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 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 features of the embodiments can be combined with each other without 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.
[0048] The embodiment of the present invention discloses a method for carrying Ethernet protocol data on an FC network and constructing a dynamic transmission route. The method fills Ethernet data into an FC protocol data frame, 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 completes the dynamic construction of the routing relationship between the 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 comprises 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 in the entire network, and build a dynamic transmission route according to 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, encapsulating the Ethernet protocol data packet into a valid data payload segment of an FC protocol data frame, 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;
[0053] S5. 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 is 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 of using FC network to carry Ethernet data includes the link layer of FC network (defining physical connection characteristics), transport layer (defining encoding and decoding rules, the status of port receivers and transmitters, and error control), and the network layer, transport layer and application layer of Ethernet, which are divided into 5 layers in total. The bottom physical link is composed of traditional FC network physical devices, and the conversion between Ethernet protocol data and FC protocol frame data is performed between the driver layer and the system network protocol stack layer. The upper layer application uses the standard Ethernet Socket API interface to send and receive data.
[0055] Further, in step S1, the maximum payload of the FC protocol data frame is obtained, and the MTU value of the Ethernet protocol stack is set according to the maximum payload, including:
[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 specific implementation, the FC protocol frame includes a delimiter, an FC frame header (including routing control fields, sequence identifiers, device numbers, etc.), an ASM header, a checksum CRC, and a valid data payload segment. In order to maximize the filling of the FC protocol frame valid data payload and reduce the number of data fragmentation and reassembly times by the protocol stack, the Ethernet default MTU value should be optimized. The Ethernet MTU value is the length of the IP data packet, including the IP header, TCP / UDP header, and IP data packet Payload length. The IP data packet plus the 18B Ethernet header (including the source 6B MAC address, the destination 6B MAC address, the 2B type field, and the 4B checksum) constitute a complete Ethernet data packet.
[0059] The optimized MTU value is the maximum effective data load of the FC protocol frame minus the length of the Ethernet header. Compared with the Ethernet standard MTU value, the optimized MTU value can significantly increase the proportion of the maximum effective data load of the FC protocol frame. The optimized MTU value can reduce the number of data fragmentation and reassembly times of the protocol stack, and improve the protocol processing efficiency.
[0060] At the same time, the Ethernet data fragmentation and reassembly are completed by the Ethernet protocol stack of the operating system, and there is no need to perform data fragmentation and reassembly at the FC protocol layer. The operating system can be an embedded operating system or a desktop operating system, with an Ethernet protocol stack and support Ethernet protocol processing.
[0061] Furthermore, in the specific implementation of step S3, the application calls the standard Ethernet socket API interface to receive and send 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 by the effective data payload segment of the FC protocol frame. The Ethernet protocol data packet (including MAC address, IP header, UDP / TCP header, Payload data, checksum, etc.) processed by the Ethernet protocol stack is encapsulated into the effective data payload Payload field in the FC protocol frame, and the FC protocol frame structure does not change.
[0062] In specific implementation, the Ethernet protocol stack performs data fragmentation operations based on the set MTU value. The transmission method of Ethernet protocol data carried by the FC network encapsulates the Ethernet protocol data in the effective data payload segment of the FC protocol frame. In order to maximize the use of the effective data payload of the FC protocol frame, the length of the Ethernet data packet to be encapsulated is equal to the MTU value plus the Ethernet header length. At this time, the data does not need to be fragmented and can fill the effective data payload of the FC protocol frame to the maximum extent.
[0063] Further, when step S4 is implemented, see Figure 4 As shown, the destination IP address of the data is parsed, and unicast, multicast, and broadcast are identified.ID , find the FC device number corresponding to the resolved destination IP address, convert the destination address, and fill the destination device number (DID) field (i.e. the corresponding FC device number) in the FC protocol frame, thereby realizing the unicast, multicast, and broadcast transmission of the FC network. Unicast: sent to one device in the network; multicast: sent to multiple devices in the network; broadcast: sent to all devices in 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] Unicast: specify a destination IP address and look up 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 Class D address identification and searches the mapping table T according to the packet address. ID Get the destination device number to be sent, and fill the multicast destination device number field in the FC protocol frame. When broadcasting: send messages to all nodes in the network, the host part of the IP address is the decimal number 255 or the binary number 11111111. At this time, set the destination device number field of the FC protocol frame to 0xFFFF (indicating broadcast).
[0066] When transmitting data through a switch, when the destination device number is unicast, the switch forwards the data from the corresponding port number; when the destination device number is multicast, the switch forwards the data from the corresponding ports according to the multicast destination device number; when 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 according to the FC switch port number and the device number and IP address of the FC network card, including:
[0068] S21, configuring a network-wide unique device number for each FC network card and allocating at least one IP address, that is, configuring a network-wide unique device number for the FC network card and allocating at least one IP address (each IP address is different and has no duplication 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 a 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 realize the dynamic construction of the network topology structure, and the mapping table T DP Maintain the network topology. At the same time, establish the mapping table T ID , complete the conversion from Ethernet IP routing to FC network routing. DP and T ID The establishment, update and maintenance of the FC network realizes the dynamic construction of Ethernet data transmission routes. Specifically, it includes the following processes:
[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, allowing 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 each 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 can be made to the physical device to connect to the switch, thus completing the dynamic construction of the underlying physical link.
[0080] The upper layer application calls the Ethernet standard Socket API interface to complete the data transmission and reception. The upper layer application sends data according to the IP address and port number, while the lower layer physical network forwards data according to the FC network card device number and the switch port number. Establish a mapping table between Ethernet IP address and FC network card device number ID , complete the mapping conversion from Ethernet routing to FC network routing, which includes 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 The switch performs dynamic maintenance through the mapping table T ID Dynamic updates are implemented to dynamically establish the routing relationship between Ethernet and FC networks. The dynamic construction of FC networks and Ethernet routes is implemented, so that upper-layer applications can complete the transmission of Ethernet data on FC networks based on standard Ethernet Socket API interfaces without paying attention to the construction of underlying FC physical links, thus decoupling 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 in 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. 1 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 to the FC switch via the source-end FC network card, and is 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 it 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, outputting 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, extracting the Ethernet protocol data packet from the source-end FC protocol frame data packet received by the destination-end FC network card, outputting the Ethernet protocol data packet to the destination-end Ethernet protocol stack, unpacking the Ethernet protocol data packet in the destination-end Ethernet protocol stack to obtain source-end application data, and caching the source-end application data.
[0091] Furthermore, step S5 also includes:
[0092] S54: When the 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 application data in the destination Ethernet protocol stack.
[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 the FC network, there is no need to modify the Ethernet protocol and the FC protocol. The upper-layer application sends and receives 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 according to the maximum effective data load of the FC protocol frame, fill the FC protocol frame effective data load to the maximum, reduce the number of data fragmentation and reassembly times of the Ethernet protocol stack, and improve network transmission efficiency and bandwidth.
[0097] 3. The splitting and reassembly of Ethernet data are completed in the Ethernet protocol stack, and data fragmentation and reassembly are no longer performed in the FC protocol processing.
[0098] 4. Ethernet protocol data is encapsulated into FC protocol frames between the Ethernet protocol stack and the FC network card. The upper-layer Ethernet application does 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. The conversion between FC protocol and Ethernet protocol is realized 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 by routing based on IP addresses and port numbers into FC protocol frames forwarded by routing 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 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, and 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 from that 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.
[0103] 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 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, 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; 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 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 it 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, including: Get 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 effective load 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 a dynamic transmission route 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, and a dynamic transmission route is constructed according to the FC switch port number and the device number and IP address of the FC network card, including: Each FC network card is configured with a unique device number in the entire network and is assigned at least one IP address, and a corresponding relationship between each device number and IP address is established to obtain a mapping relationship table T ID ; Establish the corresponding relationship between each device number and the 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 Make 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, 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 a dynamic transmission route according to claim 5, characterized in that: 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 is 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 it 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; Outputting 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 the 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 application data in the destination Ethernet protocol stack.
8. The method for carrying Ethernet protocol data on an FC network and constructing a dynamic transmission route 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.
Citation Information
Patent Citations
Method for transmitting IP and CAN services on FC network
CN107483370A
Optical fiber network communication system, method and device
CN113259006A
Hybrid protocol switching network routing implementation method and device and network switching equipment
CN114222209A
Airborne FC network terminal node dynamic access method
CN117614919A
Cited By
Network convergence device
CN120050230A
Data interface conversion implementation method and device
CN120567942A