iSCSI Optimization Commands

Use these commands to monitor iSCSI sessions and prioritize iSCSI packets.

Note: iSCSI optimization commands are supported on the M4350 series switches only. The M4250 series switches do not support iSCSI optimization.

This section describes commands you use to monitor iSCSI sessions and prioritize iSCSI packets. iSCSI Optimization provides a means of giving traffic between iSCSI initiator and target systems special Quality of Service (QoS) treatment. This is accomplished by monitoring traffic to detect packets used by iSCSI stations to establish iSCSI sessions and connections. Data from these exchanges is used to create classification rules that assign the traffic between the stations to a configured traffic class. Packets in the flow are queued and scheduled for egress on the destination port based on these rules.

iscsi aging time

M4350

This command sets the aging time for iSCSI sessions. Behavior when changing aging time:

  • When aging time is increased, current sessions will be timed out according to the new value.
  • When aging time is decreased, any sessions that have been dormant for a time exceeding the new setting will be immediately deleted from the table. All other sessions will continue to be monitored against the new time out value.
Default 10 minutes
Format iscsi aging time time
Mode Global Config
Parameter Description
time The number of minutes a session must be inactive prior to its removal. Range: 1-43,200.

Command example:

The following example sets the aging time for iSCSI sessions to 100 minutes:

CODE
(NETGEAR Switch)(config)#iscsi aging time 100

no iscsi aging time

Use the no iscsi aging time command to reset the aging time value to the default value.

Format no iscsi aging time
Mode Global Config

iscsi cos

M4350

This command sets the quality of service profile that will be applied to iSCSI flows. iSCSI flows are assigned by default to the highest VPT or DSCP mapped to the highest queue not used for switch management. Take care that you configure the relevant Class of Service parameters for the queue in order to complete the setting.

Setting the VPT or DSCP sets the QoS profile which determines the egress queue to which the frame is mapped. The switch default setting for egress queues scheduling is Weighted Round Robin (WRR).

You can complete the QoS setting by configuring the relevant ports to work in other scheduling and queue management modes via the Class of Service settings. Depending on the platform, these choices may include strict priority for the queue used for iSCSI traffic. The downside of strict priority is that, in certain circumstances (under heavy high priority traffic), other lower priority traffic may get starved. In WRR the queue to which the flow is assigned to can be set to get the required percentage.

iSCSI optimization is best applied to mixed-traffic networks in which iSCSI packets constitute a portion of overall traffic. In these cases, the assignment of iSCSI packets to nondefault queues can provide flows with lower latency and prevent queue resource contention.

If iSCSI frames comprise most of the traffic passing through the switch, the system provides optimal throughput if all traffic is assigned to the default queue. An example of this situation is a Storage Area Network (SAN) in which the switch is dedicated to interconnecting iSCSI targets with initiators. Using the default queue for this homogenous traffic provides the best performance in traffic-burst handling and the most accurate 802.3x Flow Control Pause Frame generation. In these cases, iSCSI Flow Acceleration, which can assign iSCSI frames to queues other than the default queue, might result in lower overall throughput or increased packet loss.

Format iscsi cos {vpt vpt | dscp dscp} [remark]
Mode Global Config
Parameter Description
vpt or dscp The VLAN Priority Tag or DSCP to assign iSCSI session packets.
remark Mark the iSCSI frames with the configured VPT or DSCP when egressing the switch.

Command example:

The following example sets the quality of service profile that is applied to iSCSI flows:

CODE
(NETGEAR Switch)(config)#iscsi cos vpt 5 remark

no iscsi cos

Use the no iscsi cos command to return to the default.

Format no iscsi cos
Mode Global Config

iscsi cos enable

M4350

This command enables the assignment of iSCSI flows that you can configure with the iscsi cos command.

Format iscsi cos enable
Mode Global Config

no iscsi cos enable

This command disables the assignment of iSCSI flows.

Format no iscsi cos enable
Mode Global Config

iscsi enable

M4350

This command globally enables iSCSI awareness.

Default disabled
Format iscsi enable
Mode Global Config

Command example:

The following example enables iSCSI awareness:

CODE
(NETGEAR Switch)(config) #iscsi enable

no iscsi enable

This command disables iSCSI awareness. When you use the no iscsi enable command, iSCSI resources are released.

Format no iscsi enable
Mode Global Config

iscsi target port

M4350

This command configures an iSCSI target port and, optionally, a target system’s IP address and IQN name. When working with private iSCSI ports (not IANA-assigned ports 3260/860), it is recommended to specify the target IP address as well, so that the switch will only snoop frames with which the TCP destination port is one of the configured TCP ports, and the destination IP is the target’s IP address. This way the CPU will not be falsely loaded by non-iSCSI flows (if by chance other applications also choose to use these un-reserved ports).

When a port is already defined and not bound to an IP address, and you want to bind it to an IP address, first remove it by using the no form of the command and then add it again, this time together with the relevant IP address.

