Network communication method and device

A technology of network communication and network request, applied in the direction of program control device, program control design, instrument, etc., can solve the problems such as the docker container network communication that cannot be achieved across the host machine, the external network device and the docker container network communication, etc., to achieve network communication The effect of communication

Inactive Publication Date: 2017-11-24
BEIJING XIAODU INFORMATION TECH CO LTD
View PDF4 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a network communication method and device to solve the technical problems in the prior art that network communication between docker containers across host machines and network communication between external network devices and docker containers cannot be realized

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 communication method and device
  • Network communication method and device
  • Network communication method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention.

[0044] In some processes described in the specification and claims of the present invention and the above-mentioned drawings, a plurality of operations appearing in a specific order are contained, but it should be clearly understood that these operations may not be performed in the order in which they appear herein Execution or parallel execution, the serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. Additionally, these processes can include more or fewer operations, and these operations can be performed sequentially or in parallel. It should be n...

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 provides a network communication method and device and relates to the technical field of a computer. The method comprises the step of receiving a network request arriving at a host; judging whether the network request comes from a flannel coverage network or not, wherein the host is configured in the flannel coverage network; if the network request does not come from the flannel coverage network, converting a destination address in the network request into a corresponding container address based on a destination address mapping relationship; sending the converted network request to a docker virtual network card; if the network request comes from the flannel coverage network, unpackaging the network request to obtain a source request; and sending the source request to a flannel virtual network card and forwarding the source request to the docker virtual network card through the flannel virtual network car. According to the technical scheme provided by the embodiment of the invention, the network communication between cross-host docker containers, and the network communication between an external network device and the docker container are realized.

Description

technical field [0001] Embodiments of the present invention relate to the field of computer application technologies, and in particular, to a network communication method and device. Background technique [0002] Docker is an open source application container engine, which can realize containerization or virtualization in the host by creating a docker container in the host. [0003] In the prior art, after a docker container is created in the host machine, a docker virtual network card (docker0 for short) may be created in the host machine. The docker container and docker0 realize network intercommunication through the virtual network stack pair. One end of the virtual network stack pair is connected to docker0, and the other end is connected to the docker container. Therefore, all docker containers connected to the same docker0 can communicate with each other. [0004] However, the virtual address assigned to the docker container in each host is a private network address, ...

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/12H04L29/08G06F9/455
CPCH04L61/2503G06F9/45558G06F2009/45595H04L67/60
Inventor 高建刚
Owner BEIJING XIAODU INFORMATION 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