Re: [Ips] session re-instatement

"Eddy Quicksall" <Quicksall_iSCSI@Bellsouth.net> Tue, 27 February 2007 16:15 UTC

Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1HM4zG-00041c-8h; Tue, 27 Feb 2007 11:15:34 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1HM4zE-00041D-3g for ips@ietf.org; Tue, 27 Feb 2007 11:15:32 -0500
Received: from imf20aec.mail.bellsouth.net ([205.152.59.68]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1HM4zB-0000n9-Td for ips@ietf.org; Tue, 27 Feb 2007 11:15:32 -0500
Received: from ibm62aec.bellsouth.net ([74.245.52.54]) by imf20aec.mail.bellsouth.net with ESMTP id <20070227161529.IGT12929.imf20aec.mail.bellsouth.net@ibm62aec.bellsouth.net> for <ips@ietf.org>; Tue, 27 Feb 2007 11:15:29 -0500
Received: from IVVTDKV0981 ([74.245.52.54]) by ibm62aec.bellsouth.net with SMTP id <20070227161528.SSFF12425.ibm62aec.bellsouth.net@IVVTDKV0981>; Tue, 27 Feb 2007 11:15:28 -0500
Message-ID: <001201c75a8a$7f09bdc0$05faa8c0@ivivity.com>
From: Eddy Quicksall <Quicksall_iSCSI@Bellsouth.net>
To: "Sandars, Ken" <ken_sandars@adaptec.com>, Paul Hughes <phughes@pillardata.com>, "IP Storage Mailing List (E-mail)" <ips@ietf.org>
References: <16236EEEF4D4264DA31C2E35E3607CFE03DA6E25@coex02.trans.corp> <368FBF3D8437A748BA8222526BF9309901612DCA@aime2k302.adaptec.com>
Subject: Re: [Ips] session re-instatement
Date: Tue, 27 Feb 2007 11:15:28 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-Spam-Score: 0.1 (/)
X-Scan-Signature: 410b68b37343617c6913e76d02180b14
Cc:
X-BeenThere: ips@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: IP Storage <ips.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ips>, <mailto:ips-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:ips@ietf.org>
List-Help: <mailto:ips-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ips>, <mailto:ips-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0415415524=="
Errors-To: ips-bounces@ietf.org

session re-instatementI think the correct way is what Ken says. In simple terms don't put the reinstatement logic in the place where you receive the first PDU; instead let it go through the full login and when that is finished check to see if this is a reinstatement. Temporarily you will have two sessions that will appear to conflict but before you go to FFP you will resolve the problem and end up with only one session.
  ----- Original Message ----- 
  From: Sandars, Ken 
  To: Paul Hughes ; IP Storage Mailing List (E-mail) 
  Sent: Monday, February 26, 2007 9:26 PM
  Subject: RE: [Ips] session re-instatement


  Hi Paul,

  Section 5.3.5 [RFC3720] para 2 states:
    The initiator session state MUST be FAILED (Section 7.3 Session State Diagrams) when the initiator attempts a session reinstatement.
  In your scenario the initiator violates this rule since both are in state FREE (Q1).

  The part of your question explores what happens at the target if this scenario does occur.

  The connection and session state machines for the target show that the session begins life in the ACTIVE state (Q2) when the login phase of the leading connection starts (S4). Once the leading connection transits (T5) to LOGGED_IN (S5), the session performs the equivalent transit (N2) to LOGGED_IN(Q3).

  In your scenario, there are two new sessions in ACTIVE state, racing towards LOGGED_IN. A sensible target implementation waits until a connection makes the T5 transition (corresponding to the session's N2 transition) before enacting the session reinstatement action. Afterall, it would be a shame to nuke a potentially viable session with a dodgy login attempt.

  Some sort of implementation-specific mutual exclusion mechanism must be used on the target to ensure only one party manipulates the session state. Hence one connection reaches the T5 transition point and runs the session reinstatement algorithm.

  At this point the other session is in Q2 and its connection is in S4 (albeit on the cusp of its transition). While not listed as a T7 reason, I'd think a resilient target would take that action on the connection. The session would make the N9 transition (again, not explicitly listed as a reason, but follows as a consequence of the T7 transit).

  In other words, the first one to reach full feature phase survives and the other gets trashed. Sound fair?

  Cheers
  Ken



------------------------------------------------------------------------------
  From: Paul Hughes [mailto:phughes@pillardata.com] 
  Sent: Tuesday, 27 February 2007 03:23
  To: IP Storage Mailing List (E-mail)
  Subject: [Ips] session re-instatement


  Is there any text in RFC 3720 or the implementer's guide that prevents an initiator from simultaneously logging-in on two connections to the same target portal using the same InitiatorName, ISID, and TSIH=0?  If the logins were done sequentially, the second login would re-instate the session created by the first login, but I can see how a target might not do session re-instatement if the sessions are being created simultaneously.

  Thanks, 
  Paul 



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


  _______________________________________________
  Ips mailing list
  Ips@ietf.org
  https://www1.ietf.org/mailman/listinfo/ips
_______________________________________________
Ips mailing list
Ips@ietf.org
https://www1.ietf.org/mailman/listinfo/ips