How unit 3 is examined
This unit covers WLAN problems and 802.11, Mobile IP and ad hoc routing; the marks sit in Mobile IP terms, MAC problems, ad hoc networks, 802.11 architecture and AODV.
Transmission Medium For WLANs
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. A WLAN carries data between stations over infrared light or radio waves instead of cables.
Key points.
- Infrared needs line of sight, cannot pass walls and works only inside one room, but it is free of radio interference and licence.
- Radio in the licence-free 2.4 GHz and 5 GHz ISM bands passes through walls and gives longer range.
- Radio suffers interference from other devices, multipath fading and easy eavesdropping.
- Wireless links have higher error rates and lower bandwidth than wired links.
MAC problems
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Medium weight</span>
Definition. Wireless MAC problems are the difficulties in sharing one radio channel that wired CSMA/CD never faced, because a wireless node cannot hear every other node or its own collisions.
Key points.
- Hidden and exposed terminals make carrier sensing unreliable, so collisions occur or transmissions are wrongly blocked.
- Bandwidth is scarce and shared, so the protocol must have low overhead and waste little on control packets.
- Battery power is limited, so the protocol must let idle nodes sleep and avoid needless retransmissions.
- Mobility keeps changing who is in range, so neighbour information goes stale quickly.
- Without a base station, synchronisation and channel allocation must be distributed, with no central scheduler.
- Radio errors and a node's own strong signal drowning others (near-far) make collisions undetectable while sending.
Comparison: wired vs wireless media access.
| Basis | Wired (Ethernet) | Wireless (802.11) |
|---|---|---|
| Method | CSMA/CD | CSMA/CA with optional RTS/CTS |
| Collision | Detected while sending | Cannot be detected, so avoided |
| Sensing | Every node hears the cable | Range-limited: hidden and exposed nodes |
| Reliability | Rare errors, no ACK | High errors, link-layer ACK needed |
| Topology | Fixed | Changing with mobility |
| Related protocols | None | MACA, MACAW |
Answer frame. Open by defining an ad hoc network as infrastructure-less and mobile; list issues 1-6 with one sentence each; for the wired comparison use the table; close that MAC design must be distributed, collision-avoiding and power-saving.
Asked: [7 marks] (Dec 2020, Dec 2024) List and explain the issues in designing a MAC protocol for adhoc networks. How media access is different in wireless networks as compared to wired networks?
Hidden and Exposed terminals
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>
Definition. A hidden terminal is a node out of a sender's range that can still collide with it at a common receiver; an exposed terminal is a node that needlessly defers because it hears a neighbouring sender.
<figure class="ds-fig" style="margin:1.4rem 0;overflow-x:auto"><svg xmlns="http://www.w3.org/2000/svg" id="dsfig-u3-01" viewBox="0 0 424 80" width="424" height="80" role="img" aria-label="A and C are hidden from each other; both reach B. Exposed case: B sends to A, C hears B and wrongly waits though it could send to D."><style>#dsfig-u3-01 .e{stroke:#454C5A;stroke-width:1.4;fill:none}#dsfig-u3-01 .e.hi{stroke:#2340B8;stroke-width:2.6}#dsfig-u3-01 .n{fill:#FFFFFF;stroke:#16181D;stroke-width:1.4}#dsfig-u3-01 .n.hi{fill:#E3E9FC;stroke:#2340B8;stroke-width:2.2}#dsfig-u3-01 .n.rb-b{fill:#16181D;stroke:#16181D}#dsfig-u3-01 .n.rb-r{fill:#BD3227;stroke:#BD3227}#dsfig-u3-01 text{font-family:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;font-size:13px}#dsfig-u3-01 .t{fill:#16181D;font-weight:500}#dsfig-u3-01 .t.inv{fill:#FFFFFF;font-weight:700}#dsfig-u3-01 .kd{stroke:#16181D;stroke-width:1.2}#dsfig-u3-01 .dot{fill:#16181D}#dsfig-u3-01 .ann{fill:#2340B8;font-size:11px;font-weight:700}#dsfig-u3-01 .lbl{fill:#6F7787;font-family:system-ui,-apple-system,sans-serif;font-size:12px;font-weight:700}#dsfig-u3-01 .ptr{fill:#2340B8;font-size:12px;font-weight:700}#dsfig-u3-01 .ah{fill:#454C5A}#dsfig-u3-01 .ah.hi{fill:#2340B8}#dsfig-u3-01 .wl rect{fill:#FFFFFF;stroke:#DCE0E7}#dsfig-u3-01 .wl .t{font-size:12px;font-weight:700}#dsfig-u3-01 .wl.hi rect{fill:#2340B8;stroke:#2340B8}#dsfig-u3-01 .wl.hi .t{fill:#FFFFFF}html.dark #dsfig-u3-01 .e{stroke:#B1B7C3}html.dark #dsfig-u3-01 .e.hi{stroke:#8FA3FF}html.dark #dsfig-u3-01 .n{fill:#161920;stroke:#E6E8ED}html.dark #dsfig-u3-01 .n.hi{fill:#1E2748;stroke:#8FA3FF}html.dark #dsfig-u3-01 .n.rb-b{fill:#E6E8ED;stroke:#E6E8ED}html.dark #dsfig-u3-01 .n.rb-r{fill:#FF7E71;stroke:#FF7E71}html.dark #dsfig-u3-01 .t{fill:#E6E8ED}html.dark #dsfig-u3-01 .t.inv{fill:#0F1115}html.dark #dsfig-u3-01 .kd{stroke:#E6E8ED}html.dark #dsfig-u3-01 .dot{fill:#E6E8ED}html.dark #dsfig-u3-01 .ann{fill:#8FA3FF}html.dark #dsfig-u3-01 .lbl{fill:#858D9C}html.dark #dsfig-u3-01 .ptr{fill:#8FA3FF}html.dark #dsfig-u3-01 .ah{fill:#B1B7C3}html.dark #dsfig-u3-01 .ah.hi{fill:#8FA3FF}html.dark #dsfig-u3-01 .wl rect{fill:#161920;stroke:#2A2E37}html.dark #dsfig-u3-01 .wl.hi rect{fill:#8FA3FF;stroke:#8FA3FF}html.dark #dsfig-u3-01 .wl.hi .t{fill:#0F1115}</style><defs><marker id="ah2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah" d="M0,1 L9,5 L0,9 z"/></marker><marker id="ahh2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah hi" d="M0,1 L9,5 L0,9 z"/></marker></defs><path class="e" d="M59,40 L193,40"/><path class="e" d="M365,40 L231,40"/><circle class="n" cx="40" cy="40" r="18"/><text class="t" x="40" y="40" dy=".35em" text-anchor="middle">A</text><circle class="n" cx="212" cy="40" r="18"/><text class="t" x="212" y="40" dy=".35em" text-anchor="middle">B</text><circle class="n" cx="384" cy="40" r="18"/><text class="t" x="384" y="40" dy=".35em" text-anchor="middle">C</text></svg><figcaption style="font-size:.82em;opacity:.72;margin-top:.45rem">A and C are hidden from each other; both reach B. Exposed case: B sends to A, C hears B and wrongly waits though it could send to D.</figcaption></figure>
Key points.
- Hidden case: A and C both sense an idle channel, both send to B, and their frames collide at B.
- Exposed case: B is sending to A, C hears B and defers, although a transmission from C to D would not disturb A, so bandwidth is wasted.
- RTS/CTS reduces hidden collisions: the receiver's CTS is heard by the hidden node, which then stays silent.
- Near and far terminals: see the next topic.
Asked: [7 marks] (Dec 2020) Discuss hidden and exposed terminal problem and near and far terminal problem.
Near and Far terminals
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. The near-far problem is when a nearby terminal's strong signal drowns a distant terminal's weak signal at the receiver.
Key points.
- The receiver cannot decode the far node because signal strength falls with distance.
- It is severe in CDMA and spread-spectrum systems where all share one frequency.
- The fix is power control: the base station makes near nodes reduce transmit power so all signals arrive at similar strength.
- The related term is capture effect in 802.11.
Infrastructure and Ad hoc Networks
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Medium weight</span>
Definition. An infrastructure network communicates through a fixed access point; an ad hoc network is an infrastructure-less, self-organising set of mobile nodes that talk directly and relay for each other.
Key points.
- Ad hoc nodes act as both host and router, forwarding packets over multiple hops.
- Topology is dynamic because nodes move, join and leave.
- Setup is quick and cheap with no central administration, but bandwidth and battery are limited.
- Applications: battlefield, disaster relief, conferences, sensor and vehicular networks.
- Infrastructure MACs (such as PCF) rely on the AP to poll, allocate and synchronise, so they fail when no AP exists.
- Without central control, hidden and exposed terminals and changing neighbours cannot be handled by a coordinator, and contention and timing have to be distributed.
| Basis | Infrastructure network | Ad hoc network |
|---|---|---|
| Central unit | Access point / base station | None |
| Routing | By AP, single wireless hop | Multi-hop by nodes |
| Topology | Fixed backbone | Dynamic |
| Setup | Planned | Spontaneous |
| Control | Centralised | Distributed |
Answer frame. Open with the definition; draw the two topologies side by side; give the table, then applications; for the MAC justification, argue points 5 and 6 and close that ad hoc MACs must be distributed.
Asked: [7 marks] (Dec 2024) What are Adhoc networks? How are they different from traditional networks? Asked: [7 marks] (Jun 2025) Why "MAC protocol designed for infrastructure based wireless network may not work satisfactory in infrastructure less environment" - Justify?
IEEE 802.11- System arch
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>
Definition. The 802.11 architecture is built from stations (STA), access points (AP), basic service sets (BSS), an extended service set (ESS) and a distribution system (DS).
<figure class="ds-fig" style="margin:1.4rem 0;overflow-x:auto"><svg xmlns="http://www.w3.org/2000/svg" id="dsfig-u3-02" viewBox="0 0 596 252" width="596" height="252" role="img" aria-label="Two BSSs (AP1 with its stations, AP2 with its stations) joined by the DS form one ESS."><style>#dsfig-u3-02 .e{stroke:#454C5A;stroke-width:1.4;fill:none}#dsfig-u3-02 .e.hi{stroke:#2340B8;stroke-width:2.6}#dsfig-u3-02 .n{fill:#FFFFFF;stroke:#16181D;stroke-width:1.4}#dsfig-u3-02 .n.hi{fill:#E3E9FC;stroke:#2340B8;stroke-width:2.2}#dsfig-u3-02 .n.rb-b{fill:#16181D;stroke:#16181D}#dsfig-u3-02 .n.rb-r{fill:#BD3227;stroke:#BD3227}#dsfig-u3-02 text{font-family:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;font-size:13px}#dsfig-u3-02 .t{fill:#16181D;font-weight:500}#dsfig-u3-02 .t.inv{fill:#FFFFFF;font-weight:700}#dsfig-u3-02 .kd{stroke:#16181D;stroke-width:1.2}#dsfig-u3-02 .dot{fill:#16181D}#dsfig-u3-02 .ann{fill:#2340B8;font-size:11px;font-weight:700}#dsfig-u3-02 .lbl{fill:#6F7787;font-family:system-ui,-apple-system,sans-serif;font-size:12px;font-weight:700}#dsfig-u3-02 .ptr{fill:#2340B8;font-size:12px;font-weight:700}#dsfig-u3-02 .ah{fill:#454C5A}#dsfig-u3-02 .ah.hi{fill:#2340B8}#dsfig-u3-02 .wl rect{fill:#FFFFFF;stroke:#DCE0E7}#dsfig-u3-02 .wl .t{font-size:12px;font-weight:700}#dsfig-u3-02 .wl.hi rect{fill:#2340B8;stroke:#2340B8}#dsfig-u3-02 .wl.hi .t{fill:#FFFFFF}html.dark #dsfig-u3-02 .e{stroke:#B1B7C3}html.dark #dsfig-u3-02 .e.hi{stroke:#8FA3FF}html.dark #dsfig-u3-02 .n{fill:#161920;stroke:#E6E8ED}html.dark #dsfig-u3-02 .n.hi{fill:#1E2748;stroke:#8FA3FF}html.dark #dsfig-u3-02 .n.rb-b{fill:#E6E8ED;stroke:#E6E8ED}html.dark #dsfig-u3-02 .n.rb-r{fill:#FF7E71;stroke:#FF7E71}html.dark #dsfig-u3-02 .t{fill:#E6E8ED}html.dark #dsfig-u3-02 .t.inv{fill:#0F1115}html.dark #dsfig-u3-02 .kd{stroke:#E6E8ED}html.dark #dsfig-u3-02 .dot{fill:#E6E8ED}html.dark #dsfig-u3-02 .ann{fill:#8FA3FF}html.dark #dsfig-u3-02 .lbl{fill:#858D9C}html.dark #dsfig-u3-02 .ptr{fill:#8FA3FF}html.dark #dsfig-u3-02 .ah{fill:#B1B7C3}html.dark #dsfig-u3-02 .ah.hi{fill:#8FA3FF}html.dark #dsfig-u3-02 .wl rect{fill:#161920;stroke:#2A2E37}html.dark #dsfig-u3-02 .wl.hi rect{fill:#8FA3FF;stroke:#8FA3FF}html.dark #dsfig-u3-02 .wl.hi .t{fill:#0F1115}</style><defs><marker id="ah3" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah" d="M0,1 L9,5 L0,9 z"/></marker><marker id="ahh3" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah hi" d="M0,1 L9,5 L0,9 z"/></marker></defs><path class="e" d="M55.8,50.5 L153.2,115.5"/><path class="e" d="M55.8,201.5 L153.2,136.5"/><path class="e" d="M188,126 L279,126"/><path class="e" d="M317,126 L408,126"/><path class="e" d="M442.8,115.5 L540.2,50.5"/><path class="e" d="M442.8,136.5 L540.2,201.5"/><circle class="n" cx="40" cy="40" r="18"/><text class="t" x="40" y="40" dy=".35em" text-anchor="middle">S1</text><circle class="n" cx="40" cy="212" r="18"/><text class="t" x="40" y="212" dy=".35em" text-anchor="middle">S2</text><circle class="n" cx="169" cy="126" r="18"/><text class="t" x="169" y="126" dy=".35em" text-anchor="middle">AP1</text><circle class="n" cx="298" cy="126" r="18"/><text class="t" x="298" y="126" dy=".35em" text-anchor="middle">DS</text><circle class="n" cx="427" cy="126" r="18"/><text class="t" x="427" y="126" dy=".35em" text-anchor="middle">AP2</text><circle class="n" cx="556" cy="40" r="18"/><text class="t" x="556" y="40" dy=".35em" text-anchor="middle">S3</text><circle class="n" cx="556" cy="212" r="18"/><text class="t" x="556" y="212" dy=".35em" text-anchor="middle">S4</text></svg><figcaption style="font-size:.82em;opacity:.72;margin-top:.45rem">Two BSSs (AP1 with its stations, AP2 with its stations) joined by the DS form one ESS.</figcaption></figure>
Key points.
- A BSS is a group of stations under one AP; without an AP it is an independent (ad hoc) BSS.
- The DS (usually Ethernet) interconnects APs, and several BSSs joined by the DS form an ESS.
- Services: association, reassociation, authentication, distribution and integration to wired LANs.
- Infrastructure mode uses an AP; ad hoc mode lets stations talk directly.
Asked: [7 marks] (Jun 2025) Describe the architecture of IEEE 802.11 wireless LAN.
Protocol arch
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. 802.11 defines the bottom two OSI layers: a physical layer and a MAC sublayer under the 802.2 LLC.
Key points.
- The PHY has PLCP and PMD sublayers and does sensing and transmission.
- The MAC does access control, fragmentation and encryption.
- The station and DS management planes handle roaming and power saving.
Physical layer
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. The PHY transmits bits by infrared or by radio using FHSS, DSSS or OFDM.
Key points.
- FHSS hops among 79 channels of 1 MHz in the 2.4 GHz band, giving 1-2 Mbps.
- DSSS spreads each bit with an 11-chip Barker code; 802.11b reaches 11 Mbps.
- OFDM is used by 802.11a (5 GHz, up to 54 Mbps) and 802.11g (2.4 GHz).
Concept of spread spectrum
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. Spread spectrum spreads a signal over a much wider bandwidth than needed, using a code known to the receiver.
Key points.
- It resists narrow-band interference and jamming.
- It gives low probability of interception and multipath tolerance.
- DSSS multiplies data by a fast chip code; FHSS jumps between carrier frequencies in a pseudo-random pattern.
- Different codes let several users share a band (CDMA).
MAC and its management
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. The 802.11 MAC controls channel access with DCF (contention) and optional PCF (polled), and manages association and roaming.
Key points.
- DCF uses CSMA/CA: sense the medium for DIFS, back off a random time, send, and wait for an ACK.
- Interframe spaces order priority: SIFS is shortest, then PIFS, then DIFS.
- RTS/CTS with the NAV timer reserves the channel against hidden nodes.
- PCF lets the AP poll stations during contention-free periods.
- Management covers scanning, association, reassociation and synchronisation using beacons.
Power management
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. Power management lets stations sleep to save battery while the AP buffers their frames.
Key points.
- A station announces sleep by setting the power-management bit in its frame.
- The AP buffers frames for sleeping stations.
- Stations wake at each beacon and read the TIM to see whether frames wait for them.
- In ad hoc mode, ATIM windows serve the same purpose.
Security
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. WLAN security provides authentication and confidentiality over an open radio channel.
Key points.
- WEP uses the RC4 stream cipher with a shared key and a 24-bit IV; it is weak and easily broken.
- WPA fixed WEP with TKIP and per-packet keys.
- WPA2 (802.11i) uses AES-CCMP and 802.1X authentication.
- Other measures are SSID hiding and MAC filtering, which are weak.
Mobile IP: unsuitability of Traditional IP
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>
Definition. Mobile IP lets a host keep its IP address and stay reachable while moving between networks.
Key points.
- Traditional IP routes by the network prefix in the address, so a moved host with the same address gets no packets, and changing the address breaks TCP connections.
- Mobile IP solves this with a home agent, foreign agent, care-of address and tunneling.
- Problems: triangular routing (packets go via the home agent, replies go directly), handover latency, and security threats such as spoofed registration.
- Tunneling adds header overhead and reduces performance.
Asked: [7 marks] (Jun 2025) What is Mobile IP used for? What are the major problems of Mobile IP?
Goals, Terminology
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">High weight</span>
Definition. Mobile IP (RFC 3344) lets a mobile node move between networks while keeping one permanent IP address, transparently to TCP and applications.
<figure class="ds-fig" style="margin:1.4rem 0;overflow-x:auto"><svg xmlns="http://www.w3.org/2000/svg" id="dsfig-u3-03" viewBox="0 0 596 338" width="596" height="338" role="img" aria-label="CN Correspondent Node, HA Home Agent, FA Foreign Agent, MN Mobile Node. Packets go CN to HA, tunnelled to the care-of address at FA, then to MN; replies go directly."><style>#dsfig-u3-03 .e{stroke:#454C5A;stroke-width:1.4;fill:none}#dsfig-u3-03 .e.hi{stroke:#2340B8;stroke-width:2.6}#dsfig-u3-03 .n{fill:#FFFFFF;stroke:#16181D;stroke-width:1.4}#dsfig-u3-03 .n.hi{fill:#E3E9FC;stroke:#2340B8;stroke-width:2.2}#dsfig-u3-03 .n.rb-b{fill:#16181D;stroke:#16181D}#dsfig-u3-03 .n.rb-r{fill:#BD3227;stroke:#BD3227}#dsfig-u3-03 text{font-family:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;font-size:13px}#dsfig-u3-03 .t{fill:#16181D;font-weight:500}#dsfig-u3-03 .t.inv{fill:#FFFFFF;font-weight:700}#dsfig-u3-03 .kd{stroke:#16181D;stroke-width:1.2}#dsfig-u3-03 .dot{fill:#16181D}#dsfig-u3-03 .ann{fill:#2340B8;font-size:11px;font-weight:700}#dsfig-u3-03 .lbl{fill:#6F7787;font-family:system-ui,-apple-system,sans-serif;font-size:12px;font-weight:700}#dsfig-u3-03 .ptr{fill:#2340B8;font-size:12px;font-weight:700}#dsfig-u3-03 .ah{fill:#454C5A}#dsfig-u3-03 .ah.hi{fill:#2340B8}#dsfig-u3-03 .wl rect{fill:#FFFFFF;stroke:#DCE0E7}#dsfig-u3-03 .wl .t{font-size:12px;font-weight:700}#dsfig-u3-03 .wl.hi rect{fill:#2340B8;stroke:#2340B8}#dsfig-u3-03 .wl.hi .t{fill:#FFFFFF}html.dark #dsfig-u3-03 .e{stroke:#B1B7C3}html.dark #dsfig-u3-03 .e.hi{stroke:#8FA3FF}html.dark #dsfig-u3-03 .n{fill:#161920;stroke:#E6E8ED}html.dark #dsfig-u3-03 .n.hi{fill:#1E2748;stroke:#8FA3FF}html.dark #dsfig-u3-03 .n.rb-b{fill:#E6E8ED;stroke:#E6E8ED}html.dark #dsfig-u3-03 .n.rb-r{fill:#FF7E71;stroke:#FF7E71}html.dark #dsfig-u3-03 .t{fill:#E6E8ED}html.dark #dsfig-u3-03 .t.inv{fill:#0F1115}html.dark #dsfig-u3-03 .kd{stroke:#E6E8ED}html.dark #dsfig-u3-03 .dot{fill:#E6E8ED}html.dark #dsfig-u3-03 .ann{fill:#8FA3FF}html.dark #dsfig-u3-03 .lbl{fill:#858D9C}html.dark #dsfig-u3-03 .ptr{fill:#8FA3FF}html.dark #dsfig-u3-03 .ah{fill:#B1B7C3}html.dark #dsfig-u3-03 .ah.hi{fill:#8FA3FF}html.dark #dsfig-u3-03 .wl rect{fill:#161920;stroke:#2A2E37}html.dark #dsfig-u3-03 .wl.hi rect{fill:#8FA3FF;stroke:#8FA3FF}html.dark #dsfig-u3-03 .wl.hi .t{fill:#0F1115}</style><defs><marker id="ah4" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah" d="M0,1 L9,5 L0,9 z"/></marker><marker id="ahh4" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah hi" d="M0,1 L9,5 L0,9 z"/></marker></defs><path class="e" d="M55.2,51.4 L195.2,156.4" marker-end="url(#ah4)"/><path class="e hi" d="M231,169 L449,169" marker-end="url(#ahh4)"/><path class="e" d="M480.5,184.8 L544.4,280.5" marker-end="url(#ah4)"/><path class="e" d="M539,289.5 L58.8,49.4" marker-end="url(#ah4)"/><g class="wl"><rect x="116.4" y="95.5" width="19.2" height="18" rx="9"/><text class="t" x="126" y="104.5" dy=".35em" text-anchor="middle">1</text></g><g class="wl hi"><rect x="313.9" y="160" width="54.3" height="18" rx="9"/><text class="t" x="341" y="169" dy=".35em" text-anchor="middle">tunnel</text></g><g class="wl"><rect x="503.4" y="224.5" width="19.2" height="18" rx="9"/><text class="t" x="513" y="233.5" dy=".35em" text-anchor="middle">3</text></g><g class="wl"><rect x="288.4" y="160" width="19.2" height="18" rx="9"/><text class="t" x="298" y="169" dy=".35em" text-anchor="middle">4</text></g><circle class="n" cx="40" cy="40" r="18"/><text class="t" x="40" y="40" dy=".35em" text-anchor="middle">CN</text><circle class="n" cx="212" cy="169" r="18"/><text class="t" x="212" y="169" dy=".35em" text-anchor="middle">HA</text><circle class="n" cx="470" cy="169" r="18"/><text class="t" x="470" y="169" dy=".35em" text-anchor="middle">FA</text><circle class="n" cx="556" cy="298" r="18"/><text class="t" x="556" y="298" dy=".35em" text-anchor="middle">MN</text></svg><figcaption style="font-size:.82em;opacity:.72;margin-top:.45rem">CN Correspondent Node, HA Home Agent, FA Foreign Agent, MN Mobile Node. Packets go CN to HA, tunnelled to the care-of address at FA, then to MN; replies go directly.</figcaption></figure>
Key points.
- Goals: transparency to applications, compatibility with existing IP and hosts, and no need to change routers or correspondent nodes.
- Home network: the network whose prefix matches the mobile node's permanent address.
- Home address: the permanent IP address assigned to the node in its home network.
- Foreign network: any network the mobile node visits away from home.
- Foreign agent: a router on the foreign network that serves the visiting node, offers the care-of address and delivers tunnelled packets.
- Care-of address (COA): the temporary address marking the node's current location, either the foreign agent's address or a co-located address got by DHCP.
- Home agent: a router on the home network that registers the node's COA, intercepts its packets and tunnels them to the COA.
- Example: a laptop with home address 10.1.1.5 visits a foreign network, registers COA 20.2.2.1 with its home agent, and gets packets from correspondents by tunnel.
<mark>Mobile IP keeps the home address fixed and uses a care-of address and tunneling from the home agent to deliver packets to the moving node.</mark>
Answer frame. Open with the purpose of Mobile IP; define the six terms one line each in the order asked; draw the diagram, then show the registration and tunneling relationship with the example; close that the home address gives identity and the COA gives location.
Asked: [14 marks] (Dec 2020) Explain the following terms associated with mobile IP: Home Network, Home address, Foreign Network, Foreign Agent, Care of Address, Home Agent.
Agent advertisement and discovery
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. Agents announce their presence by periodic ICMP router advertisement messages with a mobility extension.
Key points.
- The message carries the COA, lifetime and flags marking a home or foreign agent.
- A node detects it has moved when it hears a foreign agent or stops hearing its home agent.
- A node may send an agent solicitation instead of waiting.
Registration
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. Registration tells the home agent the mobile node's current COA.
Key points.
- The node sends a registration request, directly or via the foreign agent, over UDP port 434.
- The home agent creates a binding of home address to COA and replies with a registration reply.
- Requests carry a lifetime and are authenticated with a shared secret to stop spoofing.
- On returning home, the node deregisters.
Tunneling techniques
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. Tunneling encapsulates the original packet inside a new IP packet addressed to the COA.
Key points.
- IP-in-IP adds a full outer header with source home agent and destination COA.
- Minimal encapsulation shrinks the added header.
- GRE is a more general encapsulation.
- At the tunnel end, the outer header is removed and the inner packet is delivered.
Ad hoc network routing: Ad hoc Network routing v/s Traditional IP routing
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. Ad hoc routing finds multi-hop paths between mobile nodes with no fixed routers.
Key points.
- Traditional routing assumes fixed routers, stable links and static topology; ad hoc topology changes constantly.
- Ad hoc nodes must be routers and periodic table exchange wastes bandwidth and battery.
- Ad hoc protocols therefore add on-demand discovery, sequence numbers and loop freedom.
- Traditional protocols like RIP and OSPF do not scale to such mobility.
types of routing protocols
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>
Definition. Ad hoc routing protocols are classified by when routes are found into proactive, reactive and hybrid.
Key points.
- Proactive (table-driven) protocols such as DSDV and OLSR keep routes to all nodes at all times, with low latency but high overhead.
- Reactive (on-demand) protocols such as AODV and DSR find a route only when needed, with low overhead but discovery delay.
- Hybrid protocols such as ZRP are proactive within a zone and reactive outside it.
| Class | Approach | Overhead | Latency | Examples |
|---|---|---|---|---|
| Proactive | Periodic table updates | High | Low | DSDV, OLSR |
| Reactive | Discovery on demand | Low | High first packet | AODV, DSR |
| Hybrid | Zone-based mix | Medium | Medium | ZRP |
Asked: [7 marks] (Dec 2024) Give a classification of Adhoc routing protocols.
Examples: OADV
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>
Definition. AODV (written OADV in the paper) is Ad hoc On-demand Distance Vector routing, a reactive protocol that discovers a route only when a source needs it.
Key points.
- Route discovery: the source broadcasts a route request (RREQ) carrying source and destination sequence numbers, and each node keeps a reverse route to the source.
- The destination, or a node with a fresh route, returns a unicast route reply (RREP) along the reverse path, setting up the forward route.
- Sequence numbers keep routes fresh and prevent loops.
- Maintenance: when a link breaks, the detecting node sends a route error (RERR) to sources, which rediscover the route.
- Example: S wants D via A and B; S floods RREQ, D replies RREP over B, A, S; if B-D breaks, B sends RERR and S floods again.
Asked: [7 marks] (Jun 2025) Explain the mechanism of OADV protocol with an example.
DSDV
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. DSDV is a proactive distance-vector protocol where every node keeps a table with a next hop and hop count to every destination.
Key points.
- Each entry carries a destination-generated sequence number, even when the route is valid and odd when broken.
- A higher sequence number wins; on equal numbers the shorter metric wins.
- Tables are exchanged by periodic full dumps and triggered incremental updates.
DSR
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. DSR is a reactive protocol using source routing, where the packet header lists the whole path.
Key points.
- Route discovery floods an RREQ that collects node addresses, and the RREP returns the full path.
- Nodes cache routes and intermediate nodes need no routing tables.
- Route errors remove broken routes from caches.
ZRP etc.
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. ZRP, the Zone Routing Protocol, is hybrid: proactive inside a zone of radius r hops and reactive between zones.
Key points.
- IARP keeps routes to nodes inside the zone.
- IERP discovers outside routes by bordercasting queries to border nodes.
- This reduces both table overhead and flooding.
Last-minute revision
- Hidden terminal: out of sender's range but collides at the receiver; exposed: needlessly defers.
- RTS/CTS reduces hidden-node collisions; near-far is fixed by power control.
- Wireless uses CSMA/CA because collisions cannot be detected.
- 802.11 has BSS, ESS, DS, AP and STA; ad hoc mode is an IBSS.
- SIFS < PIFS < DIFS.
- WEP uses RC4; WPA2 uses AES-CCMP.
- Mobile IP terms: home address is identity, care-of address is location.
- Registration uses UDP port 434; tunneling is IP-in-IP.
- Mobile IP problems: triangular routing, handover latency, security.
- Proactive: DSDV, OLSR; reactive: AODV, DSR; hybrid: ZRP.
- AODV uses RREQ, RREP and RERR with sequence numbers.
Memory hooks
- HEN: Home agent, Encapsulate, Notify (registration) for Mobile IP.
- Hidden hears nothing, exposed hears too much.
- Proactive = Prepared tables; Reactive = Request when needed.
- RRR for AODV: Request, Reply, Error.
Coverage checklist
- Transmission Medium For WLANs: no past questions.
- MAC problems: MAC issues in ad hoc networks; wired vs wireless media access (Dec 2020, Dec 2024).
- Hidden and Exposed terminals: hidden, exposed and near-far discussion (Dec 2020).
- Near and Far terminals: covered in the hidden and exposed question.
- Infrastructure and Ad hoc Networks: what are ad hoc networks (Dec 2024); MAC for infrastructure-less (Jun 2025).
- IEEE 802.11- System arch: 802.11 architecture (Jun 2025).
- Protocol arch: no past questions.
- Physical layer: no past questions.
- Concept of spread spectrum: no past questions.
- MAC and its management: no past questions.
- Power management: no past questions.
- Security: no past questions.
- Mobile IP: unsuitability of Traditional IP: uses and problems of Mobile IP (Jun 2025).
- Goals, Terminology: Mobile IP terms (Dec 2020).
- Agent advertisement and discovery: no past questions.
- Registration: no past questions.
- Tunneling techniques: no past questions.
- Ad hoc network routing: Ad hoc Network routing v/s Traditional IP routing: no past questions.
- types of routing protocols: classification of ad hoc routing (Dec 2024).
- Examples: OADV: AODV mechanism (Jun 2025).
- DSDV: no past questions.
- DSR: no past questions.
- ZRP etc.: no past questions.