CN117834494A - Method for BMGW-VIP cluster to actively detect BM - Google Patents

Method for BMGW-VIP cluster to actively detect BM Download PDF

Info

Publication number
CN117834494A
CN117834494A CN202311712747.5A CN202311712747A CN117834494A CN 117834494 A CN117834494 A CN 117834494A CN 202311712747 A CN202311712747 A CN 202311712747A CN 117834494 A CN117834494 A CN 117834494A
Authority
CN
China
Prior art keywords
bmgw
message
ping
ping message
vni
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311712747.5A
Other languages
Chinese (zh)
Inventor
孔伟政
肖威
邓权航
汪江波
谢龙
李明远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202311712747.5A priority Critical patent/CN117834494A/en
Publication of CN117834494A publication Critical patent/CN117834494A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a BMGW-VIP cluster active detection BM method, which comprises the following steps: detecting the IP of a BM in BMGW-VIP cluster members by using a ping program, and designating the VNI where the BM is located by using a-p parameter; the BMGW service detects the ping message and extracts the VNI as a VNI parameter of a BM VXLAN tunnel message package; the BMGW service modifies the source IP of the ping message according to the information queried by the VNI, fills the source IP into the ping message, encapsulates the VXLAN message by using the VNI where the BM is located and sends the VXLAN message to the LEAF node; the BMGW cluster members receive the replied ping message and forward the ping message to the cluster members of the source request; and the cluster member of the source request receives the ping message and sends the ping message to the kernel. The method solves the problem of BMGW-VIP active detection of BM and simplifies the operation and maintenance of BMGW clusters.

Description

