Академический Документы
Профессиональный Документы
Культура Документы
Lecture#12
Traditional Routing
A routing protocol sets up a routing table in routers A node makes a local choice depending on global topology
Routing Table AT 1
Potential problems
Unreachable regions Routing loops
3
Tables
A
Dest. Next Metric A A 0 B B 1 C B 3
B
Dest. Next Metric A A 1 B B 0 C C 2
C
Dest. Next Metric A B 3 B B 2 C C 0
Update
A
Dest. Next Metric A A 0 B B 1 C B 3 2
B
Dest. Next Metric A A 1 B B 0 C C 1
C
Dest. Next Metric A B 3 2 B B 1 C C 0
New Node
broadcasts to update tables of C, B, A with new entry for D
(D, 0)
A
Dest. Next Metric A A 0 B B 1 C B 2 D B 3
B
Dest. Next Metric A A 1 B B 0 C C 1 D C 2
C
Dest. Next Metric A B 2 B B 1 C C 0 D D 1
Broken Link
A
Dest. Next Metric D B 3
B
Dest.c Next Metric D C 2
C
Dest. Next Metric B 1 D D
Loops
(D, 2)
(D, 2)
A
Dest. Next Metric D B 3
B
Dest. Next Metric D C 2
C
Dest. Next Metric D B 3
Count to Infinity
A
Dest. Next D B Metric 3, 5,
B
Dest.c Next Metric D C 2, 4, 6
C
Dest. Next Metric D B 3, 5,
MANETs are envisioned as being only stub network (at least for now)
Reduces power and processing demands Simplifies routing interaction Mobile IP allows connectivity with the traditional static Internet
10
MANET routing must rely on data link information, not just network layer updates
Link layer determines connectivity and quality of links
Centralized approaches are too slow and not robust enough for MANET All (or almost all) nodes in a MANET may be routers Long-lived circuits cannot be used in MANETs Path length (hop count) may not be the best metric for routing in MANETs
11
Issues
Frequent route changes
Amount of data transferred between route changes may be much smaller than traditional networks
12
Wired routing protocols have slow convergence, therefore, not suitable for ad hoc networks
Limited bandwidth
Imposes constraint on routing protocols in maintaining the topological information Frequent changes in topology makes it difficult to maintain a consistent view of the topological information
Require more control overhead which results in more BW wastage
13
Resource constraints
Battery life and processing power
Routing protocols must optimally used these resource
14
Adaptive to frequent topology changes Minimum route computation and maintenances Localized
Global state involves a huge state propagation control overhead
Loop free Free from stale route Unidirectional link support Packet collision minimum by limiting the broadcast Convergence must be quick Optimally use the resources Each node should try to store the stable route information only Provide certain level of QoS
15
End-to-end delay
External measure of routing effectiveness
Performance Factors
Network size
Number of nodes
Network connectivity
Average degree of a node
Link capacity
Effective data rate (bits/second) after affects of packet loss, coding, multiple access overhead, etc
Mobility
Model for node mobility
17
18
20
Protocol Trade-offs
Proactive protocols
Always maintain routes Little or no delay for route determination Consume bandwidth to keep routes up-to-date Maintain routes which may never be used
Reactive protocols
Lower overhead since routes are determined on demand Significant delay in route determination Employ flooding (global search) Control traffic may be bursty
Which approach achieves a better trade-off depends on the traffic and mobility patterns !!
22
It incorporates table updates with increasing sequence number tags to prevent loops, to counter the count-to-infinity problems, and for faster convergence Routing information is advertised by broadcasting or multicasting
Packets are transmitted periodically and incrementally
23
Route Advertisements
Data is kept for a length of time between the arrival of the first and the arrival of the best route
Advertisement of possibly unstable routes is delayed to reduce the number of rebroadcasts (damping fluctuations)
DSDV requires each mobile node to advertise its own routing table to each of its current neighbors Entries may change fairly dynamically Each mobile computer agrees to relay data packets to other computers upon request Mobile computer may exchange data with any other computer in a group
Even if the target is not within the range of direct communication
24
25
26
Route Advertisements
Advertise to each neighbor own routing information
Destination Address Metric = Number of Hops to Destination Destination Sequence Number Other info (e.g. hardware addresses)
Within the header of the packet, the transmitted route tables will also contain
Hardware address of transmitting node Network address of transmitting node
28
Table Entries
Destination A B C Next A B B Metric 0 1 3 Seq. Nr A-550 B-102 C-588 Install Time 001000 001200 001200 Stable Data Ptr_A Ptr_B Ptr_C
D-312
001200
Ptr_D
Problem
One way links
Receiving a packet does not indicate the existence of path back to that neighbor
Any route through the broken link is immediately assigned an and an updated sequence number
Sequence number is incremented by one Information describing a broken link is the only scenario in which sequence number is generated by any node other than destination
31
(D, 0, D-000)
A
Dest. Next Metric A A 0 B B 1 C B 2 Seq. A-550 B-104 C-590
B
Dest. Next Metric Seq. A A 1 A-550 B B 0 B-104 C C 1 C-590
C
Dest. Next Metric A B 2 B B 1 C C 0 D D 1 Seq. A-550 B-104 C-590 D-000
32
A
Dest. Next Metric A A 0 B B 1 C B 2 Seq. A-550 B-104 C-590
B
Dest. Next Metric Seq. A A 1 A-550 B B 0 B-102 C C 1 C-592 D C 2 D-000
C
Dest. Next Metric A B 2 B B 1 C C 0 D D 1 Seq. A-550 B-102 C-592 D-000
33
(D, 2, D-100)
(D, 2, D-100)
A
Dest. Next Metric
D B 3
B
Seq.
D-100
C
Seq.
D-100
Seq.
D-101
34
2. Immediate propagation C to B:
(update information has higher Seq. Nr. -> replace table entry)
(D, , D-101)
(D, , D-101)
A
Dest. Next Metric Seq. ... D B 4 D-100 3 D B D D
B
Dest.c Next Metric C C 3 2 Seq. ... D-100 D-101
C
Dest. Next Metric Seq. D B D-100 D 1 D D
D-101
D-101
35
Full/Incremental Update
Full Update
Send all of the routing information from own table Requires multiple Network Protocol Data Units (NPDU)
Incremental Update
Send only entries that have changed since last full Update Make it fit into one single packet
36
A route with sequence number equal to an existing route is chosen if it has a better metric
Older route may be discarded or stored as less preferable
37
38
11 Hops
10 Hops
(D,0,D-102)
This can happen every time D or any other node does its broadcast and lead to unnecessary route advertisements in the network, so called fluctuations
39
11 Hops
10 Hops
Summary
Advantages
Simple (almost like Distance Vector) Loop free through destination seq. numbers No latency caused by route discovery
Disadvantages
No sleeping nodes Bi-directional links required Overhead: most routing information never used Scalability is a major problem
41
Routers in STAR communicate their source routing trees to neighbors for all possible destinations
42
43
44
45
Route Maintenance
In the presence of a reliable broadcast mechanism, START assumes implicit route maintenance
Path breaks
The link update message about the unavailability of a next-hop node triggers an update message from a neighbor which has an alternate source tree indicating and alternate next-hop node to the destination
46
Route Maintenance
Handling the routing loops
When an intermediate node k receives a data packet to destination d, and one of the nodes in the packet`s traversed is present in node k`s path to the destination d, then it discards the packet and a RouteRepair update message is reliably sent to the node in the head of the route repair path The route repair path corresponds to the path k to x, where x is the last router in the data packet`s traversed path that is first found in the path k to d, that belongs to the source tree of k The RouteRepair packet contains the complete source tree of node k and the traversed path of the packet When an intermediate node receives a RouterRepair update message, it removes itself from the top of the route repair path and reliably sends it to the head of the route repair path
47
49
Advantages
Low communication overhead among all the table-driven routing protocols The use of LORA approach in this table-driven routing protocol reduces the average control overhead compared to several other ondemand routing protocols
50