Aodv on wsn

140 views
Skip to first unread message

omowun...@gmail.com

unread,
Mar 19, 2014, 6:12:36 AM3/19/14
to ns-3-...@googlegroups.com
Hello all,
Please i tried to implement aodv in wsn, but some SIGSEGV, Segmentation fault and from gdb debuger I got the following report:

Program received signal SIGSEGV, Segmentation fault.
0x00000000004170b5 in ns3::PeekPointer<ns3::Ipv4> (p=...) at ./ns3/ptr.h:281
281 return p.m_ptr;

#0 0x00000000004170b5 in ns3::PeekPointer<ns3::Ipv4> (p=...)
at ./ns3/ptr.h:281
#1 0x0000000000417022 in ns3::Ptr<ns3::Ipv4>::Ptr (this=0x7fffffffd400, o=...)
at ./ns3/ptr.h:439
#2 0x00007ffff3ea0459 in ns3::Ipv4InterfaceContainer::GetAddress (
this=0x7fffffffddb0, i=4255663, j=0)
at ../src/internet/helper/ipv4-interface-container.cc:41
#3 0x000000000041182f in AodvExample::InstallApplications (
this=0x7fffffffdd40) at ../scratch/aodvwsn.cc:242
#4 0x00000000004103d1 in AodvExample::Run (this=0x7fffffffdd40)
at ../scratch/aodvwsn.cc:185
#5 0x000000000040f166 in main (argc=1, argv=0x7fffffffdec8)
at ../scratch/aodvwsn.cc:96

Pls what do you advice that I do?

Thanks in advance.
O.M. Longe

Konstantinos

unread,
Mar 19, 2014, 7:21:04 AM3/19/14
to ns-3-...@googlegroups.com
Hi,

When you say you want to implement AODV in WSN, do you mean in the lr-wpan module?
It can not be done because lr-wpan uses IPv6 (6LowPAN) and current AODV implementation in NS-3 only works for IPv4.
That's why you get NULL pointer for the Ipv4 object.

Regards,
Konstantinos

omowunmi longe

unread,
Mar 21, 2014, 6:24:45 AM3/21/14
to ns-3-...@googlegroups.com
Hello, It was ipv4 I was using in the aodv, but was just trying to implement ad-hoc in the network. Also, please do you mean that 6LoWPAN can't be simulated in ns3 yet? 

Konstantinos

unread,
Mar 21, 2014, 6:41:34 AM3/21/14
to ns-3-...@googlegroups.com
Hi,

I still haven't understood how you simulate a WSN. Do you use regular WiFi or the lr-wpan module? They are different. You can use AODV with WiFi but not with lr-wpan (at the moment).
6LoWPAN can be simulated in NS-3, there is a module for that. In addition the ns-3-dev (and future releases) has coupled 6LoWPAN with lr-wpan module. Hence, you can have IPv6 networks on top of lr-wpan.

omowun...@gmail.com

unread,
Mar 21, 2014, 6:45:55 AM3/21/14
to ns-3-...@googlegroups.com
I did the aodv on regular wifi.
O.M. Longe

From: Konstantinos <dinos.k...@gmail.com>
Date: Fri, 21 Mar 2014 03:41:34 -0700 (PDT)
Subject: Re: Aodv on wsn
--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/U5IdhY12yCA/unsubscribe.
To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Konstantinos

unread,
Mar 21, 2014, 6:53:40 AM3/21/14
to ns-3-...@googlegroups.com, omowun...@gmail.com
Then just follow the examples for AODV and WIFI in /examples/wireless and /src/aodv/examples
Reply all
Reply to author
Forward
0 new messages