[ndnSIM] Get Cached Content Size

qhsong ndn at sqh.me
Wed Jun 15 00:16:04 PDT 2016


Hi,
Sorry to my mistake, that's data packet.

Thanks for your help.

Best wishes,
qhsong

2016-06-15 1:50 GMT+08:00 Spyridon (Spyros) Mastorakis <
mastorakis at cs.ucla.edu>:

> I guess you meant to say Data packets :-)
>
> If the MaxSize of the CS of a node is 1024, this node has a CS that can
> store 1024 data packets.
>
> Hope that this helps.
>
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
> UCLA
>
> On Jun 14, 2016, at 3:21 AM, qhsong <ndn at sqh.me> wrote:
>
> Hi,
> For example,  I use SetOldContentStore to set "MaxSize" for a node, I set
> MaxSize is 1024.
> That means this node can store 1024 Interest packets, Or this node can
> store 1024B Interest packet totally.
> Do you get my point?
>
> Best wishes,
> qhsong
>
> 2016-06-09 6:25 GMT+08:00 Spyridon (Spyros) Mastorakis <
> mastorakis at cs.ucla.edu>:
>
>> Hi,
>>
>> I am not sure I understand your question. Could you tell me where you
>> found this term, so that I can understand the context?
>>
>> Thanks,
>>
>> Spyridon (Spyros) Mastorakis
>> Personal Website: http://cs.ucla.edu/~mastorakis/
>> Internet Research Laboratory
>> Computer Science Department
>> UCLA
>>
>> On Jun 8, 2016, at 7:31 AM, qhsong <ndn at sqh.me> wrote:
>>
>> BTY, Is"max content size" means max  content entry number, not the total
>> size of content entry file number?
>>
>> qhsong
>>
>> 2016-06-02 9:41 GMT+08:00 Spyridon (Spyros) Mastorakis <
>> mastorakis at cs.ucla.edu>:
>>
>>> Hi,
>>>
>>> if you use the CS of NFD, you can use the size() method of the CS class
>>> to get the number of packets stored in CS:
>>>
>>>
>>> https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.3.4-ndnSIM/daemon/table/cs.hpp#L125
>>>
>>> If you use the CS of ndnSIM, you can use the GetSize() method to
>>> retrieve the number of packets stored in CS:
>>>
>>>
>>> https://github.com/named-data-ndnSIM/ndnSIM/blob/master/model/cs/ndn-content-store.hpp#L151-L152
>>>
>>> Use example:
>>>
>>>
>>> https://github.com/named-data-ndnSIM/ndnSIM/blob/a4915caa0c4121f2dd87fd3d7cc3b6eb91632f16/tests/other/ndn-test.cpp#L113-L116
>>>
>>> Hope that this helps!
>>>
>>> Spyridon (Spyros) Mastorakis
>>> Personal Website: http://cs.ucla.edu/~mastorakis/
>>> Internet Research Laboratory
>>> Computer Science Department
>>> UCLA
>>>
>>> On May 30, 2016, at 4:42 AM, Dhiab Imen <dhiabimen at gmail.com> wrote:
>>>
>>> Hi all,
>>>
>>> I want to know if it is possible to get total size of cached content in
>>> the content Store? and how??
>>>
>>> thanks for help.
>>>
>>> --
>>> Cordialement
>>> Imen Dhiab
>>>
>>>
>>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160615/0a457d0f/attachment.html>


More information about the ndnSIM mailing list