CN115567486A - Lease synchronization method, device, equipment and medium in MLAG environment - Google Patents

Lease synchronization method, device, equipment and medium in MLAG environment Download PDF

Info

Publication number
CN115567486A
CN115567486A CN202211144457.0A CN202211144457A CN115567486A CN 115567486 A CN115567486 A CN 115567486A CN 202211144457 A CN202211144457 A CN 202211144457A CN 115567486 A CN115567486 A CN 115567486A
Authority
CN
China
Prior art keywords
address
lease
equipment
standby
main
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211144457.0A
Other languages
Chinese (zh)
Inventor
牛玉婷
刘斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202211144457.0A priority Critical patent/CN115567486A/en
Publication of CN115567486A publication Critical patent/CN115567486A/en
Pending legal-status Critical Current

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/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • 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

Abstract

The embodiment of the specification discloses a lease synchronization method, a lease synchronization device, lease synchronization equipment and lease synchronization media in an MLAG environment, wherein the lease synchronization method, the lease synchronization device, the lease synchronization equipment and the lease synchronization media comprise the following steps: in an MLAG environment, determining a main device and a standby device of a dynamic host configuration protocol server; when the standby equipment receives a message of a specified client, the broadcast message is forwarded to the main equipment through the standby equipment, and a corresponding address is distributed to the specified client through the main equipment; generating an address lease table item corresponding to the address by the main equipment; and synchronizing the address lease table entry to the standby equipment through a preset synchronization channel.

Description

Lease synchronization method, device, equipment and medium in MLAG environment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a lease synchronization method, apparatus, device, and medium in an MLAG environment.
Background
An MLAG (Multi-Chassis Link Aggregation) technology is a technology for realizing cross-device Link Aggregation, and is used for carrying out cross-device Link Aggregation on interfaces on two access switches, so that the reliability of a Link is improved from a single board level to a device level, and a dual-active system is formed. Two aggregation switches are connected through a Peer-Link Link, and are logically virtualized into one device. The uplink flow of one side of two devices is shared to two MLAG devices based on flow load, wherein the received broadcast flow is forwarded to an opposite MLAG device through a Peer-Link port, and unidirectional flow isolation is set between the Peer-Link and the MLAG member port, thereby constructing a loop-free network. Compared with the traditional network, the MLAG configuration is relatively simple, the configuration is not required to be restarted after being completed, the forwarding decision is in the local, and most service flow is not required to be forwarded through a Peer-Link Link under the normal condition, so that the bandwidth of an interconnection path is prevented from becoming a bottleneck, and the time delay is reduced. When the uplink network flow or the downlink network flow is increased, higher bandwidth and higher reliability are provided.
At present, in an MLAG environment, an existing solution mainly configures a DHCP (Dynamic Host Configuration Protocol) SERVER service at the same time in two devices forming the MLAG, and requires that addresses of address pools of the two devices cannot be overlapped. The main and standby equipment are used as DHCP SERVER to distribute address, the main and standby equipment are configured with address pool in the same network segment, and both equipment can distribute address. In order to prevent IP address assignment conflicts, the addresses assigned on the primary device and the backup device must be mutually excluded, so half of the addresses of the address pool are available on both devices, respectively, and half of the assignable addresses are disabled on both devices, respectively, i.e. assuming that the first half of the addresses of a network segment can be assigned on the primary device and the second half of the addresses of the network segment can be assigned on the backup device.
In the MLAG networking, after one of the MLAG devices is abnormal, the allocated address of the device cannot be leased normally, and the client needs to reapply a new address after the lease expires, which causes service interruption of the client and influences on the original service after the new address is replaced. Meanwhile, only half of the addresses of each MLAG device are available, and although half of the addresses can be allocated to two devices, all the addresses can still be used. However, when one device is abnormal, only half of the addresses are available, and half of the addresses need to be reserved for standby in networking planning, which results in the waste of part of available addresses.
Disclosure of Invention
One or more embodiments of the present specification provide a lease synchronization method, apparatus, device, and medium in an MLAG environment, which are used to solve the technical problems in the background art.
One or more embodiments of the present specification adopt the following technical solutions:
one or more embodiments of the present specification provide a lease synchronization method in an MLAG environment, including:
in an MLAG environment, determining a main device and a standby device of a dynamic host configuration protocol server;
when the standby equipment receives a broadcast message of a specified client, the standby equipment forwards the broadcast message to the main equipment, and the main equipment distributes a corresponding first address to the specified client;
generating a first address lease table item corresponding to the first address through the main equipment;
and synchronizing the first address lease table entry to the standby equipment through a preset synchronization channel.
One or more embodiments of the present specification provide a lease synchronization apparatus in an MLAG environment, the apparatus including:
the role determination unit is used for determining the main equipment and the standby equipment of the dynamic host configuration protocol server in an MLAG environment;
the address allocation unit is used for forwarding the broadcast message to the main equipment through the standby equipment when the standby equipment receives the broadcast message of the appointed client, and allocating a corresponding first address to the appointed client through the main equipment;
a lease table generation unit, which generates a first address lease table corresponding to the first address through the master device;
and the lease table item synchronizing unit synchronizes the first address lease table item to the standby equipment through a preset synchronizing channel.
One or more embodiments of the present specification provide a lease synchronization apparatus in an MLAG environment, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
in an MLAG environment, determining a main device and a standby device of a dynamic host configuration protocol server;
when the standby equipment receives a broadcast message of a specified client, the standby equipment forwards the broadcast message to the main equipment, and the main equipment distributes a corresponding first address to the specified client;
generating a first address lease table item corresponding to the first address through the main equipment;
and synchronizing the first address lease table entry to the standby equipment through a preset synchronization channel.
One or more embodiments of the present specification provide a non-transitory computer storage medium storing computer-executable instructions configured to:
in an MLAG environment, determining a main device and a standby device of a dynamic host configuration protocol server;
when the standby equipment receives a broadcast message of a specified client, the standby equipment forwards the broadcast message to the main equipment and distributes a corresponding first address to the specified client through the main equipment;
generating a first address lease table item corresponding to the first address through the main equipment;
and synchronizing the first address lease table entry to the standby equipment through a preset synchronization channel.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
the embodiment of the specification is based on MLAG networking, realizes the synchronization of DHCP SERVER leases, enables an MLAG scene to support DHCP SERVER service, can fully utilize the address of an address pool, can smoothly switch the lease address of equipment under the condition that one MLAG device is abnormal, and does not need to reapply a new address by a client.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the description below are only some embodiments described in the present specification, and for those skilled in the art, other drawings may be obtained according to these drawings without creative efforts. In the drawings:
fig. 1 is a schematic flowchart of a lease synchronization method in an MLAG environment according to one or more embodiments of the present disclosure;
FIG. 2 is a schematic diagram of an MLAG networking environment provided in one or more embodiments of the present specification;
fig. 3 is a schematic diagram of a content format of a synchronization information packet of an MLAG according to one or more embodiments of the present disclosure;
fig. 4 is a schematic structural diagram of a lease synchronization apparatus in an MLAG environment according to one or more embodiments of the present disclosure;
fig. 5 is a schematic structural diagram of a lease synchronization apparatus in an MLAG environment according to one or more embodiments of the present disclosure.
Detailed Description
The embodiment of the specification provides a lease synchronization method, a lease synchronization device, lease synchronization equipment and lease synchronization media in an MLAG environment.
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present specification without any creative effort shall fall within the protection scope of the present specification.
Fig. 1 is a schematic flowchart of a lease synchronization method in an MLAG environment according to one or more embodiments of the present disclosure, where the lease synchronization method may be executed by a lease synchronization system. Certain input parameters or intermediate results in the flow allow for manual intervention adjustments to help improve accuracy.
The method of the embodiment of the specification comprises the following steps:
s102, in an MLAG environment, determining a main device and a standby device of a dynamic host configuration protocol server.
In the embodiment of the present specification, the MLAG is a dual active system, the control planes of two devices are independent, the member switch forwards independently, and the CPU load remains unchanged. After the deployment of the MLAG device is completed, the MLAG device is divided into two roles, i.e., a main device and a standby device, through protocol interaction, and under a normal condition, the main device and the standby device simultaneously forward and process service traffic. Therefore, the main and standby roles of a dynamic host configuration protocol SERVER (DHCP SERVER) can be determined by adopting the role of the MLAG, and when the MLAG role of the current equipment is main, the current equipment serves as the DHCP SERVER main; when the MLAG role of the current equipment is standby, the current equipment serves as a DHCP SERVER.
S104, when the standby equipment receives the broadcast message of the appointed client, the standby equipment forwards the broadcast message to the main equipment, and the main equipment distributes a corresponding first address to the appointed client.
In the embodiment of the present specification, after determining the main and standby roles of the DHCP SERVER, when the master device receives an address application from a specified DHCP client, that is, the master device receives a DISCOVER broadcast message or a REQUEST broadcast message from the specified DHCP client, and the master device responds to the application and allocates an address to the client. Meanwhile, the standby equipment also opens the DHCP service, when the client-side DISCOVER broadcast message or REQUEST broadcast message is received, no response is made, the switch chip in the standby equipment directly transfers the broadcast message to the main equipment through the Peer-Link Link for processing, and the main equipment uniformly distributes addresses.
And S106, generating a first address lease table item corresponding to the first address through the master device.
In the embodiment of the present specification, after the address is allocated by the primary device, a corresponding address lease entry is locally generated, the entry is synchronized to the standby device in real time through the DHCP synchronization channel, and after the standby device receives the entry information, the lease information is loaded into the lease address linked list of the DHCP SERVER, so that the consistency of the lease entries between the primary and standby devices is ensured. The first address lease entry includes one or more of a lease start time, a binding status, a lease address, an ID of the specified client, and a hostname of the specified client.
It should be noted that the generated first address lease entry is a lease addition, and due to the attributes included in the address lease entry, the address lease entry further has lease update (lease renewal) and lease deletion, for example, after the lease duration of the address lease expires, the address lease entry may be updated in the case of a user lease renewal.
Further, the above mentioned synchronization channel is a bidirectional synchronization channel, and the master device may synchronize information to the standby device, and the standby device may also synchronize information to the master device. And encapsulating the information to be synchronized into an MLAG protocol message, sending the message to opposite terminal equipment through a Peer-Link port, and analyzing the related information from the MLAG protocol by the opposite terminal equipment.
And S108, synchronizing the first address lease table entry to the standby equipment through a preset synchronization channel.
Further, the specified client applies for the address as a broadcast message, and if the specified client applies for the address as a unicast message, the standby device cannot forward the message to the main device through the Peer-Link port, so that in the embodiment of the present specification, the message applying for the address can be forwarded to the main device through the aforementioned synchronization channel, and in a real-time process, the unicast message can be forwarded to the main device through the synchronization channel, and a corresponding second address is allocated to the specified client through the main device; then, generating a second address lease table item corresponding to the second address by the master device; and finally, synchronizing the second address lease table entry to the standby equipment through the synchronization channel.
Furthermore, the above-mentioned features of the embodiments of the present specification are directed to lease addition, and when a lease is updated, a lease renewal broadcast packet of a specific client may be received at the standby device, and the lease renewal broadcast packet may be forwarded to the host device by the standby device, and if the lease renewal broadcast packet of the specific client is received at the host device, a forwarding process may be omitted; then, obtaining, by the master device, a renewal address and a renewal time corresponding to the renewal broadcast message, and generating a renewal address lease entry corresponding to the renewal address according to the renewal time.
Further, in this embodiment of the present specification, when the primary device goes offline abnormally, an MLAG role election is triggered, the standby device is set as a temporary primary device, and when the temporary primary device receives the broadcast packet of the specified client, a corresponding third address is allocated to the specified client through the temporary primary device; finally, a third address lease table entry corresponding to the third address may be generated by the temporary master device.
Further, in this embodiment of the present specification, when the master device is online again, an MLAG role election may be triggered again, the temporary master device is recovered as the standby device, and the third address lease entry is synchronized to the master device through the synchronization channel, so as to complete batch synchronization of entries. And then, the master device can normally perform responses such as address allocation, addition, update, deletion and the like of subsequent leases, and synchronize the table entry to the standby device in real time.
Further, in this embodiment of the present specification, when the standby device goes offline abnormally, after the primary device generates a first address lease entry corresponding to the first address, and after it is determined that the standby device goes online again, the first address lease entry may be synchronized to the standby device through the synchronization channel.
Further, in the embodiments of the present specification, the following technical features are specifically described:
fig. 2 is a schematic diagram of an MLAG networking environment provided in an embodiment of the present specification, in the MLAG environment, a device a and a device B establish an MLAG through a Peer-Link, where a port 2 of the device a and a port 2 of the device B respectively form a cross-device Link aggregation AGG1 with a port 1,2 of a device C, and other ports of the device C are directly connected to a PC device. The MLAG is a transverse virtualization technology, and logically virtualizes two devices of the MLAG into one device, which requires that configurations and service table entries of the two devices of the MLAG are basically consistent, so that the master device and the slave device simultaneously start a DHCP SERVER function and configure the same address pool.
When a PC applies for an address, both the main equipment and the standby equipment of the MLAG respond to an event of applying for a lease address of the PC, and the equipment which responds preferentially binds a corresponding lease address, wherein only one of the MLAG equipment has a corresponding lease address table entry, and the address table entries of the two equipment are inconsistent. When one device is offline, the assigned lease address is not synchronized to the backup device, the lease address bound by the client cannot be reused, and a new lease address needs to be applied again. In the MLAG networking, one device is required to be abnormally offline, and the other device can be smoothly switched without affecting the running service, so that the synchronization of DHCP information before and after the device switching is required, and the normal use and continuous lease of the client address are ensured.
In order to solve the above problem, the conventional DHCP SERVER service interacts with DHCP CLIENT through a DHCP message in a network, allocates appropriate IP addresses to various types of users, and can be configured according to an address pool and other network parameters. In the MLAG environment, two devices of the MLAG are configured to the same DHCP SERVER service, have the same address pool and virtual address, in this case, in order to prevent address conflict, realize lease address synchronization of the two MLAG devices and smooth switching in abnormal condition,
the embodiment of the specification can be technically optimized from the following aspects: determining the main and standby roles of the DHCP SERVER, establishing a DHCP synchronization channel, synchronizing the lease address of the DHCP SERVER in real time, processing the soft transfer of a DHCP unicast message, and synchronizing the restart lease address of a single device in batches. The following takes fig. 2 as an example to describe the specific implementation of each part in detail.
(1) Determining DHCP SERVER master and slave roles
The MLAG is a double-active system, the control surfaces of two devices are independent, the member switch is independently transmitted, and the CPU load is kept unchanged. After the deployment of the MLAG device is completed, the MLAG device is divided into two roles of a main device and a standby device through protocol interaction, and under a normal condition, the main device and the standby device simultaneously transmit and process service flow. Therefore, the main and standby roles of the DHCP SERVER are determined by adopting the role of the MLAG, and when the MLAG role of the current equipment is main, the current equipment serves as the DHCP SERVER main; when the MLAG role of the current equipment is standby, the current equipment serves as a DHCP SERVER.
After the main and standby roles of the DHCP SERVER are determined, when a DHCP client applies for an address, the main equipment responds to the application and allocates the address for the client. The standby equipment also starts the DHCP service, when the standby equipment receives the DISCOVER broadcast message or the REQUEST broadcast message of the client, the response is not made, the switch chip can directly and hard transfer the broadcast message to the main equipment for processing through the Peer-Link Link, and the addresses are uniformly distributed by the main equipment.
(2) Establishing DHCP synchronization channel
And a bidirectional synchronous channel is established, the main equipment can synchronize information to the standby equipment, and the standby equipment can also synchronize information to the main equipment. And encapsulating the information to be synchronized into an MLAG protocol message, sending the information to opposite-end equipment through a Peer-Link port, and analyzing the related information from the MLAG protocol by the opposite-end equipment. The content format diagram of the synchronization information packet of MLAG is shown in fig. 3, wherein DHCP information to be synchronized is encapsulated in the "DHCP info" field.
(3) Real-time synchronization of DHCP SERVER lease addresses
Lease addition: after the main equipment distributes the address, corresponding address lease entries are generated locally, the entries are synchronized to the standby equipment in real time through a DHCP synchronization channel, and after the standby equipment receives the entry information, the lease information is loaded into a lease address chain table of a DHCP SERVER, so that the consistency of the lease entries between the main equipment and the standby equipment is ensured.
Lease renewal: and after receiving the lease renewing message, the main equipment synchronizes the new table item information to the standby equipment.
Lease deletion: when the client RELEASEs the address, the main device receives the RELEASE message, sends the information of deleting the address table entry to the standby device, and deletes the corresponding table entry. When the server side deletes the address table item manually, a clearing command is sent to the opposite terminal equipment, and the opposite terminal equipment clears the local table item information.
The content of the synchronous address lease table entry mainly comprises the following steps: lease start time, current binding state, next binding state, lease address, hardware address, client ID, client hostname, and the like.
(4) DHCP unicast message soft switching processing
In the MLAG dual access environment shown in fig. 2, the DHCP unicast message sent by the PC1 is sent to the device C, the device C sends the DHCP unicast message to the device B through the Port 2 Port, the device B forwards the DHCP unicast message to the device a through the Peer-Link and the device a performs response processing. However, since the Port 2 of the master a and the Port 2 of the slave are configured with the same virtual IP, and the two MLAG devices are configured with the same virtual MAC address, the destination IP and the destination MAC of the unicast DHCP packet sent to the slave B are both the devices themselves, the packet is sent to the CPU for processing, and the message is discarded at the slave because the slave does not respond to the DHCP packet. The master device a does not receive the request message of the client, so it cannot respond to the request of the client.
Based on the above problem, the standby device needs to perform soft switching processing on the DHCP unicast message, that is, when receiving the DHCP message, the standby device encapsulates the DHCP message into an MLAG protocol message, and forwards the DHCP message to the main device through the DHCP synchronization channel for processing. The processing can be directed to the situation that after the client is bound with a certain IP address, the client sends a DHCP REQUEST unicast message, and the situation that the client sends a DHCP RELEASE unicast message to actively RELEASE the address allocated by the server, so that the main device can normally respond to the continuous lease and RELEASE of the client address.
(5) Batch synchronization of lease addresses for offline or restart of single device
As shown in fig. 2, in the topology, in the normal operating MLAG active-standby environment, the same processing flow of restarting a single device as the case of the abnormal offline and online of the device is the same, and the processing flows of the online and offline of the primary device and the standby device are respectively described below.
1) Main equipment up-down line
When the main device A is off-line abnormally, the standby device B triggers the MLAG role election again, and when the MLAG election state of the device B is completed and the role of the device B is changed into the main device, the response processing is allowed to be carried out on the DHCP message of the upper CPU to replace the original device A to distribute addresses for the client.
When the device A is online again, the MLAG role election is carried out with the device B again, at this time, the device A is newly elected to be a main device, and the device B is used as a standby device. The device B stops the response processing of the DHCP message of the upper CPU, and simultaneously synchronizes all the lease address table items bound on the device B to the main device A, thereby completing the batch synchronization of the table items. And then, the equipment A normally performs responses such as address allocation, updating and deleting of subsequent leases and the like, and the table entry is synchronized to the standby equipment B in real time.
2) Spare equipment connecting and disconnecting line
And after the standby equipment B is offline, the MLAG role and the state of the main equipment A are unchanged, the received DHCP message is normally responded, and an address is allocated and lease is continued for the client.
When the device B comes online again, the device a and the device B re-elect the MLAG, and at this time, the device a is still the master device and the device B is the standby device. The main device A normally processes DHCP response and synchronizes all address lease entries of the device to the standby device B in batch.
It should be noted that, in the embodiment of the present description, lease addresses of the primary device and the secondary device are synchronized in real time, so as to ensure consistency of entries between the primary device and the secondary device. Meanwhile, when a single device is abnormally off-line, the client does not need to reapply a new lease address, and another device can be smoothly switched without influencing the running service. In addition, when a single device is upgraded or restarted, lease addresses among devices can be synchronized to the restarted device in batches. Finally, the embodiments of the present description can implement lease synchronization by combining table entry synchronization and message synchronization, and if only table entries are synchronized, the client cannot normally renew a lease and release an address in an MLAG dual-homing environment; if only message synchronization is used, the Peer-Link port of the MLAG needs to receive and transmit a large number of DHCP messages, the stability of the MLAG is affected, and when a large number of clients simultaneously apply for addresses, part of the clients cannot apply for the addresses and the main and standby addresses are inconsistent.
Fig. 4 is a schematic structural diagram of a lease synchronization apparatus in an MLAG environment according to one or more embodiments of the present disclosure, where the lease synchronization apparatus includes: role determination unit 402, address assignment unit 404, lease table entry generation unit 406, and lease table entry synchronization unit 408.
A role determination unit 402, configured to determine a primary device and a secondary device of a dynamic host configuration protocol server in an MLAG environment;
an address allocating unit 404, configured to, when the standby device receives a broadcast packet of an assigned client, forward the broadcast packet to the main device through the standby device, and allocate a corresponding first address to the assigned client through the main device;
a lease entry generating unit 406, configured to generate, by the host device, a first address lease entry corresponding to the first address;
the lease table synchronization unit 408 synchronizes the first address lease table to the standby device through a preset synchronization channel.
Fig. 5 is a schematic structural diagram of a lease synchronization apparatus in an MLAG environment according to one or more embodiments of the present disclosure, where the structural diagram includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
in an MLAG environment, determining a main device and a standby device of a dynamic host configuration protocol server;
when the standby equipment receives a broadcast message of a specified client, the standby equipment forwards the broadcast message to the main equipment, and the main equipment distributes a corresponding first address to the specified client;
generating a first address lease table item corresponding to the first address through the main equipment;
and synchronizing the first address lease table entry to the standby equipment through a preset synchronization channel.
One or more embodiments of the present specification provide a non-transitory computer storage medium storing computer-executable instructions configured to:
in an MLAG environment, determining a main device and a standby device of a dynamic host configuration protocol server;
when the standby equipment receives a broadcast message of a specified client, the standby equipment forwards the broadcast message to the main equipment and distributes a corresponding first address to the specified client through the main equipment;
generating a first address lease table item corresponding to the first address through the main device;
and synchronizing the first address lease table entry to the standby equipment through a preset synchronization channel.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the apparatus, the device, and the nonvolatile computer storage medium, since they are substantially similar to the embodiments of the method, the description is simple, and for the relevant points, reference may be made to the partial description of the embodiments of the method.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may 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 may also be possible or may be advantageous.
The above description is merely one or more embodiments of the present disclosure and is not intended to limit the present disclosure. Various modifications and alterations to one or more embodiments of the present description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of one or more embodiments of the present specification should be included in the scope of the claims of the present specification.

Claims (10)

1. A lease synchronization method in an MLAG environment, the method comprising:
in an MLAG environment, determining a main device and a standby device of a dynamic host configuration protocol server;
when the standby equipment receives a broadcast message of a specified client, the standby equipment forwards the broadcast message to the main equipment and distributes a corresponding first address to the specified client through the main equipment;
generating a first address lease table item corresponding to the first address through the main device;
and synchronizing the first address lease table entry to the standby equipment through a preset synchronization channel.
2. The method of claim 1, wherein when the backup device receives the unicast message of the specified client, the method further comprises:
forwarding the unicast message to a main device through the synchronous channel, and distributing a corresponding second address to the designated client through the main device;
generating, by the master device, a second address lease table entry corresponding to the second address;
synchronizing the second address lease entry to the standby device via the synchronization channel.
3. The method of claim 1, further comprising:
when the standby equipment receives a reservation broadcasting message of a specified client, forwarding the reservation broadcasting message to the main equipment through the standby equipment;
and acquiring a renewal address and a renewal time corresponding to the renewal broadcast message through the master device, and generating a renewal address lease table item corresponding to the renewal address according to the renewal time.
4. The method of claim 1, wherein when the master device goes offline abnormally, the method further comprises:
triggering MLAG role election, setting the standby equipment as temporary main equipment, and distributing a corresponding third address to the appointed client through the temporary main equipment when the temporary main equipment receives the broadcast message of the appointed client;
and generating a third address lease table item corresponding to the third address by the temporary master device.
5. The method of claim 4, wherein when the master device comes back on-line, the method further comprises:
and triggering MLAG role election, recovering the temporary main equipment as the standby equipment, and synchronizing the third address lease table entry to the main equipment through the synchronization channel.
6. The method of claim 1, wherein when the standby device goes offline abnormally, after the primary device generates a first address lease entry corresponding to the first address, the method further comprises:
and after determining that the standby equipment is on-line again, synchronizing the first address lease table entry to the standby equipment through the synchronization channel.
7. The method of claim 1, wherein the first address lease entry comprises one or more of a lease start time, a binding status, a lease address, an ID of the specified client, and a hostname of the specified client.
8. A lease synchronization apparatus in an MLAG environment, the apparatus comprising:
the role determination unit is used for determining the main equipment and the standby equipment of the dynamic host configuration protocol server in an MLAG environment;
the address allocation unit is used for forwarding the broadcast message to the main equipment through the standby equipment when the standby equipment receives the broadcast message of the appointed client, and allocating a corresponding first address to the appointed client through the main equipment;
a lease table item generating unit, which generates a first address lease table item corresponding to the first address through the master device;
and the lease table item synchronizing unit synchronizes the first address lease table item to the standby equipment through a preset synchronizing channel.
9. A lease synchronization apparatus in an MLAG environment, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
in an MLAG environment, determining a main device and a standby device of a dynamic host configuration protocol server;
when the standby equipment receives a broadcast message of a specified client, the standby equipment forwards the broadcast message to the main equipment and distributes a corresponding first address to the specified client through the main equipment;
generating a first address lease table item corresponding to the first address through the main device;
and synchronizing the first address lease table entry to the standby equipment through a preset synchronization channel.
10. A non-transitory computer storage medium having stored thereon computer-executable instructions configured to:
in an MLAG environment, determining a main device and a standby device of a dynamic host configuration protocol server;
when the standby equipment receives a broadcast message of a specified client, the standby equipment forwards the broadcast message to the main equipment and distributes a corresponding first address to the specified client through the main equipment;
generating a first address lease table item corresponding to the first address through the main equipment;
and synchronizing the first address lease table entry to the standby equipment through a preset synchronization channel.
CN202211144457.0A 2022-09-20 2022-09-20 Lease synchronization method, device, equipment and medium in MLAG environment Pending CN115567486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211144457.0A CN115567486A (en) 2022-09-20 2022-09-20 Lease synchronization method, device, equipment and medium in MLAG environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211144457.0A CN115567486A (en) 2022-09-20 2022-09-20 Lease synchronization method, device, equipment and medium in MLAG environment

Publications (1)

Publication Number Publication Date
CN115567486A true CN115567486A (en) 2023-01-03

Family

ID=84740983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211144457.0A Pending CN115567486A (en) 2022-09-20 2022-09-20 Lease synchronization method, device, equipment and medium in MLAG environment

Country Status (1)

Country Link
CN (1) CN115567486A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116192801A (en) * 2023-02-17 2023-05-30 浪潮思科网络科技有限公司 DHCP (dynamic host configuration protocol) table entry synchronization method, equipment and medium based on MLAG (media-based access control) environment
CN116233072A (en) * 2023-01-09 2023-06-06 浪潮思科网络科技有限公司 Management method, device, equipment and medium of dynamic host configuration protocol server
CN116938826A (en) * 2023-09-14 2023-10-24 中移(苏州)软件技术有限公司 Network speed limiting method, device and system and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330531A (en) * 2008-07-31 2008-12-24 杭州华三通信技术有限公司 Method for processing DHCP address allocation and DHCP relay
CN104639364A (en) * 2014-12-02 2015-05-20 重庆尊贤科技有限公司 DHCP (dynamic host configuration protocol) backup method independent of support and coordination of master DHCP server
CN109639850A (en) * 2019-01-07 2019-04-16 烽火通信科技股份有限公司 A kind of method and system for realizing active and standby DHCP SERVER based on VRRP
CN114124812A (en) * 2021-11-22 2022-03-01 迈普通信技术股份有限公司 Method and device for maintaining consistency of table items and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330531A (en) * 2008-07-31 2008-12-24 杭州华三通信技术有限公司 Method for processing DHCP address allocation and DHCP relay
CN104639364A (en) * 2014-12-02 2015-05-20 重庆尊贤科技有限公司 DHCP (dynamic host configuration protocol) backup method independent of support and coordination of master DHCP server
CN109639850A (en) * 2019-01-07 2019-04-16 烽火通信科技股份有限公司 A kind of method and system for realizing active and standby DHCP SERVER based on VRRP
CN114124812A (en) * 2021-11-22 2022-03-01 迈普通信技术股份有限公司 Method and device for maintaining consistency of table items and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116233072A (en) * 2023-01-09 2023-06-06 浪潮思科网络科技有限公司 Management method, device, equipment and medium of dynamic host configuration protocol server
CN116233072B (en) * 2023-01-09 2024-03-22 浪潮思科网络科技有限公司 Management method, device, equipment and medium of dynamic host configuration protocol server
CN116192801A (en) * 2023-02-17 2023-05-30 浪潮思科网络科技有限公司 DHCP (dynamic host configuration protocol) table entry synchronization method, equipment and medium based on MLAG (media-based access control) environment
CN116192801B (en) * 2023-02-17 2024-03-26 浪潮思科网络科技有限公司 DHCP (dynamic host configuration protocol) table entry synchronization method, equipment and medium based on MLAG (media-based access control) environment
CN116938826A (en) * 2023-09-14 2023-10-24 中移(苏州)软件技术有限公司 Network speed limiting method, device and system and electronic equipment
CN116938826B (en) * 2023-09-14 2024-01-05 中移(苏州)软件技术有限公司 Network speed limiting method, device and system and electronic equipment

