Method and device for configuring DHCP in MLAG networking based on SDN, and medium

By monitoring and handling the DHCP configuration of abnormal devices in real time in the SDN and MLAG networking modules, the problems of DHCP service interruption and address changes under the MLAG networking are solved, and the flexibility and efficiency of DHCP configuration is realized, ensuring the stability of the network and resource utilization.

CN119071173AActive Publication Date: 2024-12-03INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411152821.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-12-03
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

Under MLAG networking, the main and backup equipment cannot provide DHCP services with the same address segment, and the address changes caused by client renewal cannot be guaranteed when a single device fails or interface oscillates.

Method used

By monitoring the status and device information of member switch devices in the SDN control module and the MLAG networking module in real time, deleting the DHCP configuration of abnormal devices, and deciding whether to reconfigure DHCP based on the memory usage status, using the SDN database to retrieve the original DHCP configuration and Send to an idle device and execute a preset exception handling algorithm to fix the exception device.

Benefits of technology

It improves the flexibility and efficiency of DHCP configuration, ensures the stability and availability of the network, avoids resource waste, realizes efficient utilization of resources, and quickly restores the normal operation status of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071173A_ABST
    Figure CN119071173A_ABST
Patent Text Reader

Abstract

The invention discloses a method and equipment for configuring DHCP (Dynamic Host Configuration Protocol) in MLAG (Multi-Link Aggregate) networking based on SDN (Software Defined Network) and a medium, and belongs to the technical field of MLAG networking configuration. The method comprises the following steps: configuring a DHCP (Dynamic Host Configuration Protocol) of member switch equipment under MLAG networking based on a DHCP front end, and receiving a DHCP log of the member switch equipment; monitoring member switch equipment in real time to obtain the state and equipment information of the member switch equipment; when the state of the member switch equipment is an abnormal state, deleting the DHCP of the abnormal equipment, and determining whether the memory occupancy state of the abnormal equipment is lower than a preset occupancy threshold; if the memory occupancy state is smaller than or equal to a preset occupancy threshold value, calling DHCP configuration of the abnormal equipment based on an SDN database, and sending the DHCP configuration to idle equipment; and processing the abnormal state of the abnormal equipment based on a preset abnormal processing algorithm so as to repair the abnormal equipment. Through the method, the problem of address change caused by lease renewal of the client can be solved when a single device fails or an interface oscillates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of MLAG networking configuration, and more particularly to a method, device and medium for configuring DHCP for MLAG networking based on SDN. Background Art

[0002] MLAG (Multi-Chassis Link Aggregation) is a technology used to improve network redundancy and load balancing, and is commonly used in data centers and enterprise networks. DHCP (Dynamic Host Configuration Protocol) is used to automatically assign IP addresses to devices on the network. SDN (Software Defined Networking) is a network architecture that abstracts network control functions from hardware devices and implements network configuration and management through software.

[0003] In the prior art, for example, patent CN116192801A proposes a method for synchronizing DHCP entries of shared address segments, which solves the problem of synchronizing DHCP entries of shared network segments. However, when a single MLAG member device fails, the private DHCP network segment service undertaken by the failed device will be interrupted, and other member devices cannot take over. In addition, there is a lack of response methods when a single device interface oscillates repeatedly, and DHCP services may not be provided normally after the failure is restored.

[0004] Therefore, the prior art has the following problems:

[0005] 1. In MLAG networking, the primary and backup devices cannot provide DHCP services in the same address segment;

[0006] 2. When a single device fails or the interface oscillates, the address change caused by the client's lease renewal cannot be guaranteed. Summary of the invention

[0007] The embodiments of the present application provide a method, device and medium for configuring DHCP in MLAG networking based on SDN, which are used to solve the following technical problems: how to provide DHCP services in the same address segment for the primary and backup devices in MLAG networking, and how to ensure that the client renews the lease resulting in address changes when a single device fails or the interface oscillates.

