[go: up one dir, main page]

CN106790701A - It is a kind of to orient the method and device that Dynamic Host Configuration Protocol server is specified in request - Google Patents

It is a kind of to orient the method and device that Dynamic Host Configuration Protocol server is specified in request Download PDF

Info

Publication number
CN106790701A
CN106790701A CN201710100397.5A CN201710100397A CN106790701A CN 106790701 A CN106790701 A CN 106790701A CN 201710100397 A CN201710100397 A CN 201710100397A CN 106790701 A CN106790701 A CN 106790701A
Authority
CN
China
Prior art keywords
information
node
server
configuration protocol
host configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710100397.5A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710100397.5A priority Critical patent/CN106790701A/en
Publication of CN106790701A publication Critical patent/CN106790701A/en
Pending legal-status Critical Current

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/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • 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/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明公开了一种定向请求指定DHCP服务器的方法及装置,其中该方法包括:接收目标节点发送的请求报文信息,并获取所述请求报文信息中包含的目标节点信息;基于预先存储的各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系确定出与所述目标节点信息对应的目标服务器信息;将所述请求报文信息转发至与所述目标服务器信息对应的目标DHCP服务器,以指示该DHCP服务器选取一未被使用的IP地址反馈给所述目标节点。从而实现了节点定向获取指定DPCH服务器提供的IP地址,进而避免了由于节点获取的IP地址对应DHCP服务器承担的业务与节点需完成的业务不同导致节点无法正常完成其所需完成业务的情况发生。

The invention discloses a method and device for directional requesting a designated DHCP server, wherein the method includes: receiving request message information sent by a target node, and acquiring target node information contained in the request message information; The mapping relationship between the node information of each node and the server information of the corresponding DHCP server determines the target server information corresponding to the target node information; forwards the request message information to the target DHCP server corresponding to the target server information, to instruct the DHCP server to select an unused IP address and feed it back to the target node. In this way, the node can obtain the IP address provided by the designated DPCH server in a directional manner, thereby avoiding the situation that the node cannot normally complete the required business because the IP address obtained by the node corresponds to the business undertaken by the DHCP server and the business that the node needs to complete is different.

Description

一种定向请求指定DHCP服务器的方法及装置Method and device for directing request to designate DHCP server

技术领域technical field

本发明涉及数据中心网络技术领域,更具体地说,涉及一种定向请求指定DHCP服务器的方法及装置。The present invention relates to the technical field of data center network, and more specifically, relates to a method and a device for directing a request to specify a DHCP server.

背景技术Background technique

近些年,随着计算机技术的飞速发展,云计算技术和大数据技术在人们的生活和工作中应用越来越广泛,网络规模也越来越大,网络复杂度也随之增加。特别是在互联网时代数据量在呈几何级增长的背景下,各类数据中心的建设正如火如荼的进行,由于每个数据中心都有大量的机器集群,所以数据中心对网络的配置要求也越来越高。In recent years, with the rapid development of computer technology, cloud computing technology and big data technology are more and more widely used in people's life and work, and the network scale is also increasing, and the network complexity is also increasing. Especially in the context of the geometric growth of data volume in the Internet era, the construction of various data centers is in full swing. Since each data center has a large number of machine clusters, the data center has more and more requirements for network configuration. higher.

在实际应用网络环境中,首先面临的一个问题就是集群服务器的节点数量比较多,会出现可分配IP地址的数量少于节点的数量,为了解决这个问题,网络环境中就会出现多个DHCP服务器,为数量庞大的集群节点分配IP地址。若网络环境中出现多个DHCP服务器,则节点会随意获取其中一台DHCP服务器提供的IP地址。由于不同的DHCP服务器承担着不同的业务,比如A网段的IP地址用于操作系统部署业务;B网段的IP地址用于操作系统备份恢复业务;若准备进行操作系统部署的节点获取了B网段的IP地址,则可能造成操作系统的部署失败。也即,由于不同的DHCP服务器承担着不同的业务,而节点随意获取其中一台DHCP服务器提供的IP地址可能存在由于获取到的IP地址对应DHCP服务器承担的业务与节点所需完成的业务不同,进而导致节点无法正常实现其所需完成业务的情况。In the actual application network environment, the first problem is that the number of nodes in the cluster server is relatively large, and the number of IP addresses that can be allocated is less than the number of nodes. In order to solve this problem, multiple DHCP servers will appear in the network environment , to assign IP addresses to a large number of cluster nodes. If there are multiple DHCP servers in the network environment, the node will randomly obtain the IP address provided by one of the DHCP servers. Different DHCP servers undertake different services. For example, the IP address of network segment A is used for operating system deployment services; the IP address of network segment B is used for operating system backup and recovery services; If the IP address of the network segment is not specified, the deployment of the operating system may fail. That is, since different DHCP servers undertake different services, and a node randomly obtains the IP address provided by one of the DHCP servers, there may be differences between the obtained IP address corresponding to the services undertaken by the DHCP server and the services required by the node. In turn, it leads to the situation that the node cannot normally realize the business it needs to complete.

综上所述,现有技术存在可能出现由于获取的IP地址对应DHCP服务器承担的业务与节点需完成的业务不同导致节点无法正常完成其所需完成业务的情况的问题。To sum up, there may be a problem in the prior art that the node cannot normally complete the required service due to the fact that the obtained IP address corresponds to the service undertaken by the DHCP server and the service to be completed by the node is different.

发明内容Contents of the invention

本发明的目的是提供一种定向请求指定DHCP服务器的方法及装置,以解决现有技术中存在的可能出现由于获取的IP地址对应DHCP服务器承担的业务与节点需完成的业务不同导致节点无法正常完成其所需完成业务的情况的问题。The purpose of the present invention is to provide a method and device for directional request to designate a DHCP server to solve the problem in the prior art that the node cannot work normally due to the difference between the business undertaken by the obtained IP address corresponding to the DHCP server and the business that the node needs to complete. A problem with the circumstances of the business it needs to accomplish.

为了实现上述目的,本发明提供如下技术方案:In order to achieve the above object, the present invention provides the following technical solutions:

一种定向请求指定DHCP服务器的方法,包括:A method for directing a request to specify a DHCP server, comprising:

接收目标节点发送的请求报文信息,并获取所述请求报文信息中包含的目标节点信息;receiving the request message information sent by the target node, and obtaining the target node information contained in the request message information;

基于预先存储的各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系确定出与所述目标节点信息对应的目标服务器信息;Determining the target server information corresponding to the target node information based on the pre-stored mapping relationship between the node information of each node and the server information of the corresponding DHCP server;

将所述请求报文信息转发至与所述目标服务器信息对应的目标DHCP服务器,以指示该DHCP服务器选取一未被使用的IP地址反馈给所述目标节点。Forwarding the request message information to the target DHCP server corresponding to the target server information, so as to instruct the DHCP server to select an unused IP address and feed it back to the target node.

优选的,还包括:Preferably, it also includes:

如果由预先存储的各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系中未发现与所述目标节点信息对应的目标服务器信息,则将所述请求报文信息转发至预先设定的默认DHCP服务器,以指示该DHCP服务器选取一未被使用的IP地址反馈给所述目标节点。If the target server information corresponding to the target node information is not found in the mapping relationship between the pre-stored node information of each node and the server information of the corresponding DHCP server, the request message information is forwarded to the preset default The DHCP server is used to instruct the DHCP server to select an unused IP address and feed it back to the target node.

优选的,将所述请求报文信息转发至预先设定的默认DHCP服务器,包括:Preferably, the request message information is forwarded to a preset default DHCP server, including:

将所述请求报文信息以广播的形式发出,以指示预先设定的默认DHCP服务器获取该请求报文信息。Sending the request message information in a broadcast form to instruct a preset default DHCP server to obtain the request message information.

优选的,预先存储的各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系,包括:Preferably, the mapping relationship between the pre-stored node information of each node and the server information of the corresponding DHCP server includes:

获取各个节点的Mac信息作为对应节点的节点信息,并获取各个DHCP服务器的ID信息作为对应DHCP服务器的服务器信息;Obtain the Mac information of each node as the node information of the corresponding node, and obtain the ID information of each DHCP server as the server information of the corresponding DHCP server;

将各个节点的Mac信息与该节点对应的DHCP服务器的ID信息的映射关系存储至映射关系表中以供查询。The mapping relationship between the Mac information of each node and the ID information of the DHCP server corresponding to the node is stored in the mapping relationship table for query.

优选的,将所述请求报文信息转发至与所述目标服务器信息对应的目标DHCP服务器之后,还包括:Preferably, after forwarding the request message information to the target DHCP server corresponding to the target server information, it also includes:

接收所述目标节点返回的反馈信息,所述反馈信息为所述目标节点接收到所述目标DHCP服务器发送的IP地址后发出的。and receiving feedback information returned by the target node, where the feedback information is sent by the target node after receiving the IP address sent by the target DHCP server.

一种定向请求指定DHCP服务器的装置,包括:A device for directing a request to specify a DHCP server, comprising:

第一接收模块,用于:接收目标节点发送的请求报文信息,并获取所述请求报文信息中包含的目标节点信息;The first receiving module is configured to: receive the request message information sent by the target node, and obtain the target node information contained in the request message information;

确定模块,用于:基于预先存储的各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系确定出与所述目标节点信息对应的目标服务器信息;A determining module, configured to: determine the target server information corresponding to the target node information based on the pre-stored mapping relationship between the node information of each node and the server information of the corresponding DHCP server;

