The Dynamic Source Routing protocol is an on-demand
source routing protocol commonly used in wireless sensor
networks. DSR uses two types of routing packets for finding
routes to destinations: Route Request Packet (RREQ) and
Route Reply Packet (RREP). An RREQ contains the address
of the destination device and is flooded to all devices on the
network. When a node receives an RREQ with its address, it
creates an RREP in response and sends it back to the original
sender. An example of route discovery in DSR is shown in
Figure 1 and explained below