Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-04-14 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
-+-
 Reporter:  teor |  Owner:  gk
 Type:  defect   | Status:  closed
 Priority:  Medium   |  Milestone:  sbws:
 |  1.1.x-final
Component:  Core Tor/sbws|Version:  sbws:
 |  1.1.0
 Severity:  Normal   | Resolution:  fixed
 Keywords:  sbws-majority-blocker, easy, intro,  |  Actual Points:  2.5
  sbws-roadmap, GeorgKoppen202004|
Parent ID:  #33121   | Points:  1
 Reviewer:  juga |Sponsor:
-+-
Changes (by juga):

 * status:  merge_ready => closed
 * resolution:   => fixed


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-04-14 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
-+-
 Reporter:  teor |  Owner:  gk
 Type:  defect   | Status:
 |  merge_ready
 Priority:  Medium   |  Milestone:  sbws:
 |  1.1.x-final
Component:  Core Tor/sbws|Version:  sbws:
 |  1.1.0
 Severity:  Normal   | Resolution:
 Keywords:  sbws-majority-blocker, easy, intro,  |  Actual Points:  2.5
  sbws-roadmap, GeorgKoppen202004|
Parent ID:  #33121   | Points:  1
 Reviewer:  juga |Sponsor:
-+-

Comment (by juga):

 Merged

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-04-08 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
-+-
 Reporter:  teor |  Owner:  gk
 Type:  defect   | Status:
 |  merge_ready
 Priority:  Medium   |  Milestone:  sbws:
 |  1.1.x-final
Component:  Core Tor/sbws|Version:  sbws:
 |  1.1.0
 Severity:  Normal   | Resolution:
 Keywords:  sbws-majority-blocker, easy, intro,  |  Actual Points:  2.5
  sbws-roadmap, GeorgKoppen202004|
Parent ID:  #33121   | Points:  1
 Reviewer:  juga |Sponsor:
-+-
Changes (by juga):

 * status:  needs_review => merge_ready


Comment:

 lgtm, just left comments on which were my thoughts

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-04-02 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
-+-
 Reporter:  teor |  Owner:  gk
 Type:  defect   | Status:
 |  assigned
 Priority:  Medium   |  Milestone:  sbws:
 |  1.1.x-final
Component:  Core Tor/sbws|Version:  sbws:
 |  1.1.0
 Severity:  Normal   | Resolution:
 Keywords:  sbws-majority-blocker, easy, intro,  |  Actual Points:  2.5
  sbws-roadmap   |
Parent ID:  #33121   | Points:  1
 Reviewer:  juga |Sponsor:
-+-
Changes (by gk):

 * owner:  (none) => gk
 * status:  needs_review => assigned


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-04-02 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
-+-
 Reporter:  teor |  Owner:  gk
 Type:  defect   | Status:
 |  needs_review
 Priority:  Medium   |  Milestone:  sbws:
 |  1.1.x-final
Component:  Core Tor/sbws|Version:  sbws:
 |  1.1.0
 Severity:  Normal   | Resolution:
 Keywords:  sbws-majority-blocker, easy, intro,  |  Actual Points:  2.5
  sbws-roadmap   |
Parent ID:  #33121   | Points:  1
 Reviewer:  juga |Sponsor:
-+-
Changes (by gk):

 * status:  assigned => needs_review


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-04-02 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
-+-
 Reporter:  teor |  Owner:  gk
 Type:  defect   | Status:
 |  needs_review
 Priority:  Medium   |  Milestone:  sbws:
 |  1.1.x-final
Component:  Core Tor/sbws|Version:  sbws:
 |  1.1.0
 Severity:  Normal   | Resolution:
 Keywords:  sbws-majority-blocker, easy, intro,  |  Actual Points:  2.5
  sbws-roadmap, GeorgKoppen202004|
Parent ID:  #33121   | Points:  1
 Reviewer:  juga |Sponsor:
-+-
Changes (by gk):

 * keywords:  sbws-majority-blocker, easy, intro, sbws-roadmap => sbws-
 majority-blocker, easy, intro, sbws-roadmap, GeorgKoppen202004


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-04-02 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:
 |  needs_review
 Priority:  Medium   |  Milestone:  sbws:
 |  1.1.x-final
