Ch19 21
Ch19 21
Mobile IP
19.1 INTERNET PROTOCOL (IP)
• To communicate with a remote host, a mobile host goes through three phases: agent
discovery, registration, and data transfer
• Agent Discovery
• The first phase in mobile communication, agent discovery, consists of two subphases. A
mobile host must discover (learn the address of) a home agent before it leaves
its home network. A mobile host must also discover a foreign agent after it has
moved to a foreign network. This discovery consists of learning the care-of address
as well as the foreign agent’s address. The discovery involves two types of messages:
advertisement and solicitation.
• Agent Advertisement
• When a router advertises its presence on a network using an ICMP router advertisement,
it can append an agent advertisement to the packet if it acts as an agent.
• An agent advertisement is piggybacked to the router advertisement packet.
• Mobile IP does not use a new packet type for agent advertisement; it uses the router advertisement packet of
ICMP, and appends an agent advertisement message
Agent Solicitation
• When a mobile host has moved to a new network and has not received
agent advertisements, it can initiate an agent solicitation. It can use the
ICMP solicitation message to inform an agent that it needs assistance.
• Registration
• The second phase in mobile communication is registration. After a
mobile host has moved to a foreign network and discovered the foreign
agent, it must register. There are four aspects of registration:
• 1. The mobile host must register itself with the foreign agent.
• 2. The mobile host must register itself with its home agent. This is
normally done by the foreign agent on behalf of the mobile host.
• 3. The mobile host must renew registration if it has expired.
• 4. The mobile host must cancel its registration (deregistration) when it
returns home.
• Request and Reply
• To register with the foreign agent and the home agent, the
mobile host uses a registration request and a registration
reply as shown in Figure 19.14.
• Registration Request A registration request is sent from the
mobile host to the foreign agent to register its care-of
address and also to announce its home address and home
agent address. The foreign agent, after receiving and
registering the request, relays the message to the home agent.
IPv6 ADDRESSING
Ch22
IPv6 Addressing
• The main reason for migration from IPv4 to IPv6 is the small size of the
address space in IPv4.
• An IPv6 address is 128 bits or 16 bytes (octets) long, four times the address
length in IPv4.
• 22.1.1 Representation
• Binary notation is used when the addresses are stored in a computer.
• The colon hexadecimal notation (or colon hex for short) divides the
address into eight sections, each made of four hexadecimal digits separated
by colons.
Abbreviation
• 340, 282, 366, 920, 938, 463, 374, 607, 431, 768, 211,
456.
• To give some idea about the number of addresses, we assume that
only 1/64 (almost 2 percent) of the addresses in the space can be
assigned to the people on planet Earth and the rest are reserved
for special purposes.
• We also assume that the number of people on the earth is soon to
be 2^(34) (more than 16 billion). Each person can have 288
addresses to use
Three Address Types
• Unicast Address
• A unicast address defines a single interface (computer or router). The
packet sent to a unicast address will be routed to the intended recipient.
• Anycast Address
• An anycast address defines a group of computers that all share a
single address. A packet with an anycast address is delivered to only
one member of the group, the most reachable one.
• Multicast Address
• A multicast address also defines a group of computers. However, there
is a difference between anycasting and multicasting. In anycasting, only
one copy of the packet is sent to one of the members of the group; in
multicasting each member of the group receives a copy.
• It is interesting that IPv6 does not define broadcasting, even in a limited
version. IPv6 considers broadcasting as a special case of multicasting.
22.1.3 Address Space Allocation
• Like the address space of IPv4, the address space of IPv6 is divided into several blocks
of varying size and each block is allocated for a special purpose.
Global Unicast Addresses
• 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 2^(125) bits.
• An address in this block is divided into three parts: global routing prefix (n bits), subnet
identifier (m bits), and interface identifier (q bits).
• The global routing prefix is used to route the packet through the Internet to the organization
site, such as the ISP that owns the block. Since the first three bits in this part are fixed (001),
the rest of the 45 bits can be defined for up to 245 sites.
• The next m bits (16 bits based on recommendation) define a subnet in an organization. This
means that an organization can have up to 216 = 65,536 subnets, which is more than enough.
• The last q bits (64 bits based on recommendation) define the interface identifier.
• The interface identifier is similar to hostid in IPv4 addressing, although the term interface
identifier is a better choice.
• In IPv4 addressing, there is not a specific relation between the hostid (at the IP level) and link-
layer address (at the data-link layer) because the link-layer address is normally much longer
than the hostid. The IPv6 addressing allows this relationship
Special Addresses
• Addresses that use the prefix (0000::/8) are reserved, but part of this block is
used to define some special addresses.
• The unspecified address is a subblock containing only one address, which is used
during bootstrap when a host does not know its own address and wants to send
an inquiry to find it (see DHCP section).
• The loopback address also consists of one address.
• Dthe transition from IPv4 to IPv6, hosts can use their IPv4 addresses embedded
in IPv6 addresses. Two formats have been designed for this purpose:
compatible and mapped.
• A compatible address is an address of 96 bits of zero followed by 32 bits of
IPv4 address. It is used when a computer using IPv6 wants to send a message to
another computer using IPv6.
• A mapped address is used when a computer already migrated to version 6
wants to send an address to a computer still using version 4.