Re: [Softwires] The port mapping issue

Dan Wing <dwing@cisco.com> Mon, 01 April 2013 23:56 UTC

Return-Path: <dwing@cisco.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 EF8EC21E8119 for <softwires@ietfa.amsl.com>; Mon, 1 Apr 2013 16:56:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -110.599
X-Spam-Level:
X-Spam-Status: No, score=-110.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iOhNC-XR0O4D for <softwires@ietfa.amsl.com>; Mon, 1 Apr 2013 16:56:09 -0700 (PDT)
Received: from mtv-iport-2.cisco.com (mtv-iport-2.cisco.com [173.36.130.13]) by ietfa.amsl.com (Postfix) with ESMTP id 3E01521E8108 for <softwires@ietf.org>; Mon, 1 Apr 2013 16:56:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3424; q=dns/txt; s=iport; t=1364860569; x=1366070169; h=mime-version:subject:from:in-reply-to:date:cc: content-transfer-encoding:message-id:references:to; bh=YXWJBi5+xij7qHns5t7kl/65hfDvqD0YDQrRMeX7/WE=; b=GEzIoWuM533Lv0SXfdxqKreGvWTGhPY5zOj6QV47wsDwwz4/e+8Oh3tg zrjEJOOOSviK6y/V2v8imebubO0aEt74g/LrtrUoM9SSu4wv5Wx+gk7DG GeeBwnJwc1cxAXHNFNc3uTpjrCH5ThijHsKqCBiOBHNqy6ONl9aGCe94S w=;
X-IronPort-AV: E=Sophos;i="4.87,390,1363132800"; d="scan'208";a="77323195"
Received: from mtv-core-4.cisco.com ([171.68.58.9]) by mtv-iport-2.cisco.com with ESMTP; 01 Apr 2013 23:56:09 +0000
Received: from sjc-vpn7-1852.cisco.com (sjc-vpn7-1852.cisco.com [10.21.151.60]) by mtv-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id r31Nu8Jr021685; Mon, 1 Apr 2013 23:56:08 GMT
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
From: Dan Wing <dwing@cisco.com>
In-Reply-To: <8B19A21F-21F0-4A97-87E4-22D3E183AE77@cisco.com>
Date: Mon, 01 Apr 2013 16:56:08 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <FB82A3E5-45A1-4E85-8FD5-9C300C6AC5AB@cisco.com>
References: <51512618.8070704@ericsson.com> <51531757.8000707@gmail.com> <5D7E58A0-C125-49BB-8609-5F650E2DCB01@cisco.com> <8B19A21F-21F0-4A97-87E4-22D3E183AE77@cisco.com>
To: Ole Troan <otroan@cisco.com>
X-Mailer: Apple Mail (2.1503)
Cc: "softwires@ietf.org" <softwires@ietf.org>
Subject: Re: [Softwires] The port mapping issue
X-BeenThere: softwires@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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: Mon, 01 Apr 2013 23:56:10 -0000

On Apr 1, 2013, at 3:17 PM, Ole Troan (otroan) <otroan@cisco.com> wrote:

> 
>>> The meeting minutes record a disagreement over what port mapping algorithm to use. This affects both MAP-E and LW 4over6. As I understand it:
>>> 
>>> - either of these two technologies will work with either contiguous ports or ports scattered according to the GMA algorithm
>>> 
>>> - the real objection to GMA comes from Alain Durand, who wants to set up simple min-port, max-port filters on his network equipment.
>>> 
>>> 
>>> We all agree that port scattering offers negligible security advantage.
>> 
>> Port scattering, using GMA, provides tiny security advantage.  An attacker can determine the Generalized Modulus Algorithm, by causing a victim to open a bunch of TCP connections.  One way an attacker can cause a bunch of TCP connections to be opened is by sending an email with a bunch of <img src> tags to servers where the attacker can observe the TCP source ports for the connections.  Another way is to do the same with a web page.  GMA is a good amount of engineering and confusion for little gain, but the *appearance* of a gain because to a person the port numbers will appear random.  On other words, a false sense of security.  Port numbers are being used in courts of law and explaining GMA to the lay person will be complex.  I believe it is an unnecessary complexity.
> 
> Can you please read the latest draft?
> What exactly is complex and confusing?

Non-contiguous ports are more confusing than contiguous ports, especially to people that don't understand binary math.  IP stacks used to allow non-contiguous 1's in subnet masks which were cute, but caused confusion with the humans.  (and some stacks couldn't cope well, but that is another topic.)  I worry about the humans being confused with the binary math.


> GMA aka "port prefix" was not designed for scattering ports, that's a side effect. The requirement leading to that effect is, independence of end user ipv6 prefix. I.e avoid having to reserve a specific ipv6 prefix from assignment. 

I agree the requirement is something we need.

Appendix B of draft-ietf-softwire-map-05.txt (March 18, I presume 'the latest') mentions the port scattering as an extreme case, which the algorithm supports.  Can we remove that support?

-d


> Ole
> 
> 
>> 
>> -d
>> 
>> 
>>> 
>>> The reason that I heard given for preferring GMA for MAP-E is that it eliminates a restriction on the End-User Ipv6 address because the PSID is free to range from 0 upwards rather than from some higher number upwards. I don't follow this argument for two reasons:
>>> 
>>> - you now have a restriction that the offset field A must range from 1 upwards
>>> 
>>> - the PSID field has an upper limit 2^k-1 imposed by the sharing ratio, imposing a further restriction on the End-User IPv6 address value.
>>> 
>>> Could someone spell out more clearly why the GMA was seen as necessary for MAP-E?
>>> _______________________________________________
>>> Softwires mailing list
>>> Softwires@ietf.org
>>> https://www.ietf.org/mailman/listinfo/softwires
>> 
>> _______________________________________________
>> Softwires mailing list
>> Softwires@ietf.org
>> https://www.ietf.org/mailman/listinfo/softwires