Opened 19 months ago

Last modified 15 months ago

#24101 needs_information enhancement

Provide percentages not just absolute numbers for country and AS information

Reported by: arma Owned by: metrics-team
Priority: Medium Milestone:
Component: Metrics/Bot Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points: 0.1
Reviewer: Sponsor:

Description

<metrics-bot> 1304 relays in Germany are contributing 4.6GiB/s bandwidth to the #Tor network. https://atlas.torproject.org/#search/country:de

could become

<metrics-bot> 1304 relays in Germany are contributing 4.6GiB/s bandwidth (19.9%) to the #Tor network. https://atlas.torproject.org/#search/country:de

I'm not sure the right way to phrase it -- originally I had in mind just to hear one percentage, which is the percentage of total bandwidth that 4.6GiB represents. But there are also other percentages we might try to work in, e.g.

<metrics-bot> 1304 relays in Germany are contributing 4.6GiB/s bandwidth (23.6%, 22.6%, 6.9%) to the #Tor network. https://atlas.torproject.org/#search/country:de

Child Tickets

Change History (7)

comment:1 Changed 16 months ago by irl

Owner: changed from irl to metrics-team
Status: newassigned

I am not immediately working on this ticket. Reassigning to metrics-team to indicate this.

comment:2 Changed 15 months ago by irl

Points: 0.1

comment:3 Changed 15 months ago by irl

Summary: tell me country percentage not just absolute numberProvide percentages not just absolute numbers for country and AS information

The advertised_bandwidth_fraction field was removed in #13673 from Onionoo details documents, so this would have to be calculated by metrics-bot.

My guess for the second one is that the percentages refer to guard, middle and exit probabilities? This data is already in the details documents and would just have to be aggregated by country as the other fields currently are. Just throwing in 3 percentages though, I'm not sure people would know what they are.

The text generator for the response in IRC and the random tweets is currently the same code, maybe there should be an "extended" output that is only used for IRC that includes the relay count, adv. bandwidth, guard, middle, exit probabilities and consensus weight fractions encoded in some sort of summary like:

<metrics-bot> 1230 relays in Germany are currently contributing 5.0GiB/s bandwidth to the #Tor network https://atlas.torproject.org/#search/country:de [G:368(p=24.06%) M:(p=23.89%) E:108(p=21.94%) C:23.4472%]

comment:4 Changed 15 months ago by irl

Status: assignedneeds_information

comment:5 Changed 15 months ago by arma

Looking at the ticket again, I think if you're going to say 5GBytes/s without saying what *kind* of bandwidth, then the percentage should just be out of a single number: the total of those numbers.

Like, if Germany provides 5GBytes/s of traffic, whatever that means, and all the other countries sum to 95GBytes/s of traffic, then the percentage would be 5%.

comment:6 Changed 15 months ago by irl

So there's a question for karsten:

Was #13673 motivated by no one using the field or was it too much to have this in Onionoo? The Onionoo client implementation in metrics-bot could synthesise this field if needed, but it would be a hack to do it there.

comment:7 in reply to:  6 Changed 15 months ago by karsten

Replying to irl:

So there's a question for karsten:

Was #13673 motivated by no one using the field or was it too much to have this in Onionoo? The Onionoo client implementation in metrics-bot could synthesise this field if needed, but it would be a hack to do it there.

Its computation was pretty complex. See the summary of #13673 for details.

Note: See TracTickets for help on using tickets.