CN116155761A - Network testing method, network testing device, electronic equipment and readable storage medium - Google Patents

Network testing method, network testing device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN116155761A
CN116155761A CN202111374607.2A CN202111374607A CN116155761A CN 116155761 A CN116155761 A CN 116155761A CN 202111374607 A CN202111374607 A CN 202111374607A CN 116155761 A CN116155761 A CN 116155761A
Authority
CN
China
Prior art keywords
network
test
packet
network request
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111374607.2A
Other languages
Chinese (zh)
Inventor
罗杨成
毛乾康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202111374607.2A priority Critical patent/CN116155761A/en
Publication of CN116155761A publication Critical patent/CN116155761A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Abstract

The application discloses a network testing method, a network testing device, electronic equipment and a readable storage medium, and belongs to the technical field of networks. The network testing method comprises the following steps: acquiring a network problem reported by user equipment and recording the user environment of the user equipment; determining a first test device in a user environment, triggering a network request on the first test device according to a network problem, and acquiring the network request through packet grabbing processing; configuring a network detection task according to the network request; and sending the network detection task to a plurality of second test devices so as to enable the second test devices to perform network test to obtain a test result. By reproducing the network problem on the first test equipment consistent with the user environment of the user equipment and introducing the packet capturing means in the reproduction process, more accurate network requests can be obtained, and thus, the network problem test can be more effectively carried out. And moreover, network testing is performed in batches by using a plurality of second testing devices, so that distributed active detection is realized, and the testing efficiency is improved.

Description

Network testing method, network testing device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of networks, and particularly relates to a network testing method, a network testing device, electronic equipment and a readable storage medium.
Background
For network problems (such as failure in uploading and downloading videos) of users in the process of using terminal equipment, the reasons for the network problems need to be acquired through related network problem tests. The network problem debugging method in the related art simulates the network access condition of the user according to the user feedback information so as to initiate a network request, and judges the network problem according to the request result. However, the simulated network request and the actual network request are often quite different, which results in difficult network problem debugging to achieve better effects.
Disclosure of Invention
An object of the embodiments of the present application is to provide a network testing method, a network testing device, an electronic device, and a readable storage medium, which can solve the problem that in the related art, the network problem is difficult to debug to achieve a better effect.
In a first aspect, an embodiment of the present application provides a network testing method, where the network testing method includes:
acquiring a network problem reported by user equipment and recording the user environment of the user equipment;
determining a first test device in a user environment, triggering a network request on the first test device according to a network problem, and acquiring the network request through packet grabbing processing;
configuring a network detection task according to the network request;
and sending the network detection task to a plurality of second test devices so as to enable the second test devices to perform network test to obtain a test result.
In a second aspect, embodiments of the present application provide a network testing apparatus, including:
the acquisition module is used for acquiring the network problem reported by the user equipment and recording the user environment of the user equipment;
the control module is used for determining first test equipment in a user environment, triggering a network request on the first test equipment according to a network problem, and acquiring the network request through packet grabbing processing;
the configuration module is used for configuring a network detection task according to the network request;
and the sending module is used for sending the network detection task to a plurality of second testing devices so as to enable the second testing devices to perform network testing to obtain a testing result.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions implementing the steps of the method as in the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the method as in the first aspect.
In the embodiment of the application, the network problem of the user equipment in the process of executing the network task is found through modes of user feedback, service monitoring, infrastructure monitoring and the like, so that the first test equipment consistent with the user environment of the user equipment is obtained, the network problem is reproduced on the first test equipment, and namely the network request is triggered. The first test equipment is integrated with a packet grabbing tool, so that simple and rapid packet grabbing processing can be performed in the process of reapplying the network problem to obtain a first packet grabbing file, and then a network request is determined according to the first packet grabbing file, so that a network detection task is determined. Further, the network detection task is issued to a plurality of second test devices, the second test devices are used for testing the network problems, and test results of the network problems are generated. In the embodiment of the application, on one hand, by reproducing the network problem on the first test equipment consistent with the user environment of the user equipment, a more accurate network request can be obtained, and because the user equipment encountering the network problem does not need to provide site for reproduction and debugging, the difficulty and complexity of debugging the network problem are reduced. On the other hand, a network packet capturing analysis means is introduced in the reproduction process of the network problem, so that more accurate network requests can be captured, and the network problem can be more effectively tested. On the other hand, the network problem can be tested in batches by using a plurality of second testing devices, namely, distributed active detection is realized, the efficiency of testing the network problem is improved, and the influence range and the performance of the problem can be rapidly determined.
Drawings
FIG. 1 is a flow chart of a network testing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram showing the control and execution of a first test device according to an embodiment of the present application;
FIG. 3 is one of the schematic diagrams of a bale plucker record display in an embodiment of the present application;
FIG. 4 is a second schematic diagram of a capture record according to an embodiment of the present application;
FIG. 5 is a third schematic diagram of a scratch pad record according to an embodiment of the present disclosure;
FIG. 6 is a fourth schematic diagram of a bale plucker record display in an embodiment of the present application;
FIG. 7 is one of the test result display diagrams of the embodiment of the present application;
FIG. 8 is a second schematic diagram of a test result display according to an embodiment of the present application;
FIG. 9 is one of the schematics of a selection application interface of an embodiment of the present application;
FIG. 10 is a second schematic diagram of a selection application interface according to an embodiment of the present application;
FIG. 11 is a third schematic illustration of a selection application interface according to an embodiment of the present application;
FIG. 12 is a schematic diagram of a display prompt pop-up window according to an embodiment of the present application;
FIG. 13 is a schematic diagram showing packet-grabbing related data according to an embodiment of the present application;
FIG. 14 is one of the schematic diagrams showing the packet capturing file information according to the embodiment of the present application;
FIG. 15 is a second diagram showing the information of a capture file according to an embodiment of the present application;
FIG. 16 is a schematic diagram of extracting request time stamps and request stream information according to an embodiment of the present application;
FIG. 17 is a schematic diagram of a second test equipment setup information interface of an embodiment of the present application;
FIG. 18 is a second flow chart of a network testing method according to the embodiment of the present application;
FIG. 19 is a schematic block diagram of a network testing apparatus of an embodiment of the present application;
fig. 20 is a schematic block diagram of an electronic device of an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The network testing method, the network testing device, the electronic equipment and the readable storage medium provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The embodiment of the application provides a network testing method applied to a testing control end (e.g. a server), as shown in fig. 1, the network testing method includes:
step 102, obtaining a network problem reported by user equipment and recording the user environment of the user equipment;
step 104, determining a first test device in a user environment, triggering a network request on the first test device according to a network problem, and acquiring the network request through packet grabbing processing;
step 106, configuring a network detection task according to the network request;
and step 108, the network detection task is sent to a plurality of second test devices so that the second test devices can perform network testing to obtain a test result.
In this embodiment, a network problem occurring in the process of executing a network task by the user equipment is found by means of user feedback, service monitoring, infrastructure monitoring and the like, so as to obtain first test equipment consistent with the user environment of the user equipment, and the network problem is reproduced on the first test equipment, that is, a network request is triggered. Wherein the user environment comprises at least one of: geographic location information, carrier information, and device model.
For example, when a problem of failed uploading occurs when a task of publishing video is performed in an application program of the user equipment, the task of publishing video is performed on a first test device consistent with a user environment of the user equipment, so that the problem of failed uploading is repeated.
The first test equipment is integrated with a packet grabbing tool, so that simple and rapid packet grabbing processing can be performed in the process of reapplying the network problem to obtain a first packet grabbing file, and then a network request is determined according to the first packet grabbing file, so that a network detection task is determined.
Further, the network detection task is issued to a plurality of second test devices, the second test devices are used for testing the network problems, and test results of the network problems are generated. After the second test device returns the test result, the test result can be displayed, so that the test result is provided for a tester to check.
In the embodiment of the application, on one hand, by reproducing the network problem on the first test equipment consistent with the user environment of the user equipment, a more accurate network request can be obtained, and because the user equipment encountering the network problem does not need to provide site for reproduction and debugging, the difficulty and complexity of debugging the network problem are reduced. On the other hand, a network packet capturing analysis means is introduced in the reproduction process of the network problem, so that more accurate network requests can be captured, and the network problem can be more effectively tested. On the other hand, the network problem can be tested in batches by using a plurality of second testing devices, namely, distributed active detection is realized, the efficiency of testing the network problem is improved, and the influence range and the performance of the problem can be rapidly determined.
It should be noted that, the control and execution process of the first test device is displayed on the test control end, as shown in fig. 2, a desktop 202 of the first test device is displayed, and an application program on the first test device is displayed in a pop-up window 204. When a user selects one application program and confirms that performance analysis starts, the application program triggers a network request, performs packet grabbing processing and displays packet grabbing records of different stages. For example, as shown in fig. 3, a packet capture record in preparation for data acquisition is displayed, as shown in fig. 4, a packet capture record in data acquisition is displayed, as shown in fig. 5, a packet capture record at the end of data acquisition is displayed, as shown in fig. 6, and the final packet capture result is displayed.
When the test result is displayed, as shown in fig. 7 and 8, aggregated data of the test result, such as http success rate, time consumption of each stage of request, and the like, may be displayed. A detailed log of test results may also be displayed, for example:
Figure BDA0003363374410000051
/>
Figure BDA0003363374410000061
further, in one embodiment of the present application, before the step of obtaining the network request through the packet grabbing process, the method further includes: receiving a first input of a tester to a first test device; determining a target application of the first test device in response to the first input; the step of obtaining the network request through packet grabbing processing comprises the following steps: the network request associated with the target application is obtained through a packet-grabbing process.
In this embodiment, the tester may specify the target application before starting the packet capturing, so that only the target application is subjected to the packet capturing process, such as capturing only the traffic of the target application, when capturing the packet. By the method, interference of other application programs is avoided, and accuracy of the obtained package grabbing file is improved.
Illustratively, as shown in FIG. 9, an interface is displayed for the tester to select an application, when the tester clicks on the "+" sign, the interface is entered as shown in FIG. 10. When the tester clicks on the "first application" therein, the interface shown in fig. 11 is entered, and the "first application" is displayed. If the tester needs to add the application again, click on the "+" mark and continue to add the application.
In addition, before the package is grasped, the test personnel is prompted whether to grasp the package, and after the test personnel confirms, the package grasping treatment is performed. For example, as shown in fig. 12, a prompt pop-up window is displayed asking "do allow NetworkTool to create VPN connection".
The technique of man-in-the-middle and individual CA certificates is used in the packet grabbing process, so that the grabbing of https traffic can be realized. During the packet grabbing process, as shown in fig. 13, packet grabbing related data (e.g., a packet grabbing application, mobile network uplink traffic, mobile network downlink traffic, wiFi uplink traffic, wiFi downlink traffic, etc.) may be displayed.
After the completion of the grabbing of the package on the first test device, the files in the pcap format and sslkey format, or the files in the pcap format and hypertext transfer protocol archive specification (HRA) format are exported for subsequent analysis. The file can also be directly uploaded to a bale breaking file analysis platform for analysis. For example, as shown in fig. 14, the bundle file information such as bundle result, file location, file name, creation time, and file format may be displayed, and the tester may select to upload the file to the bundle file analysis platform.
The bale plucking files collected by the bale plucking tool can be directly obtained to-be-detected url sentences after being exported to the bale plucking file analysis platform. The packet capturing file analysis platform can directly import the packet capturing result, and can quickly and intuitively acquire the packet capturing file information by combining screen recording synchronous analysis and packet capturing file information display as shown in fig. 15.
In addition, the network request includes a request timestamp and request stream information. As shown in fig. 16, the request timestamp and the request flow information of the network request are extracted, so that the second test device is guaranteed to be capable of completely reproducing the network request and performing network test.
It should be noted that, the detection type of the second test device supports transaction monitoring, and the complete network request is reproduced according to the time sequence according to the input complete information of the request flow. In addition, the method can synchronously schedule all second test equipment appointed by the tester, can finish detection in parallel and efficiently, and can support synchronous packet grabbing processing.
As shown in fig. 17, the tester may set information such as expiration time, operation interval, monitoring url, url grouping, selection policy, and condition on the second test device, so as to implement debugging of the network problem.
Further, in one embodiment of the present application, the step of configuring the network probing task according to the network request includes: and configuring a network detection task according to the network request conforming to the configuration rule.
In this embodiment, the problematic network request in the first packet-capturing file may be filtered, and the problematic network request may be separately converted into a network detection task used for distributed active detection, so that by focusing on only the problematic network request, the subsequent operation may be simplified.
In one case, receiving a second input from the tester; responding to the second input, and acquiring first configuration rule information; and configuring a network detection task according to the network request conforming to the first configuration rule. That is, the tester may proactively set the first configuration rules to customize the network request for problems, such as cross country access, http unencrypted requests, or DNS resolution to null, etc. Thereby converting the problematic network requests into network probing tasks.
In another case, the network probing task is configured according to a network request conforming to a pre-stored second configuration rule. That is, a pre-stored generic template (i.e., a second configuration rule) is utilized to quickly identify problematic network requests.
Further, in one embodiment of the present application, the step of configuring the network probing task according to the network request includes: under the condition that the network request comprises an application layer protocol, converting the network request into a network detection task according to the protocol type of the application layer protocol and the time sequence of the network request; in the case that the network request includes a transport layer protocol, after associating the network request to an application protocol of a reference layer, converting the network request into a network probing task; in the case that the network request includes a network layer protocol, the network request is converted into a network probing task according to a test instruction of the network layer protocol.
In this embodiment, the network request corresponding to the first packet capture file may be extracted and converted into a network probing task used for distributed active probing.
Specifically, for an application layer protocol (e.g., http or domain name system (Domain Name System, DNS)) of the seven layers of open system interconnection (Open System Interconnection, OSI), a time series sequence of protocol types and probe target complete url statements is derived and then translated into a network probe task for distributed active probing.
For transport layer protocols of the OSI four layers (e.g., transmission control protocol (Transmission Control Protocol, TCP)), the network request is derived in association with the corresponding application protocol of the reference layer.
For the network layer protocol of the three OSI layers (e.g., control message protocol (Internet Control Message Protocol, ICMP)), a corresponding test instruction (e.g., ICMP corresponding ping probe instruction) is derived, and then converted into a network probe task used for distributed active probing.
The export work is performed by the captured package file analysis platform. In addition, in the case that the export operation is not covered, the network request is converted into a corresponding curl instruction, and then is converted into a network probing task.
By the method, different modes of converting the network request into the network detection task used by the distributed active detection are limited, and the flexibility of converting the network request is improved.
Further, in an embodiment of the present application, the first test device is an android device; the step of obtaining the network request through packet grabbing processing comprises the following steps: under the condition that the first test equipment is non-super user authority equipment or is in a non-super user authority mode of the super user authority equipment, adopting a virtual special network packet grabbing tool to carry out packet grabbing processing on an application layer and a network layer of the first test equipment so as to acquire a network request; and under the condition that the first test equipment is in a super user permission mode of the super user permission equipment, adopting a tcpdump packet grabbing tool to carry out packet grabbing processing on an application layer and a transmission layer of the first test equipment so as to acquire a network request.
In this embodiment, the packet grabbing tool may grab the traffic of the seven-layer application layer and the four-layer network layer, support the android operating system, and support both super user rights (root) and non-root android devices.
For an android machine, a non-root machine adopts a virtual private network (Virtual Private Network, VPN) to grab packets, forwards network traffic through a built-in transparent Proxy (10.1.10.1), and analyzes TLS requests through a built-in virtual gateway.
The root machine is divided into a root mode and a non-root mode, in the root mode, a built-in tcpdump packet grabbing tool is adopted to grab packets, the real traffic of the equipment is grabbed, and VPN packet grabbing and proxy forwarding are not involved. The non-root mode is the same as the non-root machine packet, and will not be described again.
By the method, the adaptability of the packet grabbing process to the android device is improved.
Further, in one embodiment of the present application, the step of obtaining the network request through packet grabbing processing includes: under the condition that the first test equipment is ios equipment, carrying out packet capturing processing on an application layer and a transmission layer of the first test equipment to generate a first packet capturing file in a hypertext transfer protocol file standard format; and acquiring a network request according to the first packet capturing file.
In this embodiment, the packet-grabbing tool may grab the traffic of the seven-layer application layer and the four-layer network layer, supporting ios operating systems. For ios devices, the generated bale document after the bale is in hypertext transfer protocol archive specification (HAR) format.
By the mode, the suitability of the packet grabbing process for ios equipment is improved.
Further, in one embodiment of the present application, the method further includes: in the process of executing the network detection task by the second test equipment, carrying out packet capturing processing to generate a second packet capturing file; acquiring testing process information according to the second packet capturing file; and controlling the first test equipment to reproduce the network problem according to the test process information.
In this embodiment, as shown in fig. 18, a network problem occurring in the user equipment is found by means of user feedback, service monitoring, infrastructure monitoring, and the like, so as to find a first test device consistent with the user environment of the user equipment, and the network problem is reproduced on the first test device, and a packet is grabbed by the network request. And exporting the packet capturing result to be configured into a network detection task. And issuing the network detection task to a batch of second test equipment, wherein the problem can be reproduced on the second test equipment or debugged, and the second test equipment can grasp the packet when the problem is reproduced or debugged, so as to generate a second packet grasping file. And if the tester does not need to adjust the testing strategy by using the second packet capture file, ending the debugging. If the tester needs to use the second packet capturing file to adjust the test strategy to perform the test again, the test is performed again according to the second packet capturing file, and the test is returned to the first test equipment to reproduce the network problem again, so that the closed loop test problem can be realized, the iteration is continued, and the network problem is finally solved.
In addition, it should be noted that, the network testing method in the embodiment of the present application can adapt to different device types respectively. Specifically, for the android device, a packet grabbing tool is installed on the android device in the form of an application program, packets of four layers and seven layers of a network can be captured, and an https encryption protocol can be captured through a man-in-the-middle scheme, so that detailed network packet information is obtained. For Mac OS devices, the tcpdump instruction is used to grab packets, which is the real traffic of the device, VPN grabbing packets and proxy forwarding are not involved, and https encryption protocol can be captured through the man-in-the-middle scheme. For Linux devices, tcpdump instructions are used to grab packets, the real traffic of the device is grabbed, VPN grabbing packets and proxy forwarding are not involved, and https encryption protocols can be captured through a man-in-the-middle scheme.
It should be noted that, in the network test method provided in the embodiment of the present application, the execution body may be a network test device, or a control module in the network test device for executing the network test method. In the embodiment of the present application, a network test device executes a network test method as an example, and the network test device provided in the embodiment of the present application is described.
The embodiment of the application provides a network testing device, as shown in fig. 19, the network testing device 1900 includes:
an obtaining module 1902, configured to obtain a network problem reported by a user equipment, and record a user environment of the user equipment;
a control module 1904, configured to determine a first test device in a user environment, trigger a network request on the first test device according to a network problem, and acquire the network request through packet grabbing;
a configuration module 1906 for configuring a network probing task according to the network request;
and the sending module 1908 is used for sending the network detection task to the second testing device so that the second testing device can perform network testing to obtain a testing result.
In this embodiment, a network problem occurring in the process of executing a network task by the user equipment is found by means of user feedback, service monitoring, infrastructure monitoring and the like, so as to obtain first test equipment consistent with the user environment of the user equipment, and the network problem is reproduced on the first test equipment, that is, a network request is triggered. The first test equipment is integrated with a packet grabbing tool, so that simple and rapid packet grabbing processing can be performed in the process of reapplying the network problem to obtain a first packet grabbing file, and then a network request is determined according to the first packet grabbing file, so that a network detection task is determined. Further, the network detection task is issued to a plurality of second test devices, the second test devices are used for testing the network problems, and test results of the network problems are generated. In the embodiment of the application, on one hand, by reproducing the network problem on the first test equipment consistent with the user environment of the user equipment, a more accurate network request can be obtained, and because the user equipment encountering the network problem does not need to provide site for reproduction and debugging, the difficulty and complexity of debugging the network problem are reduced. On the other hand, a network packet capturing analysis means is introduced in the reproduction process of the network problem, so that more accurate network requests can be captured, and the network problem can be more effectively tested. On the other hand, the network problem can be tested in batches by using a plurality of second testing devices, namely, distributed active detection is realized, the efficiency of testing the network problem is improved, and the influence range and the performance of the problem can be rapidly determined.
Further, in one embodiment of the present application, the network testing apparatus 1900 further includes: the receiving module is used for receiving a first input of a tester to the first testing equipment; determining a target application of the first test device in response to the first input; the control module 1904 is specifically configured to obtain, through a packet capturing process, a network request related to the target application program.
Further, in one embodiment of the present application, the configuration module 1906 is specifically configured to configure a network probing task according to a network request conforming to a configuration rule.
Further, in one embodiment of the present application, the configuration module 1906 is specifically configured to, in a case where the network request includes an application layer protocol, convert the network request into a network probing task according to a protocol type of the application layer protocol and a time sequence of the network request; in the case that the network request includes a transport layer protocol, after associating the network request to an application protocol of a reference layer, converting the network request into a network probing task; in the case that the network request includes a network layer protocol, the network request is converted into a network probing task according to a test instruction of the network layer protocol.
Further, in an embodiment of the present application, the first test device is an android device; the control module 1904 is specifically configured to: under the condition that the first test equipment is non-super user authority equipment or is in a non-super user authority mode of the super user authority equipment, adopting a virtual special network packet grabbing tool to carry out packet grabbing processing on an application layer and a network layer of the first test equipment so as to acquire a network request; and under the condition that the first test equipment is in a super user permission mode of the super user permission equipment, adopting a tcpdump packet grabbing tool to carry out packet grabbing processing on an application layer and a transmission layer of the first test equipment so as to acquire a network request.
Further, in an embodiment of the present application, the control module 1904 is specifically configured to perform packet-grabbing processing on an application layer and a transport layer of the first test device when the first test device is an ios device, so as to generate a first packet-grabbing file in a hypertext transfer protocol archive specification format; and acquiring a network request according to the first packet capturing file.
Further, in one embodiment of the present application, the control module 1904 is further configured to: in the process of executing the network detection task by the second test equipment, carrying out packet capturing processing to generate a second packet capturing file; acquiring testing process information according to the second packet capturing file; and controlling the first test equipment to execute the reproduction problem information according to the test process information.
The network test apparatus 1900 in the embodiment of the present application may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle mounted electronic device, wearable device, ultra-mobile personal computer (Ultra-Mobile Personal Computer, UMPC), netbook or personal digital assistant (Personal Digital Assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (Personal Computer, PC), television (Television, TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
Network test device 1900 in embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The network testing apparatus 1900 provided in the embodiment of the present application can implement each process implemented in the method embodiments of fig. 1 and 18, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 20, the embodiment of the present application further provides an electronic device 2000, including a processor 2002, a memory 2004, and a program or an instruction stored in the memory 2004 and capable of being executed on the processor 2002, where the program or the instruction implements each process of the above-mentioned network test method embodiment when executed by the processor 2002, and the same technical effects are achieved, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, where the program or the instruction implements each process of the network test method embodiment described above when executed by a processor, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation 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 may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. A network testing method, comprising:
acquiring a network problem reported by user equipment and recording the user environment of the user equipment;
determining a first test device in the user environment, triggering a network request on the first test device according to the network problem, and acquiring the network request through packet grabbing processing;
configuring a network detection task according to the network request;
and sending the network detection task to a plurality of second test devices so that the second test devices can perform network test to obtain a test result.
2. The network testing method according to claim 1, further comprising, prior to the step of obtaining the network request through a packet-grabbing process:
receiving a first input of a tester to a first test device;
determining a target application of the first test device in response to the first input;
the step of obtaining the network request through packet grabbing processing comprises the following steps:
the network request associated with the target application is obtained through a packet-grabbing process.
3. The network testing method according to claim 1, wherein the step of configuring a network probing task according to the network request comprises:
and configuring a network detection task according to the network request conforming to the configuration rule.
4. The network testing method according to claim 1, wherein the step of configuring a network probing task according to the network request comprises:
converting the network request into the network detection task according to the protocol type of the application layer protocol and the time sequence of the network request under the condition that the network request comprises the application layer protocol;
in the case that the network request includes a transport layer protocol, after associating the network request to an application protocol of a reference layer, converting the network request into the network probing task;
and under the condition that the network request comprises a network layer protocol, converting the network request into the network detection task according to a test instruction of the network layer protocol.
5. The network testing method according to any one of claims 1 to 4, wherein the first testing device is an android device; the step of obtaining the network request through packet grabbing processing comprises the following steps:
under the condition that the first test equipment is non-super user authority equipment or is in a non-super user authority mode of super user authority equipment, adopting a virtual special network packet capturing tool to capture packets of an application layer and a network layer of the first test equipment so as to acquire the network request;
and under the condition that the first test equipment is in a super user permission mode of the super user permission equipment, adopting a tcpdump packet grabbing tool to carry out packet grabbing processing on an application layer and a transmission layer of the first test equipment so as to acquire the network request.
6. The network testing method according to any one of claims 1 to 4, wherein the step of acquiring the network request through a packet-grabbing process includes:
when the first test equipment is ios equipment, carrying out packet capturing processing on an application layer and a transmission layer of the first test equipment to generate a first packet capturing file in a hypertext transfer protocol file standard format;
and acquiring the network request according to the first packet capturing file.
7. The network testing method according to any one of claims 1 to 4, further comprising:
in the process of executing the network detection task by the second test equipment, carrying out packet capturing processing to generate a second packet capturing file;
acquiring testing process information according to the second packet capturing file;
and controlling the first test equipment to reproduce the network problem according to the test process information.
8. A network testing apparatus, comprising:
the acquisition module is used for acquiring the network problem reported by the user equipment and recording the user environment of the user equipment;
the control module is used for determining first test equipment in the user environment, triggering a network request on the first test equipment according to the network problem, and acquiring the network request through packet grabbing processing;
the configuration module is used for configuring a network detection task according to the network request;
and the sending module is used for sending the network detection task to a plurality of second testing devices so that the second testing devices can perform network testing to obtain a testing result.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the network testing method of any of claims 1 to 7.
10. A readable storage medium having stored thereon a program or instructions which when executed by a processor performs the steps of the network testing method according to any of claims 1 to 7.
CN202111374607.2A 2021-11-19 2021-11-19 Network testing method, network testing device, electronic equipment and readable storage medium Pending CN116155761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111374607.2A CN116155761A (en) 2021-11-19 2021-11-19 Network testing method, network testing device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111374607.2A CN116155761A (en) 2021-11-19 2021-11-19 Network testing method, network testing device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116155761A true CN116155761A (en) 2023-05-23

Family

ID=86351128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111374607.2A Pending CN116155761A (en) 2021-11-19 2021-11-19 Network testing method, network testing device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116155761A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117040667A (en) * 2023-10-08 2023-11-10 灿芯技术(深圳)有限公司 WiFi interference test method and device based on packet grabbing playback

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117040667A (en) * 2023-10-08 2023-11-10 灿芯技术(深圳)有限公司 WiFi interference test method and device based on packet grabbing playback
CN117040667B (en) * 2023-10-08 2023-12-19 灿芯技术(深圳)有限公司 WiFi interference test method and device based on packet grabbing playback

Similar Documents

Publication Publication Date Title
Cinque et al. Microservices monitoring with event logs and black box execution tracing
US20180375897A1 (en) Automated network device cloner and decoy generator
US8402131B2 (en) Hierarchy for characterizing interactions with an application
CN104636146B (en) A kind of visualization on-line customization method and system
US20170270303A1 (en) Integrated Interactive Application Security Testing
CN108600049B (en) Method and device for measuring performance of TCP connection of data center network and storage medium
US9740991B2 (en) Calculating in-flight metrics for non-interruptible business transactions
US20060259542A1 (en) Integrated testing approach for publish/subscribe network systems
CN111756714B (en) Flow replay type test method and test engine for industrial control protocol
CN105068876A (en) Method for acquiring mobile phone APP performance data based on distributed true phones
CN105337753A (en) Method and device for monitoring Internet real quality
CN116155761A (en) Network testing method, network testing device, electronic equipment and readable storage medium
Lin et al. Low-storage capture and loss recovery selective replay of real flows
CN114039899B (en) Method for realizing network performance test of WEB product based on Fiddler tool
CN104516970B (en) A kind of method and apparatus for carrying out log analysis
CN101212353A (en) Data acquisition and analysis system and method
Amrein et al. Security intelligence for industrial control systems
WO2015176516A1 (en) Method and apparatus for tracking service process
US10055336B1 (en) Computer implemented system and method and computer program product for testing a software component by simulating an interface to a computing component using randomized network packet information
Yang et al. Design and implementation of web-based speed test analysis tool kit
CN115269415A (en) Interface test system and method based on simulation scene use case
CN107632935A (en) A kind of software systems method for testing pressure, device, equipment and storage medium
CN114564387A (en) Scene type automatic testing method and system for OpenStack cloud platform
CN106571966A (en) System and method of MAC cloning function test
CN109995607B (en) Method for testing flow overhead, terminal, server and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination