In QoS there is a variety of Queuing methods and one of them is WFQ, which organizes the flows in different queues where each queue has a weight that determines which flow will go first.
Now for calculating the weight the formula used is:
Weight = 4096 / (IP-precedence+1). Where 4096 is the maximum number of queues, so why the maximum number is 4096? It is a pre-established number or it is based on some criteria?