CN114124756A - Network service delay testing method and device, electronic equipment and storage medium - Google Patents

Network service delay testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114124756A
CN114124756A CN202010905427.1A CN202010905427A CN114124756A CN 114124756 A CN114124756 A CN 114124756A CN 202010905427 A CN202010905427 A CN 202010905427A CN 114124756 A CN114124756 A CN 114124756A
Authority
CN
China
Prior art keywords
service
message
time
packet
preset
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
CN202010905427.1A
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.)
China Mobile Communications Group Co Ltd
China Mobile IoT Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile IoT 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 China Mobile Communications Group Co Ltd, China Mobile IoT Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010905427.1A priority Critical patent/CN114124756A/en
Publication of CN114124756A publication Critical patent/CN114124756A/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/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a network service delay testing method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: receiving a first service message; comparing the first service message with a preset message template, wherein the preset message template at least comprises a first preset message and a second preset message; under the condition that a second service message is matched with the first preset message, if the first service message is matched with the second preset message, determining a network service delay test result based on first time and second time, wherein the second service message is a message received by the network service delay test device, the first time is the time for receiving the first service message, and the second time is the time for receiving the second service message; and sending the first service message. The method and the device can avoid network service failure caused by service delay test.

Description

Network service delay testing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data services, and in particular, to a method and an apparatus for testing network service latency, an electronic device, and a storage medium.
Background
The existing message delay test mainly calculates the total delay of a message by constructing a special single message, carrying the resident accumulated delay information of the message in all current path equipment, all path links and the time information of the message entering the current equipment in the tested message, and recording the accumulated transmission delay information in the message. However, by constructing a special single message to add a timestamp to the measured message, the measured message carries time information, which may cause the measured message to be unable to be analyzed normally by the service system, thereby causing network service failure.
Disclosure of Invention
The embodiment of the application provides a network service delay test method, a network service delay test device, electronic equipment and a storage medium, so as to solve the problem that a network service fails due to service delay test.
The embodiment of the application provides a network service delay testing method, which is applied to a network service delay testing device, wherein one end of the network service delay testing device is connected with a tested device, and the other end of the network service delay testing device is connected with an access network device, and the method comprises the following steps:
receiving a first service message;
comparing the first service message with a preset message template, wherein the preset message template at least comprises a first preset message and a second preset message;
under the condition that a second service message is matched with the first preset message, if the first service message is matched with the second preset message, determining a network service delay test result based on first time and second time, wherein the second service message is a message received by the network service delay test device, the first time is the time for receiving the first service message, and the second time is the time for receiving the second service message;
and sending the first service message.
The embodiment of the application provides a network service time delay testing arrangement, the one end of device is connected with the equipment under test, the other end and the access network equipment of device are connected, include:
a first receiving unit, configured to receive a first service packet;
the first comparison unit is used for comparing the first service message with a preset message template, wherein the preset message template at least comprises a first preset message and a second preset message;
a first determining unit, configured to determine a network service delay test result based on a first time and a second time when a second service packet is matched with the first preset packet, where the second service packet is a packet received by the network service delay test apparatus, the first time is a time when the first service packet is received, and the second time is a time when the second service packet is received;
and the first sending unit is used for sending the first service message.
In a third aspect, an embodiment of the present application further provides an electronic device, including: the network traffic delay test method comprises a memory, a processor and a program or instructions stored on the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the network traffic delay test method disclosed in the first aspect of the embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides a storage medium, where the readable storage medium stores a program or instructions, and the program or instructions, when executed by a processor, implement the steps in the network traffic delay testing method disclosed in the first aspect of the embodiment of the present application.
In this way, in the embodiment of the present application, under the condition that a second service packet is matched with the first preset packet, if the first service packet is matched with the second preset packet, a network service delay test result is obtained according to a first time for receiving the first service packet and a second time for receiving the second service packet, and the received service packet is sent, so that the network service to be tested is not affected, and a technical effect of avoiding a network service failure caused by a service delay test is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a network service delay testing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another network service delay testing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another network service delay testing method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a network service delay testing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another network service delay testing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another network service delay testing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another network service delay testing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another network service delay testing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another network service delay testing apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic flowchart of a network service delay testing method provided in an embodiment of the present application, and as shown in fig. 1, the method is applied to a network service delay testing apparatus, where one end of the network service delay testing apparatus is connected to a device to be tested, and the other end of the network service delay testing apparatus is connected to an access network device, and includes the following steps:
step 101, receiving a first service message.
The first service packet may be a packet corresponding to the last step of the network service process to be tested, for example: the network service process to be tested comprises step 1, step 2, step 3 and step 4, and the first service packet may correspond to step 4.
Step 102, comparing the first service message with a preset message template, wherein the preset message template at least comprises a first preset message and a second preset message.
The preset message template includes each step of the network service process to be tested, for example: the network service process to be tested includes step 1, step 2, step 3 and step 4, and the preset message template also includes preset message 1, preset message 2, preset message 3 and preset message 4, where the preset message 1 corresponds to step 1, the preset message 2 corresponds to step 2, the preset message 3 corresponds to step 3, and the preset message 4 corresponds to step 4.
The comparison may be performed by comparing the service packet with an unmatched step in a preset packet template, for example: the preset message template comprises a preset message 1, a preset message 2 and a preset message 3, and under the condition that the preset message 1 is matched with the service message, the first service message is compared with the unmatched preset message 2 and the unmatched preset message 3 to determine whether the preset message matched with the first service message exists.
Step 103, under the condition that a second service packet is matched with the first preset packet, if the first service packet is matched with the second preset packet, determining a network service delay test result based on a first time and a second time, wherein the second service packet is a packet received by the network service delay test device, the first time is a time for receiving the first service packet, and the second time is a time for receiving the second service packet.
The second service packet may be a packet corresponding to the first step of the network service process to be tested, for example: the network service process to be tested includes step 1, step 2, step 3 and step 4, and the second service packet may correspond to step 1.
The network service delay test result may be obtained according to a difference between the first time and the second time, for example: the first time is t1The second time is t2Then the network traffic delay is t1-t2|。
And step 104, sending the first service message.
The first service packet sent above may be a received first service packet, for example: the first service message needs to be changed in the network service delay test process, but the data content of the sent first service message is not changed, and the first service message can be transmitted from a source address to a destination address without being influenced by the network service delay test device.
In this embodiment, it should be noted that there is no precedence order between step 104 and step 102 and step 103. For example: step 104 may be performed before step 102, after step 103, or simultaneously with step 102 and step 103, which is not limited in this embodiment.
In the embodiment of the application, under the condition that a second service message is matched with a first preset message, if the first service message is matched with the second preset message, a network service delay test result is obtained according to a first time for receiving the first service message and a second time for receiving the second service message, and the received service message is sent, so that the network service to be tested is not affected, and the technical effect of avoiding network service failure caused by service delay test is realized.
Optionally, as shown in fig. 2, before step 101, the method may further include the following steps:
and 105, receiving a second service message.
Step 106, comparing the second service message with the preset message template to determine whether the second service message is matched with the first preset message.
The second service template may be a second service template to which a timestamp is added, for example: before comparing the second service packet with the preset packet template, the method may include:
adding a timestamp to the second service packet, wherein the timestamp comprises the second time;
comparing the second service packet with the preset packet template may include:
and comparing the second service message added with the timestamp with the preset message template.
And step 107, sending the second service message.
Before the step 101, various data messages may be received, for example: the method comprises the steps that a service message which can be matched with a preset message template or a message which cannot be matched with the preset message template is compared with the preset message template to determine whether a message which is matched with a preset message in the preset message template exists or not.
The port for receiving the second service packet and the port for receiving the first service packet may not be one, and the port for transmitting the second service packet and the port for transmitting the first service packet may not be one.
In this embodiment, before comparing the received first service packet with the second preset packet, it is determined whether there is a match between the second service packet and the first preset packet, and if there is a match between the second service packet and the first preset packet, it may be determined that the service process to be tested is completed, and the obtained test result is the whole network service delay to be tested, so as to improve the accuracy of testing the whole network service delay.
Optionally, the receiving the first service packet includes:
receiving the first service message sent by the access network equipment;
the sending the first service packet includes:
sending the first service message to the tested equipment;
the receiving the second service packet includes:
receiving the second service message sent by the tested device;
the sending the second service packet includes:
and sending the second service message to the access network equipment.
The network service delay test device tests a service delay result through the first service message and the second service message, but does not change a transmission path of the first service message and the second service message.
In this embodiment, by receiving the first service packet sent by the access network device, sending the first service packet to the device to be tested, receiving the second service packet sent by the device to be tested, and sending the second service packet to the access network device, the data contents of the first service packet and the second service packet are not affected, that is, the network service under test can be performed normally.
Optionally, before comparing the first service packet with a preset packet template, the method includes:
displaying the preset message template;
receiving an adjustment input of a user;
responding to the adjustment input, and adjusting the messages in the preset message template, wherein the adjustment input comprises at least one of the following items:
adding messages, deleting messages and modifying messages;
the comparing the first service message with a preset message template comprises:
and comparing the first service message with the adjusted preset message template.
The preset message template may be created in advance, for example: when the time delay of a certain registration service is tested, a message template is created in advance according to the service flow, and the preset message template can be dynamically adjusted according to the adjustment input of a user under the condition that the registration service flow is changed.
In this embodiment, the preset message template may be adjusted according to the network service to be tested, the first service template may be matched with the adjusted preset message template, service delay tests may be performed on various network services, and flexibility is high.
Optionally, before comparing the first service packet with a preset packet template, the method further includes:
adding a timestamp to the first service packet, wherein the timestamp comprises the first time;
the comparing the first service message with a preset message template comprises:
comparing the first service message added with the timestamp with the preset message template;
the determining a network service delay test result based on the first time and the second time includes:
and acquiring the first time in the first service message added with the timestamp, and determining a network service delay test result based on the first time and the second time.
In this embodiment, the timestamp may be added to all messages received by the network service delay testing apparatus, for example: the network service delay testing device receives the message 1, the message 2 and the message 3, adds a time stamp to the message 1 to record the time for receiving the message 1, adds a time stamp to the message 2 to record the time for receiving the message 2, and adds a time stamp to the message 3 to record the time for receiving the message 3.
In this embodiment, the second time may be included in a timestamp added to the second service packet, and the first time for receiving the first service packet and the second time for receiving the second service packet are directly obtained according to the timestamp through the first service packet after the timestamp is added and the second service packet after the timestamp is added, so that the test cost of network service delay can be reduced.
Optionally, step 104 may include:
and removing the timestamp in the first service message added with the timestamp, and sending the first service message without the timestamp.
In this embodiment, the timestamp in the first service packet with the timestamp added is removed, and the first service packet with the timestamp removed is sent, so that the influence on the analysis of the detected packet by the service system is reduced.
Optionally, step 104 may be followed by the following steps:
generating a network service delay test report based on the network service delay test result;
and displaying the network service delay test report.
The network service delay test report may include various contents, for example: the method comprises the steps of presetting a message template name, presetting message template content, a timestamp of a first service message, a timestamp of a second service message, a network service delay test result and the like.
The network service delay test report may be displayed based on various modes, for example: and displaying on a display screen of the network service delay testing device, logging in through a browser, and the like.
In this embodiment, a network service delay test report is generated and displayed according to the network service delay test result, and the network service delay test report is visually read, so that the service quality can be monitored, and a reference can be provided for an optimization direction.
Referring to fig. 3, fig. 3 is another network service delay testing method provided in the embodiment of the present application, which is described by taking the test of TR069 for first registration service as an example, and as shown in fig. 3, the method includes the following steps:
step 301, building a test topology according to the test environment, and ensuring that the network service delay test device is normally connected with the tested equipment and the access network equipment.
Step 302, setting a message template as TR069 to register a service process for the first time:
template step 1: first sending a message
request “POST”
Host “172.168.10.10”
Manufacturer “CIOT”
Serialnumber “CIOT00123456”
Eventcode "X CMCC BIND"
InternetGatewayDevice.X_CMCC_UserInfo.Password "1111122222"
Template step 2: failure of first response
response “401”
Template step 3: secondary transmission
request “POST”
Host “172.168.10.10”
manufacturer “CIOT”
serialnumber “CIOT00123456”
eventcode "X CMCC BIND"
InternetGatewayDevice.X_CMCC_UserInfo.Password "1111122222"
response “401”
Template step 4: success of secondary response
Figure BDA0002661246420000081
Template step 5: platform setting status code 0
……
Template step N: platform setting result code 0 response is successful
Figure BDA0002661246420000091
Step 303, starting the matching work of the first registration service flow of the message template TR 069.
And step 304, the tested device starts to perform the first registration service process corresponding to TR 069.
Step 305, after the flow is executed, checking a delay test report:
test report template name: TR069 first registration service process
Template step 1: first sending a message
Figure BDA0002661246420000092
……
Template step N: platform setting result code 0 response is successful
Figure BDA0002661246420000093
Step 306, generating a result according to the test report:
service message logic delay D ═ template step N (timestamp) — template step 1 (timestamp) ═ 1588683069816 ═ 1588682936814 ═ 133002ms ═ 133.002 seconds.
In the embodiment, a mode that a normal service message is not modified and a normal service flow is not affected is adopted, an end-to-end delay test of a service overall flow message can be realized by connecting a network service delay test device in series on a communication link, and a mode that a service logic template is matched with a captured message is adopted, so that the delay state of the whole service flow can be tested more accurately, and the real-time quality of the service is better monitored.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a network service delay testing apparatus according to an embodiment of the present application, and as shown in fig. 4, the apparatus 400 includes:
a first receiving unit 401, configured to receive a first service packet;
a first comparing unit 402, configured to compare the first service packet with a preset packet template, where the preset packet template at least includes a first preset packet and a second preset packet;
a first determining unit 403, configured to determine, if a second service packet is matched with the first preset packet, a network service delay test result based on a first time and a second time when the first service packet is matched with the second preset packet, where the second service packet is a packet received by the network service delay test apparatus, the first time is a time when the first service packet is received, and the second time is a time when the second service packet is received;
a first sending unit 404, configured to send the first service packet.
Optionally, as shown in fig. 5, the apparatus 400 further includes:
a second receiving unit 405, configured to receive a second service packet;
a second comparing unit 406, configured to compare the second service packet with the preset packet template, so as to determine whether the second service packet matches the first preset packet;
a second sending unit 407, configured to send the second service packet.
Optionally, the first receiving unit 401 is specifically configured to:
receiving the first service message sent by the access network equipment;
the first sending unit 404 is specifically configured to:
sending the first service message to the tested equipment;
the second receiving unit 405 is specifically configured to:
receiving the second service message sent by the tested device;
the second sending unit 407 is specifically configured to:
and sending the second service message to the access network equipment.
Optionally, as shown in fig. 6, the apparatus 400 further includes:
a first display unit 408, configured to display the preset message template;
a third receiving unit 409, configured to receive an adjustment input from a user;
an adjusting unit 410, configured to adjust, in response to the adjustment input, the packet in the preset packet template, where the adjustment input includes at least one of the following:
adding messages, deleting messages and modifying messages;
the first comparing unit 402 is specifically configured to:
and comparing the first service message with the adjusted preset message template.
Optionally, as shown in fig. 7, the apparatus 400 further includes:
a processing unit 411, configured to add a timestamp to the first service packet, where the timestamp includes the first time;
the first comparing unit 402 is specifically configured to:
comparing the first service message added with the timestamp with the preset message template;
the first determining unit 403 is specifically configured to:
and acquiring the first time in the first service message added with the timestamp, and determining a network service delay test result based on the first time and the second time.
Optionally, the first sending unit 404 is specifically configured to:
and removing the timestamp in the first service message added with the timestamp, and sending the first service message without the timestamp.
Optionally, as shown in fig. 8, the apparatus 400 further includes:
a report generating unit 412, configured to generate a network service delay test report based on the network service delay test result;
and a second display unit 413, configured to display the network service delay test report.
The apparatus 400 can implement each process implemented by the network message delay testing method in the method embodiments of fig. 1 to fig. 3, and is not described here again to avoid repetition. The apparatus 400 may achieve the technical effect of avoiding network service failure caused by service delay test.
Referring to fig. 9, fig. 9 is a schematic structural diagram of another network service delay testing apparatus provided in this embodiment of the present application, as shown in fig. 9, an end of the apparatus 900 is connected to a device under test 100, and the other end is connected to an access network device 200, where the apparatus 900 includes a downlink module 901, an uplink module 902, a message copying module 903, a message storage module 904, a message analysis module 905, a message template storage module 906, a message template generation module 907, an analysis report generation module 908, and a web module 909, where:
a downlink module 901, a first end of the downlink module 901 is connected to the interface of the device under test 100, and a second end of the downlink module 901 is connected to the first end of the message copy module 903, and is configured to parse the data message according to the interface protocol message and send the data message to the message copy module 903 with a time stamp, or receive the data message from the message copy module, assemble the data message into a corresponding interface protocol, and send the corresponding interface protocol to the interface of the device under test 100.
Wherein, the above-mentioned marking time may be adding a time stamp.
And an uplink module 902, where a first end of the uplink module 902 is connected to the interface of the access network device 200, and a second end of the uplink module 902 is connected to a second end of the message copying module 903, and is configured to parse a data message according to the interface protocol message, mark time and send the data message to the message copying module, or receive the data message from the message copying module and assemble the data message into a corresponding interface protocol message to send to the interface of the access network device 200.
A message copying module 903, wherein the output end of the message copying module 903 is connected with the input end of the message storage module 904, and is used for receiving a message from the downlink module 901, copying a copy of the received message and transmitting the copy to the message storage module 904, and removing the marking time and transmitting the copy to the uplink module 902; on the contrary, the system is used for receiving a message from the uplink module 902, copying a copy of the message, transmitting the copy to the message storage module 904, removing the marking time, and transmitting the copy to the downlink module 901.
And the output end of the message storage module 904 is connected to the first input end of the message analysis module 905, and is used for receiving the message sent by the message copying module 903, storing the message according to the message label, and providing the message for the message analysis module 905 to read.
The output end of the message analysis module 905 is connected to the message analysis report generation module 908, and is configured to read the message stored in the message storage module 904 and read the unmatched template step in the message template storage module 906, perform comparison, and if matching is successful, associate the template step with the message, and associate the time recorded by the message in the message storage module 904.
The time recorded in the message storage module 904 by the message is the time for the device 900 to receive the message.
A message template storage module 906, configured to store a message template to be matched, where the template records, in a step form, contents that the message in each step needs to contain.
The output end of the message template generation module 907 is connected with the input end of the message template storage module 906 and is used for managing message addition, message deletion, message modification and message content flexible creation of each step in the template.
And the output end of the analysis report generation module 908 is connected with the input end of the Web module 909, and is used for reading the test result of the message analysis module 905 and generating a test report.
The output end of the Web module 909 is connected with the input end of the message template generation module 907, and is used for providing a front-end interface, logging in the test device through a browser, visually establishing a test template and the steps thereof, adding, deleting or modifying the test template and the steps thereof, and visually reading and exporting a test report.
In this embodiment, one end of the apparatus 900 is connected to the device under test 100, and the other end is connected to the access network device 200. The device 900 copies the data packet and stores the arrival time of the packet, and then analyzes and processes the packet internally, so as to determine the packet conforming to the template, and after the templates are completely matched, the device calculates the completion time of the whole network service, i.e. the network service delay. The device 900 is connected in series to the network link line, and performs transparent transmission on network data without interfering with normal services.
In this embodiment, the device 900 may test the service delay in a manner that the normal service packet is not modified and the normal service flow is not affected, and may improve the accuracy of the test and better monitor the real-time quality of the service in a manner that the packet template is matched with the captured packet.
The embodiment of the present application further provides an electronic device, where the electronic device 1000 includes a processor 1001, a memory 1002, and a program or an instruction stored in the memory 1002 and capable of running on the processor 1001, and when the program or the instruction is executed by the processor 1001, the process of the network service message delay testing method embodiment is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing network service packet delay testing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods of the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A network service delay test method is applied to a network service delay test device, one end of the network service delay test device is connected with a tested device, and the other end of the network service delay test device is connected with an access network device, and the method is characterized by comprising the following steps:
receiving a first service message;
comparing the first service message with a preset message template, wherein the preset message template at least comprises a first preset message and a second preset message;
under the condition that a second service message is matched with the first preset message, if the first service message is matched with the second preset message, determining a network service delay test result based on first time and second time, wherein the second service message is a message received by the network service delay test device, the first time is the time for receiving the first service message, and the second time is the time for receiving the second service message;
and sending the first service message.
2. The method of claim 1, wherein prior to receiving the first service packet, the method further comprises:
receiving a second service message;
comparing the second service message with the preset message template to determine whether the second service message is matched with the first preset message;
and sending the second service message.
3. The method of claim 2, wherein receiving the first service packet comprises:
receiving the first service message sent by the access network equipment;
the sending the first service packet includes:
sending the first service message to the tested equipment;
the receiving the second service packet includes:
receiving the second service message sent by the tested device;
the sending the second service packet includes:
and sending the second service message to the access network equipment.
4. The method of claim 1, wherein before comparing the first service packet with a predetermined packet template, the method comprises:
displaying the preset message template;
receiving an adjustment input of a user;
responding to the adjustment input, and adjusting the messages in the preset message template, wherein the adjustment input comprises at least one of the following items:
adding messages, deleting messages and modifying messages;
the comparing the first service message with a preset message template comprises:
and comparing the first service message with the adjusted preset message template.
5. The method of claim 1, wherein before comparing the first service packet with a predetermined packet template, the method further comprises:
adding a timestamp to the first service packet, wherein the timestamp comprises the first time;
the comparing the first service message with a preset message template comprises:
comparing the first service message added with the timestamp with the preset message template;
the determining a network service delay test result based on the first time and the second time includes:
and acquiring the first time in the first service message added with the timestamp, and determining a network service delay test result based on the first time and the second time.
6. The method of claim 5, wherein the sending the first traffic packet comprises:
and removing the timestamp in the first service message added with the timestamp, and sending the first service message without the timestamp.
7. The method of claim 1, wherein after determining the network traffic latency test result based on the first time and the second time, the method further comprises:
generating a network service delay test report based on the network service delay test result;
and displaying the network service delay test report.
8. A network service time delay testing device, one end of the device is connected with a tested device, and the other end of the device is connected with an access network device, the device is characterized in that the device comprises:
a first receiving unit, configured to receive a first service packet;
the first comparison unit is used for comparing the first service message with a preset message template, wherein the preset message template at least comprises a first preset message and a second preset message;
a first determining unit, configured to determine a network service delay test result based on a first time and a second time when a second service packet is matched with the first preset packet, where the second service packet is a packet received by the network service delay test apparatus, the first time is a time when the first service packet is received, and the second time is a time when the second service packet is received;
and the first sending unit is used for sending the first service message.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executed on the processor, the program or instructions, when executed by the processor, implementing the steps of the network traffic latency testing method of any one of claims 1 to 7.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the network traffic latency testing method according to any one of claims 1 to 7.
CN202010905427.1A 2020-09-01 2020-09-01 Network service delay testing method and device, electronic equipment and storage medium Pending CN114124756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010905427.1A CN114124756A (en) 2020-09-01 2020-09-01 Network service delay testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010905427.1A CN114124756A (en) 2020-09-01 2020-09-01 Network service delay testing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114124756A true CN114124756A (en) 2022-03-01

Family

ID=80360437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010905427.1A Pending CN114124756A (en) 2020-09-01 2020-09-01 Network service delay testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114124756A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009099357A1 (en) * 2008-02-07 2009-08-13 Telefonaktiebolaget L M Ericsson (Publ) Method and device for transport delay analysis
CN109617743A (en) * 2019-01-10 2019-04-12 北京新宇航星科技有限公司 network performance monitoring and service testing system and testing method
CN111181798A (en) * 2019-08-28 2020-05-19 腾讯科技(深圳)有限公司 Network delay measuring method and device, electronic equipment and storage medium
CN111246509A (en) * 2018-11-29 2020-06-05 展讯通信(上海)有限公司 Method and device for testing network delay through PDCP message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009099357A1 (en) * 2008-02-07 2009-08-13 Telefonaktiebolaget L M Ericsson (Publ) Method and device for transport delay analysis
CN111246509A (en) * 2018-11-29 2020-06-05 展讯通信(上海)有限公司 Method and device for testing network delay through PDCP message
CN109617743A (en) * 2019-01-10 2019-04-12 北京新宇航星科技有限公司 network performance monitoring and service testing system and testing method
CN111181798A (en) * 2019-08-28 2020-05-19 腾讯科技(深圳)有限公司 Network delay measuring method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US7844692B2 (en) Web server multiplier for analyzing resource leaks
CN107122258A (en) Method and apparatus for the state code check of test interface
US7908519B2 (en) Trouble emulator for a rules-based diagnostic system
CN107291608B (en) Test script generation method, interface subscription/registration method and device
CN115242689B (en) Vehicle-mounted gateway testing method, system and computer readable storage medium
CN104834588A (en) Permanent residence cross site script vulnerability detection method and apparatus
CN113114794A (en) Method and device for processing domain name based on secondary proxy
CN111385163A (en) Flow analysis and detection method and device
CN113742250B (en) Automatic interface testing method and device
CN107360036B (en) Network fault positioning method, terminal and server
CN108595320B (en) Test method and device
CN105224420B (en) A kind of analysis method and system of automatic parsing terminal abnormal
CN114625645A (en) Service testing method and device, electronic equipment and readable storage medium
CN117499287A (en) Web testing method, device, storage medium and proxy server
CN112671574A (en) Front-end and back-end joint debugging method and device, proxy equipment and storage medium
CN110691012B (en) Message processing method and tester
CN114531345A (en) Method, device and equipment for storing flow comparison result and storage medium
CN112905460A (en) Device and method for simulating three-party receipt by automatic interface test
CN114124756A (en) Network service delay testing method and device, electronic equipment and storage medium
CN113448835A (en) Static resource testing method and device, electronic equipment and storage medium
CN111949537A (en) Interface test method, device, equipment and medium
US20240056370A1 (en) Data transmission control method and apparatus, electronic device, and storage medium
JP2007264921A (en) Performance information extraction program and apparatus
US8825843B2 (en) System and methods for monitoring a geographic information system
CN110362464B (en) Software analysis method and equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220301

RJ01 Rejection of invention patent application after publication