Thank you Piotr for the detailed report.
I am aware of the problem and I am working on the solution. I introduced a problem while adding some changes in my last updates and I haven't be able to implement the solution.
I can have it fixed but I need sometime, I am on a winter break and I am running some errands with the family.
A1. Yeah, it is not supposed to crash.
A2. Same problem on my side. There is for sure a fix. I just need to work on it :D.
A3. In the example, all nodes are supposed to join the network and not crash.
That being said, naturally, scenarios where nodes are not able to join the network do exist. Just be aware that in these situations nodes will node not retry to join the network unless you implement it.
The reason is that this is not supposed to be handled or decided by the NWK layer, so be aware of this in large simulations such as the one you describe with 1000 nodes.
Also, with 1000 nodes, the chances of being assigned the same short address increase (addresses are assigned randomly) and there is no mechanism to detect address collision yet.
There should be one, but we haven't added support for one yet.
A4. Unfortunately, I have no concrete solution right now until I check the problem in depth.
A5. The distance between nodes influences network discovery, but it probably does not have as much impact as you expect. Network discovery is all based on LQI and distance impacts LQI, but LQI values
This behavior is correct. Of course, there are other factors that should affect LQI, but these are not modeled in ns-3. This is a limitation that I wish to address sometime in the future, but for now, it is not considered.
A6. I haven't checked your changes, but I will definitely take a look as soon as I can.
I will keep you posted on any changes here.
Regards,
Al.