[ndnSIM] How to get the Interest information from each face?

Alex Afanasyev alexander.afanasyev at ucla.edu
Fri Mar 1 13:16:35 PST 2013


Hi Chengyu,

A slow tracer installation speed is an artifact of the current way I have implemented the tracer.  There is definitely a need to add a couple of other Install methods that would allow more granular installing.  

If you have time, you can convert the existing InstallAll method to Install(node,...) and the make a new variant of InstallAll to be wrapped on top of Install.   I have a little bit overloaded at the moment to make it myself, but would be happy to integrate your patch/commit.

There is another improvement that could be made inside Connect method. As it stands right now, there is absolutely no reason to use Config::Connect, which becomes a bottleneck in cases similar to yours.  When I get time, I'll push a correction to optimize the process.

---
Alex

On Mar 1, 2013, at 1:05 PM, Chengyu Fan <chengyu at cs.colostate.edu> wrote:

> I read the page, but the tracer class only provides installAll medthod.
> It installs the tracer on every node, which is very slow. (It has more than 3k nodes)
> Can I just install the tracer on producers?
> 
> Thanks,
> Chengyu
> 
> On Thu, Feb 28, 2013 at 12:50 PM, Alex Afanasyev <alexander.afanasyev at ucla.edu> wrote:
>> I think you overcomplicate things.  Do you need this information in runtime or just for later analysis?
>> 
>> If for later analysis, ndnSIM has a couple of metric tracing helpers that already collect this sort of information (http://ndnsim.net/metric.html#packet-level-trace-helpers).  Both ndn::L3AggregateTracer and ndn::L3RateTracer will give the information you're interested in.
>> 
>> Is it what you need or you need something more than just numbers?  
>> 
>> ---
>> Alex
>> 
>> On Feb 27, 2013, at 4:56 PM, Chengyu Fan <chengyu at cs.colostate.edu> wrote:
>> 
>>> Hi~
>>> 
>>> Please forgive me if I missed something apparent.
>>> 
>>> I want to collect the information of how many Interests and what Interests arrive on a node from different faces.
>>> Unfortunately, I did not find an example that shows how to collect those data. 
>>> 
>>> I find a class ns3::ndn::NetDeviceFace that seems suit my requirements. And I need to override RegisterProtocolHandler function.
>>> Is it correct?
>>> 
>>> Or is there a Tracer class can collect the data for me?
>>> 
>>> Thanks,
>>> Chengyu
>>> _______________________________________________
>>> ndnSIM mailing list
>>> ndnSIM at lists.cs.ucla.edu
>>> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
> 
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130301/dd3224df/attachment.html>


More information about the ndnSIM mailing list