WO2015184750A1 - 网元设备数据维护的方法和装置 - Google Patents

网元设备数据维护的方法和装置 Download PDF

Info

Publication number
WO2015184750A1
WO2015184750A1 PCT/CN2014/092503 CN2014092503W WO2015184750A1 WO 2015184750 A1 WO2015184750 A1 WO 2015184750A1 CN 2014092503 W CN2014092503 W CN 2014092503W WO 2015184750 A1 WO2015184750 A1 WO 2015184750A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
data
memory data
database
element device
Prior art date
Application number
PCT/CN2014/092503
Other languages
English (en)
French (fr)
Inventor
李占禄
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015184750A1 publication Critical patent/WO2015184750A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for data maintenance of a network element device.
  • the abnormality of the database data and the memory data of the network element device of the related art is usually performed by the maintenance personnel manually comparing the database data and the memory data of the network element device, and is processed by the maintenance personnel when an abnormality is found.
  • the method of manual inspection and processing depending on the size of the network, takes several weeks to several months, is inefficient, time consuming, and greatly increases personnel maintenance costs.
  • the method for maintaining data of the network element device provided by the embodiment of the present invention can automatically and efficiently detect and process the abnormality of the database data and the memory data of the network element device.
  • the method includes:
  • a test report is generated based on the result of the consistency comparison.
  • step of generating the detection report according to the result of the consistency comparison include:
  • the database data is automatically modified according to the memory data, so that the database data and the memory data in the same network element device are consistent.
  • the step of collecting database data and memory data of one or more network element devices further includes:
  • the network element information of the network element selected by the user is obtained according to the network element selected by the user; the network element information includes a network element address, and the network element address is applicable to the network element address before collecting the database data and the memory data. Find the corresponding NE device.
  • the step of collecting database data and memory data of one or more network element devices includes:
  • the database data and the in-memory data of the one or more network element devices are collected, and the database data and the memory data of the one or more network element devices are stored in a folder corresponding to the network element device.
  • the step of automatically comparing the consistency of the database data and the in-memory data in the same network element device includes:
  • One-to-one comparison of each parameter value of the database data and the memory data in the comparison template determines the consistency of each parameter value.
  • an embodiment of the present invention further provides an apparatus for maintaining data of a network element device, including:
  • a data collection module configured to collect database data and memory data of one or more network element devices
  • the comparison analysis module is set to automatically compare database data and memory data in the same network element device. Consistency
  • the result output module is set to generate a test report based on the result of the consistency comparison.
  • the device further includes an exception processing module, configured to:
  • the database data is automatically modified according to the memory data, so that the database data and the memory data in the same network element device are consistent.
  • the device further includes a network element selection module, configured to:
  • the network element information of the network element selected by the user is obtained according to the network element selected by the user; the network element information includes a network element address, and the network element address is applicable to the network element address before collecting the database data and the memory data. Find the corresponding NE device.
  • the data collection module is configured to:
  • the database data and the in-memory data of the one or more network element devices are collected, and the database data and the memory data of the one or more network element devices are stored in a folder corresponding to the network element device.
  • the comparison analysis module is configured to:
  • One-to-one comparison of each parameter value of the database data and the memory data in the comparison template determines the consistency of each parameter value.
  • an embodiment of the present invention further provides a computer program and a carrier thereof, the computer program comprising program instructions, when the program instruction is executed by a network element data maintenance device device, enabling the device to implement data maintenance of the network element device. method.
  • the database data and the memory data of each network element device are automatically obtained, and the consistency of the database data and the memory data in the same network element device is compared and analyzed, and the network element device with abnormal data is quickly found, and the entire comparison detection is performed.
  • the process eliminates the need for manual intervention and reduces labor costs.
  • the detection process is simple and fast, which is beneficial to improve the efficiency of abnormality detection of network element data.
  • FIG. 1 is a schematic flowchart of a method for maintaining data of a network element device according to a first embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for maintaining data of a network element device according to a second embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for maintaining data of a network element device according to a third embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a method for maintaining data of a network element device according to a fourth embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a method for maintaining data of a network element device according to a fifth embodiment of the present invention.
  • FIG. 6 is a schematic diagram of functional modules of a device for maintaining data of a network element device according to a first embodiment of the present invention
  • FIG. 7 is a schematic diagram of functional modules of a device for maintaining data of a network element device according to a second embodiment of the present invention.
  • FIG. 8 is a schematic diagram of functional modules of a device for maintaining data of a network element device according to a third embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a method for maintaining data of a network element device according to a first embodiment of the present invention, where the method for maintaining data of the network element device includes:
  • Step S10 collecting database data and memory data of one or more network element devices
  • the data collection failure of a certain network element may occur, and the information of the network element data collection failure is recorded, so that the information is recorded and detected together when the detection report is subsequently generated. In the report.
  • Step S20 automatically comparing the consistency of the database data and the memory data in the same network element device
  • the consistency of the database data and the memory data in the network element device may be compared immediately after each network element data is collected; or the network element data of all the network elements to be detected may be completed. After the collection, the consistency of the database data and the memory data in the same network element device is sequentially compared.
  • the consistency comparison is mainly to compare whether the database data and the memory data in the same network element device are identical. If they are the same, the two are consistent. If they are not the same, the two are inconsistent.
  • step S30 a detection report is generated according to the result of the consistency comparison.
  • the comparison result is consistent or inconsistent, the comparison result is recorded corresponding to the network element device information, and the generated detection report clearly reflects whether the database data and the memory data in the detected network element device are abnormal.
  • the test report can be provided to the maintenance personnel, and the maintenance personnel can maintain the network element device with abnormal data recorded in the test report.
  • the database data and the memory data of each network element device are automatically obtained, and the consistency of the database data and the memory data in the same network element device are compared and analyzed, and the network element device with abnormal data is quickly found, and the entire comparison detection is performed.
  • the process does not require manual intervention, which reduces labor costs, and the detection process is simple and fast, which is beneficial to improve the efficiency of abnormality detection of network element data.
  • FIG. 2 is a schematic flowchart of a method for maintaining data of a network element device according to a second embodiment of the present invention. This embodiment includes all the steps in the embodiment shown in FIG. 1. After step S30, the method further includes:
  • Step S40 According to the result of the detection report record, when the database data and the memory data in the same network element device are inconsistent, the database data is automatically modified according to the memory data, so that the database data and the memory data in the same network element device are consistent.
  • the embodiment can also perform automatic repair processing on the network element device with abnormal data. Since the memory data is data that has been run in the network element device, the memory data is generally considered to be more correct.
  • the stored memory data can be used as the reference reference data, the data in the database is modified, the missing data in the database is filled, and the data in the database that is inconsistent with the memory data is modified, and finally the repaired The database data is consistent with the memory data, and the exception repair is completed.
  • the automatic repair processing of the network element abnormal data is realized, the repair process does not require manual intervention, the operation is simple and fast, and the repaired data has high accuracy, which is beneficial to improving the security of the entire network data operation.
  • FIG. 3 is a schematic flowchart of a method for maintaining data of a network element device according to a third embodiment of the present invention. This embodiment includes all the steps in the embodiment shown in FIG. 1. Before step S10, the method further includes:
  • step S08 the network element information of the network element selected by the user is obtained according to the network element selected by the user.
  • a selection box may be popped up for the user to select the network element to be detected.
  • the selection manner may be batch selection or selection of one or more network elements.
  • the corresponding network element information is derived, and the network element information includes the network element address, and the network element address is used to search for the corresponding network element device according to the network element address before collecting the database data and the memory data.
  • the network element address list can be automatically generated according to the network element information, and when the data is collected, the network element sequence is sequentially collected according to the list.
  • the user can directly input the network element address to be detected into the network element address input box, and add the network element address input by the user to the network element address list.
  • the network element information is obtained according to the user's selection.
  • the corresponding network element is quickly found according to the network element address in the network element information, and the network element data is obtained. , improve the efficiency of data collection, and thus help improve the efficiency of the search for abnormal data.
  • FIG. 4 is a schematic flowchart of a method for data maintenance of a network element device according to a fourth embodiment of the present invention. This embodiment includes all the steps in the embodiment shown in FIG. 1 and is described in detail in step S10 in FIG. 1.
  • Step S10 includes:
  • Step S11 establishing a folder corresponding to the network element device, and naming the folder according to the identifier name of the network element device;
  • Step S12 Collect database data and memory data of one or more network element devices, and store the database data and the memory data in a folder corresponding to the network element device.
  • a corresponding folder is created for different network elements, and the corresponding folder is named by the identification name of the network element.
  • mining After the data of a certain NE device is collected, the corresponding folder is found according to the identifier name of the network element, and the collected data is stored in the corresponding folder.
  • the corresponding network element In the subsequent data comparison result recording, the corresponding network element can be obtained according to the folder name of the data; when the comparison result is recorded, the result is recorded according to the network element identification name, so that the record in the detection report is clear, accurate and easy to view.
  • the network address corresponding to the identifier of the network element can be recorded in the test report, so that the corresponding network element device can be quickly and accurately found in the subsequent exception processing, and the exception processing efficiency is improved.
  • FIG. 5 is a schematic flowchart of a method for data maintenance of a network element device according to a fifth embodiment of the present invention. This embodiment includes all the steps in the embodiment shown in FIG. 1 and is described in detail in step S20 in FIG. 1.
  • Step S20 includes:
  • Step S21 converting database data and memory data in the same network element device into the same data format
  • Step S22 mapping the database data and the memory data after the conversion format into the comparison template
  • step S23 each parameter value of the database data and the memory data in the comparison template is compared one by one, and the consistency of each parameter value is determined.
  • the comparison template can be preset before the data consistency comparison is performed.
  • the preset mode of the comparison module is: predetermine all the commands that need to be compared; edit all the commands by command code, which is suitable for distinguishing different commands; set the keywords of each command, which is applicable to distinguish the service configurations of different identifiers in the same command. ; Set the parameter values that need to be compared for each command.
  • the database data and the in-memory data in the same network element device are first converted into the same data format, for example, according to the format of the BER (Basic Encoding Rules) transmission syntax, using TLV (Type type, Length)
  • the length, Value value) format is encoded; according to the mapping rule, the format converted data is mapped to the comparison template one by one, that is, mapped to the corresponding command parameter; when the data is compared, the database data of the same keyword in the same command is used.
  • the memory data compare the parameter values of the two are consistent. If they are inconsistent, the inconsistent items are converted into the memory data format for storage for subsequent abnormal repair processing.
  • the comparison data is used to compare the database data and the memory data in the same network element device, and the difference between the database data and the memory data can be quickly and accurately compared, which is beneficial to improving the efficiency and accuracy of data comparison.
  • the embodiment of the invention further provides a device for maintaining data of a network element device, which is applicable to a network element device data maintenance device, and the device comprises a processor, a program memory and a data storage.
  • FIG. 6 is a schematic diagram of a function module of a device for maintaining data of a network element device according to a first embodiment of the present invention, where the device for maintaining data of the network element device includes:
  • the data collection module 10 is configured to collect database data and memory data of one or more network element devices;
  • the comparison analysis module 20 is configured to automatically compare the consistency of the database data and the memory data in the same network element device;
  • the result output module 30 is configured to generate a test report based on the result of the consistency comparison.
  • the data collection failure of a certain network element may occur, and the information of the network element data collection failure is recorded, so that the information is recorded and detected together when the detection report is subsequently generated. In the report.
  • the consistency of the database data and the memory data in the network element device may be compared immediately after each network element data is collected; or the network element data of all the network elements to be detected may be completed. After the collection, the consistency of the database data and the memory data in the same network element device is sequentially compared.
  • the consistency comparison is mainly to compare whether the database data and the memory data in the same network element device are identical. If they are the same, the two are consistent. If they are not the same, the two are inconsistent.
  • the comparison result is consistent or inconsistent, the comparison result is recorded corresponding to the network element device information, and the generated detection report clearly reflects whether the database data and the memory data in the detected network element device are abnormal.
  • the test report can be provided to the maintenance personnel, and the maintenance personnel can maintain the network element device with abnormal data recorded in the test report.
  • the database data and the memory data of each network element device are automatically obtained, and the consistency of the database data and the memory data in the same network element device is compared and analyzed, and the number is quickly found.
  • the whole comparison detection process does not require manual intervention, which reduces the labor cost, and the detection process is simple and fast, which is beneficial to improve the efficiency of abnormality detection of network element data.
  • FIG. 7 is a schematic diagram of functional modules of a device for maintaining data of a network element device according to a second embodiment of the present invention. This embodiment includes all the modules in the embodiment shown in FIG. 6, and an exception processing module 40 is further added, which is set as:
  • the database data is automatically modified according to the memory data, so that the database data and the memory data in the same network element device are consistent.
  • the embodiment can also perform automatic repair processing on the network element device with abnormal data. Since the memory data is data that has been run in the network element device, the memory data is generally considered to be more correct.
  • the stored memory data can be used as the reference reference data, the data in the database is modified, the missing data in the database is filled, and the data in the database that is inconsistent with the memory data is modified, and finally the repaired The database data is consistent with the memory data, and the exception repair is completed.
  • the automatic repair processing of the network element abnormal data is realized, the repair process does not require manual intervention, the operation is simple and fast, and the repaired data has high accuracy, which is beneficial to improving the security of the entire network data operation.
  • FIG. 8 is a schematic diagram of functional modules of a device for maintaining data of a network element device according to a third embodiment of the present invention. This embodiment includes all the modules in the embodiment shown in FIG. 6, and a network element selection module 50 is further added, which is set as:
  • the network element information includes the network element address, and the network element address is used to search for the corresponding network element device according to the network element address before collecting the database data and the memory data.
  • a selection box may be popped up for the user to select the network element to be detected.
  • the selection mode may be batch selection or selection of one or more network elements, and the corresponding network element information is derived according to the user selection.
  • the network element information includes the network element address, and the network element address is applicable before collecting the database data and the memory data, according to The NE address is used to find the corresponding NE device.
  • the network element address list can be automatically generated according to the network element information, and when the data is collected, the network element sequence is sequentially collected according to the list.
  • the user can directly input the network element address to be detected into the network element address input box, and add the network element address input by the user to the network element address list.
  • the network element information is obtained according to the user's selection.
  • the corresponding network element is quickly found according to the network element address in the network element information, and the network element data is obtained. , improve the efficiency of data collection, and thus help improve the efficiency of the search for abnormal data.
  • the data collection module 10 is specifically configured to:
  • Collect database data and memory data of one or more network element devices Collect database data and memory data of one or more network element devices, and store the database data and the memory data in a folder corresponding to the network element device.
  • a corresponding folder is created for different network elements, and the corresponding folder is named by the identification name of the network element.
  • the corresponding folder is found according to the identifier name of the network element, and the collected data is stored in the corresponding folder.
  • the corresponding network element can be obtained according to the folder name of the data; when the comparison result is recorded, the result is recorded according to the network element identification name, so that the record in the detection report is clear, accurate and easy to view.
  • the network address corresponding to the identifier of the network element can be recorded in the test report, so that the corresponding network element device can be quickly and accurately found in the subsequent exception processing, and the exception processing efficiency is improved.
  • comparison analysis module 20 is specifically configured to:
  • the comparison template can be preset before the data consistency comparison is performed.
  • the preset mode of the comparison module is: predetermine all the commands that need to be compared; edit all the commands by command code, which is suitable for distinguishing different commands; set the keywords of each command, which is applicable to distinguish the service configurations of different identifiers in the same command. ; Set the parameter values that need to be compared for each command.
  • the database data and the in-memory data in the same network element device are first converted into the same data format, for example, according to the format of the BER (Basic Encoding Rules) transmission syntax, using TLV (Type type, Length)
  • the length, Value value) format is encoded; according to the mapping rule, the format converted data is mapped to the comparison template one by one, that is, mapped to the corresponding command parameter; when the data is compared, the database data of the same keyword in the same command is used.
  • the memory data compare the parameter values of the two are consistent. If they are inconsistent, the inconsistent items are converted into the memory data format for storage for subsequent abnormal repair processing.
  • the comparison data is used to compare the database data and the memory data in the same network element device, and the difference between the database data and the memory data can be quickly and accurately compared, which is beneficial to improving the efficiency and accuracy of data comparison.
  • the database data and the memory data of each network element device are automatically obtained, and the consistency of the database data and the memory data in the same network element device is compared and analyzed, and the network element device with abnormal data is quickly found, and the entire comparison detection is performed.
  • the process does not require manual intervention, which reduces labor costs, and the detection process is simple and fast, which is beneficial to improve the efficiency of abnormality detection of network element data.

Abstract

一种网元设备数据维护的方法,包括:采集一个或多个网元设备的数据库数据和内存数据;自动对比同一网元设备中数据库数据和内存数据的一致性;根据一致性比较的结果,生成检测报告。本发明实施例还公开了一种网元设备数据维护的装置。本发明实施例通过自动获取各网元设备的数据库数据和内存数据,并对同一网元设备中数据库数据和内存数据的一致性进行对比分析,可以快速查找出数据异常的网元设备,无需人工干预,检测过程简单、快捷。

Description

网元设备数据维护的方法和装置 技术领域
本发明涉及通讯技术领域,尤其涉及网元设备数据维护的方法和装置。
背景技术
随着通讯技术的快速发展,通讯网络也变得日益庞大,对通讯网络中各网元设备的维护要求也越来越高。在网元设备数据维护中,网元设备的内存数据如果异常,则会影响到现有网络业务的正常运行;而网元设备的数据库数据如果异常,则会导致新增配置报错、网元设备重启后配置丢失等问题。因此,如何保证网元设备的数据库数据与网元设备内存数据的一致性显得至关重要。
相关技术的网元设备的数据库数据与内存数据的异常排查方法,通常是通过维护人员人工比对网元设备的数据库数据和内存数据,在发现异常时由维护人员进行处理。采用人工检查与处理的方式,根据网络规模大小,所耗时间在数周至数月不等,效率低、耗时长,且极大增加了人员维护成本。
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。
发明内容
本发明实施例提供的一种网元设备数据维护的方法,可以实现高效、快捷地自动检查与处理网元设备的数据库数据与内存数据的异常。
所述方法包括:
采集一个或多个网元设备的数据库数据和内存数据;
自动对比同一网元设备中数据库数据和内存数据的一致性;
根据一致性比较的结果,生成检测报告。
可选地,在所述根据一致性比较的结果,生成检测报告的步骤之后还包 括:
根据所述检测报告记录的结果,当同一网元设备中数据库数据和内存数据不一致时,按照所述内存数据自动修改所述数据库数据,使同一网元设备中数据库数据和内存数据一致。
可选地,所述采集一个或多个网元设备的数据库数据和内存数据的步骤之前还包括:
根据用户选择的网元,获取用户所选网元的网元信息;所述网元信息包括网元地址,所述网元地址适用于在采集数据库数据和内存数据前,根据所述网元地址查找对应的网元设备。
可选地,所述采集一个或多个网元设备的数据库数据和内存数据的步骤包括:
建立对应于所述网元设备的文件夹,并根据所述网元设备的标识名称命名所述文件夹;
采集一个或多个网元设备的数据库数据和内存数据,并将所述一个或多个网元设备的数据库数据和内存数据存储至所述网元设备对应的文件夹中。
可选地,所述自动对比同一网元设备中数据库数据和内存数据的一致性的步骤包括:
将同一网元设备中的数据库数据和内存数据转换为同一数据格式;
将转换格式后的数据库数据和内存数据映射到对比模板中;
一一比较所述对比模板中数据库数据和内存数据的每个参数值,判断每个参数值的一致性。
为实现上述目的,本发明实施例还提供一种网元设备数据维护的装置,包括:
数据采集模块,设置为采集一个或多个网元设备的数据库数据和内存数据;
对比分析模块,设置为自动对比同一网元设备中数据库数据和内存数据 的一致性;
结果输出模块,设置为根据一致性比较的结果,生成检测报告。
可选地,所述装置还包括异常处理模块,设置为:
根据所述检测报告记录的结果,当同一网元设备中数据库数据和内存数据不一致时,按照所述内存数据自动修改所述数据库数据,使同一网元设备中数据库数据和内存数据一致。
可选地,所述装置还包括网元选择模块,设置为:
根据用户选择的网元,获取用户所选网元的网元信息;所述网元信息包括网元地址,所述网元地址适用于在采集数据库数据和内存数据前,根据所述网元地址查找对应的网元设备。
可选地,所述数据采集模块是设置为:
建立对应于所述网元设备的文件夹,并根据所述网元设备的标识名称命名所述文件夹;
采集一个或多个网元设备的数据库数据和内存数据,并将所述一个或多个网元设备的数据库数据和内存数据存储至所述网元设备对应的文件夹中。
可选地,所述对比分析模块是设置为:
将同一网元设备中的数据库数据和内存数据转换为同一数据格式;
将转换格式后的数据库数据和内存数据映射到对比模板中;
一一比较所述对比模板中数据库数据和内存数据的每个参数值,判断每个参数值的一致性。
此外,本发明实施例还提供一种计算机程序及其载体,该计算机程序包括程序指令,当该程序指令被网元设备数据维护设备设备执行时,使得该设备可实施上述网元设备数据维护的方法。
本发明实施例通过自动获取各网元设备的数据库数据和内存数据,并对同一网元设备中数据库数据和内存数据的一致性进行对比分析,快速查找出数据异常的网元设备,整个对比检测过程无需人工干预,减少了人力成本, 且检测过程简单、快捷,有利于提高网元数据异常检测的效率。
附图概述
图1为本发明第一实施例的网元设备数据维护的方法流程示意图;
图2为本发明第二实施例的网元设备数据维护的方法流程示意图;
图3为本发明第三实施例的网元设备数据维护的方法流程示意图;
图4为本发明第四实施例的网元设备数据维护的方法流程示意图;
图5为本发明第五实施例的网元设备数据维护的方法流程示意图;
图6为本发明第一实施例的网元设备数据维护的装置功能模块示意图;
图7为本发明第二实施例的网元设备数据维护的装置功能模块示意图;
图8为本发明第三实施例的网元设备数据维护的装置功能模块示意图。
本发明的较佳实施方式
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。另外,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
图1为本发明第一实施例的网元设备数据维护的方法流程示意图,该网元设备数据维护的方法包括:
步骤S10,采集一个或多个网元设备的数据库数据和内存数据;
在通讯网络中,网络规模越大,网络中的网元数量越多。在进行网元设备数据维护前,可先对需要检测的网元进行整理,在进行数据采集时,可根据整理的结果,查找对应的网元,获取该网元设备的数据库数据和内存数据。此外,在数据采集过程中,可能会出现某一网元的数据采集失败的情况,则将该网元数据采集失败的信息记录下来,以便在后续生成检测报告时将该信息一并记录到检测报告中。
步骤S20,自动对比同一网元设备中数据库数据和内存数据的一致性;
在对比数据一致性时,可在每一次采集一个网元数据后,立即对该网元设备中数据库数据和内存数据的一致性进行比较;也可以在完成对所有需检测网元的网元数据采集后,再依次对采集到的数据同一网元设备中数据库数据和内存数据的一致性进行比较。一致性比较主要是对比同一网元设备中数据库数据和内存数据是否完全相同,如果相同,则两者一致,如果不相同,则两者不一致。
步骤S30,根据一致性比较的结果,生成检测报告。
对于比较后的结果为一致或不一致的情况,都将该对比结果与该网元设备信息对应记录下来,生成的检测报告清楚地反映出被检测的网元设备中数据库数据和内存数据是否发生异常。该检测报告可以提供给维护人员,方便维护人员对检测报告中记录的数据异常的网元设备进行维护。
本实施例通过自动获取每个网元设备的数据库数据和内存数据,并对同一网元设备中数据库数据和内存数据的一致性进行对比分析,快速查找出数据异常的网元设备,整个对比检测过程无需人工干预,减少了人力成本,且检测过程简单、快捷,有利于提高网元数据异常检测的效率。
图2为本发明第二实施例的网元设备数据维护的方法流程示意图。本实施例包括图1所示实施例中的所有步骤,在步骤S30之后还包括:
步骤S40,根据检测报告记录的结果,当同一网元设备中数据库数据和内存数据不一致时,按照内存数据自动修改数据库数据,使同一网元设备中数据库数据和内存数据一致。
在完成对所有需检测的网元设备的数据一致性对比后,本实施例还可以对数据异常的网元设备进行自动修复处理。由于内存数据是网元设备中运行过的数据,因此通常认为内存数据的正确性较高。在修复网元数据时,可以将已存储的内存数据作为基准参照数据,对数据库中的数据进行修改,补齐数据库中的遗漏数据,修改数据库中与内存数据不一致的数据,最终使修复后的数据库数据与内存数据保持一致,完成异常修复。此外,还可以在修复数据前弹出提示框,提示维护人员是否需要进行自动修复,或提供选择框, 供维护人员选择需要进行自动修复的网元。
本实施例实现了网元异常数据自动修复处理,修复过程无需人工干预,操作简单、快捷,且修复后的数据准确度高,有利于提高整个网络数据运行的安全性。
图3为本发明第三实施例的网元设备数据维护的方法流程示意图。本实施例包括图1所示实施例中的所有步骤,在步骤S10之前还包括:
步骤S08,根据用户选择的网元,获取用户所选网元的网元信息。
在进行网元数据检测前,可先弹出选择框供用户选择需要检测到网元,选择方式可以是批量选择或选择某一个或多个网元。根据用户选择,导出对应的网元信息,网元信息包括网元地址,网元地址用于在采集数据库数据和内存数据前,根据网元地址查找对应的网元设备。此外还可根据网元信息自动生成网元地址列表,在采集数据时,根据列表中网元顺序依次采集。此外还可以由用户直接将需要检测的网元地址输入到网元地址输入框中,将用户输入的网元地址一并添加到网元地址列表中。由于本实施例在进行网元数据检测前,预先根据用户选择获取网元信息,在进行网元数据检测时,根据网元信息中的网元地址快速查找到对应的网元,获取网元数据,提高了数据采集的效率,进而有利于提高异常数据的查找效率。
图4为本发明第四实施例的网元设备数据维护的方法流程示意图。本实施例包括图1所示实施例中的所有步骤,并对图1中的步骤S10详细说明,步骤S10包括:
步骤S11,建立对应于网元设备的文件夹,并根据网元设备的标识名称命名文件夹;
步骤S12,采集一个或多个网元设备的数据库数据和内存数据,并将数据库数据和内存数据存储到网元设备对应的文件夹中。
本实施例中,为了对采集到的不同网元设备的数据加以区分,对于不同的网元建立对应的文件夹,并以该网元的标识名称命名对应的文件夹。在采 集某一个网元设备的数据后,根据该网元的标识名称查找到对应的文件夹,并将采集的数据存储到该对应文件夹中。在后续进行数据对比结果记录时,可同样根据数据所在文件夹名称获知其对应的网元;记录对比结果时,根据网元标识名称记录结果,使检测报告中的记录清晰、准确,便于查看。同时,检测报告中还可以记录与网元标识名称对应的网元地址,便于后续进行异常处理时,能够快速、准确的查找到对应的网元设备,提高异常处理效率。
图5为本发明第五实施例的网元设备数据维护的方法流程示意图。本实施例包括图1所示实施例中的所有步骤,并对图1中的步骤S20详细说明,步骤S20包括:
步骤S21,将同一网元设备中的数据库数据和内存数据转换为同一数据格式;
步骤S22,将转换格式后的数据库数据和内存数据映射到对比模板中;
步骤S23,一一比较对比模板中数据库数据和内存数据的每个参数值,判断每个参数值的一致性。
在进行数据一致性比对前,可先预设对比模板。对比模块的预设方式为:预先确定所有需要对比的命令;将所有命令进行命令码编辑,适用于区分不同的命令;设置各个命令的关键字,适用于区分同一个命令中不同标识的业务配置;设置每个命令所需要进行对比的参数值。在进行数据对比过程时,首先将同一网元设备中的数据库数据和内存数据转换为同一数据格式,例如依照BER(Basic Encoding Rules,基本编码规则)传输语法的格式,采用TLV(Type类型,Length长度,Value值)格式进行编码;根据映射规则,将格式转换后的数据一一映射到对比模板中,即映射到相应的命令参数中;数据比较时,对于同一命令中同一关键字的数据库数据和内存数据,比较两者的参数值是否一致,如不一致,则将不一致项转化为内存数据格式进行存储,以便后续异常修复处理。本实施例采用对比模板对同一网元设备中的数据库数据和内存数据进行比较,能够快速、准确的比较出数据库数据和内存数据之间的差异性,有利于提高数据对比的效率和准确度。
本发明实施例还提供一种网元设备数据维护的装置,适用于网元设备数据维护设备,所述设备包括处理器,程序存储器和数据存储器。
图6为本发明第一实施例的网元设备数据维护的装置功能模块示意图中,该网元设备数据维护的装置包括:
数据采集模块10,设置为采集一个或多个网元设备的数据库数据和内存数据;
对比分析模块20,设置为自动对比同一网元设备中数据库数据和内存数据的一致性;
结果输出模块30,设置为根据一致性比较的结果,生成检测报告。
在通讯网络中,网络规模越大,网络中的网元数量越多。在进行网元设备数据维护前,可先对需要检测的网元进行整理,在进行数据采集时,可根据整理的结果,查找到对应的网元,获取该网元设备的数据库数据和内存数据。此外,在数据采集过程中,可能会出现某一网元的数据采集失败的情况,则将该网元数据采集失败的信息记录下来,以便在后续生成检测报告时将该信息一并记录到检测报告中。
在对比数据一致性时,可在每一次采集一个网元数据后,立即对该网元设备中数据库数据和内存数据的一致性进行比较;也可以在完成对所有需检测网元的网元数据采集后,再依次对采集到的数据同一网元设备中数据库数据和内存数据的一致性进行比较。一致性比较主要是对比同一网元设备中数据库数据和内存数据是否完全相同,如果相同,则两者一致,如果不相同,则两者不一致。
对于比较后的结果为一致或不一致的情况,都将该对比结果与该网元设备信息对应记录下来,生成的检测报告清楚地反映出被检测的网元设备中数据库数据和内存数据是否发生异常。该检测报告可以提供给维护人员,方便维护人员对检测报告中记录的数据异常的网元设备进行维护。
本实施例通过自动获取每个网元设备的数据库数据和内存数据,并对同一网元设备中数据库数据和内存数据的一致性进行对比分析,快速查找出数 据异常的网元设备,整个对比检测过程无需人工干预,减少了人力成本,且检测过程简单、快捷,有利于提高网元数据异常检测的效率。
图7为本发明第二实施例的网元设备数据维护的装置功能模块示意图。本实施例包括图6所示实施例中的所有模块,还增加了异常处理模块40,设置为:
根据检测报告记录的结果,当同一网元设备中数据库数据和内存数据不一致时,按照内存数据自动修改数据库数据,使同一网元设备中数据库数据和内存数据一致。
在完成对所有需检测的网元设备的数据一致性对比后,本实施例还可以对数据异常的网元设备进行自动修复处理。由于内存数据是网元设备中运行过的数据,因此通常认为内存数据的正确性较高。在修复网元数据时,可以将已存储的内存数据作为基准参照数据,对数据库中的数据进行修改,补齐数据库中的遗漏数据,修改数据库中与内存数据不一致的数据,最终使修复后的数据库数据与内存数据保持一致,完成异常修复。此外,还可以在修复数据前弹出提示框,提示维护人员是否需要进行自动修复,或提供选择框,供维护人员选择需要进行自动修复的网元。
本实施例实现了网元异常数据自动修复处理,修复过程无需人工干预,操作简单、快捷,且修复后的数据准确度高,有利于提高整个网络数据运行的安全性。
图8为本发明第三实施例的网元设备数据维护的装置功能模块示意图。本实施例包括图6所示实施例中的所有模块,还增加了网元选择模块50,设置为:
根据用户选择的网元,获取用户所选网元的网元信息;网元信息包括网元地址,网元地址用于在采集数据库数据和内存数据前,根据网元地址查找对应的网元设备。
在进行网元数据检测前,可先弹出选择框供用户选择需要检测到网元, 选择方式可以是批量选择或选择某一个或多个网元,根据用户选择,导出对应的网元信息,网元信息包括网元地址,网元地址适用于在采集数据库数据和内存数据前,根据网元地址查找对应的网元设备。此外还可根据网元信息自动生成网元地址列表,在采集数据时,根据列表中网元顺序依次采集。此外还可以由用户直接将需要检测的网元地址输入到网元地址输入框中,将用户输入的网元地址一并添加到网元地址列表中。由于本实施例在进行网元数据检测前,预先根据用户选择获取网元信息,在进行网元数据检测时,根据网元信息中的网元地址快速查找到对应的网元,获取网元数据,提高了数据采集的效率,进而有利于提高异常数据的查找效率。
可选地,数据采集模块10具体设置为:
建立对应于网元设备的文件夹,并根据网元设备的标识名称命名文件夹;
采集一个或多个网元设备的数据库数据和内存数据,并将数据库数据和内存数据存储到网元设备对应的文件夹中。
本实施例中,为了对采集到的不同网元设备的数据加以区分,对于不同的网元建立对应的文件夹,并以该网元的标识名称命名对应的文件夹。在采集某一个网元设备的数据后,根据该网元的标识名称查找到对应的文件夹,并将采集的数据存储到该对应文件夹中。在后续进行数据对比结果记录时,可同样根据数据所在文件夹名称获知其对应的网元;记录对比结果时,根据网元标识名称记录结果,使检测报告中的记录清晰、准确,便于查看,同时,检测报告中还可以记录与网元标识名称对应的网元地址,便于后续进行异常处理时,能够快速、准确的查找到对应的网元设备,提高异常处理效率。
可选地,对比分析模块20具体设置为:
将同一网元设备中的数据库数据和内存数据转换为同一数据格式;
将转换格式后的数据库数据和内存数据映射到对比模板中;
一一比较对比模板中数据库数据和内存数据的每个参数值,判断各参数值的一致性。
在进行数据一致性比对前,可先预设对比模板。对比模块的预设方式为:预先确定所有需要对比的命令;将所有命令进行命令码编辑,适用于区分不同的命令;设置各个命令的关键字,适用于区分同一个命令中不同标识的业务配置;设置各个命令所需要进行对比的参数值。在进行数据对比过程时,首先将同一网元设备中的数据库数据和内存数据转换为同一数据格式,例如依照BER(Basic Encoding Rules,基本编码规则)传输语法的格式,采用TLV(Type类型,Length长度,Value值)格式进行编码;根据映射规则,将格式转换后的数据一一映射到对比模板中,即映射到相应的命令参数中;数据比较时,对于同一命令中同一关键字的数据库数据和内存数据,比较两者的参数值是否一致,如不一致,则将不一致项转化为内存数据格式进行存储,以便后续异常修复处理。本实施例采用对比模板对同一网元设备中的数据库数据和内存数据进行比较,能够快速、准确的比较出数据库数据和内存数据之间的差异性,有利于提高数据对比的效率和准确度。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。
当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明的权利要求的保护范围。
工业实用性
本发明实施例通过自动获取各网元设备的数据库数据和内存数据,并对同一网元设备中数据库数据和内存数据的一致性进行对比分析,快速查找出数据异常的网元设备,整个对比检测过程无需人工干预,减少了人力成本,且检测过程简单、快捷,有利于提高网元数据异常检测的效率。

Claims (12)

  1. 一种网元设备数据维护的方法,包括:
    采集一个或多个网元设备的数据库数据和内存数据;
    自动对比同一网元设备中数据库数据和内存数据的一致性;
    根据一致性比较的结果,生成检测报告。
  2. 如权利要求1所述的方法,在所述根据一致性比较的结果,生成检测报告的步骤之后还包括:
    根据所述检测报告记录的结果,当同一网元设备中数据库数据和内存数据不一致时,按照所述内存数据自动修改所述数据库数据,使同一网元设备中数据库数据和内存数据一致。
  3. 如权利要求1或2所述的方法,在所述采集一个或多个网元设备的数据库数据和内存数据的步骤之前还包括:
    根据用户选择的网元,获取用户所选网元的网元信息;所述网元信息包括网元地址,所述网元地址适用于在采集数据库数据和内存数据前,根据所述网元地址查找对应的网元设备。
  4. 如权利要求1或2所述的方法,其中,所述采集一个或多个网元设备的数据库数据和内存数据的步骤包括:
    建立对应于所述网元设备的文件夹,并根据所述网元设备的标识名称命名所述文件夹;
    采集一个或多个网元设备的数据库数据和内存数据,并将所述一个或多个网元设备的数据库数据和内存数据存储至所述网元设备对应的文件夹中。
  5. 如权利要求1或2所述的方法,其中,所述自动对比同一网元设备中数据库数据和内存数据的一致性的步骤包括:
    将同一网元设备中的数据库数据和内存数据转换为同一数据格式;
    将转换格式后的数据库数据和内存数据映射到对比模板中;
    一一比较所述对比模板中数据库数据和内存数据的每个参数值,判断每个参数值的一致性。
  6. 一种网元设备数据维护的装置,包括:
    数据采集模块,设置为采集一个或多个网元设备的数据库数据和内存数据;
    对比分析模块,设置为自动对比同一网元设备中数据库数据和内存数据的一致性;
    结果输出模块,设置为根据一致性比较的结果,生成检测报告。
  7. 如权利要求6所述的装置,还包括异常处理模块,设置为:
    根据所述检测报告记录的结果,当同一网元设备中数据库数据和内存数据不一致时,按照所述内存数据自动修改所述数据库数据,使同一网元设备中数据库数据和内存数据一致。
  8. 如权利要求6或7所述的装置,还包括网元选择模块,设置为:
    根据用户选择的网元,获取用户所选网元的网元信息;所述网元信息包括网元地址,所述网元地址适用于在采集数据库数据和内存数据前,根据所述网元地址查找对应的网元设备。
  9. 如权利要求6或7所述的装置,其中,所述数据采集模块是设置为:
    建立对应于所述网元设备的文件夹,并根据所述网元设备的标识名称命名所述文件夹;
    采集一个或多个网元设备的数据库数据和内存数据,并将所述一个或多个网元设备的数据库数据和内存数据存储至所述网元设备对应的文件夹中。
  10. 如权利要求6或7所述的装置,其中,所述对比分析模块是设置为:
    将同一网元设备中的数据库数据和内存数据转换为同一数据格式;
    将转换格式后的数据库数据和内存数据映射到对比模板中;
    一一比较所述对比模板中数据库数据和内存数据的每个参数值,判断每个参数值的一致性。
  11. 一种计算机程序,包括程序指令,当该程序指令被网元设备数据维护设备执行时,使得该设备可实施权利要求1-5任一项的方法。
  12. 一种载有权利要求11所述计算机程序的载体。
PCT/CN2014/092503 2014-06-06 2014-11-28 网元设备数据维护的方法和装置 WO2015184750A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410250777.3A CN105227333B (zh) 2014-06-06 2014-06-06 网元设备数据维护的方法和装置
CN201410250777.3 2014-06-06

Publications (1)

Publication Number Publication Date
WO2015184750A1 true WO2015184750A1 (zh) 2015-12-10

Family

ID=54766015

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/092503 WO2015184750A1 (zh) 2014-06-06 2014-11-28 网元设备数据维护的方法和装置

Country Status (2)

Country Link
CN (1) CN105227333B (zh)
WO (1) WO2015184750A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145803A (zh) * 2017-06-05 2017-09-08 上海联影医疗科技有限公司 一种操作数据一致性的检验方法、设备和计算机可读介质
CN112434192A (zh) * 2019-08-26 2021-03-02 比亚迪股份有限公司 基于物联网的信息检测处理方法、设备、介质及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094051A (zh) * 2007-06-27 2007-12-26 中国移动通信集团四川有限公司 数据一致性比对同步的系统和方法
CN101286834A (zh) * 2008-05-30 2008-10-15 杭州华三通信技术有限公司 一种数据同步方法和装置
CN102055843A (zh) * 2010-10-27 2011-05-11 中兴通讯股份有限公司 一种终端及内存数据校验的方法
CN102722579A (zh) * 2012-06-07 2012-10-10 浪潮电子信息产业股份有限公司 一种在集群存储系统内部数据库的双向同步方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100446502C (zh) * 2005-03-14 2008-12-24 华为技术有限公司 一种网络中端对端路由快速发现的方法及路由搜索系统
US20070064736A1 (en) * 2005-09-19 2007-03-22 Fujitsu Network Communications Zero suppressed performance management data interpretation and same value suppression and interpretation
CN101340316A (zh) * 2008-08-22 2009-01-07 中兴通讯股份有限公司 一种将网元数据上载到网管数据库的方法及装置
CN101582805B (zh) * 2009-06-12 2012-07-18 中兴通讯股份有限公司 电信网管与网元数据不一致时自动上载比较的方法及装置
CN101938765B (zh) * 2009-06-29 2015-12-16 中兴通讯股份有限公司 一种网管和网元自动适配的方法和系统
CN103684814A (zh) * 2012-09-04 2014-03-26 中兴通讯股份有限公司 一种用于通讯系统的数据比较方法和装置
CN103617131B (zh) * 2013-11-26 2017-02-22 曙光信息产业股份有限公司 一种实现数据缓存的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094051A (zh) * 2007-06-27 2007-12-26 中国移动通信集团四川有限公司 数据一致性比对同步的系统和方法
CN101286834A (zh) * 2008-05-30 2008-10-15 杭州华三通信技术有限公司 一种数据同步方法和装置
CN102055843A (zh) * 2010-10-27 2011-05-11 中兴通讯股份有限公司 一种终端及内存数据校验的方法
CN102722579A (zh) * 2012-06-07 2012-10-10 浪潮电子信息产业股份有限公司 一种在集群存储系统内部数据库的双向同步方法

Also Published As

Publication number Publication date
CN105227333B (zh) 2019-11-05
CN105227333A (zh) 2016-01-06

Similar Documents

Publication Publication Date Title
US11176317B2 (en) Automated file merging through content classification
CN102684927B (zh) 一种巡检网络设备的方法和装置
US9576037B2 (en) Self-analyzing data processing job to determine data quality issues
US10387236B2 (en) Processing data errors for a data processing system
US20180307594A1 (en) System, method and storage device for cim/e model standard compliance test
WO2017101301A1 (zh) 数据信息处理方法及装置
US20180268081A1 (en) Data extraction
CN106775937A (zh) 一种命令行校验方法及装置
CN104270389A (zh) 一种路由器/交换机安全配置漏洞自动修复方法及系统
EP2897401B1 (en) Method and device for guaranteeing consistency of planning data
CN113239365B (zh) 一种基于知识图谱的漏洞修复方法
CN110019067A (zh) 一种日志分析方法及系统
WO2021027126A1 (zh) 数据库检测方法、装置、设备及计算机可读存储介质
CN112328631A (zh) 一种生产故障分析方法、装置、电子设备及存储介质
WO2015184750A1 (zh) 网元设备数据维护的方法和装置
CN111190906B (zh) 一种传感网数据异常检测方法
CN113760730A (zh) 一种自动化测试的方法和装置
CN107480046A (zh) 一种自动化测试方法、装置及计算机处理设备
CN106557419B (zh) 程序的测试方法及装置
WO2023051073A1 (zh) 数据库测试方法、分布式数据库、存储介质
JP5375281B2 (ja) 障害解析情報採取装置、障害解析情報採取方法、障害解析情報採取プログラム
CN111124809A (zh) 一种服务器传感器系统的测试方法及装置
TWI756867B (zh) 在作業系統標記物件標籤及產生安全政策的方法及系統
CN109560964B (zh) 一种设备合规检查方法及装置
CN114139853A (zh) 一种基于大数据的钢结构产品清单处理方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14894151

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14894151

Country of ref document: EP

Kind code of ref document: A1