The invention relates to a method for testing
network performance based on UDP (
User Datagram Protocol) bagging, which comprises the following steps: a
client obtains a
timestamp CT1 when the
client sends a data packet, packages the
timestamp CT1 into a UDP data packet and sends the UDP data packet to a
server; the
server side receives the UDP data packet sent by the
client side and records the
timestamp ST1 of the
server side when the
server side receives the data packet; the
server side analyzes the UDP data packet, increases a timestamp ST2 when the
server side sends the data packet, and packs the data packet and sends the data packet to the
client side; the client receives the UDP data packet returned by the server, analyzes the content of the packet, and obtains a timestamp CT2 when the client receives the data packet; and calculating round-trip
delay CST and unidirectional
delay CT from the client to the server. According to the method and device for testing the
network performance based on UDP bagging, the processor and the computer readable storage medium, the
delay variance between the
client side and the server side is obtained through packet sending and packet receiving, the packets can be received and sent in an uninterrupted
pulse mode, in this way, the network state between the
client side and the server side can be fed back in real time, and the user experience is improved. And
technical information support is provided for long-time network operation.