CN105657081A - DHCP (dynamic host configuration protocol) service providing method, device and system - Google Patents

DHCP (dynamic host configuration protocol) service providing method, device and system Download PDF

Info

Publication number
CN105657081A
CN105657081A CN201610216278.1A CN201610216278A CN105657081A CN 105657081 A CN105657081 A CN 105657081A CN 201610216278 A CN201610216278 A CN 201610216278A CN 105657081 A CN105657081 A CN 105657081A
Authority
CN
China
Prior art keywords
computing node
virtual machine
dynamic host
host configuration
configuration protocol
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
CN201610216278.1A
Other languages
Chinese (zh)
Other versions
CN105657081B (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610216278.1A priority Critical patent/CN105657081B/en
Publication of CN105657081A publication Critical patent/CN105657081A/en
Application granted granted Critical
Publication of CN105657081B publication Critical patent/CN105657081B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Landscapes

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

Abstract

An embodiment of the invention provides a DHCP (dynamic host configuration protocol) service providing method, a device and a system, relates to the field of communication and can shorten response delay of DHCP servers. The method comprises the following steps: a network management device acquires access information of a first virtual machine; the network management device indicates a first DHCP server to record a relation of an MAC address of the first virtual machine and an IP address; the first DHCP server is indicated to establish a protocol interaction channel between the first virtual machine and the first DHCP server; the first DHCP server provides the first virtual machine with DHCP service. DHCP service is provided for virtual machines deployed in multiple computing nodes by distributed DHCP servers.

Description

The method of DHCP service, Apparatus and system are provided
Technical field
The present invention relates to the communications field, particularly relating to a kind of provides the method for DHCP service, Apparatus and system.
Background technology
Along with the high speed development of virtualization, cloud computing technology, traditional physics DHCP (English full name: DynamicHostConfigurationProtocol, English abbreviation: DHCP). Server also achieves virtualization and disposes.
The deployment scheme of existing a kind of Dynamic Host Configuration Protocol server is such as shown in Fig. 1-A, and virtual Dynamic Host Configuration Protocol server is concentrated and is deployed in network node, and virtual machine (English full name: VirtualMachine, English abbreviation: VM) is deployed in computing node. Pass through the basic network interconnection being positioned between virtual machine switch (English full name: VirtualSwitch) and network node and the computing node of network node between virtual machine and Dynamic Host Configuration Protocol server, Fig. 1-A represents basic network with physical switches.
Virtual switch will be located in the virtual machine of different sub-network and Dynamic Host Configuration Protocol server divides. Shown in Fig. 1-B, Dynamic Host Configuration Protocol server A connects subnet A, Dynamic Host Configuration Protocol server B and connects subnet B. VMa, VMb in computing node A, and the VMf connection subnet A in computing node B. VMc in computing node A, and VMd, VMe connection subnet B in computing node B. One Dynamic Host Configuration Protocol server can connect one or more subnet, and Fig. 1-B show a Dynamic Host Configuration Protocol server and accesses a subnet, provides the situation of DHCP service for the virtual machine in a subnet.
VMa in Fig. 1-B, when creating VMa or restarting VMa, VMa broadcasts DHCPDiscover message, this message is through the virtual switch 101 of VMa place computing node, virtual switch 103 in the network node at physical switches 102 and Dynamic Host Configuration Protocol server A place, finally received and return DHCPOffer message by Dynamic Host Configuration Protocol server A, between this message and follow-up Dynamic Host Configuration Protocol server A and VMa, mutual message also passes through virtual switch 101, virtual switch 103 and physical switches 102 these three switch, finally received by VMa and Dynamic Host Configuration Protocol server A and process.
The transmission path carrying out message interaction between Dynamic Host Configuration Protocol server and VM, including the basic network (physical switches) between the virtual switch in the virtual switch of virtual machine place computing node, network node and computing node and network node, due to transmission path length, the time delay of dhcp server response VM service request is longer.Additionally, when tenant network is virtual expansible LAN (English full name: VirtualextensibleLocalAreaNetwork, English abbreviation: VxLAN) time, packaging V xlan heading is conciliate in computing node and network node encapsulation, can increase response delay equally. When needing the VM for being positioned at multiple computing node to provide DHCP service particularly in Dynamic Host Configuration Protocol server, owing to transmission path length and flowing of access are big so that the response delay of Dynamic Host Configuration Protocol server becomes the bottleneck of restriction cloud computing service efficiency.
Summary of the invention
The application provides a kind of and provides the method for DHCP service, Apparatus and system, it is possible to shorten the response delay of Dynamic Host Configuration Protocol server.
For reaching above-mentioned purpose, the application adopts the following technical scheme that
First aspect, a kind of method providing DHCP service is provided, being responsible in computing node create or delete distributed Dynamic Host Configuration Protocol server by network administration apparatus, wherein network administration apparatus can be concentrate to dispose, it is also possible in distributed deployment and multiple computing nodes. A Dynamic Host Configuration Protocol server in one computing node is configured by network administration apparatus, so that this Dynamic Host Configuration Protocol server provides DHCP service for the virtual machine in the computing node of place, for the first computing node, first virtual machine, the first Dynamic Host Configuration Protocol server and the first virtual switch all run in described first computing node, and concrete scheme includes:
Network administration apparatus obtains the access information of the first virtual machine, access information is for indicating the identity of the first virtual machine, including MAC Address and IP address, which which additionally it is additionally operable to instruction the first virtual machine be positioned on computing node, access subnet, being positioned at the first computing node with the first virtual machine in the application, the situation accessing targeted subnet is that example illustrates.
After network administration apparatus obtains the access information of the first virtual machine, indicate the corresponding relation of the MAC Address of the first virtual machine described in the first Dynamic Host Configuration Protocol server record and IP address, so when the first Dynamic Host Configuration Protocol server receives the DHCPDiscover message that the first virtual machine sends, just can respond DHCPDiscover message, provide DHCP service for the first virtual machine.
The protocol interaction passage that requires over alternately between first Dynamic Host Configuration Protocol server and the first virtual machine carries out, including DHCP exchange channels, or can further include Internet Control Message agreement (English full name: InternetControlMessageProtocol, English abbreviation: ICMP) exchange channels, therefore network administration apparatus also needs to forwarding unit i.e. the first virtual switch between instruction the first virtual machine and described first Dynamic Host Configuration Protocol server, sets up the protocol interaction passage between described first virtual machine and described first Dynamic Host Configuration Protocol server.
After completing the aforementioned steps, the first virtual machine just can ask DHCP service by protocol interaction passage to the first Dynamic Host Configuration Protocol server. Owing to the first Dynamic Host Configuration Protocol server and the first virtual machine are positioned at same computing node, therefore the transmission path between virtual machine and Dynamic Host Configuration Protocol server is shorter, and propagation delay time is shorter.
Optionally, in a kind of specific embodiment, network administration apparatus creates multiple distributed DHCP server in multiple computing nodes, and each Dynamic Host Configuration Protocol server provides DHCP service for the virtual machine in the computing node of respective place. One Dynamic Host Configuration Protocol server can provide DHCP service by the virtual machine for accessing one or more subnet in the computing node of place.By the distributed deployment of Dynamic Host Configuration Protocol server, even if a Dynamic Host Configuration Protocol server fault, also only affecting the virtual machine in this Dynamic Host Configuration Protocol server place computing node and obtain IP address, the virtual machine in other computing node is then unaffected.
Preferably, when a Dynamic Host Configuration Protocol server in a computing node is unavailable, the Dynamic Host Configuration Protocol server being positioned at another computing node can as proxy server, DHCP service across computing node is provided, recover rapidly the DHCP service on the virtual machine affected by fault, thus improve system survivability. One of them Dynamic Host Configuration Protocol server is unavailable, including this Dynamic Host Configuration Protocol server fault or disabled situation.
Second aspect, it is provided that a kind of network administration apparatus, including: processor, memorizer, bus and transceiver; Processor, memorizer, transceiver is connected with each other by bus; Memorizer has program stored therein code, when processor caller code, it is achieved the function of network administration apparatus in the method that first aspect provides.
The third aspect, it is provided that a kind of computing node, including: processor, memorizer, bus and transceiver; Processor, memorizer, transceiver is connected with each other by bus; Memorizer has program stored therein code, when processor caller code, realizing the virtual machine, Dynamic Host Configuration Protocol server and the virtual switch that run in computing node, this virtual machine, this Dynamic Host Configuration Protocol server and this virtual switch are for realizing the function of the first virtual machine in the method that first aspect provides, the first Dynamic Host Configuration Protocol server and the first virtual switch.
Fourth aspect, it is provided that a kind of communication system, including network administration apparatus and at least two computing node; Wherein network administration apparatus is the network administration apparatus described by second aspect, the computing node that computing node provides for the third aspect.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below the accompanying drawing used required during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1-A is the physical connection schematic diagram in the deployment scheme of existing a kind of Dynamic Host Configuration Protocol server;
Fig. 1-B is the logic connection diagram in the deployment scheme of existing a kind of Dynamic Host Configuration Protocol server;
The application scenarios of the method for the offer DHCP service that Fig. 2 provides for embodiments of the invention illustrates schematic diagram;
The schematic flow sheet of a kind of method that DHCP service is provided that Fig. 3 provides for embodiments of the invention;
Fig. 4 is the explanation schematic diagram in embodiments of the invention to DHCP message forward-path;
Fig. 5 is another explanation schematic diagram in embodiments of the invention to DHCP message forward-path;
A kind of network administration apparatus structural representation that Fig. 6 provides for embodiments of the invention;
A kind of computing node structural representation that Fig. 7 provides for embodiments of the invention;
A kind of communication system architecture schematic diagram that Fig. 8 provides for embodiments of the invention.
Detailed description of the invention
For the ease of knowing the technical scheme of the description embodiment of the present invention, in an embodiment of the present invention, have employed the printed words such as " first ", " second " function is made a distinction with the essentially identical identical entry of effect or similar item, it will be appreciated by those skilled in the art that the printed words such as " first ", " second " are not that quantity and execution order are being defined.
The method of the offer DHCP service that embodiments of the invention provide, is applied in communication system as shown in Figure 2. Communication system includes network administration apparatus 20 and at least two computing node, and Fig. 2 show the situation including computing node 201 and 202 two computing nodes of computing node.
Network administration apparatus 20 judges that the VM in a computing node is the need of DHCP service, and if so, then indicating gage operator node creates Dynamic Host Configuration Protocol server example. For ease of describing, embodiments of the invention refer to Dynamic Host Configuration Protocol server example with Dynamic Host Configuration Protocol server.
Can having multiple VM in one computing node, a VM can access one or more subnet, illustrates for the situation of VM one subnet of access in embodiments of the invention. Two different VM can access same subnet, or accesses different two subnet. One Dynamic Host Configuration Protocol server accesses a subnet, and in the computing node for this Dynamic Host Configuration Protocol server place, the VM accessing same subnet with this Dynamic Host Configuration Protocol server provides DHCP service.
Shown in Fig. 2, the VM in computing node 201, including VM1, VM2 and VM3, wherein VM1 and VM2 accesses subnet 1, VM3 and accesses subnet 2. Dynamic Host Configuration Protocol server in computing node 201 includes DHCP1 and DHCP2.
DHCP1 accesses subnet 1, provides DHCP service for the VM for accessing subnet 1 in computing node 201, is VM1 and VM2 and provides DHCP service.
DHCP2 accesses subnet 2, provides DHCP service for the VM for accessing subnet 2 in computing node 201, is VM3 and provides DHCP service.
Similarly, in computing node 202, DHCP3 provides DHCP service for VM4. DHCP4 provides DHCP service for VM5.
Network administration apparatus 20 is respectively created Dynamic Host Configuration Protocol server in multiple computing nodes, one Dynamic Host Configuration Protocol server provides DHCP service for the VM in its place computing node, by creating Dynamic Host Configuration Protocol server in the computing node at virtual machine place, it is achieved the distributed deployment of Dynamic Host Configuration Protocol server. When virtual machine needs request DHCP service, only need to carry out service interaction with the Dynamic Host Configuration Protocol server in the computing node of place, scheme compared to existing technology, transmission path needs not move through basic network (physical switches), therefore transmission path during virtual machine request DHCP service is shortened, have correspondingly propagation delay time, improve efficiency of service.
Network administration apparatus 20 can be network manager (English full name: networkManager), can also be software defined network controller (English full name: softwaredefinednetworkcontroller), or include network manager and the device of software defined network controller. Additionally, the message accessing some Dynamic Host Configuration Protocol server alleged in the embodiment of the present application, it is directed to clean culture, broadcasting packet that this Dynamic Host Configuration Protocol server sends or forwards, including DHCP message, address resolution protocol (English full name: AddressResolutionProtocol, English abbreviation: ARP) message etc.
Embodiment
Embodiments of the invention provide a kind of method providing DHCP service, are applied to network administration apparatus, with reference to, shown in Fig. 3, comprising the following steps:
301, network administration apparatus obtains the access information of the first virtual machine.
Network administration apparatus is responsible for Internet protocol (English full name: InternetProtocol, English abbreviation: IP) address, media access control (English full name: MediaAccessControl, English abbreviation: MAC) management of the Internet resources such as address and distribution, and the topological structure of virtual network is managed.Including management global ip address, the IP address of instruction Dynamic Host Configuration Protocol server record virtual machine and the binding relationship (see step 302) etc. of MAC Address.
After Dynamic Host Configuration Protocol server records the IP address of virtual machine and the binding relationship of MAC Address, when virtual machine needs to use IP address, it is possible to obtain and the IP address of its MAC Address binding to Dynamic Host Configuration Protocol server request.
Perform the trigger condition of step 301:
When creating virtual machine, network administration apparatus is determined when needing for newly-built virtual machine distribution IP address, performs step 301. Or, virtual machine creating complete after network administration apparatus when newly-increased tap interface being detected on the virtual switch of computing node, perform step 301. In embodiments of the invention, illustrate for newly-built virtual machine for the situation of the first virtual machine.
In a kind of concrete application scenarios, when network administration apparatus determine need be the first virtual machine by DHCP protocol configuration of IP time, obtain the access information of the first virtual machine. Wherein the effect of access information includes following 4 points:
The first, instruction targeted subnet, targeted subnet is the virtual subnet that the first virtual machine accesses. Targeted subnet can be identified by VLANID or VxLANID of its correspondence.
The second, indicating the first computing node, the first computing node is the computing node at the first virtual machine place.
The 3rd, the identification information of the first virtual machine is provided, specifically includes MAC Address and the IP address of the first virtual machine.
302, network administration apparatus indicates the MAC Address of first Dynamic Host Configuration Protocol server record the first virtual machine and the corresponding relation of IP address.
Wherein, the first Dynamic Host Configuration Protocol server is positioned at the first computing node, for being pointed to the first computing node and accessing the virtual machine offer DHCP service of targeted subnet.
In first computing node, before accessing first virtual machine activation DHCP protocol flow process of the first subnet, create the first Dynamic Host Configuration Protocol server. Generally start while starting first virtual machine of establishment and create Dynamic Host Configuration Protocol server.
Optionally, in a kind of specific embodiment, network administration apparatus Dynamic Host Configuration Protocol server being carried out unified management, network administration apparatus is determined when first virtual machine creating accessing targeted subnet completes, and creates the first Dynamic Host Configuration Protocol server.
Or, in a kind of specific embodiment, network administration apparatus distributed deployment is in computing node, and when network administration apparatus determines first virtual machine creating accessing targeted subnet on the computing node at place, network administration apparatus creates the first Dynamic Host Configuration Protocol server.
First Dynamic Host Configuration Protocol server itself needs to take an IP address, and network administration apparatus can be the first Dynamic Host Configuration Protocol server distribution IP address. First Dynamic Host Configuration Protocol server takies an IP address of targeted subnet.
After first Dynamic Host Configuration Protocol server has created, network administration apparatus indicates the MAC Address of first Dynamic Host Configuration Protocol server record the first virtual machine and the corresponding relation of IP address. The IP address binding of first Dynamic Host Configuration Protocol server MAC Address by the first virtual machine and the first virtual machine, and record. When the first virtual machine asks DHCP service to the first Dynamic Host Configuration Protocol server, first Dynamic Host Configuration Protocol server MAC and the IP address bindings according to the first virtual machine recorded, provide DHCP service for the first virtual machine, including configuration of IP address, route etc.
First Dynamic Host Configuration Protocol server and the first virtual machine are positioned at same computing node, and message mutual therebetween, without increasing Vxlan heading, therefore eliminates because encapsulating and decapsulating the time delay caused.
In the first computing node, whenever having new virtual machine creating and accessing targeted subnet, network administration apparatus would indicate that the corresponding relation by new virtual machine MAC Address Yu IP address is recorded, now without creating the Dynamic Host Configuration Protocol server (the first Dynamic Host Configuration Protocol server) serving targeted subnet again.
303, network administration apparatus indicates the first virtual switch to set up the protocol interaction passage between the first virtual machine and the first Dynamic Host Configuration Protocol server.
Protocol interaction passage includes DHCP exchange channels. Network administration apparatus can pass through to send stream table (English full name: Flowtable) to the first virtual switch, sets up the DHCP exchange channels between the first virtual machine and the first Dynamic Host Configuration Protocol server. Wherein, the first virtual switch is positioned at the first computing node. First virtual switch preserves stream table, forwards DHCP message according to stream table.
Particular content below in conjunction with convection current table shown in Fig. 4 illustrates. In computing node 40, DHCP401 is for providing DHCP service for VM402 and VM403. DHCP404 is for providing DHCP service for VM405 and VM406.
DHCP401 connects the port A1 of virtual switch 407 and connects.
VM402 connects the port B1 of virtual switch 407.
VM403 connects the port B2 of virtual switch 407.
DHCP404 connects the port A2 of virtual switch 407.
VM405 connects the port B3 of virtual switch 407.
VM406 connects the port B4 of virtual switch 407.
For virtual switch 407, in conjunction with forward-path with the DHCP message indicated by the line of arrow in Fig. 4, a kind of by pseudo-representation for indicating virtual switch 407 to forward the stream table of DHCP message as follows:
Flowtable1:
In_port=B1, ip, udp_dst=67, output:A1
In_port=B2, ip, udp_dst=67, output:A1
In_port=B3, ip, udp_dst=67, output:A2
In_port=B4, ip, udp_dst=67, output:A2
In_port=A1, ip, udp_dst=68, output:B1, B2
In_port=A2, ip, udp_dst=68, output:B3, B4
Optionally, protocol interaction passage also includes Internet Control Message agreement (English full name: InternetControlMessageProtocol, English abbreviation: ICMP) exchange channels. So, just can lead to the first Dynamic Host Configuration Protocol server by ping when the first virtual machine performs business, ask DHCP service to the first Dynamic Host Configuration Protocol server.
After protocol interaction Path Setup between first virtual machine and the first Dynamic Host Configuration Protocol server, the first Dynamic Host Configuration Protocol server just can pass through the first virtual switch provides DHCP service for the first virtual machine.
In conjunction with above-mentioned stream table, the DHCPDiscover message that VM402 sends, it is sent to virtual switch 407 by port B1.
Virtual switch 407 inquiry stream table, when port B1 is input port, corresponding output port is A1, then virtual switch 407 is forwarded the packet to DHCP401 by port A1.
DHCP401 inquiry receives from network administration apparatus, and the corresponding relation of the MAC Address recorded and IP address, it is determined that IP address bind with the MAC Address of VM402, according to this IP address generation DHCPOffer message. This message is sent to virtual switch 407 by port A1 by DHCP401.
Virtual switch 407 inquiry stream table, when port A1 is input port, corresponding output port is B1 and B2, then DHCPOffer message is forwarded to VM402 and VM403 by port B1 and B2 by virtual switch 407.
After VM402 receives DHCPOffer, obtain the IP address that the MAC Address with VM402 is bound. After VM403 receives DHCPOffer, owing to this message not including the MAC Address of VM403, therefore by this packet loss.
304, network administration apparatus sets up multiple distributed DHCP server.
The present embodiment is referred to as the Dynamic Host Configuration Protocol server being positioned at multiple computing node with distributed DHCP server.
Integrating step 301 to step 303, when the trigger condition performing step 301 meets, is carried out step 301 to step 303.
In the first computing node, for ensureing that Dynamic Host Configuration Protocol server can process the DHCPDiscover message that virtual machine sends in time, network administration apparatus needs before first virtual machine accessing targeted subnet sends DHCPDiscover message request DHCP service, create the first Dynamic Host Configuration Protocol server, specifically can in first virtual machine creating process accessing targeted subnet, when having created, or detecting that this virtual machine creates the first Dynamic Host Configuration Protocol server with the virtual switch in computing node when being connected.
In first computing node whenever having virtual machine to access targeted subnet, network administration apparatus indicates the first Dynamic Host Configuration Protocol server to record the corresponding relation of new MAC Address and IP address, and the stream table of renewal is issued to the first virtual switch, describe between virtual machine and Dynamic Host Configuration Protocol server, the forwarding relation of DHCP message.
At different computing nodes, all can create the Dynamic Host Configuration Protocol server in this computing node, serve the virtual machine accessing targeted subnet. Certainly, by the method for the offer DHCP service described in inventive embodiment, it is also possible to create the distributed server serving other subnets at each computing node. In conjunction with the computing node 201 in Fig. 2, when the virtual machine in a computing node accesses two subnets, it is possible to set up two Dynamic Host Configuration Protocol server, be respectively used to serve two subnets. Further, by repeated execution of steps 301 to step 304, it is possible to create two or more Dynamic Host Configuration Protocol server in a computing node, in a computing node, different Dynamic Host Configuration Protocol server serve different sub-network.
Certainly, a Dynamic Host Configuration Protocol server can serve multiple subnet. The situation only serving a subnet for a Dynamic Host Configuration Protocol server in the present embodiment elaborates.
The multiple distributed DHCP servers serving same subnet can share MAC Address and IP address, takies multiple MAC Address and IP address thus without because setting up multiple Dynamic Host Configuration Protocol server. Distributed DHCP server only to serve targeted subnet, to lay respectively at the first computing node and two Dynamic Host Configuration Protocol server of the second computing node, is illustrated by embodiments of the invention.
Integrating step 301 to step 304, creates the second Dynamic Host Configuration Protocol server in the second computing node, for being pointed to the second computing node and accessing the virtual machine offer DHCP service of targeted subnet. Second Dynamic Host Configuration Protocol server is connected with the virtual machine being positioned at the second computing node and access targeted subnet by the second virtual switch.
Owing to the second Dynamic Host Configuration Protocol server and the first Dynamic Host Configuration Protocol server share MAC Address and IP address, in order to prevent the first Dynamic Host Configuration Protocol server and the second Dynamic Host Configuration Protocol server from using identical ip addresses to cause IP address conflict, network administration apparatus to be forbidden, the first virtual switch and the second virtual switch forward the message accessing Dynamic Host Configuration Protocol server by respective upstream Interface.
The message accessing Dynamic Host Configuration Protocol server includes DHCP message. It is to say, in a computing node, the DHCP message between virtual machine and Dynamic Host Configuration Protocol server, its spread scope controls in this computing node, will not be forwarded to another one computing node.
The message accessing Dynamic Host Configuration Protocol server also includes ARP message, forbids that virtual switch forwards ARP message to Dynamic Host Configuration Protocol server, it is prevented that the IP address of Dynamic Host Configuration Protocol server externally exposes.
The present embodiment provides two kinds to forbid, and virtual switch passes through upstream Interface and forwards the detailed description of the invention of message accessing Dynamic Host Configuration Protocol server as follows:
In the first embodiment, network administration apparatus by issuing stream table to the first virtual switch, can forbid that the first virtual switch forwards the virtual machine in other computing node to access the message of the first Dynamic Host Configuration Protocol server by its upstream Interface. Shown in Fig. 4, for virtual switch 407, a kind of by pseudo-representation for forbidding that virtual switch 407 forwards the stream table of the message accessing Dynamic Host Configuration Protocol server as follows by its upstream Interface:
Flowtable2:
In_port=C, arp, arp_tpa=vdhcp, actions:drop
Dl_Vlan=net1, arp, arp_tpa=vdhcp, output:A1
Dl_Vlan=net2, arp, arp_tpa=vdhcp, output:A2
Port C in Flowtable2, for the uplink port 4071 of virtual switch 407. Net1 is VLANID, the net2 of subnet corresponding to DHCP401 is the VLANID of subnet corresponding to DHCP404.
According to Flowtable2, the DHCP message received from the virtual machine accessing net1 or APR message are forwarded to port A1 by virtual switch 407, the DHCP message received from the virtual machine accessing net2 or APR message are forwarded to port A2, DHCP message or APR packet loss will be received from uplink port. DHCP message between virtual machine and Dynamic Host Configuration Protocol server in computing node 40, only forwards in computing node 40. It addition, by forbidding that the IP address of Dynamic Host Configuration Protocol server externally exposes, reach different computing node and use identical DHCP service IP and the purpose do not conflicted.
In the second embodiment, network administration apparatus by issuing stream table to the first virtual switch, can forbid that the first virtual switch forwards the virtual machine in the first computing node to access the Dynamic Host Configuration Protocol server message in other computing node by its upstream Interface. I.e. virtual machine in the first computing node, is merely able to access the Dynamic Host Configuration Protocol server in the first computing node.
When distributed DHCP server includes being distributed in the multiple Dynamic Host Configuration Protocol server in multiple computing node, network administration apparatus can for the virtual switch at each Dynamic Host Configuration Protocol server place, issue stream table respectively, forbid that virtual switch forwards the virtual machine in the computing node of place to access the message of Dynamic Host Configuration Protocol server in another computing node, or forbid that the virtual machine in another computing node accesses the message of Dynamic Host Configuration Protocol server in this computing node.
Dynamic Host Configuration Protocol server includes the situation of the first Dynamic Host Configuration Protocol server and the second Dynamic Host Configuration Protocol server in a distributed manner is example, first virtual machine, the first Dynamic Host Configuration Protocol server and the first virtual switch are positioned at the first computing node, and the second virtual machine, the second Dynamic Host Configuration Protocol server and the second virtual switch are positioned at the second computing node.
Network administration apparatus forbids that the first virtual switch sends virtual machine in the first computing node by upstream Interface and accesses the message of Dynamic Host Configuration Protocol server in other computing node (the second Dynamic Host Configuration Protocol server), and forbids that the second virtual switch sends virtual machine in the second computing node by upstream Interface and accesses the message of Dynamic Host Configuration Protocol server in other computing node (the first Dynamic Host Configuration Protocol server).
Or, network administration apparatus forbids that the first virtual switch forwards virtual machine in other computing node (the second virtual machine) to access the message of the first Dynamic Host Configuration Protocol server, and forbids that the second virtual switch forwards virtual machine in other computing node (the first virtual machine) to access the message of the second Dynamic Host Configuration Protocol server.
Further, for the virtual switch in a computing node, network managing device can both forbid that virtual switch sent virtual machine in this computing node to other computing node and accesses the message of Dynamic Host Configuration Protocol server in other computing node, also forbids that virtual switch forwards virtual machine in other computing node to access the message of Dynamic Host Configuration Protocol server in this computing node simultaneously.
305, distributed DHCP server provides the DHCP service across computing node.
When the equal normal operation of distributed DHCP server, a Dynamic Host Configuration Protocol server has only to provide DHCP service into the virtual machine in this computing node.
When a Dynamic Host Configuration Protocol server is unavailable, for making the virtual machine in its place computing node can normal request DHCP service, network administration apparatus can specify another Dynamic Host Configuration Protocol server, as the proxy server of disabled Dynamic Host Configuration Protocol server, provide DHCP service for the virtual machine in the computing node of disabled Dynamic Host Configuration Protocol server place.
One disabled situation of Dynamic Host Configuration Protocol server, breaks down including this Dynamic Host Configuration Protocol server and is not provided that DHCP service, or user disables the situation of this Dynamic Host Configuration Protocol server in order to this Dynamic Host Configuration Protocol server is carried out upgrade maintenance. Preferably, the disabled situation of Dynamic Host Configuration Protocol server also includes, and Dynamic Host Configuration Protocol server is carried out load dispatch so that partial virtual machine is not reoffered the situation of DHCP service by Dynamic Host Configuration Protocol server. Such as, if the workload of a Dynamic Host Configuration Protocol server is bigger, network administration apparatus can forbid that it provides DHCP service for the partial virtual machine in the computing node of place, and specifies the Dynamic Host Configuration Protocol server being positioned at another computing node as proxy server, provides DHCP service for this partial virtual machine.
It is pointed out that proxy server here, be generally the Dynamic Host Configuration Protocol server serving same subnet. Such as, when the second Dynamic Host Configuration Protocol server is unavailable, network administration apparatus specifies the first Dynamic Host Configuration Protocol server as the proxy server of the second Dynamic Host Configuration Protocol server, is pointed to the second computing node and accesses the virtual machine offer DHCP service of targeted subnet.
Connected by physical switches 53 in conjunction with Fig. 5, computing node 51 and computing node 52.
Computing node 51, including virtual switch 511, Dynamic Host Configuration Protocol server 512, VM513 and VM514.
Computing node 52, including virtual switch 521, Dynamic Host Configuration Protocol server 522, VM523.
When Dynamic Host Configuration Protocol server 512 and Dynamic Host Configuration Protocol server 522 equal normal operation, with shown in the dotted line of arrow in the forward-path of DHCP message such as Fig. 5.
When Dynamic Host Configuration Protocol server 522 is unavailable, Dynamic Host Configuration Protocol server 512, except providing DHCP service for VM513 and VM514, also provides DHCP service for VM523. DHCP message between VM523 and Dynamic Host Configuration Protocol server 512 need to forward through virtual switch 521, physical switches 53 and virtual switch 511, transmission shown in solid with arrow of path such as Fig. 5. For completing to forward, network administration apparatus 50 has needed following 2 configurations:
First, due to when virtual switch 511 and virtual switch 521 equal normal operation, the upstream Interface of virtual switch 511 and virtual switch 521 is prohibited to forward the message accessing Dynamic Host Configuration Protocol server, therefore when Dynamic Host Configuration Protocol server 522 is unavailable, network administration apparatus 50 needs to issue stream table to virtual switch 511 and virtual switch 521 respectively, it is allowed to virtual switch 511 and virtual switch 521 forward the DHCP message between VM523 and Dynamic Host Configuration Protocol server 512 by respective upstream Interface.
Virtual switch is allowed to forward the message accessing Dynamic Host Configuration Protocol server, corresponding with the message forbidding virtual switch forwarding access Dynamic Host Configuration Protocol server.
If network administration apparatus 50 only prohibits virtual switch 511 and virtual switch 521 and sends virtual machine in this computing node by respective upstream Interface and access the message of Dynamic Host Configuration Protocol server in other computing node, then virtual switch 511 and virtual switch 521 only need to be allowed to send DHCP message mutual between VM523 and Dynamic Host Configuration Protocol server 512 by respective upstream Interface.
Forward virtual machine in other computing node to access the message of Dynamic Host Configuration Protocol server in this computing node if network administration apparatus 50 only prohibits virtual switch 511 and virtual switch 521 by respective upstream Interface, then virtual switch 511 and virtual switch 521 only need to be allowed to forward DHCP message mutual between VM523 and Dynamic Host Configuration Protocol server 512 by respective upstream Interface.
If network administration apparatus 50 had both prohibited virtual switch and has sent virtual machine in this computing node and access the message of Dynamic Host Configuration Protocol server in other computer point, also prohibit virtual switch forwards virtual machine in other computing node to access the message of Dynamic Host Configuration Protocol server in this node simultaneously, then allow virtual switch 511 and virtual switch 521 to send and forward DHCP message mutual between VM523 and Dynamic Host Configuration Protocol server 512 by respective upstream Interface simultaneously.
Needs particularly point out a bit, originally forbid that upstream Interface forwards the stream table of the message accessing Dynamic Host Configuration Protocol server, still effectively. Here only VM523 is made an exception, it is allowed to the forwarding of the DHCP message between VM523 and Dynamic Host Configuration Protocol server 512. If there being other virtual machine, it is necessary to access Dynamic Host Configuration Protocol server 512 across computing node, it is also desirable to allow virtual switch to forward this virtual machine to access the message of Dynamic Host Configuration Protocol server 512 by issuing stream table.
Second, network administration apparatus 50 indicates virtual switch 511 to set up the protocol interaction passage between VM523 and Dynamic Host Configuration Protocol server 512. And by issuing the protocol interaction passage that stream table instruction virtual switch 522 is set up between VM523 and Dynamic Host Configuration Protocol server 512.
So, the DHCP message between VM523 and Dynamic Host Configuration Protocol server 512, it becomes possible to complete to forward by forward-path shown in solid with arrow in Fig. 5 so that Dynamic Host Configuration Protocol server 512 can provide the DHCP service across computing node for VM523.
In prior art, Dynamic Host Configuration Protocol server is concentrated in the scheme being deployed in network node, transmission path between Dynamic Host Configuration Protocol server and virtual machine includes at least two virtual switch and a physical switches, and the Single Point of Faliure on transmission path may result in virtual machine and obtains DHCP service failure. If the virtual switch fault in network node, then the whole virtual machines accessing targeted subnet are unable to normally access Dynamic Host Configuration Protocol server.
In embodiments of the invention, Dynamic Host Configuration Protocol server is positioned at computing node, provides DHCP service for the virtual machine in this computing node, thus the transmission path shortened between Dynamic Host Configuration Protocol server and virtual machine. Additionally; when the quantity of distributed server is more than or equal to 2; if a Dynamic Host Configuration Protocol server is unavailable, network administration apparatus can select the Dynamic Host Configuration Protocol server of a normal operation as proxy server so that the virtual machine accessing first network can normally obtain DHCP service. Therefore by distributed Dynamic Host Configuration Protocol server, not only shorten the transmission path between Dynamic Host Configuration Protocol server and virtual machine, also improve system survivability simultaneously, even if a Dynamic Host Configuration Protocol server fault, another Dynamic Host Configuration Protocol server can also be passed through as its proxy server, provide normal DHCP service for virtual machine.
306, network administration apparatus configuration to distributed DHCP server and virtual switch when virtual machine is deleted.
When a virtual machine of linking objective subnet is deleted, it is possible to instruction Dynamic Host Configuration Protocol server deletes the binding relationship between MAC Address and the IP address of virtual machine, and cancels the protocol interaction passage for providing DHCP service for this virtual machine. Hereinafter illustrate in two kinds of situation.
The first situation, deleted virtual machine point and the Dynamic Host Configuration Protocol server serving this virtual machine are positioned at the situation of same computing node.
With the first virtual machine instance, when the first virtual machine is deleted, network administration apparatus indicates the first Dynamic Host Configuration Protocol server, is deleted by the binding relationship of the MAC Address of the first virtual machine originally recorded with IP address. It addition, network administration apparatus indicates the first virtual switch to delete the protocol interaction passage between the first virtual machine and the first Dynamic Host Configuration Protocol server.
Further, if in the virtual machine in the first computing node, other virtual machine is not had to access targeted subnet except the first virtual machine, then network administration apparatus can delete the first Dynamic Host Configuration Protocol server, and indicates the first virtual switch cleaning for forbidding that the first virtual switch forwards the stream table of the message accessing Dynamic Host Configuration Protocol server by upstream Interface.
The second situation, is deleted virtual machine point and is positioned at the situation of different two computing node from the Dynamic Host Configuration Protocol server serving this virtual machine.
The situation across computing node DHCP service is provided in conjunction with the Dynamic Host Configuration Protocol server shown in Fig. 5, with the second virtual machine instance, when the second virtual machine is deleted, network administration apparatus indicates the first Dynamic Host Configuration Protocol server, is deleted by the binding relationship of the MAC Address of the second virtual machine originally recorded with IP address. It addition, network administration apparatus indicates the first virtual switch and the second virtual switch to delete the protocol interaction passage between the second virtual machine and the first Dynamic Host Configuration Protocol server.
Further, if in the virtual machine in the second computing node, do not have other virtual machine to access targeted subnet except the second virtual machine, then network administration apparatus may indicate that the first virtual switch and the cleaning of the second virtual switch are for allowing the first virtual switch and the second virtual switch to forward the second virtual machine to access the stream table of message of the first Dynamic Host Configuration Protocol server by respective upstream Interface.
Further, after the second virtual machine is deleted, if neither one virtual machine accesses targeted subnet in the first computing node, then delete the first Dynamic Host Configuration Protocol server. And indicate the first virtual switch cleaning for forbidding that the first virtual switch forwards the stream table of the message accessing Dynamic Host Configuration Protocol server by upstream Interface.
The method of the offer DHCP service that embodiments of the invention provide, first network administration apparatus obtains the access information of the first virtual machine, then the MAC Address of first Dynamic Host Configuration Protocol server record the first virtual machine and the corresponding relation of IP address is indicated according to access information, and indicate the first virtual switch to set up the protocol interaction passage between the first virtual machine and the first Dynamic Host Configuration Protocol server, thus, when the first virtual machine asks DHCP service, it is possible to provided DHCP service by the first Dynamic Host Configuration Protocol server for it. Compared to existing technology, owing to the first Dynamic Host Configuration Protocol server and the first virtual machine are positioned at same computing node in the application, therefore the transmission path between virtual machine and Dynamic Host Configuration Protocol server is shorter, and propagation delay time is shorter. It addition, by the distributed deployment of Dynamic Host Configuration Protocol server, even if a Dynamic Host Configuration Protocol server fault, also only affect the virtual machine in this Dynamic Host Configuration Protocol server place computing node and obtain IP address, the virtual machine in other computing node is then unaffected.By specifying another Dynamic Host Configuration Protocol server as the proxy server of fault Dynamic Host Configuration Protocol server, it is possible to recover rapidly the DHCP service on the virtual machine affected by fault, thus improve system survivability.
Based on the method for the offer DHCP service that embodiments of the invention provide, embodiments of the invention also provide for a kind of network administration apparatus, have been used in the embodiment corresponding to Fig. 3 the step performed by network administration apparatus. With reference to shown in Fig. 6, network administration apparatus 60 includes: processor 601, memorizer 602, bus 603 and transceiver 604; Described processor 601, described memorizer 602, described transceiver 604 is connected with each other by described bus 603;
Program code for performing the present invention program preserves in the memory 602, and is controlled to perform by processor 601.
Memorizer 602 can include volatile memory (English full name: volatilememory), for instance random access memory (English full name: random-accessmemory, English abbreviation: RAM). Memorizer 602 can also include nonvolatile memory (English full name: non-volatilememory), such as read only memory (English full name: read-onlymemory, English abbreviation: ROM), flash memory (English full name: flashmemory), hard disk (English full name: harddiskdrive, English abbreviation: HDD) or solid state hard disc (English full name: solid-statedrive, English abbreviation: SSD). Memorizer 602 can also include the combination of the memorizer of mentioned kind.
Processor 601 can be central processing unit 601 (full name: CentralProcessingUnit, abbreviation: CPU), or the combination of CPU and hardware chip. Above-mentioned hardware chip can be network processing unit 601 (English full name: networkprocessor, English abbreviation: NP), special IC (English full name: application-specificintegratedcircuit, English abbreviation: ASIC), PLD (English full name: programmablelogicdevice, English abbreviation: PLD) or its combination in any. Above-mentioned PLD can be CPLD (English full name: complexprogrammablelogicdevice, English abbreviation: CPLD), field programmable gate array (English full name: field-programmablegatearray, English abbreviation: FPGA), GAL (English full name: genericarraylogic, English abbreviation: GAL) or its combination in any.
Processor 601, for calling the program code in memorizer 602, and the information such as data, request that other device sends are received to network administration apparatus 60 by transceiver 604, processor 601 generates the information such as corresponding instruction, data after the information received completes process, is sent by transceiver 604. In the present embodiment, the processor 601 of network administration apparatus 60 by sending virtual switch in instruction indicating gage operator node, Dynamic Host Configuration Protocol server completes certain function, the data that processor 601 sends can be the stream table sent to virtual switch, to indicate virtual switch according to stream table, the message received to be forwarded.
In a kind of possible embodiment, when said procedure is performed by processor 601, perform following steps:
The access information of described first virtual machine is obtained by described transceiver 604, described first virtual machine runs on the first computing node, described access information is used for indicating targeted subnet, described first computing node, and the MAC address of described first virtual machine and internet protocol address;Wherein, described targeted subnet is the virtual subnet that described first virtual machine accesses;
Send instruction by described transceiver 604, indicate the corresponding relation of the MAC Address of the first virtual machine described in the first Dynamic Host Configuration Protocol server record and IP address; Send instruction by described transceiver 604, indicate the first virtual switch to set up the protocol interaction passage between described first virtual machine and described first Dynamic Host Configuration Protocol server; So that described first Dynamic Host Configuration Protocol server is by described protocol interaction passage, provide DHCP service with the corresponding relation of IP address for described first virtual machine according to the MAC Address of described first virtual machine; Wherein, described first Dynamic Host Configuration Protocol server and described first virtual switch all run in described first computing node.
Optionally, when described processor 601 performs described program code, also realize following steps: when determining that described first virtual machine is first virtual machine accessing described targeted subnet in described first computing node, send instruction by described transceiver 604, indicate described first computing node to create described first Dynamic Host Configuration Protocol server.
Optionally, when described processor 601 performs described program code, also realize following steps: send stream table by described transceiver 604 to the first virtual switch, to forbid that the virtual machine in other computing node that described first virtual switch forwards in described at least two computing node except described first computing node accesses the message of described first Dynamic Host Configuration Protocol server; Or send stream table to forbid the message of the Dynamic Host Configuration Protocol server in other computing node that described first virtual switch forwards described first virtual machine to access in described at least two computing node except described first computing node by described transceiver 604.
Optionally, when described processor 601 performs described program code, also realize following steps: send instruction by described transceiver 604, the second computing node is indicated to create the second Dynamic Host Configuration Protocol server, described second computing node is the arbitrary computing node in described at least two computing node except described first computing node, and described second Dynamic Host Configuration Protocol server is for being pointed to described second computing node and accessing the virtual machine offer DHCP service of described targeted subnet; Described second Dynamic Host Configuration Protocol server shares MAC Address and IP address with described first Dynamic Host Configuration Protocol server; Send stream table by described transceiver 604, forbid that described first virtual switch and the second virtual switch send the message accessing Dynamic Host Configuration Protocol server by respective upstream Interface; Wherein said second virtual switch is positioned at described second computing node described in being positioned at; Or send stream table by described transceiver 604, forbid that the virtual machine in other computing node that described first virtual switch forwards in described at least two computing node except described first computing node accesses the message of described first Dynamic Host Configuration Protocol server, and forbid that the virtual machine in other computing node that described second virtual switch forwards in described at least two computing node except described second computing node accesses the message of described second Dynamic Host Configuration Protocol server.
Optionally, when described processor 601 performs described program code, also realize following steps: when determining that described second Dynamic Host Configuration Protocol server is unavailable, stream table is sent, it is allowed to described first virtual switch and described second virtual switch send DHCP message mutual between the second virtual machine and described first virtual switch by respective upstream Interface by described transceiver 604;And allow described first virtual switch to forward the message of described second virtual machine described first Dynamic Host Configuration Protocol server of access; Wherein said second virtual machine is be positioned at described second computing node and access the virtual machine of described targeted subnet;
Send instruction by described transceiver 604, indicate described first virtual switch to set up the protocol interaction passage between described second virtual machine and described first Dynamic Host Configuration Protocol server; Described second virtual switch is indicated to set up the protocol interaction passage between described second virtual machine and described first Dynamic Host Configuration Protocol server also by described transceiver 604.
Based on the method for the offer DHCP service that embodiments of the invention provide, embodiments of the invention also provide for a kind of computing node, have been used in the embodiment corresponding to Fig. 3 the step performed by computing node. With reference to shown in Fig. 7, computing node 70 includes: processor 701, memorizer 702, bus 703 and transceiver 704; Described processor 701, described memorizer 702, described transceiver 704 is connected with each other by described bus 703;
Program code for performing the present invention program is saved in memorizer 702, and is controlled to perform by processor 701.
Memorizer 702 can include volatile memory (English full name: volatilememory), for instance random access memory (English full name: random-accessmemory, English abbreviation: RAM). Memorizer 702 can also include nonvolatile memory (English full name: non-volatilememory), such as read only memory (English full name: read-onlymemory, English abbreviation: ROM), flash memory (English full name: flashmemory), hard disk (English full name: harddiskdrive, English abbreviation: HDD) or solid state hard disc (English full name: solid-statedrive, English abbreviation: SSD). Memorizer 702 can also include the combination of the memorizer of mentioned kind.
Processor 701 can be central processing unit 701 (full name: CentralProcessingUnit, abbreviation: CPU), or the combination of CPU and hardware chip. Above-mentioned hardware chip can be network processing unit 701 (English full name: networkprocessor, English abbreviation: NP), special IC (English full name: application-specificintegratedcircuit, English abbreviation: ASIC), PLD (English full name: programmablelogicdevice, English abbreviation: PLD) or its combination in any. Above-mentioned PLD can be CPLD (English full name: complexprogrammablelogicdevice, English abbreviation: CPLD), field programmable gate array (English full name: field-programmablegatearray, English abbreviation: FPGA), GAL (English full name: genericarraylogic, English abbreviation: GAL) or its combination in any.
Processor 701, for calling the program code in memorizer 702, in a kind of possible embodiment, when said procedure is performed by processor 701, completes each self-corresponding function of the first virtual machine, the first Dynamic Host Configuration Protocol server and the first virtual switch;
Described first Dynamic Host Configuration Protocol server, for the MAC address of described first virtual machine sent by described transceiver 704 receiving network managing device and internet protocol address, and record the MAC Address of described first virtual machine and the corresponding relation of IP address;
Described first virtual switch, sets up the protocol interaction passage between described first virtual machine and described first Dynamic Host Configuration Protocol server for the instruction according to described network administration apparatus;
Described first Dynamic Host Configuration Protocol server, is additionally operable to, by described protocol interaction passage, provide DHCP service with the corresponding relation of IP address for described first virtual machine according to the MAC Address of described first virtual machine.
Optionally, when described processor 701 performs described program code, the instruction always according to described network administration apparatus creates described first Dynamic Host Configuration Protocol server.
Optionally, described first virtual switch, it is additionally operable to the instruction according to described network administration apparatus and forbids that described first virtual switch forwards the virtual machine in other computing node 70 to access the message of described first Dynamic Host Configuration Protocol server; Or the message forwarding described first virtual machine to access the Dynamic Host Configuration Protocol server in other computing node 70 is forbidden according to the instruction of described network administration apparatus.
Optionally, described first virtual switch, it is additionally operable to the instruction according to described network administration apparatus and allows described first virtual switch to send DHCP message mutual between the second virtual machine and described first virtual switch by upstream Interface; And the instruction according to described network administration apparatus allows to forward the message of described second virtual machine described first Dynamic Host Configuration Protocol server of access; Wherein said second virtual machine is other computing nodes 70 being positioned at except described computing node 70 and the virtual machine accessing described targeted subnet;
Described first virtual switch, is additionally operable to the instruction according to described network administration apparatus and sets up the protocol interaction passage between described second virtual machine and described first Dynamic Host Configuration Protocol server.
Method based on the offer DHCP service that embodiments of the invention provide, embodiments of the invention also provide for a kind of communication system, with reference to shown in Fig. 8, communication system 80 includes network administration apparatus 801 and at least two computing node 802, has been used in the embodiment corresponding to Fig. 3 network administration apparatus and step performed by computing node.
Interconnected by basic network between at least two computing node 802, Fig. 8 represents basic network with physical switches 803.
Network administration apparatus 801 can network administration apparatus described in the embodiment corresponding to Fig. 6, the arbitrary computing node 802 at least two computing node, it is possible to the computing node described in embodiment corresponding to Fig. 7.
Offer network administration apparatus, computing node and the communication system that embodiments of the invention provide, first network administration apparatus obtains the access information of the first virtual machine, then the MAC Address of first Dynamic Host Configuration Protocol server record the first virtual machine and the corresponding relation of IP address is indicated according to access information, and indicate the first virtual switch to set up the protocol interaction passage between the first virtual machine and the first Dynamic Host Configuration Protocol server, thus, when the first virtual machine asks DHCP service, it is possible to provided DHCP service by the first Dynamic Host Configuration Protocol server for it. Compared to existing technology, owing to the first Dynamic Host Configuration Protocol server and the first virtual machine are positioned at same computing node in the application, therefore the transmission path between virtual machine and Dynamic Host Configuration Protocol server is shorter, and propagation delay time is shorter. It addition, by the distributed deployment of Dynamic Host Configuration Protocol server, even if a Dynamic Host Configuration Protocol server fault, also only affect the virtual machine in this Dynamic Host Configuration Protocol server place computing node and obtain IP address, the virtual machine in other computing node is then unaffected. By specifying another Dynamic Host Configuration Protocol server as the proxy server of fault Dynamic Host Configuration Protocol server, it is possible to recover rapidly the DHCP service on the virtual machine affected by fault, thus improve system survivability.
It should be noted that, for aforesaid each embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously. Secondly, those skilled in the art also should know, embodiment described in this description belongs to preferred embodiment, necessary to involved action and the module not necessarily present invention.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment) or computer program. Therefore, the present invention can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect. And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code. Computer program is stored/distributed in suitable medium, provides or as the part of hardware, it would however also be possible to employ other distribution forms, as by Internet or other wired or wireless telecommunication system together with other hardware.
The present invention is that flow chart and/or block diagram with reference to the method for the embodiment of the present invention, device (equipment) and computer program describe. It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame. These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although in conjunction with specific features and embodiment, invention has been described, it is clear that, without departing from the spirit and scope of the present invention, can it is carried out various amendment and combination. Correspondingly, the specification and drawings is only the exemplary illustration of the present invention that claims define, and is considered as any and all modifications, change, combination or the equivalent that cover in the scope of the invention. Obviously, the present invention can be carried out various change and modification without deviating from the spirit and scope of the present invention by those skilled in the art.Such as, the scheme of the application is equally applicable to replace with virtual machine situation that the situation of container (such as docker), virtual machine and container coexist or virtual machine and container is not distinguished, and the interface on virtual switch identifies the situation of virtual machine or container with virtual machine or container. If these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (15)

