News for hackers. Stuff that matters.
Re:iOS Supporting IPv6-Only Networks by Negative1 on Thursday May 05, 2016 @12:10PM (#11637321)
That's incorrect. Check out figure 10-3 here: http://j.mp/1NkSBaF

If your App does not support IPv6 on the official rollout then you will no longer have network connectivity. If you use native platform functions you're fine. If you use unix/bsd sockets, you're in trouble.

From the backend perspective however, IPv4 will be allowed... for now. Basically what happens is the client is expected to send an IPv6 packet to the phone carrier which then will translate it to IPv4 if needed. Since many big cloud providers (like Amazon) still don't support a proper IPv6 solution this approach will likely be around for quite some time.

Re:iOS Supporting IPv6-Only Networks by songgao on Thursday May 05, 2016 @01:19PM (#11637997)
> Basically what happens is the client is expected to send an IPv6 packet to the phone carrier which then will translate it to IPv4 if needed.

This will only happen 1) in the test environment that helps ensure that your App will work fine in a IPv6-Only (as opposed to dual-stack) network; 2) your carrier has IPv6 and NAT64.

If I understand correctly, the higher level APIs should be able to choose IPv6 or IPv4 accordingly based on network configuration. If, for example, your carrier doesn't support IPv6, apps using these APIs will continue function well using IPv4. And I doubt Apple will ban IPv4 entirely before all carriers support IPv6 and NAT64/DNS64. So "for now" will likely be several years.

There are many components that need upgrades in order to move to an IPv6 only Internet. Preparing applications for it is an important part, and this is a nice step in this part.

Re:iOS Supporting IPv6-Only Networks by chatmasta on Thursday May 05, 2016 @12:18PM (#11637400)
Oh I see. So Apple is moving all its local sockets to IPv6 format? That's what you mean by "no longer have network connectivity?"

You seem to be implying that every IPv4 packet will go through a carrier NAT64... but what if my ISP does not use NAT64? Will my iPhone send a regular IPv4 request, or will it prefix IPv6?

Re:iOS Supporting IPv6-Only Networks by X-Istence on Thursday May 05, 2016 @12:21PM (#11637441)
If your ISP doesn't have NAT64 it will continue to use IPv4, and packets will continue to flow as normal. Apps however can't be IPv4 ONLY.
Re:iOS Supporting IPv6-Only Networks by chatmasta on Thursday May 05, 2016 @12:28PM (#11637512)
Ah okay. So the point of prefixing IPv6 with IPv4 is that if the ISP has only IPv4 switching, it will only grab the first 32 bits of the IPv6 address... which is the IPv4 address. So no ISP changes needed.
Re:iOS Supporting IPv6-Only Networks by X-Istence on Saturday May 07, 2016 @11:09PM (#11652447)
No, that is not how NAT64/DNS64 works...
Re:iOS Supporting IPv6-Only Networks by chatmasta on Saturday May 14, 2016 @06:22PM (#11698321)
Ok then we are left with my original question. What if my ISP does not own any routers implementing NAT64? Will iOS send IPv4 packets? I think the answer is yes.
Re:iOS Supporting IPv6-Only Networks by the_mitsuhiko on Thursday May 05, 2016 @01:57PM (#11638327)
That's unlikely to be correct because this would require carriers to support IPv6 which many do not do.
Re:iOS Supporting IPv6-Only Networks by Negative1 on Thursday May 05, 2016 @05:24PM (#11639764)
From that link: "Major network service providers, including major cellular carriers in the the United States, are actively promoting and deploying IPv6."
Re:iOS Supporting IPv6-Only Networks by the_mitsuhiko on Friday May 06, 2016 @10:47AM (#11644331)
That's nice for the US but that does not apply for many other countries. Case in point: Austria does not have a practical IPv4 shortage currently so motivation for deploying IPv6 is low and customers actively refuse it.
Re:iOS Supporting IPv6-Only Networks by eloy on Thursday May 05, 2016 @12:14PM (#11637367)
Out of curiosity, why would anyone use Unix or BSD sockets on iOS if Apple provides way better APIs?
Re:iOS Supporting IPv6-Only Networks by Negative1 on Thursday May 05, 2016 @05:22PM (#11639752)
Think game engines or legacy C++ projects there were ported to the platform and already have their own network implementation.
Re:iOS Supporting IPv6-Only Networks by mosburger on Thursday May 05, 2016 @12:19PM (#11637417)
Maybe familiarity? Porting existing UNIX code to iOS (seems like that'd be pretty rare)?
Re:iOS Supporting IPv6-Only Networks by eloy on Thursday May 05, 2016 @12:23PM (#11637465)
Hmm, good point. I guess that most of the apps that use BSD/Unix sockets are libraries then.
Re:iOS Supporting IPv6-Only Networks by Negative1 on Thursday May 05, 2016 @05:24PM (#11639769)
Why the downvote? Everything I stated is factually accurate.