Re: [Softwires] ietf-softwire: IPv4 + PSID primary key for lw4over6 binding
Andy Wingo <wingo@igalia.com> Wed, 13 July 2016 15:17 UTC
Return-Path: <wingo@igalia.com>
X-Original-To: softwires@ietfa.amsl.com
Delivered-To: softwires@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 949C012D821 for <softwires@ietfa.amsl.com>; Wed, 13 Jul 2016 08:17:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.121
X-Spam-Level:
X-Spam-Status: No, score=-1.121 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_NEUTRAL=0.779] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=pobox.com
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 2UTGAwMvsL6n for <softwires@ietfa.amsl.com>; Wed, 13 Jul 2016 08:17:55 -0700 (PDT)
Received: from sasl.smtp.pobox.com (pb-sasl2.pobox.com [64.147.108.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B4A7A12D795 for <softwires@ietf.org>; Wed, 13 Jul 2016 08:17:55 -0700 (PDT)
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id B9EAD26064 for <softwires@ietf.org>; Wed, 13 Jul 2016 11:17:54 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=i0M+STU/FGY6Dp8cNaY7V3CRybM=; b=Zs3soa 6cygOER+WPrL3Z5j7JWEiXK89q9YiszfXCsQtUw/pPa4e2TLtUvXh0kAw2U7zfG5 hOE9Lo2wryDdFXO7ItlBeh8QWbR6qp5G0zfoKcUAO9xSgK/pdSkRVUwzABTdecE8 KiezIaFJDZj3gQoyxiiEEK2Lq0FaCkj0IyE/w=
Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id B173E26063 for <softwires@ietf.org>; Wed, 13 Jul 2016 11:17:54 -0400 (EDT)
Received: from rusty (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 0EAD826062 for <softwires@ietf.org>; Wed, 13 Jul 2016 11:17:53 -0400 (EDT)
From: Andy Wingo <wingo@igalia.com>
To: softwires@ietf.org
References: <877fcrcfl4.fsf@igalia.com>
Date: Wed, 13 Jul 2016 17:17:51 +0200
In-Reply-To: <877fcrcfl4.fsf@igalia.com> (Andy Wingo's message of "Tue, 12 Jul 2016 12:31:51 +0200")
Message-ID: <87zipl8t40.fsf@igalia.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Pobox-Relay-ID: F8ABD430-490C-11E6-879D-28A6F1301B6D-02397024!pb-sasl2.pobox.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/softwires/MDToKxWDWyIGPoie81qbasjCC84>
Subject: Re: [Softwires] ietf-softwire: IPv4 + PSID primary key for lw4over6 binding
X-BeenThere: softwires@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: softwires wg discussion list <softwires.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/softwires>, <mailto:softwires-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/softwires/>
List-Post: <mailto:softwires@ietf.org>
List-Help: <mailto:softwires-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/softwires>, <mailto:softwires-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Jul 2016 15:17:57 -0000
Hello list, I reply to my own message since I have been spending time specifying an implementation of this module recently on the AFTR side and I just can't shake the thought that the YANG module organization is wrong. _From the AFTR perspective_, identifying binding table entries by the B4 IPv6 address is the wrong thing. It is not sufficient, it is not necessary, and it is not appropriate. Not sufficient: in the data plane, when encapsulating, you don't know the B4 IPv6 address. You identify the softwire by the IPv4+port. You can use this same strategy to identify the softwire in the decapsulation direction. Not necessary: Because you can identify the softwire by IPv4+PSID, and because the binding table can be quite big (millions of entries), if you can avoid duplicating this table just to allow binding table entries to be looked up by IPv6, that would be good. ietf-softwire seems to require this reverse mapping; when a configuration agent gets a request to set /softwire-config/binding/br/br-instances/0/binding-table/127:10:20:30:40:50:60:128/port-set/psid to 1, you would need a table keyed by IPv6 address. Not appropriate: consider, say we get this "set the PSID of the softwire 127:10:20:30:40:50:60:128 to 1" request, and we actually do manage to locate the binding entry for this softwire. To validate that the change is consistent, we only need to do one thing: check that this IPv4/PSID/psid-offset/psid-length doesn't overlap with any other softwire. We don't need to validate anything about the IPv6 address of the softwire. This again hints that it's the IPv4+PSID that should be the key, and probably that within each IPv4 address, all softwires have the same psid-offset/psid-length. The natural way to identify and manage softwires from an AFTR perspective is by IPv4 and PSID. If the YANG module remains how it is, that's fine -- it just means that we're going to have to serialize all changes through one part of the configuration agent so that we can keep our IPv6->softwire mapping in precise sync with the IPv4,port->softwire map used by the data plane. Andy
- Re: [Softwires] ietf-softwire: IPv4 + PSID primar… Andy Wingo
- Re: [Softwires] ietf-softwire: IPv4 + PSID primar… Andy Wingo
- Re: [Softwires] ietf-softwire: IPv4 + PSID primar… Andy Wingo
- Re: [Softwires] ietf-softwire: IPv4 + PSID primar… mohamed.boucadair
- Re: [Softwires] ietf-softwire: IPv4 + PSID primar… Ian Farrer
- Re: [Softwires] ietf-softwire: IPv4 + PSID primar… Andy Wingo
- Re: [Softwires] ietf-softwire: IPv4 + PSID primar… Andy Wingo
- Re: [Softwires] ietf-softwire: IPv4 + PSID primar… mohamed.boucadair
- Re: [Softwires] ietf-softwire: IPv4 + PSID primar… Linhui Sun
- [Softwires] ietf-softwire: IPv4 + PSID primary ke… Andy Wingo