第一转发模块,用于:将所述请求报文信息转发至与所述目标服务器信息对应的目标DHCP服务器,以指示该DHCP服务器选取一未被使用的IP地址反馈给所述目标节点。The first forwarding module is configured to: forward the request message information to a target DHCP server corresponding to the target server information, so as to instruct the DHCP server to select an unused IP address to feed back to the target node.

优选的,还包括:Preferably, it also includes:

第二转发模块,用于:如果由预先存储的各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系中未发现与所述目标节点信息对应的目标服务器信息,则将所述请求报文信息转发至预先设定的默认DHCP服务器,以指示该DHCP服务器选取一未被使用的IP地址反馈给所述目标节点。The second forwarding module is used for: if the target server information corresponding to the target node information is not found in the mapping relationship between the pre-stored node information of each node and the server information of the corresponding DHCP server, then send the request message The information is forwarded to a preset default DHCP server to instruct the DHCP server to select an unused IP address to feed back to the target node.

优选的,所述第二转发模块包括:Preferably, the second forwarding module includes:

广播单元,用于:将所述请求报文信息以广播的形式发出,以指示预先设定的默认DHCP服务器获取该请求报文信息。The broadcasting unit is configured to: broadcast the request message information to instruct a preset default DHCP server to obtain the request message information.

优选的,还包括:Preferably, it also includes:

存储模块,用于:获取各个节点的Mac信息作为对应节点的节点信息,并获取各个DHCP服务器的ID信息作为对应DHCP服务器的服务器信息;将各个节点的Mac信息与该节点对应的DHCP服务器的ID信息的映射关系存储至映射关系表中以供查询。The storage module is used to: obtain the Mac information of each node as the node information of the corresponding node, and obtain the ID information of each DHCP server as the server information of the corresponding DHCP server; use the Mac information of each node with the ID of the DHCP server corresponding to the node The mapping relationship of information is stored in the mapping relationship table for query.

优选的,还包括:Preferably, it also includes:

第二接收模块,用于:将所述请求报文信息转发至与所述目标服务器信息对应的目标DHCP服务器之后,接收所述目标节点返回的反馈信息,所述反馈信息为所述目标节点接收到所述目标DHCP服务器发送的IP地址后发出的。The second receiving module is configured to: after forwarding the request message information to the target DHCP server corresponding to the target server information, receive the feedback information returned by the target node, the feedback information is received by the target node Sent after sending the IP address to the target DHCP server.

本发明提供了一种定向请求指定DHCP服务器的方法及装置,其中该方法包括:接收目标节点发送的请求报文信息,并获取所述请求报文信息中包含的目标节点信息;基于预先存储的各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系确定出与所述目标节点信息对应的目标服务器信息;将所述请求报文信息转发至与所述目标服务器信息对应的目标DHCP服务器,以指示该DHCP服务器选取一未被使用的IP地址反馈给所述目标节点。本发明实施例提供的上述技术方案中,预先存储有各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系,由此,获取到目标节点发送的请求报文信息后,确定与该请求报文信息中包含的目标节点信息对应的目标服务器信息,进而将请求报文信息转发至与目标服务器信息对应的目标DPCH服务器,以由该DPCH服务器为目标节点提供IP地址,从而实现了节点定向获取指定DPCH服务器提供的IP地址,进而避免了由于节点获取的IP地址对应DHCP服务器承担的业务与节点需完成的业务不同导致节点无法正常完成其所需完成业务的情况发生。The present invention provides a method and device for directional requesting a designated DHCP server, wherein the method includes: receiving request message information sent by a target node, and acquiring target node information contained in the request message information; The mapping relationship between the node information of each node and the server information of the corresponding DHCP server determines the target server information corresponding to the target node information; forwards the request message information to the target DHCP server corresponding to the target server information, to instruct the DHCP server to select an unused IP address and feed it back to the target node. In the above technical solution provided by the embodiment of the present invention, the mapping relationship between the node information of each node and the server information of the corresponding DHCP server is stored in advance, thus, after obtaining the request message information sent by the target node, determine the information related to the request message. The target server information corresponding to the target node information contained in the message information, and then forward the request message information to the target DPCH server corresponding to the target server information, so that the DPCH server provides an IP address for the target node, thereby realizing node-directed acquisition Specify the IP address provided by the DPCH server, thereby avoiding the situation that the node cannot normally complete the required business because the IP address obtained by the node corresponds to the business undertaken by the DHCP server and the business that the node needs to complete is different.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本发明实施例提供的一种定向请求指定DHCP服务器的方法的流程图;Fig. 1 is a flow chart of a method for directing a request to specify a DHCP server provided by an embodiment of the present invention;

图2为本发明实施例提供的一种定向请求指定DHCP服务器的装置的结构示意图。FIG. 2 is a schematic structural diagram of an apparatus for directing a request to specify a DHCP server according to an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

请参阅图1,其示出了本发明实施例提供的一种定向请求指定DHCP服务器的方法的流程图,可以包括以下步骤:Please refer to Fig. 1, which shows a flow chart of a method for directing a request to specify a DHCP server provided by an embodiment of the present invention, which may include the following steps:

