<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;" class=""><div class="">Hi, </div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">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 class=""><br class=""></div><a href="https://github.com/named-data-ndnSIM/NFD/blob/38111cde9bab698f6eaf1a9d430130c2cbb3eca4/daemon/face/face.hpp#L289" class="">https://github.com/named-data-ndnSIM/NFD/blob/38111cde9bab698f6eaf1a9d430130c2cbb3eca4/daemon/face/face.hpp#L289</a><div class=""><br class=""></div><div class="">There is an enumeration for the state of a Face transport available here:</div><div class=""><br class=""></div><div class="">https://github.com/named-data-ndnSIM/NFD/blob/38111cde9bab698f6eaf1a9d430130c2cbb3eca4/daemon/face/transport.hpp#L41</div><div class=""><br class=""></div><div class="">Hope that this helps,<br class=""><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 7, 2017, at 5:29 PM, Γιαννης Μανωλοπουλος <j.manolopoulos@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello,<br class=""> <br class="">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 class=""><br class="">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 class=""><br class="">Thanks!<br class=""></div><br class=""></div></blockquote></div><br class=""></div></div></body></html>