[0008] In a first aspect, an embodiment of the present application provides a method for configuring DHCP in an MLAG networking based on SDN, characterized in that the method is applied to an MLAG networking service system, wherein the MLAG networking service system comprises: an SDN control module and an MLAG networking module; the SDN control module comprises an SDN front end, an SDN controller and an SDN database; the MLAG networking module comprises multiple member switch devices and a DHCP front end, and the method comprises: configuring the DHCP of the member switch devices under the MLAG networking based on the DHCP front end, and receiving the DHCP log of the member switch devices; monitoring the member switch devices in real time to obtain the status and device information of the member switch devices; wherein the status comprises a normal status and an abnormal status, and the abnormal status comprises a DHCP configuration error, an IP allocation error, and an abnormal interface status; when the member switch device status is an abnormal status, deleting the DHCP of the abnormal device, and determining whether the memory occupancy status of the abnormal device is lower than a preset occupancy threshold; wherein the abnormal device is a member switch device that causes the abnormal status; if the memory occupancy status is less than or equal to the preset occupancy threshold, retrieving the DHCP configuration of the abnormal device based on the SDN database, and sending the DHCP configuration to an idle device; processing the abnormal status of the abnormal device based on a preset abnormal processing algorithm to repair the abnormal device.

[0009] In one implementation of the present application, the DHCP of the member switch devices under the MLAG network is configured based on the DHCP front-end, and the DHCP log of the member switch devices is received, specifically including: setting DHCP parameters for the member switch devices under the MLAG network through the DHCP front-end interface; wherein the DHCP parameters include IP addresses and lease times; receiving and storing the DHCP logs sent by the member switch devices; wherein the DHCP logs include DHCP requests and DHCP responses.

[0010] In one implementation of the present application, when the state of a member switch device is abnormal, the DHCP of the abnormal device is deleted, and it is determined whether the memory occupancy state of the abnormal device is lower than a preset occupancy threshold; specifically, the following steps are performed: when it is detected that the state of a member switch device is abnormal, the member switch device is marked as an abnormal device, and the DHCP service of the member switch device is stopped; the memory occupancy of the abnormal device is queried; and the memory occupancy is compared with the preset occupancy threshold to determine whether the abnormal device can continue to operate.

[0011] In one implementation of the present application, member switch devices are monitored in real time to obtain the status and device information of the member switch devices, specifically including: regularly sending status query requests to member switch devices to obtain the operating status, interface status and DHCP configuration information of the member switch devices; processing the operating status, interface status and DHCP configuration information based on a preset status analysis model to determine whether the member switch device is in a normal state, and determine the status and device information of the member switch device.

[0012] In one implementation of the present application, when the member switch device state is abnormal, the DHCP of the abnormal device is deleted, and after determining whether the memory occupancy state of the abnormal device is lower than a preset occupancy threshold, the method further includes: if the memory occupancy state is higher than the preset occupancy threshold, no DHCP configuration is performed on the abnormal device.

[0013] In one implementation of the present application, the lease and abnormal state of the abnormal device are processed based on a preset exception handling algorithm to repair the abnormal device, specifically including: comparing the preset exception handling strategy according to the type and abnormal state of the abnormal device to select a suitable exception handling strategy; executing the exception handling strategy and monitoring the status of the device and the DHCP configuration; when the preset maintenance threshold is reached, notifying the preset maintenance personnel.

[0014] In one implementation of the present application, the method also includes: determining whether the abnormal device is in a preset idle time period based on the lease information; if so, modifying the lease time of the abnormal device to the idle time period; if not, recording the lease time of the abnormal device as indefinite; waiting for a preset administrator to restore the device status of the abnormal device, and when the device status is normal, restoring the DHCP configuration of the abnormal device, and recording the lease of the abnormal device as expired.

[0015] In one implementation of the present application, the method further includes: querying the lease information of the member switch device according to the DHCP log; wherein the lease information includes the lease start time, end time and renewal status; when the lease of a member switch device has expired, querying the renewal status corresponding to the member switch device; when renewing, refreshing the lease of the member switch device whose lease has expired; when not renewing, deleting the IP record and static IP configuration of the member switch device.

[0016] In a second aspect, an embodiment of the present application further provides a device for configuring DHCP in an MLAG network based on SDN, characterized in that the device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: configure the DHCP of the member switch devices under the MLAG network based on the DHCP front end, and receive the DHCP log of the member switch devices; monitor the member switch devices in real time to obtain the status and device information of the member switch devices; wherein the status includes a normal status and an abnormal status, and the abnormal status includes a DHCP configuration error, an IP allocation error, and an abnormal interface status; when the member switch device status is an abnormal status, delete the DHCP of the abnormal device, and determine whether the memory occupancy status of the abnormal device is lower than a preset occupancy threshold; wherein the abnormal device is the member switch device that causes the abnormal status; if the memory occupancy status is higher than the preset occupancy threshold, do not perform DHCP configuration on the abnormal device; if the memory occupancy status is less than or equal to the preset occupancy threshold, retrieve the DHCP configuration of the abnormal device based on the SDN database, and send the DHCP configuration to the idle device; process the abnormal status of the abnormal device based on a preset abnormal processing algorithm to repair the abnormal device.

[0017] In a third aspect, an embodiment of the present application further provides a non-volatile computer storage medium for configuring DHCP in an MLAG network based on SDN, storing computer executable instructions, characterized in that the computer executable instructions are set to: configure the DHCP of the member switch devices under the MLAG network based on the DHCP front end, and receive the DHCP log of the member switch devices; monitor the member switch devices in real time to obtain the status and device information of the member switch devices; wherein the status includes a normal state and an abnormal state, and the abnormal state includes a DHCP configuration error, an IP allocation error, and an abnormal interface state; when the member switch device state is an abnormal state, delete the DHCP of the abnormal device, and determine whether the memory occupancy state of the abnormal device is lower than a preset occupancy threshold; wherein the abnormal device is the member switch device that causes the abnormal state; if the memory occupancy state is higher than the preset occupancy threshold, do not perform DHCP configuration on the abnormal device; if the memory occupancy state is less than or equal to the preset occupancy threshold, retrieve the DHCP configuration of the abnormal device based on the SDN database, and send the DHCP configuration to the idle device; process the lease and abnormal state of the abnormal device based on a preset exception processing algorithm to repair the abnormal state of the abnormal device.

[0018] The embodiment of the present application provides a method, device and medium for configuring DHCP in MLAG networking based on SDN, which has at least the following technical effects:

[0019] Improve the flexibility and efficiency of DHCP configuration: Through the DHCP front-end interface, administrators can easily configure the DHCP parameters of member switches in the MLAG network. This simplifies the operation process, improves configuration efficiency, and reduces the risk of configuration errors.

[0020] Real-time device monitoring: It can monitor the status and device information of member switch devices in real time, including normal status and various abnormal status (such as DHCP configuration errors, IP allocation errors, abnormal interface status, etc.). It can timely discover and handle potential problems, thereby ensuring the stability and availability of the network to a certain extent.

[0021] Intelligent exception handling: When the member switch device status is abnormal, it can intelligently delete the DHCP configuration of the abnormal device and decide whether to reconfigure DHCP based on the memory usage. It can avoid the waste of resources to a certain extent and ensure the normal operation of the network. At the same time, the lease and abnormal status of the abnormal device are processed through the exception handling algorithm, which helps to quickly restore the normal operation of the device.

[0022] Improve network resource utilization: When it is determined that the memory usage of an abnormal device is lower than the preset threshold, the original DHCP configuration can be retrieved from the SDN database and sent to the idle device, thereby achieving efficient resource utilization and reducing resource waste caused by device failure. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0024] Figure 1 A system diagram of configuring DHCP for MLAG networking based on SDN provided in an embodiment of the present application;

