You can configure host CAR to control the rate at which packets are sent to the CPU.
In VS mode, this feature is supported only by the admin VS.
To protect against packet attacks, a device implements three levels of CAR: host CAR/HTTP Host CAR, VLAN Host CAR, and CP CAR. For details about CP CAR configurations, see Configuring the CAR.
Host CAR is implemented based on the source MAC addresses, source IP addresses, or Session IDs carried in PPPoE, DHCP, L2TP, and DHCPv6 packets, IP packets for triggering user access, and ARP packets for triggering user access. HTTP Host CAR is implemented based on the source MAC addresses and source IP addresses carried in web packets. Both host CAR and HTTP Host CAR limit the number of packets to be sent to the CPU from the same host. Therefore, host CAR and HTTP Host CAR are on the same level.
VLAN Host CAR limits the number of user packets sent to the CPU from hosts in the same VLAN based on the VLAN ID. After VLAN Host CAR is enabled, the device limits the rate at which packets are sent to the CPU from hosts in the same VLAN.
CP CAR is implemented based on user access modes to limit the number of packets to be sent to the CPU from hosts that access the network in the same mode (for example, PPPoE/DHCP) in a specified period.
Perform the following steps to configure host CAR.
The system view is displayed.
The slot view is displayed.
Host CAR is configured.
Automatic bandwidth adjustment is enabled.
The attack detection threshold for the rate at which packets are dropped by host CAR is configured. After the threshold is exceeded, attack detection is started.
Parameters are configured for host CAR logging.
HTTP Host CAR is configured for web packets to be sent to the CPU.
HTTP Host CAR automatic bandwidth adjustment is enabled for web packets.
The threshold for the rate at which packets are dropped by HTTP-Host-CAR is configured.
Parameters are configured for HTTP Host CAR logging.
VLAN Host CAR is configured.
VLAN Host CAR limits the bandwidth of the user-side packets to be sent to the CPU from hosts in the same VLAN.
VLAN Host CAR automatic bandwidth adjustment is enabled.
The threshold for the rate at which packets are dropped by VLAN-Host-CAR is configured.
Parameters are configured for VLAN Host CAR logging.
Host CAR and VLAN-Host-CAR do not apply to packets matching the ACL rule.
The configuration is committed.
The system view is displayed.
The GE or trunk interface view is displayed.
The configuration is committed.
After configuring host CAR, check the configurations.
Run the display cpu-defend { hostcar | vlan-host-car | http-hostcar } config slot slot-id command to check the default and actual rate limiting parameters configured for packets to be sent to the CPU.
Run the display cpu-defend hostcar { carid | all | auto-adjust | dropped | non-dropped } statistics slot slot-id command to check host CAR statistics.
Run the display cpu-defend http-hostcar { carid | all | auto-adjust | dropped | non-dropped } statistics slot slot-id command to check HTTP Host CAR statistics.
Run the display cpu-defend vlan-host-car { carid | all | auto-adjust | dropped | non-dropped } statistics slot slot-id command to check VLAN Host CAR statistics.
Run the display cpu-defend hostcar car-id access-user-info slot slot-id command to check statistics about a specified host CAR and the information about access users limited by the host CAR, such as MAC addresses, IP addresses, and online status.