The protocol-group queue command configures the weight of the packets to be sent to the CPU in specific protocol queues.
The undo protocol-group queue command restores the default settings.
The default weight for protocol queues can be displayed by command display cpu-defend protocol-group queue configuration.
protocol-group whitelist queue { whitelist-bgp | whitelist-ldp | whitelist-management | whitelist-multicast | whitelist-reserve } weight weight-value
protocol-group user-defined-flow queue { user-define-flow-1 | user-define-flow-2 | user-define-flow-3 | user-define-flow-4 | user-define-flow-5 | user-define-flow-6 | user-define-flow-7 | user-define-flow-8 } weight weight-value
protocol-group management queue { dcn | ftp | ntp | snmp | ssh | sshv6 | syslog | telnet } weight weight-value
protocol-group route-protocol queue { bgp | bgpv6 | isis | ospf | ospfv3 | rip } weight weight-value
protocol-group multicast queue { igmp | multicast-reserve | msdp | pim } weight weight-value
protocol-group arp queue { arp | nd } weight weight-value
protocol-group mpls queue { ldp | oam-ping | rsvp | vxlan } weight weight-value
protocol-group access-user queue { bas-arp | bas-igmp | bas-nd | bas-trigger | dhcp | dhcpv6 | eapol | l2tp | lldp | ppp | vbas-reserve | web } weight weight-value
protocol-group link-layer queue { 3ah | bfd | link-detect | trunk | y1731 | interface-rdi | lag-check | lag-ping-trace | mac-vlan } weight weight-value
protocol-group network-layer queue { clock | default | dns | fragment | gre | hwtacas | icmp | icmpv6 | ipv4-reserve | ipv6-option | nhrp | vrrp | radius-diameter } weight weight-value
protocol-group system-message queue system-message weight weight-value
protocol-group blacklist queue blacklist weight weight-value
protocol-group check-failed queue check-failed weight weight-value
protocol-group fwddata-to-cp queue forward-data weight weight-value
undo protocol-group whitelist queue { whitelist-bgp | whitelist-ldp | whitelist-management | whitelist-multicast | whitelist-reserve } weight [ weight-value ]
undo protocol-group user-defined-flow queue { user-define-flow-1 | user-define-flow-2 | user-define-flow-3 | user-define-flow-4 | user-define-flow-5 | user-define-flow-6 | user-define-flow-7 | user-define-flow-8 } weight [ weight-value ]
undo protocol-group management queue { dcn | ftp | ntp | snmp | ssh | sshv6 | syslog | telnet } weight [ weight-value ]
undo protocol-group route-protocol queue { bgp | bgpv6 | isis | ospf | ospfv3 | rip } weight [ weight-value ]
undo protocol-group multicast queue { igmp | multicast-reserve | msdp | pim } weight [ weight-value ]
undo protocol-group arp queue { arp | nd } weight [ weight-value ]
undo protocol-group mpls queue { ldp | oam-ping | rsvp | vxlan } weight [ weight-value ]
undo protocol-group access-user queue { bas-arp | bas-igmp | bas-nd | bas-trigger | dhcp | dhcpv6 | eapol | l2tp | lldp | ppp | vbas-reserve | web } weight [ weight-value ]
undo protocol-group link-layer queue { 3ah | bfd | link-detect | trunk | y1731 | interface-rdi | lag-check | lag-ping-trace | mac-vlan } weight [ weight-value ]
undo protocol-group network-layer queue { clock | default | dns | fragment | gre | hwtacas | icmp | icmpv6 | ipv4-reserve | ipv6-option | nhrp | vrrp | radius-diameter } weight [ weight-value ]
undo protocol-group system-message queue system-message weight [ weight-value ]
undo protocol-group blacklist queue blacklist weight [ weight-value ]
undo protocol-group check-failed queue check-failed weight [ weight-value ]
undo protocol-group fwddata-to-cp queue forward-data weight [ weight-value ]
Parameter | Description | Value |
---|---|---|
whitelist-bgp |
Indicates packet belongs to whitelist-bgp protocol. |
- |
whitelist-ldp |
Indicates packets belong to whitelist-ldp protocol. |
- |
whitelist-management |
Indicates packets belong to whitelist-management protocol. |
- |
whitelist-multicast |
Indicates packets belong to whitelist-multicast protocol. |
- |
whitelist-reserve |
Indicates packets belong to whitelist-reserve protocol. |
- |
weight weight-value |
Weight. |
The value is an integer ranging from 1 to 16 |
user-defined-flow |
Indicates user defined flow packets. |
- |
user-define-flow-1 |
Indicates first user-defined flow packets. |
- |
user-define-flow-2 |
Indicates second user-defined flow packets. |
- |
user-define-flow-3 |
Indicates third user-defined flow packets. |
- |
user-define-flow-4 |
Indicates fourth user-defined flow packets. |
- |
user-define-flow-5 |
Indicates fifth user-defined flow packets. |
- |
user-define-flow-6 |
Indicates sixth user-defined flow packets. |
- |
user-define-flow-7 |
Indicates seventh user-defined flow packet. |
- |
user-define-flow-8 |
Indicates eighth user-defined flow packet. |
- |
management |
Indicates management packets. |
- |
dcn |
Indicates Packet belongs to dcn protocol. |
- |
ftp |
Indicates packet belongs to ftp protocol. |
- |
ntp |
Indicates packet belongs to ntp protocol. |
- |
snmp |
Indicates packet belongs to snmp protocol. |
- |
ssh |
Indicates packet belongs to ssh protocol. |
- |
sshv6 |
Indicates packet belongs to sshv6 protocol. |
- |
syslog |
Indicates packet belongs to syslog protocol. |
- |
telnet |
Indicates packet belongs to telnet protocol. |
- |
route-protocol |
Indicates multicast packets. |
- |
bgp |
Indicates packet belongs to bgp protocol. |
- |
bgpv6 |
Indicates packet belongs to bgpv6 protocol. |
- |
isis |
Indicates packet belongs to isis protocol. |
- |
ospf |
Indicates packet belongs to ospf protocol. |
- |
ospfv3 |
Indicates packet belongs to ospfv3 protocol. |
- |
rip |
Indicates packet belongs to rip protocol. |
- |
multicast |
Indicates multicast packets. |
- |
igmp |
Indicates packet belongs to igmp protocol. |
- |
multicast-reserve |
Indicates packet belongs to multicast-reserve protocol. |
- |
msdp |
Indicates packet belongs to msdp protocol. |
- |
pim |
Indicates packet belongs to pim protocol. |
- |
arp |
Indicates packet belongs to arp protocol. |
- |
nd |
Indicates packet belongs to nd protocol. |
- |
mpls |
Indicates mpls packets. |
- |
ldp |
Indicates packet belong to ldp protocol. |
- |
oam-ping |
Indicates packet belongs to oam-ping protocol. |
- |
rsvp |
Indicates packet belongs to rsvp protocol. |
- |
vxlan |
Indicates packet belongs to vxlan protocol. |
- |
access-user |
Indicates access-user packets. |
- |
bas-arp |
Indicates packet belongs to bas-arp protocol. |
- |
bas-igmp |
Indicates packet belongs to bas-igmp protocol. |
- |
bas-nd |
Indicates packet belongs to bas-nd protocol. |
- |
bas-trigger |
Indicates packet belongs to bas-trigger protocol. |
- |
dhcp |
Indicates packet belongs to dhcp protocol. |
- |
dhcpv6 |
Indicates packet belongs to dhcpv6 protocol. |
- |
eapol |
Indicates packet belongs to eapol protocol. |
- |
l2tp |
Indicates packet belongs to l2tp protocol. |
- |
lldp |
Indicates packet belongs to lldp protocol. |
- |
ppp |
Indicates packet belongs to ppp protocol. |
- |
vbas-reserve |
Indicates packet belongs to vbas-reserve protocol. |
- |
web |
Indicates packet belongs to web protocol. |
- |
link-layer |
Indicates link-layer packets. |
- |
3ah |
Indicates packet belongs to 3ah protocol. |
- |
bfd |
Indicates packet belongs to bfd protocol. |
- |
link-detect |
Indicates packet belongs to link-detect protocol. |
- |
trunk |
Indicates packet belongs to trunk protocol. |
- |
y1731 |
Indicates packet belongs to y1731 protocol. |
- |
interface-rdi |
Indicates packet belongs to interface-rdi protocol. |
- |
lag-check |
Indicates packet belongs to lag-check protocol. |
- |
lag-ping-trace |
Indicates packet belongs to lag-ping-trace protocol. |
- |
mac-vlan |
Indicates packet belongs to mac-vlan protocol. |
- |
network-layer |
Indicates network-layer packets. |
- |
clock |
Indicates packet belongs to clock protocol. |
- |
default |
Indicates packet belongs to default protocol. |
- |
dns |
Indicates packet belongs to dns protocol. |
- |
fragment |
Indicates packet belongs to fragment protocol. |
- |
gre |
Indicates packet belongs to gre protocol. |
- |
hwtacas |
Indicates packet belongs to hwtacas protocol. |
- |
icmp |
Indicates packet belongs to icmp protocol. |
- |
icmpv6 |
Indicates packet belongs to icmpv6 protocol. |
- |
ipv4-reserve |
Indicates Packet belongs to ipv4-reserve protocol. |
- |
ipv6-option |
Indicates packet belongs to ipv6-option protocol. |
- |
nhrp |
Indicates packet belongs to nhrp protocol. |
- |
vrrp |
Indicates packet belongs to vrrp protocol. |
- |
radius-diameter |
Indicates packet belongs to radius-diameter protocol. |
- |
system-message |
Indicates system-message packets. |
- |
blacklist |
Indicates packet belongs to blacklist protocol. |
- |
check-failed |
Indicates check-failed packets. |
- |
fwddata-to-cp |
Indicates foward-data-tocp packets. |
- |
forward-data |
Indicates packet belongs to forward-data protocol. |
- |
whitelist |
Indicates whitelist packets. |
- |
Usage Scenario
When congestion occurs for packets to be sent to the CPU, packets in different queues are scheduled based on the weights of the queues. Packets with larger weights are forwarded more frequently. When congestion occurs due to packet bursts, you can set the queue weight to allow packets with higher weights to preferentially pass.
<HUAWEI> system-view [~HUAWEI] cpu-defend policy 8 [*HUAWEI-cpu-defend-policy-8] protocol-group route-protocol queue bgp weight 5 [*HUAWEI-cpu-defend-policy-8] quit [*HUAWEI] slot 1 [*HUAWEI-slot-1] cpu-defend-policy 8