The protocol-group queue priority command configures the weight of the packets to be sent to the CPU in specific protocol queues.
The undo protocol-group queue priority 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 management queue { dcn | ftp | ntp | snmp | ssh | sshv6 | syslog | telnet } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight weight-value
protocol-group multicast queue { igmp | multicast-reserve | msdp | pim } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight weight-value
protocol-group network-layer queue { clock | default | dns | fragment | gre | hwtacas | icmp | icmpv6 | ipv4-reserve | ipv6-option | nhrp | vrrp | radius-diameter } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight weight-value
protocol-group blacklist queue blacklist priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight weight-value
protocol-group whitelist queue { whitelist-bgp | whitelist-ldp | whitelist-management | whitelist-multicast | whitelist-reserve } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight weight-value
protocol-group check-failed queue check-failed priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight weight-value
protocol-group system-message queue system-message priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight weight-value
protocol-group arp queue { arp | nd } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } 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 } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight weight-value
protocol-group fwddata-to-cp queue forward-data priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } 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 } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight weight-value
protocol-group route-protocol queue { bgp | bgpv6 | isis | ospf | ospfv3 | rip } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight weight-value
protocol-group link-layer queue { 3ah | bfd | link-detect | trunk | y1731 | interface-rdi | lag-check | lag-ping-trace | mac-vlan } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight weight-value
protocol-group mpls queue { ldp | oam-ping | rsvp | vxlan } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight weight-value
undo protocol-group management queue { dcn | ftp | ntp | snmp | ssh | sshv6 | syslog | telnet } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight [ weight-value ]
undo protocol-group fwddata-to-cp queue forward-data priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight [ weight-value ]
undo protocol-group link-layer queue { 3ah | bfd | link-detect | trunk | y1731 | interface-rdi | lag-check | lag-ping-trace | mac-vlan } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } 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 } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight [ weight-value ]
undo protocol-group system-message queue system-message priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight [ weight-value ]
undo protocol-group multicast queue { igmp | multicast-reserve | msdp | pim } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } 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 } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight [ weight-value ]
undo protocol-group whitelist queue { whitelist-bgp | whitelist-ldp | whitelist-management | whitelist-multicast | whitelist-reserve } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight [ weight-value ]
undo protocol-group mpls queue { ldp | oam-ping | rsvp | vxlan } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } 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 } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight [ weight-value ]
undo protocol-group route-protocol queue { bgp | bgpv6 | isis | ospf | ospfv3 | rip } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight [ weight-value ]
undo protocol-group arp queue { arp | nd } priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight [ weight-value ]
undo protocol-group blacklist queue blacklist priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight [ weight-value ]
undo protocol-group check-failed queue check-failed priority { be | af1 | af2 | af3 | af4 | ef | cs6 | cs7 } weight [ weight-value ]
Parameter | Description | Value |
---|---|---|
weight weight-value |
Weight. |
The value is an integer ranging from 1 to 16. |
multicast |
Indicate multicast packets. |
- |
network-layer |
Indicate network-layer packets. |
- |
blacklist |
Indicate blacklist packets. |
- |
whitelist |
Indicate whitelist packets. |
- |
check-failed |
Indicate check-failed packets. |
- |
system-message |
Indicate system-message packets. |
- |
arp |
Indicate arp packets. |
- |
user-defined-flow |
Indicate user defined flow packets. |
- |
fwddata-to-cp |
Indicate foward-data-tocp packets. |
- |
access-user |
Indicate access-user packets. |
- |
route-protocol |
Indicate route protocol packets. |
- |
link-layer |
Indicate link-layer packets. |
- |
mpls |
Indicate mpls packets. |
- |
management |
Indicate management packets. |
- |
Usage Scenario
When congestion occurs in a protocol queue for packets to be sent to the CPU, packets with different priorities in the queue are scheduled based on their weights. Packets with larger weights are forwarded preferentially. When congestion occurs due to packet bursts, you can set the priority 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 network-layer queue icmp priority cs6 weight 5 [*HUAWEI-cpu-defend-policy-8] quit [*HUAWEI] slot 1 [*HUAWEI-slot-1] cpu-defend-policy 8