QCN commands -- display qcn cp interface

Use display qcn cp interface to display congestion point (CP) statistics.

Syntax

display qcn cp interface [ interface-type interface-number ] [ priority priority ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies a Layer 2 Ethernet interface by its type and number. If you do not specify an interface, this command displays CP statistics for all Layer 2 Ethernet interfaces.

priority priority: Specifies a congestion notification domain (CND) by a congestion notification priority value (CNPV) in the range of 0 to 7. If you do not specify a CND, this 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 congestion notification messages (CNMs) sent.

Examples

# Display CP statistics for all Layer 2 Ethernet interfaces.

<Sysname> display qcn cp interface

Interface: GE1/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: GE1/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
CNPV | Congestion detection profile bound to the CND specified by the CNPV.
Passed | Number of packets allowed to pass through.
Discarded | Number of packets discarded.
CNM count | Number of CNMs sent.

Related commands

reset qcn cp interface

QCN commands -- display qcn global

Use display qcn global to display the global CND settings.

Syntax

Centralized devices:

display qcn global

Distributed devices in standalone mode:Centralized IRF devices:

display qcn global [ slot slot-number ]

Distributed devices in IRF mode:

display qcn global [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays the global CND settings for the active MPU. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays the global CND settings for the master device. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. If you do not specify a member device or PEX, this command displays the global CND settings for the master device. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays the global CND settings for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. If you do not specify a card or PEX, this command displays the global CND settings for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 capable.)

Examples

# (Centralized devices.) Display the global CND settings.

<Sysname> display qcn global

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

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display the global CND settings.

<Sysname> display qcn global

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 | 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 congestion notification (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 device negotiates the defense mode by using LLDP.
Alternate | Alternate value.
CP-profile | Congestion detection profile.

QCN commands -- display qcn interface

Use display qcn interface to display the CND settings of interfaces.

Syntax

display qcn interface [ interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies a Layer 2 Ethernet interface by its type and number. If you do not specify an interface, this 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: GE1/0/1

CNPV Mode Defense-mode Alternate

---------------------------------------------------

1 comp interior-ready 4

2 admin edge 0

3 auto edge 0

Interface: GE1/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
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. · comp—The interface uses the global defense mode.
Alternate | Alternate value.

QCN commands -- display qcn profile

Use display qcn profile to display the settings of congestion detection profiles.

Syntax

Centralized devices:

display qcn profile [ profile-id | default ]

Distributed devices in standalone mode:Centralized IRF devices:

display qcn profile [ profile-id | default ] [ slot slot-number ]

Distributed devices in IRF mode:

display qcn profile [ profile-id | default ] [ chassis chassis-number slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

profile-id: Specifies a congestion detection profile by its ID. The value range for this argument is 1 to 128.

default: Specifies the default congestion detection profile (profile 0).

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays the settings of congestion detection profiles for the active MPU. (Distributed devices in standalone mode.)

slot slot-number: Specifies an IRF member device by its member ID. If you do not specify a member device, this command displays the settings of congestion detection profiles for the master device. (Centralized IRF devices.) (IRF 3 incapable.)

slot slot-number: Specifies an IRF member device by its member ID or specifies a PEX by its virtual slot number. If you do not specify a member device or PEX, this command displays the settings of congestion detection profiles for the master device. (Centralized IRF devices.) (IRF 3 capable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays the settings of congestion detection profiles for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 incapable.)

chassis chassis-number slot slot-number: Specifies a card on an IRF member device or specifies a PEX. The chassis-number argument represents the member ID of the IRF member device or the virtual chassis number of the PEX. The slot-number argument represents the slot number of the card or PEX. If you do not specify a card or PEX, this command displays the settings of congestion detection profiles for the global active MPU. (Distributed devices in IRF mode.) (IRF 3 capable.)

Usage guidelines

If you do not specify profile-id or default, this command displays the settings of all congestion detection profiles.

Examples

# (Centralized devices.) Display the settings of congestion detection profiles.

<Sysname> display qcn profile

Profile Set-point Weight

---------------------------------------------------

default 26000 1

1 30000 2

# (Distributed devices in standalone mode.) (Centralized IRF devices.) Display the settings of congestion detection profiles.

<Sysname> display qcn profile

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 commands -- qcn enable

Use qcn enable to enable Quantized Congestion Notification (QCN).

Use undo qcn enable to disable QCN.

Syntax

qcn enable

undo qcn enable

Default

QCN is disabled.

Views

System view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

To make QCN settings take effect, you must enable QCN.

Examples

# Enable QCN.

<Sysname> system-view

[Sysname] qcn enable

QCN commands -- qcn port priority

Use qcn port priority to configure CND settings for an interface.

Use undo qcn port priority to delete the CND settings of an interface.

Syntax

qcn port priority priority { admin [ defense-mode { disabled | edge | interior | interior-ready } alternate alternate-value ] | auto }

undo qcn port priority priority

Default

The global CND settings apply.

Views

Layer 2 Ethernet interface view

Predefined user roles

network-admin

mdc-admin

Parameters

priority: 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 the alternate-value argument is 0. The alternate value cannot be equal to a CNPV.

auto: Configures the interface to negotiate the defense mode by using LLDP.

Usage guidelines

If a device 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 defense mode disabled and alternate value 0 for 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 GigabitEthernet 1/0/2 to negotiate the 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 commands -- qcn priority

Use qcn priority to configure global CND settings.

Use undo qcn priority to remove a device from a CND and delete all settings in that CND.

Syntax

qcn priority priority { admin [ defense-mode { disabled | edge | interior | interior-ready } alternate alternate-value ] | auto }

undo qcn priority priority

Default

A device does not belong to any CND.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

priority: 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 device 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 the alternate-value argument is 0. The alternate value cannot be equal to a CNPV.

auto: Configures the device 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 device to the CND with CNPV 2.

<Sysname> system-view

[Sysname] qcn priority 2 auto

# Assign a device 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 commands -- qcn priority profile

Use qcn priority profile to bind a congestion detection profile to a CND.

Use undo qcn priority profile to unbind a congestion detection profile from a CND.

Syntax

qcn priority priority profile profile-id

undo qcn priority priority profile

Default

The default congestion detection profile (profile 0) is bound to a CND.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

priority: Specifies a priority value (CNPV) in the range of 0 to 7.

profile-id: Specifies a congestion detection profile by its ID.

Usage guidelines

If the device has not been assigned to the CND or the specified congestion detection profile does not exist, the binding fails.

Examples

# Bind congestion detection profile 2 to the CND with CNPV 2.

<Sysname> system-view

[Sysname] qcn priority 2 profile 2

QCN commands -- qcn profile

Use qcn profile to create a congestion detection profile.

Use undo qcn profile to delete a congestion detection profile.

Syntax

qcn profile profile-id set-point length-value weight weight-value

undo qcn profile profile-id

Default

The default congestion detection profile (profile 0) is automatically created after QCN is enabled. The desired queue length is 26000 bytes and the weight value is 1.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

profile-id: Specifies the ID of the congestion detection profile to be created. The value range for this argument is 1 to 128. The system automatically creates the default congestion detection profile (profile 0), which cannot be modified.

set-point length-value: Specifies the desired queue length in bytes. The value range for length-value is 16644 to 8320000.

weight weight-value: Specifies a weigh value. The value range for weight-value is 2 to 5.

Examples

# Create congestion detection 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

QCN commands -- reset qcn cp interface

Use reset qcn cp interface to clear CP statistics.

Syntax

reset qcn cp interface [ interface-type interface-number ] [ priority priority ]

Views

User view

Predefined user roles

network-admin

mdc-admin

Parameters

interface-type interface-number: Specifies a Layer 2 Ethernet interface by its type and number. If you do not specify an interface, this command clears CP statistics for all Layer 2 Ethernet interfaces.

priority priority: Specifies a CND by a priority value (CNPV). If you do not specify a CND, this command clears CP statistics for all CNDs.

Examples

# Clear CP statistics for Layer 2 Ethernet interfaces in all CNDs.

<Sysname> reset qcn cp interface