Thanks, Alex.<br><br><div class="gmail_quote">On Wed, Mar 6, 2013 at 9:36 PM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>I this case, I would recommend using <span style="color:rgb(64,112,160);font-size:12px;line-height:14px">ns3::ndn::cs::Freshness::* </span>content store implementations.  You can see details how freshness is handled in <a href="https://github.com/NDN-Routing/ndnSIM/blob/master/model/cs/custom-policies/freshness-policy.h" target="_blank">https://github.com/NDN-Routing/ndnSIM/blob/master/model/cs/custom-policies/freshness-policy.h</a> </div>
<div><br></div><div>The currently implemented way treats Freshness=0s as an unset value, but you can easily modify this behavior.</div><div><br></div><div>---</div><div>Alex</div><div><div class="h5"><br><div><div>On Mar 6, 2013, at 7:00 PM, Chengyu Fan <<a href="mailto:chengyu@cs.colostate.edu" target="_blank">chengyu@cs.colostate.edu</a>> wrote:</div>
<br><blockquote type="cite"><br><br><div class="gmail_quote">On Wed, Mar 6, 2013 at 5:05 PM, Alex Afanasyev <span dir="ltr"><<a href="mailto:alexander.afanasyev@ucla.edu" target="_blank">alexander.afanasyev@ucla.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>Freshness would work only if you're using a CS version that honors content freshness (<a href="http://ndnsim.net/cs.html#content-stores-respecting-freshness-field-of-contentobjects" target="_blank">http://ndnsim.net/cs.html#content-stores-respecting-freshness-field-of-contentobjects</a>)</div>

<div><br></div><div>If you want completely disable caching (not per specific packet), then you can set</div><div><pre style="overflow-x:auto;overflow-y:hidden;padding:5px;line-height:14px;border-top-width:1px;border-bottom-width:1px;border-style:solid none;border-top-color:rgb(170,204,153);border-bottom-color:rgb(170,204,153);font-size:12px">
<span>ndnHelper</span><span>.</span><span>SetContentStore (</span><span style="color:rgb(64,112,160)">"ns3::ndn::cs::Lru"</span><span>, </span><span style="color:rgb(64,112,160)">"MaxSize"</span><span>,</span> <span style="color:rgb(64,112,160)">"1");</span></pre>

<div><br></div><div>1 is the minimum value that you can set currently.  Would it be sufficient?  If not, it is possible to implement a non-caching "content store".  Let me know.</div></div></div></blockquote><div>

<br></div><div>For now, I can generate the required result without setting the content freshness.</div><div>But I may need it someday. Could you please tell me which file implements the caching behavior?</div><div><br></div>

<div>Thanks,</div><div>Chengyu</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>--</div><div>Alex</div>

<br><div><div><div><div>On Mar 6, 2013, at 3:54 PM, Chengyu Fan <<a href="mailto:chengyu@cs.colostate.edu" target="_blank">chengyu@cs.colostate.edu</a>> wrote:</div><br></div></div><blockquote type="cite">
<div><div>Hi <div><br></div><div>I want to do a experiment with no CS cache. For example, set the freshness as 0, so the routers would not cache this content.</div><div>However, when I check the code, I found that setting the Freshness to 0 means unlimited freshness:</div>


<div><br></div><div><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">producerHelper</span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">.</span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">SetAttribute</span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace"> </span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">(</span><span style="line-height:11.11111068725586px;color:rgb(221,17,68);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">"Freshness"</span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">,</span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace"> </span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">TimeValue</span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace"> </span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">(</span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">Seconds</span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace"> </span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">(</span><span style="line-height:11.11111068725586px;color:rgb(0,153,153);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">0</span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">)));</span><span style="line-height:11.11111068725586px;color:rgb(51,51,51);font-size:11.80555534362793px;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace"> </span><span style="line-height:11.11111068725586px;color:rgb(153,153,136);font-size:11.80555534362793px;font-style:italic;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px">// unlimited freshness</span></div>


<div><span style="line-height:11.11111068725586px;color:rgb(153,153,136);font-size:11.80555534362793px;font-style:italic;white-space:pre-wrap;font-family:Consolas,'Liberation Mono',Courier,monospace;margin:0px;border:0px;padding:0px"><span style="font-family:arial;font-size:small;font-style:normal;line-height:normal;white-space:normal"><br>


</span></span></div><div>So is there a way to let routers not cache the content?</div><div><br></div><div>Another question: does anyone know how many Attributes we can set? And what kind of format? Can we add new attributes?</div>


<div><br></div><div>Thanks,</div><div>Chengyu</div></div></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>

</blockquote></div><br></div></blockquote></div><br>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div><br></div></div></div></blockquote></div><br>