< Home

cpu-overload-control bucket-weight

Function

The cpu-overload-control bucket-weight command configures the weight of a protocol or task leaky bucket.

The undo cpu-overload-control bucket-weight command restores the default weight of a protocol or task leaky bucket.

The default weight of the leaky bucket is 90 for 8021x-1st, 200 for 8021x-other, 290 for arp-request, arp-reply, icmp, dhcp, arp-miss, igmp, ttl-expired, ip-frag, fib-hit, icmpv6, dhcpv6, mld, and nd, 250 for cos-4, 240 for cos-3, 200 for cos-2, 150 for cos-1, 100 for cos-0, and 2500 for ACL and ARPA tasks.

Format

cpu-overload-control { packet-type packet-type | task task-name } bucket-weight bucket-weight-value slot slot-id

undo cpu-overload-control { packet-type packet-type | task task-name } bucket-weight bucket-weight-value slot slot-id

Parameters

Parameter

Description

Value

packet-type packet-type

Specifies a protocol type.

The value is of the enumerated type:
  • 8021x-1st: first fragment of an 802.1X packet
  • 8021x-other: non-first fragments of an 802.1X packet
  • arp-request: ARP Request packet
  • arp-reply: ARP Reply packet
  • icmp: ICMP packet
  • dhcp: DHCP packet
  • arp-miss: ARP Miss packet
  • igmp: IGMP packet
  • ttl-expired: IPv4 TTL-expired packet
  • ip-frag: IP fragment
  • fib-hit: packet matching a route
  • icmpv6: ICMPv6 packet
  • dhcpv6: DHCPv6 packet
  • mld: MLD packet
  • nd: IPv6 neighbor discovery packet
  • cos-4: packet with priority 4 or higher (excluding whitelisted protocol packets)
  • cos-3: packet with priority 3 (excluding whitelisted protocol packets)
  • cos-2: packet with priority 2 (excluding whitelisted protocol packets)
  • cos-1: packet with priority 1 (excluding whitelisted protocol packets)
  • cos-0: packet with priority 0 (excluding whitelisted protocol packets)
NOTE:

S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI do not support arp-miss parameter.

task task-name

Specifies a task name.

The value is of the enumerated type:
  • ACL: ACL task
  • ARPA: ARP broadcast task

bucket-weight-value

Specifies the weight of the leaky bucket for the protocol or task.

The value is an integer in the range from 50 to 5000.

slot slot-id

Specifies a slot ID.

The value must be set according to the device configuration.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Each protocol or task for which OLC is enabled is associated with a bottom leaky bucket. By default, the device assigns each leaky bucket a weight based on priorities of the monitored protocols and tasks. The weight of a leaky bucket determines its weighted water level (that is, the number of tokens that it can apply for). You can run this command to configure weights of the leaky buckets for monitored protocols and tasks based on service requirements.

Example

# Set the weight of the leaky bucket for the DHCP protocol to 500 in slot 0.

<HUAWEI> system-view
[HUAWEI] cpu-overload-control packet-type dhcp bucket-weight 500 slot 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >