CN108833613B - Method and system for implementing dynamic host configuration protocol - Google Patents
Method and system for implementing dynamic host configuration protocol Download PDFInfo
- Publication number
- CN108833613B CN108833613B CN201811136020.6A CN201811136020A CN108833613B CN 108833613 B CN108833613 B CN 108833613B CN 201811136020 A CN201811136020 A CN 201811136020A CN 108833613 B CN108833613 B CN 108833613B
- Authority
- CN
- China
- Prior art keywords
- dhcp
- service module
- management
- dhcp service
- node
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000004458 analytical method Methods 0.000 claims description 28
- 230000003068 static effect Effects 0.000 claims description 4
- 230000000977 initiatory effect Effects 0.000 claims description 2
- 238000007726 management method Methods 0.000 description 106
- 238000010586 diagram Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Abstract
The application discloses a DHCP realization method and a DHCP realization system; the method for implementing DHCP comprises the following steps: a management node of a virtualization platform creates a distributed virtual switch on a plurality of computing nodes; starting a DHCP service module and a DHCP management service module on each computing node based on the distributed virtual switch; the DHCP service module and the DHCP management service module are used for providing DHCP service for the virtual machine borne by the located computing node. The availability of the DHCP service of the virtualization platform can be improved.
Description
Technical Field
The present application relates to, but not limited to, the technical field of virtualization platforms, and in particular, to a method and a system for implementing a Dynamic Host Configuration Protocol (DHCP).
Background
With the rapid development and deployment of public clouds and private clouds, more and more enterprises can deploy their actual services on the virtualization platform of the data center. If the IP address of the virtual machine is still managed by using a static Internet Protocol (IP) address, the workload of the administrator may be increased and IP collision may occur due to the increase of enterprise services, thereby affecting the services being used. Meanwhile, the virtualized network has unique requirements on network isolation, connectivity and security, and the traditional DHCP server cannot completely meet the requirements.
In the current DHCP scheme adopted in the virtualization platform, a DHCP proxy server is generally placed on a certain computing node or a management node of the virtualization platform. However, in this case, when the computing node or the management node fails, the DHCP service of the entire virtualization platform is easily unavailable, and there is a single point of failure. In addition, only one DHCP proxy server also has a single point of failure problem, which easily causes the DHCP service of the whole platform to be unavailable.
Disclosure of Invention
The embodiment of the application provides a method and a system for realizing a Dynamic Host Configuration Protocol (DHCP), which can improve the usability of the DHCP service of a virtualization platform.
In one aspect, an embodiment of the present application provides a method for implementing DHCP, including:
a management node of a virtualization platform creates a distributed virtual switch on a plurality of computing nodes;
starting a DHCP service module and a DHCP management service module on each computing node based on the distributed virtual switch; the DHCP service module and the DHCP management service module are used for providing DHCP service for the virtual machine borne by the computing node.
On the other hand, an embodiment of the present application provides a method for implementing DHCP, which is applied to a computing node in a virtualization platform, where the computing node is started with a DHCP service module and a DHCP management service module based on a distributed virtual switch, and the method includes:
the computing node responds to a DHCP service request sent by the virtual machine through the DHCP service module; determining DHCP service information provided for the virtual machine through the DHCP service module according to the DHCP service request, and reporting the DHCP service information to a management node in a virtualization platform through the DHCP management service module; and receiving an analysis result of the management node on the DHCP service information through the DHCP management service module.
In another aspect, an embodiment of the present application provides a DHCP implementation system, including: a management node and a plurality of computing nodes of a virtualization platform; the management node is respectively connected with the plurality of computing nodes; the management node is adapted to create a distributed virtual switch on the plurality of computing nodes and to start a DHCP service module and a DHCP management service module on each computing node based on the distributed virtual switch; the DHCP service module and the DHCP management service module are used for providing DHCP service for the virtual machine borne by the computing node.
In addition, an embodiment of the present application further provides a computer-readable medium, in which a DHCP implementation program is stored, and the implementation program, when executed by a processor, implements the steps of the DHCP implementation method.
In the embodiment of the application, a management node of a virtualization platform creates a Distributed Virtual Switch (DVS) on a plurality of computing nodes; starting a DHCP service module and a DHCP management service module on each computing node based on the DVS; the DHCP service module and the DHCP management service module are used for providing DHCP service for the virtual machine borne by the located computing node. In the embodiment, the distributed virtual switch is used for designing the DHCP service into the distributed system service, so that the problem of single-point failure in the traditional mode is solved, the unified management and configuration of a plurality of computing nodes in the virtualization platform are realized, and the usability of the DHCP service in the virtualization platform and the convenience of user operation are improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the claimed subject matter and are incorporated in and constitute a part of this specification, illustrate embodiments of the subject matter and together with the description serve to explain the principles of the subject matter and not to limit the subject matter.
Fig. 1 is a schematic diagram of a DHCP implementation system provided in an embodiment of the present application;
fig. 2 is an execution flow diagram of a DHCP implementation system according to an embodiment of the present application;
fig. 3 is a schematic diagram of a DHCP implementation method provided in an embodiment of the present application;
fig. 4 is a schematic diagram of another DHCP implementation method provided in an embodiment of the present application;
FIG. 5 is a schematic diagram of a management node according to an embodiment of the present application;
fig. 6 is a schematic diagram of a computing node according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The embodiment of the application provides a method and a system for implementing DHCP, which are convenient for a user to automatically acquire a network protocol (IP) address when the user creates a virtual machine, and do not need to enter an operating system of the virtual machine for manual configuration, thereby reducing the operation steps of the user. Especially, when the virtual machines are established in batches, user operation can be greatly reduced, and unified management can be performed.
Fig. 1 is a schematic diagram of a DHCP implementation system according to an embodiment of the present application. As shown in fig. 1, the system for implementing DHCP provided by this embodiment includes: a management node 101 of the virtualization platform and a plurality of compute nodes (e.g., compute nodes 102a, 102 n); the management node 101 is connected to a plurality of computing nodes (e.g., computing nodes 102a and 102 n).
In this embodiment, the management node 101 is adapted to create a Distributed Virtual Switch (DVS) on a plurality of computing nodes, and start a DHCP service module and a DHCP management service module on each computing node based on the Distributed Virtual Switch; the DHCP service module and the DHCP management service module are used for providing DHCP service for the virtual machine borne by the located computing node. For example, in fig. 1, a DHCP service module 1020a and a DHCP management service module 1022a are started on the computing node 102a, and the DHCP service module 1020a and the DHCP management service module 1022a are configured to provide a DHCP service to a virtual machine carried by the computing node 102 a; the DHCP service module 1020n and the DHCP management service module 1022n are started on the computing node 102n, and the DHCP service module 1020n and the DHCP management service module 1022n are configured to provide a DHCP service to a virtual machine carried by the computing node 102 n.
Among them, Distributed Virtual Switch (DVS) is a way to implement Virtual switches in a Virtual network. The distributed virtual switch can be used for simultaneously managing the virtual switches on a plurality of virtualized computing nodes and ensuring the consistency of the virtualized network configuration among each computing node. By utilizing the distributed virtual network technology, the same effect as a physical switch can be realized, internal flow forwarding between virtual machines is realized, or data exchange is carried out between the virtual machines and an external network through connection to a physical Ethernet card, and unified management among computing nodes is realized. In the virtualization platform, the DVS can realize more uniform management of the computing nodes, guarantee the safety and stability of data, realize migration of virtual machines, and realize functions such as High Availability (HA) data disaster recovery.
In this embodiment, any computing node (e.g., computing node 102a or computing node 102n) may be adapted to respond to a DHCP service request issued by a virtual machine through a DHCP service module; determining DHCP service information provided for the virtual machine according to the DHCP service request through a DHCP service module, and reporting the DHCP service information to the management node 101 through a DHCP management service module; the analysis result of the management node 101 on the DHCP service information is received through the DHCP management service module.
In other words, in this embodiment, regarding the DHCP service, any computing node may implement interaction with the virtual machine through the DHCP service module, and implement interaction with the management node through the DHCP management service module.
In an exemplary embodiment, the management node 101 may start the DHCP service module and the DHCP management service module on each computing node based on a distributed virtual switch by: virtual networks among the computing nodes are communicated by configuring a physical network card of the computing nodes as an uplink; creating a virtual network on a distributed virtual switch; a port for DHCP connection is established on a virtual network, and an IP address used by a DHCP service module is configured; and starting the DHCP service module and the DHCP management service module at the port.
In an exemplary embodiment, the management node may be further adapted to receive and store the DHCP service information of the located computing node sent by the DHCP management service module on each computing node.
In an exemplary embodiment, the management node may be further adapted to analyze, according to the DHCP service information of the plurality of computing nodes, whether the DHCP service information generated by the DHCP service module on each computing node for the virtual machine is available, and feed back an analysis result to the DHCP management service module on the corresponding computing node.
In the embodiment, the DHCP service module is set in the virtualization platform based on DVS, so that distributed DHCP service is realized in the virtualization platform, configuration management of an administrator is facilitated, and the problem of traditional single-point failure is solved. In order to realize distributed DHCP service, a DHCP management service module is designed, so that data synchronization can be realized among different computing nodes, and faults such as IP address conflict are avoided.
Fig. 2 is an execution flow diagram of a DHCP implementation system according to an embodiment of the present application. The precondition of the present embodiment includes: all nodes of the virtualization platform are in network communication, and the function is normal; the virtualization platform supports DVS, and the compute nodes of the virtualization platform support the initiation of DHCP services.
As shown in fig. 2, the implementation system of DHCP in this embodiment executes the following steps:
in this step, the DHCP service module responds to a data packet sent by each virtual machine for searching a DHCP server, where the data packet carries a DHCP service request; then, after receiving the DHCP service request from the virtual machine, the DHCP service module provides a DHCP service-related lease and reports the DHCP service information (e.g., including lease parameter information) to the DHCP management service module.
in this embodiment, the DHCP management service module mainly has the following two functions: monitoring a DVS uplink and intercepting a DHCP related message of a computing node; the method includes the steps that DHCP service information in a computing node, for example, information including a virtual machine name to be distributed, a Media Access Control (MAC) address of a network card, an Internet Protocol (IP) address, obtaining time, a DHCP lease and the like, is synchronized to a database of a management node, and an analysis result of the management node on the DHCP service information is obtained.
When determining that the DHCP service information of a certain computing node is available, step 208 is executed, and when determining that the DHCP service information of a certain computing node is not available, step 205 is returned to, that is, the DHCP management service module on the computing node may notify the DHCP service module on the computing node to regenerate the DHCP service information (e.g., lease information).
In the embodiment, a distributed virtual network technology is utilized, a DHCP service module and a DHCP management service module are started on each computing node, and the DHCP service module and the DHCP management service module of each computing node are only responsible for a virtual machine borne by the computing node where the computing node is located, so that the possibility of single-point failure is avoided, and the service states of other computing nodes cannot be influenced when the DHCP service on any computing node stops working or the computing node goes down; and the management node counts the DHCP service information of all the computing nodes, thereby facilitating the batch query and management of administrators, realizing the data synchronization of the DHCP service information among different computing nodes, avoiding the problems of IP conflict and the like, realizing the unified management and configuration of a plurality of computing nodes, and improving the high availability of the DHCP service and the convenience of user operation.
Fig. 3 is a flowchart of a method for implementing DHCP according to an embodiment of the present application. The method provided by the embodiment is applied to the management node of the virtualization platform. The virtualization platform may include a management node and a plurality of computing nodes.
As shown in fig. 3, the method for implementing DHCP provided by this embodiment includes the following steps:
In an exemplary embodiment, step 302 may include: virtual networks among the computing nodes are communicated by configuring a physical network card of the computing nodes as an uplink; creating a virtual network on a distributed virtual switch; a port for DHCP connection is established on a virtual network, and an IP address used by a DHCP service module is configured; and starting the DHCP service module and the DHCP management service module at the port.
In an exemplary embodiment, the method for implementing DHCP may further include: the management node receives and stores the DHCP service information of each computing node sent by the DHCP management service module on the computing node.
Illustratively, the DHCP service information may include a name of a virtual machine to be assigned, a network card MAC, an IP address, an acquisition time, a DHCP lease, and the like.
In an exemplary embodiment, the method for implementing DHCP may further include: and the management node analyzes whether the DHCP service information generated by the DHCP service module on each computing node to the virtual machine is available or not according to the DHCP service information of the computing nodes, and feeds back the analysis result to the DHCP management service module on the corresponding computing node.
For example, the management node analyzes according to the DHCP service information of the plurality of computing nodes and the acquisition time, gives an analysis result of whether the IP address allocated by the DHCP service module on the computing node is available, and then feeds back the analysis result to the DHCP management service module on the computing node.
According to the embodiment, a single point fault of the DHCP service can be avoided, the service states of other computing nodes cannot be influenced when the DHCP service on any computing node stops working or the computing node goes down, and the introduction of the distributed technology is convenient for an administrator to configure the operation in batch. Moreover, the DHCP service information of all the computing nodes is counted on the management node, so that the administrator can inquire and manage in batch.
Fig. 4 is a flowchart of another DHCP implementation method according to an embodiment of the present application. The method provided by the embodiment is applied to the computing node in the virtualization platform, wherein the computing node is started with a DHCP service module and a DHCP management service module based on a distributed virtual switch.
As shown in fig. 4, the method for implementing DHCP provided by this embodiment includes the following steps:
and 403, receiving an analysis result of the management node on the DHCP service information through the DHCP management service module.
In an exemplary embodiment, the method for implementing DHCP of this embodiment may further include: and determining whether to issue the DHCP service information to the virtual machine through the DHCP service module according to the analysis result by the DHCP management service module.
Exemplarily, when the analysis result indicates that the DHCP service information is available, the DHCP management service module notifies the DHCP service module to issue the DHCP service information to the virtual machine; and when the analysis result shows that the DHCP service information is unavailable, the DHCP management service module informs the DHCP service module to generate the DHCP service information for the virtual machine again.
In the embodiment, the distributed DHCP service is realized in the virtualization platform, single point fault of the DHCP service is avoided, the DHCP service on any computing node stops working or the computing node goes down without affecting the DHCP service state on other computing nodes, and the DHCP service is made into the distributed service by relying on DVS, so that batch operation of an administrator is facilitated.
The implementation details of the embodiments described with reference to fig. 3 and fig. 4 can refer to the related description of the execution flow shown in fig. 2, and therefore are not described herein again.
The embodiment of the present application further provides an apparatus for implementing DHCP, which is applied to a management node of a virtualization platform, and includes: a creation unit adapted to create a distributed virtual switch over a plurality of compute nodes; the starting unit is suitable for starting a DHCP service module and a DHCP management service module on each computing node based on the distributed virtual switch; the DHCP service module and the DHCP management service module are used for providing DHCP service for the virtual machine borne by the located computing node.
In an exemplary embodiment, the activation unit is adapted to perform the following: virtual networks among the computing nodes are communicated by configuring a physical network card of the computing nodes as an uplink; creating a virtual network on a distributed virtual switch; and a port for DHCP connection is established on the virtual network, a network protocol address used by the DHCP service module is configured, and the DHCP service module and the DHCP management service module are started at the port.
In an exemplary embodiment, the apparatus for implementing DHCP may further include: a receiving unit and a storage unit; the receiving unit is suitable for receiving the DHCP service information of each computing node sent by the DHCP management service module on the computing node; the storage unit is adapted to store DHCP service information for a plurality of computing nodes.
In an exemplary embodiment, the apparatus for implementing DHCP may further include: an analyzing unit and a transmitting unit; the analysis unit is suitable for analyzing whether the DHCP service information generated by the DHCP service module on each computing node to the virtual machine is available according to the DHCP service information of the computing nodes; the sending unit is suitable for feeding back the analysis result to the DHCP management service module on the corresponding computing node.
For the relevant description of the apparatus for implementing DHCP provided in this embodiment, reference may be made to the description of the embodiment corresponding to fig. 2 and fig. 3, and therefore, no further description is given here.
The embodiment of the present application further provides an apparatus for implementing DHCP, which is applied to a computing node in a virtual machine platform, and includes: the DHCP service module and the DHCP management service module; the DHCP service module is suitable for responding to a DHCP service request sent by a virtual machine and determining DHCP service information provided for the virtual machine according to the DHCP service request; the DHCP management service module is suitable for reporting the DHCP service information to a management node in the virtualization platform and receiving an analysis result of the management node on the DHCP service information.
For the relevant description of the apparatus for implementing DHCP provided in this embodiment, reference may be made to the description of the embodiment corresponding to fig. 2 and fig. 4, and therefore, no further description is given here.
Fig. 5 is a schematic diagram of a management node according to an embodiment of the present application. As shown in fig. 5, an embodiment of the present application provides a management node 500, including: a first memory 501 and a first processor 502, where the first memory 501 is adapted to store a DHCP implementation program, and when the implementation program is executed by the first processor 502, the implementation program implements the steps of the DHCP implementation method provided by the foregoing embodiments, such as the steps shown in fig. 2 or fig. 3. It will be understood by those skilled in the art that the structure shown in fig. 5 is only a schematic diagram of a part of the structure related to the present application, and does not constitute a limitation to the management node 500 to which the present application is applied, and that the management node 500 may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
The first processor 502 may include, but is not limited to, a processing device such as a Micro Controller Unit (MCU) or a Programmable logic device (FPGA). The first memory 501 may be used to store software programs and modules of application software, such as program instructions or modules corresponding to the implementation method of DHCP in this embodiment, and the first processor 502 executes various functional applications and data processing by running the software programs and modules stored in the first memory 501, for example, to implement the implementation method of DHCP provided in this embodiment. The first memory 501 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the first memory 501 may include memory located remotely from the first processor 502, which may be connected to the management node 500 over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Fig. 6 is a schematic diagram of a computing node according to an embodiment of the present application. As shown in fig. 6, an embodiment of the present application provides a computing node 600, including: a second memory 601 and a second processor 602, where the second memory 601 is adapted to store an implementation program of DHCP, and when the implementation program is executed by the second processor 602, the implementation program implements the steps of the implementation method of DHCP provided by the foregoing embodiments, such as the steps shown in fig. 2 or fig. 4. It will be understood by those skilled in the art that the structure shown in fig. 6 is merely a schematic illustration of a portion of the structure associated with the present solution and does not constitute a limitation of the computing node 600 to which the present solution is applied, and that the computing node 600 may include more or less components than shown in the figure, or combine certain components, or have a different arrangement of components.
The second processor 602 may include, but is not limited to, a processing device such as a Microprocessor (MCU) or a Programmable logic device (FPGA). The second memory 601 may be used to store software programs and modules of application software, such as program instructions or modules corresponding to the implementation method of DHCP in this embodiment, and the second processor 602 executes various functional applications and data processing by running the software programs and modules stored in the second memory 601, for example, to implement the implementation method of DHCP provided in this embodiment. The second memory 601 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the second memory 601 may include memory located remotely from the second processor 602, which may be connected to the computing node 600 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
In addition, an embodiment of the present application further provides a computer-readable medium, which stores a DHCP implementation program, and when the implementation program is executed by a processor, the computer-readable medium implements the steps of the DHCP implementation method provided in the foregoing embodiment, for example, the steps shown in fig. 2, fig. 3, or fig. 4.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The foregoing shows and describes the general principles and features of the present application, together with the advantages thereof. The present application is not limited to the above-described embodiments, which are described in the specification and drawings only to illustrate the principles of the application, but also to provide various changes and modifications within the spirit and scope of the application, which are within the scope of the claimed application.
Claims (9)
1. A method for implementing dynamic host configuration protocol DHCP is characterized by comprising the following steps:
a management node of a virtualization platform creates a distributed virtual switch on a plurality of computing nodes;
starting a DHCP service module and a DHCP management service module on each computing node based on the distributed virtual switch; the DHCP service module and the DHCP management service module are used for providing DHCP service for a virtual machine borne by the computing node;
the method further comprises the following steps: the management node analyzes whether the DHCP service information generated by the DHCP service module on each computing node to the virtual machine is available or not according to the DHCP service information of the computing nodes, and feeds back the analysis result to the DHCP management service module on the corresponding computing node;
the DHCP service information comprises a static network protocol IP address, acquisition time and a DHCP lease;
the analyzing whether the DHCP service information generated by the DHCP service module on each computing node to the virtual machine is available comprises:
and analyzing whether the corresponding IP address is available according to the acquisition time.
2. The method of claim 1, wherein initiating a DHCP service module and a DHCP management service module on each computing node based on the distributed virtual switch comprises:
the physical network card of the computing nodes is configured to be an uplink, so that virtual networks among the computing nodes are communicated;
creating a virtual network on the distributed virtual switch;
and creating a port for DHCP connection on the virtual network, configuring a network protocol address used by a DHCP service module, and starting the DHCP service module and the DHCP management service module at the port.
3. The method of claim 1, further comprising:
and the management node receives and stores DHCP service information of the computing nodes, which is sent by the DHCP management service module on each computing node.
4. A method for implementing Dynamic Host Configuration Protocol (DHCP) is characterized in that the method is applied to a computing node in a virtualization platform, wherein a DHCP service module and a DHCP management service module are started on the computing node based on a distributed virtual switch, and the method comprises the following steps:
the computing node responds to a DHCP service request sent by the virtual machine through the DHCP service module;
determining DHCP service information provided for the virtual machine through the DHCP service module according to the DHCP service request, reporting the DHCP service information to a management node in a virtualization platform through the DHCP management service module, so that the management node analyzes whether the DHCP service information generated by the DHCP service module on each computing node for the virtual machine is available according to the DHCP service information of a plurality of computing nodes, and feeding back an analysis result to the DHCP management service module on the corresponding computing node;
receiving an analysis result of the management node on the DHCP service information through the DHCP management service module;
the DHCP service information comprises a static network protocol IP address, acquisition time and a DHCP lease;
the analyzing whether the DHCP service information generated by the DHCP service module on each computing node to the virtual machine is available comprises:
and analyzing whether the corresponding IP address is available according to the acquisition time.
5. The method of claim 4, further comprising:
and determining whether to issue the DHCP service information to the virtual machine through the DHCP service module according to the analysis result by the DHCP management service module.
6. The method of claim 5, wherein the determining, by the DHCP management service module according to the analysis result, whether to issue the DHCP service information to the virtual machine through the DHCP service module comprises:
when the analysis result shows that the DHCP service information is available, the DHCP management service module informs the DHCP service module to send the DHCP service information to the virtual machine;
and when the analysis result shows that the DHCP service information is unavailable, the DHCP management service module informs the DHCP service module to generate the DHCP service information for the virtual machine again.
7. A system for implementing Dynamic Host Configuration Protocol (DHCP), comprising:
a management node and a plurality of computing nodes of a virtualization platform; the management node is respectively connected with the plurality of computing nodes;
the management node is adapted to create a distributed virtual switch on the plurality of computing nodes and to start a DHCP service module and a DHCP management service module on each computing node based on the distributed virtual switch; the DHCP service module and the DHCP management service module are used for providing DHCP service for a virtual machine borne by the computing node;
the management node is also used for analyzing whether the DHCP service information generated by the DHCP service module on each computing node to the virtual machine is available or not according to the DHCP service information of the computing nodes, and feeding back the analysis result to the DHCP management service module on the corresponding computing node;
the DHCP service information comprises a static network protocol IP address, acquisition time and a DHCP lease;
the analyzing whether the DHCP service information generated by the DHCP service module on each computing node to the virtual machine is available comprises:
and analyzing whether the corresponding IP address is available according to the acquisition time.
8. The system according to claim 7, wherein any of said computing nodes is adapted to respond to a DHCP service request issued by a virtual machine through said DHCP service module; determining DHCP service information provided for the virtual machine through the DHCP service module according to the DHCP service request, and reporting the DHCP service information to the management node through the DHCP management service module; and receiving the analysis result of the management node on the DHCP service information through the DHCP management service module.
9. A computer-readable medium, in which an implementation program of a dynamic host configuration protocol is stored, which, when executed by a processor, implements the steps of the implementation method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811136020.6A CN108833613B (en) | 2018-09-28 | 2018-09-28 | Method and system for implementing dynamic host configuration protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811136020.6A CN108833613B (en) | 2018-09-28 | 2018-09-28 | Method and system for implementing dynamic host configuration protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108833613A CN108833613A (en) | 2018-11-16 |
CN108833613B true CN108833613B (en) | 2021-11-26 |
Family
ID=64149909
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811136020.6A Active CN108833613B (en) | 2018-09-28 | 2018-09-28 | Method and system for implementing dynamic host configuration protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108833613B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110768907A (en) * | 2019-09-12 | 2020-02-07 | 苏州浪潮智能科技有限公司 | Method, device and medium for managing FPGA heterogeneous accelerator card cluster |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104506654A (en) * | 2015-01-08 | 2015-04-08 | 中国联合网络通信集团有限公司 | Cloud computing system and backup method of dynamic host configuration protocol server |
CN105657081A (en) * | 2016-04-07 | 2016-06-08 | 华为技术有限公司 | DHCP (dynamic host configuration protocol) service providing method, device and system |
CN106936943A (en) * | 2017-03-21 | 2017-07-07 | 深信服科技股份有限公司 | The distribution method and system of virtual machine address |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11349806B2 (en) * | 2013-12-19 | 2022-05-31 | Vmware, Inc. | Methods, apparatuses and systems for assigning IP addresses in a virtualized environment |
US9742726B2 (en) * | 2015-02-26 | 2017-08-22 | Red Hat Israel, Ltd. | Distributed dynamic host configuration protocol |
-
2018
- 2018-09-28 CN CN201811136020.6A patent/CN108833613B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104506654A (en) * | 2015-01-08 | 2015-04-08 | 中国联合网络通信集团有限公司 | Cloud computing system and backup method of dynamic host configuration protocol server |
CN105657081A (en) * | 2016-04-07 | 2016-06-08 | 华为技术有限公司 | DHCP (dynamic host configuration protocol) service providing method, device and system |
CN106936943A (en) * | 2017-03-21 | 2017-07-07 | 深信服科技股份有限公司 | The distribution method and system of virtual machine address |
Also Published As
Publication number | Publication date |
---|---|
CN108833613A (en) | 2018-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11307943B2 (en) | Disaster recovery deployment method, apparatus, and system | |
CN110113441B (en) | Computer equipment, system and method for realizing load balance | |
US8774054B2 (en) | Network policy configuration method, management device, and network management center device | |
US10812597B2 (en) | Content delivery network (CDN) management system, method, and apparatus | |
US10089123B2 (en) | Virtual cable modem termination system redundancy in a cable modem network environment | |
US9999030B2 (en) | Resource provisioning method | |
WO2017181876A1 (en) | Device state and resource information monitoring method, related device, and system | |
US11265210B2 (en) | Network slice configuration method, apparatus, and system | |
EP3300298B1 (en) | Method and apparatus for switching vnf | |
US10594586B2 (en) | Dialing test method, dialing test system, and computing node | |
US9231826B2 (en) | Zero configuration of a virtual distributed device | |
CN104348873A (en) | Virtual network element automatic loading method and system and virtual machine IP (Internet Protocol) address acquisition method and system | |
US9088477B2 (en) | Distributed fabric management protocol | |
CN105024855A (en) | Distributed cluster management system and method | |
CN106878480B (en) | DHCP service process sharing method and device | |
US10536431B2 (en) | On-node DHCP implementation for virtual machines | |
CN111404628B (en) | Time synchronization method and device | |
CN108833613B (en) | Method and system for implementing dynamic host configuration protocol | |
CN107733727B (en) | Zero configuration method, device and equipment | |
US20230171223A1 (en) | Communication Method, CP Device, and NAT Device | |
CN112019614A (en) | Method, system and processor for communication and communication synchronization between two systems | |
JP2022553708A (en) | Virtualization method and device | |
WO2021254466A1 (en) | Method, apparatus and system for configuring edge side device | |
CN110110004B (en) | Data operation method, device and storage medium | |
WO2016177187A1 (en) | Service processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |