CN115174524B - Floating IP distribution method and device, electronic equipment and storage medium - Google Patents

Floating IP distribution method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115174524B
CN115174524B CN202210546612.5A CN202210546612A CN115174524B CN 115174524 B CN115174524 B CN 115174524B CN 202210546612 A CN202210546612 A CN 202210546612A CN 115174524 B CN115174524 B CN 115174524B
Authority
CN
China
Prior art keywords
floating
target
segment
information
specified
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
CN202210546612.5A
Other languages
Chinese (zh)
Other versions
CN115174524A (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.)
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 CN202210546612.5A priority Critical patent/CN115174524B/en
Publication of CN115174524A publication Critical patent/CN115174524A/en
Priority to PCT/CN2022/141583 priority patent/WO2023221508A1/en
Application granted granted Critical
Publication of CN115174524B publication Critical patent/CN115174524B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use

Abstract

The application provides a floating IP distribution method, a device, electronic equipment and a storage medium, and relates to the technical field of computers. In response to an acquisition request of a target device, determining a target IP segment from the IP segments according to floating information corresponding to the acquisition request and segment information of each IP segment in the mysql database, determining a corresponding target IP set from the redis database according to the target IP segment, wherein the target IP set comprises at least one floating IP which is not allocated and is in the target IP segment, so as to acquire a target floating IP from the target IP set, and allocating the target floating IP to the target device. After the target IP segmentation is determined in the mysql database, the target floating IP can be quickly obtained from the corresponding target IP set in the redis database, and the target floating IP is successfully distributed to the target equipment, so that the efficiency and performance of distributing the floating IP are improved.

Description

Floating IP distribution method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a floating IP distribution method, a device, electronic equipment and a storage medium.
Background
A floating IP (Floating IP) is typically a public IP address that is accessible to the internet and is not automatically assigned to entity devices (hosts, routers, load balancers, etc.), private addresses are used inside the private cloud, and private addresses inside the private cloud cannot be routed, and only services through floating IP intranet entities can be identified and accessed by the external network, as well as traffic on the external network can only reach services inside the private cloud through floating IP.
The conventional floating IP allocation scheme is to obtain a corresponding floating IP from the mysql database when the target device requests to obtain the floating IP, and allocate the floating IP to the target device. However, since the mysql database is multi-threaded, when multiple target devices simultaneously request to acquire the floating IP, the floating IP allocation may fail, and meanwhile, the speed of acquiring the floating IP from the mysql database is slower, so that the efficiency and performance of allocating the floating IP by adopting the traditional floating IP allocation scheme are poor.
Disclosure of Invention
In order to solve the existing technical problems, the embodiment of the application provides a floating IP allocation method, a device, electronic equipment and a storage medium, which can improve the efficiency and performance of allocation of the floating IP.
In order to achieve the above purpose, the technical solution of the embodiments of the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a floating IP allocation method, where the method includes:
responding to an acquisition request of target equipment, and determining a target IP segment from all IP segments according to floating information corresponding to the acquisition request and segment information of all IP segments in a mysql database;
determining a corresponding target IP set from a redis database according to the target IP segment; wherein the set of target IPs includes at least one floating IP in the target IP segment that is unassigned;
and acquiring a target floating IP from the target IP set, and distributing the target floating IP to the target equipment.
According to the floating IP distribution method provided by the embodiment of the application, in response to an acquisition request of target equipment, according to floating information corresponding to the acquisition request and segment information of each IP segment in the mysql database, a target IP segment is determined from each IP segment, a corresponding target IP set is determined from the redis database according to the target IP segment, the determined target IP set comprises at least one unallocated floating IP in the target IP segment, a target floating IP is acquired from the target IP set, and the target floating IP is distributed to the target equipment. Because the segmentation information of each IP segmentation is stored in the mysql database, the IP set containing the floating IP is stored in the redis database, and meanwhile, the redis database is operated in a single thread, the speed of acquiring the floating IP from the redis database is higher, so that after target equipment requests to acquire the floating IP and determines target IP segmentation from each IP segmentation of the mysql database, the target floating IP can be quickly acquired from the corresponding target IP set in the redis database, and the target floating IP is successfully allocated to target equipment, and the efficiency and performance of allocating the floating IP are improved.
In an alternative embodiment, the segment information includes the number of unassigned floating IPs in the corresponding IP segment and the starting and ending floating IPs in the IP segment; the determining a target IP segment from the IP segments according to the floating information corresponding to the acquisition request and the segment information of each IP segment in the mysql database comprises the following steps:
if the floating information corresponding to the obtaining request is to obtain the unspecified floating IP, randomly selecting one IP segment comprising the unassigned floating IP from the mysql database according to the unassigned floating IP number in the segment information of each IP segment to serve as a target IP segment;
if the floating information corresponding to the obtaining request is the obtaining of the specified floating IP, determining an IP segment containing the specified floating IP between the starting floating IP and the ending floating IP contained in the segment information from a mysql database, and taking the determined IP segment as a target IP segment;
and if the floating information corresponding to the acquisition request is floating IP in the designated IP segment, and the designated IP segment in the mysql database is determined to comprise the unassigned floating IP according to the unassigned floating IP quantity in the segment information of the designated IP segment, the designated IP segment is used as a target IP segment.
In this embodiment, when the target device requests to obtain the unspecified floating IP, an IP segment including the unspecified floating IP may be randomly selected from the mysql database as a corresponding target IP segment; when the target device requests to acquire the specified floating IP, an IP segment containing the specified floating IP between the starting floating IP and the ending floating IP in the mysql database can be used as a corresponding target IP segment; when the target device requests to acquire the floating IP in the specified IP section, the floating IP can be an unspecified IP or an appointed IP, whether the specified IP section contains the unassigned floating IP or not can be determined through a mysql database, and if so, the specified IP section is the target IP section. Therefore, according to different acquisition requests of the target equipment, the corresponding target IP segment can be accurately determined from the mysql database.
In an alternative embodiment, the acquiring the target floating IP from the target IP set includes:
if the floating information corresponding to the acquisition request is that the floating IP is not specified to be acquired, randomly acquiring a floating IP from the target IP set to serve as a target floating IP;
and if the floating information corresponding to the acquisition request is the acquired specified floating IP and the specified floating IP is included in the target IP set, taking the specified floating IP as a target floating IP.
In this embodiment, when the target device requests to acquire unspecified floating IP, one floating IP may be randomly acquired as a target floating IP from the target IP set determined in the redis database; when the target device requests to acquire the specified floating IP, if the specified floating IP is contained in the target IP set determined in the redis database, the specified floating IP is used as the target floating IP. Therefore, according to different acquisition requests of the target equipment, the corresponding target floating IP can be acquired from the corresponding target IP set of the redis database, the acquisition efficiency of the floating IP is improved, and the user experience is improved.
In an alternative embodiment, the method further comprises:
responding to a release request of the target equipment, and determining the target floating IP and a target IP segment corresponding to the target floating IP, which are included in the release request;
determining a corresponding target IP set from the redis database according to the target IP segment, and adding the target floating IP to the target IP set;
and updating the unallocated number of floating IPs in the segment information of the target IP segment in the mysql database.
In this embodiment, when the target device no longer uses the target floating IP and requests to release the target floating IP, the target floating IP may be added to the corresponding target IP set in the redis database and the number of unassigned floating IPs in the corresponding target IP fragments in the mysql database updated. So that the floating IP to be released can be quickly and accurately rewritten into the database.
In an alternative embodiment, the method further comprises:
responding to a seal forbidden request of operation and maintenance equipment, and determining an object floating IP (Internet protocol) which is contained in the seal forbidden request and needs to be sealed;
if the object floating IP is determined to be allocated according to the allocation information of each floating IP in the mysql database, modifying the state of the object floating IP in the mysql database into a disabled state;
if the object floating IP is not distributed according to the distribution information of each floating IP in the mysql database, determining an object IP segment corresponding to the object floating IP according to the initial floating IP and the termination floating IP contained in the segment information of each IP segment, and determining an object IP set corresponding to the object IP segment from the redis database; and removing the object floating IP from the object IP set, and updating the unallocated floating IP quantity in the segmentation information of the object IP segmentation in the mysql database.
In this embodiment, when the operation and maintenance device finds that the target device uses the object floating IP to be abnormal and requests to disable the object floating IP, it may first determine, according to the allocation information of each floating IP in the mysql database, whether the object floating IP is allocated, and if the object floating IP is allocated, modify the state of the object floating IP in the mysql database to be a disabled state; if the object floating IP is not distributed, determining an object IP segment corresponding to the object floating IP through a mysql database, removing the object floating IP from a corresponding object IP set in a redis database, and updating the number of the non-distributed floating IPs in the object IP segment in the mysql database. Therefore, when the target equipment improperly uses the object floating IP, the object floating IP can be forbidden to be sealed, so that the target equipment cannot continue to use the object floating IP, and the use rationality of the floating IP is ensured.
In an alternative embodiment, the method further comprises:
responding to an unpacking request of operation and maintenance equipment, and determining an object floating IP (Internet protocol) which is contained in the unpacking request and needs unpacking;
if the object floating IP is determined to be allocated according to the allocation information of each floating IP in the mysql database, modifying the state of the object floating IP in the mysql database into a use state;
if the object floating IP is not distributed according to the distribution information of each floating IP in the mysql database, determining an object IP segment corresponding to the object floating IP according to the initial floating IP and the termination floating IP contained in the segment information of each IP segment, and determining an object IP set corresponding to the object IP segment from the redis database; adding the object floating IP to the object IP set, and updating the unallocated floating IP quantity in the segment information of the object IP segment in the mysql database.
In this embodiment, when the operation and maintenance device determines that the object floating IP can be unpacked and requests to unpack the object floating IP, whether the object floating IP is allocated or not may be determined according to allocation information of each floating IP in the mysql database, and if the object floating IP is allocated, the state of the object floating IP in the mysql database is modified to be a use state; if the object floating IP is not distributed, determining an object IP segment corresponding to the object floating IP through a mysql database, adding the object floating IP into a corresponding object IP set in a redis database, and updating the number of the non-distributed floating IPs in the object IP segment in the mysql database. By decapsulating the object floating IP, the target device may continue to use the object floating IP, thereby ensuring the rationality of use of the floating IP.
In a second aspect, embodiments of the present application further provide a floating IP allocation apparatus, where the apparatus includes:
the target segment determining unit is used for responding to an acquisition request of target equipment and determining target IP segments from all the IP segments according to floating information corresponding to the acquisition request and segment information of all the IP segments in the mysql database;
a target set determining unit, configured to determine a corresponding target IP set from a redis database according to the target IP segment; wherein the set of target IPs includes at least one floating IP in the target IP segment that is unassigned;
and the target IP allocation unit is used for acquiring a target floating IP from the target IP set and allocating the target floating IP to the target equipment.
In an alternative embodiment, the segment information includes the number of unassigned floating IPs in the corresponding IP segment and the starting and ending floating IPs in the IP segment; the target segment determining unit is specifically configured to:
if the floating information corresponding to the obtaining request is to obtain the unspecified floating IP, randomly selecting one IP segment comprising the unassigned floating IP from the mysql database according to the unassigned floating IP number in the segment information of each IP segment to serve as a target IP segment;
If the floating information corresponding to the obtaining request is the obtaining of the specified floating IP, determining an IP segment containing the specified floating IP between the starting floating IP and the ending floating IP contained in the segment information from a mysql database, and taking the determined IP segment as a target IP segment;
and if the floating information corresponding to the acquisition request is floating IP in the designated IP segment, and the designated IP segment in the mysql database is determined to comprise the unassigned floating IP according to the unassigned floating IP quantity in the segment information of the designated IP segment, the designated IP segment is used as a target IP segment.
In an alternative embodiment, the target IP allocation unit is specifically configured to:
if the floating information corresponding to the acquisition request is that the floating IP is not specified to be acquired, randomly acquiring a floating IP from the target IP set to serve as a target floating IP;
and if the floating information corresponding to the acquisition request is the acquired specified floating IP and the specified floating IP is included in the target IP set, taking the specified floating IP as a target floating IP.
In an alternative embodiment, the apparatus further comprises a floating IP release unit for:
Responding to a release request of the target equipment, and determining the target floating IP and a target IP segment corresponding to the target floating IP, which are included in the release request;
determining a corresponding target IP set from the redis database according to the target IP segment, and adding the target floating IP to the target IP set;
and updating the unallocated number of floating IPs in the segment information of the target IP segment in the mysql database.
In an alternative embodiment, the apparatus further comprises a floating IP disable unit for:
responding to a seal forbidden request of operation and maintenance equipment, and determining an object floating IP (Internet protocol) which is contained in the seal forbidden request and needs to be sealed;
if the object floating IP is determined to be allocated according to the allocation information of each floating IP in the mysql database, modifying the state of the object floating IP in the mysql database into a disabled state;
if the object floating IP is not distributed according to the distribution information of each floating IP in the mysql database, determining an object IP segment corresponding to the object floating IP according to the initial floating IP and the termination floating IP contained in the segment information of each IP segment, and determining an object IP set corresponding to the object IP segment from the redis database; and removing the object floating IP from the object IP set, and updating the unallocated floating IP quantity in the segmentation information of the object IP segmentation in the mysql database.
In an alternative embodiment, the apparatus further comprises a floating IP decapsulation unit configured to:
responding to an unpacking request of operation and maintenance equipment, and determining an object floating IP (Internet protocol) which is contained in the unpacking request and needs unpacking;
if the object floating IP is determined to be allocated according to the allocation information of each floating IP in the mysql database, modifying the state of the object floating IP in the mysql database into a use state;
if the object floating IP is not distributed according to the distribution information of each floating IP in the mysql database, determining an object IP segment corresponding to the object floating IP according to the initial floating IP and the termination floating IP contained in the segment information of each IP segment, and determining an object IP set corresponding to the object IP segment from the redis database; adding the object floating IP to the object IP set, and updating the unallocated floating IP quantity in the segment information of the object IP segment in the mysql database.
In a third aspect, embodiments of the present application further provide a computer readable storage medium, where a computer program is stored, the computer program implementing the floating IP allocation method of the first aspect when executed by a processor.
In a fourth aspect, embodiments of the present application further provide an electronic device, including a memory and a processor, where the memory stores a computer program executable on the processor, and when the computer program is executed by the processor, causes the processor to implement the floating IP allocation method of the first aspect.
The technical effects caused by any implementation manner of the second aspect to the fourth aspect may refer to the technical effects caused by the corresponding implementation manner of the first aspect, and are not described herein.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a floating IP allocation method provided in an embodiment of the present application;
fig. 2 is a flowchart of another floating IP allocation method according to an embodiment of the present application;
fig. 3 is a flowchart of a floating IP release procedure provided in an embodiment of the present application;
Fig. 4 is a flowchart of a floating IP disable sealing process provided in an embodiment of the present application;
fig. 5 is a flowchart of a floating IP decapsulation procedure provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a floating IP allocation apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another floating IP distribution device according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail below with reference to the accompanying drawings, wherein it is apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that the terms "comprises" and "comprising," along with their variants, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
A floating IP is typically a public IP address that is accessible to the internet and is not automatically assigned to entity devices (hosts, routers, load balancers, etc.), private addresses are used inside the private cloud, private addresses inside the private cloud cannot be routed to, and only services through entities within the floating IP can be identified and accessed by the external network, as well as traffic on the external network can only reach services inside the private cloud through the floating IP.
The floating IP is public network IP, a public network user enters Virtual Private Cloud (VPC) through the applied floating IP, the floating IP can be bound on a Virtual Machine (VM), a Bare Metal (BM), an elastic network card, an expansion network card, a HAVIP, a NAT gateway or Load Balancing (LB), and only an IPv4 address in the VNet has the floating IP and does not support the floating IP of IPv 6.
The main advantage of floating IP is flexibility, freedom of allocation as required. Floating IP is suitable for both fault recovery and service switching. The floating IP provides a unified IP to the outside, not an IP address actually providing a service to the outside.
The conventional floating IP allocation scheme is to obtain a corresponding floating IP from the mysql database when the target device requests to obtain the floating IP, and allocate the floating IP to the target device. However, since the mysql database is multi-threaded, when multiple target devices simultaneously request to acquire the floating IP, the floating IP allocation may fail, and meanwhile, the speed of acquiring the floating IP from the mysql database is slower, so that the efficiency and performance of allocating the floating IP by adopting the traditional floating IP allocation scheme are poor.
For example, in response to a request of the target device a and the target device B to randomly acquire the floating IP at the same time, the conventional floating IP allocation scheme may enable a double thread to pre-select the floating IP1 from the mysql database for both the target device a and the target device B, modify the allocation status of the floating IP1 in the mysql database, and if the thread corresponding to the target device a successfully modifies the allocation status of the floating IP1, and meanwhile, allocates the floating IP to the target device a, the thread corresponding to the target device B fails to modify the allocation status of the floating IP1, and meanwhile, the floating IP is allocated to the target device B for identification, that is, the target device B fails to acquire the floating IP this time.
In order to prevent the failure of the allocation of the floating IP in the conventional floating IP allocation scheme, in response to the simultaneous request of the target device a and the target device B to randomly acquire the floating IP, the target device B may also need to wait when the thread corresponding to the target device a acquires the floating IP in the IP set 1 and lock the IP set 1, until the target floating IP determined in the IP set 1 is successfully allocated to the target device a, the IP set 1 is unlocked and then the thread corresponding to the target device B can be started to acquire the floating IP in the IP set 1.
In order to improve efficiency and performance of allocation of floating IPs, the embodiments of the present application provide a method for allocation of floating IPs, where in response to an acquisition request of a target device, a target IP segment may be determined from each IP segment according to floating information corresponding to the acquisition request and segment information of each IP segment in a mysql database, and a corresponding target IP set is determined from a redis database according to the target IP segment, where the determined target IP set includes at least one floating IP in the target IP segment that is not allocated, and the target floating IP is acquired from the target IP set and allocated to the target device.
The following describes in detail the technical solutions provided in the embodiments of the present application with reference to the accompanying drawings.
The word "exemplary" is used hereinafter to mean "serving as an example, embodiment, or illustration. Any embodiment described as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
The embodiment of the application provides a floating IP allocation method, as shown in fig. 1, comprising the following steps:
Step S101, responding to an acquisition request of target equipment, and determining target IP fragments from the IP fragments according to floating information corresponding to the acquisition request and fragment information of the IP fragments in a mysql database.
The segment information may include the number of unassigned floating IPs in the corresponding IP segment, and the start floating IP and the end floating IP in the corresponding IP segment.
Specifically, if the floating information corresponding to the obtaining request is obtaining the unspecified floating IP, according to the number of the unassigned floating IP in the segment information of each IP segment, randomly selecting an IP segment including the unassigned floating IP from the mysql database as the target IP segment. For example, if the target device requests to randomly acquire a floating IP, an IP segment containing the available floating IP may be randomly selected from the IP segments in the mysql database, and if IP segment 1 is assumed, IP segment 1 may be used as the target IP segment.
If the floating information corresponding to the obtaining request is the obtaining of the specified floating IP, determining an IP segment containing the specified floating IP between the starting floating IP and the ending floating IP contained in the segment information from the mysql database, and taking the determined IP segment as a target IP segment. For example, assuming that the specified floating IP requested to be acquired by the target device is 50, and the starting floating IP included in the segment information of the IP segment 1 of the mysql database is 1 and the ending floating IP is 100, the target IP segment corresponding to the specified floating IP may be determined to be the IP segment 1 according to the starting floating IP and the ending floating IP included in the segment information of each IP segment of the mysql database.
If the floating information corresponding to the acquisition request is the floating IP in the designated IP segment, and the designated IP segment in the mysql database is determined to comprise the unassigned floating IP according to the unassigned floating IP number in the segment information of the designated IP segment, the designated IP segment is taken as the target IP segment. Assuming that the specified IP fragment requested to be acquired by the target device is IP fragment 1 and the number of unassigned floating IPs in the fragment information of IP fragment 1 of the mysql database is 60, IP fragment 1 may be directly taken as the target floating IP.
Step S102, according to the target IP segmentation, a corresponding target IP set is determined from the redis database.
Each IP segment in the mysql database corresponds to each IP set in the redis database one by one, and when the target IP segment is determined in the mysql database according to the acquisition request of the target device, the corresponding target IP set can be uniquely determined in the redis database according to the corresponding relation between the IP segment in the mysql database and the IP set in the redis database.
Step S103, obtaining the target floating IP from the target IP set, and distributing the target floating IP to the target equipment.
If the floating information corresponding to the acquisition request is that the floating IP is not specified to be acquired, one floating IP is randomly acquired from the target IP set to serve as the target floating IP. If the floating information corresponding to the acquisition request is the acquisition specified floating IP and the target IP set comprises the specified floating IP, the specified floating IP is used as the target floating IP.
The floating IP allocation method proposed by the embodiments of the present application may be applied in a plurality of available areas (Availability Zones, AZ). At least two AZs, and typically three AZs, may be included in a region to enable a customer to run production applications and databases with greater availability, fault tolerance, and extensibility. In a region-level deployment structure, floating IP allocations may be deployed at control nodes, while redis databases may be deployed at cache nodes.
In the floating IP allocation scheme proposed in the present application, the mysql database stores the segment information of the IP segment, the redis database stores the IP set containing the floating IPs, that is, the redis database stores each floating IP, and each floating IP is stored in a manner of an IP set corresponding to the IP segment. The floating IP allocation method in the present application is performed in the following manner:
when the target device requests to acquire the specified floating IP in the specified IP fragments, according to the specified IP fragments, inquiring whether available floating IP is included in the specified IP fragments in a mysql database, if so, inquiring an IP set corresponding to the specified IP fragments in a redis database, determining whether the IP set contains the specified floating IP, and if so, taking out the specified floating IP from the IP set, and distributing the specified floating IP to the target device;
When the target device requests to acquire the unspecified floating IP in the specified IP segment, according to the specified IP segment, inquiring whether available floating IP is included in the specified IP segment in a mysql database, if so, inquiring an IP set corresponding to the specified IP segment in a redis database, randomly taking out a floating IP from the IP set, and distributing the floating IP to the target device;
when the target device requests to acquire the specified floating IP in the unspecified IP fragments, according to the specified floating IP, searching an IP fragment containing the specified floating IP in a mysql database, determining whether the IP fragment contains an available floating IP, if the available floating IP is contained, searching an IP set corresponding to the IP fragment in a redis database, determining whether the specified floating IP is contained in the IP set, and if the specified floating IP is contained, extracting the specified floating IP from the IP set, and distributing the specified floating IP to the target device;
when the target device requests to obtain the unspecified floating IP in the unspecified IP fragments, it may first query the mysql database for an IP fragment including available floating IP, then query the redis database for an IP set corresponding to the IP fragment, randomly take out a floating IP from the IP set, and assign the floating IP to the target device.
Specifically, in one embodiment, the floating IP allocation method provided in the embodiment of the present application may also be implemented according to a procedure shown in fig. 2, as shown in fig. 2, including the following steps:
step S201, in response to the acquisition request of the target device, determining a request parameter corresponding to the acquisition request.
After receiving the acquisition request of the target device, the request parameter corresponding to the acquisition request can be determined, and the validity of the request parameter is verified.
Step S202, determining whether the request parameter contains a designated IP segment; if yes, go to step S203; if not, step S207 is performed.
Step S203, if it is determined that the specified IP segment includes the unassigned floating IP according to the unassigned floating IP number in the segment information of the specified IP segment in the mysql database, then the corresponding target IP set is determined from the redis database according to the specified IP segment.
Step S204, determining whether the specified IP segment in the request parameter contains the specified floating IP; if yes, go to step S205; if not, step S206 is performed.
In step S205, if the target IP set includes the specified floating IP, the specified floating IP is acquired from the target IP set, and is allocated to the target device.
Step S206, a floating IP is obtained from the target IP set randomly, and the floating IP is distributed to the target equipment.
Step S207, determining whether the request parameter contains a specified floating IP; if yes, go to step S208; if not, step S210 is performed.
Step S208, determining a target IP segment containing the specified floating IP between the starting floating IP and the ending floating IP from the mysql database.
Step S209, according to the target IP segmentation, a corresponding target IP set is determined from the redis database, if the target IP set comprises the specified floating IP, the specified floating IP is obtained from the target IP set, and the specified floating IP is distributed to the target equipment.
Step S210, randomly selecting a target IP segment comprising unassigned floating IP from the IP segments according to the unassigned floating IP number in the segment information of the IP segments in the mysql database.
Step S211, according to the target IP segmentation, a corresponding target IP set is determined from the redis database, a floating IP is randomly acquired from the target IP set, and the floating IP is distributed to target equipment.
In some embodiments, when the target device decides not to use the allocated floating IP any more, it may request to release the floating IP, and then the release procedure of the floating IP may be as shown in fig. 3, including the steps of:
In step S301, in response to the release request of the target device, the target floating IP included in the release request and the target IP segment corresponding to the target floating IP are determined.
When a release request of the target device is received, validity of a request parameter corresponding to the release request needs to be verified.
When the target device requests to release the target floating IP, the release request not only comprises the target floating IP, but also comprises a target IP segment corresponding to the target floating IP.
Step S302, according to the target IP segmentation, a corresponding target IP set is determined from the redis database, and the target floating IP is added into the target IP set.
According to the target IP fragments included in the release request, a corresponding target IP set can be determined in the redis database, and after the target IP set is determined, the target floating IP included in the release request can be added into the target IP set.
Step S303, updating the number of unassigned floating IPs in the segment information of the target IP segment in the mysql database.
After adding the target floating IP into the target IP set in the redis database, correspondingly updating the number of the floating IPs which are not distributed in the segment information of the target IP segment in the mysql database, namely adding 1 to the number of the floating IPs which are not distributed in the segment information of the target IP segment.
In other embodiments, in the process that the target device uses the allocated floating IP, there may be a situation that the floating IP is not reasonably used, and when the operation and maintenance device finds that the target device is not reasonably using the floating IP, it may request to disable the floating IP, so that the target device cannot continue to use the floating IP. Specifically, the disabling process of the floating IP may be as shown in fig. 4, and includes the following steps:
in step S401, in response to the seal disabling request of the operation and maintenance device, the object floating IP to be sealed, which is included in the seal disabling request, is determined.
When receiving a seal forbidden request of the operation and maintenance equipment, the validity of a request parameter corresponding to the seal forbidden request needs to be verified.
Step S402, determining whether the floating IP of the object is allocated according to allocation information of each floating IP in the mysql database; if yes, go to step S403; if not, step S404 is performed.
After the floating IP is allocated to the target device, a mysql database generates allocation information of the floating IP, where the allocation information includes the allocated floating IP, IP fragments and states of the floating IP, and so on.
Step S403, the state of the object floating IP in the mysql database is modified to a disabled state.
Step S404, according to the initial floating IP and the end floating IP included in the segment information of each IP segment, determining the object IP segment corresponding to the object floating IP, and determining the object IP set corresponding to the object IP segment from the redis database.
Step S405, removing the object floating IP from the object IP set, and updating the unallocated floating IP amount in the segment information of the object IP segment in the mysql database.
After determining the object IP set corresponding to the object floating IP in the redis database, the object floating IP can be removed from the object IP set, and the number of the unassigned floating IPs in the segmentation information of the object IP segments in the mysql database is correspondingly updated, namely, the number of the unassigned floating IPs in the segmentation information of the object IP segments is reduced by 1.
In other embodiments, after the floating IP is disabled, when a period of time has elapsed, or when the operation and maintenance device decides to eliminate the disabled state of the floating IP, it may be requested to de-encapsulate the floating IP so that the target device may continue to use the floating IP, or assign the floating IP. Specifically, the decapsulation procedure of the floating IP may be as shown in fig. 5, and includes the following steps:
in step S501, in response to the decapsulation request of the operation and maintenance device, the object floating IP to be decapsulated included in the decapsulation request is determined.
When an unpacking request of the operation and maintenance equipment is received, the validity of a request parameter corresponding to the unpacking request needs to be verified.
Step S502, determining whether the floating IP of the object is allocated according to allocation information of each floating IP in the mysql database; if yes, go to step S503; if not, step S504 is performed.
Step S503, the state of the object floating IP in the mysql database is modified to be in use state.
After the floating IP is allocated to the target device, a mysql database generates allocation information of the floating IP, where the allocation information includes the allocated floating IP, IP fragments and states of the floating IP, and so on.
Step S504, according to the initial floating IP and the end floating IP included in the segment information of each IP segment, determining the object IP segment corresponding to the object floating IP, and determining the object IP set corresponding to the object IP segment from the redis database.
Step S505, adding the object floating IP to the object IP set, and updating the unallocated floating IP quantity in the segment information of the object IP segment in the mysql database.
After determining the object IP set corresponding to the object floating IP in the redis database, adding the object floating IP into the object IP set, and correspondingly updating the number of the unassigned floating IPs in the segmentation information of the object IP segmentation in the mysql database, namely adding 1 to the number of the unassigned floating IPs in the segmentation information of the object IP segmentation.
The application provides a floating IP allocation method, which can solve the problems of failure in floating IP allocation and overlong waiting time of floating IP allocation caused by the fact that only a mysql database is adopted for floating IP allocation in the prior art. According to the floating IP distribution method, the segmentation information of the floating IP segments can be stored in the mysql database, the IP set comprising the floating IP is stored in the redis database, so that the multithreading operation of the mysql database and the single-threaded operation of the redis database are utilized, after the corresponding floating IP segments are accurately determined from the mysql database according to the floating IP information included in the acquisition request of the target equipment, the target floating IP can be quickly and successfully acquired from the redis database, and the target floating IP is distributed to the target equipment, the efficiency and the performance of distributing the floating IP are improved, and meanwhile, the success rate of distributing the floating IP can be improved.
The floating IP allocation method shown in fig. 1 is based on the same inventive concept, and a floating IP allocation device is also provided in the embodiment of the present application. Since the device is a device corresponding to the floating IP allocation method of the present application, and the principle of the device for solving the problem is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repetition is omitted.
Fig. 6 shows a schematic structural diagram of a floating IP allocation apparatus provided in an embodiment of the present application, and as shown in fig. 6, the floating IP allocation apparatus includes a target segment determining unit 601, a target set determining unit 602, and a target IP allocation unit 603.
The target segment determining unit 601 is configured to determine, in response to an acquisition request of a target device, a target IP segment from each IP segment according to floating information corresponding to the acquisition request and segment information of each IP segment in the mysql database;
a target set determining unit 602, configured to determine a corresponding target IP set from the redis database according to the target IP segment; wherein the target IP set includes at least one floating IP in the target IP segment that is unassigned;
the target IP allocation unit 603 is configured to obtain a target floating IP from the target IP set, and allocate the target floating IP to the target device.
In an alternative embodiment, the segmentation information includes the number of unassigned floating IPs in the corresponding IP segment and the starting and ending floating IPs in the IP segment; the target segment determining unit 601 is specifically configured to:
if the floating information corresponding to the acquisition request is the acquisition of the unspecified floating IP, randomly selecting one IP segment comprising the unassigned floating IP from the mysql database as a target IP segment according to the unassigned floating IP quantity in the segment information of each IP segment;
If the floating information corresponding to the acquisition request is the acquisition of the specified floating IP, determining an IP segment comprising the specified floating IP between the initial floating IP and the termination floating IP contained in the segment information from a mysql database, and taking the determined IP segment as a target IP segment;
if the floating information corresponding to the acquisition request is the floating IP in the designated IP segment, and the designated IP segment in the mysql database is determined to comprise the unassigned floating IP according to the unassigned floating IP number in the segment information of the designated IP segment, the designated IP segment is taken as the target IP segment.
In an alternative embodiment, the target IP allocation unit 603 is specifically configured to:
if the floating information corresponding to the acquisition request is that the floating IP is not specified, randomly acquiring a floating IP from the target IP set as a target floating IP;
if the floating information corresponding to the acquisition request is the acquisition specified floating IP and the target IP set comprises the specified floating IP, the specified floating IP is used as the target floating IP.
In an alternative embodiment, as shown in fig. 7, the apparatus may further include a floating IP release unit 701 for:
responding to a release request of target equipment, and determining target floating IP and target IP fragments corresponding to the target floating IP included in the release request;
Determining a corresponding target IP set from a redis database according to the target IP segmentation, and adding a target floating IP into the target IP set;
updating the number of unassigned floating IPs in the segment information of the target IP segment in the mysql database.
In an alternative embodiment, as shown in fig. 7, the apparatus may further include a floating IP disable unit 702 configured to:
responding to a seal forbidden request of the operation and maintenance equipment, and determining an object floating IP (Internet protocol) which is contained in the seal forbidden request and needs to be sealed;
if the object floating IP is determined to be allocated according to the allocation information of each floating IP in the mysql database, modifying the state of the object floating IP in the mysql database into a disabled state;
if the object floating IP is not allocated according to the allocation information of each floating IP in the mysql database, determining an object IP segment corresponding to the object floating IP according to the initial floating IP and the termination floating IP included in the segmentation information of each IP segment, and determining an object IP set corresponding to the object IP segment from the redis database; the object floating IP is removed from the object IP set, and the number of unassigned floating IPs in the segment information of the object IP segments in the mysql database is updated.
In an alternative embodiment, as shown in fig. 7, the apparatus may further include a floating IP decapsulation unit 703 configured to:
Responding to an unpacking request of the operation and maintenance equipment, and determining an object floating IP which is contained in the unpacking request and needs to be unpacked;
if the object floating IP is determined to be allocated according to the allocation information of each floating IP in the mysql database, modifying the state of the object floating IP in the mysql database into a use state;
if the object floating IP is not allocated according to the allocation information of each floating IP in the mysql database, determining an object IP segment corresponding to the object floating IP according to the initial floating IP and the termination floating IP included in the segmentation information of each IP segment, and determining an object IP set corresponding to the object IP segment from the redis database; adding the object floating IP to the object IP set, and updating the unallocated floating IP amount in the segment information of the object IP segment in the mysql database.
The embodiment of the application also provides electronic equipment based on the same inventive concept as the embodiment of the method. The electronic device may be used for the allocation procedure of floating IP. In this embodiment, the structure of the electronic device may include a memory 801 and one or more processors 802 as shown in FIG. 8.
A memory 801 for storing a computer program for execution by the processor 802. The memory 801 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a program required for running an instant communication function, and the like; the storage data area can store various instant messaging information, operation instruction sets and the like.
The memory 801 may be a volatile memory (RAM) such as a random-access memory (RAM); the memory 801 may also be a nonvolatile memory (non-volatile memory), such as a read-only memory, a flash memory (flash memory), a Hard Disk Drive (HDD) or a Solid State Drive (SSD), or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory 801 may be a combination of the above memories.
The processor 802 may include one or more central processing units (central processing unit, CPU) or digital processing units, etc. A processor 802 for implementing the above-described floating IP allocation method when calling the computer program stored in the memory 801.
The specific connection medium between the memory 801 and the processor 802 is not limited in the embodiments of the present application. The embodiment of the present disclosure is illustrated in fig. 8 by a bus 803 connected between a memory 801 and a processor 802, where the bus 803 is illustrated in fig. 8 by a bold line, and the connection between other components is merely illustrative and not limiting. The bus 803 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 8, but not only one bus or one type of bus.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the floating IP allocation method in the above-described embodiment.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application.

Claims (8)

1. A floating IP allocation method, comprising:
responding to an acquisition request of target equipment, and if the floating information corresponding to the acquisition request is an unspecified floating IP, randomly selecting one IP section comprising the unassigned floating IP from a mysql database as a target IP section according to the unassigned floating IP number in the section information of each IP section; if the floating information corresponding to the obtaining request is the obtaining of the specified floating IP, determining an IP segment containing the specified floating IP between the starting floating IP and the ending floating IP contained in the segment information from a mysql database, and taking the determined IP segment as a target IP segment; if the floating information corresponding to the obtaining request is floating IP in a specified IP segment, and the specified IP segment in the mysql database is determined to comprise unallocated floating IP according to the unallocated floating IP quantity in the segment information of the specified IP segment, the specified IP segment is taken as a target IP segment, and the segment information comprises the unallocated floating IP quantity in the corresponding IP segment, and the initial floating IP and the termination floating IP in the IP segment;
Determining a corresponding target IP set from a redis database according to the target IP segment; wherein the set of target IPs includes at least one floating IP in the target IP segment that is unassigned;
and acquiring a target floating IP from the target IP set, and distributing the target floating IP to the target equipment.
2. The method of claim 1, wherein the obtaining the target floating IP from the set of target IPs comprises:
if the floating information corresponding to the acquisition request is that the floating IP is not specified to be acquired, randomly acquiring a floating IP from the target IP set to serve as a target floating IP;
and if the floating information corresponding to the acquisition request is the acquired specified floating IP and the specified floating IP is included in the target IP set, taking the specified floating IP as a target floating IP.
3. The method of claim 1, wherein the method further comprises:
responding to a release request of the target equipment, and determining the target floating IP and a target IP segment corresponding to the target floating IP, which are included in the release request;
determining a corresponding target IP set from the redis database according to the target IP segment, and adding the target floating IP to the target IP set;
And updating the unallocated number of floating IPs in the segment information of the target IP segment in the mysql database.
4. The method of claim 1, wherein the method further comprises:
responding to a seal forbidden request of operation and maintenance equipment, and determining an object floating IP (Internet protocol) which is contained in the seal forbidden request and needs to be sealed;
if the object floating IP is determined to be allocated according to the allocation information of each floating IP in the mysql database, modifying the state of the object floating IP in the mysql database into a disabled state;
if the object floating IP is not distributed according to the distribution information of each floating IP in the mysql database, determining an object IP segment corresponding to the object floating IP according to the initial floating IP and the termination floating IP contained in the segment information of each IP segment, and determining an object IP set corresponding to the object IP segment from the redis database; and removing the object floating IP from the object IP set, and updating the unallocated floating IP quantity in the segmentation information of the object IP segmentation in the mysql database.
5. The method of claim 1, wherein the method further comprises:
Responding to an unpacking request of operation and maintenance equipment, and determining an object floating IP (Internet protocol) which is contained in the unpacking request and needs unpacking;
if the object floating IP is determined to be allocated according to the allocation information of each floating IP in the mysql database, modifying the state of the object floating IP in the mysql database into a use state;
if the object floating IP is not distributed according to the distribution information of each floating IP in the mysql database, determining an object IP segment corresponding to the object floating IP according to the initial floating IP and the termination floating IP contained in the segment information of each IP segment, and determining an object IP set corresponding to the object IP segment from the redis database; adding the object floating IP to the object IP set, and updating the unallocated floating IP quantity in the segment information of the object IP segment in the mysql database.
6. A floating IP distribution device, comprising:
the target segment determining unit is used for responding to an acquisition request of target equipment, and if the floating information corresponding to the acquisition request is the acquisition of the unassigned floating IP, one IP segment comprising the unassigned floating IP is randomly selected from the mysql database as a target IP segment according to the unassigned floating IP number in the segment information of each IP segment; if the floating information corresponding to the obtaining request is the obtaining of the specified floating IP, determining an IP segment containing the specified floating IP between the starting floating IP and the ending floating IP contained in the segment information from a mysql database, and taking the determined IP segment as a target IP segment; if the floating information corresponding to the obtaining request is floating IP in the specified IP segment, and according to the number of unassigned floating IP in the segment information of the specified IP segment, determining that the specified IP segment in the mysql database comprises unassigned floating IP, and taking the specified IP segment as a target IP segment; the segmentation information comprises the number of unassigned floating IPs in the corresponding IP segmentation, and the initial floating IPs and the termination floating IPs in the IP segmentation;
A target set determining unit, configured to determine a corresponding target IP set from a redis database according to the target IP segment; wherein the set of target IPs includes at least one floating IP in the target IP segment that is unassigned;
and the target IP allocation unit is used for acquiring a target floating IP from the target IP set and allocating the target floating IP to the target equipment.
7. An electronic device comprising a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1-5.
8. A computer readable storage medium, characterized in that it comprises a program code for causing an electronic device to perform the steps of the method according to any one of claims 1-5, when said program code is run on the electronic device.
CN202210546612.5A 2022-05-18 2022-05-18 Floating IP distribution method and device, electronic equipment and storage medium Active CN115174524B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210546612.5A CN115174524B (en) 2022-05-18 2022-05-18 Floating IP distribution method and device, electronic equipment and storage medium
PCT/CN2022/141583 WO2023221508A1 (en) 2022-05-18 2022-12-23 Floating ip allocation method and apparatus, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210546612.5A CN115174524B (en) 2022-05-18 2022-05-18 Floating IP distribution method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115174524A CN115174524A (en) 2022-10-11
CN115174524B true CN115174524B (en) 2024-01-02

Family

ID=83483196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210546612.5A Active CN115174524B (en) 2022-05-18 2022-05-18 Floating IP distribution method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN115174524B (en)
WO (1) WO2023221508A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174524B (en) * 2022-05-18 2024-01-02 天翼云科技有限公司 Floating IP distribution method and device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656763A (en) * 2009-09-11 2010-02-24 华为技术有限公司 IP address automatic distribution method, client and server
CN104486452A (en) * 2014-09-23 2015-04-01 华为技术有限公司 Address processing method and related equipment and system
CN107241460A (en) * 2017-06-30 2017-10-10 联想(北京)有限公司 The processing method and electronic equipment of a kind of floating address
US9813374B1 (en) * 2015-06-10 2017-11-07 Amazon Technologies, Inc. Automated allocation using spare IP addresses pools
CN111262960A (en) * 2020-01-15 2020-06-09 山东汇贸电子口岸有限公司 Public cloud elastic public network IP cluster implementation method and system
WO2020258814A1 (en) * 2019-06-26 2020-12-30 三维通信股份有限公司 Method and device for ip address allocation and topology management in das system, and storage medium
CN113132503A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Address allocation method and device
CN113176930A (en) * 2021-05-19 2021-07-27 重庆紫光华山智安科技有限公司 Floating address management method and system for virtual machine in container
CN113810513A (en) * 2021-08-16 2021-12-17 新浪网技术(中国)有限公司 Configuration management method and system for elastic public network IP
CN114401251A (en) * 2022-03-25 2022-04-26 中科云策(深圳)科技成果转化信息技术有限公司 Internet-based IP address database processing system and method thereof
CN114500462A (en) * 2020-11-12 2022-05-13 阿里巴巴集团控股有限公司 Virtual private cloud network address allocation method and device, electronic equipment and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101094033B1 (en) * 2010-04-12 2011-12-19 중앙대학교 산학협력단 Apparatus and method for registering node and searching floating ip using distributed network
WO2013020267A1 (en) * 2011-08-08 2013-02-14 华为数字技术有限公司 Ip address allocation method, system and device
CN107800814B (en) * 2016-09-05 2021-08-13 国网江苏省电力公司信息通信分公司 Virtual machine deployment method and device
CN111107173B (en) * 2018-10-29 2023-04-07 中国移动通信集团浙江有限公司 IP address planning method and system of IP bearing network
CN112887322A (en) * 2021-02-07 2021-06-01 上海英方软件股份有限公司 Redis-based IP resource management method and device
CN115174524B (en) * 2022-05-18 2024-01-02 天翼云科技有限公司 Floating IP distribution method and device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656763A (en) * 2009-09-11 2010-02-24 华为技术有限公司 IP address automatic distribution method, client and server
CN104486452A (en) * 2014-09-23 2015-04-01 华为技术有限公司 Address processing method and related equipment and system
US9813374B1 (en) * 2015-06-10 2017-11-07 Amazon Technologies, Inc. Automated allocation using spare IP addresses pools
CN107241460A (en) * 2017-06-30 2017-10-10 联想(北京)有限公司 The processing method and electronic equipment of a kind of floating address
WO2020258814A1 (en) * 2019-06-26 2020-12-30 三维通信股份有限公司 Method and device for ip address allocation and topology management in das system, and storage medium
CN113132503A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Address allocation method and device
CN111262960A (en) * 2020-01-15 2020-06-09 山东汇贸电子口岸有限公司 Public cloud elastic public network IP cluster implementation method and system
CN114500462A (en) * 2020-11-12 2022-05-13 阿里巴巴集团控股有限公司 Virtual private cloud network address allocation method and device, electronic equipment and medium
CN113176930A (en) * 2021-05-19 2021-07-27 重庆紫光华山智安科技有限公司 Floating address management method and system for virtual machine in container
CN113810513A (en) * 2021-08-16 2021-12-17 新浪网技术(中国)有限公司 Configuration management method and system for elastic public network IP
CN114401251A (en) * 2022-03-25 2022-04-26 中科云策(深圳)科技成果转化信息技术有限公司 Internet-based IP address database processing system and method thereof

Also Published As

Publication number Publication date
WO2023221508A1 (en) 2023-11-23
CN115174524A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US9323692B2 (en) Managing translation of a same address across multiple contexts using a same entry in a translation lookaside buffer
US8775755B2 (en) Peer-to-peer transcendent memory
US20190392150A1 (en) Network-accessible computing service for micro virtual machines
US9003002B2 (en) Efficient port management for a distributed network address translation
JP2018503181A (en) Multi-core processor with cache coherency
US8954704B2 (en) Dynamic network adapter memory resizing and bounding for virtual function translation entry storage
EP3185516A1 (en) Address processing method, related device and system
US9448901B1 (en) Remote direct memory access for high availability nodes using a coherent accelerator processor interface
US20150301939A1 (en) Managing translations across multiple contexts using a tlb with entries directed to multiple privilege levels and to multiple types of address spaces
JP2019175415A (en) Method and system for allocating system resources
US20200371955A1 (en) Memory control for electronic data processing system
US20130042238A1 (en) Optimized Virtual Function Translation Entry Memory Caching
JP2016170669A (en) Load distribution function deployment method, load distribution function deployment device, and load distribution function deployment program
RU2606557C9 (en) Dynamic allocation of network addresses
EP3693853B1 (en) Method and device for scheduling acceleration resources, and acceleration system
JP2019523920A (en) Page fault solution
US20190018710A1 (en) Managing resource allocation of a managed system
US11822970B2 (en) Identifier (ID) allocation in a virtualized computing environment
US10310759B2 (en) Use efficiency of platform memory resources through firmware managed I/O translation table paging
CN115174524B (en) Floating IP distribution method and device, electronic equipment and storage medium
US9858199B1 (en) Memory management unit for shared memory allocation
CN114595164B (en) Method and apparatus for managing TLB cache in virtualized platform
CN112367256B (en) Creation method, device and storage medium
US10228859B2 (en) Efficiency in active memory sharing
CN113032088B (en) Dirty page recording method, device, electronic equipment and computer readable medium

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