Dynamic Source Routing Protocol
Dynamic Source Routing Protocol
Bachelor of Engineering
(Computer Engineering )
By
Pranav Bhujle
Ashish Mathew
Aditya Prasad
Pankajkumar Thakur
The routing problem in a real ad hoc network may be even more complicated than this
example suggests, due to the inherent non uniform propagation characteristics of wireless
transmissions and since any or all of the hosts involved may move at any time.
The Dynamic Source Routing protocol (DSR) [3][1] is a simple and efficient routing
protocol designed specifically for use in multi-hop wireless ad hoc networks of mobile nodes.
Using DSR, the network is completely self-organizing and self-configuring, requiring no
existing network infrastructure or administration. Network nodes (computers) cooperate to
forward packets for each other to allow communication over multiple “hops” between nodes
not directly within wireless transmission range of one another. As nodes in the network move
about or join or leave the network, and as wireless transmission conditions such as sources of
interference change, all routing is automatically determined and maintained by the DSR
routing protocol. Since the number or sequence of intermediate hops needed to reach any
destination may change at any time, the resulting network topology may be quite rich and
rapidly changing.
The DSR protocol allows nodes to dynamically discover a source route across multiple
network hops to any destination in the ad hoc network. Each data packet sent then carries in
its header the complete ordered list of nodes through which the packet must pass, allowing
packet routing to be trivially loop-free and avoiding the need for up-to-date routing
information in the intermediate nodes through which the packet is forwarded. By including
this source route in the header of each data packet, other nodes forwarding or overhearing any
of these packets may also easily cache this routing information for future use. This DSR
protocol is a part of the Monarch Project at Carnegie Mellon University [3], a long-term
research project that is developing networking protocols and protocol interfaces to allow truly
seamless wireless and mobile networking. The Monarch Project is named in reference to the
migratory behaviour of the monarch butterfly, and can also be considered as an acronym for
“Mobile Networking Architectures.” The scope of the research includes protocol design,
implementation, performance evaluation, and usage-based validation, spanning areas ranging
roughly from portions of the ISO Data Link layer (layer 2) through the Presentation layer
(layer 6).
Comparing DSR protocol to other ad-hoc network protocols, it is a routing protocol that
had very low overhead yet was able to react quickly to changes in the network, providing
highly reactive service to help ensure successful delivery of data packets in spite of node
movement or other changes in network conditions. The protocol specification for DSR has
also been submitted to the Internet Engineering Task Force (IETF), the principal protocol
standards development body for the Internet, and is currently one of the protocols under
consideration in the IETF Mobile Ad Hoc Networks (MANET) Working Group for adoption
as an Internet Standard for IP routing in ad hoc networks.
This paper describes the design of the DSR protocol. Literature Survey and related work
on the DSR protocol is described in Section 2. Section 3 of this paper discusses our
assumptions in the design of DSR. In Section 4, we present the design of the DSR protocol
and describe the resulting important properties of this design. In particular, we describe here
the design of the two mechanisms that make up the operation of DSR, Route Discovery and
Route Maintenance; we also discuss the use of DSR in supporting heterogeneous networks
and interconnecting to the Internet, and describe the current support present in DSR for
routing of multicast packets in ad hoc networks. We also discuss the header format of the
DSR protocol.
2. LITERATURE SURVEY AND RELATED WORK
Research in the area of routing in multi-hop wireless ad hoc networks dates back at least to
1973, when the U.S. Defence Advanced Research Projects Agency (DARPA) began the
Packet Radio Network (PRNET) project. PRNET and its successor, the Survivable Adaptive
Networks (SURAN)project, generated a substantial number of fundamental results in this
area. With the increasing capabilities and decreasing costs of small, portable computers such
as laptops and PDAs (Personal Digital Assistants), and with the increasing availability of
inexpensive wireless network interface devices such as wireless LAN interfaces packaged as
PCMCIA PC Cards, a growing number of other research projects in ad hoc networking have
developed.
In our literature survey here, we concentrate on research specifically related to the DSR
protocol. The initial design of the DSR protocol, including our basic Route Maintenance and
Route Discovery mechanisms, was first published in December 1994, with significant
additional design details and initial simulation results published in early 1996 [3]. As noted in
Section 1, the design specification for DSR has also been submitted to the MANET (Mobile
Ad Hoc Networks) Working Group of the IETF (Internet Engineering Task Force) in their
efforts to standardize a protocol for routing of IP packets in an ad hoc network [1].The
original motivation in the design of DSR came from the operation of the Address Resolution
Protocol (ARP) used in the TCP/IP suite of protocols in the Internet. ARP is used on
Ethernets and other types of networks to find the link-layer MAC address of a node on the
same subnet as the sender.
A node sending a packet to a local IP address for which it does not yet have the MAC
address cached, broadcasts an ARP REQUEST packet on the local subnet link, giving the IP
address of the node it is looking for; that node responds with an ARP REPLY packet, giving
its MAC address, and all other nodes ignore the REQUEST. If all nodes in an ad hoc network
are within wireless transmission range of each other, this is the only routing protocol needed
for the ad hoc network. DSR extends this basic behaviour of ARP by allowing the REQUEST
packet (the ROUTE REQUEST rather than an ARP REQUEST) to be propagated multiple
hops away by being forwarded by neighbour nodes, with the ultimate ROUTE REPLY being
returned over multiple hops back to the initiator of the REQUEST.
DSR’s non propagating ROUTE REQUEST packets are indeed quite similar to the basic
ARP REQUEST behaviour, except that a mobile node may answer the ROUTEREQUEST
from its cache, whereas ARP REQUESTS are normally only answered by the target node
itself. The original implementation of DSR in 1997 also was structured as an extension of
ARP, integrated into the existing ARP implementation in the FreeBSD Unix kernel
[FreeBSD], using an extension of the ARP REQUEST and ARP REPLY packet formats; as
described in Sections 4.8, however, it was ultimately decided to operate DSR at the network
layer rather than at the link layer, to allow routing between different heterogeneous networks
all forming a single ad hoc network.
DSR is also similar in approach to the source routing discovery mechanism used in the
IEEE 802 SRT bridge standard, and related mechanisms have also been used in other systems
including FLIP and SDRP. The amateur radio community has also worked extensively with
routing in wireless networks of (sometimes) mobile hosts, holding an annual packet radio
computer networking conference sponsored by the American Radio Relay League (ARRL)
since 1981. Amateur packet radio networking originally used only source routing, with
explicit source routes constructed by the user, although some had considered the possibility
of a more dynamic source routing scheme. A system known as NET/ROM was also
developed to allow the routing decisions to be automated, using a form of distance vector
routing protocol rather than source routing. NET/ROM also allows updating of its routing
table based on the source address information in the headers of packets that it receives [6].
Recently, a number of other protocols have been structured around mechanisms similar
to the Route Discovery and Route Maintenance mechanisms in DSR. For example, the Signal
Stability-Based Adaptive routing protocol (SSA) and the Associativity Based Routing
protocol (ABR) each discover routes on demand in a way similar to Route Discovery in DSR,
but each attempts to select only long-lived links between nodes where possible; favouring
long-lived links helps avoid routes breaking soon after discovering them but may result in use
of routes over a greater number of hops than the shortest routes available. ABR also adds
overhead for periodic beacon packets required to monitor link stability. The Ad Hoc On-
Demand Distance Vector routing protocol (AODV) [4] uses mechanisms similar to DSR’s
Route Discovery and Route Maintenance, but it uses them to create hop-by-hop routes rather
than source routes as is done in DSR; this use of hop-by-hop routes avoids the source routing
header overhead of DSR but prevents or makes difficult many of the route caching and other
Route Discovery optimizations present in DSR and prevents AODV from supporting uni-
directional links between nodes. The Zone Routing Protocol (ZRP) defines a “routing zone”
around each individual node, with a periodic (proactive) protocol such as distance vector or
link state for routing within a zone and a non-demand protocol such as DSR for routing
between zones; the use of routing zones reduces some aspects of the overhead of the Route
Discovery procedure as in DSR but adds the overhead of maintaining zone membership and
routing information within each zone. ZRP may also fail at times to successfully deliver
packets with highly mobile nodes, since the routing protocol within a zone does not utilize
on-demand operation.
Finally, DSR has recently been used as a basis for further work by other researchers,
including suggested improvements to the Route Discovery mechanism. For example, Ko and
Vaidya [6] have proposed an optimization to Route Discovery, known as Location-Aided
Routing (LAR), that uses knowledge of the physical (geographical) location of the target
node of the Route Discovery (e.g., from GPS, the Global Positioning System) to narrow the
area of the network over which the ROUTE REQUEST packets must be propagated.
Castãneda and Das [2] have proposed a similar Route Discovery optimization that uses only
logical (topological) location information, not physical location information, and thus does
not require access to GPS. Above the routing layer, Holland and Vaidya [6] have recently
studied the behaviour of TCP in ad hoc networks, using DSR as a routing protocol; their
work added explicit interaction between TCP and the Route Discovery and Route
Maintenance mechanisms to allow TCP to correctly react to a route failure rather than
treating it as network congestion, and to allow TCP to restart sending as soon as a new route
to the destination is discovered.
3. ASSUMPTIONS
We assume that all nodes wishing to communicate with other nodes within the ad hoc
network are willing to participate fully in the protocols of the network. In particular, each
node participating in the network should also be willing to forward packets for other nodes in
the network.
We refer to the minimum number of hops necessary for a packet to reach from any node
located at one extreme edge of the ad hoc network to another node located at the opposite
extreme, as the diameter of the ad hoc network. We assume that the diameter of an ad hoc
network will often be small (e.g., perhaps 5 or 10 hops), but may often be greater than 1.
Packets may be lost or corrupted in transmission on the wireless network. A node
receiving a corrupted packet can detect the error and discard the packet.
Nodes within the ad hoc network may move at any time without notice, and may even
move continuously, but we assume that the speed with which nodes move is moderate with
respect to the packet transmission latency and wireless transmission range of the particular
underlying network hardware in use. In particular, DSR can support very rapid rates of
arbitrary node mobility, but we assume that nodes do not continuously move so rapidly as to
make the flooding of every individual data packet the only possible routing protocol.
We assume that nodes may be able to enable promiscuous receive mode on their wireless
network interface hardware, causing the hardware to deliver every received packet to the
network driver software without filtering based on link-layer destination address. Although
we do not require this facility, it is, for example, common in current LAN hardware for
broadcast media including wireless, and some of our optimizations can take advantage of its
availability. Use of promiscuous mode does increase the software overhead on the CPU, but
we believe that wireless network speeds are more the inherent limiting factor to performance
in current and future systems; we also believe that portions of the protocol are suitable for
implementation directly within a programmable network interface unit to avoid this overhead
on the CPU [3]. Use of promiscuous mode may also increase the power consumption of the
network interface hardware, depending on the design of the receiver hardware, and in such
cases, DSR can easily be used without the optimizations that depend on promiscuous receive
mode, or can be programmed to only periodically switch the interface into promiscuous
mode.
Wireless communication ability between any pair of nodes may at times not work
equally well in both directions, due for example to differing antenna or propagation patterns
or sources of interference around the two nodes. That is, wireless communications between
each pair of nodes will in many cases be able to operate bi-directionally, but at times the
wireless link between two nodes may be only uni-directional, allowing one node to
successfully send packets to the other while no communication is possible in the reverse
direction. Although many routing protocols operate correctly only over bidirectional links,
DSR can successfully discover and forward packets over paths that contain uni-directional
links. Some MAC protocols, however, such as MACA, MACAW, or IEEE802.11 [5], limit
unicast data packet transmission to bi-directional links, due to the required bidirectional
exchange of RTS and CTS packets in these protocols and due to the link-level
acknowledgement feature in IEEE 802.11; when used on top of MAC protocols such as these,
DSR can take advantage of additional optimizations, such as the route reversal optimization
described below.
Each node selects a single IP address by which it will be known in the ad hoc network.
Although a single node may have many different physical network interfaces, which in a
typical IP network would each have a different IP address, we require each node to select one
of these and to use only that address when participating in the DSR protocol. This allows
each node to be recognized by all other nodes in the ad hoc network as a single entity
regardless of which network interface they use to communicate with it. In keeping with the
terminology used by Mobile IP [3], we refer to the address by which each mobile node is
known in the ad hoc network as the node’s home address, as this address would typically be
the address that the node uses while connected to its home network (rather than while away,
being a member of the ad hoc network). Each node’s home address may be assigned by any
mechanism (e.g., static assignment or use of DHCP for dynamic assignment), although the
method of such assignment is outside the scope of the DSR protocol.
4. DETAILED DESCRIPTION OF THE DSR PROTOCOL
through which this particular copy of the ROUTE REQUEST message has been forwarded.
This route record is initialized to an empty list by the initiator of the Route Discovery.
When another node receives a ROUTE REQUEST, if it is the target of the Route
Discovery, it returns a ROUTE REPLY message to the initiator of the Route Discovery,
giving a copy of the accumulated route record from the ROUTE REQUEST; when the
initiator receives this ROUTE REPLY, it caches this route in its Route Cache for use in
sending subsequent packets to this destination. Otherwise, if this node receiving the ROUTE
REQUEST has recently seen another ROUTE REQUEST message from this initiator bearing
this same request id, or if it finds that its own address is already listed in the route record in
the ROUTE REQUEST message, it discards the REQUEST. Otherwise, this node appends its
own address to the route record in the ROUTE REQUEST message and propagates it by
transmitting it as a local broadcast packet (with the same request id).
In returning the ROUTE REPLY to the initiator of the Route Discovery, such as node E
replying back to Ain Figure 1, node E will typically examine its own Route Cache for a route
back to A, and if found, will use it for the source route for delivery of the packet containing
the ROUTE REPLY. Otherwise, E may perform its own Route Discovery for target node A,
but to avoid possible infinite recursion of Route Discoveries, it must piggy back this ROUTE
REPLY on its own ROUTE REQUEST message for A. It is also possible to piggy back other
small data packets, such as a TCP SYN packet, on a ROUTE REQUEST using this same
mechanism. Node E could also simply reverse the sequence of hops in the route record that it
trying to send in the ROUTE REPLY, and use this as the source route on the packet carrying
the ROUTE REPLY itself. For MAC protocols such as IEEE 802.11 that require a bi-
directional frame exchange as part of the MAC protocol [5], this route reversal is preferred as
it avoids the overhead of a possible second Route Discovery, and it tests the discovered route
to ensure it is bi-directional before the Route Discovery initiator begins using the route.
However, this technique will prevent the discovery of routes using uni-directional links. In
wireless environments where the use of uni-directional links is permitted, such routes may in
some cases be more efficient than those with only bi-directional links, or they may be the
only way to achieve connectivity to the target node.
When initiating a Route Discovery, the sending node saves a copy of the original packet
in a local buffer called the Send Buffer. The Send Buffer contains a copy of each packet that
cannot be transmitted by this node because it does not yet have a source route to the packet’s
destination. Each packet in the Send Buffer is stamped with the time that it was placed into
the Buffer and is discarded after residing in the Send Buffer for some timeout period; if
necessary for preventing the Send Buffer from overflowing, a FIFO or other replacement
strategy can also be used to evict packets before they expire.
While a packet remains in the Send Buffer, the node should occasionally initiate a new
Route Discovery for the packet’s destination address. However, the node must limit the rate
at which such new Route Discoveries for the same address are initiated, since it is possible
that the destination node is not currently reachable. In particular, due to the limited wireless
transmission range and the movement of the nodes in the network, the network may at times
become partitioned, meaning that there is currently no sequence of nodes through which a
packet could be forwarded to reach the destination. Depending on the movement pattern and
the density of nodes in the network, such network partitions may be rare or may be common.
If a new Route Discovery was initiated for each packet sent by a node in such a situation,
a large number of unproductive ROUTE REQUEST packets would be propagated throughout
the subset of the ad hoc network reachable from this node. In order to reduce the overhead
from such Route Discoveries, we use exponential back-off to limit the rate at which new
Route Discoveries may be initiated by any node for the same target. If the node attempts to
send additional data packets to this same node more frequently than this limit, the subsequent
packets should be buffered in the Send Buffer until a ROUTE REPLY is received, but the
node must not initiate a new Route Discovery until the minimum allowable interval between
new Route Discoveries for this target has been reached. This limitation on the maximum rate
of Route Discoveries for the same target is similar to the mechanism required by Internet
nodes to limit the rate at which ARP REQUESTs are sent for any single target IP address.
Figure 3: Route Maintenance example: Node C is unable to forward a packet from A to E
over its link to next hop D.
increases the probability that the resulting route is valid, since F in this case should have
received a ROUTE ERROR if the route had previously stopped working. Second, this
limitation means that a ROUTE ERROR traversing the route is very likely to pass through
any node that sent the ROUTE REPLY for the route (including F), which helps to ensure that
stale data is removed from caches (such as at F) in a timely manner. Otherwise, the next
Route Discovery initiated by A might also be contaminated by a ROUTE REPLY from F
containing the same stale route. If the ROUTE REQUEST does not meet these restrictions,
the node (node F in this example) discards the ROUTE REQUEST rather than replying to it
or propagating it.
Normally, they would all attempt to reply from their own Route Caches, and would all send
their REPLYs at about the same time since they all received the broadcast ROUTE
REQUEST at about the same time. Such simultaneous replies from different nodes all
receiving the ROUTE REQUEST may create packet collisions among some or all of these
REPLIES and may cause local congestion in the wireless network. In addition, it will often
be the case that the different replies will indicate routes of different lengths, as shown in this
example. If a node can put its network interface into promiscuous receive mode, it should
delay sending its own ROUTE REPLY for a short period, while listening to see if the
initiating node begins using a shorter route first. That is, this node should delay sending its
own ROUTE REPLY for a random period d H _ _h _ 1 _ r_, where h is the length in
number of network hops for the route to be returned in this node’s ROUTE REPLY, r is a
random number between 0 and 1, and H is a small constant delay (at least twice the
maximum wireless link propagation delay) to be introduced per hop. This delay effectively
randomizes the time at which each node sends its ROUTE REPLY, with all nodes sending
ROUTE REPLYs giving routes of length less than h sending their REPLYs before this node,
and all nodes sending ROUTE REPLYs giving routes of length greater than h sending their
REPLYs after this node. Within the delay period, this node promiscuously receives all
packets, looking for data packets from the initiator of this Route Discovery destined for the
target of the Discovery. If such a data packet received by this node during the delay period
uses a source route of length less than or equal to h, this node may infer that the initiator of
the Route Discovery has already received a ROUTE REPLY giving an equally good or better
route. In this case, this node cancels its delay timer and does not send its ROUTE REPLY for
this Route Discovery.
ROUTE ERROR by replacing the original source route on the packet with the route from its
Route Cache. The node then forwards the packet to the next node indicated along this source
route. For example, in Figure 3, if node C has another route cached to node E, it can salvage
the packet by applying this route to the packet rather than discarding the packet. When
salvaging a packet in this way, the packet is also marked as having been salvaged, to prevent
a single packet being salvaged multiple times. Otherwise, it could be possible for the packet
to enter a routing loop, as different nodes repeatedly salvage the packet and replace the
source route on the packet with routes to each other. An alternative mechanism of salvaging
that we have considered would be to replace only the unused suffix of the original route (the
portion in advance of this node) with the new route from this node’s Route Cache, forming a
new route whose prefix is the original route and whose suffix is the route from the Cache. In
this case, the normal rules for avoiding duplicated nodes being listed in a source route are
sufficient to avoid routing loops. However, this mechanism of salvaging would prevent the
new route from “backtracking” from this node to an earlier node already traversed by this
packet, to then be forwarded along a different remaining sequence of hops to the destination.
The current salvaging mechanism allows backtracking but prevents a packet from being
salvaged more than once.
setting, a group of soldiers might all use short-range radios to communicate among
themselves, while relaying through truck-mounted higher power radios to communicate with
other groups.
This general type of network configuration is the ad hoc networking equivalent of
wireless overlay networks. Due to the high degree of locality likely to be present among
directly cooperating nodes communicating with each other, such a network configuration
would allow high speed communication among such cooperating nodes, while at the same
time allowing communication with other nodes further away without requiring very large
numbers of network hops. The longer-range radios might also allow gaps between different
groups of nodes to be spanned, reducing the probability of network partition. A simple
example of such an ad hoc network configuration is shown in Figure 8. Nodes A, B, and C,
here, each have both short-range and long-range radio interfaces, all other nodes in the ad hoc
network have only short-range radio network interfaces. Node X is using a source route to
node Y that uses a sequence of both short-range and long-range hops.
network node would configure a different IP address for each of its possibly many network
interfaces, but as noted in Section 3, each node using DSR chooses one of these as its home
address to use for all communication while in the ad hoc network. This use of a single IP
address per node gives DSR the ability to treat the overall network as single routing domain.
To then distinguish between the different network interfaces on a node, each node
independently assigns a locally unique interface index to each of its own network interfaces.
The interface index for any network interface on a node is an opaque value assigned by the
node itself.
The particular value chosen must be unique among the network interfaces on that
individual node but need have no other significance and need not be coordinated with any
other nodes in choosing their own interface indices. On many operating systems, a unique
value to identify each network interface is already available and can be used for this purpose;
for example, the if index field in the if net structure for a network interface in BSD Unix-
based networking stacks can be used directly by a node for the interface index for that
network interface.
For example, Figure 9 illustrates a simple ad hoc network of four nodes, in which node A
is using one type of network interface (represented by the triangles), node C and node D are
using an different type of physical network interface (represented by the circles), and node B
is configured with both types of network interfaces and can forward packets between the two
different types of radio technologies. The number labelling each network interface indicates
the interface index chosen by the corresponding node for that interface. Since the interface
indices are chosen independently by each node, it is possible, for example, that nodes B and
D each chose index 1 for their circle network interfaces, but node C chooses index 4.The
interface index is used as part of each hop in each source route discovered and used by DSR.
Specifically, a path through the ad hoc network from a source node N0 to a destination node
Nm is fully represented as a series of hops N0/i0 _ N1/i1 _ N2/i2 _ _ Nm, where the
notation Nk/ik is used to indicate that node Nk must transmit the packet using its network
interface ik in order to deliver the packet over the next hop to node Nk1.
In forwarding a ROUTE REQUEST, a node adds to the route record in the REQUEST,
not only its own address (Section 4.2), but also the interface index of its own network
interface on which it forwards the packet. To allow the reversing of a sequence of hops for a
reverse route back to the originating node (when, for example, the existence of bi-directional
links can by assumed based on the underlying MAC protocol),the node forwarding the
ROUTE REQUEST may also add to the route record in the REQUEST, the interface index of
its own network interface on which it received the ROUTE REQUEST packet. For example,
the source route shown in Figure 8 is A/1_ B/1 _ C/4_ D. The corresponding reversed route is
D/1_ C/4 _ B/2_ A. The interface indices to represent a route are carried in the ROUTE
REQUEST, the ROUTE REPLY, and the source route in the header of data packets.
32 bits
Option Type) SHOULD respond to such a DSR option with a Route Error of type
OPTION_NOT_SUPPORTED, except that such a Route Error should never be sent in
response to a packet containing a Route Request option.
The two following bits in the Option Type value (that is, Option Type & 0x60) are a two-
bit field indicating how such a node that does not support this Option Type MUST process
the packet:
00 = Ignore Option
01 = Remove Option
10 = Mark Option
11 = Drop Packet
When these 2 bits are 00 (that is, Option Type & 0x60 == 0), a node not implementing
processing for that Option Type MUST use the Opt Data Len field to skip over the option and
continue processing. When these 2 bits are 01 (that is, Option Type & 0x60== 0x20), a node
not implementing processing for that Option Type MUST use the Opt Data Len field to
remove the option from the packet and continue processing as if the option had not been
included in the received packet. When these 2 bits are 10 (that is, Option Type & 0x60 ==
0x40), a node not implementing processing for that Option Type MUST set the most
significant bit following the Opt Data Len field, MUST ignore the contents of the option
using the Opt Data Len field, and MUST continue processing the packet. Finally, when these
2 bits are 11 (that is, Option Type & 0x60 == 0x60), a node not implementing processing for
that Option Type MUST drop the packet.
4.10.2DSR Options
The following options have been defined: Route Request, Route Reply, Route Error,
Acknowledgment Request, Acknowledgment, DSR Source Route, Pad1, and PadN [7]. These
are only quickly introduced here; all the gory details are omitted.
Route Request contains “Identification”, “Target Address” and “Address[1..n]” fields.
Route requests will be sent to the limited broadcast address“255.255.255.255”, and the
destination address where the source wants to find the route for is placed in “Target address”
field. Identification is a sequence number, used to distinguish between already seen and old
messages.“Address [1..n]” are used to store the addresses along the the path of Route
Discovery.
Route Reply contains “L”-bit, “Reserved” and “Address[1..n]” fields. Last Hop External
bit indicates that the last address represents the last node in the DSR network, and the actual
destination is outside of MANET.“Address[1..n]” contains the source route gathered within
the route request. Route Replies are usually sent back to the originator of Route Request by
either the node that was the Target of the original Route Request or by some intermediate
node, as a Reply from Cache or as a gratuitous Reply.
Route Error contains “Error Type”, “Reserved”, “Salvage”, “Error Source Address”,
“Error Destination Address”, and error type -specific information. Currently, only one error
type, Node Unreachable, is specified. The contents of “Salvage” field are derived from the
DSR Source Route option triggering the error. “Error Source Address” is the address of the
node which encountered an error; “Error Destination Address” is the original source of the
failed packet. In the case of Node Unreachable message, type-specific information contains
the address of the unreachable node. Route Errors are sent to inform the source (and
intermediate nodes)of failed source routes.
Acknowledgment Request contains “Identification” field. It is a unique value that will be
used in Acknowledgment response to create a link between the two. Acknowledgments are
used for ensuring the reliable delivery of Route Maintenance packets if no other form (e.g.
link-layer acknowledgments, passive acknowledgments by promiscuous mode) is available.
Acknowledgment contains “Identification”, “ACK Source Address”, and “ACK Destination
Address” fields. Identification is copied from the Request, ACK
Source Address is the address of the node originating the acknowledgment, and ACK
Destination Address isthe address to which the acknowledgment will be delivered to.
DSR Source Route contains “F” and “L” -bits, “Reserved”, “Salvage”, “Segments Left”,
and “Address [1..n]” fields. First and Last Hop External bits indicate whether the route leads
to or from outside of the DSR network; such paths must not be returned from the cache of
intermediate nodes. “Salvage” indicates the number of times the packet has been salvaged
(see section 4.5.1), that is, rewritten by an intermediate node to ensure delivery. “Segments
Left” indicate show many addresses in the option must still be traversed until reaching the
final destination. “Address[1..n]” lists these intermediate nodes which the packet has been,
and will be, through. DSR Source Route option is present in almost every packet.
Pad1 and PadN options include requested amount of padding, to ensure that the total
DSR Header will be properly aligned to a multiple of 4 bytes.
5. FUTURE WORK
The scope of applicability of DSR needs to be more precisely defined. Interactions with
IPSEC, and routing protocol security in general should be studied. Interactions with packet
filters should be explored. The specification text should be clarified on some points,
especially regarding retransmissions. Especially a mixed network of uni- and bidirectional
links should be simulated. How destructive a DSR node (or a set of nodes)can be with old
cache entries should be studied. Even though DSR is not meant for many hundreds of nodes,
comparisons with other MANET protocols with these amounts of nodes might be interesting.
6. CONCLUSION
DSR applies rather well to a smallish, less than a hundred, network of nodes that trust each
other. In such networks, DSR may be especially useful if it is important to be able to deal
with both high and low node mobility with reasonably small overhead without any manual
changes; DSR is highly adaptive.
There are some areas that need clarifications or more study; some of these are applicable to
some other MANET protocols too, though:
– Study on the more generic problem of trusting routing updates in ad-hoc networking
– Clarifications and tests on cache management, especially ensuring cache freshness and
how far wrong data could spread
– Being able to use IPSEC to verify either the payload or DSR header data, so that link-
layer security would not be required
– Clarifications on retransmission mechanisms and how that applies to unreliable IP
– Clarifications on interactions with firewalls and packet filters
– Clarifications and tests with bi- and uni-directionality of links
– Some other clarifications on the specification text
7. REFERENCES
[1] Josh Broch, David B. Johnson, and David A. Maltz. “The Dynamic Source Routing
Protocol for Mobile Ad Hoc Networks”. Internet-Draft, draft-ietf-manet-dsr-03.txt,
October 1999. Work in progress. Earlier revisions published June 1999, December
1998, and March 1998.
[2] Robert Casta˜neda and Samir R. Das. Query Localization Techniques for On-demand
Routing Protocols in Ad Hoc Networks. In Proceedings of the Fifth International
Conference on Mobile Computing and Networking (MobiCom’99).ACM,August 1999.
[4] Carnegie Mellon University Monarch Project. CMU Monarch Project Home Page.
Available at http://www.monarch.cs.cmu.edu/.
[5] IEEE Computer Society LAN MAN Standards Committee. Wireless LAN Medium
Access Control (MAC) and Physical Layer (PHY) Specifications, IEEE Std
802.11-1997. The Institute of Electrical and Electronics Engineers, New York,
New York, 1997.
[6] David B. Johnson, David A. Maltz, and Josh Broch. “DSR: The Dynamic Source
Routing Protocol for Multi-Hop Wireless Ad Hoc Networks. in Ad Hoc Networking”,
edited by Charles E. Perkins, Chapter 5, pp. 139-172, Addison-Wesley, 2001
[7] Pekka Savola: “DSR: Dynamic Source Routing”, CSC/FUNET, Helsinki University of
Technology.