[ndnSIM] Required multi-hop wireless scenario example(ndnSIM Digest, Vol 61, Issue 25)

arnodana at 163.com arnodana at 163.com
Thu Dec 21 20:08:06 PST 2017


Hi Spyridon (Spyros) Mastorakis

I have checked your
link(https://github.com/4th-ndn-hackathon/ndnSIM-Mobile-Simulation-Package/b
lob/master/examples/ndn-v2v-simple.cpp
<https://github.com/4th-ndn-hackathon/ndnSIM-Mobile-Simulation-Package/blob/
master/examples/ndn-v2v-simple.cpp>
https://github.com/4th-ndn-hackathon/ndnSIM-Mobile-Simulation-Package/blob/m
aster/examples/simple-wifi-mobility.cpp
<https://github.com/4th-ndn-hackathon/ndnSIM-Mobile-Simulation-Package/blob/
master/examples/simple-wifi-mobility.cpp>), and found the relevant code
annotated as todo(///todo add v2v face).

Thank you

Pengfei
Inner Mongolia University, China



-----邮件原件-----
发件人: ndnsim-bounces at lists.cs.ucla.edu
[mailto:ndnsim-bounces at lists.cs.ucla.edu] 代表 ndnsim-request at lists.cs.ucla.
edu
发送时间: 2017年12月22日 0:52
收件人: ndnsim at lists.cs.ucla.edu
主题: ndnSIM Digest, Vol 61, Issue 25

Send ndnSIM mailing list submissions to
	ndnsim at lists.cs.ucla.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
or, via email, send a message with subject or body 'help' to
	ndnsim-request at lists.cs.ucla.edu

You can reach the person managing the list at
	ndnsim-owner at lists.cs.ucla.edu

When replying, please edit your Subject line so it is more specific than
"Re: Contents of ndnSIM digest..."


Today's Topics:

   1. Re: Required multi-hop wireless scenario example
      (Spyridon (Spyros) Mastorakis)
   2. Re: Program received signal SIGSEGV (Spyridon (Spyros) Mastorakis)


----------------------------------------------------------------------

Message: 1
Date: Thu, 21 Dec 2017 18:50:13 +0200
From: "Spyridon (Spyros) Mastorakis" <mastorakis at cs.ucla.edu>
To: Mudasir Qazi <mudasirqazi00 at gmail.com>
Cc: ndnsim at lists.cs.ucla.edu
Subject: Re: [ndnSIM] Required multi-hop wireless scenario example
Message-ID: <79557D73-98DB-4F07-BF0D-A08234664576 at cs.ucla.edu>
Content-Type: text/plain; charset="us-ascii"

Hi,

yes, it is possible to do that.

Take a look here:

https://github.com/4th-ndn-hackathon/ndnSIM-Mobile-Simulation-Package/blob/m
aster/examples/ndn-v2v-simple.cpp
<https://github.com/4th-ndn-hackathon/ndnSIM-Mobile-Simulation-Package/blob/
master/examples/ndn-v2v-simple.cpp>
https://github.com/4th-ndn-hackathon/ndnSIM-Mobile-Simulation-Package/blob/m
aster/examples/simple-wifi-mobility.cpp
<https://github.com/4th-ndn-hackathon/ndnSIM-Mobile-Simulation-Package/blob/
master/examples/simple-wifi-mobility.cpp>

You can use those examples as a reference for creating your own scenario. If
you set the FIB entries appropriately, you should be able to achieve
multi-hop wireless communication.

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
<http://cs.ucla.edu/~mastorakis/> Internet Research Laboratory Computer
Science Department UCLA

> On Dec 21, 2017, at 5:54 PM, Mudasir Qazi <mudasirqazi00 at gmail.com> wrote:
> 
> Hi,
> 
> Please confirm that if ndnSim supports multi-hop wireless communication?
> If yes, please provide me a scenario example (*.cpp file) of multi-hop
wireless communication.
> 
> --
> Regards,
> Mudasir Qazi

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171221/779c40ed
/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 21 Dec 2017 18:52:16 +0200
From: "Spyridon (Spyros) Mastorakis" <mastorakis at cs.ucla.edu>
To: sqzheng at njnet.edu.cn
Cc: ndnsim at lists.cs.ucla.edu
Subject: Re: [ndnSIM] Program received signal SIGSEGV
Message-ID: <060725DC-08C9-42D0-BC43-5B0D75C01574 at cs.ucla.edu>
Content-Type: text/plain; charset="us-ascii"

Hi,

I would suggest that you use the latest version of ndnSIM, so that we can
better assist you.

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
<http://cs.ucla.edu/~mastorakis/> Internet Research Laboratory Computer
Science Department UCLA

> On Dec 21, 2017, at 12:11 PM, sqzheng <sqzheng at njnet.edu.cn> wrote:
> 
> Hello:
>   Now I'm trying to implement NDN with Built-in Network Coding,and 
> ndnSIM I used is v1.0 because this version is easier for me to do this
work.
> But when running the "ndn-cache-nc.cpp" scenario, I have got a 
> Segmentation fault.I have used gdb to locate where the error occurs 
> and the information is as follows:
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff46e919a in ns3::Ptr<ns3::Node>::operator-> (this=0x20)
>    at ./ns3/ptr.h:489
> 489	  return m_ptr;
> (gdb) where
> #0  0x00007ffff46e919a in ns3::Ptr<ns3::Node>::operator-> (this=0x20)
>    at ./ns3/ptr.h:489
> #1  0x00007ffff483da03 in ns3::ndn::Face::operator< (this=0x714600,
face=...)
>    at ../src/ndnSIM/model/ndn-face.cc:260
> #2  0x00007ffff4828493 in ns3::ndn::pit::OutgoingFace::operator< (
>    this=0x14a9270, m=...) at ./ns3/ndn-pit-entry-outgoing-face.h:84
> #3  0x00007ffff482b81b in
> std::less<ns3::ndn::pit::OutgoingFace>::operator() (
>    this=0x1bbc268, __x=..., __y=...)
>    at /usr/include/c++/4.9/bits/stl_function.h:371
> #4  0x00007ffff482b776 in std::_Rb_tree<ns3::ndn::pit::OutgoingFace,
> ns3::ndn::pit::OutgoingFace, 
> std::_Identity<ns3::ndn::pit::OutgoingFace>,
> std::less<ns3::ndn::pit::OutgoingFace>,
> std::allocator<ns3::ndn::pit::OutgoingFace> >::_M_lower_bound 
> (this=0x1bbc268, __x=0x14a9250, __y=0x1bbc270, __k=...)
>    at /usr/include/c++/4.9/bits/stl_tree.h:1277
> #5  0x00007ffff482a3d9 in std::_Rb_tree<ns3::ndn::pit::OutgoingFace,
> ns3::ndn::pit::OutgoingFace, 
> std::_Identity<ns3::ndn::pit::OutgoingFace>,
> std::less<ns3::ndn::pit::OutgoingFace>,
> std::allocator<ns3::ndn::pit::OutgoingFace> >::find (
>    this=0x1bbc268, __k=...) at 
> /usr/include/c++/4.9/bits/stl_tree.h:1926
> #6  0x00007ffff4828dff in std::set<ns3::ndn::pit::OutgoingFace,
> std::less<ns3::ndn::pit::OutgoingFace>,
> std::allocator<ns3::ndn::pit::OutgoingFace> >::find (
>    this=0x1bbc268, __x=...) at /usr/include/c++/4.9/bits/stl_set.h:706
> #7  0x00007ffff4826f04 in
> ns3::ndn::ForwardingStrategy::WillSatisfyPendingInterest 
> (this=0x7140a0, inFace=..., pitEntry=...) ---Type <return> to 
> continue, or q <return> to quit---
>    at ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:476
> #8  0x00007ffff481d57e in
> ns3::ndn::fw::GreenYellowRed::WillSatisfyPendingInterest 
> (this=0x7140a0, inFace=..., pitEntry=...)
>    at ../src/ndnSIM/model/fw/green-yellow-red.cc:103
> #9  0x00007ffff4824a3c in ns3::ndn::ForwardingStrategy::OnInterest (
>    this=0x7140a0, inFace=..., interest=...)
>    at ../src/ndnSIM/model/fw/ndn-forwarding-strategy.cc:215
> #10 0x00007ffff481e73c in ns3::ndn::fw::Nacks::OnInterest (this=0x7140a0,
>    inFace=..., interest=...) at ../src/ndnSIM/model/fw/nacks.cc:83
> #11 0x00007ffff4845c51 in
> ns3::MemPtrCallbackImpl<ns3::Ptr<ns3::ndn::ForwardingStrategy>, void 
> (ns3::ndn::ForwardingStrategy::*)(ns3::Ptr<ns3::ndn::Face>,
> ns3::Ptr<ns3::ndn::Interest>), void, ns3::Ptr<ns3::ndn::Face>, 
> ns3::Ptr<ns3::ndn::Interest>, ns3::empty, ns3::empty, ns3::empty, 
> ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() 
> (this=0x714570, a1=..., a2=...) at ./ns3/callback.h:412
> #12 0x00007ffff483e0bd in ns3::Callback<void, 
> ns3::Ptr<ns3::ndn::Face>, ns3::Ptr<ns3::ndn::Interest>, ns3::empty, 
> ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, 
> ns3::empty>::operator() (this=0x714508, a1=..., a2=...)
>    at ./ns3/callback.h:1095
> #13 0x00007ffff483d5b3 in ns3::ndn::Face::ReceiveInterest (this=0x7144e0,
>    interest=...) at ../src/ndnSIM/model/ndn-face.cc:212
> #14 0x00007ffff483d14f in ns3::ndn::Face::Receive (this=0x7144e0, p=...)
>    at ../src/ndnSIM/model/ndn-face.cc:180
> #15 0x00007ffff4847d44 in 
> ns3::ndn::NetDeviceFace::ReceiveFromNetDevice ( ---Type <return> to
continue, or q <return> to quit---
>    this=0x7144e0, device=..., p=..., protocol=30583, from=..., to=...,
>    packetType=ns3::NetDevice::PACKET_HOST)
>    at ../src/ndnSIM/model/ndn-net-device-face.cc:132
> #16 0x00007ffff4848a6b in
> ns3::MemPtrCallbackImpl<ns3::ndn::NetDeviceFace*, void 
> (ns3::ndn::NetDeviceFace::*)(ns3::Ptr<ns3::NetDevice>,
> ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, 
> ns3::Address const&, ns3::NetDevice::PacketType), void, 
> ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, 
> ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, 
> ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x7145a0, 
> a1=..., a2=...,
>    a3=30583, a4=..., a5=..., a6=ns3::NetDevice::PACKET_HOST)
>    at ./ns3/callback.h:454
> #17 0x00007fffef52523b in ns3::Callback<void, 
> ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, 
> ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, 
> ns3::empty, ns3::empty,
> ns3::empty>::operator() (
>    this=0x70f758, a1=..., a2=..., a3=30583, a4=..., a5=...,
>    a6=ns3::NetDevice::PACKET_HOST) at ./ns3/callback.h:1137
> #18 0x00007fffef522ae3 in ns3::Node::ReceiveFromDevice (this=0x70fb70,
>    device=..., packet=..., protocol=30583, from=..., to=...,
>    packetType=ns3::NetDevice::PACKET_HOST, promiscuous=true)
>    at ../src/network/model/node.cc:316
> #19 0x00007fffef521ffc in ns3::Node::PromiscReceiveFromDevice
(this=0x70fb70,
>    device=..., packet=..., protocol=30583, from=..., to=...,
>    packetType=ns3::NetDevice::PACKET_HOST) at
> ../src/network/model/node.cc:281
> ---Type <return> to continue, or q <return> to quit---
> #20 0x00007fffef52acd7 in ns3::MemPtrCallbackImpl<ns3::Node*, bool 
> (ns3::Node::*)(ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, 
> unsigned short, ns3::Address const&, ns3::Address const&, 
> ns3::NetDevice::PacketType), bool, ns3::Ptr<ns3::NetDevice>, 
> ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, 
> ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, 
> ns3::empty,
> ns3::empty>::operator() (this=0x7145d0, a1=..., a2=..., a3=30583, 
> a4=..., a5=...,
>    a6=ns3::NetDevice::PACKET_HOST) at ./ns3/callback.h:454
> #21 0x00007ffff693819f in ns3::Callback<bool, 
> ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, 
> ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType, 
> ns3::empty, ns3::empty,
> ns3::empty>::operator() (
>    this=0x711790, a1=..., a2=..., a3=30583, a4=..., a5=...,
>    a6=ns3::NetDevice::PACKET_HOST) at ./ns3/callback.h:1137
> #22 0x00007ffff20a4b20 in ns3::PointToPointNetDevice::Receive
(this=0x711660,
>    packet=...) at
> ../src/point-to-point/model/point-to-point-net-device.cc:345
> #23 0x00007ffff20b3cf2 in ns3::EventImpl* ns3::MakeEvent<void 
> (ns3::PointToPointNetDevice::*)(ns3::Ptr<ns3::Packet>),
> ns3::Ptr<ns3::PointToPointNetDevice>, ns3::Ptr<ns3::Packet> >(void 
> (ns3::PointToPointNetDevice::*)(ns3::Ptr<ns3::Packet>),
> ns3::Ptr<ns3::PointToPointNetDevice>,
> ns3::Ptr<ns3::Packet>)::EventMemberImpl1::Notify() (this=0x1a3c800) at
> ./ns3/make-event.h:124
> #24 0x00007fffeee0a97d in ns3::EventImpl::Invoke (this=0x1a3c800)
>    at ../src/core/model/event-impl.cc:45
> #25 0x00007fffeee0f246 in ns3::DefaultSimulatorImpl::ProcessOneEvent (
>    this=0x70f9b0) at ../src/core/model/default-simulator-impl.cc:140
> ---Type <return> to continue, or q <return> to quit---
> #26 0x00007fffeee0f5c0 in ns3::DefaultSimulatorImpl::Run (this=0x70f9b0)
>    at ../src/core/model/default-simulator-impl.cc:193
> #27 0x00007fffeee0b658 in ns3::Simulator::Run ()
>    at ../src/core/model/simulator.cc:161
> #28 0x0000000000407c81 in main (argc=1, argv=0x7fffffffde18)
>    at ../src/ndnSIM/examples/ndn-cache-nc.cc:99
> 
>    So what should I do to solve this problem?
>    Thanks in advance.
>
Regards
>                                                                  
> Shaoqi Zheng
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171221/f0961784
/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu
http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim


------------------------------

End of ndnSIM Digest, Vol 61, Issue 25
**************************************




More information about the ndnSIM mailing list