Patent ID: 8730821

Claim:
A method for detecting packet loss rate, comprising: receiving, at a receiving end device, data packets and Operation, Administration, and Maintenance (OAM) packets from a transmitting end device, wherein a second OAM packet received later than a first OAM packet carries a first counting value representing the number of data packets that are transmitted at the transmitting end device prior to transmission of the first OAM packet, and a third OAM packet received later than the second OAM packet carries a second counting value representing the number of data packets that are transmitted at the transmitting end device prior to transmission of the second OAM packet; counting, at the receiving end device, the received data packets to obtain a third counting value and a fourth counting value, wherein the third counting value represents the number of data packets received prior to reception of the first OAM packet, and the fourth counting value represents the number of data packets received prior to reception of the second OAM packet; parsing, at the receiving end, the OAM packets to obtain the first counting value and the second counting value; and calculating, at the receiving end, a packet loss rote according to the first, second, third and fourth counting values; wherein the number of data packets between any two consecutive OAM packets is variable.