def derive_queue_id_from_dscp(dscp):
    """ Derive queue id form DSCP using following mapping
          DSCP -> Queue mapping
            8          0
            5          2
            3          3
            4          4
            46         5
            48         6
            Rest       1
    """

    dscp_to_queue = { 8 : 0, 5 : 2, 3 : 3, 4 : 4, 46  : 5,  48 : 6}

    return dscp_to_queue.get(dscp, 1)