Network index determination method, apparatus, and readable storage medium
By generating custom templates and performing format conversion, network metrics are processed using formats recognizable by the target database and server, solving the problem of the inability to customize the calculation of network metrics in existing technologies and improving network operation and maintenance efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-28
- Publication Date
- 2026-04-21
AI Technical Summary
The existing network management system cannot perform custom indicator calculations according to the needs of maintenance personnel, resulting in poor network operation and maintenance efficiency.
Generate custom templates and perform format conversion. Store and process custom formulas using formats recognizable by the target database and server, and directly calculate the combined results of network indicators.
It improves network operation and maintenance efficiency, shortens the time to determine the result of target combination, and avoids manual calculation operations.
Smart Images

Figure CN116760731B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, apparatus and readable storage medium for determining network indicators. Background Technology
[0002] With the maturity and development of cloud computing technology, network operation and maintenance require monitoring a large number of network devices and their corresponding network metrics. Maintenance personnel need to conduct timely trend analysis and comparative analysis based on the metric data to monitor the stability of network operation.
[0003] In the process of monitoring and managing network indicators of network devices, existing network management systems mostly display network indicators in the form of reports. These reports mainly allow for direct export and viewing of network indicators, but cannot be customized according to the needs of maintenance personnel. However, in some cases, maintenance personnel need to perform addition, subtraction, or simple manual calculations on some network indicators to observe them. This makes it difficult to determine the combined results of multiple network indicators in a timely manner, resulting in poor network operation and maintenance efficiency. Summary of the Invention
[0004] This application provides a method, apparatus, and readable storage medium for determining network metrics, which can improve the service quality of a cloud platform while dynamically adjusting the configuration resources of the cloud platform.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] Firstly, in response to a user's first control operation on a terminal device, a custom template is generated; the custom template includes at least one custom formula; the custom formula is used to perform combined calculations on the indicator values of at least one network indicator, which is used to characterize network performance; the first custom formula is converted to a first format to obtain a first custom formula in a first format, and the first custom formula in the first format is stored in a target database; the first format is a format recognizable by the target database; the first custom formula is any one of at least one custom formula; the indicator value of at least one network indicator is determined within a target time period; the first custom formula in the first format and the indicator value are converted to a second format to obtain a first custom formula in a second format and the indicator value in the second format, which is a format recognizable by the server; the first custom formula in the second format is used to process the indicator value in the second format to obtain a target combination result, which is used to characterize the stability of network operation.
[0007] Optionally, determining the value of at least one network indicator within a target time period includes: in response to a second control operation by a user on a terminal device, extracting an identifier corresponding to at least one network indicator from a first custom formula in a first format; and determining the value of at least one network indicator within the target time period based on the identifier.
[0008] Optionally, extracting the identifier corresponding to at least one network indicator from the first custom formula of the first format includes: determining a first array, which is an array after stripping the operators and numbers from the first custom formula of the first format; and deduplicating the first array to extract the identifier corresponding to at least one network indicator from the first custom formula of the first format.
[0009] Optionally, the method further includes: sending a verification message to the target database; the verification message includes the server's system identifier and access key, the verification message is used to instruct the target database to authenticate the server, and if the server is successfully authenticated, storing a first custom formula in a first format.
[0010] Based on the technical solution provided in this application, multiple custom formulas can be created according to user needs. These custom formulas are then converted to a first format and stored in the target database. Since the first format is recognizable by the target database, it allows the database to identify the custom formulas and determine the value of at least one network indicator within a target time period. Furthermore, the first custom formula in the first format and the indicator value are converted to a second format, resulting in the first custom formula in the second format and the indicator value in the second format. Since the second format is recognizable by the server, the pre-stored custom formula and the indicator value of at least one network indicator within it can be used to obtain the target combination result without needing to export at least one network indicator and perform manual calculations. This significantly shortens the time required to determine the target combination result and improves network operation and maintenance efficiency.
[0011] Secondly, a network indicator determination device is provided, comprising: a generation unit, a processing unit, and a determination unit; the generation unit is configured to generate a custom template in response to a user's first control operation on a terminal device; the custom template includes at least one custom formula; the custom formula is used to perform combined calculations on the indicator values of at least one network indicator, the network indicator being used to characterize network performance; the processing unit is configured to convert the first custom formula to a first format to obtain a first custom formula in a first format, and store the first custom formula in the first format in a target database; the first format is a format recognizable by the target database; the first custom formula is any one of at least one custom formula; the determination unit is configured to determine the indicator value of at least one network indicator within a target time period; the processing unit is further configured to convert the first custom formula in the first format and the indicator value to a second format to obtain a first custom formula in a second format and an indicator value in a second format, the second format being a format recognizable by a server; the processing unit is further configured to process the indicator value in the second format using the first custom formula in the second format to obtain a target combination result, the target combination result being used to characterize the stability of network operation.
[0012] Optionally, the determining unit is specifically used for: responding to a second control operation by the user on the terminal device, extracting an identifier corresponding to at least one network indicator from a first custom formula in a first format; and determining the indicator value of at least one network indicator within a target time period based on the identifier.
[0013] Optionally, the processing unit is further configured to: determine a first array, which is an array after stripping the operators and numbers from the first custom formula of the first format; and perform deduplication on the first array to extract the identifier corresponding to at least one network indicator in the first custom formula of the first format.
[0014] Optionally, the apparatus further includes: a sending unit; the sending unit is configured to send a verification message to the target database; the verification message includes the server's system identifier and an access key, the verification message is used to instruct the target database to authenticate the server, and if the server is successfully authenticated, to store a first custom formula in a first format.
[0015] Thirdly, a network index determination device is provided, which can realize the functions performed by the network index determination device in the above-mentioned aspects or possible designs. The functions can be implemented by hardware. For example, in one possible design, the network index determination device may include a processor and a communication interface. The processor can be used to support the network index determination device in realizing the functions involved in the first aspect or any possible design of the first aspect.
[0016] In another possible design, the network metric determination apparatus may further include a memory for storing necessary computer execution instructions and data. When the network metric determination apparatus is in operation, the processor executes the computer execution instructions stored in the memory to cause the network metric determination apparatus to perform the first aspect or any of the possible network metric determination methods described above.
[0017] Fourthly, a computer-readable storage medium is provided, which may be a readable non-volatile storage medium storing computer instructions or programs that, when executed on a computer, enable the computer to perform the network metric determination method described in the first aspect or any of the possible methods described above.
[0018] Fifthly, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to execute the network metric determination method of the first aspect or any possible design of the above aspects.
[0019] A sixth aspect provides an electronic device comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, including computer instructions, which, when executed by the one or more processors, cause the electronic device to perform a network metric determination method as described in the first aspect or any possible design of the first aspect.
[0020] In a seventh aspect, a chip system is provided, comprising a processor and a communication interface, which can be used to implement the functions performed by the network metric determination device in the first aspect or any possible design of the first aspect. In one possible design, the chip system further includes a memory for storing program instructions and / or data. The chip system may be composed of chips or may include chips and other discrete devices, without limitation. Attached Figure Description
[0021] Figure 1 This is a schematic diagram of a network index determination system provided in an embodiment of this application;
[0022] Figure 2 This is a schematic diagram of the structure of a network index determination device provided in an embodiment of this application;
[0023] Figure 3 A flowchart illustrating a method for determining network metrics provided in an embodiment of this application;
[0024] Figure 4This is a schematic diagram of the structure of a first display interface provided in an embodiment of this application;
[0025] Figure 5 A flowchart illustrating another method for determining network metrics provided in this application embodiment;
[0026] Figure 6 This is a schematic diagram of another network index determination device provided in the embodiments of this application. Detailed Implementation
[0027] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0028] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the embodiments of this application as detailed in the appended claims.
[0029] It should also be understood that the term "comprising" indicates the presence of the described feature, whole, step, operation, element and / or component, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements and / or components.
[0030] With the maturity and development of cloud computing technology, network operation and maintenance require monitoring a large number of network devices and their corresponding network metrics. Maintenance personnel need to perform timely trend analysis and comparative analysis of the metric data to monitor the stability of network operation.
[0031] In the process of monitoring and managing network indicators of network devices, existing network management systems mostly display network indicators in the form of reports. These reports mainly allow for direct export and viewing of network indicators, but cannot be customized according to the needs of maintenance personnel. However, in some cases, maintenance personnel need to perform addition, subtraction, or simple manual calculations on some network indicators to observe them. This makes it difficult to determine the combined results of multiple network indicators in a timely manner, resulting in poor network operation and maintenance efficiency.
[0032] For example, network metrics may include network bandwidth, network latency, 5G network traffic share, and 5G network traffic retention rate.
[0033] In view of this, embodiments of this application provide a method for determining network metrics, including:
[0034] In response to a user's first control operation on a terminal device, a custom template is generated. The custom template includes at least one custom formula. The custom formula is used to perform combined calculations on the indicator values of at least one network indicator, which is used to characterize network performance. The first custom formula is converted to a first format to obtain a first custom formula in a first format, and the first custom formula in the first format is stored in a target database. The first format is a format recognizable by the target database. The first custom formula is any one of at least one custom formula. The indicator values of at least one network indicator within a target time period are determined. The first custom formula in the first format and the indicator values are converted to a second format to obtain a first custom formula in a second format and indicator values in a second format, which is a format recognizable by the server. The first custom formula in the second format is used to process the indicator values in the second format to obtain a target combination result, which is used to characterize the stability of network operation.
[0035] The methods provided in the embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0036] It should be noted that the network system described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of network systems and the emergence of other network systems, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0037] Figure 1 The diagram shown is a schematic representation of a network metric determination system provided in an embodiment of this application. Figure 1 As shown, the network indicator determination system may include a network indicator determination device (hereinafter referred to as the determination device) 11, a terminal device 12, and a target database 13. The determination device 11 is connected to the terminal device 12 and the target database 13. The determination device 11, the terminal device 12, and the target database 13 can be connected wirelessly.
[0038] In the embodiments of this application, the determining device 11 can be any electronic device with data processing capabilities. For example, the determining device 11 can be a computer, a server, etc. The server can be a single server or a server cluster composed of multiple servers. In some embodiments, the server cluster can also be a distributed cluster. The embodiments of this application do not limit the specific technology, quantity, or form of the determining device 11.
[0039] The terminal device 12 involved in the embodiments of this application can also be referred to as a terminal, mobile station (MS), mobile terminal (MT), etc., and is a device that provides voice and / or data connectivity to users. For example, the terminal device 12 can be a handheld device with wireless connectivity, an in-vehicle device, etc. Specifically, it can be a smartphone, pocket personal computer (PPC), handheld computer, personal digital assistant (PDA), laptop computer, tablet computer, wearable device, or in-vehicle device, etc. The embodiments of this application do not limit the specific technology, quantity, or form of the terminal device 12.
[0040] The determining device 11 is used to generate a custom template in response to a user's first control operation on the terminal device, and is also used to determine the corresponding network indicators based on the custom template. The terminal device 12 is used to receive the user's first control operation and send the first control operation to the determining device 11. The target database 13 is used to store the custom templates.
[0041] In different application scenarios, the determining device 11, the terminal device 12, and the target database 13 can be independent devices or integrated into the same device. This embodiment of the invention does not impose specific limitations on this.
[0042] It should be noted that, Figure 1 This is just an example framework diagram. Figure 1 The names of the various devices included are unrestricted, and except for Figure 1 In addition to the functional nodes shown, other nodes may also be included, but this application embodiment does not limit this.
[0043] It should be noted that, Figure 1 This is just an example framework diagram. Figure 1 The names of the modules included are unrestricted, and except for Figure 1 In addition to the functional modules shown, other modules may also be included, but this application embodiment does not limit this.
[0044] In practical implementation, Figure 1 Each device in the process can be adopted Figure 2 The shown composition structure, or including Figure 2 The components shown. Figure 2 This is a schematic diagram illustrating the composition of a determining device 200 provided in an embodiment of this application. The determining device 200 can be a server, or it can be a chip or system-on-a-chip within the server. Figure 2As shown, the determining device 200 includes a processor 201, a communication interface 202, and a communication line 203.
[0045] Furthermore, the determining device 200 may also include a memory 204. The processor 201, memory 204, and communication interface 202 can be connected via a communication line 203.
[0046] The processor 201 can be a CPU, a general-purpose processor, a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor 201 can also be other devices with processing capabilities, such as circuits, devices, or software modules, without limitation.
[0047] Communication interface 202 is used to communicate with other devices or other communication networks. Communication interface 202 can be a module, circuit, communication interface, or any device capable of enabling communication.
[0048] Communication line 203 is used to transmit information between the components included in determining device 200.
[0049] Memory 204 is used to store instructions. These instructions can be computer programs.
[0050] The memory 204 can be a read-only memory (ROM) or other type of static storage device that can store static information and / or instructions; it can also be a random access memory (RAM) or other type of dynamic storage device that can store information and / or instructions; it can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, etc., without limitation.
[0051] It should be noted that the memory 204 can exist independently of the processor 201 or can be integrated with the processor 201. The memory 204 can be used to store instructions, program code, or some data, etc. The memory 204 can be located inside or outside the determining device 200, without limitation. The processor 201 is used to execute the instructions stored in the memory 204 to implement the network index determination method provided in the following embodiments of this application.
[0052] In one example, processor 201 may include one or more CPUs, for example, Figure 2 CPU0 and CPU1 in the CPU.
[0053] As an optional implementation, the determining device 200 includes multiple processors, for example, besides Figure 2 In addition to processor 201, it may also include processor 205.
[0054] It should be pointed out that, Figure 2 The composition shown does not constitute a basis for the interpretation of this invention. Figure 1 The limitations of each device in the process, except Figure 2 In addition to the components shown, Figure 1 The various devices in the can include ratio Figure 2 More or fewer components, or combinations of certain components, or different arrangements of components.
[0055] In this embodiment of the application, the chip system may be composed of chips or may include chips and other discrete devices.
[0056] Furthermore, the actions, terms, etc., involved in the various embodiments of this application can be referenced interchangeably without limitation. The message names or parameter names in the messages used for interaction between devices in the embodiments of this application are merely examples, and other names may be used in specific implementations without limitation.
[0057] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0058] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0059] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0060] The following is combined with Figure 1 The network metric determination system based on a custom formula is shown, and the network metric determination method provided in the embodiments of this application is described.
[0061] Figure 3 This application provides a method for determining network metrics, which can be applied to a server or a determining device. Figure 2 The determining device 11 can also be a component within the determining device 11, such as a chip. This application uses a server as an example for illustration. Figure 3 As shown, the method includes the following steps S301-S305:
[0062] S301. In response to the user's first control operation on the terminal device, a custom template is generated.
[0063] The custom template includes at least one custom formula; the custom formula is used to perform combined calculations on the numerical values of at least one network metric, which is used to characterize the performance of the network.
[0064] The first control operation can be a click operation on the first displayed interface. For example, such as Figure 4 As shown, the first display interface can include multiple network metrics and multiple custom formulas across multiple nodes. For example, the multiple nodes can include a Level 1 node, a Level 2 node, and a Level 3 node. A Level 1 node can also include multiple Level 2 nodes. For example, a Level 1 node can include a Level 2 node 1-1 (including metrics A, B, C, and D), and a Level 1 node 3 can include a Level 2 node 3-1, a Level 2 node 3-2 (including metric A), and a Level 2 node 3-3 (including metric A and metric B).
[0065] In one example, the custom formula may include N1, N2, N3, N4, and N5. Where N1 = P1 + P2, N2 = P2 - P3, N3 = P3, N4 = P1 + P4, and N5 = (P1 - P2). 2+P5+P6. There is no limit to the number of definable indicators; they can be added or removed as needed.
[0066] The server can control the display of custom formula input boxes in the front-end webpage template of the terminal device. The input box can include the newly defined indicator name corresponding to the custom formula and the custom formula itself. The data for the custom formula can be set as needed. For example, the first display interface can include "Add Indicator" and "Delete Indicator" buttons. The server can respond to the user's click on the "Add Indicator" button by adding more custom formulas, or respond to the user's click on the "Delete Indicator" button by reducing the number of custom formulas. The first display interface may also include a "Save Template" button to save the user's actions.
[0067] S302. Convert the first custom formula to a first format to obtain the first custom formula in the first format, and store the first custom formula in the first format in the target database.
[0068] The first custom formula in the first format is used for identification in the target database; the first custom formula can be any one of at least one custom formula. For example, the first format can be a string format.
[0069] As one possible implementation, the server can determine the first format that the target database can recognize through query messages, and convert the first custom formula to the first format through a format conversion plugin to obtain the first custom formula in the first format. Furthermore, the first custom formula in the first format is stored in the target database.
[0070] For example, upon receiving a first custom formula instruction in a first format, the server can send a query message to the target database. Correspondingly, the target database receives the query message and sends a first format recognizable by the target database back to the server.
[0071] S303. Determine the value of at least one network indicator within the target time period.
[0072] The target time period can be set as needed. For example, it can be the hour before the current time, the day before the current time, or the week before the current time.
[0073] As one possible implementation, the server can respond to the user's second control operation on the terminal device, extract the identifier corresponding to at least one network indicator from the first custom formula in the first format, and determine the indicator value of at least one network indicator within the target time period based on the identifier.
[0074] It should be noted that the second control operation can be a click operation on the second display interface (also known as the template query interface). For example, the second display interface may include all custom templates stored in the target database.
[0075] In one example, the server can respond to a user's click on a custom template in the second display interface, extract the identifier corresponding to at least one network metric in the first custom formula of the first format, and match it in the network log data according to the identifier to determine the metric value of at least one network metric in the target time period.
[0076] In practical applications, network metric data can be represented using pandas' dataframe format.
[0077] S304. Convert the first custom formula in the first format and the indicator value to the second format to obtain the first custom formula in the second format and the indicator value in the second format.
[0078] The second format is one that the server can recognize. For example, it can be a series format.
[0079] As one possible implementation, after obtaining the first custom formula and indicator value in the first format, the server can send the first custom formula and indicator value in the first format, along with a second format that it can recognize, to the format conversion plugin. This allows the format conversion plugin to convert the first custom formula and indicator value in the first format to the second format, resulting in the first custom formula and indicator value in the second format.
[0080] As another possible implementation, after the server obtains the first custom formula and indicator value in the first format, it can use a preset function to convert the first custom formula and indicator value in the first format to the second format, thereby obtaining the first custom formula in the second format and the indicator value in the second format.
[0081] The preset function can be set as needed. For example, the preset function can be the eval function.
[0082] S305. Using the first custom formula of the second format, process the index values of the second format to obtain the target combination result.
[0083] The target combination result is used to characterize the stability of network operation. For example, the stability of network operation can be categorized as excellent, good, or poor. If the volatility of the target combination result is less than a first volatility threshold, the server can determine that the network operation is in an excellent stable state. If the volatility of the target combination result is greater than or equal to the first volatility threshold and less than a second volatility threshold, the network operation is determined to be in a good stable state. If the volatility of the target combination result is greater than or equal to the second volatility threshold, the network operation is determined to be in a poor stable state.
[0084] The first and second fluctuation thresholds can be set as needed. For example, the first fluctuation threshold can be 10%, and the second fluctuation threshold can be 30%.
[0085] As one possible implementation, the server can substitute the index values in the second format into the first custom formula in the second format for calculation to obtain the target combination result.
[0086] It should be noted that the results of the target combination can be displayed in the form of a table, a line chart, etc., without restriction.
[0087] Based on the technical solution provided in this application, multiple custom formulas can be created according to user needs. These custom formulas are then converted to a first format and stored in the target database. Since the first format is recognizable by the target database, it allows the database to identify the custom formulas and determine the value of at least one network indicator within a target time period. Furthermore, the first custom formula in the first format and the indicator value are converted to a second format, resulting in the first custom formula in the second format and the indicator value in the second format. Since the second format is recognizable by the server, the pre-stored custom formula and the indicator value of at least one network indicator within it can be used to obtain the target combination result without needing to export at least one network indicator and perform manual calculations. This significantly shortens the time required to determine the target combination result and improves network operation and maintenance efficiency.
[0088] One possible implementation, such as Figure 5 As shown, in order to extract the identifier corresponding to at least one network indicator in the first custom formula of the first format, the determination method of this application may further include the following S401-S402.
[0089] S401, Determine the first array.
[0090] The first array is the array obtained by stripping the operators from the first custom formula of the first format.
[0091] As one possible implementation, the server can identify each character in the first custom formula of the first format, obtain the identification result signal, and then strip the operators in the first custom formula of the first format according to the identification result signal to obtain the first array.
[0092] The recognition result signal includes a first recognition result signal and a second recognition result signal. The first recognition result signal is used to indicate that the character is an operator, and the second recognition result signal is used to indicate that the character is a negation operator.
[0093] If the server determines that the recognition result signal of the first character is the first recognition result signal, then the first character is determined to be an operator. If the server determines that the recognition result signal of the first character is the second recognition result signal, then the first character is determined to be a NOT operator. The first character is any character in the first custom formula of the first format.
[0094] Furthermore, if the server determines that the first character is an operator, it will strip the first character until every character in the first custom formula of the first format has been traversed.
[0095] For example, the first custom formula in the first format is N5=(P1-P2). In the case of 2+P5+P6 +P5, the operators include + and -. , / ,(,), the numbers include 2. The first array can be [P1,P2,P5,P6,P5].
[0096] S402. Perform deduplication on the first array to extract the identifier corresponding to at least one network indicator in the first custom formula of the first format.
[0097] As one possible implementation, the server can determine the number of times each network indicator appears in the first array, and if the number of times the first network indicator appears is not 1, delete the first network indicator that does not appear for the first time, so as to extract the identifier corresponding to at least one network indicator in the first custom formula of the first format.
[0098] For example, if the first array is [P1,P2,P5,P6,P5], after deduplication of the first array, the identifier corresponding to at least one network indicator in the first custom formula of the first format can be [P1,P2,P5,P6].
[0099] In one possible embodiment, to store a first custom formula in a first format in a target database, the determination method of this application may further include the following S501.
[0100] S501, Send a verification message to the target database.
[0101] The verification message includes the server's system identifier and access key. This message instructs the target database to authenticate the server and, if authentication is successful, stores a first custom formula in a first format. For example, the server's system identifier could be sysid1, and the access key could be secret.
[0102] For example, the target database can compare the server's system identifier and access key with the server's system identifier and access key pre-stored internally, and authenticate the server based on the comparison result.
[0103] It should be noted that if the comparison result shows that the server's system identifier and access key are the same as the server's system identifier and access key stored internally, then the server authentication is considered successful. If the comparison result shows that the server's system identifier and access key are different from the server's system identifier and access key stored internally, then the server authentication is considered unsuccessful.
[0104] This prevents unauthorized servers from accessing the target database and improves the security of network operations and maintenance.
[0105] The various solutions in the above embodiments of this application can be combined without contradiction.
[0106] This application embodiment can divide the determining device into functional modules or functional units according to the above method examples. For example, each function can be divided into a separate functional module or functional unit, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or in software functional modules or functional units. The module or unit division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0107] When dividing each function into modules according to its corresponding function. Figure 6 A schematic diagram of the structure 600 of a determining device is shown. This determining device can be a server or a chip applied in a server. This determining device can be used to perform the functions related to the server involved in the above embodiments. Figure 6The determining device shown may include: a generation unit 601, a processing unit 602, and a determining unit 603; the generation unit 601 is used to generate a custom template in response to a user's first control operation on the terminal device; the custom template includes at least one custom formula; the custom formula is used to perform combined calculations on the indicator values of at least one network indicator, and the network indicator is used to characterize the network performance; the processing unit 602 is used to convert the first custom formula to a first format to obtain a first custom formula in a first format, and store the first custom formula in the first format in a target database; the first format is a format recognizable by the target database; the first custom formula is any one of at least one custom formula; the determining unit 603 is used to determine the indicator value of at least one network indicator within a target time period; the processing unit 602 is also used to convert the first custom formula in the first format and the indicator value to a second format to obtain a first custom formula in a second format and an indicator value in the second format, the second format being a format recognizable by the server; the processing unit 602 is also used to process the indicator value in the second format using the first custom formula in the second format to obtain a target combination result, and the target combination result is used to characterize the stability of network operation.
[0108] In one possible design, the determining unit 603 is specifically used to: in response to a second control operation by the user on the terminal device, extract an identifier corresponding to at least one network indicator from a first custom formula in a first format; and determine the indicator value of at least one network indicator within a target time period based on the identifier.
[0109] In one possible design, the processing unit 602 is further configured to: determine a first array, which is an array after stripping the operators and numbers from the first custom formula of the first format; and perform deduplication on the first array to extract the identifier corresponding to at least one network indicator in the first custom formula of the first format.
[0110] In one possible design, the device further includes: a sending unit 604; the sending unit 604 is used to send a verification message to the target database; the verification message includes the server's system identifier and an access key, the verification message is used to instruct the target database to authenticate the server, and if the server is successfully authenticated, to store a first custom formula in a first format.
[0111] This application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be implemented by a computer program instructing related hardware. This program can be stored in the computer-readable storage medium, and when executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be an internal storage unit of the determining device (including a data sending end and / or a data receiving end) in any of the foregoing embodiments, such as a hard disk or memory of the determining device. The computer-readable storage medium can also be an external storage device of the terminal device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the terminal device. Further, the computer-readable storage medium can include both the internal storage unit of the determining device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the determining device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
[0112] It should be noted that the terms "first" and "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0113] It should be understood that in this application, "at least one (item)" means one or more, "more than one" means two or more, "at least two (items)" means two or three or more, and "and / or" is used to describe the relationship between related objects, indicating that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0114] Through the above description of the implementation methods, 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 practical 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.
[0115] 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 in actual implementation, there may be other division methods. 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 mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0116] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0117] 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.
[0118] 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 solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, 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.
[0119] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions 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 method for determining network metrics, characterized in that, Applied to a server, the method includes: In response to the user's first control operation on the terminal device, a custom template is generated; the custom template includes at least one custom formula; the custom formula is used to perform combined calculations on the indicator values of at least one network indicator, the network indicator being used to characterize the network performance; The first custom formula is converted to a first format to obtain a first custom formula in a first format, and the first custom formula in the first format is stored in the target database; the first format is a format that the target database can recognize; the first custom formula is any one of the at least one custom formula; Determine the value of the at least one network indicator within the target time period; The first custom formula in the first format and the indicator value are converted to a second format to obtain the first custom formula in the second format and the indicator value in the second format. The second format is a format that the server can recognize. Using the first custom formula of the second format, the index values of the second format are processed to obtain the target combination result, which is used to characterize the stability of network operation.
2. The method according to claim 1, characterized in that, Determining the value of the at least one network metric within the target time period includes: In response to a second control operation by the user on the terminal device, the identifier corresponding to at least one network indicator in the first custom formula of the first format is extracted; The value of the at least one network indicator within the target time period is determined based on the identifier.
3. The method according to claim 2, characterized in that, The identifier corresponding to the at least one network metric in the first custom formula extracted from the first format includes: Determine the first array, which is the array after stripping the operators and numbers from the first custom formula of the first format; The first array is deduplicated to extract the identifier corresponding to at least one network metric in the first custom formula of the first format.
4. The method according to any one of claims 1-3, characterized in that, The method further includes: A verification message is sent to the target database; the verification message includes the server's system identifier and access key, and is used to instruct the target database to authenticate the server, and if the server is successfully authenticated, to store the first custom formula in the first format.
5. A network index determination device, characterized in that, The device includes: a generation unit, a processing unit, and a determination unit; The generation unit is used to generate a custom template in response to a user's first control operation on the terminal device; the custom template includes at least one custom formula; the custom formula is used to perform combined calculations on the indicator values of at least one network indicator, the network indicator being used to characterize the network performance; The processing unit is configured to convert the first custom formula to a first format to obtain a first custom formula in a first format, and store the first custom formula in the first format in the target database; the first format is a format recognizable by the target database; the first custom formula is any one of the at least one custom formula. The determining unit is used to determine the index value of the at least one network index within the target time period; The processing unit is further configured to convert the first custom formula in the first format and the index value into a second format to obtain the first custom formula in the second format and the index value in the second format, wherein the second format is a format that the server can recognize. The processing unit is further configured to process the index values of the second format using a first custom formula of the second format to obtain a target combination result, which is used to characterize the stability of network operation.
6. The apparatus according to claim 5, characterized in that, The determining unit is specifically used for: In response to a second control operation by the user on the terminal device, the identifier corresponding to at least one network indicator in the first custom formula of the first format is extracted; The value of the at least one network indicator within the target time period is determined based on the identifier.
7. The apparatus according to claim 6, characterized in that, The processing unit is further configured to: Determine the first array, which is the array after stripping the operators and numbers from the first custom formula of the first format; The first array is deduplicated to extract the identifier corresponding to at least one network metric in the first custom formula of the first format.
8. The apparatus according to any one of claims 5-7, characterized in that, The device further includes: a transmitting unit; The sending unit is used to send a verification message to the target database; the verification message includes the system identifier of the server and an access key, the verification message is used to instruct the target database to authenticate the server, and if the server is successfully authenticated, to store the first custom formula in the first format.
9. A computer-readable storage medium, characterized in that, The readable storage medium stores instructions that, when executed, implement the method as described in any one of claims 1-4.
10. A network index determination device, characterized in that, include: The processor, memory, and communication interface; wherein the communication interface is used for communication between the network index determination device and other devices or networks; The memory is used to store one or more programs, the one or more programs including computer-executable instructions, which, when the network metric determination device is running, are executed by the processor to execute the computer-executable instructions stored in the memory to cause the network metric determination device to perform the method of any one of claims 1-4.
Citation Information
Patent Citations
Report data verification method and device and medium
CN111966669A
Data statistics method and device for custom index calculation formula and storage medium
CN113656755A