Information about iSCSI TLV
Note |
The adapter management application must ensure that the Willing mode is set to enable to accept the CoS values from the switch. |
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter contains the following sections:
Note |
The adapter management application must ensure that the Willing mode is set to enable to accept the CoS values from the switch. |
iSCSI TLV Configuration
You can define a class map for each class of traffic to be used in QoS policies.
If the packet matches any of the criteria configured for this class map with the match command, then this class map is applied to the packet. If no execution strategy is specified (match-any or match-all), then the default value of match-any is applied to the traffic class.
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
switch# configure terminal |
Enters global configuration mode. |
||
Step 2 |
switch(config)# class-map [type qos] [match-all | match-any] class-map-name |
Creates a named object that represents a class of traffic, and enters class-map mode. Class-map names can contain alphabetic, hyphen, or underscore characters, are case sensitive, and can be up to 40 characters. |
||
Step 3 |
switch(config-cmap-qos)# match protocol [fcoe | iscsi | tcp] |
|
||
Step 4 |
switch(config-cmap-qos)# match cos cos value |
Specifies the CoS value to match. The range is from 0 to 7. |
This example shows how to identify iSCSI traffic.
switch# configure terminal
switch(config)# class-map type qos match-all c1
switch(config-cmap-qos)# match protocol iscsi
switch(config-cmap-qos)# match cos 5
Type qos policies are used for classifying the traffic of a specific system class identified by a unique qos-group value. A type qos policy can be attached to the system or to individual interfaces (including Fabric Extender host interfaces) for input traffic only.
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
switch# configure terminal |
Enters global configuration mode. |
||
Step 2 |
switch(config)# policy-map [type qos] policy-name |
Creates a named object that represents a set of policies that are to be applied to a set of traffic classes. Policy-map names can contain alphabetic, hyphen, or underscore characters, are case sensitive, and can be up to 40 characters. |
||
Step 3 |
switch(config-pmap-qos)# class class-name |
To add a reference to the system class that matches a traffic class, use this command. |
||
Step 4 |
switch(config-pmap-c-qos)# set qos-group qos-group-value |
|
||
Step 5 |
switch(config-pmap-c-qos)# exit |
Exits qos configuration mode and enters policy-map mode. |
||
Step 6 |
switch(config-pmap-qos)# class class-default |
To add a reference to the system default class that does not match any traffic class, use the class class-default command. |
This example shows how to define a QOS policy map.
switch# configure terminal
switch(config)# policy-map type qos c1
switch(config-pmap-qos)# class c1
switch(config-pmap-c-qos)# set qos-group 2
switch(config-pmap-c-qos)# exit
switch(config-pmap-qos)# class class-default
Command or Action | Purpose | |||||
---|---|---|---|---|---|---|
Step 1 |
switch# configure terminal |
Enters global configuration mode. |
||||
Step 2 |
switch(config)# class-map type {network-qos | queuing} class-name |
Creates a named object that represents a class of traffic. Class-map names can contain alphabetic, hyphen, or underscore characters, are case sensitive, and can be up to 40 characters. |
||||
Step 3 |
switch(config-cmap-nq)# match qos-group qos-group-value |
|
||||
Step 4 |
switch(config-cmap-nq)# exit |
Exits class-map mode and enters global configuration mode. |
||||
Step 5 |
switch(config)# policy-map type network-qos policy-name |
Creates a named object that represents a set of policies that are to be applied to a set of traffic classes. Policy-map names can contain alphabetic, hyphen, or underscore characters, are case sensitive, and can be up to 40 characters. |
||||
Step 6 |
switch(config-pmap-nq)# class type network-qos class-name |
|
||||
Step 7 |
switch(config-pmap-c-nq)# pause no-drop [pfc-cos pfc-cos-value] |
|
||||
Step 8 |
switch(config-pmap-nq)# class type network-qos class-name |
|
||||
Step 9 |
switch(config-pmap-c-nq)# mtu 9216 |
Enables the jumbo MTU for the whole switch by setting the MTU to its maximum size (9216 bytes) in the policy map for the default system class (class-default). |
This example shows how to configure a no-drop policy map.
switch# configure terminal
switch(config)# class-map type network-qos c1
switch(config-cmap-nq)# match qos-group 2
switch(config-cmap-nq)# exit
switch(config)# policy-map type network-qos p1
switch(config-pmap-nq)# class type network-qos c1
switch(config-pmap-c-nq)# pause no-drop
switch(config-pmap-nq)# class type network-qos class-default
switch(config-pmap-c-nq)# mtu 9216
Command or Action | Purpose | |
---|---|---|
Step 1 |
switch# configure terminal |
Enters global configuration mode. |
Step 2 |
switch(config)# system qos |
Enters system class configuration mode. |
Step 3 |
switch(config-sys-qos)# service-policy {type {qos input}} policy-map-name |
Attaches a policy map of type qos to an interface. |
Step 4 |
switch(config-sys-qos)# service-policy {type {network-qos}} policy-map-name |
Attaches a policy map of type network-qos to an interface. |
This example shows how to apply system service policies.
switch# configure terminal
switch(config)# system qos
switch(config-sys-qos)# service-policy type qos input c1
switch(config-sys-qos)# service-policy type network-qos p1
iSCSI TLV and FCoE Configuration
You can define a class map for each class of traffic to be used in QoS policies.
If the packet matches any of the criteria configured for this class map with the match command, then this class map is applied to the packet. If no execution strategy is specified (match-any or match-all), then the default value of match-any is applied to the traffic class.
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
switch# configure terminal |
Enters global configuration mode. |
||
Step 2 |
switch(config)# class-map type qos class-map-name |
Creates a named object that represents a class of traffic, and enters class-map mode. Class-map names can contain alphabetic, hyphen, or underscore characters, are case sensitive, and can be up to 40 characters. |
||
Step 3 |
switch(config-cmap-qos)# exit |
Exits class-map configuration mode and enters global configuration mode. |
||
Step 4 |
switch(config)# class-map type qos [match-all | match-any] class-map-name |
Creates a class map, provides conditions for applying this class map to a packet, and enters the class-map configuration mode. |
||
Step 5 |
switch(config-cmap-qos)# match protocol [fcoe | iscsi | tcp] |
|
||
Step 6 |
switch(config-cmap-qos)# match cos cos value |
Specifies the CoS value to match. The range is from 0 to 7. |
||
Step 7 |
switch(config-cmap-qos)# exit |
Exits class-map configuration mode and enters global configuration mode. |
||
Step 8 |
switch(config)# class-map type queuing class-map-name |
Creates a class map that defines a queuing class of traffic and enters the class-map configuration mode. |
||
Step 9 |
switch(config-cmap-que)# match qos-group qos-group-list |
Configures a traffic class that matches the QoS group values. |
This example shows how to identify iSCSI and FCoE traffic.
switch# configure terminal
switch(config)# class-map type qos class-fcoe
switch(config-cmap-qos)# exit
switch(config)# class-map type qos match-all c1
switch(config-cmap-qos)# match protocol iscsi
switch(config-cmap-qos)# match cos 6
switch(config-cmap-qos)# exit
switch(config)# class-map type queuing class-fcoe
switch(config-cmap-que)# match qos-group 1
Type qos policies are used for classifying the traffic of a specific system class identified by a unique qos-group value. A type qos policy can be attached to the system or to individual interfaces (including Fabric Extender host interfaces) for input traffic only.
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
switch# configure terminal |
Enters global configuration mode. |
||
Step 2 |
switch(config)# policy-map [type qos] policy-name |
Creates a named object that represents a set of policies that are to be applied to a set of traffic classes. Policy-map names can contain alphabetic, hyphen, or underscore characters, are case sensitive, and can be up to 40 characters. |
||
Step 3 |
switch(config-pmap-qos)# class class-name |
Specifies a class map for a policy map. |
||
Step 4 |
switch(config-pmap-c-qos)# set qos-group qos-group-value |
|
||
Step 5 |
switch(config-pmap-c-qos)# exit |
Exits qos configuration mode and enters policy-map mode. |
||
Step 6 |
switch(config-pmap-qos)# class class-name |
Specifies a class map for a policy map. |
||
Step 7 |
switch(config-pmap-c-qos)# set qos-group qos-group-value |
|
||
Step 8 |
switch(config-pmap-c-qos)# exit |
Exits qos configuration mode and enters policy-map mode. |
||
Step 9 |
switch(config-pmap-qos)# class class-default |
Adds a reference to the system default class that does not match any traffic class. |
This example shows how to define a QOS policy map.
switch# configure terminal
switch(config)# policy-map type qos c1
switch(config-pmap-qos)# class c1
switch(config-pmap-c-qos)# set qos-group 2
switch(config-pmap-c-qos)# exit
switch(config-pmap-qos)# class class-fcoe
switch(config-pmap-c-qos)# set qos-group 1
switch(config-pmap-c-qos)# exit
switch(config-pmap-qos)# class class-default
Command or Action | Purpose | |||||
---|---|---|---|---|---|---|
Step 1 |
switch# configure terminal |
Enters global configuration mode. |
||||
Step 2 |
switch(config)# class-map type {network-qos} class-name |
Creates a named object that represents a class of traffic. Class-map names can contain alphabetic, hyphen, or underscore characters, are case sensitive, and can be up to 40 characters. |
||||
Step 3 |
switch(config-cmap-nq)# match qos-group qos-group-value |
|
||||
Step 4 |
switch(config-cmap-nq)# exit |
Exits class-map mode and enters global configuration mode. |
||||
Step 5 |
switch(config)# class-map type {network-qos} class-name |
Creates a named object that represents a class of traffic. Class-map names can contain alphabetic, hyphen, or underscore characters, are case sensitive, and can be up to 40 characters. |
||||
Step 6 |
switch(config-cmap-nq)# match qos-group qos-group-value |
|
||||
Step 7 |
switch(config-cmap-nq)# exit |
Exits class-map mode and enters global configuration mode. |
||||
Step 8 |
switch(config)# policy-map type network-qos policy-name |
Creates a named object that represents a set of policies that are to be applied to a set of traffic classes. Policy-map names can contain alphabetic, hyphen, or underscore characters, are case sensitive, and can be up to 40 characters. |
||||
Step 9 |
switch(config-pmap-nq)# class type network-qos class-name |
|
||||
Step 10 |
switch(config-pmap-c-nq)# pause no-drop [pfc-cos pfc-cos-value] |
|
||||
Step 11 |
switch(config-pmap-nq)# class type network-qos class-name |
|
||||
Step 12 |
switch(config-pmap-c-nq)# mtu 2158 |
Sets the MTU to 2158 bytes in the policy map for class-fcoe. |
||||
Step 13 |
switch(config-pmap-c-nq)# pause no-drop [pfc-cos pfc-cos-value] |
|
||||
Step 14 |
switch(config-pmap-nq)# class type network-qos class-name |
|
||||
Step 15 |
switch(config-pmap-c-nq)# mtu 9216 |
Enables the jumbo MTU for the whole switch by setting the MTU to its maximum size (9216 bytes) in the policy map for the default system class (class-default). |
This example shows how to configure a no-drop policy map.
switch# configure terminal
switch(config)# class-map type network-qos c1
switch(config-cmap-nq)# match qos-group 2
switch(config-cmap-nq)# exit
switch(config)# class-map type network-qos class-fcoe
switch(config-cmap-nq)# match qos-group 1
switch(config-cmap-nq)# exit
switch(config)# policy-map type network-qos p1
switch(config-pmap-nq)# class type network-qos c1
switch(config-pmap-c-nq)# pause no-drop
switch(config-pmap-nq)# class type network-qos class-fcoe
switch(config-pmap-c-nq)# mtu 2158
switch(config-pmap-c-nq)# pause no-drop
switch(config-pmap-nq)# class type network-qos class-default
switch(config-pmap-c-nq)# mtu 9216
Command or Action | Purpose | |
---|---|---|
Step 1 |
switch# configure terminal |
Enters global configuration mode. |
Step 2 |
switch(config)# system qos |
Enters system class configuration mode. |
Step 3 |
switch(config-sys-qos)# service-policy type queuing input fcoe-default-in-policy |
Applies the input queuing FCoE policy map to an interface. |
Step 4 |
switch(config-sys-qos)# service-policy type queuing output fcoe-default-out-policy |
Applies the output queuing FCoE policy map to an interface. |
Step 5 |
switch(config-sys-qos)# service-policy {type {qos input}} policy-map-name |
Attaches a policy map of type qos to an interface. |
Step 6 |
switch(config-sys-qos)# service-policy {type {network-qos}} policy-map-name |
Attaches a policy map of type network-qos to an interface. |
This example shows how to apply system service policies.
switch# configure terminal
switch(config)# system qos
switch(config-sys-qos)# service-policy type queuing input fcoe-default-in-policy
switch(config-sys-qos)# service-policy type queuing output fcoe-default-out-policy
switch(config-sys-qos)# service-policy type qos input c1
switch(config-sys-qos)# service-policy type network-qos p1