Docsity

mobile computing mobile computing mobile computing mobile computing mobile computing mobile computing mobile computing mobile computing , Lecture notes of Computer Science

Toggle sidebar
bg1
IT1402 -MOBILE COMPUTING
UNIT IV
MOBILE NETWORK LAYER
Mobile IP – Dynamic Host Configuration Protocol - Routing – DSDV – DSR – Alternative Metrics
Mobile IP
A standard for mobile computing and networking
Computers doesn’t stay put.
Change location without restart its application or terminating any ongoing communication
IP Networking
Protocol layer
Network Layer
Transport Layer
What does IP do
moving packets from source to destination
No ’end-to-end’ guarantees
IP addresses
Network-prefix
Host portion
IP Routing
Packet Header
Network-prefix
Every node on the same link has the same network-prefix
Mobile IP Solves the following problems
f a node moves from one link to another without chnging its IP address, it will be unable to receive
packets at the new link; and
If a node moves from one link to another without chnging its IP address, it will be unable to receive
packets at the new link; and
Mobile IP Overview
PAGE 10
Vasantha Kumar .V Lecturer CSE
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download mobile computing mobile computing mobile computing mobile computing mobile computing mobile computing mobile computing mobile computing and more Lecture notes Computer Science in PDF only on Docsity!

IT1402 -MOBILE COMPUTING

UNIT IV

MOBILE NETWORK LAYER

Mobile IP – Dynamic Host Configuration Protocol - Routing – DSDV – DSR – Alternative Metrics

Mobile IP

A standard for mobile computing and networking

Computers doesn’t stay put.

Change location without restart its application or terminating any ongoing communication

IP Networking

Protocol layer Network Layer Transport Layer

What does IP do moving packets from source to destination No ’end-to-end’ guarantees

IP addresses Network-prefix Host portion

IP Routing Packet Header Network-prefix Every node on the same link has the same network-prefix

Mobile IP Solves the following problems

f a node moves from one link to another without chnging its IP address, it will be unable to receive packets at the new link; and If a node moves from one link to another without chnging its IP address, it will be unable to receive packets at the new link; and

Mobile IP Overview

PAGE 10

Solution for Internet

Scalable, robust, secure, maintain communication Use their permanent IP address

Routing protocol Route packets to nodes that could potentially change location very rapidly

Layer 4-7, outside Mobile IP, but will be of major interest

Mobile IP: Terminology

  • Mobile Node (MN)
    • node that moves across networks without changing its IP address
  • Correspondent Node (CN)
    • ost with which MN is “corresponding” (TCP)
  • Home Agent (HA)
    • host in the home network of the MN, typically a router
    • registers the location of the MN, tunnels IP packets to the COA
  • (^) Foreign Agent (FA)
    • host in the current foreign network of the MN, typically a router
    • forwards tunneled packets to the MN, typically the default router for MN
  • Care-of Address (COA)
    • address of the current tunnel end-point for the MN (at FA or MN)
    • actual location of the MN from an IP point of view

Tunneling

An encapsulating IP packet including a path and an original IP packet

IP-in-IP encapsulation

PAGE 10

  • mobile end-systems keep their IP address
  • continuation of communication after interruption of link possible
  • (^) point of connection to the fixed network can be changed

Compatibility

  • support of the same layer 2 protocols as IP
  • no changes to current end-systems and routers required
  • mobile end-systems can communicate with fixed systems

Security

  • authentication of all registration messages

Efficiency and scalability

  • only little additional messages to the mobile system required (connection typically via a low bandwidth radio link)
  • world-wide support of a large number of mobile systems in the whole
  • Internet

IPv6 availability

  • Generally available with (new) versions of most operating systems.
    • BSD, Linux 2.2 Solaris 8
  • An option with Windows 2000/NT
  • Most routers can support IPV
  • Supported in J2SDK/JRE 1.

IPv6 Design Issues

  • (^) Overcome IPv4 scaling problem
    • Lack of address space.
  • Flexible transition mechanism.
  • New routing capabilities.
  • Quality of service.
  • Security.
  • Ability to add features in the future.

Mobile ad hoc networks

Standard Mobile IP needs an infrastructure

  • Home Agent/Foreign Agent in the fixed network
  • DNS, routing etc. are not designed for mobility

Sometimes there is no infrastructure!

PAGE 10

  • remote areas, ad-hoc meetings, disaster areas
  • Cost can also be an argument against an infrastructure!
  • no default router available
  • every node should be able to forward

Traditional routing algorithms

Traditional algorithms are pro-active – i.e. operate independent of user-message demands. Suitable for wired networks.

Distance Vector

  • periodic exchange of messages with all physical neighbors that contain information about who can be reached at what distance
  • selection of the shortest path if several paths available Link State
  • periodic notification of all routers about the current state of all physical links
  • routers get a complete picture of the network Example
  • ARPA packet radio network (1973), DV-Routing, up to 138 nodes
  • every 7.5s exchange of routing tables including link quality
  • (^) updating of tables also by reception of packets
  • routing problems solved with limited flooding

Problems of traditional routing algorithms

Dynamics of the topology

  • Frequent changes of connections, connection quality, participants
  • Limited performance of mobile systems
  • (^) periodic updates of routing tables need energy without contributing to the transmission of user data; sleep modes difficult to realize
  • Limited bandwidth of the system is reduced even more due to the exchange of routing information
  • Links can be asymmetric, i.e., they can have a direction dependent transmission quality
  • Uncontrolled redundancy in links
  • (^) Interference – ‘unplanned links’ (advantage?)

PAGE 10

Configuration File

The first step in configuring a DHCP server is to create the configuration file that stores the network information for the clients. Global options can be declared for all clients, while other options can be declared for individual client systems. The configuration file can contain extra tabs or blank lines for easier formatting. Keywords are case- insensitive and lines beginning with a hash mark (#) are considered comments. Two DNS update schemes are currently implemented — the ad-hoc DNS update mode and the interim DHCP-DNS interaction draft update mode. If and when these two are accepted as part of the Internet Engineering Task Force (IETF) standards process, there will be a third mode — the standard DNS update method. The DHCP server must be configured to use one of the two current schemes. Version 3.0b2pl and previous versions used the ad-hoc mode; however, it has been deprecated.

There are two types of statements in the configuration file:

Parameters — State how to perform a task, whether to perform a task, or what network configuration options to send to the client.

Declarations — Describe the topology of the network, describe the clients, provide addresses for the clients, or apply a group of parameters to a group of declarations. Some parameters must start with the option keyword and are referred to as options. Options configure DHCP options; whereas, parameters configure values that are not optional or control how the DHCP server behaves.

In Example the routers , subnet-mask , domain-name , domain-name-servers , and time-offset options are used

for any host^ statements declared below it. Additionally, a subnet can be declared, a subnet declaration must be included for every subnet in the network. If it is not, the DHCP server fails to start.

In this example , there are global options for every DHCP client in the subnet and a range declared.

Clients are assigned an IP address within the range.

subnet 192.168.1.0 netmask 255.255.255.0 { option routers 192.168.1.254; option subnet-mask 255.255.255.0;

option domain-name "example.com"; option domain-name-servers 192.168.1.1;

option time-offset -18000; # Eastern Standard Time

range 192.168.1.10 192.168.1.100;

}

PAGE 10

DSR

Dynamic source routing

Split routing into discovering a path and maintaining a path

Discovering a path

Only if a path for sending packets to a certain destination is needed and no path is currently available (reactive algorithm)

Maintaining a path

Only while the path is in use: make sure that it can be used continuously

Path discovery

Broadcast a packet (Route Request) with destination address and unique ID

  • if a station receives a broadcast packet
  • if the station is the receiver (i.e., has the correct destination address) then return the packet to the sender (path was collected in the packet) F 0 7 Aif the packet has already been received earlier (identified via ID) then

Discard the packet

  • otherwise, append own address and broadcast packet
  • sender receives packet with the current path (address list)

Maintaining paths

  • After sending a packet
  • wait for a layer 2 acknowledgement (if applicable)
  • listen into the medium to detect if other stations forward the packet (if possible)
  • request an explicit acknowledgement
  • if a station encounters problems it can inform the sender of a packet or look-up a new path locally

ALTERNATIVE METRICS.

PAGE 10