CN107592225A - A kind of system and method for merging physical machine, virtual machine and capacitor network and setting - Google Patents
A kind of system and method for merging physical machine, virtual machine and capacitor network and setting Download PDFInfo
- Publication number
- CN107592225A CN107592225A CN201710823905.2A CN201710823905A CN107592225A CN 107592225 A CN107592225 A CN 107592225A CN 201710823905 A CN201710823905 A CN 201710823905A CN 107592225 A CN107592225 A CN 107592225A
- Authority
- CN
- China
- Prior art keywords
- network
- port
- mark
- container
- interface
- 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.)
- Pending
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
The present invention relates to a kind of system and method for merging physical machine, virtual machine and capacitor network and setting.This method network port information that newly-built physical machine, container or virtual machine need to use first on network controller;Computing controller calls the associated interface of network controller to be associated the mark of physical machine, container or virtual machine and the network port;Then computing controller sends network port identification to computation module, after computation module receives port-mark, to the information of the network controller inquiry network port, physical machine, the network interface that virtual machine or container need to use are created according to port information and the network information is set, network interface is established into port with virtual switch connects;Exchange control unit to port information corresponding to network controller inquiry and will set networking rule after newly-increased port connection has been checked.The present invention establishes a kind of general setting physical machine, virtual machine, the network method of container;It can be used for physical machine, virtual machine, capacitor network and management be set.
Description
Technical field
It is particularly a kind of to merge what physical machine, virtual machine and capacitor network were set the present invention relates to system for cloud computing field
System and method.
Background technology
With the development of cloud computing, business migration has arrived virtual machine, on container in many physical machines.Current many cloud platforms
All it is the platform for the separation for managing virtual machine or container, and the network of container is by container platform self-management, virtual machine
Network management is also the platform management by virtual machine, so has problem:
(1) network of container, the network of virtual machine are managed by two large platforms, and management is more complicated;
(2) container, the network data of virtual machine do not interact, and cause the network of operation system to be restricted;
(3) business network of traditional physical machine operation is also unified without the business network with virtual machine, container
Docking is, it is necessary to, it is necessary to prudent consideration when interactive.
The content of the invention
Present invention solves the technical problem that one of be to propose a kind of fusion physical machine, virtual machine and capacitor network and set
System;Solve the problems, such as that physical machine, virtual machine and capacitor network set respective manage independently to exist in the prior art.
Present invention solves the technical problem that two be to propose a kind of to merge what physical machine, virtual machine and capacitor network were set
Method.
The technical scheme that the present invention solves one of above-mentioned technical problem is:
Described system mainly includes network controller, computing controller and computation module;
The network controller is realized:
(11) it is responsible for the persistence record of whole network data, including the port on network, the speed limit on port is set
Put record;
(12) data are sent to network other assemblies by message channel, and provides message channel by network other assemblies
Obtain its data;
(13) API Calls are externally provided, API includes newly-built, association, renewal, inquiry network port interface;
The computing controller is realized:
(21) mainly it is responsible for physical machine, container, the network of relation parameter setting of virtual machine, and the wound of container, virtual machine
Build control;
(22) call network controller port create, port association correlation API and by the association status of port for " close
In connection ";
(23) communicated with computation module by message channel or API modes;
The computation module is realized:
(31) receive the setting internet message of computing controller or setting for association physical machine, container or virtual machine is externally provided
Put network interface;
(32) network information of port is obtained according to network port identification, wherein including mac, ip, name server, gateway
Address network information;
(33) network interface of physical machine, container or virtual machine is established according to mac, port-mark;
(34) according to the physical machine of port association, container or type of virtual machine, physical machine, container, the net of virtual machine are called
Network drive module establishes network interface;
(35) port of network interface and virtual switch is being associated in the way of unified associate.
The network driver block of physical machine is realized:
(1) veth pairs, wherein veth pairs of entitled " mark of front end/back-end physical machine ", " front end physical machine are established
The network interface of mark ", its mac address is arranged to the mac in port;
(2) the ip address informations of front network interface are set according to the information of the network port.
The network driver block of container is realized:
(1) NameSpace according to where the mark of container obtains capacitor network;
(2) veth pairs, wherein veth pairs of the entitled " mark of front end/rear end container are established in the NameSpace of container
Know ", the network interface of " mark of front end/rear end container " is inside NameSpace;
(3) network of front network interface, including mac, ip address, domain name, gateway are set according to the information of the network port.
The network driver block of virtual machine is with realizing the mac that the mac addresses of the network parameter in configuration libvirt are port
Location;Network backend interface name is " mark of rear end virtual machine ".
The technical scheme that the present invention solves one of above-mentioned technical problem is:
Methods described key step is as follows:
(1) network port information that newly-built physical machine, container or virtual machine need to use on network controller;
(2) computing controller calls the associated interface of network controller by the mark and net of physical machine, container or virtual machine
Network port is associated;
(3) computing controller sends network port identification to computation module, after computation module receives port-mark, to network
Controller obtains the information of the network port, is connect according to the network that port information creates physical machine, virtual machine or container need to use
Mouthful, network interface is established into port with the interchanger of local and connected;Physical machine, container or virtual machine are set according to network IP information
Communication network address information;
(4) exchange control unit has been after the connection of newly-increased port has been checked, will be obtained to network controller corresponding to port
Information and the networking rule that correlation is set.
Network controller New-deployed Network port information includes:
(1) API New-deployed Networks port is provided, the title of port, the mark of network and subnet are contained in required parameter
Mark, wherein mark there is uniqueness;
(2) process for creating port contains ip, mac address distribution of port, and the association status of setting port is
" not associated ";
(3) after creating successfully, interface feedback port mark;Failure is created, then feedback error information.
Described associated interface includes:
(1) association physical machine, the mark of container or virtual machine are contained in associated interface required parameter, port-mark,
And the Hostname of physical machine or host;
(2) related information include associated port-mark, Hostname, the mark of association, the state of association can be lasting
Change storage;
(3) association status includes in association, is successfully associated, associates failure, be not associated.
Network interface and virtual switch are associated, including:
(1) network interface that rear end identifies is added on the port of virtual switch;
(2) its port name is " rear end mark ", and its additional mac address is port mac, and outside id marks for port
Know.
(3) the renewal port interface of network controller is successfully called to update association status " to close if the 2nd step operates
It is unified into work(";Otherwise, the renewal port interface related update association status for calling network controller is " association failure ".
Exchange control unit sets the VLAN marks of port and the stream Rule Information of port.
The present invention program's has the beneficial effect that:
(1) a kind of general setting physical machine, virtual machine, the network method of container are established;
(2) the Unified Network management and control of physical machine, virtual machine, container is realized on this basis;
(3) physical machine, virtual machine, operation system communication and safeguard protection on container are facilitated.
Brief description of the drawings
The present invention is further described below in conjunction with the accompanying drawings:
Fig. 1 is the flow chart of the present invention.
Embodiment
As shown in figure 1, the implementation of present system is as follows:
1st, the New-deployed Network port information on network controller
(1) its network controller adds ginseng using Neutron components secondary development realization of increasing income on newly-increased port interface
Number uses identification parameter, supports compute:Machine, compute:Docker, compute:Vm or compute:none
Mark, externally provides API, wherein compute:Machine is that physical machine uses port-mark, compute:Docker containers make
With mark, compute:Vm virtual machines use mark or compute:The port that none is not used;
(2) mark is preserved into the device_owner of ports tables, feeds back newly-built port id, increase connection status word newly
Section bond, its state is " unbonding ".
2nd, computing controller calls the associated interface of network controller by the mark and network of physical machine, container or virtual machine
Port is associated
Using Neutron component secondary development associated interface secondary development of increasing income, the identification-state for updating port is
" bonding ", device_id is physical machine, container, the id of virtual machine, wherein bonding are state in association.
3rd, computing controller sends network identity to computation module
By directly invoking the api interface of computation module, transmission required parameter is port id;Computation module uses tomcat
Under service issue.
4th, computation module creates network interface
Neutron components inquiry port API is called, device_owner type is got, once with device_
Owner is physical machine network interface compute:Illustrate exemplified by machine:
Initially set up veth pairs:
ip link add pre_machineId type peer name aft_machineId
The pre_machineId network information is set
ifconfig pre_machineId 192.168.10.20/24
The mac addresses for setting pre_machineId are port mac
So physical machine can possesses 192.168.10.20 networks.
5th, network interface is added to virtual switch
Ovs-vsctl--timeout=120----if-exists del-port aft_machineId--add-port
br-int pre_machineId--set Interface aft_machineId external-ids:Iface-id=
portId external-ids:Iface-status=active external-ids:Attached-mac=macAddr
external-ids:Vm-uuid=machineId
Wherein macAddr is port mac addresses.
Claims (12)
- A kind of 1. system for merging physical machine, virtual machine and capacitor network and setting, it is characterised in that:Described system mainly includes Network controller, computing controller and computation module;The network controller is realized:(11) it is responsible for the persistence record of whole network data, including the port on network, the speed limit on port sets note Record;(12) data are sent to network other assemblies by message channel, and message channel is provided and obtained by network other assemblies Its data;(13) API Calls are externally provided, API includes newly-built, association, renewal, inquiry network port interface;The computing controller is realized:(21) mainly it is responsible for physical machine, container, the network of relation parameter setting of virtual machine, and the establishment control of container, virtual machine System;(22) call network controller port create, port association correlation API and by the association status of port for " association In ";(23) communicated with computation module by message channel or API modes;The computation module is realized:(31) the setting net that internet message is set or association physical machine, container or virtual machine are externally provided of computing controller is received Network interface;(32) network information of port is obtained according to network port identification, wherein including mac, ip, name server, gateway address The network information;(33) network interface of physical machine, container or virtual machine is established according to mac, port-mark;(34) according to the physical machine of port association, container or type of virtual machine, the network of physical machine, container, virtual machine is called to drive Dynamic model block establishes network interface;(35) port of network interface and virtual switch is being associated in the way of unified associate.
- 2. system according to claim 1, it is characterised in that the network driver block of physical machine is realized:(1) veth pairs, wherein veth pairs of entitled " mark of front end/back-end physical machine ", " mark of front end physical machine are established The network interface of knowledge ", its mac address is arranged to the mac in port;(2) the ip address informations of front network interface are set according to the information of the network port.
- 3. system according to claim 1, it is characterised in that the network driver block of container is realized:(1) NameSpace according to where the mark of container obtains capacitor network;(2) veth pairs is established in the NameSpace of container, wherein veth pairs of entitled " mark of front end/rear end container ", The network interface of " mark of front end/rear end container " is inside NameSpace;(3) network of front network interface, including mac, ip address, domain name, gateway are set according to the information of the network port.
- 4. system according to claim 2, it is characterised in that the network driver block of container is realized:(1) NameSpace according to where the mark of container obtains capacitor network;(2) veth pairs is established in the NameSpace of container, wherein veth pairs of entitled " mark of front end/rear end container ", The network interface of " mark of front end/rear end container " is inside NameSpace;(3) network of front network interface, including mac, ip address, domain name, gateway are set according to the information of the network port.
- 5. according to the system described in any one of Claims 1-4, it is characterised in that the network driver block of virtual machine, which is realized, matches somebody with somebody The mac addresses for putting the network parameter in libvirt are the mac addresses of port;Network backend interface name is " rear end virtual machine Mark ".
- A kind of 6. network setting method of any one of the claim 1-5 system, it is characterised in that:Methods described key step It is as follows:(1) network port information that newly-built physical machine, container or virtual machine need to use on network controller;(2) computing controller calls the associated interface of network controller by the mark and network-side of physical machine, container or virtual machine Mouth is associated;(3) computing controller sends network port identification to computation module, after computation module receives port-mark, is controlled to network Device obtains the information of the network port, will according to the network interface that port information creates physical machine, virtual machine or container need to use Network interface is established port with the interchanger of local and connected;The logical of physical machine, container or virtual machine is set according to network IP information The network address information of letter;(4) exchange control unit has been after the connection of newly-increased port has been checked, will be obtained to network controller corresponding to port information And the networking rule of correlation is set.
- 7. according to the method for claim 6, it is characterised in that:Network controller New-deployed Network port information includes:(1) API New-deployed Networks port is provided, the mark of the title of port, the mark of network and subnet is contained in required parameter Know, wherein mark has uniqueness;(2) process for creating port contains ip, mac address distribution of port, and the association status of setting port " not close Connection ";(3) after creating successfully, interface feedback port mark;Failure is created, then feedback error information.
- 8. according to the method for claim 6, it is characterised in that described associated interface includes:(1) association physical machine, the mark of container or virtual machine are contained in associated interface required parameter, port-mark, and The Hostname of physical machine or host;(2) related information includes associated port-mark, Hostname, the mark of association, the state meeting persistence of association and deposited Storage;(3) association status includes in association, is successfully associated, associates failure, be not associated.
- 9. according to the method for claim 7, it is characterised in that described associated interface includes:(1) association physical machine, the mark of container or virtual machine are contained in associated interface required parameter, port-mark, and The Hostname of physical machine or host;(2) related information includes associated port-mark, Hostname, the mark of association, the state meeting persistence of association and deposited Storage;(3) association status includes in association, is successfully associated, associates failure, be not associated.
- 10. according to the method described in any one of claim 6 to 9, it is characterised in that network interface and virtual switch are closed Connection, including:(1) network interface that rear end identifies is added on the port of virtual switch;(2) its port name is " rear end mark ", and its additional mac address is port mac, and outside id is port-mark;(3) the renewal port interface of network controller is successfully called to update association status " to be associated to if the 2nd step operates Work(";Otherwise, the renewal port interface related update association status for calling network controller is " association failure ".
- 11. according to the method described in any one of claim 6 to 9, it is characterised in that exchange control unit sets the VLAN of port Mark and the stream Rule Information of port.
- 12. according to the method for claim 10, it is characterised in that exchange control unit set port VLAN mark and The stream Rule Information of port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710823905.2A CN107592225A (en) | 2017-09-13 | 2017-09-13 | A kind of system and method for merging physical machine, virtual machine and capacitor network and setting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710823905.2A CN107592225A (en) | 2017-09-13 | 2017-09-13 | A kind of system and method for merging physical machine, virtual machine and capacitor network and setting |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107592225A true CN107592225A (en) | 2018-01-16 |
Family
ID=61051608
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710823905.2A Pending CN107592225A (en) | 2017-09-13 | 2017-09-13 | A kind of system and method for merging physical machine, virtual machine and capacitor network and setting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107592225A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740157A (en) * | 2018-07-19 | 2020-01-31 | 广达电脑股份有限公司 | Storage system and remote access method |
CN113067739A (en) * | 2021-04-29 | 2021-07-02 | 中国工商银行股份有限公司 | High-density container network deployment method and system |
CN113612688A (en) * | 2021-07-14 | 2021-11-05 | 曙光信息产业(北京)有限公司 | Distributed software defined network control system and construction method thereof |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103825954A (en) * | 2014-03-10 | 2014-05-28 | 中国联合网络通信集团有限公司 | OpenFlow control method and corresponding insert, platform and network thereof |
CN105407140A (en) * | 2015-10-23 | 2016-03-16 | 上海比林电子科技有限公司 | Calculation resource virtualization system of networked test system and method thereof |
-
2017
- 2017-09-13 CN CN201710823905.2A patent/CN107592225A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103825954A (en) * | 2014-03-10 | 2014-05-28 | 中国联合网络通信集团有限公司 | OpenFlow control method and corresponding insert, platform and network thereof |
CN105407140A (en) * | 2015-10-23 | 2016-03-16 | 上海比林电子科技有限公司 | Calculation resource virtualization system of networked test system and method thereof |
Non-Patent Citations (2)
Title |
---|
史律: "一种基于OpenStack的网络模型", 《黑龙江科技信息》 * |
程莹等: "云网融合及原型验证研究", 《电信技术》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740157A (en) * | 2018-07-19 | 2020-01-31 | 广达电脑股份有限公司 | Storage system and remote access method |
CN110740157B (en) * | 2018-07-19 | 2022-05-27 | 广达电脑股份有限公司 | Storage system and remote access method |
CN113067739A (en) * | 2021-04-29 | 2021-07-02 | 中国工商银行股份有限公司 | High-density container network deployment method and system |
CN113067739B (en) * | 2021-04-29 | 2022-08-30 | 中国工商银行股份有限公司 | High-density container network deployment method and system |
CN113612688A (en) * | 2021-07-14 | 2021-11-05 | 曙光信息产业(北京)有限公司 | Distributed software defined network control system and construction method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9798572B2 (en) | Virtual machine migration method, switch, and virtual machine system | |
CN110301104B (en) | Optical line terminal OLT equipment virtualization method and related equipment | |
CN102801599B (en) | A kind of communication means and system | |
US8040822B2 (en) | Configuring communication services using policy groups | |
US9628328B2 (en) | Network controller with integrated resource management capability | |
CN101075962B (en) | Method and apparatus for realizing DHCP repeater in two-layer network exchanger | |
CN104407913B (en) | A kind of method that Single NIC virtual machine realizes two-wire access | |
CN109756413B (en) | Cloud data center heterogeneous network interconnection system and method | |
CN104350467A (en) | Elastic enforcement layer for cloud security using SDN | |
CN104869065A (en) | Method and device for processing data message | |
CN109257266B (en) | Method for expanding PON local area network group based on VXLAN technology | |
CN107592225A (en) | A kind of system and method for merging physical machine, virtual machine and capacitor network and setting | |
CN101867523A (en) | Method and device for configuring broadband services in PON (Passive Optical Network) system | |
EP3044911B1 (en) | Method and apparatus for communicating with an access node | |
CN105635332A (en) | Method for multiple virtual machines to share IP of single external network | |
CN104869125A (en) | SDN-based method for dynamically preventing MAC address spoofing | |
WO2018214817A1 (en) | Packet forwarding method, device and apparatus, and storage medium | |
CN107547351A (en) | Address distribution method and device | |
CN108989399A (en) | A kind of cluster common data querying method, system, device and readable storage medium storing program for executing | |
CN110392125A (en) | A kind of realize provides the method and system of DHCP service to virtual machine in virtualized environment | |
CN108471390A (en) | The reorientation method of service message straddle processing system and service message | |
CN109688241A (en) | IPv4/IPv6 dual stack conversion method and system based on SDN | |
US20080186967A1 (en) | Method for supporting source-specific multicast forwarding over ethernet and device thereof | |
CN105721346A (en) | Application bandwidth configuring method and controller based on software defined network | |
CN107547467A (en) | A kind of circuit authentication method, system and controller |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180116 |
|
RJ01 | Rejection of invention patent application after publication |