1. Introduction
A routing protocol is a set of rules used to find and maintain a path from a source node to a destination node.
In an Ad Hoc network, there is no fixed router or central routing system. Therefore, mobile nodes themselves participate in routing.
For example:
A → B → C → D
If A wants to send data to D, the routing protocol finds a suitable path:
A → B → C → D
Here, B and C act as intermediate nodes and forward the packets.
2. Why Routing is Difficult in Ad Hoc Networks
Routing in a normal wired network is relatively stable because routers usually remain in fixed locations.
In an ad hoc network:
- Nodes can move.
- Links can break.
- New nodes can join.
- Nodes can leave.
- Wireless bandwidth is limited.
- Battery power is limited.
- Network topology changes frequently.
For example:
Before:
A → B → C → D
After C moves away:
A → B C D
Old route is broken.
The routing protocol must find another route.
3. Classification of Routing Protocols
The most important classification is:
Routing Protocols
|
---------------------------
| | |
Proactive Reactive Hybrid
Routing Routing Routing
| | |
DSDV AODV ZRP
DSR
TORA
Let’s understand these three types.
4. Proactive Routing Protocols
Proactive protocols are also called Table-Driven Routing Protocols.
In this approach, every node maintains routing information about other nodes before it actually needs to send data.
Example: DSDV
DSDV = Destination-Sequenced Distance Vector
Suppose the network is:
A —— B —— C —— D
Each node maintains a routing table such as:
| Destination | Next Hop | Distance |
|---|---|---|
| B | B | 1 |
| C | B | 2 |
| D | B | 3 |
When A wants to send data to D, it already knows:
A → B → C → D
So there is no need to first discover the route.
Advantages
- Route is immediately available.
- Low delay when sending data.
- Suitable when communication is frequent.
Disadvantages
- Routing tables require regular updates.
- Generates control overhead.
- Wastes bandwidth if routes are not used.
- Less suitable for highly dynamic or very large networks.
5. Reactive Routing Protocols
Reactive protocols are also called On-Demand Routing Protocols.
A route is created only when a node actually needs it.
Important examples:
- AODV
- DSR
- TORA
5.1 AODV
AODV = Ad hoc On-Demand Distance Vector
AODV discovers a route only when required.
Suppose:
A → ? → ? → D
A wants to send data to D but does not know a route.
Step 1: Route Request
A broadcasts a RREQ (Route Request).
A
↓
RREQ
↓
B → C → D
Step 2: Route Reply
When D receives the request, it sends a RREP (Route Reply) back.
D → C → B → A
Step 3: Data Transmission
Now A can send:
A → B → C → D
Step 4: Route Error
If a link breaks:
A → B → C X D
AODV can generate a RERR (Route Error) and a new route can be discovered.
Advantages
- Routes created only when needed.
- Less routing overhead than proactive routing.
- Suitable for mobile networks.
Disadvantages
- Route discovery creates delay.
- RREQ packets can create overhead.
- Frequent topology changes can cause frequent route discovery.
6. DSR
DSR = Dynamic Source Routing
DSR is another reactive routing protocol.
The major difference is:
In DSR, the complete route is carried in the packet.
For example:
A → B → C → D
The packet may contain:
Source Route:
A → B → C → D
Each intermediate node follows the route specified in the packet.
Two important mechanisms of DSR
- Route Discovery
- Route Maintenance
Advantages
- No need for periodic routing advertisements.
- Useful for smaller ad hoc networks.
- Nodes can maintain multiple routes.
Disadvantages
- Packet headers can become large.
- Overhead increases as routes become longer.
- Less suitable for very large networks.
7. TORA
TORA = Temporally Ordered Routing Algorithm
TORA is a reactive routing protocol designed for highly dynamic ad hoc networks.
Its main objective is to quickly adapt when network topology changes.
It can:
- Create routes
- Maintain routes
- Repair broken routes
- Remove invalid routes
TORA attempts to localize the effect of a link failure rather than rebuilding the entire network route structure.
8. Hybrid Routing Protocols
Hybrid routing protocols combine:
Proactive + Reactive approaches
The main example is:
ZRP
ZRP = Zone Routing Protocol
The network is divided into zones around each node.
Zone around A
B
/ \
C A D
\ /
E
Routes to nearby nodes can be maintained proactively, while routes to distant nodes can be discovered reactively.
Advantages
- Combines benefits of proactive and reactive routing.
- Reduces unnecessary routing overhead.
- Can be suitable for larger networks.
Disadvantages
- More complicated.
- Performance depends on zone size.
9. Proactive vs Reactive vs Hybrid
| Feature | Proactive | Reactive | Hybrid |
|---|---|---|---|
| Other name | Table-driven | On-demand | Combination |
| Route creation | Before needed | When needed | Both |
| Route availability | Immediately | After discovery | Depends |
| Control overhead | High | Lower | Moderate |
| Initial delay | Low | Higher | Moderate |
| Example | DSDV | AODV, DSR, TORA | ZRP |
| Suitable for | Stable/frequent communication | Dynamic networks | Large/dynamic networks |
10. Important Routing Protocols
| Protocol | Full Form | Type | Main Feature |
|---|---|---|---|
| DSDV | Destination-Sequenced Distance Vector | Proactive | Maintains routing tables |
| AODV | Ad hoc On-Demand Distance Vector | Reactive | Discovers route when needed |
| DSR | Dynamic Source Routing | Reactive | Complete route in packet |
| TORA | Temporally Ordered Routing Algorithm | Reactive | Quickly adapts to topology changes |
| ZRP | Zone Routing Protocol | Hybrid | Combines proactive and reactive routing |
11. How Routing Works in an Ad Hoc Network
Suppose there are six nodes:
A —— B —— C
| |
D —— E —— F
A wants to send data to F.
The routing protocol may select:
A → B → C → F
or:
A → B → D → E → F
The selection can depend on:
- Number of hops
- Link quality
- Delay
- Congestion
- Energy
- Network conditions
12. Route Discovery and Route Maintenance
These are two very important concepts.
Route Discovery
Finding a path between source and destination.
Source → → → Destination
Find route
Example: AODV, DSR
Route Maintenance
Maintaining the route after it has been established.
If:
A → B → C → D
and C moves away:
A → B → C X D
the protocol must detect the broken link and find/repair another route.
13. Important Requirements of Ad Hoc Routing Protocols
A good ad hoc routing protocol should provide:
1. Adaptability
It should handle changing topology.
2. Low Overhead
It should minimize routing control packets.
3. Short Routes
Prefer efficient paths.
4. Low Delay
Data should reach the destination quickly.
5. Energy Efficiency
Important for battery-powered mobile nodes.
6. Scalability
Should work as the number of nodes increases.
7. Reliability
Should recover from broken links.
8. Security
Should protect routing information against attacks.
14. Routing vs MAC Protocol
Students often confuse these two.
| MAC Protocol | Routing Protocol |
|---|---|
| Controls access to wireless channel | Finds path between nodes |
| Answers “Who can transmit?” | Answers “Where should packet go?” |
| Works at Data Link/MAC layer | Works at Network layer |
| Examples: CSMA/CA, MACA | Examples: AODV, DSR, DSDV |
| Deals with collisions/channel access | Deals with paths/routes |
Easy way to remember:
MAC → Channel
Routing → Path
15. Simple Example for Examination
Suppose:
A —— B —— C —— D
A wants to send data to D.
With AODV:
A
↓
RREQ
↓
B → C → D
D
↓
RREP
↓
C → B → A
Data:
A → B → C → D
If C moves away:
A → B → C X D
AODV discovers a new route.
This shows why reactive routing is useful in mobile ad hoc networks.
⭐ Exam Summary
Definition
A routing protocol is a set of rules used to discover, establish, maintain and repair paths between source and destination nodes in a network.
Main classification:
Routing Protocols
|
┌────────────┼────────────┐
↓ ↓ ↓
Proactive Reactive Hybrid
↓ ↓ ↓
DSDV AODV, DSR, ZRP
TORA
Remember these:
- DSDV → Proactive → Routing table
- AODV → Reactive → Route on demand
- DSR → Reactive → Source route in packet
- TORA → Reactive → Dynamic topology
- ZRP → Hybrid → Zone-based
One-line memory trick:
Proactive = “Route पहले से तैयार”
Reactive = “जब जरूरत हो तब route बनाओ”
Hybrid = “दोनों का combination”
