A method for synchronously assembling lsp service data of ipran equipment

By obtaining the basic information of online equipment and collecting lsp service data, the problem of quickly and reliably assembling and displaying lsp link data in the current network environment is solved, the minimum impact on current network services is achieved, and the assembly stability and efficiency are improved through the caching mechanism.

CN115695299BActive Publication Date: 2025-03-21GUANGDONG GLOBAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211368285.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-03
Publication Date
2025-03-21
Estimated Expiration
2042-11-03

AI Technical Summary

Technical Problem

In the current network environment, how to quickly and reliably assemble and display a large amount of existing lsp link data, especially in the case of device models, manufacturers and versions, without affecting the current network service.

Method used

By obtaining the basic information of online devices, collecting LSP service data, assembling the data of individual devices, and finally generating LSP link data. This method adopts a caching mechanism and only performs a small number of read operations to avoid affecting the equipment business.

Benefits of technology

It realizes the rapid and reliable assembly and display of lsp link data in the current network environment, reduces the impact on current network services, and avoids the repetition of device read operations through the cache mechanism, and improves the stability and efficiency of assembly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695299B_ABST
    Figure CN115695299B_ABST
Patent Text Reader

Abstract

The present invention provides a method for synchronously assembling lsp service data of an IPRAN device, comprising the steps of: obtaining basic information of an online device; collecting lsp service data of the online device according to the basic information; assembling the collected lsp service data of a single device; and generating lsp link data. The present invention obtains the lsp data of the device by matching the device type of the online device, thereby realizing the collection and assembly of the device lsp service data and generating lsp link data. In the whole process, there is no write operation, only a small amount of read operation, and a cache mechanism is used to avoid a large amount of repeated device reads to avoid a large impact on the device service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of network communication management, and in particular relates to a method and system for synchronously assembling LSP service data of IPRAN equipment. Background Art

[0002] Network communications include devices of various manufacturers, types, and versions. Generally, device networking precedes the network management system. Therefore, before the network management system goes online, a large number of LSP links already exist and are running in the existing network environment. How to display these existing LSP links in a visual way is an important difficulty and technology of the network management system.

[0003] Due to the diversity and differences in device models, manufacturers, and versions, these differences need to be analyzed, adapted, data cleaned, and unified before assembly. Considering that this technology is applied to the existing network environment, it is a reverse assembly of a large number of devices in the existing network. The amount of device data is large, and the overall assembly requires fast, reliable, and stable. The assembly method using existing technology will have no impact on the current network services. Summary of the invention

[0004] In order to overcome the above technical defects, the present invention provides a method and system for synchronously assembling lsp service data of IPRAN equipment, which can reduce the impact on current network services.

[0005] The present invention is achieved through the following scheme:

[0006] A method for synchronously assembling lsp service data of an IPRAN device, comprising the steps of:

[0007] Get basic information of online devices;

[0008] Collect LSP business data of online devices based on basic information;

[0009] Assemble the collected LSP service data of a single device;

[0010] Generate lsp link data.

[0011] As a further improvement of the present invention, the basic information includes: device online status, device MAC, device ID, device IP and device type;

[0012] The step of collecting LSP service data of online devices according to basic information includes:

[0013] When the device status is displayed as online and the device MAC exists, verify whether the device exists based on the device ID;

[0014] If the device exists, the device port information and device lsp service data are obtained through the device IP and device type.

[0015] As a further improvement of the present invention, the step of verifying whether the device exists according to the device ID includes:

[0016] According to the device ID, first match it in the device basic information cache pool;

[0017] If the match fails, match the device from the database;

[0018] If the match still fails, the verification fails and the device does not exist;

[0019] The step of obtaining device port information through device IP and device type includes:

[0020] According to the device IP and device type, match in the device command group to obtain the device port information command group;

[0021] According to the matched port information command group, the device port information is obtained and parsed to obtain the device port information.

[0022] As a further improvement of the present invention, the step of obtaining device port information and device LSP service data through device IP and device type includes:

[0023] According to the device IP and device type, match in the device MIB library to obtain the MIB of the device LSP service data;

[0024] According to the MIB of the matched device LSP service data, the device LSP service data is obtained and parsed to obtain the device LSP service data.

[0025] As a further improvement of the present invention, the step of matching devices from a database includes:

[0026] If the device is successfully matched in the database, the basic information of the device is written into the device basic information cache pool.

[0027] As a further improvement of the present invention, the step of assembling the collected LSP service data of a single device includes:

[0028] Update Gress node information;

[0029] Update Transit node information;

[0030] Update reverseNode node information and assemble at the same time;

[0031] Update to lspNode node information.

[0032] As a further improvement of the present invention, the step of updating the Gress node information includes:

[0033] Get lspingress / egress information of a single device;

[0034] Compare with the existing lsp data. If there is new data, add the newly added data to the existing lsp data. If there is a change, update the existing lsp data. If the old data does not exist, delete the old data.

[0035] For the lsp information with added and modified new data, the additional data completion operation is performed again.

[0036] As a further improvement of the present invention, the step of updating the Transit node information includes:

[0037] Get the lsptransit information of a single device;

[0038] Compare with existing lsp data, if there is new data, add it, if there is change, update it;

[0039] If the old data does not exist, delete the old data;

[0040] For the lsp information with added and modified new data, the additional data completion operation is performed again.

[0041] As a further improvement of the present invention, the step of updating the reverseNode node information and assembling at the same time includes:

[0042] Clean, adjust and process data before assembly according to ingress / egress data types;

[0043] Clean, adjust and process data before assembly according to transit data type;

[0044] In the overall LSP data pool, including ingress / egress / transit, the changed LSP information is recursively assembled into a complete LSP link and marked based on the ingress and egress LSP labels, next hop and other information.

[0045] As a further improvement of the present invention, the step of updating the lspNode node information includes:

[0046] According to the newly assembled complete LSP link, the currently used LSP link is compared one by one in a loop;

[0047] If the newly assembled link is new, it is directly added to the current lsp link list;

[0048] If the newly assembled link is an update, the current LSP link is updated, including the LSP information of a single LSP device and the addition and deletion of transit devices;

[0049] If the newly assembled LSP link is the same as the current LSP link but in the opposite direction, the new LSP link is reversed before the update operation is performed;

[0050] If it is found that the current LSP link no longer exists or has failed, the status of the LSP link is synchronously updated.

[0051] Compared with the prior art, the present invention has the following beneficial effects: the present invention obtains the LSP data of the device by matching the device type of the online device, thereby realizing the collection and assembly of the device LSP business data and generating LSP link data. During the whole process, there is no write operation and only a small amount of read operation. The cache mechanism is used to avoid a large number of repeated device reads to avoid a large impact on the device business. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The specific embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings, wherein:

[0053] Figure 1 A flow chart of a method for synchronously assembling lsp service data of an IPRAN device according to the present invention;

[0054] Figure 2 This is an interface diagram of the method flow of synchronously assembling lsp service data of IPRAN equipment in the specific implementation process of the present invention. DETAILED DESCRIPTION

[0055] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0056] It should be noted that similar reference numerals and letters represent similar items in the following figures, so once an item is defined in one figure, it does not need to be further defined and explained in the subsequent figures. At the same time, in the description of the present invention, the serial numbers of each step are only used to distinguish between steps, and do not mean that each step needs to be strictly executed in the order of the serial numbers.

[0057] Glossary:

[0058] lsp: Label Switched Path. A path along which a forwarding equivalence class passes in an MPLS network is called a label switched path (LSP).

[0059] Gress: Source / sink node.

[0060] Transit: intermediate node.

[0061] reverseNode; static node.

[0062] lspNode:lsp node.

[0063] lspingress / egress: lsp ingress / lsp egress.

[0064] lsptransit: lsp intermediate node.

[0065] The present invention provides a method for synchronously assembling lsp service data of an IPRAN device, such as Figure 1 As shown, the steps include:

[0066] S1. Obtain basic information of online devices. Specifically, the basic information includes: device online status, device MAC, device ID, device IP and device type.

[0067] S2. Collecting the LSP service data of online devices based on basic information includes the following steps:

[0068] S21. When the device status is displayed as online and the device MAC exists, verify whether the device exists according to the device ID.

[0069] Verifying whether a device ID exists can be achieved in the following way: first match the device ID in the device basic information cache pool; if the match fails, then match the device from the database; if the device matches successfully, write the device basic information into the device basic information cache pool; if the match still fails, the verification fails and the device does not exist.

[0070] S22. If the device exists, the device port information and device lsp service data are obtained through the device IP and device type; the device port information is obtained through the device IP and device type in the following manner: according to the device IP and device type, a match is performed in the device command group to obtain the device port information command group; according to the matched port information command group, the device port information is obtained, and parsed to obtain the device port information.

[0071] The following method can be used to obtain device LSP service data through device IP and device type: match the device MIB library according to the device IP and device type to obtain the MIB of the device LSP service data; obtain the device LSP service data according to the MIB of the matched device LSP service data, parse it, and obtain the device LSP service data.

[0072] S3, assembling the collected LSP service data of a single device, including the following steps:

[0073] S31. Update Gress node information: first obtain the lspingress / egress information of a single device and compare it with the existing lsp data. If there is new data, add the newly added data to the existing lsp data. If there is a change, update the existing lsp data. If the old data does not exist, delete the old data; re-perform additional data completion operations on the lsp information that has been added and modified by the new data.

[0074] S32. Update Transit node information: Get the lsptransit information of a single device: compare with the existing lsp data, if there is new data, add it, if there is change, update it; if the old data does not exist, delete the old data; re-perform additional data completion operation on the lsp information that has been added and modified by the new data.

[0075] S33, update the reverseNode node information and assemble at the same time: clean, adjust and process the data before assembly according to the ingress / egress data type; clean, adjust and process the data before assembly according to the transit data type; in the overall lsp data pool, including ingress / egress / transit, for the changed lsp information, recursively assemble a complete lsp link and mark it according to the ingress and outgress lsp labels, next hop and other information.

[0076] S34, update to lspNode node information: according to the newly assembled complete lsp link, compare them one by one with the currently used lsp link:

[0077] If the newly assembled link is new, it is directly added to the current lsp link list;

[0078] If the newly assembled link is an update, the current LSP link is updated, including the LSP information of a single LSP device and the addition and deletion of transit devices;

[0079] If the newly assembled LSP link is the same as the current LSP link but in the opposite direction, the new LSP link is reversed before the update operation is performed;

[0080] If it is found that the current LSP link no longer exists or has failed, the status of the LSP link is synchronously updated.

[0081] S4. Generate lsp link data.

[0082] In the specific implementation process, the LSP link related devices are added to the network management system, including the devices corresponding to the ingress / transit / egress nodes. If any device node in the LSP link is missing in the network management, the LSP link data cannot be assembled.

[0083] like Figure 2 As shown, in the network management system, open the LSP service configuration page and manually click "Assemble LSP", the LSP link assembly method will be triggered, and finally the newly assembled LSP link data will be generated and displayed.

[0084] It can be seen that the present invention presets device LSP service MIBs for multiple device types, and obtains the device LSP service MIB of the device type by matching the device type of the online device to collect and assemble device LSP service data and generate LSP link data.

[0085] The present invention collects statistics on the devices currently running in the existing network, identifies the device models and versions, and performs a large amount of analysis on the LSP link assembly related work, thereby unifying the LSP link assembly model that is ultimately suitable for all devices;

[0086] In response to the requirement for fast LSP link assembly, the present invention supports two methods: unified assembly of the entire network and incremental assembly by device. When it is used for the first time or the existing network equipment has changed significantly, the entire network assembly can be used. When the environment is already stable, incremental assembly of devices is generally used, which can achieve fast and comprehensive results.

[0087] In order to ensure that the LSP link does not affect the business, the present invention performs and analyzes the operations and impacts involved in the entire assembly method. In the entire method, no write operations are allowed on the device, and there are only a small number of read operations. A cache mechanism is used to avoid a large number of repeated device reads to avoid a major impact on the device business.

[0088] In order to ensure the reliability and stability of the LSP link, assembly and post-assembly are distinguished according to the impact. Before the assembly is completed, no operation will be performed on any LSP link data in the existing network; only after the assembly is completed will it be accurately compared and partially modified with the current LSP link, without any batch data modification.

[0089] The above are only preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for synchronously assembling lsp service data of an IPRAN device, characterized in that: Includes steps: S1. Obtain basic information of online devices, including: device online status, device MAC, device ID, device IP and device type; S2. Collect LSP service data of online devices based on basic information, including: S21. When the device status is displayed as online and the device MAC exists, verify whether the device exists according to the device ID; The verification of whether the device ID exists includes: According to the device ID, first match it in the device basic information cache pool; if the match fails, then match the device from the database; if the device is successfully matched, the device basic information is written into the device basic information cache pool; if the match still fails, the verification fails and the device does not exist; S22. If the device exists, obtain the device port information and the device's lsp service data through the device IP and device type; The device port information is obtained by using the device IP and device type, including: According to the device IP and device type, match in the device command group to obtain the device port information command group; According to the matched port information command group, the device port information is obtained and parsed to obtain the device port information; The obtaining of the lsp service data of the device by the device IP and device type includes: According to the device IP and device type, match in the device MIB library to obtain the MIB of the service data of the device LSP; According to the MIB of the LSP service data of the matched device, the LSP service data of the device is obtained and parsed to obtain the LSP service data of the device; S3. Assemble the collected LSP service data of a single device, including: S31, update Gress node information; S32, update Transit node information; S33, update reverseNode node information, and assemble at the same time, including: Clean, adjust and process data before assembly according to the ingress / egress data type; clean, adjust and process data before assembly according to the transit data type; in the overall LSP data pool, including ingress / egress / transit, recursively assemble a complete LSP link and mark it for the changed LSP information based on the ingress and egress LSP labels and the next hop information; S34. Update to lspNode node information, including: According to the newly assembled complete LSP link, the currently used LSP link is compared one by one in a loop; If the newly assembled link is new, it is directly added to the current lsp link list; If the newly assembled link is an update, the current LSP link is updated, including the LSP information of a single LSP device and the addition and deletion of transit devices; If the newly assembled LSP link is the same as the current LSP link but in the opposite direction, the new LSP link is reversed before the update operation is performed; If it is found that the current LSP link no longer exists or has failed, the status of the LSP link is updated synchronously; S4. Generate lsp link data.

2. The method for synchronously assembling lsp service data of IPRAN equipment according to claim 1, characterized in that: The step of updating the Gress node information includes: Get lspingress / egress information of a single device; Compare with the existing lsp data. If there is new data, add the newly added data to the existing lsp data. If there is a change, update the existing lsp data. If the old data does not exist, delete the old data. For the lsp information with added and modified new data, the additional data completion operation is performed again.

3. The method for synchronously assembling lsp service data of IPRAN equipment according to claim 1, characterized in that: The step of updating the Transit node information includes: Get the lsptransit information of a single device; Compare with existing lsp data, if there is new data, add it, if there is change, update it; If the old data does not exist, delete the old data; For the lsp information with added and modified new data, the additional data completion operation is performed again.

Citation Information

Patent Citations

  • Method of implementing service data flow and label switching path tunnel mapping

    CN101163098A

  • Path fault detection method, system and device

    CN101197731A