The invention provides a bandwidth allocation device and method. The bandwidth allocation device is used for service communication between UE and a network and comprises a wireless internet access module, a wireless communication module, a service recognition module, a bandwidth allocation module, a safe module and a data route module. By the adoption of the modules, the bandwidth allocation device can recognize service types corresponding to service data flow, allocates corresponding transmission bandwidth for the service data flow according to the service types, realizes automatic adjustments of the transmission bandwidth according to the service types, enables the transmission bandwidth to meet the requirements of current interacting services, and ensures user perception. At bandwidth allocation time, the service recognition module and the bandwidth allocation module are used for deciding, so that coupling between logic modules is reduced, and the flexibility of deployment is improved. Meanwhile, at bandwidth allocation time, different strategies can be adopted for the service recognition module, the bandwidth allocation module and the safety module according to different service types, so that adaptability and flexibility are improved, and service QoS is improved.