Patent ID: 8570893

Claim:
A method for measuring network performance parameters, the method comprising: receiving, by a first device for measuring network performance parameters, an extended bidirectional forwarding detection (BFD) packet transmitted by a second device for measuring network performance parameters, the extended BFD packet comprising a packet loss monitoring Type-Length-Value (TLV) and/or a time delay monitoring TLV; and calculating near-end packet loss according to the packet loss monitoring TLV and/or calculating unidirectional time delay according to the time delay monitoring TLV in the received extended BFD packet; wherein a value field of the packet loss monitoring TLV comprises a transmit count, and the transmit count is the number of data packets that have been transmitted when the extended BFD packet is transmitted; wherein a value field of the time delay monitoring TLV comprises a transmit timing, and the transmit timing is a local time when the extended BFD packet is transmitted; wherein calculating the near-end packet loss is: a near-end packet loss Packet Loss[near-end]=|TxPacketCounter_L[BFD 1 ]−TxPacketCounter_L [BFD 2 ]|−|RxPacketCounterL [BFD 1 ]−RxPacketCounterL [BFD 2 ]|, wherein TxPacketCounter_L[BFD 1 ] indicates the transmit count of the received extended BFD packet BFD 1 , TxPacketCounter_L[BFD 2 ] indicates the transmit count of the received extended BFD packet BFD 2 , RxPacketCounterL[BFD 1 ] indicates the number of data packets that have been received by calculating equipment when the extended BFD packet BFD 1 is received, and RxPacketCounterL[BFD 2 ] indicates the number of data packets that have been received by calculating equipment when the extended BFD packet BFD 2 is received; wherein calculating the unidirectional time delay is: adding a difference between a local time when the extended BFD packet is received and the transmit timing of the extended BFD packet and a time difference of the first device and the second device.