You can limit the number of access users to control the user access rate and prevent threshold-crossing CPU usage.
Perform the following steps on the router:
In the following user access limit configuration, perform the steps based on service requirements.
If the number of users who go online from a single VLAN exceeds 3K, run the vlan-host-car command to increase the bandwidth for user-side packets that are sent to the CPU and carry the same VLAN ID. After the configuration is complete, packets of excess users are discarded and these excess users go offline.
A user can access the router through multiple links. If the number of IP addresses of PPP users attempting to access the network reaches the threshold specified for a BAS interface or board, the BAS interface or board does not respond to the PADO packets sent by PPP users and no more PPP users can access the BAS interface or board. In this case, PPP users can go online only through other interfaces or boards. This achieves load balancing among different interfaces and boards.
This configuration applies only to PPPoE and L2TP users. A single-stack user is counted as one user, and a dual-stack user is counted as two users. When the number of IP addresses of PPP users attempting to access the network from a BAS interface or board reaches the threshold specified, the BAS interface or board stops responding to the PADO packets sent by PPP users and no more PPP users can access the BAS interface or board.
When a large number of ARP/IPv4/IPv6/ND packets are sent to launch attack or unauthorized clients send requests continuously, the CPU usage of the main control board becomes high. You can limit the number of users on a board within a specified period and discard excess packets.