Component:  Core Tor/sbws|Version:  sbws:
 |  1.1.0
 Severity:  Normal   | Resolution:
 Keywords:  sbws-majority-blocker, easy, intro,  |  Actual Points:  2.5
  sbws-roadmap   |
Parent ID:  #33121   | Points:  1
 Reviewer:  juga |Sponsor:
-+-
Changes (by gk):

 * status:  new => needs_review
 * reviewer:   => juga
 * actualpoints:   => 2.5


Comment:

 `bug_33009_v5` in my public sbws repo has two patches for review (I've
 tried to create a merge request for `torproject/network-health/sbws
 maint-1.1` but failed so far; additionally the two patches are based on
 the branch for #30905 which needs revision, so maybe having a merge
 request does not make so much sense).

 That said, while having this up for review I am still thinking about some
 meaningful integration test but thought a lack of that is not a blocker
 for initial review at least. In particular, given that our current bw
 authorities situation might make this bug fix more urgent to get deployed.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-03-31 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:  sbws:
 |  1.1.x-final
Component:  Core Tor/sbws|Version:  sbws:
 |  1.1.0
 Severity:  Normal   | Resolution:
 Keywords:  sbws-majority-blocker, easy, intro,  |  Actual Points:
  sbws-roadmap   |
Parent ID:  #33121   | Points:  1
 Reviewer:   |Sponsor:
-+-

Comment (by teor):

 I have opened ticket #33775, which is about low relay measurements from
 sbws (but not torflow). It could be related to this issue.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-02-09 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:  sbws:
 |  1.1.x-final
Component:  Core Tor/sbws|Version:  sbws:
 |  1.1.0
 Severity:  Normal   | Resolution:
 Keywords:  sbws-majority-blocker, easy, intro,  |  Actual Points:
  sbws-roadmap   |
Parent ID:  #33121   | Points:  1
 Reviewer:   |Sponsor:
-+-

Comment (by teor):

 Replying to [comment:5 juga]:
 > i've not checked which consensus weight corresponds to 600Kbyte/sec
 advertised bandwidth.
 > i'm not sure what teor meant with "top 75% of exits", ie. which
 bandwidth value they think about there.
 > Looking https://metrics.torproject.org/rs.html#toprelays, showing 100
 relays per page, it says "Top Relays by Consensus Weight", the bandwidth
 column says "Advertised bandwidth", the first relay in the 3rd page (~1/3
 ~= 75%) shows 58.1 MiB/s.
 > We should look which is the actual consensus bandwidth of that 1st
 relay, if we want to use a hardcoded minimum value.
 > Instead of that i'd suggest, since bandwidth values changes and we
 choose exits based on consensus weight, is that:
 > 1. create a method in relaylist that order them by consensus weight.
 >You could based it `RelayList.exits`, then order them
 `sorted(self.relays, key=lambda r: r.consensus_bandwidth)`
 > 2. calculate which would be the relay that corresponds to the 75% in
 that order
 > 3. use that value as the minimum value

 Yes, I meant a calculated value.

 Ideally, we should calculate the value each time we get a new consensus.
 If we recalculate it for every circuit, it might slow down sbws circuit
 building.

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-02-09 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:  sbws:
 |  1.1.x-final
Component:  Core Tor/sbws|Version:  sbws:
 |  1.1.0
 Severity:  Normal   | Resolution:
 Keywords:  sbws-majority-blocker, easy, intro,  |  Actual Points:
  sbws-roadmap   |
Parent ID:  #33121   | Points:  1
 Reviewer:   |Sponsor:
-+-

Comment (by juga):

 i've not checked which consensus weight corresponds to 600Kbyte/sec
 advertised bandwidth.
 i'm not sure what teor meant with "top 75% of exits", ie. which bandwidth
 value they think about there.
 Looking https://metrics.torproject.org/rs.html#toprelays, showing 100
 relays per page, it says "Top Relays by Consensus Weight", the bandwidth
 column says "Advertised bandwidth", the first relay in the 3rd page (~1/3
 ~= 75%) shows 58.1 MiB/s.
 We should look which is the actual consensus bandwidth of that 1st relay,
 if we want to use a hardcore minimum value.
 Instead of that i'd suggest, since bandwidth values changes and we choose
 exits based on consensus weight, is that:
 1. create a method in relaylist that order them by consensus weight.
