Dynamic Source Routing
Dynamic Source Routing
INTRODUCTION
3 Simulation results
The graph figure.4 form the simulation result trace file
show a straight line , which is generated by Time Vs Packet
identification number ,when the node leaves the transmission
range of one system then there is a dropped packet and after
few seconds the transmission begins again when the route is
discovered. In this scenario the nodes other then sink are
constant, as these are connected and static with each other, So
the discovery of route when the link is broken is done so fast
such that only one packet is dropped whose retransmission is
taken care of the upper layers
The packet drop is due to the DSR implementation in
which when forwarding towards the destination when the
node detects the link failure it drops the packet and then sends
a route error to the source which originated the data packet
Code Documentation
Figure 7: Flow chart describing the data flow if the packet type is DSR10
Figure 6: Flow chart describing the data flow if the packet type is DSR10
4
The DSR10 packet is processed according to its type
which is determined be switch case, if it a
ROUTE_REQUEST packet then the data in the option header
is used for updating the route cache, and then the
ROUTE_REPLY packet is send to the source which initiated
the ROUTE_REQUEST . If it is a ROUTE_REPLY packet
then it updates the route cache and then starts to send the data
packet, which are stored in the send buffer. else if it is a error
packet then the route is deleted using the data in the option
header of the ROUTE_ERROR packet and then the packet is
forwarded or dropped. This flow is clearly explained in the
figure.6, it also contains the handlers used in the code for each
and every purpose.
If the packet is a normal data packet which carries the
option header containing the route form the source to
destination, it is handled as shown in the figure.7 , when the
node receives the packet it checks the link of the next location
if exists then sends the packet normally , if the link is broken
then the a ROUTE_ERROR packet is created and send to the
Future development
Conclusion
Reference