Bugzilla – Full Text Bug Listing |
Summary: | NetDevices are inconsistent with LinkUp/LinkDown | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Tommaso Pecorella <tommaso.pecorella> |
Component: | general | Assignee: | ns-bugs <ns-bugs> |
Status: | CONFIRMED --- | ||
Severity: | major | CC: | suz.ruth.peter |
Priority: | P3 | ||
Version: | ns-3-dev | ||
Hardware: | All | ||
OS: | All |
Description
Tommaso Pecorella
2017-10-24 16:45:16 EDT
Hi, I am working on continuing the implementation of MIH in ns-3 which would require LinkUp and LinkDown events. Hence, I would like to know what exactly is the issue with LinkUp and LinkDown methods of NetDevice as I was not very clear after going through the bug. Hi, the problem is twofold: 1) Not all the NetDevices fire the callback set by AddLinkChangeCallback consistently. For example, Wi-Fi does it, but LTE doesn't. 2) Ipv*Interfaces are "Up" as soon as the NetDevice is up and running, and they are not set to down when the NetDevice is down. A better model would be to defer the Ipv*Interface setup to when the netDevice is up for real and to set it to down when the NetDevice loses its connectivity. that, of course, preserving the capability to manually set an Ipv*Interface to down when needed. However, it should go up only when the NetDevice is up as well. (In reply to Susanna Ruth Peter from comment #1) > Hi, > > I am working on continuing the implementation of MIH in ns-3 which would > require LinkUp and LinkDown events. Hence, I would like to know what exactly > is the issue with LinkUp and LinkDown methods of NetDevice as I was not very > clear after going through the bug. Thanks for the clarifications. |