摘要 |
An embedded device includes a wide area network (WAN) port, a plurality of local area network (LAN) ports, and a packet forwarding module to forward packets from the LAN ports to the WAN port. The packet forwarding module detects whether any packets are being dropped in the WAN port, and turns on a bandwidth classification mechanism if the packets are being dropped. The packet forwarding module classifies packets from the LAN ports into different types, and determines the amount of traffic for each type of packet in a fixed time period. The packet forwarding module further compares whether the traffic of each type of packet exceeds a predefined threshold, regards the packets within the predefined threshold as normal packets, and the packets exceeding the predefined threshold as abuse packets. The packet forwarding module drops the abuse packets, and forwards the normal packets to the WAN port.
|