CN109309663A - Realize that docker network penetrates the method and device of two layers of protocol stack under cloud computing environment - Google Patents

Realize that docker network penetrates the method and device of two layers of protocol stack under cloud computing environment Download PDF

Info

Publication number
CN109309663A
CN109309663A CN201810918542.5A CN201810918542A CN109309663A CN 109309663 A CN109309663 A CN 109309663A CN 201810918542 A CN201810918542 A CN 201810918542A CN 109309663 A CN109309663 A CN 109309663A
Authority
CN
China
Prior art keywords
protocol stack
transparent transmission
data packet
network
new data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810918542.5A
Other languages
Chinese (zh)
Other versions
CN109309663B (en
Inventor
张瑞海
靳春孟
张建伟
刘建
邵洪润
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Micro Technology Co Ltd
Original Assignee
Xiamen Micro Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Micro Technology Co Ltd filed Critical Xiamen Micro Technology Co Ltd
Priority to CN201810918542.5A priority Critical patent/CN109309663B/en
Publication of CN109309663A publication Critical patent/CN109309663A/en
Application granted granted Critical
Publication of CN109309663B publication Critical patent/CN109309663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/12Protocol engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention, which discloses, realizes that docker network penetrates the method and device of two layers of protocol stack under cloud computing environment, method, which includes: docker network protocol stack, is stored to transparent transmission that physical node is pre-created in protocol stack cache for tcp/ip/eth correlation bag data and corresponding header packet information, and it address and size corresponded to according to the cache constructs a new data packet and is put into relevant protocol stack packet processing function and issue cloud host protocol stack, it is set to judge whether received data packet is placed in transparent transmission protocol stack cache, if directly issuing physical node protocol stack;Physical node protocol stack takes out address, size therein and corresponding header packet information when receiving the data packet, takes out the transparent transmission data stored in protocol stack cache according to the address of taking-up and size and will be transmitted to tcp, ip, eth layers of corresponding function and carry out issuing physical network card after package processing and sends out.The data packet number of the network protocol stack in docker, cloud host can be reduced, cpu utilization rate and data packet forwarding speed are reduced.

Description

Realize that docker network penetrates the method and device of two layers of protocol stack under cloud computing environment
Technical field
The present embodiments relate to technical field of the computer network, and in particular to realizes docker under a kind of cloud computing environment Network penetrates the method and device of two layers of protocol stack.
Background technique
Docker is the application container engine of an open source, and developer can be packaged their application and rely on packet and arrives In one transplantable container, then it is published on the Linux machine of any prevalence, also may be implemented to virtualize, container has been Sandbox mechanism is entirely used, does not have any interface between each other.Docker imagination is to deliver running environment such as sea-freight, OS (behaviour Make system) such as same cargo ship, each for example same container of software on the basis of OS, user can pass through standardization Means freely assemble running environment, while the content of container can be customized by the user, and can also be manufactured by professional.This Sample delivers a software, is exactly the intersection of sets pair of series of standards component, and such as happy together high building blocks, user only need to select Suitable building blocks combination, and in oneself upper name (last modular unit be user apply app) of top administration
Now, docker is more and more used in the cloud computing environment, and user installs after often first creating cloud host Docker service, the data packet of docker network can get ahead the network protocol stack of docker under this scene, then from cloud host Protocol stack is gone out, the protocol stack for physical machine of going further, and will cause great cpu (central processing unit) in this way, memory, time disappear Consumption can handle problems there is no good technical solution at present.
Summary of the invention
Since existing method is there are the above problem, the embodiment of the present invention proposes to realize docker net under a kind of cloud computing environment Network penetrates the method and device of two layers of protocol stack.
In a first aspect, the embodiment of the present invention proposes to realize that docker network penetrates two layers of protocol stack under a kind of cloud computing environment Method, comprising:
The relevant bag data of tcp/ip/eth and corresponding header packet information are stored in physical node by docker network protocol stack The transparent transmission being pre-created in protocol stack cache, and according to the transparent transmission with the corresponding address address of protocol stack cache and Size size constructs a new data packet, and the new data packet is put into relevant protocol stack packet processing function and is sent Give cloud host protocol stack;
Cloud mainframe network protocol stack judges whether the received new data packet is placed in transparent transmission protocol stack cache, If the new data packet is directly then transmitted to physical node protocol stack;
Physical node protocol stack when receiving the new data packet, take out address in the new data packet, Size and corresponding header packet information take out the transparent transmission according to the address of taking-up and size and are deposited in protocol stack cache The taken out transparent transmission is transmitted to tcp, ip, eth layers of corresponding function with the data stored in protocol stack cache by the data put Physical network card is issued after progress package processing to send out.
Optionally, the relevant bag data of tcp/ip/eth and corresponding header packet information are stored in docker network protocol stack The transparent transmission that physical node is pre-created is in protocol stack cache, and according to the transparent transmission corresponding address protocol stack cache Address and size size constructs a new data packet, and the new data packet is put into relevant protocol stack packet and is handled It is sent in function before cloud host protocol stack, the method also includes:
Transparent transmission protocol stack cache is created in physical node, and the transparent transmission is sent to protocol stack cache The network-driven of docker network protocol stack.
Optionally, transparent transmission protocol stack cache is created in physical node, and transparent transmission protocol stack cache is transmitted After the network-driven of docker network protocol stack, the method also includes:
The network-driven for modifying docker network protocol stack, keeps docker network protocol stack that tcp/ip/eth is relevant Bag data and corresponding header packet information are stored in transparent transmission that physical node is pre-created in protocol stack cache, and according to described Biography constructs a new data packet with protocol stack cache corresponding address address and size size, by the new number It is put into relevant protocol stack packet processing function according to packet and is sent to cloud host protocol stack;
The network-driven for modifying cloud mainframe network protocol stack, makes cloud mainframe network protocol stack judge the received new number Whether it is placed in transparent transmission protocol stack cache according to packet, if the new data packet is directly then transmitted to physical node agreement Stack;
The network-driven for modifying physical node protocol stack, makes physical node protocol stack receive the new data packet When, take out address, size and corresponding header packet information in the new data packet, according to the address of taking-up and Size takes out the transparent transmission data stored in protocol stack cache, and the taken out transparent transmission is deposited in protocol stack cache The data put, which are transmitted to tcp, ip, eth layers of corresponding function and carry out issuing physical network card after package processing, to be sent out.
Second aspect, the embodiment of the present invention also propose to realize that docker network penetrates two layers of association under a kind of cloud computing environment Discuss the device of stack, comprising:
First sending module believes the relevant bag data of tcp/ip/eth and corresponding packet header for docker network protocol stack Breath is stored in transparent transmission that physical node is pre-created in protocol stack cache, and according to the transparent transmission with cache pairs of protocol stack The address address and size size answered constructs a new data packet, and the new data packet is put into relevant agreement Cloud host protocol stack is sent in stack packet processing function;
Second sending module judges whether the received new data packet is placed on transparent transmission for cloud mainframe network protocol stack With in protocol stack cache, if the new data packet is directly then transmitted to physical node protocol stack;
Third sending module takes out described new for physical node protocol stack when receiving the new data packet Address, size and corresponding header packet information in data packet take out the transparent transmission according to the address of taking-up and size With the data stored in protocol stack cache, by the taken out transparent transmission with the data stored in protocol stack cache be transmitted to tcp, Physical network card is issued after ip, eth layers of corresponding functions progress package processing to send out.
Optionally, described device further include:
Creation module, for creating transparent transmission protocol stack cache in physical node, and by the transparent transmission protocol stack Cache sends the network-driven of docker network protocol stack to.
Optionally, described device further include:
First modified module makes docker network protocol stack will for modifying the network-driven of docker network protocol stack The relevant bag data of tcp/ip/eth and corresponding header packet information are stored in the transparent transmission protocol stack cache that physical node is pre-created In, and a new data are constructed with protocol stack cache corresponding address address and size size according to the transparent transmission The new data packet is put into relevant protocol stack packet processing function and is sent to cloud host protocol stack by packet;
Second modified module sentences cloud mainframe network protocol stack for modifying the network-driven of cloud mainframe network protocol stack Whether the received new data packet of breaking is placed in transparent transmission protocol stack cache, if then directly by the new data packet It is transmitted to physical node protocol stack;
Third modified module is receiving physical node protocol stack for modifying the network-driven of physical node protocol stack When to the new data packet, address, size and corresponding header packet information in the new data packet are taken out, according to The address and size of taking-up take out the transparent transmission data stored in protocol stack cache, and the taken out transparent transmission is assisted The data stored in view stack cache are transmitted to after tcp, ip, eth layers of corresponding function carry out package processing and issue physical network card transmission It goes out.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, comprising: processor, memory, bus and are stored in On memory and the computer program that can run on a processor;
Wherein, the processor, memory complete mutual communication by the bus;
The processor realizes the above method when executing the computer program.
Fourth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, on the storage medium It is stored with computer program, which realizes the above method when being executed by processor.
As shown from the above technical solution, realize that docker network is worn under a kind of cloud computing environment provided in an embodiment of the present invention The method and device of saturating two layers of protocol stack, by being created in advance by the way that data and corresponding data packet header information are put into physical node The transparent transmission built is with the data packet in protocol stack cache, allowed inside docker no longer all one by one all by docker network protocol The processing of stack, cloud mainframe network protocol stack and physical node protocol stack greatly reduces the network in docker, cloud host and assists The data packet number for discussing stack, to reduce the forwarding speed of cpu utilization rate and data packet.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these figures.
Fig. 1 is to realize that docker network penetrates two layers of protocol stack under a kind of cloud computing environment that one embodiment of the invention provides Method flow diagram;
Fig. 2 is to realize that docker network penetrates two layers of protocol stack under a kind of cloud computing environment that one embodiment of the invention provides Device structural schematic diagram;
Fig. 3 is the entity structure schematic diagram for the electronic equipment that one embodiment of the invention provides.
Specific embodiment
With reference to the accompanying drawing, further description of the specific embodiments of the present invention.Following embodiment is only used for more Technical solution of the present invention is clearly demonstrated, and not intended to limit the protection scope of the present invention.
Fig. 1, which is shown, realizes that docker network penetrates two layers under a kind of cloud computing environment that one embodiment of the invention provides The flow diagram of the method for protocol stack, as shown in Figure 1, realizing that docker network penetrates two under the cloud computing environment of the present embodiment The method of layer protocol stack, comprising:
S1, docker network protocol stack are by tcp (transmission control protocol)/ip (agreement interconnected between network)/eth (ethernet Ethernet) relevant bag data and corresponding header packet information are stored in the transparent transmission agreement that physical node is pre-created In stack cache (cache memory), and according to the transparent transmission with the corresponding address of protocol stack cache (address) and Size (size) constructs a new data packet, and the new data packet is put into relevant protocol stack packet processing function It is sent to cloud host protocol stack.
At this time corresponding transparent transmission protocol stack can only will be recorded into a data block by tens of thousands of a packet combinings originally The address and size of cache greatly reduces cpu consumption of the data packet in a physical node.
S2, cloud mainframe network protocol stack judge whether the received new data packet is placed on transparent transmission protocol stack cache In, if the new data packet is directly then transmitted to physical node protocol stack;
S3, physical node protocol stack take out in the new data packet when receiving the new data packet Address, size and corresponding header packet information take out the transparent transmission protocol stack according to the address of taking-up and size The data stored in cache, by the taken out transparent transmission with the data stored in protocol stack cache be transmitted to tcp, ip, eth layers it is right Physical network card is issued after the function progress package processing answered to send out.
The method that docker network penetrates two layers of protocol stack is realized under a kind of cloud computing environment provided in this embodiment, is passed through Data and corresponding data packet header information are put into transparent transmission that physical node is pre-created in protocol stack cache, allowing docker The data packet of the inside no longer all passes through docker network protocol stack, cloud mainframe network protocol stack and physical node agreement one by one The processing of stack, greatly reduces the data packet number of the network protocol stack in docker, cloud host, to reduce cpu utilization rate With the forwarding speed of data packet.
Further, in a particular application, before the step S1, the present embodiment the method can also include:
Transparent transmission protocol stack cache is created in physical node, and the transparent transmission is sent to protocol stack cache The network-driven of docker network protocol stack.
Further, transparent transmission protocol stack cache is created in physical node, and transparent transmission protocol stack cache is passed After the network-driven for giving docker network protocol stack, the method can also include:
The network-driven for modifying docker network protocol stack, keeps docker network protocol stack that tcp/ip/eth is relevant Bag data and corresponding header packet information are stored in transparent transmission that physical node is pre-created in protocol stack cache, and according to described Biography constructs a new data packet with protocol stack cache corresponding address address and size size, by the new number It is put into relevant protocol stack packet processing function according to packet and is sent to cloud host protocol stack;
The network-driven for modifying cloud mainframe network protocol stack, makes cloud mainframe network protocol stack judge the received new number Whether it is placed in transparent transmission protocol stack cache according to packet, if the new data packet is directly then transmitted to physical node agreement Stack;
The network-driven for modifying physical node protocol stack, makes physical node protocol stack receive the new data packet When, take out address, size and corresponding header packet information in the new data packet, according to the address of taking-up and Size takes out the transparent transmission data stored in protocol stack cache, and the taken out transparent transmission is stored in protocol stack cache Data be transmitted to tcp, ip, eth layers of corresponding function and carry out issuing physical network card after package processing and send out.
The method that docker network penetrates two layers of protocol stack is realized under a kind of cloud computing environment provided in this embodiment, is passed through Data and corresponding data packet header information are put into transparent transmission that physical node is pre-created in protocol stack cache, allowing docker The data packet of the inside no longer all passes through docker network protocol stack, cloud mainframe network protocol stack and physical node agreement one by one The processing of stack, greatly reduces the data packet number of the network protocol stack in docker, cloud host, to reduce cpu utilization rate With the forwarding speed of data packet.
Realize that docker network penetrates two layers under a kind of cloud computing environment provided Fig. 2 shows one embodiment of the invention The structural schematic diagram of the device of protocol stack, as shown in Fig. 2, realizing that docker network penetrates two under the cloud computing environment of the present embodiment The device of layer protocol stack, comprising: the first sending module 21, the second sending module 22 and third sending module 23;Wherein:
First sending module 21 is used for docker network protocol stack for the relevant bag data of tcp/ip/eth and correspondence Header packet information is stored in transparent transmission that physical node is pre-created in protocol stack cache, and according to the transparent transmission protocol stack Cache corresponding address address and size size constructs a new data packet, and the new data packet is put into phase Cloud host protocol stack is sent in the protocol stack packet processing function of pass;
Second sending module 22 judges whether the received new data packet puts for cloud mainframe network protocol stack In transparent transmission in protocol stack cache, if the new data packet is directly then transmitted to physical node protocol stack;
The third sending module 23 takes out institute for physical node protocol stack when receiving the new data packet Address, size and corresponding header packet information in new data packet are stated, institute is taken out according to the address of taking-up and size The transparent transmission data stored in protocol stack cache are stated, the taken out transparent transmission is transmitted to the data stored in protocol stack cache Physical network card is issued after tcp, ip, eth layers of corresponding functions progress package processing to send out.
It is understood that first sending module 21 is according to the transparent transmission corresponding address protocol stack cache Address and size size constructs a new data packet, and the new data packet is put into relevant protocol stack packet and is handled It is sent to cloud host protocol stack in function, tens of thousands of a packet combinings can will only be recorded corresponding into a data block originally The address and size of transparent transmission protocol stack cache greatly reduces cpu consumption of the data packet in a physical node.
Realize that docker network penetrates the device of two layers of protocol stack, passes through under a kind of cloud computing environment provided in this embodiment Data and corresponding data packet header information are put into transparent transmission that physical node is pre-created in protocol stack cache, allowing docker The data packet of the inside no longer all passes through docker network protocol stack, cloud mainframe network protocol stack and physical node agreement one by one The processing of stack, greatly reduces the data packet number of the network protocol stack in docker, cloud host, to reduce cpu utilization rate With the forwarding speed of data packet.
Further, in a particular application, the present embodiment described device can also include not shown in the figure:
Creation module, for creating transparent transmission protocol stack cache in physical node, and by the transparent transmission protocol stack Cache sends the network-driven of docker network protocol stack to.
Further, described device can also include not shown in the figure:
First modified module makes docker network protocol stack will for modifying the network-driven of docker network protocol stack The relevant bag data of tcp/ip/eth and corresponding header packet information are stored in the transparent transmission protocol stack cache that physical node is pre-created In, and a new data are constructed with protocol stack cache corresponding address address and size size according to the transparent transmission The new data packet is put into relevant protocol stack packet processing function and is sent to cloud host protocol stack by packet;
Second modified module sentences cloud mainframe network protocol stack for modifying the network-driven of cloud mainframe network protocol stack Whether the received new data packet of breaking is placed in transparent transmission protocol stack cache, if then directly by the new data packet It is transmitted to physical node protocol stack;
Third modified module is receiving physical node protocol stack for modifying the network-driven of physical node protocol stack When to the new data packet, address, size and corresponding header packet information in the new data packet are taken out, according to The address and size of taking-up take out the transparent transmission data stored in protocol stack cache, and the taken out transparent transmission is assisted The data stored in view stack cache are transmitted to after tcp, ip, eth layers of corresponding function carry out package processing and issue physical network card transmission It goes out.
Realize that docker network penetrates the device of two layers of protocol stack, passes through under a kind of cloud computing environment provided in this embodiment Data and corresponding data packet header information are put into transparent transmission that physical node is pre-created in protocol stack cache, allowing docker The data packet of the inside no longer all passes through docker network protocol stack, cloud mainframe network protocol stack and physical node agreement one by one The processing of stack, greatly reduces the data packet number of the network protocol stack in docker, cloud host, to reduce cpu utilization rate With the forwarding speed of data packet.
Realize that docker network penetrates the device of two layers of protocol stack, can be used for executing under the cloud computing environment of the present embodiment The technical solution of preceding method embodiment, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Fig. 3 shows the entity structure schematic diagram of a kind of electronic equipment of one embodiment of the invention offer, as shown in figure 3, The electronic equipment may include: processor 301, memory 302, bus 303 and be stored on memory 302 and can handle The computer program run on device 301;
Wherein, the processor 301 and memory 302 complete mutual communication by the bus 303;
The processor 301 realizes method provided by above method embodiment when executing the computer program, such as It is preparatory that include: docker network protocol stack by the relevant bag data of tcp/ip/eth and corresponding header packet information be stored in physical node The transparent transmission of creation is in protocol stack cache, and according to the transparent transmission corresponding address address of protocol stack cache and size Size constructs a new data packet, and the new data packet is put into relevant protocol stack packet processing function and is sent to Cloud host protocol stack;Cloud mainframe network protocol stack judges whether the received new data packet is placed on transparent transmission protocol stack In cache, if the new data packet is directly then transmitted to physical node protocol stack;Physical node protocol stack is receiving When the new data packet, address, size and corresponding header packet information in the new data packet are taken out, according to taking Address and size out takes out the transparent transmission data stored in protocol stack cache, by the taken out transparent transmission agreement The data stored in stack cache are transmitted to after tcp, ip, eth layers of corresponding function carry out package processing and issue physical network card transmission It goes out.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium, is stored thereon with computer program, should Method provided by above method embodiment is realized when computer program is executed by processor, for example, docker network association The relevant bag data of tcp/ip/eth and corresponding header packet information are stored in the transparent transmission agreement that physical node is pre-created by view stack In stack cache, and one is constructed with protocol stack cache corresponding address address and size size according to the transparent transmission The new data packet is put into relevant protocol stack packet processing function and is sent to cloud host protocol stack by new data packet;Cloud Mainframe network protocol stack judges whether the received new data packet is placed in transparent transmission protocol stack cache, if then directly The new data packet is transmitted to physical node protocol stack;Physical node protocol stack when receiving the new data packet, Address, size and corresponding header packet information in the new data packet are taken out, according to the address and size of taking-up The transparent transmission data stored in protocol stack cache are taken out, by the taken out transparent transmission number stored in protocol stack cache It is sent out according to being transmitted to tcp, ip, eth layers of corresponding function and carrying out issuing physical network card after package processing.
It should be understood by those skilled in the art that, embodiments herein can provide as method, apparatus or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application be referring to according to the method, apparatus of the embodiment of the present application and the flow chart of computer program product and/or Block diagram describes.It should be understood that each process that can be realized by computer program instructions in flowchart and/or the block diagram and/or The combination of process and/or box in box and flowchart and/or the block diagram.It can provide these computer program instructions to arrive General purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor to generate one Machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for realizing flowing The device/system for the function of being specified in journey figure one process or multiple processes and/or block diagrams one box or multiple boxes.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.Term " on ", "lower" etc. refer to The orientation or positional relationship shown is to be based on the orientation or positional relationship shown in the drawings, and is merely for convenience of the description present invention and simplifies Description, rather than the device or element of indication or suggestion meaning must have a particular orientation, constructed and grasped with specific orientation Make, therefore is not considered as limiting the invention.Unless otherwise clearly defined and limited, term " installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can be Mechanical connection, is also possible to be electrically connected;It can be directly connected, two can also be can be indirectly connected through an intermediary Connection inside element.For the ordinary skill in the art, above-mentioned term can be understood at this as the case may be Concrete meaning in invention.
In specification of the invention, numerous specific details are set forth.Although it is understood that the embodiment of the present invention can To practice without these specific details.In some instances, well known method, structure and skill is not been shown in detail Art, so as not to obscure the understanding of this specification.Similarly, it should be understood that disclose in order to simplify the present invention and helps to understand respectively One or more of a inventive aspect, in the above description of the exemplary embodiment of the present invention, each spy of the invention Sign is grouped together into a single embodiment, figure, or description thereof sometimes.However, should not be by the method solution of the disclosure Release is in reflect an intention that i.e. the claimed invention requires more than feature expressly recited in each claim More features.More precisely, as the following claims reflect, inventive aspect is less than single reality disclosed above Apply all features of example.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in the specific embodiment, It is wherein each that the claims themselves are regarded as separate embodiments of the invention.It should be noted that in the absence of conflict, this The feature in embodiment and embodiment in application can be combined with each other.The invention is not limited to any single aspect, It is not limited to any single embodiment, is also not limited to any combination and/or displacement of these aspects and/or embodiment.And And can be used alone each aspect and/or embodiment of the invention or with other one or more aspects and/or its implementation Example is used in combination.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme should all cover within the scope of the claims and the description of the invention.

Claims (8)

1. realizing the method that docker network penetrates two layers of protocol stack under a kind of cloud computing environment characterized by comprising
It is preparatory that the relevant bag data of tcp/ip/eth and corresponding header packet information are stored in physical node by docker network protocol stack The transparent transmission of creation is in protocol stack cache, and according to the transparent transmission corresponding address address of protocol stack cache and size Size constructs a new data packet, and the new data packet is put into relevant protocol stack packet processing function and is sent to cloud Host protocol stack;
Cloud mainframe network protocol stack judges whether the received new data packet is placed in transparent transmission protocol stack cache, if The new data packet is directly then transmitted to physical node protocol stack;
Physical node protocol stack takes out address, size in the new data packet when receiving the new data packet And corresponding header packet information, the transparent transmission is taken out with the number stored in protocol stack cache according to the address of taking-up and size According to the taken out transparent transmission is transmitted to tcp, ip, eth layers of corresponding function with the data stored in protocol stack cache and is sealed Physical network card is issued after packet processing to send out.
2. the method according to claim 1, wherein in docker network protocol stack that tcp/ip/eth is relevant Bag data and corresponding header packet information are stored in transparent transmission that physical node is pre-created in protocol stack cache, and according to described Biography constructs a new data packet with protocol stack cache corresponding address address and size size, by the new data Packet is put into relevant protocol stack packet processing function and is sent to before cloud host protocol stack, the method also includes:
Transparent transmission protocol stack cache is created in physical node, and sends the transparent transmission to docker network with protocol stack cache The network-driven of protocol stack.
3. according to the method described in claim 2, it is characterized in that, creating transparent transmission protocol stack cache, and general in physical node After the transparent transmission sends the network-driven of docker network protocol stack to protocol stack cache, the method also includes:
The network-driven for modifying docker network protocol stack, makes docker network protocol stack by the relevant bag data of tcp/ip/eth Transparent transmission that physical node is pre-created is stored in in protocol stack cache with corresponding header packet information, and according to transparent transmission association The corresponding address address and size size of view stack cache constructs a new data packet, and the new data packet is put into Cloud host protocol stack is sent in relevant protocol stack packet processing function;
The network-driven for modifying cloud mainframe network protocol stack, makes cloud mainframe network protocol stack judge the received new data packet Whether it is placed in transparent transmission protocol stack cache, if the new data packet is directly then transmitted to physical node protocol stack;
The network-driven for modifying physical node protocol stack makes physical node protocol stack when receiving the new data packet, takes Address, size and corresponding header packet information in the new data packet out, takes according to the address of taking-up and size The transparent transmission data stored in protocol stack cache out, by the taken out transparent transmission data stored in protocol stack cache It is transmitted to tcp, ip, eth layers of corresponding function and carries out issuing physical network card after package processing and send out.
4. realizing that docker network penetrates the device of two layers of protocol stack under a kind of cloud computing environment characterized by comprising
First sending module deposits the relevant bag data of tcp/ip/eth and corresponding header packet information for docker network protocol stack Transparent transmission that physical node is pre-created is put into in protocol stack cache, and according to the transparent transmission with protocol stack cache correspondingly Location address and size size constructs a new data packet, and the new data packet is put at relevant protocol stack packet Cloud host protocol stack is sent in reason function;
Second sending module judges whether the received new data packet is placed on transparent transmission association for cloud mainframe network protocol stack It discusses in stack cache, if the new data packet is directly then transmitted to physical node protocol stack;
Third sending module takes out the new data for physical node protocol stack when receiving the new data packet Address, size and corresponding header packet information in packet take out the transparent transmission according to the address of taking-up and size and assist The data stored in view stack cache, are transmitted to tcp, ip, eth with the data stored in protocol stack cache for the taken out transparent transmission Physical network card is issued after the corresponding function progress package processing of layer to send out.
5. device according to claim 4, which is characterized in that described device further include:
Creation module for creating transparent transmission protocol stack cache in physical node, and transparent transmission protocol stack cache is passed Give the network-driven of docker network protocol stack.
6. device according to claim 5, which is characterized in that described device further include:
First modified module makes docker network protocol stack by tcp/ for modifying the network-driven of docker network protocol stack The relevant bag data of ip/eth and corresponding header packet information are stored in transparent transmission that physical node is pre-created in protocol stack cache, And a new data packet is constructed with protocol stack cache corresponding address address and size size according to the transparent transmission, it will The new data packet is put into relevant protocol stack packet processing function and is sent to cloud host protocol stack;
Second modified module connects the judgement of cloud mainframe network protocol stack for modifying the network-driven of cloud mainframe network protocol stack Whether the new data packet received is placed in transparent transmission protocol stack cache, if then directly forwarding the new data packet Give physical node protocol stack;
Third modified module makes physical node protocol stack receiving for modifying the network-driven of physical node protocol stack When stating new data packet, address, size and corresponding header packet information in the new data packet are taken out, according to taking-up Address and size take out the transparent transmission data stored in protocol stack cache, by the taken out transparent transmission protocol stack The data stored in cache, which are transmitted to tcp, ip, eth layers of corresponding function and carry out issuing physical network card after package processing, to send out It goes.
7. a kind of electronic equipment characterized by comprising processor, memory, bus and storage on a memory and can located The computer program run on reason device;
Wherein, the processor, memory complete mutual communication by the bus;
The processor realizes method as claimed in any one of claims 1-3 when executing the computer program.
8. a kind of non-transient computer readable storage medium, which is characterized in that in the non-transient computer readable storage medium It is stored with computer program, which realizes side as claimed in any one of claims 1-3 when being executed by processor Method.
CN201810918542.5A 2018-08-13 2018-08-13 Method and device for realizing penetration of two-layer protocol stack by docker network in cloud computing environment Active CN109309663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810918542.5A CN109309663B (en) 2018-08-13 2018-08-13 Method and device for realizing penetration of two-layer protocol stack by docker network in cloud computing environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810918542.5A CN109309663B (en) 2018-08-13 2018-08-13 Method and device for realizing penetration of two-layer protocol stack by docker network in cloud computing environment

Publications (2)

Publication Number Publication Date
CN109309663A true CN109309663A (en) 2019-02-05
CN109309663B CN109309663B (en) 2021-03-19

Family

ID=65223877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810918542.5A Active CN109309663B (en) 2018-08-13 2018-08-13 Method and device for realizing penetration of two-layer protocol stack by docker network in cloud computing environment

Country Status (1)

Country Link
CN (1) CN109309663B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030007519A1 (en) * 2001-06-28 2003-01-09 Chris Murton Methods and apparatus for transmitting synchronous data
CN101567897A (en) * 2008-04-25 2009-10-28 国家广播电影电视总局广播科学研究院 Method and system for realizing transparent transmission of files in CMMB channel
CN102045378A (en) * 2009-10-13 2011-05-04 杭州华三通信技术有限公司 Method for realizing full distribution of protocol stack process and distributed system
CN105227493A (en) * 2015-10-15 2016-01-06 上海斐讯数据通信技术有限公司 The method of data message forwarding performance is improved under multi-core platform
CN106385365A (en) * 2015-08-07 2017-02-08 杭州华三通信技术有限公司 Method of realizing cloud platform safety based on openflow table and apparatus thereof
CN107204942A (en) * 2016-03-18 2017-09-26 上海有云信息技术有限公司 A kind of implementation method that service chaining transparent transmission is realized based on five-tuple
US20180027079A1 (en) * 2016-07-19 2018-01-25 Telefonaktiebolaget Lm Ericsson (Publ) Communication stack optimized per application without virtual machine overhead

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030007519A1 (en) * 2001-06-28 2003-01-09 Chris Murton Methods and apparatus for transmitting synchronous data
CN101567897A (en) * 2008-04-25 2009-10-28 国家广播电影电视总局广播科学研究院 Method and system for realizing transparent transmission of files in CMMB channel
CN102045378A (en) * 2009-10-13 2011-05-04 杭州华三通信技术有限公司 Method for realizing full distribution of protocol stack process and distributed system
CN106385365A (en) * 2015-08-07 2017-02-08 杭州华三通信技术有限公司 Method of realizing cloud platform safety based on openflow table and apparatus thereof
CN105227493A (en) * 2015-10-15 2016-01-06 上海斐讯数据通信技术有限公司 The method of data message forwarding performance is improved under multi-core platform
CN107204942A (en) * 2016-03-18 2017-09-26 上海有云信息技术有限公司 A kind of implementation method that service chaining transparent transmission is realized based on five-tuple
US20180027079A1 (en) * 2016-07-19 2018-01-25 Telefonaktiebolaget Lm Ericsson (Publ) Communication stack optimized per application without virtual machine overhead

Also Published As

Publication number Publication date
CN109309663B (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN104052789B (en) Method and system for the load balance of virtual networking system
CN104965757B (en) Method, virtual machine (vm) migration managing device and the system of live migration of virtual machine
US9986031B2 (en) Container provisioning based on communications patterns between software components
CN104346240B (en) Method and apparatus for utilizing multiple memory pools during migration operation
US9183032B2 (en) Method and system for migration of multi-tier virtual application across different clouds hypervisor platforms
WO2019042312A1 (en) Distributed computing system, data transmission method and device in distributed computing system
CN103942087B (en) Live migration of virtual machine method and relevant apparatus and group system
US20180123954A1 (en) Virtualization Port Layer Including Physical Switch Port and Logical Switch Port
CN103856480B (en) User datagram protocol packet moving method and device in virtual machine (vm) migration
US8862538B2 (en) Maintaining a network connection of a workload during transfer
CN103927216B (en) For managing the method and system of virtual bench
CN107678835A (en) A kind of data transmission method and system
CN103218266B (en) The method used when virtual machine communicates with external mechanical, equipment and dummy machine system
US10942729B2 (en) Upgrade of firmware in an interface hardware of a device in association with the upgrade of driver software for the device
US20180293065A1 (en) Upgrade of port firmware and driver software for a target device
CN106878204A (en) The creation method and device of a kind of virtual machine
CN112152947B (en) Processor, implementation method, electronic device and storage medium
CN104199716B (en) A kind of method of live migration of virtual machine, physical host and system
CN108363611A (en) Method for managing security, device and the omnidirectional system of virtual machine
CN113687779A (en) Data migration method and device, electronic equipment and readable storage medium
CN109309663A (en) Realize that docker network penetrates the method and device of two layers of protocol stack under cloud computing environment
CN103176843B (en) The file migration method and apparatus of MapReduce distributed system
US10949097B2 (en) Peripheral component interconnect express (PCIE) network with input/output (I/O) operation chaining to reduce communication time within execution of I/O channel operations
CN110247818A (en) A kind of data monitoring method, device, storage medium and server
CN109309634A (en) A kind of message handling system and the network equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant