[ndnSIM] Manually change face state

Muhammad Hosain Abdollahi Sabet mhasabet at gmail.com
Thu Mar 16 21:58:57 PDT 2017


Junxiao,

Thanks for the explanation. So for now since LinkService part isn't
implemented, in NFD therefore ndnSIM we *only* have transport for
indicating a face(and a link) state. So if I set transport state to FAILED
or CLOSED it will be like the actual link is DOWN, right?


Spyridon,

Having what Junxiao said, I wonder why did you recommend to set state for
Face directly. Is it to avoid getting into programming complexities?

Thanks,
Sabet


On Thu, Mar 16, 2017 at 10:24 PM, Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:

> Hi Γιαννης
>
> NFD face state is a combination of transport state and LinkService state.
> The former, transport state, reports the state of the underlying socket.
> The latter, LinkService state, reports the state as perceived by
> LinkService. This part is not yet implemented.
> Face class would not set either transport state or LinkService state, but
> only read from them and report the combined state. It currently only reads
> and returns transport state because LinkService state isn't implemented.
>
> When a link becomes so lossy that communication is no longer possible, the
> LinkService is supposed to detect this situation (using Bidirectional
> Forwarding Detection, for example) and report LinkService state as DOWN.
> Since the socket is still connected, the transport state remains UP.
>
> Yours, Junxiao
>
> On Tue, Mar 7, 2017 at 18:29 Γιαννης Μανωλοπουλος <
> j.manolopoulos at gmail.com> wrote:
>
> 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).
>
> 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.
>
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170317/5dfc433c/attachment.html>


More information about the ndnSIM mailing list