<div><br></div><div><div>Hi Alex</div><div>Thanks a lot, now I can update new commits :)</div><div><br></div><div>Cheers!!</div><div><br></div><div>-Zeeshan</div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Alex Afanasyev"<alexander.afanasyev@ucla.edu>;</div><div><b>Date: </b> Feb 8, 2013</div><div><b>To: </b> "Xee"<1839750381@qq.com>; <wbr></div><div></div><div><b>Subject: </b> Re: [ndnSIM] Content Store Size</div></div><div><br></div><div>If you haven't modified anything under ns-3 (you really shouldn't, you can write your scenarios and extension as a separate module like <a href="https://github.com/cawka/ndnSIM-scenario-template">https://github.com/cawka/ndnSIM-scenario-template</a> and <a href="https://github.com/cawka/ndnSIM-comcom-stateful-fw">https://github.com/cawka/ndnSIM-comcom-stateful-fw</a></div><div><br></div><div># update NS-3</div><div>cd ns-3</div><div>git fetch origin</div><div>git merge origin/master</div><div><br></div><div># update ndnSIM</div><div>cd src/ndnSIM</div><div>git fetch origin</div><div>git merge origin/master</div><div><br></div><div><br></div><div>Technically, these steps should work even if you modified something, but the also may fail (will not fail if you just added new files).  If merge failed, you can always issue</div><div><br></div><div>git merge --abort</div><div><br></div><div>which will abort merge</div><div><br></div><div>**** IF YOU DID MODIFICATIONS **** you should first commit your changes.</div><div>git status   </div><div><br></div><div>to see what has changed</div><div><br></div><div>git add <file(s)></div><div>git commit</div><div><br></div><div>to save change.</div><div><br></div><div>You can check more about git here: <a href="http://git-scm.com/">http://git-scm.com/</a></div><div><br>Sincerely,<br><div>Alex</div></div><div><br>On Feb 7, 2013, at 7:31 PM, "Xee" <1839750381@<a href="http://qq.com">qq.com</a>> wrote:<br><br></div><blockquote type="cite"><div>I am not much experience with ndnsim and may be with linux. Can you help me to how to update the existing ndnsim with your commit changes plz.</div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Alex Afanasyev"<<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>>;</div><div><b>Date: </b> Feb 8, 2013</div><div><b>To: </b> "Xee"<1839750381@<a href="http://qq.com">qq.com</a>>; <wbr></div><div><b>Cc: </b> "ndnsim"<<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>>; <wbr></div><div><b>Subject: </b> Re: [ndnSIM] Content Store Size</div></div><div><br></div>Hi Zeeshan,<br><br>Yes, it is possible to set individual sizes for cache sizes on nodes.  One of the ways to do this is to use Config class, for example like this:<br><br>// set up max sizes, after NDN stack is installed<br>Config::Set ("/NodeList/0/$ns3::ndn::ContentStore/MaxSize", UintegerValue (1)); // number after nodeList is global ID of the node (= node->GetId ())<br>Config::Set ("/NodeList/1/$ns3::ndn::ContentStore/MaxSize", UintegerValue (2));<br>Config::Set ("/NodeList/2/$ns3::ndn::ContentStore/MaxSize", UintegerValue (200));<br><br>This would work for all content store types, you don't need to (would work either way) specify a specific type of content store in Config::Set.<br><br>I pushed a new commit to ndnSIM repository with a simple example (ndn-simple-with-different-sizes-content-store.cc).<br><br><br>---<br>Alex<br><br>On Feb 7, 2013, at 6:26 AM, "Xee" <1839750381@<a href="http://qq.com">qq.com</a>> wrote:<br><br>> Hi<br>> <br>> I want to simulate a scenario with different content store sizes for different nodes. Is it possible to simulate the senario I need ?<br>> <br>> -Zeeshan<br></div></blockquote></div>