Patent ID: 8254399

Claim:
An apparatus comprising a computer, said computer configured for: setting a priority level denoted x to a highest priority level from a plurality of unique priority levels; (a) setting a buffer reservation size denoted prog_size to a minimum size; (b) setting a packet size denoted pkt_size to a maximum packet size; (c) over-subscribing a x−1 priority level denoted pri_x−1 traffic; (d) injecting a pre-defined number of priority x packets, said pre-defined number of priority x packets each having a packet size of pkt_size; (e) determining if a priority x buffer not available count denoted pri_x_buf_not_ava_cnt is less than or equal to a priority x buffer not available threshold denoted pri_x_buf_not_ava_thresh; and (f) if said pri_x_buf_not_ava_cnt is less than or equal to said pri_x_buf_not_ava_thresh then: (f1) setting said prog_size to prog_size+1; and (f2) returning to step (d); (g) setting a buffer reservation size register for said priority level x denoted pri_x_prog_size to said prog_size.