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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



