A data processing method, device, terminal and storage medium
By directly parsing and processing the data packets to be parsed sent by the overlay virtual cluster in the underlay infrastructure layer cluster server, the problems of low communication efficiency and time extension are solved, and efficient data communication and cost reduction are achieved.
Patent Information
- Application Number
- CN202110644262.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-09
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-06-09
AI Technical Summary
In cloud computing virtualization technology, the data communication efficiency between the overlay virtual cluster and the underlay infrastructure layer cluster is low, resulting in extended time and increased investment costs. Existing solutions require new physical devices or gateways, which affects system performance.
The underlay infrastructure layer cluster server receives the unconverted data packets to be parsed sent by the overlay virtual cluster, directly parses them twice, obtains the target data packets, and feeds them back to the overlay without introducing new network equipment. Cover virtual clusters, improve communication efficiency, and reduce latency and investment costs.
The communication efficiency between the overlay virtual cluster and the underlay infrastructure layer cluster is improved, communication delay and investment cost are reduced, and there is no need to modify the overlay virtual network.
Smart Images

Figure CN115460303B
Abstract
Description
Technical Field
[0001] The present application relates to network communication technology, and in particular to a data processing method, device, terminal and storage medium. Background Art
[0002] In cloud computing virtualization technology, overlay virtual network technology is usually used to build overlay virtual clusters. Some clusters directly use physical networks, that is, use the underlay infrastructure layer network to provide services to the outside world, such as object storage clusters, that is, underlay infrastructure layer clusters. When using the overlay virtual cluster to communicate with the underlay infrastructure layer network, the overlay virtual network communicates with the underlay infrastructure layer network through a gateway or network address translation device. In some cases, it is necessary to add a network card to the overlay virtual network. The network card has the address of the underlay infrastructure layer network, so that data packets can directly communicate with the underlay infrastructure layer network through the newly added network card. This data intercommunication method requires the addition of new physical equipment, which increases investment costs and prolongs communication time. Summary of the invention
[0003] The embodiments of the present application provide a data processing method, device, terminal and storage medium, which can improve the communication efficiency between the overlay coverage virtual cluster and the underlay infrastructure layer cluster and reduce the communication delay.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application provides a data processing method, the method comprising:
[0006] Determine the first key information according to the data packet to be parsed sent by the overlay virtual cluster;
[0007] Determine a first data packet according to the first key information, wherein the first data packet is obtained by performing outer layer protocol parsing on the data packet to be parsed;
[0008] Performing inner layer protocol analysis on the first data packet to obtain a second data packet;
[0009] Processing the second data packet to obtain a target data packet;
[0010] Feedback the target data packet to the server of the overlay virtual cluster.
[0011] The present application provides a data processing device, the device comprising:
[0012] A first determination module, configured to determine first key information according to a data packet to be parsed sent by the overlay virtual cluster;
[0013] A second determining module is used to determine a first data packet according to the first key information, wherein the first data packet is obtained by performing outer layer protocol parsing on the data packet to be parsed;
[0014] A parsing module, used for performing inner layer protocol parsing on the first data packet to obtain a second data packet;
[0015] A processing module, used for processing the second data packet to obtain a target data packet;
[0016] The feedback module is used to feed back the target data packet to the server of the overlay virtual cluster.
[0017] An embodiment of the present application provides a terminal, the terminal comprising at least: a controller and a storage medium configured to store executable instructions, wherein:
[0018] The controller is configured to execute stored executable instructions, and the executable instructions are configured to execute the data processing method provided above.
[0019] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. The computer-executable instructions are configured to execute the data processing method provided above.
[0020] The embodiments of the present application provide a data processing method, device, terminal and storage medium, wherein, when an underlay infrastructure layer cluster server receives an unconverted data packet to be parsed sent by a server of an overlay virtual cluster, and when the first key information of the data packet to be parsed does not exist in a preset key information library, the data packet to be parsed is directly parsed twice to obtain a second data packet, the second data packet is processed to obtain a target data packet, and the target data packet is fed back to the server of the overlay virtual cluster through the underlay infrastructure layer cluster server; in this way, there is no need to make changes to the cluster of the overlay virtual network, the underlay infrastructure layer cluster server can directly receive the unconverted data packet to be parsed sent by the server of the overlay virtual cluster, and without introducing new network equipment, the data packet to be parsed is parsed twice to obtain a business data packet corresponding to the data packet to be parsed, i.e., the second data packet, thereby improving the communication efficiency between the overlay virtual cluster and the underlay infrastructure layer cluster, reducing the communication delay, and reducing the investment cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of the implementation flow of the data processing method provided in the embodiment of the present application;
[0022] Figure 2 A schematic diagram of another implementation flow of the data processing method provided in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of the overall architecture of a system for data intercommunication between an overlay virtual cluster and an underlay infrastructure layer cluster provided in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of another implementation flow of the data processing method provided in the embodiment of the present application;
[0025] Figure 5 A schematic diagram of the working principle of the virtual network card provided in the embodiment of the present application;
[0026] Figure 6 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;
[0027] Figure 7 A schematic diagram of the structure of the terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to more thoroughly understand the features and technical contents of the present invention, the implementation of the present invention is described in detail below in conjunction with the accompanying drawings. The attached drawings are only for reference and explanation, and are not used to limit the present invention.
[0029] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below.
[0030] The widespread application of cloud computing virtualization technology has led to the rapid development of network virtualization technology. A virtualized network refers to a computer network built on another network, which is a form of network virtualization. The underlying network that the overlay virtual network relies on is called the underlay infrastructure layer network.
[0031] In data center networks, overlay virtual networks are mostly implemented based on virtual extended LANs, namely "MAC-in-UDP", which encapsulates a Layer 2 network on the Internet Protocol / User Datagram Protocol network to meet the needs of a large Layer 2 network in the data center.
[0032] The data center is usually divided into multiple clusters according to functions or services. Most clusters use network virtualization technology, namely overlay virtual networks, to facilitate the migration of virtual machines. However, some clusters directly use physical networks, namely underlay infrastructure layer networks, to provide external services, such as object storage clusters. When a cluster using an overlay virtual network accesses a cluster using an underlay infrastructure layer network, it is usually necessary to use a gateway to convert overlay virtual network packets and underlay infrastructure layer network packets, which is also called encapsulation and decapsulation. At the same time, since the address spaces of the overlay virtual network and the underlay infrastructure layer network are different, network address translation technology is also required for address translation. Therefore, the current intercommunication between the overlay virtual network and the underlay infrastructure layer network requires gateways, network address translation devices, and forwarding devices.
[0033] When the overlay virtual network communicates with the underlay infrastructure layer network, it is usually possible to add a network card (for example, a physical network card or a virtual network card) in the overlay virtual network. The network card has the address of the underlay infrastructure layer network, so that the data packet can directly communicate with the underlay infrastructure layer network through the newly added network card. However, the solution of adding physical devices increases the investment cost to varying degrees. Alternatively, the overlay virtual network communicates with the underlay infrastructure layer network through a gateway and a network address translation device, and the performance of the gateway device is often lower than that of the forwarding device. When there are a large number of overlay virtual networks and underlay infrastructure layer networks communicating with each other, the performance of the gateway device will affect the performance of the system. Moreover, the more network devices the overlay virtual network and the underlay infrastructure layer network data packets pass through, the greater the corresponding transmission delay will be. In some examples, the underlay infrastructure layer address can also be added for data communication. However, the newly added underlay infrastructure layer addresses add a large number of underlay infrastructure layer addresses, which destroys the existing network isolation. A virtual LAN solution is needed to limit network access. However, due to the limited number of virtual LANs, this solution is no longer feasible when the network scale continues to increase.
[0034] To this end, the following technical solutions of the embodiments of the present application are proposed. In order to have a more detailed understanding of the characteristics and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0035] The present application embodiment provides a data processing method. Figure 1 A schematic diagram of the implementation flow of the data processing method provided in the embodiment of the present application is shown in FIG. Figure 1 As shown, the data processing method comprises the following steps:
[0036] Step S101: determining first key information according to a data packet to be parsed sent by an overlay virtual cluster.
[0037] Here, the overlay virtual cluster refers to a cluster that uses an overlay virtual network (superimposed network). When the data packet to be parsed is accessed by a cluster using an overlay virtual network and a cluster using an underlay infrastructure layer network, that is, when the overlay virtual cluster communicates data with the underlay infrastructure layer cluster, the cluster of the overlay virtual network needs to send the data packet to be parsed to the server of the underlay infrastructure layer cluster. In some feasible implementations, when the overlay virtual cluster sends the data packet to be parsed to the cluster of the underlay infrastructure layer, the virtual machine of the overlay virtual cluster first sends the data packet to be parsed to the forwarding device connecting the overlay virtual cluster and the underlay infrastructure layer cluster, that is, the switch, and then the switch sends the data packet to be parsed to the server of the underlay infrastructure layer cluster. The first key information refers to the information used to distinguish the business data carried in the data packet to be parsed.
[0038] The virtual extended LAN tunnel endpoint device on the overlay virtual cluster server encapsulates the corresponding virtual extended LAN data packet according to the virtual physical address and Internet Protocol address of the underlay infrastructure layer cluster, and adds the virtual extended LAN protocol header and user data packet protocol header as well as the outer Internet Protocol address and physical address header. The virtual extended LAN tunnel endpoint device sends the encapsulated data packet as a data packet to be parsed to the switch through the network card of the server where it is located. Then the switch sends the encapsulated data packet to be parsed to the server of the underlay infrastructure layer cluster through Layer 2 and / or Layer 3 forwarding according to the destination address in the outer Internet Protocol address header of the data packet to be parsed.
[0039] In some embodiments, when a server in an underlay infrastructure layer cluster receives the first data packet, i.e., the first data packet to be parsed, sent by a server in an overlay virtual cluster, during processing of the data packet by the kernel protocol stack, first key information is generated based on the inner five-tuple (source IP, source port, destination IP, destination port, transport layer protocol) information of the data packet, and a key information library is generated based on the obtained key information, and the key information of each data packet to be parsed can be matched with the content in the key information library to update the key information library.
[0040] Step S102: Determine a first data packet according to the first key information.
[0041] Here, the first data packet is obtained by performing outer layer protocol parsing on the data packet to be parsed. The server of the underlay infrastructure layer cluster uses a network card to receive the data packet to be parsed sent by the server of the overlay virtual cluster. The data packet structure to be parsed has an outer data packet and an inner data packet, as well as a virtual extended LAN header connecting the outer data packet and the inner data packet. The outer data packet carries at least an outer physical address header, an outer Internet Protocol address header, and an outer User Datagram Protocol message header. The inner data packet is a virtual extended LAN network identifier, and carries at least the service request data corresponding to the data packet to be parsed.
[0042] After the server of the underlay infrastructure layer cluster receives the data packet to be parsed, the kernel protocol stack is used to parse the data packet layer by layer. In the process of layer by layer parsing, the outer layer protocol is first parsed to obtain the outer layer data in the data packet to be parsed, i.e., the first data packet, and then the inner layer parsing is continued to obtain the inner layer data in the data packet to be parsed, i.e., the second data packet. Here, the outer layer protocol parsing refers to parsing the data packet to be parsed to obtain the user data packet protocol data packet in the outer layer data in the data packet to be parsed, i.e., the first data packet.
[0043] After receiving the first data packet to be parsed sent by the overlay virtual cluster, the kernel protocol stack is used to parse the data packet layer by layer. According to the inner five-tuple information in the first data packet to be parsed, the key information of the data packet is generated and saved to obtain a preset key information library. After receiving the next data packet to be parsed, the data packet to be parsed is parsed layer by layer to obtain the key information of the next data packet, and it is determined in the preset key information library whether there is key information matching the key information. If there is no matching key information, the data packet is parsed with the outer protocol to obtain the first data packet; if there is matching key information, the outer protocol parsing process is skipped and the inner protocol parsing is performed directly to speed up the parsing process of the data packet to be parsed.
[0044] After the outer layer protocol is parsed for the data packet to be parsed, a first data packet, i.e., a user data packet, is obtained, and the first data packet includes the virtual extended local area network header information. The first data packet is submitted to a user-mode program connected to a virtual network card device set on a server of the underlay infrastructure layer cluster to perform further processing on the first data packet.
[0045] Step S103: performing inner layer protocol analysis on the first data packet to obtain a second data packet.
[0046] Here, the inner layer protocol parsing refers to a parsing process of parsing a user data packet corresponding to the data packet to be parsed to obtain a service data packet in the data packet to be parsed.
[0047] Since the original virtual devices on the servers of the underlay infrastructure layer cluster can only parse and respond to the single-layer data packets obtained after converting the two-layer data packets sent by the overlay virtual cluster servers, they cannot directly respond to the two-layer data packets sent by the overlay virtual cluster servers. Therefore, it is necessary to improve the servers of the underlay infrastructure layer cluster and set up virtual network card devices on the servers of the underlay infrastructure layer cluster. As a virtual network card, the virtual device can exchange data packets obtained by the kernel protocol stack with user-mode programs, and the virtual device can use the kernel protocol stack to perform inner-layer protocol parsing on the first data packet obtained by performing outer-layer protocol parsing on the data to be parsed to obtain the business data in the data to be parsed, that is, the second data packet. Therefore, it is possible to directly parse the two-layer data packets sent by the overlay virtual cluster server twice on the server side of the underlay infrastructure layer cluster to obtain the business data packets carried in the data packets to be parsed.
[0048] The virtual device set on the server of the Underlay infrastructure layer cluster receives the first data packet, and parses the first data packet layer by layer through the kernel protocol stack to obtain the outer source Internet Protocol address, inner source Internet Protocol address and source port information of the first data packet. Then the virtual extended LAN header in the first data packet is mapped with the inner and outer source Internet Protocol addresses and the inner source port to obtain the association relationship between the virtual extended LAN header, the outer data and the inner data.
[0049] The virtual device set on the server of the underlay infrastructure layer cluster uses the kernel protocol stack to perform inner layer protocol analysis on the first data packet, and removes the virtual extended local area network header in the first data packet to obtain a second data packet, i.e., a service request data packet. The second data packet is sent to the application connected to the server of the underlay infrastructure layer cluster through the corresponding interface for processing.
[0050] Step S104: Process the second data packet to obtain a target data packet.
[0051] Here, the application connected to the server of the underlay infrastructure layer cluster receives the second data packet and processes the second data packet to generate a response data packet. The response data packet is sent to the kernel protocol stack through the corresponding interface for layer-by-layer packaging. The response data packet is encapsulated by the kernel protocol stack, and then sent by the virtual device, that is, the virtual network card set on the server of the underlay infrastructure layer cluster, and obtained by the user state program of the virtual device. The user state program parses the inner layer destination Internet Protocol address and destination port in the response data packet, and determines the outer layer destination Internet Protocol address and virtual extended LAN header information according to the association relationship between the virtual extended LAN header, the outer layer data and the inner layer data established during the parsing of the data packet to be parsed. The user state program of the virtual device adds the virtual extended LAN header information to the header of the response data packet message, and sends the response data packet data to the kernel protocol stack for layer-by-layer packaging according to the outer layer destination Internet Protocol address to obtain the target data packet.
[0052] Step S105: Feedback the target data packet to the server of the overlay virtual cluster.
[0053] Here, after the server of the underlay infrastructure layer cluster processes the data packet to be parsed sent by the overlay virtual cluster server and obtains the target data packet, the server of the underlay infrastructure layer cluster needs to feed back the target data packet to the server of the overlay virtual cluster.
[0054] In some achievable implementations, the server of the underlay infrastructure layer cluster first sends the target data packet to the switch connected to the underlay infrastructure layer cluster and the overlay virtual cluster through the physical network card. The switch sends the target data packet to the overlay virtual cluster server. After receiving the target data packet, the overlay virtual cluster server decapsulates the target data packet through the virtual extended LAN tunnel endpoint device, and then forwards it to the virtual machine of the overlay virtual cluster server.
[0055] In an embodiment of the present application, by receiving an unconverted data packet to be parsed sent by a server of an overlay virtual cluster at an underlay infrastructure layer cluster server, and when the first key information of the data packet to be parsed does not exist in a preset key information library, the data packet to be parsed is directly parsed twice to obtain a second data packet, the second data packet is processed to obtain a target data packet, and the target data packet is fed back to the server of the overlay virtual cluster through the underlay infrastructure layer cluster server; in this way, there is no need to make changes to the cluster of the overlay virtual network, the underlay infrastructure layer cluster server can directly receive the unconverted data packet to be parsed sent by the server of the overlay virtual cluster, and without introducing new network equipment, directly parse the data packet to be parsed twice to obtain a business data packet corresponding to the data packet to be parsed, thereby improving the communication efficiency between the virtual cluster and the underlay infrastructure layer cluster, reducing the communication delay, and also reducing the investment cost.
[0056] In some embodiments, after the data packet to be parsed is parsed to obtain the first key information, the first data packet can be obtained by the following steps, that is, step S101 can be implemented by the following steps:
[0057] Step S1011: Determine whether the preset key information database includes the first key information.
[0058] The underlay infrastructure layer cluster server receives the first data packet to be parsed sent by the overlay virtual cluster server. During the protocol parsing of the data packet, the first key information can be generated based on the inner five-tuple (source IP, source port, destination IP, destination port, transport layer protocol) information of the data. Based on the obtained key information, a preset key information library is generated, and the key information of each received data packet to be parsed can be matched with the content in the key information library to update the preset key information library.
[0059] Step S102: When the preset key information library does not include the first key information, perform outer layer protocol parsing on the data packet to be parsed to obtain a first data packet.
[0060] Here, after receiving the data packet to be parsed, the data packet to be parsed is parsed layer by layer to obtain the key information of the data packet, and it is determined whether there is key information matching the key information in the preset key information library. When there is no matching key information, the data packet is parsed at the outer layer protocol to obtain the first data packet; when there is matching key information, the outer layer protocol parsing process is skipped and the inner layer protocol parsing is performed directly to speed up the parsing process of the data packet to be parsed.
[0061] After the outer layer protocol is parsed for the data packet to be parsed, a first data packet, i.e., a user data packet, is obtained, and the first data packet includes the virtual extended local area network header information. The first data packet is submitted to a user state program connected to a virtual network card device set on a server of the infrastructure layer cluster to perform further processing on the first data packet.
[0062] In some embodiments, when the preset key information library contains the first key information, the inner layer protocol is parsed on the data packet to be parsed to obtain the second data packet.
[0063] Here, when the overlay virtual cluster communicates data with the underlay infrastructure layer cluster, the data packets in the same data stream have the same data packet structure, and the outer Internet Protocol addresses of the data packets are the same. The difference is the inner Internet Protocol address carried in each data packet, and the key information of the data packet is related to the inner Internet Protocol address. Therefore, when the first key information is included in the preset key information library, there is no need to perform outer layer protocol parsing on the data packet to be parsed. The outer layer protocol parsing process of the data packet to be parsed is directly skipped, and the data packet is directly offset to the starting position of the inner layer protocol stack, and the inner layer protocol parsing is performed on the data packet to be parsed to obtain the second data packet.
[0064] In this way, when there is key information matching the data packet to be parsed in the preset key information library, the outer layer protocol parsing process is skipped and the inner layer protocol parsing is performed directly, which speeds up the parsing process of the data packet to be parsed and improves data communication efficiency.
[0065] In some embodiments, step S102 may be implemented by the following steps to determine the first key information of the data packet:
[0066] Step 1: Use the kernel protocol stack to parse the data packet to be parsed layer by layer to obtain the five-tuple information of the data packet to be parsed.
[0067] Here, the protocol stack refers to the sum of protocols at all layers in the network, which vividly reflects the process of file transfer in a network, from upper layer protocols to lower layer protocols, and then from lower layer protocols to upper layer protocols. The five-tuple information refers to the source Internet Protocol address, source port, destination Internet Protocol address, destination port and transport layer protocol carried in the data packet. In the process of data communication, a connection between the two communicating parties is identified by the five-tuple information, and different communication sessions can be distinguished by the five-tuple information carried in the data packet. In the process of layer-by-layer parsing of the data packet to be parsed, the kernel protocol stack can be used to remove the message headers of the protocols at each layer carried in the data packet to obtain the data information in the data packet.
[0068] Step 2: Generate the first key information based on the quintuple information.
[0069] Here, the first key information can be generated according to the source Internet Protocol address, the source port, the destination Internet Protocol address, the destination port and the transport layer protocol. The first key information is related to the inner layer data in the data packet to be parsed.
[0070] In this way, the kernel protocol stack can be used to parse the data packet layer by layer to obtain the quintuple information of the data packet to be parsed, and the first key information can be determined based on the quintuple information, so that the parsing process can be determined based on the first key information.
[0071] In some embodiments, after determining the first key information of the data packet, the preset key information library may also be updated by the following method:
[0072] In the case that the first key information is not included in the preset key information library, the first key information is stored in the preset key information library to obtain an updated key information library.
[0073] Here, when the preset key information database does not include the first key information, the first key information is stored in the preset key information database, and the key information database is updated.
[0074] In this way, the content of the preset key information database can be improved. When subsequent data packets are received, the process of parsing the data to be parsed can be accelerated according to the content in the updated database, thereby improving communication efficiency.
[0075] The present application embodiment provides a data processing method. Figure 2 Another implementation flow diagram of the data processing method provided in the embodiment of the present application is as follows: Figure 2 As shown, step S104 can be implemented by the following steps to determine the target data packet:
[0076] Step S201: using the application of the underlay infrastructure layer cluster server to respond to the second data packet and obtain a response data packet.
[0077] Here, the application program refers to a program connected to the underlay infrastructure layer cluster server, which can respond to the service request information in the second data packet and obtain a response data packet after the processing is completed.
[0078] Step S202: Encapsulate the response data packet using a kernel protocol stack to obtain an encapsulated data packet.
[0079] Here, after the application connected to the cluster server of the underlay infrastructure layer responds to the service request carried in the data packet to be parsed, the obtained response data packet needs to be encapsulated to feed back the obtained encapsulated data packet to the server of the overlay virtual cluster.
[0080] Step S203: using a virtual network card to parse the encapsulated data packet to obtain inner data information of the response data packet.
[0081] Here, the virtual network card is a virtual device set up on the underlay infrastructure layer cluster server. The user state program of the virtual network card can parse the encapsulated data packet and obtain the inner layer data information such as the inner layer destination Internet Protocol address and destination port of the encapsulated data packet.
[0082] Step S204: Based on a preset mapping relationship, determine the outer data information and connection header information corresponding to the inner data information of the response data packet.
[0083] Here, the connection header information is information connecting the first data packet and the second data packet, that is, the connection header information is information connecting the inner layer data and the outer layer data, and the connection header information is a virtual extended local area network header. The preset mapping relationship refers to the association relationship between the virtual extended local area network header, the outer layer data information and the inner layer data information established in the process of parsing the data packet to be parsed. After obtaining the inner layer data information of the encapsulated data packet, the outer layer destination Internet Protocol address and the virtual extended local area network header information saved in the previous process of parsing the data packet to be parsed can be searched according to the preset mapping relationship to determine the outer layer data information and the connection header information corresponding to the inner layer data information of the encapsulated data packet.
[0084] Step S205: based on the outer data information of the response data packet, encapsulate the encapsulated data to obtain the target data packet.
[0085] Here, the user-mode program of the virtual network card adds the connection header information to the header of the data packet message of the encapsulated data packet, and sends the encapsulated data packet to the kernel protocol stack based on the outer data information, i.e., the outer destination Internet Protocol address, and uses the kernel protocol stack to encapsulate the encapsulated data packet layer by layer to obtain the target data packet.
[0086] In this way, after the underlay infrastructure layer cluster server responds to the data packet to be parsed, the underlay infrastructure layer cluster server can directly encapsulate and process the generated response data packet without the need for external equipment or address modification, and can obtain the target data packet that needs to be fed back to the overlay virtual cluster, thereby improving data communication efficiency and reducing data communication latency.
[0087] In some embodiments, before determining the outer layer data information and the connection header information corresponding to the inner layer data information of the response data packet based on the preset mapping relationship, it is necessary to establish the preset mapping relationship through the following steps:
[0088] Step 1: Obtain the outer data information and the connection header information corresponding to the first data packet.
[0089] Here, the data packet structure to be parsed has an outer data packet and an inner data packet, and a connection header connecting the outer data packet and the inner data packet, that is, a virtual extended LAN header. The outer data packet carries at least an outer physical address header, an outer Internet Protocol address header, and an outer User Datagram Protocol message header. The outer data information is the information carried in the outer data packet. When the user state program of the virtual network card uses the kernel protocol stack to parse the data packet to be parsed layer by layer, the outer data information corresponding to the first data packet, that is, the outer source Internet Protocol address and the connection header information carried by the first data packet can be obtained from the kernel of the server.
[0090] Step 2: Determine the inner data information corresponding to the first data packet.
[0091] Here, the data packet structure to be parsed has an inner data packet, which is a virtual extended local area network network identifier and carries at least service request data corresponding to the data packet to be parsed. The inner data information refers to data information corresponding to the inner data packet. In the process of parsing the first data packet to be parsed layer by layer, the user state program of the virtual network card can directly obtain the inner data information corresponding to the first data packet.
[0092] Step three: Establish an association relationship between the outer data information, inner data information and connection header information corresponding to the first data packet to obtain the preset mapping relationship.
[0093] Here, the connection header information is the information connecting the outer data packet and the inner data packet corresponding to the data packet to be parsed. In the process of parsing the data packet to be parsed to obtain the second data packet, i.e., the business data packet, the connection header information carried by the first data packet needs to be removed to obtain the second data packet. The application of the cluster server at the underlay infrastructure layer responds to the data packet to be parsed. After obtaining the response data packet, the target data packet obtained by processing the response data packet needs to be fed back to the overlay virtual cluster server. In the process of processing the response data packet to obtain the target data packet, the outer data information, inner data information and connection header information corresponding to the response data packet need to be encapsulated in the target data packet to obtain a data packet in the virtual extended LAN transmission format. At this time, it is necessary to determine the corresponding outer data information and connection header information according to the inner data information and mapping relationship in the response data packet. Therefore, in the process of parsing the data packet to be parsed layer by layer to obtain the second data packet, the association relationship between the outer data information, inner data information and connection header information corresponding to the first data packet is established to obtain a preset mapping relationship.
[0094] In this way, in the process of parsing the first data packet corresponding to the data packet to be parsed layer by layer to obtain the second data packet, i.e., the business data packet, a preset mapping relationship between the outer data information, the inner data information and the connection header information corresponding to the first data packet can be established, so that after the underlay infrastructure layer cluster server responds to the second data packet, in the process of encapsulating the response data packet, the target data packet can be obtained according to the above preset mapping relationship, thereby realizing double encapsulation of the data packet at the underlay infrastructure layer cluster end to obtain the target data packet sent to the overlay coverage virtual cluster, reducing communication delay, improving communication efficiency, and reducing communication costs.
[0095] In some embodiments, step S103 may be implemented by the following steps to determine the second data packet:
[0096] Through the virtual network card, the kernel protocol stack is used to perform inner layer protocol analysis on the first data packet to obtain the second data packet.
[0097] Here, the virtual network card refers to a virtual device set up on the server of the underlay infrastructure layer cluster, and the virtual device is used as a virtual network card. The data packet obtained by the kernel protocol stack can be exchanged with the user-mode program, and the kernel protocol stack can be used to continue to perform inner-layer protocol parsing on the first data packet to obtain the business data in the data to be parsed, namely the second data packet.
[0098] In this way, by setting up a virtual network card on the server of the underlay infrastructure layer cluster, there is no need to add a new network device between the underlay infrastructure layer cluster and the overlay virtual cluster. The virtual network card of the server of the underlay infrastructure layer cluster and the kernel protocol stack are used to perform secondary parsing of the data packet to be parsed, that is, inner layer protocol parsing, which reduces communication costs, reduces communication delays, and improves communication efficiency.
[0099] In some embodiments, S201 may be implemented by the following steps to obtain a response data packet:
[0100] The application is used to process the service request corresponding to the second data packet to obtain the response data packet.
[0101] Here, the application is an application connected to the server of the underlay infrastructure layer cluster. After parsing the data packet to be parsed to obtain the second data packet, i.e., the business data packet, the second data packet can be sent to the application corresponding to the business data request through the response interface according to the business request corresponding to the business data packet, so that the application can process the business request corresponding to the second data packet and obtain a response data packet.
[0102] In this way, the application corresponding to the underlay infrastructure layer cluster can be used to respond to the data packet to be parsed sent by the overlay virtual cluster to obtain response data.
[0103] There are two processes for processing virtual data packets on the server of the underlay infrastructure layer cluster, namely, the reception of the original data packet and the sending of the response data packet. From the perspective of the server application, the application is not aware of the existence of the underlay infrastructure layer network, so the data reception and sending of the application are based on the overlay virtual network address. This requires a virtual network card with an overlay virtual network address, and the application interacts directly with the virtual network card. The embodiment of the present application does not require the use of a gateway and a network address translation device, but only utilizes a network address translation device based on a virtual device as the virtual network card. By adding a virtual extended LAN and a data flow mapping relationship in the user-state logic of the virtual device, the data packet is parsed in the underlay infrastructure layer cluster to enable the server to receive and send virtual data.
[0104] Based on this, the embodiment of the present application provides a system overall architecture for data intercommunication between an overlay virtual cluster and an underlay infrastructure layer cluster. Figure 3The overall architecture diagram of the system for data communication between the overlay virtual cluster and the underlay infrastructure layer cluster provided in the embodiment of the present application is as follows: Figure 3 As shown:
[0105] The overall system architecture includes: an overlay virtual cluster 301, an underlay infrastructure layer cluster 302, and a conversion device 303 connecting the overlay virtual cluster and the underlay infrastructure layer cluster.
[0106] The overlay virtual cluster 301 is a cluster using the overlay virtual network technology, including a server 304 , a virtual machine 305 , a virtual extended LAN tunnel endpoint device 306 , and a switch 307 .
[0107] Server 304 is a hardware device in the overlay virtual cluster, providing computing, storage and other capabilities.
[0108] Virtual machine 305 is generated by a server through virtualization technology. Multiple virtual machines on the same server share server resources and communicate with each other through a software switch on the server. In an overlay virtual cluster, virtual machine 305 is a terminal of the communication system, that is, the original data packet is sent and received by the virtual machine.
[0109] The virtual extended LAN tunnel endpoint device 306 is responsible for encapsulating and decapsulating the virtual extended LAN data packets, which is usually implemented by software on the server 304.
[0110] The switch 307 is a hardware device in the overlay virtual cluster, which is connected to the multiple servers 304 through cables and is used for communication between these servers and with other servers in the cluster.
[0111] The underlay infrastructure layer cluster 302 is a cluster using the underlay infrastructure layer network technology, and includes a server 308 and a switch 309 .
[0112] The server 308 is a hardware device in the underlay infrastructure layer cluster 302, providing computing, storage and other capabilities. In the underlay infrastructure layer cluster 302, the server 308 is a terminal of the communication system, that is, the data packet is sent and received by the server 308. In the embodiment of the present application, a virtual network card 310 is provided on the server 308, which is used to parse the data received by the server twice, and the virtual network card 310 can be used to encapsulate the response data twice, and the response data is obtained after the application 311 responds to the parsed data.
[0113] The switch 309 is a hardware device in the cluster, connected to the multiple servers 308 via cables, and is used for communication between these servers and with other servers in the cluster.
[0114] An embodiment of the present application provides a data processing method. Figure 4 This is another implementation flow diagram of the data processing method provided in the embodiment of the present application. Figure 4 As shown, the data processing method is:
[0115] Step S401: Overlay virtual cluster virtual machine A sends a data packet to be parsed to underlay infrastructure layer cluster server B.
[0116] Here, the virtual machine A in the overlay virtual cluster encapsulates the corresponding data packet according to the physical address and Internet Protocol address of the server B, and sends it to the virtual extended LAN tunnel endpoint device of the server where the virtual machine A is located.
[0117] The virtual extended LAN tunnel endpoint device searches its mapping table and obtains the "virtual extended LAN tunnel endpoint device" corresponding to server B according to the virtual physical address of server B. Then, A's virtual extended LAN tunnel endpoint device performs virtual extended LAN data encapsulation, adding a virtual extended LAN protocol header, a user data packet protocol header, and an outer Internet Protocol address and physical address header.
[0118] The virtual extended LAN tunnel endpoint device of virtual machine A sends the encapsulated data packet to the switch through the network card of the server where virtual machine A is located.
[0119] Step S402: the switch forwards the data packet to be parsed to the switch to which the cluster server B of the underlay infrastructure layer is connected.
[0120] The switch sends the data packet to the switch to which server B is connected through layer 2 and / or layer 3 forwarding based on the destination address in the outer Internet Protocol address header.
[0121] Step S403: Underlay infrastructure layer cluster server B receives the data packet to be parsed, and parses the data packet to be parsed to obtain a second data packet.
[0122] Here, the underlay infrastructure layer cluster server B can receive the data packet through the following steps:
[0123] Step 1: After the network card of cluster server B at the underlay infrastructure layer receives the data packet to be parsed, the kernel protocol stack parses the data packet layer by layer to obtain the user data packet protocol user data, i.e., the first data packet. At this time, the outer layer protocol header is processed. Then, the user data packet protocol user data, i.e., the first data packet, containing the virtual extended LAN header information is submitted to the application connected to the overlay virtual network file ( / dev / tapx) for further processing.
[0124] Step 2: In order to improve the throughput of accessing server B, the first data packet to be parsed of each data stream is processed in the manner of step 1, and in the process of the kernel protocol stack processing the first data packet to be parsed, key information is generated based on the inner five-tuple (source Internet Protocol address, source port, destination Internet Protocol address, destination port, transport layer protocol) information of the first data packet to be parsed. For subsequent data packets received, key information is generated in the same manner, and it is determined whether the key information exists in the kernel. If so, the outer protocol stack parsing is directly skipped, the data packet is offset to the starting position of the inner protocol stack, and the data packet is forwarded to the virtual network card, and step 4 is entered. If not, the generated key information is saved in the kernel and step 3 is entered.
[0125] Step 3: The user-mode program of the virtual network card device, i.e., the application connected to the overlay virtual network file, first obtains the outer source Internet Protocol address of the first data packet from the kernel, and directly obtains the inner source Internet Protocol address and source port information through the data packet. Then, the virtual extended LAN header is mapped with the inner and outer source Internet Protocol addresses and the inner source port and saved. Finally, the virtual extended LAN header is stripped and the data packet is sent to the overlay virtual network file.
[0126] Step 4: The data arriving at the overlay virtual network file is received by the virtual network card, and the data packet is parsed layer by layer again through its kernel protocol stack to obtain the real business data packet, that is, the second data packet. At this time, the inner layer protocol header is processed. The business data packet, that is, the second data packet, is submitted to the application of server B through the corresponding interface for processing.
[0127] An embodiment of the present application provides a virtual network card device. Figure 5 The schematic diagram of the working principle of the virtual network card provided in the embodiment of the present application is as follows: Figure 5 As shown:
[0128] The physical network card 501 is connected to the external network through the network cable 502. After receiving the data packet, the physical network card 501 sends the data packet to the network protocol stack 503 of the kernel 514. The network protocol stack 503 parses the data packet layer by layer to obtain the user data packet protocol data packet 504, and sends the user data packet protocol data packet 504 to the user state program 506 through the socket application program interface 505. The user state program 506 writes the user data packet protocol data packet 505 to the overlay overlay virtual network file 507. The overlay overlay virtual network file 507 sends the user data packet protocol data packet 504 to the virtual network card 508. The virtual network card 508 sends the user data packet protocol data packet 504 to the network protocol stack 509 of the kernel 514. The network protocol stack 509 parses the user data packet protocol data packet 504 layer by layer to obtain the transmission control protocol data 510, the user data packet protocol data 511 and the original data 512, and informs the upper layer waiting application of the parsed data packet through the socket application program interface 513.
[0129] Step S404: Underlay infrastructure layer cluster server B responds to the second data packet.
[0130] Here, the application program of server B generates response data to the received second data packet, and the response data is sent to the kernel protocol stack through a corresponding interface for layer-by-layer packaging.
[0131] The response data packet encapsulated by the kernel protocol stack is sent out through the virtual network card, and is obtained by the user-mode program of the virtual network card through the overlay virtual network file. The user-mode program obtains the inner layer destination Internet Protocol address and destination port through parsing. The saved outer layer destination Internet Protocol address and virtual extended LAN header information are retrieved through the destination address.
[0132] The user-mode program of the virtual network card adds the retrieved virtual extended LAN header information to the data packet header, and sends the data to the kernel protocol stack for layer-by-layer encapsulation according to the outer destination Internet Protocol address. The encapsulated data packet, i.e., the target data packet, is sent to the connected switch through the physical network card of server B.
[0133] Step S405: the switch forwards the target data packet to the server of virtual machine A in the overlay virtual cluster.
[0134] The switch sends the target data packet to the server of virtual machine A in the overlay virtual cluster through layer 2 and / or layer 3 forwarding according to the destination address in the outer Internet Protocol address header.
[0135] Step S406: The server where the Overlay virtual cluster virtual machine A is located receives the target data packet.
[0136] After receiving the target data packet, the server where the virtual machine A is located decapsulates the data packet through the virtual extended local area network tunnel endpoint device and then forwards it to the virtual machine A.
[0137] In the embodiment of the present application, the data packets to be parsed sent by the overlay virtual cluster are directly forwarded through an interoperable switch, the corresponding network devices are reused, no new network devices are introduced, and the efficiency of the forwarding devices is utilized. The data packets sent by the overlay virtual cluster are forwarded through the switch directly to the destination server of the underlay infrastructure layer cluster, without the need for a gateway or a network address translation device in the middle. Only through the underlay infrastructure layer server, without the aid of a gateway, the access from the overlay virtual network virtual machine to this server can be received and interpreted. The number of hops that the data packet passes through will be minimized, and the latency will be minimized accordingly. Moreover, there is no need to make changes to the overlay virtual cluster, and no new underlay infrastructure layer addresses are introduced.
[0138] The present application embodiment provides a data processing device, Figure 6 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the data processing device 600 includes: a first determination module 601, a second determination module 602, an analysis module 603, a processing module 604 and a feedback module 605, wherein:
[0139] The first determination module 601 is used to determine the first key information according to the data packet to be parsed sent by the overlay virtual cluster;
[0140] The second determining module 602 is used to determine a first data packet according to the first key information, wherein the first data packet is obtained by performing outer layer protocol parsing on the data packet to be parsed;
[0141] The parsing module 603 is used to perform inner layer protocol parsing on the first data packet to obtain a second data packet;
[0142] The processing module 604 is used to process the second data packet to obtain a target data packet;
[0143] The feedback module 605 is used to feed back the target data packet to the server of the overlay virtual cluster.
[0144] In the above device, the first determining module 601 includes:
[0145] A first determining submodule, used to determine whether the preset key information library includes the first key information;
[0146] The first parsing submodule is used to perform outer layer protocol parsing on the data packet to be parsed to obtain a first data packet when the preset key information library does not include the first key information.
[0147] In the above device, the first determining module 601 further includes:
[0148] The second determining submodule is used to perform inner layer protocol analysis on the data packet to be analyzed to obtain the second data packet when the preset key information library contains the first key information.
[0149] In the above device, the first determining module 601 includes:
[0150] The second parsing submodule is used to parse the data packet to be parsed layer by layer using the kernel protocol stack to obtain the five-tuple information of the data packet to be parsed;
[0151] A generating submodule is used to generate the first key information according to the five-tuple information.
[0152] In the above device, the device further comprises:
[0153] The updating module is used to save the first key information in the preset key information library when the preset key information library does not include the first key information, so as to obtain an updated key information library.
[0154] In the above device, the processing module 604 includes:
[0155] A response submodule, configured to respond to the second data packet using an application of the underlay infrastructure layer cluster server to obtain a response data packet;
[0156] A first encapsulation submodule is used to encapsulate the response data packet using a kernel protocol stack to obtain an encapsulated data packet;
[0157] A third parsing submodule is used to parse the encapsulated data packet using a virtual network card to obtain inner layer data information of the response data packet;
[0158] A third determination submodule is used to determine the outer data information and connection header information corresponding to the inner data information of the response data packet based on a preset mapping relationship; wherein the connection header information is information connecting the first data packet and the second data packet;
[0159] The second encapsulation submodule is used to encapsulate the encapsulated data based on the outer data information of the response data packet to obtain the target data packet.
[0160] In the above device, the processing module 604 further includes:
[0161] An acquisition submodule, used to acquire the outer data information and the connection header information corresponding to the first data packet;
[0162] A fourth determining submodule, configured to determine inner data information corresponding to the first data packet;
[0163] A submodule is established to establish an association relationship between the outer layer data information, the inner layer data information and the connection header information corresponding to the first data packet to obtain the preset mapping relationship.
[0164] In the above device, the parsing module includes:
[0165] The fourth parsing submodule is used to perform inner layer protocol parsing on the first data packet through the virtual network card and the kernel protocol stack to obtain the second data packet.
[0166] In the above device, the response submodule is further used to use the application to process the service request corresponding to the second data packet to obtain the response data packet.
[0167] An embodiment of the present application further provides a data processing device, which includes the modules included, and the sub-modules and units included in each module, which can be implemented by a processor in a terminal; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0168] Correspondingly, an embodiment of the present application provides a terminal, Figure 7 A schematic diagram of the structure of the terminal provided in the embodiment of the present application is shown in FIG. Figure 7 As shown, the terminal 700 at least includes: a controller 701 and a storage medium 702 configured to store executable instructions, wherein:
[0169] The controller 701 is configured to execute stored executable instructions, where the executable instructions are used to implement the provided data processing method.
[0170] It should be noted that the description of the above terminal embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the terminal embodiment of this application, please refer to the description of the method embodiment of this application for understanding.
[0171] Correspondingly, an embodiment of the present application provides a computer storage medium, in which computer executable instructions are stored, and the computer executable instructions are configured to execute the data processing method provided by other embodiments of the present application.
[0172] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0173] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0174] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0175] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0176] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0177] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0178] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0179] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device (which can be a laptop, tablet computer, desktop computer, server, mobile phone, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, magnetic disks or optical disks.
[0180] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0181] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0182] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0183] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data processing method, It is characterized in that The method is applied to an underlay infrastructure layer cluster server, and the method comprises: Determine the first key information according to the data packet to be parsed sent by the overlay virtual cluster; Determine a first data packet according to the first key information, wherein the first data packet is obtained by performing outer layer protocol parsing on the data packet to be parsed; Performing inner layer protocol analysis on the first data packet to obtain a second data packet; Using the application of the underlay infrastructure layer cluster server to respond to the second data packet to obtain a response data packet; Encapsulating the response data packet using a kernel protocol stack to obtain an encapsulated data packet; Using a virtual network card to parse the encapsulated data packet to obtain inner layer data information of the response data packet; Based on a preset mapping relationship, determine the outer data information and connection header information corresponding to the inner data information of the response data packet; wherein the connection header information is information connecting the first data packet and the second data packet; Based on the outer data information of the response data packet, the encapsulated data packet is encapsulated to obtain a target data packet; and the target data packet is fed back to the server of the overlay virtual cluster.
2. The method according to claim 1, It is characterized in that The determining the first data packet according to the first key information includes: Determining whether a preset key information database includes the first key information; When the preset key information library does not include the first key information, the data packet to be parsed is parsed through an outer layer protocol to obtain a first data packet.
3. The method according to claim 2, It is characterized in that The method further comprises: In a case where the preset key information library contains the first key information, inner layer protocol parsing is performed on the data packet to be parsed to obtain the second data packet.
4. The method according to claim 1, It is characterized in that The determining the first key information according to the data packet to be parsed sent by the overlay virtual cluster includes: Using the kernel protocol stack to parse the data packet to be parsed layer by layer to obtain five-tuple information of the data packet to be parsed; The first key information is generated according to the quintuple information.
5. The method according to claim 2, It is characterized in that After determining the first key information according to the data packet to be parsed sent by the overlay virtual cluster, the method further includes: In the case that the first key information is not included in the preset key information library, the first key information is stored in the preset key information library to obtain an updated key information library.
6. The method according to claim 1, It is characterized in that Before determining the outer layer data information and the connection header information corresponding to the inner layer data information of the response data packet based on the preset mapping relationship, the method further includes: Obtaining outer data information and the connection header information corresponding to the first data packet; Determining inner data information corresponding to the first data packet; An association relationship is established between the outer layer data information, the inner layer data information and the connection header information corresponding to the first data packet to obtain the preset mapping relationship.
7. The method according to claim 1, It is characterized in that The performing inner layer protocol parsing on the first data packet to obtain the second data packet includes: Through the virtual network card, the kernel protocol stack is used to perform inner layer protocol analysis on the first data packet to obtain the second data packet.
8. The method according to claim 1, It is characterized in that The application using the underlay infrastructure layer cluster server responds to the second data packet to obtain a response data packet, including: The application is used to process the service request corresponding to the second data packet to obtain the response data packet.
9. A data processing device, It is characterized in that The device is applied to an underlay infrastructure layer cluster server, and the device includes: A first determination module, configured to determine first key information according to a data packet to be parsed sent by the overlay virtual cluster; A second determining module is used to determine a first data packet according to the first key information, wherein the first data packet is obtained by performing outer layer protocol parsing on the data packet to be parsed; A parsing module, used for performing inner layer protocol parsing on the first data packet to obtain a second data packet; A processing module, used to use the application of the underlay infrastructure layer cluster server to respond to the second data packet to obtain a response data packet; use the kernel protocol stack to encapsulate the response data packet to obtain an encapsulated data packet; use a virtual network card to parse the encapsulated data packet to obtain inner data information of the response data packet; based on a preset mapping relationship, determine the outer data information and connection header information corresponding to the inner data information of the response data packet; based on the outer data information of the response data packet, encapsulate the encapsulated data packet to obtain a target data packet; wherein the connection header information is information connecting the first data packet and the second data packet; The feedback module is used to feed back the target data packet to the server of the overlay virtual cluster.
10. A terminal, It is characterized in that The terminal at least includes: a controller and a storage medium configured to store executable instructions, wherein: The controller is configured to execute stored executable instructions, wherein the executable instructions are configured to execute the data processing method provided in any one of claims 1 to 8 above.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are configured to execute the data processing method provided in any one of claims 1 to 8 above.
Citation Information
Patent Citations
Data processing method and network device
CN107241271A
Data packet sending method, device and hybrid cloud network system
CN107948086A
Method and system for achieving virtual data center, and storage medium
CN109218053A
Data transmission method, device and equipment and storage medium
CN111193653A
Cloud data center virtual underlying network architecture and data transmission method thereof
CN111225031A
