When a BGP device is attacked or network configuration errors occur, the BGP device will receive a large number of routes from its peer. As a result, many device resources are consumed. Therefore, the administrator must limit the resources used by the device based on network planning and device capacity. BGP provides peer-based route control to limit the number of routes to be sent by a peer. This addresses the preceding problem.