CN115567396A - Switch configuration method, device and medium based on SDN network - Google Patents

Switch configuration method, device and medium based on SDN network Download PDF

Info

Publication number
CN115567396A
CN115567396A CN202211142224.7A CN202211142224A CN115567396A CN 115567396 A CN115567396 A CN 115567396A CN 202211142224 A CN202211142224 A CN 202211142224A CN 115567396 A CN115567396 A CN 115567396A
Authority
CN
China
Prior art keywords
configuration information
configuration
switch
information
recovered
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211142224.7A
Other languages
Chinese (zh)
Inventor
杨洁
蒋玄
张凡
黄树民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Cisco Networking Technology Co Ltd
Original Assignee
Inspur Cisco Networking Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Cisco Networking Technology Co Ltd filed Critical Inspur Cisco Networking Technology Co Ltd
Priority to CN202211142224.7A priority Critical patent/CN115567396A/en
Publication of CN115567396A publication Critical patent/CN115567396A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0859Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions
    • H04L41/0863Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions by rolling back to previous configuration versions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0859Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions

Landscapes

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

Abstract

The invention discloses a switch configuration method, device and medium based on an SDN (software defined network), belongs to the technical field of communication, and is used for solving the technical problems that configuration command matching errors are easy to occur, configuration time is long, and the configuration of a switch is difficult to check and compare in the conventional network device recovery configuration. The method comprises the following steps: correspondingly storing the configuration information of the switch based on a preset time interval; acquiring a first record entry of a switch to be recovered through an SDN controller, and acquiring first configuration information according to the first record entry; acquiring second configuration information corresponding to the second record item, and comparing the first configuration information with the second configuration information to obtain effective configuration information; the second record entry corresponds to the switch to be recovered; and transmitting the effective configuration information to the switch to be recovered so as to complete the configuration recovery of the switch to be recovered.

Description

Switch configuration method, device and medium based on SDN network
Technical Field
The present application relates to the field of communications technologies, and in particular, to a switch configuration method, device, and medium based on an SDN network.
Background
The software defined network SDN is a new network architecture, and the core idea is to control or drive the whole network through software. The SDN controller serves as a brain of the SDN and is responsible for management of the whole network, and a plurality of switches are managed under the SDN controller. With the continuous development of the internet, the SDN technology has been practiced with a large number of data centers and campus networks.
In a practical network, when a network device fails or a network configuration changes and cannot meet current service requirements, the network needs to be restored to a previous normal state. The existing traditional recovery method needs to execute the configuration command to each switch memory one by one, and the method has the technical defects of error caused by incorrect configuration command, long time consumption and the like.
Disclosure of Invention
The embodiment of the application provides a switch configuration method, device and medium based on an SDN network, which are used for solving the following technical problems: the recovery configuration of the existing network equipment is easy to cause configuration command matching errors, the configuration time is long, and the configuration of the switch is difficult to view and compare.
The embodiment of the application adopts the following technical scheme:
in one aspect, an embodiment of the present application provides a switch configuration method based on an SDN network, where the method includes: correspondingly storing the configuration information of the switch based on a preset time interval; acquiring a first record entry of a switch to be recovered through an SDN controller, and acquiring first configuration information according to the first record entry; acquiring second configuration information corresponding to a second record item, and comparing the first configuration information with the second configuration information to obtain effective configuration information; wherein the second record entry corresponds to the first record entry; and transmitting the effective configuration information to the switch to be recovered to complete the configuration recovery of the switch to be recovered.
According to the embodiment of the application, the switch configuration information is stored in the nonvolatile configuration memory of the SDN controller, and meanwhile, the configuration information of different switches at different times is recorded in the database to be distinguished. The configuration information of different switches at different times is checked and compared through the SDN controller, the most reasonable effective configuration information is selected, the problem that the space for storing the configuration information is insufficient is effectively solved, meanwhile, selectivity is provided for configuration recovery, configuration recovery without restarting the switches is achieved, the risk of data mismatching caused by restarting the switches is avoided, a reference basis is also provided for configuration recovery of the switches, and the possibility of errors caused by single configuration recovery to the last time slot is eliminated.
In a feasible implementation manner, the correspondingly storing the configuration information of the switch based on the preset time interval specifically includes: acquiring configuration information of a plurality of switches through the SDN controller based on a preset time interval; wherein the SDN controller is connected with a plurality of switches; reading the configuration information according to a configuration memory in the SDN controller, and determining a storage path of the configuration information; and storing the configuration information in a corresponding file of the configuration memory according to the storage path.
In a possible implementation, before the obtaining, by the SDN controller, the first record entry of the switch to be recovered, the method further includes: acquiring a switch IP and configuration time corresponding to the configuration information through the SDN controller; the IP of the switch and the configuration time are identically marked with a storage path corresponding to the configuration information, and identification information is constructed according to the identically marked information; and correspondingly recording the identification information and the storage path according to a database in the SDN controller, and constructing a data record entry in the database according to the recorded identification information and the corresponding storage path.
In a feasible implementation manner, acquiring, by an SDN controller, a first record entry of a switch to be restored, and obtaining first configuration information according to the first record entry specifically includes: acquiring a data record entry corresponding to the switch to be recovered through the SDN controller; determining first entry information in the data record entries as the first record entries; wherein the first record entry at least comprises identification information of the switch and a storage path; and reading the configuration information under the storage path according to the corresponding storage path in the first record entry, and determining the read configuration information as the first configuration information of the switch to be restored.
In a feasible implementation manner, obtaining second configuration information corresponding to a second record entry, and comparing the first configuration information with the second configuration information to obtain effective configuration information specifically includes: acquiring second entry information in the data record entry corresponding to the switch to be restored, and determining the second entry information as a second record entry; reading configuration information under the storage path according to the corresponding storage path in the second record entry, and determining the configuration information as second configuration information of the switch to be restored; performing difference comparison on first configuration information and second configuration information of the switch to be recovered through the SDN controller to obtain a configuration difference value; wherein, the difference comparison at least comprises the comparison of relevant parameters in the configuration information and the comparison of relevant management VLANs; and screening the configuration information corresponding to other record items in the data record items according to the configuration difference value to obtain the effective configuration information.
According to the method and the device, the screened effective configuration information is actively issued to the switch to be recovered, the switch reads the configuration information and loads the configuration information to the memory, the checking and comparing functions of the configuration information at different times are achieved, a reference basis is provided for configuration recovery, and the possibility of errors caused by configuration of a single recovery time slot is eliminated.
In a feasible implementation manner, the screening, according to the configuration difference value, the configuration information corresponding to other record entries in the data record entry to obtain the effective configuration information specifically includes: comparing the configuration difference value with a first preset threshold value; if the configuration difference value is smaller than or equal to the first preset threshold, the first configuration information and the second configuration information are the valid configuration information; if the configuration difference value is greater than the first preset threshold value, the first configuration information and the second configuration information are invalid configuration information, and the remaining entry information in the data record entries is obtained again and determined as remaining record entries; wherein the remaining entry information is entry information other than the first entry information and the second entry information; performing difference comparison on the residual configuration information corresponding to the residual record items to obtain a configuration difference value of the residual configuration information; and comparing and judging the configuration difference value of the residual configuration information with a first preset threshold value to obtain effective configuration information in the residual configuration information.
In a possible implementation manner, the transmitting the valid configuration information to the switch to be restored to complete the configuration restoration of the switch to be restored specifically includes: screening the effective configuration information based on a preset recovery requirement of the switch to obtain effective configuration information meeting the preset recovery requirement; inputting effective configuration information meeting the preset recovery requirement into the switch to be recovered; and reading the effective configuration information through the switch to be recovered, and carrying out memory loading on the read effective configuration information so as to complete the configuration recovery of the switch to be recovered.
In a possible implementation manner, after the valid configuration information is transmitted to the switch to be restored to complete the configuration restoration of the switch to be restored, the method further includes: determining the switch to be recovered after the configuration recovery as a recovered switch, and obtaining recovery completion information in the recovered switch; the recovery completion information is state change information automatically generated by the recovered switch; inputting the recovery completion information into the SDN controller to prompt a network administrator that the switch to be recovered completes configuration recovery.
In a second aspect, an embodiment of the present application further provides a switch configuration device based on an SDN network, where the device 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 to enable the at least one processor to perform a method for SDN network based switch configuration according to any of the above embodiments.
In a third aspect, the present invention provides a non-volatile computer storage medium, where the storage medium is a non-volatile computer-readable storage medium, where the non-volatile computer-readable storage medium stores at least one program, each program includes instructions, and when executed by a terminal, the instructions cause the terminal to perform a method for configuring a switch based on an SDN network according to any of the foregoing embodiments.
The embodiment of the application provides a switch configuration method, device and medium based on an SDN network. By storing the switch configuration information in the non-volatile configuration memory of the SDN controller, configuration information of different switches at different times is distinguished in the database records. The configuration information of different switches at different times is checked and compared through the SDN controller, the most reasonable effective configuration information is selected, the problem that the space for storing the configuration information is insufficient is effectively solved, meanwhile, selectivity is provided for configuration recovery, configuration recovery without restarting the switches is achieved, the risk of data mismatching caused by restarting the switches is avoided, a reference basis is also provided for configuration recovery of the switches, and the possibility of errors caused by single configuration recovery to the last time slot is eliminated.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts. In the drawings:
fig. 1 is a flowchart of a switch configuration method based on an SDN network according to an embodiment of the present application;
fig. 2 is a schematic connection diagram of an SDN network according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a switch configuration device based on an SDN network according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any inventive step based on the embodiments of the present disclosure, shall fall within the scope of protection of the present application.
An embodiment of the present application provides a switch configuration method based on an SDN network, and as shown in fig. 1, the switch configuration method based on the SDN network specifically includes steps S101 to S104:
and S101, correspondingly storing the configuration information of the switch based on a preset time interval.
Specifically, configuration information of a plurality of switches is acquired through the SDN controller based on a preset time interval. Wherein the SDN controller is interconnected with the plurality of switches. And reading the configuration information according to a configuration memory in the SDN controller, and determining a storage path of the configuration information. And storing the configuration information in a corresponding file of the configuration memory according to the storage path.
In an embodiment, fig. 2 is a schematic connection diagram of an SDN network provided in an embodiment of the present application, and as shown in fig. 2, an SDN controller reads configuration information from all switches connected to the SDN controller at intervals of a time slot T, stores the configuration information in a memory (configuration memory) of the SDN controller, and records a storage path of a file corresponding to the configuration information in a database of the SDN controller every time the configuration information of a different switch to be restored is stored. The size of the interval time slot T can be adjusted and flexibly controlled by the SDN controller.
S102, acquiring a first record entry of the switch to be recovered through the SDN controller, and acquiring first configuration information according to the first record entry.
Specifically, the switch IP and the configuration time corresponding to the configuration information are acquired through the SDN controller. And marking the IP of the switch, the configuration time and a storage path corresponding to the configuration information in the same way, and constructing identification information according to the information marked in the same way.
Further, according to a database in the SDN controller, the identification information and the storage path are correspondingly recorded, and a data record entry in the database is constructed through the recorded identification information and the corresponding storage path.
As a feasible implementation manner, according to the IP addresses of different switches and/or the configuration time corresponding to the configuration information obtained, the same marking is performed on the storage paths corresponding to the configuration information, then the marked identification information is constructed through the marks with the same switch IP, configuration time and storage paths, then the storage paths corresponding to the configuration information and the obtained identification information are uniformly placed into a database of the SDN controller, and the recorded identification information and the corresponding storage paths thereof are correspondingly updated according to a data table in the database to obtain data record entries in the database.
Further, a data record entry corresponding to the switch to be recovered is obtained through the SDN controller. And determining the first item information in the data record items as the first record items. The first record entry at least comprises identification information of the switch and a storage path. And reading the configuration information under the storage path according to the corresponding storage path in the first record entry, and determining the read configuration information as the first configuration information of the switch to be restored.
In an embodiment, as shown in fig. 2, a record entry a1 (a first record entry) of a database in an SDN controller corresponding to a switch a that needs to be restored is checked, a storage path of configuration information corresponding to the record entry a1 is obtained through the data record entry of the database, and the configuration information (the first configuration information) under the storage path is read.
S103, second configuration information corresponding to the second record item is obtained, and the first configuration information is compared with the second configuration information to obtain effective configuration information.
Specifically, second entry information in the data record entry corresponding to the switch to be restored is obtained, and the second entry information is determined as the second record entry. And reading the configuration information under the storage path according to the storage path corresponding to the second record entry, and determining the configuration information as second configuration information of the switch to be recovered.
Further, the first configuration information and the second configuration information of the switch to be recovered are subjected to difference comparison through the SDN controller, and a configuration difference value is obtained. Wherein, the difference comparison at least comprises the comparison of related parameters in the configuration information and the comparison of related management VLANs. And screening the configuration information corresponding to other record items in the data record items according to the configuration difference value to obtain effective configuration information.
In an embodiment, as shown in fig. 2, a record entry a2 (second record entry) of a data record in a database in an SDN controller corresponding to the switch a is obtained, and configuration information (second configuration information) corresponding to the record entry a2 is read in the same manner as the record entry a1 (first record entry). The configuration information of a1 and a2 is compared, and the configuration difference (configuration difference value) is obtained.
And comparing the configuration difference value with a first preset threshold value. If the configuration difference value is smaller than or equal to the first preset threshold value, the first configuration information and the second configuration information are effective configuration information.
And if the configuration difference value is larger than a first preset threshold value, the first configuration information and the second configuration information are invalid configuration information, and the remaining entry information in the data record entries is obtained again and determined as the remaining record entries. Wherein, the remaining entry information is entry information except the first entry information and the second entry information. And performing difference comparison on the residual configuration information corresponding to the residual record items to obtain a configuration difference value of the residual configuration information. And comparing and judging the configuration difference value of the residual configuration information with a first preset threshold value to obtain effective configuration information in the residual configuration information.
As a feasible implementation manner, whether the record entries a1 and a2 are reasonable effective configuration information is judged, if not, other remaining record entries in the data record entries of the switch a database are selected, the remaining configuration information corresponding to the remaining record entries is subjected to difference comparison to obtain configuration difference values of the remaining configuration information, the configuration difference values of the remaining configuration information are subjected to numerical comparison judgment with a first preset threshold value, and continuous loop judgment is carried out until the reasonable effective configuration information is obtained.
And S104, transmitting the effective configuration information to the switch to be recovered so as to complete the configuration recovery of the switch to be recovered.
Specifically, based on the preset recovery requirement of the switch, the effective configuration information is screened to obtain the effective configuration information meeting the preset recovery requirement. And inputting the effective configuration information meeting the preset recovery requirement into the switch to be recovered. And reading the effective configuration information through the switch to be recovered, and carrying out memory loading on the read effective configuration information so as to complete the configuration recovery of the switch to be recovered.
Further, the switch to be restored after the configuration restoration is determined as a restored switch, and restoration completion information in the restored switch is obtained. The recovery completion information is state change information automatically generated by the recovered switch. And inputting recovery completion information into the SDN controller to prompt a network administrator to complete configuration recovery of the to-be-recovered switch.
In addition, an embodiment of the present application further provides a switch configuration device based on an SDN network, and as shown in fig. 3, the switch configuration device 300 based on an SDN network specifically includes:
at least one processor 301. And a memory 302 communicatively coupled to the at least one processor 301; wherein the memory 302 stores instructions executable by the at least one processor 301 to enable the at least one processor 301 to:
correspondingly storing the configuration information of the switch based on a preset time interval;
acquiring a first record entry of a switch to be recovered through an SDN controller, and acquiring first configuration information according to the first record entry;
acquiring second configuration information corresponding to the second record item, and comparing the first configuration information with the second configuration information to obtain effective configuration information; the second record entry corresponds to the switch to be recovered;
and transmitting the effective configuration information to the switch to be recovered so as to complete the configuration recovery of the switch to be recovered.
The embodiment of the application provides a switch configuration method, device and medium based on an SDN network. By storing the switch configuration information in the non-volatile configuration memory of the SDN controller, configuration information of different switches at different times is distinguished in the database records. The configuration information of different switches at different times is checked and compared through the SDN controller, the most reasonable effective configuration information is selected, the problem that the space for storing the configuration information is insufficient is effectively solved, meanwhile, selectivity is provided for configuration recovery, configuration recovery without restarting the switches is achieved, the risk of data mismatching caused by restarting the switches is avoided, a reference basis is also provided for configuration recovery of the switches, and the possibility of errors caused by single configuration recovery to the last time slot is eliminated.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device and media embodiments, the description is relatively simple, as it is substantially similar to the method embodiments, and reference may be made to some description of the method embodiments for relevant points.
The device and the medium provided by the embodiment of the application correspond to the method one by one, so the device and the medium also have the beneficial technical effects similar to the corresponding method.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
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 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 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
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 a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A switch configuration method based on an SDN network, the method comprising:
correspondingly storing the configuration information of the switch based on a preset time interval;
acquiring a first record entry of a switch to be recovered through an SDN controller, and acquiring first configuration information according to the first record entry;
acquiring second configuration information corresponding to a second record item, and comparing the first configuration information with the second configuration information to obtain effective configuration information; wherein the second record entry corresponds to the first record entry;
and transmitting the effective configuration information to the switch to be recovered so as to complete the configuration recovery of the switch to be recovered.
2. The switch configuration method based on the SDN network according to claim 1, wherein the storing configuration information of the switch correspondingly based on a preset time interval specifically includes:
acquiring configuration information of a plurality of switches through the SDN controller based on a preset time interval; wherein the SDN controller is connected with a plurality of switches;
reading the configuration information according to a configuration memory in the SDN controller, and determining a storage path of the configuration information;
and storing the configuration information in a corresponding file of the configuration memory according to the storage path.
3. The SDN network-based switch configuration method of claim 1, wherein before the obtaining, by the SDN controller, the first record entry of the switch to be recovered, the method further comprises:
acquiring a switch IP and configuration time corresponding to the configuration information through the SDN controller;
the IP of the switch and the configuration time are identically marked with a storage path corresponding to the configuration information, and identification information is constructed according to the identically marked information;
and correspondingly recording the identification information and the storage path according to a database in the SDN controller, and constructing a data record entry in the database according to the recorded identification information and the corresponding storage path.
4. The switch configuration method based on the SDN network according to claim 3, wherein the obtaining, by the SDN controller, a first record entry of the switch to be restored, and obtaining first configuration information according to the first record entry specifically includes:
acquiring a data record entry corresponding to the switch to be recovered through the SDN controller;
determining first entry information in the data record entries as the first record entries; wherein the first record entry at least comprises identification information of the switch and a storage path;
and reading the configuration information under the storage path according to the storage path corresponding to the first record entry, and determining the read configuration information as the first configuration information of the switch to be restored.
5. The switch configuration method based on the SDN network according to claim 1, wherein obtaining second configuration information corresponding to a second record entry, and comparing the first configuration information with the second configuration information to obtain effective configuration information specifically includes:
acquiring second entry information in the data record entry corresponding to the switch to be restored, and determining the second entry information as a second record entry;
reading configuration information under the storage path according to the storage path corresponding to the second record entry, and determining the configuration information as second configuration information of the switch to be restored;
performing difference comparison on first configuration information and second configuration information of the switch to be recovered through the SDN controller to obtain a configuration difference value; wherein, the difference comparison at least comprises the comparison of relevant parameters in the configuration information and the comparison of relevant management VLANs;
and screening the configuration information corresponding to other record items in the data record items according to the configuration difference value to obtain the effective configuration information.
6. The switch configuration method based on the SDN network according to claim 5, wherein the screening, according to the configuration difference value, the configuration information corresponding to other record entries in the data record entry to obtain the effective configuration information specifically includes:
comparing the configuration difference value with a first preset threshold value;
if the configuration difference value is smaller than or equal to the first preset threshold, the first configuration information and the second configuration information are the valid configuration information;
if the configuration difference value is greater than the first preset threshold value, the first configuration information and the second configuration information are invalid configuration information, and the remaining entry information in the data record entries is obtained again and determined as remaining record entries; wherein the remaining entry information is entry information other than the first entry information and the second entry information;
performing difference comparison on the residual configuration information corresponding to the residual record items to obtain a configuration difference value of the residual configuration information;
and comparing and judging the configuration difference value of the residual configuration information with a first preset threshold value to obtain effective configuration information in the residual configuration information.
7. The method according to claim 1, wherein the transmitting the valid configuration information to the switch to be restored to complete configuration restoration of the switch to be restored includes:
screening the effective configuration information based on a preset recovery requirement of the switch to obtain effective configuration information meeting the preset recovery requirement;
inputting effective configuration information meeting the preset recovery requirement into the switch to be recovered;
and reading the effective configuration information through the switch to be recovered, and carrying out memory loading on the read effective configuration information so as to complete the configuration recovery of the switch to be recovered.
8. The SDN network-based switch configuration method of claim 7, wherein after transmitting the valid configuration information to the switch to be restored to complete configuration restoration of the switch to be restored, the method further comprises:
determining the switch to be recovered after the configuration recovery as a recovered switch, and obtaining recovery completion information in the recovered switch; the recovery completion information is state change information automatically generated by the recovered switch;
inputting the recovery completion information into the SDN controller to prompt a network administrator that the switch to be recovered completes configuration recovery.
9. A switch configuration device based on an SDN network, the device comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a SDN network based switch configuration method according to any of claims 1-8.
10. A non-transitory computer storage medium, wherein the storage medium is a non-transitory computer readable storage medium, and wherein the non-transitory computer readable storage medium stores at least one program, each program comprising instructions that, when executed by a terminal, cause the terminal to perform a SDN network-based switch configuration method according to any one of claims 1-8.
CN202211142224.7A 2022-09-20 2022-09-20 Switch configuration method, device and medium based on SDN network Pending CN115567396A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211142224.7A CN115567396A (en) 2022-09-20 2022-09-20 Switch configuration method, device and medium based on SDN network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211142224.7A CN115567396A (en) 2022-09-20 2022-09-20 Switch configuration method, device and medium based on SDN network

Publications (1)

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

Family

ID=84741463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211142224.7A Pending CN115567396A (en) 2022-09-20 2022-09-20 Switch configuration method, device and medium based on SDN network

Country Status (1)

Country Link
CN (1) CN115567396A (en)

Similar Documents

Publication Publication Date Title
CN110300017B (en) Standard configuration generating device and method and network equipment configuration error correcting device and method
CN112487083B (en) Data verification method and device
CN106936622A (en) A kind of distributed memory system upgrade method and device
EP3425579A1 (en) Method and apparatus for processing failure of cipher change of ciphertext in database
CN110968548A (en) Data correction method, device, storage medium and processor
CN110298031B (en) Dictionary service system and model version consistency distribution method
CN115567396A (en) Switch configuration method, device and medium based on SDN network
CN110888723A (en) Timing task processing method and device
CN116185706A (en) Data backup method and device, computing and storage medium and electronic equipment
CN115080309A (en) Data backup system, method, storage medium, and electronic device
CN115525545A (en) Docker-based automatic testing method, system, equipment and medium
CN111258871B (en) Verification method, device, equipment and storage medium of distributed file system
CN112328363B (en) Cloud hard disk mounting method and device
CN111491021B (en) License data processing method and device for distributed cluster
CN111813588B (en) Computer hard disk fault positioning method, device, equipment and storage medium
CN114691395A (en) Fault processing method and device, electronic equipment and storage medium
CN112583779B (en) Network resource access method and device
CN113076228B (en) Distributed system and management method and device thereof
CN110704818A (en) User information modification method and device
CN112436967B (en) Safety processing method and device after industrial internet equipment abnormity
CN109867079B (en) Control method and control device for three-dimensional library, storage medium and processor
CN115665089A (en) Multi-IP address host matching method, device and related equipment
CN116643980A (en) Automatic testing method, system and storage medium based on priority execution
CN116126709A (en) Method and device for testing code for charging pile, processor and electronic equipment
CN116187696A (en) Audit information processing method and device, processor and electronic equipment

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