Patent ID: 9391868
Filing Date: 2016-07-12
CPC Classification: H04L

Claim Text:
1. A method for measuring a performance indicator of a service flow, the method comprising: constructing, by a sending-end device, a first measurement packet, wherein the first measurement packet is used to trigger a receiving-end device to measure the performance indicator of the service flow, wherein a forwarding attribute of the first measurement packet is the same as a forwarding attribute of a packet in the service flow, and wherein the first measurement packet carries a first identifier that indicates that the first measurement packet is not a packet in the service flow; and sending, by the sending-end device, the first measurement packet to the receiving-end device; wherein, if the performance indicator is a packet loss ratio, the first measurement packet is used to trigger the receiving-end device to start to count a number of received packets in the service flow; and wherein the method further comprises performing, in response to the performance indicator being the packet loss ratio: constructing, by the sending-end device, a second measurement packet, wherein the second measurement packet is used to trigger the receiving-end device to record the number of received packets in the service flow, wherein a forwarding attribute of the second measurement packet is the same as the forwarding attributes of the packets in the service flow, and wherein the second measurement packet carries a second identifier used to indicate that the second measurement packet is not a packet in the service flow; counting, by the sending-end device within a preset interval, a number of packets in the service flow that are sent to the receiving-end device after the sending-end device sends the first measurement packet to the receiving-end device; and sending, by the sending-end device, the second measurement packet and the number of packets to the receiving-end device when counting of the number of packets is finished; wherein the sending the second measurement packet comprises: