[ndnSIM] Trace application

Spyridon (Spyros) Mastorakis spiros.mastorakis at gmail.com
Tue Jan 13 16:15:07 PST 2015


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 Laboratory
PhD 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

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


More information about the ndnSIM mailing list