CN115208854B - MLAG dynamic double-master detection method, device, equipment and medium based on DHCP - Google Patents

MLAG dynamic double-master detection method, device, equipment and medium based on DHCP Download PDF

Info

Publication number
CN115208854B
CN115208854B CN202210164442.4A CN202210164442A CN115208854B CN 115208854 B CN115208854 B CN 115208854B CN 202210164442 A CN202210164442 A CN 202210164442A CN 115208854 B CN115208854 B CN 115208854B
Authority
CN
China
Prior art keywords
mlag
dhcp
tested
management port
dual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210164442.4A
Other languages
Chinese (zh)
Other versions
CN115208854A (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 CN202210164442.4A priority Critical patent/CN115208854B/en
Publication of CN115208854A publication Critical patent/CN115208854A/en
Application granted granted Critical
Publication of CN115208854B publication Critical patent/CN115208854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a dynamic double-master detection method, device, equipment and medium for MLAG (media access control) based on DHCP (dynamic host configuration protocol), which are used for solving the technical problem that when double-master detection is carried out on a management port in the prior art, the address of the management port changes and double-master detection fails, and the address of an opposite-end management port needs to be manually reconfigured. The method comprises the following steps: an MLAG dual-activity system is built through the first tested device and the second tested device; in the management network of the MLAG dual-active system, a Dynamic Host Configuration Protocol (DHCP) server is configured, and the acquisition mode of the management port address of the tested equipment is configured to be automatically acquired by the DHCP server; configuring double-master detection at a management port of the tested equipment based on the DHCP, and dynamically acquiring the management port address based on the DHCP when the management port address changes and the peer-link interface is Down so as to enable the double-master detection to be effective; and executing err-disable operation on interfaces of the second tested equipment except the management port and the peer-link interface so as to disconnect the second tested equipment from the dual-active system, thereby avoiding the dual-main phenomenon, facilitating maintenance and improving stability.

Description

MLAG dynamic double-master detection method, device, equipment and medium based on DHCP
Technical Field
The present application relates to the field of communications technologies, and in particular, to a dynamic dual-master detection method, device, equipment, and medium for MLAG based on DHCP.
Background
The cross-device link aggregation group (Multichassis Link Aggregation Group, MLAG) is a mechanism for realizing cross-device link aggregation, and performs cross-device link aggregation on one device and two other devices, so that the link reliability is improved from a single board level to a device level, and a dual-activity system is formed. The dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) is a network protocol for a local area network, which means that a server controls a range of IP addresses, and when a client logs into the server, the client can automatically obtain the IP address and subnet mask assigned by the server.
Conventional lateral virtualization techniques typically use MLAGs that guarantee high reliability due to their device-level redundancy, policing separation, elimination of STP loops, and reduced CPU utilization. When the peer-link is disconnected, a double-master phenomenon occurs in the networking, the double-master phenomenon can cause two devices to have the same configuration, and risks are brought to three-layer addresses, and double-master detection is needed to avoid the risks. The traditional double-main detection is generally carried out based on a service port or a management port, the service port is used for carrying out double-main detection, the bandwidth is occupied, and the management port is used for carrying out double-main detection, and the opposite terminal address is required to be designated. However, when the management network enables DHCP or the address dynamically acquired by the Client changes, the dual-master detection will fail and need to be reconfigured.
Disclosure of Invention
The embodiment of the application provides a dynamic double-master detection method, device, equipment and medium for MLAG (media access control) based on DHCP (dynamic host configuration protocol), which are used for solving the technical problem that when a management port performs double-master detection in the prior art, an address dynamically acquired by a Client terminal of DHCP or Client is started to change, the double-master detection fails, and an opposite-end management port address needs to be manually reconfigured.
On one hand, the embodiment of the application provides a dynamic double-master detection method for MLAG based on DHCP, which comprises the following steps:
based on a cross-device link aggregation (MLAG) mechanism, an MLAG dual-activity system is constructed through a first tested device and a second tested device;
in the management network of the MLAG dual-activity system, a Dynamic Host Configuration Protocol (DHCP) server is configured, and the acquisition mode of the management port address of the tested equipment is configured to be automatically acquired by the DHCP server;
configuring double-master detection at a management port of a device to be tested based on a DHCP, and dynamically acquiring the management port address based on the DHCP when the management port address changes and a peer-link interface is Down so as to enable the double-master detection to be effective;
and executing err-disable operation on interfaces of the second tested equipment except the management port and the peer-link interface so as to disconnect the second tested equipment from the dual-activity system.
In one implementation manner of the present application, after the MLAG dual-active system is constructed by the first device under test and the second device under test based on the cross-device link aggregation MLAG mechanism, the method further includes:
transmitting an MLAG synchronous message between the first tested device and the second tested device through a peer-link so as to synchronize information of the first tested device and the second tested device;
wherein, the MLAG synchronization message at least includes one of the following: MLAG priority and native MAC address, ARP entry, STP, VRRP protocol message information.
In one implementation manner of the present application, when the management port address changes and the peer-link interface Down drops, the management port address is dynamically acquired based on DHCP, so as to enable the dual-master detection to be effective, which specifically includes:
determining that the DHCP server in the management network is restarted due to fault, and reassigning the management port address, or determining that the Client is not successful in renewal, and acquiring the management port address again;
and when the management port address changes and the peer-link interface is Down, dynamically acquiring the management port address based on the DHCP so as to enable the double-master detection to be effective.
In one implementation manner of the present application, when the management port address changes and the peer-link interface Down drops, the method further includes, after dynamically obtaining the management port address based on DHCP to validate the dual-master detection:
based on the double-main detection, acquiring information of the first tested equipment, and packaging the information in a detection message so as to send the detection message to the second tested equipment;
analyzing the detection message, comparing the information of the first tested device with the corresponding information of the second tested device in the analysis result, and determining the master-slave relationship between the first tested device and the second tested device.
In one implementation manner of the present application, after the MLAG dual-active system is constructed by the first device under test and the second device under test based on the cross-device link aggregation MLAG mechanism, the method further includes:
when the first tested device sends an MLAG synchronous message to the second tested device according to a preset time interval, if the second tested device does not receive the MLAG synchronous message within a preset time length, the second tested device is modified to be a master device;
the preset time length corresponds to a plurality of preset time intervals.
In one implementation manner of the present application, after the interfaces of the second device under test except the management port and the peer-link interface perform err-disable operation to disconnect the second device under test from the dual-active system, the method further includes:
and when the peer-link interface UP is perceived, executing UP operation on the interface of the second tested device so as to enable the first tested device to be connected with the second tested device, and carrying out service processing according to a preset rule.
In one implementation manner of the present application, before the MLAG dual-active system is constructed by the first device under test and the second device under test based on the cross-device link aggregation MLAG mechanism, the method further includes:
and establishing TCP connection between the first tested device and the second tested device so as to enable the addresses of the first tested device and the second tested device to be communicated, wherein the management port address is three-layer reachable.
On the other hand, the embodiment of the application also provides a dynamic double-master detection device of the MLAG based on the DHCP, which comprises:
the construction unit is used for constructing an MLAG dual-activity system through the first tested device and the second tested device based on a cross-device link aggregation MLAG mechanism;
the configuration unit is used for configuring a Dynamic Host Configuration Protocol (DHCP) server in the management network of the MLAG dual-activity system, and configuring the acquisition mode of the management port address of the tested equipment as the automatic acquisition of the DHCP server;
the acquisition unit is used for configuring double-main detection at a management port of the tested equipment based on the DHCP, and dynamically acquiring the management port address based on the DHCP when the management port address changes and the peer-link interface of the first tested equipment is Down so as to enable the double-main detection to be effective;
and the execution unit is used for executing err-disable operation on interfaces of the second tested equipment except the management port and the peer-link interface so as to disconnect the second tested equipment from the dual-activity system.
On the other hand, the embodiment of the application also provides MLAG dynamic double-master detection equipment based on DHCP, which comprises:
at least one processor;
and 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:
the DHCP-based MLAG dynamic dual master detection method of any one of the above is performed.
In another aspect, embodiments of the present application also provide a non-volatile computer storage medium storing computer-executable instructions configured to:
the dynamic dual master detection method of MLAG based on DHCP as in any of the above.
The embodiment of the application provides a dynamic double-main detection method, a device, equipment and a medium for MLAG based on DHCP, which at least comprise the following beneficial effects: the MLAG dual-activity system is built through the first tested equipment and the second tested equipment, a DHCP server is configured in a management network, and the acquisition mode of the management port addresses of the first tested equipment and the second tested equipment is configured to allow the DHCP server to automatically acquire, so that the DHCP server can acquire the management port addresses of the first tested equipment and the second tested equipment in time; the dual-master detection is configured at the management port of the tested device based on the DHCP, and when the address of the management port changes and the device senses that the peer-link interface Down is dropped, the address of the management port is dynamically acquired based on the DHCP, so that the dual-master detection is effective, and the problem that configuration information needs to be manually modified due to failure of the dual-master detection when the address of the management port changes is avoided; and then, interfaces of the second tested equipment except the management port and the peer-link interface are used for executing err-disable operation, so that the second tested equipment is disconnected with the dual-active system, the dual-main phenomenon is avoided, the maintenance is convenient, and the stability of functions is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a schematic flow chart of a dynamic dual-master detection method of MLAG based on DHCP according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of another dynamic dual-master detection method for MLAG based on DHCP according to an embodiment of the application;
fig. 3 is a schematic structural diagram of a dynamic dual-master detection device of MLAG based on DHCP according to an embodiment of the present application;
fig. 4 is a schematic diagram of an internal structure of a dynamic dual-master detection device for MLAG based on DHCP according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application provides a dynamic double-main detection method, a device, equipment and a medium of MLAG (multi-layer network) based on DHCP (dynamic host configuration protocol), wherein an MLAG double-active system is built through first tested equipment and second tested equipment, a DHCP server is configured in a management network, and an acquisition mode of management port addresses of the first tested equipment and the second tested equipment is configured to allow the DHCP server to automatically acquire; the dual-master detection is configured at the management port of the tested device based on the DHCP, and when the address of the management port changes and the device senses that the peer-link interface Down is dropped, the address of the management port is dynamically acquired based on the DHCP, so that the dual-master detection is effective; and then executing err-disable operation on the interfaces of the second tested equipment except the management port and the peer-link interface, so that the second tested equipment is disconnected with the dual-activity system. The method solves the technical problems that when the prior art performs double-master detection on the management port, the address dynamically acquired by the Client side of starting the DHCP or the Client side changes, the double-master detection fails, and the address of the management port of the opposite end needs to be manually reconfigured.
The following describes the technical scheme provided by the embodiment of the application in detail through the attached drawings.
Fig. 1 is a schematic flow chart of a dynamic dual-master detection method for MLAG based on DHCP according to an embodiment of the present application. As shown in fig. 1, the dynamic dual-master detection method for MLAG based on DHCP provided by the embodiment of the present application mainly includes the following steps:
s101, based on a cross-device link aggregation MLAG mechanism, an MLAG dual-activity system is constructed through a first tested device and a second tested device.
The server carries out cross-device link aggregation on the device in the management network, the first tested device and the second tested device based on a cross-device link aggregation MLAG mechanism, so that the link reliability is improved from a single board level to a device level, and an MLAG dual-activity system is constructed.
In one embodiment of the application, before the server builds the MLAG dual-active system through the first tested device and the second tested device based on the cross-device link aggregation MLAG mechanism, TCP connection is established between the first tested device and the second tested device, so that the first tested device and the second tested device realize address intercommunication, and the three layers of management port addresses are reachable.
In one embodiment of the application, after the server builds the MLAG dual-active system through the first tested device and the second tested device based on a cross-device link aggregation MLAG mechanism, the first tested device and the second tested device can send MLAG synchronous messages through a peer-link so that information between the first tested device and the second tested device can be synchronized.
It should be noted that, in the MLAG synchronization packet according to the embodiment of the present application, various information of the transmitting end is included, for example: MLAG priority and information such as local MAC address, ARP list item, STP, VRRP protocol message information, etc.
In one embodiment of the present application, after the server builds the MLAG dual-active system based on the cross-device link aggregation MLAG mechanism by the first device under test and the second device under test, the first device under test sends an MLAG synchronization message to the second device under test at a preset time interval, and at this time, if the second device under test does not receive the MLAG synchronization message within a preset time period, the server modifies the second device under test to be the master device
It should be noted that, in the embodiment of the present application, the preset time period corresponds to a plurality of preset time intervals, the preset time interval in the present application is selected to be 60 seconds, the preset time period is selected to be 240 seconds, and the preset time interval and the preset time period can be set according to actual requirements, which is not specifically limited in the present application.
S102, configuring a Dynamic Host Configuration Protocol (DHCP) server in a management network of the MLAG dual-activity system, and configuring an acquisition mode of a management port address of the tested device as automatic acquisition of the DHCP server.
The server configures a DHCP server in a management network of the MLAG dual-active system so that the DHCP server performs a management role in the dual-active system. The server also configures the management port address acquisition mode of the first tested device and the second tested device to be a mode allowing the DHCP server to acquire automatically, so that the DHCP server can acquire the management port addresses of the first tested device and the second tested device in real time according to the requirements, and the subsequent message transmission or other service transmission is facilitated.
S103, configuring double-master detection at a management port of the tested device based on the DHCP, and dynamically acquiring the management port address based on the DHCP when the management port address changes and the peer-link interface executes Down so as to enable the double-master detection to be effective.
The server configures double-main detection at the management ports of the first tested device and the second tested device based on the DHCP, so that when the management port address changes, the server can dynamically acquire the management port address based on the DHCP, and when the peer-link interface Down is dropped, a double-main detection event is triggered, and the double-main detection is enabled to be effective.
Specifically, the server determines that the DHCP server in the management network fails, and needs to reassign the management port address, or determines that the Client lease expires and the Client is not renewing, and needs to reacquire the management port address, where the management port address changes in both cases, and at this time, the server can dynamically acquire the management port address based on DHCP. When the device perceives that the peer-link interface is Down, the double-master detection is effective, and the double-master detection can reacquire the real-time management port address based on the DHCP. Therefore, configuration change can be avoided, the stability of functions can be improved, maintenance is convenient, and manpower and material resources are saved.
In one embodiment of the present application, when the management port address changes and the peer-link interface Down is dropped, the server dynamically acquires the management port address based on DHCP, so that after the dual-master detection is effective, a plurality of pieces of relevant information of the first device under test are acquired based on the dual-master detection, and the acquired status information is encapsulated in the detection message, so that a service message containing the relevant information of the first device under test is sent to the second device under test. And then the server analyzes the received detection message through the second tested equipment to obtain a corresponding analysis result, and compares the related information of the first tested equipment with the corresponding information of the second tested equipment one by one according to the analysis result, so that the master-slave relation between the first tested equipment and the second tested equipment can be determined, and the follow-up processing of the double-master phenomenon according to the master-slave relation is facilitated.
S104, executing err-disable operation on interfaces of the second tested device except the management port and the peer-link interface so as to disconnect the second tested device from the dual-activity system.
The server also needs to execute err-disable operation on all interfaces of the second tested device except the management port and the peer-link interface, so that other interfaces of the second tested device are in a false dead state, namely, the other interfaces stop working, and the second tested device is disconnected with the dual-active system, so that the dual-main phenomenon can be avoided.
In one embodiment of the application, after the server executes err-disable operation on the interfaces of the second tested device except the management port and the peer-link interface so as to disconnect the second tested device from the dual-active system, the server determines that the fault is recovered by sensing that the peer-link interface is in an UP state, and at the moment, the server executes UP operation on the interface of the second tested device so as to enable the interface of the second tested device to be reused, and the first tested device and the second tested device are connected together through the peer-link interface so as to perform normal service processing according to preset rules.
Fig. 2 is a flow chart of another dynamic dual-master detection method for MLAG based on DHCP according to an embodiment of the present application. As shown in fig. 2, the application includes a DHCP Server configured in a management network, a first device under test DUT1 and a second device under test DUT2, where the Server constructs an MLAG between the first device under test DUT1 and the second device under test DUT2, and the first device under test DUT1 and the second device under test DUT2 perform message transmission and traffic exchange through a peer-link.
The application also configures the management port addresses of the two ends of the first tested device DUT1 and the second tested device DUT2 as the ip address DHCP, so that double-main detection is convenient, and the DHCP server can automatically acquire the management port addresses of the first tested device DUT1 and the second tested device DUT2, thereby realizing three-layer accessibility.
It should be noted that the method shown in fig. 2 is substantially the same as the method shown in fig. 1, and therefore, the portions not described in detail in fig. 2 may be specifically referred to the related description in fig. 1, and the disclosure is not repeated here.
The above is a method embodiment of the present application. Based on the same inventive concept, the embodiment of the application also provides a dynamic double-master detection device of the MLAG based on the DHCP, and the structure of the dynamic double-master detection device is shown in figure 3.
Fig. 3 is a schematic structural diagram of a dynamic dual-master detection device for MLAG based on DHCP according to an embodiment of the present application. As shown in fig. 3, the apparatus includes: a construction unit 301, a configuration unit 302, an acquisition unit 303, and an execution unit 304.
A construction unit 301, configured to construct an MLAG dual-activity system based on a cross-device link aggregation MLAG mechanism through a first device under test and a second device under test;
a configuration unit 302, configured to configure a dynamic host configuration protocol DHCP server in a management network of the MLAG dual-active system, and configure an acquisition manner of a management port address of the device under test to be automatically acquired by the DHCP server;
an obtaining unit 303, configured to configure dual-master detection at a management port of a device under test based on DHCP, and dynamically obtain the management port address based on DHCP when the management port address changes and the peer-link interface of the first device under test drops, so as to enable the dual-master detection to be effective;
and the execution unit 304 is used for executing err-disable operation on the interfaces of the second tested device except the management port and the peer-link interface so as to disconnect the second tested device from the dual-active system.
Fig. 4 is a schematic diagram of an internal structure of a dynamic dual-master detection device for MLAG based on DHCP according to an embodiment of the present application. As shown in fig. 4, the apparatus includes:
at least one processor;
and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to:
the DHCP-based MLAG dynamic dual master detection method of any one of the above is performed.
The embodiment of the application also provides a nonvolatile computer storage medium, which stores computer executable instructions, wherein the computer executable instructions are configured to:
the dynamic dual master detection method of MLAG based on DHCP as in any of the above.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that the present description may be provided as a method, system, or computer program product. Accordingly, the present specification embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description embodiments may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
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. The MLAG dynamic double-master detection method based on the DHCP is characterized by comprising the following steps:
based on a cross-device link aggregation (MLAG) mechanism, an MLAG dual-activity system is constructed through a first tested device and a second tested device;
in the management network of the MLAG dual-activity system, a Dynamic Host Configuration Protocol (DHCP) server is configured, and the acquisition mode of the management port address of the tested equipment is configured to be automatically acquired by the DHCP server;
configuring double-master detection at a management port of a device to be tested based on a DHCP, and dynamically acquiring the management port address based on the DHCP when the management port address changes and a peer-link interface is Down so as to enable the double-master detection to be effective;
and executing err-disable operation on interfaces of the second tested equipment except the management port and the peer-link interface so as to disconnect the second tested equipment from the dual-activity system.
2. The DHCP-based MLAG dynamic dual-master detection method according to claim 1, wherein after the cross-device link aggregation MLAG mechanism is used to construct an MLAG dual-active system by using a first device under test and a second device under test, the method further comprises:
transmitting an MLAG synchronous message between the first tested device and the second tested device through a peer-link so as to synchronize information of the first tested device and the second tested device;
wherein, the MLAG synchronization message at least includes one of the following: MLAG priority and native MAC address, ARP entry, STP, VRRP protocol message information.
3. The DHCP-based MLAG dynamic dual master detection method according to claim 1, wherein when said management port address changes and a peer-link interface Down is dropped, said management port address is dynamically acquired based on DHCP to validate said dual master detection, specifically comprising:
determining that the DHCP server in the management network is restarted due to fault, and reassigning the management port address, or determining that the Client is not successful in renewal, and acquiring the management port address again;
and when the management port address changes and the peer-link interface is Down, dynamically acquiring the management port address based on the DHCP so as to enable the double-master detection to be effective.
4. The DHCP-based MLAG dynamic dual master detection method according to claim 1, wherein said dynamically acquiring said management port address based on DHCP when said management port address changes and a peer-link interface Down is Down, so as to validate said dual master detection, said method further comprises:
based on the double-main detection, acquiring information of the first tested equipment, and packaging the information in a detection message so as to send the detection message to the second tested equipment;
analyzing the detection message, comparing the information of the first tested device with the corresponding information of the second tested device in the analysis result, and determining the master-slave relationship between the first tested device and the second tested device.
5. The DHCP-based MLAG dynamic dual-master detection method according to claim 1, wherein after the cross-device link aggregation MLAG mechanism is used to construct an MLAG dual-active system by using a first device under test and a second device under test, the method further comprises:
when the first tested device sends an MLAG synchronous message to the second tested device according to a preset time interval, if the second tested device does not receive the MLAG synchronous message within a preset time length, the second tested device is modified to be a master device;
the preset time length corresponds to a plurality of preset time intervals.
6. The DHCP-based MLAG dynamic dual master detection method according to claim 1, wherein after performing err-disable operation on the interfaces of the second device under test other than the management port and the peer-link interface to disconnect the second device under test from the dual-active system, the method further comprises:
and when the peer-link interface UP is perceived, executing UP operation on the interface of the second tested device so as to enable the first tested device to be connected with the second tested device, and carrying out service processing according to a preset rule.
7. The DHCP-based MLAG dynamic dual master detection method according to claim 1, wherein before the cross-device link aggregation MLAG mechanism is used to construct an MLAG dual-active system by using the first device under test and the second device under test, the method further comprises:
and establishing TCP connection between the first tested device and the second tested device so as to enable the addresses of the first tested device and the second tested device to be communicated, wherein the management port address is three-layer reachable.
8. Dynamic double-master detection device for MLAG based on DHCP, characterized in that it comprises:
the construction unit is used for constructing an MLAG dual-activity system through the first tested device and the second tested device based on a cross-device link aggregation MLAG mechanism;
the configuration unit is used for configuring a Dynamic Host Configuration Protocol (DHCP) server in the management network of the MLAG dual-activity system, and configuring the acquisition mode of the management port address of the tested equipment as the automatic acquisition of the DHCP server;
the acquisition unit is used for configuring double-main detection at a management port of the tested equipment based on the DHCP, and dynamically acquiring the management port address based on the DHCP when the management port address changes and the peer-link interface of the first tested equipment is Down so as to enable the double-main detection to be effective;
and the execution unit is used for executing err-disable operation on interfaces of the second tested equipment except the management port and the peer-link interface so as to disconnect the second tested equipment from the dual-activity system.
9. A DHCP-based MLAG dynamic dual master detection device, said device comprising:
at least one processor;
and 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:
a dynamic dual master detection method of MLAG based on DHCP according to any one of claims 1 to 7 is performed.
10. A non-transitory computer storage medium storing computer-executable instructions, the computer-executable instructions configured to:
a dynamic dual master detection method of MLAG based on DHCP according to any one of claims 1 to 7 is performed.
CN202210164442.4A 2022-02-22 2022-02-22 MLAG dynamic double-master detection method, device, equipment and medium based on DHCP Active CN115208854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210164442.4A CN115208854B (en) 2022-02-22 2022-02-22 MLAG dynamic double-master detection method, device, equipment and medium based on DHCP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210164442.4A CN115208854B (en) 2022-02-22 2022-02-22 MLAG dynamic double-master detection method, device, equipment and medium based on DHCP

Publications (2)

Publication Number Publication Date
CN115208854A CN115208854A (en) 2022-10-18
CN115208854B true CN115208854B (en) 2023-10-27

Family

ID=83574122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210164442.4A Active CN115208854B (en) 2022-02-22 2022-02-22 MLAG dynamic double-master detection method, device, equipment and medium based on DHCP

Country Status (1)

Country Link
CN (1) CN115208854B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737944A (en) * 2020-12-25 2021-04-30 浪潮思科网络科技有限公司 Bfd-based peer-link state detection method, device and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10346178B2 (en) * 2015-08-20 2019-07-09 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Secure network server boot without the use of DHCP and PXE
US10250437B2 (en) * 2015-10-29 2019-04-02 Arista Networks, Inc. Method and system for configuring network devices

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737944A (en) * 2020-12-25 2021-04-30 浪潮思科网络科技有限公司 Bfd-based peer-link state detection method, device and medium

Also Published As

Publication number Publication date
CN115208854A (en) 2022-10-18

Similar Documents

Publication Publication Date Title
WO2017152633A1 (en) Port binding implementation method and device
CN110401700B (en) Model loading method and system, control node and execution node
CN111669284B (en) OpenStack automatic deployment method, electronic device, storage medium and system
CN112104499B (en) Container network model construction method, device, equipment and medium
CN111682927A (en) Message synchronization method, device, equipment and medium based on MLAG environment
CN111459724B (en) Node switching method, device, equipment and computer readable storage medium
CN113204353B (en) Big data platform assembly deployment method and device
CN117075930B (en) Computing framework management system
CN115328662A (en) Process thread resource management control method and system
EP4068708A1 (en) Network operation method, apparatus, and device and storage medium
CN111865632A (en) Switching method of distributed data storage cluster and switching instruction sending method and device
CN111966465A (en) Method, system, equipment and medium for modifying configuration parameters of host machine in real time
CN115208854B (en) MLAG dynamic double-master detection method, device, equipment and medium based on DHCP
CN112698979A (en) Method and device for processing zookeeper double nodes, storage medium and processor
CN112559565A (en) Abnormity detection method, system and device
CN109842498B (en) Client configuration method, server, client and electronic equipment
CN116027705A (en) Main-standby switching and data synchronizing system and method for programmable controller
CN116016227A (en) Micro-service system arrangement visualization method, device and medium based on Docker compound
JP2019510306A (en) Method and apparatus for checking integrity of distributed service processing
CN117093161B (en) Memory management system, method, medium and equipment based on optical transceiver chip
CN117472440B (en) Chip control method and device, storage medium and electronic equipment
CN116743550B (en) Processing method of fault storage nodes of distributed storage cluster
CN117527637B (en) Method and device for detecting link failure, storage medium and electronic equipment
CN116192801B (en) DHCP (dynamic host configuration protocol) table entry synchronization method, equipment and medium based on MLAG (media-based access control) environment
CN117271212A (en) Snapshot method, device and medium of SDN

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