Docsity

Mobile Computing – Complete Notes and Study Material, Study notes of Mobile Computing

Toggle sidebar
bg1
Mobile Network Layer — Study Notes
MOBILE COMPUTING — NETWORK LAYER
Mobile Network Layer
A walkthrough of Mobile IP, how packets find a moving device, the MAC-layer
hidden/exposed terminal problems, and how routing protocols for wireless networks are
classified.
01 Why does plain IP break when a device moves?
An IP address does two jobs at once: it tells you who a device is, and it tells routers
where it is (through the network prefix). On a wired network this is fine because a
machine never changes location.
A mobile phone or laptop, though, keeps changing which network it is physically
plugged into or associated with — home Wi-Fi, office Wi-Fi, a cellular cell tower, an
airport hotspot. If it kept its original IP address, routers elsewhere would still send
packets to its old network, because that is what the address prefix says. If it took a new
address every time it moved, every ongoing connection (a call, a download, a TCP
session) would break, because the other side is still sending to the old address.
CORE PROBLEM IP addressing assumes a device’s location is fixed. Mobility means the device’s
point of attachment changes constantly, but everyone else on the internet should still be
able to reach it using one stable identity.
Mobile IP is the solution: a set of enhancements to IP that let a device keep one
permanent address for identity, while a second, temporary address quietly handles its
real, current location — invisible to the applications and to the other party in the
conversation.
02 Goals of Mobile IP
●Transparency. A mobile node should be reachable using the same address no
matter where it roams, and existing TCP connections should survive the move
without the application noticing.
●Compatibility. It must work with the existing IP standard, routers, and hosts that
know nothing about mobility — no re-engineering of the whole internet.
●Scalability & efficiency. The overhead added should stay small even as millions
of devices roam, and shouldn’t waste wireless bandwidth, the scarcest resource.
●Security. Registration messages must be authenticated, or anyone could hijack
another device’s traffic simply by claiming to be it.
●No changes to correspondent hosts. The machines a mobile device talks to
shouldn’t need any mobility-aware software at all.
03 Entities in Mobile IP
Mobile IP introduces a small cast of characters. Once these names are second nature,
the rest of the topic is just describing how they talk to each other.
1
pf3
pf4
pf5
pf8

Partial preview of the text

Download Mobile Computing – Complete Notes and Study Material and more Study notes Mobile Computing in PDF only on Docsity!

MOBILE COMPUTING — NETWORK LAYER

Mobile Network Layer

A walkthrough of Mobile IP, how packets find a moving device, the MAC-layer

hidden/exposed terminal problems, and how routing protocols for wireless networks are

classified.

01 Why does plain IP break when a device moves?

An IP address does two jobs at once: it tells you who a device is, and it tells routers where it is (through the network prefix). On a wired network this is fine because a machine never changes location. A mobile phone or laptop, though, keeps changing which network it is physically plugged into or associated with — home Wi-Fi, office Wi-Fi, a cellular cell tower, an airport hotspot. If it kept its original IP address, routers elsewhere would still send packets to its old network, because that is what the address prefix says. If it took a new address every time it moved, every ongoing connection (a call, a download, a TCP session) would break, because the other side is still sending to the old address. CORE PROBLEM IP addressing assumes a device’s location is fixed. Mobility means the device’s point of attachment changes constantly, but everyone else on the internet should still be able to reach it using one stable identity. Mobile IP is the solution: a set of enhancements to IP that let a device keep one permanent address for identity, while a second, temporary address quietly handles its real, current location — invisible to the applications and to the other party in the conversation.

02 Goals of Mobile IP

● Transparency. A mobile node should be reachable using the same address no matter where it roams, and existing TCP connections should survive the move without the application noticing. ● Compatibility. It must work with the existing IP standard, routers, and hosts that know nothing about mobility — no re-engineering of the whole internet. ● Scalability & efficiency. The overhead added should stay small even as millions of devices roam, and shouldn’t waste wireless bandwidth, the scarcest resource. ● Security. Registration messages must be authenticated, or anyone could hijack another device’s traffic simply by claiming to be it. ● No changes to correspondent hosts. The machines a mobile device talks to shouldn’t need any mobility-aware software at all.

03 Entities in Mobile IP

Mobile IP introduces a small cast of characters. Once these names are second nature, the rest of the topic is just describing how they talk to each other.

Term What it is Mobile Node (MN) The device that moves — phone, laptop, tablet — while keeping one permanent address. Home Network The network whose address range the MN's permanent address belongs to; its “home.” Home Address (HoA) The MN's permanent, stable IP address — what the rest of the world always uses to reach it. Home Agent (HA) A router on the home network that tracks where the MN currently is, and forwards packets to it when away. Foreign Network Any network the MN visits, other than its home network. Foreign Agent (FA) A router on the visited network that helps deliver tunneled packets to the visiting MN. Care-of Address (CoA) A temporary address showing where the MN currently is. Either the FA's address, or a temporary address leased to the MN itself (co-located CoA). Correspondent Node (CN) Whoever is communicating with the MN — it has no idea the MN is mobile. Fig 1 — The five entities: MN, Home Network/Agent, Foreign Network/Agent, and a CN that stays oblivious to all of it. The trick in one sentence: the MN's Home Address is its permanent postal address; the Care-of Address is like a “currently staying at this hotel” forwarding note that only the Home Agent needs to know about. 04 IP packet delivery — tunneling & triangular routing

Agent Advertisement

Home Agents and Foreign Agents periodically broadcast (or multicast) a special ICMP Router Advertisement message, extended with a Mobility Agent Advertisement Extension. It announces: ● One or more available Care-of Addresses at this agent. ● Whether the agent is a Home Agent, a Foreign Agent, or both. ● Flags such as whether the agent supports registration through it, whether encapsulation is required, and how long the advertisement is valid for (the lifetime). A listening MN compares the network prefix in the advertisement to its own home network prefix: ● If it matches the MN’s home network → the MN concludes it is at home, and uses no CoA at all. ● If it doesn’t match → the MN concludes it is on a foreign network, and picks up a CoA from the advertisement.

Agent Solicitation

Advertisements go out on a timer (commonly every few seconds), so a newly-arrived MN might have to wait. If it needs a CoA urgently and hasn’t heard an advertisement yet, it can actively broadcast an Agent Solicitation message, prompting any nearby agent to reply immediately with an advertisement. Fig 3 — Agents advertise on their own schedule; an impatient MN can solicit one immediately. 06 Registration Discovering a Care-of Address isn’t enough — the Home Agent still has no idea the MN is there. Registration is how the MN tells its Home Agent “forward my traffic to this Care-of Address from now on.”

1. The MN sends a Registration Request containing its Home Address, Home Agent address, the chosen CoA, and a requested lifetime, to the Foreign Agent (if using a foreign-agent CoA). 2. The FA checks the request and relays it on to the MN’s Home Agent.

3. The HA updates its internal mobility binding (Home Address ↔ current CoA), and sends back a Registration Reply — accept or deny, with a reason code if denied (e.g. lifetime too long, authentication failed, home network unreachable). 4. The FA relays the reply back to the MN. If the MN is using a co-located CoA (obtained directly, e.g. via DHCP on the foreign network), it can skip the FA and register with the HA directly. Registration has to be repeated before the lifetime expires, and every request/reply is authenticated (typically via a shared secret and a keyed hash) so that no one else can redirect the MN’s traffic by forging a registration. Fig 4 — Registration request/reply relayed through the Foreign Agent to the Home Agent and back. 07 Hidden terminal problem This is a wireless MAC-layer issue (not specific to Mobile IP, but always taught alongside the mobile network layer). It happens because radio range is limited, so not every node can hear every other node. Picture three nodes in a row: A — B — C. A and C are both within range of B (the middle node/access point), but A and C are too far apart to hear each other directly. ● A wants to send to B, senses the channel, hears nothing from C’s direction (it can’t hear C at all), assumes the channel is free, and transmits. ● At the same moment, C also wants to send to B. C likewise senses silence, assumes the channel is free, and transmits too. ● Both signals arrive at B simultaneously and collide. B receives garbage. Neither A nor C realizes a collision happened, because each was “blind” to the other. A is “hidden” from C’s point of view (and vice versa) — hence hidden terminal problem. Carrier sensing alone (like plain CSMA) cannot prevent this, because the interference happens at the receiver (B), not at the sender.

common receiver. Result: wasted transmissions, corrupted data. back a transmission that wouldn’t have collided. Result: wasted capacity, lower throughput. 09 Routing protocol classification Wireless/mobile networks (especially ad-hoc networks with no fixed infrastructure) need routing protocols that cope with topology that changes constantly. They’re usually grouped by when routes get computed. Fig 7 — The standard three-way split, with representative protocols under each branch.

1. Proactive / table-driven protocols

Every node continuously maintains a route to every other node, by periodically exchanging routing tables with neighbors — much like traditional wired routing (distance-vector or link-state). A route is instantly available whenever a packet needs to be sent. ● Pros: low latency when sending, since the route is already known. ● Cons: lots of control-message overhead maintaining routes that may never be used — wastes bandwidth and battery, worse as the network grows or moves faster. ● Examples: DSDV (Destination-Sequenced Distance Vector), OLSR (Optimized Link State Routing), WRP (Wireless Routing Protocol).

2. Reactive / on-demand protocols

A node does not maintain routes to destinations it isn’t currently talking to. When it has data to send, it floods a route-discovery request through the network, and a route is only built at that moment. ● Pros: much less routine overhead — bandwidth is spent only when actually needed. ● Cons: a delay (“route discovery latency”) before the first packet can be sent on a new route.

● Examples: AODV (Ad-hoc On-demand Distance Vector), DSR (Dynamic Source Routing), TORA (Temporally Ordered Routing Algorithm).

3. Hybrid protocols

Combine both ideas to balance the trade-off: proactive routing is used within a local zone around each node (nearby routes are instantly ready), while reactive, on-demand discovery is used for destinations outside that zone (avoiding network-wide overhead). ● Examples: ZRP (Zone Routing Protocol), ZHLS (Zone-based Hierarchical Link State).

Other ways protocols get classified

Beyond the proactive/reactive/hybrid split, exam questions sometimes ask about these overlapping angles: ● By network structure: flat routing (all nodes are peers) vs. hierarchical routing (nodes grouped into clusters/zones with cluster-heads). ● By routing information used: distance-vector (each node knows cost + next hop) vs. link-state (each node knows the whole topology). ● By addressing style: destination-based vs. source routing (DSR embeds the entire route in the packet header itself). ● By use of location information: geographic/position-based routing (uses GPS coordinates, e.g. for very large or fast-moving networks) vs. topology-based routing.