[ndnSIM] L3AggregateTracer

Alex Afanasyev alexander.afanasyev at ucla.edu
Mon Jun 24 14:49:07 PDT 2013


Can you try to specify this:

aggTracers = ndn::L3AggregateTracer::InstallAll ("aggregate-trace.txt", Seconds (1.0));

This way you will get counters for each second, while being able to sum up everything by some other tool (e.g., R) afterwards.

There could be two things. Either because of some segfault you're not getting to the end of the simulation (hopefully it is not the case and if you ask to write log every second, you may be able to find out whether it is the case or not).  Another reason could be because of double precision number.  

999.9999999 not necessarily less then 1000.0  in double.  Try to specify 1000 for aggregate tracer and 1001 for total simulation time.

---
Alex

On Jun 24, 2013, at 2:34 PM, Flávio Queiroz <flavioqueiroz2004 at hotmail.com> wrote:

> One thousand of seconds:  http://pastebin.com/KQRQcg4Q
> - ----
> Flávio
> 
> 
> Em 24/06/13 18:18, Alex Afanasyev escreveu:
> > Hi Flavio,
> > 
> > by 1.000s you mean one second or thousand of seconds?  If you wrote
> > in your scenario something like ... Seconds (1.000) ..., then it
> > actually means just one second, and since the tracer writes data
> > only every seconds (by default), you're not getting any data
> > written into the file.
> > 
> > --- Alex
> > 
> > On Jun 24, 2013, at 2:08 PM, Flávio Queiroz
> > <flavioqueiroz2004 at hotmail.com> wrote:
> > 
> >> Hi Alex, I'm trying to simulate the following scenario:
> >> 
> >> 
> >> Attacker====Router=====Consumer || || || Producer
> >> 
> >> PIT_Size Router = 10.000 interest; PIT_Size Attacker and Consumer
> >> = no limit ; Pit_timeout Router = 1s; Attack rate = ConsumerCbr
> >> exponential 7.000/s inexistent interest ; Consumer rate =
> >> ConsumerCbr exponential 3.000/s existent interest ; Simulation
> >> time = 1.000s L3AggregateTracer
> >> 
> >> The problem is that when the simulation ends the
> >> L3AggregateTracer file is generated without values. When I
> >> simulate with shorter times (10s, 100s) I have no problem. Do you
> >> know what is happening? Thank you in advance, Flávio
> >> 
> > 
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130624/9c1c9ae8/attachment.bin>


More information about the ndnSIM mailing list