LTE - Fail to generate XML

384 views
Skip to first unread message

Achmad Rizal Danisya

unread,
May 28, 2013, 10:23:52 AM5/28/13
to ns-3-...@googlegroups.com
I adapt "2ue-2enb-ho-anim.cc" script from "lena/src/lte/examples/lena-x2-handover.cc" and "lena/src/netanim/examples/wireless-animation.cc"
I already tried the "./waf -d debug configure --enable-examples" and succeeded generate .xml file from "./waf --run "wireless-animation""
so my Lena is working normally right ?

but then I "./waf --run scratch/2ue-2enb-ho-anim" but it stuck, I always get this error warning :

Command ['/root/lena/build/scratch/2ue-2enb-ho-anim'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

but if I comment the line 136-139 I could get the tracing result normally ... little bit relieved

2ue-2enb-ho-anim.cc's scenario is just to make a simple X2-handover from one of UE(there is 2 UE) between 2 eNB.

I did not forget to make a
"wscript", I put it one directory with 2ue-2enb-ho-anim.cc and already modify the script

so any suggest why this one fail to generate .xml ? I uploaded the 2 file here, which are "
2ue-2enb-ho-anim.cc" (mind the Indonesian comments in it) and "wscript"

uh ... the wscript can't be uploaded, I'll just  paste it here then :

def build(bld):
        obj = bld.create_ns3_program('2ue-2enb-ho-anim',
                                 ['netanim', 'network', 'point-to-point', 'lte','core', 'mobility', 'internet', 'applications','config-store'])
        obj.source = '2ue-2enb-ho-anim.cc'


thanx
2ue-2enb-ho-anim.cc

John Abraham

unread,
May 28, 2013, 12:59:39 PM5/28/13
to ns-3-...@googlegroups.com
i did not see the problem,but if it crashes try
and paste the backtrace.

I doubt we can show lte handover with NetAnim. LTE support in Animation, is still nascent and limited, but you can try it anyway.


--
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 http://groups.google.com/group/ns-3-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Achmad Rizal Danisya

unread,
May 30, 2013, 8:11:07 PM5/30/13
to ns-3-...@googlegroups.com
Ok, thanx for your reply and suggestion John, here what I'v got from the backtrace
in LENA-3-DEV :

Program received signal SIGSEGV, Segmentation fault.
0xb7c69425 in std::list<Ptr<Packet>, std::allocator<Ptr<Packet> > >::begin (this=0x14)
    at /usr/include/c++/4.6/bits/stl_list.h:740
740      { return const_iterator(this->_M_impl._M_node._M_next); }

something with the basic C++ stl_list.h huh ?
...
but then I tried it with NS-3.16 by commenting the line 92 (AddX2Interface) and 119 (HandoverRequest(....)) I succeeded on getting the .xml file, I couldn't do this with LENA-3-DEV although I also commented those rows

so is the problem in my LENA-3-DEV's .xml bind ?
or ? 



--
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/unjYmaePEsE/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

John Abraham

unread,
May 30, 2013, 8:13:46 PM5/30/13
to ns-3-...@googlegroups.com
can you type "bt" or "backtrace" in gdb to get the backtrace?
http://www.unknownroad.com/rtfm/gdbtut/gdbsegfault.html


Achmad Rizal Danisya

unread,
May 31, 2013, 10:49:31 AM5/31/13
to ns-3-...@googlegroups.com
#0  0xb7c69425 in std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > >::begin (this=0x14)
    at /usr/include/c++/4.6/bits/stl_list.h:740
#1  0xb7c7eabb in std::list<ns3::Ptr<ns3::Packet>, std::allocator<ns3::Ptr<ns3::Packet> > >::list (
    this=0xbfffe900, __x=...) at /usr/include/c++/4.6/bits/stl_list.h:573
#2  0xb6263833 in ns3::PacketBurst::GetPackets (this=0x0) at ../src/network/utils/packet-burst.cc:88
#3  0xb7f6abe1 in ns3::AnimationInterface::LteSpectrumPhyTxStart (this=0xbfffeeb4, context=..., pb=...)
    at ../src/netanim/model/animation-interface.cc:1101
#4  0xb7f82a60 in ns3::MemPtrCallbackImpl<ns3::AnimationInterface*, void (ns3::AnimationInterface::*)(std::string, ns3::Ptr<ns3::PacketBurst const>), void, std::string, ns3::Ptr<ns3::PacketBurst const>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x80c91c8, a1=..., a2=...)
    at ./ns3/callback.h:226
#5  0xb7baca89 in ns3::Callback<void, std::string, ns3::Ptr<ns3::PacketBurst const>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x80c9248, a1=..., a2=...)
    at ./ns3/callback.h:413
#6  0xb7bac430 in ns3::BoundFunctorCallbackImpl<ns3::Callback<void, std::string, ns3::Ptr<ns3::PacketBurst const>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>, void, std::string, ns3::Ptr<ns3::PacketBurst const>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x80c9240, a1=...) at ./ns3/callback.h:280
#7  0xb7b9fe6e in ns3::Callback<void, ns3::Ptr<ns3::PacketBurst const>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x80c9260, a1=...)
    at ./ns3/callback.h:410
#8  0xb7b9bf2a in ns3::TracedCallback<ns3::Ptr<ns3::PacketBurst const>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x80c2084, a1=...) at ./ns3/traced-callback.h:188
#9  0xb7b8f832 in ns3::LteSpectrumPhy::StartTxDataFrame (this=0x80c2028, pb=..., ctrlMsgList=..., duration=...)
    at ../src/lte/model/lte-spectrum-phy.cc:415
#10 0xb7bd717a in ns3::LteUePhy::SubframeIndication (this=0x80c2310, frameNo=2, subframeNo=8)
    at ../src/lte/model/lte-ue-phy.cc:797
#11 0xb7bd9a5d in ns3::EventMemberImpl2::Notify (this=0x80bc390) at ./ns3/make-event.h:155
#12 0xb60b565e in ns3::EventImpl::Invoke (this=0x80bc390) at ../src/core/model/event-impl.cc:39
#13 0xb60ba498 in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x80b47e8)
    at ../src/core/model/default-simulator-impl.cc:131
#14 0xb60ba6a2 in ns3::DefaultSimulatorImpl::Run (this=0x80b47e8)
    at ../src/core/model/default-simulator-impl.cc:183
#15 0xb60b604b in ns3::Simulator::Run () at ../src/core/model/simulator.cc:156
#16 0x08053c8f in main (argc=1, argv=0xbffff674) at ../scratch/2ue-2nb-ho-anim.cc:140

John Abraham

unread,
May 31, 2013, 10:55:22 AM5/31/13
to ns-3-...@googlegroups.com
yes, packet burst with 0x0 is not yet supported in AnimationInterface
ns3::PacketBurst::GetPackets (this=0x0)
Try cloning ns-3-dev "hg clone http://code.nsnam.org/ns-3-dev"
then copy the entire "netanim" folder from the clone and replace your lena version with the copy from ns-3-dev.


Achmad Rizal Danisya

unread,
May 31, 2013, 6:43:09 PM5/31/13
to ns-3-...@googlegroups.com
THANK YOU SO MUCH, MR. JOHN ABRAHAM !
I did all you instruct me and the animation and the trace files works !
thank you ... thank you again !
I'll doxygen this new version and see what are the new functions in LteHelper and EpcHelper, looks like the AddX2Interface and HandoverRequest already embedded  ... I'm so delighted :)
this simulation is for my Master Degree thesis, I'm planning to make a simulation and analysis  one of SON's function, Mobility Load Balancing 

Achmad Rizal Danisya

unread,
Jun 20, 2013, 3:09:22 AM6/20/13
to ns-3-...@googlegroups.com
Mr. Abraham I have another question, does the
LteHexGridEnbTopologyHelper result a hexagonal cell depiction in
NetAnim ?

John Abraham

unread,
Jun 20, 2013, 9:19:09 AM6/20/13
to ns-3-...@googlegroups.com
unfortunately I don't deal much with LTE.
But here is a thread discussing possible issues with it



Achmad Rizal Danisya

unread,
Jun 23, 2013, 8:02:19 AM6/23/13
to ns-3-...@googlegroups.com
Thank you, Mr. Abraham



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.

Achmad Rizal Danisya

unread,
Jun 25, 2013, 4:56:48 AM6/25/13
to ns-3-...@googlegroups.com
Sir, one simple question again
it's about the scaling in NS3
for example if I decide to limit the "Bound" for
"ns3::RandomWalk2dMobilityModel" to (0,1000, 0, 1000) is it 1000x1000
meters or is it just a mere grid numbering ?

because I'm a bit confused to decide the "InterSiteDistance" for
"ns3::LteHexGridEnbTopologyHelper"

John Abraham

unread,
Jun 25, 2013, 9:11:59 AM6/25/13
to ns-3-...@googlegroups.com
I think it is the bounds of a rectangle
http://www.nsnam.org/doxygen/classns3_1_1_rectangle.html. So I think it is 1000x1000 as you said.

Achmad Rizal Danisya

unread,
Jun 26, 2013, 3:35:04 AM6/26/13
to ns-3-...@googlegroups.com
Okay, so the scale is in meters confirmed, thank you Mr. Abraham
Reply all
Reply to author
Forward
0 new messages