ACN Chapter 2 - Part 2 Notes by Ur Engineering Friend
ACN Chapter 2 - Part 2 Notes by Ur Engineering Friend
ACN Chapter 2 - Part 2 Notes by Ur Engineering Friend
The "Advanced Computer Network" subject in a diploma or engineering program typically covers in-
depth topics related to computer networking. The curriculum aims to provide students with a
comprehensive understanding of advanced networking concepts, protocols, and technologies.
Chapters / Syllabus
2. Next Generation IP
In IPv6, an address space refers to the total number of unique IP addresses available under
the IPv6 system. IPv6 uses 128-bit addresses, which allows for a much larger address space
compared to the 32-bit address space in IPv4. Here's a breakdown:
1. Size of IPv6 Address Space: IPv6 supports 128-bit addresses, meaning there are
21282^{128}2128 (approximately 3.4 x 10^38) unique IP addresses. This is an
enormous increase from the 2322^{32}232 (around 4.3 billion) available in IPv4.
2. Address Format: IPv6 addresses are represented as eight groups of four
hexadecimal digits, separated by colons. For example:
2001:0db8:85a3:0000:0000:8a2e:0370:7334
The address space in IPv6 is 2128, which is equal to 3.4 x 10 38, the exact figure is :
340,282,366,920,938,463,463,374,607,431,768,211,456
The actual available number is slightly less than it, as there are some reserved addresses for
specific purposes. As per the Google statistics, the availability of Google users on IPv6 is 30-
33% out of the total Internet users at present.
The address space is that huge in IPv6, if we manage to adjust 268 computers in each square
meter of the planet earth, the address will still be enough to connect them all. However, all
the addresses of IPv6 are not yet allocated. Only three out of eight parts of IP addresses are
assigned to specific purposes.
Out of the 2128 addresses, 1/8th part allocated to the Global Unicast, 1/128th part to the
unique local unicast, 1/256th part each for Multicast and IPv4 compatible address, and
1/1024th part for link-local address.
It is worthwhile to mention that even the eighth part of the address is 2125, which is a pretty
large number for the Global unicast address.
To find the 1024th part of it, divide 2128 by 1024 or 210, which results in 2118.
Auto configuration
The transition from IPv4 to IPv6 is necessary due to the depletion of IPv4 addresses and the
growing need for a larger and more efficient IP addressing system. IPv6 was developed to
provide a virtually unlimited number of addresses, while also offering enhanced features such
as improved security and routing efficiency.
Transition Strategies
Since IPv4 and IPv6 are not natively compatible, various strategies are used to facilitate the
transition:
1. Dual Stack:
o This method allows devices and networks to run both IPv4 and IPv6
simultaneously. Devices choose which protocol to use based on the network or
destination's capabilities.
o Over time, as more networks support IPv6, IPv4 usage will decline.
2. Tunneling:
o IPv6 packets are encapsulated inside IPv4 packets to traverse IPv4 networks.
This allows IPv6 traffic to be sent over existing IPv4 infrastructure.
o Common tunneling protocols include:
▪ 6to4: Encapsulates IPv6 traffic over IPv4 automatically.
▪ Teredo: Designed for IPv6 connectivity through IPv4 NAT (Network
Address Translation).
3. Translation (NAT64/DNS64):
o These techniques translate IPv6 traffic into IPv4 for networks that still run
IPv4-only services. This helps IPv6-only devices communicate with IPv4
servers.
1. Dual Stack
Dual Stack is a technique used during the transition from IPv4 to IPv6 that allows devices
and networks to run both IPv4 and IPv6 protocols simultaneously. With this method, network
• Dual Stack Devices: Devices like computers, routers, and servers are configured to
support both IPv4 and IPv6. These devices will have both an IPv4 address and an
IPv6 address.
• Protocol Preference: When a device communicates with another device, it first
checks which protocol the destination supports. If both support IPv6, IPv6 is used
(preferred for its advantages like better routing and more address space). If IPv6 isn’t
supported, the device will fall back to IPv4.
Advantages:
Disadvantages:
• Resource Intensive: Since devices need to maintain both IPv4 and IPv6 connections,
it can increase the complexity of network management.
2. Tunneling
Tunneling is a technique that encapsulates IPv6 packets within IPv4 packets, allowing them
to be transmitted across an IPv4-only network. This is particularly useful when IPv6 traffic
needs to travel across infrastructure that has not yet been upgraded to support IPv6.
1. 6to4 Tunneling:
o Automatically encapsulates IPv6 packets within IPv4 packets without the need
for a pre-established tunnel.
o Useful for communicating over IPv4 infrastructure, but requires the devices at
both ends to have public IPv4 addresses.
o Addressing: In 6to4, an IPv6 address is automatically generated from an IPv4
address.
2. Teredo Tunneling:
o Allows IPv6 connectivity for devices behind an IPv4 NAT (Network Address
Translation). It helps traverse networks where traditional tunneling
mechanisms like 6to4 would fail.
o NAT Traversal: Teredo is beneficial because many home and business
networks use NAT, and this method enables IPv6 packets to pass through
NAT routers.
o Commonly used in consumer networks, especially when using peer-to-peer
applications like gaming or video conferencing.
3. ISATAP (Intra-Site Automatic Tunnel Addressing Protocol):
o Used for communication between IPv6 devices across an IPv4-only network
within a single organization.
o Allows IPv6 traffic to be transported over an IPv4 intranet, which is useful in
corporate networks that have not fully migrated to IPv6.
• IPv6 packets are encapsulated inside an IPv4 packet at the source router or device.
• The encapsulated packet is sent across an IPv4 network.
• At the destination, the IPv4 header is stripped off, and the original IPv6 packet is
delivered.
Advantages:
Disadvantages:
• Overhead: Encapsulating IPv6 packets inside IPv4 adds overhead and increases
packet size, which can result in slightly reduced performance.
• Complexity: Managing and troubleshooting tunneled networks can be more complex
than running native IPv6 or IPv4 networks.
NAT64 and DNS64 are translation mechanisms that allow IPv6-only devices to communicate
with IPv4-only services. These techniques translate between the two protocols so that IPv6
clients can access content on IPv4 servers without requiring dual-stack.
NAT64:
• Network Address Translation (NAT) translates IPv6 addresses into IPv4 addresses
and vice versa.
• It is used when an IPv6 client (with no IPv4 address) needs to connect to an IPv4
server.
• How it works:
o The NAT64 gateway translates the IPv6 packets coming from an IPv6-only
client into IPv4 packets.
o The NAT64 gateway also maintains a stateful mapping between the IPv6 and
IPv4 sessions.
Advantages:
• Bridges IPv6 and IPv4: NAT64 allows IPv6-only clients to communicate with IPv4-
only services, bridging the gap between networks and avoiding the need for IPv4
addresses for clients.
• Eliminates Dual-Stack: Since IPv6 clients can communicate with IPv4 servers using
NAT64, this reduces the need for dual-stack configurations on the client side.
Disadvantages: