You are on page 1of 8

A Simulation Study of Tunneling between IPV4 & IPV6 networks

using OPNET modeler


Almontaser bellah faisal mohammed hussien
almontaserbellahhussien@gmail.com

ABSTRACT different from IPv4: what you have learned in IPv4 will
be valuable when you deploy IPv6.
Today IPv6 over IPv4 tunnels are widely used to The differences between IPv6 and IPv4 are in five
connect large regional IPv6 networks, because it is major areas: addressing and routing, security, network
relatively hard to construct an international or cross- address translation, administrative
continent native IPv6 network. This makes the w o r k l o a d , and support for mobile devices. IPv6
characteristics of IPv6 over IPv4 tunnels very vital to also includes an important feature: a set of possible
the performance of the global IPv6 Internet. migration and transition plans from IPv4.
In this paper we use the OPNET modeler software to Since 1994, over 30 IPv6 RFCs have been
evaluate the Tunneling between IPv4 and IPv6 routing published. Changing IP means changing dozens of
protocols, we create two scenarios in one topology the Internet protocols and conventions, ranging from how IP
difference is based on the MDRR QoS profile. In the addresses are stored in DNS (domain name system) and
first scenario we used different TOS for each pair of applications, to how datagrams are sent and routed over
clients and each pair uses different protocol, in the Ethernet, PPP, Token Ring, FDDI, and every other
second scenario all the clients has the same TOS. The medium, to how programmers call network functions.
result shows that the two protocols can coexist without
any problems. The migration from IPv4 to IPv6 must be The IETF, though, is not so insane as to assume that
implemented node by node by using auto-configuration everyone is going to change everything overnight. So
procedures to eliminate the need to configure IPv6 hosts there are also standards and protocols and procedures
manually. for the coexistence of IPv4 and IPv6: tunneling IPv6
Due to the MDRR profiles the traffic sent, received, in IPv4, tunneling IPv4 in IPv6, running IPv4 and IPv6
and dropped is not effected but we had seen that there on the same system (dual stack) for an extended period
is a tiny difference in the buffer usage and the of time, and mixing and matching the two protocols
queuing delay parameters which guide us to an in a variety of environments.
obvious fact which the IPv6 has the maximum
queuing delay and buffer usage due to address size 2. IPv6 overview
and the translation procedures. The entire purpose of IP is to provide unique global
computer addressing to ensure that two devices
1. Introduction communicating over the internet can uniquely identify one
In 1991, the IETF decided that the current version of another. Internet protocol version 6(IPv6) is the current
IP, called IPv4, had outlived its design. The new version version of Internet Protocol and it is the successor of
of IP, called either IPng (Next Generation) or IPv6 IPv4.IPv6 is a network layer protocol for the Internet
(version 6), was the result of a long and tumultuous [08].IPv6 as we know that it allocates 128 bits to represent
process which came to a head in 1994, when the IETF an address, while IPv4 only allocates 32 bits. So the
gave a clear direction for IPv6. IPv6 is designed to differences between IPv6 and IPv4 address are 96 bits. The
solve the problems of IPv4. [1] number of different combinations therefore increases from
It does so by creating a new version of the protocol 232 to 264 networks of 264 addresses which significantly
which serves t h e function o f IPv4, b u t without enlarges the pool of available addresses. The network
the same limitations of IPv4. IPv6 is not totally address translators (NAT’s) sustains the explosion of end

1
devices but also greatly increases the network complexity, time which people have to spend configuring and
which is a very big barrier to the wide spread introduction managing systems. An IPv6 system can participate in
of point to point applications [6].The IPv6 protocol is one “stateless” auto configuration, where it creates a
which not only provides every device its own IP addresses, guaranteed-unique IP address by combining its LAN
which alleviates the need for NAT’s. In addition IPv6 also MAC address with a prefix provided by the network
offers other powerful advanced capabilities like auto router – DHCP is not needed.
configuration, encryption, security, porting issues, mobility, Of course, DHCP is still useful for other parameters,
routing, audio as well as video etc. such as DNS servers, and is supported as DHCPv6
where needed. IPv6 also offers a middle ground between
3. IPv6 motivations the two extremes with protocols such as SLP (“Service
Since the 1980s it has been apparent that the number Location Protocol”), which may make the lives of
of available IPv4 addresses is being exhausted at a rate network managers easier. High-bandwidth multimedia
that was not initially anticipated in the design of the and fault tolerance applications are the focus of the
network. This was the driving factor for the introduction fourth major goal of IPv6. Multimedia applications can
of classful networks, for the creation of CIDR take advantage of multicast: the transmission of a single
addressing. [3] datagram to multiple receivers
But despite these measures the IPV4 addresses are Although IPv4 has some multicast capabilities, these
being consumed at an alarming rate and it is estimated are optional and not every router and host supports them.
that 2010 would be the last year for IPV4, some With IPv6, multicast is a requirement. IPv6 also defines
sources say they may last until 2012. Primary reason for a new kind of service, called “anycast.” Like multicast,
IPV4 exhaustion is huge growth in number of internet anycast has groups of nodes which send and receive
users, mobile devices using Internet connection and packets. But when a packet is sent to an anycast group in
always on devices such as ADSL modems and cable IPv6, it is only delivered to one of the members of the
modems. This brings us to the development a n d group. This new capability is especially appropriate in a
adoption o f IPV6 as an alternate solution. fault-tolerant environment: web servers and DNS
servers could all benefit from IPv6′s anycast
4. IPv6 advantages technology.
With such a huge address space, ISPs will have Another aspect of VPNs built into IPv6 is QoS
sufficient IP addresses t o allocate e n o u g h (Quality of Service). IPv6 supports the same QoS
addresses to every customer so that every IP features as IPv4, including the DiffServ indication, as
device has a truly unique address - whether it’s behind well as a new 20-bit traffic flow field. Although the use
a firewall or not. NAT (network address translation) of this part of IPv6 is not defined, it is provided as a
has become a very common technique to deal with the solid base to build QoS protocols. The fifth major goal
shortage of IP addresses. Unfortunately, NAT doesn’t of IPv6 is VPNs, virtual private networks. The new
work very well for many Internet applications, IPSec security protocols, ESP (encapsulating security
ranging from old dependable, such as NFS and DNS, protocol) and AH (authentication header) are add-ons to
to newer applications such as group conferencing. IPv4. IPv6 builds-in and requires these protocols, which
NAT has also been an impediment for business-to- will mean that secure networks will be easier to build
business direct network connections, requiring and deploy in an IPv6 world.
baroque and elaborate address translators to make
everything work reliably, scaling poorly, and offering a
5. The need of IPV6
highly vulnerable single point of failure.[4]
As long IPv4 networks do what you need them to
One of the goals of IPv6′s address space expansion
do, let them run. But when an IPv4 network hits the
is to make NAT unnecessary, improving total
limits for some reason, choose IPv6. IPv6 is mature
connectivity, reliability, and flexibility. IPv6 will re-
enough to be used in corporate and commercial
establish transparency and end-to-end traffic across the
networks, as many case studies and deployments
Internet. The new IPv6 addresses are large and
worldwide show. High investments in new IPv4 setups,
cumbersome to deal with, so IPv6 reduces the number
fixes, or complex configurations for IPv4 (especially
of people who have to read and write them.
NATs) should be avoided if possible because they are
A second major goal of IPv6 is to reduce the total
investments in a technology that will slowly be phased
-2-
out. When you reach the point where this becomes routers.
necessary, evaluate IPv6. Whatever you invest in IPv6 is - Addressing simplicity: When a router or a host is
an investment in future technology. updated to IPv6, it can also continue to use IPv4
addresses.
Here's the list of indicators that it may be time for
you to consider or integrate IPv6:
- Low initial cost: No preparatory work is
- Your IPv4 network or NAT implementation needs
necessary to begin the migration to IPv6.
to be fixed or extended.
- You are running out of address space.
Mechanisms used by SIT include the following [7]:
- You want to prepare your network for
- A structure of IPv6 addresses that allows the
applications that are based on advanced features
derivation of IPv6 addresses from IPv4 addresses.
of IPv6.
- The availability of the dual stack on hosts and on
- You need end-to-end security for a large number
routers during the transition—that is, the presence
of users and you do not have the address space, or
of both IPv4 and IPv6 stacks at the same time.
you struggle with a NAT implementation.
- A technique to encapsulate IPv6 packets inside
- Your hardware or applications reach the end of
IPv4 packets (tunneling) to allow IPv6 packets to
their lifecycle and must be replaced. Make sure you
traverse clouds not yet updated to IPv6.
buy products that support IPv6, even if you don't
- An optional technique that consists of translating
enable it right away.
IPv6 headers into IPv4 headers and vice versa to
allow, in an advanced phase of the migration,
6. IPv4 and IPv6 Tunneling IPv4-only nodes to communicate with IPv6-only
The years from 1997 to 2000 will be characterized nodes.
by the adoption of IPv6 by ISPs and users. During 1997,
users could still have problems related to the newness of The Tunneling is one of the transitions from IPv4 to IPv6
products, but starting from 1998, IPv6 will be part of mechanism. Tunneling is a strategy used when two
mass-produced protocols distributed on routers, on computers using IPv6 want to communicate with each other
workstations, and on PCs. At that point, organizations and the packet must pass through a region that uses IPv4.To
will begin to migrate, less or more gradually, to IPv6 pass through this region, the packet must have an IPv4
[6].The key goals of the migration are as follow: address. So the IPv6 packet is encapsulated in an IPv4
- IPv6 and IPv4 hosts must interoperate. packet when it enters the region, and it leaves its capsule
- The u s e o f I P v 6 h o s t s a n d r o u t e r s m u s t when it exists the region .It seems as if the packet IPv6
b e distributed over the Internet in a simple and packet goes through a tunnel at one end and emerges at the
progressive way, with a little interdependence. other end[10].To make it clear that the IPv4 packet is
- Network administrators and end users must think carrying an IPv6 packet as data , the protocol value is set to
that the migration is easy to understand and 41[see Figure-1].Although Dual Stack, Tunneling, and
implement. Header Transition, are providing with us with transition
A set of mechanisms called SIT (Simple Internet solution but still it is not complete, there are still some other
Transition) has been implemented; it includes issues we should consider to get complete solution for
protocols and management rules to simplify the transitioning. Tunneling involves the transportation of IPv6
migration. The main characteristics of SIT are the packets over the existing IPv4 infrastructure. This usually
following: involves encapsulating IPv6 packets within the payload of
- Possibility of a progressive and an IPv4 packet. Such mechanisms as 6 to 4 tunneling[11]
n o n t r a u m a t i c transition: IPv4 hosts and routers adopted this procedure, where the security considerations
can be updated to IPv6, one at a time, without have been well documented in RFC 3964[12].Tunneling
requiring other hosts or routers to be updated techniques are broadly divided into two types, one is an
simultaneously. automatic tunneling and second one is configuration
- Minimum requirements for updating: The only tunneling. The tunneling technique we can use the
requirement for updating hosts to IPv6 is the compatible addresses discussed as shown in the below
availability of a DNS server to manage IPv6 Figure-2.A compatible address is an address of 96 bits of
addresses. No requirements are needed for zero followed by 32 bits of IPv4 address. It is used when a

-3-
computer using IPv6 wants to send a message to another variables:
computer using IPv6.However suppose the packet passes Quantum value - Average number of bytes served in each
through a region where the networks are still using round. Quantum value is calculated based on the bandwidth
IPv4.The sender must use the IPv4-compatible address to of the queue and the interface MTU.
facilitate the passage of the packet through the IPv4 region. Deficit counter - This counter is used to track how many
For example the IPv4 address 2.13.17.14 becomes 0:: bytes a queue has transmitted in each round. It is initialized
020D: 110E.The IPv4 is prepended with 96 zeros to create to the quantum value.
a 128 –bit address (See figure -3)[10] Each non-empty queue is served in a round-robin fashion.
Packets in a queue are served as long as the deficit counter
7. Header Translation is greater than zero. Each packet served decreases the
The last Transition technique in the transition of IPv4 to deficit counter by a value equal to its length in bytes. A
IPv6 is Header translation. This technique is used when a queue can no longer be served after the deficit counter
source host is IPv6 stack and a destination (receiving) host becomes zero or negative. In each new round, each non-
is IPv4 stack. When an IPv6 source host wants to empty queue's deficit counter is incremented by its quantum
communicate with an IPv4 destination host then the value.
receiving host it does not understand IPv6 packet so then it
uses the header translation transition strategy to convert an
IPv6 header to IPv4 header. An example for such a 10. Simulation configuration
technique is NAT-PT[12] which performs address and - Network configuration
protocol translation at the borders between non- The network is composed of four pairs of video
homogeneous networks at the IP level. The drawback of clients in two scenarios. In the first scenario each pair
using a translation mechanism is that there must be a uses a distinct TOS (Type Of Service) due to the MDRR
mapping from each IPv4 address to an IPv6 address. profiles as in figure 3 for data transfer. The traffic
generated by each client node is approximately 600,000
bps. Nodes 1 and 3 generate IPv4 traffic while nodes 3
and 4 generate IPv6 traffic. Since the link between the
two routers is only 1Mbps, it is a potential bottleneck.
The application used in the network is the video
conference application which configured between each
pair of client and server, the routing protocols addresses
are configured manually as in figure 4 and 5.
- The QoS configuration
Traffic is queued in "router A" in figure.1 because of
the bottleneck. The node employs an outgoing traffic
policy applied to the bottleneck interface for handling
bandwidth allocation. ACLs are used to classify the
various traffic flows into traffic classes based on their
8 . dual-stack source addresses. The policy uses local MDRR queuing
The term “dual-stack” refers to TCP/IP capable devices profiles to handle traffic belonging to different traffic
providing support for both IPv4 and IPv6. It is important to classes. The available link bandwidth is split among the
understand that having a device being able to communicate four flows as follows:
over both IPv4 or IPv6 does not necessarily means that all Client TOS 1 -> Server TOS 1: 10% (100,000 bps)
applications operating within this device are capable of Client TOS 2 -> Server TOS 2: 20% (200,000 bps)
utilizing both IPv4 and IPv6. The term “Dual-stack Client TOS 3 -> Server TOS 3: 30% (300,000 bps)
routing” refers to a network that is dual IP, which is to say Client TOS 4 -> Server TOS 4: 40% (400,000 bps)
all routers must be able to route both IPv4 and IPv6 [7].
9. MDRR overview
Modified Deficit Round Robin (MDRR), provides
relative bandwidth guarantees as well as a low latency
queue. Each queue within MDRR is defined by two

-4-
Fig 1. Simulation Scenario
All "IP QoS Parameters" compound attribute on "router
A". The traffic policy "my_policy" is defined in the "Traffic
Policies" sub-attribute. Traffic classes referenced in this
policy (Class_1, Class_2,...) are defined in the "Traffic
Classes" sub-attribute. The local MDRR profiles (Q1, Q2,
...) referenced in the policy are defined in the "MDRR
Profiles" sub-attribute. the details of the QoS configuration
can be seen in figures (2,3,4) in the next section.
Fig 3. MDRR profile setup "1st scenario"
In the second scenario we had used a similar Type of
Service or MDRR profile for data transfer in all clients as
configured in figure 6.

9. Simulation attribute setup

Fig 4. Router A "IPv6 interfaces"

Fig 2. Router A "IP QoS parameters"

Fig 5. Router A "IPv4 interfaces"

-5-
Fig 13. MDRR Buffer usage "2nd scenario"

- The buffer usage in the second scenario shows


that the clients 2 and 4 have the maximum
buffer usage which is using the IPv6 interfaces.

Fig 8. Queue delay variation "1st scenario"

Fig 6. MDRR profile setup "2nd scenario"

11. Results & Analysis


From the configurations and simulation attribute
setup before we demonstrate a comprehensive
comparison between three quality of service parameters
the figures below represents the results figures are taken
from OPNET for the two scenarios respectively.
Fig 14. Queue delay variation "2nd scenario"

- The queue delay variations are incresed in the


second scenario due to the similarty of the
TOS, because all the clients are using the same
bandwidth size with the essintial buffer size.

Fig 7. MDRR Buffer usage "1st scenario"

Fig 9. MDRR Queuing delay "1st scenario"

-6-
Fig 15. MDRR Queuing delay "2nd scenario" Fig 11. MDRR traffic recieved "1st scenario"

- The queuing delay is changed according to the


TOS, in the second scenario we can obtain that
the IPv6 clients had the maximium queuing
delay.

Fig 17. MDRR traffic recieved "2nd scenario"

Fig 10. MDRR packet dropped"1st scenario"

Fig 12. MDRR traffic sent "1st scenario"

Fig 16 MDRR packet dropped"2nd scenario"


- Some of traffic is dropped because of multicast
in IPv4 and the anycast in the IPv6.
- Some packets may be dropped due to some
issues in the simulation effeciency which can
not be handled.

Fig 18. MDRR traffic sent "2nd scenario"

9. Conclusion
Migrating from IPv4 to IPv6 in an instant is

-7-
impossible because of the huge size of the Internet and [11] J.Hanumanthappa1,Dr.Manjaiah.D.H.2
of the great number of IPv4 users. Moreover, many ,Thippeswamy.K3 " IPv6 over IPv4 QoS metrics in 4G
organizations are becoming more and more dependent Networks: Delay,Jitter,Packet Loss Performance,
Throughput and Tunnel Discovery Mechanisms" 2013.
on the Internet for their daily work, and they therefore
[12] Amer Nizar Abu Ali "Comparison study between
cannot tolerate downtime for the replacement of the IPV4 & IPV6" IJCSI International Journal of
IP protocol. As a result, there will not be one special Computer Science Issues, Vol. 9, Issue 3, No 1, May
day on which IPv4 will be turned off and IPv6 turned on 2012.
because the two protocols can coexist without any
problems. In this paper we investigate when to
immigrate from IPv4 to IPv6 and the risks of this
immigration.
The traffic sent and received are not affected by the
routing protocols, the anycast and multicast affect the
traffic dropped. but we had seen that there is a tiny
difference in the buffer usage and the queuing
delay parameters which guide us to an obvious fact
which the IPv6 has the maximum queuing delay
and buffer usage due to address size and the
translation procedures.

REFERENCES
[1] "IPv6 Headers", Online:
http://www.cu.ipv6tf.org/literatura/chap3.pdf
[2] S. Deering, R. Hinden, Internet Protocol Version 6
(RFC2460), 1998
[3] Ipv4/Ipv6 Translation Technology, Masaki
Nakajima, Nobumasu Kobayashi, 2004.
[4] The Benefits of Using Internet Protocol Version 6
(IPV6)by Amer N.AbuAli, Ismail Ghazi Shayeb,
Khaldoun Batiha, Haifa Yabu Aliudos, Vol. 5. n. 6,
pp. 583-587.
[6] Charles M. Kozierok, "TCP/IP Guid A
COMPREHENSIVE , ILLUSTRATED INTERNET
NTERNET PROTOCOLS REFERENCE", Online:
http://nostarch.com/download/tcpip_ch25.pdf,
chapter 25, pp.373-381, October 2005.
[7] Hitesh Ballani, Paul Francis, Cornell University,
Ithaca, NY, "Understanding IP Anycast", Online:
http://pias.gforge.cis.cornell.edu/unpub/any-
measure.pdf
[8] S.Deering and R.Hinden “Internet Protocol Version
6(IPv6) Specification”, RFC 2460, December 1998.
[9] Durand A. managing 100 + million IP addresses
.The North America Network operator’s
group(Nanog 37),meeting , San Jose , CA,U.S.A.
,June 2006 .
[10] IPv6 network administration guide.

-8-

You might also like