https://github.com/apirogov/ffnodestats
Generates some useful stats from nodes.json
https://github.com/apirogov/ffnodestats
Last synced: 11 days ago
JSON representation
Generates some useful stats from nodes.json
- Host: GitHub
- URL: https://github.com/apirogov/ffnodestats
- Owner: apirogov
- Created: 2012-09-28T17:19:39.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-10-07T13:32:47.000Z (over 13 years ago)
- Last Synced: 2026-01-19T16:46:23.462Z (5 months ago)
- Language: Ruby
- Size: 234 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
ffnodestats
Idea and stuffs:
database storing connection snapshots, consisting of:
UnixTimestamp RouterMAC(ID) ClientMAC
possible requests to database:
>routers(from,to) -> unique router MACs
>clients(from,to) -> unique client MACs
>router_clients(from, to) -> macs of unique connected clients to router in that time span
for a router graph time/clients just do multiple router_clients(from,to) requests for different spans
and visualize the length of the client array
client_connections(from, to) -> return an array of connections in form of {routerMAC, fromStamp, toStamp}
this works by assuming that if a client is missing in a snapshot or changed routers, the connection was lost
for a timeline of the client:
use client_connections(from,to)
visualize ;)
for a timeline of router where you see when which client connected:
use router_clients for a span
for each client use client_connections for that span and filter for connections to that router
visualize