Network traffic statistics method, electronic equipment and storage medium

A technology of network traffic and traffic statistics, which is applied to a method of network traffic statistics, electronic equipment and storage media, can solve the problems of no container network interface, no virtual machine network interface peering, etc., and achieve the effect of convenient traffic statistics

Pending Publication Date: 2021-12-03
CHINANETCENT TECH
View PDF9 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in the host mode, the container directly uses the network namespace of the host machine, there is no separate virtual machine network interface pair, that is, there is no independent network interface for the container, and it is impossible to perform traffic statistics on a single process / or process group, that is, it is impossible to Container group for traffic statistics

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
  • Network traffic statistics method, electronic equipment and storage medium
  • Network traffic statistics method, electronic equipment and storage medium
  • Network traffic statistics method, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, various implementation modes of the present invention will be described in detail below in conjunction with the accompanying drawings. However, those of ordinary skill in the art can understand that, in each implementation manner of the present invention, many technical details are provided for readers to better understand the present application. However, even without these technical details and various changes and modifications based on the following implementation modes, the technical solution claimed in this application can also be realized.

[0019] The division of the following embodiments is for the convenience of description, and should not constitute any limitation to the specific implementation of the present invention, and the various embodiments can be combined and referred to each other on the premise of no contradiction.

[0020] The con...

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 embodiment of the invention relates to the technical field of containers, and discloses a network traffic statistics method, electronic equipment and a storage medium. According to the method, container identification information in a data stream is obtained, and a container is set to be in a host mode; according to the container identification information and a preset identification relationship, an identifier of a container group corresponding to the data stream is determined, the identification relationship comprising a corresponding relationship between the container identification information and the identifier of the container group; and the data flow is counted into a flow counting result corresponding to the identifier of the container group. By adopting the embodiment of the invention, the network traffic of the container set to be in the host mode can be accurately counted.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of containers, and in particular to a method for network traffic statistics, electronic equipment, and a storage medium. Background technique [0002] The container is a sandbox technology, the main purpose is to run the application in it and isolate it from the outside world; it is convenient for the sandbox to be transferred to other hosts. In essence, a container is a special process that divides resources, files, devices, states, and configurations into an independent space through namespace, control groups, and chroot technology. The commonly used methods of container network mode are bridge mode and host mode. [0003] However, in the host mode, the container directly uses the network namespace of the host machine, there is no separate virtual machine network interface pair, that is, there is no independent network interface for the container, and it is impossible to perform traf...

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): H04L12/26H04L12/24
CPCH04L43/0888H04L41/142
Inventor 许加烜
Owner CHINANETCENT TECH
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