differences.rst 1.45 KB
Newer Older
1
2
.. _differences:

3
4
5
6
7
8
9
10
11
12
Differences between Torflow and sbws
====================================

(Last updated 2020-02-18)

Aggregating measurements and scaling
------------------------------------

Filtering
~~~~~~~~~
13
14

Torflow does not exclude relays because of having "few" measurements or "close"
15
16
17
18
19
20
to each other for that relay, like sbws does :ref:`filtering-measurements`.

However this is currently disabled in sbws.

Values from the previous Bandwidth File
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21

22
23
sbws is not reading the previous Bandwidth File, but scaling all the values
with the raw measurements.
24

25
Instead, Torflow uses the previous Bandwidth File values in some cases:
26

27
28
29
- When a relay measurement is older than the one in the previous
  Bandwidth File, it uses all the values from the previous Bandwidth File.
  (how is possible that the Bandwidth File would have a newer measurements?)::
30

31
    self.new_bw = prev_vote.bw * 1000
32

33
34
Bandwidth File KeyValues
~~~~~~~~~~~~~~~~~~~~~~~~
35

36
37
sbws does not calculate nor write to the Bandwidth file the ``pid`` variables
and KeyValues that are used in Torflow. Example of Torflow KeyValues not in sbws::
38

39
  measured_at=1613547098 updated_at=1613547098 pid_error=11.275680184 pid_error_sum=11.275680184 pid_bw=23255048 pid_delta=11.0140582849 circ_fail=0.0
40

41
sbws does not have ``measured_at`` and ``updated_at`` either.
42

43
44
Currently the scaled bandwidth in Torflow does not depend on those extra values
and they seem to be just informative.