Re: [6lo] draft-ietf-6lo-minimal-fragment-00: When to remove VRB entries?

Yasuyuki Tanaka <yasuyuki.tanaka@inria.fr> Thu, 07 February 2019 10:58 UTC

Return-Path: <yasuyuki.tanaka@inria.fr>
X-Original-To: 6lo@ietfa.amsl.com
Delivered-To: 6lo@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8CF1C13110B for <6lo@ietfa.amsl.com>; Thu, 7 Feb 2019 02:58:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level:
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vTGhcdkYYJh8 for <6lo@ietfa.amsl.com>; Thu, 7 Feb 2019 02:58:06 -0800 (PST)
Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6A1DE13107E for <6lo@ietf.org>; Thu, 7 Feb 2019 02:58:05 -0800 (PST)
X-IronPort-AV: E=Sophos;i="5.58,343,1544482800"; d="scan'208";a="295390708"
Received: from wifi-pro-83-158.paris.inria.fr (HELO [128.93.83.158]) ([128.93.83.158]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA; 07 Feb 2019 11:58:03 +0100
Cc: 6lo@ietf.org, yasuyuki.tanaka@inria.fr
To: Martine Lenders <m.lenders@fu-berlin.de>
References: <CALHmdRwqF972Y4DG8x9QW_fg+AkwnQtzUVSgyE77FBYYO0SLpQ@mail.gmail.com>
From: Yasuyuki Tanaka <yasuyuki.tanaka@inria.fr>
Message-ID: <cc58e1c1-9084-e1dd-91ab-db485a242767@inria.fr>
Date: Thu, 07 Feb 2019 11:58:03 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
MIME-Version: 1.0
In-Reply-To: <CALHmdRwqF972Y4DG8x9QW_fg+AkwnQtzUVSgyE77FBYYO0SLpQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/6lo/bTm2REo4PpVcMFH04mF_SlPvS_M>
Subject: Re: [6lo] draft-ietf-6lo-minimal-fragment-00: When to remove VRB entries?
X-BeenThere: 6lo@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Mailing list for the 6lo WG for Internet Area issues in IPv6 over constrained node networks." <6lo.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6lo>, <mailto:6lo-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/6lo/>
List-Post: <mailto:6lo@ietf.org>
List-Help: <mailto:6lo-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6lo>, <mailto:6lo-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Feb 2019 10:58:09 -0000

Hi Martine,

On 2/6/2019 3:49 PM, Martine Lenders wrote:
> For the success case I could of course just count the bytes of the 
> fragments and remove the VRB entry once I reach the datagram size, 
> however this does not account for possibly received duplicates (unless I 
> keep track of at least the intervals of all received fragments which of 
> course costs more memory).

If you receive a fragment having a fragment_tag which you've already 
seen and the fragment_tag is not associated with any entry in the VRB 
table, you can consider it as a duplicate or late-arriving fragment. 
Then, you can drop the received fragment safely.

Best,
Yatch