[ndnSIM] Trace application

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed Jan 14 08:13:22 PST 2015


Narjes,

Can you give us a basic code that can reproduce the problem, so we would be able to trace it?

--
Alex


> On Jan 14, 2015, at 10:47 AM, narjes aloulou <aloulounarjes at yahoo.fr> wrote:
> 
> Thanks for your response Spyridon,
> 
> The client receives the data in the forwarding strategy  so onData method of fw is executed. But in the application side, the OnData is not executed!!! How can solve this problem?
> 
> Best regards
> --------------------------------------------
> En date de : Mer 14.1.15, Spyridon (Spyros) Mastorakis <spiros.mastorakis at gmail.com> a écrit :
> 
> Objet: Re: [ndnSIM] Trace application
> À: "narjes aloulou" <aloulounarjes at yahoo.fr>
> Cc: ndnsim at lists.cs.ucla.edu
> Date: Mercredi 14 janvier 2015, 1h15
> 
> Hello,
> The
> OnData method of the application class is called each time
> that new Data will arrive for the consumer
> application. The OnData
> method of the forwarding strategy does the actual processing
> of a Data packet during the forwarding process (e.g., check
> whether the Data packet is unsolicited or duplicated, add
> the data to the Content Store, satisfy pending interests,
> perform some data plane performance measurements
> etc.).The OnData method of
> the application is called only on a consumer node, whereas
> the OnData method of the forwarding strategy is called on
> every node that receives a Data packet.
> I
> will make an educated guess for your issue: Make sure that
> you actually install a Global Routing Helper, calculate and
> install FIBs (CalculateRoutes method) and add the correct
> origins and prefix to the Global Routing Helper (AddOrigins
> method).
> 
> --Spyridon
> (Spyros) Mastorakis
> Personal
> Website: http://cs.ucla.edu/~mastorakis/Internet
> Research LaboratoryPhD
> Computer Science
> UCLA
> 
> 
> 
> 
> 
> On Jan 13, 2015, at 3:48 PM, narjes
> aloulou <aloulounarjes at yahoo.fr>
> wrote:
> Hi,
> 
> I want to  trace the download time of
> a content (zipf consumer). However,  the trace is generated
> as an empty file. When I debug the code, I found that the
> method OnData of the zipf-consumer class is not executed.
> 
> My questions: when Ondata of the
> application is executed? what 's the relation between
> Ondata of the forwarding strategy and OnData of the
> application?
> 
> Best regards
> 
> _______________________________________________
> 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 --------------
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/20150114/1f0475f9/attachment.bin>


More information about the ndnSIM mailing list