1. the method providing dynamic host configuration protocol DHCP to service, it is applied to network administration apparatus and at least two computing node, described at least two computing node includes the first computing node, it is characterized in that, first virtual machine, the first Dynamic Host Configuration Protocol server and the first virtual switch all run on described first computing node, and the method for described offer DHCP service includes:
Described network administration apparatus obtains the access information of described first virtual machine, and described access information is used for indicating targeted subnet, described first computing node, and the MAC address of described first virtual machine and internet protocol address; Wherein, described targeted subnet is the virtual subnet that described first virtual machine accesses;
Described network administration apparatus indicates the corresponding relation of the MAC Address of the first virtual machine described in described first Dynamic Host Configuration Protocol server record and IP address; Described first virtual switch is indicated to set up the protocol interaction passage between described first virtual machine and described first Dynamic Host Configuration Protocol server;
Described first Dynamic Host Configuration Protocol server passes through described protocol interaction passage, provides DHCP service with the corresponding relation of IP address for described first virtual machine according to the MAC Address of described first virtual machine.
2. the method for offer DHCP service according to claim 1, it is characterised in that described network administration apparatus also includes after obtaining the access information of described first virtual machine:
When described network administration apparatus determines that described first virtual machine is first virtual machine accessing described targeted subnet in described first computing node, described first computing node is indicated to create described first Dynamic Host Configuration Protocol server.
3. the method for offer DHCP service according to claim 1 and 2, it is characterised in that also include:
Described network administration apparatus forbids that the virtual machine in other computing node that described first virtual switch forwards in described at least two computing node except described first computing node accesses the message of described first Dynamic Host Configuration Protocol server;
Or described network administration apparatus forbids the message of the Dynamic Host Configuration Protocol server in other computing node that described first virtual switch forwards described first virtual machine to access in described at least two computing node except described first computing node.
4. the method for offer DHCP service according to claim 1 and 2, it is characterised in that also include:
Described network administration apparatus indicates the second computing node to create the second Dynamic Host Configuration Protocol server, described second computing node is the arbitrary computing node in described at least two computing node except described first computing node, and described second Dynamic Host Configuration Protocol server is for being pointed to described second computing node and accessing the virtual machine offer DHCP service of described targeted subnet; Described second Dynamic Host Configuration Protocol server shares MAC Address and IP address with described first Dynamic Host Configuration Protocol server;
Described network administration apparatus forbids that described first virtual switch and the second virtual switch send the message accessing Dynamic Host Configuration Protocol server by respective upstream Interface;Wherein said second virtual switch is positioned at described second computing node described in being positioned at;
Or described network administration apparatus forbids that the virtual machine in other computing node that described first virtual switch forwards in described at least two computing node except described first computing node accesses the message of described first Dynamic Host Configuration Protocol server, and forbid that the virtual machine in other computing node that described second virtual switch forwards in described at least two computing node except described second computing node accesses the message of described second Dynamic Host Configuration Protocol server.
5. the method for offer DHCP service according to claim 4, it is characterised in that the method for described offer DHCP service also includes:
When described network administration apparatus determines that described second Dynamic Host Configuration Protocol server is unavailable, it is allowed to described first virtual switch and described second virtual switch send DHCP message mutual between the second virtual machine and described first virtual switch by respective upstream Interface; And allow described first virtual switch to forward the message of described second virtual machine described first Dynamic Host Configuration Protocol server of access; Wherein said second virtual machine is be positioned at described second computing node and access the virtual machine of described targeted subnet;
Described network administration apparatus indicates described first virtual switch to set up the protocol interaction passage between described second virtual machine and described first Dynamic Host Configuration Protocol server; Described second virtual switch is also indicated to set up the protocol interaction passage between described second virtual machine and described first Dynamic Host Configuration Protocol server.
6. a network administration apparatus, it is characterised in that including: processor, memorizer, bus and transceiver; Described processor, described memorizer, described transceiver is connected with each other by described bus; Described memorizer has program stored therein code, when described processor performs described program code, it is achieved following steps:
The access information of described first virtual machine is obtained by described transceiver, described first virtual machine runs on the first computing node, described access information is used for indicating targeted subnet, described first computing node, and the MAC address of described first virtual machine and internet protocol address; Wherein, described targeted subnet is the virtual subnet that described first virtual machine accesses;
The corresponding relation of the MAC Address of the first virtual machine described in the first Dynamic Host Configuration Protocol server record and IP address is indicated by described transceiver; The first virtual switch is indicated to set up the protocol interaction passage between described first virtual machine and described first Dynamic Host Configuration Protocol server by described transceiver; So that described first Dynamic Host Configuration Protocol server is by described protocol interaction passage, provide DHCP service with the corresponding relation of IP address for described first virtual machine according to the MAC Address of described first virtual machine; Wherein, described first Dynamic Host Configuration Protocol server and described first virtual switch all run in described first computing node.
7. network administration apparatus according to claim 6, it is characterized in that, when described processor performs described program code, also realize following steps: when determining that described first virtual machine is first virtual machine accessing described targeted subnet in described first computing node, create described first Dynamic Host Configuration Protocol server by described first computing node of described transceiver instruction.
8. the network administration apparatus according to claim 6 or 7, it is characterized in that, when described processor performs described program code, also realize following steps: forbid that the virtual machine in other computing node that described first virtual switch forwards in described at least two computing node except described first computing node accesses the message of described first Dynamic Host Configuration Protocol server by described transceiver;Or the message of Dynamic Host Configuration Protocol server in other computing node that described first virtual switch forwards described first virtual machine to access in described at least two computing node except described first computing node is forbidden by described transceiver.
9. the network administration apparatus according to claim 6 or 7, it is characterized in that, when described processor performs described program code, also realize following steps: indicate the second computing node to create the second Dynamic Host Configuration Protocol server by described transceiver, described second computing node is the arbitrary computing node in described at least two computing node except described first computing node, and described second Dynamic Host Configuration Protocol server is for being pointed to described second computing node and accessing the virtual machine offer DHCP service of described targeted subnet; Described second Dynamic Host Configuration Protocol server shares MAC Address and IP address with described first Dynamic Host Configuration Protocol server; Forbid that described first virtual switch and the second virtual switch send the message accessing Dynamic Host Configuration Protocol server by respective upstream Interface by described transceiver; Wherein said second virtual switch is positioned at described second computing node described in being positioned at; Or forbid that the virtual machine in other computing node that described first virtual switch forwards in described at least two computing node except described first computing node accesses the message of described first Dynamic Host Configuration Protocol server by described transceiver, and forbid that the virtual machine in other computing node that described second virtual switch forwards in described at least two computing node except described second computing node accesses the message of described second Dynamic Host Configuration Protocol server.
10. network administration apparatus according to claim 9, it is characterized in that, when described processor performs described program code, also realize following steps: when determining that described second Dynamic Host Configuration Protocol server is unavailable, allow described first virtual switch and described second virtual switch to send DHCP message mutual between the second virtual machine and described first virtual switch by respective upstream Interface by described transceiver; And allow described first virtual switch to forward the message of described second virtual machine described first Dynamic Host Configuration Protocol server of access; Wherein said second virtual machine is be positioned at described second computing node and access the virtual machine of described targeted subnet;
Described first virtual switch is indicated to set up the protocol interaction passage between described second virtual machine and described first Dynamic Host Configuration Protocol server by described transceiver; Described second virtual switch is indicated to set up the protocol interaction passage between described second virtual machine and described first Dynamic Host Configuration Protocol server also by described transceiver.
11. a computing node, it is characterised in that including: processor, memorizer, bus and transceiver; Described processor, described memorizer, described transceiver is connected with each other by described bus; Described memorizer has program stored therein code, when described processor performs described program code, it is achieved the first virtual machine, the first Dynamic Host Configuration Protocol server and the first virtual switch;
Described first Dynamic Host Configuration Protocol server, for the MAC address of described first virtual machine sent by described transceivers network administration apparatus and internet protocol address, and record the MAC Address of described first virtual machine and the corresponding relation of IP address;
Described first virtual switch, sets up the protocol interaction passage between described first virtual machine and described first Dynamic Host Configuration Protocol server for the instruction according to described network administration apparatus;
Described first Dynamic Host Configuration Protocol server, is additionally operable to, by described protocol interaction passage, provide DHCP service with the corresponding relation of IP address for described first virtual machine according to the MAC Address of described first virtual machine.
12. computing node according to claim 11, it is characterised in that when described processor performs described program code, the instruction always according to described network administration apparatus creates described first Dynamic Host Configuration Protocol server.
13. the computing node according to claim 11 or 12, it is characterised in that
Described first virtual switch, is additionally operable to the instruction according to described network administration apparatus and forbids that described first virtual switch forwards the virtual machine in other computing node to access the message of described first Dynamic Host Configuration Protocol server; Or the message forwarding described first virtual machine to access the Dynamic Host Configuration Protocol server in other computing node is forbidden according to the instruction of described network administration apparatus.
14. computing node according to claim 13, it is characterised in that
Described first virtual switch, is additionally operable to the instruction according to described network administration apparatus and allows described first virtual switch to send DHCP message mutual between the second virtual machine and described first virtual switch by upstream Interface; And the instruction according to described network administration apparatus allows to forward the message of described second virtual machine described first Dynamic Host Configuration Protocol server of access; Wherein said second virtual machine is other computing nodes being positioned at except described computing node and the virtual machine accessing described targeted subnet;
Described first virtual switch, is additionally operable to the instruction according to described network administration apparatus and sets up the protocol interaction passage between described second virtual machine and described first Dynamic Host Configuration Protocol server.
15. a communication system, it is characterised in that include the network administration apparatus as described in any one of claim 6-10 and at least two such as computing node as described in any one of claim 11-14.
CN201610216278.1A 2016-04-07 2016-04-07 The method, apparatus and system of DHCP service are provided Active CN105657081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610216278.1A CN105657081B (en) 2016-04-07 2016-04-07 The method, apparatus and system of DHCP service are provided

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610216278.1A CN105657081B (en) 2016-04-07 2016-04-07 The method, apparatus and system of DHCP service are provided

Publications (2)

Publication Number Publication Date
CN105657081A true CN105657081A (en) 2016-06-08
CN105657081B CN105657081B (en) 2019-01-18

Family

ID=56497002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610216278.1A Active CN105657081B (en) 2016-04-07 2016-04-07 The method, apparatus and system of DHCP service are provided

Country Status (1)

Country Link
CN (1) CN105657081B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936943A (en) * 2017-03-21 2017-07-07 深信服科技股份有限公司 The distribution method and system of virtual machine address
CN106953943A (en) * 2017-04-25 2017-07-14 中国联合网络通信集团有限公司 Suitable for the method and device of switch communication
CN108039968A (en) * 2017-12-12 2018-05-15 深圳市泰信通信息技术有限公司 Network optimized approach, equipment and computer-readable recording medium
CN108390956A (en) * 2018-05-29 2018-08-10 郑州云海信息技术有限公司 A kind of method and system for virtual machine configuration internet protocol address
CN108833613A (en) * 2018-09-28 2018-11-16 郑州云海信息技术有限公司 A kind of realization method and system of dynamic host configuration protocol
CN108933844A (en) * 2017-05-27 2018-12-04 华为技术有限公司 The method and apparatus of DHCP service is provided
CN109417515A (en) * 2016-07-04 2019-03-01 瑞典爱立信有限公司 For handling the methods, devices and systems of internet protocol packets
WO2019080163A1 (en) * 2017-10-23 2019-05-02 国云科技股份有限公司 Method for identifying fake source communication of cloud platform virtual switch
CN109768871A (en) * 2017-11-09 2019-05-17 阿里巴巴集团控股有限公司 Configure method, host and the storage medium of multiple Microsoft Loopback Adapters
WO2019214560A1 (en) * 2018-05-09 2019-11-14 华为技术有限公司 Dhcp packet processing method and device
CN113286011A (en) * 2021-04-27 2021-08-20 锐捷网络股份有限公司 IP address allocation method and device based on VXLAN
CN113614697A (en) * 2018-12-21 2021-11-05 华为技术有限公司 Mechanism to reduce server-less function startup latency
CN113923253A (en) * 2021-10-12 2022-01-11 西安万像电子科技有限公司 Virtual machine image transmission method, electronic equipment and storage medium
CN114338609A (en) * 2022-01-25 2022-04-12 广东省广播电视网络股份有限公司 IP address allocation management system and method thereof
CN114880256A (en) * 2017-04-14 2022-08-09 华为技术有限公司 Data processing method, storage system and switching equipment
CN114884922A (en) * 2022-04-28 2022-08-09 济南浪潮数据技术有限公司 IP conflict detection method, equipment and storage medium in data center
CN115484232A (en) * 2022-07-29 2022-12-16 天翼云科技有限公司 DHCP server deployment method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534329A (en) * 2009-04-16 2009-09-16 华为技术有限公司 IP address assignment method and system
CN104394130A (en) * 2014-11-12 2015-03-04 国云科技股份有限公司 A multi-tenant virtual network isolating method
CN104468574A (en) * 2014-12-05 2015-03-25 中国联合网络通信集团有限公司 Dynamic IP address acquisition method, system and device for virtual machines
CN104717081A (en) * 2013-12-13 2015-06-17 杭州华为数字技术有限公司 Gateway function realization method and device
US20150215276A1 (en) * 2014-01-29 2015-07-30 Vmware, Inc. System and method for dynamically configuring a dns server in a virtual network environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534329A (en) * 2009-04-16 2009-09-16 华为技术有限公司 IP address assignment method and system
CN104717081A (en) * 2013-12-13 2015-06-17 杭州华为数字技术有限公司 Gateway function realization method and device
US20150215276A1 (en) * 2014-01-29 2015-07-30 Vmware, Inc. System and method for dynamically configuring a dns server in a virtual network environment
CN104394130A (en) * 2014-11-12 2015-03-04 国云科技股份有限公司 A multi-tenant virtual network isolating method
CN104468574A (en) * 2014-12-05 2015-03-25 中国联合网络通信集团有限公司 Dynamic IP address acquisition method, system and device for virtual machines

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109417515A (en) * 2016-07-04 2019-03-01 瑞典爱立信有限公司 For handling the methods, devices and systems of internet protocol packets
US11882050B2 (en) 2016-07-04 2024-01-23 Telefonaktiebolaget Lm Ericsson (Publ) Method, apparatus and system for handling an internet protocol packet
CN106936943A (en) * 2017-03-21 2017-07-07 深信服科技股份有限公司 The distribution method and system of virtual machine address
CN114880256A (en) * 2017-04-14 2022-08-09 华为技术有限公司 Data processing method, storage system and switching equipment
CN106953943A (en) * 2017-04-25 2017-07-14 中国联合网络通信集团有限公司 Suitable for the method and device of switch communication
CN108933844B (en) * 2017-05-27 2020-08-25 华为技术有限公司 Method and equipment for providing DHCP service
CN108933844A (en) * 2017-05-27 2018-12-04 华为技术有限公司 The method and apparatus of DHCP service is provided
WO2019080163A1 (en) * 2017-10-23 2019-05-02 国云科技股份有限公司 Method for identifying fake source communication of cloud platform virtual switch
CN109768871A (en) * 2017-11-09 2019-05-17 阿里巴巴集团控股有限公司 Configure method, host and the storage medium of multiple Microsoft Loopback Adapters
CN108039968A (en) * 2017-12-12 2018-05-15 深圳市泰信通信息技术有限公司 Network optimized approach, equipment and computer-readable recording medium
CN108039968B (en) * 2017-12-12 2021-02-23 深圳市泰信通信息技术有限公司 Network optimization method, device and computer readable storage medium
WO2019214560A1 (en) * 2018-05-09 2019-11-14 华为技术有限公司 Dhcp packet processing method and device
CN108390956A (en) * 2018-05-29 2018-08-10 郑州云海信息技术有限公司 A kind of method and system for virtual machine configuration internet protocol address
CN108833613B (en) * 2018-09-28 2021-11-26 郑州云海信息技术有限公司 Method and system for implementing dynamic host configuration protocol
CN108833613A (en) * 2018-09-28 2018-11-16 郑州云海信息技术有限公司 A kind of realization method and system of dynamic host configuration protocol
CN113614697A (en) * 2018-12-21 2021-11-05 华为技术有限公司 Mechanism to reduce server-less function startup latency
CN113614697B (en) * 2018-12-21 2023-10-13 华为云计算技术有限公司 Mechanism for reducing start-up delay of server-less function
CN113286011A (en) * 2021-04-27 2021-08-20 锐捷网络股份有限公司 IP address allocation method and device based on VXLAN
CN113286011B (en) * 2021-04-27 2023-08-22 锐捷网络股份有限公司 IP address allocation method and device based on VXLAN
CN113923253A (en) * 2021-10-12 2022-01-11 西安万像电子科技有限公司 Virtual machine image transmission method, electronic equipment and storage medium
CN114338609A (en) * 2022-01-25 2022-04-12 广东省广播电视网络股份有限公司 IP address allocation management system and method thereof
CN114884922A (en) * 2022-04-28 2022-08-09 济南浪潮数据技术有限公司 IP conflict detection method, equipment and storage medium in data center
CN115484232A (en) * 2022-07-29 2022-12-16 天翼云科技有限公司 DHCP server deployment method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN105657081B (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN105657081A (en) DHCP (dynamic host configuration protocol) service providing method, device and system
JP6335363B2 (en) Provision of virtual security appliance architecture for virtual cloud infrastructure
CN108347493B (en) Hybrid cloud management method and device and computing equipment
US10063470B2 (en) Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof
US20190222440A1 (en) Inter-Cloud Communication Method and Related Device, and Inter-Cloud Communication Configuration Method and Related Device
US10135687B2 (en) Virtual group policy based filtering within an overlay network
CN110896371B (en) Virtual network equipment and related method
US11451509B2 (en) Data transmission method and computer system
EP3070887A1 (en) Communication method, device and system for virtual extensible local area network
EP3664420B1 (en) Managing address spaces across network elements
US10594586B2 (en) Dialing test method, dialing test system, and computing node
US10361970B2 (en) Automated instantiation of wireless virtual private networks
WO2016121736A1 (en) Orchestrator device, system, and method and program for creating virtual machine
CN107659484B (en) Method, device and system for accessing VXLAN network from VLAN network
US20200304456A1 (en) Network and Network Management Method
US20150229523A1 (en) Virtual extensible local area network (vxlan) system of automatically configuring multicasting tunnel for segment of virtual extensible local area network according to life cycle of end system and operating method thereof
US20230345273A1 (en) Fault processing method, control plane network element, steering decision-making network element, and related device
CN112385194B (en) State packet transmission between remote networks
CN114765601A (en) Address prefix obtaining method and device
CN114363294B (en) Management method, device and system of tenant server
CN113647065B (en) virtual network topology
WO2024078427A1 (en) Serverless function configuration system, method and apparatus
US20230017053A1 (en) Service chaining in fabric networks
US20240137314A1 (en) Service chaining in fabric networks
KR102554413B1 (en) Node device, method for processing packet of the node device, and network system which comprises node device and control device for managing control information associated with the packet-processing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220216

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.