Method, device, equipment and medium for link data configuration synchronizationTechnical Field
The disclosure relates to the field of communication technologies, and in particular, to a method, a device, equipment and a medium for link data configuration synchronization.
Background
In the field of communication technology, a network management system for managing network devices is called a network management software, and unified and centralized management of all network devices in an optical transmission network can be completed through the network management software. The network management software can perform configuration management on various data on the network equipment, so that the normal operation of the service on the network equipment is ensured.
The link data configuration is basic data in a network management software system, and the association mapping of the physical links of all ports on the network equipment and the links on the network management software is completed by configuring the link fiber connection relation among all physical ports on the network equipment, so that data service is provided for other functions depending on link data. The current network management software generally stores link data configuration only in a network element management system, and along with the rapid development of the internet, the network management scale is further expanded, and the network equipment management system has evolved into a system supporting a multi-level hierarchical architecture, wherein the specific hierarchy is as follows: based on the model of the layered architecture, the data storage mode of the network management software is changed, the single-layer storage mode of the link data configuration is limited, and the application scene of the configuration link under the scene of crossing a plurality of network element management systems cannot be met.
Disclosure of Invention
The present disclosure provides a method, an apparatus, a device, and a medium for link data configuration synchronization, which are used for ensuring consistency and reliability of link data of gateway software under a layered architecture.
The technical aim of the disclosure is achieved by the following technical scheme:
A method of link data configuration synchronization, comprising:
The second network management system receives a link configuration command issued by a user layer, analyzes link data of the link configuration command, extracts network element information, and distributes the link configuration command to a third network management system according to the network element information;
after receiving the link configuration command, the third network management system processes the configuration link data, and returns an operation result to the second network management system;
the second network management system stores the configuration link data, constructs a link data configuration notice with a second identifier and reports the link data configuration notice to the first network management system;
The first network management system monitors the link data configuration notification, filters out the configuration link data if the link data configuration notification has no second identifier, and stores the configuration link data if the link data configuration notification has the second identifier.
Further, the method comprises the steps of:
The first network management system receives a link configuration command issued by a user layer, analyzes configuration link data, extracts network element information and distributes the link configuration command to a second network management system according to the network element information;
the second network management system receives the link configuration command and then issues the link configuration command to the third network management system;
after receiving the link configuration command, the third network management system processes the configuration link data, and returns an operation result to the second network management system;
The second network management system stores the configuration link data, and then returns an operation result to the first network management system;
The first network management system receives the operation result and stores the configuration link data, constructs a link data configuration notice with a first identifier, and broadcasts the link data configuration notice to the second network management system;
the second network management system monitors the link data configuration notification from the first network management system, and if the link data configuration notification has no first identifier, the configuration link data is filtered out.
Further, when the link data on the second network management system is changed, the second network management system stores the changed link data, constructs a link data change notification with a second identifier, and reports the link data change notification to the first network management system.
Further, when the link data on the third network management system is changed, the third network management system reports the change to the second network management system, the second network management system stores the changed link data, and constructs a link data change notification with a second identifier, and reports the link data change notification to the first network management system.
Further, the first network management system monitors a link data change notification reported by the second network management system, the link data change notification filters out the changed link data if no second identifier exists, and the link data change notification stores the changed link data if the link data change notification exists.
The device comprises a first network management system, a second network management system and a third network management system, wherein the first network management system comprises a first monitoring module and a first database, and the second network management system comprises a second link configuration module, a second database and a second construction module; the third network management system comprises a third receiving unit and a third data processing unit;
the second link configuration module includes:
The second receiving unit receives a link configuration command issued by the user layer;
a second data processing unit for analyzing the configuration link data and extracting network element information,
The second distributing unit distributes the link configuration command to a third network management system according to the network element information;
after the third receiving unit receives the link configuration command, the third data processing unit processes the configuration link data, and then returns an operation result to the second network management system;
The second database stores the configuration link data;
the second construction module constructs a link data configuration notice with a second identifier and reports the link data configuration notice to the first network management system;
The first monitoring module monitors the link data configuration notification, filters out the configuration link data if the link data configuration notification has no second identifier, and stores the configuration link data in the first database if the link data configuration notification has the second identifier.
Further, the first network management system further includes a first link configuration module and a first construction module, the second network management system further includes a second monitoring module, and the first link configuration module includes:
the first receiving unit receives a link configuration command issued by a user layer;
a first data processing unit for analyzing the configuration link data and extracting network element information,
The first distribution unit distributes the link configuration command to a second network management system according to the network element information;
The first construction module constructs a link data configuration notice with a first identifier, and then broadcasts the link data configuration notice to the second network management system;
The second monitoring module monitors the link data configuration notification from the first network management system, and if the link data configuration notification has no first identifier, the configuration link data is filtered out.
Further, the second link configuration module further includes a second changing unit, when the link data on the second network management system is changed, the second database stores the changed link data, and the second construction module constructs a link data change notification with a second identifier, and the second changing unit reports the link data change notification to the first network management system.
Further, the third network management system includes a third changing unit, when the link data on the third network management system is changed, the third changing unit reports the change to the second network management system, the second database stores the changed link data, and the second construction module constructs a link data change notification with a second identifier, and the third changing unit reports the link data change notification to the first network management system.
An apparatus for implementing link data configuration synchronization, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a method for implementing link data configuration synchronization according to any one of the above when executing the program.
A computer medium having stored thereon a computer program which when executed by a processor performs a method of link data configuration synchronisation as claimed in any one of the preceding claims.
The beneficial effects of the present disclosure are: after the upper network management system sends the link configuration command to the lower network management system, the lower network management system firstly processes the configuration link data of the link configuration command, then returns the processing result to the upper network management system, and only after the lower network management system processes the configuration link data successfully, both the upper network management system and the lower network management system store the configuration link data so as to ensure the consistency of the link data.
When the upper network management system completes storage, a link data configuration notice with an identifier is constructed, and the link data configuration notice is broadcasted to the lower network management system, so that the situation that the link data configuration is not successfully notified to cause data transmission loss is avoided, and the reliability of data transmission is ensured.
Drawings
FIG. 1 is a flow chart of the method of the present disclosure;
FIG. 2 is a schematic diagram of a system of the present disclosure;
FIG. 3 is a schematic diagram of a first embodiment of the present disclosure;
FIG. 4 is a flow chart of a first embodiment of the present disclosure;
FIG. 5 is a flow chart of a second embodiment of the present disclosure;
FIG. 6 is a flow chart of a third embodiment of the present disclosure;
Fig. 7 is a flowchart of a fourth embodiment of the present disclosure.
Detailed Description
The technical scheme of the present disclosure will be described in detail below with reference to the accompanying drawings. In the description of the present disclosure, it should be understood that the terms "first," "second," and "third" are used for descriptive purposes only and are not to be interpreted as indicating or implying a relative importance or the number of technical features indicated is implicitly indicated, only for distinguishing between different components. In the present application, "first", "second" and "third" represent the levels of the network management systems from top to bottom, and the network management system at the high level manages and controls the network management system at the low level.
Fig. 1 is a flowchart of the method of the present disclosure, as shown in fig. 1, a second network management system receives a link configuration command issued by a user layer, parses link data of the link configuration command, extracts network element information, and distributes the link configuration command to a third network management system according to the network element information. After receiving the link configuration command, the third network management system processes the configuration link data, and returns an operation result to the second network management system. If the operation is successful, the second network management system stores the configuration link data, constructs a link data configuration notification with the second identifier and reports the link data configuration notification to the first network management system. The first network management system monitors the link data configuration notice, if the link data configuration notice does not have the second identifier, the configuration link data is filtered, and if the first network management system exists, the configuration link data is stored.
Fig. 2 is a schematic diagram of a system of the present disclosure, and the specific structure of the system is shown in fig. 2, which is not described herein.
Embodiment one: fig. 3 is a schematic diagram of an overall architecture of an embodiment, and fig. 4 is a flowchart of the embodiment, as shown in fig. 3 and fig. 4, a user accesses a network management system through a user operation UI interface or a northbound interface, configures a link in a network element or between network elements, issues a link configuration command to the network management system, and after receiving the link configuration command issued by a user layer, the network management system analyzes the configuration link data and extracts network element information, and distributes the link configuration command to the network element management system to which the network element belongs according to the network element information. Generally, a link in a network element only relates to one network element, a link between network elements relates to 2 different network elements, a network management system queries network element management system information which the network element belongs to according to the network element information, and then distributes a link configuration command of the current operation to the network element management system which each network element belongs to.
After receiving the link configuration command issued by the network management system, the network element management system performs interface conversion on the configuration link data, and then issues the configuration link data to a specific network element. If the link in the network element is to be issued, only one network element is involved, and the network element management system directly issues configuration link data to the network element through an interface; if the link between network elements is to be issued, two different network elements are involved, and in order to ensure the consistency of data on the network element management system, the data of the configuration link needs to be issued to the network elements by parallel processing.
The network element receives the link configuration command issued by the network element management system, processes the configuration link data, and then returns an operation result to the network element management system. The network element management system receives the operation result returned by the network element, if the operation is successful, the configuration link data is saved in the EM database of the network element management system, and then the operation result is returned to the network management system. The network management system receives the operation result returned by the network element management system, if the operation is successful, the configuration link data is saved in the NM database of the network management system, meanwhile, a link data configuration notification with NM identification is constructed, the notification is sent to each network element management system in a broadcast mode, and then the result of the operation is returned to the user layer.
The network element management system monitors the link data configuration notification from the network management system, analyzes the configuration link data of the link data configuration notification, carries out data filtering according to whether the network element management system has NM identification, and then sends the configuration link data to other functional modules which rely on the configuration link data under the network element management system in the form of notification.
The embodiment describes a processing flow of network element link configuration synchronization under a network management system, the system allows configuration of links in network elements or among network elements within the management range of the network management system, supports link configuration and synchronization across a plurality of network element management systems, and ensures the consistency of link data within the whole network management system range.
Embodiment two: as shown in fig. 5, a user accesses a network element management system through a user operation UI interface or a northbound interface, configures links in or between network elements, issues a link configuration command to the network elements, and after receiving the link configuration command issued by the user layer, the network element management system analyzes the configuration link data and extracts network element information, and distributes the link configuration command to the network element to which the user belongs according to the network element information.
The network element receives the link configuration command issued by the network element management system, processes the configuration link data, and then returns an operation result to the network element management system. The network element management system receives the operation result returned by the network element, if the operation is successful, the configuration link data is saved in an EM database of the network element management system, meanwhile, a link data configuration notification with an EM identifier is constructed, and the link data configuration notification is reported to the network management system.
The network management system monitors the link data configuration notice from the network element management system, analyzes the configuration link data of the link data configuration notice and carries out data filtering according to whether the link data configuration notice is provided with the EM mark, if so, the network management system stores the configuration link data and then sends the configuration link data to other functional modules which rely on the configuration link data under the network element management system in a notification mode.
The embodiment describes the processing flow of network element link configuration synchronization under the network element management system, and the system allows the configuration of the network element management system to inform the network element management system and the network management system of synchronously configuring link data in time, so that the consistency of the link data in the whole network management system range is ensured.
Embodiment III: as shown in fig. 6, when the link data on the network element management system is changed, the changed link data is stored in the EM database, meanwhile, a link data change notification with an EM identifier is constructed and is actively reported to the network management system, the network management system monitors the link data change notification reported by the network element management system, after receiving the link data change notification, firstly, the changed link data of the link data change notification is analyzed, and if the EM identifier operated by the network element management system does not exist in the changed link data, the change notification can be directly discarded without any processing; if the EM mark exists, the change link data in the notification needs to be synchronized, the change link data is stored in the NM database, and then the change notification is sent to other functional modules which rely on the change link data under the network management system.
Embodiment four: as shown in fig. 7, when the link data on the network element is changed, the link is actively reported to the network element management system, the network element management system processes the changed link data, stores the changed link data in the EM database, and constructs a link data change notification with the EM identifier and reports the link data change notification to the network management system. The network management system monitors the link data change notification reported by the network element management system, analyzes the change link data of the link data change notification, carries out data filtering according to whether the link data change notification is provided with an EM mark, then stores the change link data to an NM database, and then sends the change link data to other functional modules which rely on the change link data under the network management system in a notification mode.
In the above embodiment, the network management system provides multiple access modes of link configuration, and the user can directly select network elements, single boards, ports and other link attributes of the link to be created in the link configuration management interface through operating the UI interface, and then click a button to send a link configuration command to the network management system; meanwhile, the link data to be created can be directly constructed in the form of a code interface, and the link configuration command is issued to the network management system through a unified interface command format.
In addition, the network management system, the network element management system and the network elements all belong to different expression forms of the network management system and are respectively in different levels.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes using the descriptions and drawings of the present invention or directly or indirectly applied to other related technical fields are included in the scope of the invention.