Target names are only for display when using the show iscsi command. These names are not used to match with the iSCSI session information acquired by snooping.

A maximum of 16 TCP ports can be configured either bound to IP or not.

Default iSCSI well-known ports 3260 and 860 are configured as default but can be removed as any other configured target.
Format iscsi target port tcp-port-1 [tcp-port-2...tcp-port-16] [address ip-address] [name targetname]
Mode Global Config
Parameter Description
tcp-port-n TCP port number or list of TCP port numbers on which the iSCSI target listens to requests. Up to 16 TCP ports can be defined in the system in one command or by using multiple commands.
ip-address IP address of the iSCSI target. When the no form of this command is used, and the tcp port to be deleted is one bound to a specific IP address, the address field must be present.
targetname iSCSI name of the iSCSI target. The name can be statically configured; however, it can be obtained from iSNS or from sendTargets response. The initiator must present both its iSCSI Initiator Name and the iSCSI Target Name to which it wishes to connect in the first login request of a new session or connection.

Command example:

The following example configures TCP Port 49154 to target IP address 172.16.1.20:

CODE
(NETGEAR Switch)(config)#iscsi target port 49154 address 172.16.1.20

no iscsi target port

Use the no iscsi target port command to delete an iSCSI target port, address, and name.

Format no iscsi target port
Mode Global Config

show iscsi

M4350

This command displays the iSCSI settings.

Format show iscsi
Mode Privileged EXEC

Command example:

The following example shows the default configuration:

CODE
(NETGEAR Switch)#show iscsi
iSCSI disabled
iSCSI vpt is 5, remark
Session aging time: 10 min
Maximum number of sessions is 192
--------------------------------------------
iSCSI Targets and TCP ports:
--------------------------------------------
TCP     Port    Target IP Address      Name
        860     Not Configured         Not Configured
        3260    Not Configured         Not Configured

Command example:

The following example enables iSCSI:

CODE
(NETGEAR Switch)#configure
(NETGEAR Switch)(config)#iscsi enable

Command example:

The following example shows that iSCSI sessions and connections are established using TCP ports 3260 or 860. Packets sent on detected iSCSI TCP connections are assigned to traffic class 2 (see the CoS configuration shown below). Because remark is enabled, the packets are marked with IEEE 802.1p priority to 5 before transmission.

CODE
(NETGEAR Switch)#show iscsi
iscsi enabled
iSCSI vpt is 5, remark
Session aging time: 10 min
Maximum number of sessions is 192
--------------------------------------------
iSCSI Targets and TCP ports:
--------------------------------------------
TCP     Port    Target IP Address      Name
        860     Configured             Not Configured
        3260    Configured             Not Configured

(NETGEAR Switch)#show classofservice dot1p-mapping
User Priority    Traffic Class
-------------    -------------
       0                1
       1                0
       2                0
       3                1
       4                2
       5                2
       6                3
       6                3

show iscsi sessions

M4350

This command displays the iSCSI sessions.

Default If not specified, sessions are displayed in short mode (not detailed).
Format show iscsi sessions [detailed]
Mode Privileged EXEC

Command example:

CODE
(NETGEAR Switch) # show iscsi sessions
Target: iqn.1993-11.com.disk-vendor:diskarrays.sn.45678
-----------------------------------------------------------
Initiator: iqn.1992-04.com.os-vendor.plan9:cdrom.12
ISID: 11
Initiator: iqn.1995-05.com.os-vendor.plan9:cdrom.10
ISID: 222
-----------------------------------------------------------
Target: iqn.103-1.com.storage-vendor:sn.43338.
storage.tape:sys1.xyz
Session 3:
Initiator: iqn.1992-04.com.os-vendor.plan9:cdrom.12
Session 4:
Initiator: iqn.1995-05.com.os-vendor.plan9:cdrom.10
-----------------------------------------------------------

Command example:

CODE
(NETGEAR Switch)# show iscsi sessions detailed
Target: iqn.1993-11.com.disk-vendor:diskarrays.sn.45678
-----------------------------------------------------------
Session 1:

Initiator: iqn.1992-04.com.os
vendor.plan9:cdrom.12.storage:sys1.xyz
-----------------------------------------------------------
Time started: 17-Jul-2008 10:04:50
Time for aging out: 10 min
ISID: 11
Initiator      Initiator       Target         Target
IP address     TCP port        IP address     IP port
172.16.1.3     49154           172.16.1.20    30001
172.16.1.4     49155           172.16.1.21    30001
172.16.1.5     49156           172.16.1.22    30001

Session 2:
-----------------------------------------------------------
Initiator: iqn.1995-05.com.os-vendor.plan9:cdrom.10
Time started: 17-Aug-2008  21:04:50
Time for aging out: 2 min
ISID: 22
Initiator      Initiator       Target         Target
IP address     TCP port        IP address     IP port
172.16.1.30    49200           172.16.1.20    30001
172.16.1.30    49201           172.16.1.21    30001