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

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 host performance loss, consumption of host port resources, and inability to meet network throughput.

Active Publication Date: 2018-05-04
BEIJING SOHU NEW MEDIA INFORMATION TECH
View PDF5 Cites 3 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
  • Container network management method and device
  • Container network management method and device
  • Container network management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0044] Such as figure 1 As shown, it is a flow chart 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 calls the interface to read the network mode selected by the user for the container.

[0047] S102. When the network mode is the first network mode, read the available IP ...

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. The container network management method comprises the following steps: reading the network mode of a container; reading an available IP from the IP pool when the network mode is a first network mode, wherein the first network mode is the network mode with higher throughput requirement than a preset threshold; and configuring the IP ofthe container to the available IP; establishing a network card pair for the container, wherein one end of the network card pair is connected with the host network card, the other end is connected withthe container network card, the host network card is the network card directly connected with an external network of the host where the container is located, and the container network card is the network card of the container. In the container network management method, when the network requirements of the container are higher, a local area network IP which can be accessed by the external of cluster is allocated for such containers; and the IP is in the same network segment as the IP of the host where the container is located; therefore, the requirements of the containers which require a large number of ports and high network performance are satisfied.

Description

technical field [0001] The present invention relates to the technical field of the Internet, in particular to a management method and device for 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, and then publish it to any popular Linux machine. Containers use a sandbox mechanism completely, and there will be no 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 in which the application runs. Arrange and manage cross-machine containers in a cluster mode. Configure the network for docker containers to solve the problem of orientation between containers. The self-healing mechanism of Ku...

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