Return-Path: <owner-ips@ece.cmu.edu>
X-Sieve: cmu-sieve 2.0
Return-Path: <owner-ips@ece.cmu.edu>
Received: (from majordom@localhost)
	by ece.cmu.edu (8.11.0/8.10.2) id h2CD8tn13864
	for ips-outgoing; Wed, 12 Mar 2003 08:08:55 -0500 (EST)
X-Authentication-Warning: ece.cmu.edu: majordom set sender to owner-ips@ece.cmu.edu using -f
Received: from mx.mercury.co.il (mx.mercury.co.il [192.118.44.38])
	by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h2CD8pM13859
	for <ips@ece.cmu.edu>; Wed, 12 Mar 2003 08:08:51 -0500 (EST)
Received: from exchilbh.mercury.co.il (localhost [127.0.0.1])
	by mx.mercury.co.il (8.11.6/8.11.6) with ESMTP id h2CD13v27040
	for <ips@ece.cmu.edu>; Wed, 12 Mar 2003 15:01:04 +0200
Received: by exchilbh.mercury.co.il with Internet Mail Service (5.5.2653.19)
	id <FX0FHF1V>; Wed, 12 Mar 2003 15:08:16 +0200
Message-ID: <EF732EFD1CE8604CA57191D151D4AFCD081DCC@exchil05>
From: Amir Grimberg <amirg@mercury.co.il>
To: Amir Grimberg <amirg@mercury.co.il>
Cc: "'ips@ece.cmu.edu'" <ips@ece.cmu.edu>
Subject: FW: iSCSI: connection failure in a multii-connection session
Date: Wed, 12 Mar 2003 15:09:15 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="Windows-1255"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by ece.cmu.edu id h2CD8qM13860
Sender: owner-ips@ece.cmu.edu
Precedence: bulk



-----Original Message-----
From: Amir Grimberg [mailto:amirgr@barak-online.net] 
Sent: ג 04 מרץ 2003 7:55
To: amirg@mercury.co.il
Subject: Fw: iSCSI: connection failure in a multii-connection session


----- Original Message -----
From: <Black_David@emc.com>
To: <aaizman@silverbacksystems.com>; <ips@ece.cmu.edu>
Sent: Friday, February 28, 2003 7:01 PM
Subject: RE: iSCSI: connection failure in a multii-connection session


> Alex,
>
> > Let's say, Error Recovery Level = 0 and one connection in a
> > multi-connection session has failed. The first question is, could
> > Initiator retain the functioning session with fewer connections (and the
> > ERL being zero)? Assuming the answer is 'yes', here's some of the
> > follow-up questions:
>
> Yes, this is possible.
>
> > Initiator sends Logout(1, CID) on one of the remaining good connections
> > to cleanup the failed connection, ID=CID.
>
> At this point, all active tasks allegiant to the logged out connection
have
> been terminated (aborted), and all other commands (received or in flight)
> allegiant to that connection have been discarded, possibly (but not
> necessarily) leaving holes in the CmdSN sequence.
>
> > Initiator then either:
> >
> > 1) Sends Task Abort for every unacknowledged command. This process will
> > eventually synchronize *this* session sequence numbers. The problem is,
> > once all Aborts are executed, the Target will proceed executing
> > outstanding CmdSNs received on good connection(s), which may cause
> > re-ordering on the SCSI level.
>
> First of all, aborting of the active tasks allegiant to the old connection
> by the Logout is unavoidable.  If the result is that there are no holes in
> the CmdSN space after that happens, SCSI execution will continue.
>
> If SCSI level ordering is an issue, either:
> - Use an Error Recovery Level other than 0.  This topic looks like an
> attempt to get Task Reassign at level 0, and that doesn't work.
> - Use some other SCSI mechanism like ACA to deal with ordering.
>
> > 2) Alternatively, the Initiator re-issues all outstanding commands on
> > the good connection(s), without changing their ITTs and CmdSNs. Target
> > receives these commands (some of which may have been already executed),
> > and continues normal processing in the order of CmdSNs. The question is
> > whether Initiator is permitted to retry  commands using the same ITT and
> > CmdSN pair on another connection after successful Logout but without
> > explicit re-assignment. Section 6.2.1 in the spec seems to allow that.
>
> That works only for the commands that were discarded or never received.
> The commands terminated (aborted) by the Logout cannot be retried,
> and the Target will ignore such retries.
>
> > 3) Finally, is it a hard requirement that Initiator uses the same ITT
> > that was used to send the original command? What's the logic behind this
> > requirement?
>
> Response matching.  There are retry cases in which it's possible that
> the Target received and executed the command.  If the ITT changes
> between the initial send and the retry, the Response could come back
> with either ITT, leading to further confusion at the Initiator.
>
> Thanks,
> --David
> ----------------------------------------------------
> David L. Black, Senior Technologist
> EMC Corporation, 176 South St., Hopkinton, MA  01748
> +1 (508) 293-7953             FAX: +1 (508) 293-7786
> black_david@emc.com        Mobile: +1 (978) 394-7754
> ----------------------------------------------------
>

