AQUILA: Adaptive Resource Control for QoS Using an IP based Layered Architecture