Similar Documents

Publication Publication Date Title
CN115567486A (en) Lease synchronization method, device, equipment and medium in MLAG environment
US6434612B1 (en) Connection control interface for asynchronous transfer mode switches
US5581552A (en) Multimedia server
US7751327B2 (en) Communication processing system, packet processing load balancing device and packet processing load balancing method therefor
EP3261290A1 (en) Software defined data center and method for deploying service cluster therein
CN100493086C (en) Method for realizing virtual IP protocol
WO2015146355A1 (en) Update management system and update management method
EP1780940A1 (en) High availability network systems
EP3086513A1 (en) Message processing method and gateway
CN102025798A (en) Address allocation processing method, device and system
JP2002057682A (en) Network interface changeover method and computer connectable to network
US10447652B2 (en) High availability bridging between layer 2 networks
JP6389956B2 (en) Method and system for managing network traffic
CN109495593B (en) Address allocation method and system
CN114070822B (en) Kubernetes Overlay IP address management method
US11153269B2 (en) On-node DHCP implementation for virtual machines
CN110324375B (en) Information backup method and related equipment
KR20170078799A (en) Virtual network function example migration method, device and system
CN101562576B (en) Route distribution method and equipment thereof
CN105979202B (en) Data transmission method and device
CN112615914A (en) Method for transmitting multicast hot standby table entries by using border gateway protocol
CN101304372B (en) Method, equipment and system for collocating access control list
CN103401954A (en) Implementation method of virtual DHCP (dynamic host configuration protocol)
JP2017038218A (en) Communication system and setting method
JP6983839B2 (en) Control group and how the control group works

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