Patent ID: 8848582

Claim:
A method for measuring throughput, applied in a Multi-Protocol Label Switching-Transport Profile (MPLS-TP) network, comprising: a first Maintenance End Point (MEP) in the MPLS-TP network performing two-way or one-way transmission of data packets with a second MEP in the MPLS-TP network in a preset time period; after the preset time period, the first MEP receiving measurement information fed back by the second MEP, wherein the measurement information indicates the number of the data packets transmitted by the second MEP in this transmission; and according to the measurement information, the first MEP determining that packet loss does not occur in this transmission of the data packets and a transmission rate meets a requirement of target precision, and then obtaining the throughput of the transmission of the data packets in a transmission direction; when performing the transmission of the data packets in a two-way transmission mode, before the first MEP performs the transmission of the data packets with the second MEP, the method further comprises: sending, by the first MEP, a measurement iteration start indication message to the second MEP, wherein the measurement iteration start indication message carries identification information of start of measurement iteration, indication information of transmitting the data packets by the second MEP, and configuration parameters used by the second MEP to transmit the data packets; and receiving, by the first MEP, a measurement iteration start reply message from the second MEP; or, when performing the transmission of the data packets in a one-way transmission mode, the method further comprises: sending, by the first MEP, a measurement iteration start indication message to the second MEP, wherein the measurement iteration start indication message carries identification information of start of measurement iteration; and receiving, by the first MEP, a measurement iteration start reply message from the second MEP.