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

A method for limiting bandwidth of container public network based on optional fields of ip protocol

A technology of bandwidth limitation and IP protocol, which is applied in the field of container public network bandwidth limitation based on the optional field of IP protocol, can solve the problems of unsure of the source of data packets, loss, etc., achieve high operating performance, reduce management costs, and high operating efficiency Effect

Active Publication Date: 2021-12-07
杭州又拍云科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

After the first layer of conversion, the IP address of the container is lost. On the gateway machine, only the physical machine from which the data packet comes from can be determined, and it is impossible to determine which container on the physical machine the data packet originates from.

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 method for limiting bandwidth of container public network based on optional fields of ip protocol
  • A method for limiting bandwidth of container public network based on optional fields of ip protocol
  • A method for limiting bandwidth of container public network based on optional fields of ip protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] Such as figure 1 As shown, a container public network bandwidth limitation method based on an IP protocol optional field includes the following steps:

[0047] 1) Load the Linux kernel module 1 on the physical machine, and after receiving the data packet sent by the container to the public network, add the IP address of the container to the options field of the IP header of the data packet;

[0048] 2) After the data packet sent in the container passes through the first layer of NAT of the physical machine, the source IP address of the data packet is modified to the LAN address of the physical machine and sent to the gateway machine;

[0049] 3) the gateway machine loads the kernel module 2, and after receiving the data packet, takes out the IP address of the container in the options field of the IP header of the data packet, and puts a corresponding label on the data packet;

[0050] 4) The gateway machine saves the label in the data packet to the connection in the IN...

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 public network bandwidth limitation method based on an optional field of the IP protocol. By loading a specific kernel module on a physical machine of the local area network, before the container sends the IP data packet to the local area network, the container IP of the IP data packet is sent to the local area network. The address is set into an optional field of the IP protocol. On the public network gateway machine of the LAN, by loading a specific kernel module, the container IP address in the optional field of the IP data packet is taken out, and the data packet is marked with a corresponding label, and then passed to the bandwidth limiting module for bandwidth control. The invention uniformly manages and restricts the flow of all containers in the local area network on a local area network gateway machine, simplifies the software architecture, improves management efficiency, and reduces management costs. Moreover, the present invention can realize the joint management and limitation of the public network bandwidth of multiple containers across physical machines, and the operations on data packets are all completed in the kernel state of the operating system, which has high operating efficiency.

Description

technical field [0001] The present invention relates to the technical field of containers, in particular to a container public network bandwidth limiting method based on an IP protocol optional field. Background technique [0002] Containers are a lightweight computing virtualization technology. By using container technology, applications and their operating environments such as standard libraries, third-party libraries, and configuration files that they depend on can be packaged into a container image, and subsequent application operations can be replaced by running container images. Compared with running the application directly, packaging the application into a container image and running it has the advantage of isolating the operating environment and physical resources. Because the operating environment and physical resources such as CPU, memory, and network between containers are isolated from each other, when multiple containers run on the same physical machine, it wi...

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): H04L12/24H04L12/66H04L12/833H04L29/12G06F9/4401H04L47/31
CPCH04L41/0896H04L61/2503H04L12/66H04L47/31G06F9/4411
Inventor 叶靖
Owner 杭州又拍云科技有限公司