<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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">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 class="n">ndnHelper</span><span class="p">.</span><span class="n">SetContentStore (</span><span class="s" style="color: rgb(64, 112, 160); ">"ns3::ndn::cs::Lru"</span><span class="p">, </span><span class="s" style="color: rgb(64, 112, 160); ">"MaxSize"</span><span class="p">,</span> <span class="s" 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><br></div><div>--</div><div>Alex</div><br><div><div>On Mar 6, 2013, at 3:54 PM, Chengyu Fan <<a href="mailto:chengyu@cs.colostate.edu">chengyu@cs.colostate.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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 class="n" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">producerHelper</span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">.</span><span class="n" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">SetAttribute</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)"> </span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">(</span><span class="s" style="margin:0px;padding:0px;border:0px;color:rgb(221,17,68);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">"Freshness"</span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">,</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)"> </span><span class="n" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">TimeValue</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)"> </span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">(</span><span class="n" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">Seconds</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)"> </span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">(</span><span class="mi" style="margin:0px;padding:0px;border:0px;color:rgb(0,153,153);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">0</span><span class="p" style="margin:0px;padding:0px;border:0px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">)));</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)"> </span><span class="c1" style="margin:0px;padding:0px;border:0px;color:rgb(153,153,136);font-style:italic;font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)">// unlimited freshness</span></div>
<div><span class="c1" style="margin:0px;padding:0px;border:0px;color:rgb(153,153,136);font-style:italic;font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.80555534362793px;line-height:11.11111068725586px;white-space:pre;background-color:rgb(255,255,255)"><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>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></body></html>