S11:接收目标节点发送的请求报文信息,并获取请求报文信息中包含的目标节点信息。S11: Receive the request message information sent by the target node, and obtain the target node information included in the request message information.

其中,目标节点可以指集群服务器中的任一节点,也即当任一节点发出请求报文信息时即可以确定该节点为目标节点。接收到目标节点发送的请求报文信息中可以由该信息中获取到目标节点对应的目标节点信息,不同的节点具有不同的节点信息,对应的不同的DPCH服务器具有不同的服务器信息。Wherein, the target node may refer to any node in the cluster server, that is, when any node sends request message information, it can be determined that the node is the target node. After receiving the request message information sent by the target node, the target node information corresponding to the target node can be obtained from the information. Different nodes have different node information, and corresponding different DPCH servers have different server information.

需要说明的是,节点发出请求报文信息一般是该节点PXE(preboot executeenvironment,预启动执行环境)启动时自动发出的,另外本发明实施例提供的技术方案可以基于云海OS实现,云海OS是一体化的数据中心资源管理平台软件,本发明基于该业界领先的云管理平台软件实现多个节点获取不同DHCP服务器提供的IP地址。It should be noted that the request message information sent by the node is generally automatically sent by the node when the PXE (preboot executeenvironment, pre-boot execution environment) is started. In addition, the technical solution provided by the embodiment of the present invention can be realized based on Yunhai OS, which is an integrated Based on the industry-leading cloud management platform software, the present invention realizes that multiple nodes obtain IP addresses provided by different DHCP servers.

S12:基于预先存储的各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系确定出与目标节点信息对应的目标服务器信息。S12: Determine the target server information corresponding to the target node information based on the pre-stored mapping relationship between the node information of each node and the server information corresponding to the DHCP server.

每个节点均具有对应的DHCP服务器,一般来说,节点对应的DHCP服务器承担的业务与该节点需完成的业务对应,如一DHCP服务器对应的B网段的IP地址用于操作系统备份恢复业务,因此,需要完成操作系统备份恢复业务的节点与该DHCP服务器对应;相应的,节点的节点信息与节点对应的DHCP服务器的服务器信息对应,且这种对应关系即为预先存储的上述映射关系。另外,由于可能存在多个节点需要完成的业务相同,因此,多个节点的节点信息可以对应同一个DHCP服务器的服务器信息,也即节点信息与服务器信息可以以多对一的映射关系存在。Each node has a corresponding DHCP server. Generally speaking, the business undertaken by the DHCP server corresponding to the node corresponds to the business that the node needs to complete. For example, the IP address of the B network segment corresponding to a DHCP server is used for operating system backup and recovery services. Therefore, the node that needs to complete the operating system backup and recovery service corresponds to the DHCP server; correspondingly, the node information of the node corresponds to the server information of the DHCP server corresponding to the node, and this correspondence is the above-mentioned mapping relationship stored in advance. In addition, since there may be multiple nodes that need to complete the same service, the node information of multiple nodes may correspond to the server information of the same DHCP server, that is, the node information and server information may exist in a many-to-one mapping relationship.

由预先存储的映射关系中可以确定出与目标节点信息对应的目标服务器信息,本申请中的目标仅仅用于指与当前接收到的请求报文信息对应的节点及DHCP服务器,无其他实质意义。The target server information corresponding to the target node information can be determined from the pre-stored mapping relationship. The target in this application is only used to refer to the node and DHCP server corresponding to the currently received request message information, and has no other substantive meaning.

S13:将请求报文信息转发至与目标服务器信息对应的目标DHCP服务器,以指示该DHCP服务器选取一未被使用的IP地址反馈给目标节点。S13: Forward the request message information to the target DHCP server corresponding to the target server information, so as to instruct the DHCP server to select an unused IP address and feed it back to the target node.

将请求报文信息转发至目标DHCP服务器,以指示该DHCP服务器接收到请求报文信息后,从自己的IP地址池中选取一个未被使用的IP地址反馈给目标节点,从而使得目标节点获取自己需要的IP地址的目的。Forward the request message information to the target DHCP server to instruct the DHCP server to select an unused IP address from its own IP address pool to feed back to the target node after receiving the request message information, so that the target node obtains its own The purpose of the IP address is required.

本发明实施例提供的上述技术方案中,预先存储有各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系,由此,获取到目标节点发送的请求报文信息后,确定与该请求报文信息中包含的目标节点信息对应的目标服务器信息,进而将请求报文信息转发至与目标服务器信息对应的目标DPCH服务器,以由该DPCH服务器为目标节点提供IP地址,从而实现了节点定向获取指定DPCH服务器提供的IP地址,进而避免了由于节点获取的IP地址对应DHCP服务器承担的业务与节点需完成的业务不同导致节点无法正常完成其所需完成业务的情况发生。In the above technical solution provided by the embodiment of the present invention, the mapping relationship between the node information of each node and the server information of the corresponding DHCP server is stored in advance, thus, after obtaining the request message information sent by the target node, determine the information related to the request message. The target server information corresponding to the target node information contained in the message information, and then forward the request message information to the target DPCH server corresponding to the target server information, so that the DPCH server provides an IP address for the target node, thereby realizing node-directed acquisition Specify the IP address provided by the DPCH server, thereby avoiding the situation that the node cannot normally complete the required business because the IP address obtained by the node corresponds to the business undertaken by the DHCP server and the business that the node needs to complete is different.

另外,本申请公开的上述技术特征能够有效的避免DPCH服务器提供服务的混杂,确保云平台整体业务的正常实现,并能实现对网络资源的最大化利用。In addition, the above-mentioned technical features disclosed in this application can effectively avoid the confusion of services provided by the DPCH server, ensure the normal realization of the overall business of the cloud platform, and realize the maximum utilization of network resources.

本发明实施例提供的一种定向请求指定DHCP服务器的方法,还可以包括:A kind of directional request method for specifying the DHCP server provided by the embodiment of the present invention may also include:

如果由预先存储的各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系中未发现与目标节点信息对应的目标服务器信息,则将请求报文信息转发至预先设定的默认DHCP服务器,以指示该DHCP服务器选取一未被使用的IP地址反馈给目标节点。If the target server information corresponding to the target node information is not found in the mapping relationship between the node information of each node stored in advance and the server information of the corresponding DHCP server, then the request message information is forwarded to a preset default DHCP server to Instruct the DHCP server to select an unused IP address and feed it back to the target node.

其中,预先设定的默认DHCP服务器可以是由工作人员根据实际需要进行设定的,由此,如果预先存储的映射关系中不存在与目标节点信息对应的目标服务器信息,则由该DHCP服务器由自己的IP地址池中选取一个未被使用的IP地址反馈给目标节点,以使得目标节点获取到自己所需的IP地址,避免了当映射关系中不存在与目标节点信息对应的目标服务器信息时目标节点无法正常获取IP地址的情况发生,进一步保证了系统整体业务的顺利实现。Wherein, the pre-set default DHCP server can be set by the staff according to actual needs, thus, if there is no target server information corresponding to the target node information in the pre-stored mapping relationship, then the DHCP server will be assigned by the DHCP server. Select an unused IP address from its own IP address pool to feed back to the target node, so that the target node can obtain the IP address it needs, avoiding when there is no target server information corresponding to the target node information in the mapping relationship The situation that the target node cannot obtain the IP address normally occurs, which further ensures the smooth realization of the overall business of the system.

本发明实施例提供的一种定向请求指定DHCP服务器的方法,将请求报文信息转发至预先设定的默认DHCP服务器,可以包括:A kind of directional request method for specifying the DHCP server that the embodiment of the present invention provides, forwards the request message information to the preset default DHCP server, may include:

将请求报文信息以广播的形式发出,以指示预先设定的默认DHCP服务器获取该请求报文信息。The request message information is sent in the form of broadcast to instruct the preset default DHCP server to obtain the request message information.

将请求报文信息转发至默认DHCP服务器的方式可以包括多种,如可以直接将请求报文信息发送至默认DHCP服务器,也可以预先设置成只有默认DHCP服务器能够接收广播的信息,进而将请求报文信息以广播的形式发出,当然还可以根据实际需要进行其他设置,均在本发明的保护范围之内。本申请中采用广播形式发出请求报文信息能够在一定程度上保证信息的顺利送达。There are many ways to forward the request message information to the default DHCP server. For example, the request message information can be directly sent to the default DHCP server, or it can be preset so that only the default DHCP server can receive the broadcast information, and then the request message can be sent to the default DHCP server. The text information is sent in the form of broadcast, and of course other settings can be made according to actual needs, all within the protection scope of the present invention. In this application, sending the request message information in the form of broadcast can guarantee the smooth delivery of the information to a certain extent.

本发明实施例提供的一种定向请求指定DHCP服务器的方法,预先存储的各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系,可以包括:In the method for specifying a DHCP server for a directional request provided in an embodiment of the present invention, the mapping relationship between the pre-stored node information of each node and the server information of the corresponding DHCP server may include:

获取各个节点的Mac信息作为对应节点的节点信息,并获取各个DHCP服务器的ID信息作为对应DHCP服务器的服务器信息;Obtain the Mac information of each node as the node information of the corresponding node, and obtain the ID information of each DHCP server as the server information of the corresponding DHCP server;

将各个节点的Mac信息与该节点对应的DHCP服务器的ID信息的映射关系存储至映射关系表中以供查询。The mapping relationship between the Mac information of each node and the ID information of the DHCP server corresponding to the node is stored in the mapping relationship table for query.

其中,可以将节点的Mac(物理地址或硬件地址)信息作为该节点的节点信息,将DHCP服务器的ID(唯一性标识)信息作为该DHCP服务器的服务器信息,也可以根据实际需要进行其他设定,均在本发明的保护范围之内,进而将上述信息的映射关系存储至映射关系表中,能够在需要时由该关系表中迅速查询到对应的信息。Among them, the Mac (physical address or hardware address) information of the node can be used as the node information of the node, and the ID (unique identification) information of the DHCP server can be used as the server information of the DHCP server, and other settings can also be made according to actual needs , are all within the protection scope of the present invention, and the mapping relationship of the above information is stored in the mapping relationship table, and the corresponding information can be quickly queried from the relationship table when needed.

本发明实施例提供的一种定向请求指定DHCP服务器的方法,将请求报文信息转发至与目标服务器信息对应的目标DHCP服务器之后,还可以包括:A kind of directional request designation DHCP server method that the embodiment of the present invention provides, after request message information is forwarded to the target DHCP server corresponding with target server information, can also comprise:

接收目标节点返回的反馈信息,反馈信息为目标节点接收到目标DHCP服务器发送的IP地址后发出的。Receiving the feedback information returned by the target node, the feedback information is sent by the target node after receiving the IP address sent by the target DHCP server.

接收到目标节点返回的反馈信息,则可获知到该目标节点已经获取到对应IP地址的信息,以供外界人员或者其他设备对目标节点获取IP地址的状态进行获取。After receiving the feedback information returned by the target node, it can be learned that the target node has obtained the corresponding IP address information, so that external personnel or other devices can obtain the status of the target node obtaining the IP address.

本发明实施例还提供了一种定向请求指定DHCP服务器的装置,如图2所示,可以包括:The embodiment of the present invention also provides a device for directing the request to specify the DHCP server, as shown in Figure 2, may include:

第一接收模块11,用于:接收目标节点发送的请求报文信息,并获取请求报文信息中包含的目标节点信息;The first receiving module 11 is configured to: receive the request message information sent by the target node, and obtain the target node information contained in the request message information;

确定模块12,用于:基于预先存储的各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系确定出与目标节点信息对应的目标服务器信息;The determination module 12 is configured to: determine the target server information corresponding to the target node information based on the mapping relationship between the pre-stored node information of each node and the server information of the corresponding DHCP server;

第一转发模块13,用于:将请求报文信息转发至与目标服务器信息对应的目标DHCP服务器,以指示该DHCP服务器选取一未被使用的IP地址反馈给目标节点。The first forwarding module 13 is configured to: forward the request message information to a target DHCP server corresponding to the target server information, so as to instruct the DHCP server to select an unused IP address to feed back to the target node.

本发明实施例提供的一种定向请求指定DHCP服务器的装置可以作为DHCP代理,进而代理实现节点定向获取指定DHCP服务器提供的IP地址的目的。The device for directional requesting a designated DHCP server provided by the embodiment of the present invention can be used as a DHCP agent, and then the agent realizes the purpose of the node directional acquisition of the IP address provided by the designated DHCP server.

本发明实施例提供的一种定向请求指定DHCP服务器的装置,还可以包括:A device for directing a request to specify a DHCP server provided in an embodiment of the present invention may also include:

第二转发模块,用于:如果由预先存储的各个节点的节点信息与对应DHCP服务器的服务器信息的映射关系中未发现与目标节点信息对应的目标服务器信息,则将请求报文信息转发至预先设定的默认DHCP服务器,以指示该DHCP服务器选取一未被使用的IP地址反馈给目标节点。The second forwarding module is used for: if the target server information corresponding to the target node information is not found in the mapping relationship between the node information of each node stored in advance and the server information of the corresponding DHCP server, then forward the request message information to the pre-stored The default DHCP server is set to instruct the DHCP server to select an unused IP address and feed it back to the target node.

本发明实施例提供的一种定向请求指定DHCP服务器的装置,第二转发模块可以包括:A kind of directional request designation DHCP server device that the embodiment of the present invention provides, the second forwarding module can comprise:

广播单元,用于:将请求报文信息以广播的形式发出,以指示预先设定的默认DHCP服务器获取该请求报文信息。The broadcast unit is configured to: broadcast the request message information to instruct a preset default DHCP server to obtain the request message information.

本发明实施例提供的一种定向请求指定DHCP服务器的装置,还可以包括:A device for directing a request to specify a DHCP server provided in an embodiment of the present invention may also include:

存储模块,用于:获取各个节点的Mac信息作为对应节点的节点信息,并获取各个DHCP服务器的ID信息作为对应DHCP服务器的服务器信息;将各个节点的Mac信息与该节点对应的DHCP服务器的ID信息的映射关系存储至映射关系表中以供查询。The storage module is used to: obtain the Mac information of each node as the node information of the corresponding node, and obtain the ID information of each DHCP server as the server information of the corresponding DHCP server; use the Mac information of each node with the ID of the DHCP server corresponding to the node The mapping relationship of information is stored in the mapping relationship table for query.

