CN106375486B - A kind of system of cloud platform software definition DHCP service - Google Patents

A kind of system of cloud platform software definition DHCP service Download PDF

Info

Publication number
CN106375486B
CN106375486B CN201611041029.XA CN201611041029A CN106375486B CN 106375486 B CN106375486 B CN 106375486B CN 201611041029 A CN201611041029 A CN 201611041029A CN 106375486 B CN106375486 B CN 106375486B
Authority
CN
China
Prior art keywords
dhcp
service
agent
server group
message
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
Application number
CN201611041029.XA
Other languages
Chinese (zh)
Other versions
CN106375486A (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.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201611041029.XA priority Critical patent/CN106375486B/en
Publication of CN106375486A publication Critical patent/CN106375486A/en
Application granted granted Critical
Publication of CN106375486B publication Critical patent/CN106375486B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

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

Abstract

The present invention relates to field of cloud computer technology, especially a kind of system of cloud platform software definition DHCP service.The system comprises controller, DHCP Agent, DHCP Server Group, tetra- part DHCP Qos Agent compositions.Controller is responsible for offer REST API service and is called to upper layer, sends DHCP Server Group and network subnet message gives DHCP Agent, send virtual machine port and bandwidth messages give DHCP Qos Agent;DHCP Agent creates DHCP Server Group, and DHCP Server configuration file is arranged, and starts DHCP Server service processes;DHCP Qos Agent establishes the bandwidth queue of dhcp message communication service guarantee to the port of virtual machine.The elasticity capacity and reliability of cloud computing DHCP service can be improved in the present invention, while ensureing the bandwidth requirement of DHCP data.

Description

A kind of system of cloud platform software definition DHCP service
Technical field
The present invention relates to field of cloud computer technology, especially a kind of system of cloud platform software definition DHCP service.
Background technique
DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) is a local The network protocol of net, is worked using udp protocol;Main there are two purposes: dividing automatically to internal network or Internet service provider With IP address, to user or internal network administrator as the means that all computers are made with central management.
As cloud computing development is more and more common, cloud service supplier is more and more, and user is also more and more.Data center It is required that software defines the network of data center, service including DHCP service, virtual flow-line, firewall etc..And it is traditional DHCP service does not account for the problem of DHCP data quality, DHCP service Single Point of Faliure, is inconvenient to the problems such as managing DHCP service.
Summary of the invention
Present invention solves the technical problem that being to propose a kind of system of cloud platform software definition DHCP service;It can be fast The quantity of fast resilient expansion DHCP Agent and DHCP Agent Group group, improve cloud computing DHCP service elasticity capacity and Reliability, while ensureing the bandwidth requirement of DHCP data.
The technical solution that the present invention solves above-mentioned technical problem is:
It is described include controller, DHCP Agent (DHCP proxy), DHCP Server Group (DHCP service group), DHCP Qos Agent (DHCP bandwidth control agent);
The controller: providing Reset API and carry out software definition DHCP service, including creation DHCP Server Group API, the network interface card of associated virtual machine and DHCP Server Group API, the DHCP for defining virtual machine network interface card Message communicating bandwidth API;Remote configuration DHCP Agent service is provided;Remote configuration DHCP Qos Agent service is provided;Prison Control the state of Agent;
The DHCP Agent: receiving and parses the Remote configuration message of controller, establishes DHCP Server Group;Operating result will be configured, controller is fed back to;Heartbeat message is sent to controller, is convenient for controller monitoring DHCP The state of Agent;
The DHCP Server Group: the DHCP Server of the same local area network can be divided into one or more DHCP Server Group guarantees the service ability of each DHCP Server Group;Include in DHCP Server Group Unique overall identification DHCP Server Group id, the network naming for establishing DHCP Server Group id title are empty Between, DHCP configuration file, which is loaded, in NameSpace starts DHCP service process;DHCP is embodied inside DHCP Agent Server Group;The same DHCP Server Group group lower DHCP Server provide identical DHCP service;It is different The DHCP service that DHCP Server Group is provided does not influence mutually;
The DHCP Qos Agent: receiving and parse the message of controller, obtains network interface card according to message middle port id The virtual interface at place;Message queue, the amount of bandwidth that setting dhcp message communicates, it is ensured that DHCP disappears are established on virtual interface The quality of message communication.
Two or more DHCP Server are grouped DHCP by the Remote configuration DHCP Agent service support Server Group supports more than one DHCP Agent to send identical message, guarantees the reliability of DHCP service;
The record of Remote configuration operation task is established, convenient for tracking operating result;
The message content includes port information, the son to be bound of DHCP Server Group id, DHCP Sever The network information (address mac, the address ip, Hostname) of net information and associated virtual machine;Port information includes interface name Claim, IP address, subnet information includes subnet network segment, gateway address, the address network information mac, the address ip, Hostname.
The Remote configuration DHCP Qos Agent service includes:
(1) customized DHCP Qos Agent Reset API service is provided, defined in content include DHCP The amount of bandwidth relationship of the ID of Server Group, the size information of bandwidth or global default;
(2) by transmitting the message to affiliated net for above relationship and the virtual machine port information bound combination On DHCP Qos Agent where the virtual machine of card;
(3) record of Remote configuration operation task is established, convenient for tracking operating result.
The present invention program's has the beneficial effect that:
1, the system of software definition DHCP service is provided, Rest API is externally provided, it is convenient convenient for open and integrated service Management.
2, the elasticity capacity and reliability of cloud computing DHCP service are improved, while ensureing the bandwidth requirement of DHCP data.
Detailed description of the invention
The following further describes the present invention with reference to the drawings:
Fig. 1 is module map of the invention.
Specific embodiment
As shown in Figure 1, system structure of the invention is as follows:
(1) controller operates, and the Rest API of creation operation described in detail below is described to be illustrated with message communicating:
A) the Rest API of DHCP Server Group group is established to the local area network of user
POST operation:
Required parameter: network subnet information
Feedback: DHCP Server Group id
Specific implementation distribution DHCP Server Group, is associated with 2 or more for DHCP Sever Group id In DHCP Agent, and information is persisted in database, and by network subnet message and DHCP Server Group information It is sent in DHCP Agent, and records operation log.
Wherein network subnet message includes subnet mask, gateway, name server etc.
DHCP Server Group information includes the IP address of DHCP process needs, Group id, needs to be tied to DHCP IP, mac address information on Server etc..
B) network information of associated virtual machine is provided to the Rest API in DHCP Server Group
Post operation:
Required parameter: the network information of virtual machine, DHCP Server Group id
Specific implementation description:
Will virtual machine network message and DHCP Server Group id relation perdurability into database, obtain The associated DHCP Agent of DHCP Server Group id, network subnet message and DHCP Server Group information are sent Into DHCP Agent, and record operation log.
C) the DHCP Qos Rest API of the port of associated virtual machine is provided
Post operation: creation DHCP Qos information
Required parameter: DHCP Sever Group id, DHCP Qos amount of bandwidth
It specifically describes: Group id being associated with Qos size and persistence, acquisition and DHCP Server Group id are closed DHCP Qos Agent where the virtual machine port of connection, is sent to DHCP for DHCP qos amount of bandwidth and port information On Qos Agent, and record operation log.
(2) DHCP Qos Agent is serviced
Actual DHCP Server Group is established according to DHCP Server Group id:
It supports to execute in the system of NameSpace at linux:
ip netns add$dhcp_group_id
The virtual interface $ dhcp_server_ of DHCP Server binding is established on $ dhcp_group_id NameSpace interface
Dhcp.conf configuration file is established at/var/lib/dhcp/ $ dhcp_group_id, configuration file content is such as Under:
Fa:16:3e:c1:60:57, host-10-0-16-1.gcloudlocal, 10.0.16.1
Others.config file is established at/var/lib/dhcp/ dhcp_group_id, describes domain name and gateway Information configuration file is as follows:
Tag:tag0, option:dns-server, 202.96.128.86,8.8.8.8
Tag:tag0, option:router, 10.0.16.
Start DHCP Server process on $ dhcp_group_id NameSpace, as follows:
ip netns exec$dhcp_group_id dnsmasq--no-hosts--no-resolv--strict- Order--bind-interfaces--interface=$ dhcp_serverinterface--except-interface= Lo--pid-file=/var/lib/dhcp/ $ dhcp_group_id/pid--dhcp-hostsfile=/var/lib// Dhcp/ $ dhcp_group_id/dhcp.conf--dhcp-optsfile=/var/lib//dhcp/ $ dhcp_group_id/ Others.config--leasefile-ro--dhcp-range=set:tag0, $ subnet static, infinite-- Dhcp-lease-max=256--conf-file=/etc/neutron/dnsmasq-neutr on.conf--domain= gcloudlocal
Wherein $ subnet is subnet network segment, such as 10.0.0.0.
(3)DHCP Qos Agent
The DHCP Qos message of controller is obtained, message is described below:
{ vm_port_id:$ vm_port_id, dhcp_qos:$ dhcp_qos_value, other_qos:$ other_ qos_value}
According to message above, two message queues are established on the network port of virtual machine, wherein first message queue Bandwidth be $ dhcp_qos_value, the bandwidth of second message queue is $ other_qos_value, and specific implementation can pass through The tc tool of linux realizes that, by the Packet Filtering of 67 or 68 ports to first message queue, other message packets are filled into Second message queue.
Above disclosed is only the one of embodiment of the present invention, cannot limit the power of the present invention with this certainly Sharp range, therefore equivalent changes made in accordance with the claims of the present invention, are still within the scope of the present invention.

