IPv4 and IPv6 Coexistence

The limited IPv4 address space is one of the main issues, along with the problem with Network Address Translation and security-related issues. So, the time transition from IPv4 to IPv6 is necessary. The main problem in the transition from IPv4 to IPv6 is the size of the Internet. The one-time migration from IPv4 to IPv6 addresses is impossible because some IPv4 addresses may never change.  Therefore, the coexistence of IPv4 and IPv6 on the internet is necessary. The transition from IPv4 to IPv6 required several years.

The IETF also create several protocols and tools to help network administrators migrate their networks to IPv6. The transition from IPv4 to IPv6 has divided into three categories. Dual stack, where your network hardware runs IPv4 and IPv6 simultaneously. Next is the “tunnel” method, where we take IPv6 packets and encapsulate them into IPv4 packets. The last is Network Address Translation-Protocol Translation (NAT-PT), also known as RFC-2766. NAT-PT works like the name says: software or a device translates IPv6 packets into IPv4 packets. Following is the detail of these methods.

 Dual-Stack 

In dual-stack networking, all network devices, including routers, servers, and firewalls, will be configured for IPv4 and IPv6 capabilities. The whole network must understand both IP versions of packets and allow the processing of IPv4 and IPv6 data traffic simultaneously. Dual stack allows IPv4 and IPv6 to coexist on the same network segment. Dual-stack devices run both IPv4 and IPv6 protocol stacks simultaneously. The Figure below illustrates the Dual-Stack process.

When a node is configured for a dual-stack network, it is configured to prefer IPv6 over IPv4 traffic. If the traffic it receives is solely IPv4, then the dual stack node is capable of processing it as well. It is one of several solutions for migrating from IPv4 to IPv6, but it is also one of the most expensive.

Tunnelling

Tunnelling is another method of IPv4 and IPv6 co-existence. In tunnelling, an IPv6 packet is transported over an IPv4 network. The dual stack routers encapsulate the IPv6 packet inside the IPv4 packet, just like the router encapsulates other data into IPv4 packets. We can communicate using tunnelling with isolated IPv6 networks without upgrading the IPv4 infrastructure. We only required tunnel configuration between border routers or between a border router and a host; however, the critical point is that both tunnel endpoints must support IPv4 and IPv6 protocol stacks. We can configure tunnelling either manually or dynamically. The essential methods for tunnelling are listed below. The figure below illustrates tunnelling:-

IPv4 and IPv6

Manual

It is like a permanent link between two IPv6 domains over an IPv4 backbone. We use manual tunnelling for regular secure communication between two nodes. The nodes may be end devices or maybe two edge devices. We can also configure a manual tunnel between a host and an edge device.

An IPv6 address is manually configured on a tunnel interface, and manually configured IPv4 addresses are assigned to the tunnel source and destination. The host or edge device at each end of a configured tunnel must support IPv4 and IPv6. Cisco Express Forwarding switching can be used for IPv6 manually configured tunnels, or it can be disabled if process switching is needed.

IPv4-compatible

In the IPv4-compatible tunnel method, the tunnel destination is automatically determined by the IPv4 address in the low-order 32 bits of IPv4-compatible IPv6 addresses. The host or router at the source and destination ends of an IPv4-compatible tunnel must support both the IPv4 and IPv6 protocol stacks.

Generic routing encapsulation (GRE)

Generic routing encapsulation (GRE) encapsulates packets and sends them to a device that de-encapsulates them and routes them to the final destination. GRE tunnels allow routing protocols such as RIP and OSPF to forward data packets from one switch to another across the Internet. In addition, GRE tunnels also encapsulate multicast data streams for transmission over the Internet.

6to4

It is a method to connect IPv6 hosts or IPv6 networks over an IPv4 backbone. 6to4 required relay routers to forward encapsulated IPv6 packets over IPv4 links instead of explicit tunnel set-up. It uses unicast to create point-to-point links over the IPv4 backbone for transmission. The host using 6to4 can communicate with another 6to4 host as well as a host of native IPv6 connections.

Intrasite Automatic Tunnel Addressing Protocol (ISATAP)

Intrasite Automatic Tunnel Addressing Protocol (ISATAP) can encapsulate and transmit IPv6 packets over IPv4 networks or IPv4 packets over IPv4 networks. It provides automatic encapsulation by using a virtual IPv6 overlay on top of an IPv4 network using IPv4-configured routers.

 Translation 

The figure below illustrates the translation method. Network Address Translation 64 (NAT64) allows IPv6-enabled devices to communicate with IPv4-enabled devices using a translation technique similar to NAT for IPv4. An IPv6 packet is translated to an IPv4 packet and vice versa. It allows IPv6-only clients to communicate with IPv4 servers using unicast UDP, TCP, or ICMP.  One or more public IPv4 addresses assigned to a NAT64 translator are shared among several IPv6-only clients.

IPv4 and IPv6

[qsm quiz=13]