[tor-bugs] #1863 [Tor Relay]: Relays should store observed bandwidth in state file

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Nov 23 20:51:18 UTC 2010


#1863: Relays should store observed bandwidth in state file
-----------------------+----------------------------------------------------
 Reporter:  mikeperry  |       Owner:                    
     Type:  defect     |      Status:  new               
 Priority:  normal     |   Milestone:  Tor: 0.2.2.x-final
Component:  Tor Relay  |     Version:  Tor: 0.2.2.x-final
 Keywords:             |      Parent:                    
-----------------------+----------------------------------------------------

Comment(by nickm):

 {{{
 [55]% grep '#define NUM_' ~/src/tor/src/or/rephist.c
 #define NUM_SECS_ROLLING_MEASURE 10
 #define NUM_SECS_BW_SUM_INTERVAL (15*60)
 #define NUM_SECS_BW_SUM_IS_VALID (24*60*60)
 #define NUM_TOTALS (NUM_SECS_BW_SUM_IS_VALID/NUM_SECS_BW_SUM_INTERVAL)
 }}}

 Sure looks that way.  Maybe if we load bw observations, and it's all
 before the NUM_SECS_BW_SUM_IS_VALID period (and our IP hasn't changed) we
 should still base our declared bandwidth on them until we've been up for a
 fixed period?  Something like that?

 I don't like the idea of adding fake measurements to the observation
 array; fake or mislabeled data never ends well for us.

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


More information about the tor-bugs mailing list