[ndnSIM] ndnSIM Digest, Vol 51, Issue 2

Rajvardhan rdeshmukh at umass.edu
Mon Feb 6 14:25:03 PST 2017


Hello,
I'm trying to write a CustomTracer that includes the functionality of AppDelayTracer and CsTracer.
I get error(CustomTracer not defined) when I use it like
using ns3::ndn::CustomTracer.
which is same as 
using ns3::ndn::AppDelayTracer
using ns3::ndn::CsTracer

regards,
Raj
⁣

Sent from BlueMail

​

On 6 Feb 2017 11:46, at 11:46, ndnsim-request at lists.cs.ucla.edu wrote:
>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: Problem related to ndnSIM with Redis integration in
>      Content-Store (Alex Afanasyev)
>   2. A question about packets aggregation level
>      (=?iso-2022-jp?B?GyRCV0UbKEIgGyRCWmF6dBsoQg==?=)
>   3. Re: A question about packets aggregation level
>      (Spyridon (Spyros) Mastorakis)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Thu, 2 Feb 2017 11:19:12 -0800
>From: Alex Afanasyev <aa at CS.UCLA.EDU>
>To: Mobin Ranjbar <mobinranjbar at hotmail.com>
>Cc: ndnsim <ndnsim at lists.cs.ucla.edu>,	Spyros Mastorakis
>	<mastorakis at CS.UCLA.EDU>, Lixia Zhang <lixia at CS.UCLA.EDU>
>Subject: Re: [ndnSIM] Problem related to ndnSIM with Redis integration
>	in Content-Store
>Message-ID: <3B274498-9082-4D01-9F41-5A7758F2DD86 at cs.ucla.edu>
>Content-Type: text/plain; charset="us-ascii"
>
>If you're trying to use an external library, then you need not just put
>headers in (unless it is just header-only library), but also properly
>link the library to the code, in this case to ndnSIM module.  You can
>take a look at examples in wscript in NS-3 folder, examples in waf
>book, and examples in waf source (the last one, in my opinion, is the
>best place to look).
>
>Also. Based on the errors, I highly suspect that you not going to
>succeed in making Redis working with NS-3.  NS-3 is a discrete event
>simulator that expects that all events are scheduled and processed by
>the NS-3's Simulator interface.  ev_io_start is part of libev library
>that implements an even loop.  You can probably make code compile
>(e.g., by properly linking to libev), but it most likely not going to
>give you the expected results: some parts of the code will be working
>with simulated events (simulated time), some parts with real events
>(real time) with unpredictable interactions.  You can try to replace
>the even loop in redis library by NS-3's facilities (this is exactly
>what has been done for ndn-cxx and NFD integration), but it may be a
>non-trivial task.
>
>--
>Alex
>
>> On Feb 2, 2017, at 11:11 AM, Mobin Ranjbar <mobinranjbar at hotmail.com>
>wrote:
>> 
>> Hi there,
>> 
>> I am going to replace Table data structure with Redis in-memory
>database in Content-Store for benchmarking purpose. I have downloaded a
>C++ client for Redis called Redox that has some .h and .hpp files. I
>have added #include parts in cs-entry.cpp and run ./waf. But there are
>some errors following below:
>> 
>> ./libns3-dev-ndnSIM-debug.so: undefined reference to `ev_io_start`
>> ./libns3-dev-ndnSIM-debug.so: undefined reference to
>`redisAsyncHandleRead`
>> ./libns3-dev-ndnSIM-debug.so: undefined reference to `ev_io_stop`
>> ./libns3-dev-ndnSIM-debug.so: undefined reference to
>`redisAsyncHandleWrite`
>> `
>> 
>> I figured out that it does not find those headers but I do not know
>where do I have to put header definition to make './waf' aware of new
>module. Any idea about this problem? Where should .h and .hpp files be
>defined? I have defined them in ndn-all.hpp but no hopes.
>> 
>> Thanks for your help.
>> 
>> 
>> ________
>> Mobin Ranjbar
>> Software Engineer, Big Data Evangelist and Startup Guy
>> Co-Founder of Iran Startups <http://www.irstartups.com/>
>> Founder of Shariksho <http://shariksho.com/>
>> Editor in Chief at Techly.co <http://techly.co/>
>> Founder of FaraFekr Technology <http://www.farafekr.co/>
>> Founder of Hadoop.ir <http://hadoop.ir/>
>> Founder of Big Data Watcher <http://bigdatawatcher.com/>
>> Website <http://mobinranjbar.com/> | Twitter
><http://twitter.com/mobinranjbar> | Linkedin
><https://www.linkedin.com/in/mobinranjbar> | skype: mobinranjbar
>
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL:
><http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170202/faf91c1a/attachment-0001.html>
>
>------------------------------
>
>Message: 2
>Date: Mon, 6 Feb 2017 10:41:11 +0000
>From: =?iso-2022-jp?B?GyRCV0UbKEIgGyRCWmF6dBsoQg==?=
>	<pengminjiong19911004 at outlook.com>
>To: "ndnsim at lists.cs.ucla.edu" <ndnsim at lists.cs.ucla.edu>
>Subject: [ndnSIM] A question about packets aggregation level
>Message-ID:
>	<PS1PR0401MB15775AAB7A2B4D031B53C071CA400 at PS1PR0401MB1577.apcprd04.prod.outlook.com>
>	
>Content-Type: text/plain; charset="iso-2022-jp"
>
>Hi
>
>
>I wonder if in NDN, the packets aggregation is on router-level not
>publisher-level. ?
>
>By publisher-level, I mean once publisher received two interest packets
>with the same data  name , it should give two responses.  Is that
>correct ?
>
>
>For example
>
>In my simulation, if the publisher receive 100 interest packets with
>same data name within a short time and the  publisher answers 100
>times.
>
>
>I checked the log file of publisher to confirm the results.
>
>
>
>peng minjiong
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL:
><http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170206/e54cb7b2/attachment-0001.html>
>
>------------------------------
>
>Message: 3
>Date: Mon, 6 Feb 2017 08:45:15 -0800
>From: "Spyridon (Spyros) Mastorakis" <mastorakis at CS.UCLA.EDU>
>To: ? ??? <pengminjiong19911004 at outlook.com>
>Cc: "ndnsim at lists.cs.ucla.edu" <ndnsim at lists.cs.ucla.edu>
>Subject: Re: [ndnSIM] A question about packets aggregation level
>Message-ID: <6786C13A-E400-4FED-B881-45D54BD3F357 at cs.ucla.edu>
>Content-Type: text/plain; charset="utf-8"
>
>Hi,
>
>the aggregation is being done at each forwarder (NFD instance). 
>
>This might happen if there is no pending interest for the interest name
>and the data is not cached along the path that the interest arrives at
>the publisher.
>
>Thanks,
>
>Spyridon (Spyros) Mastorakis
>Personal Website: http://cs.ucla.edu/~mastorakis/
><http://cs.ucla.edu/~mastorakis/>
>Internet Research Laboratory
>Computer Science Department
>UCLA
>
>> On Feb 6, 2017, at 2:41 AM, ? ??? <pengminjiong19911004 at outlook.com>
>wrote:
>> 
>> Hi
>> 
>> I wonder if in NDN, the packets aggregation is on router-level not
>publisher-level. ?
>> By publisher-level, I mean once publisher received two interest
>packets with the same data  name , it should give two responses.  Is
>that correct ?
>> 
>> For example
>> In my simulation, if the publisher receive 100 interest packets with
>same data name within a short time and the  publisher answers 100
>times. 
>> 
>> I checked the log file of publisher to confirm the results.
>> 
>> 
>> peng minjiong
>
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL:
><http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170206/1002bf5d/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 51, Issue 2
>*************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170206/ba48ce1e/attachment.html>


More information about the ndnSIM mailing list