WO2017152880A1 - Method for testing performance of mobile network, mobile terminal, server and testing system - Google Patents

Method for testing performance of mobile network, mobile terminal, server and testing system Download PDF

Info

Publication number
WO2017152880A1
WO2017152880A1 PCT/CN2017/076325 CN2017076325W WO2017152880A1 WO 2017152880 A1 WO2017152880 A1 WO 2017152880A1 CN 2017076325 W CN2017076325 W CN 2017076325W WO 2017152880 A1 WO2017152880 A1 WO 2017152880A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
type
mobile terminal
packet
performance statistics
Prior art date
Application number
PCT/CN2017/076325
Other languages
French (fr)
Chinese (zh)
Inventor
尹建华
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017152880A1 publication Critical patent/WO2017152880A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a performance testing method for a mobile network, a mobile terminal, a server, and a testing system.
  • the current optimization method is often focused on a single point on the end-to-end link, such as packet capture on the terminal side, packet capture on the internal network element of the access network, or monitoring analysis using a hard probe device.
  • the main purpose of the present invention is to provide a performance testing method for a mobile network, a mobile terminal, a server, and a test system, which are designed to perform performance testing on a real network by using a mobile terminal to obtain packet loss and mess on an end-to-end link.
  • Indicators such as order and throughput allow accurate diagnosis of mobile networks.
  • the present invention provides a performance testing method for a mobile network, and the performance testing method of the mobile network includes the following steps:
  • the mobile terminal sends the first type control packet to the server, and after receiving the reply of the server, continuously sends a predetermined number of first type data packets to the server;
  • the mobile terminal After the first type of data packet is sent, the mobile terminal sends the second type control packet to the a server to notify the server that the uplink data transmission is completed in the current round;
  • the method further includes:
  • the internal processing delay of the server is calculated by the server according to a difference between a current time and a joining time of the first type of data packet into the queue.
  • the steps to write performance statistics to the test log file include:
  • the mobile terminal When receiving the third type control packet, the mobile terminal acquires uplink performance statistics calculated by the server from the third type control packet;
  • the present invention also provides a performance testing method for a mobile network, where the performance testing method of the mobile network includes:
  • the server When receiving the first type control packet sent by the mobile terminal, the server bounces the first type control packet back to the mobile terminal;
  • the uplink performance statistics of the current round are calculated, and the uplink performance statistics are put into the third type control packet, and then the third type control packet is used.
  • Sending to the mobile terminal where the mobile terminal writes the uplink performance statistics and the calculated downlink performance statistics into the test log file.
  • the step of bounce the first type control packet back to the mobile terminal includes:
  • the server parses out an international mobile subscriber identity (IMSI) contained in the first type of control packet, and searches for a corresponding user record according to the IMSI;
  • IMSI international mobile subscriber identity
  • the server bounces the first type control packet back to the mobile terminal, and creates a new user record
  • the server creates a new user record and bounces the first type of control packet back to the mobile terminal.
  • the step of the server bounces the first type of control packet back to the mobile terminal after receiving the first type of control packet sent by the mobile terminal further includes:
  • the server searches for a corresponding user record according to the IMSI
  • the server extracts the number of rounds of the first type of data packet, the terminal side packet time stamp field, and the serial number, and places the first type data packet according to the serial number. Entering a predetermined position of the queue, and setting the in-position field of the queue to a second predetermined value;
  • the method further includes:
  • the present invention further provides a mobile terminal, where the mobile terminal includes:
  • a first sending module configured to send a first type control packet to the server, and continuously send a predetermined number of first type data packets to the server after receiving the reply of the server;
  • the second sending module is configured to send the second type of control packet to the server after the first type of data packet is sent, to notify the server that the uplink data transmission is completed in the current round;
  • the calculation processing module is configured to receive the second type of data packet sent by the server, and obtain the uplink performance statistics calculated by the server when receiving the third type control packet sent by the server, and calculate the current round of the performance statistics Downstream performance statistics, the uplink performance statistics and the next Line performance statistics are written to the test log file.
  • the server comprises:
  • a bounce module configured to bounce the first type control packet back to the mobile terminal when receiving the first type control packet sent by the mobile terminal
  • a third sending module configured to receive a first type of data packet sent by the mobile terminal, and continuously send a predetermined number of second types to the mobile terminal when receiving the second type of control packet sent by the mobile terminal data pack;
  • the fourth sending module is configured to: after the second type of data packet is sent, calculate the uplink performance statistics of the current round, and put the uplink performance statistics into the third type control packet, and then The three types of control packets are sent to the mobile terminal, so that the mobile terminal writes the uplink performance statistics and the calculated downlink performance statistics into the test log file.
  • the present invention also provides a test system including a mobile terminal and a server.
  • the mobile terminal includes:
  • a first sending module configured to send a first type control packet to the server, and continuously send a predetermined number of first type data packets to the server after receiving the reply of the server;
  • the second sending module is configured to send the second type of control packet to the server after the first type of data packet is sent, to notify the server that the uplink data transmission is completed in the current round;
  • the calculation processing module is configured to receive the second type of data packet sent by the server, and obtain the uplink performance statistics calculated by the server when receiving the third type control packet sent by the server, and calculate the current round of the performance statistics
  • the downlink performance statistics data is sent to the test log file by using the uplink performance statistics and the downlink performance statistics.
  • the server includes:
  • a bounce module configured to bounce the first type control packet back to the mobile terminal when receiving the first type control packet sent by the mobile terminal
  • a third sending module configured to receive a first type of data packet sent by the mobile terminal, and continuously send a predetermined number of second types to the mobile terminal when receiving the second type of control packet sent by the mobile terminal data pack;
  • the fourth sending module is configured to: after the second type of data packet is sent, calculate the uplink performance statistics of the current round, and put the uplink performance statistics into the third type control packet, and then Sending the third type control packet to the mobile terminal, where the mobile terminal writes the uplink performance statistics and the calculated downlink performance statistics into a test log file.
  • the performance testing method for the mobile network provided by the present invention, the mobile terminal, the server and the testing system, send the first type control packet to the server through the mobile terminal, and continuously send the first type data packet to the server after receiving the reply from the server After the transmission is completed, the mobile terminal sends the second type control packet to the server to notify the current round of uplink data transmission, and obtains the uplink performance statistics calculated by the server when receiving the third type control packet sent by the server. And calculating downlink performance statistics of the current round, and then writing the uplink performance statistics and downlink performance statistics into the test log file.
  • the mobile terminal is used to perform performance testing on the real network to obtain indicators such as packet loss, out-of-order, and throughput on the end-to-end link, so that the mobile network can be accurately diagnosed.
  • FIG. 1 is a schematic flowchart of a first embodiment of a performance testing method for a mobile network according to the present invention
  • FIG. 2 is a schematic diagram of an embodiment of different types of control packets and data packets defined by the present invention
  • FIG. 3 is a schematic diagram of sending and receiving a packet between a mobile terminal and a server according to the present invention
  • FIG. 4 is a schematic flowchart diagram of a second embodiment of a performance testing method for a mobile network according to the present invention.
  • FIG. 5 is a schematic diagram showing the refinement process of step S13 in FIG. 4;
  • FIG. 6 is a schematic flowchart of a third embodiment of a performance testing method for a mobile network according to the present invention.
  • FIG. 7 is a schematic diagram showing the refinement process of step S21 in FIG. 6;
  • FIG. 8 is a schematic diagram showing the field composition of each message according to the present invention.
  • FIG. 9 is a schematic flowchart of a fourth embodiment of a performance testing method for a mobile network according to the present invention.
  • FIG. 10 is a schematic flowchart of a fifth embodiment of a performance testing method for a mobile network according to the present invention.
  • 11 is a schematic diagram of a message queue on the server side
  • FIG. 12 is a schematic diagram of functional modules of an embodiment of a mobile terminal according to the present invention.
  • FIG. 13 is a schematic diagram of functional modules of an embodiment of a server according to the present invention.
  • FIG. 14 is a schematic diagram of functional modules of an embodiment of a test system of the present invention.
  • the present invention provides a performance testing method for a mobile network.
  • the performance testing method of the mobile network includes the following steps:
  • Step S11 the mobile terminal sends the first type control packet to the server, and after receiving the reply of the server, continuously sends a predetermined number of first type data packets to the server;
  • the mobile terminal and the server are used together, and both parties need to comply with a specific test protocol, and the protocol mainly includes an interaction step, a format definition of the control packet and the data packet, and an abnormal situation processing. Therefore, from the perspective of implementation, the mobile terminal periodically sends the uplink control packet and the data packet in a specific mode according to the test protocol, receives the downlink data packet and completes the statistical calculation, and saves the test log file for subsequent analysis; and the server presses the control protocol. Receiving various uplink data packets, calculating the uplink performance statistics indicators, carrying them to the mobile terminal, and transmitting the downlink control packets and data packets according to the test protocol.
  • the first type control packet carries the control parameter of the downlink sending packet, and after the mobile terminal receives the reply of the server, the mobile terminal starts the sending process.
  • the present invention defines different types of control packets and data packets, a first type of control packet (S packet), a first type of data packet (U packet), a second type of control packet (# packet), and a second type of data packet (D).
  • S packet first type of control packet
  • U packet first type of data packet
  • # packet second type of control packet
  • D second type of data packet
  • Package third type control package ($package)
  • T package fourth type control package
  • the S and T packages are the control packets issued by the user after pressing the start and stop buttons, respectively, and other packages will appear in each round of testing. For example, if the user configures 10 rounds of tests, the test will normally include U(N)-#-D(N)-$-U(N)-#-D(N)-$-.. This cycle is 10 times.
  • Step S12 After the first type of data packet is sent, the mobile terminal sends a second type control packet to the server, to notify the server that the uplink data transmission is complete.
  • the mobile terminal after the N U packets are sent, the mobile terminal notifies the server that the uplink data transmission of the current round is completed, and the server starts to continuously send N D packets at this time.
  • Step S13 Receive a second type of data packet sent by the server, and obtain uplink performance statistics calculated by the server when receiving the third type control packet sent by the server, and calculate downlink performance statistics of the current round. Data, the uplink performance statistics and downlink performance statistics The data is written to the test log file.
  • the mobile terminal after receiving the $ packet, calculates the downlink performance statistics of the current round, and writes the test log file together with the uplink performance statistics calculated by the server.
  • the mobile terminal enters the next round of packet transmission, the mobile terminal first sends N U packets, and the server sends N D packets, that is, adopts a half duplex test mode until the user presses the stop button to trigger a stop command, and the mobile terminal Then send a T packet to the server to end the performance test for the mobile network.
  • the mobile network mentioned in the present invention includes, but is not limited to, GSM (Global System for Mobile Communication), UMTS (Universal Mobile Telecommunications System, UMTS (Universal Mobile Telecommunications System), CDMA ( Code Division Multiple Access, TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplex-Long Term Evolution), TDD-LTE ( Wireless system such as time division duplexing-long-term evolution technology.
  • GSM Global System for Mobile Communication
  • UMTS Universal Mobile Telecommunications System
  • CDMA Code Division Multiple Access
  • TD-SCDMA Time Division-Synchronous Code Division Multiple Access
  • FDD-LTE Frequency Division Duplex-Long Term Evolution
  • TDD-LTE Wireless system such as time division duplexing-long-term evolution technology.
  • PS Packet Switch
  • IP transmission network IP transmission network
  • various service servers on the Internet which constitutes the whole. End-to-end service transmission path.
  • the performance testing method for the mobile network sends a first type control packet to the server through the mobile terminal, and continuously sends the first type data packet to the server after receiving the reply from the server, and the mobile terminal sends the first type data packet to the server.
  • the second type of control packet is sent to the server to notify the current round of uplink data transmission.
  • the third type control packet sent by the server is received, the uplink performance statistics calculated by the server are obtained, and the downlink performance of the current round is calculated.
  • the statistics are then written into the test log file by the uplink performance statistics and the downlink performance statistics.
  • the mobile terminal is used to perform performance testing on the real network to obtain indicators such as packet loss, out-of-order, and throughput on the end-to-end link, so that the mobile network can be accurately diagnosed.
  • the step S13 after receiving the second type of data packet sent by the server, further includes:
  • Step S14 determining whether the value of the terminal timestamp bounce field of the second type of data packet is the first predetermined value
  • Step S15 if no, acquiring a receiving moment of the second type of data packet
  • Step S16 Calculate a difference between the receiving time, the first predetermined value, and the internal processing delay of the server, obtain a valid delay, and record the valid delay into the test log file.
  • the internal processing delay of the server is calculated by the server according to a difference between a current time and a joining time of the first type of data packet into the queue.
  • the mobile terminal when the mobile terminal receives each D packet, the "terminal time stamp bounce" field in the D packet is directly taken from the "terminal side packet time stamp Tm" field in the corresponding U packet. If the terminal side time stamp Tm included in the terminal side is not 0 (the first predetermined value), the "server internal processing delay" in the D packet can be subtracted according to the difference between the receiving time and the Tm, thereby obtaining an effective one. Round trip delay and record the round trip delay to the test log file. If Tm is 0, the round trip delay cannot be obtained. Similar to the processing of the uplink U packet by the server, the mobile terminal extracts relevant information of each D packet and records it in the message queue on the mobile terminal side.
  • the step S13 includes:
  • Step S131 the mobile terminal acquires uplink performance statistics calculated by the server from the third type control packet when receiving the third type control packet.
  • Step S132 calculating downlink performance statistics of the current round including the packet loss rate, the out-of-order rate, and the throughput rate indicator according to the queue corresponding to the server side;
  • Step S133 according to the downlink performance statistics data, combined with the uplink performance statistics data, comprehensively collate the final result of the cost round test, and record it in the test log file.
  • the mobile terminal since the $packet indicates that the downlink D packet is sent, the mobile terminal starts to receive the downlink corresponding packet according to the message queue of the mobile terminal (corresponding to the server side) after receiving the first packet. Indicators such as rate, out-of-order rate and throughput rate, combined with the uplink corresponding indicator extracted from the package (because the uplink indicator has been calculated by the server, the field is placed in the $package, the mobile terminal can extract it), as this round The final result of the test is recorded in the test log file.
  • Indicators such as rate, out-of-order rate and throughput rate
  • the mobile terminal continues to receive the $packet and should normally receive four more. If you have received 4 After receiving n (n ⁇ 4), the remaining $ packets expired during the receiving process (the timeout threshold is determined by the executor), and it is considered that the packet is received and the mobile terminal enters the next round. U-#-D-$ send and receive loop. It can be understood that this embodiment does not limit the specific number of receiving $packets.
  • the mobile terminal When the user presses the test stop button, the mobile terminal continuously sends a predetermined number, such as 5 T packets, to the server, at which point the test is directly ended and the local resources are released.
  • a predetermined number such as 5 T packets
  • the server receives the first T packet, it deletes the record corresponding to the user, and after receiving other duplicate T packets, there is no action.
  • the present invention also provides a performance testing method for a mobile network.
  • the performance testing method of the mobile network includes the following steps:
  • Step S21 When receiving the first type control packet sent by the mobile terminal, the server bounces the first type control packet back to the mobile terminal;
  • the mobile terminal and the server are used together, and both parties need to comply with a specific test protocol, and the protocol mainly includes an interaction step, a format definition of the control packet and the data packet, and an abnormal situation processing. Therefore, from the perspective of implementation, the mobile terminal periodically sends the uplink control packet and the data packet in a specific mode according to the test protocol, receives the downlink data packet and completes the statistical calculation, and saves the test log file for subsequent analysis; and the server presses the control protocol. Receiving various uplink data packets, carrying the uplink indicators into the mobile terminal, and transmitting the downlink control packets and data packets according to the test protocol.
  • the first type control packet carries the control parameter of the downlink sending packet, and after the mobile terminal receives the reply of the server, the mobile terminal starts the sending process.
  • the present invention defines different types of control packets and data packets, a first type of control packet (S packet), a first type of data packet (U packet), a second type of control packet (# packet), and a second type of data packet (D).
  • S packet first type of control packet
  • U packet first type of data packet
  • # packet second type of control packet
  • D second type of data packet
  • Package third type control package ($package)
  • T package fourth type control package
  • the S and T packages are the control packets issued by the user after pressing the start and stop buttons, respectively, and other packages will appear in each round of testing. For example, if the user configures 10 rounds of tests, the test will normally include U(N)-#-D(N)-$-U(N)-#-D(N)-$-.. This cycle is 10 times.
  • Step S22 receiving a first type of data packet sent by the mobile terminal, and continuously transmitting a predetermined number of second type data packets to the mobile terminal when receiving the second type control packet sent by the mobile terminal;
  • the server continuously sends a predetermined number of N D packets to the mobile terminal, and after the transmission is completed, the server calculates the uplink performance statistics of the current round, and puts the uplink performance statistics into the $package, and then Send the $ packet to the mobile terminal.
  • the $ package also indicates that the downlink data of this round has been sent.
  • Step S23 after the second type of data packet is sent, calculate uplink performance statistics of the current round, and put the uplink performance statistics into a third type control packet, and then use the third type control packet. Sending to the mobile terminal, where the mobile terminal writes the uplink performance statistics and the calculated downlink performance statistics into the test log file.
  • the server when the server sends the D packet, the server calculates the uplink statistics of the current round, and puts the uplink performance statistics into the $packet, and sends the data to the mobile terminal, after the mobile terminal receives the $packet.
  • the downlink performance statistics of the current round are calculated, and the mobile terminal writes the uplink performance statistics and the downlink performance statistics together into the test log file.
  • the above is a round of packet delivery cycle. Normally, the next round of the packet issuance cycle is repeated, and steps S21 to S23 are repeated.
  • the fourth type control packet is sent to the server, when the server receives the message.
  • the performance test for the mobile network is ended.
  • the mobile terminal enters the next round of packet transmission, the mobile terminal first sends N U packets, and the server sends N D packets, that is, adopts a half duplex test mode until the user presses the stop button to trigger a stop command, and the mobile terminal Then send a T packet to the server to end the performance test for the mobile network.
  • the mobile network mentioned in the present invention includes, but is not limited to, GSM (Global System for Mobile Communication), UMTS (Universal Mobile Telecommunications System, UMTS (Universal Mobile Telecommunications System), CDMA ( Code Division Multiple Access, TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplex-Long Term Evolution), TDD-LTE ( Wireless system such as time division duplexing-long-term evolution technology.
  • GSM Global System for Mobile Communication
  • UMTS Universal Mobile Telecommunications System
  • CDMA Code Division Multiple Access
  • TD-SCDMA Time Division-Synchronous Code Division Multiple Access
  • FDD-LTE Frequency Division Duplex-Long Term Evolution
  • TDD-LTE Wireless system such as time division duplexing-long-term evolution technology.
  • PS Packet Switch
  • IP transmission network IP transmission network
  • various service servers on the Internet which constitutes the whole. End-to-end service transmission path.
  • the performance testing method for the mobile network when the server receives the first type control packet sent by the mobile terminal, bounces the first type control packet back to the mobile terminal, and receives the second type control sent by the mobile terminal.
  • the second type of data packet is continuously sent to the mobile terminal, waiting for After the transmission is completed, the uplink performance statistics of the current round are calculated, and placed in the third type control packet, and then the third type control packet is sent to the mobile terminal, so that the mobile terminal performs uplink performance statistics and the calculated downlink performance. Statistics are written to the test log file. In this way, by performing performance tests on the real network to obtain indicators such as packet loss, out-of-order, and throughput on the end-to-end link, accurate diagnosis of the mobile network can be performed.
  • the step S21 includes:
  • Step S211 the server parses out an international mobile subscriber identity IMSI contained in the first type control packet, and searches for a corresponding user record according to the IMSI;
  • Step S212 if the user record is found, the server bounces the first type control packet back to the mobile terminal, and creates a new user record;
  • the process of receiving the S packet by the server is as follows:
  • the server parses the IMSI contained in the S packet, and searches for the corresponding user record according to the IMSI; if the user record corresponding to the IMSI is found, it indicates that the resource preparation of the server side has been completed, but the response S packet that may be bounced back by the server last time may be If it is lost, the mobile terminal does not receive it, and this time it receives the retransmission S packet sent by the mobile terminal again. At this time, the server only needs to replay the retransmitted S packet. Another possibility is that when the mobile network was tested for performance last time, the mobile terminal was abnormal, causing it to fail to exit normally. In order to put the system in a predictable initialization state, the user record corresponding to the IMSI needs to be re-established.
  • Step S213 if not, the server creates a new user record and bounces the first type control packet back to the mobile terminal.
  • a new user record corresponding to the IMSI is created, wherein the core information included in the newly created user record is a message queue of length 1000, each message
  • the field composition is as shown in FIG. 8 , which specifically includes: the round number of rounds of the package, the serial number Seq of the packet, the time stamp Tm of the terminal side, the time stamp Ts of the server side, and whether the predetermined slot of the queue receives the package Valid. Before each round of packet delivery, all fields of all messages are reset to zero.
  • the server bounces back to the S packet as a response (here, the bouncing back server returns the received packet to the mobile terminal as it is), and the mobile terminal receives A predetermined number of N U packets are continuously transmitted to the server immediately after the response.
  • the server only needs to receive the S packet, regardless of whether it is repeated or not, to establish a new user record corresponding to the IMSI, and bounce back the S packet to the mobile terminal.
  • the mobile terminal must receive the bounced S packet before it can start sending U packets to the server. In this way, the mobile terminal can confirm that the server resource (message queue) is allocated.
  • the mobile terminal uses a receiving timeout mechanism (the threshold can be selected by the actual performer). If the mobile terminal receives the S packet timeout, the S packet is retransmitted, and the process continues to try the predetermined number of times, such as 5 times, if within 5 times. All failed, the mobile terminal gave up the test and prompted the user to fail the test.
  • the threshold can be selected by the actual performer.
  • the method further includes:
  • Step S24 the server searches for a corresponding user record according to the IMSI
  • Step S25 If the user record is found, the server extracts the number of rounds of the first type of data packet, the terminal side packet time stamp field, and the serial number, and the first type according to the serial number.
  • the data packet is placed in a predetermined position of the queue, and the in-position field of the queue is set to a second predetermined value;
  • Step S26 if no, the first type of data packet is ignored.
  • the server searches for the corresponding user record according to the IMSI. If the corresponding user record is not found, the T packet may first arrive and trigger the user record to be deleted, and the U packet is the out-of-order packet. . Therefore, no action is taken at this time, and the U package is ignored.
  • the server finds the corresponding user record according to the IMSI, the server extracts the round number of rounds of each U packet, the time stamp field Tm of the terminal side, and the serial number, and subscripts the serial number to find the message queue. Corresponding location, write the corresponding message, and set the Valid field of the message to 1.
  • the Ts timestamp field in the message is the time when the server receives the packet, in case it is used to calculate the delay of the internal processing of the server. If a location does not receive a packet at the end, indicating that the U packet is missing, the Tm corresponding to this location is 0.
  • the mobile terminal After the mobile terminal sends 1000 U packets, it directly sends a #Pack, and then starts receiving the D packets sent by the server. If the timeout server has not received the D packet, the # ⁇ will be sent repeatedly. If the D packet is still not received after the predetermined number of attempts, such as 5 times, the mobile terminal abandons the test and prompts the user to fail the test.
  • the method further includes:
  • Step S26 the server acquires the current time and the enqueue time of the first type of data packet into the queue
  • Step S27 Calculate a difference between the current time and the enqueue time to obtain a server internal processing delay.
  • the field definitions of most of the packages have been explicitly shown in Figures 1 and 2, and only the D packets and the packets are highlighted here.
  • the "terminal timestamp bounce" field in the D packet is directly taken from the "terminal side packet timestamp” field in the corresponding U packet, and the mobile terminal receives the D packet minus the bounced U packet transmission time stamp. This is the round-trip delay of this particular sequence number packet, denoted as T1.
  • the "server internal processing delay” field is provided in the D packet, which is recorded as T2, T1-T2. It reflects the end-to-end round-trip delay on the true transmission path.
  • the $ packet contains performance statistics about the current round of the uplink, because this information can only be fed back to the mobile terminal by the server. The mobile terminal can calculate the downlink performance statistics of the current round.
  • the server When the server receives the # packet, no matter how many times it receives the # packet, it immediately starts sending 1000 D packets in sequence.
  • the "server internal processing delay" field in the packet is determined by the server according to the current time and the corresponding U packet. The difference between the entry time Ts is calculated. It should be noted that, as described in step S26, for a message whose Tm is 0 in the queue, the Tm field of the corresponding D packet is also 0.
  • the mobile terminal After the mobile terminal receives the D packet (if the D packet is not lost), it can be determined whether the U packet corresponding to the location is lost during uplink transmission by checking whether the Tm field of the D packet is 0. Through this mechanism, the mobile terminal can learn the specific number of each downlink packet by analyzing the receiving queue of the D packet, and can also derive the specific number of each uplink packet by using the Tm field of the D packet.
  • the server calculates the uplink packet loss rate, out-of-order rate and throughput rate according to the message queue to construct the $ packet, and then continuously sends 5 packets to the terminal to ensure that the terminal can receive the packet.
  • the performance indicators of the uplink can be calculated.
  • the mobile terminal also maintains a similar queue, and the calculation method is similar, which is omitted here.
  • T1 in Figure 10 ⁇ T2 ⁇ T3 ⁇ ... ⁇ Ti ⁇ ... ⁇ T1000 is an incremental sequence, and X represents that the uplink U packet corresponding to the serial number is not received by the server.
  • the calculation methods of each indicator are as follows:
  • Upstream packet loss rate sum of all Xs / 1000;
  • Upstream throughput rate sum of bytes of all packets received in the uplink / (maximum value of Ti - minimum value of Ti);
  • T2 and T3 in Figure 10 represent that the U packet with sequence number 3 arrives before the second, so the maximum and minimum values of Ti need to be scanned after the message queue is obtained;
  • Upstream out-of-order rate sum of times of uplink out-of-orders / total number of packets received in the uplink;
  • Out-of-order number calculation For each non-X message, extract its Ts value (marked as left) and the next Ts value (denoted as right). If right ⁇ left, it is recorded as an out-of-order. For example, T2 ⁇ T3 in Fig. 4, so an out of order occurs.
  • the present invention further provides a mobile terminal 1.
  • the mobile terminal 1 includes:
  • the first sending module 11 is configured to send the first type control packet to the server, and continuously send a predetermined number of first type data packets to the server after receiving the reply of the server;
  • the mobile terminal 1 and the server are used together, and both parties need to comply with a specific test protocol, and the protocol mainly includes an interaction step, a control packet and a format definition of the data packet, and an abnormal situation processing. Therefore, from the perspective of implementation, the mobile terminal 1 periodically transmits the uplink control packet and the data packet in a specific mode according to the test protocol, receives the downlink data packet and completes the statistical calculation, and saves the test log file for subsequent analysis; The protocol receives various uplink data packets, carries the calculation of the uplink indicator to the mobile terminal 1, and sends the downlink control packet and the data packet according to the test protocol.
  • the first type control packet carries the control parameters of the downlink packet, and after the mobile terminal 1 receives the reply from the server, the mobile terminal 1 starts the packet sending process.
  • the present invention defines different types of control packets and data packets, a first type of control packet (S packet), a first type of data packet (U packet), a second type of control packet (# packet), and a second type of data packet (D).
  • S packet first type of control packet
  • U packet first type of data packet
  • # packet second type of control packet
  • D second type of data packet
  • Package third type control package ($package)
  • T package fourth type control package
  • the S and T packages are the control packets issued by the user after pressing the start and stop buttons, respectively, and other packages will appear in each round of testing. For example, if the user configures 10 rounds of tests, the test is normal. In the line, it will contain U(N)-#-D(N)-$-U(N)-#-D(N)-$-... cycles 10 times.
  • the second sending module 12 is configured to send the first type of data packet to the server, and the mobile terminal 1 sends the second type of control packet to the server to notify the server that the uplink data transmission is completed.
  • the mobile terminal 1 after the N U packets are transmitted, the mobile terminal 1 notifies the server that the uplink data transmission of the current round is completed by the # packet, and the server starts to continuously send N D packets at this time.
  • the calculation processing module 13 is configured to receive the second type of data packet sent by the server, and obtain the uplink performance statistics calculated by the server when the third type control packet sent by the server is received, and calculate the current round
  • the downlink performance statistics data is written into the test log file by using the uplink performance statistics and the downlink performance statistics.
  • the mobile terminal 1 calculates the downlink performance statistics of the current round, and writes the test log file together with the uplink performance statistics calculated by the server.
  • the mobile terminal 1 first sends N U packets, and the server sends N D packets, that is, adopts the half duplex test mode until the user presses the stop button to trigger the stop command, and moves. Terminal 1 then sends a T packet to the server to end the performance test for the mobile network.
  • the mobile network mentioned in the present invention includes, but is not limited to, GSM (Global System for Mobile Communication), UMTS (Universal Mobile Telecommunications System, UMTS (Universal Mobile Telecommunications System), CDMA ( Code Division Multiple Access, TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplex-Long Term Evolution), TDD-LTE ( Wireless system such as time division duplexing-long-term evolution technology.
  • GSM Global System for Mobile Communication
  • UMTS Universal Mobile Telecommunications System
  • CDMA Code Division Multiple Access
  • TD-SCDMA Time Division-Synchronous Code Division Multiple Access
  • FDD-LTE Frequency Division Duplex-Long Term Evolution
  • TDD-LTE Wireless system such as time division duplexing-long-term evolution technology.
  • PS Packet Switch
  • IP transmission network IP transmission network
  • various service servers on the Internet which constitutes the whole. End-to-end service transmission path.
  • the mobile terminal 1 provided by the present invention sends a first type of data packet to the server by sending a first type of control packet to the server, and after receiving the reply of the server, continuously sends the first type of data packet to the server, and after the transmission is completed, the second type control packet is sent to the server.
  • the third type control packet sent by the server when receiving the third type control packet sent by the server, acquiring uplink performance statistics calculated by the server, and calculating downlink performance statistics of the current round, and then The uplink performance statistics and downlink performance statistics are written to the test log file. In this way, the mobile terminal 1 is used to perform performance tests on the real network to obtain indicators such as packet loss, out-of-order, and throughput on the end-to-end link, so that the mobile network can be accurately diagnosed.
  • the present invention also provides a server 2, referring to FIG. 13, in an embodiment, the server 2 includes:
  • the bounce module 21 is configured to, when receiving the first type control packet sent by the mobile terminal 1, bounce the first type control packet back to the mobile terminal 1;
  • the mobile terminal 1 and the server 2 are used together, and both parties need to comply with a specific test protocol, and the protocol mainly includes an interaction step, a control packet and a format definition of the data packet, and an abnormal situation processing. Therefore, from the perspective of implementation, the mobile terminal 1 periodically transmits the uplink control packet and the data packet in a specific mode according to the test protocol, receives the downlink data packet and completes the statistical calculation, and saves the test log file for subsequent analysis;
  • the control protocol receives various uplink data packets, carries the calculation of the uplink indicator to the mobile terminal 1, and sends the downlink control packet and the data packet according to the test protocol.
  • the first type control packet carries the control parameters of the downlink packet, and after the mobile terminal 1 receives the reply from the server 2, the mobile terminal 1 starts the packet sending process.
  • the present invention defines different types of control packets and data packets, a first type of control packet (S packet), a first type of data packet (U packet), a second type of control packet (# packet), and a second type of data packet (D).
  • S packet first type of control packet
  • U packet first type of data packet
  • # packet second type of control packet
  • D second type of data packet
  • Package third type control package ($package)
  • T package fourth type control package
  • the S and T packages are the control packets issued by the user after pressing the start and stop buttons, respectively, and other packages will appear in each round of testing. For example, if the user configures 10 rounds of tests, the test will normally include U(N)-#-D(N)-$-U(N)-#-D(N)-$-.. This cycle is 10 times.
  • the third sending module 22 is configured to receive the first type of data packet sent by the mobile terminal 1, and continuously send the predetermined number to the mobile terminal 1 when receiving the second type of control packet sent by the mobile terminal 1. Second type of data packet;
  • the server 2 continuously sends a predetermined number of N D packets to the mobile terminal 1. After the transmission is completed, the server 2 calculates the uplink performance statistics of the current round, and puts the uplink performance statistics into the package. In the middle, the $ packet is sent to the mobile terminal 1. Among them, the $ package also indicates that the downlink data of this round has been sent.
  • the fourth sending module 23 is configured to: after the second type of data packet is sent, calculate the uplink performance statistics of the current round, and put the uplink performance statistics into the third type control packet, and then The third type of control packet is sent to the mobile terminal 1 for the mobile terminal 1 to write the uplink performance statistics and the calculated downlink performance statistics into the test log file.
  • the server 2 calculates the uplink statistics of the current round, and puts the uplink performance statistics into the $packet, and sends the data to the mobile terminal 1, when the mobile terminal 1 receives the After the $ packet, the downlink performance statistics of the current round are calculated, and the mobile terminal 1 writes the uplink performance statistics and the downlink performance statistics together into the test log file.
  • the above is a round of packet delivery cycle. Normally, the next round of the packet issuance cycle is repeated, and steps S21 to S23 are repeated.
  • the fourth type control packet is sent to the server 2, when the server 2 When the T packet is received, the performance test for the mobile network is ended.
  • the mobile terminal 1 first sends N U packets, and the server 2 sends N D packets, that is, adopts the half duplex test mode until the user presses the stop button to trigger the stop command.
  • the mobile terminal 1 then transmits a T packet to the server 2 to end the performance test for the mobile network.
  • the mobile network mentioned in the present invention includes, but is not limited to, GSM (Global System for Mobile Communication), UMTS (Universal Mobile Telecommunications System, UMTS (Universal Mobile Telecommunications System), CDMA ( Code Division Multiple Access, TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplex-Long Term Evolution), TDD-LTE ( Wireless system such as time division duplexing-long-term evolution technology.
  • GSM Global System for Mobile Communication
  • UMTS Universal Mobile Telecommunications System
  • CDMA Code Division Multiple Access
  • TD-SCDMA Time Division-Synchronous Code Division Multiple Access
  • FDD-LTE Frequency Division Duplex-Long Term Evolution
  • TDD-LTE Wireless system such as time division duplexing-long-term evolution technology.
  • PS Packet Switch
  • the server 2 provided by the present invention, when receiving the first type control packet sent by the mobile terminal 1, bounces the first type control packet back to the mobile terminal 1, and when receiving the second type control packet sent by the mobile terminal 1, And continuously transmitting the second type of data packet to the mobile terminal 1, and after the transmission is completed, calculating the uplink performance statistics data of the current round, and putting the third type control packet into the third type control packet, and then sending the third type control packet to the mobile terminal 1,
  • the mobile terminal 1 writes the uplink performance statistics and the calculated downlink performance statistics into the test log file. In this way, by performing performance tests on the real network to obtain indicators such as packet loss, out-of-order, and throughput on the end-to-end link, accurate diagnosis of the mobile network can be performed.
  • the present invention also provides a test system 100.
  • the test system 100 includes a mobile terminal 1 and a server 2.
  • the mobile terminal 1 includes:
  • the first sending module 11 is configured to send the first type control packet to the server 2, and after receiving the reply of the server 2, continuously send a predetermined number of first type data packets to the server 2;
  • the second sending module 12 is configured to send the first type of data packet to the server 2, and the mobile terminal 1 sends the second type of control packet to the server 2 to notify the server 2 that the uplink data transmission is completed.
  • the calculation processing module 13 is configured to receive the second type of data packet sent by the server 2, and obtain the uplink performance statistics calculated by the server 2 when receiving the third type control packet sent by the server 2, and Calculating downlink performance statistics of the current round, and writing the uplink performance statistics and downlink performance statistics into the test log file;
  • the server 2 includes:
  • the bounce module 21 is configured to, when receiving the first type control packet sent by the mobile terminal 1, bounce the first type control packet back to the mobile terminal 1;
  • the third sending module 22 is configured to receive the first type of data packet sent by the mobile terminal 1, and continuously send the predetermined number to the mobile terminal 1 when receiving the second type of control packet sent by the mobile terminal 1. Second type of data packet;
  • the fourth sending module 23 is configured to: after the second type of data packet is sent, calculate the uplink performance statistics of the current round, and put the uplink performance statistics into the third type control packet.
  • the third type control packet is sent to the mobile terminal 1 for the mobile terminal 1 to write the uplink performance statistics and the calculated downlink performance statistics into the test log file.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the present invention relates to the field of communication technologies, in which a mobile terminal sends a first type of control packet to a server, and after receiving a reply from the server, continuously transmits a first type of data packet to the server, and after the transmission is completed, the mobile terminal sends a second type of control.
  • Packet to the server to inform the current round of uplink data transmission completion when receiving the third type control packet sent by the server, obtaining the calculation calculated by the server
  • the uplink performance statistics are calculated, and the downlink performance statistics of the current round are calculated, and then the uplink performance statistics and the downlink performance statistics are written into the test log file.
  • the mobile terminal is used to perform performance testing on the real network to obtain indicators such as packet loss, out-of-order, and throughput on the end-to-end link, so that the mobile network can be accurately diagnosed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed is a method for testing performance of a mobile network, comprising the following steps: a mobile terminal sending a first-type control packet to a server, and continuously sending a first-type data packet to the server after receiving a reply from the server; after the first-type data packet is sent, the mobile terminal sending a second-type control packet to the server to inform the server that uplink data transmission of a current round is completed; and receiving a second-type data packet sent by the server, acquiring uplink performance statistical data calculated by the server when a third-type control packet sent by the server is received, calculating downlink performance statistical data of the current round, and witting the uplink performance statistical data and the downlink performance statistical data into a testing log file. Also disclosed are a mobile terminal, a server and a testing system. The present invention can test the performance of a real network so as to acquire indexes such as packet loss, disorder and throughput on an end-to-end link, thereby being able to accurately diagnose a mobile network.

Description

移动网络的性能测试方法、移动终端、服务器及测试系统Mobile network performance testing method, mobile terminal, server and test system 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种移动网络的性能测试方法、移动终端、服务器及测试系统。The present invention relates to the field of communications technologies, and in particular, to a performance testing method for a mobile network, a mobile terminal, a server, and a testing system.
背景技术Background technique
目前针对移动网络的优化逐渐集中到用户感知上,而用户感知的影响因素很显然是很复杂的,排除资费、心理差异等因素外,从终端到服务器的端到端链路上的所有环节,都可能会对业务的性能造成影响,进而波及到用户对业务质量的感知。At present, the optimization for mobile networks is gradually concentrated on user perception, and the influencing factors of user perception are obviously very complicated. Excluding the factors such as tariffs and psychological differences, all links from the terminal to the end-to-end link of the server, Both may affect the performance of the business, and thus affect the user's perception of the quality of the service.
目前的优化手段,往往关注在端到端链路上的某个单点上,例如终端侧抓包、接入网内部网元抓包、或采用硬探针设备进行监听分析等。这些手段能解决部分问题,但当需要针对单个投诉案例进行深入分析某项指标时,如需要逐跳、逐包进行分析和排查时,仍然显得力有不逮。The current optimization method is often focused on a single point on the end-to-end link, such as packet capture on the terminal side, packet capture on the internal network element of the access network, or monitoring analysis using a hard probe device. These methods can solve some problems, but when it is necessary to conduct an in-depth analysis of a certain indicator for a single complaint case, if it needs to be hop-by-hop, package-by-package analysis and troubleshooting, it still seems to be incapable.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种移动网络的性能测试方法、移动终端、服务器及测试系统,旨在利用移动终端对真实网络进行性能测试,以获取针对端到端链路上的丢包、乱序和吞吐率等指标,从而可以对移动网络进行精确诊断。The main purpose of the present invention is to provide a performance testing method for a mobile network, a mobile terminal, a server, and a test system, which are designed to perform performance testing on a real network by using a mobile terminal to obtain packet loss and mess on an end-to-end link. Indicators such as order and throughput allow accurate diagnosis of mobile networks.
为实现上述目的,本发明提供的一种移动网络的性能测试方法,所述移动网络的性能测试方法包括以下步骤:To achieve the above objective, the present invention provides a performance testing method for a mobile network, and the performance testing method of the mobile network includes the following steps:
移动终端发送第一类型控制包至服务器,并在接收到所述服务器的回复后连续发送预定数量的第一类型数据包至所述服务器;The mobile terminal sends the first type control packet to the server, and after receiving the reply of the server, continuously sends a predetermined number of first type data packets to the server;
待所述第一类型数据包发送完毕,移动终端发送第二类型控制包至所述 服务器,以告知所述服务器本轮上行数据发送完成;After the first type of data packet is sent, the mobile terminal sends the second type control packet to the a server to notify the server that the uplink data transmission is completed in the current round;
接收所述服务器发送的第二类型数据包,并在接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,将所述上行性能统计数据和下行性能统计数据写入测试日志文件。Receiving a second type of data packet sent by the server, and receiving the third type control packet sent by the server, acquiring uplink performance statistics calculated by the server, and calculating downlink performance statistics of the current round, The uplink performance statistics and downlink performance statistics are written into the test log file.
优选地,所述接收所述服务器发送的第二类型数据包的步骤之后还包括:Preferably, after the step of receiving the second type of data packet sent by the server, the method further includes:
判断所述第二类型数据包的终端时戳弹回字段的值是否为第一预定值;Determining whether the value of the terminal time stamp bounce field of the second type of data packet is a first predetermined value;
若否,则获取所述第二类型数据包的接收时刻;If not, acquiring a receiving moment of the second type of data packet;
计算所述接收时刻、第一预定值以及所述服务器内部处理时延之间的差值,得到有效时延,并将所述有效时延记录到所述测试日志文件中;Calculating a difference between the receiving time, the first predetermined value, and the internal processing delay of the server, obtaining a valid delay, and recording the valid delay into the test log file;
其中,所述服务器内部处理时延为所述服务器根据当前时刻与所述第一类型数据包放入队列的入队时刻之间的差值计算得到。The internal processing delay of the server is calculated by the server according to a difference between a current time and a joining time of the first type of data packet into the queue.
优选地,所述在接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,将所述上行性能统计数据和下行性能统计数据写入测试日志文件的步骤包括:Preferably, when receiving the third type control packet sent by the server, acquiring uplink performance statistics calculated by the server, and calculating downlink performance statistics of the current round, and using the uplink performance statistics and the downlink The steps to write performance statistics to the test log file include:
所述移动终端在接收到所述第三类型控制包时,从所述第三类型控制包中获取所述服务器计算的上行性能统计数据;When receiving the third type control packet, the mobile terminal acquires uplink performance statistics calculated by the server from the third type control packet;
根据与所述服务器侧对应的消息队列,计算本轮包括丢包率、乱序率以及吞吐率指标的下行性能统计数据;Calculating downlink performance statistics of the current round including the packet loss rate, the out-of-order rate, and the throughput rate indicator according to the message queue corresponding to the server side;
根据所述下行性能统计数据和所述上行性能统计数据,综合整理成本轮测试的结果,记录到所述测试日志文件中。And synthesizing the results of the cost round test according to the downlink performance statistics and the uplink performance statistics, and recording the results in the test log file.
为实现上述目的,本发明还提供一种移动网络的性能测试方法,所述移动网络的性能测试方法包括:To achieve the above objective, the present invention also provides a performance testing method for a mobile network, where the performance testing method of the mobile network includes:
服务器在接收到移动终端发送的第一类型控制包时,将所述第一类型控制包弹回至所述移动终端;When receiving the first type control packet sent by the mobile terminal, the server bounces the first type control packet back to the mobile terminal;
接收所述移动终端发送的第一类型数据包,并在接收到所述移动终端发送的第二类型控制包时,向所述移动终端连续发送预定数量的第二类型数据包;Receiving a first type of data packet sent by the mobile terminal, and continuously transmitting a predetermined number of second type data packets to the mobile terminal when receiving the second type of control packet sent by the mobile terminal;
待所述第二类型数据包发送完毕,计算出本轮的上行性能统计数据,并将所述上行性能统计数据放入第三类型控制包中,再将所述第三类型控制包 发送至所述移动终端,以供所述移动终端将所述上行性能统计数据以及计算出的下行性能统计数据写入测试日志文件。After the second type of data packet is sent, the uplink performance statistics of the current round are calculated, and the uplink performance statistics are put into the third type control packet, and then the third type control packet is used. Sending to the mobile terminal, where the mobile terminal writes the uplink performance statistics and the calculated downlink performance statistics into the test log file.
优选地,所述服务器在接收到移动终端发送的第一类型控制包时,将所述第一类型控制包弹回至所述移动终端的步骤包括:Preferably, when the server receives the first type control packet sent by the mobile terminal, the step of bounce the first type control packet back to the mobile terminal includes:
所述服务器解析出所述第一类型控制包中含有的国际移动用户识别码IMSI,并根据所述IMSI查找对应的用户记录;The server parses out an international mobile subscriber identity (IMSI) contained in the first type of control packet, and searches for a corresponding user record according to the IMSI;
若查找到用户记录,所述服务器则将所述第一类型控制包弹回至所述移动终端,并新建用户记录;If the user record is found, the server bounces the first type control packet back to the mobile terminal, and creates a new user record;
若否,所述服务器则新建用户记录,并将所述第一类型控制包弹回至所述移动终端。If not, the server creates a new user record and bounces the first type of control packet back to the mobile terminal.
优选地,所述服务器在接收到移动终端发送的第一类型控制包时,将所述第一类型控制包弹回至所述移动终端的步骤之后还包括:Preferably, the step of the server bounces the first type of control packet back to the mobile terminal after receiving the first type of control packet sent by the mobile terminal further includes:
所述服务器根据所述IMSI查找对应的用户记录;The server searches for a corresponding user record according to the IMSI;
若查找到用户记录,所述服务器则抽取所述第一类型数据包的发包轮数、终端侧发包时戳字段以及所述序列号,并根据所述序列号将所述第一类型数据包放入队列的预定位置,并设置所述队列的到位字段为第二预定值;If the user record is found, the server extracts the number of rounds of the first type of data packet, the terminal side packet time stamp field, and the serial number, and places the first type data packet according to the serial number. Entering a predetermined position of the queue, and setting the in-position field of the queue to a second predetermined value;
若否,则忽略所述第一类型数据包。If not, the first type of data packet is ignored.
优选地,所述根据所述序列号将所述第一类型数据包放入队列的预定位置,并设置所述队列的到位字段为第二预定值的步骤之后还包括:Preferably, after the step of placing the first type of data packet into a predetermined position of the queue according to the serial number, and setting the in-position field of the queue to a second predetermined value, the method further includes:
所述服务器获取当前时刻以及所述第一类型数据包放入队列的入队时刻;Obtaining, by the server, the current time and the enqueue time of the first type of data packet into the queue;
计算所述当前时刻与所述入队时刻之间的差值,得到服务器内部处理时延。Calculating a difference between the current time and the enqueue time, and obtaining a processing delay of the server.
为实现上述目的,本发明还提供一种移动终端,所述移动终端包括:To achieve the above objective, the present invention further provides a mobile terminal, where the mobile terminal includes:
第一发送模块,设置为发送第一类型控制包至服务器,并在接收到所述服务器的回复后连续发送预定数量的第一类型数据包至所述服务器;a first sending module, configured to send a first type control packet to the server, and continuously send a predetermined number of first type data packets to the server after receiving the reply of the server;
第二发送模块,设置为待所述第一类型数据包发送完毕,移动终端发送第二类型控制包至所述服务器,以告知所述服务器本轮上行数据发送完成;The second sending module is configured to send the second type of control packet to the server after the first type of data packet is sent, to notify the server that the uplink data transmission is completed in the current round;
计算处理模块,设置为接收所述服务器发送的第二类型数据包,并在接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,将所述上行性能统计数据和下 行性能统计数据写入测试日志文件。The calculation processing module is configured to receive the second type of data packet sent by the server, and obtain the uplink performance statistics calculated by the server when receiving the third type control packet sent by the server, and calculate the current round of the performance statistics Downstream performance statistics, the uplink performance statistics and the next Line performance statistics are written to the test log file.
优选地,所述服务器包括:Preferably, the server comprises:
弹回模块,设置为在接收到移动终端发送的第一类型控制包时,将所述第一类型控制包弹回至所述移动终端;a bounce module, configured to bounce the first type control packet back to the mobile terminal when receiving the first type control packet sent by the mobile terminal;
第三发送模块,设置为接收所述移动终端发送的第一类型数据包,并在接收到所述移动终端发送的第二类型控制包时,向所述移动终端连续发送预定数量的第二类型数据包;a third sending module, configured to receive a first type of data packet sent by the mobile terminal, and continuously send a predetermined number of second types to the mobile terminal when receiving the second type of control packet sent by the mobile terminal data pack;
第四发送模块,设置为待所述第二类型数据包发送完毕,计算出本轮的上行性能统计数据,并将所述上行性能统计数据放入第三类型控制包中,再将所述第三类型控制包发送至所述移动终端,以供所述移动终端将所述上行性能统计数据以及计算出的下行性能统计数据写入测试日志文件。The fourth sending module is configured to: after the second type of data packet is sent, calculate the uplink performance statistics of the current round, and put the uplink performance statistics into the third type control packet, and then The three types of control packets are sent to the mobile terminal, so that the mobile terminal writes the uplink performance statistics and the calculated downlink performance statistics into the test log file.
为实现上述目的,本发明还提供一种测试系统,所述测试系统包括移动终端和服务器,To achieve the above object, the present invention also provides a test system including a mobile terminal and a server.
所述移动终端包括:The mobile terminal includes:
第一发送模块,设置为发送第一类型控制包至服务器,并在接收到所述服务器的回复后连续发送预定数量的第一类型数据包至所述服务器;a first sending module, configured to send a first type control packet to the server, and continuously send a predetermined number of first type data packets to the server after receiving the reply of the server;
第二发送模块,设置为待所述第一类型数据包发送完毕,移动终端发送第二类型控制包至所述服务器,以告知所述服务器本轮上行数据发送完成;The second sending module is configured to send the second type of control packet to the server after the first type of data packet is sent, to notify the server that the uplink data transmission is completed in the current round;
计算处理模块,设置为接收所述服务器发送的第二类型数据包,并在接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,将所述上行性能统计数据和下行性能统计数据写入测试日志文件;The calculation processing module is configured to receive the second type of data packet sent by the server, and obtain the uplink performance statistics calculated by the server when receiving the third type control packet sent by the server, and calculate the current round of the performance statistics The downlink performance statistics data is sent to the test log file by using the uplink performance statistics and the downlink performance statistics.
所述服务器包括:The server includes:
弹回模块,设置为在接收到移动终端发送的第一类型控制包时,将所述第一类型控制包弹回至所述移动终端;a bounce module, configured to bounce the first type control packet back to the mobile terminal when receiving the first type control packet sent by the mobile terminal;
第三发送模块,设置为接收所述移动终端发送的第一类型数据包,并在接收到所述移动终端发送的第二类型控制包时,向所述移动终端连续发送预定数量的第二类型数据包;a third sending module, configured to receive a first type of data packet sent by the mobile terminal, and continuously send a predetermined number of second types to the mobile terminal when receiving the second type of control packet sent by the mobile terminal data pack;
第四发送模块,设置为待所述第二类型数据包发送完毕,计算出本轮的上行性能统计数据,并将所述上行性能统计数据放入第三类型控制包中,再 将所述第三类型控制包发送至所述移动终端,以供所述移动终端将所述上行性能统计数据以及计算出的下行性能统计数据写入测试日志文件。The fourth sending module is configured to: after the second type of data packet is sent, calculate the uplink performance statistics of the current round, and put the uplink performance statistics into the third type control packet, and then Sending the third type control packet to the mobile terminal, where the mobile terminal writes the uplink performance statistics and the calculated downlink performance statistics into a test log file.
本发明提供的移动网络的性能测试方法、移动终端、服务器及测试系统,通过移动终端发送第一类型控制包至服务器,并在接收到服务器的回复后连续发送第一类型数据包至所述服务器,待发送完毕,移动终端发送第二类型控制包至服务器,以告知本轮上行数据发送完成,当接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,然后将所述上行性能统计数据和下行性能统计数据写入测试日志文件。这样,利用移动终端对真实网络进行性能测试,以获取针对端到端链路上的丢包、乱序和吞吐率等指标,从而可以对移动网络进行精确诊断。The performance testing method for the mobile network provided by the present invention, the mobile terminal, the server and the testing system, send the first type control packet to the server through the mobile terminal, and continuously send the first type data packet to the server after receiving the reply from the server After the transmission is completed, the mobile terminal sends the second type control packet to the server to notify the current round of uplink data transmission, and obtains the uplink performance statistics calculated by the server when receiving the third type control packet sent by the server. And calculating downlink performance statistics of the current round, and then writing the uplink performance statistics and downlink performance statistics into the test log file. In this way, the mobile terminal is used to perform performance testing on the real network to obtain indicators such as packet loss, out-of-order, and throughput on the end-to-end link, so that the mobile network can be accurately diagnosed.
附图说明DRAWINGS
图1为本发明移动网络的性能测试方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a performance testing method for a mobile network according to the present invention;
图2为本发明定义的不同类型控制包和数据包一实施例的示意图;2 is a schematic diagram of an embodiment of different types of control packets and data packets defined by the present invention;
图3为本发明移动终端和服务器之间进行发包和收包的示意图;3 is a schematic diagram of sending and receiving a packet between a mobile terminal and a server according to the present invention;
图4为本发明移动网络的性能测试方法第二实施例的流程示意图;4 is a schematic flowchart diagram of a second embodiment of a performance testing method for a mobile network according to the present invention;
图5为图4中步骤S13的细化流程示意图;FIG. 5 is a schematic diagram showing the refinement process of step S13 in FIG. 4;
图6为本发明移动网络的性能测试方法第三实施例的流程示意图;6 is a schematic flowchart of a third embodiment of a performance testing method for a mobile network according to the present invention;
图7为图6中步骤S21的细化流程示意图;FIG. 7 is a schematic diagram showing the refinement process of step S21 in FIG. 6;
图8为本发明每条消息的字段组成示意图;FIG. 8 is a schematic diagram showing the field composition of each message according to the present invention; FIG.
图9为本发明移动网络的性能测试方法第四实施例的流程示意图;9 is a schematic flowchart of a fourth embodiment of a performance testing method for a mobile network according to the present invention;
图10为本发明移动网络的性能测试方法第五实施例的流程示意图;10 is a schematic flowchart of a fifth embodiment of a performance testing method for a mobile network according to the present invention;
图11为服务器端的消息队列示意图;11 is a schematic diagram of a message queue on the server side;
图12为本发明移动终端一实施例的功能模块示意图;FIG. 12 is a schematic diagram of functional modules of an embodiment of a mobile terminal according to the present invention; FIG.
图13为本发明服务器一实施例的功能模块示意图;FIG. 13 is a schematic diagram of functional modules of an embodiment of a server according to the present invention; FIG.
图14为本发明测试系统一实施例的功能模块示意图。14 is a schematic diagram of functional modules of an embodiment of a test system of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。 The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种移动网络的性能测试方法,参照图1,在一实施例中,所述移动网络的性能测试方法包括以下步骤:The present invention provides a performance testing method for a mobile network. Referring to FIG. 1, in an embodiment, the performance testing method of the mobile network includes the following steps:
步骤S11,移动终端发送第一类型控制包至服务器,并在接收到所述服务器的回复后连续发送预定数量的第一类型数据包至所述服务器;Step S11, the mobile terminal sends the first type control packet to the server, and after receiving the reply of the server, continuously sends a predetermined number of first type data packets to the server;
本发明中,移动终端和服务器之间是配合使用的,双方需要遵守特定的测试协议,协议主要包括交互步骤、控制包和数据包的格式定义、异常情况处理等。因此从实现的角度看,移动终端按测试协议规定,以特定模式周期性发送上行控制包和数据包,接收下行数据包并完成统计计算,以及保存测试日志文件供后续分析;而服务器按控制协议,接收各种上行数据包,对上行性能统计指标进行计算后携带给移动终端,并按测试协议发送下行控制包和数据包。In the present invention, the mobile terminal and the server are used together, and both parties need to comply with a specific test protocol, and the protocol mainly includes an interaction step, a format definition of the control packet and the data packet, and an abnormal situation processing. Therefore, from the perspective of implementation, the mobile terminal periodically sends the uplink control packet and the data packet in a specific mode according to the test protocol, receives the downlink data packet and completes the statistical calculation, and saves the test log file for subsequent analysis; and the server presses the control protocol. Receiving various uplink data packets, calculating the uplink performance statistics indicators, carrying them to the mobile terminal, and transmitting the downlink control packets and data packets according to the test protocol.
本实施例中,第一类型控制包携带下行发包的控制参数,在移动终端接收到服务器的回复后,移动终端即启动发包过程。In this embodiment, the first type control packet carries the control parameter of the downlink sending packet, and after the mobile terminal receives the reply of the server, the mobile terminal starts the sending process.
本发明定义了不同类型的控制包和数据包,第一类型控制包(S包)、第一类型数据包(U包)、第二类型控制包(#包)、第二类型数据包(D包)、第三类型控制包($包)、第四类型控制包(T包),具体参照图2和图3:The present invention defines different types of control packets and data packets, a first type of control packet (S packet), a first type of data packet (U packet), a second type of control packet (# packet), and a second type of data packet (D). Package), third type control package ($package), fourth type control package (T package), specifically refer to Figure 2 and Figure 3:
其中,S和T包分别是用户按下启动和停止按钮后发出的控制包,其他包是在每一轮测试中都会出现的。例如用户配置了10轮测试,则测试正常进行时,会包含U(N个)-#-D(N个)-$-U(N个)-#-D(N个)-$-...这样的循环10次。N是可配置的,由协议执行者选定即可。下文中均以N=1000为例,凡出现1000的地方,均对应1000个U或D包。Among them, the S and T packages are the control packets issued by the user after pressing the start and stop buttons, respectively, and other packages will appear in each round of testing. For example, if the user configures 10 rounds of tests, the test will normally include U(N)-#-D(N)-$-U(N)-#-D(N)-$-.. This cycle is 10 times. N is configurable and can be selected by the protocol executor. In the following, N=1000 is taken as an example. Where 1000 appears, it corresponds to 1000 U or D packages.
步骤S12,待所述第一类型数据包发送完毕,移动终端发送第二类型控制包至所述服务器,以告知所述服务器本轮上行数据发送完成;Step S12: After the first type of data packet is sent, the mobile terminal sends a second type control packet to the server, to notify the server that the uplink data transmission is complete.
本实施例中,待N个U包发送完毕,移动终端通过#包通知服务器本轮的上行数据发送完毕,服务器此时开始连续发送N个D包。In this embodiment, after the N U packets are sent, the mobile terminal notifies the server that the uplink data transmission of the current round is completed, and the server starts to continuously send N D packets at this time.
步骤S13,接收所述服务器发送的第二类型数据包,并在接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,将所述上行性能统计数据和下行性能统计 数据写入测试日志文件。Step S13: Receive a second type of data packet sent by the server, and obtain uplink performance statistics calculated by the server when receiving the third type control packet sent by the server, and calculate downlink performance statistics of the current round. Data, the uplink performance statistics and downlink performance statistics The data is written to the test log file.
本实施例中,移动终端在接收到$包后,计算本轮的下行性能统计数据,并结合服务器计算的上行性能统计数据,一起写入测试日志文件。In this embodiment, after receiving the $ packet, the mobile terminal calculates the downlink performance statistics of the current round, and writes the test log file together with the uplink performance statistics calculated by the server.
以上为一轮发包循环,正常情况会进入下一轮发包循环,重复步骤S11至S13,待所述移动终端接收到停止指令时,则向所述服务器发送第四类型控制包,以结束针对移动网络的性能测试。The above is a round of packet sending loop, and the normal situation will enter the next round of the packet sending loop, and steps S11 to S13 are repeated. When the mobile terminal receives the stop command, the fourth type control packet is sent to the server to end the mobile Network performance testing.
本实施例中,进入下一轮发包循环,移动终端先发送N个U包,服务器再发送N个D包,即采用半双工的测试方式,直至用户按下停止按钮触发停止指令,移动终端则发送T包至服务器,以结束针对移动网络的性能测试。In this embodiment, the mobile terminal enters the next round of packet transmission, the mobile terminal first sends N U packets, and the server sends N D packets, that is, adopts a half duplex test mode until the user presses the stop button to trigger a stop command, and the mobile terminal Then send a T packet to the server to end the performance test for the mobile network.
本发明中提及的移动网络,其接入网类型包括但不限于GSM(Global System for Mobile Communication,全球移动通信系统)、UMTS(通用移动通信系统,简称UMTS(Universal Mobile Telecommunications System)、CDMA(Code Division Multiple Access,码分多址)、TD-SCDMA(Time Division-Synchronous Code Division Multiple Access,时分同步码分多址)、FDD-LTE(频分双工-长期演进技术)、TDD-LTE(时分双工-长期演进技术)等无线制式。除接入网之外,还包括PS(Packet Switch,分组交换)数据域核心网、IP传输网及Internet上的各种业务服务器,整体上构成了端到端的业务传输路径。The mobile network mentioned in the present invention includes, but is not limited to, GSM (Global System for Mobile Communication), UMTS (Universal Mobile Telecommunications System, UMTS (Universal Mobile Telecommunications System), CDMA ( Code Division Multiple Access, TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplex-Long Term Evolution), TDD-LTE ( Wireless system such as time division duplexing-long-term evolution technology. In addition to the access network, it also includes PS (Packet Switch) data domain core network, IP transmission network and various service servers on the Internet, which constitutes the whole. End-to-end service transmission path.
本发明提供的移动网络的性能测试方法,通过移动终端发送第一类型控制包至服务器,并在接收到服务器的回复后连续发送第一类型数据包至所述服务器,待发送完毕,移动终端发送第二类型控制包至服务器,以告知本轮上行数据发送完成,当接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,然后将所述上行性能统计数据和下行性能统计数据写入测试日志文件。这样,利用移动终端对真实网络进行性能测试,以获取针对端到端链路上的丢包、乱序和吞吐率等指标,从而可以对移动网络进行精确诊断。The performance testing method for the mobile network provided by the present invention sends a first type control packet to the server through the mobile terminal, and continuously sends the first type data packet to the server after receiving the reply from the server, and the mobile terminal sends the first type data packet to the server. The second type of control packet is sent to the server to notify the current round of uplink data transmission. When the third type control packet sent by the server is received, the uplink performance statistics calculated by the server are obtained, and the downlink performance of the current round is calculated. The statistics are then written into the test log file by the uplink performance statistics and the downlink performance statistics. In this way, the mobile terminal is used to perform performance testing on the real network to obtain indicators such as packet loss, out-of-order, and throughput on the end-to-end link, so that the mobile network can be accurately diagnosed.
在一实施例中,如图4所示,在上述图1的实施例的基础上,本实施例中,所述步骤S13,接收所述服务器发送的第二类型数据包的步骤之后还包括: In an embodiment, as shown in FIG. 4, on the basis of the foregoing embodiment of FIG. 1, in the embodiment, the step S13, after receiving the second type of data packet sent by the server, further includes:
步骤S14,判断所述第二类型数据包的终端时戳弹回字段的值是否为所述第一预定值;Step S14, determining whether the value of the terminal timestamp bounce field of the second type of data packet is the first predetermined value;
步骤S15,若否,则获取所述第二类型数据包的接收时刻;Step S15, if no, acquiring a receiving moment of the second type of data packet;
步骤S16,计算所述接收时刻、第一预定值以及所述服务器内部处理时延之间的差值,得到有效时延,并将所述有效时延记录到所述测试日志文件中。Step S16: Calculate a difference between the receiving time, the first predetermined value, and the internal processing delay of the server, obtain a valid delay, and record the valid delay into the test log file.
其中,所述服务器内部处理时延为所述服务器根据当前时刻与所述第一类型数据包放入队列的入队时刻之间的差值计算得到。The internal processing delay of the server is calculated by the server according to a difference between a current time and a joining time of the first type of data packet into the queue.
本实施例中,移动终端在收到每个D包时,D包中的“终端时戳弹回”字段,是直接取自对应U包中的“终端侧发包时戳Tm”字段。如果其中包含的终端侧发包时戳Tm非0(第一预定值),则能根据接收时刻和Tm之差,再减去D包中的“服务器内部处理时延”,即可得到一个有效的往返时延,并将该往返时延记录到测试日志文件中。如果Tm为0,则无法获取往返时延。类似服务器对上行U包的处理,移动终端抽取每个D包的相关信息,并记入移动终端侧的消息队列中。In this embodiment, when the mobile terminal receives each D packet, the "terminal time stamp bounce" field in the D packet is directly taken from the "terminal side packet time stamp Tm" field in the corresponding U packet. If the terminal side time stamp Tm included in the terminal side is not 0 (the first predetermined value), the "server internal processing delay" in the D packet can be subtracted according to the difference between the receiving time and the Tm, thereby obtaining an effective one. Round trip delay and record the round trip delay to the test log file. If Tm is 0, the round trip delay cannot be obtained. Similar to the processing of the uplink U packet by the server, the mobile terminal extracts relevant information of each D packet and records it in the message queue on the mobile terminal side.
在一实施例中,如图5所示,在上述图1或图4的实施例的基础上,本实施例中,所述步骤S13包括:In an embodiment, as shown in FIG. 5, on the basis of the foregoing embodiment of FIG. 1 or FIG. 4, in the embodiment, the step S13 includes:
步骤S131,所述移动终端在接收到所述第三类型控制包时,从所述第三类型控制包中获取所述服务器计算的上行性能统计数据;Step S131, the mobile terminal acquires uplink performance statistics calculated by the server from the third type control packet when receiving the third type control packet.
步骤S132,根据与所述服务器侧对应的队列,计算本轮包括丢包率、乱序率以及吞吐率指标的下行性能统计数据;Step S132, calculating downlink performance statistics of the current round including the packet loss rate, the out-of-order rate, and the throughput rate indicator according to the queue corresponding to the server side;
步骤S133,根据所述下行性能统计数据,结合所述上行性能统计数据,综合整理成本轮测试的最终结果,记录到所述测试日志文件中。Step S133, according to the downlink performance statistics data, combined with the uplink performance statistics data, comprehensively collate the final result of the cost round test, and record it in the test log file.
本实施例中,由于$包指示着下行D包发送完毕,因此,移动终端收到第一个$包后,开始根据移动终端侧的消息队列(与服务器侧对应),计算下行对应的丢包率、乱序率和吞吐率等指标,结合$包中提取的上行对应指标(因为上行的指标已经由服务器计算完毕,作为字段放入了$包中,移动终端提取即可),作为本轮测试的最终结果,记录到测试日志文件中。In this embodiment, since the $packet indicates that the downlink D packet is sent, the mobile terminal starts to receive the downlink corresponding packet according to the message queue of the mobile terminal (corresponding to the server side) after receiving the first packet. Indicators such as rate, out-of-order rate and throughput rate, combined with the uplink corresponding indicator extracted from the package (because the uplink indicator has been calculated by the server, the field is placed in the $package, the mobile terminal can extract it), as this round The final result of the test is recorded in the test log file.
移动终端继续接收$包,正常情况下应该还能收到4个。如果收全了4 个,或收到n个(n<4)后,剩余几个$包在接收过程中超时了(超时门限由执行者自行决定),都认为是$包接收完毕,移动终端进入下一轮的U-#-D-$收发循环。可以理解的是,本实施例并不限定接收$包的具体数量。The mobile terminal continues to receive the $packet and should normally receive four more. If you have received 4 After receiving n (n<4), the remaining $ packets expired during the receiving process (the timeout threshold is determined by the executor), and it is considered that the packet is received and the mobile terminal enters the next round. U-#-D-$ send and receive loop. It can be understood that this embodiment does not limit the specific number of receiving $packets.
当用户按下测试停止按钮,移动终端会连续发送预定数量如5个T包至服务器,此时直接结束测试,并释放本地资源。当服务器收到第一个T包后,则会删除该用户对应的记录,而在收到其他重复的T包后,无动作。When the user presses the test stop button, the mobile terminal continuously sends a predetermined number, such as 5 T packets, to the server, at which point the test is directly ended and the local resources are released. When the server receives the first T packet, it deletes the record corresponding to the user, and after receiving other duplicate T packets, there is no action.
本发明还提供一种移动网络的性能测试方法,参照图6,在一实施例中,所述移动网络的性能测试方法包括以下步骤:The present invention also provides a performance testing method for a mobile network. Referring to FIG. 6, in an embodiment, the performance testing method of the mobile network includes the following steps:
步骤S21,服务器在接收到移动终端发送的第一类型控制包时,将所述第一类型控制包弹回至所述移动终端;Step S21: When receiving the first type control packet sent by the mobile terminal, the server bounces the first type control packet back to the mobile terminal;
本发明中,移动终端和服务器之间是配合使用的,双方需要遵守特定的测试协议,协议主要包括交互步骤、控制包和数据包的格式定义、异常情况处理等。因此从实现的角度看,移动终端按测试协议规定,以特定模式周期性发送上行控制包和数据包,接收下行数据包并完成统计计算,以及保存测试日志文件供后续分析;而服务器按控制协议,接收各种上行数据包,对上行指标进行计算后携带给移动终端,并按测试协议发送下行控制包和数据包。In the present invention, the mobile terminal and the server are used together, and both parties need to comply with a specific test protocol, and the protocol mainly includes an interaction step, a format definition of the control packet and the data packet, and an abnormal situation processing. Therefore, from the perspective of implementation, the mobile terminal periodically sends the uplink control packet and the data packet in a specific mode according to the test protocol, receives the downlink data packet and completes the statistical calculation, and saves the test log file for subsequent analysis; and the server presses the control protocol. Receiving various uplink data packets, carrying the uplink indicators into the mobile terminal, and transmitting the downlink control packets and data packets according to the test protocol.
本实施例中,第一类型控制包携带下行发包的控制参数,在移动终端接收到服务器的回复后,移动终端即启动发包过程。In this embodiment, the first type control packet carries the control parameter of the downlink sending packet, and after the mobile terminal receives the reply of the server, the mobile terminal starts the sending process.
本发明定义了不同类型的控制包和数据包,第一类型控制包(S包)、第一类型数据包(U包)、第二类型控制包(#包)、第二类型数据包(D包)、第三类型控制包($包)、第四类型控制包(T包),具体参照图2和图3:The present invention defines different types of control packets and data packets, a first type of control packet (S packet), a first type of data packet (U packet), a second type of control packet (# packet), and a second type of data packet (D). Package), third type control package ($package), fourth type control package (T package), specifically refer to Figure 2 and Figure 3:
其中,S和T包分别是用户按下启动和停止按钮后发出的控制包,其他包是在每一轮测试中都会出现的。例如用户配置了10轮测试,则测试正常进行时,会包含U(N个)-#-D(N个)-$-U(N个)-#-D(N个)-$-...这样的循环10次。N是可配置的,由协议执行者选定即可。下文中均以N=1000为例,凡出现1000的地方,均对应1000个U或D包。Among them, the S and T packages are the control packets issued by the user after pressing the start and stop buttons, respectively, and other packages will appear in each round of testing. For example, if the user configures 10 rounds of tests, the test will normally include U(N)-#-D(N)-$-U(N)-#-D(N)-$-.. This cycle is 10 times. N is configurable and can be selected by the protocol executor. In the following, N=1000 is taken as an example. Where 1000 appears, it corresponds to 1000 U or D packages.
步骤S22,接收所述移动终端发送的第一类型数据包,并在接收到所述移动终端发送的第二类型控制包时,向所述移动终端连续发送预定数量的第二类型数据包; Step S22, receiving a first type of data packet sent by the mobile terminal, and continuously transmitting a predetermined number of second type data packets to the mobile terminal when receiving the second type control packet sent by the mobile terminal;
本实施例中,服务器向所述移动终端连续发送预定数量N个D包,待发送完毕,服务器计算出本轮的上行性能统计数据,并将所述上行性能统计数据放入$包中,再将$包发送至移动终端。其中,$包同时也指示着本轮的下行数据发送完毕。In this embodiment, the server continuously sends a predetermined number of N D packets to the mobile terminal, and after the transmission is completed, the server calculates the uplink performance statistics of the current round, and puts the uplink performance statistics into the $package, and then Send the $ packet to the mobile terminal. Among them, the $ package also indicates that the downlink data of this round has been sent.
步骤S23,待所述第二类型数据包发送完毕,计算出本轮的上行性能统计数据,并将所述上行性能统计数据放入第三类型控制包中,再将所述第三类型控制包发送至所述移动终端,以供所述移动终端将所述上行性能统计数据以及计算出的下行性能统计数据写入测试日志文件。Step S23, after the second type of data packet is sent, calculate uplink performance statistics of the current round, and put the uplink performance statistics into a third type control packet, and then use the third type control packet. Sending to the mobile terminal, where the mobile terminal writes the uplink performance statistics and the calculated downlink performance statistics into the test log file.
本实施例中,服务器在将D包发送完毕时,计算本轮的上行统计数据,并将该上行性能统计数据放入$包中,并发送至移动终端,当移动终端在接收到$包后,计算本轮的下行性能统计数据,移动终端则将所述上行性能统计数据和下行性能统计数据一起写入测试日志文件。In this embodiment, when the server sends the D packet, the server calculates the uplink statistics of the current round, and puts the uplink performance statistics into the $packet, and sends the data to the mobile terminal, after the mobile terminal receives the $packet. The downlink performance statistics of the current round are calculated, and the mobile terminal writes the uplink performance statistics and the downlink performance statistics together into the test log file.
以上为一轮发包循环,正常情况会进入下一轮发包循环,重复步骤S21至S23,待所述移动终端接收到停止指令时,则向所述服务器发送第四类型控制包,当服务器接收到T包时,即结束针对移动网络的性能测试。The above is a round of packet delivery cycle. Normally, the next round of the packet issuance cycle is repeated, and steps S21 to S23 are repeated. When the mobile terminal receives the stop command, the fourth type control packet is sent to the server, when the server receives the message. When the T packet is used, the performance test for the mobile network is ended.
本实施例中,进入下一轮发包循环,移动终端先发送N个U包,服务器再发送N个D包,即采用半双工的测试方式,直至用户按下停止按钮触发停止指令,移动终端则发送T包至服务器,以结束针对移动网络的性能测试。In this embodiment, the mobile terminal enters the next round of packet transmission, the mobile terminal first sends N U packets, and the server sends N D packets, that is, adopts a half duplex test mode until the user presses the stop button to trigger a stop command, and the mobile terminal Then send a T packet to the server to end the performance test for the mobile network.
本发明中提及的移动网络,其接入网类型包括但不限于GSM(Global System for Mobile Communication,全球移动通信系统)、UMTS(通用移动通信系统,简称UMTS(Universal Mobile Telecommunications System)、CDMA(Code Division Multiple Access,码分多址)、TD-SCDMA(Time Division-Synchronous Code Division Multiple Access,时分同步码分多址)、FDD-LTE(频分双工-长期演进技术)、TDD-LTE(时分双工-长期演进技术)等无线制式。除接入网之外,还包括PS(Packet Switch,分组交换)数据域核心网、IP传输网及Internet上的各种业务服务器,整体上构成了端到端的业务传输路径。The mobile network mentioned in the present invention includes, but is not limited to, GSM (Global System for Mobile Communication), UMTS (Universal Mobile Telecommunications System, UMTS (Universal Mobile Telecommunications System), CDMA ( Code Division Multiple Access, TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplex-Long Term Evolution), TDD-LTE ( Wireless system such as time division duplexing-long-term evolution technology. In addition to the access network, it also includes PS (Packet Switch) data domain core network, IP transmission network and various service servers on the Internet, which constitutes the whole. End-to-end service transmission path.
本发明提供的移动网络的性能测试方法,通过服务器在接收到移动终端发送的第一类型控制包时,将第一类型控制包弹回至移动终端,当接收到移动终端发送的第二类型控制包时,向移动终端连续发送第二类型数据包,待 发送完毕,计算出本轮的上行性能统计数据,并放入第三类型控制包中,然后将第三类型控制包发送至移动终端,以供移动终端将上行性能统计数据以及计算出的下行性能统计数据写入测试日志文件。这样,通过对真实网络进行性能测试,以获取针对端到端链路上的丢包、乱序和吞吐率等指标,从而可以对移动网络进行精确诊断。The performance testing method for the mobile network provided by the present invention, when the server receives the first type control packet sent by the mobile terminal, bounces the first type control packet back to the mobile terminal, and receives the second type control sent by the mobile terminal. When the packet is transmitted, the second type of data packet is continuously sent to the mobile terminal, waiting for After the transmission is completed, the uplink performance statistics of the current round are calculated, and placed in the third type control packet, and then the third type control packet is sent to the mobile terminal, so that the mobile terminal performs uplink performance statistics and the calculated downlink performance. Statistics are written to the test log file. In this way, by performing performance tests on the real network to obtain indicators such as packet loss, out-of-order, and throughput on the end-to-end link, accurate diagnosis of the mobile network can be performed.
在一实施例中,如图7所示,在上述图6的实施例的基础上,本实施例中,所述步骤S21包括:In an embodiment, as shown in FIG. 7, on the basis of the foregoing embodiment of FIG. 6, in the embodiment, the step S21 includes:
步骤S211,所述服务器解析出所述第一类型控制包中含有的国际移动用户识别码IMSI,并根据所述IMSI查找对应的用户记录;Step S211, the server parses out an international mobile subscriber identity IMSI contained in the first type control packet, and searches for a corresponding user record according to the IMSI;
步骤S212,若查找到用户记录,所述服务器则将所述第一类型控制包弹回至所述移动终端,并新建用户记录;Step S212, if the user record is found, the server bounces the first type control packet back to the mobile terminal, and creates a new user record;
本实施例中,所述服务器收到S包的处理过程如下:In this embodiment, the process of receiving the S packet by the server is as follows:
服务器解析S包中含有的IMSI,并根据所述IMSI查找对应的用户记录;若查找到与IMSI对应的用户记录,表明服务器端的资源准备已经完毕,但可能上次由服务器弹回的应答S包丢失,导致移动终端没有收到,而本次收到的是移动终端再次发送的重传S包,此时服务器只需要再次弹回收到的重传S包即可。另一种可能是上次对移动网络进行性能测试时,移动终端出现异常,导致未能正常退出。为了让系统处于可预期的初始化状态,需要重新建立该IMSI对应的用户记录。The server parses the IMSI contained in the S packet, and searches for the corresponding user record according to the IMSI; if the user record corresponding to the IMSI is found, it indicates that the resource preparation of the server side has been completed, but the response S packet that may be bounced back by the server last time may be If it is lost, the mobile terminal does not receive it, and this time it receives the retransmission S packet sent by the mobile terminal again. At this time, the server only needs to replay the retransmitted S packet. Another possibility is that when the mobile network was tested for performance last time, the mobile terminal was abnormal, causing it to fail to exit normally. In order to put the system in a predictable initialization state, the user record corresponding to the IMSI needs to be re-established.
步骤S213,若否,所述服务器则新建用户记录,并将所述第一类型控制包弹回至所述移动终端。Step S213, if not, the server creates a new user record and bounces the first type control packet back to the mobile terminal.
本实施例中,若服务器没有查找到与IMSI对应的用户记录,则新建一条与IMSI对应的用户记录,其中,新建的用户记录中包含的核心信息是一个长为1000的消息队列,每条消息的字段组成如图8所示,具体包括:发包轮数round、包序列号Seq、终端侧发包时戳Tm、服务器侧收包时戳Ts以及队列的预定槽位是否收到包Valid。每轮发包前,所有消息的所有字段都重新清零,待用户记录创建完毕,服务器则弹回S包作为应答(这里的弹回指服务器原样返回收到的包给移动终端),移动终端收到应答后即刻连续发送预定数量N个U包至所述服务器。 In this embodiment, if the server does not find the user record corresponding to the IMSI, a new user record corresponding to the IMSI is created, wherein the core information included in the newly created user record is a message queue of length 1000, each message The field composition is as shown in FIG. 8 , which specifically includes: the round number of rounds of the package, the serial number Seq of the packet, the time stamp Tm of the terminal side, the time stamp Ts of the server side, and whether the predetermined slot of the queue receives the package Valid. Before each round of packet delivery, all fields of all messages are reset to zero. After the user record is created, the server bounces back to the S packet as a response (here, the bouncing back server returns the received packet to the mobile terminal as it is), and the mobile terminal receives A predetermined number of N U packets are continuously transmitted to the server immediately after the response.
因此,本发明中服务器只要收到S包,不管是否重复,都建立新的与IMSI对应的用户记录,并弹回S包至移动终端。而移动终端必须收到弹回的S包,才能开始发U包至服务器。如此,移动终端才可以确认服务器资源(消息队列)分配好了。Therefore, in the present invention, the server only needs to receive the S packet, regardless of whether it is repeated or not, to establish a new user record corresponding to the IMSI, and bounce back the S packet to the mobile terminal. The mobile terminal must receive the bounced S packet before it can start sending U packets to the server. In this way, the mobile terminal can confirm that the server resource (message queue) is allocated.
本实施例中,移动终端使用接收超时机制(门限可由实际执行者选择),如果移动终端接收S包超时,则会重发S包,这个过程持续尝试预定次数如5次,若在5次内均失败,移动终端则放弃测试,并提示用户本次测试启动失败。In this embodiment, the mobile terminal uses a receiving timeout mechanism (the threshold can be selected by the actual performer). If the mobile terminal receives the S packet timeout, the S packet is retransmitted, and the process continues to try the predetermined number of times, such as 5 times, if within 5 times. All failed, the mobile terminal gave up the test and prompted the user to fail the test.
在一实施例中,如图9所示,在上述图7的实施例的基础上,本实施例中,所述步骤S21之后还包括:In an embodiment, as shown in FIG. 9, on the basis of the foregoing embodiment of FIG. 7, in this embodiment, after the step S21, the method further includes:
步骤S24,所述服务器根据所述IMSI查找对应的用户记录;Step S24, the server searches for a corresponding user record according to the IMSI;
步骤S25,若查找到用户记录,所述服务器则抽取所述第一类型数据包的发包轮数、终端侧发包时戳字段以及所述序列号,并根据所述序列号将所述第一类型数据包放入队列的预定位置,并设置所述队列的到位字段为第二预定值;Step S25: If the user record is found, the server extracts the number of rounds of the first type of data packet, the terminal side packet time stamp field, and the serial number, and the first type according to the serial number. The data packet is placed in a predetermined position of the queue, and the in-position field of the queue is set to a second predetermined value;
步骤S26,若否,则忽略所述第一类型数据包。Step S26, if no, the first type of data packet is ignored.
本实施例中,服务器根据所述IMSI查找对应的用户记录,若没有查找到对应的用户记录,则可能是T包先到并触发了用户记录被删除,而U包是后到的乱序包。因此,此时不做任何动作,并忽略该U包。In this embodiment, the server searches for the corresponding user record according to the IMSI. If the corresponding user record is not found, the T packet may first arrive and trigger the user record to be deleted, and the U packet is the out-of-order packet. . Therefore, no action is taken at this time, and the U package is ignored.
若服务器根据所述IMSI查找到对应的用户记录,服务器抽取每个U包的发包轮数round、终端侧发包时戳字段Tm以及所述序列号,并以序列号做下标,找到消息队列的对应位置,写入对应的消息,并将消息的Valid字段置为1。消息中的Ts时戳字段就是服务器收到该包的时刻,以备后续计算服务器内部处理的时延之用。如果某个位置最终没有收到包,表明该U包丢失,则此位置对应的Tm为0。If the server finds the corresponding user record according to the IMSI, the server extracts the round number of rounds of each U packet, the time stamp field Tm of the terminal side, and the serial number, and subscripts the serial number to find the message queue. Corresponding location, write the corresponding message, and set the Valid field of the message to 1. The Ts timestamp field in the message is the time when the server receives the packet, in case it is used to calculate the delay of the internal processing of the server. If a location does not receive a packet at the end, indicating that the U packet is missing, the Tm corresponding to this location is 0.
当移动终端发送完1000个U包后,直接发1个#包,然后开始接收服务器发送的D包。如果超时服务器还未收到D包,会重复发送#包。如果尝试预定次数如5次后仍然收不到D包,则移动终端放弃测试,并提示用户本次测试启动失败。 After the mobile terminal sends 1000 U packets, it directly sends a #Pack, and then starts receiving the D packets sent by the server. If the timeout server has not received the D packet, the #包 will be sent repeatedly. If the D packet is still not received after the predetermined number of attempts, such as 5 times, the mobile terminal abandons the test and prompts the user to fail the test.
在一实施例中,如图10所示,在上述图9的实施例的基础上,本实施例中,所述步骤S25之后还包括:In an embodiment, as shown in FIG. 10, on the basis of the foregoing embodiment of FIG. 9, in the embodiment, after the step S25, the method further includes:
步骤S26,所述服务器获取当前时刻以及所述第一类型数据包放入队列的入队时刻;Step S26, the server acquires the current time and the enqueue time of the first type of data packet into the queue;
步骤S27,计算所述当前时刻与所述入队时刻之间的差值,得到服务器内部处理时延。Step S27: Calculate a difference between the current time and the enqueue time to obtain a server internal processing delay.
本实施例中,大部分包的字段定义已经明确示于图1和2中,这里只重点介绍一下D包和$包。D包中的“终端时戳弹回”字段,是直接取自对应U包中的“终端侧发包时戳”字段,移动终端收到D包的时间减去弹回的U包发送时戳,就是这个特定序列号包的往返时延,记为T1。但由于每个包都在服务器内部经过了排队等待(依次收完所有上行包,才能开始下行发送过程),因此D包中提供了“服务器内部处理时延”字段,记为T2,T1-T2则反映了真正的传输路径上的端到端往返时延。最后,$包中稍带了关于本轮上行的性能统计数据,因为这些信息只能由服务器反馈给移动终端,移动终端能自主计算的只是本轮的下行性能统计数据。In this embodiment, the field definitions of most of the packages have been explicitly shown in Figures 1 and 2, and only the D packets and the packets are highlighted here. The "terminal timestamp bounce" field in the D packet is directly taken from the "terminal side packet timestamp" field in the corresponding U packet, and the mobile terminal receives the D packet minus the bounced U packet transmission time stamp. This is the round-trip delay of this particular sequence number packet, denoted as T1. However, since each packet is queued in the server (the downlink transmission process can be started after all the uplink packets are received in sequence), the "server internal processing delay" field is provided in the D packet, which is recorded as T2, T1-T2. It reflects the end-to-end round-trip delay on the true transmission path. Finally, the $ packet contains performance statistics about the current round of the uplink, because this information can only be fed back to the mobile terminal by the server. The mobile terminal can calculate the downlink performance statistics of the current round.
当服务器收到#包后,不论是第几次收到#包,马上开始按序发送1000个D包,该包中的“服务器内部处理时延”字段由服务器根据当前时刻与对应U包的入队时刻Ts之差计算得到。值得注意的是,如步骤S26所述,对队列中Tm为0的消息,其对应的D包的Tm字段也为0。移动终端收到该D包后(如果该D包未丢),通过检查D包的Tm字段是否为0,即可判断该位置对应的U包是否在上行传输时丢了。通过这种机制,移动终端既可以通过分析D包的接收队列来得知每个下行丢包的具体编号,也能通过D包的Tm字段来推导出每个上行丢包的具体编号。When the server receives the # packet, no matter how many times it receives the # packet, it immediately starts sending 1000 D packets in sequence. The "server internal processing delay" field in the packet is determined by the server according to the current time and the corresponding U packet. The difference between the entry time Ts is calculated. It should be noted that, as described in step S26, for a message whose Tm is 0 in the queue, the Tm field of the corresponding D packet is also 0. After the mobile terminal receives the D packet (if the D packet is not lost), it can be determined whether the U packet corresponding to the location is lost during uplink transmission by checking whether the Tm field of the D packet is 0. Through this mechanism, the mobile terminal can learn the specific number of each downlink packet by analyzing the receiving queue of the D packet, and can also derive the specific number of each uplink packet by using the Tm field of the D packet.
所有D包发送完成后,服务器根据消息队列计算上行的丢包率、乱序率和吞吐率指标,以此构造$包,然后连续发送5个$包给终端,以确保终端能收到。After all the D packets are sent, the server calculates the uplink packet loss rate, out-of-order rate and throughput rate according to the message queue to construct the $ packet, and then continuously sends 5 packets to the terminal to ensure that the terminal can receive the packet.
如图11所示,根据服务器端的消息队列,可计算上行的各项性能指标。移动终端也维护一个类似队列,计算方法也类似,此处从略。图10中的T1< T2<T3<...<Ti<...<T1000,是递增序列,X代表该序列号对应的上行U包未被服务器收到。各指标计算方法如下:As shown in FIG. 11, according to the message queue of the server, the performance indicators of the uplink can be calculated. The mobile terminal also maintains a similar queue, and the calculation method is similar, which is omitted here. T1 in Figure 10< T2<T3<...<Ti<...<T1000 is an incremental sequence, and X represents that the uplink U packet corresponding to the serial number is not received by the server. The calculation methods of each indicator are as follows:
1)上行丢包率=所有X的个数总和/1000;1) Upstream packet loss rate = sum of all Xs / 1000;
2)上行吞吐率=上行收到的所有包的字节总和/(Ti的最大值-Ti的最小值);2) Upstream throughput rate = sum of bytes of all packets received in the uplink / (maximum value of Ti - minimum value of Ti);
由于存在乱序的可能,如图10中的T2和T3代表序列号为3的U包先于第2个到达,因此Ti的最大值和最小值需要扫描消息队列后得出;Because of the possibility of out-of-order, T2 and T3 in Figure 10 represent that the U packet with sequence number 3 arrives before the second, so the maximum and minimum values of Ti need to be scanned after the message queue is obtained;
3)上行乱序率=上行乱序的次数总和/上行收到的总包数;3) Upstream out-of-order rate = sum of times of uplink out-of-orders / total number of packets received in the uplink;
乱序的个数计算:对每个非X的消息,提取其Ts值(记为left)和下一个Ts值(记为right),如果right<left,则记作一个乱序。例如图4中的T2<T3,因此出现一次乱序。Out-of-order number calculation: For each non-X message, extract its Ts value (marked as left) and the next Ts value (denoted as right). If right<left, it is recorded as an out-of-order. For example, T2 < T3 in Fig. 4, so an out of order occurs.
本发明还提供一种移动终端1,参照图12,在一实施例中,所述移动终端1包括:The present invention further provides a mobile terminal 1. Referring to FIG. 12, in an embodiment, the mobile terminal 1 includes:
第一发送模块11,设置为发送第一类型控制包至服务器,并在接收到所述服务器的回复后连续发送预定数量的第一类型数据包至所述服务器;The first sending module 11 is configured to send the first type control packet to the server, and continuously send a predetermined number of first type data packets to the server after receiving the reply of the server;
本发明中,移动终端1和服务器之间是配合使用的,双方需要遵守特定的测试协议,协议主要包括交互步骤、控制包和数据包的格式定义、异常情况处理等。因此从实现的角度看,移动终端1按测试协议规定,以特定模式周期性发送上行控制包和数据包,接收下行数据包并完成统计计算,以及保存测试日志文件供后续分析;而服务器按控制协议,接收各种上行数据包,对上行指标进行计算后携带给移动终端1,并按测试协议发送下行控制包和数据包。In the present invention, the mobile terminal 1 and the server are used together, and both parties need to comply with a specific test protocol, and the protocol mainly includes an interaction step, a control packet and a format definition of the data packet, and an abnormal situation processing. Therefore, from the perspective of implementation, the mobile terminal 1 periodically transmits the uplink control packet and the data packet in a specific mode according to the test protocol, receives the downlink data packet and completes the statistical calculation, and saves the test log file for subsequent analysis; The protocol receives various uplink data packets, carries the calculation of the uplink indicator to the mobile terminal 1, and sends the downlink control packet and the data packet according to the test protocol.
本实施例中,第一类型控制包携带下行发包的控制参数,在移动终端1接收到服务器的回复后,移动终端1即启动发包过程。In this embodiment, the first type control packet carries the control parameters of the downlink packet, and after the mobile terminal 1 receives the reply from the server, the mobile terminal 1 starts the packet sending process.
本发明定义了不同类型的控制包和数据包,第一类型控制包(S包)、第一类型数据包(U包)、第二类型控制包(#包)、第二类型数据包(D包)、第三类型控制包($包)、第四类型控制包(T包),具体参照图2和图3:The present invention defines different types of control packets and data packets, a first type of control packet (S packet), a first type of data packet (U packet), a second type of control packet (# packet), and a second type of data packet (D). Package), third type control package ($package), fourth type control package (T package), specifically refer to Figure 2 and Figure 3:
其中,S和T包分别是用户按下启动和停止按钮后发出的控制包,其他包是在每一轮测试中都会出现的。例如用户配置了10轮测试,则测试正常进 行时,会包含U(N个)-#-D(N个)-$-U(N个)-#-D(N个)-$-...这样的循环10次。N是可配置的,由协议执行者选定即可。下文中均以N=1000为例,凡出现1000的地方,均对应1000个U或D包。Among them, the S and T packages are the control packets issued by the user after pressing the start and stop buttons, respectively, and other packages will appear in each round of testing. For example, if the user configures 10 rounds of tests, the test is normal. In the line, it will contain U(N)-#-D(N)-$-U(N)-#-D(N)-$-... cycles 10 times. N is configurable and can be selected by the protocol executor. In the following, N=1000 is taken as an example. Where 1000 appears, it corresponds to 1000 U or D packages.
第二发送模块12,设置为待所述第一类型数据包发送完毕,移动终端1发送第二类型控制包至所述服务器,以告知所述服务器本轮上行数据发送完成;The second sending module 12 is configured to send the first type of data packet to the server, and the mobile terminal 1 sends the second type of control packet to the server to notify the server that the uplink data transmission is completed.
本实施例中,待N个U包发送完毕,移动终端1通过#包通知服务器本轮的上行数据发送完毕,服务器此时开始连续发送N个D包。In this embodiment, after the N U packets are transmitted, the mobile terminal 1 notifies the server that the uplink data transmission of the current round is completed by the # packet, and the server starts to continuously send N D packets at this time.
计算处理模块13,设置为接收所述服务器发送的第二类型数据包,并在接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,将所述上行性能统计数据和下行性能统计数据写入测试日志文件。The calculation processing module 13 is configured to receive the second type of data packet sent by the server, and obtain the uplink performance statistics calculated by the server when the third type control packet sent by the server is received, and calculate the current round The downlink performance statistics data is written into the test log file by using the uplink performance statistics and the downlink performance statistics.
本实施例中,移动终端1在接收到$包后,计算本轮的下行性能统计数据,并结合服务器计算的上行性能统计数据,一起写入测试日志文件。In this embodiment, after receiving the $ packet, the mobile terminal 1 calculates the downlink performance statistics of the current round, and writes the test log file together with the uplink performance statistics calculated by the server.
以上为一轮发包循环,正常情况会进入下一轮发包循环,重复步骤S11至S13,待所述移动终端1接收到停止指令时,则向所述服务器发送第四类型控制包,以结束针对移动网络的性能测试。The above is a round of packet transmission cycle. Normally, the next round of the packet issuance cycle is repeated, and steps S11 to S13 are repeated. When the mobile terminal 1 receives the stop command, the fourth type control packet is sent to the server to end the target. Performance testing of mobile networks.
本实施例中,进入下一轮发包循环,移动终端1先发送N个U包,服务器再发送N个D包,即采用半双工的测试方式,直至用户按下停止按钮触发停止指令,移动终端1则发送T包至服务器,以结束针对移动网络的性能测试。In this embodiment, the next round of the packet issuance cycle, the mobile terminal 1 first sends N U packets, and the server sends N D packets, that is, adopts the half duplex test mode until the user presses the stop button to trigger the stop command, and moves. Terminal 1 then sends a T packet to the server to end the performance test for the mobile network.
本发明中提及的移动网络,其接入网类型包括但不限于GSM(Global System for Mobile Communication,全球移动通信系统)、UMTS(通用移动通信系统,简称UMTS(Universal Mobile Telecommunications System)、CDMA(Code Division Multiple Access,码分多址)、TD-SCDMA(Time Division-Synchronous Code Division Multiple Access,时分同步码分多址)、FDD-LTE(频分双工-长期演进技术)、TDD-LTE(时分双工-长期演进技术)等无线制式。除接入网之外,还包括PS(Packet Switch,分组交换)数据域核心网、IP传输网及Internet上的各种业务服务器,整体上构成了端到端的业务传输路径。 The mobile network mentioned in the present invention includes, but is not limited to, GSM (Global System for Mobile Communication), UMTS (Universal Mobile Telecommunications System, UMTS (Universal Mobile Telecommunications System), CDMA ( Code Division Multiple Access, TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplex-Long Term Evolution), TDD-LTE ( Wireless system such as time division duplexing-long-term evolution technology. In addition to the access network, it also includes PS (Packet Switch) data domain core network, IP transmission network and various service servers on the Internet, which constitutes the whole. End-to-end service transmission path.
本发明提供的移动终端1,通过发送第一类型控制包至服务器,并在接收到服务器的回复后连续发送第一类型数据包至所述服务器,待发送完毕,发送第二类型控制包至服务器,以告知本轮上行数据发送完成,当接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,然后将所述上行性能统计数据和下行性能统计数据写入测试日志文件。这样,利用移动终端1对真实网络进行性能测试,以获取针对端到端链路上的丢包、乱序和吞吐率等指标,从而可以对移动网络进行精确诊断。The mobile terminal 1 provided by the present invention sends a first type of data packet to the server by sending a first type of control packet to the server, and after receiving the reply of the server, continuously sends the first type of data packet to the server, and after the transmission is completed, the second type control packet is sent to the server. In order to inform the current round of uplink data transmission completion, when receiving the third type control packet sent by the server, acquiring uplink performance statistics calculated by the server, and calculating downlink performance statistics of the current round, and then The uplink performance statistics and downlink performance statistics are written to the test log file. In this way, the mobile terminal 1 is used to perform performance tests on the real network to obtain indicators such as packet loss, out-of-order, and throughput on the end-to-end link, so that the mobile network can be accurately diagnosed.
本发明还提供一种服务器2,参照图13,在一实施例中,所述服务器2包括:The present invention also provides a server 2, referring to FIG. 13, in an embodiment, the server 2 includes:
弹回模块21,设置为在接收到移动终端1发送的第一类型控制包时,将所述第一类型控制包弹回至所述移动终端1;The bounce module 21 is configured to, when receiving the first type control packet sent by the mobile terminal 1, bounce the first type control packet back to the mobile terminal 1;
本发明中,移动终端1和服务器2之间是配合使用的,双方需要遵守特定的测试协议,协议主要包括交互步骤、控制包和数据包的格式定义、异常情况处理等。因此从实现的角度看,移动终端1按测试协议规定,以特定模式周期性发送上行控制包和数据包,接收下行数据包并完成统计计算,以及保存测试日志文件供后续分析;而服务器2按控制协议,接收各种上行数据包,对上行指标进行计算后携带给移动终端1,并按测试协议发送下行控制包和数据包。In the present invention, the mobile terminal 1 and the server 2 are used together, and both parties need to comply with a specific test protocol, and the protocol mainly includes an interaction step, a control packet and a format definition of the data packet, and an abnormal situation processing. Therefore, from the perspective of implementation, the mobile terminal 1 periodically transmits the uplink control packet and the data packet in a specific mode according to the test protocol, receives the downlink data packet and completes the statistical calculation, and saves the test log file for subsequent analysis; The control protocol receives various uplink data packets, carries the calculation of the uplink indicator to the mobile terminal 1, and sends the downlink control packet and the data packet according to the test protocol.
本实施例中,第一类型控制包携带下行发包的控制参数,在移动终端1接收到服务器2的回复后,移动终端1即启动发包过程。In this embodiment, the first type control packet carries the control parameters of the downlink packet, and after the mobile terminal 1 receives the reply from the server 2, the mobile terminal 1 starts the packet sending process.
本发明定义了不同类型的控制包和数据包,第一类型控制包(S包)、第一类型数据包(U包)、第二类型控制包(#包)、第二类型数据包(D包)、第三类型控制包($包)、第四类型控制包(T包),具体参照图2和图3:The present invention defines different types of control packets and data packets, a first type of control packet (S packet), a first type of data packet (U packet), a second type of control packet (# packet), and a second type of data packet (D). Package), third type control package ($package), fourth type control package (T package), specifically refer to Figure 2 and Figure 3:
其中,S和T包分别是用户按下启动和停止按钮后发出的控制包,其他包是在每一轮测试中都会出现的。例如用户配置了10轮测试,则测试正常进行时,会包含U(N个)-#-D(N个)-$-U(N个)-#-D(N个)-$-...这样的循环10次。N是可配置的,由协议执行者选定即可。下文中均以N=1000为例,凡出现1000的地方,均对应1000个U或D包。 Among them, the S and T packages are the control packets issued by the user after pressing the start and stop buttons, respectively, and other packages will appear in each round of testing. For example, if the user configures 10 rounds of tests, the test will normally include U(N)-#-D(N)-$-U(N)-#-D(N)-$-.. This cycle is 10 times. N is configurable and can be selected by the protocol executor. In the following, N=1000 is taken as an example. Where 1000 appears, it corresponds to 1000 U or D packages.
第三发送模块22,设置为接收所述移动终端1发送的第一类型数据包,并在接收到所述移动终端1发送的第二类型控制包时,向所述移动终端1连续发送预定数量的第二类型数据包;The third sending module 22 is configured to receive the first type of data packet sent by the mobile terminal 1, and continuously send the predetermined number to the mobile terminal 1 when receiving the second type of control packet sent by the mobile terminal 1. Second type of data packet;
本实施例中,服务器2向所述移动终端1连续发送预定数量N个D包,待发送完毕,服务器2计算出本轮的上行性能统计数据,并将所述上行性能统计数据放入$包中,再将$包发送至移动终端1。其中,$包同时也指示着本轮的下行数据发送完毕。In this embodiment, the server 2 continuously sends a predetermined number of N D packets to the mobile terminal 1. After the transmission is completed, the server 2 calculates the uplink performance statistics of the current round, and puts the uplink performance statistics into the package. In the middle, the $ packet is sent to the mobile terminal 1. Among them, the $ package also indicates that the downlink data of this round has been sent.
第四发送模块23,设置为待所述第二类型数据包发送完毕,计算出本轮的上行性能统计数据,并将所述上行性能统计数据放入第三类型控制包中,再将所述第三类型控制包发送至所述移动终端1,以供所述移动终端1将所述上行性能统计数据以及计算出的下行性能统计数据写入测试日志文件。The fourth sending module 23 is configured to: after the second type of data packet is sent, calculate the uplink performance statistics of the current round, and put the uplink performance statistics into the third type control packet, and then The third type of control packet is sent to the mobile terminal 1 for the mobile terminal 1 to write the uplink performance statistics and the calculated downlink performance statistics into the test log file.
本实施例中,服务器2在将D包发送完毕时,计算本轮的上行统计数据,并将该上行性能统计数据放入$包中,并发送至移动终端1,当移动终端1在接收到$包后,计算本轮的下行性能统计数据,移动终端1则将所述上行性能统计数据和下行性能统计数据一起写入测试日志文件。In this embodiment, when the D packet is sent, the server 2 calculates the uplink statistics of the current round, and puts the uplink performance statistics into the $packet, and sends the data to the mobile terminal 1, when the mobile terminal 1 receives the After the $ packet, the downlink performance statistics of the current round are calculated, and the mobile terminal 1 writes the uplink performance statistics and the downlink performance statistics together into the test log file.
以上为一轮发包循环,正常情况会进入下一轮发包循环,重复步骤S21至S23,待所述移动终端1接收到停止指令时,则向所述服务器2发送第四类型控制包,当服务器2接收到T包时,即结束针对移动网络的性能测试。The above is a round of packet delivery cycle. Normally, the next round of the packet issuance cycle is repeated, and steps S21 to S23 are repeated. When the mobile terminal 1 receives the stop command, the fourth type control packet is sent to the server 2, when the server 2 When the T packet is received, the performance test for the mobile network is ended.
本实施例中,进入下一轮发包循环,移动终端1先发送N个U包,服务器2再发送N个D包,即采用半双工的测试方式,直至用户按下停止按钮触发停止指令,移动终端1则发送T包至服务器2,以结束针对移动网络的性能测试。In this embodiment, the next round of the packet issuance loop, the mobile terminal 1 first sends N U packets, and the server 2 sends N D packets, that is, adopts the half duplex test mode until the user presses the stop button to trigger the stop command. The mobile terminal 1 then transmits a T packet to the server 2 to end the performance test for the mobile network.
本发明中提及的移动网络,其接入网类型包括但不限于GSM(Global System for Mobile Communication,全球移动通信系统)、UMTS(通用移动通信系统,简称UMTS(Universal Mobile Telecommunications System)、CDMA(Code Division Multiple Access,码分多址)、TD-SCDMA(Time Division-Synchronous Code Division Multiple Access,时分同步码分多址)、FDD-LTE(频分双工-长期演进技术)、TDD-LTE(时分双工-长期演进技术)等无线制式。除接入网之外,还包括PS(Packet Switch,分组交换)数据域核心网、IP传输网及Internet上的各种业务服务器2,整体上构成了端到端的 业务传输路径。The mobile network mentioned in the present invention includes, but is not limited to, GSM (Global System for Mobile Communication), UMTS (Universal Mobile Telecommunications System, UMTS (Universal Mobile Telecommunications System), CDMA ( Code Division Multiple Access, TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplex-Long Term Evolution), TDD-LTE ( Wireless system such as time division duplexing-long-term evolution technology. In addition to the access network, it also includes a PS (Packet Switch) data domain core network, an IP transmission network, and various service servers 2 on the Internet. End-to-end Service transmission path.
本发明提供的服务器2,通过在接收到移动终端1发送的第一类型控制包时,将第一类型控制包弹回至移动终端1,当接收到移动终端1发送的第二类型控制包时,向移动终端1连续发送第二类型数据包,待发送完毕,计算出本轮的上行性能统计数据,并放入第三类型控制包中,然后将第三类型控制包发送至移动终端1,以供移动终端1将上行性能统计数据以及计算出的下行性能统计数据写入测试日志文件。这样,通过对真实网络进行性能测试,以获取针对端到端链路上的丢包、乱序和吞吐率等指标,从而可以对移动网络进行精确诊断。The server 2 provided by the present invention, when receiving the first type control packet sent by the mobile terminal 1, bounces the first type control packet back to the mobile terminal 1, and when receiving the second type control packet sent by the mobile terminal 1, And continuously transmitting the second type of data packet to the mobile terminal 1, and after the transmission is completed, calculating the uplink performance statistics data of the current round, and putting the third type control packet into the third type control packet, and then sending the third type control packet to the mobile terminal 1, The mobile terminal 1 writes the uplink performance statistics and the calculated downlink performance statistics into the test log file. In this way, by performing performance tests on the real network to obtain indicators such as packet loss, out-of-order, and throughput on the end-to-end link, accurate diagnosis of the mobile network can be performed.
本发明还提供一种测试系统100,参照图14,在一实施例中,所述测试系统100包括移动终端1和服务器2,The present invention also provides a test system 100. Referring to FIG. 14, in an embodiment, the test system 100 includes a mobile terminal 1 and a server 2.
在一实施例中,参照图12,所述移动终端1包括:In an embodiment, referring to FIG. 12, the mobile terminal 1 includes:
第一发送模块11,设置为发送第一类型控制包至服务器2,并在接收到所述服务器2的回复后连续发送预定数量的第一类型数据包至所述服务器2;The first sending module 11 is configured to send the first type control packet to the server 2, and after receiving the reply of the server 2, continuously send a predetermined number of first type data packets to the server 2;
第二发送模块12,设置为待所述第一类型数据包发送完毕,移动终端1发送第二类型控制包至所述服务器2,以告知所述服务器2本轮上行数据发送完成;The second sending module 12 is configured to send the first type of data packet to the server 2, and the mobile terminal 1 sends the second type of control packet to the server 2 to notify the server 2 that the uplink data transmission is completed.
计算处理模块13,设置为接收所述服务器2发送的第二类型数据包,并在接收到所述服务器2发送的第三类型控制包时,获取所述服务器2计算的上行性能统计数据,并计算本轮的下行性能统计数据,将所述上行性能统计数据和下行性能统计数据写入测试日志文件;The calculation processing module 13 is configured to receive the second type of data packet sent by the server 2, and obtain the uplink performance statistics calculated by the server 2 when receiving the third type control packet sent by the server 2, and Calculating downlink performance statistics of the current round, and writing the uplink performance statistics and downlink performance statistics into the test log file;
在一实施例中,参照图13,所述服务器2包括:In an embodiment, referring to FIG. 13, the server 2 includes:
弹回模块21,设置为在接收到移动终端1发送的第一类型控制包时,将所述第一类型控制包弹回至所述移动终端1;The bounce module 21 is configured to, when receiving the first type control packet sent by the mobile terminal 1, bounce the first type control packet back to the mobile terminal 1;
第三发送模块22,设置为接收所述移动终端1发送的第一类型数据包,并在接收到所述移动终端1发送的第二类型控制包时,向所述移动终端1连续发送预定数量的第二类型数据包;The third sending module 22 is configured to receive the first type of data packet sent by the mobile terminal 1, and continuously send the predetermined number to the mobile terminal 1 when receiving the second type of control packet sent by the mobile terminal 1. Second type of data packet;
第四发送模块23,设置为待所述第二类型数据包发送完毕,计算出本轮的上行性能统计数据,并将所述上行性能统计数据放入第三类型控制包中, 再将所述第三类型控制包发送至所述移动终端1,以供所述移动终端1将所述上行性能统计数据以及计算出的下行性能统计数据写入测试日志文件。The fourth sending module 23 is configured to: after the second type of data packet is sent, calculate the uplink performance statistics of the current round, and put the uplink performance statistics into the third type control packet. The third type control packet is sent to the mobile terminal 1 for the mobile terminal 1 to write the uplink performance statistics and the calculated downlink performance statistics into the test log file.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
本发明涉及通信技术领域,通过移动终端发送第一类型控制包至服务器,并在接收到服务器的回复后连续发送第一类型数据包至所述服务器,待发送完毕,移动终端发送第二类型控制包至服务器,以告知本轮上行数据发送完成,当接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的 上行性能统计数据,并计算本轮的下行性能统计数据,然后将所述上行性能统计数据和下行性能统计数据写入测试日志文件。这样,利用移动终端对真实网络进行性能测试,以获取针对端到端链路上的丢包、乱序和吞吐率等指标,从而可以对移动网络进行精确诊断。 The present invention relates to the field of communication technologies, in which a mobile terminal sends a first type of control packet to a server, and after receiving a reply from the server, continuously transmits a first type of data packet to the server, and after the transmission is completed, the mobile terminal sends a second type of control. Packet to the server to inform the current round of uplink data transmission completion, when receiving the third type control packet sent by the server, obtaining the calculation calculated by the server The uplink performance statistics are calculated, and the downlink performance statistics of the current round are calculated, and then the uplink performance statistics and the downlink performance statistics are written into the test log file. In this way, the mobile terminal is used to perform performance testing on the real network to obtain indicators such as packet loss, out-of-order, and throughput on the end-to-end link, so that the mobile network can be accurately diagnosed.

Claims (10)

  1. 一种移动网络的性能测试方法,所述移动网络的性能测试方法包括:A performance testing method for a mobile network, the performance testing method of the mobile network includes:
    移动终端发送第一类型控制包至服务器,并在接收到所述服务器的回复后连续发送预定数量的第一类型数据包至所述服务器;The mobile terminal sends the first type control packet to the server, and after receiving the reply of the server, continuously sends a predetermined number of first type data packets to the server;
    待所述第一类型数据包发送完毕,移动终端发送第二类型控制包至所述服务器,以告知所述服务器本轮上行数据发送完成;After the first type of data packet is sent, the mobile terminal sends a second type of control packet to the server to notify the server that the uplink data transmission is complete.
    接收所述服务器发送的第二类型数据包,并在接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,将所述上行性能统计数据和下行性能统计数据写入测试日志文件。Receiving a second type of data packet sent by the server, and receiving the third type control packet sent by the server, acquiring uplink performance statistics calculated by the server, and calculating downlink performance statistics of the current round, The uplink performance statistics and downlink performance statistics are written into the test log file.
  2. 如权利要求1所述的移动网络的性能测试方法,所述接收所述服务器发送的第二类型数据包的步骤之后还包括:The method for testing a performance of a mobile network according to claim 1, after the step of receiving the second type of data packet sent by the server, the method further comprises:
    判断所述第二类型数据包的终端时戳弹回字段的值是否为第一预定值;Determining whether the value of the terminal time stamp bounce field of the second type of data packet is a first predetermined value;
    若否,则获取所述第二类型数据包的接收时刻;If not, acquiring a receiving moment of the second type of data packet;
    计算所述接收时刻、第一预定值以及所述服务器内部处理时延之间的差值,得到有效时延,并将所述有效时延记录到所述测试日志文件中;Calculating a difference between the receiving time, the first predetermined value, and the internal processing delay of the server, obtaining a valid delay, and recording the valid delay into the test log file;
    其中,所述服务器内部处理时延为所述服务器根据当前时刻与所述第一类型数据包放入队列的入队时刻之间的差值计算得到。The internal processing delay of the server is calculated by the server according to a difference between a current time and a joining time of the first type of data packet into the queue.
  3. 如权利要求1或2所述的移动网络的性能测试方法,所述在接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,将所述上行性能统计数据和下行性能统计数据写入测试日志文件的步骤包括:The performance testing method of the mobile network according to claim 1 or 2, wherein when receiving the third type control packet sent by the server, acquiring uplink performance statistics calculated by the server, and calculating the downlink of the current round Performance statistics, the steps of writing the uplink performance statistics and downlink performance statistics into the test log file include:
    所述移动终端在接收到所述第三类型控制包时,从所述第三类型控制包中获取所述服务器计算的上行性能统计数据;When receiving the third type control packet, the mobile terminal acquires uplink performance statistics calculated by the server from the third type control packet;
    根据与所述服务器侧对应的消息队列,计算本轮包括丢包率、乱序率以及吞吐率指标的下行性能统计数据;Calculating downlink performance statistics of the current round including the packet loss rate, the out-of-order rate, and the throughput rate indicator according to the message queue corresponding to the server side;
    根据所述下行性能统计数据和所述上行性能统计数据,综合整理成本轮测试的测试结果,记录到所述测试日志文件中。According to the downlink performance statistics and the uplink performance statistics, the test results of the cost round test are comprehensively compiled and recorded in the test log file.
  4. 一种移动网络的性能测试方法,所述移动网络的性能测试方法包括:A performance testing method for a mobile network, the performance testing method of the mobile network includes:
    服务器在接收到移动终端发送的第一类型控制包时,将所述第一类型控 制包弹回至所述移动终端;When the server receives the first type control packet sent by the mobile terminal, the first type control The package is bounced back to the mobile terminal;
    接收所述移动终端发送的第一类型数据包,并在接收到所述移动终端发送的第二类型控制包时,向所述移动终端连续发送预定数量的第二类型数据包;Receiving a first type of data packet sent by the mobile terminal, and continuously transmitting a predetermined number of second type data packets to the mobile terminal when receiving the second type of control packet sent by the mobile terminal;
    待所述第二类型数据包发送完毕,计算出本轮的上行性能统计数据,并将所述上行性能统计数据放入第三类型控制包中,再将所述第三类型控制包发送至所述移动终端,以供所述移动终端将所述上行性能统计数据以及计算出的下行性能统计数据写入测试日志文件。After the second type of data packet is sent, the uplink performance statistics of the current round are calculated, and the uplink performance statistics are put into the third type control packet, and then the third type control packet is sent to the The mobile terminal is configured to write, by the mobile terminal, the uplink performance statistics and the calculated downlink performance statistics into a test log file.
  5. 如权利要求4所述的移动网络的性能测试方法,所述服务器在接收到移动终端发送的第一类型控制包时,将所述第一类型控制包弹回至所述移动终端的步骤包括:The method for testing performance of a mobile network according to claim 4, wherein when the server receives the first type of control packet sent by the mobile terminal, the step of bounce the first type of control packet back to the mobile terminal includes:
    所述服务器解析出所述第一类型控制包中含有的国际移动用户识别码IMSI,并根据所述IMSI查找对应的用户记录;The server parses out an international mobile subscriber identity (IMSI) contained in the first type of control packet, and searches for a corresponding user record according to the IMSI;
    若查找到用户记录,所述服务器则将所述第一类型控制包弹回至所述移动终端,并新建用户记录;If the user record is found, the server bounces the first type control packet back to the mobile terminal, and creates a new user record;
    若否,所述服务器则新建用户记录,并将所述第一类型控制包弹回至所述移动终端。If not, the server creates a new user record and bounces the first type of control packet back to the mobile terminal.
  6. 如权利要求4或5所述的移动网络的性能测试方法,所述服务器在接收到移动终端发送的第一类型控制包时,将所述第一类型控制包弹回至所述移动终端的步骤之后还包括:The method for testing performance of a mobile network according to claim 4 or 5, wherein the step of the server bounces the first type of control packet back to the mobile terminal when receiving the first type of control packet sent by the mobile terminal It also includes:
    所述服务器根据所述IMSI查找对应的用户记录;The server searches for a corresponding user record according to the IMSI;
    若查找到用户记录,所述服务器则抽取所述第一类型数据包的发包轮数、终端侧发包时戳字段以及序列号,并根据所述序列号将所述第一类型数据包放入队列的预定位置,并设置所述队列的到位字段为第二预定值;If the user record is found, the server extracts the number of rounds of the first type of data packet, the terminal side packet time stamp field, and the serial number, and puts the first type of data packet into the queue according to the serial number. a predetermined location, and setting the in-position field of the queue to a second predetermined value;
    若否,则忽略所述第一类型数据包。If not, the first type of data packet is ignored.
  7. 如权利要求6所述的移动网络的性能测试方法,所述根据所述序列号将所述第一类型数据包放入队列的预定位置,并设置所述队列的到位字段为第二预定值的步骤之后还包括:The method for testing performance of a mobile network according to claim 6, wherein the first type of data packet is placed in a predetermined position of the queue according to the serial number, and the in-position field of the queue is set to a second predetermined value. After the step, it also includes:
    所述服务器获取当前时刻以及所述第一类型数据包放入队列的入队时刻;Obtaining, by the server, the current time and the enqueue time of the first type of data packet into the queue;
    计算所述当前时刻与所述入队时刻之间的差值,得到服务器内部处理时 延。Calculating a difference between the current time and the enqueue time, and obtaining internal processing of the server Delay.
  8. 一种移动终端,所述移动终端包括:A mobile terminal, the mobile terminal comprising:
    第一发送模块,设置为发送第一类型控制包至服务器,并在接收到所述服务器的回复后连续发送预定数量的第一类型数据包至所述服务器;a first sending module, configured to send a first type control packet to the server, and continuously send a predetermined number of first type data packets to the server after receiving the reply of the server;
    第二发送模块,设置为待所述第一类型数据包发送完毕,移动终端发送第二类型控制包至所述服务器,以告知所述服务器本轮上行数据发送完成;The second sending module is configured to send the second type of control packet to the server after the first type of data packet is sent, to notify the server that the uplink data transmission is completed in the current round;
    计算处理模块,设置为接收所述服务器发送的第二类型数据包,并在接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,将所述上行性能统计数据和下行性能统计数据写入测试日志文件。The calculation processing module is configured to receive the second type of data packet sent by the server, and obtain the uplink performance statistics calculated by the server when receiving the third type control packet sent by the server, and calculate the current round of the performance statistics The downlink performance statistics data is written into the test log file by using the uplink performance statistics and the downlink performance statistics.
  9. 一种服务器,所述服务器包括:A server, the server comprising:
    弹回模块,设置为在接收到移动终端发送的第一类型控制包时,将所述第一类型控制包弹回至所述移动终端;a bounce module, configured to bounce the first type control packet back to the mobile terminal when receiving the first type control packet sent by the mobile terminal;
    第三发送模块,设置为接收所述移动终端发送的第一类型数据包,并在接收到所述移动终端发送的第二类型控制包时,向所述移动终端连续发送预定数量的第二类型数据包;a third sending module, configured to receive a first type of data packet sent by the mobile terminal, and continuously send a predetermined number of second types to the mobile terminal when receiving the second type of control packet sent by the mobile terminal data pack;
    第四发送模块,设置为待所述第二类型数据包发送完毕,计算出本轮的上行性能统计数据,并将所述上行性能统计数据放入第三类型控制包中,再将所述第三类型控制包发送至所述移动终端,以供所述移动终端将所述上行性能统计数据以及计算出的下行性能统计数据写入测试日志文件。The fourth sending module is configured to: after the second type of data packet is sent, calculate the uplink performance statistics of the current round, and put the uplink performance statistics into the third type control packet, and then The three types of control packets are sent to the mobile terminal, so that the mobile terminal writes the uplink performance statistics and the calculated downlink performance statistics into the test log file.
  10. 一种测试系统,所述测试系统包括移动终端和服务器,A test system including a mobile terminal and a server,
    所述移动终端包括:The mobile terminal includes:
    第一发送模块,设置为发送第一类型控制包至服务器,并在接收到所述服务器的回复后连续发送预定数量的第一类型数据包至所述服务器;a first sending module, configured to send a first type control packet to the server, and continuously send a predetermined number of first type data packets to the server after receiving the reply of the server;
    第二发送模块,设置为待所述第一类型数据包发送完毕,移动终端发送第二类型控制包至所述服务器,以告知所述服务器本轮上行数据发送完成;The second sending module is configured to send the second type of control packet to the server after the first type of data packet is sent, to notify the server that the uplink data transmission is completed in the current round;
    计算处理模块,设置为接收所述服务器发送的第二类型数据包,并在接收到所述服务器发送的第三类型控制包时,获取所述服务器计算的上行性能统计数据,并计算本轮的下行性能统计数据,将所述上行性能统计数据和下行性能统计数据写入测试日志文件; The calculation processing module is configured to receive the second type of data packet sent by the server, and obtain the uplink performance statistics calculated by the server when receiving the third type control packet sent by the server, and calculate the current round of the performance statistics The downlink performance statistics data is sent to the test log file by using the uplink performance statistics and the downlink performance statistics.
    所述服务器包括:The server includes:
    弹回模块,设置为在接收到移动终端发送的第一类型控制包时,将所述第一类型控制包弹回至所述移动终端;a bounce module, configured to bounce the first type control packet back to the mobile terminal when receiving the first type control packet sent by the mobile terminal;
    第三发送模块,设置为接收所述移动终端发送的第一类型数据包,并在接收到所述移动终端发送的第二类型控制包时,向所述移动终端连续发送预定数量的第二类型数据包;a third sending module, configured to receive a first type of data packet sent by the mobile terminal, and continuously send a predetermined number of second types to the mobile terminal when receiving the second type of control packet sent by the mobile terminal data pack;
    第四发送模块,设置为待所述第二类型数据包发送完毕,计算出本轮的上行性能统计数据,并将所述上行性能统计数据放入第三类型控制包中,再将所述第三类型控制包发送至所述移动终端,以供所述移动终端将所述上行性能统计数据以及计算出的下行性能统计数据写入测试日志文件。 The fourth sending module is configured to: after the second type of data packet is sent, calculate the uplink performance statistics of the current round, and put the uplink performance statistics into the third type control packet, and then The three types of control packets are sent to the mobile terminal, so that the mobile terminal writes the uplink performance statistics and the calculated downlink performance statistics into the test log file.
PCT/CN2017/076325 2016-03-11 2017-03-10 Method for testing performance of mobile network, mobile terminal, server and testing system WO2017152880A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610139477.7A CN107182075A (en) 2016-03-11 2016-03-11 Performance test methods, mobile terminal, server and the test system of mobile network
CN201610139477.7 2016-03-11

Publications (1)

Publication Number Publication Date
WO2017152880A1 true WO2017152880A1 (en) 2017-09-14

Family

ID=59789018

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/076325 WO2017152880A1 (en) 2016-03-11 2017-03-10 Method for testing performance of mobile network, mobile terminal, server and testing system

Country Status (2)

Country Link
CN (1) CN107182075A (en)
WO (1) WO2017152880A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111092792A (en) * 2020-03-23 2020-05-01 北京安博通科技股份有限公司 Method and device for evaluating network performance of terminal
CN113630802A (en) * 2020-05-07 2021-11-09 大唐联仪科技有限公司 NR user plane service test method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351155B (en) * 2018-04-03 2020-12-22 苏州景昱医疗器械有限公司 Program-controlled network performance testing method and system of implantable medical equipment
CN113595834A (en) * 2021-08-09 2021-11-02 海南视联通信技术有限公司 Method and device for detecting data processing capacity of video networking equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022374A (en) * 2007-03-06 2007-08-22 中兴通讯股份有限公司 Method and system for on-line testing data network quality
CN101667890A (en) * 2009-09-24 2010-03-10 深圳市普联技术有限公司 Network bandwidth detecting method and system
CN103905272A (en) * 2014-03-19 2014-07-02 珠海世纪鼎利通信科技股份有限公司 Available bandwidth measuring method and system of wireless network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022374A (en) * 2007-03-06 2007-08-22 中兴通讯股份有限公司 Method and system for on-line testing data network quality
CN101667890A (en) * 2009-09-24 2010-03-10 深圳市普联技术有限公司 Network bandwidth detecting method and system
CN103905272A (en) * 2014-03-19 2014-07-02 珠海世纪鼎利通信科技股份有限公司 Available bandwidth measuring method and system of wireless network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111092792A (en) * 2020-03-23 2020-05-01 北京安博通科技股份有限公司 Method and device for evaluating network performance of terminal
CN113630802A (en) * 2020-05-07 2021-11-09 大唐联仪科技有限公司 NR user plane service test method and device
CN113630802B (en) * 2020-05-07 2024-02-20 大唐联仪科技有限公司 NR user plane service testing method and device

Also Published As

Publication number Publication date
CN107182075A (en) 2017-09-19

Similar Documents

Publication Publication Date Title
WO2017152880A1 (en) Method for testing performance of mobile network, mobile terminal, server and testing system
CN109194551B (en) Method, device and system for testing performance of real-time Ethernet equipment
US8665733B2 (en) Method and apparatus for round trip delay KPI monitoring in live network using user plane probe session
EP2961102B1 (en) Method and device for monitoring network performance
US7523198B2 (en) Integrated testing approach for publish/subscribe network systems
US20100008250A1 (en) Method and apparatus for measuring packet transmission quality
JP5792379B2 (en) Message flow route change for autonomously and automatically interrupted network elements
CN112202635B (en) Link monitoring method and device, storage medium and electronic device
US20140325278A1 (en) Method and system for interactive and automated testing between deployed and test environments
US20130083671A1 (en) Data plane delay kpi monitoring in live network
US8331246B2 (en) Measurement system and method of measuring a transit metric
WO2020135429A1 (en) Traffic analysis method and apparatus, and traffic detection method and apparatus
CN115811484A (en) Network detection method, device and storage medium
CN115426284A (en) Network quality detection method, device, terminal equipment and storage medium
US7139824B2 (en) Method and system for isolating and simulating dropped packets in a computer network
CN111479287A (en) Simulation test method, device, equipment and storage medium for core network of non-independent networking
CN111343135A (en) Network security situation detection method
Cinque et al. An exploratory study on zeroconf monitoring of microservices systems
US7917611B2 (en) Method and system for monitoring the quality of service in telecommunication networks, components and compute products thereof
JP2014523671A (en) Assessing the overall performance of interactive application services
US10162733B2 (en) Debugging failure of a service validation test
US9667445B2 (en) Signaling plane delay KPI monitoring in live network
CN110196862B (en) Data scene construction method, device, server and system
Chen et al. Passive interoperability testing for request-response protocols: Method, tool and application on CoAP protocol
Claffy et al. First amended report of at&t independent measurement expert: Reporting requirements and measurement methods

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17762566

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17762566

Country of ref document: EP

Kind code of ref document: A1