本发明实施例提供的一种定向请求指定DHCP服务器的装置,还可以包括:A device for directing a request to specify a DHCP server provided in an embodiment of the present invention may also include:

第二接收模块,用于:将请求报文信息转发至与目标服务器信息对应的目标DHCP服务器之后,接收目标节点返回的反馈信息,反馈信息为目标节点接收到目标DHCP服务器发送的IP地址后发出的。The second receiving module is used for: after forwarding the request message information to the target DHCP server corresponding to the target server information, receiving the feedback information returned by the target node, the feedback information is sent by the target node after receiving the IP address sent by the target DHCP server of.

本发明实施例提供的一种定向请求指定DHCP服务器的装置中相关部分的介绍请参见本发明实施例提供的一种定向请求指定DHCP服务器的方法中对应部分的详细说明,在此不再赘述。For the introduction of relevant parts of the device for directing request to designate a DHCP server provided by the embodiment of the present invention, please refer to the detailed description of the corresponding part in the method for directing request to designate a DHCP server provided by the embodiment of the present invention, and details will not be repeated here.

对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. it is a kind of to orient the method that Dynamic Host Configuration Protocol server is specified in request, it is characterised in that including:
The request message information that destination node sends is received, and obtains the destination node letter included in the request message information Breath;
Nodal information based on each node for prestoring is true with the mapping relations of the server info of corresponding Dynamic Host Configuration Protocol server Make destination server information corresponding with the destination node information;
The request message information is forwarded to target Dynamic Host Configuration Protocol server corresponding with the destination server information, to indicate to be somebody's turn to do Dynamic Host Configuration Protocol server chooses an IP address being not used by and feeds back to the destination node.
2. method according to claim 1, it is characterised in that also include:
If by the mapping relations of the nodal information of each node that prestores and the server info of corresponding Dynamic Host Configuration Protocol server In do not find destination server information corresponding with the destination node information, then the request message information is forwarded in advance The acquiescence Dynamic Host Configuration Protocol server of setting, the target section is fed back to indicate the Dynamic Host Configuration Protocol server to choose an IP address being not used by Point.
3. method according to claim 2, it is characterised in that be forwarded to the request message information set in advance silent Recognize Dynamic Host Configuration Protocol server, including:
The request message information is sent in the form of broadcasting, should to indicate acquiescence Dynamic Host Configuration Protocol server set in advance to obtain Seek message information.
4. method according to claim 1, it is characterised in that the nodal information of each node for prestoring with it is corresponding The mapping relations of the server info of Dynamic Host Configuration Protocol server, including:
The Mac information of each node is obtained as the nodal information of corresponding node, and obtains the id information of each Dynamic Host Configuration Protocol server As the server info of correspondence Dynamic Host Configuration Protocol server;
The mapping relations of the id information of the Mac information of each node Dynamic Host Configuration Protocol server corresponding with the node are stored to mapping and is closed It is for inquiry in table.
5. method according to claim 1, it is characterised in that be forwarded to and the target clothes request message information After the corresponding target Dynamic Host Configuration Protocol server of business device information, also include:
The feedback information that the destination node is returned is received, the feedback information receives the target for the destination node Sent after the IP address that Dynamic Host Configuration Protocol server sends.
6. it is a kind of to orient the device that Dynamic Host Configuration Protocol server is specified in request, it is characterised in that including:
First receiver module, is used for:Receive the request message information that destination node sends, and obtain the request message information Comprising destination node information;
Determining module, is used for:Nodal information based on each node for prestoring is believed with the server of corresponding Dynamic Host Configuration Protocol server The mapping relations of breath determine destination server information corresponding with the destination node information;
First forwarding module, is used for:The request message information is forwarded to target corresponding with the destination server information Dynamic Host Configuration Protocol server, the destination node is fed back to indicate the Dynamic Host Configuration Protocol server to choose an IP address being not used by.
7. device according to claim 6, it is characterised in that also include:
Second forwarding module, is used for:If by the clothes of the nodal information of each node that prestores and corresponding Dynamic Host Configuration Protocol server Destination server information corresponding with the destination node information is not found in the mapping relations of device information of being engaged in, then by the request Message information is forwarded to acquiescence Dynamic Host Configuration Protocol server set in advance, to indicate the Dynamic Host Configuration Protocol server to choose the IP ground being not used by Location feeds back to the destination node.
8. device according to claim 7, it is characterised in that second forwarding module includes:
Radio unit, is used for:The request message information is sent in the form of broadcasting, to indicate acquiescence DHCP set in advance Server obtains the request message information.
9. device according to claim 6, it is characterised in that also include:
Memory module, is used for:The Mac information of each node is obtained as the nodal information of corresponding node, and obtains each DHCP The id information of server is used as the server info for corresponding to Dynamic Host Configuration Protocol server;The Mac information of each node is corresponding with the node Dynamic Host Configuration Protocol server id information mapping relations store into mapping table for inquiry.
10. device according to claim 6, it is characterised in that also include:
Second receiver module, is used for:The request message information is forwarded to target corresponding with the destination server information After Dynamic Host Configuration Protocol server, the feedback information that the destination node is returned is received, the feedback information is received for the destination node Sent after the IP address sent to the target Dynamic Host Configuration Protocol server.
CN201710100397.5A 2017-02-23 2017-02-23 It is a kind of to orient the method and device that Dynamic Host Configuration Protocol server is specified in request Pending CN106790701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710100397.5A CN106790701A (en) 2017-02-23 2017-02-23 It is a kind of to orient the method and device that Dynamic Host Configuration Protocol server is specified in request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710100397.5A CN106790701A (en) 2017-02-23 2017-02-23 It is a kind of to orient the method and device that Dynamic Host Configuration Protocol server is specified in request

