Comments (9)
Another proposal related to this one is #25 (how to distinguish between full graph and partial/local graph?).
Add a boolean to the NetworkGraph object, like 'global' or 'local'
from netjson.
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.
from 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?
I propose to return just the 1-hop neighbor and the 1-hop links in the case of "local"
In the case of "global" we return the list of all the nodes of the network and all the links.
from netjson.
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.
from netjson.
The 'local' flag would mean "this information does not contain the whole network"
So the client know that is must query all nodes
from netjson.
So we could also name the flag something like 'containsCompleteGraph' :-)
from netjson.
This might be something to think about for DistanceVector protocols... Linkstate protocols always have the whole graph.
from netjson.
I also would prefer NetworkGraph
to be intended as a full network graph unless a local
boolean attribute indicates otherwise (one attribute for the entire graph is enough though).
from netjson.
After discussing, me, @HRogge and @fhuberts think partial
(boolean) is a better attribute name.
The definition of NetworkGraph
also needs to be improved to make it clear that an implementation should return the full graph by default unless it doesn't know the full graph (as in distance vector) and indicate that partial
is true
.
from netjson.
Related Issues (20)
- [DeviceConfiguration] wds_access_point & wds_station HOT 1
- JSON-LD schema HOT 2
- NetJSON RFC JSON types HOT 2
- [DeviceConfiguration] General "country" option
- [website] Statically generated content pages HOT 1
- Improve extension registry page
- [RFC] properties definition typos
- [docs] Use "Specification" or "Internet Draft" instead of RFC
- DeviceConfiguration example is broken
- [radio] Add protocol
- [DeviceConfiguration][hardware] revision >version
- [configuration] auto channel and channel_width
- Dictionary<string, object> from Newtonsoft in NetJSON HOT 5
- [NetworkGraph] Geographic information for nodes and links
- Specification page doesn't display examples HOT 1
- Could not load type 'TenantClass' HOT 2
- Update implementations section HOT 1
- Are link objects directed or undirected ?
- [docs] Update (old/404) netjsongraph.js image URL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netjson.