Method and apparatus for allocating CTDB-based virtual IP address, and distributed storage device

US11757830B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11757830-B2
Application numberUS-202017910083-A
CountryUS
Kind codeB2
Filing dateJun 24, 2020
Priority dateMar 12, 2020
Publication dateSep 12, 2023
Grant dateSep 12, 2023

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

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.

First claim

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

Assignees

Inventors

Classifications

  • Internet protocol [IP] addresses · CPC title

  • G06F16/27Primary

    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

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11757830B2 cover?
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 addr…
Who is the assignee on this patent?
Inspur Suzhou Intelligent Technology Co Ltd
What technology area does this patent fall under?
Primary CPC classification H04L61/5007. Mapped technology areas include Electricity.
When was this patent published?
Publication date Tue Sep 12 2023 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 2 related publications on this page (citations in our corpus or others sharing the same primary CPC).