Claims (3)

1. a kind of system of cloud platform software definition DHCP service, which is characterized in that the system includes controller, DHCP Agent,DHCP Server Group,DHCP Qos Agent;
The controller: providing Reset API and carry out software definition DHCP service, including creation DHCP Server Group API, the network interface card of associated virtual machine and DHCP Server Group API, the dhcp message for defining virtual machine network interface card are logical Believe bandwidth API;Remote configuration DHCP Agent service is provided;Remote configuration DHCP Qos Agent service is provided;Monitor DHCP The state of Agent;
The DHCP Agent: receiving and parses the Remote configuration message of controller, establishes DHCP Server Group;It will Operating result is configured, controller is fed back to;Heartbeat message is sent to controller, convenient for the state of controller monitoring DHCPAgent;
The DHCP Server Group: the DHCP Server of the same local area network can be divided into one or more DHCP Server Group guarantees the service ability of each DHCP Server Group;Comprising unique in DHCP Server Group Overall identification DHCP Server Group id, establish the network namespace of DHCP Server Group id title, DHCP configuration file is loaded in NameSpace starts DHCP service process;DHCP is embodied inside DHCP Agent Server Group;The same DHCP Server Group group lower DHCP Server provide identical DHCP service;It is different The DHCP service that DHCP Server Group is provided does not influence mutually;
The DHCP Qos Agent: receiving and parse the message of controller, obtains network interface card place according to message middle port id Virtual interface;Message queue, the amount of bandwidth that setting dhcp message communicates, it is ensured that dhcp message is logical are established on virtual interface The quality of letter.
2. system according to claim 1, which is characterized in that the Remote configuration DHCP Agent service support is by two A or more DHCP Server is grouped DHCP Server Group, and more than one DHCP Agent is supported to send phase Same message, guarantees the reliability of DHCP service;
The record of Remote configuration operation task is established, convenient for tracking operating result;
The dhcp message content includes port information, the son to be bound of DHCP Server Group id, DHCP Sever The network information of net information and associated virtual machine;Port information includes interface name, IP address, and subnet information includes son Net network segment, gateway address, the network information include the address mac, the address ip, Hostname.
3. system according to claim 1 or 2, which is characterized in that the Remote configuration DHCP Qos Agent service Include:
(1) customized DHCP Qos Agent Reset API service is provided, defined in content include DHCP Server The amount of bandwidth relationship of the ID of Group, the size information of bandwidth or global default;
(2) by transmitting the message to affiliated network interface card for above relationship and the virtual machine port information bound combination On DHCP Qos Agent where virtual machine;
(3) record of Remote configuration operation task is established, convenient for tracking operating result.
CN201611041029.XA 2016-11-24 2016-11-24 A kind of system of cloud platform software definition DHCP service Active CN106375486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611041029.XA CN106375486B (en) 2016-11-24 2016-11-24 A kind of system of cloud platform software definition DHCP service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611041029.XA CN106375486B (en) 2016-11-24 2016-11-24 A kind of system of cloud platform software definition DHCP service

