<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Amin,</div><div><br></div><div>Let me clarify a little bit with a small example:</div><div><br></div><div>Consumer --- Router ----- Producer1</div><div> |</div><div> +--------- Producer2</div><div><br></div><div>Assuming ns3::ndn::fw::Flooding strategy, Interests from the Consumer will reach both Producer1 and Producer2, and they both will send back a content object packet.</div><div><br></div><div>Router, receiving the first packet (depending on the topology, could be from Producer1 or Producer2) will forward it to the consumer and remove* the PIT entry. When the second content object arrives to the Router (not the consumer), it will be discarded by the router, as unsolicited. (I would not call this as a drop, since it is relatively high-level decision to not forward the specific packet.)</div><div><br></div><div>* PIT entry can be immediately removed (by default), or scheduled for removal within a short time interval (PitEntryPruningTimout). In either case, an extra content object will be discarded.</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><div>On Mar 31, 2013, at 12:02 PM, Amin Karami <<a href="mailto:amin@ac.upc.edu">amin@ac.upc.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">In case of ns3::ndn::fw::Flooding, we
will have several drops. Because when a consumer receives desired
content from first sender/producer, consumer will drop other same
contents. Yes? because the desired Interest has been satisfied and
removed from PIT.<br>
<br>
<br>
/Amin<br>
<br>
<br>
On 03/31/2013 08:42 ب.ظ, Alex Afanasyev wrote:<br>
</div>
<blockquote cite="mid:86D47D9B-953A-482E-89DA-02D5F34A7FBB@ucla.edu" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>Hi Amin,</div>
<div><br>
</div>
<div>I is possible, but it depends on the forwarding strategy to
deliver Interests to different producers. For example, if you
choose ns3::ndn::fw::BestRoute, then Interests will only be
delivered over the "shortest-metric" path and some of the
producers will never see the Interests. If you use
ns3::ndn::fw::Flooding, then all of the producers will receive
Interests and it would depend on network topology
(delays/losses) content object from which exactly producer will
reach the consumer.</div>
<div><br>
</div>
<div>In case if you have several consumers, depending on topology
and forwarding strategy, they may be getting content objects
from different producers.</div>
<div><br>
</div>
<div>If you want only some Interests be satisfied by one producers
and other by another, you may need to amend ndn::Producer
implementation (or better create a new custom Producer app) by
adding the appropriate logic.</div>
<div><br>
</div>
<div>---</div>
<div>Alex</div>
<br>
<div>
<div>On Mar 31, 2013, at 11:35 AM, Amin Karami <<a moz-do-not-send="true" href="mailto:amin@ac.upc.edu">amin@ac.upc.edu</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div text="#000000" bgcolor="#FFFFFF"> Hi friends,<br>
Is it possible to satisfy sent Interests from a consumer
with more than one producer?<br>
for example, does the following code work correctly to
satisfy Interests in /dst1 namespace with three producers?<br>
<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; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="hll" style="background-color: rgb(255, 255, 136);"><span class="n"> ndnGlobalRoutingHelper</span><span class="p">.</span><span class="n">AddOrigins</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160);">"/dst1"</span><span class="p">,</span> <span class="n">producer1</span><span class="p">);</span>
</span><span class="hll" style="background-color: rgb(255, 255, 136);"> <span class="n">producerHelper</span><span class="p">.</span><span class="n">SetPrefix</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160);">"/dst1"</span><span class="p">);</span>
</span><span class="hll" style="background-color: rgb(255, 255, 136);"> <span class="n">producerHelper</span><span class="p">.</span><span class="n">Install</span> <span class="p">(</span><span class="n">producer1</span><span class="p">);
</span> </span>
<span class="hll" style="background-color: rgb(255, 255, 136);"><span class="n"> ndnGlobalRoutingHelper</span><span class="p">.</span><span class="n">AddOrigins</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160);">"/dst1"</span><span class="p">,</span> <span class="n">producer2</span><span class="p">);</span>
</span><span class="hll" style="background-color: rgb(255, 255, 136);"> <span class="n">producerHelper</span><span class="p">.</span><span class="n">SetPrefix</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160);">"/dst1"</span><span class="p">);</span>
</span><span class="hll" style="background-color: rgb(255, 255, 136);"> <span class="n">producerHelper</span><span class="p">.</span><span class="n">Install</span> <span class="p">(</span><span class="n">producer2</span><span class="p">);</span></span>
<span class="hll" style="background-color: rgb(255, 255, 136);"><span class="n"> ndnGlobalRoutingHelper</span><span class="p">.</span><span class="n">AddOrigins</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160);">"/dst1"</span><span class="p">,</span> <span class="n">producer3</span><span class="p">);</span>
</span><span class="hll" style="background-color: rgb(255, 255, 136);"> <span class="n">producerHelper</span><span class="p">.</span><span class="n">SetPrefix</span> <span class="p">(</span><span class="s" style="color: rgb(64, 112, 160);">"/dst1"</span><span class="p">);</span>
</span><span class="hll" style="background-color: rgb(255, 255, 136);"> <span class="n">producerHelper</span><span class="p">.</span><span class="n">Install</span> <span class="p">(</span><span class="n">producer3</span><span class="p">);</span></span>
</pre>
<br>
Best Regards,<br>
/Amin<br>
<br>
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a moz-do-not-send="true" href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a class="moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote>
</div>
<br>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>Best Regards</title><p><font style="font-size: 10pt" face="Verdana"><font color="#666666">
<br>
Best Regards,<br>
<br>
=======================================================<br>
Amin Karami, PhD student in Computer Architecture Department
(DAC) at<br>
the Universitat Politècnica de Catalunya Barcelona Tech
(UPC)<br>
<br>
e-mail: </font> <a href="mailto:amin@ac.upc.edu" style="text-decoration:none" target="_blank">
<font color="#666666">amin@ac.upc.edu</font></a><font color="#666666"> | UPC-Campus Nord., Office: C6-E102<br>
phone: +34 93 40 11 638 | Jordi Girona, 1-3<br>
</font>
</font><font color="#666666"><font style="font-size: 9pt" face="Verdana"> </font>
<font size="2" face="Verdana"> </font><font style="font-size:
9pt" face="Verdana"> </font>
</font><font style="font-size: 10pt" face="Verdana"><font color="#666666">| 08034 Barcelona - SPAIN<br>
WWW: </font> <a href="http://personals.ac.upc.edu/amin/" style="text-decoration:none" target="_blank">
<font color="#666666">http://personals.ac.upc.edu/amin/</font></a><font color="#666666"><br>
=======================================================<br>
</font></font></p>
</div>
</div>
</blockquote></div><br></body></html>