Network testing method, apparatus, device, and computer storage medium
By acquiring the location information of the test terminal, automatically determining its relationship with the test area and executing the corresponding network test script, the problem of high testing costs in existing 5G networks is solved, network testing is automated, labor costs are reduced, and testing efficiency is improved.
Patent Information
- Application Number
- CN202410842951.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Existing 5G network testing technologies rely on manual operation, resulting in high testing costs and complicated operations.
By acquiring the location information of the test terminal, its relationship with the test area is automatically determined, and the corresponding network test script is executed to achieve automated network testing.
It reduced testing costs, improved testing efficiency, reduced human intervention, and enabled automated network testing within a designated area.
Smart Images

Figure CN118827445B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of network testing, and particularly relates to a network testing method and device, equipment and a computer storage medium. BACKGROUND
[0002] With the continuous development of communication technology, communication companies need to test and analyze the local 5G network quality at different locations. First, network quality monitoring is performed to discover network problems in a timely manner; second, 5G network quality in different regions is comprehensively evaluated and analyzed for optimization.
[0003] Currently, the main 5G network testing technical solution mainly relies on on-site operation of a test terminal by a test personnel. Generally, the test personnel carries the test terminal by car, manually starts the relevant test terminal for monitoring after arriving at the test area, and manually closes the test terminal after leaving the test area. The test personnel needs to be very familiar with the test route or position, which consumes manpower and is complicated to operate, resulting in high testing cost. SUMMARY
[0004] The embodiments of the present application provide a network testing method, device, equipment and computer storage medium to solve the problem of high network testing cost.
[0005] In a first aspect, the embodiments of the present application provide a network testing method applied to a test terminal, and the method comprises:
[0006] obtaining a position of the test terminal;
[0007] determining a positional relationship between the position of the test terminal and at least one test area;
[0008] in a case where the position of the test terminal is located in a first test area of the at least one test area, executing a first network testing script corresponding to the first test area to obtain network testing information of the first test area.
[0009] In a second aspect, the embodiments of the present application provide a network testing device, and the device comprises:
[0010] a first obtaining module configured to obtain a position of the test terminal;
[0011] a first determining module configured to determine a positional relationship between the position of the test terminal and at least one test area;
[0012] an executing module configured to, in a case where the position of the test terminal is located in a first test area of the at least one test area, execute a first network testing script corresponding to the first test area to obtain network testing information of the first test area.
[0013] In a third aspect, an embodiment of the present application provides a terminal device, which comprises a processor and a memory storing computer program instructions.
[0014] The processor executes the computer program instructions to implement the network testing method of the first aspect or the network testing method of the second aspect.
[0015] In a fourth aspect, an embodiment of the present application provides a computer storage medium, which stores computer program instructions. The computer program instructions are executed by a processor to implement the network testing method of the first aspect or the network testing method of the second aspect.
[0016] In a fifth aspect, an embodiment of the present application provides a computer program product. Instructions in the computer program product are executed by a processor of an electronic device to cause the electronic device to execute the network testing method of the first aspect or the network testing method of the second aspect.
[0017] The network testing method provided by the embodiment of the present application can obtain the first position information of the test terminal and the to-be-tested position information, determine that the test terminal is located in the test area according to the first position information and the to-be-tested position information, and perform network testing in the test area to obtain network testing information. The network information of the test terminal in the specified area can be tested automatically, the human intervention is less, the testing efficiency is high, and the testing cost can be reduced. BRIEF DESCRIPTION OF DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments of the present application. Those skilled in the art can obtain other drawings according to these drawings without any creative labor.
[0019] Figure 1 FIG. 1 is a flowchart of a network testing method provided by an embodiment of the present application;
[0020] Figure 2 FIG. 2 is a schematic diagram of the overall flow of the network testing method provided by an embodiment of the present application;
[0021] Figure 3 FIG. 3 is a structural schematic diagram of a network testing device provided by an embodiment of the present application;
[0022] Figure 4 FIG. 4 is a structural schematic diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0023] The features and exemplary embodiments of the various aspects of the present application will be described in detail below with reference to the drawings. For the purpose of clarity, the description is divided into the following sections: technical scheme, advantages, and specific embodiments. The following detailed description is merely exemplary and is not intended to limit the present application. The present application can be practiced without some or all of these specific details. The following description of examples is provided as illustrative examples of the present application.
[0024] It should be noted that the relational terms herein, such as first and second, are used solely to distinguish one from another entity or action without necessarily requiring or implying any actual relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element preceded by "comprises... a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0025] To solve the problems in the prior art, the embodiments of the present application provide a network testing method, device, equipment and computer storage medium.
[0026] The network testing method provided by the embodiments of the present application will be introduced first.
[0027] Figure 1 The flowchart of the network testing method provided by an embodiment of the present application is shown. As shown in Figure 1 The method comprises the following steps:
[0028] Step 101: obtaining the position of the test terminal;
[0029] In this embodiment, the test terminal is a movable test terminal, which can be a drone, a test trolley, a vehicle-mounted terminal or a mobile phone terminal, etc. The position can be the latitude and longitude of the test terminal, which can be obtained by GPS or Beidou.
[0030] In an embodiment, before determining the position relationship between the position information of the test terminal and at least one test area, the method further comprises:
[0031] receiving a test starting strategy, the test starting strategy comprising geographic coordinates and a deviation distance;
[0032] determine the at least one test area according to the geographic coordinate and the deviation distance.
[0033] In the embodiment, the test starting strategy can be sent by a control system connected with the test terminal. The geographic coordinate can be longitude and latitude, and the deviation distance refers to a distance allowing deviation of the geographic coordinate. In addition, the geographic coordinate can also be a self-defined position coordinate system. The embodiment is not limited here.
[0034] In an embodiment, the determining the at least one test area according to the geographic coordinate and the deviation distance comprises:
[0035] determining the at least one test area as a circular area with the longitude and the latitude as the center and the deviation distance as the radius. Wherein, assuming that the geographic coordinate is O(a, b), then wherein a is the longitude of the position O and b is the latitude of the position O. The position of the test terminal is X(a1, b1), wherein a1 is the longitude of the position X and b1 is the latitude of the position X.
[0036] In addition, the test area can also be a matrix area in addition to the circular area, and the deviation distance corresponding to the rectangular area can include the length and the width of the rectangular area. Or the test area can also be a triangle, a cone or the like, and the deviation distance includes parameters related to the test area. The embodiment is not limited here.
[0037] Step 102, determining the position relationship between the position of the test terminal and the position of the at least one test area;
[0038] The position relationship includes that the position of the test terminal is in the test area and that the position of the test terminal is not in the test area. Since the test terminal is a mobile device, when the test terminal moves to a certain test area, the position relationship between the test terminal and the test area can be obtained. Since the test area is a circular area, when the position of the test terminal is located in the circle, it means that the test terminal has reached at least one test area.
[0039] As an example, the position relationship can be determined by the expression between the position O and the position X. Specifically, the distance between the position X and the geographic coordinate O is D = SQRT
(a1-a)2+(b1-b)2
[0040] Step 103, in the case that the position of the test terminal is located in a first test area of the at least one test area, executing a first network test script corresponding to the first test area to obtain network test information of the first test area.
[0041] In the embodiment, there can be multiple test areas. The first network test script is executed only when the vehicle moves to a first test area in the test areas, so as to implement network testing of the first test area. Different test areas correspond to different network test scripts, and the first network test script is a set of automated instructions for performing network testing. These instructions can be executed by automated testing tools to simulate user network operations and verify the functionality, performance or other quality attributes of the network system. The network test script usually includes test data, test steps, assertions and the like, for automatically performing a series of network test operations.
[0042] In addition, after the test is completed, the terminal automatically uploads the collected network test information to the control system background through the set backhaul path.
[0043] The network testing method provided in the embodiments can obtain first position information of a test terminal and to-be-tested position information, perform network testing in a test area to obtain network test information when it is determined that the test terminal is located in the test area according to the first position information and the to-be-tested position information, and automatically test network information of the test terminal in a specified area with less human intervention and high testing efficiency, thereby reducing testing cost.
[0044] In an embodiment of the present application, before the position of the test terminal is obtained, the method further includes:
[0045] When the test period is reached, the position of the test terminal is obtained.
[0046] In the embodiment, the test start strategy further includes a test period. The test start strategy can be obtained before the test start strategy is obtained, and the position of the test terminal is obtained when the test period in the test start strategy is reached.
[0047] In the embodiment, the position of the test terminal is obtained periodically, so that the test terminal can determine the relationship between its own position and the test area in time, and prevent the situation of missing the test area from occurring.
[0048] In an embodiment of the present application, before the first network test script corresponding to the first test area in which the position of the test terminal is located is executed to obtain network test information of the first test area, the method further includes:
[0049] According to historical network test information, the network performance of the test area is obtained, and the historical network test information is obtained by testing the first network test script;
[0050] In the case where the network performance is poor, a second network test script is used instead of the first network test script, and the test accuracy of the second network test script is higher than that of the first network test script.
[0051] In this embodiment, the network performance of each test area may be different, and the network performance of the same test area may change over time. When the network performance of the first test area is determined to be poor network performance according to historical test information, a more accurate network test script needs to be used to perform more accurate testing.
[0052] Specifically, the obtained network performance is checked. If the network performance is rated as “poor”, the first network test script is not directly used for testing, but a second network test script with higher test accuracy is used instead. This is because in the case of poor network performance, more accurate data is needed to accurately evaluate the network status, so as to more effectively locate and solve network problems.
[0053] The first network test script and the second network test script may have obvious differences in test range and depth, test accuracy and granularity, test scene and condition, and test time and resource consumption. According to specific test requirements and network environment, appropriate test scripts can be selected to obtain accurate network performance data. This embodiment does not limit this.
[0054] In this embodiment, after using the second network test script for testing, more accurate network test information will be obtained, which helps to more comprehensively understand the network status of the test area, so that more accurate decisions or corresponding optimization measures can be made.
[0055] In an embodiment of the present application, in the case where the position of the test terminal is located in the first test area of the at least one test area, the first network test script corresponding to the first test area is executed, and the network test information of the first test area is obtained, the method further comprises:
[0056] In the case where the network test information indicates that the network performance of the first test area remains in a declining state, the length of the test period is adjusted from a first length to a second length, and the second length is less than the first length.
[0057] In the case where the network test information indicates that the network performance of the first test area remains in a rising state, the length of the test period is adjusted from a first length to a third length, and the third length is greater than the first length.
[0058] In this embodiment, when the test terminal is located in the first test area and has executed the corresponding first network test script, the duration of the test period will be adjusted based on the collected network test information. Specifically:
[0059] Firstly, according to the network test information, the test terminal will judge the network performance state of the first test area. If the network test information indicates that the network performance of this area remains in a declining state, it means that there may be some potential problems or unstable factors that need to be tested more frequently to monitor and respond in real time. Therefore, the duration of the test period will be adjusted from the initial first duration to a shorter second duration. A shorter test period means that the system will run the network test script more frequently to capture any changes in network performance in a timely manner.
[0060] On the contrary, if the network test information indicates that the network performance of the first test area remains in an ascending state, it usually means that the network condition is improving or in a stable state. In this case, the test terminal does not need to test too frequently, so it can adjust the duration of the test period from the first duration to a longer third duration. A longer test period can reduce unnecessary testing, thus saving resources and time.
[0061] This dynamic adjustment of the test period duration based on network performance not only improves the efficiency and flexibility of testing, but also better adapts to the testing needs in different network environments. When the network performance is poor, by shortening the test period, problems can be found and solved in a timely manner; when the network performance is good, by extending the test period, unnecessary testing work can be reduced, making the testing process more efficient.
[0062] In addition, in another embodiment, different test areas may have different importance and business needs. Some key business areas or core network nodes may require more frequent and accurate testing to ensure the stability and availability of the network. Therefore, when dynamically adjusting the test period, the importance factor of the test area can be considered.
[0063] Each test area can be assigned an importance weight, which can be determined based on factors such as business size, number of users, historical failure rate, etc. For high importance test areas, even if the network performance appears stable, the test period can be appropriately shortened to detect potential problems in a timely manner. For low importance test areas, the test period can be relatively extended to reduce testing costs.
[0064] Alternatively, historical test data records long-term changes and trends in network performance, which can provide valuable reference for dynamic adjustment mechanisms. By analyzing historical test data, seasonal changes, periodic fluctuations, or long-term downward trends in network performance can be identified.
[0065] Based on these trend information, the system can predict the possible changes of future network performance, and adjust the test period accordingly. For example, if historical data shows that the network performance of a certain test area is prone to decline in a certain time period, the test period can be shortened in that time period to strengthen monitoring. Conversely, if historical data shows that the network performance is stable for a long time, the test period can be appropriately extended.
[0066] In this embodiment, by comprehensively considering multiple factors, the dynamic adjustment mechanism can more flexibly adapt to different network environments and test requirements, improving the accuracy and effectiveness of the test. This helps to discover network problems in a timely manner, optimize network performance, and ensure the stable operation of business.
[0067] In another embodiment, as shown in Figure 2 , a network test method is provided. The method includes: Figure 2 The overall flowchart of the network test method provided by an embodiment of the present application is shown. It includes:
[0068] Step S101, the system sends a measurement start strategy based on positioning information and a service test script to the terminal;
[0069] Step S102, the terminal periodically acquires the measurement start strategy and the service test script, which is the first network test script;
[0070] Step S103, the terminal regularly collects positioning information data;
[0071] Step S104, the terminal determines whether the current positioning meets the measurement start threshold;
[0072] Step S105, the positioning information meets the start threshold, and the service measurement is started;
[0073] Step S106, the service test script is executed, and test information is collected;
[0074] Step S107, the test is completed, and the measurement data is uploaded to the system.
[0075] As shown in Figure 3 , the present application also provides a network test device 300, which includes:
[0076] The first acquisition module 301 is configured to acquire the position of the test terminal;
[0077] The first determination module 302 is configured to determine the positional relationship between the test terminal and at least one test area;
[0078] The execution module 303 is configured to execute a first network test script corresponding to a first test region in a case where the position of the test terminal is located in the first test region of the at least one test region, to obtain network test information of the first test region.
[0079] Optionally, the network test device 300 further includes:
[0080] The receiving module is configured to receive a test starting strategy, the test starting strategy including geographic coordinates and a deviation distance.
[0081] The second determination module is configured to determine the at least one test region according to the geographic coordinates and the deviation distance.
[0082] Optionally, the second determination module is specifically configured to:
[0083] A circular region with the longitude and the latitude as the center and the deviation distance as the radius is determined as the at least one test region.
[0084] Optionally, the network test device 300 is specifically configured to:
[0085] In a case where a test period is reached, the position of the test terminal is acquired.
[0086] Optionally, the network test device 300 includes:
[0087] The second acquisition module is configured to acquire network performance of the test region according to historical network test information, the historical network test information being obtained by testing by using the first network test script.
[0088] The replacing module is configured to replace the first network test script with a second network test script in a case where the network performance is poor, the test accuracy of the second network test script being higher than that of the first network test script.
[0089] Optionally, the network test device 300 includes:
[0090] The first adjustment module is configured to adjust a time length of the test period from a first time length to a second time length in a case where the network test information indicates that network performance of the first test region remains in a declining state, the second time length being smaller than the first time length.
[0091] The second adjustment module is configured to adjust the time length of the test period from the first time length to a third time length in a case where the network test information indicates that network performance of the first test region remains in an ascending state, the third time length being greater than the first time length.
[0092] It should be noted that the network testing apparatus 300 is a device corresponding to the network testing method applied to the server, and all implementation manners in the method embodiments are applicable to the device embodiments, and the same technical effects can be achieved.
[0093] Figure 4 A hardware structure schematic diagram of a terminal device provided by an embodiment of the present application is shown.
[0094] The terminal device can include a processor 401 and a memory 402 storing computer program instructions.
[0095] Specifically, the processor 401 can include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or can be configured to implement one or more integrated circuits of the embodiments of the present application.
[0096] The memory 402 can include a mass storage for data or instructions. By way of example and not limitation, the memory 402 can include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 402 can include removable or non-removable (or fixed) media. Where appropriate, the memory 402 can be internal or external to the integrated gateway disaster recovery device. In certain embodiments, the memory 402 is non-volatile solid-state memory.
[0097] In certain embodiments, the memory 402 can include read-only memory (ROM), random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software that, when executed (e.g., by one or more processors), is operable to perform operations described with reference to the methods according to an aspect of the present disclosure.
[0098] The processor 401 implements any one of the network testing methods in the above embodiments by reading and executing the computer program instructions stored in the memory 402.
[0099] In one example, the terminal device can further include a communication interface 403 and a bus 410. Wherein, as Figure 4As shown, the processor 401, the memory 402, and the communication interface 403 are connected and communicate with each other through the bus 410.
[0100] The communication interface 403 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiments of the present application.
[0101] The bus 410 includes hardware, software or both to couple components of the online data traffic billing device to each other in a known manner. Although specific bus implementations have been described, any bus implementations associating components of the present application are within the scope of the present application. Although specific configurations and processes have been described and illustrated, the present application is not limited to the particular examples disclosed. As such, the detailed description and examples are not to be taken in a limiting sense, but are made with the drawback of the prior art in mind. Numerous alternative embodiments and modifications will be apparent to those skilled in the art in view of the foregoing description, whereby various changes can be made without departing from the scope and spirit of the application.
[0102] In addition, in combination with the network testing method in the above-mentioned embodiments, the embodiments of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; the computer program instructions are executed by a processor to implement any one of the network testing methods in the above-mentioned embodiments.
[0103] It should be understood that the present application is not limited to the particular configurations and processes described and illustrated herein. Detailed descriptions of known methods are omitted for the sake of brevity. In the above-mentioned embodiments, several specific steps are described and illustrated as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions, or change the order of the steps, after understanding the spirit of the present application.
[0104] The functional blocks shown in the structural block diagrams above can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application specific integrated circuits (ASICs), appropriate firmware, plug-ins, functional cards, and the like. When implemented in software, the elements of the present application are program or code segments that are used to perform the required tasks. The program or code segments can be stored in a machine-readable medium, or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. A "machine-readable medium" includes any medium that can store or transport information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memory, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, and the like. The code segments can be downloaded via computer networks such as the Internet, intranets, and the like.
[0105] It is also important to note that the examples in the present application are described based on a series of steps or units for performing some methods or systems. However, the present application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the examples, or in an order different from the examples, or several steps can be performed simultaneously.
[0106] The above generally describes aspects of the present application with reference to a flowchart and / or a block diagram of methods, apparatus (systems) and computer program products according to embodiments of the present application. It should be understood that each block of the flowchart and / or block diagram, and combinations of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable network testing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable network testing device enable the implementation of the functions / acts specified in the flowchart and / or block diagram block or blocks. The processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each block of the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can also be implemented by special hardware that performs specified functions or acts, or can be implemented by a combination of special hardware and computer instructions.
[0107] The above is only a specific implementation of the present application, and those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, module and unit can refer to the corresponding process in the foregoing method embodiments, which will not be described here. It should be understood that the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be covered within the protection scope of the present application.
Claims
1. A network testing method characterized by, The method is applied to a test terminal, and comprises: obtaining a position of the test terminal; determining a positional relationship between the position of the test terminal and at least one test area; in a case where the position of the test terminal is located in a first test area in the at least one test area, executing a first network test script corresponding to the first test area to obtain network test information of the first test area.
2. The network testing method of claim 1, wherein, Before the determining of the positional relationship between the position information of the test terminal and the at least one test area, the method further comprises: receiving a test starting strategy, the test starting strategy comprising geographic coordinates and a deviation distance; determining the at least one test area according to the geographic coordinates and the deviation distance.
3. The network testing method of claim 2, wherein, The geographic coordinates comprise longitude and latitude. The determining of the at least one test area according to the geographic coordinates and the deviation distance comprises: determining a circular area with the longitude and the latitude as the center and the deviation distance as the radius as the at least one test area.
4. The network testing method of claim 2, wherein, The test starting strategy comprises a test period. Before the obtaining of the position of the test terminal, the method further comprises: in a case where the test period is reached, obtaining the position of the test terminal.
5. The network testing method of claim 4, wherein, Before the executing of the first network test script corresponding to the first test area to obtain the network test information of the first test area in a case where the position of the test terminal is located in the first test area in the at least one test area, the method further comprises: obtaining network performance of the test area according to historical network test information, the historical network test information being obtained through the first network test script; in a case where the network performance is poor, using a second network test script to replace the first network test script, the test accuracy of the second network test script being higher than that of the first network test script.
6. The network testing method of claim 4, wherein, After the executing of the first network test script corresponding to the first test area to obtain the network test information of the first test area in a case where the position of the test terminal is located in the first test area in the at least one test area, the method further comprises: in a case where the network test information indicates that the network performance of the first test area remains in a declining state, adjusting a length of the test period from a first length to a second length, the second length being smaller than the first length; in a case where the network test information indicates that the network performance of the first test area remains in a rising state, adjusting the length of the test period from the first length to a third length, the third length being greater than the first length.
7. A network testing device, characterized by The device comprises: a first obtaining module configured to obtain a position of the test terminal; a first determining module configured to determine a positional relationship between the position of the test terminal and at least one test area; an executing module configured to, in a case where the position of the test terminal is located in a first test area in the at least one test area, execute a first network test script corresponding to the first test area to obtain network test information of the first test area.
8. A terminal device, comprising: The device comprises a processor and a memory storing computer program instructions. The processor implements the network test method as claimed in any one of claims 1-6 when executing the computer program instructions.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer program instructions, and the computer program instructions are executed by the processor to implement the network test method as claimed in any one of claims 1-6.
10. A computer program product, characterised in that, The computer product comprises a computer program, and the computer program is executed by the processor to implement the network test method as claimed in any one of claims 1-6.
Citation Information
Patent Citations
Test data supply chain manager for an integrated testing platform
CN102880543A
Test script generation method, computer readable storage medium and electronic equipment
CN116627791A