Publications (2)

Publication Number Publication Date
CN106375486A CN106375486A (en) 2017-02-01
CN106375486B true CN106375486B (en) 2019-05-21

Family

ID=57892136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611041029.XA Active CN106375486B (en) 2016-11-24 2016-11-24 A kind of system of cloud platform software definition DHCP service

Country Status (1)

Country Link
CN (1) CN106375486B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108933844B (en) * 2017-05-27 2020-08-25 华为技术有限公司 Method and equipment for providing DHCP service
CN109842644B (en) * 2017-11-27 2021-11-19 中国电信股份有限公司 Parameter expansion method and system, cloud computing management platform assembly and user terminal
CN111614790B (en) * 2019-02-26 2022-08-05 杭州海康威视系统技术有限公司 Virtual machine address configuration system, method and device
CN112243036B (en) * 2020-10-21 2022-03-15 北京首都在线科技股份有限公司 Data processing method and device for PaaS service, equipment and storage medium
CN112583947B (en) * 2020-11-16 2022-02-22 新华三大数据技术有限公司 DHCP processing method, device, equipment and machine readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248724A (en) * 2013-04-19 2013-08-14 中国(南京)未来网络产业创新中心 SDN (Software-Defined Networking) controller-based DHCP (Dynamic Host Configuration Protocol) broadcast processing method
CN103401954A (en) * 2013-08-02 2013-11-20 汉柏科技有限公司 Implementation method of virtual DHCP (dynamic host configuration protocol)
CN104283983A (en) * 2014-10-27 2015-01-14 杭州华三通信技术有限公司 Method and device for allocating IP addresses to virtual machines in software defined network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69935138T2 (en) * 1999-08-20 2007-11-22 International Business Machines Corp. System and method for optimizing the performance and availability of a DHCP service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248724A (en) * 2013-04-19 2013-08-14 中国(南京)未来网络产业创新中心 SDN (Software-Defined Networking) controller-based DHCP (Dynamic Host Configuration Protocol) broadcast processing method
CN103401954A (en) * 2013-08-02 2013-11-20 汉柏科技有限公司 Implementation method of virtual DHCP (dynamic host configuration protocol)
CN104283983A (en) * 2014-10-27 2015-01-14 杭州华三通信技术有限公司 Method and device for allocating IP addresses to virtual machines in software defined network

