Re: [Softwires] I-D Action: draft-ietf-softwire-map-12.txt

"Leaf Yeh" <leaf.yeh.sdo@gmail.com> Mon, 09 March 2015 03:24 UTC

Return-Path: <leaf.yeh.sdo@gmail.com>
X-Original-To: softwires@ietfa.amsl.com
Delivered-To: softwires@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A38041A079D for <softwires@ietfa.amsl.com>; Sun, 8 Mar 2015 20:24:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level:
X-Spam-Status: No, score=-1.4 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, J_CHICKENPOX_41=0.6, SPF_PASS=-0.001] autolearn=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 NRdh3dSaFveC for <softwires@ietfa.amsl.com>; Sun, 8 Mar 2015 20:24:41 -0700 (PDT)
Received: from mail-ig0-x22c.google.com (mail-ig0-x22c.google.com [IPv6:2607:f8b0:4001:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 441B31A044D for <softwires@ietf.org>; Sun, 8 Mar 2015 20:24:41 -0700 (PDT)
Received: by igdh15 with SMTP id h15so17311044igd.4 for <softwires@ietf.org>; Sun, 08 Mar 2015 20:24:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-type:content-transfer-encoding:thread-index :content-language; bh=LX54xNjm5l6gp3ClDmVE2EHS2ga1giwVksc28xV1JqY=; b=BKgK+Ng/wv5kDOBk54NZTx+7ltKvYe/8Dvvuf1OTcT/4+yDd4RPtiqxYUH+GnadYO/ Xi6zs0u4P1pki/gAKmcFTpPkY0DrbFjR7EhQlgLUJLtLr81Y9i6o9FGCLv52a4lJO/8W 3bveQciCB9Ijztwgb8PZQWgjkYHsJN8ZFXcHZR0Dm7wmujH+myYJ87WR04mbLlGKYGlS CQkkecBahCr7JMy1YKSRGInjfE78qjv+g9lYvghv+MDjlHoJFTdn1nUuVi0tYXZ8ksrf DcUYEveR31WKBwSxZsUOVxHrTXDyUL44vZOTH+KbxYywV/bioM5EHxrctmiXIFHyTsf/ AcUw==
X-Received: by 10.50.4.97 with SMTP id j1mr8443194igj.46.1425871480596; Sun, 08 Mar 2015 20:24:40 -0700 (PDT)
Received: from PC ([218.241.109.163]) by mx.google.com with ESMTPSA id m5sm5490683ige.5.2015.03.08.20.24.38 (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Mar 2015 20:24:40 -0700 (PDT)
Message-ID: <54fd1278.6514320a.3516.ffffe453@mx.google.com>
X-Google-Original-Message-ID: <01be01d05a18$c35cacd0$4a160670$@yeh.sdo@gmail.com>
From: Leaf Yeh <leaf.yeh.sdo@gmail.com>
To: 'Ole Troan' <otroan@employees.org>
References: <20141124073912.16300.97956.idtracker@ietfa.amsl.com> <54e056b8.0d886b0a.535d.ffffcb06@mx.google.com> <E56786E3-FE1C-4961-A0A1-408B5BAF0854@employees.org> <54f96531.013c320a.2d94.1638@mx.google.com> <6543D1BD-B62A-4502-BBA2-9E7242CC1E4E@employees.org>
In-Reply-To: <6543D1BD-B62A-4502-BBA2-9E7242CC1E4E@employees.org>
Date: Mon, 09 Mar 2015 11:25:56 +0800
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AdBYR+HrUyyVaQXtQBGk1aEN7mCehwBzvieA
Content-Language: zh-cn
Archived-At: <http://mailarchive.ietf.org/arch/msg/softwires/bh55u7F8WOWYVpRXui69DnYuwZw>
Cc: softwires@ietf.org
Subject: Re: [Softwires] I-D Action: draft-ietf-softwire-map-12.txt
X-BeenThere: softwires@ietf.org
X-Mailman-Version: 2.1.15
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, 09 Mar 2015 03:24:42 -0000

Ole - that’s what n/a, null, 0, 0 is meant to indicate.

Null !=0, right?


Ole - again, we wanted to be explicit with regards to the PSID and point out how it contrasts with the other examples.

But the same words on the 'IPv4 address and PSID' looks a little vague. The difference between example 4 & 5 is only about the PSID part.


Ole - probably, but I don’t want to invent any new algorithm at this point. ;-)

I haven't propose any new algorithm other than the GMA defined in Appendix. 
I just hope we could drop more words on how to use it better.


Best Regards,
Leaf



-----Original Message-----
From: Ole Troan [mailto:otroan@employees.org] 
Sent: Saturday, March 07, 2015 3:58 AM
To: Leaf Yeh
Cc: Suresh Krishnan; Ted Lemon; softwires@ietf.org
Subject: Re: [Softwires] I-D Action: draft-ietf-softwire-map-12.txt

Leaf,

> Leaf - In sec. 11
>> “     They cannot
>>      exist with MAP because each BRs checks that the IPv6 source
>>      address of a received IPv6 packet is a CE address based on
>>      Forwarding Mapping Rule. ”
> Leaf - but my point was 'each BR (note that we don't need 's' here.) checks that whether the IPv6 source address of a received IPv6 packet is a CE address based on Basic Mapping Rule, not Forwarding Mapping Rule.', right?
> 
> I withdraw the above question, cause I suppose we don't have BMR (which is for CE) at BR after more times reading of sec.8.1 in the draft .
> 
> 
> But I might get more nits in the Appendix.
> 
> #8. In Example 4 of Appendix A, page 26,
> "      IPv6 address of MAP CE:  2001:db8:0012:3400:0000:c000:0201:0000
> " (the last line)
> 
> I suppose it should be “IPv6 address of MAP CE:  2001:db8:0012:3400:0000:c000:0212:0000”

sorry, I can’t see what the difference between the two?

> #9. In Example 4 of Appendix A, page 26,
> "     …
>    EA bits offset:       0
>      …
>      PSID start:           0
>      … ”
> I don’t think these offset is 0, cause it means the 1st bit of IPv6 address/prefix. I prefer to replace the above ‘0’ to be ‘n/a’.

right, there isn’t a PSID in example 4. that’s what n/a, null, 0, 0 is meant to indicate. we could have dropped including anything about the PSID in the example, but we did to contrast it with the address sharing case.

> #10. In Example 5 of Appendix A, page 27,
> "     Note that the IPv4 address and PSID is not derived from the IPv6
>      prefix assigned to the CE, but provisioned separately using
>      e.g., DHCP. "
> 
> I guess we don't need this special note here, cause we use DHCPv6 options to provision the Rules, including OPTION_S46_RULE & OPTION_S46_PORTPARAMS as the same manner as example 1 & 4. OTOH, IPv4 address can be directly read from the Rules, and don't need the further calculation as the same as Example 4, but we need OPTION_S46_PORTPARAMS for PSID.

again, we wanted to be explicit with regards to the PSID and point out how it contrasts with the other examples.

> #11. In Example 5 of Appendix A, page 27,
> " Basic Mapping Rule:   {2001:db8:0012:3400::/56 (Rule IPv6 prefix),
>                             192.0.2.18/32 (Rule IPv4 prefix),
>                             0 (Rule EA-bits length)}
>      PSID length:          8. (From DHCP. Sharing ratio of 256)
>      PSID offset:          6  (Default)
>      PSID       :          0x34 (From DHCP.)"
> 
> I guess we don’t the above words of 'from DHCP', cause all the parameters in BMR are got from DHCPv6 options.

ref, previous mail.

> 
> 
> #12. In Example 5 of Appendix A, page 27,
> "      EA bits offset:        0"
> 
> Again, I prefer the above to be " EA bits offset:        n/a"
> 
> 
> #13.   In Appendix B,
> "  o  It SHOULD be possible to exclude subsets of the complete port
>      numbering space from assignment.  Most operators would exclude the
>      system ports (0-1023).  A conservative operator might exclude all
>      but the transient ports (49152-65535).
> ...
>   o  i ranges from ceil(N / (R * M)) to trunc(65536/(R * M)) - 1, where
>      ceil is the operation of rounding up to the nearest integer and N
>      is the number of ports (e.g., 1024) excluded from the lower end of
>      the range."
> 
> I guess we could use another parameter 'L' (which could be divisible by R*M) instead of 65536 to exclude the upper end of port-range, while keep to meet those requirement mentioned in Appendix B. Right?

probably, but I don’t want to invent any new algorithm at this point. ;-)

> #14. Fig.9 in Appendix B looks the same as Fig. 2 in Sec. 5.1, could we replace 'A' in Fig.2 to be 'i', and replace 'M' in Fig.2 to be 'j’?

I don’t think you can do that. Xing can you confirm?
looking through Appendix B it would seem that would require quite a lot of changes to how M, R, i and j are used.
the purpose of Appendix B was to give a different freestanding angle to the port mapping algorithm.

cheers,
Ole