alpalalpal / nnextension

Net neutrality tracking
0 stars 0 forks source link

Protocol discussion #3

Open oiime opened 6 years ago

oiime commented 6 years ago

Added a markdown file with some protocol suggestion, comment, review, lmk

PROTOCOL.md

trondeh80 commented 6 years ago

The protocol looks good to me. The extension will need some more code to accumulate requests, sort them by domain and send payloads periodically.

oiime commented 6 years ago

The protocol is implemented a bit differently, you can see it in the services code, it's pretty straight-forward. I think the best way would be to maintain a local db on the client side with { ${domain}: { last_ts: ts, ...last_statitics_etc } }, when a user goes to a domain it'll check if the last_ts delta exceeds 60 minutes, get all the data until the current page is loaded (can be time based as you dont know when it's completely finished) and send over the aggregated statistics for that domain, it'll get back the general statistics for it immediately and be able to show the ranking in the toolbar. so there is no reason to do it periodically as when you are inside the page is both the time you want to send your sample and the time you want to receive global statitics, if the delta is not big enough just used the cached version

trondeh80 commented 6 years ago

Right ok. That sounds like a good plan. I'll make sure the extension has some storage permissions so we can interact with a local db.

Other than that, the extension will need a GUI it seems. We are letting the user control what domains he/she wants to inspect, right? What do you mean by "ranking" ? What kind of information will we present to the end user? I thought it only would be a yes/no scenario.

oiime commented 6 years ago

can start with a default list of major sites and allow them to add i guess

not sure, i guess it can show a single number of percentage mix of latency+time or whatever, if it's positive it'll be green, if negative red, when they hover they can get a better breakdown. ultimately you send a bunch of metrics and get back a bunch of metrics comparing you to other users in the same country, region and isp

trondeh80 commented 6 years ago

Ok. I can get started on the gui then. I'll just create a simple html/js implementation with no frameworks.

Should the user input what bandwidth he/she pays for?

2018-01-15 18:57 GMT+01:00 Itamar Maltz notifications@github.com:

can start with a default list of major sites and allow them to add i guess

not sure, i guess it can show a single number of percentage mix of latency+time or whatever, if it's positive it'll be green, if negative red, when they hover they can get a better breakdown. ultimately you send a bunch of metrics and get back a bunch of metrics comparing you to other users in the same country, region and isp

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/alpalalpal/nnextension/issues/3#issuecomment-357751955, or mute the thread https://github.com/notifications/unsubscribe-auth/AFPtncitTZUV8hWDCcnAI6ZrmI00hYg8ks5tK5GPgaJpZM4Rae8f .