Mobile Data Networking

Download Report

Transcript Mobile Data Networking

Mobile Data Networking

Prof. Ian W Marshall [email protected]

Mobile Data Services

Enhanced SMS & e-mailLocation ServicesMP3Find restaurant/garage/meTourist infoWho is that over thereLink to GISOperations managementWWW on the moveVoice over IP (VOIP)

MS ME SIM Radio Interface BSS

GSM Overview

AUC HLR VLR Fixed-mobile Interface EIR MSC PSTN AUC – authentication centre BSS – Base station system EIR – equipment identity register HLR – Home location register ME – mobile equipment MS – Mobile station MSC – Mobile switching centre OMC – Ops & Maintenance centre VLR – Visited location register

Wireless data?

Users want access to data while on the

move

BUT MS is not a PCWAP attempts a bridging capability

MS Gateway (coders & Decoders) Web server

Evolution

GSM –slow to connectRequires dispatch cache (only on for calls)GPRSAlways onMore bandwidth?More services3G mobileClient is a true PDAMore bandwidth (is it enough?)Still need internet gateways (inefficient routing)Probably expensive

Other options

IEEE 802.11 (Wavelan)10 Mbit/sLink layer onlyBluetoothSmall range (10m) & bandwidth (620K)InfraredLine of sight only, proprietary interfaces

DHCP

Dynamic host configuration protocolIETF RFC 2131 (and more recent extensions)Automatic allocation of reusable network

addresses

Additional configuration optionsAllows network layer mobilityClients can use network from anywhere (if

authorised)

Sessions (e.g. TCP not mobile – no handover)Servers do not have permanent addresses

Basic operation of DHCP

Client broadcasts DHCP discover messageRelay possible via BOOTP relayContacted servers respond with DHCP Offer

messages

Client picks a server and sends ( via broadcast)

DHCP request to identified server

Servers get message and identified server

responds with DHCP ack containing IP config details (or DHCP nack if request fails), and lease period

Client configures itselfClient either renews using DHCP request or

terminates using DHCP release

DHCP Schematic

Server A (not selected) Client Begins Server B (selected) DHCPDISCOVER DHCPDISCOVER Determines Config DHCPOFFER Determines Config Collects replies Selects config (& server) DHCPOFFER DHCPREQUEST Commits Config DHCPACK Initialises IP stack Shutdown DHCPRELEASE Discards Lease

DHCP Messages

Always broadcastAlways containMessage opcodeClient hardware addressMay containServer address and fully qualified DNS nameOffered IP addressImportant optionsGet specified addressAddress lease timeMTU size

Mobile IP

A protocol that enables hosts to move

from one IP subnet to another and yet

Always be reachablemaintain existing connections (but update is too

slow for real time handover).

• Layer 3 technology that can be used with any link-layer device, whether wired or wireless to enable transport layer mobility .

Salient features of Mobile IPv4

Mobile nodes (MN) can move from one IP subnet

to another.

Mobility support provided using home agents

(HA) and foreign agents (FA).

Employs protocol tunneling for data forwarding.Uses soft- state (time-outs and refreshes).Authentication using keyed MD5 (default).Changes required only at HA, FA, MN.

Components

Mobile nodeA node that changes its point of attachmentHome AgentA router with an interface on the mobile nodes home

link, and an enhanced datastore

» Advertises » Registers » Holds Care of Address » TunnelsForeign AgentA router on the mobile node’s foreign link » Advertises » Forwards registrations » DetunnelsCorrespondent node – a remote host

Agent Discovery

Provides current location and move detection

information for mobile nodes.

HA and FA transmit Agent Advertisements (1

hop ICMP messages - AAs) to advertise their services on a link.

MN deduces its current location based on the

presence/content of AAs.

If no AA received an agent solicitation message

(ICMP router solicitation with TTL=1) can be sent by MN

Discovery also possible using link layer

mechanisms where available

IP Header: IP(src)=agent’s address IP(dst)=broadcast IP(protocol)=ICMP Mobility Agent extension: Registration lifetime RBHF etc.

Care of address(es)

Agent Discovery

Public network Routers HA Home network CN MN FA Foreign Network MN examines adverts and decides whether home or away

Registration

Used to set up mobility states at HA, FA, MN.MN chooses CoA and sends Registration Request

message to FA (UDP).

FA relays the message to HA.HA sets up mobility state and sends

Registration Reply message (UDP)to FA.

FA then sets up mobility state and relays

message to MN.

Mobility states have finite lifetime and require

periodic refresh of registration messages.

If at home registration goes to HA. HA adjusts

state and replies to MN

Registration Messages

Registration request IP header (src, dst) UDP header (src = MN choice, dst=port 434) Type/bits/lifetime(secs) Home address Home agent Care of Address Registration ID (64 bit) Extensions (e.g. authent) Registration reply IP header (src, dst) UDP header (src=var, dstport=rqstsrc) Type/code/lifetime(secs) Home address Home agent Registration ID Extensions

Registration

CN HA Home network Public network Routers Reply Request MN FA Foreign Network

Data Forwarding (at home)

CN Public network Routers MN HA Home network FA Foreign Network

Data Forwarding (Away)

CN Public network Routers HA Home network IP/IP Tunnel MN FA Foreign Network

Tunnelling

Tunnel is a path followed by a packet

while encapsulated in the payload of a second packet

Encapsulating packet is a standard

packet addressed to FA Outer Header Header

Security

Registration message authentication

(keyed-MD5 is default).

Based on mobile security associationMN- HA key is compulsory.MN- FA, FA- HA keys are optional.

DHCP and security

Dynamic host configurationNo permanent IP addressMD5 key cannot be calculatedStill need to authenticate mobile hostNAIOriginally just for PPP hostsNow generalisedExtension to registration request

IPv6

32 bit -> 128 bit address spaceEnables big increase in no. of mobile hostsEnables permanent address allocationExtension headersAuthentication headerNeighbour discoveryAddress autoconfigurationDiscovery agent

Outline of operation (IPv6)

Mobile node determines location

(neighbour discovery, anycast)

Behaves like fixed node when at homeUses autoconfiguration to obtain care of

address (stateful or stateless)

Reports COA to selected correspondents

including home agent

New correspondents get update from

home agent (or use IPv4 mechanisms)

Example of route optimisation

2-Binding ack 1-Update CoA Mobile node 5-send more packets 3-send 1 st packet Home agent 4-update binding cache Correspondent node

Wireless IP?

Cellular IP –

www.ctr.columbia.edu/~andras/cellularip/

Ad-Hoc networks -

www.ietf.cnri.reston.va.us/html.charters/manet -charter.html

Programmable hardware & Soft radio –

klamath.stanford.edu/NetFPGA/ www.cis.upenn.edu/~boosters/ Or something over the horizon?

References

Mobile IP WG – http://www.ietf.org/

html.charters/mobileip-charter.html links to drafts on:

Route optimisationMobile IPv6Mobile IPv4Generalised NAIOther IETF drafts/RFCs are referencedMobile IP at NUS - http://mip.ee.nus.edu.sgCharles E. Perkins – Mobile IP: Design Principles

and Practices, Addison-Wesley, 1998

James D. Solomon – Mobile IP: The Internet

Unplugged, Prentice Hall, 1997