CN116233072A - Management method, device, equipment and medium of dynamic host configuration protocol server - Google Patents

Management method, device, equipment and medium of dynamic host configuration protocol server Download PDF

Info

Publication number
CN116233072A
CN116233072A CN202310027272.XA CN202310027272A CN116233072A CN 116233072 A CN116233072 A CN 116233072A CN 202310027272 A CN202310027272 A CN 202310027272A CN 116233072 A CN116233072 A CN 116233072A
Authority
CN
China
Prior art keywords
configuration protocol
host configuration
dynamic host
protocol server
master
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310027272.XA
Other languages
Chinese (zh)
Other versions
CN116233072B (en
Inventor
邱成成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Cisco Networking Technology Co Ltd
Original Assignee
Inspur Cisco Networking 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 Inspur Cisco Networking Technology Co Ltd filed Critical Inspur Cisco Networking Technology Co Ltd
Priority to CN202310027272.XA priority Critical patent/CN116233072B/en
Publication of CN116233072A publication Critical patent/CN116233072A/en
Application granted granted Critical
Publication of CN116233072B publication Critical patent/CN116233072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The embodiment of the specification discloses a management method, a device, equipment and a medium of a dynamic host configuration protocol server, comprising the following steps: acquiring link aggregation master-slave role information in a link aggregation module connected with each dynamic host configuration protocol server module; marking the master and slave roles by a plurality of dynamic host configuration protocol server modules according to the link aggregation master and slave role information; when the first dynamic host configuration protocol server module marked as the master role receives the first request message, responding to the first request message through the first dynamic host configuration protocol server module; and when the second dynamic host configuration protocol server module marked as the standby role receives the second request message, forwarding the second request message to the first dynamic host configuration protocol server module so as to respond to the second request message through the first dynamic host configuration protocol server module.

Description

Management method, device, equipment and medium of dynamic host configuration protocol server
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for managing a dynamic host configuration protocol server.
Background
As network sizes increase, network environments become increasingly complex, and redundant backups of critical network devices are also more common. When there are multiple DHCP servers (dynamic host configuration protocol servers) in the network, the multiple DHCP servers will respond to the address request of the client, and the client will configure its own address with the response message received first. Thus, there is uncertainty of DHCP Server service, and redundant DHCP Server response packets cause unnecessary consumption of device performance of the client and network bandwidth.
Disclosure of Invention
One or more embodiments of the present disclosure provide a method, an apparatus, a device, and a medium for managing a dynamic host configuration protocol server, which are used to solve the technical problems set forth in the background art.
One or more embodiments of the present disclosure adopt the following technical solutions:
one or more embodiments of the present disclosure provide a method for managing a dynamic host configuration protocol server, where the method is applied to a dynamic host configuration protocol server management system, the system includes a plurality of dynamic host configuration protocol server modules, and a link aggregation module connected to each dynamic host configuration protocol server module, and the method includes:
acquiring link aggregation master-slave role information in a link aggregation module connected with each dynamic host configuration protocol server module;
marking the master and slave roles by the multiple dynamic host configuration protocol server modules according to the link aggregation master and slave role information respectively;
when a first dynamic host configuration protocol server module marked as a master role receives a first request message, responding to the first request message through the first dynamic host configuration protocol server module;
and when the second dynamic host configuration protocol server module marked as the standby role receives the second request message, forwarding the second request message to the first dynamic host configuration protocol server module so as to respond to the second request message through the first dynamic host configuration protocol server module.
A management apparatus of a dynamic host configuration protocol server provided in one or more embodiments of the present disclosure is applied to a dynamic host configuration protocol server management system, where the system includes a plurality of dynamic host configuration protocol server modules, and a link aggregation module connected to each dynamic host configuration protocol server module, and the apparatus includes:
the acquisition unit acquires link aggregation master-slave role information in the link aggregation module connected with each dynamic host configuration protocol server module;
the marking unit is used for marking the master and slave roles according to the link aggregation master and slave role information respectively by the plurality of dynamic host configuration protocol server modules;
the first response unit is used for responding to the first request message through the first dynamic host configuration protocol server module when the first dynamic host configuration protocol server module marked as the master role receives the first request message;
and when the second dynamic host configuration protocol server module marked as the standby role receives a second request message, the second response unit forwards the second request message to the first dynamic host configuration protocol server module so as to respond to the second request message through the first dynamic host configuration protocol server module.
A management device of a dynamic host configuration protocol server provided in one or more embodiments of the present disclosure is applied to a dynamic host configuration protocol server management system, where the system includes a plurality of dynamic host configuration protocol server modules, and a link aggregation module connected to each dynamic host configuration protocol server module, and the device includes:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring chain 5-path aggregation master-slave role information in a link aggregation module connected with each dynamic host configuration protocol server module;
marking the master and slave roles by the multiple dynamic host configuration protocol server modules according to the link aggregation master and slave role information respectively;
when a first dynamic host configuration protocol server module marked as a master role receives a first request message, responding to the first request message through the first dynamic host configuration protocol server module; and 0, when the second dynamic host configuration protocol server module marked as the standby role receives the second request message, forwarding the second request message to the first dynamic host configuration protocol server module so as to respond to the second request message through the first dynamic host configuration protocol server module.
One or more embodiments of the present disclosure provide a nonvolatile computer storage medium applied to a dynamic host configuration protocol server management system, where the system includes a plurality of dynamic host configuration protocol server 5 modules, and a link aggregation module connected to each dynamic host configuration protocol server module, where computer executable instructions are stored and configured to:
acquiring link aggregation master-slave role information in a link aggregation module connected with each dynamic host configuration protocol server module;
marking the master and slave roles by the plurality of dynamic host configuration protocol server modules according to the link aggregation master and slave angle 0 color information respectively;
when a first dynamic host configuration protocol server module marked as a master role receives a first request message, responding to the first request message through the first dynamic host configuration protocol server module;
and when the second dynamic host configuration protocol server module marked as the standby role receives the second request message, forwarding the second request message to the first dynamic host configuration protocol server module so as to respond to the second request message through the first dynamic host configuration protocol server module by 5.
The above-mentioned at least one technical scheme that this description embodiment adopted can reach following beneficial effect:
according to the embodiment of the description, the management of the multiple DHCP Server master-slave roles is realized through the mlag master-slave roles, and the problem of address allocation service conflict is solved when multiple DHCP servers exist in the network. Meanwhile, by canceling the response of the standby DHCP Server to the client and maintaining the DHCP table entries, the performance consumption of the standby DHCP Server is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a flow chart illustrating a method for managing a dynamic host configuration protocol server according to one or more embodiments of the present disclosure;
FIG. 2 is a topology diagram of an application scenario provided by one or more embodiments of the present disclosure;
FIG. 3 is a schematic diagram of device internal modules of a mlag and a DHCP Server provided by one or more embodiments of the present disclosure;
FIG. 4 is a schematic structural diagram of a management device of a dynamic host configuration protocol server according to one or more embodiments of the present disclosure;
fig. 5 is a schematic structural diagram of a management device of a dynamic host configuration protocol server according to one or more embodiments of the present disclosure.
Detailed Description
The embodiment of the specification provides a management method, a device, equipment and a medium of a dynamic host configuration protocol server.
When a link aggregation (mlag) is used as a gateway and provides address allocation service, in order to realize redundant backup of the DHCP Server, the functions of the DHCP Server are started on the mlag master and slave equipment, and the same address pool is configured. In this case, DHCP request messages sent by different clients connected in parallel are shared by loads to the mlag master device or the slave device, and DHCP servers of the mlag master device and the slave device are independent of each other, so that address collision occurs. Current schemes for avoiding collisions:
before allocating address, DHCP Server sends icmp5 request with the address to be allocated as destination address, if reply is received, it indicates that there is address conflict, DHCP Server reallocates address pool again
Prior to allocation, an icmp request needs to be issued to confirm whether there is an address conflict.
2. And performing the synchronization of the DHCP table entries between the mlag main and standby equipment, so that the DHCP table entries of the mlag main and standby equipment are kept consistent, and conflicts are avoided when addresses are allocated.
For scheme 1 above: if the more addresses in the pool of assigned addresses of the mlag master or slave are compared to 0, the more collisions are likely and the more times there are a large number of icmp packets in the network to detect collisions,
and the longer the latency required for successful address assignment, the worse the user experience may be.
For 2 above: the DHCP table entries are synchronized between the mlag master and slave devices, certain bandwidth needs to be consumed, the master and slave devices need to maintain the DHCP table entries, and certain consumption is caused for the device performance.
In view of the above-mentioned drawbacks, an object of the embodiments of the present disclosure is to assign a role of 5 primary and secondary to multiple DHCP servers, and only the primary DHCP server responds to the DHCP request, and after the secondary DHCP server receives the DHCP request, the secondary DHCP server directly forwards the DHCP request to the primary device through the peerlink link, so that the primary device provides address allocation service. When the main equipment fails, the DHCP server of the standby equipment directly replies with a DHCP request to provide address allocation service, so that address conflict is avoided.
In order to make the technical solution in the present specification better understood by those skilled in the art, the technical solution in the embodiments of the present specification will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present specification, and it is apparent that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present disclosure.
Fig. 1 is a schematic flow diagram of a method for 5 management of a dynamic host configuration protocol server according to one or more embodiments of the present disclosure, where the flow may be executed by a management system of the dynamic host configuration protocol server. Some input parameters or intermediate results in the flow allow for manual intervention adjustments to help improve accuracy.
The management system of the dynamic host configuration protocol server of the embodiments of the present specification may include a plurality of dynamic host configuration protocol server modules, and a link aggregation module to which each dynamic host configuration protocol server module is connected
The method flow steps of the embodiment of the present specification are as follows:
s102, acquiring link aggregation master-slave role information in the link aggregation module connected with each dynamic host configuration protocol server module.
In the embodiment of the present disclosure, the link aggregation primary and standby information may perform primary and standby device election according to link aggregation, and determine primary roles and standby roles in a plurality of link aggregation modules in the link aggregation.
S104, marking the master and slave roles by the dynamic host configuration protocol server modules according to the link aggregation master and slave role information.
In this embodiment of the present disclosure, the active/standby roles are marked on the connected dynamic host configuration protocol server according to the link aggregation active/standby role information, for example, the link aggregation module 1 is connected to the dynamic host configuration protocol server module 1, the link aggregation module 2 is connected to the dynamic host configuration protocol server module 2, when the link aggregation module 1 is the active role, the link aggregation module 2 is the standby role, the dynamic host configuration protocol server module 1 is marked as the active role, and the dynamic host configuration protocol server module 2 is marked as the standby role.
And S106, when the first dynamic host configuration protocol server module marked as the master role receives the first request message, responding to the first request message through the first dynamic host configuration protocol server module.
S108, when the second dynamic host configuration protocol server module marked as the standby role receives the second request message, the second request message is forwarded to the first dynamic host configuration protocol server module so as to respond to the second request message through the first dynamic host configuration protocol server module.
Further, when the link aggregation master-slave role information changes, determining the changed link aggregation master-slave role information; and updating the master and slave roles of the plurality of dynamic host configuration protocol server modules according to the changed link aggregation master and slave role information.
For example, the link aggregation module 1 is connected to the dynamic host configuration protocol server module 1, the link aggregation module 2 is connected to the dynamic host configuration protocol server module 2, when the link aggregation module 1 is in a master role and the link aggregation module 2 is in a standby role, the dynamic host configuration protocol server module 1 is marked as a master role, and when the link aggregation module 2 is exchanged as a master role, the dynamic host configuration protocol server module 2 is exchanged as a master role.
Further, when the main character link aggregation module fails, determining a new main character link aggregation module in the rest link aggregation modules; and marking the dynamic host configuration protocol server module connected with the new main role link aggregation module as a main role.
For example, the link aggregation module 1 is connected to the dynamic host configuration protocol server module 1, the link aggregation module 2 is connected to the dynamic host configuration protocol server module 2, and when the link aggregation module 1 is in the master role and the link aggregation module 2 is in the standby role, the dynamic host configuration protocol server module 1 is marked as the master role, and the dynamic host configuration protocol server module 2 is marked as the standby role. When the link aggregation module 1 fails, the link aggregation module 2 is determined to be the primary role, and the dynamic host configuration protocol server module 2 is exchanged to be the standby role.
Further, before marking the active/standby roles by the plurality of dynamic host configuration protocol server modules according to the link aggregation active/standby role information, when the plurality of dynamic host configuration protocol server modules cannot acquire the link aggregation active/standby role information, the active/standby roles of the plurality of dynamic host configuration protocol server modules cannot be determined through the link aggregation active/standby role information, and the plurality of dynamic host configuration protocol server modules can be marked as the active roles, so that a subsequently received request message can be processed.
Further, when the plurality of dynamic host configuration protocol server modules cannot acquire the link aggregation master-slave role information within a preset time, the plurality of dynamic host configuration protocol server modules are marked as master roles, wherein the preset time can be counted through a timer.
In this embodiment of the present disclosure, when responding to the first request packet, the address allocation may be completed by responding to the first request packet with a request and an ACK. Wherein ACK (Acknowledge character) is an acknowledgement character, a transmission class control character that the receiving station sends to the sending station in data communication. Indicating that the transmitted data has been acknowledged with no errors. In the TCP/IP protocol, if the receiver successfully receives data, an ACK data is replied.
Application scenario topology of the embodiments of the present disclosure see fig. 2:
device1 and Device2 turn on mlag and DHCP server to provide address allocation services to downstream devices. Device1 and Device2 have the same address pool and are backup to each other. After receiving the DHCP request of the downlink client, the Switch randomly forwards the DHCP request to the Device1 or the Device2 through link aggregation load sharing, and because the DHCP server of the Device1 and the DHCP server of the Device2 are independent, the Device1 and the Device2 respectively perform address allocation, thereby causing address collision.
The embodiment of the specification provides a DHCP Server master-slave management system based on mrag, which manages the DHCP Server master-slave by means of the mrag master-slave role, avoids conflict of address allocation and improves user experience. See FIG. 3 for a schematic diagram of the device internal modules of the mlag and DHCP Server.
The DHCP Server module obtains the information of the master and slave roles of the mlag from the mlag module, and marks the master and slave roles of the DHCP Server of the device according to the obtained information.
When the DHCP Server marked as the main receives the request message of the client, the DHCP Server can normally respond to the offer and the ACK to complete the address allocation action.
When the DHCP Server marked as the standby automatically sends 1 acl on the mlag port for starting the DHCP Server function, the received client request message is directly forwarded to the DHCP Server marked as the main through the peer link, and the address allocation is carried out by the main DHCP Server, so that the performance consumption of the standby equipment is reduced.
When the DHCP Server module is started, a request is sent to the mlag module at regular time to acquire mlag master-slave role information, a timeout timer is started, no response of the mlag module is received after the timeout time is exceeded, the DHCP Server role of the equipment is set as a master, and acl for forwarding the DHCP request is deleted. If the response of the mlag module is received within the timeout period, the timer is refreshed.
When the primary and standby roles of the mlag change, the primary mlag master device fails, and the primary mlag master device is taken as the DHCP Server master device, which is obviously unsuitable. At the moment, after the master-slave switching occurs to the mlag module, the synchronous switching message can be actively sent to the DHCP Server module, so that the synchronous switching of the master-slave roles of the DHCP Server is realized, the master-slave switching is avoided after the DHCP Server module waits for overtime, and the response speed is improved.
The related parameters of the timer can be set according to the actual network condition to help the equipment to more reasonably manage the master role and the slave role of the DHCP Server. Timer parameters include, but are not limited to: and the DHCP Server can not acquire the overtime time and the overtime times of the mrag master/slave information at the time interval of the timing inquiry of the DHCP Server, the switching delay of the DHCP Server master/slave switching, and the like.
It should be noted that, in the embodiment of the present disclosure, management of multiple DHCP Server master/slave roles is implemented by using an mlag master/slave role, so as to solve the problem of providing address allocation service conflict when multiple DHCP servers exist in the network. Meanwhile, by canceling the response of the standby DHCP Server to the client and maintaining the DHCP table entry, the performance consumption of the standby DHCP Server is reduced.
Fig. 4 is a schematic structural diagram of a management apparatus of a dhcp server according to one or more embodiments of the present disclosure, where the apparatus is applied to a dhcp server management system, the system includes a plurality of dhcp server modules, and a link aggregation module connected to each dhcp server module, and the apparatus includes: an acquisition unit 402, a marking unit 404, a first response unit 406 and a second response unit 408.
An obtaining unit 402, configured to obtain link aggregation master/slave role information in the link aggregation module connected to each dynamic host configuration protocol server module;
a marking unit 404, configured to mark the active/standby roles of the plurality of dynamic host configuration protocol server modules according to the link aggregation active/standby role information;
a first response unit 406, configured to respond to the first request message by the first dynamic host configuration protocol server module when the first dynamic host configuration protocol server module marked as the master role receives the first request message;
and a second responding unit 408, configured to forward the second request message to the first dynamic host configuration protocol server module when the second dynamic host configuration protocol server module marked as the standby role receives the second request message, so as to respond to the second request message through the first dynamic host configuration protocol server module.
Further, the apparatus of the embodiments of the present disclosure further includes: a determining unit and an updating unit;
the determining unit is used for determining the changed link aggregation master-slave role information when the link aggregation master-slave role information changes;
and the updating unit updates the master and slave roles of the plurality of dynamic host configuration protocol server modules according to the changed link aggregation master and slave role information.
Fig. 5 is a schematic structural diagram of a management device of a dhcp server according to one or more embodiments of the present disclosure, where the device is applied to a dhcp server management system, and the system includes a plurality of dhcp server modules, and a link aggregation module connected to each dhcp server module, and the device includes:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring link aggregation master-slave role information in a link aggregation module connected with each dynamic host configuration protocol server module;
marking the master and slave roles by the multiple dynamic host configuration protocol server modules according to the link aggregation master and slave role information respectively;
when a first dynamic host configuration protocol server module marked as a master role receives a first request message, responding to the first request message through the first dynamic host configuration protocol server module;
and when the second dynamic host configuration protocol server module marked as the standby role receives the second request message, forwarding the second request message to the first dynamic host configuration protocol server module so as to respond to the second request message through the first dynamic host configuration protocol server module.
One or more embodiments of the present disclosure provide a nonvolatile computer storage medium applied to a dynamic host configuration protocol server management system, where the system includes a plurality of dynamic host configuration protocol server modules, and a link aggregation module connected to each dynamic host configuration protocol server module, where computer executable instructions are stored and configured to:
acquiring link aggregation master-slave role information in a link aggregation module connected with each dynamic host configuration protocol server module;
marking the master and slave roles by the multiple dynamic host configuration protocol server modules according to the link aggregation master and slave role information respectively;
when a first dynamic host configuration protocol server module marked as a master role receives a first request message, responding to the first request message through the first dynamic host configuration protocol server module;
and when the second dynamic host configuration protocol server module marked as the standby role receives the second request message, forwarding the second request message to the first dynamic host configuration protocol server module so as to respond to the second request message through the first dynamic host configuration protocol server module.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, devices, non-volatile computer storage medium embodiments, the description is relatively simple, as it is substantially similar to method embodiments, with reference to the section of the method embodiments being relevant.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing is merely one or more embodiments of the present description and is not intended to limit the present description. Various modifications and alterations to one or more embodiments of this description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of one or more embodiments of the present description, is intended to be included within the scope of the claims of the present description.

Claims (10)

1. A method for managing a dynamic host configuration protocol server, the method being applied to a dynamic host configuration protocol server management system, the system including a plurality of dynamic host configuration protocol server modules, and a link aggregation module to which each dynamic host configuration protocol server module is connected, the method comprising:
acquiring link aggregation master-slave role information in a link aggregation module connected with each dynamic host configuration protocol server module;
marking the master and slave roles by the multiple dynamic host configuration protocol server modules according to the link aggregation master and slave role information respectively;
when a first dynamic host configuration protocol server module marked as a master role receives a first request message, responding to the first request message through the first dynamic host configuration protocol server module;
and when the second dynamic host configuration protocol server module marked as the standby role receives the second request message, forwarding the second request message to the first dynamic host configuration protocol server module so as to respond to the second request message through the first dynamic host configuration protocol server module.
2. The method according to claim 1, wherein the method further comprises:
when the link aggregation master-slave role information changes, determining the changed link aggregation master-slave role information;
and updating the master and slave roles of the plurality of dynamic host configuration protocol server modules according to the changed link aggregation master and slave role information.
3. The method according to claim 1, wherein the method further comprises:
when the main character link aggregation module fails, determining a new main character link aggregation module in the rest link aggregation modules;
and marking the dynamic host configuration protocol server module connected with the new main role link aggregation module as a main role.
4. The method of claim 1, wherein the marking the plurality of dynamic host configuration protocol server modules with primary and backup roles respectively according to the link aggregation primary and backup role information, the method further comprises:
and when the plurality of dynamic host configuration protocol server modules cannot acquire the link aggregation master-slave role information, marking the plurality of dynamic host configuration protocol server modules as master roles.
5. The method of claim 4, wherein when the plurality of dhcp server modules cannot obtain the link aggregation master/slave role information, marking all of the plurality of dhcp server modules as master roles comprises:
and when the plurality of dynamic host configuration protocol server modules cannot acquire the link aggregation master-slave role information within the preset time, marking the plurality of dynamic host configuration protocol server modules as master roles.
6. The method of claim 1, wherein responding to the first request message comprises:
and responding to the request and the ACK to the first request message, and finishing address allocation.
7. A management apparatus for a dynamic host configuration protocol server, the apparatus being applied to a dynamic host configuration protocol server management system, the system comprising a plurality of dynamic host configuration protocol server modules, and a link aggregation module to which each dynamic host configuration protocol server module is connected, the apparatus comprising:
the acquisition unit acquires link aggregation master-slave role information in the link aggregation module connected with each dynamic host configuration protocol server module;
the marking unit is used for marking the master and slave roles according to the link aggregation master and slave role information respectively by the plurality of dynamic host configuration protocol server modules;
the first response unit is used for responding to the first request message through the first dynamic host configuration protocol server module when the first dynamic host configuration protocol server module marked as the master role receives the first request message;
and when the second dynamic host configuration protocol server module marked as the standby role receives a second request message, the second response unit forwards the second request message to the first dynamic host configuration protocol server module so as to respond to the second request message through the first dynamic host configuration protocol server module.
8. The apparatus of claim 7, wherein the apparatus further comprises: a determining unit and an updating unit;
the determining unit is used for determining the changed link aggregation master-slave role information when the link aggregation master-slave role information changes;
and the updating unit updates the master and slave roles of the plurality of dynamic host configuration protocol server modules according to the changed link aggregation master and slave role information.
9. A management device for a dynamic host configuration protocol server, the device being applied to a dynamic host configuration protocol server management system, the system comprising a plurality of dynamic host configuration protocol server modules, and a link aggregation module to which each dynamic host configuration protocol server module is connected, the device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring link aggregation master-slave role information in a link aggregation module connected with each dynamic host configuration protocol server module;
marking the master and slave roles by the multiple dynamic host configuration protocol server modules according to the link aggregation master and slave role information respectively;
when a first dynamic host configuration protocol server module marked as a master role receives a first request message, responding to the first request message through the first dynamic host configuration protocol server module;
and when the second dynamic host configuration protocol server module marked as the standby role receives the second request message, forwarding the second request message to the first dynamic host configuration protocol server module so as to respond to the second request message through the first dynamic host configuration protocol server module.
10. A non-volatile computer storage medium for use in a dynamic host configuration protocol server management system, the system comprising a plurality of dynamic host configuration protocol server modules, and a link aggregation module to which each dynamic host configuration protocol server module is connected, storing computer executable instructions configured to:
acquiring link aggregation master-slave role information in a link aggregation module connected with each dynamic host configuration protocol server module;
marking the master and slave roles by the multiple dynamic host configuration protocol server modules according to the link aggregation master and slave role information respectively;
when a first dynamic host configuration protocol server module marked as a master role receives a first request message, responding to the first request message through the first dynamic host configuration protocol server module;
and when the second dynamic host configuration protocol server module marked as the standby role receives the second request message, forwarding the second request message to the first dynamic host configuration protocol server module so as to respond to the second request message through the first dynamic host configuration protocol server module.
CN202310027272.XA 2023-01-09 2023-01-09 Management method, device, equipment and medium of dynamic host configuration protocol server Active CN116233072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310027272.XA CN116233072B (en) 2023-01-09 2023-01-09 Management method, device, equipment and medium of dynamic host configuration protocol server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310027272.XA CN116233072B (en) 2023-01-09 2023-01-09 Management method, device, equipment and medium of dynamic host configuration protocol server

Publications (2)

Publication Number Publication Date
CN116233072A true CN116233072A (en) 2023-06-06
CN116233072B CN116233072B (en) 2024-03-22

Family

ID=86568908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310027272.XA Active CN116233072B (en) 2023-01-09 2023-01-09 Management method, device, equipment and medium of dynamic host configuration protocol server

Country Status (1)

Country Link
CN (1) CN116233072B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160085560A1 (en) * 2014-09-18 2016-03-24 Arista Networks, Inc. Method and system for network device maintenance
CN110417761A (en) * 2019-07-17 2019-11-05 上海东土远景工业科技有限公司 Communication means and device based on dual-computer redundancy
CN114124812A (en) * 2021-11-22 2022-03-01 迈普通信技术股份有限公司 Method and device for maintaining consistency of table items and electronic equipment
CN115567486A (en) * 2022-09-20 2023-01-03 浪潮思科网络科技有限公司 Lease synchronization method, device, equipment and medium in MLAG environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160085560A1 (en) * 2014-09-18 2016-03-24 Arista Networks, Inc. Method and system for network device maintenance
CN110417761A (en) * 2019-07-17 2019-11-05 上海东土远景工业科技有限公司 Communication means and device based on dual-computer redundancy
CN114124812A (en) * 2021-11-22 2022-03-01 迈普通信技术股份有限公司 Method and device for maintaining consistency of table items and electronic equipment
CN115567486A (en) * 2022-09-20 2023-01-03 浪潮思科网络科技有限公司 Lease synchronization method, device, equipment and medium in MLAG environment

Also Published As

Publication number Publication date
CN116233072B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US7808987B2 (en) Distributed services for mesh networks
JP5331163B2 (en) IP address assignment system, DHCP server, and IP address assignment method
CN101656763B (en) IP address automatic distribution method, client and server
CN101316236B (en) Vrrp backup group load sharing method and router
CN101404621B (en) Method and routing device for implementing VRRP load balance
CN101217448B (en) Method and system to realize gateway dynamic load sharing
EP3047631A1 (en) Redundancy network protocol system
US9071612B2 (en) Service providing system
US9621412B2 (en) Method for guaranteeing service continuity in a telecommunication network and system thereof
CN107615723B (en) Internet protocol address allocation method and relay equipment
CN103560962A (en) Method for automatically updating host routing table entries of Ethernet switch and switch
CN115442333A (en) Self-networking method and device based on RS485 communication, computer equipment and medium
US8291111B1 (en) Responding to a DHCPLEASEQUERY message
CN113746733A (en) Table item synchronization method, gateway equipment, networking system and storage medium
CN116233072B (en) Management method, device, equipment and medium of dynamic host configuration protocol server
US7948983B2 (en) Method, computer program product, and apparatus for providing passive automated provisioning
WO2021253221A1 (en) Role control method, apparatus and device
CN103812957A (en) Method and device for managing ARP (Address Resolution Protocol) records
WO2018006684A1 (en) Message processing method and device, and router
JP2007274329A (en) Address management method in plurality of dhcp servers, dhcp server, and program
JP6147415B2 (en) Service discovery method in a computer network that is resistant to network changes
CN111064819B (en) Address backup method and device
CN112954133B (en) Method, device, electronic device and storage medium for synchronizing node time
US20230126682A1 (en) Fault tolerance method and apparatus of network device system, computer device, and storage medium
CN114124314B (en) Method for controlling client to be online, network equipment and client

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant