Discussion:
Destination unreachable in modified aodv routing protocol
ac
2018-11-28 10:37:14 UTC
Permalink
Hi

I am working on a routing protocol, and the network consist of say 3 nodes
A,B, C where
* A is connected to B,C
*B is connected to A,C
*C is connected to A,B

Now, a route request control packet, RREQ, is sent from A(sender) to
destination C. The path to be followed for RREQ is A->B->C . Selection of
path is based on some criteria. But, when route reply ,RREP, is sent by C,
it is sent directly to A without passing through B.

I am unable to under stand this. I am using the code written for AODV
routing protocol (aodv-routing-protocol.cc). I traced the routing table
entry also. I found that to reach C from A the nextHop is B (which is
correct) but when RREP is to be send it is send directly to A without
sending it to B. So when data packet is forwarded it is generating
destination unreachable error as destination is two Hop away from sender as
per routing table.

Can anyone suggest me what could be the problem. I want RREP from C to A to
go through B.

Thanks
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Loading...