<div><div dir="auto">Hi Sepehr</div></div><div dir="auto"><br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I read Chapter 4 but I still don't know how to approach it in mini-ndn.</div><div>What I exactly want to do is implementing two strategies:</div><div>Strategy 1: the content for the interest comes from the nearest node which has cached it.</div></div></blockquote><div dir="auto">“nearest” cannot be achieved with flooding, because path congestion and node overload would slow down data reply.</div><div dir="auto">FNR seems to have this “nearest cached copy” through a track server, but I don’t know how it works. <a href="https://named-data.net/wp-content/uploads/2017/04/16-icccn-nearest.pdf">https://named-data.net/wp-content/uploads/2017/04/16-icccn-nearest.pdf</a></div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div>Strategy 2: lets say N nodes have cached the data I want. two of them are chosen randomly and between these two, the data should be received from the one with less load.</div></div></blockquote><div dir="auto">You can’t choose “two of them” because you don’t know who has cached data. The network simply floods the Interest and whoever has the data will answer. The answer that arrives first wins. If a node is overloaded, a path is long, or a path has congestion, the data would arrive late and be dropped.</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div><div><br></div><div>How can I approach the problem of implementing these two strategies?</div></div></blockquote><div dir="auto">Self-learning is in the process of being implemented. Check back in a few months.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div></div></div>