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

Container message sending and receiving method, storage medium and container communication system

A sending method and message forwarding technology, which is applied in transmission systems, digital transmission systems, data exchange networks, etc., can solve the problem that containers occupy interface address resources alone, are not compatible with existing equipment, and are not open to communication between containers and external networks. problem, to achieve the effect of improving resource utilization efficiency

Pending Publication Date: 2021-12-07
ZTE CORP
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the above technical problems, the present invention provides a method and system for sending and receiving container messages, which solves the problem of low openness and incompatibility with existing equipment in the communication between the container and the external network, and the container needs to be occupied separately The problem with the interface address resource

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 message sending and receiving method, storage medium and container communication system
  • Container message sending and receiving method, storage medium and container communication system
  • Container message sending and receiving method, storage medium and container communication system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] In this embodiment, a method for sending a container message is provided, figure 1 is a flowchart of a method for sending a container message according to an embodiment of the present invention, such as figure 1 As shown, the process includes the following steps:

[0022] Step S101, the container message is sent from the eth0 interface, and the address of the eth0 interface is the NOS interface address of the network device operating system;

[0023] In step S101, the container is hooked to the sink through a virtual Ethernet pair veth pair (a virtual Ethernet pair is a paired port, and all data packets entering from one end of the pair of ports will come out from the other end, and vice versa) On the host operating system, eth0 is the interface on the container side of the veth pair. The proxy module registers the transmission control protocol TCP port range and / or the user datagram protocol UDP port range of the container.

[0024] Step S102, the agent service modu...

Embodiment 2

[0029] In this embodiment, a method for creating a container communication system is provided, figure 2 is a flowchart of creating a container communication network according to an embodiment of the present invention, such as figure 2 As shown, the process includes the following steps:

[0030] Step S201, first, through the bridge network mode of the basic container, attach the container to the host OS through the virtual Ethernet network pair;

[0031] In step S201, an interface eth0 of the interface pair of the veth pair is an interface in the container, and the other interface of the interface pair of the veth pair is connected to the bridge of the host machine. Under normal circumstances, this creation work can be completed by the container network. When the container network is specified as a bridge, it is the connection mode of the veth pair.

[0032] Step S202, creating an lo interface for the container, and the interface address inherits the interface address of th...

Embodiment 3

[0044] In this embodiment, a method for creating a container communication system is provided, image 3 is the data flow diagram of the communication between the container and the outside in the embodiment of the present invention, such as image 3 As shown, the data flow includes the following steps:

[0045] Step 301, when the container system communicates with the outside, according to the route of the container system, the message is sent from the eth0 interface, using the IP_NOS address of the NOS interface as the source address, and according to the link type of the route, first trigger an ARP request to the destination address of the communication;

[0046] Step 302, the proxy service module creates a socket based on the host OS, binds it to the docker0 interface, captures the ARP request sent from the container, uses the interface address of the NOS to implement ARP proxy, and completes the ARP proxy learning process of the container system. All IP packets sent by the...

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 container message sending and receiving method and system and a computer storage medium, and the method comprises the steps that a container message is sent out from an eth0 interface, and the address of the eth0 interface is a network equipment operating system NOS interface address; the proxy service module creates a socket on a host machine operating system, wherein the socket is used for capturing a container message sent by a container; and the proxy service module forwards the container message to the NOS, and the NOS sends out the container message. Through the invention, the technical effects that the container communicates with the external equipment on the basis of the existing equipment, and extra resources are not occupied are achieved.

Description

technical field [0001] Embodiments of the present invention relate to, but are not limited to, a method for sending and receiving container messages, a storage medium, and a container communication system. Background technique [0002] With the rapid development of the Internet and cloud computing, the construction scale of data centers is getting bigger and bigger, and the complexity of the system is getting higher and higher, which brings great challenges to the operation and maintenance of network equipment. Allowing network devices to provide more openness has become a trend of future technology development. There are two major aspects to realize the openness of the network: on the one hand, through the use of management tools, the management level of network automation can be improved to support a wide range of automation features; on the other hand, it can support the programmable ability of network devices. [0003] As the scale of the network becomes larger and larg...

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
IPC IPC(8): H04L12/741H04L29/06H04L29/08H04L45/74
CPCH04L45/74H04L69/162H04L67/56
Inventor 张丽晖
Owner ZTE CORP
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More