[0025] Figure 2 A flow chart of a method for configuring DHCP in an SDN-based MLAG network provided in an embodiment of the present application;

[0026] Figure 3 A schematic diagram of the internal structure of a device for configuring DHCP in an SDN-based MLAG network provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0028] The embodiments of the present application provide a method, device and medium for configuring DHCP in MLAG networking based on SDN, which are used to solve the following technical problems: how to provide DHCP services in the same address segment for the primary and backup devices in MLAG networking, and how to ensure that the client renews the lease and causes the address change when a single device fails or the interface vibrates.

[0029] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0030] like Figure 1 As shown, the MLAG networking service system includes: an SDN control module and an MLAG networking module; the SDN control module includes an SDN front end, an SDN controller and an SDN database; the MLAG networking module includes multiple member switch devices and a DHCP front end.

[0031] The SDN controller and the member switch devices under the MLAG network can communicate with each other through the management network, so that the controller can manage all member switch devices. The SDN controller can monitor the managed member switch devices in real time through protocols such as SNMP and SYLOG, and the SDN controller can configure and issue member switch devices through remote login protocols such as SSH and TELNET. The SDN controller can provide a WEB page to configure related DHCP services and record and store related data

[0032] Figure 2 The present invention provides a flowchart of configuring DHCP for MLAG networking based on SDN. Figure 2 As shown, the embodiment of the present application provides a method for configuring DHCP in an SDN-based MLAG network, which specifically includes the following steps:

[0033] Step 1: Configure DHCP for member switches in the MLAG network based on the DHCP front-end and receive DHCP logs from member switches.

[0034] First, set DHCP parameters for the member switches in the MLAG network through the DHCP front-end interface. The DHCP parameters include IP addresses and lease times.

[0035] The administrator logs in to the DHCP front-end interface. This interface provides a page for configuring and managing the DHCP settings of member switches in the MLAG network.

[0036] In the DHCP front-end interface, the administrator can set DHCP parameters for each member switch device in the MLAG network. These parameters mainly include IP address range and lease time. The IP address range defines the IP address segment that can be allocated to the device, while the lease time specifies the validity period of the IP address allocation.

[0037] Furthermore, a DHCP log sent by a member switch device is received and stored; wherein the DHCP log includes a DHCP request and a DHCP response.

[0038] After configuring DHCP parameters, the member switch device will provide DHCP services and record related DHCP logs. These logs contain detailed information about the device's processing of DHCP requests and responses, such as the request time, requested IP address, and response results.

[0039] The member switch device will send the generated DHCP logs back to the DHCP front end for centralized storage and analysis. After receiving these logs, the DHCP front end will save them in the specified storage location for subsequent query and analysis.

[0040] By receiving and storing DHCP logs, administrators can easily track and monitor the operating status of DHCP services in the network, and promptly discover and handle potential problems. At the same time, DHCP logs also provide important data support for network troubleshooting and performance optimization.

[0041] Step 2: monitor the member switch devices in real time to obtain the status and device information of the member switch devices; wherein the status includes a normal status and an abnormal status, and the abnormal status includes a DHCP configuration error, an IP allocation error, and an abnormal interface status.

[0042] First, a status query request is periodically sent to a member switch device to obtain the running status, interface status, and DHCP configuration information of the member switch device.

[0043] In order to monitor the status of member switch devices in real time, the system will periodically (for example, every half an hour) send status query requests to each member switch device. These requests are intended to obtain the device's operating status, interface status, and DHCP configuration information.

[0044] The operating status reflects the overall working condition of the device, such as whether it is running normally, whether there are any faults, etc. The interface status provides the connection status of each network interface of the device, including whether it is connected, the connection speed, the data transmission volume, etc. The DHCP configuration information shows the DHCP service settings of the device and the currently allocated IP address.

[0045] Furthermore, the running status, interface status and DHCP configuration information are processed based on a preset status analysis model to determine whether the member switch device is in a normal state, and to determine the status and device information of the member switch device.

[0046] Once the response from the member switch is received, the system processes the status information based on a preset status analysis model. The status analysis model may contain a series of rules and algorithms to evaluate the status indicators of the device based on historical data.

[0047] Determine whether the device is in normal working condition based on the operating status. If the device reports a fault or anomaly, the device is marked as abnormal. Check the interface status to confirm whether all network interfaces are operating normally. If an interface is disconnected, slow, or has other problems, the device will also be considered abnormal. Analyze the DHCP configuration information to check whether there are DHCP configuration errors or IP allocation errors. For example, if the DHCP service is not started correctly, the IP address pool is set incorrectly, or there is an IP address conflict, etc., it will be considered an abnormal state.

[0048] Step 3: When the member switch device state is abnormal, delete the DHCP of the abnormal device, and determine whether the memory occupancy state of the abnormal device is lower than a preset occupancy threshold; wherein the abnormal device is the member switch device that causes the abnormal state.

[0049] First, when it is detected that the state of a member switch device is abnormal, the member switch device is marked as an abnormal device, and the DHCP service of the member switch device is stopped.

[0050] When a member switch device is found to be in an abnormal state through real-time monitoring (such as DHCP configuration error, IP allocation error, abnormal interface status), the device is marked as an abnormal device. In order to prevent the abnormal device from further affecting the network, the DHCP service of the abnormal device is stopped. Stopping the DHCP service can ensure that the device will not continue to allocate incorrect IP addresses or propagate incorrect configuration information.

[0051] Furthermore, query the memory usage of abnormal devices.

[0052] After stopping the DHCP service, query the memory usage of the abnormal device. It is understandable that this step is to evaluate the performance status and resource availability of the device. The memory usage can reflect the load status and operating efficiency of the device and is an important indicator for judging whether the device can continue to undertake the task.

[0053] Furthermore, the memory usage is compared with a preset usage threshold to determine whether the abnormal device can continue to operate.

[0054] The queried memory usage is compared with the preset usage threshold. The preset usage threshold is set based on factors such as the device's hardware configuration, performance requirements, and network environment. It is used to determine whether the device has sufficient resources to continue running or take on other tasks.

[0055] If the memory usage of the abnormal device is lower than the preset threshold, it means that the device still has sufficient resources to use, and it may only need to repair or adjust the DHCP configuration to return to normal. On the contrary, if the memory usage is higher than or equal to the preset threshold, it means that the device resources are tight and further measures may be needed, such as transferring services to other devices or upgrading hardware.

[0056] Step 4: If the memory occupancy status is less than or equal to the preset occupancy threshold, retrieve the DHCP configuration of the abnormal device based on the SDN database and send the DHCP configuration to the idle device.

[0057] Retrieve the original DHCP configuration information of the abnormal device based on the SDN database. The SDN database centrally stores various configuration information in the network, including DHCP configuration. By querying the database, the normal DHCP configuration of the abnormal device can be obtained. After obtaining the original DHCP configuration of the abnormal device, the configuration information is sent to the idle devices in the network. Idle devices refer to devices that are not currently responsible for DHCP services or other important tasks. They have sufficient resources to take over the DHCP services of abnormal devices.

[0058] Step 5: Process the abnormal state of the abnormal device based on a preset abnormality processing algorithm to repair the abnormal device.

[0059] First, according to the type and abnormal state of the abnormal device, compare the preset exception handling strategies to select the appropriate exception handling strategy.

[0060] According to the type of abnormal device and the specific abnormal state, the system compares it with the preset abnormality handling strategy. The preset strategy may include specific solutions for different types and degrees of DHCP configuration errors, IP allocation errors, interface status abnormalities, etc. Through comparison, the system can select the most suitable handling strategy for the current abnormal state.

[0061] Furthermore, the exception handling strategy is executed and the status of the device and the DHCP configuration are monitored.

[0062] After selecting the appropriate exception handling strategy, the strategy is executed to repair the abnormal device. At the same time, the system will continue to monitor the status of the device and the DHCP configuration to ensure that the repair measures are taking effect and adjust the strategy in time to deal with new situations that may arise.

[0063] Furthermore, when a preset maintenance threshold is reached, a preset maintenance person is notified.

[0064] If the number of times the exception handling strategy is executed reaches the preset maintenance threshold, the preset maintenance personnel will be notified. After receiving the notification, the maintenance personnel can further check and manually repair the equipment to ensure the stability and reliability of the network service.

[0065] In addition, this application also includes the following methods:

[0066] First, based on the lease information, determine whether the abnormal device is in the preset idle time period; if so, modify the lease time of the abnormal device to the idle time period. The idle time period is set according to network usage and device load, and is intended to optimize the use of network resources. If the abnormal device is in the idle time period, modify the lease time of the device to the idle time period, and the device will not be assigned a new IP address during the time period, thereby saving network resources.

[0067] If not, the lease time of the abnormal device is recorded as indefinite. If the abnormal device is not in an idle period, the lease time of the device is recorded as indefinite. It is understandable that this is done to ensure that during the peak period of the network, the abnormal device will not affect the normal operation of the network due to the expiration of the lease.

[0068] Further, wait for the preset administrator to restore the device status of the abnormal device. When the device status is normal, restore the DHCP configuration of the abnormal device and record the lease of the abnormal device as expired. When the device status returns to normal, restore the DHCP configuration of the device and record its lease as expired for subsequent lease management.

[0069] Further, the lease information of the member switch device is queried according to the DHCP log; wherein the lease information includes the lease start time, end time and renewal status.

[0070] Further, when the lease of a member switch device has expired, the renewal status of the member switch device is queried. When it is detected that the lease of a member switch device has expired, the renewal status of the device is queried.

[0071] When renewing the lease, refresh the lease of the expired member switch device. If the device chooses to renew the lease, refresh the lease of the device to ensure that it can continue to use network resources normally.

[0072] When not renewing, delete the IP record and static IP configuration of the member switch device. If the device chooses not to renew, delete the IP record and static IP configuration of the device to release network resources for other devices to use.

[0073] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, this application embodiment also provides a device for configuring DHCP based on SDN MLAG networking, and its structure is as follows: Figure 2 shown.

[0074] Figure 3 The internal structure diagram of a device for configuring DHCP based on SDN MLAG networking is provided in the embodiment of the present application. Figure 3 As shown, the device includes:

[0075] at least one processor 201;

[0076] and, a memory 202 communicatively connected to the at least one processor;

[0077] The memory 202 stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor 201 to enable at least one processor 201 to:

[0078] Based on the DHCP front-end, configure the DHCP of the member switch devices under the MLAG network, and receive the DHCP logs of the member switch devices; monitor the member switch devices in real time to obtain the status and device information of the member switch devices; wherein the status includes normal status and abnormal status, and the abnormal status includes DHCP configuration error, IP allocation error, and interface status abnormality; when the member switch device status is abnormal, delete the DHCP of the abnormal device, and determine whether the memory occupancy status of the abnormal device is lower than the preset occupancy threshold; wherein the abnormal device is the member switch device that causes the abnormal status; if the memory occupancy status is higher than the preset occupancy threshold, do not configure DHCP for the abnormal device; if the memory occupancy status is less than or equal to the preset occupancy threshold, retrieve the DHCP configuration of the abnormal device based on the SDN database, and send the DHCP configuration to the idle device; process the lease and abnormal status of the abnormal device based on the preset exception processing algorithm to repair the abnormal status of the abnormal device.

[0079] Some embodiments of the present application provide corresponding Figure 1A non-volatile computer storage medium for configuring DHCP for MLAG networking based on SDN stores computer executable instructions, wherein the computer executable instructions are set as follows:

[0080] Based on the DHCP front-end, configure the DHCP of the member switch devices under the MLAG network, and receive the DHCP logs of the member switch devices; monitor the member switch devices in real time to obtain the status and device information of the member switch devices; wherein the status includes normal status and abnormal status, and the abnormal status includes DHCP configuration error, IP allocation error, and interface status abnormality; when the member switch device status is abnormal, delete the DHCP of the abnormal device, and determine whether the memory occupancy status of the abnormal device is lower than the preset occupancy threshold; wherein the abnormal device is the member switch device that causes the abnormal status; if the memory occupancy status is higher than the preset occupancy threshold, do not configure DHCP for the abnormal device; if the memory occupancy status is less than or equal to the preset occupancy threshold, retrieve the DHCP configuration of the abnormal device based on the SDN database, and send the DHCP configuration to the idle device; process the lease and abnormal status of the abnormal device based on the preset exception processing algorithm to repair the abnormal status of the abnormal device.

[0081] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the IoT device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0082] The system and medium provided in the embodiments of the present application correspond one-to-one to the method. Therefore, the system and medium also have similar beneficial technical effects to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the system and medium will not be repeated here.

[0083] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0084] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0085] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0086] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0087] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0088] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0089] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0090] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0091] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for configuring DHCP in MLAG networking based on SDN, characterized in that: Applied to the MLAG networking service system, the MLAG networking service system includes: an SDN control module and an MLAG networking module; the SDN control module includes an SDN front end, an SDN controller and an SDN database; the MLAG networking module includes multiple member switch devices and a DHCP front end, and the method includes: Configure the DHCP of the member switch device under the MLAG network based on the DHCP front end, and receive the DHCP log of the member switch device; Monitor the member switch device in real time to obtain the status and device information of the member switch device; wherein the status includes a normal status and an abnormal status, and the abnormal status includes a DHCP configuration error, an IP allocation error, and an abnormal interface status; When the member switch device state is an abnormal state, deleting the DHCP of the abnormal device, and determining whether the memory occupancy state of the abnormal device is lower than a preset occupancy threshold; wherein the abnormal device is the member switch device that causes the abnormal state; If the memory occupancy state is less than or equal to a preset occupancy threshold, retrieve the DHCP configuration of the abnormal device based on the SDN database, and send the DHCP configuration to the idle device; The abnormal state of the abnormal device is processed based on a preset abnormality processing algorithm to repair the abnormal device.

2. The method for configuring DHCP in MLAG networking based on SDN according to claim 1, characterized in that: Configuring the DHCP of the member switch device under the MLAG network based on the DHCP front end and receiving the DHCP log of the member switch device specifically includes: Through the DHCP front-end interface, set DHCP parameters for the member switch devices in the MLAG network; wherein the DHCP parameters include IP address and lease time; Receive and store the DHCP log sent by the member switch device; wherein the DHCP log includes a DHCP request and a DHCP response.

3. The method for configuring DHCP in MLAG networking based on SDN according to claim 1, characterized in that: When the member switch device state is abnormal, deleting the DHCP of the abnormal device, and determining whether the memory occupancy state of the abnormal device is lower than a preset occupancy threshold, specifically includes: When it is detected that the state of a member switch device is abnormal, the member switch device is marked as an abnormal device, and the DHCP service of the member switch device is stopped; Query the memory usage of the abnormal device; The memory occupancy is compared with a preset occupancy threshold to determine whether the abnormal device can continue to operate.

4. The method for configuring DHCP in MLAG networking based on SDN according to claim 1, characterized in that: Real-time monitoring of the member switch device to obtain the status and device information of the member switch device specifically includes: Periodically sending status query requests to member switch devices to obtain the operating status, interface status and DHCP configuration information of the member switch devices; The running status, interface status and DHCP configuration information are processed based on a preset status analysis model to determine whether the member switch device is in a normal state, and to determine the status and device information of the member switch device.

5. The method for configuring DHCP in MLAG networking based on SDN according to claim 1, characterized in that: When the member switch device state is abnormal, deleting the DHCP of the abnormal device, and determining whether the memory occupancy state of the abnormal device is lower than a preset occupancy threshold, the method further includes: If the memory occupancy status is higher than a preset occupancy threshold, the DHCP configuration is not performed on the abnormal device.

6. The method for configuring DHCP in MLAG networking based on SDN according to claim 1, characterized in that: Processing the lease and abnormal state of the abnormal device based on a preset abnormality processing algorithm to repair the abnormal device specifically includes: According to the type and abnormal state of the abnormal device, compare the preset abnormality handling strategy to select the appropriate abnormality handling strategy; Execute exception handling strategies and monitor device status and DHCP configuration; When the preset maintenance threshold is reached, the preset maintenance personnel are notified.

7. The method for configuring DHCP in MLAG networking based on SDN according to claim 1, characterized in that: The method further comprises: Determining whether the abnormal device is in a preset idle time period based on the lease information; If so, modify the lease time of the abnormal device to an idle time period; If not, record the lease time of the abnormal device as indefinite; Wait for a preset administrator to restore the device status of the abnormal device. When the device status is normal, restore the DHCP configuration of the abnormal device and record that the lease of the abnormal device has expired.

8. The method for configuring DHCP in MLAG networking based on SDN according to claim 7, characterized in that: The method further comprises: Query the lease information of the member switch device according to the DHCP log; wherein the lease information includes the lease start time, end time and renewal status; When the lease of a member switch device has expired, query the renewal status of the member switch device; When renewing the lease, the lease of the member switch device that has expired is refreshed; When the contract is not renewed, the IP record and static IP configuration of the member switch device are deleted.

9. A device for configuring DHCP in MLAG networking based on SDN, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: Configure the DHCP of the member switch device under the MLAG network based on the DHCP front end, and receive the DHCP log of the member switch device; Monitor the member switch device in real time to obtain the status and device information of the member switch device; wherein the status includes a normal status and an abnormal status, and the abnormal status includes a DHCP configuration error, an IP allocation error, and an abnormal interface status; When the member switch device state is an abnormal state, deleting the DHCP of the abnormal device, and determining whether the memory occupancy state of the abnormal device is lower than a preset occupancy threshold; wherein the abnormal device is the member switch device that causes the abnormal state; If the memory occupancy status is higher than a preset occupancy threshold, the DHCP configuration is not performed on the abnormal device; If the memory occupancy state is less than or equal to a preset occupancy threshold, retrieve the DHCP configuration of the abnormal device based on the SDN database, and send the DHCP configuration to the idle device; The abnormal state of the abnormal device is processed based on a preset abnormality processing algorithm to repair the abnormal device.

10. A non-volatile computer storage medium for configuring DHCP in MLAG networking based on SDN, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Configure the DHCP of the member switch device under the MLAG network based on the DHCP front end, and receive the DHCP log of the member switch device; Monitor the member switch device in real time to obtain the status and device information of the member switch device; wherein the status includes a normal status and an abnormal status, and the abnormal status includes a DHCP configuration error, an IP allocation error, and an abnormal interface status; When the member switch device state is an abnormal state, deleting the DHCP of the abnormal device, and determining whether the memory occupancy state of the abnormal device is lower than a preset occupancy threshold; wherein the abnormal device is the member switch device that causes the abnormal state; If the memory occupancy status is higher than a preset occupancy threshold, the DHCP configuration is not performed on the abnormal device; If the memory occupancy state is less than or equal to a preset occupancy threshold, retrieve the DHCP configuration of the abnormal device based on the SDN database, and send the DHCP configuration to the idle device; The lease and abnormal state of the abnormal device are processed based on a preset abnormality processing algorithm to repair the abnormal state of the abnormal device.

Citation Information

Patent Citations

  • Method, device and equipment for lease synchronization in MLAG environment and medium

    CN115567486A

  • DHCP table item synchronization method and device based on MLAG environment and medium

    CN116192801A

  • DHCP server working method and device in MLAG environment, and medium

    CN118018523A