My understanding of these fields are as follows:
Say:
Node A initiates RREQ to Node E
E generates RREP and sends it back to A
Then:
RREP Packet Payload:
Destination IP Address = E
Originator IP Address = A
I stored this in an issue so that possibly someone will work on it further:
https://gitlab.com/nsnam/ns-3-dev/-/issues/1257
A patch to fix would be welcome.
- Tom
--
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 view this discussion visit https://groups.google.com/d/msgid/ns-3-users/17616dca-9f21-48a8-a96d-85e0f2d6913fn%40googlegroups.com.
Hi Tommaso, Tom,
Thank you for your inputs. It is a privilege to receive replies from the top two people in ns-3. I really appreciate your time!
Regarding this issue, I believe I’ve figured it out (sorry I should have followed-up earlier). The main confusion comes from the line (1639 of aodv-routing-protocol.cc in ns-3.45):
where, the variable dst is defined in the previous line as:
According to RFC 3561, this(dst) should correspond to the RREQ destination. Likewise, rrepHeader.GetOrigin() should be the RREQ originator, not the “RREP origin.” The good news is that’s indeed the case in implementation:
rrepHeader.GetOrigin() returns the RREQ originator.
rrepHeader.GetDst() returns the RREQ destination.
I haven’t yet used the Wireshark approach Tommaso suggested, but I ran several tests in debug mode and verified this behavior from the RREP headers.
What confuses me is the logging terminology: the code labels them as “RREP destination” and “RREP origin.” Perhaps the intent was to emphasize that in AODV the RREP destination equals the RREQ destination, but the wording feels misleading.
In short, swapping the labels (or making them more explicit) could make the logging clearer and help future users avoid this confusion.
If you’d like, I can provide a similar input to the issue that Tom opened yesterday.
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 view this discussion visit https://groups.google.com/d/msgid/ns-3-users/8c2df9df-765c-4353-ade9-a30b8e9bedean%40googlegroups.com.