Module - 3 - Internet Protocol - Part 2
Module - 3 - Internet Protocol - Part 2
Internet Protocol
The Address Resolution Protocol (ARP) is used to glue the network and
data-link layers in mapping network-layer addresses to link-layer
addresses.
19-
IPV4 4
Flags: the first bit (reserved), the second bit (do not fragment bit),
the third bit (more fragment bit).
Fragmentation offset: (13 bits cannot represent a sequence of bytes
greater than 8191
19-
Detailed Fragmentation Example 11
19-
Detailed Fragmentation Example 12
19-
Checksum 13
19-
Options 14
IPv4 header is made of two part: a fixed part and a variable part
Fixed part: 20 bytes long
Variable part comprises the options that can be a maximum of 40 bytes
15
Security issues in IPv4
Abbreviation
Mixed Notation
We can use the colon hex notation for the leftmost six sections and four-byte
dotted-decimal notation instead of the rightmost two sections. However, this
happens when all or most of the leftmost sections of the IPv6 address are 0s. For
example, the address (::130.24.24.18) is a legitimate address in IPv6, in which the
zero compression shows that all 96 leftmost bits of the address are zeros.
Address Space 18
The address space of IPv6 contains 2128 addresses. This address space is 296
times the IPv4 address—definitely no address depletion—as shown, the size of
the space is
Anycast Address
Multicast Address
Address Space Allocation 19
IPv6 is divided into several blocks of varying size and each block is allocated for a
special purpose. Most of the blocks are still unassigned and have been set aside for future
use.
Global Unicast Addresses 20
The block in the address space that is used for unicast (one-to-one)
communication between two hosts in the Internet is called the global unicast
address block. CIDR for the block is 2000::/3, which means that the three leftmost
bits are the same for all addresses in this block (001).
The size of this block is 2125 bits, which is more than enough for Internet
expansion for many years to come. An address in this block is divided into three
parts: global routing prefix (n bits), subnet identifier (m bits), and interface
identifier (q bits),
Global Unicast Addresses 21
22
Mapping EUI-64 23
Autoconfiguration 24
When a host in IPv6 joins a network, it can configure itself using the following process:
1. The host first creates a link local address for itself. This is done by taking the 10-bit link local prefix
(1111 1110 10), adding 54 zeros, and adding the 64-bit interface identifier, which any host knows how
to generate from its interface card. The result is a 128-bit link local address.
The host then tests to see if this link local address is unique and not used by other hosts. Since the 64-
bit interface identifier is supposed to be unique, the link local address generated is unique with a high
probability. However, to be sure, the host sends a neighbor solicitation message (see Chapter 28) and
waits for a neighbor advertisement message. If any host in the subnet is using this link local address,
the process fails and the host cannot autoconfigure itself; it needs to use other means such as DHCP for
this purpose
Autoconfiguration 25
If the uniqueness of the link local address is passed, the host stores this address as its link
local address (for private communication), but it still needs a global unicast address. The
host then sends a router solicitation message to a local router. If there is a router running
on the network, the host receives a router advertisement message that includes the global
unicast prefix and the subnet prefix that the host needs to add to its interface identifier to
generate its global unicast address. If the router cannot help the host with the
configuration, it informs the host in the router advertisement message (by setting a flag).
The host then needs to use other means for configuration.
Renumbering 26
renumbering of the address prefix (n) was built into IPv6 addressing.
If the site changes the provider, the address prefix needs to be changed. A router to
which the site is connected can advertise a new prefix and let the site use the old prefix
for a short time before disabling it. In other words, during the transition period, a site
has two prefixes.
The main problem in using the renumbering mechanism is the support of the DNS,
which needs to propagate the new addressing associated with a domain name.
THE IPv6 PROTOCOL 27
The following shows other changes implemented in the protocol in addition to changing address size and format.
Better header format
New options
Allowance for extension.
Support for resource allocation.
Support for more security.
Packet Format 28
Version
Traffic class
Flow label
Payload Length
Next Header
Hop Limit
Source & Destination
Address
Payload
Extension Header 29
Unicast Routing 30
Internet needs routing protocols to update the forwarding tables for the
smooth datagram delivery.
One-to-one delivery is called unicast routing.
One-to-many delivery is called multicast routing.
Unicast routing –
A packet is routed, hop by hop, from its source to its
destination by the help of forwarding tables.
Least-Cost Routing 31
Properties of Least-Cost Routing 32
The least-cost trees for a weighted graph can have several properties if
they are created using consistent criteria.
1. The least-cost route from X to Y in X’s tree is the inverse of the least-
cost route from Y to X in Y’s tree; the cost in both directions is the
same.