<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<a href="https://github.com/named-data/mini-ndn/blob/5dbf99dd7851b1bb3c83f5910b0078e44e8ec715/minindn/apps/nfd.py#L30">https://github.com/named-data/mini-ndn/blob/5dbf99dd7851b1bb3c83f5910b0078e44e8ec715/minindn/apps/nfd.py#</a>
<a href="https://github.com/named-data/mini-ndn/blob/5dbf99dd7851b1bb3c83f5910b0078e44e8ec715/minindn/apps/nfd.py#L30">
L30</a> <br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Cache size for NFD is controlled in the code, not in the topology file (set 0 to disable)
<span id="ms-outlook-android-cursor"></span><br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<a href="https://github.com/named-data/mini-ndn/blob/5dbf99dd7851b1bb3c83f5910b0078e44e8ec715/examples/mnndn.py#L43">https://github.com/named-data/mini-ndn/blob/5dbf99dd7851b1bb3c83f5910b0078e44e8ec715/examples/mnndn.py#</a>
<a href="https://github.com/named-data/mini-ndn/blob/5dbf99dd7851b1bb3c83f5910b0078e44e8ec715/examples/mnndn.py#L43">
L43</a> <br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
To set differently on different nodes, pass individual nodes instead of <a href="http://ndn.net">
ndn.net</a>.hosts above iirc. <br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Ashlesh <br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<span id="OutlookSignature">
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Ashlesh</div>
</span><br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Mini-NDN <mini-ndn-bounces@lists.cs.ucla.edu> on behalf of Andre via Mini-NDN <mini-ndn@lists.cs.ucla.edu><br>
<b>Sent:</b> Tuesday, November 3, 2020 6:19:18 PM<br>
<b>To:</b> mini-ndn@lists.cs.ucla.edu <mini-ndn@lists.cs.ucla.edu><br>
<b>Subject:</b> [Mini-NDN] Setting cache size for hosts</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hello everyone,<br>
<br>
<br>
I am running a set of experiments to evaluate the impact of different <br>
cache sizes on nodes by running consumers and producers around a set of <br>
data with different payload sizes. To set the cache on the topology <br>
file, I'm using the cache parameter as follows:<br>
<br>
[nodes]<br>
a1: _ radius=0.5 angle=2.64159265359<br>
b1: _ cache=0 radius=0.6 angle=3.64159265359<br>
c1: _ cache=1 radius=1 angle=1.57079632679<br>
d1: _ radius=1 angle=4.71238898038<br>
[links]<br>
a1:b1 delay=10ms<br>
a1:c1 delay=10ms<br>
b1:d1 delay=500ms<br>
<br>
<br>
The topology seems to be correctly parsed, as the hostnames match and <br>
the first transmission times make sense. However, setting a node with <br>
cache=0 or cache=1, does not seem to have an impact since it still <br>
manages to keep data in its local cache, resulting in very low <br>
transmission times once the data has been received for the first time.<br>
<br>
[main] reading results for consumer node=b1<br>
[readResultFile] <Transmission> interest=/C2Data/a1/C2Data-1-Type1, <br>
timeDiff=57186.000000, info=DATA, timeSinceEpoch=04/11/2020 02:01:05.653857<br>
[readResultFile] <Transmission> interest=/C2Data/a1/C2Data-1-Type1, <br>
timeDiff=599.000000, info=DATA, timeSinceEpoch=04/11/2020 02:01:09.212475<br>
[readResultFile] <Transmission> interest=/C2Data/a1/C2Data-1-Type1, <br>
timeDiff=683.000000, info=DATA, timeSinceEpoch=04/11/2020 02:01:10.579962<br>
[readResultFile] <Transmission> interest=/C2Data/a1/C2Data-1-Type1, <br>
timeDiff=704.000000, info=DATA, timeSinceEpoch=04/11/2020 02:01:13.073228<br>
<br>
<br>
So I'm wondering if there is some conceptual fault to my setup, or maybe <br>
there is an error to the way I used the topology file (which I have <br>
based on the now deprecated minindnedit) to set the cache.<br>
<br>
<br>
Thanks in advance,<br>
<br>
André D. Carneiro<br>
<br>
_______________________________________________<br>
Mini-NDN mailing list<br>
Mini-NDN@lists.cs.ucla.edu<br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a><br>
</div>
</span></font></div>
</body>
</html>