Author Topic: IoTv6?  (Read 24485 times)

0 Members and 1 Guest are viewing this topic.

Offline madires

  • Super Contributor
  • ***
  • Posts: 9296
  • Country: de
  • A qualified hobbyist ;)
Re: IoTv6?
« Reply #50 on: June 11, 2017, 10:53:47 am »
Read what Coppice wrote. It all depends on which parts of the network get upgraded and how their administration and traffic recording systems are setup. As I wrote before: it only makes sense to upgrade to IPv6 if it at least doesn't cost extra money.

The lack of public IPv4 address space forces everyone to "upgrade" to IPv6. I don't think the next Google or Facebook will be able to run with just a /24 IPv4 (that's what you can get from ARIN) >:D
 

Offline jwm_

  • Frequent Contributor
  • **
  • Posts: 319
  • Country: us
    • Not A Number
Re: IoTv6?
« Reply #51 on: June 11, 2017, 11:05:01 am »
They would be fine with a 64-bit scheme. 18+ pentillion addresses is plenty, and the IP address will be a bit easier to remember and enter correctly. Even if you were to assign a block of 65536 addresses for each person or location (which is plenty), you get 281+ trillion addresses available. Plenty of addresses for the foreseeable future. There is absolutely no need to give each person an entire 64-bit space. If someone wants to have a huge farm of over 65536 bitcoin miners, that's for them to sort out.

The point of the /64 is not for more address space (that is what the first 64 bits of the address gives) the last 64 bits is to allow automatic configuration, it obviates the need for ARP, RARP, BOOTP, DHCP (for simple setups) etc. The last 64 bits are your EUI-64 (or your MAC address). So everyone inherently has a unique ipv6 address without any need for central coordination or parceling them out via single points of failure. It greatly simplifies IP implementations, especially for ad-hoc networks. basically every segment of a LAN is automatically a valid ipv6 network where everyone has a unique address with zero setup or need to build up caches of ARP tables.

You can even do cool things like make the bottom 64 bits a strengthened hash of your public key for creating IPSec session keys, so you get automatic authenticated encryption without centralized coordination or trusted third parties. The address you connect to is its own authenticator.

Lots of fun stuff can be done with the big IPv6 address space, and an embedded implementations can be a fraction of the size of an ipv4 one.

Offline madires

  • Super Contributor
  • ***
  • Posts: 9296
  • Country: de
  • A qualified hobbyist ;)
Re: IoTv6?
« Reply #52 on: June 11, 2017, 11:17:29 am »
I am not sure IPv4 will go away, because it can be useful in private LANs (eg. CCTV) that don't need such a huge address space. An IPv4 packet header is about 1/4 of the size of an IPv6 header, making it efficient for sending many packets of small quantities of data, and with lower latency.

The IPv4 header is 20 bytes, the IPv6 header is 40 bytes. And don't worry too much about the effiecieny of small packets. They are inefficient anyway (ratio between header and payload).
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 9296
  • Country: de
  • A qualified hobbyist ;)
Re: IoTv6?
« Reply #53 on: June 11, 2017, 11:30:21 am »
It greatly simplifies IP implementations, especially for ad-hoc networks. basically every segment of a LAN is automatically a valid ipv6 network where everyone has a unique address with zero setup or need to build up caches of ARP tables.

You still need MACs for your LAN. ARP was replaced by ND in IPv6. So you have a neigbhor cache instead of an ARP cache.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 9296
  • Country: de
  • A qualified hobbyist ;)
Re: IoTv6?
« Reply #54 on: June 11, 2017, 11:36:26 am »
You can even do cool things like make the bottom 64 bits a strengthened hash of your public key for creating IPSec session keys, so you get automatic authenticated encryption without centralized coordination or trusted third parties. The address you connect to is its own authenticator.

How can a known EUI-64 interface address give me a benefit for security?
 

Offline technixTopic starter

  • Super Contributor
  • ***
  • Posts: 3508
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: IoTv6?
« Reply #55 on: June 11, 2017, 12:34:14 pm »
You can even do cool things like make the bottom 64 bits a strengthened hash of your public key for creating IPSec session keys, so you get automatic authenticated encryption without centralized coordination or trusted third parties. The address you connect to is its own authenticator.

How can a known EUI-64 interface address give me a benefit for security?
Try guess my 64-bit prefix. Oh and with one ND broadcast packet all nodes will drop the original prefix and move entirely to a new one. Cat and mouse much?
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 9296
  • Country: de
  • A qualified hobbyist ;)
Re: IoTv6?
« Reply #56 on: June 11, 2017, 12:48:55 pm »
We're talking about the interface ID, not the prefix. Anyway, the interface ID stays the same with SLAAC. You can change your prefix as often as you like, the interface ID will identify you. Or you could enable PE. BTW. IPv6 has no broadcasts, it uses multicast to address multiple systems at once.
 

Offline X

  • Regular Contributor
  • *
  • Posts: 179
  • Country: 00
    • This is where you end up when you die...
Re: IoTv6?
« Reply #57 on: June 11, 2017, 01:25:48 pm »
The point of the /64 is not for more address space (that is what the first 64 bits of the address gives) the last 64 bits is to allow automatic configuration, it obviates the need for ARP, RARP, BOOTP, DHCP (for simple setups) etc.
Simple setups can use static IPs even with IPv4, without any of this.

The last 64 bits are your EUI-64 (or your MAC address). So everyone inherently has a unique ipv6 address without any need for central coordination or parceling them out via single points of failure. It greatly simplifies IP implementations, especially for ad-hoc networks. basically every segment of a LAN is automatically a valid ipv6 network where everyone has a unique address with zero setup or need to build up caches of ARP tables.
At the expense of privacy, now that your MAC address is also exposed. MAC addresses tend to stay the same for a particular device and also survive reboots.

You can even do cool things like make the bottom 64 bits a strengthened hash of your public key for creating IPSec session keys, so you get automatic authenticated encryption without centralized coordination or trusted third parties. The address you connect to is its own authenticator.
How can you do that when you have the bottom 64 bits occupied with a MAC address? XOR the key with the MAC?

If somehow the MAC address can be encrypted with a 64-bit block cipher (eg. Blowfish) or XORed with a value known only to devices within the network, then you get to eliminate the "ARP" table and have some improvement in privacy, as you can change the key.

Lots of fun stuff can be done with the big IPv6 address space, and an embedded implementations can be a fraction of the size of an ipv4 one.
Provided you use an IPv6-only stack. ;)

I am not sure IPv4 will go away, because it can be useful in private LANs (eg. CCTV) that don't need such a huge address space. An IPv4 packet header is about 1/4 of the size of an IPv6 header, making it efficient for sending many packets of small quantities of data, and with lower latency.

The IPv4 header is 20 bytes, the IPv6 header is 40 bytes. And don't worry too much about the effiecieny of small packets. They are inefficient anyway (ratio between header and payload).
My mistake, the IPv4 header is 1/2 the size of IPv6 header. In some protocols like NTP, the efficiency of sending small packets is quite important.
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 30432
  • Country: nl
    • NCT Developments
Re: IoTv6?
« Reply #58 on: June 11, 2017, 07:42:30 pm »
You can even do cool things like make the bottom 64 bits a strengthened hash of your public key for creating IPSec session keys, so you get automatic authenticated encryption without centralized coordination or trusted third parties. The address you connect to is its own authenticator.
How can a known EUI-64 interface address give me a benefit for security?
Try guess my 64-bit prefix. Oh and with one ND broadcast packet all nodes will drop the original prefix and move entirely to a new one. Cat and mouse much?
MAC addresses can be guessed because the variety in numbers isn't so great (in many cases just 16 bits). Also it wouldn't surprise me if there are other attack vectors you don't even know about as well and changing prefixes won't help. All in all it is very unwise to have devices on a public IP address because one way or another it will allow someone to deliver traffic to the device and hack it. As a fundamental rule you don't want foreign traffic on your network so it is wise to use a local (non routable) IP range whether you are using IPv4 or IPv6. A statefull firewall should allow devices to access hosts on internet (just like every country has border security). That gives a first layer of protection.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline theatrus

  • Frequent Contributor
  • **
  • Posts: 352
  • Country: us
Re: IoTv6?
« Reply #59 on: June 11, 2017, 10:06:30 pm »
Note that Thread is effectively a 6LowPan network - it will bridge to v4, but it has a lot of advantages to other systems.

Ironically, a lot of IoT host devices hosted in AWS (and some in GCP) are whats holding back end to end IPv6, since a lot of consumer networks (i.e., my Comcast connection and cell phones) are all IPv6 native.
Software by day, hardware by night; blueAcro.com
 

Offline jwm_

  • Frequent Contributor
  • **
  • Posts: 319
  • Country: us
    • Not A Number
Re: IoTv6?
« Reply #60 on: June 12, 2017, 12:45:31 am »
Simple setups can use static IPs even with IPv4, without any of this.

static IPs are a far far cry from plug and play. every device needs some sort of UI to set the IP, someone centralized needs to assign and keep track of them. And manual record keeping needs to happen. This is opposed to plug in and they talk. zero config.

At the expense of privacy, now that your MAC address is also exposed. MAC addresses tend to stay the same for a particular device and also survive reboots.

The requirement that the MAC be the last 64 bits is only true for link local addresses, where they will inherently know your MAC anyway to stick in the ethernet frame. For globally routable addresses you can put whatever you want in there. Almost every linux distro by default now chooses a brand new random number for externally visible addresses. And there is nothing keeping them from rolling a new one every time it boots or every hour if they want to.

Global routing requires routing table entries anyway so the MAC mapping just lives there so there isn't really any extra overhead. There is of course nothing keeping you from using your MAC address as the last 64 bits of your public ipv6 address, some operating systems still default to doing that.

The nice thing about the last 64 bits being unique is there is no need for a centralized DHCP server to ensure unique addresses for everyone. If you have ever dealt with a DHCP failure, or a bridging of two LANs, it is a huge mess. backup DHCP server has slightly different records? it starts reassigning the same IP. accidentally plug an ethernet cable into the wrong hub in the closet and a server starts talking on another lan, all hell breaks lose. There are a HUGE class of failure modes that just go away.

There is no back and forth between the routers and hosts, there is a plain broadcast giving the first 64 bits, no negotiation, you just connect, listen for the advertisement of the first 64 bits and append your unique last 64 bits and start talking, done. The route advertisers are fully stateless and can be duplicated with no ill effects. They can be rebooted without a bunch of stale leases causing issues etc.




How can you do that when you have the bottom 64 bits occupied with a MAC address? XOR the key with the MAC?

If somehow the MAC address can be encrypted with a 64-bit block cipher (eg. Blowfish) or XORed with a value known only to devices within the network, then you get to eliminate the "ARP" table and have some improvement in privacy, as you can change the key.

you can assign the last 64 bits however you want except on the very specific automaci ad-hoc link local network. Including hash of public key, random number, your MAC reversed and xored with your birthday or you can manually assign them sequentially if you really want and are a mild masochist.

Here is a blog post I made about utilizing one of the private namespaces for painless IPSEC accross your local lan. http://notanumber.net/archives/196/simple-ipsec-home-network

Lots of fun stuff can be done with the big IPv6 address space, and an embedded implementations can be a fraction of the size of an ipv4 one.

Provided you use an IPv6-only stack. ;)

For local IoT-like lab equipment stuff the devices just speak IPv6 IPSEC as the computers that talk to them can speak IPv6 dual stack. Most lab equipment doesn't need to talk to the internet at large but would really like to automatically be able to talk and pair on the local network to each other and computers plugged into it for the UI.  IPv6 really shines here and there is no need to have an IPv4 implementation on the devices themselves.


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->