Also Published As

Publication number Publication date
CN106375486A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN106375486B (en) A kind of system of cloud platform software definition DHCP service
CN115380514B (en) Automatic deployment of network elements for heterogeneous computing elements
US10791168B1 (en) Traffic aware network workload management system
EP3361675B1 (en) Distributed load balancing system, health check method and service node
CN110113441B (en) Computer equipment, system and method for realizing load balance
RU2643451C2 (en) System and method for virtualisation of mobile network function
US9887959B2 (en) Methods and system for allocating an IP address for an instance in a network function virtualization (NFV) system
EP2823393B1 (en) Offline provisioning of virtual machines
EP3782333A1 (en) Cross-regional virtual network peering
EP1303096B1 (en) Virtual network with adaptive dispatcher
US8316125B2 (en) Methods and systems for automated migration of cloud processes to external clouds
EP3905598B1 (en) Message processing method and apparatus, control plane device, and computer storage medium
EP3367612B1 (en) Dial testing method, dial testing system, and computing node
CN112910685B (en) Method and device for realizing unified management of container network
CN109246201B (en) Cloud resource delivery method, processor and storage medium
US20160330288A1 (en) Cross-Domain Brokering Protocol Cloud Proxy
US11108673B2 (en) Extensible, decentralized health checking of cloud service components and capabilities
CN104158675B (en) Calculate node dispositions method, processing node, controller and system
WO2015007331A1 (en) Network element and method of running applications in a cloud computing system
CN105071965B (en) A kind of management system of the network equipment
US7735095B2 (en) Network device drivers using a communication transport
US20240039923A1 (en) Method and apparatus for deploying network device, device, system, and storage medium
WO2022042393A1 (en) Configuration error information transmission method and device
Nguyen et al. Location-aware dynamic network provisioning
CN106095509B (en) Differential variable dissemination method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523808 19th Floor, Cloud Computing Center, Chinese Academy of Sciences, No. 1 Kehui Road, Songshan Lake Hi-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant after: G-Cloud Technology Co., Ltd.

Address before: 523808 No. 14 Building, Songke Garden, Songshan Lake Science and Technology Industrial Park, Dongguan City, Guangdong Province

Applicant before: G-Cloud Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant