A data auditing method, apparatus and storage medium

By establishing a resource database in the telecommunications network, the problem of low audit efficiency caused by the scattered storage of transmission resource data was solved, and fast and accurate circuit data auditing was achieved.

CN116225750BActive Publication Date: 2026-05-05CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2022-12-19
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

In telecommunications networks, transmission resource data is stored in various local transmission networks and secondary backbone networks in network element or subnet management systems, resulting in low efficiency of general technology in auditing transmission resource data for a single circuit.

Method used

By pre-collecting resource data from multiple network management devices and establishing a resource database, the audit results of the circuit to be audited are determined based on this database, avoiding the need to sequentially query sub-data in different network element or subnet management systems.

Benefits of technology

It improves the efficiency of data auditing, reduces redundant queries of transmitted resource data, and enhances the accuracy and speed of auditing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116225750B_ABST
    Figure CN116225750B_ABST
Patent Text Reader

Abstract

The application provides a data auditing method and device and a storage medium, relates to the technical field of communication, and is used for solving the technical problem of low data auditing efficiency of general technology. The data auditing method comprises the following steps: acquiring number information of a circuit to be audited; determining a data result corresponding to the number information based on a pre-established resource database, and determining an auditing result of the circuit to be audited according to the data result; the resource database comprises resource data acquired from a plurality of network management devices; the resource data comprises at least one data set; and the at least one data set comprises at least one of a circuit data set, a routing data set and a port data set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a data auditing method, apparatus and storage medium. Background Technology

[0002] In telecommunications networks, the transmission network provides fundamental services, making its operation and maintenance crucial for telecom operators. By verifying transmission resource data, the operational status of the transmission network can be analyzed, thereby enabling the maintenance of abnormal networks.

[0003] However, since transmission resource data is stored in various local transmission networks and secondary backbone networks in network element or subnet management systems, when general technology checks the transmission resource data of a circuit, it is necessary to sequentially query each possible sub-data that needs to be spliced ​​together in different network element or subnet management systems, and audit the queried sub-data separately, resulting in low auditing efficiency of transmission resource data. Summary of the Invention

[0004] This application provides a data auditing method, apparatus, and storage medium to solve the technical problem of low auditing efficiency in general technologies.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] Firstly, a data auditing method is provided, including:

[0007] Obtain the circuit number information to be audited;

[0008] Based on a pre-established resource database, the data results corresponding to the number information are determined, and the audit results of the circuit to be audited are determined according to the data results; the resource database includes: resource data obtained from multiple network management devices; the resource data includes at least one data set; at least one data set includes: at least one of the following: circuit data set, routing data set, and port data set.

[0009] Optionally, when at least one data set includes a circuit data set, based on a pre-established resource database, the data results corresponding to the numbering information are determined, and the audit results of the circuit to be audited are determined based on the data results, including:

[0010] When the circuit data set does not include the circuit data corresponding to the number information, the data result is determined to be no circuit data found, and the audit result is determined to be: the circuit data of the circuit to be audited is missing.

[0011] When the circuit data set includes a first number of circuit data corresponding to the number information, the data result is determined to be that the first number of circuit data has been found, and the audit result is determined to be: the circuit to be audited is a redundant circuit; the first number is greater than the first preset value.

[0012] Optionally, when at least one data set includes a circuit data set and a routing data set, and the circuit data set includes a second number of circuit data corresponding to the numbering information, each circuit data in the second number of circuit data includes a circuit identifier corresponding to the circuit data; the second number is greater than a second preset value and less than or equal to a first preset value;

[0013] Based on a pre-established resource database, the data results corresponding to the numbering information are determined, and the audit results of the circuit to be audited are determined based on the data results, including:

[0014] When the routing data set does not include routing data corresponding to the circuit identifier, the data result is determined to be no routing data found, and the audit result is determined to be: the routing data of the circuit to be audited is missing; the routing data includes text routing data and other routing data.

[0015] When the routing data set only includes text routing data corresponding to the circuit identifier, the data result is determined to be that text routing data was found, and the audit result is determined to be: the routing data of the circuit to be audited is missing;

[0016] When the routing data set includes text routing data and other routing data corresponding to the circuit identifier, and the number of text routing data and other routing data is odd, the data result is determined to be that routing data was found, and the number of routing data is odd, and the audit result is determined to be: the peer routing data of the circuit to be audited is missing.

[0017] Optionally, when at least one data set includes a circuit data set, a routing data set, and a port data set, and the routing data set includes text routing data and other routing data corresponding to the numbering information, and the number of text routing data and other routing data is even, the other routing data includes a routing identifier.

[0018] Based on a pre-established resource database, the data results corresponding to the numbering information are determined, and the audit results of the circuit to be audited are determined based on the data results, including:

[0019] When the port data set does not include the port collection pre-identifier corresponding to the routing identifier, the data result is determined to be that the port collection pre-identifier was not found, and the audit result is determined to be: the port collection pre-identifier of the circuit to be audited is missing.

[0020] When the port data set includes a port acquisition front identifier corresponding to the routing identifier, and the data format of the port acquisition front identifier does not meet the preset format, the data result is determined to be a port acquisition front identifier that does not meet the preset format, and the audit result is determined to be: the port acquisition front identifier of the circuit to be audited does not meet the preset format.

[0021] Optional data auditing methods also include:

[0022] When the routing data set or port data set includes the port name field of the circuit to be audited; or, when the routing data set includes the route name field of the circuit to be audited, determine the number of preset symbols in the target field; the target field is the port name field or the route name field.

[0023] The time slot information of the circuit to be audited is determined based on the number of preset symbols.

[0024] Secondly, a data auditing device is provided, comprising: an acquisition unit and a processing unit;

[0025] The acquisition unit is used to acquire the serial number information of the circuit to be audited;

[0026] The processing unit is used to determine the data results corresponding to the number information based on the pre-established resource database, and to determine the audit results of the circuit to be audited based on the data results; the resource database includes: resource data obtained from multiple network management devices; the resource data includes at least one data set; the at least one data set includes at least one of the following: circuit data set, routing data set and port data set.

[0027] Optionally, when at least one data set includes a circuit data set, the processing unit is specifically used for:

[0028] When the circuit data set does not include the circuit data corresponding to the number information, the data result is determined to be no circuit data found, and the audit result is determined to be: the circuit data of the circuit to be audited is missing.

[0029] When the circuit data set includes a first number of circuit data corresponding to the number information, the data result is determined to be that the first number of circuit data has been found, and the audit result is determined to be: the circuit to be audited is a redundant circuit; the first number is greater than the first preset value.

[0030] Optionally, when at least one data set includes a circuit data set and a routing data set, and the circuit data set includes a second number of circuit data corresponding to the numbering information, each circuit data in the second number of circuit data includes a circuit identifier corresponding to the circuit data; the second number is greater than a second preset value and less than or equal to a first preset value;

[0031] The processing unit is specifically used for:

[0032] When the routing data set does not include routing data corresponding to the circuit identifier, the data result is determined to be no routing data found, and the audit result is determined to be: the routing data of the circuit to be audited is missing; the routing data includes text routing data and other routing data.

[0033] When the routing data set only includes text routing data corresponding to the circuit identifier, the data result is determined to be that text routing data was found, and the audit result is determined to be: the routing data of the circuit to be audited is missing;

[0034] When the routing data set includes text routing data and other routing data corresponding to the circuit identifier, and the number of text routing data and other routing data is odd, the data result is determined to be that routing data was found, and the number of routing data is odd, and the audit result is determined to be: the peer routing data of the circuit to be audited is missing.

[0035] Optionally, when at least one data set includes a circuit data set, a routing data set, and a port data set, and the routing data set includes text routing data and other routing data corresponding to the numbering information, and the number of text routing data and other routing data is even, the other routing data includes a routing identifier.

[0036] The processing unit is specifically used for:

[0037] When the port data set does not include the port collection pre-identifier corresponding to the routing identifier, the data result is determined to be that the port collection pre-identifier was not found, and the audit result is determined to be: the port collection pre-identifier of the circuit to be audited is missing.

[0038] When the port data set includes a port acquisition front identifier corresponding to the routing identifier, and the data format of the port acquisition front identifier does not meet the preset format, the data result is determined to be a port acquisition front identifier that does not meet the preset format, and the audit result is determined to be: the port acquisition front identifier of the circuit to be audited does not meet the preset format.

[0039] Optionally, the processing unit is further configured to determine the number of preset symbols in the target field when the routing data set or port data set includes the port name field of the circuit to be audited; or when the routing data set includes the routing name field of the circuit to be audited; the target field is the port name field or the routing name field.

[0040] The processing unit is also used to determine the time slot information of the circuit to be audited based on the number of preset symbols.

[0041] Thirdly, a data auditing apparatus is provided, including a memory and a processor; the memory is used to store computer execution instructions, and the processor is connected to the memory via a bus; when the data auditing apparatus is running, the processor executes the computer execution instructions stored in the memory, so that the data auditing apparatus performs the data auditing method described in the first aspect.

[0042] The data auditing device can be a network device or a component of a network device, such as a chip system within the network device. This chip system supports the network device in implementing the functions involved in the first aspect and any possible implementation thereof, such as acquiring, determining, and transmitting the data and / or information involved in the aforementioned data auditing method. The chip system includes a chip, but may also include other discrete devices or circuit structures.

[0043] Fourthly, a computer-readable storage medium is provided, comprising computer-executable instructions that, when executed on a computer, cause the computer to perform the data auditing method described in the first aspect.

[0044] Fifthly, a computer program product is also provided, which includes computer instructions that, when executed on a data auditing device, cause the data auditing device to perform the data auditing method as described in the first aspect above.

[0045] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on a computer-readable storage medium. This computer-readable storage medium may be packaged together with the processor of the data auditing device, or it may be packaged separately from the processor of the data auditing device; this application does not limit this.

[0046] The descriptions of the second, third, fourth, and fifth aspects of this application can be referenced to the detailed description of the first aspect.

[0047] In the embodiments of this application, the name of the aforementioned data auditing device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear under other names. For example, the receiving unit may also be called a receiving module, receiver, etc. As long as the function of each device or functional module is similar to that of this application, it falls within the scope of the claims of this application and its equivalents.

[0048] The technical solution provided in this application brings at least the following beneficial effects:

[0049] Based on any of the above aspects, this application provides a data auditing method that can pre-acquire a large amount of resource data from multiple network management devices and establish a resource database based on this resource data. The resource data in this resource database may include at least one data set; the at least one data set includes at least one of: a circuit data set, a routing data set, and a port data set. Thus, after obtaining the numbering information of the circuit to be audited, the data results corresponding to the numbering information can be determined based on the pre-established resource database, and the audit result of the circuit to be audited can be determined according to the data results. This eliminates the need to sequentially query each possible sub-data that needs to be concatenated within different network element or subnet management systems, improving the efficiency of data auditing.

[0050] The beneficial effects of the first, second, third, fourth, and fifth aspects of this application can all be referred to in the analysis of the above-mentioned beneficial effects, and will not be repeated here. Attached Figure Description

[0051] Figure 1 This is a schematic diagram illustrating an application scenario of a data auditing system provided in an embodiment of this application;

[0052] Figure 2 A schematic diagram of the hardware structure of a data auditing device provided in this application embodiment. Figure 1 ;

[0053] Figure 3 A schematic diagram of the hardware structure of a data auditing device provided in this application embodiment. Figure 2 ;

[0054] Figure 4 A flowchart illustrating a data auditing method provided in this application embodiment. Figure 1 ;

[0055] Figure 5 A flowchart illustrating a data auditing method provided in this application embodiment. Figure 2 ;

[0056] Figure 6 A flowchart illustrating a data auditing method provided in this application embodiment. Figure 3 ;

[0057] Figure 7 This is a schematic diagram of the structure of a data auditing device provided in an embodiment of this application. Detailed Implementation

[0058] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0059] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0060] To facilitate a clear description of the technical solutions of the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish the same or similar items with essentially the same function and effect. Those skilled in the art can understand that the terms "first" and "second" are not intended to limit the quantity or execution order.

[0061] As described in the background section, the current state of network management for backbone and local transmission networks of telecommunications operators involves using network element or subnet management systems provided by various equipment manufacturers to manage their own equipment. This results in problems such as decentralized monitoring and management, a lack of macro-level understanding and data analysis of the entire network resources / network topology, a lack of macro-level monitoring and data analysis of the entire network's operational status / maintenance, and a lack of management of end-to-end circuit information across the entire network.

[0062] As the foundation and lifeline of operators' business development, the transmission network faces significant challenges in maintaining efficiency, given the vast scale and resource data of telecommunications operators and the need for rapid and accurate assessment of the urgency of various transmission risks. Currently, the circuit routing data in the unified resource database is incomplete, hindering the visualization of transmission resources and monitoring of large customer services required by upper-layer application systems. Therefore, there is an urgent need for transmission resource data auditing capabilities to improve data accuracy and meet the operational and maintenance needs of the group.

[0063] Currently, when general technology verifies the transmission resource data of a circuit, it is necessary to sequentially query each sub-data that may need to be spliced ​​together in different network element or subnet management systems, and then audit the queried sub-data separately, resulting in low efficiency in the auditing of transmission resource data.

[0064] To address the aforementioned technical issues, this application provides a data auditing method that can pre-acquire a large amount of resource data from multiple network management devices and establish a resource database based on this data. The resource data in this database can include at least one data set; the at least one data set includes at least one of a circuit data set, a routing data set, and a port data set. Thus, after obtaining the identification number of the circuit to be audited, the data result corresponding to the identification number can be determined based on the pre-established resource database, and the audit result of the circuit to be audited can be determined according to the data result. This eliminates the need to sequentially query each possible sub-data that needs to be concatenated within different network element or subnet management systems, improving the efficiency of data auditing.

[0065] This data auditing method is applicable to data auditing systems. Figure 1 This diagram illustrates one possible structure of the data auditing system. Figure 1 As shown, the data audit system includes: electronic device 101 and multiple network management devices 102.

[0066] Among them, the electronic device 101 is connected to multiple network management devices 102 for communication.

[0067] In practical applications, electronic device 101 can connect to any number of network management devices 102.

[0068] In this embodiment of the application, multiple network management devices 102 are used to provide resource data to electronic devices 101, so that electronic devices 101 can establish a resource database based on the resource data, and then quickly and accurately perform data audit on the circuit to be audited based on the resource database.

[0069] Optionally, the network management device 102 can be different network element devices in the communication network, or servers corresponding to different subnet management systems.

[0070] Electronic device 101 may be a terminal for data auditing, a server for data auditing, or other types of electronic devices. This application embodiment does not limit this.

[0071] Optionally, the aforementioned terminal may be a device that provides voice and / or data connectivity to a user, a handheld device with wireless connectivity, or other processing device connected to a wireless modem. The wireless terminal may communicate with one or more core networks via a radio access network (RAN). The wireless terminal may be a mobile terminal, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal, or a portable, pocket-sized, handheld, computer-embedded, or vehicle-mounted mobile device that exchanges voice and / or data with the radio access network, such as a mobile phone, tablet computer, laptop computer, netbook, or personal digital assistant (PDA).

[0072] Optionally, the server mentioned above can be one of the servers in a server cluster (composed of multiple servers), a chip in the server, a system-on-a-chip in the server, or a virtual machine (VM) deployed on a physical machine. This application embodiment does not limit this.

[0073] Optionally, when electronic device 101 and network management device 102 are the same type of physical device (e.g., both electronic device 101 and network management device 102 are servers), electronic device 101 and network management device 102 can be two independently configured devices, or they can be integrated into the same device.

[0074] It is easy to understand that when the electronic device 101 and the network management device 102 are integrated into the same device, the communication method between the first electronic device 101 and the network management device 102 is the communication between internal modules of the device. In this case, the communication process between the two is the same as that between the first electronic device 101 and the network management device 102 when they are independent of each other.

[0075] For ease of understanding, this application uses the example of the first electronic device 101 and the network management device 102 being independent of each other.

[0076] The basic hardware structure of electronic device 101 includes Figure 2 or Figure 3 The data auditing device shown includes the following components. Figure 2 and Figure 3 Taking the data auditing device shown as an example, the hardware structure of electronic device 101 is introduced.

[0077] like Figure 2The diagram shown is a hardware structure schematic of a data auditing device provided in an embodiment of this application. The data auditing device includes a processor 21, a memory 22, a communication interface 23, and a bus 24. The processor 21, memory 22, and communication interface 23 are connected via the bus 24.

[0078] Processor 21 is the control center of the data auditing device. It can be a single processor or a collective term for multiple processing elements. For example, processor 21 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.

[0079] As one embodiment, processor 21 may include one or more CPUs, for example Figure 2 CPU 0 and CPU 1 are shown in the diagram.

[0080] The memory 22 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.

[0081] In one possible implementation, the memory 22 can exist independently of the processor 21. The memory 22 can be connected to the processor 21 via a bus 24 and is used to store instructions or program code. When the processor 21 calls and executes the instructions or program code stored in the memory 22, it can implement the data auditing method provided in the following embodiments of this application.

[0082] In this embodiment, the software programs stored in the memory 22 of the electronic device 101 are different, so the functions implemented by the electronic device 101 are different. The functions performed by each device will be described with reference to the following flowchart.

[0083] In another possible implementation, the memory 22 can also be integrated with the processor 21.

[0084] Communication interface 23 is used for the data auditing device to connect with other devices via a communication network, such as Ethernet, wireless access network, or wireless local area network (WLAN). Communication interface 23 may include a receiving unit for receiving data and a sending unit for sending data.

[0085] Bus 24 can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 2 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0086] Figure 3 Another hardware structure of the data auditing device in an embodiment of this application is shown. For example... Figure 3 As shown, the data auditing device may include a processor 31 and a communication interface 32. The processor 31 is coupled to the communication interface 32.

[0087] The functions of processor 31 can be referred to in the description of processor 21 above. In addition, processor 31 also has a storage function, and can perform the functions of memory 22 mentioned above.

[0088] The communication interface 32 is used to provide data to the processor 31. The communication interface 32 can be an internal interface of the data auditing device, or it can be an external interface of the data auditing device (equivalent to communication interface 23).

[0089] It should be pointed out that, Figure 2 (or Figure 3 The structure shown in the diagram does not constitute a limitation on the data auditing device, except... Figure 2 (or Figure 3 In addition to the components shown in the diagram, the data auditing device may include more or fewer components than shown in the diagram, or combine certain components, or have different component arrangements.

[0090] The data auditing method provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0091] Figure 4 A detailed flowchart of a data auditing method provided in an embodiment of this application is shown. Figure 4 As shown, the data auditing method includes:

[0092] S401. The electronic device obtains the serial number information of the circuit to be audited.

[0093] One number can correspond to at least one circuit to be audited.

[0094] In one feasible approach, when a user wants to audit the resource data of a circuit, the user can input the circuit number to be audited onto an electronic device. Accordingly, the electronic device can respond to the user's input and retrieve the circuit number, i.e., the circuit ID of the circuit to be audited.

[0095] In another possible implementation, the electronic device can also periodically audit the resource data of any circuit. In this case, the electronic device can obtain the circuit number of the circuit to be audited from a device or database that stores the circuit number information of the circuit to be audited.

[0096] In another possible implementation, the electronic device can also receive audit requests sent by servers corresponding to different regions (e.g., different provinces). These audit requests include the circuit number of the circuit to be audited.

[0097] S402. The electronic device determines the data results corresponding to the numbering information based on the pre-established resource database, and determines the audit results of the circuit to be audited based on the data results.

[0098] The resource database includes resource data obtained from multiple network management devices. The resource data includes at least one data set. This at least one data set includes at least one of the following: a circuit data set (also known as a transmission circuit table), a routing data set (also known as a transmission circuit routing table), and a port data set (also known as a port table).

[0099] Optionally, the resource database can be an Oracle database. When an electronic device receives multiple audit requests, i.e., obtains the numbering information of multiple circuits to be audited, the electronic device can determine the audit results of multiple circuits to be audited in batches based on the batch audit algorithm of the Oracle database.

[0100] In some embodiments, combined with Figure 4 ,like Figure 5 As shown, when at least one data set includes a circuit data set, based on a pre-established resource database, the data results corresponding to the numbering information are determined, and the audit results of the circuit to be audited are determined based on the data results, including:

[0101] S501. When the circuit data set does not include the circuit data corresponding to the number information, the electronic device determines that the data result is no circuit data found, and determines the audit result as: the circuit data of the circuit to be audited is missing.

[0102] Specifically, after obtaining the identification number of the circuit to be audited, since the identification number may correspond to multiple circuits, the electronic device needs to obtain the circuit data corresponding to the identification number. This circuit data may include circuit identifiers, circuit names, and other circuit-related information.

[0103] Since the circuit data set is a collection of resource data obtained from various network management devices, if the circuit data set does not include the circuit data corresponding to the number information, it indicates that the network management device corresponding to the circuit to be audited has not provided the circuit data for the circuit to be audited. Thus, the electronic equipment can determine that the data result is "no circuit data found" and the audit result is: the circuit data for the circuit to be audited is missing.

[0104] In this scenario, electronic devices can send audit results to the network management device corresponding to the circuit to be audited, so that the network management device can organize or update the missing data to obtain complete circuit data.

[0105] S502. When the circuit data set includes a first number of circuit data corresponding to the number information, the electronic device determines that the data result is that the first number of circuit data has been found, and determines the audit result as: the circuit to be audited is a redundant circuit.

[0106] Among them, the first quantity is greater than the first preset value.

[0107] Specifically, commonly used communication networks typically include one trunk circuit and two local circuits. In this case, the first preset value is 3. That is, one circuit number should correspond to one to three circuit data. When the circuit data set includes a first number of circuit data corresponding to the number information, and the first number is greater than 3 (i.e., the first preset value), it indicates that the network management device corresponding to the circuit to be audited has provided an excessive number of circuit data. In this way, the electronic device can determine that the data result is the first number of circuit data found, and determine the audit result as: the circuit to be audited is a redundant circuit.

[0108] In this scenario, electronic devices can send audit results to the network management device corresponding to the circuit to be audited, so that the network management device can organize or update the redundant circuits to obtain non-redundant circuits.

[0109] In some embodiments, when at least one data set includes a circuit data set and a routing data set, and the circuit data set includes a second number of circuit data corresponding to the numbering information, each circuit data in the second number of circuit data includes a circuit identifier corresponding to the circuit data; the second number is greater than a second preset value and less than or equal to a first preset value.

[0110] Specifically, commonly used communication networks typically include one trunk circuit and two local circuits. In this case, the second preset value is 0. That is, one circuit number should correspond to one to three circuit data. When the circuit data set includes a second number of circuit data corresponding to the number information, and the second number is greater than 0 (i.e., the second preset value) and less than or equal to 3 (i.e., the first preset value), it indicates that the network management device corresponding to the circuit to be audited has provided a normal number of circuit data.

[0111] In this context, the method for electronic devices to determine the data results corresponding to the numbering information based on a pre-established resource database, and to determine the audit results of the circuit to be audited based on the data results, specifically includes:

[0112] S503. When the routing data set does not include routing data corresponding to the circuit identifier, the electronic device determines that the data result is no routing data found, and determines the audit result as: the routing data of the circuit to be audited is missing.

[0113] The routing data includes text routing data and other routing data.

[0114] Specifically, after acquiring the circuit data of the circuit to be audited and confirming its accuracy, the electronic device can determine whether the routing data of the circuit to be audited is incorrect, since the circuit data includes a unique circuit identifier. In this case, the electronic device can acquire the routing data corresponding to the circuit identifier. This routing data may include routing-related data such as routing type and routing identifier (also known as routing resource object ID).

[0115] Since the routing dataset is a collection of resource data obtained from various network management devices, if the routing dataset does not include routing data corresponding to the circuit identifier, it indicates that the network management device corresponding to the circuit to be audited has not provided routing data for the circuit to be audited. Thus, the electronic device can determine that the data result is "no routing data found" and the audit result is: routing data for the circuit to be audited is missing.

[0116] In this scenario, electronic devices can send audit results to the network management device corresponding to the circuit to be audited, so that the network management device can organize or update the missing data to obtain complete routing data.

[0117] S504. When the routing data set only includes text routing data corresponding to the circuit identifier, the electronic device determines that the data result is that text routing data has been found, and determines the audit result as: the routing data of the circuit to be audited is missing.

[0118] Specifically, text routing data refers to routing data that has no practical meaning. Corresponding port and network element information cannot be found through text routing data. When network management devices generate text routing data, the route name may appear in multiple concatenation information, typically recorded by the network management device. Therefore, when the routing data set only includes text routing data corresponding to the circuit identifier, the electronic device determines the data result as "text routing data found" and the audit result as "routing data for the circuit to be audited is missing."

[0119] In this scenario, electronic devices can send audit results to the network management device corresponding to the circuit to be audited, so that the network management device can organize or update the missing data to obtain complete routing data.

[0120] S505. When the routing data set includes text routing data and other routing data corresponding to the circuit identifier, and the number of text routing data and other routing data is odd, the electronic device determines that the data result is that routing data has been found and the number of routing data is odd, and determines the audit result as: the routing data of the peer of the circuit to be audited is missing.

[0121] Specifically, since routing data typically includes source and destination data, the number of text routing data and other routing data should be even. In this case, when the routing data set includes text routing data and other routing data corresponding to the circuit identifier, and the number of text routing data and other routing data is odd (i.e., MOD(number of text routing data and other routing data, 2) = 1), the electronic device determines that the data result is that routing data was found, and the number of routing data is odd, and determines the audit result as: the peer routing data of the circuit to be audited is missing.

[0122] In this scenario, electronic devices can send audit results to the network management device corresponding to the circuit to be audited, so that the network management device can organize or update the missing data to obtain complete routing data.

[0123] Optionally, other routing data may include route type data, etc.

[0124] Optionally, the routing type data is used to indicate the type of the routing data, such as optical port type or electrical port type.

[0125] In some embodiments, when at least one data set includes a circuit data set, a routing data set, and a port data set, and the routing data set includes text routing data and other routing data corresponding to numbering information, and the number of text routing data and other routing data is even, the other routing data includes a routing identifier.

[0126] Specifically, since routing data typically includes source and destination data, the quantity of text routing data and other routing data should be even. When the routing data set includes text routing data and other routing data corresponding to the numbering information, and the quantity of text routing data and other routing data is even, it indicates that the network management device corresponding to the circuit to be audited has provided a normal quantity of routing data. In this case, the method for electronic devices to determine the data results corresponding to the numbering information based on a pre-established resource database, and to determine the audit results of the circuit to be audited based on the data results, specifically includes:

[0127] S506. When the port data set does not include the port acquisition pre-identifier corresponding to the routing identifier, the electronic device determines that the data result is that the port acquisition pre-identifier was not found, and determines the audit result as: the port acquisition pre-identifier of the circuit to be audited is missing.

[0128] Specifically, after acquiring the routing data of the circuit to be audited and confirming its accuracy, the electronic device can determine whether the port data of the circuit to be audited is correct, since the routing data includes a unique routing identifier for the circuit. In this case, the electronic device can acquire the port data corresponding to the routing identifier. This port data may include port type, port acquisition front-end identifier, upstream port identifier, port speed, and other port-related data.

[0129] The port acquisition pre-identifier can be an identifier composed of multiple fields. These fields include fields indicating the manufacturer information to which the port belongs, fields indicating the province information to which the port belongs, fields indicating the network element device to which the port belongs, fields indicating the level to which the port belongs, and fields indicating the board to which the port belongs, etc.

[0130] Optionally, the electronic device can determine the port type based on the port type field in the port data. Then, the electronic device can query the port collection front-end identifier corresponding to the routing identifier based on the upstream port identifier.

[0131] Specifically, when the port type field indicates a physical port and the parent port identifier field is empty, the electronic device can determine that it can obtain the port collection front identifier corresponding to the routing identifier.

[0132] When the port type field indicates a logical port and the parent port identifier field is not empty, the electronic device queries the port data set for a port acquisition pre-identifier corresponding to the routing identifier through the parent port identifier, and repeats the above operation until the port acquisition pre-identifier is obtained, or the port acquisition pre-identifier is not found in the port data set.

[0133] Since the port dataset is a collection of resource data obtained from various network management devices, if the port dataset does not include the port acquisition pre-identifier corresponding to the routing identifier, it indicates that the network management device corresponding to the circuit to be audited has not provided the port acquisition pre-identifier for the circuit to be audited. Thus, the electronic device can determine that the data result is that the port acquisition pre-identifier was not found, and determine the audit result as: the port acquisition pre-identifier for the circuit to be audited is missing.

[0134] In this scenario, electronic devices can send audit results to the network management device corresponding to the circuit to be audited, so that the network management device can organize or update the missing data to obtain complete port data.

[0135] S507. When the port data set includes a port acquisition front-end identifier corresponding to the routing identifier, and the data format of the port acquisition front-end identifier does not meet the preset format, the electronic device determines that the data result is that a port acquisition front-end identifier that does not meet the preset format has been found, and determines the audit result as: the port acquisition front-end identifier of the circuit to be audited does not meet the preset format.

[0136] For example, the preset format can be a non-pure numeric format. If the data format of the port acquisition pre-identifier is a pure numeric format, the electronic device will determine that it has found a port acquisition pre-identifier that does not meet the preset format, that is, a port acquisition pre-identifier with an irregular format.

[0137] In some embodiments, combined with Figure 5 ,like Figure 6 As shown, this data auditing method also includes:

[0138] S601. When the routing data set or port data set includes the port name field of the circuit to be audited, or when the routing data set includes the routing name field of the circuit to be audited, the electronic device determines the number of preset symbols in the target field.

[0139] The target field is either the port name field or the route name field.

[0140] S602. The electronic device determines the time slot information of the circuit to be audited based on the number of preset symbols.

[0141] Specifically, the electronic device can also determine the time slot information of the circuit to be audited, and then determine the circuit splicing to be performed based on the time slot information of the circuit to be audited. In this case, the electronic device can determine the number of preset symbols in the port name field or the route name field, and determine the time slot information of the circuit to be audited based on the number of preset symbols.

[0142] Optionally, the default symbol can be the " / " symbol in the port name field or the route name field.

[0143] Specifically, the electronic device can first use regular expressions to determine the number of " / " symbols in the port name or route name field. When the number of " / " symbols in the port name or route name field is less than 2, it means that the time slot is only vc4 or only vc12, that is, there is only 155M or only 2M after the last " / ". In this case, the electronic device extracts the number after 155M (2M) and then concatenates "vc4:" or "vc12:" in front of it.

[0144] When the number of " / " characters in the port name or route name field is greater than or equal to two, it indicates that there are not only vc4 but also vc12 time slots. This means that the last " / " in the field is followed by 2M. In this case, the electronic device extracts the number after 2M from the port name or route name field and prepends "vc12:" before it. Similarly, if the second-to-last " / " in the port name or route name field is followed by 155M, the electronic device extracts the number after 155M from the port name or route name field, prepends "vc4:" before it, and then concatenates the two together, such as "vc4:1-vc12:1".

[0145] After obtaining the time slot information of the circuit to be audited, the electronic device can output the circuit number, starting network element, ending network element, port acquisition pre-identifier, port name and time slot information, so as to facilitate the subsequent circuit splicing of the circuit to be audited based on the above information.

[0146] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0147] This application embodiment can divide the data auditing device into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0148] like Figure 7 The diagram shown is a structural schematic of a data auditing device provided in an embodiment of this application. This data auditing device can be used to perform... Figures 4-6 The data auditing method shown. Figure 7 The data auditing device shown includes: an acquisition unit 701 and a processing unit 702;

[0149] Acquisition unit 701 is used to acquire the numbering information of the circuit to be audited;

[0150] Processing unit 702 is used to determine the data result corresponding to the number information based on a pre-established resource database, and to determine the audit result of the circuit to be audited based on the data result; the resource database includes: resource data obtained from multiple network management devices; the resource data includes at least one data set; the at least one data set includes at least one of: circuit data set, routing data set and port data set.

[0151] Optionally, when at least one data set includes a circuit data set, the processing unit 702 is specifically used for:

[0152] When the circuit data set does not include the circuit data corresponding to the number information, the data result is determined to be no circuit data found, and the audit result is determined to be: the circuit data of the circuit to be audited is missing.

[0153] When the circuit data set includes a first number of circuit data corresponding to the number information, the data result is determined to be that the first number of circuit data has been found, and the audit result is determined to be: the circuit to be audited is a redundant circuit; the first number is greater than the first preset value.

[0154] Optionally, when at least one data set includes a circuit data set and a routing data set, and the circuit data set includes a second number of circuit data corresponding to the numbering information, each circuit data in the second number of circuit data includes a circuit identifier corresponding to the circuit data; the second number is greater than a second preset value and less than or equal to a first preset value;

[0155] Processing unit 702 is specifically used for:

[0156] When the routing data set does not include routing data corresponding to the circuit identifier, the data result is determined to be no routing data found, and the audit result is determined to be: the routing data of the circuit to be audited is missing; the routing data includes text routing data and other routing data.

[0157] When the routing data set only includes text routing data corresponding to the circuit identifier, the data result is determined to be that text routing data was found, and the audit result is determined to be: the routing data of the circuit to be audited is missing;

[0158] When the routing data set includes text routing data and other routing data corresponding to the circuit identifier, and the number of text routing data and other routing data is odd, the data result is determined to be that routing data was found, and the number of routing data is odd, and the audit result is determined to be: the peer routing data of the circuit to be audited is missing.

[0159] Optionally, when at least one data set includes a circuit data set, a routing data set, and a port data set, and the routing data set includes text routing data and other routing data corresponding to the numbering information, and the number of text routing data and other routing data is even, the other routing data includes a routing identifier.

[0160] Processing unit 702 is specifically used for:

[0161] When the port data set does not include the port collection pre-identifier corresponding to the routing identifier, the data result is determined to be that the port collection pre-identifier was not found, and the audit result is determined to be: the port collection pre-identifier of the circuit to be audited is missing.

[0162] When the port data set includes a port acquisition front identifier corresponding to the routing identifier, and the data format of the port acquisition front identifier does not meet the preset format, the data result is determined to be a port acquisition front identifier that does not meet the preset format, and the audit result is determined to be: the port acquisition front identifier of the circuit to be audited does not meet the preset format.

[0163] Optionally, the processing unit 702 is further configured to determine the number of preset symbols in the target field when the routing data set or the port data set includes the port name field of the circuit to be audited; or when the routing data set includes the routing name field of the circuit to be audited; the target field is the port name field or the routing name field.

[0164] The processing unit 702 is also used to determine the time slot information of the circuit to be audited based on the number of preset symbols.

[0165] This application also provides a computer-readable storage medium, which includes computer-executable instructions that, when executed on a computer, cause the computer to perform the data auditing method provided in the above embodiments.

[0166] This application also provides a computer program that can be directly loaded into a memory and contains software code. After being loaded and executed by a computer, the computer program can implement the data auditing method provided in the above embodiments.

[0167] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in this application can be implemented using hardware, software, firmware, or any combination thereof. When implemented in software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer-readable storage media and communication media, wherein communication media include any medium that facilitates the transmission of a computer program from one place to another. Storage media can be any available medium accessible to a general-purpose or special-purpose computer.

[0168] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0169] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and other division methods may exist in actual implementation. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate; components shown as units may be one physical unit or multiple physical units, i.e., they may be located in one place or distributed in multiple different places. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0170] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0171] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A data auditing method, characterized in that, include: Obtain the circuit number information to be audited; Based on a pre-established resource database, the data results corresponding to the numbering information are determined, and the audit results of the circuit to be audited are determined based on the data results. The resource database includes: resource data obtained from multiple network management devices; the resource data includes at least one data set; the at least one data set includes at least one of: a circuit data set, a routing data set, and a port data set; Wherein, when the at least one data set includes the circuit data set and the routing data set, and the circuit data set includes a second number of circuit data corresponding to the numbering information, each circuit data in the second number of circuit data includes a circuit identifier corresponding to the circuit data; the second number is greater than a second preset value and less than or equal to a first preset value; The step of determining the data result corresponding to the number information based on a pre-established resource database, and determining the audit result of the circuit to be audited based on the data result, includes: When the routing data set does not include routing data corresponding to the circuit identifier, the data result is determined to be no routing data found, and the audit result is determined to be: the routing data of the circuit to be audited is missing; the routing data includes text routing data and other routing data; When the routing data set only includes text routing data corresponding to the circuit identifier, the data result is determined to be that the text routing data has been found, and the audit result is determined to be: the routing data of the circuit to be audited is missing; When the routing data set includes text routing data and other routing data corresponding to the circuit identifier, and the number of text routing data and other routing data is odd, the data result is determined to be that routing data has been found, and the number of routing data is odd, and the audit result is determined to be: the peer routing data of the circuit to be audited is missing.

2. The data auditing method according to claim 1, characterized in that, When the at least one data set includes the circuit data set, the step of determining the data result corresponding to the numbering information based on the pre-established resource database, and determining the audit result of the circuit to be audited based on the data result, includes: When the circuit data set does not include circuit data corresponding to the number information, the data result is determined to be no circuit data found, and the audit result is determined to be: the circuit data of the circuit to be audited is missing; When the circuit data set includes a first number of circuit data corresponding to the number information, the data result is determined to be that the first number of circuit data has been found, and the audit result is determined to be: the circuit to be audited is a redundant circuit; the first number is greater than a first preset value.

3. The data auditing method according to claim 2, characterized in that, When the at least one data set includes the circuit data set, the routing data set, and the port data set, and the routing data set includes text routing data and other routing data corresponding to the numbering information, and the number of text routing data and other routing data is even, the other routing data includes a routing identifier; The step of determining the data result corresponding to the number information based on a pre-established resource database, and determining the audit result of the circuit to be audited based on the data result, includes: When the port data set does not include the port collection pre-identifier corresponding to the route identifier, the data result is determined to be that the port collection pre-identifier was not found, and the audit result is determined to be: the port collection pre-identifier of the circuit to be audited is missing. When the port data set includes a port acquisition front identifier corresponding to the routing identifier, and the data format of the port acquisition front identifier does not meet the preset format, the data result is determined to be a port acquisition front identifier that does not meet the preset format, and the audit result is determined to be: the port acquisition front identifier of the circuit to be audited does not meet the preset format.

4. The data auditing method according to any one of claims 1-3, characterized in that, Also includes: When the routing data set or the port data set includes the port name field of the circuit to be audited; Alternatively, when the routing data set includes the routing name field of the circuit to be audited, the number of preset symbols in the target field is determined; the target field is either the port name field or the routing name field. The time slot information of the circuit to be audited is determined based on the number of preset symbols.

5. A data auditing device, characterized in that, include: Acquisition unit and processing unit; The acquisition unit is used to acquire the numbering information of the circuit to be audited; The processing unit is used to determine the data result corresponding to the number information based on a pre-established resource database, and to determine the audit result of the circuit to be audited based on the data result; The resource database includes: resource data obtained from multiple network management devices; the resource data includes at least one data set; the at least one data set includes at least one of: a circuit data set, a routing data set, and a port data set; Wherein, when the at least one data set includes the circuit data set and the routing data set, and the circuit data set includes a second number of circuit data corresponding to the numbering information, each circuit data in the second number of circuit data includes a circuit identifier corresponding to the circuit data; the second number is greater than a second preset value and less than or equal to a first preset value; The processing unit is specifically used for: When the routing data set does not include routing data corresponding to the circuit identifier, the data result is determined to be no routing data found, and the audit result is determined to be: the routing data of the circuit to be audited is missing; the routing data includes text routing data and other routing data; When the routing data set only includes text routing data corresponding to the circuit identifier, the data result is determined to be that the text routing data has been found, and the audit result is determined to be: the routing data of the circuit to be audited is missing; When the routing data set includes text routing data and other routing data corresponding to the circuit identifier, and the number of text routing data and other routing data is odd, the data result is determined to be that routing data has been found, and the number of routing data is odd, and the audit result is determined to be: the peer routing data of the circuit to be audited is missing.

6. The data auditing device according to claim 5, characterized in that, When the at least one data set includes the circuit data set, the processing unit is specifically configured to: When the circuit data set does not include circuit data corresponding to the number information, the data result is determined to be no circuit data found, and the audit result is determined to be: the circuit data of the circuit to be audited is missing; When the circuit data set includes a first number of circuit data corresponding to the number information, the data result is determined to be that the first number of circuit data has been found, and the audit result is determined to be: the circuit to be audited is a redundant circuit; the first number is greater than a first preset value.

7. The data auditing device according to claim 6, characterized in that, When the at least one data set includes the circuit data set, the routing data set, and the port data set, and the routing data set includes text routing data and other routing data corresponding to the numbering information, and the number of text routing data and other routing data is even, the other routing data includes a routing identifier; The processing unit is specifically used for: When the port data set does not include the port collection pre-identifier corresponding to the route identifier, the data result is determined to be that the port collection pre-identifier was not found, and the audit result is determined to be: the port collection pre-identifier of the circuit to be audited is missing. When the port data set includes a port acquisition front identifier corresponding to the routing identifier, and the data format of the port acquisition front identifier does not meet the preset format, the data result is determined to be a port acquisition front identifier that does not meet the preset format, and the audit result is determined to be: the port acquisition front identifier of the circuit to be audited does not meet the preset format.

8. The data auditing device according to any one of claims 5-7, characterized in that, The processing unit is further configured to determine the number of preset symbols in the target field when the routing data set or the port data set includes the port name field of the circuit to be audited; or when the routing data set includes the routing name field of the circuit to be audited; the target field is the port name field or the routing name field; The processing unit is further configured to determine the time slot information of the circuit to be audited based on the number of preset symbols.

9. A data auditing device, characterized in that, It includes a memory and a processor; the memory is used to store computer execution instructions, and the processor is connected to the memory via a bus; when the data auditing device is running, the processor executes the computer execution instructions stored in the memory, so that the data auditing device performs the data auditing method as described in any one of claims 1-4.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer-executable instructions that, when executed on a computer, cause the computer to perform the data auditing method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Audit method, apparatus, server, and storage medium for routing data

    CN109039710A