- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
05-QCN commands | 58.56 KB |
QCN commands
display qcn cp interface
Use display qcn cp interface to display congestion point statistics.
Syntax
display qcn cp interface [ interface-type interface-number ] [ priority priority-value ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, the command displays CP statistics for all Layer 2 Ethernet interfaces.
priority priority-value: Specifies a CND by a CNPV. If you do not specify a CND, the command displays CP statistics for all CNDs.
Usage guidelines
CP statistics for a Layer 2 Ethernet interface include the following information:
· Profiles bound to CNDs specified by CNPVs.
· Number of packets allowed to pass through.
· Number of packets discarded.
· Number of CNMs sent.
Examples
# Display CP statistics for all Layer 2 Ethernet interfaces.
<Sysname> display qcn cp interface
Interface: GigabitEthernet1/0/1
CNPV 1: CP profile 1
Passed : 100000 (Packets)
Discarded: 10 (Packets)
CNM count: 3000 (Packets)
CNPV 2: CP profile default
Passed : 200000 (Packets)
Discarded: 20 (Packets)
CNM count: 3000 (Packets)
Interface: GigabitEthernet1/0/2
CNPV 1: CP profile 1
Passed : 100000 (Packets)
Discarded: 10 (Packets)
CNM count: 3000 (Packets)
CNPV 2: CP profile default
Passed : 200000 (Packets)
Discarded: 20 (Packets)
CNM count: 3000 (Packets)
Table 1 Command output
Field |
Description |
Number of packets allowed to pass through. |
|
Number of packets discarded. |
|
Number of CNMs sent. |
Related commands
reset qcn cp interface
display qcn global
Use display qcn global to display the global CND settings.
Syntax
display qcn global [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies an IRF member device by its member ID. If you do not specify an IRF member device, the command displays the global CND settings on the master device.
Examples
# Display the global CND settings of the card in slot 1 in IRF member device 1.
<Sysname> display qcn global slot 1
Slot 1:
QCN global status: Enabled
CNPV Mode Defense-mode Alternate CP-profile
---------------------------------------------------
1 admin interior-ready 4 default
2 auto - 0 1
3 auto - 0 1
Table 2 Command output
Field |
Description |
Mode |
Indicates the way how the interface selects the defense mode: · auto—The interface negotiates the defense mode by using LLDP. · admin—The interface uses a user-configured defense mode. |
Defense mode of the interface: · disabled—Disables congestion notification and performs priority mapping according to the priority mapping table. · edge—Maps the priority of incoming frames with a specific CNPV to an alternate value and removes CN tags before sending out the frames. · interior—Does not alter the priority of incoming frames with a specific CNPV and removes CN tags before sending out the frames. · interior-ready—Does not alter the priority of incoming frames with a specific CNPV and retains CN tags when sending out the frames. When auto is configured, this field display a hyphen (-). Each interface on the switch negotiates the defense mode by using LLDP. |
|
Alternate |
Alternate value. |
display qcn interface
Use display qcn interface to display the CND settings of an interface.
Syntax
display qcn interface [ interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, the command displays the CND settings of all Layer 2 Ethernet interfaces.
Examples
# Display the CND settings of all Layer 2 Ethernet interfaces.
<Sysname> display qcn interface
Interface: GigabitEthernet1/0/1
CNPV Mode Defense-mode Alternate
---------------------------------------------------
1 comp interior-ready 4
2 admin edge 0
3 auto edge 0
Interface: GigabitEthernet1/0/2
CNPV Mode Defense-mode Alternate
---------------------------------------------------
1 comp interior-ready 4
2 admin edge 0
3 auto edge 0
Table 3 Command output
Field |
Description |
Indicates the way how the interface selects the defense mode: · auto—The interface negotiates the defense mode by using LLDP. · admin—The interface uses a user-configured defense mode. · comp—The interface uses the global defense mode. |
|
Alternate |
Alternate value. |
display qcn profile
Use display qcn profile to display the settings of a QCN profile.
Syntax
display qcn profile [ profile-id | default ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
profile-id: Specifies a QCN profile by its ID in the range of 1 to 128.
default: Specifies the default profile (profile 0).
slot slot-number: Specifies an IRF member device by its member ID (slot number). If you do not specify an IRF member device, the command displays the settings of QCN profiles on the master device.
Usage guidelines
If neither profile-id nor default is specified, the command displays the settings of all QCN profiles.
Examples
# Display the settings of QCN profiles on the card in slot 1 in IRF member device 2.
<Sysname> display qcn profile slot 1
Slot 1:
Profile Set-point Weight
---------------------------------------------------
default 26000 1
1 30000 2
Table 4 Command output
Field |
Description |
Set-point |
Desired queue length in bytes. |
qcn enable
Use qcn enable to enable QCN globally.
Use undo qcn enable to disable QCN globally.
Syntax
qcn enable
undo qcn enable
Default
QCN is disabled globally.
Views
System view
Predefined user roles
network-admin
Usage guidelines
To make QCN configurations take effect, you must enable QCN globally.
Examples
# Enable QCN globally.
[Sysname] qcn enable
qcn port priority
Use qcn port priority to configure CND settings for an interface.
Use undo qcn port priority to restore the default.
Syntax
qcn port priority priority-value { admin [ defense-mode { disabled | edge | interior | interior-ready } alternate alternate-value ] | auto }
undo qcn port priority priority-value
Default
The global CND settings apply.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Parameters
priority-value: Assigns the interface to a CND specified by a priority value (CNPV) in the range of 0 to 7.
admin: Configures the interface to use a user-configured defense mode.
defense-mode: Configures a defense mode. By default, the disabled defense mode is used.
disabled: Specifies the disabled defense mode. This mode disables congestion notification and performs priority mapping according to the priority mapping table.
edge: Specifies the edge defense mode. This mode maps the priority of frames with the specified CNPV to an alternate value.
interior: Specifies the interior defense mode. This mode does not alter the priority of incoming frames with a specific CNPV and removes CN tags before sending out the frames.
interior-ready: Specifies the interior-ready defense mode. This mode does not alter the priority of incoming frames with a specific CNPV and retains CN tags when sending out the frames.
alternate alternate-value: Specifies an alternate value in the range of 0 to 7. The default value for alternate-value is 0. The alternate value cannot be equal to any CNPVs.
auto: Configures the interface to negotiate the defense mode by using LLDP.
Usage guidelines
When a switch is not assigned to a CND, you cannot configure this command on its interfaces.
The CND settings for an interface take precedence over the global CND settings.
Examples
# Configure the defense mode disabled and alternate value 0 for interface GigabitEthernet 1/0/1 in the CND with CNPV 1.
<Sysname> system-view
[Sysname] qcn priority 1 auto
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] qcn port priority 1 admin defense-mode disabled alternate 0
# Configure interface GigabitEthernet 1/0/2 to negotiate a defense mode by using LLDP.
<Sysname> system-view
[Sysname] qcn priority 2 admin
[Sysname] interface gigabitethernet 1/0/2
[Sysname-GigabitEthernet1/0/2] qcn port priority 2 auto
Related commands
qcn priority
qcn priority
Use qcn priority to configure global CND settings.
Use undo qcn priority to remove a switch from a CND and delete all settings in that CND.
Syntax
qcn priority priority-value { admin [ defense-mode { disabled | edge | interior | interior-ready } alternate alternate-value ] | auto }
undo qcn priority priority-value
Default
The switch does not belong to any CND.
Views
System view
Predefined user roles
network-admin
Parameters
priority-value: Specifies a priority value as the CNPV, in the range of 0 to 7. The CNPV cannot be equal to the alternate value configured globally or for interfaces.
admin: Configures the switch to use a user-configured defense mode.
defense-mode: Configures a defense mode. By default, the interior defense mode is used.
disabled: Specifies the disabled defense mode. This mode disables congestion notification and performs priority mapping according to the priority mapping table.
edge: Specifies the edge defense mode. This mode maps the specified CNPV of frames to an alternate value.
interior: Specifies the interior defense mode. This mode does not alter the priority of incoming frames with a specific CNPV and removes CN tags before sending out the frames.
interior-ready: Specifies the interior-ready defense mode. This mode does not alter the priority of incoming frames with a specific CNPV and retains CN tags when sending out the frames.
alternate alternate-value: Specifies an alternate value in the range of 0 to 7. The default value for alternate-value is 0. The alternate value cannot be equal to any CNPVs.
auto: Configures the switch to negotiate the defense mode by using LLDP.
Usage guidelines
When you configure the auto keyword, the alternate value is the priority value that is closest to but smaller than the CNPV. For example, if you set the CNPV to 5, the alternative value is 4. If all priority values smaller than the CNPV are used as CNPVs, the alternate value is the priority value that is closest to but greater than the CNPV.
Examples
# Assign a switch to the CND with CNPV 2.
<Sysname> system-view
[Sysname] qcn priority 2 auto
# Assign a switch to the CND with CNPV 1.
<Sysname> system-view
[Sysname] qcn priority 1 admin defense-mode disabled alternate 0
Related commands
qcn port priority
qcn priority profile
Use qcn priority profile to bind a profile to a CND.
Use undo qcn priority profile to restore the default.
Syntax
qcn priority priority-value profile profile-id
undo qcn priority priority-value profile
Default
The default profile (profile 0) is bound to a CND.
Views
System view
Predefined user roles
network-admin
Parameters
priority-value: Specifies a priority value (CNPV) in the range of 0 to 7.
profile-id: Specifies a profile by its ID.
Usage guidelines
If the switch has not been assigned to the CND or the specified profile does not exist, the binding fails.
Examples
# Bind profile 2 to the CND with CNPV 2.
<Sysname> system-view
[Sysname] qcn priority 2 profile 2
qcn profile
Use qcn profile to create a profile.
Use undo qcn profile to delete a profile.
Syntax
qcn profile profile-id set-point length-value weight weight-value
undo qcn profile profile-id
Default
No user-created profiles exist.
Views
System view
Predefined user roles
network-admin
Parameters
profile-id: Specifies the ID of the profile to be created, in the range of 1 to 128. The system automatically creates the default profile (profile 0), which cannot be modified.
set-point length-value: Specifies the desired queue length in the range of 16644 to 8320000 bytes.
weight weight-value: Specifies a weight value in the range of –2 to 5.
Examples
# Create profile 1, with a desired queue length of 28000 bytes and a weight value of 1.
<Sysname> system-view
[Sysname] qcn profile 1 set-point 28000 weight 1
reset qcn cp interface
Use reset qcn cp interface to clear CP statistics.
Syntax
reset qcn cp interface [ interface-type interface-number ] [ priority priority-value ]
Views
User view
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, the command clears CP statistics for all Layer 2 Ethernet interfaces.
priority priority-value: Specifies a CND by a priority value (CNPV). If you do not specify a CND, the command clears CP statistics for all CNDs.
Examples
# Clear CP statistics for Layer 2 Ethernet interfaces in all CNDs.
<Sysname> reset qcn cp interface