Patent ID: 8441954

Claim:
A router, comprising: a storage system; at least one processor; and one or more programs stored in the storage system and being executable by the at least one processor, the one or more programs comprising: a setting module operable to set parameters for distinguishing real-time packets, wherein the parameters comprise a first allowable range of a packet length, a second allowable range of a packet arrival rate, a third allowable range of an inter-arrival time standard deviation, a fourth allowable range of a packet length standard deviation, and a number of reference packets; a reading module operable to read information of the reference packets and the packet lengths of a plurality of test packets; a calculating module operable to calculate the packet arrival rate of the test packets, the inter-arrival time standard deviation of the test packets, and the packet length standard deviation of the test packets according to the information of the reference packets; a determination module operable to determine if a test packet is a real-time packet according to the packet length of the test packets, the calculated packet arrival rate of the test packets, the calculated inter-arrival time standard deviation of the test packets, and the calculated the packet length standard deviation of the test packets; and a mark module operable to mark the test packet as the real-time packet in response to a determination that the packet length of the test packets falls in the first allowable range, the packet arrival rate of the test packets falls in the second allowable range, the inter-arrival time standard deviation of the test packets falls in the third allowable range, and the packet length standard deviation of the test packets falls in the fourth allowable range.