Publications (1)

Publication Number Publication Date
CN106790701A true CN106790701A (en) 2017-05-31

Family

ID=58960139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710100397.5A Pending CN106790701A (en) 2017-02-23 2017-02-23 It is a kind of to orient the method and device that Dynamic Host Configuration Protocol server is specified in request

Country Status (1)

Country Link
CN (1) CN106790701A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990288A (en) * 2019-12-12 2020-04-10 北京首汽智行科技有限公司 Project deployment method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921496A (en) * 2005-08-24 2007-02-28 中兴通讯股份有限公司 Method for DHCP client terminal to identifying DHCP server
CN102098354A (en) * 2011-02-28 2011-06-15 北京星网锐捷网络技术有限公司 Method and server for allocating dynamic host configuration protocol (DHCP) addresses
CN102892170A (en) * 2012-09-19 2013-01-23 邦讯技术股份有限公司 Method and system for terminal to acquire core network internet protocol (IP) address
CN103051738A (en) * 2012-12-10 2013-04-17 上海斐讯数据通信技术有限公司 DHCP (Dynamic Host Configuration Protocol) address distribution method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921496A (en) * 2005-08-24 2007-02-28 中兴通讯股份有限公司 Method for DHCP client terminal to identifying DHCP server
CN102098354A (en) * 2011-02-28 2011-06-15 北京星网锐捷网络技术有限公司 Method and server for allocating dynamic host configuration protocol (DHCP) addresses
CN102892170A (en) * 2012-09-19 2013-01-23 邦讯技术股份有限公司 Method and system for terminal to acquire core network internet protocol (IP) address
CN103051738A (en) * 2012-12-10 2013-04-17 上海斐讯数据通信技术有限公司 DHCP (Dynamic Host Configuration Protocol) address distribution method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990288A (en) * 2019-12-12 2020-04-10 北京首汽智行科技有限公司 Project deployment method

Similar Documents

Publication Publication Date Title
EP4149084B1 (en) Address management method and system, and device
US10171567B2 (en) Load balancing computer device, system, and method
CN109688235B (en) Virtual network service processing method, device and system, controller, storage medium
WO2019237588A1 (en) Linux virtual server creation method, device, computer device and storage medium
CN111585887B (en) Communication method and device based on multiple networks, electronic equipment and storage medium
US20020078188A1 (en) Method, apparatus, and program for server based network computer load balancing across multiple boot servers
US11546228B2 (en) Zero-touch configuration of network devices using hardware metadata
CN108933844B (en) Method and equipment for providing DHCP service
CN114070888A (en) Cloud terminal-based business processing method, server, device and system
CN105847108A (en) Method and apparatus for communication between containers
CN106301897A (en) A kind of (SuSE) Linux OS installs collocation method and device
CN112532758B (en) Method, device and medium for establishing network edge computing system
CN106059888A (en) IP (Internet Protocol) address assignment method and device based on open network operating system
CN105704256A (en) Method, device and system for IP address management
CN107517129B (en) Method and device for configuring uplink interface of equipment based on OpenStack
CN104468207A (en) Terminal management method, device and system
CN103401787B (en) Static route issuing method and UPE (Ultimate Provider Edge)
WO2018161795A1 (en) Routing priority configuration method, device, and controller
US8275895B1 (en) Systems and methods for establishing a trusted dynamic host configuration protocol connection
WO2016202016A1 (en) Device management method, apparatus and system
CN109347994B (en) Internet protocol IP address obtaining method and device, storage medium and electronic equipment
US20120271912A1 (en) Apparatus and method for transmitting and receiving ip information in a wireless communication network
CN106790701A (en) It is a kind of to orient the method and device that Dynamic Host Configuration Protocol server is specified in request
EP3706373B1 (en) Establishing a vxlan between a wireless access point and a node
CN110493055B (en) FPGA card configuration method, device, system and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531

RJ01 Rejection of invention patent application after publication