<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"><base href="x-msg://6462/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Aaron,<div><br></div><div>Yes, you can use any names in interests. If you use something like:</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; text-align: left; "><span class="hll" style="background-color: rgb(255, 255, 136);">  <span class="c1" style="color: rgb(64, 128, 144); font-style: italic;">// Consumer</span>
</span><span class="hll" style="background-color: rgb(255, 255, 136);">  <span class="n">ndn</span><span class="o" style="color: rgb(102, 102, 102);">::</span><span class="n">AppHelper</span> <span class="n">consumerHelper</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160);">"ns3::ndn::ConsumerCbr"</span><span class="p">);</span>
</span><span class="hll" style="background-color: rgb(255, 255, 136);">  <span class="c1" style="color: rgb(64, 128, 144); font-style: italic;">// Consumer will request /prefix/0, /prefix/1, ...</span>
</span><span class="hll" style="background-color: rgb(255, 255, 136);">  <span class="n">consumerHelper</span><span class="p">.</span><span class="n">SetPrefix</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160);">"/prefix"</span><span class="p">);</span>
</span><span class="hll" style="background-color: rgb(255, 255, 136);">  <span class="n">consumerHelper</span><span class="p">.</span><span class="n">SetAttribute</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160);">"Frequency"</span><span class="p">,</span> <span class="n">StringValue</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160);">"10"</span><span class="p">));</span> <span class="c1" style="color: rgb(64, 128, 144); font-style: italic;">// 10 interests a second</span>
</span><span class="hll" style="background-color: rgb(255, 255, 136);">  <span class="n">consumerHelper</span><span class="p">.</span><span class="n">Install</span> <span class="p">(</span><span class="n">nodes</span><span class="p">.</span><span class="n">Get</span> <span class="p">(</span><span class="mi" style="color: rgb(32, 128, 80);">0</span><span class="p">));</span> <span class="c1" style="color: rgb(64, 128, 144); font-style: italic;">// first node</span>
</span></pre><div>You will have interests with prefixes /prefix/0, /prefix/1, etc.  If you specify something else, then the other name will be used (you can have as many name components as you wish: /a/b/c/d).</div><div><br></div><div>However, if you want the same client to send interests for different data, then you would need to write a custom application that does the job.  For the guideline you can either check source code or this examples: <a href="http://ndnsim.net/applications.html#custom-applications">http://ndnsim.net/applications.html#custom-applications</a>.</div><div><br></div><div>Regarding the visualizer question.  Visualizer connects to trace sources from PointToPointNetDevice, WifiNetDevice, and other network device implementations.  Green means a successful transfer of packet and red, in many cases, means either queue overflow drop (for PointToPointNetDevice), or some other drop for other devices.  The packet loss is not related to ndnSIM implementation, but is purely NS-3 NetDevice things.  To avoid the loss you have to control how much packets are send out over the interface...</div><div><br></div><div>---</div><div>Alex</div><div><div><br></div><div>On Jul 4, 2013, at 8:52 PM, aaronishere <<a href="mailto:aaronishere@qq.com">aaronishere@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.5; font-family: Î¢ÈíÑźÚ; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; margin: 10px; "><div>Hi Alex,</div><div> </div><div>Is it possible to write different content names such as aaa, bbb, and ccc in a interest? </div><div> </div><div>Another is in the visualizer, the green arrow means packet flow, what does the red arrow mean? dropped packet?</div><div>I found that in the ndn-face.cc under the Face::Send (Ptr<Packet> packet) function, there's SendImpl (packet). I'm not sure which class the SendImpl() belongs to. It seems that packet loss is from that function when returns 0, is there some way to avoid such packet loss?</div><div> </div><div>Thanks a lot!   </div><hr align="left" size="1" style="width: 210px; height: 1px; "><div><span>Aaron</span></div></div></blockquote></div><br></div></body></html>