alpalalpal / nnextension

Net neutrality tracking
0 stars 0 forks source link

Baseless protocol suggestion #1

Closed oiime closed 6 years ago

oiime commented 6 years ago

Suggested protocol skeleton, extension would oversee traffic and report latency samples to central server, central server would reply with information that can be displayed on top bar (eg: you're possibly throttled for this site)

Request:

{
    version: "0.0.1", // protocol version
    client: {
        signature: "",
        ua: ""
    },
    sample: {
        type: "site_latency",
        ts: 0, // uts?
        url: "", // security concenrs? get domain only?
        ip: "", // resolved ip from point of view of client
                requests: [{ // should just aggregate all requests in page?
                   url: "" // asset url?  
                    time: 0 // ms to complete request
                    size: 0 // size in mg
                }]
    }
}

Response:

{
    type: "site_latency",
    latency: {
        reported: 1500,
        expected: 800,
        isp_mean: 1000,
        isp_median: 1100,
        country_mean: 1000,
        country_median: 1100,
    },
    comparison: {
        isps: [{}] // data comparison to competitors
    } 
}