CN118509356A - Networking switch configuration and neighbor state detection method, equipment and medium - Google Patents
Networking switch configuration and neighbor state detection method, equipment and medium Download PDFInfo
- Publication number
- CN118509356A CN118509356A CN202410802826.3A CN202410802826A CN118509356A CN 118509356 A CN118509356 A CN 118509356A CN 202410802826 A CN202410802826 A CN 202410802826A CN 118509356 A CN118509356 A CN 118509356A
- Authority
- CN
- China
- Prior art keywords
- configuration
- neighbor
- switch
- bgp
- state
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/20—Arrangements for monitoring or testing data switching networks the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
- H04L41/065—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis involving logical or physical relationship, e.g. grouping and hierarchies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0894—Policy-based network configuration management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/40—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
- H04L43/045—Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/04—Interdomain routing, e.g. hierarchical routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a networking switch configuration and neighbor state detection method, equipment and medium, belongs to the technical field of switch state detection, and is used for solving the technical problems that the efficiency of positioning problems is low, manual repair possibly causes conflict with deployment strategies automatically issued by a controller and influences the stability of a network by manually checking the switch BGP configuration and neighbor relation in the current large-scale networking. The method comprises the following steps: defining BGP configuration and neighbor relation information of each switch in the target networking, and storing the BGP configuration and neighbor relation information in a database; acquiring actual issuing configuration and actual neighbor state information of each switch in the target networking; determining the state detection result of each switch according to the actual issuing configuration and the actual neighbor state information and BGP configuration and neighbor relation information stored in the database; and displaying the state detection result in a preset visual form in a Web interface.
Description
Technical Field
The present invention relates to the field of switch state detection, and in particular, to a method, an apparatus, and a medium for detecting a configuration and a neighbor state of a networking switch.
Background
Network virtualization technology (Virtual Extensible LAN, vxLAN) is used to create logically isolated networks in a data center network. The Ethernet VPN technology (ETHERNET VPN, EVPN) is used to enable flexible deployment of Ethernet traffic within a wide area network and a data center. Routing protocols (Border Gateway Protocol, BGP) are typically used to exchange routing information between different autonomous systems. Combining these three technologies, an efficient data center network architecture can be built, where the Spine-Leaf architecture, which is a pattern that designs a data center network, is common, and divides network devices into two tiers: spinal (Spine) and Leaf (Leaf). The Leaf switch is connected to the server and the Spine switch is connected to the Leaf switch to form a mesh structure. This architecture provides a high degree of scalability and flexibility that can support large-scale data center networks.
An SDN controller (OpenDayLight, ODL) based on a micro-service architecture supports a wide range of network protocols, such as OpenFlow, SNMP, NETCONF, OVSDB, BGP, LISP. The ODL has good programmability, the OSGi Karaf is adopted as a bottom layer to realize service modularization, and a module interface is exposed through the MD-SAL and the yang model. The model is embedded with LevelDB and comprises a cluster communication scheme based on Akka Cluster, and the model is rich in functions and can be used after being unpacked.
The VxLAN EVPN BGP scheme based on the Spine-Leaf networking has a plurality of details, the network management needs a higher level of expertise, the SDN software defined network controller based on ODL can automate the deployment process of network topology, but the support for operation and maintenance is insufficient, including but not limited to configuration variation caused by network capacity expansion, capacity shrinkage and change, and neighbor state abnormality caused by port connectivity faults, the problems generally need an operation and maintenance engineer to manually perform CLI interaction on one or more switches which may have problems, confirm whether the BGP configuration of each switch is complete, free of deletion and redundancy and whether the BGP process is complete or not, and further need to check whether the neighbor relation is normal or not, and whether a generated routing table is accessed or not.
In large networking, this way of manually checking and validating configuration and status is inefficient and manual checks are prone to error. If multiple ports of each switch are used to form neighbors, the workload of manual verification will rise dramatically, with a greatly improved probability of error. In a network supervised by an SDN controller, manual checking and confirmation of configuration needs to be checked against resources such AS neighbors and AS numbers allocated by the SDN one by one, the time required for checking and confirmation of configuration is longer, and manual repairing may conflict with an SDN automation deployment policy, so that other unexpected problems are caused, and the overall stability of the network is affected.
Disclosure of Invention
The embodiment of the invention provides a networking switch configuration and neighbor state detection method, equipment and medium, which are used for solving the following technical problems: in the current large-scale networking, the efficiency of positioning the problem is low by manually checking the BGP configuration and the neighbor relation of the switch, and manual repair can cause conflict with deployment strategies automatically issued by a controller, so that the stability of the network is affected.
The embodiment of the invention adopts the following technical scheme:
In one aspect, an embodiment of the present invention provides a method for configuring a networking switch and detecting a neighbor state, where the method includes: defining BGP configuration and neighbor relation information of each switch in the target networking, and storing the BGP configuration and neighbor relation information in a database;
acquiring actual issuing configuration and actual neighbor state information of each switch in the target networking;
Determining the state detection result of each switch according to the actual issuing configuration and the actual neighbor state information and BGP configuration and neighbor relation information stored in the database;
and displaying the state detection result in a preset visual form in a Web interface.
In a possible implementation manner, BGP configuration and neighbor relation information of each switch in the target network are defined and stored in a database, and specifically include:
Defining BGP configuration of each switch in the target networking based on the automatic deployment strategy of the target networking; wherein, the BGP configuration at least includes: BGP basic configuration, loopback port configuration, loopback port state, underlay port state, multi-Pod switch interconnect port state;
defining neighbor relation information of each switch in the target networking; wherein the neighbor relation information at least includes: BGP neighbor configuration, BGP Underlay neighbor relation state, and BGP Overlay neighbor relation state;
and storing BGP configuration and neighbor relation information of each switch into a database.
In a possible implementation, the BGP basic configuration includes at least: AS numbers, routerID, loopback IP, BGP advertisements;
The Loopback port configuration includes at least: whether there are Loopback 91 and Loopback95 loopback ports, whether they are configured with IP addresses, whether the addresses match BGP advertisements;
the Loopback port states include at least: loopback 91 and Loopback 95 loop back to port status of the port;
The underway port state includes at least: each switch is connected to the neighbor's underway port state, and the Multi-Pod switch interconnect port state.
In a possible implementation manner, the BGP neighbor configuration at least includes: the spine-leaf neighbor relation, the IP addresses of the underley and the overlay of the database neighbor list and the AS number.
In a possible implementation manner, obtaining actual issuing configuration and actual neighbor state information of each switch in the target network specifically includes:
dispatching realization classes of different switch models according to BGP configuration and neighbor relation information recorded in the database by an SDN controller, and transmitting the BGP configuration and neighbor relation information to each switch in the target networking;
Based on the preset time interval, the actual issuing configuration and the actual neighbor state information of each switch are obtained through the actual issuing command.
In a possible implementation manner, determining a state detection result of each switch according to the actual issuing configuration and the actual neighbor state information, and BGP configuration and neighbor relation stored in the database specifically includes:
Comparing the actual issuing configuration with BGP configuration recorded in a database through a preset analysis tool to obtain BGP configuration detection results of all switches; wherein, the BGP configuration detection result at least includes: whether BGP configuration is missing or redundant;
Comparing the actual neighbor state information with neighbor relation information recorded in the database to obtain neighbor state detection results of all switches; wherein, the neighbor state detection result includes: whether the neighbor state of each switch is abnormal.
In a possible implementation manner, the state detection result is displayed in a preset visual form in a Web interface, and specifically includes:
if the BGP configuration detection result of any switch is BGP configuration missing or BGP configuration redundancy, the correct BGP configuration is called in the database and sent to the corresponding switch;
If the neighbor state detection result of any switch is that the neighbor state is abnormal, acquiring the state information of the abnormal neighbor switch; wherein the status information at least includes: physical interface, interface status, management status, and IP address;
And summarizing the switch with the BGP configuration deletion or redundancy and the neighbor switch with the abnormal state into a detection report and a BGP topological graph, and displaying the BGP topological graph in a Web interface.
In a possible implementation manner, after the state detection result is displayed in a preset visual form in the Web interface, the method further includes:
reading a state detection result in a database, and screening an abnormal result in the state detection result;
And acquiring a change data list corresponding to the abnormal result, and storing the change data list into the database.
On the other hand, the embodiment of the invention also provides a networking switch configuration and neighbor state detection device, which comprises:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the networking switch configuration and neighbor state detection method.
In another aspect, an embodiment of the present invention further provides a storage medium, where the storage medium is a non-volatile computer readable storage medium, where at least one program is stored, where each program includes instructions that, when executed by a terminal, cause the terminal to perform the method for configuring a networking switch and detecting a neighbor state.
Compared with the prior art, the networking switch configuration and neighbor state detection method, device and medium provided by the embodiment of the invention have the following beneficial effects:
Compared with the manual CLI checking BGP configuration and BGP neighbor state, the invention realizes BGP configuration checking and neighbor relation and state checking based on the target BGP configuration and neighbor configuration of the SDN platform under the complex BGP networking environment, so that the actual networking and platform intention are kept consistent. Based on the existing configuration, the BGP configuration and the BGP neighbor state of each switch device in the networking are checked, so that the efficiency is higher, and errors are not easy to occur. In addition, because the inspection is initiated by the SDN controller, visualization and historical report tracing can be well performed, the requirement of data inspection can be better met, the automatic function of the SDN controller can be better integrated, the subsequent problems caused by manual repair of BGP problems and database data conflict recorded by the SDN controller are avoided, and better expandability is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings may be obtained according to the drawings without inventive effort to those skilled in the art. In the drawings:
Fig. 1 is a flowchart of a method for configuring a networking switch and detecting neighbor states according to an embodiment of the present invention;
Fig. 2 is a schematic diagram of a networking switch configuration and neighbor state detection method data interaction process according to an embodiment of the present invention;
Fig. 3 is a schematic diagram of BGP topology according to an embodiment of the present invention;
FIG. 4 is a schematic diagram showing a configuration detection result according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a networking switch configuration and neighbor state detection device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present invention.
The embodiment of the invention provides a networking switch configuration and neighbor state detection method, which specifically comprises the following steps of S101-S104:
S101, defining BGP configuration and neighbor relation information of each switch in the target networking, and storing the BGP configuration and neighbor relation information in a database.
Specifically, BGP configurations of each switch within the target networking are defined based on an automated deployment policy of the target networking. Wherein, BGP configuration at least includes: BGP basic configuration, loopback port configuration, loopback port state, underlay port state, multi-Pod switch interconnect port state.
Further, defining neighbor relation information of each switch in the target networking; wherein the neighbor relation information at least comprises: BGP neighbor configuration, BGP Underlay neighbor relation state, and BGP Overlay neighbor relation state.
Finally, BGP configuration and neighbor relation information of each switch are stored in a database.
As a possible implementation, the BGP basic configuration at least includes: AS numbers, routerID, loopback IP, BGP advertisements; loopback the port configuration includes at least: whether there are Loopback 91 and Loopback95 loopback ports, whether they are configured with IP addresses, whether the addresses match BGP advertisements; loopback the port states include at least: loopback 91 and Loopback95 loop back to port status of the port; the underway port state includes at least: each switch is connected to the neighbor's underway port state, and the Multi-Pod switch interconnect port state. The BGP neighbor configuration at least includes: the spine-leaf neighbor relation, the IP addresses of the underley and the overlay of the database neighbor list and the AS number.
As a further embodiment, the following BGP configurations and neighbor relationships are defined by the YANG structure:
(1) Bgp_config ("BGP basic configuration", "AS number and RouterID, loopback IP correctly announced");
(2) Bgp_neighbor or ("BGP NEIGHBOR configuration", "spine-leaf NEIGHBOR relation, including ip address and as number of underrun and overlay", which completely contains database NEIGHBOR tables);
(3) LOOPBACK_CONFIG ("Loopback Port configuration", "whether there are Loopback 91 and 95 LOOPBACK ports, whether it configures IP addresses, whether addresses match BGP announcements");
(4) UNDERLAY _NEIGHBOR_STATE ("BGP underway NEIGHBOR relation STATE", "underway NEIGHBOR relation STATE");
(5) -overlay_neighbor_state ("BGP OVERLAY NEIGHBOR STATE", "OVERLAY NEIGHBOR STATE");
(6) -loop-back_interval_state ("Loopback port STATE", "Loopback91 and 95 loop-back port STATE");
(7) UNDERLAY _interface_state ("outstanding port STATE", "outstanding port STATE with each switch connected to a neighbor, and Multi-Pod switch interconnect port STATE").
S102, acquiring actual issuing configuration and actual neighbor state information of each switch in the target networking.
Specifically, the SDN controller distributes the implementation classes of different switch models according to BGP configuration and neighbor relation information recorded in a database, and transmits the BGP configuration and neighbor relation information to each switch in the target networking.
Further, based on the preset time interval, the actual issuing configuration and the actual neighbor state information of each switch are obtained through the actual issuing command.
As a possible implementation manner, the ODL-based SDN controller periodically assigns implementation classes of different switch models based on the OOP object-oriented thought according to BGP configuration and neighbor relation information recorded in the database, and issues a command through reality: show running-config bgp; show bgp evpn status; show bgp neighbor status; the actual issuing configuration and neighbor state information of the switch are obtained in a show ip route mode and the like.
S103, determining the state detection result of each switch according to the actual issuing configuration, the actual neighbor state information and BGP configuration and neighbor relation information stored in a database.
Specifically, comparing the actual issuing configuration with BGP configuration recorded in a database through a preset analysis tool to obtain BGP configuration detection results of all switches; wherein, BGP configuration detection results at least include: whether BGP configurations are missing or redundant.
Further, comparing the actual neighbor state information with neighbor relation information recorded in a database to obtain neighbor state detection results of all switches; the neighbor state detection result comprises: whether the neighbor state of each switch is abnormal.
As a possible implementation mode, the acquired actual issuing configuration and neighbor state information are compared with the data recorded in the database through analysis tools such as regular expressions and the like, and whether BGP configuration of an actual switch is missing or redundant or not and whether neighbor state is abnormal or not are obtained. If the comparison results are consistent, the comparison is normal, and if the comparison results are inconsistent, the comparison is abnormal.
And S104, displaying the state detection result in a preset visual form in the Web interface.
Specifically, if the BGP configuration detection result of any switch is BGP configuration missing or BGP configuration redundancy, the correct BGP configuration is invoked in the database and sent to the corresponding switch.
If the neighbor state detection result of any switch is that the neighbor state is abnormal, acquiring the state information of the abnormal neighbor switch; wherein the status information at least includes: physical interface, interface status, management status, and IP address.
Further, the BGP configuration missing or redundant switches and the neighbor switches with abnormal states are summarized into a detection report and a BGP topology map, and the BGP topology map is displayed and presented in the Web interface.
Further, reading the state detection results in the database, and screening abnormal results in the state detection results. And acquiring a change data list corresponding to the abnormal result, and storing the change data list into a database.
As a possible implementation manner, the data actually recorded by the SDN are combined, if the configuration is missing, the correct configuration is informed, if the neighbor is abnormal, the abnormal neighbor physical interface and information such as state, management state and IP address thereof are informed, and finally the information is assembled into a set of report and topological graph in detail and presented on the Web interface. In order to realize state change examination, automatic detection results are stored in a database, so that the database storage resources are prevented from being exhausted due to frequent automatic detection, the automatic detection results are directly discarded when the automatic detection results are consistent each time, and only a list with inconsistent detection results is reserved.
Fig. 2 is a schematic diagram of a data interaction process of a networking switch configuration and neighbor state detection method provided by the embodiment of the present invention, and as shown in fig. 2, a data overall interaction process of a networking switch configuration and neighbor state detection method provided by the embodiment of the present invention is as follows:
Firstly, the cluster periodic inspection coordination module automatically inspects the networking, and a user manually inspects the networking through a Web interface. The patrol execution module reads the port, BGP configuration and BGP neighbor configuration in the database, generates a switch derivative class, and performs BGP configuration and neighbor state query on the switch. And then, the configuration analysis module is used for analyzing and comparing the data returned by the switches with different protocols and formats, the result is sent to the report generation module and the topology generation module, the two modules read the related service configuration information in the database, generate a detection report and a topology graph according to the detection result, and store the detection result in the database. And the configuration display module reads the detection result in the database to display and displays the detection result in the user Web interface.
As a possible implementation manner, fig. 3 is a schematic diagram of BGP topology provided by an embodiment of the present invention, where, as shown in fig. 3, an abnormal switch and a switch with a neighbor relationship are displayed in the topology. Fig. 4 is a schematic diagram of displaying a configuration detection result according to an embodiment of the present invention, where, as shown in fig. 4, detailed data of the detection result may be further displayed on a topology chart interface, so that a user may intuitively view the detection result.
In addition, the embodiment of the invention also provides a networking switch configuration and neighbor state detection device, as shown in fig. 5, which specifically comprises:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform:
Defining BGP configuration and neighbor relation information of each switch in the target networking, and storing the BGP configuration and neighbor relation information in a database;
acquiring actual issuing configuration and actual neighbor state information of each switch in the target networking;
Determining the state detection result of each switch according to the actual issuing configuration and the actual neighbor state information and BGP configuration and neighbor relation information stored in the database;
and displaying the state detection result in a preset visual form in a Web interface.
Finally, an embodiment of the present invention also provides a storage medium that is a non-volatile computer-readable storage medium storing at least one program, each of the programs including instructions that, when executed by a terminal, cause the terminal to perform:
Defining BGP configuration and neighbor relation information of each switch in the target networking, and storing the BGP configuration and neighbor relation information in a database;
acquiring actual issuing configuration and actual neighbor state information of each switch in the target networking;
Determining the state detection result of each switch according to the actual issuing configuration and the actual neighbor state information and BGP configuration and neighbor relation information stored in the database;
and displaying the state detection result in a preset visual form in a Web interface.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that the present description may be provided as a method, system, or computer program product. Accordingly, the present specification embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description embodiments may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for apparatus, devices, non-volatile computer storage medium embodiments, the description is relatively simple, as it is substantially similar to method embodiments, with reference to the section of the method embodiments being relevant.
The foregoing describes certain embodiments of the present invention. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing is merely exemplary of the present invention and is not intended to limit the present invention. Various modifications and changes may be made to the embodiments of the invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A networking switch configuration and neighbor state detection method, the method comprising:
Defining BGP configuration and neighbor relation information of each switch in the target networking, and storing the BGP configuration and neighbor relation information in a database;
acquiring actual issuing configuration and actual neighbor state information of each switch in the target networking;
Determining the state detection result of each switch according to the actual issuing configuration and the actual neighbor state information and BGP configuration and neighbor relation information stored in the database;
and displaying the state detection result in a preset visual form in a Web interface.
2. The method for detecting configuration and neighbor state of a networking switch according to claim 1, wherein BGP configuration and neighbor relation information of each switch in a target network are defined and stored in a database, and specifically comprising:
Defining BGP configuration of each switch in the target networking based on the automatic deployment strategy of the target networking; wherein, the BGP configuration at least includes: BGP basic configuration, loopback port configuration, loopback port state, underlay port state, multi-Pod switch interconnect port state;
defining neighbor relation information of each switch in the target networking; wherein the neighbor relation information at least includes: BGP neighbor configuration, BGP Underlay neighbor relation state, and BGP Overlay neighbor relation state;
and storing BGP configuration and neighbor relation information of each switch into a database.
3. The method for configuring and detecting a neighbor state of a networking switch according to claim 2, wherein the BGP basic configuration at least comprises: AS numbers, routerID, loopback IP, BGP advertisements;
The Loopback port configuration includes at least: whether there are Loopback 91 and Loopback95 loopback ports, whether they are configured with IP addresses, whether the addresses match BGP advertisements;
the Loopback port states include at least: loopback 91 and Loopback 95 loop back to port status of the port;
The underway port state includes at least: each switch is connected to the neighbor's underway port state, and the Multi-Pod switch interconnect port state.
4. The method for configuring and detecting a neighbor state of a networking switch according to claim 2, wherein the BGP neighbor configuration at least comprises: the spine-leaf neighbor relation, the IP addresses of the underley and the overlay of the database neighbor list and the AS number.
5. The method for configuring and detecting a neighbor state of a networking switch according to claim 1, wherein obtaining an actual issuing configuration and actual neighbor state information of each switch in the target networking specifically includes:
dispatching realization classes of different switch models according to BGP configuration and neighbor relation information recorded in the database by an SDN controller, and transmitting the BGP configuration and neighbor relation information to each switch in the target networking;
Based on the preset time interval, the actual issuing configuration and the actual neighbor state information of each switch are obtained through the actual issuing command.
6. The method for detecting the configuration and the neighbor state of a networking switch according to claim 1, wherein determining the state detection result of each switch according to the actual issuing configuration, the actual neighbor state information, and BGP configuration and neighbor relation stored in the database specifically comprises:
Comparing the actual issuing configuration with BGP configuration recorded in a database through a preset analysis tool to obtain BGP configuration detection results of all switches; wherein, the BGP configuration detection result at least includes: whether BGP configuration is missing or redundant;
Comparing the actual neighbor state information with neighbor relation information recorded in the database to obtain neighbor state detection results of all switches; wherein, the neighbor state detection result includes: whether the neighbor state of each switch is abnormal.
7. The method for configuring a networking switch and detecting a neighbor state according to claim 6, wherein the state detection result is displayed in a Web interface in a preset visual form, and specifically comprises:
if the BGP configuration detection result of any switch is BGP configuration missing or BGP configuration redundancy, the correct BGP configuration is called in the database and sent to the corresponding switch;
If the neighbor state detection result of any switch is that the neighbor state is abnormal, acquiring the state information of the abnormal neighbor switch; wherein the status information at least includes: physical interface, interface status, management status, and IP address;
And summarizing the switch with the BGP configuration deletion or redundancy and the neighbor switch with the abnormal state into a detection report and a BGP topological graph, and displaying the BGP topological graph in a Web interface.
8. The networking switch configuration and neighbor state detection method of claim 1, wherein after displaying the state detection results in a Web interface in a preset visual form, the method further comprises:
reading a state detection result in a database, and screening an abnormal result in the state detection result;
And acquiring a change data list corresponding to the abnormal result, and storing the change data list into the database.
9. A networking switch configuration and neighbor state detection device, the device comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform a networking switch configuration and neighbor state detection method according to any one of claims 1-8.
10. A storage medium, characterized in that the storage medium is a non-volatile computer readable storage medium storing at least one program, each of the programs comprising instructions, which when executed by a terminal, cause the terminal to perform a networking switch configuration and neighbor state detection method according to any of claims 1-8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410802826.3A CN118509356A (en) | 2024-06-20 | 2024-06-20 | Networking switch configuration and neighbor state detection method, equipment and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410802826.3A CN118509356A (en) | 2024-06-20 | 2024-06-20 | Networking switch configuration and neighbor state detection method, equipment and medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN118509356A true CN118509356A (en) | 2024-08-16 |
Family
ID=92238658
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410802826.3A Pending CN118509356A (en) | 2024-06-20 | 2024-06-20 | Networking switch configuration and neighbor state detection method, equipment and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118509356A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120856643A (en) * | 2025-09-22 | 2025-10-28 | 天翼视联科技股份有限公司 | A network access system, method, device and medium based on BGP dynamic routing |
-
2024
- 2024-06-20 CN CN202410802826.3A patent/CN118509356A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120856643A (en) * | 2025-09-22 | 2025-10-28 | 天翼视联科技股份有限公司 | A network access system, method, device and medium based on BGP dynamic routing |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9811435B2 (en) | System for virtual machine risk monitoring | |
| US6978301B2 (en) | System and method for configuring a network device | |
| CA2434241C (en) | System and method for configuration, management and monitoring of network resources | |
| US10019822B2 (en) | Integrated infrastructure graphs | |
| CN113259148B (en) | Alarm correlation detection method, system and medium based on federal learning | |
| US20130297603A1 (en) | Monitoring methods and systems for data centers | |
| US12585508B2 (en) | Reconstructing and verifying proprietary cloud based on state transition | |
| US10868581B2 (en) | Data center management using device identification over power-line | |
| CN109660389A (en) | A kind of IT assets management method and device | |
| CN114363164A (en) | Cloud network service arrangement control method and system, storage medium and electronic equipment | |
| CN102739445B (en) | A kind of method and system for rapidly positioning faults of looped network | |
| CN118509356A (en) | Networking switch configuration and neighbor state detection method, equipment and medium | |
| US20110060826A1 (en) | Detecting and determining availability of a network structure with active connection nodes | |
| US7321561B2 (en) | Verification of connections between devices in a network | |
| CN119316300B (en) | Method and system for generating network topology map | |
| CN119299347A (en) | A method, system, device and medium for analyzing performance of network element boards in the entire network | |
| CN119065803A (en) | Scheduled task scheduling method and system | |
| CN113204361A (en) | Automatic configuration method and device for whole cabinet server | |
| CN116028091A (en) | DCS system upgrade method of nuclear power unit and nuclear power unit | |
| CN119363600B (en) | A method, device and medium for intelligent topology setup | |
| US8199678B2 (en) | Graphical arrangement of IT network components | |
| CN119473504A (en) | Method and system for locating virtual machines based on software SDN architecture | |
| CN109324868A (en) | A method, device and server for expanding and shrinking capacity of virtual machine resources | |
| CN105763627A (en) | Data center managing method and device | |
| CN121603422A (en) | Method, medium and equipment for inter-manufacturer protocol communication based on controller |
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 |