You could based it `RelayList.exits`, then order them
 `sorted(self.relays, key=lambda r: r.consensus_bandwidth)`
 2. calculate which would be the relay that corresponds to the 75% in that
 order
 3. use that value as the minimum value
 Hope it helps!

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-02-06 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:  sbws:
 |  1.1.x-final
Component:  Core Tor/sbws|Version:  sbws:
 |  1.1.0
 Severity:  Normal   | Resolution:
 Keywords:  sbws-majority-blocker, easy, intro,  |  Actual Points:
  sbws-roadmap   |
Parent ID:  #33121   | Points:  1
 Reviewer:   |Sponsor:
-+-

Comment (by carlbordum):

 Hi there. I wrote a patch that adds minimum absolute bandwidth for the
 exit node. What do you suggest I set the value to?

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-01-28 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
-+-
 Reporter:  teor |  Owner:  (none)
 Type:  defect   | Status:  new
 Priority:  Medium   |  Milestone:  sbws:
 |  1.1.x-final
Component:  Core Tor/sbws|Version:  sbws:
 |  1.1.0
 Severity:  Normal   | Resolution:
 Keywords:  sbws-majority-blocker, easy, intro,  |  Actual Points:
  sbws-roadmap   |
Parent ID:   | Points:  1
 Reviewer:   |Sponsor:
-+-
Changes (by gaba):

 * keywords:  sbws-majority-blocker, easy, intro => sbws-majority-blocker,
 easy, intro, sbws-roadmap


--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Re: [tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-01-20 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
+--
 Reporter:  teor|  Owner:  (none)
 Type:  defect  | Status:  new
 Priority:  Medium  |  Milestone:  sbws:
|  1.1.x-final
Component:  Core Tor/sbws   |Version:  sbws:
|  1.1.0
 Severity:  Normal  | Resolution:
 Keywords:  sbws-majority-blocker, easy, intro  |  Actual Points:
Parent ID:  | Points:  1
 Reviewer:  |Sponsor:
+--
Changes (by teor):

 * keywords:  sbws-majority-blocker => sbws-majority-blocker, easy, intro


Comment:

 Note: Torflow's partitions have a similar issue, but it's actually worse:
 a relay can get stuck in a low-bandwidth partition forever.

 So perhaps this isn't strictly a blocker, because the new behaviour is
 eventually better. But the fix is so easy, we should just do it.

 I suggest we only use the top 75% of exits as the second hop, which should
 remove the long tail of slow exits. (These slow exits are also more likely
 to fail to connect, and therefore fail the entire bandwidth test. So this
 change should also improve sbws efficiency.)

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

[tor-bugs] #33009 [Core Tor/sbws]: sbws bandwidth scans should require a minimum exit bandwidth

2020-01-20 Thread Tor Bug Tracker & Wiki
#33009: sbws bandwidth scans should require a minimum exit bandwidth
---+---
 Reporter:  teor   |  Owner:  (none)
 Type:  defect | Status:  new
 Priority:  Medium |  Milestone:  sbws: 1.1.x-final
Component:  Core Tor/sbws  |Version:  sbws: 1.1.0
 Severity:  Normal |   Keywords:  sbws-majority-blocker
Actual Points: |  Parent ID:
   Points:  1  |   Reviewer:
  Sponsor: |
---+---
 When sbws is constructing a two-hop measurement circuit to run a test, it
 tries to pick an exit that has at least twice the consensus weight of the
 current relay-under-test:
 https://github.com/torproject/sbws/blob/master/sbws/core/scanner.py#L216

 So this means that in this case, sbws would have picked any exit that was
 not a BadExit, has an acceptable ExitPolicy, and has a consensus weight of
 at least, well, 2.  That's not a lot.

 As it turns out, something like 10% of exits have under a 600Kbyte/sec
 advertised bandwidth.  So it seems pretty easy from this weight=1
 bootstrap scenario to get paired with an exit that will give poor test
 results.

 Perhaps bwauth path selection should also choose a testing pair from
 exits/relays with a certain absolute minimum of weight or advertised
 bandwidth?

 Reported by Jimmy on tor-relays:
 https://lists.torproject.org/pipermail/tor-relays/2020-January/018027.html

--
Ticket URL: 
Tor Bug Tracker & Wiki 
The Tor Project: anonymity online
___
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs