[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-dev] Tor Bandwidth Measurements Document Format
- To: tor-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [tor-dev] Tor Bandwidth Measurements Document Format
- From: juga <juga@xxxxxxxxxx>
- Date: Tue, 17 Apr 2018 11:23:00 +0000
- Autocrypt: addr=juga@xxxxxxxxxx; keydata= xsFNBFONpUkBEADCZKJs2sXSK2qEvIquZKnt16LCsg61kacKX9MGdbrfB/xxrjx9tcU6fCFd C5//4OwI+sT/E41LrwpV8cehVtoAtmwyUK+/LC3XLbK8m8XSp8/ghOBnm2jlI0z9FVqfHuiv cfd6v7C2xSkqu2TvzdavBetHgPtJwrZ1zK5suQY4ww+48C2GvyqwJR1CMjJq2mz5CEa3mh7N vwqnSxM8Oh1ptSiRbkGR36GF5rt2w2fbFv143fqvquNi+T0P/VWjFk7DZA4d6yhiiM3zb3IL I3TOlgZT2oyjAqq5DTU5evS1VYq9zugT5xvvFQ473M2le3uSr5wPhj4kXkDAgbaHOxinBfR4 ldT3yDJ63mDq1nxxhBfoDx6EP/8gard04aow1zFw8USUS18wloV5/XMnGZX4vYFpKfPYxOSw CFyXXPxGkeIqZ7A1kuUJnvnsfFs+FzPor0EkaKHV88HB/XFwupgc1h4EhmDcEAQJGh8wgjrN A/xLH6tiv08VSC6wtS1BfOQsaRoA32/rQAusoZ5uzwk1C4WJlJ6RkBf/XWIFt9T+22gl8rAP 6MGTFGzq1Wnvfp54ih16+B3tyrH1rjfo2TSHzJypdOJElhjxi2RxLGD3UBOrmjm2nxqWYEE/ syQRWaTs7UTXQ83veLs0exIKzr31nUHuYIqkCITPHVTywHJ4FwARAQABzRIgPGp1Z2FAcmlz ZXVwLm5ldD7CwZcEEwEKAEECGwMFCwkIBwMFFQoJCAsFFgMCAQACHgECF4ACGQEWIQQtqB0B RVw6ADIZiFDzBUR6+AbUawUCWT+5lAUJB5NHywAKCRDzBUR6+AbUa29FEACTIHcWwDSMacME vYiFB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x
- Delivery-date: Tue, 17 Apr 2018 07:23:44 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1523964206; bh=NJxCamwKXTNl8Qot/b8itIKCR+LaZDCYl7ztSIwqx2s=; h=To:From:Subject:Date:From; b=ETgm/AONfWxrHWaftrBZ+RWqRQnT/nQA6VwQMQmEZXwz1IvAvRvr1RIdIIjHVZFSS Zzh8EEd2/4kVcz5DTYYfnKbIfXYIuznu6Rlg/g89cFiz+UtuJHkzYEok7Ptd8uuYp5 rNRVxDihzCqas/GHTomkrPvNgLfxxDizHWjc3yC0=
- List-archive: <http://lists.torproject.org/pipermail/tor-dev/>
- List-help: <mailto:tor-dev-request@lists.torproject.org?subject=help>
- List-id: discussion regarding Tor development <tor-dev.lists.torproject.org>
- List-post: <mailto:tor-dev@lists.torproject.org>
- List-subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev>, <mailto:tor-dev-request@lists.torproject.org?subject=subscribe>
- List-unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-dev>, <mailto:tor-dev-request@lists.torproject.org?subject=unsubscribe>
- Openpgp: preference=signencrypt
- Reply-to: tor-dev@xxxxxxxxxxxxxxxxxxxx
- Sender: "tor-dev" <tor-dev-bounces@xxxxxxxxxxxxxxxxxxxx>
Hi,
as commented with teor and pastly, i send in-line a draft specification
for the document format that the bandwidth scanner implementations
should produce.
I've left my own questions/notes in square brackets.
Thanks,
juga.
=======================================
Tor Bandwidth Measurements Document Format
[juga: which name should we give to this document?]
1. Scope and preliminaries
This document describes the format of Tor's bandwidth measurements
document, version X.X.X [juga: which version should be this?]
and later.
Since Tor version X.X.X [juga: which tor version?] the directory
authorities use the bandwidth measurements document called
"V3BandwidthsFile" and produced by Torflow [1]
(format described in README.spec.txt [2]).
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL
NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in
RFC 2119.
1.2. Acknowledgements
The original bandwidth measurement scanner (Torflow) and format was
created by mike. Teor suggested to write this specification while
contributing on pastly's new bandwidth scanner implementation.
This specification was revised after feedback from:
XXX
1.3 Outline
The bandwidth measurements mentioned in sections 3.4.1 and 3.4.2
of dir-spec.txt [3] are obtained by bandwidth authorities, which are
either directory authorities or other servers running bandwidth
measurement scanners and sending the results to the former.
[juga: it seems that bandwidth authorities have not been formally
before]
2. Format details
Bandwidth measurements MUST contain the following sections:
- Header (exactly once)
- Relays measurements (zero or more times)
Each section (or entry) ends with a separator.
2.1. Nonterminals
The following nonterminals are defined in the Onionoo details
document specification [4]:
fingerprint
nickname
In the bandwidth measurement documents nickname is optional.
The following nonterminals are defined in the in dir-spec.txt:
NL (newline)
SP (space)
"bw" = INT, the aggregated measured bandwidth of this relay, in
kilobytes per second.
We introduce the following nonterminals:
[juga: this should probably be defined more formally and should
probably link to other documents, which ones?]
"version" = The name and the version of the bandwidth scannner
software, such as "sbws 0.1.0".
The name of the software, if absent, is assumed to be "torflow".
[juga: which should be the version if absent?]
"timestamp" = INT, the Unix Epoch time when the file was created.
2.2. Header format
It MUST consists of:
"timestamp" timestamp NL
"version" version NL
2.3. Relay measurements format
Relays measurements MUST consist of the following items.
"node_id" fingerprint SP
"bw" bandwidth SP
When there are no more items, the "bw" item ends with NL instead of
SP.
2.4. Optional extra items
Different implementations of the bandwidth measurements scanners MAY
include other items per relay.
For instance, sbws includes:
"rtt" = INT, Round Trip Time (to obtain 1B)
Every relay measurement in sbws consists of:
"node_id" fingerprint SP
"bw" bandwidth SP
"nick=" nickname SP
"rtt=" rtt SP
"time=" timestamp NL
Every relay measurement in Torflow consists of:
"node_id" fingerprint SP
"bw" bandwidth SP
"nick=" nickname SP
"measured_at=" slice timestamp NL
The "measured_at" does not correspond to the "time" in sbws.
[juga: actually, if bwauths use "measured_at", then the code on them
or sbws should be changed].
Torflow includes other items that are out of the scope of this
document.
References:
1. https://gitweb.torproject.org/torflow.git
2.
https://gitweb.torproject.org/torflow.git/tree/NetworkScanners/BwAuthority/README.spec.txt#n332
3. https://gitweb.torproject.org/torspec.git/tree/dir-spec.txt
4. https://metrics.torproject.org/onionoo.html#details
A. Sample data
A.1. Torflow
1523911758
node_id=$68A483E05A2ABDCA6DA5A3EF8DB5177638A27F80 bw=392760 nick=Test
measured_at=1523911725 updated_at=1523911725 pid_error=4.11374090719
pid_error_sum=4.11374090719 pid_bw=57136645 pid_delta=2.12168374577
circ_fail=0.2 scanner=/filepath
A.2. sbws
1523911758
version=0.1.0
node_id=$68A483E05A2ABDCA6DA5A3EF8DB5177638A27F80 bw=392760 nick=Test
rtt=380 time=1523911725
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev