IP address allocation method and system, electronic equipment and storage medium

A technology of IP address and allocation method, which is applied in the direction of transmission system, electrical components, etc., can solve problems such as pod IP address allocation abnormality, achieve the effect of avoiding IP address allocation conflicts and improving the allocation speed

Active Publication Date: 2022-05-31
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Then sometimes some IPs have been allocated to the next pod before the recycling is completed, and this will lead to an abnormal situation in the IP address allocation of the pod

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
  • IP address allocation method and system, electronic equipment and storage medium
  • IP address allocation method and system, electronic equipment and storage medium
  • IP address allocation method and system, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] Specifically, as figure 1 As shown, the process of applying the IP address allocation method disclosed in this embodiment to perform network configuration on the pods in the container cluster is as follows:

[0058] S100. Set a first IP address allocation mode.

[0059] Specifically, the setting process of the above-mentioned first IP address allocation mode (that is, the reciprocating IP address allocation mode) includes:

[0060] S110. Create an IP pool.

[0061] Specifically, create an IP pool resource type in the Kubernetes cluster, and set the IP pool to record the network segment information and the IP addresses used in the network segment. In some embodiments, the IP pool is further configured to record the configured pod name corresponding to the used IP address in the network segment, so as to establish a mapping table between the configured pod name and the used IP address, so as to perform other needs later Operation to query the correspondence between pod...

Embodiment 2

[0086] Corresponding to the above embodiments, the present application provides a method for IP address allocation, such as image 3 As shown, the method includes:

[0087] 3100. Obtain current state data of the container cluster;

[0088] Preferably, before acquiring the current state data of the container cluster, the method further includes:

[0089] 3110. Monitor the IP address allocation request in the cluster, where the IP address allocation request at least includes the name of the pod to be configured;

[0090] 3120. After monitoring the IP address allocation request, execute the method of claim 1.

[0091] 3200. Input the current state data into a trained distribution mode selection model, and obtain an output result of the distribution mode selection model;

[0092] Preferably, the method further includes training the distribution mode selection model, and the training process of the distribution mode selection model includes:

[0093] 3210. Perform training on t...

Embodiment 3

[0113] Corresponding to Embodiment 1 and Embodiment 2 above, the embodiment of the present application further provides an IP address allocation system, such as Figure 4 As shown, the system includes:

[0114] a data preparation module 410, configured to obtain current state data of the container cluster;

[0115] The data analysis module 420 inputs the current state data into the trained distribution mode selection model, and obtains the output result of the distribution mode selection model;

[0116] The data analysis module 420 is further configured to determine a target IP address allocation mode according to the output result;

[0117] The data processing module 430 is configured to allocate an IP address to the to-be-configured pod according to the IP address allocation mode.

[0118] In some embodiments, the data analysis module 420 is further configured to select the output result of the model as a first IP address allocation pattern probability and a second IP addr...

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 an IP address allocation method. The IP address allocation method comprises the steps of obtaining current state data of a container cluster; inputting the current state data into a trained distribution mode selection model, and obtaining an output result of the distribution mode selection model; determining a target IP address allocation mode according to the output result; and allocating an IP address to the to-be-configured pod according to the IP address allocation mode. According to the invention, the distribution mode selection model is trained based on factors influencing IP distribution, such as pod scheduling rate, network delay rate, load pressure of cluster nodes and the like of the cluster, intelligent selection of the IP address distribution mode is realized, and through cooperative processing of the two IP address distribution modes, the problem of IP address distribution conflict is avoided, and the user experience is improved. And the distribution speed of the IP address is improved.

Description

technical field [0001] The present invention relates to the technical field of container networks, and in particular, to an IP address allocation method, system, electronic device and storage medium. Background technique [0002] In recent years, cloud computing technology is in a stage of vigorous development, including virtualization technology, distributed technology and cloud native technology, which together promote the continuous evolution of cloud computing technology. The container technology of the cloud native technology center is currently taking the lead. Docker (Application Container Engine) container is a very lightweight virtualized cloud-native technology that can be deployed in seconds. The main idea is to encapsulate the application and the running environment at one time, so that it can run across platforms. Its core technology is to build a process isolation environment through Linux namespace, cgroups (control group) and rootfs (root file system), packa...

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): H04L61/5007H04L61/5046H04L61/5061H04L67/1097H04L101/695
CPCH04L67/1097
Inventor 王文潇
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products