Formule de conversion :
AF to DSCP
AFxy = (8*x)+(2*y)
Exemples:
AF12 = 8×1 + 2×2 = 12
AF22 = 8×2 + 2×2 = 20
DSCP to AF
AFxy = x= (DSCP/8), y est le reste divisé par 2
Exemples:
DSCP12 = 12/8 = 1 reste 4 d’ou x = 1, y = 4/2 =2 => AF12
DSCP14 = 14/8 = 1 reste 6, y= 6/2=3 => AF13
PRE 1 x 32 = TOS 32
PRE 2 x 32 = TOS 64
PRE 3 x 32 = TOS 96
PRE 4 x 32 = TOS 128
PRE 5 x 32 = TOS 160
PRE 6 x 32 = TOS 192