NVIDIA DOCA™ HBN uses control plane policing (CoPP) to protect the control plane on the NVIDIA® BlueField® system. CoPP filters and rate-limits traffic destined for routing processes, management protocols, and system services. Traffic that exceeds the configured limits is dropped to help prevent excessive control-plane resource consumption.
CoPP configuration applies globally to the control plane.
Default Policers
The following policers are enabled by default. The rate and burst values are measured in packets per second.
|
Policer |
Protocol or Traffic Type |
Default State |
Default Rate |
Default Burst |
|---|---|---|---|---|
|
|
ARP and RARP |
Enabled |
800 |
800 |
|
|
BGP |
Enabled |
2000 |
2000 |
|
|
BFD |
Enabled |
2000 |
2000 |
|
|
ICMP and ICMPv6 |
Enabled |
1000 |
1000 |
|
|
IPv6 NDP |
Enabled |
1000 |
1000 |
|
|
DHCPv4 and DHCPv6 |
Enabled |
2000 |
2000 |
|
|
Other IPv4 or IPv6 traffic destined for HBN |
Enabled |
1000 |
1000 |
|
|
Other traffic not matched by a preceding policer |
Enabled |
100 |
100 |
Configure a Policer
The following examples use the BGP policer. Replace the policer name and values as required for the deployment.
Enable a Policer
nv set system control-plane policer bgp enable on
Update a Policer
The following commands set the rate and burst values to 3000:
nv set system control-plane policer bgp rate 3000
nv set system control-plane policer bgp burst 3000
Disable a Policer
nv set system control-plane policer bgp enable off
Verify CoPP Configuration and Statistics
Display All Policers
Run the following command to display the applied configuration and statistics for all policers:
nv show system control-plane policer
Example output:
Policer State Policer Rate Policer Burst To CPU Pkts To CPU Bytes Violated Packets Violated Bytes
----------- ----- ------------ ------------- ----------- ------------ ---------------- --------------
arp on 800 800 1327 133663 0 0
bfd on 2000 2000 0 0 0 0
bgp on 2000 2000 167470 16689652 0 0
catch-all on 100 100 0 0 0 0
dhcp on 2000 2000 0 0 0 0
icmp on 1000 1000 0 0 0 0
icmp6-neigh on 1000 1000 426605 36641706 0 0
ip2me on 1000 1000 0 0 0 0
Display a Specific Policer
Run the following command to display the applied configuration and statistics for the BGP policer:
nv show system control-plane policer bgp
Example output:
operational applied
---------------- ----------- -------
state on on
burst 3000 3000
rate 3000 3000
statistics
to-cpu-pkts 167686
to-cpu-bytes 16710895
violated-pkts 0
violated-bytes 0
Confirm that the operational values match the intended configuration. Use the violation counters to identify traffic that exceeds the configured limits.
Last updated: