Patent ID: 9485162
Filing Date: 2016-11-01
CPC Classification: H04B,H04L,H04W

Claim Text:
1. A method for measuring a frame loss ratio, comprising: a first end acquiring a frame number of a received current measurement reply frame and a frame number of a received previous measurement reply frame, wherein the current measurement reply frame and the previous measurement reply frame are sent by a second end in response to a frame loss ratio measurement message frame sent by the first end, wherein the first end and the second end are Maintenance association End Points (MEPs) which are implemented on switches; the first end judging 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 frame 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 frame loss ratio according to count information carried in the current measurement reply frame and the previous measurement reply frame and the difference; wherein the step of the first end calculating the frame 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 number of the current measurement reply frame and the frame number of the previous measurement reply frame comprises: wherein the far-end frame loss ratio is the frame loss ratio of the second end in the case that the first end sends the frame loss ratio measurement message frame, and the near-end frame loss ratio is the frame loss ratio of the first end in the case that the first end sends the frame loss ratio measurement message frame; TxFCf[tc] is the number of sent frames of the first end when sending the current frame loss ratio measurement message frame, and is carried in the current measurement reply frame; TxFCf[tp] is the number of sent frames of the first end when sending the previous frame loss ratio measurement message frame, and is carried in the previous measurement reply frame; RxFCf[tc] is the number of received frames of the second end when receiving the current frame loss ratio measurement message frame, and is carried in the current measurement reply frame; RxFCf[tp] is the number of received frames of the second end when receiving the previous frame loss ratio measurement message frame, and is carried in the previous measurement reply frame; TxFCb[tc] is the number of sent frames of the second end when sending the current measurement reply frame, and is carried in the current measurement reply frame; TxFCb[tp] is the number of sent frames of the second end when sending the previous measurement reply frame, and is carried in the previous measurement reply frame; RxFCl[tc] is the number of received frames of the first end when receiving the current measurement reply frame, and is recorded in the first end; and RxFCl[tp] is the number of received frames of the first end when receiving the previous measurement reply frame, and is recorded in the first end; N[tc] is the frame number of the current measurement reply frame and is carried in the current measurement reply frame; and N[tp] is the frame number of the previous measurement reply frame and is carried in the previous measurement reply frame; wherein the frame sending interval of the frame loss ratio measurement message frame is not 1 second.