CN110138606A - Capacitor network configuration method and system - Google Patents

Capacitor network configuration method and system Download PDF

Info

Publication number
CN110138606A
CN110138606A CN201910371434.5A CN201910371434A CN110138606A CN 110138606 A CN110138606 A CN 110138606A CN 201910371434 A CN201910371434 A CN 201910371434A CN 110138606 A CN110138606 A CN 110138606A
Authority
CN
China
Prior art keywords
microsoft loopback
loopback adapter
container
network
capacitor network
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
CN201910371434.5A
Other languages
Chinese (zh)
Other versions
CN110138606B (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.)
Ctrip Travel Information Technology Shanghai Co Ltd
Original Assignee
Ctrip Travel Information Technology Shanghai 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 Ctrip Travel Information Technology Shanghai Co Ltd filed Critical Ctrip Travel Information Technology Shanghai Co Ltd
Priority to CN201910371434.5A priority Critical patent/CN110138606B/en
Publication of CN110138606A publication Critical patent/CN110138606A/en
Application granted granted Critical
Publication of CN110138606B publication Critical patent/CN110138606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Abstract

The invention discloses a kind of capacitor network configuration method and systems, and wherein capacitor network configuration method includes for container group application Microsoft Loopback Adapter;Create Microsoft Loopback Adapter corresponding with container group;The corresponding relationship of Microsoft Loopback Adapter and container group is stored in the database;Creation belongs to the container of the container group on host, judges whether to create capacitor network, if then inquiring Microsoft Loopback Adapter corresponding with container group belonging to container in the database;Microsoft Loopback Adapter is bound to host;The network configuration of container is carried out according to Microsoft Loopback Adapter.The present invention is Microsoft Loopback Adapter to be stored in the database of global I P management module and corresponding IP when capacitor network creates as unique data source, so that the IP for belonging to all capacitor networks of a container group is fixed, so in application more new version, when host failure moves to the scenes such as other hosts, capacitor network is able to maintain that IP is constant, ensure that the drift of IP.

Description

Capacitor network configuration method and system
Technical field
The present invention relates to computer container layout cluster field, in particular to a kind of capacitor network configuration method and system.
Background technique
As container technique is popularized what enterprise's application was disposed and issued, more and more enterprises services and application are all bases In the resource of container and the infrastructure of bottom, accomplish that the application environment of the application publication uniforizable of second grade migrates using container Experience.
Since container is the resource than lightweight, applies and container needed to destroy in publication, again pull-up one it is new Container, current container arranging system, the IP of basic upper container are the destructions with container and destroy, and generate and generate, this is just The IP of the container newly to get up is caused necessarily to change, but framework existing in enterprise does not adapt to the feelings of container IP variation still Scape.
Summary of the invention
The technical problem to be solved by the present invention is in order to overcome the IP of container in the prior art with container deposit go out and The defect of variation provides a kind of capacitor network configuration method and system.
The present invention is to solve above-mentioned technical problem by following technical proposals:
The present invention provides a kind of capacitor network configuration method, comprising the following steps:
For container group application Microsoft Loopback Adapter;
Create the Microsoft Loopback Adapter corresponding with the container group;
The corresponding relationship of the Microsoft Loopback Adapter and the container group is stored in the database;
Container is created on host, the container belongs to the container group;
Judge whether to create capacitor network, if so:
The Microsoft Loopback Adapter corresponding with container group belonging to the container is inquired in the database;
The Microsoft Loopback Adapter is bound to the host;
The network configuration of the container is carried out according to the Microsoft Loopback Adapter.
Preferably, the capacitor network configuration method further include:
Judge whether to delete capacitor network, if so:
The Microsoft Loopback Adapter corresponding with container group belonging to the container is inquired in the database;
Unbind the binding of the Microsoft Loopback Adapter Yu the host;
The network configuration of the container is deleted on the host.
Preferably, the capacitor network configuration method further include:
Judge whether container group described in capacity reducing, if so:
Delete the Microsoft Loopback Adapter corresponding with the container group;
Mark the Microsoft Loopback Adapter for release in the database.
Preferably, the capacitor network configuration method further include:
After creating the Microsoft Loopback Adapter corresponding with the container group, creation result is returned;
And/or after binding the Microsoft Loopback Adapter to the host, binding result is returned;
And/or after unbinding the binding of the Microsoft Loopback Adapter and the host, unbundlings result is returned;
And/or after deleting the Microsoft Loopback Adapter corresponding with the container group, returns and delete result.
Preferably, after binding the Microsoft Loopback Adapter to the host, further includes:
Whether Microsoft Loopback Adapter described in poll appears in the network card equipment list of the host;It and in polling result is yes When, the network configuration of the container is carried out according to the Microsoft Loopback Adapter.
Preferably, including according to the network configuration that the Microsoft Loopback Adapter carries out the container:
Obtain IP, MAC and gateway address of the Microsoft Loopback Adapter;
The Microsoft Loopback Adapter is moved into the configuration that the capacitor network carries out the IP, the MAC and the gateway address.
The present invention also provides a kind of capacitor networks to configure system, is realized using capacitor network configuration method, including network Facilities management component, global I P management module and capacitor network plug-in unit, the global I P management module include a database;
The global I P management module is used to be retrieved as the first request of container group application Microsoft Loopback Adapter and by described first Request is sent to the network facilities management assembly;
The network facilities management assembly creates the void corresponding with the container group for receiving first request Quasi- network interface card;
After the Microsoft Loopback Adapter creates successfully, the global I P management module is also used to store in the database described The corresponding relationship of Microsoft Loopback Adapter and the container group;
After creating container on host, the container belongs to the container group;The capacitor network plug-in unit is for judging Whether second request of creation capacitor network is got, if so, it is virtual to send inquiry binding to the global I P management module The third of network interface card is requested;
The global I P management module is also used to receive the third request, in the database inquiry and the container The corresponding Microsoft Loopback Adapter of affiliated container group;
The network facilities management assembly is also used to bind the Microsoft Loopback Adapter to the host;
The capacitor network plug-in unit is also used to carry out the network configuration of the container according to the Microsoft Loopback Adapter.
Preferably, the capacitor network plug-in unit is also used to judge whether to get and deletes the 4th of the capacitor network and ask It asks, if so, sending the 5th request of inquiry unbundlings Microsoft Loopback Adapter to the global I P management module;
The global I P management module is also used to receive the 5th request, in the database inquiry and the container The affiliated corresponding Microsoft Loopback Adapter of the container group;
The network facilities management assembly is also used to unbind the host where the Microsoft Loopback Adapter and the container Binding;
The capacitor network plug-in unit is also used to delete the network configuration of the container on the host.
Preferably, the global I P management module is also used to obtain the 6th request of container group described in capacity reducing, and to described Network facilities management assembly sends the 7th request for deleting the Microsoft Loopback Adapter corresponding with the container group;
The network facilities management assembly is also used to receive the 7th request, deletes corresponding with the container group described Microsoft Loopback Adapter;
The global I P management module is also used to mark the Microsoft Loopback Adapter for release in the database.
Preferably, after the network facilities management assembly creates the Microsoft Loopback Adapter corresponding with the container group, The global I P management module is also used to return creation result;
And/or after the network facilities management assembly binds the Microsoft Loopback Adapter to the host, the overall situation IP management module is also used to return to binding result;
And/or after the binding that the network facilities management assembly unbinds the Microsoft Loopback Adapter and the host, institute It states global I P management module and is also used to return unbundlings result;
And/or after the network facilities management assembly deletes the Microsoft Loopback Adapter corresponding with the container group, institute It states global I P management module and is also used to return deletion result.
Preferably, the capacitor network configuration system includes: the institute after binding the Microsoft Loopback Adapter to the host It states network management plug-in unit and is also used to whether Microsoft Loopback Adapter described in poll appears in the network card equipment list of the host;And Polling result is when being, the network management plug-in unit is also used to carry out the network configuration of the container according to the Microsoft Loopback Adapter.
Preferably, the network management plug-in unit is also used to carry out the network configuration packet of the container according to the Microsoft Loopback Adapter It includes:
The network management plug-in unit is also used to obtain IP, MAC and gateway address of the Microsoft Loopback Adapter;
The network management plug-in unit is also used to move into the Microsoft Loopback Adapter capacitor network and carries out the IP, described The configuration of MAC and the gateway address.
On the basis of common knowledge of the art, above-mentioned each optimum condition, can any combination to get each preferable reality of the present invention Example.
The positive effect of the present invention is that: a kind of method and system of dispensing containers network are provided, in container net Network be all when creating using in the database being stored in global I P management module Microsoft Loopback Adapter and corresponding IP match as its network The unique data source set, so that the IP for belonging to all capacitor networks of a container group is fixed, so updating in application Capacitor network is able to maintain that IP is constant when version, when host failure moves to the scenes such as other hosts, ensure that the drift of IP It moves, ensure that other depend on the normal operation of the service of capacitor network.
Detailed description of the invention
Fig. 1 is the flow chart of the creation container group and capacitor network of 1 capacitor network configuration method of the embodiment of the present invention.
Fig. 2 is the flow chart of the deletion capacitor network of 1 capacitor network configuration method of the embodiment of the present invention.
Fig. 3 is the flow chart of the capacity reducing container group of 1 capacitor network configuration method of the embodiment of the present invention.
Fig. 4 is the structural schematic diagram that 2 capacitor network of the embodiment of the present invention configures system.
Specific embodiment
Illustrate below by the mode of embodiment and completely the present invention in conjunction with attached drawing to become apparent from, but therefore not incite somebody to action this Invention is limited among the embodiment described range.
Embodiment 1
The present embodiment provides a kind of capacitor network configuration method, which configures applied to capacitor network System.Wherein, capacitor network configuration system includes network facilities management assembly, global I P management module and capacitor network plug-in unit, Wherein global I P management module includes a database.The capacitor network configuration method includes creating and deleting two links, such as Shown in Fig. 1, creation capacitor network the following steps are included:
It S11, is container group application Microsoft Loopback Adapter;
The one group of container equally serviced is provided jointly as a service group, and the container of a general application takes as one Business group is named as container group herein.The title of container group is respectively designated as appid-0, appid- using the id applied as prefix 1……。
Application container group when creating first time, by the system of sending container request to create, (ask by hereinafter referred to as container creation Seek system) it is received to global I P management module for its corresponding Microsoft Loopback Adapter of container group application and corresponding IP, global I P management module To after request, request to create can be sent to the network facilities management assembly of lower layer.
S12, creation Microsoft Loopback Adapter corresponding with container group;
After network facilities management assembly receives the request to create that global I P management module issues, create corresponding with container group Microsoft Loopback Adapter and corresponding IP, and creation result, Microsoft Loopback Adapter and corresponding IP are returned into global I P management module.
S13, the corresponding relationship for storing the Microsoft Loopback Adapter and the container group in the database;
After global I P management module receives creation result, Microsoft Loopback Adapter and the corresponding IP of the return of network facilities management assembly, The corresponding relationship of Microsoft Loopback Adapter and container group is stored in the database, and creation result is returned into container request to create system.
So far, container group and its corresponding Microsoft Loopback Adapter and corresponding IP creation finish.In this way, creation belongs to container group later When the capacitor network of container, the corresponding Microsoft Loopback Adapter of container group can be all inquired in the database in global I P management module, Network configuration is carried out according to the corresponding Microsoft Loopback Adapter of container group and corresponding IP, from the phenomenon that drift without IP.
S14, container is created on host, the container belongs to the container group;
Container request to create system request creates a turret vessel on host, which belongs to container group above-mentioned.
S15, judge whether to create capacitor network, if so, executing S16 step:
Container request to create system judges whether the container needs to create capacitor network, if so, being passed through by host Capacitor network interface creates capacitor network to capacitor network plug-in request, after capacitor network plug-in unit receives the request, to the overall situation Microsoft Loopback Adapter and IP corresponding to container group belonging to the container are inquired in the request of IP management module.
S16, the Microsoft Loopback Adapter corresponding with container group belonging to the container is inquired in the database;
Global I P management module inquires Microsoft Loopback Adapter corresponding with container group belonging to the container in the database, inquiry at IP (network address), the MAC (physical address), gateway address of the Microsoft Loopback Adapter are returned after function.
S17, the binding Microsoft Loopback Adapter to the host;
After capacitor network plug-in unit receives the relative address of the corresponding Microsoft Loopback Adapter of the container, asked to global I P management module Ask and the Microsoft Loopback Adapter be tied to host, after global I P management module receives the bind request, can send bind request to The network facilities management assembly of lower layer after network facilities management assembly receives bind request, carries out Microsoft Loopback Adapter and is tied to place Then the operation of host returns to binding result and gives global I P management module, global I P management module again sends back binding result Capacitor network plug-in unit.
S18, the network configuration that the container is carried out according to the Microsoft Loopback Adapter.
After capacitor network plug-in unit has sent bind request in S17 step, poll detection Microsoft Loopback Adapter is on host It is no to appear in network card equipment list, bindings are represented when Microsoft Loopback Adapter appears in the network card equipment list of host It has completed.At this point, the network equipment to be moved into the cyberspace of container, and in vessel space with carrying out IP address, MAC The configuration of location, routing table and default gateway address.
So far, capacitor network is created that configuration completes.
Deleting link includes deleting two processes of capacitor network and capacity reducing container group.As shown in Fig. 2, deleting capacitor network packet Include following steps:
S21, judge whether to delete capacitor network, if so then execute S22;
Container request to create system requests to delete container, when container is deleted, container request to create system to host Judge whether to delete capacitor network, if so, deleting capacitor network to capacitor network plug-in request by host.Capacitor network After plug-in unit receives the request, request to inquire Microsoft Loopback Adapter corresponding to container group belonging to the container to global I P management module And IP.
S22, the Microsoft Loopback Adapter corresponding with container group belonging to the container is inquired in the database;
Global I P management module inquires Microsoft Loopback Adapter corresponding with container group belonging to the container in the database, inquiry at The information that the Microsoft Loopback Adapter is returned after function gives capacitor network plug-in unit.
The binding of S23, the unbundlings Microsoft Loopback Adapter and the host;
After capacitor network plug-in unit receives the relevant information of the corresponding Microsoft Loopback Adapter of the container, asked to global I P management module The Microsoft Loopback Adapter and host are tied up in solution, after global I P management module receives unbundlings request, can send unbundlings request under The network facilities management assembly of layer carries out unbundlings Microsoft Loopback Adapter and host after network facilities management assembly receives unbundlings request Then the operation of machine returns to unbundlings result and gives global I P management module, unbundlings result is sent back appearance again by global I P management module Device network plug-in.
S24, the network configuration that the container is deleted on the host.
After success unbinds Microsoft Loopback Adapter and host, capacitor network plug-in unit deletes the corresponding network of the container on host Configuration, in case use when the container for belonging to the container group next time creates its capacitor network.
As shown in figure 3, capacity reducing container group the following steps are included:
S31, judge whether container group described in capacity reducing, if so, executing S32 step;
Container request to create system judges whether capacity reducing container group, and when the judgment is yes, container request to create system is to complete The corresponding Microsoft Loopback Adapter of container group is deleted in office's IP management module request and corresponding IP, global I P management module receive the request Afterwards, removal request can be sent to the network facilities management assembly of lower layer.
S32, the Microsoft Loopback Adapter corresponding with the container group is deleted;
After network facilities management assembly receives removal request, the operation for deleting Microsoft Loopback Adapter and corresponding IP is carried out, then It returns to deletion result and gives global I P management module, global I P management module will delete result again and send back container request to create system System.
S33, mark the Microsoft Loopback Adapter for release in the database.
Global I P management module in the database should while will delete result and send back container request to create system Microsoft Loopback Adapter is labeled as release.
So far, the deletion link of capacitor network is fully completed.
The present embodiment is by the way that the corresponding Microsoft Loopback Adapter of storage container group, the container for belonging to the container group are being created in the database Pass through inquiry database when building capacitor network and obtain corresponding Microsoft Loopback Adapter and corresponding IP address, guarantees to belong to the container group IP corresponding to the capacitor network that container is established is fixed, and guarantee container is in application more new version, host failure is moved It keeps IP constant when moving on to the scenes such as other hosts, ensure that the drift of IP, ensure that other dependent on capacitor network The normal operation of service.
Embodiment 2
The present embodiment provides a kind of capacitor networks to configure system, as shown in figure 4, capacitor network configuration system includes net Network facilities management component 1, global I P management module 2 and capacitor network plug-in unit 3, the global I P management module 2 include a data Library 4.
In creation capacitor network link, global I P management module 2 is used to be retrieved as the of container group application Microsoft Loopback Adapter One requests and sends the request to network facilities management assembly 1;
Network facilities management assembly 1 creates Microsoft Loopback Adapter corresponding with container group for receiving the first request;Then will Creation result, Microsoft Loopback Adapter and corresponding IP return to global I P management module 2.
Global I P management module 2 receives creation result, Microsoft Loopback Adapter and the corresponding IP of the return of network facilities management assembly 1 Afterwards, it is also used to store the corresponding relationship of Microsoft Loopback Adapter and container group in database 4.
So far, container group and its corresponding Microsoft Loopback Adapter and corresponding IP creation finish.In this way, creation belongs to the container group later Container capacitor network when, all can carry out network configuration according to the corresponding Microsoft Loopback Adapter of container group and corresponding IP, thus The phenomenon that being not in IP drift.
During creating container dispensing containers network, after creation belongs to the container of aforesaid receptacle group on host, The capacitor network plug-in unit 3 is used to judge whether to get the second request of host request creation capacitor network, if so, to Global I P management module 2 sends the third request that Microsoft Loopback Adapter corresponding to container group belonging to the container is inquired in request.
Global I P management module 2 is also used to receive third request, inquiry and container group belonging to container in database 4 Corresponding Microsoft Loopback Adapter returns to IP (network address), the MAC (physical address), gateway address of the Microsoft Loopback Adapter after successful inquiring.
Network facilities management assembly 1 is also used to receive the bind request of the forwarding of global I P management module 2, binds Microsoft Loopback Adapter To host, binding result is then returned to global I P management module 2, global I P management module 2 again sends back binding result Capacitor network plug-in unit 3.
Capacitor network plug-in unit 3 is also used to whether the poll detection Microsoft Loopback Adapter on host appears in network card equipment list In, bindings, which are represented, when Microsoft Loopback Adapter appears in the network card equipment list of host has completed.At this point, by the void Quasi- network interface card moves into the cyberspace of container, and in vessel space with carrying out IP address, MAC Address, routing table and default gateway The configuration of location.
During deleting capacitor network configuration, the capacitor network plug-in unit 3 is also used to judge whether to get host 4th request of the deletion capacitor network that machine is sent, if so, sending inquiry unbundlings Microsoft Loopback Adapter to global I P management module 2 is stated The 5th request.
Global I P management module 2 is also used to receive the 5th request, inquiry and container group belonging to container in database 4 Corresponding Microsoft Loopback Adapter returns to the information of the Microsoft Loopback Adapter after successful inquiring.
Network facilities management assembly 1 is also used to receive the unbundlings request of the forwarding of global I P management module 2, unbinds Microsoft Loopback Adapter With the binding of the host where container, unbundlings result is then returned to global I P management module 2, global I P management module 2 is again Unbundlings result is sent back into capacitor network plug-in unit 3.
After success unbinds Microsoft Loopback Adapter and host, capacitor network plug-in unit 3 is also used to delete the net of container on host Network configuration, in case use when the container for belonging to the container group next time creates its capacitor network.
During capacity reducing container group, global I P management module 2 is also used to obtain the transmission of container request to create system 6th request of capacity reducing container group, and send to network facilities management assembly 1 and to delete the of corresponding with container group Microsoft Loopback Adapter Seven requests;
Network facilities management assembly 1 is also used to receive the 7th request, deletes Microsoft Loopback Adapter corresponding with container group, then It returns and deletes result to global I P management module 2, global I P management module 2 will delete result again and send back container request to create system System.
Global I P management module 2 is also used to mark the Microsoft Loopback Adapter in database 4 while result is deleted in transmission For release.
The present embodiment is by the way that the corresponding Microsoft Loopback Adapter of storage container group, the container for belonging to the container group are being created in the database Pass through inquiry database when building capacitor network and obtain corresponding Microsoft Loopback Adapter and corresponding IP address, guarantees to belong to the container group IP corresponding to the capacitor network that container is established is fixed, and guarantee container is in application more new version, host failure is moved It is constant that it is able to maintain IP when moving on to the scenes such as other hosts, ensure that the drift of IP, ensure that other dependent on capacitor network Service normal operation.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that this is only For example, protection scope of the present invention is to be defined by the appended claims.Those skilled in the art without departing substantially from Under the premise of the principle and substance of the present invention, many changes and modifications may be made, but these change and Modification each falls within protection scope of the present invention.

