The IoT Gateway with Active Queue Management