<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Spyridon,<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I have a couple of questions on this that I will be grateful if you could help me with:</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">In transport.hpp there is a setState, but it hasn't been called in face.hpp at all. What is the reason?</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">With this lead of yours I'm trying to extend linkControlHelper to actually fail a link by setting its state to FAILED or CLOSED. Is there a specific reason it hasn't been done already?</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks,</div><div class="gmail_default" style="font-family:tahoma,sans-serif">Sabet<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 9, 2017 at 1:08 AM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi, </div><div><br></div><div>each application has a corresponding face, so you could extend your application logic to set the state of its face to the local forwarder to DOWN. </div><div><br></div><div>You will also have to modify NFD to be able to set the state of a Face based on its transport instance, similar to this getState method (create a setState method):</div><div><br></div><a href="https://github.com/named-data-ndnSIM/NFD/blob/38111cde9bab698f6eaf1a9d430130c2cbb3eca4/daemon/face/face.hpp#L289" target="_blank">https://github.com/named-data-<wbr>ndnSIM/NFD/blob/<wbr>38111cde9bab698f6eaf1a9d430130<wbr>c2cbb3eca4/daemon/face/face.<wbr>hpp#L289</a><div><br></div><div>There is an enumeration for the state of a Face transport available here:</div><div><br></div><div><a href="https://github.com/named-data-ndnSIM/NFD/blob/38111cde9bab698f6eaf1a9d430130c2cbb3eca4/daemon/face/transport.hpp#L41" target="_blank">https://github.com/named-data-<wbr>ndnSIM/NFD/blob/<wbr>38111cde9bab698f6eaf1a9d430130<wbr>c2cbb3eca4/daemon/face/<wbr>transport.hpp#L41</a></div><div><br></div><div>Hope that this helps,<br><div><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~<wbr>mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div></div></div>
</div><div><div class="h5">
<br><div><blockquote type="cite"><div>On Mar 7, 2017, at 5:29 PM, Γιαννης Μανωλοπουλος <<a href="mailto:j.manolopoulos@gmail.com" target="_blank">j.manolopoulos@gmail.com</a>> wrote:</div><br class="m_-894352623772672089Apple-interchange-newline"><div><div dir="ltr">Hello,<br> <br>I am trying to model link failure between a router and a particular consumer. The consumer has issued an interest, but the link fails while awaiting for the data packet. I tried using LinkControlHelper, but it only sets the error rate of the channel to maximum and won't change consumer application's face state to DOWN. So, when the data packet arrives at the router, as far as the forwarder/strategy is concerned, it is forwarded correctly to the consumer and the pit entry gets deleted eventually, whereas I want to maintain it for the duration of InterestLifetime or at least until the link is up again (for experimental purposes).<br><br>So I was wondering if there is a way to schedule for this particular face to change its state to DOWN at a given time, and then change it back to UP when the link is up again.<br><br>Thanks!<br></div><br></div></blockquote></div><br></div></div></div></div></div><br>______________________________<wbr>_________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank" rel="noreferrer">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div></div>