New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NetworkGraph] Amibiguity on graph scope #49
Comments
Add a boolean to the NetworkGraph object, like 'global' or 'local' |
I think this is not about "what a router knows"... because olsrd definitely knows about links of remote nodes (through the TC messages). it is more about direct vs. indirect knowledge. Yes, a boolean "local" which can be true/false would improve the data returned via NetJSON. |
I agree, with a boolean we can determine what the json is containing, and we avoid inconsistency. In the case of the flag set to boolean, what's the meaning of the list of all the nodes? |
There is no real "input parameter" for NetJSON... so I would say a protocol should ALWAYS put all information it has into the NetJSON object... and tag it with the "local true/false" tag so that the processing knows what to do with it. |
The 'local' flag would mean "this information does not contain the whole network" So the client know that is must query all nodes |
So we could also name the flag something like 'containsCompleteGraph' :-) |
This might be something to think about for DistanceVector protocols... Linkstate protocols always have the whole graph. |
I also would prefer |
After discussing, me, @HRogge and @fhuberts think The definition of |
The RFC is not clear on whether NetworkGraph should contain the full network or just what is known to a node.
@fhuberts was deceived by this ambiguity with the first version of the olsrd1 netjson plugin.
I think it would be acceptable to mandate that every implementation returns all the information it has about the network graph. This should be ok for distance vector too.
Another proposal related to this one is #25 (how to distinguish between full graph and partial/local graph?).
CC: @HRogge @gabri94
The text was updated successfully, but these errors were encountered: