Methods for configuring and managing an ip network, corresponding devices and computer programs
US-2016219016-A1 · Jul 28, 2016 · US
US11757830B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-11757830-B2 |
| Application number | US-202017910083-A |
| Country | US |
| Kind code | B2 |
| Filing date | Jun 24, 2020 |
| Priority date | Mar 12, 2020 |
| Publication date | Sep 12, 2023 |
| Grant date | Sep 12, 2023 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
Disclosed are a Cluster Trivial Database (CTDB)-based virtual Internet Protocol (IP) address allocation method and apparatus, a distributed storage device, and a computer-readable storage medium. The method is applied to a distributed storage cluster. A known IP Version 4 (IPV4) virtual IP address parameter and available IPV4 virtual IP address parameter corresponding to an IPV4 virtual IP address and a known IP Version 6 (IPV6) virtual IP address parameter and available IPV6 virtual IP address parameter corresponding to an IPV6 virtual IP address may be acquired to obtain an IPV4 allocation result and an IPV6 allocation result by calculation respectively, and then virtual IP addresses are allocated to each normal node by use of the IPV4 allocation result and the IPV6 allocation result.
Opening claim text (preview).
The invention claimed is: 1. A method for allocating a virtual Internet Protocol (IP) address, being applied to a distributed storage cluster and comprising: acquiring, by a Cluster Trivial Database (CTDB) master node, a known IP Version 4 (IPV4) virtual IP address parameter, a known IP Version 6 (IPV6) virtual IP address parameter, an available IPV4 virtual IP address parameter, and an available IPV6 virtual IP address parameter, wherein the known IPV4 virtual IP address parameter comprises a known IPV4 virtual IP address corresponding to each of normal nodes; performing virtual IP address allocation calculation by use of the known IPV4 virtual IP address parameter and the available IPV4 virtual IP address parameter to obtain an IPV4 allocation result; performing virtual IP address allocation calculation by use of the known IPV6 virtual IP address parameter and the available IPV6 virtual IP address parameter to obtain an IPV6 allocation result; and performing virtual IP address allocation on each of the normal nodes according to the IPV4 allocation result and the IPV6 allocation result; wherein the performing virtual IP address allocation on each of the normal nodes according to the IPV4 allocation result and the IPV6 allocation result comprises: generating a final allocation result according to the IPV4 allocation result and the IPV6 allocation result; and performing virtual IP address allocation on each of the normal nodes according to the final allocation result. 2. The method for allocating the virtual IP address according to claim 1 , wherein the acquiring, by a CTDB master node, a known IPV4 virtual IP address parameter, a known IPV6 virtual IP address parameter, an available IPV4 virtual IP address parameter, and an available IPV6 virtual IP address parameter comprises: acquiring, by the CTDB master node, a known virtual IP address parameter and an available virtual IP address parameter, wherein the known virtual IP address parameter comprises a known virtual IP address corresponding to each of the normal nodes, and the available virtual IP address parameter comprises an available virtual IP address corresponding to each of the normal nodes; and separating IPV4 parts and IPV6 parts in the known virtual IP address parameter and the available virtual IP address parameter respectively to obtain the known IPV4 virtual IP address parameter, the known IPV6 virtual IP address parameter, the available IPV4 virtual IP address parameter, and the available IPV6 virtual IP address parameter. 3. The method for allocating the virtual IP address according to claim 2 , wherein when the known virtual IP address parameter and the available virtual IP address parameter are a known virtual IP address list and an available virtual IP address list respectively, the separating IPV4 parts and IPV6 parts in the known virtual IP address parameter and the available virtual IP address parameter respectively to obtain the known IPV4 virtual IP address parameter, the known IPV6 virtual IP address parameter, the available IPV4 virtual IP address parameter, and the available IPV6 virtual IP address parameter comprises: traversing all known virtual IP addresses corresponding to each of the normal nodes in the known virtual IP address list, and recording a first number and a second number, wherein the first number is a number of known IPV4 virtual IP addresses in the known virtual IP address list, and the second number is a number of known IPV6 virtual IP addresses in the known virtual IP address list; generating a known IPV4 virtual IP address list and a known IPV6 virtual IP address list corresponding to the known virtual IP address list according to the first number and the second number, wherein a length of the known IPV4 virtual IP address list is the first number, and a length of the known IPV6 virtual IP address list is the second number; traversing all available virtual IP addresses corresponding to each of the normal nodes in the available virtual IP address list, and recording a third number and a fourth number, wherein the third number is a number of available IPV4 virtual IP addresses in the available virtual IP address list, and the fourth number is a number of available IPV6 virtual IP addresses in the available virtual IP address list; and generating an available IPV4 virtual IP address list and an available IPV6 virtual IP address list corresponding to the available virtual IP address list according to the third number and the fourth number, wherein a length of the available IPV4 virtual IP address list is the third number, and a length of the available IPV6 virtual IP address list is the fourth number. 4. The method for allocating the virtual IP address according to claim 1 , wherein the performing virtual IP address allocation on each of the normal nodes according to the IPV4 allocation result and the IPV6 allocation result comprises: in response to a determination that the IPV4 allocation result is null, determining the IPV6 allocation result as the final allocation result; in response to a determination that the IPV6 allocation result is null, determining the IPV4 allocation result as the final allocation result; and in response to a determination that both the IPV4 allocation result and the IPV6 allocation result are not null, connecting the IPV6 allocation result to the IPV4 allocation result to generate the final allocation result. 5. The method for allocating the virtual IP address according to claim 1 , wherein before the performing virtual IP address allocation calculation by use of the known IPV4 virtual IP address parameter and the available IPV4 virtual IP address parameter to obtain an IPV4 allocation result, the method further comprises: determining whether a condition is satisfied that the known IPV4 virtual IP address parameter comprises a known IPV4 virtual IP address corresponding to a target node or the available IPV4 virtual IP address parameter comprises an available IPV4 virtual IP address corresponding to any of the normal nodes, wherein the target node is any of the normal nodes, and the target node currently holds an IPV4 virtual IP address; in response to a determination that the condition is satisfied, performing the virtual IP address allocation calculation by use of the known IPV4 virtual IP address parameter and the available IPV4 virtual IP address parameter to obtain the IPV4 allocation result; and in response to a determination that the condition is not satisfied, performing the virtual IP address allocation calculation by use of the known IPV6 virtual IP address parameter and the available IPV6 virtual IP address parameter to obtain the IPV6 allocation result. 6. The method for allocating the virtual IP address according to claim 1 , wherein a number of known IPV4 virtual IP addresses in the known IPV4 virtual IP address parameter is an integral multiple of a number of the normal nodes, and a number of known IPV6 virtual IP addresses in the known IPV6 virtual IP address parameter is an integral multiple of the number of the normal nodes. 7. The method for allocating the virtual IP address according to claim 1 , wherein before the performing virtual IP address allocation on each of the normal nodes according to the IPV4 allocation result and the IPV6 allocation result, the method comprises: determining whether the normal nodes comprise a reallocation node according to the IPV4 allocation result and the IPV6 allocation result, wherein a number of virtual IP addresses corresponding to the reallocation node is larger than a number of virtual IP addresses corresponding to an allocation target node by 2, and the allocation target node is any of the normal nodes; in response to a determination that the normal nodes do not comprise the reallocation
Internet protocol [IP] addresses · CPC title
Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor · CPC title
for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS] · CPC title
Assignment of logical groups to network elements · CPC title
Profiles · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.