摘要 |
The present invention provides a method and system for measuring the packet loss ratio. The method comprises: a first end acquiring the frame number of a received current measurement reply frame and the frame number of a received previous measurement reply frame, the current measurement reply frame and the previous measurement reply frame being obtained by a second end replying to a packet loss ratio measurement message frame sent by the first end; the first end determining whether the difference between the frame number of the current measurement reply frame and the frame number of the previous measurement reply frame is 1; if the difference is 1, the first end calculating the packet loss ratio according to count information carried in the current measurement reply frame and the previous measurement reply frame; and if the difference is greater than 1, the first end calculating the packet loss ratio according to the count information carried in the current measurement reply frame and the previous measurement reply frame and the difference between the frame numbers. The present invention solves the problem in the prior art that packet loss ratio measurement is inaccurate in the case that a protocol frame is lost, thereby achieving the technical effect of accurately measuring the packet loss ratio. |