Re: [Forces-protocol] issue 1: packet encoding

Alex Audu <alex.audu@alcatel.com> Mon, 08 March 2004 17:42 UTC

Received: from optimus.ietf.org (optimus.ietf.org [132.151.1.19]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA15500 for <forces-protocol-archive@odin.ietf.org>; Mon, 8 Mar 2004 12:42:19 -0500 (EST)
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1B0OlF-0001Im-C1 for forces-protocol-archive@odin.ietf.org; Mon, 08 Mar 2004 12:41:53 -0500
Received: (from exim@localhost) by www1.ietf.org (8.12.8/8.12.8/Submit) id i28HfrEr004993 for forces-protocol-archive@odin.ietf.org; Mon, 8 Mar 2004 12:41:53 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1B0OlE-0001IS-Jh for forces-protocol-web-archive@optimus.ietf.org; Mon, 08 Mar 2004 12:41:52 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA15408 for <forces-protocol-web-archive@ietf.org>; Mon, 8 Mar 2004 12:41:48 -0500 (EST)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 1B0OlD-0006O7-00 for forces-protocol-web-archive@ietf.org; Mon, 08 Mar 2004 12:41:51 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12) id 1B0OiH-0005fB-00 for forces-protocol-web-archive@ietf.org; Mon, 08 Mar 2004 12:38:50 -0500
Received: from [65.246.255.50] (helo=mx2.foretec.com) by ietf-mx with esmtp (Exim 4.12) id 1B0OhW-0005Vj-01 for forces-protocol-web-archive@ietf.org; Mon, 08 Mar 2004 12:38:02 -0500
Received: from optimus.ietf.org ([132.151.1.19]) by mx2.foretec.com with esmtp (Exim 4.24) id 1B0Oed-0004rL-T3 for forces-protocol-web-archive@ietf.org; Mon, 08 Mar 2004 12:35:03 -0500
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1B0Oec-0000t9-LA; Mon, 08 Mar 2004 12:35:02 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 1B0OeH-0000rr-Jn for forces-protocol@optimus.ietf.org; Mon, 08 Mar 2004 12:34:41 -0500
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA15219 for <forces-protocol@ietf.org>; Mon, 8 Mar 2004 12:34:37 -0500 (EST)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 1B0OeF-00056H-00 for forces-protocol@ietf.org; Mon, 08 Mar 2004 12:34:39 -0500
Received: from exim by ietf-mx with spam-scanned (Exim 4.12) id 1B0OdJ-0004xr-00 for forces-protocol@ietf.org; Mon, 08 Mar 2004 12:33:42 -0500
Received: from auds952.usa.alcatel.com ([143.209.238.7]) by ietf-mx with esmtp (Exim 4.12) id 1B0Oca-0004gx-00 for forces-protocol@ietf.org; Mon, 08 Mar 2004 12:32:56 -0500
Received: from alcatel.com (localhost [127.0.0.1]) by auds952.usa.alcatel.com (8.12.10/8.12.10) with ESMTP id i28HWPTN005638; Mon, 8 Mar 2004 11:32:25 -0600 (CST)
Message-ID: <404CAE29.9050608@alcatel.com>
From: Alex Audu <alex.audu@alcatel.com>
Reply-To: alex.audu@alcatel.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "Khosravi, Hormuzd M" <hormuzd.m.khosravi@intel.com>
CC: hadi@znyx.com, forces-protocol@ietf.org
Subject: Re: [Forces-protocol] issue 1: packet encoding
References: <468F3FDA28AA87429AD807992E22D07E054213@orsmsx408.jf.intel.com>
In-Reply-To: <468F3FDA28AA87429AD807992E22D07E054213@orsmsx408.jf.intel.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
Sender: forces-protocol-admin@ietf.org
Errors-To: forces-protocol-admin@ietf.org
X-BeenThere: forces-protocol@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/forces-protocol>, <mailto:forces-protocol-request@ietf.org?subject=unsubscribe>
List-Id: forces-protocol <forces-protocol.ietf.org>
List-Post: <mailto:forces-protocol@ietf.org>
List-Help: <mailto:forces-protocol-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/forces-protocol>, <mailto:forces-protocol-request@ietf.org?subject=subscribe>
List-Archive: <https://www1.ietf.org/mail-archive/working-groups/forces-protocol/>
Date: Mon, 08 Mar 2004 11:32:25 -0600
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on ietf-mx.ietf.org
X-Spam-Status: No, hits=0.2 required=5.0 tests=AWL autolearn=no version=2.60
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

I don't know what the flags could be used for. The TypeID could be used for
siganling the type of data encoding explicitly,  (i.e. XML, ASN.1 etc). 

My preference will be the following.

     0                   1                   2                   3
     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
                     0               1               2             3
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |vers   |eType  | prio| reservd |  msgClass     |   msgType     |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |                       message length                          |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |          Source xID           | Destination xID               |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |                        Sequence Number                        |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    
    

1) version # indicates the version of the protocol.
2) the type of encoding comes next.
3) the priority of the message comes next.
4) the command has been divided into message class and type to ease 
management and handling.
5) the source and destination are now both 16 bits each. This allows up 
to 64K FEs. That is cool!
6) the length is now 32 bits long. This will accommodate flow 
measurement messages which
    tend to be huge,  from FE to CE.  It will also accommodate large 
table dumps from CE to
    FE.
7) then comes the sequence number.

Any comments?

Regards,
Alex.

>Jamal,
>
>Before I give my comments, I would like to say that I appreciate the
>fact that you did not copy/paste the netlink header from your draft over
>here! That is a very positive sign to me, lets try to stick to the best
>technical solution rather than pushing our own protocol implementations.
>That's the best way to make progress on this merger!!
> 
>Here are my views on this issue, particularly the common header:
>
>Command: Agree this is needed. We think 8-12 bits will be more than
>sufficient for this depending on whether it is subdivided. We have
>sub-divided this field into Class/type...this is an OO approach, seemed
>pretty neat. However, I am personally fine with having a single field
>for this, no problem with that.
>
>Length: Agree needed and agree with size.
>
>xIDs: Agree this is needed. More detailed comments on length, semantics
>in my previous email.
>
>Sequence No: Agree needed and agree with size.
>
>Flags/Priority: We need 2-3 bits for priority in every message. I don't
>think we need any other flags in all messages.
>
>Typeid: This is one field I don't think is needed in all messages. I am
>not sure why this is needed at all cause, we will be using the Model and
>LFB IDs to address processing functional blocks on the FEs.
>
>Missing field: Version (2-4 bits): This is present in all protocols, and
>is generally included in most IETF protocols. Its usually the 1st field.
>
>General comment: Lets try to be stingy on the size of the header and its
>fields since this will be included in all ForCES messages.
>
>Jamal's text.......
>The Forces Message Header: 
>
>     0                   1                   2                   3
>     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>                     0               1               2             3
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |             Command         |               Length            |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |                          Source xID                           |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |                        Destination xID                        |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |                        Sequence Number                        |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |             flags           |             typeid              |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
>
>XML encoding:
>XML encoding may be useful in capabilities definition
>(i.e slow path) but not in the configuration of data path tables.
>This is because of its nature to require higher bandwith and
>CPU computational needs.
>
>HK Comment: I think we should stick with a single encoding type, namely
>TLV. This is also what some of the model team folks have mentioned
>before for the protocol. Is there a reason why capabilities cannot be
>expressed using TLVs?
>
>
>Thanks
>Hormuzd
>
>-----Original Message-----
>From: forces-protocol-admin@ietf.org
>[mailto:forces-protocol-admin@ietf.org] On Behalf Of Jamal Hadi Salim
>Sent: Friday, March 05, 2004 2:00 PM
>To: forces-protocol@ietf.org
>Subject: [Forces-protocol] issue 1: packet encoding
>
>
>Attached is text for stimulating discussion on issue 1.
>
>cheers,
>jamal
>
>
>_______________________________________________
>Forces-protocol mailing list
>Forces-protocol@ietf.org
>https://www1.ietf.org/mailman/listinfo/forces-protocol
>  
>


_______________________________________________
Forces-protocol mailing list
Forces-protocol@ietf.org
https://www1.ietf.org/mailman/listinfo/forces-protocol