CN112087322A - Method, device and equipment for configuring basic information of network element and readable storage medium - Google Patents
Method, device and equipment for configuring basic information of network element and readable storage medium Download PDFInfo
- Publication number
- CN112087322A CN112087322A CN202010837949.2A CN202010837949A CN112087322A CN 112087322 A CN112087322 A CN 112087322A CN 202010837949 A CN202010837949 A CN 202010837949A CN 112087322 A CN112087322 A CN 112087322A
- Authority
- CN
- China
- Prior art keywords
- network element
- newly added
- resource pool
- target
- configuring
- 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.)
- Granted
Links
Images
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
- H04L41/0886—Fully automatic configuration
-
- 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/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
- H04L41/0826—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for reduction of network costs
-
- 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/0889—Techniques to speed-up the configuration process
-
- 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/0893—Assignment of logical groups to network elements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
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 invention provides a method, a device and equipment for configuring basic information of a network element and a readable storage medium. The method comprises the following steps: acquiring an LLDP message reported by the newly added network element, and determining a neighbor network element of the newly added network element based on a basic TLV in the LLDP message; determining a target routing domain to which the newly added network element belongs based on the self-defined TLV of the neighbor network element; and generating basic configuration information of the newly added network element based on the target resource pool corresponding to the target routing domain and the target protocol parameter template, and issuing the basic configuration information to the newly added network element. According to the invention, the target routing domain to which the newly added network element belongs is automatically identified on the basis of the LLDP message reported by the newly added network element, so that the basic configuration information of the newly added network element is generated on the basis of the target resource pool and the target protocol parameter template corresponding to the target routing domain, and the service configuration of the newly added network element is automatically completed, thereby realizing intelligent operation and maintenance, effectively reducing the workload of network operation and maintenance personnel, improving the operation and maintenance efficiency and reducing the operation and maintenance cost.
Description
Technical Field
The present invention relates to the field of network operation and maintenance technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for configuring basic information of a network element.
Background
With the rapid development of the telecommunication industry, especially the rapid development of LTE (Long Term Evolution) and the research and trial use of 5G networks, the scale of communication transmission networks is getting larger, from tens of sites before to hundreds or thousands of sites now, the number of network elements managed by a network management system is getting larger, and the network structure is also getting more and more complex. Especially, with the formal online operation of the 5G technology, the number of various small base stations and micro base stations will increase explosively, and the number of corresponding edge access network elements will also increase rapidly. The traditional method for carrying out network element configuration by manual operation has the defects of huge workload, easy error and incapability of meeting the requirement of 5G technology development.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a readable storage medium for configuring basic information of a network element, and aims to solve the technical problems that the workload is huge and errors are easy to occur in a mode of carrying out network element configuration by manual operation in the prior art.
In a first aspect, the present invention provides a method for configuring basic information of a network element, where the method for configuring basic information of a network element includes:
acquiring an LLDP message reported by a newly added network element, and determining a neighbor network element of the newly added network element based on a basic TLV in the LLDP message;
determining a target routing domain to which the newly added network element belongs based on the self-defined TLV of the neighbor network element;
and generating basic configuration information of the newly added network element based on a target resource pool corresponding to the target routing domain and a target protocol parameter template, and issuing the basic configuration information to the newly added network element.
Optionally, before the step of obtaining the LLDP message reported by the newly added network element and determining the neighbor network element of the newly added network element based on the basic TLV in the LLDP message, the method further includes:
creating a resource pool library, and setting a resource range corresponding to each resource pool in the resource pool library, wherein the resource pool library comprises a plurality of label switching router ID resource pools, a plurality of link IP address resource pools, a plurality of IGP process number resource pools and a plurality of autonomous system number resource pools;
establishing a protocol parameter template library, and establishing a first corresponding relation between each protocol parameter template in the protocol parameter template library and each resource pool in a resource pool library;
establishing a second corresponding relation between each resource pool and each routing domain in the resource pool library;
and storing the resource pool library, the protocol parameter template library, the first corresponding relation and the second corresponding relation.
Optionally, the step of determining the target routing domain to which the newly added network element belongs based on the self-defined TLV of the neighbor network element includes:
extracting the label switching router ID, the link IP address, the IGP process number and the autonomous system number of the neighbor network element from the self-defined TLV of the neighbor network element;
determining a target resource pool corresponding to the neighbor network element based on the label switching router ID, the link IP address, the IGP process number and the autonomous system number of the neighbor network element, and the resource range corresponding to each resource pool in the resource pool library;
and determining a target routing domain to which the newly added network element belongs based on the second corresponding relation and the target resource pool corresponding to the neighbor network element.
Optionally, after the step of generating the basic configuration information of the newly added network element based on the target resource pool corresponding to the target routing domain and the target protocol parameter template, and sending the basic configuration information to the newly added network element, the method further includes:
performing static routing configuration on the newly added network element;
determining a target L3VPN according to the neighbor network element and the SPE node of the target routing domain;
adding the newly added network element into the target L3VPN, and determining a peer network element in the target L3VPN, wherein the peer network element is in a peer relationship with the newly added network element;
and sending the routing information of the newly added network element to the peer network element, and sending the routing information of the peer network element to the newly added network element.
Optionally, the step of determining the target L3VPN according to the neighboring network element and the SPE node of the target routing domain includes:
and taking the L3VPN added by the neighbor network element and the SPE node of the target routing domain as the target L3 VPN.
In a second aspect, the present invention further provides a device for configuring basic information of a network element, where the device for configuring basic information of a network element includes:
an obtaining module, configured to obtain an LLDP message reported by a newly added network element, and determine a neighbor network element of the newly added network element based on a basic TLV in the LLDP message;
the searching module is used for determining a target routing domain to which the newly added network element belongs based on the self-defined TLV of the neighbor network element;
and the generating module is used for generating basic configuration information of the newly added network element based on a target resource pool corresponding to the target routing domain and a target protocol parameter template, and sending the basic configuration information to the newly added network element.
In a third aspect, the present invention further provides an apparatus for configuring basic information of a network element, where the apparatus for configuring basic information of a network element includes a processor, a memory, and a program stored in the memory and executable by the processor, where the program for configuring basic information of a network element implements the steps of the method for configuring basic information of a network element as described above when the program for configuring basic information of a network element is executed by the processor.
In a fourth aspect, the present invention further provides a readable storage medium, which stores a program for configuring basic information of a network element, wherein the program for configuring basic information of a network element, when executed by a processor, implements the steps of the method for configuring basic information of a network element as described above.
In the invention, an LLDP message reported by a newly added network element is obtained, and a neighbor network element of the newly added network element is determined based on a basic TLV in the LLDP message; determining a target routing domain to which the newly added network element belongs based on the self-defined TLV of the neighbor network element; and generating basic configuration information of the newly added network element based on a target resource pool corresponding to the target routing domain and a target protocol parameter template, and issuing the basic configuration information to the newly added network element. According to the invention, the target routing domain to which the newly added network element belongs is automatically identified on the basis of the LLDP message reported by the newly added network element, so that the basic configuration information of the newly added network element is generated on the basis of the target resource pool and the target protocol parameter template corresponding to the target routing domain, and the service configuration of the newly added network element is automatically completed, thereby realizing intelligent operation and maintenance, effectively reducing the workload of network operation and maintenance personnel, improving the operation and maintenance efficiency and reducing the operation and maintenance cost.
Drawings
Fig. 1 is a schematic hardware structure diagram of an apparatus for configuring basic information of a network element according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating an embodiment of a method for configuring basic information of a network element according to the present invention;
fig. 3 is a schematic functional block diagram of an embodiment of an apparatus for configuring basic information of a network element.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a first aspect, an embodiment of the present invention provides an apparatus for configuring basic information of a network element.
Referring to fig. 1, fig. 1 is a schematic hardware structure diagram of an apparatus for configuring basic information of a network element according to an embodiment of the present invention. In this embodiment of the present invention, the device for configuring basic information of a network element may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WI-FI interface, WI-FI interface); the memory 1005 may be a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, a memory 1005, which is one type of computer storage medium in fig. 1, may include an operating system, a network communication module, a user interface module, and a program for configuring basic information of a network element. The processor 1001 may call a program for configuring the basic information of the network element stored in the memory 1005, and execute the method for configuring the basic information of the network element provided in the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides a method for configuring basic information of a network element.
Referring to fig. 2, fig. 2 is a flowchart illustrating an embodiment of a method for configuring basic information of a network element according to the present invention. In one embodiment, a method for configuring basic information of a network element includes:
step S10, acquiring an LLDP message reported by a newly added network element, and determining a neighbor network element of the newly added network element based on a basic TLV in the LLDP message;
in this embodiment, an execution body (hereinafter referred to as an execution body) of the method for configuring the basic information of the network element obtains an LLDP message reported by the newly added network element, and extracts a basic TLV in the LLDP message, where the basic TLV carries identity information of a neighbor network element adjacent to the newly added network element, and therefore, based on the basic TLV in the LLDP message, the neighbor network element of the newly added network element can be determined.
The execution subject may be an NMS (Network Management System). The Link Layer Discovery Protocol (LLDP) provides a standard Link Layer Discovery mode, and may organize Information such as a main capability, a Management address, a device identifier, and an interface identifier of a local device into different TLVs (Type/Length/Value), encapsulate the TLVs into an LLDPDU (Link Layer Discovery Protocol Data Unit), send the TLVs to a neighbor directly connected to the local device, and store the TLVs in a standard MIB (Management Information Base) form after the neighbor receives the Information, so as to allow a network Management system to search and determine a communication status of a Link.
Step S20, based on the self-defined TLV of the neighbor network element, determining the target routing domain to which the newly added network element belongs;
in this embodiment, the LLDP message reported by the neighbor network element may also be queried by the execution main body, and the execution main body extracts the custom TLV from the LLDP message reported by the neighbor network element, that is, may determine the routing domain to which the neighbor network element belongs, and uses the routing domain to which the neighbor network element belongs as the target routing domain to which the newly added network element belongs. Where custom TLVs may be defined by a professional organization or various vendors related to specific functions implemented within the system. For example, the custom TLV includes: a management port address, a network side port IP address, an IGP process number, an autonomous system number, and a BGP process instance. The management port address refers to a ring back port IP address of the corresponding device, and is used as an LSR ID (Label Switch Router ID), the network side port IP address refers to a network element NNI side fiber connection port IP address, the IGP process number refers to an IGP process number running on the network element and the port, the autonomous system number refers to an autonomous system number corresponding to a routing domain to which the network element belongs, and the BGP process instance refers to key information of the BGP process instance.
Further, in an embodiment, before step S10, the method further includes:
step S401, a resource pool library is created, and a resource range corresponding to each resource pool in the resource pool library is set, wherein the resource pool library comprises a plurality of label switching router ID resource pools, a plurality of link IP address resource pools, a plurality of IGP process number resource pools and a plurality of autonomous system number resource pools;
in this embodiment, a plurality of LSR ID (Label Switch Router ID) resource pools are created on a graphical interface of an NMS, and a resource range therein is set, for example, the resource range of one Label Switch Router ID resource pool is 10.12.2.1 to 10.12.2.100. And establishing a plurality of link IP address resource pools, a plurality of IGP process numbers and a plurality of AS number resource pools based on the same mode, and setting a resource range corresponding to each resource pool.
Step S402, a protocol parameter template base is established, and a first corresponding relation between each protocol parameter template in the protocol parameter template base and each resource pool in the resource pool base is established;
in this embodiment, a Protocol parameter template of a routing Protocol such as IGP (Internal Gateway Protocol), BGP (Border Gateway Protocol), or the like is created in an NMS system. For example: and creating protocol parameter templates such as IGP process configuration, IGP interface configuration, BGP address family, BGP peer and the like on a graphical interface of the NMS to obtain a protocol parameter template library. Then, establishing a first corresponding relationship between each protocol parameter template and each resource pool, for example: IGP process configuration, BGP address family protocol parameter template and certain LSR ID resource pool are corresponding; IGP interface configuration and BGP peer protocol parameter templates correspond to a certain link IP address resource pool.
Step S403, establishing a second corresponding relation between each resource pool and each routing domain in the resource pool library;
in this embodiment, a second corresponding relationship between each resource pool in the resource pool library and each routing domain is established, that is, a corresponding relationship between each resource pool and unique identification information of each routing domain is established, where the unique identification information of different routing domains is different. For example: establishing a corresponding relation between an ID resource pool 1 of a label switching router and unique identification information of a routing domain 1, establishing a corresponding relation between a link IP address resource pool 1 and the unique identification information of the routing domain 1, establishing a corresponding relation between a plurality of IGP process numbers 1 and the unique identification information of the routing domain 1, and establishing a corresponding relation between an AS number resource pool 1 and the unique identification information of the routing domain 1; and establishing a corresponding relation between the label switching router ID resource pool 2 and the unique identification information of the routing domain 2.
Step S404, storing the resource pool library, the protocol parameter template library, the first corresponding relation and the second corresponding relation.
In this embodiment, the resource pool library, the protocol parameter template library, the first corresponding relationship, and the second corresponding relationship that are established as described above are stored in a database of the NMS.
Further, in one embodiment, step S20 includes:
step S201, extracting the label switching router ID, the link IP address, the IGP process number and the autonomous system number of the neighbor network element from the self-defined TLV of the neighbor network element;
in this embodiment, the NMS extracts the tag switching router ID, the link IP address, the IGP process number, and the autonomous system number of the neighbor network element from the self-defined TLV in the LLDP message reported by the neighbor network element.
Step S202, based on the label switching router ID, the link IP address, the IGP process number and the autonomous system number of the neighbor network element, and the resource range corresponding to each resource pool in the resource pool library, determining the target resource pool corresponding to the neighbor network element;
in this embodiment, as described in the above embodiments, each resource pool has a corresponding resource range. For example, the resource range of a certain LSR ID resource pool is 10.12.2.1 to 10.12.2.100, and if the LSR ID of the neighbor network element is 10.12.2.5, it can be determined that the LSR ID of the neighbor network element is in the LSR ID resource pool, and the determination rules of other resource pools are consistent with the manner of determining the LSR ID resource pool. Thus, a target resource pool corresponding to the neighbor network element can be obtained, namely a target label switching router ID resource pool corresponding to the label switching router ID of the neighbor network element, a target link IP address resource pool corresponding to the link IP address of the neighbor network element, a target IGP process number resource pool corresponding to the IGP process number of the neighbor network element and a target autonomous system number resource pool corresponding to the autonomous system number of the neighbor network element.
Step S203, determining a target routing domain to which the newly added network element belongs based on the second corresponding relationship and the target resource pool corresponding to the neighbor network element.
In this embodiment, as described in the foregoing embodiment, after the target resource pool corresponding to the neighbor network element is determined, the routing domain to which the neighbor network element belongs may be determined according to the second correspondence, and the routing domain to which the neighbor network element belongs is used as the target routing domain to which the newly added network element belongs. It is easy to understand that, for a network element, the corresponding label switching router ID resource pool, link IP address resource pool, IGP process number resource pool, and autonomous system number resource pool all correspond to the same routing domain.
Step S30, generating basic configuration information of the newly added network element based on the target resource pool corresponding to the target routing domain and the target protocol parameter template, and sending the basic configuration information to the newly added network element.
In an optional embodiment, the resource pool and the protocol parameter template corresponding to each routing domain are preset. And after determining the target routing domain to which the newly added network element belongs, acquiring a target resource pool and a target protocol parameter template corresponding to the target routing domain, so as to generate basic configuration information of the newly added network element based on the target resource pool and the target protocol parameter template, and issuing the basic configuration information to the newly added network element so that the newly added network element can perform information configuration based on the basic configuration information. For example: distributing LSR ID resources for the new access network element through a target LSR ID resource pool corresponding to a target routing domain, distributing IP addresses for network side ports where fibers of the new access network element are located through a target link IP address resource pool corresponding to the target routing domain, distributing IGP process numbers and AS numbers for the new access network element and the network side ports through a target IGP process number and AS number resource pool corresponding to the target routing domain, and automatically generating corresponding protocol configuration parameters for the new network element and the new ports through a target protocol parameter template corresponding to the target routing domain to obtain basic configuration information of the newly added network element.
Further, in another optional embodiment, as described in the foregoing embodiment, the target resource pool and the target protocol parameter template corresponding to the target routing domain may also be obtained based on the first corresponding relationship and the second corresponding relationship.
In this embodiment, an LLDP message reported by a newly added network element is obtained, and a neighbor network element of the newly added network element is determined based on a basic TLV in the LLDP message; determining a target routing domain to which the newly added network element belongs based on the self-defined TLV of the neighbor network element; and generating basic configuration information of the newly added network element based on a target resource pool corresponding to the target routing domain and a target protocol parameter template, and issuing the basic configuration information to the newly added network element. According to the embodiment, the target routing domain to which the newly added network element belongs is automatically identified on the basis of the LLDP reported by the newly added network element, so that the basic configuration information of the newly added network element is generated on the basis of the target resource pool and the target protocol parameter template corresponding to the target routing domain, and the service configuration of the newly added network element is automatically completed, thereby realizing intelligent operation and maintenance, effectively reducing the workload of network operation and maintenance personnel, improving the operation and maintenance efficiency and reducing the operation and maintenance cost.
Further, in an embodiment, after step S30, the method further includes:
performing static routing configuration on the newly added network element;
in this embodiment, the static routing configuration of the newly added network element can be completed through the network element configuration graphical interface of the NMS. Wherein, the static route configuration is to set the IP information of the base station connected with the newly added network element.
Determining a target L3VPN according to the neighbor network element and the SPE node of the target routing domain;
in this embodiment, the target L3VPN to be added to the newly added network element is determined according to the L3VPN added to the neighboring network element and the L3VPN added to the SPE node of the target routing domain.
Further, in an embodiment, the step of determining the target L3VPN according to the neighboring network element and the SPE node of the target routing domain includes:
and taking the L3VPN added by the neighbor network element and the SPE node of the target routing domain as the target L3 VPN.
In this embodiment, it is considered that there may be a plurality of L3 VPNs added by the neighbor network element, and therefore, the L3 VPNs added by the neighbor network element and the SPE node of the target routing domain are used as the target L3 VPNs.
Adding the newly added network element into the target L3VPN, and determining a peer network element in the target L3VPN, wherein the peer network element is in a peer relationship with the newly added network element;
in this embodiment, the newly added network element is added to the target L3VPN through a graphical interface of an L3VPN configuration module of the NMS system, and the L3VPN configuration module automatically determines whether the newly added network element is in a peer relationship with other network elements in the target L3VPN according to whether the fiber in the domain is reachable, and determines a peer network element in the target L3VPN that is in a peer relationship with the newly added network element. Then, TUNNEL creation between the newly added network element and the peer network element is automatically completed through the L3VPN configuration module, and modification and storage of the target L3VPN are completed.
And sending the routing information of the newly added network element to the peer network element, and sending the routing information of the peer network element to the newly added network element.
In this embodiment, a route calculation operation is performed on the target L3VPN, and the route information of the newly added network element is sent to each peer network element, and the route information of each peer network element is sent to the newly added network element at the same time.
In this embodiment, the L3VPN corresponding to the routing domain is automatically found according to the determined neighbor network element and the SPE node in the target routing domain, and then the newly added network element is automatically added to the corresponding L3VPN, and a TUNNEL between the newly added network element and the peer network element in the L3VPN is automatically generated, thereby completing the automatic addition of the newly added network element in the private network routing domain. After configuring the static route of the newly added network element, the routing calculation is carried out on the L3VPN, the local routing information of the newly added network element is automatically issued to the peer network element in the domain, and meanwhile, the routing information of the peer network element is issued to the new network element, so that the issuance of the routing information in the routing domain is automatically completed.
In a third aspect, an embodiment of the present invention further provides a device for configuring basic information of a network element.
Referring to fig. 3, fig. 3 is a functional module diagram of an embodiment of an apparatus for configuring basic information of a network element.
In this embodiment, the apparatus for configuring basic information of a network element includes:
an obtaining module 10, configured to obtain an LLDP message reported by a newly added network element, and determine a neighbor network element of the newly added network element based on a basic TLV in the LLDP message;
the searching module 20 is configured to determine, based on the self-defined TLV of the neighbor network element, a target routing domain to which the newly added network element belongs;
a generating module 30, configured to generate basic configuration information of the newly added network element based on the target resource pool corresponding to the target routing domain and the target protocol parameter template, and send the basic configuration information to the newly added network element.
Further, in an embodiment, the apparatus for configuring basic information of a network element further includes:
a creating module 40, configured to create a resource pool library, and set a resource range corresponding to each resource pool in the resource pool library, where the resource pool library includes a plurality of label switching router ID resource pools, a plurality of link IP address resource pools, a plurality of IGP process number resource pools, and a plurality of autonomous system number resource pools; establishing a protocol parameter template library, and establishing a first corresponding relation between each protocol parameter template in the protocol parameter template library and each resource pool in a resource pool library; establishing a second corresponding relation between each resource pool and each routing domain in the resource pool library; and storing the resource pool library, the protocol parameter template library, the first corresponding relation and the second corresponding relation.
Further, in an embodiment, the search module 20 is configured to:
extracting the label switching router ID, the link IP address, the IGP process number and the autonomous system number of the neighbor network element from the self-defined TLV of the neighbor network element;
determining a target resource pool corresponding to the neighbor network element based on the label switching router ID, the link IP address, the IGP process number and the autonomous system number of the neighbor network element, and the resource range corresponding to each resource pool in the resource pool library;
and determining a target routing domain to which the newly added network element belongs based on the second corresponding relation and the target resource pool corresponding to the neighbor network element.
Further, in an embodiment, the apparatus for configuring basic information of a network element further includes:
a diffusion module 50 for:
performing static routing configuration on the newly added network element;
determining a target L3VPN according to the neighbor network element and the SPE node of the target routing domain;
adding the newly added network element into the target L3VPN, and determining a peer network element in the target L3VPN, wherein the peer network element is in a peer relationship with the newly added network element;
and sending the routing information of the newly added network element to the peer network element, and sending the routing information of the peer network element to the newly added network element.
Further, in an embodiment, the diffusion module 50 is configured to:
and taking the L3VPN added by the neighbor network element and the SPE node of the target routing domain as the target L3 VPN.
The function implementation of each module in the apparatus for configuring basic information of a network element corresponds to each step in the embodiment of the method for configuring basic information of a network element, and the functions and implementation processes are not described in detail herein.
In a fourth aspect, the embodiment of the present invention further provides a readable storage medium.
The readable storage medium of the present invention stores a program for configuring basic information of a network element, where the program for configuring basic information of a network element, when executed by a processor, implements the steps of the method for configuring basic information of a network element as described above.
The method implemented when the program for configuring the basic information of the network element is executed may refer to various embodiments of the method for configuring the basic information of the network element of the present invention, and details are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A method for configuring basic information of a network element, the method for configuring basic information of a network element comprising:
acquiring an LLDP message reported by a newly added network element, and determining a neighbor network element of the newly added network element based on a basic TLV in the LLDP message;
determining a target routing domain to which the newly added network element belongs based on the self-defined TLV of the neighbor network element;
and generating basic configuration information of the newly added network element based on a target resource pool corresponding to the target routing domain and a target protocol parameter template, and issuing the basic configuration information to the newly added network element.
2. The method for configuring basic information of a network element according to claim 1, wherein before the step of obtaining the LLDP packet reported by the newly added network element and determining the neighbor network elements of the newly added network element based on the basic TLV in the LLDP packet, the method further comprises:
creating a resource pool library, and setting a resource range corresponding to each resource pool in the resource pool library, wherein the resource pool library comprises a plurality of label switching router ID resource pools, a plurality of link IP address resource pools, a plurality of IGP process number resource pools and a plurality of autonomous system number resource pools;
establishing a protocol parameter template library, and establishing a first corresponding relation between each protocol parameter template in the protocol parameter template library and each resource pool in a resource pool library;
establishing a second corresponding relation between each resource pool and each routing domain in the resource pool library;
and storing the resource pool library, the protocol parameter template library, the first corresponding relation and the second corresponding relation.
3. The method for configuring basic information of network element according to claim 2, wherein the step of determining the target routing domain to which the newly added network element belongs based on the self-defined TLV of the neighboring network element comprises:
extracting the label switching router ID, the link IP address, the IGP process number and the autonomous system number of the neighbor network element from the self-defined TLV of the neighbor network element;
determining a target resource pool corresponding to the neighbor network element based on the label switching router ID, the link IP address, the IGP process number and the autonomous system number of the neighbor network element, and the resource range corresponding to each resource pool in the resource pool library;
and determining a target routing domain to which the newly added network element belongs based on the second corresponding relation and the target resource pool corresponding to the neighbor network element.
4. The method according to claim 1, wherein after the step of generating the basic configuration information of the newly added network element based on the target resource pool corresponding to the target routing domain and the target protocol parameter template, and sending the basic configuration information to the newly added network element, the method further comprises:
performing static routing configuration on the newly added network element;
determining a target L3VPN according to the neighbor network element and the SPE node of the target routing domain;
adding the newly added network element into the target L3VPN, and determining a peer network element in the target L3VPN, wherein the peer network element is in a peer relationship with the newly added network element;
and sending the routing information of the newly added network element to the peer network element, and sending the routing information of the peer network element to the newly added network element.
5. The method of configuring network element basis information according to claim 1, wherein the step of determining a target L3VPN according to the neighbor network element and the SPE node of the target routing domain comprises:
and taking the L3VPN added by the neighbor network element and the SPE node of the target routing domain as the target L3 VPN.
6. An apparatus for configuring basic information of a network element, wherein the apparatus for configuring basic information of a network element comprises:
an obtaining module, configured to obtain an LLDP message reported by a newly added network element, and determine a neighbor network element of the newly added network element based on a basic TLV in the LLDP message;
the searching module is used for determining a target routing domain to which the newly added network element belongs based on the self-defined TLV of the neighbor network element;
and the generating module is used for generating basic configuration information of the newly added network element based on a target resource pool corresponding to the target routing domain and a target protocol parameter template, and sending the basic configuration information to the newly added network element.
7. The apparatus for configuring network element basis information according to claim 6, wherein said apparatus for configuring network element basis information further comprises:
the system comprises a creating module, a judging module and a judging module, wherein the creating module is used for creating a resource pool library and setting a resource range corresponding to each resource pool in the resource pool library, and the resource pool library comprises a plurality of label switching router ID resource pools, a plurality of link IP address resource pools, a plurality of IGP process number resource pools and a plurality of autonomous system number resource pools; establishing a protocol parameter template library, and establishing a first corresponding relation between each protocol parameter template in the protocol parameter template library and each resource pool in a resource pool library; establishing a second corresponding relation between each resource pool and each routing domain in the resource pool library; and storing the resource pool library, the protocol parameter template library, the first corresponding relation and the second corresponding relation.
8. The apparatus for configuring basic information of a network element according to claim 7, wherein the searching module is configured to:
extracting the label switching router ID, the link IP address, the IGP process number and the autonomous system number of the neighbor network element from the self-defined TLV of the neighbor network element;
determining a target resource pool corresponding to the neighbor network element based on the label switching router ID, the link IP address, the IGP process number and the autonomous system number of the neighbor network element, and the resource range corresponding to each resource pool in the resource pool library;
and determining a target routing domain to which the newly added network element belongs based on the second corresponding relation and the target resource pool corresponding to the neighbor network element.
9. An apparatus for configuring network element basis information, the apparatus comprising a processor, a memory, and a program for configuring network element basis information stored on the memory and executable by the processor, wherein the program for configuring network element basis information when executed by the processor implements the steps of the method for configuring network element basis information according to any one of claims 1 to 5.
10. A readable storage medium, characterized in that the readable storage medium stores thereon a program for configuring network element basis information, wherein the program for configuring network element basis information, when executed by a processor, implements the steps of the method for configuring network element basis information according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010837949.2A CN112087322B (en) | 2020-08-19 | 2020-08-19 | Method, device and equipment for configuring basic information of network element and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010837949.2A CN112087322B (en) | 2020-08-19 | 2020-08-19 | Method, device and equipment for configuring basic information of network element and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112087322A true CN112087322A (en) | 2020-12-15 |
CN112087322B CN112087322B (en) | 2021-07-20 |
Family
ID=73728353
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010837949.2A Active CN112087322B (en) | 2020-08-19 | 2020-08-19 | Method, device and equipment for configuring basic information of network element and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112087322B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112671567A (en) * | 2020-12-16 | 2021-04-16 | 中盈优创资讯科技有限公司 | 5G core network topology discovery method and device based on service interface |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101677291A (en) * | 2008-09-18 | 2010-03-24 | 华为技术有限公司 | Method, device and system for automatically configuring network element equipment |
CN102780569A (en) * | 2011-05-09 | 2012-11-14 | 中兴通讯股份有限公司 | Remote management method and network element equipment |
CN102946349A (en) * | 2012-02-23 | 2013-02-27 | Ut斯达康通讯有限公司 | OSPF (open shortest path first) protocol-based Ethernet E-Line service link discovery method and device |
CN103516531A (en) * | 2012-06-21 | 2014-01-15 | 中兴通讯股份有限公司 | Method for automatically discovering network element and corresponding network element and network management devices |
CN103746874A (en) * | 2013-12-30 | 2014-04-23 | 华为技术有限公司 | Method and equipment for IP (Internet protocol) FPM (flow performance monitor) |
CN103929327A (en) * | 2014-03-18 | 2014-07-16 | 烽火通信科技股份有限公司 | Hybrid networking service back calculation method for webmaster |
CN104579728A (en) * | 2013-10-17 | 2015-04-29 | 中兴通讯股份有限公司 | Network element equipment configuration and management method and device as well as network element equipment |
CN105530109A (en) * | 2014-09-30 | 2016-04-27 | 中国电信股份有限公司 | Method, router and system for realizing network element plugging and management |
US20170208518A1 (en) * | 2014-09-30 | 2017-07-20 | Huawei Technologies Co., Ltd. | Dedicated Network Handover Method, Dedicated Network Type Notification Method, and Device |
CN108737159A (en) * | 2018-04-13 | 2018-11-02 | 烽火通信科技股份有限公司 | Processing method, system and the optical transfer network of configuration information in a kind of optical transfer network |
US10374896B2 (en) * | 2015-02-26 | 2019-08-06 | Cisco Technology, Inc. | System and method for automatically detecting and configuring server uplink network interface |
-
2020
- 2020-08-19 CN CN202010837949.2A patent/CN112087322B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101677291A (en) * | 2008-09-18 | 2010-03-24 | 华为技术有限公司 | Method, device and system for automatically configuring network element equipment |
CN102780569A (en) * | 2011-05-09 | 2012-11-14 | 中兴通讯股份有限公司 | Remote management method and network element equipment |
CN102946349A (en) * | 2012-02-23 | 2013-02-27 | Ut斯达康通讯有限公司 | OSPF (open shortest path first) protocol-based Ethernet E-Line service link discovery method and device |
CN103516531A (en) * | 2012-06-21 | 2014-01-15 | 中兴通讯股份有限公司 | Method for automatically discovering network element and corresponding network element and network management devices |
CN104579728A (en) * | 2013-10-17 | 2015-04-29 | 中兴通讯股份有限公司 | Network element equipment configuration and management method and device as well as network element equipment |
CN103746874A (en) * | 2013-12-30 | 2014-04-23 | 华为技术有限公司 | Method and equipment for IP (Internet protocol) FPM (flow performance monitor) |
CN103929327A (en) * | 2014-03-18 | 2014-07-16 | 烽火通信科技股份有限公司 | Hybrid networking service back calculation method for webmaster |
CN105530109A (en) * | 2014-09-30 | 2016-04-27 | 中国电信股份有限公司 | Method, router and system for realizing network element plugging and management |
US20170208518A1 (en) * | 2014-09-30 | 2017-07-20 | Huawei Technologies Co., Ltd. | Dedicated Network Handover Method, Dedicated Network Type Notification Method, and Device |
US10374896B2 (en) * | 2015-02-26 | 2019-08-06 | Cisco Technology, Inc. | System and method for automatically detecting and configuring server uplink network interface |
CN108737159A (en) * | 2018-04-13 | 2018-11-02 | 烽火通信科技股份有限公司 | Processing method, system and the optical transfer network of configuration information in a kind of optical transfer network |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112671567A (en) * | 2020-12-16 | 2021-04-16 | 中盈优创资讯科技有限公司 | 5G core network topology discovery method and device based on service interface |
CN112671567B (en) * | 2020-12-16 | 2023-02-21 | 中盈优创资讯科技有限公司 | 5G core network topology discovery method and device based on service interface |
Also Published As
Publication number | Publication date |
---|---|
CN112087322B (en) | 2021-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9104640B2 (en) | Methods for auto-configuring a router on an IP subnet | |
EP3595244B1 (en) | Network slice management method, unit and system | |
US20230209408A1 (en) | Network slice deployment method and apparatus | |
US20070280241A1 (en) | Discovering MPLS VPN services in a network | |
CN109474508B (en) | VPN networking method, VPN networking system, VPN master node equipment and VPN master node medium | |
EP1901480A1 (en) | Method and system for implementing initialization configuration for the managed devices | |
CN111600762B (en) | Network topology structure generation method, device, equipment and medium | |
CN112953774B (en) | Network topology generation method, system, equipment and computer storage medium | |
CN105721306A (en) | Configuration information transmission method and device | |
CN102316001A (en) | Virtual network connection configuration realizing method and network equipment | |
CN114024886B (en) | Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium | |
WO2017143695A1 (en) | Sub-network intercommunication method and device | |
CN113810206A (en) | Network automation arrangement management method, entity, controller and electronic equipment | |
CN101977142B (en) | Simple network management method and device based on multiple routing protocol instances | |
CN112087322B (en) | Method, device and equipment for configuring basic information of network element and readable storage medium | |
CN112333014B (en) | Device management method and communication apparatus | |
CN109510717B (en) | Method, device, equipment and storage medium for acquiring information of node equipment | |
US8743736B2 (en) | Inferring connectivity in the presence of conflicting network data | |
CN114513419A (en) | Security policy configuration method and system | |
CN105812168B (en) | A kind of method and apparatus for drawing network topological diagram | |
CN101222408B (en) | VLAN topological generating method and device | |
CN112751701B (en) | System, method and computer readable medium for managing network devices | |
US20090310512A1 (en) | Method and apparatus for creating router configuration | |
Lehocine et al. | VINEMA: Towards automated management of virtual networks in SDN infrastructures | |
CN114301775B (en) | Method and device for managing stock service and computer readable storage medium |
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 |