A method of measuring downlink packet loss rates over an interval of a packet-based communication session between a network source (NS) and a wireless User Equipment (UE) device, the downlink packet loss rates measured at an intermediate node of a communication network, the intermediate node connected between the NS and UE, the downlink packet loss rate indicative of a loss in the communication network between the intermediate node and the UE, each packet including a byte sequence number and having a payload length, comprising the steps of:
- receiving a series of packets from the NS at the intermediate node during the interval in the communication session, and communicating said series of packets through the intermediate node to the UE;
- providing a hashmap that includes fields fora byte sequence number and a num_times_seen counter for storing a number of times that a byte sequence number has been seen;
- for each packet received at the intermediate node, and repeating (a)-(e) until a last packet in the interval:
- (a) determining the byte sequence number;
- (b) incrementing a total downlink packet counter;
- (c) determining the payload length;
- (d) adding the payload length to a downlink bytes counter;
- and
- (e) incrementing the num_times_seen counter for the byte sequence number in the hashmap;
- determining a retransmission count for each byte sequence number responsive to the num_times_seen counter for each byte sequence number;
- providing a retransmission count for the interval by totaling the retransmission count over all packets in the interval;
- and
- determining a downlink packet loss rate by dividing the retransmission count for the interval by the total downlink packet counter.