A mapping relationship table establishing method and device, equipment and storage medium

By establishing a mapping table and utilizing the distinguishable names and index data of network element configuration data, the problem of low efficiency in comparing network element configuration data in existing technologies is solved, achieving fast and resource-saving network optimization and service quality improvement.

CN116684286BActive Publication Date: 2026-04-10CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-12
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Existing methods for comparing network element configuration data are inefficient, requiring the traversal of all configuration data, resulting in slow speed and wasted resources.

Method used

By establishing a mapping table, the distinguishable names (DNs) and index data of network element configuration data are obtained. A one-to-one correspondence between the first index set and the second index set is established according to the preset comparison rules, which reduces the number of times the configuration data is traversed and improves the comparison efficiency.

Benefits of technology

It reduces the time complexity of the algorithm, improves the efficiency of configuration data comparison, reduces resource waste, and enables rapid network optimization and improved communication network service quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116684286B_ABST
    Figure CN116684286B_ABST
Patent Text Reader

Abstract

The application provides a mapping relationship table establishing method and device, equipment and a storage medium, relates to the communication technical field, and the method can realize fast comparison of network element configuration data. The method comprises the following steps: a establishing device acquires a first configuration data set and a second configuration data set; the establishing device acquires the DN of each configuration data in the first configuration data set, and obtains a first index set; the establishing device acquires the DN of each configuration data in the second configuration data set, and obtains a second index set; the establishing device establishes a one-to-one correspondence between the first index set and the second index set according to a preset comparison rule, and obtains a mapping relationship table; the mapping relationship table is used to query corresponding index data according to the DN to compare the configuration data between different network elements. The application can be used in the process of comparing network element configuration data, and is used to improve the comparison efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, and particularly relates to a mapping relationship table establishing method and device, equipment and a storage medium. BACKGROUND

[0002] With the continuous development of communication technology, various network devices are emerging in endlessly. In order to ensure the normal operation of the network device, it is often necessary to manage multiple types of network elements and multiple network elements, that is, to compare the network element configuration data, so as to timely find the problems of the network element configuration data and quickly modify the network element configuration data, which is a key scenario of network operation and network optimization.

[0003] The method for comparing two network element configuration data in the prior art is as follows: first, traverse the table names in the two network element configuration data, establish a corresponding relationship between the tables with the same table name, then traverse the configuration data in the two tables with the corresponding relationship, compare the configuration data in one table with all the configuration data in the other table, obtain the unmatched configuration data, and finally, obtain the comparison result by collecting all the unmatched configuration data in the two network element configuration data. In this method, all the configuration data in the two network element configuration data need to be compared, and the comparison speed is slow and the efficiency is low. SUMMARY

[0004] The present application provides a mapping relationship table establishing method, device, equipment and storage medium, which realizes the fast comparison of network element configuration data.

[0005] In a first aspect, the present application provides a mapping relationship table establishing method, which includes: obtaining a first configuration data set and a second configuration data set; the first configuration data set and the second configuration data set are respectively used to indicate the configuration data under the same table name in different network elements to be compared; each configuration data includes a distinguishable name DN and index data; obtaining the DN of each configuration data in the first configuration data set to obtain a first index set; obtaining the DN of each configuration data in the second configuration data set to obtain a second index set; establishing a one-to-one correspondence between the first index set and the second index set according to a preset comparison rule to obtain a mapping relationship table; the mapping relationship table is used to query the corresponding index data according to the DN to compare the configuration data between different network elements.

[0006] The application provides a mapping relationship table establishing method. After a first configuration data set and a second configuration data set are acquired by an establishing device, the DN of each configuration data in the first configuration data set and the second configuration data set is acquired, a first index set and a second index set are obtained, the establishing device establishes a one-to-one correspondence relationship between the first index set and the second index set according to a preset comparison rule, and a mapping relationship table is obtained, so that the establishing device can compare the configuration data based on the mapping relationship table. Compared with the prior art, the number of times of traversing the configuration data during comparison is reduced, the time complexity of the algorithm is reduced, the comparison efficiency is improved, network optimization can be quickly realized, and the service quality of the communication network is improved.

[0007] In a possible implementation, the DN includes at least one node; the at least one node has inheritance; and the preset comparison rule includes: comparing the sizes of the DNs according to the number of nodes, and comparing the sizes of the DNs according to the sizes of the child nodes of the target nodes in the case of the same target nodes.

[0008] In another possible implementation, the child node of the target node is a node other than a leaf node.

[0009] In another possible implementation, the same target node includes: the same key of the target node, or the same key value of the target node.

[0010] In another possible implementation, the one-to-one correspondence relationship between the first index set and the second index set is established according to the preset comparison rule, and the mapping relationship table is obtained, including: sorting the first index set and the second index set based on the preset comparison rule; and establishing a one-to-one correspondence relationship between the DNs in the sorted first index set and the second index set based on the preset comparison rule, to obtain the mapping relationship table.

[0011] In another possible implementation, the one-to-one correspondence relationship between the DNs in the sorted first index set and the second index set is established based on the preset comparison rule, including: sequentially taking a first DN from the first index set and sequentially taking a second DN from the second index set; in the case of the first DN being larger, establishing a one-to-one correspondence relationship between the empty data and the second DN based on the preset comparison rule, and comparing the next DN of the first DN with the second DN; in the case of the second DN being larger, establishing a one-to-one correspondence relationship between the first DN and the empty data based on the preset comparison rule, and comparing the next DN of the second DN with the first DN; and in the case of the first DN being the same as the second DN, establishing a one-to-one correspondence relationship between the first DN and the second DN based on the preset comparison rule, and comparing the next DN of the first DN with the next DN of the second DN.

[0012] In another possible implementation, the method further includes: acquiring a user instruction; the user instruction is used to specify a target node; and in response to the user instruction, the mapping relationship table is updated based on the preset comparison rule.

[0013] In another possible implementation manner, the method further includes: obtaining the third DN and the fourth DN having the corresponding relationship from the mapping relationship table; and comparing whether the index data corresponding to the third DN and the index data corresponding to the fourth DN are consistent to obtain a comparison result.

[0014] In a second aspect, the present application provides a device for establishing a mapping relationship table, which includes an obtaining module and a processing module. The obtaining module is configured to obtain a first configuration data set and a second configuration data set. The first configuration data set and the second configuration data set are respectively used to indicate configuration data under a same table name in different network elements to be compared. Each configuration data includes a distinguishable name (DN) and index data. The obtaining module is further configured to obtain the DN of each configuration data in the first configuration data set to obtain a first index set. The obtaining module is further configured to obtain the DN of each configuration data in the second configuration data set to obtain a second index set. The processing module is configured to establish a one-to-one corresponding relationship between the first index set and the second index set according to a preset comparison rule to obtain a mapping relationship table. The mapping relationship table is used to query corresponding index data according to the DN to compare configuration data between different network elements.

[0015] In a possible implementation manner, the DN includes at least one node. The at least one node has inheritance. The preset comparison rule includes: comparing the size of the DN according to the number of nodes, and comparing the size of the DN according to the size of the child node of the target node in the case that the target nodes are the same.

[0016] In another possible implementation manner, the child node of the target node is a node other than a leaf node.

[0017] In another possible implementation manner, the target nodes being the same includes: the keys of the target nodes being the same, or the key values of the target nodes being the same.

[0018] In another possible implementation manner, the processing module is specifically configured to sort the first index set and the second index set based on the preset comparison rule. The processing module is further configured to establish a one-to-one corresponding relationship between the DNs in the sorted first index set and the second index set based on the preset comparison rule to obtain the mapping relationship table.

[0019] In another possible implementation, the processing module is specifically configured to sequentially take out the first DN from the first index set and sequentially take out the second DN from the second index set; based on a preset comparison rule, in the case that the first DN is larger, establish a one-to-one correspondence relationship between the empty data and the second DN, and compare the next DN of the first DN with the second DN; based on the preset comparison rule, in the case that the second DN is larger, establish a one-to-one correspondence relationship between the first DN and the empty data, and compare the next DN of the second DN with the first DN; based on the preset comparison rule, in the case that the first DN is the same as the second DN, establish a one-to-one correspondence relationship between the first DN and the second DN, and compare the next DN of the first DN with the next DN of the second DN.

[0020] In another possible implementation, the apparatus further includes an updating module; the obtaining module is further configured to obtain a user instruction; the user instruction is used to specify a target node; and the updating module is configured to, in response to the user instruction, update the mapping relationship table based on a preset comparison rule.

[0021] In another possible implementation, the apparatus further includes a comparison module; the obtaining module is further configured to obtain a third DN and a fourth DN having a corresponding relationship from the mapping relationship table; and the comparison module is configured to compare whether index data corresponding to the third DN and index data corresponding to the fourth DN are consistent, to obtain a comparison result.

[0022] In a third aspect, the present application provides an electronic device, including a processor and a memory; the memory stores instructions executable by the processor; and the processor is configured to execute the instructions, so that the electronic device implements the method of the first aspect.

[0023] In a fourth aspect, the present application provides a computer readable storage medium, including computer software instructions; when the computer software instructions run in an electronic device, the electronic device implements the method of the first aspect.

[0024] In a fifth aspect, the present application provides a computer program product, when the computer program product runs on a computer, the computer executes the steps of the related method described in the first aspect, to implement the method of the first aspect.

[0025] The beneficial effects of the second aspect to the fifth aspect are described with reference to the corresponding description of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0026] Figure 1 An application environment schematic diagram of the mapping relationship table establishment method provided by the present application;

[0027] Figure 2 A flowchart of the mapping relationship table establishment method provided by the present application;

[0028] Figure 3 Another mapping relationship table establishment method flowchart provided by the present application is shown in the following figure:

[0029] Figure 4 Another mapping relationship table establishment method flowchart provided by the present application is shown in the following figure:

[0030] Figure 5 Another mapping relationship table establishment method flowchart provided by the present application is shown in the following figure:

[0031] Figure 6 Another mapping relationship table establishment method flowchart provided by the present application is shown in the following figure:

[0032] Figure 7 Another mapping relationship table establishment method flowchart provided by the present application is shown in the following figure:

[0033] Figure 8 Another mapping relationship table establishment method flowchart provided by the present application is shown in the following figure:

[0034] Figure 9 Another mapping relationship table establishment method flowchart provided by the present application is shown in the following figure:

[0035] Figure 10 Another mapping relationship table establishment method flowchart provided by the present application is shown in the following figure:

[0036] Figure 11 Another mapping relationship table establishment method flowchart provided by the present application is shown in the following figure:

[0037] Figure 12 A system architecture provided by the present application is shown in the following figure:

[0038] Figure 13 A mapping relationship table establishment device provided by the present application is shown in the following figure:

[0039] Figure 14 An electronic device provided by the present application is shown in the following figure. DETAILED DESCRIPTION

[0040] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0041] It should be noted that in the embodiments of the present application, the words such as "exemplarily" or "for example" are used to represent an example, illustration or description. Any embodiment or design scheme described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words such as "exemplarily" or "for example" are intended to present the relevant concept in a specific manner.

[0042] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same or similar items with basically the same function and role, and those skilled in the art can understand that the words "first", "second" and the like are not limited in quantity and execution order.

[0043] In the field of network device operation and maintenance, in order to ensure the normal operation of the network device, it is often necessary to compare different types of network element configuration data, so that the user can discover the network element configuration data problem in time, and then quickly modify the network element configuration data to realize network optimization. Among them, the comparison of network element configuration data mainly has the following application scenarios: (1) Comparison of configuration data between two network elements: one network element does not operate normally, which may be related to configuration data error, and needs to be compared with the network element operating normally. (2) Comparison of network element configuration data and baseline configuration data: the baseline configuration data is a set of experience parameters verified by commercial network and running well, and the difference between the network element configuration data and the baseline configuration data needs to be compared to quickly adjust the parameters of the network element configuration data. (3) Comparison of current configuration data and historical configuration data of network element: the performance index of the same network element decreases, and the current configuration data and the historical configuration data of the network element need to be compared to view the data change and discover the problem in time.

[0044] The configuration data of each network element is composed of a plurality of management objects (MOs), which can also be referred to as configuration objects. The configuration objects are instances of a management object class (MOC). Each configuration object contains a plurality of configuration parameters. According to the 3rd Generation Partnership Project (3GPP) specification, the configuration data is organized in a tree structure (in accordance with the 3GPP TS 32.106, 3GPP TS 32.625, and the like), each node of the tree representing a configuration object and the configuration parameters contained therein. According to the definition in the 3GPP TS 32.300 specification, each configuration object has a distinguished name (DN), by which the configuration object can be uniquely located in the entire network. In the prior art, the method for comparing two sets of configuration data is as follows: for two sets of network element configuration data (two different sets of network element configuration data or two sets of configuration data of the same network element at different time points), the configuration objects in one set of configuration data are traversed, each configuration object is compared with all the configuration objects in the other set of configuration data, and the configuration objects that fail to match in the two sets of configuration data are collected together to obtain a comparison result. The comparison method in the prior art needs to load all the configuration data into the memory during runtime, which wastes resources, and all the configuration objects need to be compared, which is low in comparison efficiency.

[0045] In summary, there is an urgent need for a method for quickly comparing network element configuration data. Based on this, the embodiment of the present application provides a method for establishing a mapping relationship table. In the method, the establishing device obtains a first set of configuration data and a second set of configuration data, obtains the DN of each configuration data in the first set of configuration data and the second set of configuration data to obtain a first index set and a second index set, establishes a one-to-one correspondence between the first index set and the second index set according to a preset comparison rule to obtain a mapping relationship table, and enables the establishing device to compare the configuration data based on the mapping relationship table. Assuming that the two sets of network element configuration data contain m and n configuration data respectively, the prior art needs to traverse at least m*n configuration data to obtain a comparison result, while the present application only needs to traverse max(m, n) configuration data to obtain a comparison result, thereby reducing the number of times of traversing the configuration data during comparison, reducing the time complexity of the algorithm, improving the comparison efficiency, quickly realizing network optimization, and improving the service quality of the communication network.

[0046] The method for establishing a mapping relationship table provided by the present application can be applied to an application environment as shown in Figure 1 The method for establishing a mapping relationship table provided by the present application can be applied to an application environment as shown in Figure 1As shown, the application environment includes: a mapping relationship table establishing device 101 (which can be referred to as an establishing device), a network management device 102, and a front-end device 103, wherein the mapping relationship table establishing device 101 and the network management device 102 are connected to each other, and the mapping relationship table establishing device 101 and the front-end device 103 are also connected to each other.

[0047] The mapping relationship table establishing device 101 can be a server cluster composed of multiple servers, or a single server, or a computer, or a processor or processing chip in the server or computer, etc. The specific device form of the mapping relationship table establishing device 101 is not limited in the embodiments of the present application. Figure 1 In the specific implementation, the mapping relationship table establishing device 101 is taken as a single server.

[0048] The network management device 102 can be a server cluster composed of multiple servers, or a single server, or a computer, or a processor or processing chip in the server or computer, etc. The specific device form of the network management device 102 is not limited in the embodiments of the present application. Figure 1 In the specific implementation, the network management device 102 is taken as a single server.

[0049] The front-end device 103 can be a device with wireless transceiving function, such as a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The specific type of the front-end device 103 is not limited in the embodiments of the present application. Figure 1 In the specific implementation, the front-end device 103 is taken as a mobile phone terminal.

[0050] In some embodiments, when it is needed to compare the configuration data of two network elements, the establishing device can obtain the two pieces of network element configuration data to be compared from the network management device, process the two pieces of network element configuration data to obtain the mapping relationship table. The establishing device can also display the obtained mapping relationship table to the user through the front-end device, so that the user can adjust the corresponding relationship of the mapping relationship table.

[0051] Figure 2 A flowchart of a mapping relationship table establishing method provided by the embodiments of the present application is shown in FIG. 6. Figure 2 As shown, the mapping relationship table establishing method provided by the present application can be implemented through the above establishing device, and specifically includes the following steps:

[0052] S201, the establishing device determines a first configuration data set and a second configuration data set.

[0053] The first configuration data set and the second configuration data set are respectively used to indicate configuration data under the same table name in different network elements to be compared, and each configuration data includes a distinguishable name DN and index data.

[0054] In some embodiments, the establishing device can automatically obtain two network element data to be compared from the network management device, or the establishing device obtains two network element data to be compared input by a user, and determines configuration data under the same table name in the two network element data as the first configuration data set and the second configuration data set. Each configuration data includes a distinguishable name DN and index data.

[0055] It should be noted that there are multiple configuration data sets with the same table name in the two network element data to be compared obtained by the establishing device, that is, there are multiple first configuration data sets and second configuration data sets, and the method of comparing one set of first configuration data set and second configuration data set is described below. The method of comparing other configuration data sets with the same table name in the two network element data is consistent with the method described below, which is a repeated operation and will not be described in detail.

[0056] S202, the establishing device obtains the DN of each configuration data in the first configuration data set to obtain a first index set.

[0057] In some embodiments, the establishing device splits each configuration data in the first configuration data set into a DN and corresponding index data, and the obtained DNs are summarized to obtain the first index set. There is a corresponding relationship between the DN and the index data, and the establishing device can query the corresponding index data according to the DN.

[0058] S203, the establishing device obtains the DN of each configuration data in the second configuration data set to obtain a second index set.

[0059] In some embodiments, the establishing device splits each configuration data in the second configuration data set into a DN and corresponding index data, and the obtained DNs are summarized to obtain the second index set. There is a corresponding relationship between the DN and the index data, and the establishing device can query the corresponding index data according to the DN.

[0060] S204, the establishing device establishes a one-to-one correspondence between the first index set and the second index set according to a preset comparison rule to obtain a mapping relationship table.

[0061] The mapping relationship table is used to query the corresponding index data according to the DN to compare the configuration data between different network elements.

[0062] In some embodiments, the device establishes a mapping table by comparing the sizes of DNs in a first index set and a second index set according to a preset comparison rule, and establishing a one-to-one correspondence between the first and second index sets based on the comparison results. The mapping table is used to query the corresponding index data based on the DN to compare the configuration data between different network elements.

[0063] For example, each DN includes at least one node, and at least one node has inheritance. The establishment device first compares the number of nodes of DNs in the first index set and DNs in the second index set. If the number of nodes is the same, it compares the size of the nodes of DNs in the first index set and DNs in the second index set according to the inheritance relationship of the nodes in the DNs. Based on the comparison result, it establishes a one-to-one correspondence between the first index set and the second index set to obtain a mapping table.

[0064] The technical solutions provided in the above embodiments bring at least the following beneficial effects. The mapping relationship table establishment method provided in this application involves the establishment device acquiring a first configuration dataset and a second configuration dataset, then acquiring the DN of each configuration data in the first and second configuration datasets to obtain a first index set and a second index set. The establishment device then establishes a one-to-one correspondence between the first index set and the second index set according to a preset comparison rule, obtaining a mapping relationship table. This allows the establishment device to compare configuration data based on the mapping relationship table. Compared with existing technologies, this reduces the number of times configuration data is traversed during comparison, lowers the time complexity of the algorithm, improves the efficiency of comparison, and enables rapid network optimization, thereby improving the quality of communication network services.

[0065] The following describes in detail the method for establishing the mapping relationship table provided in the embodiments of this application, with reference to specific embodiments and the accompanying drawings.

[0066] like Figure 3 As shown, the method for establishing the mapping relationship table provided in this application may specifically include the following steps:

[0067] S301, The device establishes a first configuration dataset and a second configuration dataset.

[0068] The first configuration dataset and the second configuration dataset are used to indicate the configuration data under the same table name in different network elements to be compared. Each configuration data includes a distinguishable name (DN) and index data.

[0069] S302. The device obtains the DN of each configuration data in the first configuration dataset to obtain the first index set.

[0070] S303. Establish the device to obtain the DN of each configuration data in the second configuration dataset, and obtain the second index set.

[0071] The above description of S301-S303 can refer to the description of S201-S203, which will not be repeated here.

[0072] S304, the establishing device establishes a one-to-one correspondence between the first index set and the second index set according to a preset comparison rule, and obtains a mapping relationship table.

[0073] The mapping relationship table is used to query the corresponding index data according to the DN to compare the configuration data between different network elements.

[0074] In some embodiments, the establishing device can compare the DN in the first index set and the second index set according to the preset comparison rule, sort all the DN in the index table in ascending order to obtain the sorted first index set and the second index set, and then compare the DN in the sorted first index set and the second index set according to the preset comparison rule to establish a one-to-one correspondence and obtain the mapping relationship table. The mapping relationship table is used to query the corresponding index data according to the DN to compare the configuration data between different network elements. Specifically, as shown in Figure 4 S3041-S3042.

[0075] S3041, the establishing device sorts the first index set and the second index set based on the preset comparison rule.

[0076] In some embodiments, the establishing device compares the DN in the first index set and the second index set according to the preset comparison rule, sorts the DN in ascending order according to the comparison result to obtain the sorted first index set, and sorts the DN in the second index set in ascending order according to the comparison result to obtain the sorted second index set.

[0077] The DN includes at least one node, and the at least one node has inheritance. The preset comparison rule includes: comparing the size of the DN according to the number of nodes, and comparing the size of the DN according to the size of the child node of the target node in the case of the same target node. The child node of the target node is other node except the leaf node. The same target node includes: the same key of the target node, or the same key value of the target node.

[0078] It should be noted that the size comparison of the child nodes of the target node is to convert the key and value of the node into string values, and compare the size of the string values, wherein the conversion of the key and value of the node into string values can be conversion according to the American Standard Code for Information Interchange (ASCII) or a user-defined string conversion rule, and the present application embodiment does not limit this. In addition, according to the 3GPP specification, the key of the node in the DN in the configuration data under the same table name is the same, that is, the key of the node of the DN in the first index set and the second index set is the same.

[0079] S3042, the establishing device establishes a one-to-one correspondence relationship between the DN in the sorted first index set and the DN in the second index set based on the preset comparison rule, and obtains a mapping relationship table.

[0080] In some embodiments, the establishing device compares the size of the DN in the sorted first index set and the DN in the second index set based on the preset comparison rule, and establishes a one-to-one correspondence relationship between the DN in the first index set and the DN in the second index set according to the comparison result, and obtains a mapping relationship table.

[0081] It should be noted that the size comparison of the DN in the sorted first index set and the DN in the second index set is to compare the size of the values of the nodes with the same key in the DN in the first index set and the second index set, and the DN with a larger node value is larger.

[0082] Specifically, as shown in Figure 5 S3042a-S3042d.

[0083] S3042a, the establishing device takes out a first DN from the first index set in order, and takes out a second DN from the second index set in order.

[0084] In some embodiments, the establishing device sets a first pointer and a second pointer in the first index set and the second index set respectively, and the first pointer and the second pointer initially point to the first DN in the first index set and the second index set respectively. The establishing device takes out the first DN and the second DN pointed to by the first pointer and the second pointer.

[0085] S3042b, the establishing device establishes a one-to-one correspondence relationship between the empty data and the second DN based on the preset comparison rule in the case that the first DN is larger, and compares the next DN of the first DN and the second DN.

[0086] In some embodiments, the establishing device compares the first DN and the second DN based on a preset comparison rule, and in the case that the first DN is larger, establishes a one-to-one correspondence between the empty data and the second DN, i.e., adds the empty data and the second DN to the corresponding left and right sides of the mapping relationship table, and then the establishing device moves the second pointer down by one DN, i.e., compares the next DN of the first DN with the second DN.

[0087] In the case that the second DN is larger, the establishing device establishes a one-to-one correspondence between the first DN and the empty data based on a preset comparison rule, and compares the next DN of the second DN with the first DN.

[0088] In some embodiments, the establishing device compares the first DN and the second DN based on a preset comparison rule, and in the case that the second DN is larger, establishes a one-to-one correspondence between the first DN and the empty data, i.e., adds the first DN and the empty data to the corresponding left and right sides of the mapping relationship table, and then the establishing device moves the first pointer down by one DN, i.e., compares the next DN of the first DN with the second DN.

[0089] In the case that the first DN and the second DN are the same, the establishing device establishes a one-to-one correspondence between the first DN and the second DN based on a preset comparison rule, and compares the next DN of the first DN with the next DN of the second DN.

[0090] In some embodiments, the establishing device compares the first DN and the second DN based on a preset comparison rule, and in the case that the first DN and the second DN are the same, establishes a one-to-one correspondence between the first DN and the second DN, i.e., adds the first DN and the second DN to the corresponding left and right sides of the mapping relationship table, and then the establishing device moves the first pointer and the second pointer down by one DN, i.e., compares the next DN of the first DN with the next DN of the second DN.

[0091] It should be noted that the above steps S3042a-S3042d are repeated, and the establishing device takes out the first DN and the second DN pointed to by the first pointer and the second pointer again for comparison after the first comparison is completed, and the operation of taking out the first DN and the second DN for comparison is repeatedly performed until the first pointer and / or the second pointer reaches the end of the first index set and / or the second index set, and the establishing device establishes a one-to-one correspondence between the DN in the index set to which the pointer has not reached the end and the empty data, and adds it to the mapping relationship table, to finally obtain the mapping relationship table.

[0092] In addition, after obtaining the mapping relationship table, the establishing device can display the mapping relationship table to the user through the front-end device, obtain an instruction of the user for adjusting the corresponding relationship in the mapping relationship table, and update the mapping relationship table according to the instruction of the user. Therefore, after S304, the embodiment of the application provides a method for establishing the mapping relationship table, and further includes the following S305-S306:

[0093] S305, the establishing device obtains an instruction of the user.

[0094] The instruction of the user is used to specify the target node.

[0095] In some embodiments, after obtaining the mapping relationship table, the establishing device can display the mapping relationship table to the user in a graphical or other operable manner through the front-end device, so that the user adjusts the record in the mapping relationship table, and the establishing device obtains an instruction of the user. The instruction of the user is used to specify the target node.

[0096] For example, the establishing device displays the mapping relationship table to the user in a graphical or other operable manner through the front-end device, the user specifies that there is a one-to-one corresponding relationship between the target nodes of two DNs in the mapping relationship table, and the establishing device obtains the specifying operation of the user. By default, the two target nodes specified by the user are equal.

[0097] S306, the establishing device updates the mapping relationship table based on a preset comparison rule in response to the instruction of the user.

[0098] In some embodiments, the establishing device locates the positions of the target nodes specified by the user, determines that the target nodes in the first index set and the second index set specified by the user are equal, re-compare the target nodes based on the preset comparison rule from the child nodes of the target nodes according to the first index set and the second index set, and the method is consistent with the method of S3042a-S3042d described above, and will not be described again. According to the comparison result, the one-to-one corresponding relationship of the DNs in the first index set and the second index set is re-established, and the mapping relationship table is updated.

[0099] It should be noted that after the establishing device obtains the instruction of the user, updates the mapping relationship table based on the instruction of the user and the preset comparison rule, and displays the updated mapping relationship table to the user through the front-end device, if the user needs to adjust the corresponding relationship in the mapping relationship table again, the establishing device obtains the instruction of the user again, repeats the above operation, and finally obtains the updated mapping relationship table until the user no longer adjusts the mapping relationship table.

[0100] In addition, after the mapping relationship table is obtained by the establishing device, the establishing device can query the index data corresponding to the DN based on the mapping relationship table, compare the attribute of the index data, and finally obtain a comparison result. Therefore, after S306, the embodiment of the present application provides a method for establishing the mapping relationship table, and further includes the following S307-S308.

[0101] S307, the establishing device obtains the third DN and the fourth DN having a corresponding relationship from the mapping relationship table.

[0102] In some embodiments, the establishing device sets the third pointer and the fourth pointer in the mapping relationship table, and the third pointer and the fourth pointer initially point to the first DN having a corresponding relationship on the left and right sides of the mapping relationship table, respectively. The establishing device obtains the third DN and the fourth DN pointed to by the third pointer and the fourth pointer. The third DN and the fourth DN are used to indicate any pair of DN having a corresponding relationship in the mapping relationship table, and in addition, the DN here can be null data.

[0103] S308, the establishing device compares whether the index data corresponding to the third DN and the index data corresponding to the fourth DN are consistent, and obtains a comparison result.

[0104] In some embodiments, after the establishing device obtains the third DN and the fourth DN, the corresponding index data is queried according to the third DN and the fourth DN, the index data is loaded into the memory for comparison, and a comparison result is obtained.

[0105] It should be noted that the establishing device obtains the third DN and the fourth DN having a corresponding relationship from the mapping relationship table, and compares the index data corresponding to the third DN and the index data corresponding to the fourth DN, which is a repeated operation. After the establishing device compares the index data corresponding to the third DN and the fourth DN of the first pair, the third pointer and the fourth pointer are both moved down by one DN, the third DN and the fourth DN pointed to by the third pointer and the fourth pointer are obtained again, and the index data corresponding to the third DN and the fourth DN is compared, until the third pointer and the fourth pointer reach the end of the mapping relationship table. The establishing device collects the comparison result of each comparison to obtain a final comparison result.

[0106] In addition, there are multiple first configuration data sets and second configuration data sets in the two network element configuration data, that is, the mapping relationship table obtained by the establishing device is also multiple, and when the establishing device compares, the index data in each mapping relationship table is compared based on the above method, and a comparison result is collected.

[0107] Specifically, if one or more mapping relationship tables in the plurality of mapping relationship tables of the two sets of network element configuration data do not match (one or more of the DNs in the first index set and the second index set in the mapping relationship table are different), the establishing device directly displays that the mapping relationship tables do not match in the two sets of network element configuration data through the front-end device. If the plurality of mapping relationship tables of the two sets of network element configuration data all match (all the DNs in the first index set and the second index set in the mapping relationship table are the same), but the index data corresponding to the third DN and the fourth DN in one or more mapping relationship tables are not equal, the establishing device labels the third DN and the fourth DN corresponding to the different index data in the mapping relationship table, and displays the third DN and the fourth DN to the user through the front-end device. If the plurality of mapping relationship tables of the two sets of network element configuration data all match and the index data corresponding to the third DN and the fourth DN in the mapping relationship table are also equal, the establishing device displays that the two sets of network element configuration data are completely the same through the front-end device.

[0108] The mapping relationship table establishing method provided by the above embodiment at least has the following beneficial effects. The establishing device obtains the first configuration data set and the second configuration data set, obtains the DN of each configuration data in the first configuration data set and the second configuration data set, obtains the first index set and the second index set, establishes a one-to-one correspondence between the first index set and the second index set according to a preset comparison rule, and obtains the mapping relationship table. The establishing device can compare the configuration data based on the mapping relationship table. Compared with the prior art, the number of times of traversing the configuration data during comparison is reduced, the time complexity of the algorithm is reduced, the comparison efficiency is improved, network optimization can be quickly implemented, and the service quality of the communication network is improved.

[0109] Further, when the establishing device compares the configuration data based on the mapping relationship table, it is not necessary to load all the configuration data of the two sets of network element configuration data into the memory. Only the index data with the corresponding relationship needs to be loaded into the memory for comparison, thereby reducing resource waste. In addition, the establishing device can display the mapping relationship table to the user through the front-end device, obtain the instruction of the user for adjusting the corresponding relationship in the mapping relationship table, and update the mapping relationship table. Different types of network element configuration data can be compared, and the diversified needs of the user are met.

[0110] The mapping relationship table establishing method of the embodiment of the application will be described below with reference to a specific embodiment. The specific implementation process of the method is shown in Figure 6 .

[0111] The establishing device obtains two pieces of network element configuration data input by a user, and performs data comparison. The DN splitting module splits the DNs in the two pieces of network element configuration data respectively, generates a first DN List and a second DN List (i.e., a first index table and a second index table), and establishes an association relationship of the DNs to MO records (i.e., DN to index data), and reads the DN information to the memory. The basic mapping relationship table relationship establishing module establishes a mapping relationship table according to the first index table and the second index table. The user selects whether to directly compare based on the mapping relationship table. If the user selects direct comparison, the parameter comparison module based on the mapping relationship table performs parameter comparison on the index data according to the mapping relationship table (i.e., according to the DN to read the index data, and perform attribute comparison). If the user selects not to directly compare, the mapping relationship table relationship establishing module supporting user reset adjusts the current mapping table according to the user instruction, obtains an updated mapping relationship table, and then the parameter comparison module based on the mapping relationship table performs parameter comparison based on the updated mapping relationship table. After the comparison is completed, the data comparison result presenting module presents the comparison result of the configuration data.

[0112] The establishing method of the mapping relationship table of the embodiment of the application will be introduced below with reference to a specific embodiment. In the method, the establishing device establishes a one-to-one correspondence relationship of the first index set and the second index set according to a preset comparison rule, and obtains the mapping relationship table. The specific implementation process is as shown in Figure 7

[0113] Firstly, a strategy of comparing the sizes of two DNs (i.e., a preset comparison rule) is introduced, which is used to compare different styles of configuration data.

[0114] Strategy 1 of comparing the sizes of two DNs:

[0115] 1. If the number of nodes of a DN is large, the DN is large. 2. When the number of nodes of the DN is the same, the child nodes of the target node in the DN are compared, and the DN is large if the child node is large. 3. The nodes in the DN are compared according to the sizes of the strings converted from the nodes. 4. If all the nodes of two DNs are the same, the two DNs are equal.

[0116] Strategy 2 of comparing the sizes of two DNs:

[0117] 1. If the number of nodes of a DN is large, the DN is large. 2. When the number of nodes of the DN is the same, the child nodes of the target node in the DN are compared, and the DN is large if the child node is large. 3. The nodes in the DN are compared according to the sizes of the strings converted from the nodes. 4. If the number of nodes of two DNs is n, and the first n-1 nodes are the same, the two DNs are equal. 5. The last node is not compared, and the corresponding relationship is established according to the order.

[0118] ​After the establishment device obtains the DN List of the two groups of configuration data sets (i.e. the first index set and the second index set), the DN in the DN List of the two groups of configuration data sets is sorted respectively, and the DN sorting rule refers to "Strategy 1 for comparing the size of two DNs". The establishment device sets a pointer in the DN List of the two groups of configuration data sets after sorting (referred to as the left DN list and the right DN list respectively, i.e. the first pointer and the second pointer), and the pointer initially points to the head of the list (i.e. the first DN in the list). The establishment device takes out two DNs from the left pointer and the right pointer for size comparison, wherein the comparison rule refers to "Strategy 1 for comparing the size of two DNs" and "Strategy 2 for comparing the size of two DNs", which is selected by the user. If the right DN is larger, the establishment device adds the left DN and null (i.e. empty data) to the mapping relationship table, and moves the left pointer by one DN, and the right pointer is unchanged; if the left DN is larger, the establishment device adds null and the right DN to the mapping relationship table, and moves the right pointer by one DN, and the left pointer is unchanged; if the left DN and the right DN are the same, the establishment device adds the left DN and the right DN to the mapping relationship table, and moves the left pointer and the right pointer by one DN. The establishment device judges whether the left pointer and / or the right pointer reaches the end of the list, if neither the left pointer nor the right pointer reaches the end, the next DN is compared according to the above method; if one of the left pointer and the right pointer reaches the end, each DN in the DN list of the side that has not reached the end is added to the mapping relationship table with null, and the mapping relationship table is obtained.

[0119] The establishment method of the mapping relationship table of the embodiment of the present application will be introduced below according to a specific embodiment. In the method, the establishment device obtains a user instruction, and updates the mapping relationship based on a preset comparison rule in response to the user instruction. The specific implementation process is as shown in Figure 8

[0120] ​The establishing device presents the mapping relationship table obtained above to the user in a graphical, tabular or other operable form through the front-end equipment, and the user adjusts the corresponding relationship of certain records based on the mapping relationship table. The system (i.e., the establishing device) acquires the adjustment operation (i.e., the user instruction) of the user, locates the left DN and the right DN (i.e., the first DN and the second DN) whose positions are adjusted by the user, and starts from the next level node of the DN to establish the mapping relationship table again according to the basic mapping relationship table establishment algorithm (i.e., in response to the user instruction, the mapping relationship table is updated based on the preset comparison rule). The establishing device presents the updated mapping relationship table to the user in a graphical, tabular or other operable form through the front-end equipment. The user judges whether it is necessary to continue adjusting the mapping relationship table. If the user needs to continue adjusting the mapping relationship table, the establishing device will repeat the above operation to update the mapping relationship table again according to the adjustment operation of the user. If the user does not need to continue adjusting the mapping relationship table, the construction of the mapping relationship table is completed.

[0121] The following describes the establishing method of the mapping relationship table of the embodiment of the application according to a specific embodiment. As an example, the establishing device establishes a one-to-one correspondence between the first index set and the second index set according to the preset comparison rule in the method, and obtains a specific application example of the mapping relationship table as shown in Figure 9

[0122] As shown in Figure 9 There are two sets of configuration data A and B to be compared, and their corresponding DN List (i.e., index set) is data set A DN List and data set B DN List, which respectively points to the configuration data set A and the configuration data set B (i.e., according to the DN in the data set A or B DN List, the corresponding index data can be queried for comparison).

[0123] ​The process of establishing the DN mapping relationship table of A and B by the establishing device according to the data set A DN List and the data set B DN List is as follows: the establishing device sets a first pointer and a second pointer to point to the first DN in the data set A DN List and the data set B DN List respectively. The establishing device takes out the two DNs pointed to by the first pointer and the second pointer (i.e. a = 1, b = 1 and a = 1, b = 1) to compare the sizes, the two DNs are equal in size, the establishing device adds the two DNs to the mapping relationship table, and the first pointer and the second pointer are both moved down by one DN. The establishing device takes out the two DNs pointed to by the first pointer and the second pointer again (i.e. a = 1, b = 2 and a = 1, b = 2) to compare the sizes, the two DNs are also equal in size, the establishing device adds the two DNs to the mapping relationship table, and the first pointer and the second pointer are both moved down by one DN. The establishing device takes out the two DNs pointed to by the first pointer and the second pointer again (i.e. a = 2, b = 3 and a = 1, b = 3) to compare the sizes, the first DN is large, the establishing device adds null and the second DN (a = 1, b = 3) to the mapping relationship table, and the second pointer is moved down by one DN. The establishing device takes out the two DNs pointed to by the first pointer and the second pointer again (i.e. a = 2, b = 3 and a = 2, b = 5) to compare the sizes, the second DN is large, the establishing device adds the first DN (a = 2, b = 3) and null to the mapping relationship table, and the first pointer is moved down by one DN. The establishing device takes out the two DNs pointed to by the first pointer and the second pointer again (i.e. a = 4, b = 1 and a = 2, b = 5) to compare the sizes, the first DN is large, the establishing device adds null and the second DN (a = 2, b = 5) to the mapping relationship table, which is that the establishing device detects that the second pointer has reached the end, and adds the first remaining DN (a = 4, b = 1) and null to the mapping relationship table. The DN mapping relationship table of A and B finally obtained is as shown in Figure 9 .

[0124] The mapping relationship table establishing method of the embodiment of the present application will be introduced below with respect to a specific embodiment. As an example, the establishing device in the method obtains a user instruction, and updates the mapping relationship based on a preset comparison rule in response to the user instruction. A specific application example of the mapping relationship table establishing method is as shown in Figure 10 .

[0125] This embodiment takes the comparison of cell data of two 5G network elements in the RAN network operation and maintenance scenario as an example to illustrate how to support customizable data comparison using the "mapping relationship table establishing algorithm supporting user reset". It is assumed that a user wants to compare the cell data of an A network element and a B network element, and the cell data of the A network element and the B network element is as follows:

[0126] There are 5 cells under the A network element, and the DNs are as follows:

[0127] Cell 1: ME = 101, GNBCUCPFuntion = 1, NRCellCU = 1;

[0128] Cell 2: ME = 101, GNBCUCPFuntion = 1, NRCellCU = 2;

[0129] Cell 3: ME = 101, GNBCUCPFuntion = 1, NRCellCU = 3;

[0130] Cell 4: ME = 101, GNBCUCPFuntion = 2, NRCellCU = 3;

[0131] Cell 5: ME = 101, GNBCUCPFuntion = 2, NRCellCU = 4.

[0132] There are 6 cells under B network element, and the DN is respectively:

[0133] Cell 1: ME = 102, GNBCUCPFuntion = 4, NRCellCU = 1;

[0134] Cell 2: ME = 102, GNBCUCPFuntion = 4, NRCellCU = 2;

[0135] Cell 3: ME = 102, GNBCUCPFuntion = 4, NRCellCU = 3;

[0136] Cell 4: ME = 102, GNBCUCPFuntion = 6, NRCellCU = 2;

[0137] Cell 5: ME = 102, GNBCUCPFuntion = 6, NRCellCU = 3;

[0138] Cell 6: ME = 102, GNBCUCPFuntion = 6, NRCellCU = 4.

[0139] (wherein ME represents the name of two network elements, and the ME node does not participate in the comparison process)

[0140] Firstly, the device obtains two network element configuration data, and then the mapping relationship table is established according to the basic mapping relationship table algorithm, and the mapping relationship table is shown in Table 1.

[0141] Table 1

[0142] GNBCUCPFuntion = 1 null GNBCUCPFuntion = 2 null null GNBCUCPFuntion = 4 null GNBCUCPFuntion = 6

[0143] The keys of the nodes in the DNs in the two compared DN Lists are the same, so the comparison of the DNs is the comparison of the values of the nodes with the same keys in the two DN Lists. The mapping table of Table 1 is established as follows: Since the ME node does not participate in the comparison, the values of the first node GNBCUCPFuntion in the A network element are 1 and 2, and the values of the first node GNBCUCPFuntion in the B network element are 4 and 6. The values of the GNBCUCPFuntion node in the A network element are completely different from those in the B network element, so the corresponding null values are added to the mapping table in the order of size, and the mapping table of the A network element and the B network element is obtained. The establishment device presents the mapping table to the user in an operable manner through the front-end equipment, and the user specifies that GNBCUCPFuntion = 1 of the A network element is compared with GNBCUCPFuntion = 4 of the B network element, and GNBCUCPFuntion = 2 of the A network element is compared with GNBCUCPFuntion = 6 of the B network element. The DN comparison algorithm uses "two DN size comparison strategy 1". The mapping table adjusted by the user is shown in Table 2.

[0144] Table 2

[0145] GNBCUCPFuntion = 1 GNBCUCPFuntion = 4 GNBCUCPFuntion = 2 GNBCUCPFuntion = 6

[0146] The establishment device locates to the GNBCUCPFuntion node in the DN adjusted by the user, and starts from the next level node (i.e., the NRCellCU node) of the node to re-establish the mapping table according to the basic mapping table establishment algorithm.

[0147] In the "Strategy 1 of comparing two DN sizes", all nodes need to compare sizes, and mapping relationship is established according to comparison results. When the value of the node GNBCUCPFuntion in the DN List of the A network element is 1, the value of the NRCellCU node is 1, 2 or 3; when the value of the node GNBCUCPFuntion in the DN List of the B network element is 4, the value of the NRCellCU node is also 1, 2 or 3; according to the "Strategy 1 of comparing two DN sizes", the DN with the value of 1, 2 or 3 of the NRCellCU node in the A network element and the DN with the value of 1, 2 or 3 of the NRCellCU node in the B network element are added to the mapping relationship table. When the value of the node GNBCUCPFuntion in the DN List of the A network element is 2, the value of the NRCellCU node is 3 or 4; when the value of the node GNBCUCPFuntion in the DN List of the B network element is 6, the value of the NRCellCU node is 2, 3 or 4; according to the "Strategy 1 of comparing two DN sizes", null and the DN with the value of 2 of the NRCellCU node in the B network element are added to the mapping relationship table, and the DN with the value of 3 or 4 of the NRCellCU node in the A network element and the DN with the value of 3 or 4 of the NRCellCU node in the B network element are added to the mapping relationship table, to obtain the DN mapping relationship table of the A and B as shown in Table 2. Figure 10 The establishing device can compare the index data according to the mapping relationship table, so as to output the comparison result, which can be presented by a GUI interface or output in the form of a report file.

[0148] The following describes the mapping relationship table establishing method of the embodiment of the application according to a specific embodiment. As an example, the establishing device obtains a user instruction in the method, and updates the mapping relationship based on a preset comparison rule in response to the user instruction. A specific application example of the mapping relationship is shown in Table 1. Figure 11

[0149] The establishing device presents the mapping relationship table of Table 1 to the user in a operable manner through the front-end device. In the embodiment, the user's specified operation is as follows: the user specifies that the GNBCUCPFuntion of the A network element is 1 and the GNBCUCPFuntion of the B network element is 6 for comparison; the GNBCUCPFuntion of the A network element is 2 and the GNBCUCPFuntion of the B network element is 4 for comparison. The DN comparison algorithm uses the "Strategy 2 of comparing two DN sizes". The basic DN mapping relationship table adjusted by the user is shown in Table 3.

[0150] Table 3

[0151] GNBCUCPFuntion = 1 GNBCUCPFuntion = 6 GNBCUCPFuntion = 2 GNBCUCPFuntion = 4

[0152] ​The establishing device locates to the GNBCUCPFuntion node in the DN adjusted by the user, and starts from the next node of the GNBCUCPFuntion node, i.e., the NRCellCU node, to re-establish the mapping relationship table according to the basic mapping relationship table establishing algorithm.

[0153] In the "two DN size comparison strategy 2", the last node NRCellCU is not compared, and the mapping relationship is directly established according to the value order. When the value of the GNBCUCPFuntion node in the DN List of the A network element is 1, the value of the NRCellCU node is 1, 2, and 3, and when the value of the GNBCUCPFuntion node in the DN List of the B network element is 6, the value of the NRCellCU node is 2, 3, and 4. According to the "two DN size comparison strategy 2", the value of the NRCellCU node is not compared, and is directly added to the mapping relationship table according to the order, so that the DN with the value of 1, 2, and 3 of the NRCellCU node in the A network element and the DN with the value of 2, 3, and 4 of the NRCellCU node in the B network element are added to the mapping relationship table. When the value of the GNBCUCPFuntion node in the DN List of the A network element is 2, the value of the NRCellCU node is 3 and 4, and when the value of the GNBCUCPFuntion node in the DN List of the B network element is 4, the value of the NRCellCU node is 1, 2, and 3. According to the "two DN size comparison strategy 2", the DN with the value of 3 and 4 of the NRCellCU node in the A network element and the DN with the value of 1 and 2 of the NRCellCU node in the B network element are added to the mapping relationship table, and null and the DN with the value of 3 of the NRCellCU node in the B network element are added to the mapping relationship table, to obtain the DN mapping relationship table of A and B as shown in FIG. 8. Figure 11 The establishing device can compare the index data according to the mapping relationship table, so as to output the comparison result, which can be presented by a GUI interface or output in the form of a report file.

[0154] Figure 12 A system architecture diagram of an embodiment of the present application includes a DN splitting module 1201, a basic mapping relationship table establishing module 1202, a parameter comparison module 1203 based on the mapping relationship table, a data comparison result presentation module 1204, and a mapping relationship table establishing module 1205 supporting user reset.

[0155] The DN splitting module 1201 is used for splitting and establishing the relationship between the DN and the MO record. The DN of each MO in the network element configuration data set is split and established, and each MO object instance is split into two parts of DN and subnode. The configuration data set of one network element corresponds to one DN List, and each DN in the DN List is sorted from small to large according to the comparison strategy 1, which is applied to S202-S203.

[0156] The basic mapping relationship table establishing module 1202 is configured to establish a DN mapping relationship table for the DN List of the two data sets to be compared according to a system default algorithm (i.e., a basic mapping relationship table establishing algorithm), and is applied to S204.

[0157] The parameter comparison module 1203 based on the mapping relationship table is configured to determine the records to be compared after the mapping relationship table is generated. The module compares the records having the mapping relationship two by two based on the mapping relationship table, and outputs the comparison result, and is applied to S308.

[0158] The data comparison result presentation module 1204 is configured to present the comparison result, and is applied to S308.

[0159] The mapping relationship table establishing module 1205 supporting user resetting is configured to reposition the DN node according to the user-specified node to be compared, and to reestablish the mapping relationship table information under the DN node by using the basic mapping relationship table establishing algorithm from the next level node of the DN, and is applied to S306.

[0160] In the exemplary embodiments, the application further provides a mapping relationship table establishing device. The mapping relationship table establishing device can include one or more functional modules for implementing the mapping relationship table establishing method of the above method embodiments.

[0161] For example, Figure 13 A component schematic diagram of a mapping relationship table establishing device provided by the embodiments of the application is shown in FIG. 13. Figure 13 As shown in the figure, the mapping relationship table establishing device includes an acquisition module 1301 and a processing module 1302.

[0162] The acquisition module 1301 is configured to acquire a first configuration data set and a second configuration data set. The first configuration data set and the second configuration data set are respectively used to indicate the configuration data under the same table name in different network elements to be compared. Each configuration data includes a distinguishable name (DN) and index data. The acquisition module 1301 is further configured to acquire the DN of each configuration data in the first configuration data set to obtain a first index set. The acquisition module 1301 is further configured to acquire the DN of each configuration data in the second configuration data set to obtain a second index set. The processing module 1302 is configured to establish a one-to-one correspondence between the first index set and the second index set according to a preset comparison rule to obtain a mapping relationship table. The mapping relationship table is used to query the corresponding index data according to the DN to compare the configuration data between different network elements.

[0163] In some embodiments, the DN comprises at least one node; the at least one node has inheritance; and the preset comparison rule comprises: comparing the sizes of the DNs according to the number of nodes, and comparing the sizes of the DNs according to the sizes of the child nodes of the target nodes in the case of the same target nodes.

[0164] In some other embodiments, the child node of the target node is a node other than a leaf node.

[0165] In some other embodiments, the same target node comprises: the same key of the target node, or the same key value of the target node.

[0166] In some other embodiments, the processing module 1302 is specifically configured to sort the first index set and the second index set respectively based on the preset comparison rule; and establish a one-to-one correspondence between the DNs in the sorted first index set and the second index set based on the preset comparison rule, to obtain the mapping relationship table.

[0167] In some other embodiments, the processing module 1302 is specifically configured to take out a first DN from the first index set in order, and take out a second DN from the second index set in order; based on the preset comparison rule, in the case of the first DN being larger, establish a one-to-one correspondence between the empty data and the second DN, and compare the next DN of the first DN and the second DN; based on the preset comparison rule, in the case of the second DN being larger, establish a one-to-one correspondence between the first DN and the empty data, and compare the next DN of the second DN and the first DN; based on the preset comparison rule, in the case of the first DN and the second DN being the same, establish a one-to-one correspondence between the first DN and the second DN, and compare the next DN of the first DN and the next DN of the second DN.

[0168] In some other embodiments, the electronic device further comprises an updating module 1303; the obtaining module 1301 is further configured to obtain a user instruction; the user instruction is used to specify a target node; and the updating module 1303 is configured to, in response to the user instruction, update the mapping relationship table based on the preset comparison rule.

[0169] In some other embodiments, the electronic device further comprises a comparison module 1304; the obtaining module 1301 is further configured to obtain a third DN and a fourth DN having a corresponding relationship from the mapping relationship table; and the comparison module 1304 is configured to compare whether the index data corresponding to the third DN and the index data corresponding to the fourth DN are consistent, to obtain a comparison result.

[0170] In an exemplary embodiment, the embodiments of the present application also provide an electronic device, which can be the mapping relationship table establishing device in the above-mentioned method embodiments. Figure 14 A composition schematic diagram of an electronic device provided by the embodiments of the present application is shown in FIG. 1. Figure 14As shown, the electronic device can include a processor 1401 and a memory 1402; the memory 1402 stores instructions executable by the processor 1401; the processor 1401 is configured to execute the instructions, so that the electronic device or the network device or the manager implements the method as described in the foregoing method embodiment.

[0171] In an exemplary embodiment, the embodiments of the present application also provide a computer readable storage medium, which stores computer program instructions; when the computer program instructions are executed by a computer, the computer implements the method as described in the foregoing embodiments. The computer readable storage medium can be a non-transitory computer readable storage medium, for example, the non-transitory computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0172] In an exemplary embodiment, the embodiments of the present application also provide a computer program product, when the computer program product runs on a computer, the computer executes the above-mentioned related method steps to implement the mapping relationship table establishment method in the above-mentioned embodiments.

[0173] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited to this, any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method of establishing a mapping table, characterized by, The method comprises: obtaining a first configuration data set and a second configuration data set; the first configuration data set and the second configuration data set are respectively used to indicate configuration data under a same table name in different network elements to be compared; each configuration data comprises a distinguishable name DN and index data; obtaining the DN of each configuration data in the first configuration data set to obtain a first index set; obtaining the DN of each configuration data in the second configuration data set to obtain a second index set; establishing a one-to-one correspondence between the first index set and the second index set according to a preset comparison rule to obtain a mapping relationship table, comprising: based on the preset comparison rule, sorting the first index set and the second index set respectively; based on the preset comparison rule, establishing a one-to-one correspondence between the DNs in the sorted first index set and the second index set to obtain the mapping relationship table; the mapping relationship table is used to query corresponding index data according to the DN to compare configuration data between different network elements; the DN comprises at least one node; the at least one node has inheritance; the preset comparison rule comprises: comparing the size of the DN according to the number of nodes, and in the case that the target nodes are the same, comparing the size of the DN according to the size of the child nodes of the target nodes.

2. The method of claim 1, wherein, The child node of the target node is a node other than a leaf node.

3. The method according to claim 1 or 2, characterized in that, The target nodes being the same comprises: the keys of the target nodes being the same, or the key values of the target nodes being the same.

4. The method of claim 1, wherein, The one-to-one correspondence between the DNs in the sorted first index set and the second index set based on the preset comparison rule comprises: sequentially taking a first DN from the first index set and sequentially taking a second DN from the second index set; based on the preset comparison rule, in the case that the first DN is larger, establishing a one-to-one correspondence between the second DN and empty data, and comparing the next DN of the first DN and the second DN; based on the preset comparison rule, in the case that the second DN is larger, establishing a one-to-one correspondence between the first DN and empty data, and comparing the next DN of the second DN and the first DN; based on the preset comparison rule, in the case that the first DN and the second DN are the same, establishing a one-to-one correspondence between the first DN and the second DN, and comparing the next DN of the first DN and the next DN of the second DN.

5. The method of claim 3, wherein, The method further comprises: obtaining a user instruction; the user instruction is used to specify the target node; in response to the user instruction, updating the mapping relationship table based on the preset comparison rule.

6. The method of claim 1, wherein, The method further comprises: obtaining a third DN and a fourth DN having a corresponding relationship from the mapping relationship table; comparing whether the index data corresponding to the third DN and the index data corresponding to the fourth DN are consistent to obtain a comparison result.

7. A device for establishing a mapping relationship table, characterized in that, The device comprises an obtaining module and a processing module; The obtaining module is configured to obtain a first configuration data set and a second configuration data set; the first configuration data set and the second configuration data set are respectively used to indicate configuration data under a same table name in different network elements to be compared; each configuration data comprises a distinguishable name DN and index data; The obtaining module is further configured to obtain the DN of each configuration data in the first configuration data set, to obtain a first index set; The obtaining module is further configured to obtain the DN of each configuration data in the second configuration data set, to obtain a second index set; The processing module is configured to establish a one-to-one correspondence between the first index set and the second index set according to a preset comparison rule, to obtain a mapping relationship table; the mapping relationship table is used to query corresponding index data according to the DN to compare configuration data between different network elements; The DN comprises at least one node; the at least one node has inheritance; the preset comparison rule comprises: comparing the size of the DN according to the number of nodes, and comparing the size of the DN according to the size of a child node of a target node in the case that the target nodes are the same; The processing module is specifically configured to sort the first index set and the second index set respectively based on the preset comparison rule; and establish a one-to-one correspondence between the DNs in the sorted first index set and the second index set based on the preset comparison rule, to obtain the mapping relationship table.

8. The mapping relationship table establishing apparatus according to claim 7, wherein The child node of the target node is a node other than a leaf node.

9. The mapping relationship table establishing apparatus according to claim 7 or 8, wherein The target nodes being the same comprises: keys of the target nodes being the same, or key values of the target nodes being the same.

10. The mapping relationship table establishing apparatus according to claim 7, wherein The processing module is specifically configured to take out a first DN from the first index set in sequence, and take out a second DN from the second index set in sequence; based on the preset comparison rule, in the case that the first DN is larger, establish a one-to-one correspondence between empty data and the second DN, and compare a next DN of the first DN and a next DN of the second DN; based on the preset comparison rule, in the case that the second DN is larger, establish a one-to-one correspondence between the first DN and empty data, and compare the second DN and a next DN of the first DN; based on the preset comparison rule, in the case that the first DN and the second DN are the same, establish a one-to-one correspondence between the first DN and the second DN, and compare a next DN of the first DN and a next DN of the second DN.

11. The mapping relationship table establishing apparatus according to claim 9, wherein The device further comprises an updating module; The obtaining module is further configured to obtain a user instruction; the user instruction is used to specify the target node; The updating module is configured to, in response to the user instruction, update the mapping relationship table based on the preset comparison rule.

12. The mapping relationship table establishing apparatus according to claim 7, wherein The device further comprises a comparison module; The obtaining module is further configured to obtain a third DN and a fourth DN having a corresponding relationship from the mapping relationship table; The comparison module is configured to compare whether index data corresponding to the third DN and index data corresponding to the fourth DN are consistent, to obtain a comparison result.

13. An electronic device, comprising: The electronic device comprises a processor and a memory; The memory stores instructions executable by the processor; The processor is configured to execute the instructions to cause the electronic device to implement the method of any one of claims 1-6.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer software instructions; When the computer software instructions are run in the electronic device, the electronic device is caused to implement the method of any one of claims 1-6.

Citation Information

Patent Citations

  • Configuration information maintenance method, device and equipment and readable storage medium

    CN110008114A

  • Configuration comparison method and device, electronic equipment and storage medium

    CN115102850A