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

A container network management method and device

A management method and technology for a management device are applied in the field of container network management methods and devices, and can solve problems such as consumption of host port resources, loss of host performance, and inability to meet network throughput.

Active Publication Date: 2021-04-20
BEIJING SOHU NEW MEDIA INFORMATION TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The traditional CNI (Conteinre Network Interface, container network interface) plug-in method such as flannel is to establish a layer of overlay network, and transmit the IP data packet of the container by encapsulating IP packets with UDP (User Datagram Protocol, User Datagram Protocol). The problem caused by this is that the performance loss of the host is serious when it packs, unpacks and forwards, and cannot meet the needs of applications with high network throughput.
Although docker supports using the host network mode to share the IP with the host to avoid the process of packet unpacking and avoid this part of the loss, but when there are too many containers in the host network mode, it will consume a lot of port resources of the host. If a single This problem is exacerbated when the container needs to occupy many ports on the host

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
  • A container network management method and device
  • A container network management method and device
  • A container network management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0044] like figure 1 As shown, it is a flowchart of Embodiment 1 of a container network management method disclosed in the present invention, including:

[0045] S101. Read the network mode of the container;

[0046] When kubernetes receives the user's request to create a container, it reads the network mode selected by the user for the container by calling the interface.

[0047] S102, when the network mode is the first network mod...

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 discloses a container network management method, which includes reading the network mode of the container, and reading the available IP from the IP pool when the network mode is the first network mode, and the first network mode is that the throughput requirement is higher than the preset Set the network mode of the threshold value, configure the IP of the container as an available IP, and establish a network card pair for the container. One end of the network card pair is connected to the host network card, and the other end is connected to the container network card. The host network card is directly connected to the external network where the container is located. Network card, the container network card is the network card of the container. In the present invention, when the network requirements of the container are relatively high, a local area network IP accessible outside the cluster is assigned to this type of container. The need for containers with high performance requirements.

Description

technical field [0001] The present invention relates to the field of Internet technologies, and in particular, to a method and device for managing a container network. Background technique [0002] Docker is an open source application container engine that allows developers to package their applications and dependencies into a portable container, which can then be distributed to any popular Linux machine, or implemented. Containers completely use the sandbox mechanism and do not have any access interfaces between them. Kubernetes is a container cluster management system and an open source container orchestration management platform. Its main functions are as follows: use the docker container to package, instantiate, run and schedule the application and the environment variables that the application runs. Orchestrate and manage cross-machine containers in a cluster. Configure the network for docker containers to solve the problem of orientation between containers. Kubernete...

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 Patents(China)
IPC IPC(8): H04L29/12H04L12/24
CPCH04L41/0803H04L41/5051H04L61/5061H04L61/5046H04L61/5007
Inventor 王易可
Owner BEIJING SOHU NEW MEDIA INFORMATION TECH