[tor-bugs] #16529 [Tor]: stable flag calulation

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jul 8 21:31:16 UTC 2015


#16529: stable flag calulation
-------------------------+---------------------
 Reporter:  cypherpunks  |          Owner:
     Type:  defect       |         Status:  new
 Priority:  minor        |      Milestone:
Component:  Tor          |        Version:
 Keywords:               |  Actual Points:
Parent ID:               |         Points:
-------------------------+---------------------
 hi,
 once again, please enlighten how stable flag calculation works.

 node should be (see mailing list)
 CWis20 41C526E3C1441A3CDE9B605002643B94F3750E8C

 we have
 {{{
 $ curl -s -o -
 'https://onionoo.torproject.org/details?fingerprint=41C526E3C1441A3CDE9B605002643B94F3750E8C'
 | jq --raw-output '.relays[] | .nickname,.first_seen,.last_seen,.flags[]'
 CWis20
 2015-07-02 20:00:00
 2015-07-08 20:00:00
 Fast
 HSDir
 Running
 Stable
 V2Dir
 Valid
 }}}

 first seen on 2015-07-02 20:00:00

 {{{
 $ curl -s --compressed -o - https://collector.torproject.org/recent/relay-
 descriptors/consensuses/ | \
 sed 's/.*<a href=\"\([^"]*\).*/\1/' | \
 egrep '2015-07-07-(19|20)' | \
 xargs -i{} curl -s --compress -o - https://collector.torproject.org/recent
 /relay-descriptors/consensuses/{} | \
 grep -A1 -e '^r CWis20' -e 'valid-after'

 valid-after 2015-07-07 19:00:00
 fresh-until 2015-07-07 20:00:00
 --
 r CWis20 QcUm48FEGjzem2BQAmQ7lPN1Dow DBVW0Got4hh3U7o6itrG8+NId6g
 2015-07-07 01:22:46 198.100.155.194 443 80
 s Fast Running V2Dir Valid
 --
 valid-after 2015-07-07 20:00:00
 fresh-until 2015-07-07 21:00:00
 --
 r CWis20 QcUm48FEGjzem2BQAmQ7lPN1Dow I/5vfvcsIo2LKWmi17aKmhbTCkk
 2015-07-07 19:23:29 198.100.155.194 443 80
 s Fast HSDir Running Stable V2Dir Valid
 }}}

 first Stable flag at 2015-07-07 20:00:00 (5 days after first seen)

 {{{
 $ curl -s --compressed -o - https://collector.torproject.org/recent/relay-
 descriptors/votes/ | \
 sed 's/.*<a href=\"\([^"]*\).*/\1/' | \
 grep 2015-07-07-20 | \
 xargs -i{} curl -s --compress -o - https://collector.torproject.org/recent
 /relay-descriptors/votes/{} | \
 grep '^flag-thresholds' | \
 sort -t= -n -k2
 flag-thresholds stable-uptime=818532 stable-mtbf=1475068 fast-speed=85000
 guard-wfu=98.000% guard-tk=691200 guard-bw-inc-exits=2097000 guard-bw-exc-
 exits=1945000 enough-mtbf=1 ignoring-advertised-bws=0
 flag-thresholds stable-uptime=861077 stable-mtbf=1948931 fast-speed=102000
 guard-wfu=98.000% guard-tk=691200 guard-bw-inc-exits=2560000 guard-bw-exc-
 exits=2097000 enough-mtbf=1 ignoring-advertised-bws=0
 flag-thresholds stable-uptime=890305 stable-mtbf=2029744 fast-speed=93000
 guard-wfu=98.000% guard-tk=691200 guard-bw-inc-exits=2411000 guard-bw-exc-
 exits=2097000 enough-mtbf=1 ignoring-advertised-bws=0
 flag-thresholds stable-uptime=891459 stable-mtbf=2007627 fast-speed=93000
 guard-wfu=98.000% guard-tk=691200 guard-bw-inc-exits=2465000 guard-bw-exc-
 exits=2097000 enough-mtbf=1 ignoring-advertised-bws=0
 flag-thresholds stable-uptime=962383 stable-mtbf=2124393 fast-speed=59000
 guard-wfu=98.000% guard-tk=691200 guard-bw-inc-exits=3460000 guard-bw-exc-
 exits=2730000 enough-mtbf=1 ignoring-advertised-bws=1
 flag-thresholds stable-uptime=962384 stable-mtbf=2124558 fast-speed=74000
 guard-wfu=98.000% guard-tk=691200 guard-bw-inc-exits=3960000 guard-bw-exc-
 exits=3240000 enough-mtbf=1 ignoring-advertised-bws=1
 flag-thresholds stable-uptime=1005509 stable-mtbf=2023456 fast-speed=84000
 guard-wfu=98.000% guard-tk=691200 guard-bw-inc-exits=4730000 guard-bw-exc-
 exits=3930000 enough-mtbf=1 ignoring-advertised-bws=1
 flag-thresholds stable-uptime=1018793 stable-mtbf=2208701 fast-speed=65000
 guard-wfu=98.000% guard-tk=691200 guard-bw-inc-exits=4370000 guard-bw-exc-
 exits=3240000 enough-mtbf=1 ignoring-advertised-bws=1
 }}}

 Stable flag consensuse should occur after stable-uptime 962383 sec (11.1
 days), right?

 But node CWis20 41C526E3C1441A3CDE9B605002643B94F3750E8C get Stable flag
 after only 5 days?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/16529>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list