[ndnSIM] ndnSIM Digest, Vol 107, Issue 24

Zakaria SABIR zakaria.sabir at uit.ac.ma
Sat Oct 16 01:25:05 PDT 2021


Hi Hussein,

Thank you so much for your reply. I'll try the code.

My best regards,
Zakaria
ᐧ

On Thu, Oct 14, 2021 at 8:00 PM <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: Current size of CS & PIT (Hussein AlOmaisi)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 14 Oct 2021 01:10:31 +0000 (UTC)
> From: Hussein AlOmaisi <alomaisi2004 at yahoo.com>
> To: "ndnsim at lists.cs.ucla.edu" <ndnsim at lists.cs.ucla.edu>
> Subject: Re: [ndnSIM] Current size of CS & PIT
> Message-ID: <1604247277.1394161.1634173831992 at mail.yahoo.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Zakrai,
> 1.a) How to calculate the total of entries in the CS at each second of the
> simulation time?2) Similarly, is there any way to obtain the number of
> entries in the PIT
> by time?
> To get PIT and CS size (number of entries), her a simple code:
> void printPitCSSize(){
> ? auto currentNode = ns3::NodeList::GetNode(ns3::Simulator::GetContext());
> ? auto& CurrNodePit =
> currentNode->GetObject<ndn::L3Protocol>()->getForwarder()->getPit();
> ? auto& CurrNodeCS =
> currentNode->GetObject<ndn::L3Protocol>()->getForwarder()->getCs();
> ? std::cout << "PIT number of entries: " << CurrNodePit.size() << " | CS
> number of stored packets: " <<? CurrNodeCS.size();
> }
> to get that information at every specific time, you can schedule calling
> printPitCSSize() function using ns3::Simulator::Schedule().
>
> 1.b) If I use the CS tracer and count the number of cache hits at every
> second, does this give the number of entries at that time?
> No. Cache hits do not express the total number stord packets in the cache.
> Cache hit only indicates the case that a request has been successfully
> satisified from the node's local cache. Assume that there are 10 stored
> packets in the cache, at specific time, 2 requests have been received and
> satisifed from the local cache, in this case the cache size is 10 while the
> cache hits is 2.?
>
> I hope it helps.
> Best regards,Hussein
>
>
>     On Thursday, October 14, 2021, 03:00:05 AM GMT+8, <
> 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. Current size of CS & PIT (Zakaria SABIR)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 13 Oct 2021 16:21:32 +0100
> From: Zakaria SABIR <zakaria.sabir at uit.ac.ma>
> To: ndnsim <ndnsim at lists.cs.ucla.edu>
> Subject: [ndnSIM] Current size of CS & PIT
> Message-ID:
> ??? <CAPQYZ1-5PZpqx10XBtkvzbR8TWkEBnbFn9fYP4Ex9990mBEXQA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Dear members,
>
> I have 2 questions about the size of the CS and the PIT:
>
> 1) How to calculate the total of entries in the CS at each second of the
> simulation time? If I use the CS tracer and count the number of cache hits
> at every second, does this give the number of entries at that time?
>
> 2) Similarly, is there any way to obtain the number of entries in the PIT
> by time?
>
> Regards,
> Zakaria
> ?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20211013/ed993460/attachment-0001.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 107, Issue 23
> ***************************************
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20211014/1bce7918/attachment-0001.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 107, Issue 24
> ***************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20211016/16bc1cd4/attachment.html>


More information about the ndnSIM mailing list