CN114301875A - Management and control method and device for DHCP proxy side and electronic equipment - Google Patents
Management and control method and device for DHCP proxy side and electronic equipment Download PDFInfo
- Publication number
- CN114301875A CN114301875A CN202111574611.3A CN202111574611A CN114301875A CN 114301875 A CN114301875 A CN 114301875A CN 202111574611 A CN202111574611 A CN 202111574611A CN 114301875 A CN114301875 A CN 114301875A
- Authority
- CN
- China
- Prior art keywords
- dhcp
- information
- proxy
- dhcp proxy
- scheduler
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 238000004891 communication Methods 0.000 claims abstract description 30
- 238000004590 computer program Methods 0.000 claims description 15
- 238000003860 storage Methods 0.000 claims description 12
- 238000009826 distribution Methods 0.000 claims description 11
- 230000007246 mechanism Effects 0.000 claims description 11
- 230000008569 process Effects 0.000 abstract description 15
- 238000012545 processing Methods 0.000 abstract description 13
- 230000000903 blocking effect Effects 0.000 abstract description 5
- 238000007726 management method Methods 0.000 description 17
- 238000013461 design Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 9
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
A management and control method, a device and electronic equipment for a DHCP proxy side are provided, wherein the method comprises the following steps: the method comprises the steps of receiving selected information or request information sent by each DHCP agent end of communication connection, wherein the request information is used for requesting to obtain corresponding network resource information from a DHCP agent end manager, determining an identification list of the online DHCP agent end based on the selected information, and sending the identification list to a DHCP scheduler, or obtaining the network resource information respectively corresponding to the DHCP agent ends sending the request information, and sending the network resource information corresponding to the DHCP agent ends to the corresponding DHCP agent ends. By the method, the DHCP proxy end manager replaces a DHCP scheduler to process the message sent to the DHCP scheduler by the DHCP proxy end, so that the message blocking of a message queue caused by untimely processing of a large number of messages by the DHCP scheduler is avoided.
Description
Technical Field
The application relates to the technical field of computer network communication, in particular to a management and control method and device for a DHCP proxy side and electronic equipment.
Background
Before a service host used by a user accesses the Internet, a network administrator needs to configure an Internet Protocol (IP) address for the service host. With the development of network technology, the IP address of a service Host can be automatically allocated by using a Dynamic Host Configuration Protocol (DHCP) technology, and specifically, the IP address of the service Host can be automatically allocated based on a DHCP scheduler, a DHCP proxy and a DHCP server, and the specific process is as follows:
when the service host needs an IP address, an IP address allocation request is sent to a DHCP scheduler; after receiving the IP address allocation request, the DHCP dispatcher determines all online DHCP proxy terminals connected with the DHCP dispatcher, analyzes port information of the service host from the IP address allocation request, determines one online DHCP proxy terminal from all online DHCP proxy terminals based on the port information, and sends a command for creating a DHCP server terminal to the determined online DHCP proxy terminal; and the online DHCP proxy end creates a DHCP server end according to the instruction, and the DHCP server end carries out information interaction on a port corresponding to the port information of the service host and the service host, allocates an IP address for the service host and sends the IP address to the service host through the port of the service host, thereby realizing the automatic allocation of the IP address for the service host by utilizing the DHCP technology.
In the process of automatically allocating the IP address of the service host, the DHCP scheduler needs to determine all online DHCP proxy terminals, and may specifically determine according to whether the DHCP proxy terminals report heartbeat information.
In addition, if the DHCP proxy changes from the offline state to the online state, the DHCP proxy sends request information to the connected DHCP scheduler to request a request for acquiring network resource information associated with the DHCP proxy from data of the DHCP scheduler, where the network resource information includes: a network of service hosts, a subnet of service hosts, a port of a service host, etc. The heartbeat information or the request information sent by the DHCP proxy to the DHCP scheduler is transmitted through a message queue of a Remote Procedure Call (RPC).
If the number of the DHCP proxy terminals connected to the single DHCP scheduler is too large, the number of the heartbeat messages or the request messages received by the single DHCP scheduler at the same time is too large, and if the number of the heartbeat messages or the request messages exceeds the carrying capacity of the message queue of the RPC, a large number of heartbeat messages or request messages are in a queue waiting state in the message queue of the RPC, so that the message queue of the RPC between the DHCP scheduler and the connected DHCP proxy terminals is blocked.
Disclosure of Invention
The application provides a management and control method and device for a DHCP proxy end and electronic equipment, wherein an identification list of an online DHCP proxy end is generated according to the DHCP proxy end sending selected information by processing the received selected information and request information sent by the DHCP proxy end, the identification list is sent to a DHCP scheduler and binding relationship information between the DHCP proxy end corresponding to the request information and network resource information is returned to the DHCP proxy end, and the problem that a message queue in the DHCP scheduler is blocked because each selected information and each request message are sent to the DHCP scheduler through a message queue is avoided.
In a first aspect, the present application provides a method for managing and controlling a DHCP proxy, where the method includes:
receiving selected information or request information sent by each DHCP agent end of communication connection, wherein the request information is used for requesting to acquire corresponding network resource information from the DHCP agent end manager;
determining an identification list of an online DHCP proxy terminal based on each selected information, and sending the identification list to the DHCP scheduler; or acquiring the network resource information respectively corresponding to the DHCP proxy terminals sending the request information, and sending the network resource information corresponding to the DHCP proxy terminals to the corresponding DHCP proxy terminals.
By the method, the DHCP agent end manager processes the selected information or the request information sent by the DHCP agent end, generates the identification list of the online DHCP agent end, and sends the identification list to the DHCP scheduler, thereby reducing the information in the information queue and avoiding the information blockage in the information queue.
In one possible design, before receiving the selected information and the request information sent by each DHCP proxy of the communication connection, the method further includes:
detecting the number of DHCP proxy terminals in communication connection with the DHCP proxy terminal manager;
determining whether the quantity value exceeds a set threshold;
if the quantity value is determined to exceed a set threshold value, migrating the selected DHCP agent end exceeding the threshold value in the quantity to a newly-added DHCP agent end manager;
and if the quantity value is determined not to exceed the set threshold value, acquiring the association relationship between the DHCP agent end manager and the DHCP agent end in communication connection, and sending the association relationship to the DHCP scheduler.
In one possible design, obtaining network resource information corresponding to each DHCP proxy that sends each request information includes:
analyzing the identification information corresponding to each DHCP agent terminal from each request information;
and acquiring network resource information corresponding to each DHCP proxy terminal based on each analyzed identification information.
In one possible design, sending the identifier list to the DHCP scheduler specifically includes:
reading a message distribution mechanism in a message queue of the DHCP proxy end manager;
establishing a first information channel with the DHCP scheduler based on the message distribution mechanism;
and sending the identification list to the DHCP dispatcher through the first information channel.
In one possible design, an identification list of an online DHCP proxy is determined based on each selected information, and the identification list is sent to the DHCP scheduler; or, after obtaining the network resource information respectively corresponding to the DHCP proxy that sends each request information and sending the network resource information corresponding to each DHCP proxy to the corresponding DHCP proxy, the method further includes:
receiving first information sent by the DHCP scheduler, wherein the first information comprises position information of a service host and identification information matched from a database of the DHCP scheduler based on the position information;
determining a DHCP agent end corresponding to the identification information;
and sending the port information of the service host to a DHCP proxy end corresponding to the identification information.
In a second aspect, the present application provides a management and control apparatus for a DHCP proxy, where the apparatus includes:
the receiving module is used for receiving selected information or request information sent by each DHCP agent end of communication connection;
and the sending module is used for determining an identification list of an online DHCP proxy terminal based on each selected information, sending the identification list to the DHCP scheduler or obtaining network resource information respectively corresponding to the DHCP proxy terminals sending each request information, and sending the network resource information corresponding to the DHCP proxy terminals to the corresponding DHCP proxy terminals.
In a possible design, the receiving module is specifically configured to detect the number of DHCP proxy terminals to which the DHCP proxy terminal manager is communicatively connected, determine whether the number value exceeds a set threshold, migrate a selected DHCP proxy terminal exceeding the threshold in the number to a newly-added DHCP proxy terminal manager if it is determined that the number value exceeds the set threshold, and acquire an association relationship between the DHCP proxy terminal manager and the DHCP proxy terminal to which the DHCP proxy terminal is communicatively connected if it is determined that the number value does not exceed the set threshold, and send the association relationship to the DHCP scheduler.
In a possible design, the sending module is specifically configured to analyze, from each request message, identification information corresponding to each DHCP proxy, and obtain, based on each analyzed identification information, network resource information corresponding to each DHCP proxy.
In a possible design, the sending module is further configured to establish a first information channel with the DHCP scheduler according to a message distribution mechanism in a message queue of the DHCP proxy manager.
In a possible design, the sending module is further configured to read a message distribution mechanism in a message queue of the DHCP proxy manager, establish a first information channel with the DHCP scheduler based on the message distribution mechanism, and send the identifier list to the DHCP scheduler through the first information channel.
In a possible design, the sending module is further configured to receive first information sent by the DHCP scheduler, where the first information includes location information of the service host and identification information matched from a database of the DHCP scheduler based on the location information, determine a DHCP proxy end corresponding to the identification information, and send port information of the service host to the DHCP proxy end corresponding to the identification information.
In a third aspect, the present application provides an electronic device, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the management and control method of the DHCP proxy side when executing the computer program stored in the memory.
In a fourth aspect, a computer-readable storage medium has stored therein a computer program, and when executed by a processor, the computer program implements the above-mentioned steps of a DHCP proxy management and control method.
For each of the first to fourth aspects and possible technical effects of each aspect, please refer to the above description of the possible technical effects for the first aspect or each possible solution in the first aspect, and no repeated description is given here.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for managing and controlling a DHCP proxy according to the present application;
fig. 2 is a schematic diagram illustrating an association relationship among a DHCP scheduler, a DHCP proxy manager, and a DHCP proxy provided in the present application;
fig. 3 is a schematic diagram illustrating an association relationship between a message queue and a DHCP proxy manager and a DHCP proxy according to the present application;
fig. 4 is a schematic structural diagram of a management and control apparatus of a DHCP proxy provided in the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, the present application will be further described in detail with reference to the accompanying drawings. The particular methods of operation in the method embodiments may also be applied to apparatus embodiments or system embodiments. It should be noted that "a plurality" is understood as "at least two" in the description of the present application. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. A is connected with B and can represent: a and B are directly connected and A and B are connected through C. In addition, in the description of the present application, the terms "first," "second," and the like are used for descriptive purposes only and are not intended to indicate or imply relative importance nor order to be construed.
In the prior art, one DHCP scheduler manages a large number of DHCP proxy terminals, and processes heartbeat information or request information sent by all the DHCP proxy terminals, when there are many DHCP proxy terminals sending heartbeat information or request information, the same DHCP scheduler cannot simultaneously process heartbeat information or request information sent by the DHCP proxy terminals, and the heartbeat information or request information will be in a queue waiting state in a message queue of an RPC, resulting in message queue blocking of the RPC between the DHCP scheduler and the DHCP proxy terminals.
In order to solve the above problem, an embodiment of the present application provides a method for managing and controlling a DHCP proxy, where a DHCP proxy manager manages a specified number of DHCP proxies, and the DHCP proxy is prevented from directly sending selected information or request information to a DHCP scheduler, so as to prevent RPC message queue congestion of the DHCP scheduler. The method and the device in the embodiment of the application are based on the same technical concept, and because the principles of the problems solved by the method and the device are similar, the device and the embodiment of the method can be mutually referred, and repeated parts are not repeated.
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, the present application provides a method for managing and controlling a DHCP proxy, which can solve the problem of message queue blocking of an RPC between a DHCP scheduler and the DHCP proxy, and the method has the following implementation flows:
step S1: and receiving selected information or request information sent by each DHCP proxy end of communication connection, wherein the request information is used for requesting to acquire corresponding network resource information from the DHCP proxy end manager.
In this embodiment of the present application, in order to effectively manage DHCP proxy, a DHCP proxy manager is provided between a DHCP scheduler and a DHCP proxy, and the DHCP proxy manager may manage a plurality of DHCP proxies, and a schematic diagram of an association relationship among the DHCP scheduler, the DHCP proxy manager, and the DHCP proxy is shown in fig. 2, a line segment in fig. 2 represents an association relationship, n is a threshold value of the DHCP proxy manager for managing the DHCP proxy, and reference may be made to an association relationship between any one DHCP proxy and the DHCP proxy manager in fig. 2 for an association relationship between other DHCP proxies and the DHCP proxy manager.
In order to realize that one DHCP proxy manager manages and controls a specified number of DHCP proxies, it is prevented that too many DHCP proxies sending information to the DHCP proxy manager cause message queue congestion of the DHCP proxy manager, and therefore the DHCP proxy manager needs to detect the number of DHCP proxies in communication connection and determine whether the number of DHCP proxies exceeds a threshold.
If the detected number of the DHCP proxy terminals exceeds the threshold, it indicates that the number of the DHCP proxy terminals is large, and a DHCP proxy terminal manager needs to be added, and the selected DHCP proxy terminals exceeding the threshold are migrated to the newly added DHCP proxy terminal manager for management.
When the current DHCP agent end manager monitors that the number of the DHCP agent ends of the communication connection is large, the DHCP agent ends exceeding the threshold value are migrated to the newly added DHCP agent end manager, the newly added DHCP agent end manager detects the number of the DHCP agent ends of the communication connection again, if the number of the received DHCP agent ends does not exceed the threshold value, the DHCP agent end manager is not added, and if the number of the received DHCP agent ends exceeds the threshold value, the DHCP agent end manager continues to be added, and the DHCP agent ends exceeding the threshold value are migrated to the added DHCP agent end manager.
By the mode, the DHCP agent end managers can be flexibly added according to the number of the DHCP agent ends, so that the condition that the DHCP agent end managers process information sent by a plurality of DHCP agent ends at the same time is avoided, and the high-efficiency management of the DHCP agent end managers on the DHCP agent ends can be realized.
After the number of the DHCP agent end managers is determined, the association relationship between the DHCP agent end managers and all DHCP agent ends in communication connection with the DHCP agent end managers can be established through message queues of the DHCP agent end managers, and the specific process is as follows:
firstly, a message queue of a DHCP proxy end manager is associated with a DHCP proxy end which is in communication connection with the DHCP proxy end manager, then the DHCP proxy end manager is associated with address information of the message queue, the association relationship among the DHCP proxy end manager, the DHCP proxy end and the message queue is shown in fig. 3, a line segment in fig. 3 represents the association relationship, n represents a threshold value which can control the DHCP proxy end by the DHCP proxy end manager, and the association relationship between other DHCP proxy ends and the message queue refers to any association relationship in fig. 3.
After the DHCP proxy manager associates with all DHCP proxy terminals in communication connection, the DHCP proxy manager receives selected information or request information sent by the DHCP proxy terminals, where in this embodiment, the selected information may be heartbeat information, the heartbeat information is sent according to a preset period, the heartbeat information indicates that the DHCP proxy terminals are currently in an online state, and the request information is used to request to obtain corresponding network resource information from the DHCP proxy manager.
It should be further noted that, in the embodiment of the present application, in the process of upgrading DHCP proxy terminals in batches or getting online after a large number of DHCP proxy terminals get offline, each DHCP proxy terminal sends a request for acquiring corresponding network resource information to the same DHCP proxy terminal manager through an RPC message queue, and the DHCP proxy terminal manager receives the request for acquiring network resource information sent by the DHCP proxy terminal.
Through the above description, the DHCP proxy manager will replace the DHCP scheduler to receive the heartbeat information or request information sent by the DHCP proxy, and the heartbeat information or request information is prevented from being directly sent to the DHCP scheduler, so that the heartbeat information or request information is prevented from being accumulated in the message queue of the RPC between the DHCP scheduler and the DHCP proxy manager.
Step S2: determining an identification list of an online DHCP proxy terminal based on each selected information, and sending the identification list to the DHCP scheduler; or acquiring the network resource information respectively corresponding to the DHCP proxy terminals sending the request information, and sending the network resource information corresponding to the DHCP proxy terminals to the corresponding DHCP proxy terminals.
In the above description, the DHCP proxy manager can determine that the DHCP proxy is an online DHCP proxy through the heartbeat information sent by the DHCP proxy, in this embodiment, the DHCP proxy has three states, where the three states are: the off-line state, the on-line open state, the on-line close state, the state of the DHCP proxy and the effect of the DHCP proxy in different states are shown in table 1:
TABLE 1
In the embodiment of the application, the DHCP proxy terminal in the off-line state cannot send and receive any information, and the DHCP proxy terminal manager cannot detect the existence of the DHCP proxy terminal in the off-line state; the DHCP agent end in the online closed state sends heartbeat information to prove that the DHCP agent end is not outside the online state and cannot receive the information of the DHCP agent end manager or send the information to the DHCP agent end manager; the DHCP proxy terminal in the online open state can send information to the DHCP proxy terminal manager and also can receive the information sent by the DHCP proxy terminal manager.
After explaining three states of the DHCP proxy, when the DHCP proxy sends heartbeat information to the DHCP proxy manager, the DHCP proxy can determine the online DHCP proxy as the DHCP proxy sending the heartbeat information, and generate an identification list according to the online DHCP proxy, where the identification list is shown in table 2:
TABLE 2
In the above table 2, the DHCP proxy is only exemplified by the DHCP proxy 1 and the DHCP proxy 2, and the storage form of other online DHCP proxies in table 2 refers to the DHCP proxy 1 or the DHCP proxy 2, which is not described herein.
In addition, when the DHCP proxy is upgraded in batch or is offline in a large amount and then online, the DHCP proxy manager receives request information sent by the DHCP proxy, the DHCP proxy manager analyzes identification information corresponding to each DHCP proxy from each received request information, the identification information is used for identifying the DHCP proxy in communication connection with the DHCP proxy manager, and after the identification information of each DHCP proxy is obtained, network resource information corresponding to each DHCP proxy is obtained based on each identification information, the network resource information includes information such as a network of a service host, a subnet of the service host, and a port of the service host, and after the network resource information corresponding to each DHCP proxy is obtained, the network resource information is sent to the corresponding DHCP proxy.
Through table 1, it can be known that all DHCP proxy terminals sending request information to the DHCP proxy terminal manager are in an online open state, and therefore, the DHCP proxy terminals can determine the DHCP proxy terminals in the online open state and the DHCP proxy terminals in the online closed state through the DHCP proxy terminals sending heartbeat information and the DHCP proxy terminals sending request information, the DHCP proxy terminals in the online open state send heartbeat information and request information to the DHCP proxy terminal manager, and the DHCP proxy terminals in the online closed state only send heartbeat information to the DHCP proxy terminal manager, and therefore, the DHCP proxy terminals not sending request information to the DHCP proxy terminal manager are used as the DHCP proxy terminals in the online closed state, and the state list is shown in table 3:
TABLE 3
After receiving the request information sent by the DHCP proxy end of the communication connection, the DHCP proxy end manager directly processes the request information sent by the DHCP proxy end and does not send the request information to the DHCP scheduler, so that the messages sent by the DHCP proxy end to the DHCP scheduler are reduced, and the message queue blockage of the DHCP scheduler is avoided.
Through the above description, the DHCP proxy manager determines the online DHCP proxy according to the DHCP scheduler that sends heartbeat information, and generates an identification list based on the online DHCP proxy, and in addition, the DHCP proxy manager determines the status list of the DHCP proxy according to the DHCP proxy that sends request information, after the DHCP proxy manager obtains the identification list and the status list, the DHCP proxy manager needs to send the identification list and the status list to the DHCP scheduler, and in a possible design, the DHCP proxy manager can also directly send the identification list and the status list to the database of the DHCP scheduler.
Specifically, before the DHCP proxy manager sends the identification list and the status list to the DHCP scheduler, the DHCP proxy manager needs to establish a first information channel according to a message distribution mechanism in a message queue, each DHCP proxy manager is bound to one information channel when establishing, each information channel has address information, and after the first information channel is established, the DHCP proxy manager directly sends the address information of the first information channel to the DHCP scheduler or a database of the DHCP scheduler.
After the first information channel is established, the DHCP proxy manager can send the identification list and the status list to the DHCP scheduler.
By the method, the DHCP agent side manager directly processes the information sent by the DHCP agent side, the DHCP scheduler is prevented from directly processing the information sent by the DHCP agent side, the online DHCP agent side is sent to the DHCP scheduler in the mode of the identification list, and the amount of the information sent to the DHCP scheduler is reduced, so that the pressure of the DHCP scheduler on processing the information sent by the DHCP agent side can be reduced, and further the blocking of a message queue of the RPC can be avoided.
After the DHCP proxy end manager sends the identification list and the state list to the DHCP dispatcher, when a service host of a user needs an IP address, an IP address allocation request needs to be sent to the DHCP dispatcher, after the DHCP dispatcher receives the IP address allocation request, the DHCP dispatcher can analyze port information of the service host and position information corresponding to the port information according to the IP address allocation request, the DHCP dispatcher finds a first DHCP proxy end on a computer node to which the port information belongs according to the port information of the service host, the identification information of the first DHCP proxy end is determined, the DHCP dispatcher generates first information based on the identification information of the first DHCP proxy end and the port information of the service host, and the first information is sent to the DHCP proxy end manager through a first information channel.
After receiving the first information, the DHCP agent end manager reads the identification information in the first information, finds the first DHCP agent end according to the identification information, and sends the first information to the first DHCP agent end, the first DHCP agent end analyzes the content in the first information, and creates a DHCP server end according to the content of the first information.
After the first DHCP proxy creates a DHCP server, the DHCP server obtains the port of the service host according to the port information of the service host, and allocates an IP address to the service host and sends the IP address to the service host through the port of the service host.
It should be further noted that one DHCP server may allocate IP addresses to a plurality of service hosts in the same network, one network corresponds to one DHCP server, after a service host goes offline, the DHCP server will recover the IP address of the service host, when a service host in a network corresponding to one DHCP server goes offline, the DHCP scheduler will notify the DHCP proxy manager through the first information channel, the DHCP proxy manager passes the message through to the corresponding DHCP proxy, and the DHCP proxy will delete the DHCP server corresponding to the network.
By the method, the DHCP agent manager can receive and process the selected information and the request information of the DHCP agent, so that the DHCP agent is prevented from directly sending a large amount of selected information and request information to the DHCP scheduler, the pressure of the DHCP scheduler on processing data information is reduced, and the message queue blockage caused by the information sent by the DHCP agent is avoided.
Based on the same inventive concept, an embodiment of the present application further provides a management and control apparatus for a DHCP proxy, where the apparatus is used to implement a function of a management and control method for a DHCP proxy, and with reference to fig. 4, the apparatus includes:
a receiving module 401, configured to receive selected information or request information sent by each DHCP proxy in communication connection;
a sending module 402, configured to determine an identifier list of an online DHCP proxy based on each selected information, send the identifier list to the DHCP scheduler or obtain network resource information corresponding to the DHCP proxy that sends each request information, and send the network resource information corresponding to the DHCP proxy to the corresponding DHCP proxy.
In a possible design, the receiving module 401 is specifically configured to detect the number of DHCP proxy terminals of the DHCP proxy terminal manager in communication connection, determine whether the number value exceeds a set threshold, migrate a selected DHCP proxy terminal exceeding the threshold in the number to a newly-added DHCP proxy terminal manager if it is determined that the number value exceeds the set threshold, and obtain an association relationship between the DHCP proxy terminal manager and the DHCP proxy terminal in communication connection if it is determined that the number value does not exceed the set threshold, and send the association relationship to the DHCP scheduler.
In a possible design, the sending module 402 is specifically configured to analyze identification information corresponding to each DHCP proxy from each request message, and obtain network resource information corresponding to each DHCP proxy based on each analyzed identification information.
In a possible design, the sending module 402 is further configured to establish a first information channel with the DHCP scheduler according to a message distribution mechanism in a message queue of the DHCP proxy manager.
In a possible design, the sending module 402 is further configured to read a message distribution mechanism in a message queue of the DHCP proxy manager, establish a first information channel with the DHCP scheduler based on the message distribution mechanism, and send the identifier list to the DHCP scheduler through the first information channel.
In a possible design, the sending module 402 is further configured to receive first information sent by the DHCP scheduler, where the first information includes location information of a service host and identification information matched from a database of the DHCP scheduler based on the location information, determine a DHCP proxy end corresponding to the identification information, and send port information of the service host to the DHCP proxy end corresponding to the identification information.
Through the device, the DHCP proxy end manager is used for managing and controlling the DHCP proxy end in communication connection, processing the selected information or the request information sent by the DHCP proxy end, generating the identification list and sending the identification list to the DHCP scheduler after processing the selected information of the DHCP proxy end, and directly replacing the DHCP scheduler to process the request information sent by the DHCP proxy end, thereby reducing the information in the message queue and avoiding the message blocking of the message queue.
Based on the same inventive concept, an embodiment of the present application further provides an electronic device, where the electronic device may implement the function of the foregoing management and control apparatus for the DHCP proxy, and with reference to fig. 5, the electronic device includes:
at least one processor 501 and a memory 502 connected to the at least one processor 501, in this embodiment, a specific connection medium between the processor 501 and the memory 502 is not limited in this application, and fig. 5 illustrates an example where the processor 501 and the memory 502 are connected through a bus 500. The bus 500 is shown in fig. 5 by a thick line, and the connection manner between other components is merely illustrative and not limited thereto. The bus 500 may be divided into an address bus, a data bus, a control bus, etc., and is shown with only one thick line in fig. 5 for ease of illustration, but does not represent only one bus or one type of bus. Alternatively, the processor 501 may also be referred to as a controller, without limitation to name a few.
In the embodiment of the present application, the memory 502 stores instructions executable by the at least one processor 501, and the at least one processor 501 may execute the instructions stored in the memory 502 to perform the foregoing DHCP proxy management method. The processor 501 may implement the functions of the various modules in the apparatus shown in fig. 4.
The processor 501 is a control center of the apparatus, and may connect various parts of the entire control device by using various interfaces and lines, and perform various functions and process data of the apparatus by operating or executing instructions stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the apparatus.
In one possible design, processor 501 may include one or more processing units and processor 501 may integrate an application processor that handles primarily operating systems, user interfaces, application programs, and the like, and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501. In some embodiments, processor 501 and memory 502 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 501 may be a general-purpose processor, such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, that may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the management and control method for the DHCP proxy disclosed in the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
Memory 502, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 502 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 502 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 502 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
By programming the processor 501, the code corresponding to the management and control method for the DHCP proxy described in the foregoing embodiment may be solidified into the chip, so that the chip can execute the step of management and control of the DHCP proxy in the embodiment shown in fig. 1 when running. How to program the processor 501 is well known to those skilled in the art and will not be described in detail herein.
Based on the same inventive concept, embodiments of the present application further provide a storage medium, where the storage medium stores computer instructions, and when the computer instructions run on a computer, the computer is caused to execute the foregoing management and control method of the DHCP proxy.
In some possible embodiments, the present application provides that the aspects of the method for managing and controlling a DHCP proxy may also be implemented in the form of a program product, which includes program code for causing the control device to execute the steps in the method for managing and controlling a DHCP proxy according to various exemplary embodiments of the present application described above in this specification when the program product runs on an apparatus.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (10)
1. A management and control method for a Dynamic Host Configuration Protocol (DHCP) agent is characterized in that the method is applied to a DHCP agent manager arranged on a selected computing server in at least one computing server, the DHCP agent manager is in communication connection with the DHCP agent on the at least one computing server, and the DHCP agent manager is also in communication connection with a DHCP scheduler, and comprises the following steps:
receiving selected information or request information sent by each DHCP agent end of communication connection, wherein the request information is used for requesting to acquire corresponding network resource information from the DHCP agent end manager;
determining an identification list of an online DHCP proxy terminal based on each selected information, and sending the identification list to the DHCP scheduler; or acquiring the network resource information respectively corresponding to the DHCP proxy terminals sending the request information, and sending the network resource information corresponding to the DHCP proxy terminals to the corresponding DHCP proxy terminals.
2. The method of claim 1, wherein before receiving the selected information or the request information sent by each DHCP proxy of the communication connection, further comprising:
detecting the number of DHCP proxy terminals in communication connection with the DHCP proxy terminal manager;
determining whether the quantity value exceeds a set threshold;
if the quantity value is determined to exceed a set threshold value, migrating the selected DHCP agent end exceeding the threshold value in the quantity to a newly-added DHCP agent end manager;
and if the quantity value is determined not to exceed the set threshold value, acquiring the association relationship between the DHCP agent end manager and the DHCP agent end in communication connection, and sending the association relationship to the DHCP scheduler.
3. The method of claim 1, wherein obtaining the network resource information corresponding to each DHCP proxy that sends each request message comprises:
analyzing the identification information corresponding to each DHCP agent terminal from each request information;
and acquiring network resource information corresponding to each DHCP proxy terminal based on each analyzed identification information.
4. The method of claim 1, wherein sending the list of identifications to the DHCP scheduler specifically comprises:
reading a message distribution mechanism in a message queue of the DHCP proxy end manager;
establishing a first information channel with the DHCP scheduler based on the message distribution mechanism;
and sending the identification list to the DHCP dispatcher through the first information channel.
5. The method according to any of claims 1-4, characterized by determining an identification list of online DHCP proxies based on respective selected information, sending said identification list to said DHCP scheduler; or, after obtaining the network resource information respectively corresponding to the DHCP proxy that sends each request information and sending the network resource information corresponding to each DHCP proxy to the corresponding DHCP proxy, the method further includes:
receiving first information sent by the DHCP scheduler, wherein the first information comprises position information of a service host and identification information matched from a database of the DHCP scheduler based on the position information;
determining a DHCP agent end corresponding to the identification information;
and sending the port information of the service host to a DHCP proxy end corresponding to the identification information.
6. A management and control device of a DHCP proxy side is characterized in that the device comprises:
the receiving module is used for receiving selected information or request information sent by each DHCP agent end of communication connection;
and the sending module is used for determining an identification list of an online DHCP proxy terminal based on each selected information, sending the identification list to the DHCP scheduler or obtaining network resource information respectively corresponding to the DHCP proxy terminals sending each request information, and sending the network resource information corresponding to the DHCP proxy terminals to the corresponding DHCP proxy terminals.
7. The apparatus of claim 6, wherein the sending module is specifically configured to parse identification information corresponding to each DHCP proxy from each request message, and obtain network resource information corresponding to each DHCP proxy based on each parsed identification information.
8. The apparatus of claim 6, wherein the receiving module is specifically configured to detect a number of DHCP proxy servers of the DHCP proxy manager in communication connection, determine whether the number value exceeds a set threshold, migrate a selected DHCP proxy server of the number that exceeds the threshold to a newly added DHCP proxy server if it is determined that the number value exceeds the set threshold, and obtain an association relationship between the DHCP proxy server and the DHCP proxy server of the communication connection if it is determined that the number value does not exceed the set threshold, and send the association relationship to the DHCP scheduler.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1-5 when executing the computer program stored on the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111574611.3A CN114301875A (en) | 2021-12-21 | 2021-12-21 | Management and control method and device for DHCP proxy side and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111574611.3A CN114301875A (en) | 2021-12-21 | 2021-12-21 | Management and control method and device for DHCP proxy side and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114301875A true CN114301875A (en) | 2022-04-08 |
Family
ID=80970020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111574611.3A Pending CN114301875A (en) | 2021-12-21 | 2021-12-21 | Management and control method and device for DHCP proxy side and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114301875A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103703724A (en) * | 2013-08-15 | 2014-04-02 | 华为技术有限公司 | Resource payment method |
CN107018177A (en) * | 2017-02-14 | 2017-08-04 | 中山大学 | It is a kind of to manage the terminal management system serviced with multizone concentratedly |
CN108307002A (en) * | 2018-05-09 | 2018-07-20 | 华为技术有限公司 | A kind of DHCP message processing method and processing device |
CN108429755A (en) * | 2018-03-21 | 2018-08-21 | 深圳天源迪科信息技术股份有限公司 | Basic network security information dynamic management platform and method |
US20200278892A1 (en) * | 2019-02-28 | 2020-09-03 | Cisco Technology, Inc. | Remote smart nic-based service acceleration |
CN111641733A (en) * | 2020-06-07 | 2020-09-08 | 深圳市乙辰科技股份有限公司 | Network bridge equipment management method and device and readable storage medium |
CN113742111A (en) * | 2021-09-13 | 2021-12-03 | 广东电网有限责任公司 | Micro-service RPC adaptive scheduling method and related device |
-
2021
- 2021-12-21 CN CN202111574611.3A patent/CN114301875A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103703724A (en) * | 2013-08-15 | 2014-04-02 | 华为技术有限公司 | Resource payment method |
CN107018177A (en) * | 2017-02-14 | 2017-08-04 | 中山大学 | It is a kind of to manage the terminal management system serviced with multizone concentratedly |
CN108429755A (en) * | 2018-03-21 | 2018-08-21 | 深圳天源迪科信息技术股份有限公司 | Basic network security information dynamic management platform and method |
CN108307002A (en) * | 2018-05-09 | 2018-07-20 | 华为技术有限公司 | A kind of DHCP message processing method and processing device |
US20200278892A1 (en) * | 2019-02-28 | 2020-09-03 | Cisco Technology, Inc. | Remote smart nic-based service acceleration |
CN111641733A (en) * | 2020-06-07 | 2020-09-08 | 深圳市乙辰科技股份有限公司 | Network bridge equipment management method and device and readable storage medium |
CN113742111A (en) * | 2021-09-13 | 2021-12-03 | 广东电网有限责任公司 | Micro-service RPC adaptive scheduling method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3402131A1 (en) | Resource configuration method, virtualized network function manager and network element management system | |
CN109766172B (en) | Asynchronous task scheduling method and device | |
WO2012070993A1 (en) | Method and arrangement for enabling service delivery in a telecommunications network | |
CN110764963A (en) | Service exception handling method, device and equipment | |
CN113067739B (en) | High-density container network deployment method and system | |
CN112860387A (en) | Distributed task scheduling method and device, computer equipment and storage medium | |
CN113067875A (en) | Access method, device and equipment based on dynamic flow control of micro-service gateway | |
CN111371772A (en) | Intelligent gateway current limiting method and system based on redis and computer equipment | |
CN110855746A (en) | Middleware management method, electronic device and storage medium | |
CN111491015A (en) | Preheating task processing method and system, proxy server and service center | |
CN115794317A (en) | Processing method, device, equipment and medium based on virtual machine | |
WO2020252724A1 (en) | Log processing method and device, and computer-readable storage medium | |
CN114979286A (en) | Access control method, device and equipment for container service and computer storage medium | |
CN113055493B (en) | Data packet processing method, device, system, scheduling device and storage medium | |
CN109995571B (en) | Method and device for matching server configuration and VNF application | |
CN114301875A (en) | Management and control method and device for DHCP proxy side and electronic equipment | |
CN111371668A (en) | Periodic transmission method, device, equipment and storage medium based on gratuitous ARP | |
CN109417561B (en) | Distributed resource management method and system | |
CN111858020A (en) | User resource limiting method, device and computer storage medium | |
CN109784041A (en) | Event-handling method and device and storage medium and electronic device | |
CN114528114B (en) | Data processing method, device and equipment | |
CN111245794B (en) | Data transmission method and device | |
CN111556043B (en) | Message processing method, device, system, equipment and readable storage medium | |
CN102611578A (en) | Network equipment data management system in multi-network-equipment environment | |
CN107454021B (en) | Communication 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 |