Return-Path: <owner-ips-outgoing@ece.cmu.edu>
X-Sieve: cmu-sieve 2.0
Return-Path: <owner-ips-outgoing@ece.cmu.edu>
Received: from hazard.ece.cmu.edu (HAZARD.ECE.CMU.EDU [128.2.129.24])
	by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h570q7305053
	for <ipsml@ece.cmu.edu>; Fri, 6 Jun 2003 20:52:07 -0400 (EDT)
Received: by hazard.ece.cmu.edu (Postfix, from userid 953)
	id 159A497; Fri,  6 Jun 2003 20:52:06 -0400 (EDT)
Received: from sos.ece.cmu.edu (SOS.ECE.CMU.EDU [128.2.129.27])
	by hazard.ece.cmu.edu (Postfix) with ESMTP
	id 6D93284; Fri,  6 Jun 2003 20:52:03 -0400 (EDT)
Received: by sos.ece.cmu.edu (Postfix)
	id 6D85589D8; Fri,  6 Jun 2003 20:51:46 -0400 (EDT)
Received: from osgood.ece.cmu.edu (OSGOOD.ECE.CMU.EDU [128.2.129.25])
	by sos.ece.cmu.edu (Postfix) with ESMTP id 5370289D6
	for <ips-outgoing@sos.ece.cmu.edu>; Fri,  6 Jun 2003 20:51:46 -0400 (EDT)
Received: by osgood.ece.cmu.edu (Postfix)
	id 1EF99A2; Fri,  6 Jun 2003 20:51:46 -0400 (EDT)
Received: by osgood.ece.cmu.edu (Postfix, from userid 953)
	id EBEAAB1; Fri,  6 Jun 2003 20:51:45 -0400 (EDT)
Received: from sos.ece.cmu.edu (SOS.ECE.CMU.EDU [128.2.129.27])
	by osgood.ece.cmu.edu (Postfix) with ESMTP id 193DFA2
	for <ips-outgoing@ece.cmu.edu>; Fri,  6 Jun 2003 20:51:43 -0400 (EDT)
Received: by sos.ece.cmu.edu (Postfix, from userid 363)
	id DF95A89D9; Fri,  6 Jun 2003 20:51:42 -0400 (EDT)
X-Original-To: ips@sos.ece.cmu.edu
Received: from hazard.ece.cmu.edu (HAZARD.ECE.CMU.EDU [128.2.129.24])
	by sos.ece.cmu.edu (Postfix) with ESMTP id 6515389D6
	for <ips@sos.ece.cmu.edu>; Fri,  6 Jun 2003 20:51:41 -0400 (EDT)
Received: by hazard.ece.cmu.edu (Postfix)
	id CADEA84; Fri,  6 Jun 2003 20:51:40 -0400 (EDT)
Delivered-To: ips@ece.cmu.edu
Received: by hazard.ece.cmu.edu (Postfix, from userid 953)
	id AFCA98D; Fri,  6 Jun 2003 20:51:40 -0400 (EDT)
Received: from mail.wrs.com (unknown-1-11.windriver.com [147.11.1.11])
	by hazard.ece.cmu.edu (Postfix) with ESMTP id 7B93684
	for <ips@ece.cmu.edu>; Fri,  6 Jun 2003 20:51:37 -0400 (EDT)
Received: from RLTEMPLE (vpn10-95-10-3.wrsec.fr [10.95.10.3])
	by mail.wrs.com (8.9.3/8.9.1) with SMTP id RAA20660;
	Fri, 6 Jun 2003 17:51:11 -0700 (PDT)
From: "Rod Harrison" <rod.harrison@windriver.com>
To: "Sanjay Goyal" <sanjayg@ivivity.com>, <ips@ece.cmu.edu>
Subject: RE: iscsi: Data PDU in two Sequence multiplexing issue
Date: Fri, 6 Jun 2003 19:51:33 -0500
Message-ID: <NEBBKMMOEMCINPLCHKGMCEKFECAA.rod.harrison@windriver.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <AEC4671C8179D61194DE0002B328BDD272FDA4@ATLOPS>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Sender: owner-ips@ece.cmu.edu
Precedence: bulk
X-Spam-Status: No, hits=-21.0 required=5.0
	tests=BAYES_10,IN_REP_TO,MSGID_GOOD_EXCHANGE,ORIGINAL_MESSAGE
	version=2.50
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp)


That depends on why the initiator is sending the data. If we are
talking solely about unsolicited data then you are correct, all
the unsolicited data for command N must be sent before any
unsolicited data for command N+1. In your example we must see A1,
A2, B1, B2.

However, your second sequence can be valid if there are solicited
data involved. There are at least two valid scenarios for A1, B1,
A2, B2:

First A1 and B1 are unsolicited data and are FirstBurstSize big.
The initiator would then have to see R2T-A2 and R2T-B2 in that
order. Where R2T-A2 means the R2T requesting PDU A2.

Alternatively all the data could be solicited and A1 and B1
satisfy R2T-A1 and R2T-B1 respectively.

What 3.2.4.1 is telling you is that the target can not assume the
PDU following a command PDU is the corresponding unsolicited
data. In fact pretty much any PDU can come next, the only thing
that is guaranteed is that the next unsolicited DATA-OUT PDU will
be for command in question.

- Rod

-----Original Message-----
From: owner-ips@ece.cmu.edu [mailto:owner-ips@ece.cmu.edu]On
Behalf Of
Sanjay Goyal
Sent: Friday, June 06, 2003 12:58 PM
To: ips@ece.cmu.edu
Subject: iscsi: Data PDU in two Sequence multiplexing issue


Hi,
Can somebody please comment,

This is what I am not very clear about, from the specification.
-----------------
10.8 says: Within a connection, outstanding R2Ts MUST be
fulfilled by the initiator in the order in which they were
received.

3.2.4.1 says: When unsolicited data is used, the order of the
unsolicited
data on each connection MUST match the order in which the
commands
on that connection are sent. Command and unsolicited data PDUs
may
be interleaved on a single connection as long as the ordering
requirements of each are maintained (e.g., command N+1 MAY be
sent
before the unsolicited Data-Out PDUs for command N, but the
unsolicited Data-Out PDUs for command N MUST precede the
unsolicited
Data-Out PDUs of command N+1).
------------------


if we have two Data-out sequences A and B of 2 pdus each, to be
sent on the
same connection.
this is how I think they will be sent
PDU 1 of A -> PDU2 of A  -> PDU1 of B -> PDU2 of B
  What I am trying to verify is that the below sequence is valid
or not.
PDU 1 of A  -> PDU 1 of B -> PDU2 of A -> PDU2 of B

Regards
Sanjay Goyal



