Calculation power information transmission method and device, equipment and storage medium
By transmitting computing power information in the reserved field of the VXLAN header and utilizing tunnel transmission between VTEPs, the problem of poor compatibility between IPv4 and IPv6 in the existing technology is solved, and computing power information transmission with high compatibility and ease of use is achieved.
Patent Information
- Application Number
- CN202311092322.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-28
- Publication Date
- 2024-10-18
AI Technical Summary
The existing technology is difficult to be compatible with IPv4 and IPv6 when realizing the transmission of computing power information, and the solution is complex and difficult to use. It requires modification of the standard protocol and has poor scalability.
Using VXLAN technology, the computing power information is stored in the reserved field of the VXLAN header, and is transmitted through the tunnel between VTEPs to realize the transmission of computing power capabilities in large layer 2 networks. It is compatible with standard and non-standard systems without modifying the standard VXLAN protocol.
It achieves high-compatibility transmission of computing power information, is easy to use, and can support both IPv4 and IPv6, reducing deployment complexity and cost.
Smart Images

Figure CN118802411A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a computing power information transmission method, device, equipment and storage medium. Background Art
[0002] The computing network is a new type of information infrastructure that allocates and flexibly schedules computing resources, storage resources, and network resources between the cloud, network, and edge on demand. The computing network combined with the SD-WAN network will build a flexible, intelligent, and easy-to-manage network entrance for computing network integration, and realize the flexible scheduling of computing resource requests to computing resource nodes. How to forward computing resources in the SD-WAN network is the core of the research and development of the entire computing network.
[0003] Among the current related technologies, the solutions for realizing computing power information transmission mainly include: using extended IPv6 fields at the IP layer and realizing computing power routing transmission through SRv6 technology; using extended BGP protocol at the underlay layer, that is, the physical network layer, and realizing the transmission of private computing power by extending the programmable fields of the BGP protocol.
[0004] The above solution requires modification of standard protocols, which is difficult to implement. It also requires the SD-WAN network to support end-to-end IPv6 technology, which is difficult to adapt to IPv4 and has poor scalability. Summary of the invention
[0005] The embodiments of the present application provide a method, apparatus, device and storage medium for transmitting computing power information, which utilizes vxlan technology to store computing power information in a reserved field of the vxlan header and transmit computing power information in real time.
[0006] In a first aspect, an embodiment of the present application provides a computing power information transmission method, which is applied to a first tunnel endpoint VTEP in a virtual extensible local area network vxlan, and the method includes:
[0007] When receiving the first data message sent by the first tenant, the first VTEP obtains the first computing power data of the first tenant;
[0008] Encapsulate the first computing power data in a reserved field of the vxlan header of the vxlan message;
[0009] Send the encapsulated vxlan message to the second VTEP.
[0010] In a second aspect, an embodiment of the present application provides a computing power information transmission method, which is applied to a second tunnel endpoint VTEP in a virtual extensible local area network VXLAN, and the method includes:
[0011] When the second VTEP receives the vxlan message sent by the first VTEP, it parses the vxlan message and obtains the vxlan header of the vxlan message;
[0012] Get the first computing power data encapsulated in the reserved field of the vxlan header.
[0013] In a third aspect, an embodiment of the present application provides a computing power information transmission device, which is applied to a first tunnel endpoint VTEP in a virtual extensible local area network VXLAN, and the device includes:
[0014] A computing power acquisition module, configured to, when the first VTEP receives a first data message sent by the first tenant, acquire first computing power data of the first tenant;
[0015] An encapsulation module, used for encapsulating the first computing power data in a reserved field of a vxlan header of a vxlan message;
[0016] The sending module is used to send the encapsulated vxlan message to the second VTEP.
[0017] In a fourth aspect, an embodiment of the present application provides a computing power information transmission device, which is applied to a second tunnel endpoint VTEP in a virtual extensible local area network VXLAN, and the device includes:
[0018] A parsing module, used for parsing the vxlan message to obtain the vxlan header of the vxlan message when receiving the vxlan message sent by the first VTEP;
[0019] The computing power acquisition module is used to obtain the first computing power data encapsulated in the reserved field of the vxlan header.
[0020] In a fifth aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;
[0021] When the processor executes computer program instructions, the computing power information transmission method of the first aspect and / or the second aspect is implemented.
[0022] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the computing power information transmission method of the first aspect and / or the second aspect is implemented.
[0023] The computing power information transmission method, device, equipment and storage medium of the embodiment of the present application obtain the first computing power data of the first tenant when the first VTEP receives the first data message sent by the first tenant, encapsulates the first computing power data in the reserved field of the vxlan header of the vxlan message, and sends the encapsulated vxlan message to the second VTEP. According to this embodiment, the computing power information is stored in the reserved field of the vxlan header by using the vxlan technology widely used in SD-WAN networks, which can realize the computing power transmission of large layer 2 networks. Compared with traditional solutions, it has good compatibility and does not need to modify the standard vxlan protocol message payload. It can be compatible with both standard and non-standard systems, has strong ease of use, does not distinguish between IPv4 and IPv6, and can support any vxlan protocol. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0025] Figure 1 It is a schematic diagram of a data center network based on vxlan technology provided in an embodiment of the present application;
[0026] Figure 2 This is a schematic diagram of an application scenario of a computing power information transmission method provided in an embodiment of the present application;
[0027] Figure 3 is a simplified diagram of the interaction between the first VTEP and the second VTEP provided in an embodiment of the present application;
[0028] Figure 4 It is a flowchart of a computing power information transmission method provided in an embodiment of the present application;
[0029] Figure 5 It is a schematic diagram of the message format of the vxlan message provided in the embodiment of the present application;
[0030] Figure 6 It is a structural diagram of the vxlan header provided in an embodiment of the present application;
[0031] Figure 7 It is a flowchart of another computing power information transmission method provided in an embodiment of the present application;
[0032] Figure 8 This is a flowchart of another method for transmitting computing power information provided in an embodiment of the present application.
[0033] Fig. 9This is a flowchart of another method for transmitting computing power information provided in an embodiment of the present application.
[0034] Fig.10 It is a structural schematic diagram of a computing power information transmission device provided in an embodiment of the present application;
[0035] Fig.11 It is a structural schematic diagram of another computing power information transmission device provided in an embodiment of the present application;
[0036] Fig.12 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0038] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants 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, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0039] The following is an explanation of the technical terms used in the embodiments of the present application:
[0040] VPP: full name Vector Packet Processing, also known as vector packet processing, the VPP platform is an extensible framework that provides out-of-the-box production-quality switch / router functions. It is an open source version of Cisco's Vector Packet Processing (VPP) technology, a high-performance packet processing protocol stack that can run on commercial CPUs.
[0041] vxlan: The full name is Virtual eXtensible Local Area Network, which is a virtual extensible local area network. As a large layer 2 virtual network technology, it can penetrate the layer 3 network to extend the layer 2, and can encapsulate traffic and extend it to the layer 3 gateway. It is currently widely used in sd-wan networks to achieve tenant isolation.
[0042] VTEP: The full name is VXLAN Tunnel Endpoints, which is the edge device of the VXLAN network and is used to process VXLAN messages, such as packaging and unpacking.
[0043] SD-WAN: The full name is Software-Defined WAN, which is a software-defined wide area network. It can extract more hardware capabilities and hand them over to unified software control management, making the hardware universal and simple.
[0044] IPv6: The full name is Internet Protocol Version 6, which is the next-generation IP protocol designed by the Internet Engineering Task Force (IETF) to replace IPv4. It is said that the number of addresses it has can be used to assign an address to every grain of sand in the world.
[0045] IPv4: The full name is Internet Protocol version 4, also known as Internet Protocol version 4, which is the fourth revision in the development process of the Internet Protocol and the first widely deployed version of this protocol. IPv4 is the core of the Internet and the most widely used version of the Internet Protocol. Its successor is IPv6. Until 2011, when the IANA IPv4 addresses were completely exhausted, IPv6 was still in the early stages of deployment.
[0046] SRv6: The full name is Segment Routing IPv6, which is segment routing based on the IPv6 forwarding plane. In simple terms, it is SR (Segment Routing) + IPv6, which is a new generation of IP bearer protocol. It uses the existing IPv6 forwarding technology and implements network programmability through flexible IPv6 extension headers. SRv6 simplifies the network protocol type, has good scalability and programmability, can meet the diverse needs of more new services, provides high reliability, and has good application prospects in cloud services.
[0047] VPN: The full name is Virtual Private Network, which is a virtual private network. Its function is to establish a private network on the public network for encrypted communication. It is widely used in corporate networks. VPN gateways achieve remote access by encrypting data packets and converting the destination address of data packets. VPN can be implemented in a variety of ways, such as servers, hardware, and software.
[0048] Linux kernel: Linux is an open source computer operating system kernel. It is a Unix-like operating system written in C language and conforms to the POSIX standard.
[0049] Computing network: A new type of information infrastructure that allocates and flexibly schedules computing resources, storage resources, and network resources between cloud, network, and edge according to business needs. Cloud refers to cloud computing nodes, edge refers to edge computing nodes, and network refers to wide area network. The computing network deeply integrates various network resources including cloud computing nodes, edge computing nodes, and wide area network, reducing the complexity of edge computing node management and control, and coordinates with the computing and storage resources of cloud computing nodes and the network resources of wide area network through centralized control or distributed scheduling methods to form a new generation of information infrastructure, providing customers with overall computing services including computing, storage, and connection, and providing flexible and schedulable on-demand services according to business characteristics.
[0050] Computing power: Computing power (also known as hash rate) is a measure of the processing power of a network. It is the speed at which a computer (CPU) can calculate the output of a hash function. The network must perform intensive mathematical and cryptographic operations for security purposes. For example, when a network reaches a hash rate of 10Th / s, it means that it can perform 10 trillion calculations per second.
[0051] Before describing the technical solutions provided by the embodiments of the present application, in order to facilitate the understanding of the embodiments of the present application, the present application first specifically describes the problems existing in the prior art:
[0052] As mentioned above, in the current related technologies, the method of realizing computing power information transmission is mainly to extend the IPv6 field at the IP layer, realize computing power routing transmission through SRv6 technology, and adopt the extended BGP protocol at the underlay layer. By extending the programmable field of the BGP protocol, a set of private computing power capabilities can be transmitted.
[0053] The main disadvantages of the above solutions include:
[0054] 1. The existing IP layer is mainly based on many extended fields of IPv6, without considering the situation of IPv4 well.
[0055] 2. The existing solution is implemented by a series of technologies such as IPv6+SRv6+VPN. All of them must be fully built before computing power can be transferred. It is complex and difficult to use.
[0056] To solve the above problems, the embodiments of the present application provide a computing power information sending method, receiving method, device, equipment and storage medium based on vxlan technology.
[0057] Vxlan is an overlay technology that builds a virtual layer 2 network through a layer 3 network. Simply put, VXLAN uses tunnel technology on top of the underlying physical network underlay, and uses the UDP layer to build an overlay logical network to decouple the logical network from the physical network and achieve flexible networking requirements. It has almost no impact on the original network architecture, and a new layer of network can be built without making any changes to the original network.
[0058] As an overlay tunnel technology, vxlan establishes a logical tunnel on the IP network between the source network device and the destination network device, encapsulates the user-side Ethernet frame into a UDP message, and forwards it in the three-layer network L3 through this tunnel. Figure 1 , is a schematic diagram of a data center network based on vxlan technology, such as Figure 1 As shown, from the user's perspective, the servers accessing the network are like being connected to different ports of a virtual Layer 2 switch. The data center network can be viewed as a Layer 2 virtual switch, which facilitates communication.
[0059] This application starts from the perspective of overlay and the dimension of computing power transmission between two overlay vtep, and uses vtep as a computing power gateway to transmit the computing power information of underlay tenants. VTEP can be a network device, such as a switch, or a machine, such as a host in a virtualization cluster.
[0060] In an embodiment of the present application, vtep can be implemented based on the high-performance forwarding framework VPP and deployed on an x86 server, which is convenient for application in cloud scenarios. At the same time, the characteristics of VPP vector message processing can realize high-speed forwarding of data packets in a timely manner.
[0061] See also Figure 2 , which is a schematic diagram of an application scenario of the computing power information transmission method provided in an embodiment of the present application, such as Figure 2 As shown, the application scenario includes two VTEPs located in the overlay network, wherein both VTEPs are gateways implemented in the VPP framework, and a vxlan tunnel is configured between the two VTEPs, and the two VTEPs correspond to a network device in the underlay network respectively.
[0062] The number of VTEPs is only exemplary. In actual application, the number of VTEPs can be set according to actual needs.
[0063] In this embodiment, when computing power information is transmitted, the VTEP on the computing power production side is used as the first VTEP, and the VTEP on the computing power consumption side is used as the second VTEP. Figure 3 , is a simplified diagram of the interaction between the first VTEP and the second VTEP, such as Figure 3 As shown, the first VTEP is used to obtain the first computing power data of the first tenant when receiving the first data message sent by the first tenant, encapsulate the first computing power data in the reserved field of the vxlan header of the vxlan message, and send the encapsulated vxlan message to the second VTEP. As the computing power consumption side, the second VTEP parses the vxlan message when receiving the vxlan message sent by the first VTEP, obtains the vxlan header of the vxlan message, and obtains the first computing power data encapsulated in the reserved field of the vxlan header.
[0064] It can be understood that in actual applications, a VTEP can serve as both a computing power consumption side and a computing power generation side. When the VTEP serves as a computing power consumption side, the steps implemented in the second VTEP can be implemented. Similarly, when the VTEP serves as a computing power production side, the steps implemented in the first VTEP can be implemented.
[0065] See also Figure 4 , is a flow chart of a method for transmitting computing power information provided in an embodiment of the present application, such as Figure 4 As shown, when transmitting computing power information, the first VTEP can execute the following steps S41-S43.
[0066] S41. Upon receiving the first data packet sent by the first tenant, the first VTEP obtains the first computing power data of the first tenant.
[0067] The first tenant is any tenant attached to the first VTEP in the VXLAN network where the first VTEP is located.
[0068] Tenants are purchasers of VXLAN network services, and can be operators, service providers, or end users of services. When the tenant who purchases network services is an operator or service provider, the tenant usually obtains a virtual network built using VXLAN technology. At this time, one tenant corresponds to one VNI. VNI stands for VXLAN Network Identifier, which is a user identifier similar to VLAN ID. One VNI represents one tenant, and virtual machines belonging to different VNIs cannot directly communicate at Layer 2.
[0069] The first data message is a data message uploaded by the first tenant and is in Ethernet frame format.
[0070] The first computing power data is data that can reflect the computing power capabilities of the first tenant, including but not limited to computing power information such as the first tenant's available computing resources, used computing resources, and / or computing power utilization such as the ratio of the first tenant's used computing resources to total computing resources, and the ratio of available computing resources to total computing resources.
[0071] In actual applications, the first VTEP can obtain the first computing power data of the first tenant through a preset API (Application Programming Interface).
[0072] S42. Encapsulate the first computing power data in the reserved field of the vxlan header of the vxlan message.
[0073] vxlan packets are packets applicable to VXLAN networks.
[0074] See also Figure 5 , is a schematic diagram of the message format of the vxlan message, such as Figure 5 As shown, the vxlan message includes VXLANHeader, i.e., vxlan header, UDP Header, i.e., UDP header, Outer IP Header, i.e., outer IP header, Outer MACHeader, i.e., outer Ethernet header, and Original L2Frame, i.e., inner message. The inner message stores the original Ethernet frame. The original Ethernet frame is the original data message uploaded by the tenant, which refers to the first data message in this embodiment.
[0075] See also Figure 6 , is a schematic diagram of the structure of the vxlan header, such as Figure 6As shown in the figure, the vxlan header includes a 24-bit VXLAN ID field, which is used to define different tenant VINs in the VXLAN network. In addition, it also includes an 8-bit flag field, namely the Flags field, and two reserved fields, which are 24 bits and 8 bits in size respectively.
[0076] In this embodiment, when encapsulating the header of the vxlan message, the first computing power data is encapsulated in the reserved field of the vxlan header.
[0077] In practical applications, according to the size of bytes occupied by the first computing power data, one or two reserved fields can be selected from the two reserved fields to encapsulate the first computing power data.
[0078] After completing the encapsulation of the vxlan header, the outer header information of the vxlan header is further encapsulated, that is, the UDP header, outer IP header and outer MAC header are encapsulated in sequence.
[0079] The vxlan header and the inner message are used together as UDP data. The UDP header includes the destination port number (VXLAN Port) and the source port number (UDP Src.Port). The content encapsulated by the destination port number is fixed to 4789, and the content encapsulated by the source port number is the value calculated by the hash algorithm of the first data message.
[0080] The outer IP header includes the source IP address (Outer Src.IP) and the destination IP address (Outer Dst.IP), where the source IP address encapsulates the IP address of the first VTEP gateway, and the destination IP address encapsulates the IP address of the second VTEP. The second VTEP and the first VTEP are located at both ends of the same vxlan tunnel, and the first VTEP and the second VTEP transmit data through the vxlan tunnel, that is, the second VTEP is the opposite VTEP of the first VTEP.
[0081] The outer Ethernet header includes a source MAC address (Src.MAC Addr.) and a destination MAC address (Dst.MAC Addr.), wherein the source MAC address encapsulates the MAC address of the first VTEP gateway, and the destination MAC address encapsulates the MAC address of the next hop device on the path to the second VTEP.
[0082] After the vxlan message is encapsulated, the first VTEP can send the encapsulated vxlan message to the second VTEP through the vxlan tunnel between the first VTEP and the second VTEP.
[0083] S43. Send the encapsulated vxlan message to the second VTEP.
[0084] When sending a vxlan message to the second VTEP, the port corresponding to the destination IP address encapsulated in the outer IP header of the vxlan message can be determined by querying the underlay route, and the vxlan message is sent to the second VTEP through the port.
[0085] The computing power information sending method provided in this embodiment obtains the first computing power data of the first tenant when the first VTEP receives the first data message sent by the first tenant, encapsulates the first computing power data in the reserved field of the vxlan header of the vxlan message, and sends the encapsulated vxlan message to the second VTEP. According to this embodiment, the computing power data is stored in the reserved field of the vxlan header by using the vxlan technology widely used in SD-WAN networks, which can realize the computing power transmission of large layer 2 networks. Compared with traditional solutions, it has good compatibility and does not need to modify the standard vxlan protocol message payload. It can be compatible with both standard and non-standard systems, has strong ease of use, does not distinguish between IPv4 and IPv6, and can support any vxlan protocol.
[0086] In addition, the computing power information transmission method provided in this embodiment uses VPP as the forwarding plane, which is essentially a user-mode process that can be plug-and-play, has portability, and can reduce upgrade and deployment costs.
[0087] In some embodiments, the first computing power data may include computing power information and computing power utilization. When the first computing power data is encapsulated in a reserved field of a vxlan header of a vxlan message, the following steps may be performed:
[0088] Identify three bytes from the reserved field of the vxlan header;
[0089] Use two bytes out of three bytes to encapsulate computing power information;
[0090] Another byte of the three bytes is used to encapsulate computing power utilization.
[0091] According to the previous content, the vxlan header includes two reserved fields, which are 24 bits and 8 bits in size respectively, that is, a total of four bytes. Based on this, three bytes can be randomly selected from the four bytes to encapsulate the first computing power data.
[0092] As an example, of the two reserved fields, the reserved field with a size of 24 bits can be used as the target reserved field, and the first computing power data can be encapsulated in the target reserved field.
[0093] Through the above method, computing power information and computing power utilization can be transmitted at the same time.
[0094] In some embodiments, considering that the first VTEP is a gateway, in addition to forwarding messages through the vxlan tunnel, other methods can also be used to forward messages. Based on this, Figure 7 As shown, before obtaining the first computing power data of the first tenant, the following steps may be performed:
[0095] S40. Determine whether the forwarding path corresponding to the first data packet is a vxlan tunnel. If the forwarding path of the first data packet is a vxlan tunnel, execute S41 to obtain the first computing power data of the first tenant. If the forwarding path of the first data packet is not a vxlan tunnel, execute S44.
[0096] S44. Forward the first data message according to other forwarding methods.
[0097] Other forwarding modes may be set according to actual conditions, and this embodiment does not specifically limit this.
[0098] In this embodiment, the forwarding path of the first data message may be determined by querying a routing table or broadcasting in a layer 2 broadcast domain.
[0099] The Layer 2 broadcast domain is also called BD (Bridge Domain). In a VXLAN network, VNI is mapped to the broadcast domain BD in a 1:1 manner. A BD represents a broadcast domain. Virtual machines in the same BD can communicate with each other at Layer 2. Vxlan tunnels are usually established between virtual machines in the same BD.
[0100] As an example, a routing table can be set in advance, and the path that the data packet must pass through to reach the destination is specified in the routing table. Based on this, when determining whether the forwarding path corresponding to the first data packet is a vxlan tunnel, the destination IP in the first data packet can be obtained, and the necessary path from the first VTEP to the destination IP can be determined by querying the preset routing table. The necessary path is used as the forwarding path corresponding to the first data packet. If the path is a vxlan tunnel, the forwarding path corresponding to the first data packet is determined to be a vxlan tunnel.
[0101] As another example, a layer 2 sub-interface is created in advance on the physical interface of the tenant connected to the first VTEP, and different flow encapsulation types are configured so that different interfaces access different data packets. At the same time, the layer 2 sub-interface is mapped one-to-one with the BD. In this way, after the service side message reaches the first VTEP, it will enter the designated layer 2 sub-interface, so that the forwarding path corresponding to the message can be determined according to the mapping relationship between the layer 2 sub-interface and the BD. Based on this, when determining whether the forwarding path corresponding to the first data message is a vxlan tunnel, the layer 2 sub-interface entered by the first data message is determined, and according to the mapping relationship between the layer 2 sub-interface and the BD, it is determined whether there is a BD corresponding to the layer 2 sub-interface. If so, it is determined that the forwarding path corresponding to the first data message is a vxlan tunnel.
[0102] Through the above method, when it is determined that the first data packet can be forwarded through the vxlan tunnel, the first computing power data is obtained, thereby avoiding the problem of failure to send the first computing power data due to the inability to send through the vxlan tunnel.
[0103] In some embodiments, before sending the encapsulated vxlan message to the second VTEP, the following steps may be performed:
[0104] Set the value of the flag field in the vxlan header to a preset value, which is used to indicate that the reserved field in the vxlan header is modified.
[0105] Among them, the flag field is the Flags field in the vxlan header, and the preset value can be set according to actual conditions.
[0106] In the above way, you only need to obtain the flag field to accurately determine whether the reserved field in the vxlan header has been modified.
[0107] See also Figure 8 , is a flow chart of a method for transmitting computing power information provided in an embodiment of the present application, such as Figure 8 As shown, when transmitting computing power information, the second VTEP can execute the following steps S80-S82.
[0108] S80. When receiving the vxlan message sent by the first VTEP, parse the vxlan message to obtain the vxlan header of the vxlan message.
[0109] The second VTEP can receive the message sent by the first VTEP in real time, and when receiving the message, it determines whether the received message is a vxlan message through protocol analysis. When it is determined that the received message is a vxlan message, it parses the vxlan message to obtain the vxlan header of the vxlan message.
[0110] After determining that the received message is not a vxlan message, it can be forwarded according to a preset forwarding method, wherein the preset forwarding method can be set according to actual conditions, and this embodiment does not limit this.
[0111] When parsing the vxlan message, the second VTEP can strip off the outer Ethernet header, outer IP header and UDP header of the vxlan message in turn, so as to obtain the UDP data therein. The UDP data includes the VXLAN header and the inner message, so that the VXLAN header can be obtained.
[0112] S82. Obtain the first computing power data encapsulated in the reserved field of the vxlan header.
[0113] After obtaining the vxlan header, read the content in its reserved field to obtain the first computing power data encapsulated in the reserved field.
[0114] The computing power information transmission method provided in this embodiment parses the vxlan message when the second VTEP receives the vxlan message sent by the first VTEP to obtain the vxlan header of the vxlan message; and obtains the first computing power data encapsulated in the reserved field of the vxlan header. According to this embodiment, according to this embodiment, the vxlan technology widely used in SD-WAN networks is used to store computing power information in the reserved field of the vxlan header, and the computing power information is transmitted in real time. Compared with traditional solutions, it has good compatibility and does not need to modify the standard vxlan protocol message payload. It can be compatible with both standard and non-standard systems, has strong ease of use, does not distinguish between IPv4 and IPv6, and can support any vxlan protocol.
[0115] In some embodiments, see Fig. 9 , before S82, the following steps may be performed:
[0116] S81. Determine whether the value of the flag field in the vxlan header is a preset value. The preset value is used to indicate that the reserved field in the vxlan header is modified. If it is determined to be the preset value, execute S82. If it is determined not to be the preset value, execute S83.
[0117] S83. Get the inner message in the vxlan message, the inner message includes the destination address, and forward the message according to the destination address.
[0118] The inner layer message is the first data message received by the first VTEP, and the destination address therein is the destination address in the first data message, which is used to identify the physical address (ie, MAC address) of the network adapter to which the first data message is ultimately sent.
[0119] Through the above method, it is first determined whether the reserved field is modified based on the flag field. When the reserved field is modified, it can be determined that the computing power data is not encapsulated in the reserved field. In this way, there is no need to execute S82, thereby reducing the message processing steps.
[0120] In some embodiments, Figure 8 As shown, after executing S82, S83 may be continued to be executed. In S83, when forwarding the message according to the target IP, the following steps may be executed:
[0121] Determine whether the destination address in the inner message is the physical address of the second VTEP;
[0122] When it is determined that the destination address is the physical address of the second VTEP, the first computing power data is given to the second VTEP, and the second VTEP processes the inner layer message accordingly;
[0123] When it is determined that the destination address is not the physical address of the second VTEP, the first computing power data and the inner layer message are further forwarded.
[0124] For example, when the destination address is the physical address corresponding to the tenant attached to the second VTEP, the second VTEP can transmit the first computing power data and the inner layer message to the corresponding tenant device attached to the second VTEP through a preset API.
[0125] Through the above method, it can be ensured that the first data message and the first computing power data eventually reach the destination device corresponding to the destination address.
[0126] Based on the computing power information transmission method provided in the above embodiment, the present application also provides a specific implementation of the computing power information transmission device. Please refer to the following embodiment.
[0127] See also Fig.10 , is a schematic diagram of a computing power information transmission device provided in an embodiment of the present application, and the device can be applied to a first VTEP, such as Fig.10 As shown, the device includes the following modules:
[0128] The computing power acquisition module 1001 is used for the first VTEP to acquire the first computing power data of the first tenant when receiving the first data message sent by the first tenant;
[0129] The encapsulation module 1002 is used to encapsulate the first computing power data in a reserved field of the vxlan header of the vxlan message;
[0130] The sending module 1003 is used to send the encapsulated vxlan message to the second VTEP.
[0131] In some embodiments, the first computing power data includes computing power information and computing power utilization, and the encapsulation module 1002 is specifically used to:
[0132] Identify three bytes from the reserved field of the vxlan header;
[0133] Use two bytes out of three bytes to encapsulate computing power information;
[0134] Another byte of the three bytes is used to encapsulate computing power utilization.
[0135] In some embodiments, the apparatus may further include:
[0136] A path determination module, used to determine whether a forwarding path corresponding to a first data message is a vxlan tunnel before obtaining the first computing power data of the first tenant;
[0137] The computing power acquisition module 1001 is specifically used for:
[0138] When the forwarding path is a vxlan tunnel, the first computing power data of the first tenant is obtained.
[0139] In some embodiments, the apparatus may further include:
[0140] A flag setting module is used to set the value of the flag field in the vxlan header to a preset value before sending the encapsulated vxlan message to the second VTEP. The preset value is used to indicate that the reserved field in the vxlan header is modified.
[0141] See also Fig.11 , is a schematic diagram of a computing power information transmission device provided in an embodiment of the present application, which can be applied to a second VTEP, such as Fig.11 As shown, the device includes the following modules:
[0142] The parsing module 1101 is used to parse the vxlan message and obtain the vxlan header of the vxlan message when receiving the vxlan message sent by the first VTEP;
[0143] The computing power acquisition module 1102 is used to obtain the first computing power data encapsulated in the reserved field of the vxlan header.
[0144] In some embodiments, the apparatus may further include:
[0145] A flag judgment module is used to determine whether the value of the flag field in the vxlan header is a preset value before obtaining the first computing power data encapsulated in the reserved field of the vxlan header, and the preset value is used to indicate that the reserved field in the vxlan header is modified;
[0146] The computing power acquisition module 1102 is specifically used for:
[0147] In response to the value of the flag field being a preset value, the first computing power data encapsulated in the reserved field of the vxlan header is obtained.
[0148] In some embodiments, the apparatus may further include:
[0149] An inner message acquisition module, used for acquiring the inner message in the vxlan message after acquiring the first computing power data encapsulated in the reserved field of the vxlan header, wherein the inner message includes a destination address;
[0150] The forwarding module is used to forward the first computing power data and the inner layer message when the destination address is not the physical address of the second VTEP.
[0151] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0152] The electronic device may include a processor 1201 and a memory 1202 storing computer program instructions.
[0153] Specifically, the processor 1201 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0154] The memory 1202 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1202 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 1202 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 1202 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1202 is a non-volatile solid-state memory.
[0155] The memory 1202 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory 1202 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it can perform the operations described in any one of the computing power information transmission methods in the above embodiments.
[0156] The processor 1201 implements any one of the computing power information transmission methods in the above embodiments by reading and executing computer program instructions stored in the memory 1202.
[0157] In one example, the electronic device may further include a communication interface 1203 and a bus 1210. Fig.12 As shown, the processor 1201, the memory 1202, and the communication interface 1203 are connected via a bus 1210 and communicate with each other.
[0158] The communication interface 1203 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0159] Bus 1210 includes hardware, software or both, and the components of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1210 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.
[0160] In addition, in combination with the computing power information transmission method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the computing power information transmission methods in the above embodiment is implemented.
[0161] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0162] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0163] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0164] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0165] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A computing power information transmission method, characterized in that: Applied to a first tunnel endpoint VTEP in a virtual extensible local area network vxlan, the method comprises: When receiving the first data message sent by the first tenant, the first VTEP obtains the first computing power data of the first tenant; Encapsulating the first computing power data in a reserved field of a vxlan header of a vxlan message; The encapsulated vxlan message is sent to the second VTEP.
2. The method according to claim 1, characterized in that The first computing power data includes computing power information and computing power utilization, and the encapsulating the first computing power data in a reserved field of a vxlan header of a vxlan message includes: Determine three bytes from a reserved field of the vxlan header; Using two bytes of the three bytes to encapsulate the computing power information; The computing power utilization is encapsulated using another byte of the three bytes.
3. The method according to any one of claims 1 to 2, characterized in that: Before obtaining the first computing power data of the first tenant, the method further includes: Determine whether the forwarding path corresponding to the first data message is a vxlan tunnel; The obtaining the first computing power data of the first tenant includes: When the forwarding path is a vxlan tunnel, the first computing power data of the first tenant is obtained.
4. The method according to claim 1, characterized in that: Before sending the encapsulated vxlan message to the second VTEP, the method further includes: The value of the flag field in the vxlan header is set to a preset value, and the preset value is used to indicate that the reserved field in the vxlan header is modified.
5. A method for transmitting computing power information, characterized in that: Applied to a second tunnel endpoint VTEP in a virtual extensible local area network VXLAN, the method comprises: When the second VTEP receives the vxlan message sent by the first VTEP, the second VTEP parses the vxlan message to obtain the vxlan header of the vxlan message; Get the first computing power data encapsulated in the reserved field of the vxlan header.
6. The method according to claim 5, characterized in that: Before obtaining the first computing power data encapsulated in the reserved field of the vxlan header, the method further includes: Determine whether the value of the flag field in the vxlan header is a preset value, wherein the preset value is used to indicate that the reserved field in the vxlan header is modified; The obtaining of the first computing power data encapsulated in the reserved field of the vxlan header includes: In response to the value of the flag field being a preset value, the first computing power data encapsulated in the reserved field of the vxlan header is obtained.
7. The method according to claim 6, characterized in that After obtaining the first computing power data encapsulated in the reserved field of the vxlan header, the method further includes: Obtain an inner message in the vxlan message, wherein the inner message includes a destination address; When the destination address is not the physical address of the second VTEP, the first computing power data and the inner layer message are forwarded.
8. A computing power information transmission device, characterized in that: Applicable to a first tunnel endpoint VTEP in a virtual extensible local area network VXLAN, the device comprising: A computing power acquisition module, configured for the first VTEP to acquire first computing power data of the first tenant when receiving a first data message sent by the first tenant; An encapsulation module, used to encapsulate the first computing power data in a reserved field of a vxlan header of a vxlan message; The sending module is used to send the encapsulated vxlan message to the second VTEP.
9. A computing power information transmission device, characterized in that: The device is applied to a second tunnel endpoint VTEP in a virtual extensible local area network VXLAN, and the device includes: A parsing module, configured to parse the vxlan message and obtain a vxlan header of the vxlan message when receiving a vxlan message sent by the first VTEP; The computing power acquisition module is used to obtain the first computing power data encapsulated in the reserved field of the vxlan header.
10. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the computing power information transmission method described in any one of claims 1-4 and / or the computing power information transmission method described in any one of claims 5-7.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the computing power information transmission method described in any one of claims 1 to 4 and / or the computing power information transmission method described in any one of claims 5 to 7.
Citation Information
Patent Citations
Service computing power information reporting method, service computing power information receiving method, server and data center gateway
CN113810205A
SRv6-based computing power routing system and method
CN114980250A
Method, device and equipment for transmitting computing power resource information
CN115514696A
Method and device for generating computing power resource topology and readable storage medium
CN116647456A
System and method for transmitting an alert using a virtual extensible LAN (VXLAN) tunneling mechanism
US20140348168A1
