Better HN
topnewbestaskshowjobs
Log inSign up

plonka

1 karma · joined Feb 22, 2016 (10y ago) · 2 submissions

http://www.cs.wisc.edu/~plonka/
Submissions

comment 10y ago · link · parent

The proposal doesn't mention it, but part of the existing IPv6 address syntax is that, for transition mechanisms, it offers the option to embed a dotted format IPv4 address syntax in the end of an IPv6 address: https://tools.ietf.org/html/rfc4291#section-2.2

Examples: 2001:DB8::13.1.68.3 ::FFFF:129.144.52.38

In the suggested format, we'd lose this convenient transition feature and are left with: 20010DB8..d014403 ..FFFF81903426

This is less clear than the existing method with the colons and dots.

If one decides, in this proposal, to support trailing IPv4 addresses as is currently supported, e.g., for IPv6-mapped-IPv4 addresses, some pretty ugly things happen: 20010DB8..13.1.68.3 ..FFFF129.144.52.38

Is .13.1.68.3 a typo of an IPv4 address with missing whitespace or is it an IPv6 address with an IPv4 address embedded at the end?

And what about parsing "FFFF129"? Are we really going to change base from 16 to 10 between the "F" and the "1"?

Or are we going to introduce another separator, e.g., a leading "." on IPv4 addresses?

..FFFF.129.144.52.38

Or are we going to require that the ".." be the separator there?

0000:0000:0000:0000:0000:FFFF..129.144.52.38

Or are we going to use the existing format for IPv6 addresses that embed IPv4 addresses, and another format only otherwise (Hint, of course one must support the existing 20 year old format.)

To add another historic complication for some implementations: https://en.wikipedia.org/wiki/Dot-decimal_notation#IPv4_addr...

a leading zero on an IPv4 address octet meant that the byte is specified in octal.

One can easily argue that the best solution is to use a different special character, e.g., ":", for IPv6 rather than the IPv4 "." because leading zeroes had a special meaning in IPv4 syntax.

All in all, it looks to me like the early IPv6 community thought about the address syntax... a lot.

comment 10y ago · link · parent

The proposal says, "A nice de-facto standard would be to print the dot at the route netmask boundary". This will not work consistently because one does not (typically) know the netmask of a remote host, so this will result in IPv6 addresses being written differently locally and remotely (e.g., the address of a local DHCPv6 host in a /112 written as 20010DB80000000000000000..1 and remotely, perhaps, as 20010DB800000000..1 if SLAAC is incorrectly assumed. Thus they often will not match, complicating, for instance, help desk calls correlating users client IP address to server-side logs. One solution is to always do [zero] compression [only] at the longest run of zeroes, which is what the existing IPv6 address syntax does, i.e., consistently canonical behavior. Aside: this work is related to the reverse-engineering of IPv6 netmask remotely: http://conferences2.sigcomm.org/imc/2015/papers/p509.pdf