Measurement-based Bandwidth Control of Layer 3 to Layer 2 QoS Mapping over Gateway Devices