<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><base href="x-msg://5913/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Xuan,</div><div><br></div>What I meant is to modify implementation of DoPropagateInterest method in model/fw/best-route.cc.  Instead of always following the same logic for all prefixes, you can check if pitEntry->GetFibEntry ()->GetPrefix () == ndn::Name("/ndn/broadcast"), and if so forward interest to all faces for the fib entry, instead of just "the best" one.<div><br></div><div>I'm not quite sure what exactly you did, it could help if you could show an example.  But I tend to think that the behavior you want should be part of the strategy layer, not the application (I'm guessing that you add the secondary face into the application..., could be wrong).</div><div><br></div><div>---</div><div>Alex</div><div><div><br></div><div><br><div><div>On Sep 9, 2013, at 11:04 AM, "Liu, Xuan (UMKC-Student)" <<a href="mailto:xuan.liu@mail.umkc.edu">xuan.liu@mail.umkc.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div fpstyle="1" ocsi="0" style="font-family: Menlo; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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; word-wrap: break-word; "><div style="direction: ltr; font-family: Tahoma; font-size: 10pt; ">Hi Alex,<div><br></div><div>Thank you. What do you mean by "hack BestRoute strategy"?  </div><div><br></div><div>In my code, I tried to create a secondary face for broadcasting, which is assigned a common prefix, for example "ndn/broadcasting", the the default face "m_face" is assigned specific prefix for the content. The node is able to receive the broadcasting interest, and content interest, but when the node tried to send out content, it crashed. I'm not sure where was wrong. </div><div><div><div style="font-family: Tahoma; font-size: 13px; "><div class="BodyFragment"><font size="2"><span style="font-size: 10pt; "><div class="PlainText"><br></div><div class="PlainText">Thanks,</div><div class="PlainText"><br></div><div class="PlainText"><span class="Apple-tab-span" style="white-space: pre; "></span>-- Xuan</div><div class="PlainText"><br></div><div class="PlainText"><br></div></span></font></div></div></div><div style="font-family: 'Times New Roman'; font-size: 16px; "><hr tabindex="-1"><div id="divRpF464520" style="direction: ltr; "><font face="Tahoma" size="2"><b>From:</b><span class="Apple-converted-space"> </span>Alexander Afanasyev [<a href="mailto:cawka1@gmail.com">cawka1@gmail.com</a>] on behalf of Alex Afanasyev [<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>]<br><b>Sent:</b><span class="Apple-converted-space"> </span>Monday, September 09, 2013 12:25 PM<br><b>To:</b><span class="Apple-converted-space"> </span>Liu, Xuan (UMKC-Student)<br><b>Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a><br><b>Subject:</b><span class="Apple-converted-space"> </span>Re: [ndnSIM] how to set the broadcasting prefix<br></font><br></div><div></div><div>Hi Xuan,<div><br></div><div>As of right now, the type of Interest processing does not depend on specific prefix and is fully defined by the forwarding strategy.  If you select Flooding, then for all prefixes that have multiple faces in FIB, you going to have broadcast behavior.  In our simulation we actually used this strategy, assuming that chat data is piggybacked along the SyncData.</div><div><br></div><div>It is relatively simple to enable different processing for different prefixes, but this would involve creating a new strategy, which combines Flooding and BestRoute behaviors, depending on FIB prefix.  As a shortcut, you can simply hack the BestRoute strategy for that.</div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Sep 7, 2013, at 6:10 PM, "Liu, Xuan (UMKC-Student)" <<a href="mailto:xuan.liu@mail.umkc.edu" target="_blank">xuan.liu@mail.umkc.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Menlo; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; "><div style="direction: ltr; font-family: Tahoma; font-size: 10pt; ">Hi Alex,<div><br></div><div>I have a question on how to set the prefix for broadcasting in ndnSIM. For example, my application is generating two types of interest, one type is sent out in broadcasting way, and the other type has a specific prefix. Do I need to create two fib entry at the application level? Or shall I create another face at the application level, and assign the broadcasting prefix to this second face? </div><div><br></div><div>In your chronoschat simulation, did you use /ndn/broadcasting/ as the prefix for broadcasting? Or did you use same prefix for all participant nodes?<br><div><br><div style="font-family: Tahoma; font-size: 13px; "><div class="BodyFragment"><font size="2"><span style="font-size: 10pt; "><div class="PlainText"><br></div><div class="PlainText">Thanks,</div><div class="PlainText"><br></div><div class="PlainText"><span class="Apple-tab-span" style="white-space: pre; "></span>-- Xuan</div></span></font></div></div></div></div></div></div></blockquote></div></div></div></div></div></div></div></blockquote></div><br></div></div></body></html>