[PCN] RE: draft-babiarz-pcn-3sm-00 pseudocode nit

"Jozef Babiarz" <babiarz@nortel.com> Tue, 04 September 2007 16:17 UTC

Return-path: <pcn-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1ISb5h-0005Pi-Ms; Tue, 04 Sep 2007 12:17:25 -0400
Received: from pcn by megatron.ietf.org with local (Exim 4.43) id 1ISb5f-0005PO-LW for pcn-confirm+ok@megatron.ietf.org; Tue, 04 Sep 2007 12:17:23 -0400
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1ISb5f-0005PG-AS for pcn@ietf.org; Tue, 04 Sep 2007 12:17:23 -0400
Received: from zrtps0kn.nortel.com ([47.140.192.55]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1ISb5e-0005hY-Rt for pcn@ietf.org; Tue, 04 Sep 2007 12:17:23 -0400
Received: from zcarhxm1.corp.nortel.com (zcarhxm1.corp.nortel.com [47.129.230.97]) by zrtps0kn.nortel.com (Switch-2.2.6/Switch-2.2.0) with ESMTP id l84GHJU09605; Tue, 4 Sep 2007 16:17:20 GMT
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Tue, 04 Sep 2007 12:17:18 -0400
Message-ID: <9671A92C3C8B5744BC97F855F7CB646511F3865C@zcarhxm1.corp.nortel.com>
In-Reply-To: <5.2.1.1.2.20070830085617.03efed38@pop3.jungle.bt.co.uk>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: draft-babiarz-pcn-3sm-00 pseudocode nit
Thread-Index: Acfq3WXzubgNwhsSRIyfUUjAhOAWeAEK9YWQ
References: <5.2.1.1.2.20070830085617.03efed38@pop3.jungle.bt.co.uk>
From: Jozef Babiarz <babiarz@nortel.com>
To: Bob Briscoe <rbriscoe@jungle.bt.co.uk>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 3e15cc4fdc61d7bce84032741d11c8e5
Cc: pcn@ietf.org
Subject: [PCN] RE: draft-babiarz-pcn-3sm-00 pseudocode nit
X-BeenThere: pcn@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: PCN WG list <pcn.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/pcn>, <mailto:pcn-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/pcn>
List-Post: <mailto:pcn@ietf.org>
List-Help: <mailto:pcn-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/pcn>, <mailto:pcn-request@ietf.org?subject=subscribe>
Errors-To: pcn-bounces@ietf.org

Bob, 
We selected this approach to reduce the number of instructions.
Our original rational was, since the pseudo-code in the "if" statement
does not subtract packet.size there is no need to set TB.fill = 0. We
believe there would be no meaningful difference between leaving the TB
at TB.fill versus empty since the TB is less than the size of the packet
from being empty and we are doing threshold marking. We also assumed
that TB.threshold is several times larger than the size of the largest
packet. 

Let us know if you disagree and we can add TB.fill = 0; line to the
example pseudo-code.
 
Regards, Joe
email:babiarz@nortel.com
Telephone:613-763-6098
-----Original Message-----
From: Bob Briscoe [mailto:rbriscoe@jungle.bt.co.uk] 
Sent: August 30, 2007 4:11 AM
To: Babiarz, Jozef (CAR:0S03)
Cc: pcn@ietf.org
Subject: draft-babiarz-pcn-3sm-00 pseudocode nit

Joe,

In the admission marking pseudo-code in draft-babiarz-pcn-3sm-00
S.2.2.2, 
if a packet arrives that is larger than the current depth of the token 
bucket, you correctly mark the packet with admission stop marking, but I

think you've omitted to empty the bucket to zero as well.

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
      if (TB.fill < packet.size)
          TB.fill = 0;           // BB: Suggested amendment
          packet.mark = AS;
      else
          TB.fill = TB.fill - packet.size;
          if (TB.fill < TB.threshold)
              packet.mark = AS;
          endif
      endif
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Bob


________________________________________________________________________
____
Bob Briscoe, <bob.briscoe@bt.com>      Networks Research Centre, BT
Research
B54/77 Adastral Park,Martlesham Heath,Ipswich,IP5 3RE,UK.    +44 1473
645196 




_______________________________________________
PCN mailing list
PCN@ietf.org
https://www1.ietf.org/mailman/listinfo/pcn