Claims (12)

1. a kind of capacitor network configuration method characterized by comprising
For container group application Microsoft Loopback Adapter;
Create the Microsoft Loopback Adapter corresponding with the container group;
The corresponding relationship of the Microsoft Loopback Adapter and the container group is stored in the database;
Container is created on host, the container belongs to the container group;
Judge whether to create capacitor network, if so:
The Microsoft Loopback Adapter corresponding with container group belonging to the container is inquired in the database;
The Microsoft Loopback Adapter is bound to the host;
The network configuration of the container is carried out according to the Microsoft Loopback Adapter.
2. capacitor network configuration method as described in claim 1, which is characterized in that the capacitor network configuration method further include:
Judge whether to delete capacitor network, if so:
The Microsoft Loopback Adapter corresponding with container group belonging to the container is inquired in the database;
Unbind the binding of the Microsoft Loopback Adapter Yu the host;
The network configuration of the container is deleted on the host.
3. capacitor network configuration method as described in claim 1, which is characterized in that the capacitor network configuration method further include:
Judge whether container group described in capacity reducing, if so:
Delete the Microsoft Loopback Adapter corresponding with the container group;
Mark the Microsoft Loopback Adapter for release in the database.
4. the capacitor network configuration method as described in Claims 2 or 3, which is characterized in that the capacitor network configuration method is also wrapped It includes:
After creating the Microsoft Loopback Adapter corresponding with the container group, creation result is returned;
And/or after binding the Microsoft Loopback Adapter to the host, binding result is returned;
And/or after unbinding the binding of the Microsoft Loopback Adapter and the host, unbundlings result is returned;
And/or after deleting the Microsoft Loopback Adapter corresponding with the container group, returns and delete result.
5. capacitor network configuration method as described in claim 1, which is characterized in that bind the Microsoft Loopback Adapter to the host Later, further includes:
Whether Microsoft Loopback Adapter described in poll appears in the network card equipment list of the host;And when polling result, which is, is, The network configuration of the container is carried out according to the Microsoft Loopback Adapter.
6. capacitor network configuration method as claimed in claim 5, which is characterized in that carry out the container according to the Microsoft Loopback Adapter Network configuration include:
Obtain IP, MAC and gateway address of the Microsoft Loopback Adapter;
The Microsoft Loopback Adapter is moved into the configuration that the capacitor network carries out the IP, the MAC and the gateway address.
7. a kind of capacitor network configures system, which is characterized in that including network facilities management assembly, global I P management module and appearance Device network plug-in, the global I P management module include a database;
The global I P management module is used to be retrieved as the first request of container group application Microsoft Loopback Adapter and requests described first It is sent to the network facilities management assembly;
The network facilities management assembly creates the virtual net corresponding with the container group for receiving first request Card;
After the Microsoft Loopback Adapter creates successfully, the global I P management module is also used to store in the database described virtual The corresponding relationship of network interface card and the container group;
After creating container on host, the container belongs to the container group;The capacitor network plug-in unit is for judging whether The second request of creation capacitor network is got, if so, sending inquiry binding Microsoft Loopback Adapter to the global I P management module Third request;
The global I P management module is also used to receive third request, in the database inquiry with belonging to the container The corresponding Microsoft Loopback Adapter of container group;
The network facilities management assembly is also used to bind the Microsoft Loopback Adapter to the host;
The capacitor network plug-in unit is also used to carry out the network configuration of the container according to the Microsoft Loopback Adapter.
8. capacitor network as claimed in claim 7 configures system, which is characterized in that
The capacitor network plug-in unit is also used to judge whether to get the 4th request for deleting the capacitor network, if so, to The global I P management module sends the 5th request of inquiry unbundlings Microsoft Loopback Adapter;
The global I P management module be also used to receive it is described 5th request, in the database inquiry with the container belonging to The corresponding Microsoft Loopback Adapter of the container group;
The network facilities management assembly is also used to unbind tying up for the host of the Microsoft Loopback Adapter where with the container It is fixed;
The capacitor network plug-in unit is also used to delete the network configuration of the container on the host.
9. capacitor network as claimed in claim 7 configures system, which is characterized in that
The global I P management module is also used to obtain the 6th request of container group described in capacity reducing, and to the network facilities management Component sends the 7th request for deleting the Microsoft Loopback Adapter corresponding with the container group;
The network facilities management assembly is also used to receive the 7th request, deletes corresponding with the container group described virtual Network interface card;
The global I P management module is also used to mark the Microsoft Loopback Adapter for release in the database.
10. capacitor network as claimed in claim 8 or 9 configures system, which is characterized in that in the network facilities management assembly After creating the Microsoft Loopback Adapter corresponding with the container group, the global I P management module is also used to return creation result;
And/or after the network facilities management assembly binds the Microsoft Loopback Adapter to the host, the global I P pipe Reason module is also used to return to binding result;
It is described complete and/or after the binding that the network facilities management assembly unbinds the Microsoft Loopback Adapter and the host Office's IP management module is also used to return unbundlings result;
It is described complete and/or after the network facilities management assembly deletes the Microsoft Loopback Adapter corresponding with the container group Office's IP management module is also used to return deletion result.
11. capacitor network as claimed in claim 7 configures system, which is characterized in that the capacitor network configures system and includes:
After binding the Microsoft Loopback Adapter to the host, the network management plug-in unit is also used to Microsoft Loopback Adapter described in poll Whether appear in the network card equipment list of the host;And when polling result, which is, is, the network management plug-in unit is also used In the network configuration for carrying out the container according to the Microsoft Loopback Adapter.
12. capacitor network as claimed in claim 11 configures system, which is characterized in that the network management plug-in unit is also used to root Include according to the network configuration that the Microsoft Loopback Adapter carries out the container:
The network management plug-in unit is also used to obtain IP, MAC and gateway address of the Microsoft Loopback Adapter;
The network management plug-in unit be also used to move into the Microsoft Loopback Adapter capacitor network carry out the IP, the MAC and The configuration of the gateway address.
CN201910371434.5A 2019-05-06 2019-05-06 Container network configuration method and system Active CN110138606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910371434.5A CN110138606B (en) 2019-05-06 2019-05-06 Container network configuration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910371434.5A CN110138606B (en) 2019-05-06 2019-05-06 Container network configuration method and system

Publications (2)

Publication Number Publication Date
CN110138606A true CN110138606A (en) 2019-08-16
CN110138606B CN110138606B (en) 2022-03-15

Family

ID=67576350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910371434.5A Active CN110138606B (en) 2019-05-06 2019-05-06 Container network configuration method and system

Country Status (1)

Country Link
CN (1) CN110138606B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404753A (en) * 2020-03-23 2020-07-10 星环信息科技(上海)有限公司 Flat network configuration method, computer equipment and storage medium
CN112398936A (en) * 2020-11-06 2021-02-23 浪潮云信息技术股份公司 Kubernetes-based multi-network card container implementation method and system
CN112600903A (en) * 2020-12-09 2021-04-02 浪潮云信息技术股份公司 Elastic virtual network card migration method
CN113037522A (en) * 2019-12-24 2021-06-25 华为数字技术(苏州)有限公司 Container unit management method and related equipment
CN113254156A (en) * 2021-05-31 2021-08-13 深信服科技股份有限公司 Container group deployment method and device, electronic equipment and storage medium
CN113452806A (en) * 2021-06-24 2021-09-28 上海道客网络科技有限公司 Container adaptation SDN network management method and system based on Kubernetes system
CN113285843B (en) * 2021-07-23 2021-10-22 中航金网(北京)电子商务有限公司 Container network configuration method and device, computer readable medium and electronic equipment
CN115913937A (en) * 2023-01-09 2023-04-04 苏州浪潮智能科技有限公司 Container multi-network-card network configuration method, device, equipment and storage medium
WO2023160033A1 (en) * 2022-02-28 2023-08-31 苏州浪潮智能科技有限公司 Virtual network card resource configuration method and apparatus, computer device, and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080021985A1 (en) * 2006-07-20 2008-01-24 Sun Microsystems, Inc. Method and system for network configuration for containers
CN103731514A (en) * 2013-12-29 2014-04-16 国云科技股份有限公司 Virtual network management method
CN105491123A (en) * 2015-12-04 2016-04-13 北京航空航天大学 Communication method and device among containers
CN105554102A (en) * 2015-12-14 2016-05-04 中电科华云信息技术有限公司 Elastic expansion method based on container cluster and application system thereof
CN107395781A (en) * 2017-06-29 2017-11-24 北京小度信息科技有限公司 Network communication method and device
CN107580083A (en) * 2017-09-20 2018-01-12 北京京东尚科信息技术有限公司 A kind of method and system of container IP address distribution

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080021985A1 (en) * 2006-07-20 2008-01-24 Sun Microsystems, Inc. Method and system for network configuration for containers
CN103731514A (en) * 2013-12-29 2014-04-16 国云科技股份有限公司 Virtual network management method
CN105491123A (en) * 2015-12-04 2016-04-13 北京航空航天大学 Communication method and device among containers
CN105554102A (en) * 2015-12-14 2016-05-04 中电科华云信息技术有限公司 Elastic expansion method based on container cluster and application system thereof
CN107395781A (en) * 2017-06-29 2017-11-24 北京小度信息科技有限公司 Network communication method and device
CN107580083A (en) * 2017-09-20 2018-01-12 北京京东尚科信息技术有限公司 A kind of method and system of container IP address distribution

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037522A (en) * 2019-12-24 2021-06-25 华为数字技术(苏州)有限公司 Container unit management method and related equipment
CN111404753A (en) * 2020-03-23 2020-07-10 星环信息科技(上海)有限公司 Flat network configuration method, computer equipment and storage medium
CN112398936A (en) * 2020-11-06 2021-02-23 浪潮云信息技术股份公司 Kubernetes-based multi-network card container implementation method and system
CN112600903A (en) * 2020-12-09 2021-04-02 浪潮云信息技术股份公司 Elastic virtual network card migration method
CN112600903B (en) * 2020-12-09 2023-01-20 浪潮云信息技术股份公司 Elastic virtual network card migration method
CN113254156A (en) * 2021-05-31 2021-08-13 深信服科技股份有限公司 Container group deployment method and device, electronic equipment and storage medium
CN113254156B (en) * 2021-05-31 2024-04-09 深信服科技股份有限公司 Container group deployment method and device, electronic equipment and storage medium
CN113452806A (en) * 2021-06-24 2021-09-28 上海道客网络科技有限公司 Container adaptation SDN network management method and system based on Kubernetes system
CN113452806B (en) * 2021-06-24 2022-10-04 上海道客网络科技有限公司 Container adaptation SDN network management method and system based on Kubernets system
CN113285843B (en) * 2021-07-23 2021-10-22 中航金网(北京)电子商务有限公司 Container network configuration method and device, computer readable medium and electronic equipment
WO2023160033A1 (en) * 2022-02-28 2023-08-31 苏州浪潮智能科技有限公司 Virtual network card resource configuration method and apparatus, computer device, and medium
CN115913937A (en) * 2023-01-09 2023-04-04 苏州浪潮智能科技有限公司 Container multi-network-card network configuration method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110138606B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN110138606A (en) Capacitor network configuration method and system
CN107580083B (en) Method and system for allocating IP addresses of containers
CN103024053B (en) Cloud storage means, resource scheduling system, cloud memory node and system
CN101257396B (en) System for distributing multi-field content based on P2P technique as well as corresponding method
CN110750332A (en) Method for setting static IP (Internet protocol) in Pod in Kubernetes
CN103596066B (en) Method and device for data processing
CN104239227B (en) A kind of virtualization storage managing device, local virtual memory management unit and method
CN110177059A (en) System and method for storing data
CN104040964B (en) Method, device and data center network across service area communication
CN102726031A (en) Content processing method, device and system
US20060206747A1 (en) Computer system and data backup method in computer system
CN114500523B (en) Fixed IP application publishing method based on container cloud platform
CN105095317A (en) Distributive database service management system
CN106030500A (en) Data migration method of storage system
CN102420863B (en) Rapid file distribution system, method thereof and apparatus thereof
CN105978981B (en) The linear expansion method and system of data backup based on publicly-owned cloud storage account
WO2021003798A1 (en) Method and system for implementing domain name access accelration
CN107105050A (en) A kind of storage of business object, method for down loading and system
CN103095587B (en) A method for registration service, network group center control nodes and system
CN105530226A (en) Content distribution network system, and access control method and system thereof
CN104793981B (en) A kind of online snapshot management method and device of cluster virtual machine
CN102917287A (en) Intelligent optical network exchange device and edge cashing method facing content center
CN102123161B (en) Distributed mobility management method and distributed mobility management system
CN102611762B (en) uniform domain name service system and method
CN104737505A (en) Routing method based on cache and route node

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