CN113938378B - Method, equipment and medium for checking network equipment configuration in cloud network environment - Google Patents
Method, equipment and medium for checking network equipment configuration in cloud network environment Download PDFInfo
- Publication number
- CN113938378B CN113938378B CN202111093795.1A CN202111093795A CN113938378B CN 113938378 B CN113938378 B CN 113938378B CN 202111093795 A CN202111093795 A CN 202111093795A CN 113938378 B CN113938378 B CN 113938378B
- Authority
- CN
- China
- Prior art keywords
- configuration information
- information
- service
- network equipment
- configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000012795 verification Methods 0.000 claims abstract description 72
- 230000006870 function Effects 0.000 claims description 5
- 230000008569 process Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000002776 aggregation Effects 0.000 description 2
- 238000004220 aggregation Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- 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/0876—Aspects of the degree of configuration automation
-
- 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/0866—Checking the configuration
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the specification discloses a method for checking the configuration of network equipment in a cloud network environment, so as to automatically check the configuration of the network equipment in a cloud network convergence environment. The cloud network environment comprises a cloud platform, an SDN controller and network equipment to be checked, and the method comprises the following steps: acquiring service information and network equipment information of network equipment to be checked, which are issued by a cloud platform; the service information comprises at least one service type, and the network equipment information at least comprises an equipment model and a configuration driving type of the network equipment to be checked; determining a corresponding configuration information template according to the service type of the service information and the equipment model of the network equipment information; generating target configuration information of the network equipment to be checked according to the service information and the corresponding configuration information template; acquiring actual configuration information in the operation of the network equipment to be checked according to the service information and the configuration driving type; and comparing the target configuration information with the actual configuration information in operation to obtain a configuration information verification result of the network equipment to be verified.
Description
Technical Field
The present disclosure relates to the field of network configuration verification technologies, and in particular, to a method, an apparatus, and a medium for verifying a network device configuration in a cloud network environment.
Background
In recent years, with the active innovation of the cloud computing field and the popularization of the development of cloud computing, cloud network convergence has become a development trend of the cloud computing field. The cloud network integration is a deep innovation of network architecture of parallel driving agents based on service requirements and technical innovation, so that the cloud and the network are highly cooperated and mutually supported, and are mutually a conceptual mode for reference. A typical cloud network convergence environment comprises a cloud platform and a controller. The cloud platform manages server resources and provides relevant computing resources such as CPU, memory, storage and the like; the controller manages network equipment resources, is linked with the cloud platform, and issues virtual service configuration to the network equipment according to the virtual service condition of the cloud platform, so as to realize network communication of upper virtual service.
In the cloud network convergence environment, the controller can issue some basic configuration to the network equipment when the cloud platform is docked at the beginning, and in the service operation stage, the controller can issue service configuration to the network equipment according to the virtual service condition. Because the network devices managed by the controller are more and the bottom network has a plurality of wirings, in the actual operation process, whether the basic configuration or the cloud network service configuration is carried out, the network device configuration in the environment is possibly wrong due to various reasons, and the connectivity of the service is further affected. Meanwhile, because network equipment is numerous and the service is complex, if configuration verification is performed manually to locate faults, a great deal of manpower is consumed, and the efficiency is low.
Therefore, there is a need for a method that can perform configuration verification on network devices in a cloud converged environment.
Disclosure of Invention
One or more embodiments of the present disclosure provide a method, an apparatus, and a medium for checking a configuration of a network device in a cloud network environment, which are configured to solve the following technical problems: how to provide a method for automatically performing configuration verification on network equipment in a cloud network fusion environment.
One or more embodiments of the present disclosure adopt the following technical solutions:
One or more embodiments of the present disclosure provide a method for checking a configuration of a network device in a cloud network environment, where the cloud network environment includes a cloud platform, an SDN controller, and a network device to be checked, the method includes:
Acquiring service information and network equipment information of the network equipment to be checked, which are issued by the cloud platform; the service information comprises at least one service type, and the network equipment information at least comprises an equipment model and a configuration driving type of the network equipment to be checked;
Determining a corresponding configuration information template according to the service type of the service information and the equipment model of the network equipment information; generating target configuration information of the network equipment to be checked according to the service information and the corresponding configuration information template;
Acquiring actual configuration information in the operation of the network equipment to be checked according to the service information and the configuration driving type;
And comparing the target configuration information with the actual configuration information in the running process to obtain a configuration information verification result of the network equipment to be verified.
Optionally, in one or more embodiments of the present disclosure, the generating, according to the service information and the corresponding configuration information template, target configuration information of the network device to be verified specifically includes:
Determining a data form supported by the network equipment to be checked according to the corresponding configuration information template; the dataforms include, but are not limited to: command line format, JSON data format;
determining service configuration information required by the configuration information according to the corresponding configuration information template;
and acquiring the required service configuration information based on the service information, and converting the required service configuration information into a data form supported by the network equipment to be checked so as to acquire the target configuration information of the network equipment to be checked.
Optionally, in one or more embodiments of the present disclosure, the obtaining, according to the service information and the configuration driving type, actual configuration information in operation of the network device to be verified specifically includes:
Determining a mode of the network equipment to be checked for acquiring configuration information according to the configuration driving type corresponding to the network equipment to be checked;
and acquiring actual configuration information in the operation of the network equipment to be checked based on the mode of acquiring the configuration information by the network equipment to be checked and the service information issued by the cloud platform.
Optionally, in one or more embodiments of the present disclosure, the comparing the target configuration information with the running actual configuration information, and obtaining a configuration information verification result of the network device to be verified specifically includes:
Selecting a corresponding comparison mode according to the configuration driving type of the network equipment to be checked;
If the target configuration information is determined to be the same as the actual configuration information based on the corresponding comparison mode, the verification result is that the configuration is successful;
If the target configuration information is determined to be different from the actual configuration information based on the corresponding comparison mode, the verification result is a configuration failure.
Optionally, in one or more embodiments of the present disclosure, after comparing the target configuration information with the running actual configuration information and obtaining a configuration information verification result of the network device to be verified, the method further includes:
based on the service type of the service information and the equipment model of the equipment information, matching a corresponding verification report template;
Inputting the service information, the equipment information and the configuration verification result into a preset learning model in the corresponding verification report template to output a verification report in a preset report form; wherein the preset report form comprises: web pages, files, mails.
Optionally, in one or more embodiments of the present disclosure, the service type of the service information includes: basic service and cloud network service; wherein the basic services include, but are not limited to: MLAG, OSPF, BGP, the cloud services include, but are not limited to, virtual networks, virtual subnets, virtual routes, virtual hosts.
Optionally, in one or more embodiments of the present specification, the network device information includes, but is not limited to: device model, device IP, device function, configuration driver type; the configuration driver types include, but are not limited to: SSH, REST-API.
Optionally, in one or more embodiments of the present disclosure, before the obtaining the service information and the network device information of the network device to be verified, the method further includes:
Determining the time interval of the configuration check according to the performance of the cloud network environment; wherein the performance in the cloud environment is determined by any one or more of: cloud platform, SDN controller, spine exchanger network and virtual machine;
and sending a data acquisition instruction based on the time interval timing so as to acquire service information and network equipment information of the network equipment to be checked.
One or more embodiments of the present disclosure provide a device for configuration verification of a network device in a cloud network environment, where the cloud network environment includes a cloud platform, an SDN controller, and a network device to be verified; comprising the following steps:
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:
Acquiring service information and network equipment information of the network equipment to be checked, which are issued by the cloud platform; the service information comprises at least one service type, and the network equipment information at least comprises an equipment model and a configuration driving type of the network equipment to be checked;
Determining a corresponding configuration information template according to the service type of the service information and the equipment model of the network equipment information; generating target configuration information of the network equipment to be checked according to the service information and the corresponding configuration information template;
Acquiring actual configuration information in the operation of the network equipment to be checked according to the service information and the configuration driving type;
And comparing the target configuration information with the actual configuration information in the running process to obtain a configuration information verification result of the network equipment to be verified.
One or more embodiments of the present specification provide a non-volatile computer storage medium storing computer-executable instructions configured to:
Acquiring service information and network equipment information of the network equipment to be checked, which are issued by the cloud platform; the service information comprises at least one service type, and the network equipment information at least comprises an equipment model and a configuration driving type of the network equipment to be checked;
Determining a corresponding configuration information template according to the service type of the service information and the equipment model of the network equipment information; generating target configuration information of the network equipment to be checked according to the service information and the corresponding configuration information template;
Acquiring actual configuration information in the operation of the network equipment to be checked according to the service information and the configuration driving type;
And comparing the target configuration information with the actual configuration information in the running process to obtain a configuration information verification result of the network equipment to be verified.
The above-mentioned at least one technical scheme that this description embodiment adopted can reach following beneficial effect:
The target configuration information is generated based on the service information and the configuration information template by matching the service type with the equipment model, so that target verification information containing the physical network equipment and the virtual network equipment is obtained, and the problem of incomplete verification content in the prior art is avoided. Meanwhile, different verification modes are used for verification according to the configuration driving types of different devices, so that the verification modes are flexible and changeable, and the accuracy of a verification result is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present description or the solutions in the prior art, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained from these drawings without inventive effort for a person skilled in the art.
In the drawings:
fig. 1 is a schematic diagram of a typical networking topology of a cloud network environment according to an embodiment of the present disclosure;
Fig. 2 is a flowchart of a method for checking configuration of a network device in a cloud network environment according to an embodiment of the present disclosure;
fig. 3 is a schematic internal structure diagram of a device for checking configuration of a network device in a cloud network environment according to an embodiment of the present disclosure;
Fig. 4 is a schematic internal structure diagram of a device for checking configuration of a network device in a cloud network environment according to an embodiment of the present disclosure;
Fig. 5 is a schematic diagram of an internal structure of a nonvolatile storage medium according to an embodiment of the present disclosure.
Detailed Description
The embodiment of the specification provides a method, equipment and medium for checking network equipment configuration in a cloud network environment.
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments of this specification without the exercise of inventive faculty, are intended to be within the scope of this specification.
The cloud network integration is called cloud computing, and the network is a communication network. To be precise, cloud computing includes computing power, storage power, and related hardware and software. The communication network includes aspects of telecommunication networks such as access network, bearer network, core network, etc. As shown in fig. 1, a typical cloud network convergence environment includes a cloud platform and a controller. The cloud platform manages server resources and provides relevant computing resources such as CPU, memory, storage and the like; the controller manages network equipment resources, is linked with the cloud platform, and issues virtual service configuration to the network equipment according to virtual service conditions of the cloud platform, so that network communication of upper-layer virtual services is realized.
In a cloud network environment, when the SDN controller initially connects with the cloud platform, some basic configurations are issued to the network equipment, and in a service operation stage, the controller issues service configurations to the network equipment according to virtual service conditions. Because the network devices managed by the controller are more and the bottom network has a plurality of wirings, in the actual operation process, whether the basic configuration or the cloud network service configuration is carried out, the network device configuration in the environment is possibly wrong due to various reasons, and the connectivity of the service is further affected. Because network equipment is numerous and the service is complex, if configuration verification is performed manually to locate faults, a great deal of manpower is consumed, and the efficiency is low.
In order to solve the above problems, after the service type of the service information is matched with the configuration information template corresponding to the model of the device, the configuration information template can flexibly configure according to the device type, the driving type and the like to obtain the data form corresponding to the model of the network device to be checked, so that the service information generates the target configuration information according to the configuration information template, and a foundation is laid for realizing configuration check of the physical network device and the virtual network device. After the actual configuration information is obtained, different verification modes can be selected according to the configuration driving types of different devices, and the automatic verification mode solves the problem that a great deal of cost is consumed when configuration verification is performed manually. Meanwhile, the verification process combining the service information and the equipment information can verify basic service configuration information and cloud network service configuration information, so that the problem of incomplete verification content in the prior art is solved.
The technical scheme of the specification is described in detail below with reference to the accompanying drawings.
In one or more embodiments of the present disclosure as shown in fig. 2, a method for checking configuration of a network device in a cloud environment is provided.
As shown in fig. 2, the method comprises the steps of:
s201: acquiring service information and network equipment information of the network equipment to be checked, which are issued by the cloud platform; the service information comprises at least one service type, and the network equipment information at least comprises an equipment model and a configuration driving type of the network equipment to be checked.
In one or more embodiments of the present specification, the service type of the service information includes: basic service and cloud network service; wherein the basic services include, but are not limited to: MLAG, OSPF, BGP, the cloud services include, but are not limited to, virtual networks, virtual subnets, virtual routes, virtual hosts.
In one or more embodiments of the present description, the network device information includes, but is not limited to: device model, device IP, device function, configuration driver type; the configuration driver types include, but are not limited to: SSH, REST-API.
In one or more embodiments of the present disclosure, before the obtaining the service information and the network device information of the network device to be verified, the method further includes:
Determining the time interval of the configuration check according to the performance of the cloud network environment; wherein the performance in the cloud environment is determined by any one or more of: cloud platform, SDN controller, spine exchanger network and virtual machine;
and sending a data acquisition instruction based on the time interval timing so as to acquire service information and network equipment information of the network equipment to be checked.
As shown in the network topology diagram of fig. 1, the cloud platform interfaces with the SDN controller after normal deployment. And the cloud platform management server calculates nodes to realize unified management of resources such as calculation, storage and the like in the cloud platform. The SDN controller manages network equipment in the network and realizes flexible scheduling of network resources. The SDN controller can send some basic configuration information to open the physical network in the process of managing the network equipment, and can also send service configuration information according to the service information of the cloud platform to open the virtual network overlay. When the cloud platform creates the cloud network virtual service, the controller can issue corresponding service configuration to the network equipment according to the cloud network virtual service information.
The cloud platform is a complex distributed system, and the configuration of network equipment is misplaced possibly due to the reasons of the system and the like, so that the connectivity of the service is affected. And determining a time interval for checking the configuration of the network equipment in the cloud network environment according to the performance of the cloud network environment so as to ensure the normal operation of the business process. The performance of the cloud platform is determined by the cloud platform, the SDN controller, the leaf-ridge switch network and the network device that form the cloud network convergence environment.
According to the determined time interval, a data acquisition instruction is sent to acquire service information of network equipment to be checked in a cloud network environment issued by an SDN controller, wherein the service information in the specification comprises service information related to two service types of basic service and cloud network service. It should be noted that, the basic service in the cloud network environment includes, but is not limited to, cross-device link aggregation (Multichassis Link Aggregation Group, abbreviated as MLAG), open Shortest path first (Open Shortest PATH FIRST, abbreviated as OSPF), border gateway (Border Gateway Protoco, abbreviated as BGP), and the like, and for different services, the service information stored by the cloud platform is different, for example, BGP in the basic service, and the main information to be stored includes port IP, neighbor IP, and the like. Further, cloud network traffic includes, but is not limited to, virtual networks, virtual subnets, virtual routes, virtual hosts, and the like. The basic service is the same as the basic service, and the main information to be stored is different for different cloud network services. For example: the main information to be stored in the virtual network service in the cloud network service includes a virtual network ID, a virtual network vlanId, a virtual network vnid, and the like.
In order to comprehensively check the cloud network environment configuration check information, the problem that configuration check is inaccurate due to the fact that configuration check is only performed on virtual network equipment and is not performed on physical network equipment is avoided. And acquiring the service information of the network equipment to be checked in the cloud network environment issued by the SDN controller, and acquiring the equipment information of the network equipment to be checked. The device information includes, but is not limited to, a device model number, a device IP, a device function, a configuration driver type, and the like. The configuration driving type refers to that the mode of the equipment for acquiring the configuration information corresponds to the equipment model. Such as: some network devices support the acquisition of configuration information by means of Secure Shell protocol (SSH) and some devices support the acquisition of configuration information by means of a presentation layer state transition interface (REpresentational STATE TRANSFER-Application Program Interface, REST API).
S202: determining a corresponding configuration information template according to the service type of the service information and the equipment model of the network equipment information; and generating target configuration information of the network equipment to be checked according to the service information and the corresponding configuration information template.
In one or more embodiments of the present disclosure, the generating, according to the service information and the corresponding configuration information template, target configuration information of the network device to be verified specifically includes:
Determining a data form supported by the network equipment to be checked according to the corresponding configuration information template; the dataforms include, but are not limited to: command line format, JSON data format;
determining service configuration information required by the configuration information according to the corresponding configuration information template;
and acquiring the required service configuration information based on the service information, and converting the required service configuration information into a data form supported by the network equipment to be checked so as to acquire the target configuration information of the network equipment to be checked.
And finding a corresponding configuration information template according to the equipment type of the network equipment to be checked and the service type of the network equipment to be checked. The format of the configuration information template is as follows:
After obtaining the configuration information template corresponding to the equipment type and the service type, obtaining service configuration information required by the configuration information template according to the service information, and generating target configuration information.
For example, in one embodiment: the configuration driving type of the network equipment of a certain model is SSH, the configuration information is in a relatively visual command line form, and the configuration information template of the port configuration IP service is as follows:
In the configuration template, the configuration information needed in the template is determined according to the equipment model and the service type as the port name: port_name and PORT IP address: ip_address. The target configuration information of the network device is generated based on the configuration information port_name and ip_address required for acquisition from the service information acquired in step S101. For example, suppose that port_name for a PORT to be allocated with IP traffic is eth-0-33 and ip_address is 192.168.10.18/30. The generated business object configuration information is as follows:
In another embodiment, the configuration driver type of a certain type of network device is rest_api, the configuration information is formatted JSON data format, and the configuration information template of the port configuration IP service is as follows:
Wherein port_name and ip_address can be obtained from the information of the service. Suppose that port_name of a PORT is Ethernet1/3 and ip_address is 192.168.10.30/30. The generated business object configuration information is as follows:
As can be seen from the above embodiments of the present disclosure, when the basic service is a service type, different configuration templates can be matched based on different device type numbers. And the data form supported by the network device to be checked can be determined based on the configuration driving type of the network device to be checked, such as the command line form and the JSON data form, which are data supported by different devices. The method comprises the steps that service configuration information required by configuration information can be obtained according to a configuration information template, the required service configuration information is converted into a data form which can be supported by equipment by combining a configuration driving type after the required service configuration information is obtained according to the service information, and target configuration information of network equipment to be checked, which is required by the service when the service platform issues the service information, is obtained.
In one embodiment, taking the cloud network service as an example, the configuration information template of the virtual network service is as follows:
In the configuration information template, service configuration information required by the configuration information is VLANID and VNID, and VLANID and VNID of virtual network information can be obtained based on service information of cloud network service. If the VLANID and VNID of a certain virtual network are 2 and 20000, the target configuration information corresponding to the cloud network service is as follows:
the embodiments of different service types and different device models described above use different configuration information templates and device driving modes, and it can be understood that the configuration information templates and the configuration driving modes in the present disclosure can be flexibly changed according to the actual situation of the network device to be checked.
S203: and acquiring actual configuration information of the network equipment to be checked in operation according to the service information and the configuration driving type.
In one or more embodiments of the present disclosure, the obtaining, according to the service information and the configuration driver type, actual configuration information in operation of the network device to be verified specifically includes:
Determining a mode of the network equipment to be checked for acquiring configuration information according to the configuration driving type corresponding to the network equipment to be checked;
and acquiring actual configuration information in the operation of the network equipment to be checked based on the mode of acquiring the configuration information by the network equipment to be checked and the service information issued by the cloud platform.
The service information may be converted into a data form supported by the device according to the configuration information template described in the above step S202. When the actual configuration information of the network equipment to be checked is obtained, the actual configuration information of the network equipment to be checked in operation corresponding to the service information is obtained in an equipment supporting mode according to the configuration driving form of the network equipment to be checked. The configuration driver type determines to obtain the configuration information, and the obtaining manner includes, but is not limited to, SSH, simple network management protocol (Simple Network Management Protocol, SNMP for short), XML-based network configuration protocol netcon, rest_api, and the like.
S204: and comparing the target configuration information with the actual configuration information in the running process to obtain a configuration information verification result of the network equipment to be verified.
In one or more embodiments of the present disclosure, the comparing the target configuration information with the running actual configuration information, and obtaining a configuration information verification result of the network device to be verified specifically includes:
Selecting a corresponding comparison mode according to the configuration driving type of the network equipment to be checked;
If the target configuration information is determined to be the same as the actual configuration information based on the corresponding comparison mode, the verification result is that the configuration is successful;
If the target configuration information is determined to be different from the actual configuration information based on the corresponding comparison mode, the verification result is a configuration failure.
In one or more embodiments of the present disclosure, after comparing the target configuration information with the running actual configuration information and obtaining the configuration information verification result of the network device to be verified, the method further includes:
based on the service type of the service information and the equipment model of the equipment information, matching a corresponding verification report template;
Inputting the service information, the equipment information and the configuration verification result into a preset learning model in the corresponding verification report template to output a verification report in a preset report form; wherein the preset report forms include but are not limited to: web pages, files, mails.
Different comparison modes can be selected according to different configuration driving types. For example: when the configuration information is obtained in an SSH mode, the configuration information can be compared in an intuitive character string comparison mode, and if the target configuration information is consistent with the actual configuration information, the verification result is that the configuration is successful as shown below. If the two are different, the test result is failure.
In one embodiment of the present disclosure, for configuration information obtained by rest_api, both the target configuration information and the actual configuration information are in JSON format, and the configuration information may be compared by comparing the key data node information. When the target configuration information is inconsistent with the actual configuration information, the verification result is verification failure, as follows:
After the configuration information verification result is obtained, in one or more embodiments of the present specification, a preset verification report template may be matched according to a service type of service information and a device model of device information. After the business information, the equipment information and the verification result are input into the corresponding verification report template, a pre-trained learning model in the verification report template outputs a verification report in a preset report form, so that the verification result and the verification analysis statistics content are conveniently obtained, and the process of manually forming the verification report is saved. Among them, report forms include, but are not limited to, web page, file, mail, etc.
As shown in fig. 3, in one or more embodiments of the present disclosure, an apparatus for checking configuration of a network device in a cloud network environment is provided. The device comprises: a device management module 301, a service management module 302, a configuration management module 303, and a configuration verification module 304.
The device management module is mainly used for managing device information, and when operations such as adding, deleting and modifying the device are performed, the device information needs to be maintained. The information commonly used by the device includes device type, device IP, user name, password, support functions, etc. And the service management module is mainly used for managing service information. For different service types, different service attributes exist, and the service management module abstracts the attribute concerned by the controller according to the service attributes and manages the attribute. The configuration management module is responsible for maintaining a configuration template, generating target configuration information and acquiring actual configuration on equipment. The configuration information template can be flexibly configured according to the equipment type, the driving type and the like, and target configuration information of the service can be generated according to the configuration information template according to the equipment type, the service information and the like. The configuration verification module can compare the verification target configuration information with the actual configuration information in different modes according to the configuration driving type and combining the service information, and output a configuration verification result.
As shown in fig. 4, in one or more embodiments of the present disclosure, a device for checking a configuration of a network device in a cloud network environment is provided, where the cloud network environment includes a cloud platform, an SDN controller, and a network device to be checked; the apparatus comprises:
At least one processor 401; and
A memory 402 communicatively coupled to the at least one processor 401; wherein,
The memory 402 stores instructions executable by the at least one processor 401, the instructions being executable by the at least one processor 401 to enable the at least one processor 401 to:
Acquiring service information and network equipment information of the network equipment to be checked, which are issued by the cloud platform; the service information comprises at least one service type, and the network equipment information at least comprises an equipment model and a configuration driving type of the network equipment to be checked;
Determining a corresponding configuration information template according to the service type of the service information and the equipment model of the network equipment information; generating target configuration information of the network equipment to be checked according to the service information and the corresponding configuration information template;
Acquiring actual configuration information in the operation of the network equipment to be checked according to the service information and the configuration driving type;
And comparing the target configuration information with the actual configuration information in the running process to obtain a configuration information verification result of the network equipment to be verified.
As shown in fig. 5, in one or more embodiments of the present disclosure, there is provided a nonvolatile storage medium storing executable instructions 501 of a computer, the executable instructions 501 including:
Acquiring service information and network equipment information of the network equipment to be checked, which are issued by the cloud platform; the service information comprises at least one service type, and the network equipment information at least comprises an equipment model and a configuration driving type of the network equipment to be checked;
Determining a corresponding configuration information template according to the service type of the service information and the equipment model of the network equipment information; generating target configuration information of the network equipment to be checked according to the service information and the corresponding configuration information template;
Acquiring actual configuration information in the operation of the network equipment to be checked according to the service information and the configuration driving type;
And comparing the target configuration information with the actual configuration information in the running process to obtain a configuration information verification result of the network equipment to be verified.
In this specification, each embodiment is described in a progressive manner, and similar parts of each embodiment are referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, devices, non-volatile computer storage medium embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to the description of method embodiments.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. Furthermore, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing is merely one or more embodiments of the present description and is not intended to limit the present description. Various modifications and alterations to one or more embodiments of this description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of one or more embodiments of the present description, is intended to be included within the scope of the claims of the present description.
Claims (6)
1. A method for verifying network device configuration in a cloud network environment, the cloud network environment comprising a cloud platform, an SDN controller and a network device to be verified, the method comprising:
Acquiring service information and network equipment information of the network equipment to be checked, which are issued by the cloud platform; the service information comprises at least one service type, and the network equipment information at least comprises an equipment model and a configuration driving type of the network equipment to be checked; the service type of the service information comprises: basic service and cloud network service; wherein, the basic service includes: MLAG, OSPF, BGP, the cloud network service comprises a virtual network, a virtual subnet, a virtual route and a virtual host;
Determining a corresponding configuration information template according to the service type of the service information and the equipment model of the network equipment information; generating target configuration information of the network equipment to be checked according to the service information and the corresponding configuration information template; the generating the target configuration information of the network device to be checked according to the service information and the corresponding configuration information template specifically includes:
Determining a data form supported by the network equipment to be checked according to the corresponding configuration information template; the data form comprises: command line format, JSON data format;
determining service configuration information required by the configuration information according to the corresponding configuration information template;
Acquiring the required service configuration information based on the service information, and converting the required service configuration information into a data form supported by the network equipment to be checked so as to acquire target configuration information of the network equipment to be checked;
acquiring actual configuration information in the operation of the network equipment to be checked according to the service information and the configuration driving type;
Comparing the target configuration information with the actual configuration information in operation to obtain a configuration information verification result of the network equipment to be verified;
according to the service information and the configuration driving type, acquiring actual configuration information of the network equipment to be checked in operation specifically comprises the following steps:
Determining a mode of the network equipment to be checked for acquiring configuration information according to the configuration driving type corresponding to the network equipment to be checked;
acquiring actual configuration information in the operation of the network equipment to be checked based on the mode of acquiring the configuration information by the network equipment to be checked and service information issued by the cloud platform;
comparing the target configuration information with the running actual configuration information to obtain a configuration information verification result of the network equipment to be verified, wherein the method specifically comprises the following steps:
Selecting a corresponding comparison mode according to the configuration driving type of the network equipment to be checked;
If the target configuration information is determined to be the same as the actual configuration information based on the corresponding comparison mode, the verification result is that the configuration is successful;
if the target configuration information is determined to be different from the actual configuration information based on the corresponding comparison mode, the verification result is a configuration failure.
2. The method for checking the configuration of a network device in a cloud environment according to claim 1, wherein after comparing the target configuration information with the running actual configuration information and obtaining the configuration information checking result of the network device to be checked, the method further comprises:
based on the service type of the service information and the equipment model of the equipment information, matching a corresponding verification report template;
Inputting the service information, the equipment information and the configuration verification result into a preset learning model in the corresponding verification report template to output a verification report in a preset report form; wherein the preset report form comprises: web pages, files, mails.
3. The method for checking configuration of a network device in a cloud environment according to claim 1, wherein the network device information includes: device model, device IP, device function, configuration driver type; the configuration driver type includes: SSH, REST-API.
4. The method for verifying the configuration of a network device in a cloud network environment according to claim 1, wherein before obtaining the service information and the network device information of the network device to be verified, which are issued by the cloud platform, the method further comprises:
Determining the time interval of the configuration check according to the performance of the cloud network environment; wherein the performance in the cloud environment is determined by any one or more of: cloud platform, SDN controller, leaf spine switch network and virtual machine;
And sending a data acquisition instruction based on the time interval timing so as to acquire service information and network equipment information of the network equipment to be checked.
5. The device for verifying the network device configuration in the cloud network environment is characterized in that the cloud network environment comprises a cloud platform, an SDN controller and network devices to be verified; the apparatus 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:
Acquiring service information and network equipment information of the network equipment to be checked, which are issued by the cloud platform; the service information comprises at least one service type, and the network equipment information at least comprises an equipment model and a configuration driving type of the network equipment to be checked; the service type of the service information comprises: basic service and cloud network service; wherein, the basic service includes: MLAG, OSPF, BGP, the cloud network service comprises a virtual network, a virtual subnet, a virtual route and a virtual host;
Determining a corresponding configuration information template according to the service type of the service information and the equipment model of the network equipment information; generating target configuration information of the network equipment to be checked according to the service information and the corresponding configuration information template; the generating the target configuration information of the network device to be checked according to the service information and the corresponding configuration information template specifically includes:
Determining a data form supported by the network equipment to be checked according to the corresponding configuration information template; the data form comprises: command line format, JSON data format;
determining service configuration information required by the configuration information according to the corresponding configuration information template;
Acquiring the required service configuration information based on the service information, and converting the required service configuration information into a data form supported by the network equipment to be checked so as to acquire target configuration information of the network equipment to be checked;
acquiring actual configuration information in the operation of the network equipment to be checked according to the service information and the configuration driving type;
Comparing the target configuration information with the actual configuration information in operation to obtain a configuration information verification result of the network equipment to be verified;
according to the service information and the configuration driving type, acquiring actual configuration information of the network equipment to be checked in operation specifically comprises the following steps:
Determining a mode of the network equipment to be checked for acquiring configuration information according to the configuration driving type corresponding to the network equipment to be checked;
acquiring actual configuration information in the operation of the network equipment to be checked based on the mode of acquiring the configuration information by the network equipment to be checked and service information issued by the cloud platform;
comparing the target configuration information with the running actual configuration information to obtain a configuration information verification result of the network equipment to be verified, wherein the method specifically comprises the following steps:
Selecting a corresponding comparison mode according to the configuration driving type of the network equipment to be checked;
If the target configuration information is determined to be the same as the actual configuration information based on the corresponding comparison mode, the verification result is that the configuration is successful;
if the target configuration information is determined to be different from the actual configuration information based on the corresponding comparison mode, the verification result is a configuration failure.
6. A non-volatile storage medium having stored thereon executable instructions of a computer, the executable instructions comprising:
Acquiring service information and network equipment information of the network equipment to be checked, which are issued by the cloud platform; the service information comprises at least one service type, and the network equipment information at least comprises an equipment model and a configuration driving type of the network equipment to be checked; the service type of the service information comprises: basic service and cloud network service; wherein, the basic service includes: MLAG, OSPF, BGP, the cloud network service comprises a virtual network, a virtual subnet, a virtual route and a virtual host;
Determining a corresponding configuration information template according to the service type of the service information and the equipment model of the network equipment information; generating target configuration information of the network equipment to be checked according to the service information and the corresponding configuration information template; the generating the target configuration information of the network device to be checked according to the service information and the corresponding configuration information template specifically includes:
Determining a data form supported by the network equipment to be checked according to the corresponding configuration information template; the data form comprises: command line format, JSON data format;
determining service configuration information required by the configuration information according to the corresponding configuration information template;
Acquiring the required service configuration information based on the service information, and converting the required service configuration information into a data form supported by the network equipment to be checked so as to acquire target configuration information of the network equipment to be checked;
acquiring actual configuration information in the operation of the network equipment to be checked according to the service information and the configuration driving type;
Comparing the target configuration information with the actual configuration information in operation to obtain a configuration information verification result of the network equipment to be verified;
according to the service information and the configuration driving type, acquiring actual configuration information of the network equipment to be checked in operation specifically comprises the following steps:
Determining a mode of the network equipment to be checked for acquiring configuration information according to the configuration driving type corresponding to the network equipment to be checked;
acquiring actual configuration information in the operation of the network equipment to be checked based on the mode of acquiring the configuration information by the network equipment to be checked and service information issued by the cloud platform;
comparing the target configuration information with the running actual configuration information to obtain a configuration information verification result of the network equipment to be verified, wherein the method specifically comprises the following steps:
Selecting a corresponding comparison mode according to the configuration driving type of the network equipment to be checked;
If the target configuration information is determined to be the same as the actual configuration information based on the corresponding comparison mode, the verification result is that the configuration is successful;
if the target configuration information is determined to be different from the actual configuration information based on the corresponding comparison mode, the verification result is a configuration failure.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111093795.1A CN113938378B (en) | 2021-09-17 | 2021-09-17 | Method, equipment and medium for checking network equipment configuration in cloud network environment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111093795.1A CN113938378B (en) | 2021-09-17 | 2021-09-17 | Method, equipment and medium for checking network equipment configuration in cloud network environment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113938378A CN113938378A (en) | 2022-01-14 |
| CN113938378B true CN113938378B (en) | 2024-05-28 |
Family
ID=79276065
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111093795.1A Active CN113938378B (en) | 2021-09-17 | 2021-09-17 | Method, equipment and medium for checking network equipment configuration in cloud network environment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113938378B (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114531358A (en) * | 2022-01-18 | 2022-05-24 | 浪潮思科网络科技有限公司 | Method, device, equipment and medium for dynamically controlling external network access authority |
| CN114826969B (en) * | 2022-03-17 | 2024-02-06 | 阿里巴巴(中国)有限公司 | Network connectivity checking method, device, equipment and storage medium |
| CN115277401B (en) * | 2022-07-20 | 2024-05-14 | 浪潮思科网络科技有限公司 | Equipment capacity expansion method, device, equipment and medium for established networking |
| CN115344564B (en) * | 2022-08-18 | 2025-05-30 | 平安科技(深圳)有限公司 | Data verification method, device, computer equipment and storage medium |
| CN119135538A (en) * | 2024-08-15 | 2024-12-13 | 浪潮网络科技(山东)有限公司 | A configuration delivery verification method, device and medium for SDN controller |
| CN119276701A (en) * | 2024-10-14 | 2025-01-07 | 广东电网有限责任公司广州供电局 | Internet of Things communication equipment configuration management method, device, equipment and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5872928A (en) * | 1995-02-24 | 1999-02-16 | Cabletron Systems, Inc. | Method and apparatus for defining and enforcing policies for configuration management in communications networks |
| CA2466826A1 (en) * | 2004-05-11 | 2005-11-11 | Bce Inc | Method and apparatus for network configuration validation |
| CN107547263A (en) * | 2017-07-26 | 2018-01-05 | 南京邮电大学 | A kind of method realized network element device automation and search template configuration |
| CN110300017A (en) * | 2019-05-22 | 2019-10-01 | 北京百度网讯科技有限公司 | Standard configuration generating means and method and network equipments configuration error correction device and method |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6978301B2 (en) * | 2000-12-06 | 2005-12-20 | Intelliden | System and method for configuring a network device |
| US7747165B2 (en) * | 2001-06-13 | 2010-06-29 | Alcatel-Lucent Usa Inc. | Network operating system with topology autodiscovery |
| US20070244997A1 (en) * | 2005-08-31 | 2007-10-18 | Tindal Glen D | System and method for configuring a network device |
-
2021
- 2021-09-17 CN CN202111093795.1A patent/CN113938378B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5872928A (en) * | 1995-02-24 | 1999-02-16 | Cabletron Systems, Inc. | Method and apparatus for defining and enforcing policies for configuration management in communications networks |
| CA2466826A1 (en) * | 2004-05-11 | 2005-11-11 | Bce Inc | Method and apparatus for network configuration validation |
| CN107547263A (en) * | 2017-07-26 | 2018-01-05 | 南京邮电大学 | A kind of method realized network element device automation and search template configuration |
| CN110300017A (en) * | 2019-05-22 | 2019-10-01 | 北京百度网讯科技有限公司 | Standard configuration generating means and method and network equipments configuration error correction device and method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113938378A (en) | 2022-01-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113938378B (en) | Method, equipment and medium for checking network equipment configuration in cloud network environment | |
| US11909744B2 (en) | Network verification method and apparatus | |
| CN104704775B (en) | It was found that, confirm and configuration hardware inventory component | |
| CN105099789B (en) | A kind of network element updating method and apparatus | |
| EP3780500B1 (en) | Network management with topology dependency and path generation | |
| EP3905598A1 (en) | Message processing method and apparatus, control plane device, and computer storage medium | |
| US10764214B1 (en) | Error source identification in cut-through networks | |
| US11811610B2 (en) | Method and apparatus for holistic rendering of cloud network configuration | |
| CN105721306A (en) | Configuration information transmission method and device | |
| US12137028B2 (en) | Edge compute environment configuration tool for a communications network | |
| KR102045556B1 (en) | Apparatus and method for controlling network device based on network service in communication system | |
| EP4207702A1 (en) | Dynamic prediction of system resource requirement of network software in a live network using data driven models | |
| CN103326887B (en) | A kind of interface managerial method and system | |
| CN113794587B (en) | Port configuration method and device | |
| CN115118585A (en) | Service deployment method, device and system | |
| CN109379239B (en) | Method and device for configuring access switch in OpenStack environment | |
| CN109861869B (en) | Configuration file generation method and device | |
| CN112532528B (en) | Message routing method and device for rule engine | |
| CN112291081B (en) | Method, system and storage medium for auditing controller cluster data by cloud management platform | |
| CN112448915B (en) | Verification method and device for configuration message and computer storage medium | |
| Cheng et al. | Reaching Consensus with Byzantine Faulty Controllers in Software‐Defined Networks | |
| EP4290819A1 (en) | Service deployment method, apparatus, and system | |
| CN106506247B (en) | Virtual network creating method and device | |
| Wang | A Traffic Scheduling Method Based on SDN | |
| US12407572B2 (en) | Method and apparatus to create a virtualized replica of a computer network |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |