Patent ID: 8644144

Claim:
A method for measuring Internet Protocol (IP) network performance, comprising: adding, by a measurement initiator end, a classification ID in IP packet data according to a classification criteria, wherein the classification criteria comprises: a source IP address, a destination IP address, and any one or combination of the following: an IP packet data size, a differentiated services code point (DSCP) value a generic routing encapsulation (GRE) key a User Datagram Protocol (UDP) port ID, a protocol ID, an IPsec security association (SA), and an IP stream ID, wherein the classification ID indicates a class to which the IP packet data belongs; selecting at least one IP data stream as a data stream to be measured and determining measurement contents and measurement modes, wherein each IP data stream of the at least one IP data stream comprises the IP packet data with the classification ID; and sending information about the measurement contents, the data stream to be measured, and the measurement modes to a measurement peer end, and starting measuring the IP network performance according to the measurement contents and the measurement modes when the data stream to be measured is transmitted between the measurement initiator end and the measurement peer end; wherein when the classification criteria comprises the DSCP value the method further comprises: sending a mapping setup request packet to the measurement peer end, wherein a payload area of the mapping setup request packet and a header of the mapping setup request packet carry a same first DSCP value; receiving a mapping reply packet returned by the measurement peer end, wherein the payload area of the mapping reply packet carries the first DSCP value and a second DSCP value in the packet header of the mapping setup request packet when the measurement peer end receives the mapping setup request packet; and setting up the DSCP mapping table according to the first DSCP value and the second DSCP value that are carried in the payload area of the mapping reply packet.