Tuesday, December 10, 2013

IPv6 NAT66 and NPTv6 - it seems there is still a lot of confusion

I've written previous posts on NPTv6 but it seems I didn't do a particularly good job explaining the different between NPTv6 and NAT66 and there is still a lot of confusion understanding what the actual difference is between the two. While both are doing network translation they are doing it differently.

The difference is pretty simple. NAT66 performs the same function we have with NAT44. It is a stateful network address translation on a router or firewall. It will take an IPv6 address on one network interface and translate it to a new IPv6 address on the other network interface and forward the packet. It may perform some sort of application fix up to keep certain protocols and applications from having problems. It requires resources (CPU and memory) on the router or firewall to do this and the returning traffic will have to come through the same device because it is keeping a state table of all the translations it is performing.

NPTv6 is different then NAT66 in that only the leftmost prefix portions of the address are translated. This means that the device doing this translation do not need to keep state at all. So NPTv6 is stateless and therefore in theory can scale better and also be distributed across many devices doing the same function (regardless of forwarding changes and asymmetrical routing). The internal prefix and the external prefix sizes must match so if you want to use NPTv6 you need to do some work to make sure things match up. In other words, your internal network may have a /64 ULA prefix that you want to use NPTv6 to give it access to the IPv6 Internet. You will need a /64 of global unicast address space to allow the router or firewall to do the NPTv6 function with. If you have a /48 internally that you want to use NPTv6 with then you will require a /48 for that externally.

There are some minor variations of these two. NAT66 can, in theory also provide PAT functions allowing the overload of a single IPv6 address by multiple IPv6 addresses behind it. This really is not needed with IPv6 at all as there are more than enough IPv6 addresses to go around. In theory SLB64 looks like NAT66 because it is providing a shared VIP to access a resource and translating traffic appropriately.

As a general rule of thumb, those in the IPv6 community see NPTv6 as a potential tool to solve some corner case issues and they see NAT66 as not desirable. There really is no reason to run NAT66 and if you do require any sort of NAT function then you should be using NPTv6. Unless we want to repeat all the mistakes we have made with NAT44 over the years (and now NAT444 with CGN solutions) then adopting NAT66 is a poor choice.

Obviously this debate is ongoing and it could end up that NAT66 ends up winning but I am hopeful that won't be the case.
- Ed

Sunday, December 08, 2013

Follow up to my IPv6 and ULA post plus some thoughts on design and IPv6 behavior

I've gotten some interesting comments and questions in regards to my IPv6 ULA (Unique Local Address) post and I wanted to outline the questions and then follow up with my thoughts and some high level design discussion.

The first question is around the situation of multiple ISP connections without using BGP and Provider Independent (PI) addresses or alternately switching from one ISP to another. The argument is pretty straightforward, you don't want to have to renumber your servers, network links and other infrastructure when changing ISP's because the IPv6 address space you have is allocated from that ISP. That IPv6 address space will no longer be yours when you change from ISP A to ISP B. So, alternately you can use ULA for your network, server and even client devices and only use that ISP IPv6 address space at the edge, similar to how you implement IPv4 today. This requires the use of some sort of NAT translation at the edge.

The second question is a bit of a refinement of the above that argues you should use ULA for all internal hosts and your LAN and WAN resources so you don't have to renumber if you change ISP's but also so you have a consistent address prefix preference for internal traffic to register with DNS.

I think those really are the main pro ULA arguments I have heard so far. Let's tackle the first part which is really all about flexibility in choosing and changing your ISP and reducing the IPv6 renumbering costs to a fractional degree. The second one I will cover in a different post.

The following diagrams shows the multiple ISP connection configuration which is no different than migrating from one ISP to another. We start with ISP A on the left and will be moving to ISP B on the right. Our initial network configuration will use ISP A's IPv6 Provider Assigned (PA) address block and our goal is the move to ISP B's IPv6 Provider Assigned (PA) address block. For a duration of time you will have both ISP A's and ISP B's IPv6 address blocks active on your network. The next diagrams (Figure 2 and 3) are what everyone thinks they want to deploy. It utilizes some sort of NAT technology at the Internet edge and assumes you will only use ULA for the "internal" network.

Figure 1. Dual connections while migrating service providers

Figure 2. ISP 1 with NAT66

Figure 3. ISP 2 with NAT66

The primary problem with the ULA solution people want is that there are no good production quality NPTv6 implementations out there to run on a firewall or edge Internet device today. This limits your ability to actually deploy that solution so you are left with NAT66 (not a good option in my opinion). Furthermore, NPTv6 still breaks many end to end features for applications relying on the underlying networking protocol not doing NAT. Application developers will still have to build NAT traversal mechanisms into their apps even though we were not supposed to need them with IPv6 at all. The only advantage you will gain is that with NPTv6 you have a stateless solution for NAT as only the prefix is actually changed. This reduces the amount of resources required on that Internet edge device greatly compared to the same solution with IPv4. An additional option is to go with NAT66 (which is available from some network manufactures) but which make IPv6 even more brittle and introduces every one of the NAT/PAT problems we have with IPv4 only on a much larger scale. I consider this solution a huge mistake and using it roles back all the progress and design work that the architects of IPv6 put into the protocol.

The slightly more difficult dual ISP PA migration (Figure 1) solution will actually work just fine without ULA. You will have to do some planning to do renumbering however depending on your design this could potentially be relatively easy. The most difficult resources to renumber would be your LAN and WAN infrastructure and your servers. Client devices should be dynamically obtaining their IP addresses (IPv4 or IPv6) and should not care greatly if their network address prefix changes over a weekend or even within the day. IPv6 has no issue with running both PA IPv6 prefixes at the same time nor does it require ULA to do this function. You might gain some time back on larger LAN and WAN networks on not having to renumber and this could be true for servers also however you will have to write additional firewall rules and you will still have to give them global unicast addresses if they need to talk to the public IPv6 Internet at all (remember, limited or no NPTv6 support today). This means you still have to touch the device to change it over from one IPv6 prefix to another. If it does not have the requirement for being able to get to the public Internet at all then there is a use case for using ULA. I see this as a secure network and I argued in the previous blog post that a secure network would be a legitimate use case for ULA.

ULA may buy you a small amount of stability in avoiding some address renumbering but I would argue that a proper DDI solution solves almost all the issues using DDNS and name to IP address resolution. What you gain from ULA to avoid renumbering you will likely have to pay back 10 fold in NAT traversal issues and pain.

A quick question, how often are people changing ISP's for small to medium sized businesses? I think some of the renumbering argument assumes this happens far more often than it does. For many medium to larger enterprise customers they will likely get Provider Independent IPv6 address space and utilize BGP to advertise to multiple ISP's at once (Figure 4). They do not require NPTv6 and even if they need local Internet hop off at a branch location they would simply deploy both PI and PA IPv6 prefixes at that site and let RFC 6724 solve the source/destination matching (Figure 5). They can gain more granular control of the routing behavior if they modify the prefix policy tables.

Figure 4. Dual homed IPv6 BGP peering


Figure 5. IPv6 PI and PA with local Internet hop off

As for those that are dual homing but not running BGP they do not require ULA or a NAT solution, simply run both IPv6 PA address space on the network (Figure 1) and let RFC 6724 solve the source/destination matching. If you want more control you can manage the prefix policy tables on your hosts or do some routing policy work within your network. Even so, if you are doing dual homed but no BGP you likely don't have a large enough network to care or bother with those efforts. Either way, I believe it is still simpler to use both service providers IPv6 PA space than to deal with ULA and NAT.

Thoughts? What other ways to you see ULA being an advantage over global unicast IPv6 addresses in your network?
- Ed


My book is available for pre-order on Amazon or you can order directly from the publisher Apress

Monday, October 21, 2013

I am speaking at the IT Roadmap event in San Jose Oct 24

I will be doing a presentation on IPv6 at the Network World IT Roadmap event at the San Jose Convention Center on Thursday, Oct 24. If you are interested there is still time and room to registered for the event. My presentation is "IPv6, Now is the Time" and my long time friend and colleague John Hoffman from Oracle will be presenting with me talking about how Oracle is doing their IPv6 deployment and some of the  challenges and issues they have run into over time.
If you are in the area I encourage you to come attend the event. There is a wonderful line up of topics and presenters so it will be worth your time to come and attend.
- Ed

Thursday, October 17, 2013

Network Field Day 6 - Post Mortem

It has been close to a month since I participated in Network Field Day 6 and I am finally getting a chance to write up my thoughts and feelings about the experience overall but also the companies that participated and hosted all the delegates to show us what they are doing.

First, a quick perspective on what Stephen Foskett is doing with Tech Field Day (and all the related events he is involved with) - simply amazing. I can't say enough about how impressed I was with the event. The engagement and quality of the delegates was fantastic and the overall experience of interacting and meeting folks of that caliber was really special. For that alone I give a tip of the hat to Stephen, Tom and Claire for all their hard work in pulling together such a unique opportunity and event.

Second, I have a slightly different perspective of things being a first time delegate and perhaps not as prolific a blogger as some of the other delegates. I thought since I have had some time to think about who I saw at NFD6 I would give you my impressions of the companies who presented and which has had a lasting impact of still being top of mind for me.


With that, I would say the lasting impact company has to be ThousandEyes. Thousand Eyes has an IT performance management platform that I can see a ton of different customers using to solve all sorts of unique problems that until now are relatively difficult to do.

First of all, the easiest way to see how their product works is to check out their videos that gives the overview. What struck me right away with what they were doing is how obvious it was and then wondering why no one had done that before! To me, that is the sign of a great product, when it just clicks and makes sense.

So what is unique about what they are doing? It is the marriage of good graphical monitoring solution with public and private agents but designed for monitoring SaaS applications. They aggregate information from both private agents (that you can run from any location you control) and public agent sites that they maintain. In addition, their service and design works so well that major SaaS providers are using it themselves to measure their performance. If you are responsible for measuring and reporting on SaaS SLA's at all than you should be seriously looking at what they are doing. That really is how they are unique. There are lots of performance monitoring tools out in the market but this is the first that marry together these functions and in an elegant way that is very intuitive.

To be fair, I was impressed with many of the other manufactures that participated in NFD6 and I will likely take a moment to put a blog article together on them also but of all the companies Thousand Eyes really stood out. So there you have it, a company you should really go check out what they are doing.
- Ed


Disclosure and Disclaimer:
Thousand Eyes (and other manufactures) participated in the Networking Field Day 6 event, thus indirectly covering some of my travel expenses. At no time did they ask for, nor where they promised any kind of consideration in the writing of this review.  The opinions and analysis provided within are my own and any errors or omissions are mine and mine alone unless I specifically blame someone else for my mistakes, which is uncool but might happen.




Wednesday, September 25, 2013

I am speaking at TechMentor in Las Vegas Sept. 30 - Oct. 4 on IPv6


For those of you who are Windows admins and interested in learning about IPv6 I am doing a 3 hour session at TechMentor in Las Vegas next week, September 30th through October 4th. You can still sign up for the event. The conference over all is an excellent chance to learn from some of the best in the community, Greg Shields, Don Jones, Mark Minasi and many others. The exciting part is the change that TechMentor has put in place for their format, it is all hands on labs and deep dive sessions so you really get to learn a lot. The presenters aren't trying to sprint through content and can take the time to explain things and have much more engaging discussions about topics of interest.

My session is Mastering IPv6 for the Inspiring Windows Sever Administrator and I will be taking you from the basics of IPv6 through to some practical advise and a demo or two. So please join me in Las Vegas, perhaps we can chat all about IPv6 and what is happening with it. If not, we can always talk PowerShell, Hyper-V, System Center and Azure!

My session description:
Have you been scratching your head wondering what this IPv6 thing is all about and how it might impact you? Have you seen an IPv6 address and wondered how in the world do I subnet that? The first part of the session is focused on explaining the basics of IPv6 and how it is both different and similar to IPv4. The second part is how to set up a basic working configuration, best practices and common problems you may run into in deploying IPv6. We also cover the default assumptions Microsoft has in place for IPv6 and how that impacts your decisions and how you should manage your environment.

Hope to see you in Vegas!
- Ed