CN114448934B - Method and device for high availability of floating internet protocol address - Google Patents

Method and device for high availability of floating internet protocol address Download PDF

Info

Publication number
CN114448934B
CN114448934B CN202111674549.5A CN202111674549A CN114448934B CN 114448934 B CN114448934 B CN 114448934B CN 202111674549 A CN202111674549 A CN 202111674549A CN 114448934 B CN114448934 B CN 114448934B
Authority
CN
China
Prior art keywords
address
virtual
internet protocol
network
interface
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.)
Active
Application number
CN202111674549.5A
Other languages
Chinese (zh)
Other versions
CN114448934A (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111674549.5A priority Critical patent/CN114448934B/en
Publication of CN114448934A publication Critical patent/CN114448934A/en
Application granted granted Critical
Publication of CN114448934B publication Critical patent/CN114448934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The invention provides a method, a system, a device and a storage medium with high availability of floating internet protocol addresses, wherein the method comprises the following steps: in response to network failure, invoking an interface of qga to delete the existing static route, unbinding the floating internet protocol address and the service network card, selecting a new available service network, and creating a new service network card on the cloud host; setting an external network to which the floating internet protocol address belongs as an external gateway of a virtual router, and designating a fixed internet protocol address as a gateway address; binding a virtual network to which the new service network card on the cloud host belongs to the virtual router, and designating a fixed internet protocol address as a virtual interface address; and invoking an interface of qga to create a new static route within the virtual machine based on the virtual interface address and to monitor network connectivity at a timed time. The invention can flexibly release the binding relation between the floating IP and the fault network card and establish the binding relation between the floating IP and the new network card.

Description

Method and device for high availability of floating internet protocol address
Technical Field
The present invention relates to the field of cloud platforms, and in particular, to a method, system, device, and storage medium for high availability of floating internet protocol addresses.
Background
The development of cloud computing is based on the new brilliance, the industrialization development of various industries is vigorous, and various fields such as government affairs, medical treatment, education and the like obtain very deep benefits from the brilliance, so that cloud is gradually a trend. Cloud computing is classified into a number of categories, where IaaS (Infrastructure as a Service ) refers to providing IT (Information Technology, information technology) infrastructure as a service externally through a network, in which service model users do not build a data center by themselves, but use infrastructure services including servers, storage and networks, etc. in a leased manner, iaaS has a similarity to traditional host hosting, but IaaS has a strong advantage in terms of flexibility, extensibility and cost of services, virtualization often serves as a basis for cloud computing, and virtualization separates resources and services from physical infrastructure delivery environments, by which multiple virtual systems can be created within a single physical system, and virtualized driving factors come from the merging of servers, which can provide an organization with efficiency and potential cost savings.
In the cloud platform, many users can achieve the purpose of providing various services by creating a cloud host and deploying a service system in the cloud host, which is generally the conventional operation of cloud on a service, and the process can depend on various cloud resources including computing, storage and networks in the cloud platform, and all organizations are closely cooperated to provide a guarantee for the services. In terms of network, the service can achieve the effect of being accessible by the external network, and some network cloud resources are required to be configured in the cloud platform to open the communication between the cloud host in the cloud and the external internet, so that the open network link becomes a channel for providing the service for the system and enabling the user to participate in interaction.
Stability and reliability are usually the criteria for measuring the quality of a system, and are often not problematic in any link, especially for service systems with higher requirements. However, the network environment is not invariable, and cloud resources configured in the cloud environment are all round, but if one of them fails, the whole link is definitely paralyzed, if no effective evading measures are taken, the problem cannot be effectively processed due to the fault development, so that service interruption or more serious hidden danger is caused, and very bad influence is inevitably generated, so that it is extremely valuable how to actively defend in advance, and how to effectively process the problem in time.
In a cloud environment based on an OpenStack platform, a cloud host is widely applied as a computing resource, and a user deploys a service system in a cloud and configures various service strategies in the cloud by taking the cloud host as a center. It is not enough that the cloud host provides the service only by the one independent individual, the cloud host provides the cloud computing service, the user obtains the service from the cloud host, and a stable network link is needed in the process to enable the user to interact with the cloud computing resource. However, the network resources in the cloud can not always function stably from the start of creation, and the health state of the network resources cannot be permanently guaranteed, although the risk is controllable, the possibility of unexpected situations can be effectively low, but various problems such as functional damage of a virtual network card, network failure and the like cannot be absolutely avoided, and if a mode can be found to realize automatic recovery of network communication, the reliability of the whole system is greatly increased.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, a system, a computer device, and a computer readable storage medium for high availability of a floating IP address, which can flexibly release the binding relationship between an allocated floating IP and a failed network card, reestablish a new network card and bind the floating IP and the new network card, and automatically change a static route in a cloud host to enable a network message to switch transmission guidance to avoid secondary failure, and also enable a user to obtain automatic execution of an adaptive necessary operation related to the change of the network environment in a custom script manner.
Based on the above object, an aspect of the embodiments of the present invention provides a method for floating internet protocol address high availability, including the following steps: in response to network failure, invoking an interface of qga to delete the existing static route, unbinding the floating internet protocol address and the service network card, selecting a new available service network, and creating a new service network card on the cloud host; setting an external network to which the floating internet protocol address belongs as an external gateway of a virtual router, and designating a fixed internet protocol address as a gateway address; binding a virtual network to which the new service network card on the cloud host belongs to the virtual router, and designating a fixed internet protocol address as a virtual interface address; and invoking an interface of qga to create a new static route within the virtual machine based on the virtual interface address and to monitor network connectivity at a timed time.
In some implementations, the interface of call qga creating a new static route within the virtual machine from the virtual interface address includes: setting the destination address of the static route to a network segment comprising all addresses.
In some implementations, the interface of call qga creating a new static route within the virtual machine from the virtual interface address includes: setting the next-hop address of the static route as a virtual interface address appointed when the virtual network to which the service network card belongs is bound to a virtual router.
In some implementations, the interface of call qga creating a new static route within the virtual machine from the virtual interface address includes: and setting the network card through which the static route passes as a service network card bound by the floating internet protocol address.
In another aspect of the embodiments of the present invention, there is provided a system with a floating ip address that is highly available, including: a deletion module configured to respond to network failure, call an interface of qga to delete an existing static route, unbind a floating internet protocol address and a service network card, select a new available service network, and create a new service network card on a cloud host; a gateway module configured to set an external network to which the floating internet protocol address belongs as an external gateway of a virtual router, and designate a fixed internet protocol address as a gateway address; a binding module configured to bind a virtual network to which the new service network card on the cloud host belongs to the virtual router, and designate a fixed internet protocol address as a virtual interface address; and a creation module configured to invoke the interface of qga to create a new static route within the virtual machine based on the virtual interface address and to periodically monitor network connectivity.
In some embodiments, the creation module is configured to: setting the destination address of the static route to a network segment comprising all addresses.
In some embodiments, the creation module is configured to: setting the next-hop address of the static route as a virtual interface address appointed when the virtual network to which the service network card belongs is bound to a virtual router.
In some embodiments, the creation module is configured to: and setting the network card through which the static route passes as a service network card bound by the floating internet protocol address.
In yet another aspect of the embodiment of the present invention, there is also provided a computer apparatus, including: at least one processor; and a memory storing computer instructions executable on the processor, which when executed by the processor, perform the steps of the method as above.
In yet another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method steps as described above.
The invention has the following beneficial technical effects: the distributed floating IP can be flexibly released from the binding relation with the fault network card, a new network card is re-established, the floating IP is bound with the new network card, meanwhile, the static route in the cloud host can be automatically changed, so that the network message can be switched to transmit and guide to avoid secondary non-communication, and the adaptive necessary operation related to the change of the network environment can be automatically executed in a user-defined script mode.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an embodiment of a method for floating IP address high availability provided by the present invention;
FIG. 2 is a schematic diagram of an embodiment of a floating IP address high availability system provided by the present invention;
FIG. 3 is a schematic diagram of a hardware architecture of an embodiment of a floating IP address high availability computer device provided by the present invention;
FIG. 4 is a schematic diagram of an embodiment of a floating IP address high availability computer storage medium provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
It should be noted that, in the embodiments of the present invention, all the expressions "first" and "second" are used to distinguish two entities with the same name but different entities or different parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present invention, and the following embodiments are not described one by one.
In a first aspect of the embodiments of the present invention, an embodiment of a method for floating internet protocol address high availability is presented. Fig. 1 is a schematic diagram of an embodiment of a method for floating internet protocol address high availability provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, responding to network failure, calling an interface of qga to delete the existing static route, unbinding a floating internet protocol address and a service network card, selecting a new available service network, and creating a new service network card on a cloud host;
s2, setting an external network to which the floating IP address belongs as an external gateway of a virtual router, and designating a fixed IP address as a gateway address;
s3, binding a virtual network to which the new service network card on the cloud host belongs to the virtual router, and designating a fixed Internet protocol address as a virtual interface address; and
s4, calling an interface of qga to create a new static route in the virtual machine according to the virtual interface address, and monitoring network connectivity at fixed time.
OpenStack: a cloud computing management tool, which is used to manage the resources (cloud hosts, storage, networks, etc.) of the IaaS cloud. qga: a common application program running inside a virtual machine (an executable file name defaults to QEMU-ga, a service name defaults to QEMU-gust-agent) aims to realize a way of interaction between a host machine and the virtual machine, and the way is independent of a network and depends on a virtual-service (default preferred way) or an isa-service, while the QEMU provides a channel for simulation and data exchange of a serial device, and finally, a serial device (inside the virtual machine) and an unix socket file (on the host machine) are presented.
The invention aims to solve the problem that when a systematic network is not feasible, how to ensure high availability characteristics by supporting an automation strategy of built-in scripts, needing no manual intervention of operation and maintenance personnel and automatically recovering network connectivity.
The focus of the embodiments of the present invention is how to solve the problem of network interruption that has occurred, that is, there must be some cloud host deployed and each configuration already in effect before this time, the service has been operated without error, and then a network failure occurs, which is the moment when the embodiments of the present invention need to function. Whether the cloud host is initialized and deployed or configured, or a series of operations to be performed by the automation strategy in the embodiment of the invention, all around are virtual cloud resources on the cloud platform, and users deploy the cloud host and provide services, so that network configuration of the cloud host is needed to be completed first.
Planning and deploying an external network which is open to a public network, a standby service network used in a plurality of clouds and a plurality of virtual routers in a cloud platform; an unused floating IP (Internet Protocol ) is assigned with the selected external network designation, which is a private service address for future use in providing services. And selecting a certain service network and creating a service network card on the cloud host.
Setting an external network to which the floating IP belongs as an external gateway of a certain virtual router, and designating a certain fixed IP as a gateway address; binding the virtual network to which the cloud host network card belongs to the same virtual router, and designating the fixed internet protocol address as a virtual interface address. Thus, the virtual router communicates with the external network and the service network, and at this time, binds the floating IP to the service network card on the virtual machine.
Calling the interface of qga, creating a static route in the virtual machine, so that a network message can be transmitted from the service network card in the transmission process, forwarded by the virtual router and then enters the public network through the floating IP.
In some implementations, the interface of call qga creating a new static route within the virtual machine from the virtual interface address includes: setting the destination address of the static route to a network segment comprising all addresses.
In some implementations, the interface of call qga creating a new static route within the virtual machine from the virtual interface address includes: setting the next-hop address of the static route as a virtual interface address appointed when the virtual network to which the service network card belongs is bound to a virtual router.
In some implementations, the interface of call qga creating a new static route within the virtual machine from the virtual interface address includes: and setting the network card through which the static route passes as a service network card bound by the floating internet protocol address.
The static route comprises the following components: the destination address is a network segment comprising all addresses; the next-hop address is a virtual interface address appointed when the virtual network to which the service network card belongs is bound to a virtual router; the network card passed through is the virtual machine service network card bound by the floating IP.
And in response to network failure, calling an interface of qga to delete the existing static route, unbinding the floating internet protocol address and the service network card, selecting a new available service network, and creating a new service network card on the cloud host. Periodically monitoring network connectivity, and when the network connectivity is not enabled, calling an interface of qga to delete the static route created by qga in the cloud host; the floating IP is unbound with the virtual network card of the original cloud host; and automatically selecting another available service network, and creating a new service network card on the cloud host.
Then the steps are executed again, namely: setting an external network to which the floating internet protocol address belongs as an external gateway of a virtual router, and designating a fixed internet protocol address as a gateway address; binding a virtual network to which the new service network card on the cloud host belongs to the virtual router, and designating a fixed internet protocol address as a virtual interface address; and invoking an interface of qga to create a new static route within the virtual machine based on the virtual interface address and to monitor network connectivity at a timed time.
The edited script is used for directionally updating the system configuration or the network guidance of the service system through calling qga interfaces, and other customized configuration changes which are changed through the script are carried out; and recovering the automatically created service network card which is not used any more, and relieving the occupation of resources.
And an external network, an intra-cloud service network and a virtual router are planned in the cloud platform and are all required by the service. The virtual machine network card binding floating IP is a basic operation in the cloud platform, the embodiment of the invention does not describe in detail aiming at independent binding procedures, the embodiment of the invention focuses on adopting automatic service control, ensuring that the network is automatically switched under the condition of zero intervention of a user, integrating a monitoring technology for judging the network connectivity, integrating a proxy mechanism for updating the new guidance of the network message in the cloud host, supporting the implantation and execution of a system custom script, ensuring the network communication after the floating IP regains binding, and having extremely high availability characteristic.
It should be noted that, if the static route is not redefined inside the cloud host, the network packet cannot be directed from the cloud host to the public network, i.e., the network connectivity is lost, without talking about the high availability of the floating IP. By writing customized server instructions in custom embedded scripts, a business system running in an operating system can automatically adapt to new changes in the whole process, and each time the automatic switching of network abnormality is monitored, the scripts are loaded and then the cloud host is triggered to execute through qga. The script is independently compiled for a certain cloud host by an operation and maintenance user according to specific needs, when the floating IP is manually bound to the cloud host for the first time, whether the embodiment of the invention achieves the highly available effect or not can be selected, if the floating IP is selected, the script is bound together in the process, and the bound script has the possibility of being used at any time. The whole set of processes of the embodiment of the invention are under the automatic operation process, and are mutually buckled, so that manual intervention of a user is not required.
The embodiment of the invention can flexibly release the binding relation between the allocated floating IP and the fault network card, reestablish a new network card and bind the floating IP with the new network card, simultaneously can automatically change the static route in the cloud host so that the network message can switch the transmission guide to avoid secondary non-communication, and can also allow a user to obtain the automatic execution of the adaptive necessary operation related to the change of the network environment in a self-defined script mode.
It should be noted that, the steps in the embodiments of the above method for floating ip address high availability may be intersected, replaced, added and subtracted, so that these methods for reasonably permutation and combination transformation to floating ip address high availability shall also fall within the protection scope of the present invention, and shall not limit the protection scope of the present invention to the embodiments.
Based on the above object, a second aspect of the embodiments of the present invention proposes a system with a floating ip address that is highly available. As shown in fig. 2, the system 200 includes the following modules: a deletion module configured to respond to network failure, call an interface of qga to delete an existing static route, unbind a floating internet protocol address and a service network card, select a new available service network, and create a new service network card on a cloud host; a gateway module configured to set an external network to which the floating internet protocol address belongs as an external gateway of a virtual router, and designate a fixed internet protocol address as a gateway address; a binding module configured to bind a virtual network to which the new service network card on the cloud host belongs to the virtual router, and designate a fixed internet protocol address as a virtual interface address; and a creation module configured to invoke the interface of qga to create a new static route within the virtual machine based on the virtual interface address and to periodically monitor network connectivity.
In some embodiments, the creation module is configured to: setting the destination address of the static route to a network segment comprising all addresses.
In some embodiments, the creation module is configured to: setting the next-hop address of the static route as a virtual interface address appointed when the virtual network to which the service network card belongs is bound to a virtual router.
In some embodiments, the creation module is configured to: and setting the network card through which the static route passes as a service network card bound by the floating internet protocol address.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, responding to network failure, calling an interface of qga to delete the existing static route, unbinding a floating internet protocol address and a service network card, selecting a new available service network, and creating a new service network card on a cloud host; s2, setting an external network to which the floating IP address belongs as an external gateway of a virtual router, and designating a fixed IP address as a gateway address; s3, binding a virtual network to which the new service network card on the cloud host belongs to the virtual router, and designating a fixed Internet protocol address as a virtual interface address; and S4, calling an interface of qga to create a new static route in the virtual machine according to the virtual interface address, and monitoring network connectivity at fixed time.
In some implementations, the interface of call qga creating a new static route within the virtual machine from the virtual interface address includes: setting the destination address of the static route to a network segment comprising all addresses.
In some implementations, the interface of call qga creating a new static route within the virtual machine from the virtual interface address includes: setting the next-hop address of the static route as a virtual interface address appointed when the virtual network to which the service network card belongs is bound to a virtual router.
In some implementations, the interface of call qga creating a new static route within the virtual machine from the virtual interface address includes: and setting the network card through which the static route passes as a service network card bound by the floating internet protocol address.
As shown in fig. 3, a hardware structure of an embodiment of the above-mentioned floating ip address-capable computer device according to the present invention is schematically shown.
Taking the example of the device shown in fig. 3, a processor 301 and a memory 302 are included in the device.
The processor 301 and the memory 302 may be connected by a bus or otherwise, for example in fig. 3.
The memory 302 serves as a non-volatile computer readable storage medium, and may be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions/modules corresponding to the method in which the floating internet protocol address is highly available in the embodiments of the present application. The processor 301 executes various functional applications of the server and data processing, i.e. implements a method of floating internet protocol address high availability, by running non-volatile software programs, instructions and modules stored in the memory 302.
Memory 302 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of a method that is highly available with a floating internet protocol address, etc. In addition, memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 302 may optionally include memory located remotely from processor 301, which may be connected to the local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Computer instructions 303 corresponding to one or more floating ip address high availability methods are stored in memory 302 that, when executed by processor 301, perform the floating ip address high availability method of any of the method embodiments described above.
Any one of the embodiments of the computer device that performs the above-described method of floating internet protocol address high availability may achieve the same or similar effects as any of the previously described method embodiments that correspond thereto.
The invention also provides a computer readable storage medium storing a computer program which when executed by a processor performs a method of floating internet protocol address high availability.
As shown in fig. 4, a schematic diagram of an embodiment of the above-mentioned floating ip address-high available computer storage medium is provided in the present invention. Taking a computer storage medium as shown in fig. 4 as an example, the computer readable storage medium 401 stores a computer program 402 that when executed by a processor performs the above method.
Finally, it should be noted that, as will be appreciated by those skilled in the art, implementing all or part of the above-described methods according to the embodiments of the present invention may be implemented by a computer program for instructing the relevant hardware, and the program for a method with a high availability of floating internet protocol addresses may be stored in a computer readable storage medium, and the program may include, when executed, the steps of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (RAM), or the like. The computer program embodiments described above may achieve the same or similar effects as any of the method embodiments described above.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.

Claims (10)

1. A method for floating internet protocol address high availability, comprising the steps of:
in response to network failure, invoking an interface of qga to delete the existing static route, unbinding the floating internet protocol address and the service network card, selecting a new available service network, and creating a new service network card on the cloud host;
setting an external network to which the floating internet protocol address belongs as an external gateway of a virtual router, and designating a fixed internet protocol address as a gateway address;
binding a virtual network to which the new service network card on the cloud host belongs to the virtual router, and designating a fixed internet protocol address as a virtual interface address; and
the interface of call qga creates a new static route within the virtual machine from the virtual interface address and periodically monitors network connectivity.
2. The method of claim 1, wherein the calling qga interface creates a new static route within a virtual machine from the virtual interface address comprises:
setting the destination address of the static route to a network segment comprising all addresses.
3. The method of claim 1, wherein the calling qga interface creates a new static route within a virtual machine from the virtual interface address comprises:
setting the next-hop address of the static route as a virtual interface address appointed when the virtual network to which the service network card belongs is bound to a virtual router.
4. The method of claim 1, wherein the calling qga interface creates a new static route within a virtual machine from the virtual interface address comprises:
and setting the network card through which the static route passes as a service network card bound by the floating internet protocol address.
5. A system for floating internet protocol address high availability, comprising:
a deletion module configured to respond to network failure, call an interface of qga to delete an existing static route, unbind a floating internet protocol address and a service network card, select a new available service network, and create a new service network card on a cloud host;
a gateway module configured to set an external network to which the floating internet protocol address belongs as an external gateway of a virtual router, and designate a fixed internet protocol address as a gateway address;
a binding module configured to bind a virtual network to which the new service network card on the cloud host belongs to the virtual router, and designate a fixed internet protocol address as a virtual interface address; and
and the creation module is configured to call the interface of qga to create a new static route in the virtual machine according to the virtual interface address and monitor the network connectivity at fixed time.
6. The system of claim 5, wherein the creation module is configured to:
setting the destination address of the static route to a network segment comprising all addresses.
7. The system of claim 5, wherein the creation module is configured to:
setting the next-hop address of the static route as a virtual interface address appointed when the virtual network to which the service network card belongs is bound to a virtual router.
8. The system of claim 5, wherein the creation module is configured to:
and setting the network card through which the static route passes as a service network card bound by the floating internet protocol address.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, which when executed by the processor, perform the steps of the method of any one of claims 1-4.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any of claims 1-4.
CN202111674549.5A 2021-12-31 2021-12-31 Method and device for high availability of floating internet protocol address Active CN114448934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111674549.5A CN114448934B (en) 2021-12-31 2021-12-31 Method and device for high availability of floating internet protocol address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111674549.5A CN114448934B (en) 2021-12-31 2021-12-31 Method and device for high availability of floating internet protocol address

Publications (2)

Publication Number Publication Date
CN114448934A CN114448934A (en) 2022-05-06
CN114448934B true CN114448934B (en) 2023-08-04

Family

ID=81365338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111674549.5A Active CN114448934B (en) 2021-12-31 2021-12-31 Method and device for high availability of floating internet protocol address

Country Status (1)

Country Link
CN (1) CN114448934B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800740A (en) * 2009-09-29 2010-08-11 清华大学 Method for implementing virtual interface of Internet protocol conversion and address conversion
CN105872129A (en) * 2016-06-07 2016-08-17 国云科技股份有限公司 Method for realizing multi-NC (Network Card) extranet communication of Linux virtual machine
CN111858509A (en) * 2020-07-06 2020-10-30 苏州浪潮智能科技有限公司 Distributed computing method and device based on container
CN112804375A (en) * 2021-01-11 2021-05-14 上海思询信息科技有限公司 Configuration method of single network card and multiple IPs

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11301279B2 (en) * 2019-02-26 2022-04-12 International Business Machines Corporation Associating virtual IP address of virtual server with appropriate operating system in server cluster

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800740A (en) * 2009-09-29 2010-08-11 清华大学 Method for implementing virtual interface of Internet protocol conversion and address conversion
CN105872129A (en) * 2016-06-07 2016-08-17 国云科技股份有限公司 Method for realizing multi-NC (Network Card) extranet communication of Linux virtual machine
CN111858509A (en) * 2020-07-06 2020-10-30 苏州浪潮智能科技有限公司 Distributed computing method and device based on container
CN112804375A (en) * 2021-01-11 2021-05-14 上海思询信息科技有限公司 Configuration method of single network card and multiple IPs

Also Published As

Publication number Publication date
CN114448934A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
US10644952B2 (en) VNF failover method and apparatus
CN110012125B (en) Cluster network communication method, device, storage medium and equipment
CN107231221B (en) Method, device and system for controlling service flow among data centers
CN113169940B (en) Logical router comprising a split network element
US8281302B2 (en) Method and apparatus for dynamically instantiating services using a service insertion architecture
KR101572771B1 (en) System and methods for controlling network traffic through virtual switches
US20150350023A1 (en) Data center network architecture
EP2774329B1 (en) Data center network architecture
CN106487556B (en) Service function SF deployment method and device
CN102291455B (en) Distributed cluster processing system and message processing method thereof
CN109743197B (en) Firewall deployment system and method based on priority configuration
CN104935672A (en) High available realizing method and equipment of load balancing service
US10218605B2 (en) On-demand control plane redundancy
CN108574613B (en) Two-layer intercommunication method and device for SDN data center
US9935834B1 (en) Automated configuration of virtual port channels
Lee et al. A self-recovery scheme for service function chaining
CN111371608B (en) Method, device and medium for deploying SFC service chain
US10103995B1 (en) System and method for automated policy-based routing
CN115086250A (en) Network target range distributed traffic generation system and method
CN109644159B (en) Data packet forwarding unit in a data transmission network
CN114448934B (en) Method and device for high availability of floating internet protocol address
CN110138656B (en) Service processing method and device
CN106209634B (en) Learning method and device of address mapping relation
CN109981437B (en) Multi-data center intercommunication method based on VPC and related equipment
Rao et al. High availability and load balancing in SDN controllers

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
GR01 Patent grant
GR01 Patent grant