Unlock instant, AI-driven research and patent intelligence for your innovation.

Concurrent IP distribution method based on database optimistic lock

An allocation method and database technology, applied in the Internet field, can solve the problems of not supporting high concurrent allocation of IP, not supporting incremental application, multiple memory, etc., to achieve the effects of saving memory space, ensuring uniqueness, and optimizing programs

Active Publication Date: 2020-06-26
紫光云技术有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the existing logic has many problems on the basis of guaranteeing the allocation of IP addresses: 1. It does not support high-concurrency allocation of IPs, and can only apply for IPs serially in the same process; 2. Because all IPs in the subnet will be allocated The addresses are all calculated and stored in the memory, which will take up a lot of memory; 3. It does not support incremental applications. After the user applies for multiple IPs, one of them will be released, and the released IP will continue to be returned in the next application. If the underlying hardware (switch, virtual machine) configuration is not cleared, conflicts will occur

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Concurrent IP distribution method based on database optimistic lock
  • Concurrent IP distribution method based on database optimistic lock

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.

[0031] In describing the present invention, it should be understood that the terms "center", "longitudinal", "transverse", "upper", "lower", "front", "rear", "left", "right", The orientations or positional relationships indicated by "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. are based on the orientation or positional relationships shown in the drawings, and are only for the convenience of describing the present invention Creation and simplification of description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore should not be construed as limiting the invention. In addition, the terms "first", "second", etc. are used for descriptive purposes only, and should no...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a concurrent IP distribution method based on a database optimistic lock. The concurrent IP distribution method comprises the following steps: S1, establishing an ipallocalions data table in a database; wherein the ip storage module is used for storing ip allocated and released to each subnet; and S2, applying for an IP address, and querying whether the allocated maximum IP exists in the current sub-network in the ipallocalions data table or not. According to the method, high-concurrency IP distribution is supported, user requirements can be better met, uniqueness of theIP is ensured by adopting a database optimistic lock and a unique index. Meanwhile, the method is beneficial to saving memory space, continuous self-increment IP application is supported, and the problem of configuration conflict can be effectively prevented; according to the method, 100 + records can be generated per second through a single thread, 5000 + records are supported under the multi-thread condition, memory usage can be reduced, and programs can be optimized.

Description

technical field [0001] The invention belongs to the technical field of the Internet, and in particular relates to a concurrent IP allocation method based on database optimistic locking. Background technique [0002] The IP address is a unified address format provided by the IP protocol. It assigns a logical address to each network and each host on the Internet to shield the difference in physical addresses. When a user creates a virtual machine in his own VPC, in order to have the ability to communicate with other virtual machines in the VPC, he needs to assign an IP to the network card of the virtual machine. When users apply for an IP address, they need to specify the subnet they belong to. In this way, the IP can be allocated randomly or specified from the subnet. When assigning IPs, it is necessary to ensure that IPs in the same subnet cannot be assigned repeatedly, and reserved IPs are supported and will not be assigned to users. In the existing process, user request...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/22G06F16/2455G06F16/248G06F9/52H04L29/12
CPCG06F16/2228G06F16/2282G06F16/24553G06F16/248G06F9/524H04L61/5007Y02D10/00
Inventor 王树强
Owner 紫光云技术有限公司