Method for BMGW-VIP cluster to actively detect BM
Technical Field
The application relates to the technical field of IT and software development, in particular to a method for actively detecting BM by a BMGW-VIP cluster.
Background
The cloud server in the cloud computing service can be divided into a virtual cloud host and a physical cloud host of a virtual type, and is basic service in the cloud service, wherein the physical cloud host can be roughly divided into a common physical machine, also called a common bare metal server, namely a physical machine with an intelligent network card for short, and is called a BM for short. The bare metal server is hardware equipment with the characteristics of a traditional physical server, has a virtualized service function of a cloud computing technology, is a product of combining the advantages of hardware and software, and is essentially a server with the cloud computing service function and the physical equipment performance. The bare metal server enters the cloud through the bare metal gateway BMGW, and can be seamlessly connected and compatible with other cloud services provided by cloud manufacturers through the BMGW, such as various cloud products including VPC private networks, cloud database services, EIP, shared bandwidth, speed limit, cloud firewall and the like in network services.
The bare metal gateway BMGW provides various cloud services for the bare metal server cloud, and in order to ensure the cloud performance and reliability of the bare metal server, the bare metal gateway is generally composed of a plurality of devices, wherein a BMGW cluster provides services for the BMGW, and the space wing cloud provides access services for the BM in the resource pool mainly through the BMGW-VIP cluster and the BM access switch. As shown in fig. 2, the BM accesses a schematic diagram of a BMGW-VIP cluster. The management and control system is a system used for automating the bare metal of the nano tube, the gateway of the bare metal and the access switch in the cloud; the LEAF switch is an underlying network-related switching routing device; the other clusters are other traffic clusters within the cloud.
As shown in fig. 3, the BM gateway is located on the BMGW cluster, and the members of the cluster may be mutually backed up independently, and the BMGW-VIP cluster and the access switch are linked by a VIP-based VXLAN tunnel, where the BM server is located in a subnet gateway is located on the BMGW, and the BM server requests that the BM subnet gateway message reaches the BM cluster and is directly answered by the BM located.
The space wing cloud mainly provides access service for BMs in a resource pool through a BMGW-VIP cluster and a BM access switch, BMGW services of cluster members hide overlay related services such as VPC, so that the cluster members cannot actively detect an overlay BM host by using a general program ping.
Disclosure of Invention
The present application aims to solve, at least to some extent, one of the technical problems in the related art. Therefore, an object of the present application is to provide a method, a system, an electronic device, and a readable storage medium for actively detecting BM by a BMGW-VIP cluster, which solve the problem of actively detecting BM by a BMGW-VIP, and can multiplex a standard ping program in a BMGW-VIP cluster to detect an overlay BM, thereby simplifying the operation and maintenance of the BMGW cluster.
In a first aspect of the disclosure, a method for actively detecting BM by a BMGW-VIP cluster is provided, where the method includes:
detecting the IP of a BM in a BMGW-VIP cluster member by using a ping program, designating the VNI where the BM is located by using a-p parameter, and sending a request for detecting the BM to a BMGW service by using an ICMP by using the ping program;
the BMGW service receives the request of ICMP for detecting BM, detects a ping message, and extracts a VNI as a VNI parameter of a BM VXLAN tunnel message package;
the BMGW service modifies the source IP of the ping message and fills the source IP into the ping message according to the information queried by the VNI, encapsulates the VXLAN message by using the VNI where the BM is located and sends the VXLAN message to the LEAF node;
the BMGW cluster members receive the replied ping message and forward the ping message to the cluster members of the source request according to the data of the ping message;
and after receiving the ping message, the cluster member of the source request restores the ping message according to the data of the ping message and sends the ping message to the kernel.
The method for detecting the IP of the BM in the BMGW-VIP cluster member by using a ping program, designating the VNI where the BM is located by using a-p parameter, and sending a request for detecting the BM to a BMGW service by using ICMP by using the ping program comprises the following steps:
the general ping program can automatically fill the content of the BM-VXLAN-VNI into a ping message by the content filling parameter-p of the general ping program, and the specific form is as follows:
ping BM-IP-p BM-VXLAN-VNI-c xx-i yy。
the step of the BMGW service receiving the ICMP detecting BM request, detecting the ping message and extracting the VNI as the VNI parameter of the BM VXLAN tunnel message package includes:
the BMGW service receives a request of ICMP for detecting the BM;
detecting a ping message;
if the BM-VXLAN-VNI is stored in the ping message, extracting a BM-VXLAN-VNI field;
searching a sub-network of the BM by using a BM-VXLAN-VNI field, and acquiring a sub-network gateway IP and VXLAN information required by accessing the BM;
as the VNI parameter of the BM VXLAN tunnel message package.
The BMGW service modifies the source IP of the ping message and fills the source IP into the ping message according to the information queried by the VNI, and encapsulates the VXLAN message by using the VNI where the BM is located and sends the VXLAN message to the LEAF node, comprising the following steps:
the BMGW service inquires information according to the VNI;
replacing the source IP of the ping message by using the subnet gateway IP;
filling the source IP of the ping message into the ping message;
encapsulating the original ping message by using VXLAN encapsulation information;
and sending the encapsulated original ping message to a LEAF node.
The step of sending the encapsulated original ping message to a LEAF node includes:
BM receives the request of ping message and generates reply message;
the replying message is encapsulated by the BM access switch to the VXLAN;
forwarding to BMGW cluster members, wherein the cluster member detection ping reply message discovery is a reply message requesting for the subnet gateway IP;
if the BM real IP carried in the ping message is local, the BM real IP is used for replacing the destination IP of the inner layer ping message and sending the destination IP to the kernel, and if the BM real IP is not local, the BM real IP is used for replacing the destination IP of the VXLAN and sending the destination IP to the LEAF node.
The step that the BMGW cluster member receives the replied ping message and forwards the ping message to the cluster member of the source request according to the data of the ping message comprises the following steps:
the BMGW cluster member receives the replied ping message;
BMGW cluster members need to analyze received reply ping messages;
and forwarding the ping message to the cluster member of the source request according to the data of the ping message.
The BMGW-VIP cluster member of the source request receives the ping message, restores the ping message according to the ping message and sends the ping message to the kernel, and the method comprises the following steps:
the BMGW-VIP cluster member of the source request receives the ping message;
detecting the received ping message;
reducing the ping message according to the ping message;
and sending to the kernel.
In a second aspect of the disclosure, a system for actively probing BMs by a BMGW-VIP cluster is provided, where the system includes:
a sending request module, configured to detect an IP of a BM in a BMGW-VIP cluster member using a ping procedure, designate a VNI where the BM is located using a-p parameter, and send a request for detecting the BM to a BMGW service using ICMP by the ping procedure;
the BMGW service receives the request of ICMP for detecting BM, detects the ping message, and extracts the VNI as the VNI parameter of the BM VXLAN tunnel message package;
the modification module is used for modifying the source IP of the ping message and filling the source IP into the ping message according to the information queried by the VNI by the BMGW service, encapsulating the VXLAN message by using the VNI where the BM is located and sending the VXLAN message to the LEAF node;
the forwarding module is used for the BMGW cluster members to receive the replied ping message and forwarding the ping message to the cluster members of the source request according to the data of the ping message;
and the cluster members used for the source request receive the ping message, restore the ping message according to the data of the ping message and send the ping message to the kernel module.
In a third aspect of the disclosure, an electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement steps in a method for actively probing BMs by a BMGW-VIP cluster.
In a fourth aspect of the disclosure, a readable storage medium stores a computer program adapted to be loaded by a processor to perform steps in the method for actively probing BMs by a BMGW-VIP cluster.
Compared with the prior art, the BMGW-VIP cluster active BM detection method has the advantages that:
according to the method and the device, the VNI parameters are carried into the data of the request of the ICMP through the-p parameters of the ping program so as to carry the VNI system to the BMGW service, and the problem that the system program transmits the VPC VNI through the expansion parameters is solved;
the method comprises the steps of replacing a source IP of an ICMP request by using a subnet gateway IP so as to be better compatible with BM system setting, and restoring the ICMP reply request message according to data of the ICMP reply message;
the source IP of the message is carried by using the data of the ICMP request, so that cluster members confirm the source request node by detecting ping data, and then the header of the VXLAN message is modified again to convert the message into a source request node, thereby solving the problem of homologous and homologous;
the method solves the problem of BMGW-VIP active detection of BM, can multiplex standard ping program detection coverage BM in BMGW-VIP cluster, and simplifies operation and maintenance of BMGW cluster.
Drawings
Fig. 1 is a schematic diagram of a method for actively probing BMs by a BMGW-VIP cluster according to an embodiment of the present application;
fig. 2 is a schematic diagram of a BM access BMGW-VIP cluster according to an embodiment of the present application;
fig. 3 is a schematic diagram of a link between a BMGW-VIP-based cluster and an access switch through a VIP-based VXLAN tunnel according to an embodiment of the present application;
fig. 4 is a schematic diagram of a message forwarding process related to a BMGW service according to an embodiment of the present application;
fig. 5 is a schematic message diagram in a message forwarding process related to a BMGW service according to an embodiment of the present application;
fig. 6 is a schematic diagram of a system for actively probing BMs by a BMGW-VIP cluster according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer readable storage medium according to an embodiment of the present application.
Detailed Description
For a better understanding of the present application, various aspects of the present application will be described in more detail with reference to the accompanying drawings. It should be understood that these detailed description are merely illustrative of exemplary embodiments of the application and are not intended to limit the scope of the application in any way. Like reference numerals refer to like elements throughout the specification. The expression "and/or" includes any and all combinations of one or more of the associated listed items.
In the drawings, the size, dimensions and shape of elements have been slightly adjusted for convenience of description. The figures are merely examples and are not drawn to scale. As used herein, the terms "about," "approximately," and similar terms are used as terms of a table approximation, not as terms of a table degree, and are intended to account for inherent deviations in measured or calculated values that will be recognized by one of ordinary skill in the art. In addition, in this application, the order in which the processes of the steps are described does not necessarily indicate the order in which the processes occur in actual practice, unless explicitly defined otherwise or the context may be inferred.
It will be further understood that terms such as "comprises," "comprising," "includes," "including," "having," "contains," and/or "containing" are open-ended, rather than closed-ended, terms that specify the presence of the stated features, elements, and/or components, but do not preclude the presence or addition of one or more other features, elements, components, and/or groups thereof. Furthermore, when a statement such as "at least one of the following" appears after a list of features listed, it modifies the entire list of features rather than just modifying the individual elements in the list. Furthermore, when describing embodiments of the present application, use of "may" means "one or more embodiments of the present application. Also, the term "exemplary" is intended to refer to an example or illustration.
Unless otherwise defined, all terms (including engineering and technical terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In addition, embodiments and features of embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Example 1
Fig. 1 is a schematic diagram of a method for actively probing BMs by a BMGW-VIP cluster according to an embodiment of the present application, as shown in fig. 1, and the method for actively probing BMs by a BMGW-VIP cluster includes:
detecting the IP of a BM in a BMGW-VIP cluster member by using a ping program, designating the VNI where the BM is located by using a-p parameter, and sending a request for detecting the BM to a BMGW service by using an ICMP by using the ping program;
the BMGW-VIP cluster is a BMGW cluster based on VIP, the BMGW cluster is a VXLAN VTEP node of a BM cloud network, each running route protocol of BMGW cluster members establishes a neighbor relation with LEAF switches interconnected with the cluster to issue a cluster VIP address, and the VIP routes issued by the clusters form VIP equivalent routes on the LEAF switches, so that service traffic packaged by the VIP+VXLAN tunnel is searched for the equivalent routes on LEAF switches outside the cluster to be automatically loaded and shared on the cluster members, the VIP of the next cluster is acquired after the cluster member service is processed, and the VIP package VXLAN message is reused to send the service traffic to the subsequent cluster, thereby completing forwarding of tenant service. The BM access switch is a switch linked with the bare metal server, is a VTEP node of a VLXAN tunnel of the bare metal cloud, and the destination address of the VXLAN tunnel is the VIP address of the BMGW cluster.
Detecting the IP of the BM in the BMGW-VIP cluster member by using a ping program, designating the VNI where the BM is located by using a-p parameter, and sending a request for detecting the BM to a BMGW service by using an ICMP by using the ping program, wherein the method comprises the following steps:
the general ping program can automatically fill the content of the BM-VXLAN-VNI into a ping message by the content filling parameter-p of the general ping program, and the specific form is as follows:
ping BM-IP-p BM-VXLAN-VNI-c xx-i yy。
the BMGW service receives the request of ICMP for detecting BM, detects a ping message, and extracts a VNI as a VNI parameter of a BM VXLAN tunnel message package;
the BMGW service receives the ICMP detection BM request, detects the ping message, and extracts the VNI as the VNI parameter of the BM VXLAN tunnel message package, comprising the following steps:
the BMGW service receives a request of ICMP for detecting the BM;
detecting a ping message;
if the BM-VXLAN-VNI is stored in the ping message, extracting a BM-VXLAN-VNI field;
searching a sub-network of the BM by using a BM-VXLAN-VNI field, and acquiring a sub-network gateway IP and VXLAN information required by accessing the BM;
as the VNI parameter of the BM VXLAN tunnel message package.
Where ICMP is the protocol used by Ping, ping uses requests and replies in the ICMP protocol to perform functions, and when a Ping request is sent, the Ping tool creates and sends an ICMP request message to the target host, and then waits for the target host's ICMP reply response.
The BMGW service modifies the source IP of the ping message and fills the source IP into the ping message according to the information queried by the VNI, encapsulates the VXLAN message by using the VNI where the BM is located and sends the VXLAN message to the LEAF node;
the BMGW service modifies the source IP of the ping message and fills the source IP into the ping message according to the information queried by the VNI, and encapsulates the VXLAN message by using the VNI where the BM is located and sends the VXLAN message to the LEAF node, comprising the following steps:
the BMGW service inquires information according to the VNI;
replacing the source IP of the ping message by using the subnet gateway IP;
filling the source IP of the ping message into the ping message;
encapsulating the original ping message by using VXLAN encapsulation information;
and sending the encapsulated original ping message to a LEAF node.
The step of sending the encapsulated original ping message to a LEAF node includes:
BM receives the request of ping message and generates reply message;
the replying message is encapsulated by the BM access switch to the VXLAN;
forwarding to BMGW cluster members, wherein the cluster member detection ping reply message discovery is a reply message requesting for the subnet gateway IP;
if the BM real IP carried in the ping message is local, the BM real IP is used for replacing the destination IP of the inner layer ping message and sending the destination IP to the kernel, and if the BM real IP is not local, the BM real IP is used for replacing the destination IP of the VXLAN and sending the destination IP to the LEAF node.
The BMGW cluster members receive the replied ping message and forward the ping message to the cluster members of the source request according to the data of the ping message;
the step that the BMGW cluster member receives the replied ping message and forwards the ping message to the cluster member of the source request according to the data of the ping message comprises the following steps:
the BMGW cluster member receives the replied ping message;
BMGW cluster members need to analyze received reply ping messages;
and forwarding the ping message to the cluster member of the source request according to the data of the ping message.
And after receiving the ping message, the cluster member of the source request restores the ping message according to the data of the ping message and sends the ping message to the kernel.
The BMGW-VIP cluster member of the source request receives the ping message, restores the ping message according to the ping message and sends the ping message to the kernel, and the method comprises the following steps:
the BMGW-VIP cluster member of the source request receives the ping message;
detecting the received ping message;
reducing the ping message according to the ping message;
and sending to the kernel.
Example 2
Fig. 6 is a schematic diagram of a system for actively probing BMs by a BMGW-VIP cluster according to an embodiment of the present application, as shown in fig. 6, and the system includes:
a sending request module, configured to detect an IP of a BM in a BMGW-VIP cluster member using a ping procedure, designate a VNI where the BM is located using a-p parameter, and send a request for detecting the BM to a BMGW service using ICMP by the ping procedure;
the BMGW service receives the request of ICMP for detecting BM, detects the ping message, and extracts the VNI as the VNI parameter of the BM VXLAN tunnel message package;
the modification module is used for modifying the source IP of the ping message and filling the source IP into the ping message according to the information queried by the VNI by the BMGW service, encapsulating the VXLAN message by using the VNI where the BM is located and sending the VXLAN message to the LEAF node;
the forwarding module is used for the BMGW cluster members to receive the replied ping message and forwarding the ping message to the cluster members of the source request according to the data of the ping message;
and the cluster members used for the source request receive the ping message, restore the ping message according to the data of the ping message and send the ping message to the kernel module.
Example 3
Fig. 4 is a schematic diagram of a BMGW service related packet forwarding procedure according to an embodiment of the present application, where, as shown in fig. 4, the BMGW service related packet forwarding procedure includes:
after receiving a ping message through a VETH-BMGW interface, the BMGW of the BMGW member 1 detects the content of the ping message, if the BM-VXLAN-VNI is stored in the ping message, the field is extracted, a sub-network of the BM is searched by using the BM-VXLAN-VNI field, the sub-network gateway IP and VXLAN information required by the BM access are obtained, the source IP of the ping message is replaced by the sub-network gateway IP, the ping message is filled with the source IP of the message, the VXLAN encapsulation information is used for encapsulating the original ping message, after receiving the ping request of the BM, a reply message is generated, after the BM is accessed to the VXLAN by a BM switch, the cluster member detects that the ping reply is found to be the reply message requesting the sub-network gateway IP, if the real IP of the BM carried in the ping message is to the local, the target IP of the internal ping message is replaced by the real IP of the BM and is sent to the kernel; if the content is not the local, the BM real IP is used for replacing the destination IP of the VXLAN and sending the destination IP to the LEAF node, the LEAF node forwards the message to the real member node, the cluster member node receives the packet and then detects, and after the content of the ping reply belongs to the local, the BM real IP is used for replacing the destination IP of the inner layer ping message and sending the message to the kernel.
As shown in fig. 5, the detailed steps of message forwarding related to BMGW service implementation are as follows:
receiving a ping request message, namely a request message 1, wherein the message source IP is the real IP of the BMGW, the target IP is the IP of the target BM, and the content is filled by-p;
the BMGW service extracts the VNI information, searches the subnet according to the content of the VNI information, and acquires the subnet gateway IP and VXLAN encapsulation information;
the BMGW service uses a subnet gateway IP to replace a source IP of the request message 1, fills a BM real IP into data, and generates a request message 2;
the BMGW service encapsulates the request message 2 by using VXLAN information to generate a request message 3;
the BMGW service receives the reply message reply of the BM and replies the reply message;
judging according to the BM real IP of the reply message, if the ping message is not the reply message requested by the local machine, replacing the destination IP of the outer layer of the VXLAN with the BM real IP, and replying a message 2;
and decapsulating the reply message 2, modifying the target IP into the BM real IP according to the filling content of the reply message, generating a reply message 3, and then sending the reply message to the Linux kernel.
Example 4
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 7, an electronic device 500 is also provided in accordance with yet another aspect of the present application. The electronic device 500 may include one or more processors and one or more memories. Wherein the memory has stored therein computer readable code which, when executed by the one or more processors, may perform a method for actively probing BMs by a BMGW-VIP cluster.
The method or system according to embodiments of the present application may also be implemented by means of the architecture of the electronic device shown in fig. 7. As shown in fig. 7, the electronic device 500 may include a bus 501, one or more CPUs 502, a Read Only Memory (ROM) 503, a Random Access Memory (RAM) 504, a communication port 505 connected to a network, an input/output component 506, a hard disk 507, and the like. A storage device in the electronic device 500, such as a ROM503 or a hard disk 507, may store a method for actively probing BMs by a BMGW-VIP cluster provided herein. A method for actively probing BMs by a BMGW-VIP cluster may, for example, include: detecting the IP of a BM in a BMGW-VIP cluster member by using a ping program, designating the VNI where the BM is located by using a-p parameter, and sending a request for detecting the BM to a BMGW service by using an ICMP by using the ping program; the BMGW service receives the request of ICMP for detecting BM, detects a ping message, and extracts a VNI as a VNI parameter of a BM VXLAN tunnel message package; the BMGW service modifies the source IP of the ping message and fills the source IP into the ping message according to the information queried by the VNI, encapsulates the VXLAN message by using the VNI where the BM is located and sends the VXLAN message to the LEAF node; the BMGW cluster members receive the replied ping message and forward the ping message to the cluster members of the source request according to the data of the ping message; and after receiving the ping message, the cluster member of the source request restores the ping message according to the data of the ping message and sends the ping message to the kernel. Further, the electronic device 500 may also include a user interface 508. Of course, the architecture shown in fig. 7 is merely exemplary, and one or more components of the electronic device shown in fig. 7 may be omitted as may be practical in implementing different devices.
Example 5
Fig. 8 is a schematic structural diagram of a computer readable storage medium according to an embodiment of the present application. As shown in fig. 8, is a computer-readable storage medium 600 according to one embodiment of the present application. Computer readable storage medium 600 has stored thereon computer readable instructions. When the computer readable instructions are executed by the processor, a method for actively probing BMs by a BMGW-VIP cluster according to an embodiment of the present application described with reference to the above figures may be performed. Storage medium 600 includes, but is not limited to, for example, volatile memory and/or nonvolatile memory. Volatile memory can include, for example, random Access Memory (RAM), cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like.
It should be appreciated that the methods and apparatus, devices, and apparatus of the present application may be implemented in a number of ways. For example, the methods and apparatus, devices of the present application may be implemented by software, hardware, firmware, or any combination of software, hardware, firmware. The above-described sequence of steps for the method is for illustration only, and the steps of the method of the present application are not limited to the sequence specifically described above unless specifically stated otherwise. Furthermore, in some embodiments, the present application may also be implemented as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present application. Thus, the present application also covers a recording medium storing a program for executing the method according to the present application.
In addition, in the foregoing technical solutions provided in the embodiments of the present application, parts consistent with implementation principles of corresponding technical solutions in the prior art are not described in detail, so that redundant descriptions are avoided.
The purpose, technical scheme and beneficial effects of the invention are further described in detail in the detailed description. It is to be understood that the above description is only of specific embodiments of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. The method for actively detecting the BMs by the BMGW-VIP cluster is characterized by comprising the following steps:
detecting the IP of a BM in a BMGW-VIP cluster member by using a ping program, designating the VNI where the BM is located by using a-p parameter, and sending a request for detecting the BM to a BMGW service by using an ICMP by using the ping program;
the BMGW service receives the request of ICMP for detecting BM, detects a ping message, and extracts a VNI as a VNI parameter of a BM VXLAN tunnel message package;
the BMGW service modifies the source IP of the ping message and fills the source IP into the ping message according to the information queried by the VNI, encapsulates the VXLAN message by using the VNI where the BM is located and sends the VXLAN message to the LEAF node;
the BMGW cluster members receive the replied ping message and forward the ping message to the cluster members of the source request according to the data of the ping message;
and after receiving the ping message, the cluster member of the source request restores the ping message according to the data of the ping message and sends the ping message to the kernel.
2. The method for actively probing BMs of the BMGW-VIP cluster according to claim 1, wherein the probing of the BMs IP in the BMGW-VIP cluster member using a ping procedure, designating the VNI in which the BM is located using a-p parameter, and the sending of the request for probing the BM to the BMGW by the ping procedure using ICMP includes:
the general ping program can automatically fill the content of the BM-VXLAN-VNI into a ping message by the content filling parameter-p of the general ping program, and the specific form is as follows:
ping BM-IP-p BM-VXLAN-VNI-c xx-i yy。
3. the method for actively probing BMs of a BMGW-VIP cluster according to claim 1, wherein the step of the BMGW service receiving an ICMP probing BM request, detecting a ping message, and extracting a VNI as a VNI parameter of a BM VXLAN tunnel packet includes:
the BMGW service receives a request of ICMP for detecting the BM;
detecting a ping message;
if the BM-VXLAN-VNI is stored in the ping message, extracting a BM-VXLAN-VNI field;
searching a sub-network of the BM by using a BM-VXLAN-VNI field, and acquiring a sub-network gateway IP and VXLAN information required by accessing the BM;
as the VNI parameter of the BM VXLAN tunnel message package.
4. The method for actively probing BMs by a BMGW-VIP cluster according to claim 1, wherein the step of the BMGW service modifying a source IP of a ping message and filling the source IP into the ping message according to VNI query information, encapsulating a VXLAN message by using a VNI where the BM is located, and sending the VXLAN message to a LEAF node includes:
the BMGW service inquires information according to the VNI;
replacing the source IP of the ping message by using the subnet gateway IP;
filling the source IP of the ping message into the ping message;
encapsulating the original ping message by using VXLAN encapsulation information;
and sending the encapsulated original ping message to a LEAF node.
5. The method for actively probing BMs of a BMGW-VIP cluster according to claim 4, wherein the step of sending the encapsulated original ping message to a LEAF node includes:
BM receives the request of ping message and generates reply message;
the replying message is encapsulated by the BM access switch to the VXLAN;
forwarding to BMGW cluster members, wherein the cluster member detection ping reply message discovery is a reply message requesting for the subnet gateway IP;
if the BM real IP carried in the ping message is local, the BM real IP is used for replacing the destination IP of the inner layer ping message and sending the destination IP to the kernel, and if the BM real IP is not local, the BM real IP is used for replacing the destination IP of the VXLAN and sending the destination IP to the LEAF node.
6. The method for actively detecting BM of a BMGW-VIP cluster according to claim 1, wherein the step of forwarding the ping message to the cluster member of the source request according to the data of the ping message, which is received by the BMGW cluster member, includes:
the BMGW cluster member receives the replied ping message;
BMGW cluster members need to analyze received reply ping messages;
and forwarding the ping message to the cluster member of the source request according to the data of the ping message.
7. The method for actively detecting BM of a BMGW-VIP cluster according to claim 1, wherein the step of receiving a ping message by a BMGW-VIP cluster member of the source request, restoring the ping message according to the ping message, and sending the ping message to the kernel includes:
the BMGW-VIP cluster member of the source request receives the ping message;
detecting the received ping message;
reducing the ping message according to the ping message;
and sending to the kernel.
8. A system for actively probing BMs for a BMGW-VIP cluster, the system comprising:
a sending request module, configured to detect an IP of a BM in a BMGW-VIP cluster member using a ping procedure, designate a VNI where the BM is located using a-p parameter, and send a request for detecting the BM to a BMGW service using ICMP by the ping procedure;
the BMGW service receives the request of ICMP for detecting BM, detects the ping message, and extracts the VNI as the VNI parameter of the BM VXLAN tunnel message package;
the modification module is used for modifying the source IP of the ping message and filling the source IP into the ping message according to the information queried by the VNI by the BMGW service, encapsulating the VXLAN message by using the VNI where the BM is located and sending the VXLAN message to the LEAF node;
the forwarding module is used for the BMGW cluster members to receive the replied ping message and forwarding the ping message to the cluster members of the source request according to the data of the ping message;
and the cluster members used for the source request receive the ping message, restore the ping message according to the data of the ping message and send the ping message to the kernel module.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program implementing the steps in a method for actively probing BMs for a BMGW-VIP cluster according to any of claims 1-7.
10. A readable storage medium, characterized in that it stores a computer program adapted to be loaded by a processor to perform a method for actively probing BMs by a BMGW-VIP cluster according to any of claims 1-7.
CN202311712747.5A 2023-12-13 2023-12-13 Method for BMGW-VIP cluster to actively detect BM Pending CN117834494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311712747.5A CN117834494A (en) 2023-12-13 2023-12-13 Method for BMGW-VIP cluster to actively detect BM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311712747.5A CN117834494A (en) 2023-12-13 2023-12-13 Method for BMGW-VIP cluster to actively detect BM

Publications (1)

Publication Number Publication Date
CN117834494A true CN117834494A (en) 2024-04-05

Family

ID=90508865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311712747.5A Pending CN117834494A (en) 2023-12-13 2023-12-13 Method for BMGW-VIP cluster to actively detect BM

Country Status (1)

Country Link
CN (1) CN117834494A (en)

Similar Documents

Publication Publication Date Title
CN106998286B (en) VX L AN message forwarding method and device
CN113326228B (en) Message forwarding method, device and equipment based on remote direct data storage
CN111193773B (en) Load balancing method, device, equipment and storage medium
CN113596184A (en) Hybrid cloud system, gatekeeper, network access method, and storage medium
CN101997785A (en) Gateway system and control method
CN110213148B (en) Data transmission method, system and device
CN112671628A (en) Business service providing method and system
CN113891396B (en) Data packet processing method and device, computer equipment and storage medium
CN113285926B (en) Honey pot trapping method and device for power monitoring system and computer equipment
CN112583618B (en) Method, device and computing equipment for providing network service for business
CN113556413B (en) Message processing method and device
US9344363B2 (en) Information processing system, relay device, information processing device, and information processing method
CN112671938A (en) Business service providing method and system and remote acceleration gateway
CN107733765B (en) Mapping method, system and related equipment
CN114500453A (en) Identification analysis method and device
CN111565237B (en) Network parameter determination method and device, computer equipment and storage medium
WO2021139568A1 (en) Method and apparatus for sending response message, computing device and storage medium
CN108011801B (en) Data transmission method, equipment, device and system
CN113163024A (en) Message processing method, server and storage medium
WO2023186109A1 (en) Node access method and data transmission system
CN114785733B (en) Method for realizing session tracing in cross-VPC network flow forwarding
CN111600929A (en) Transmission line detection method, route strategy generation method and proxy server
CN117834494A (en) Method for BMGW-VIP cluster to actively detect BM
CN103685367A (en) Offline download system and offline download method
CN110875884B (en) Traffic migration system, data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination