add mike's triangle boy analysis
[torspec/neena.git] / proposals / 107-uptime-sanity-checking.txt
blob922129b21d72f58d27ccb4cde6b5b995a2db8dbc
1 Filename: 107-uptime-sanity-checking.txt
2 Title: Uptime Sanity Checking
3 Author: Kevin Bauer & Damon McCoy
4 Created: 8-March-2007
5 Status: Closed
6 Implemented-In: 0.2.0.x
8 Overview:
10    This document describes how to cap the uptime that is used when computing
11    which routers are marked as stable such that highly stable routers cannot
12    be displaced by malicious routers that report extremely high uptime
13    values.
15    This is similar to how bandwidth is capped at 1.5MB/s.
17 Motivation:
19    It has been pointed out that an attacker can displace all stable nodes and
20    entry guard nodes by reporting high uptimes. This is an easy fix that will
21    prevent highly stable nodes from being displaced.
23 Security implications:
25    It should decrease the effectiveness of routing attacks that report high
26    uptimes while not impacting the normal routing algorithms.
28 Specification:
30   So we could patch Section 3.1 of dir-spec.txt to say:
32    "Stable" -- A router is 'Stable' if it is running, valid, not
33    hibernating, and either its uptime is at least the median uptime for
34    known running, valid, non-hibernating routers, or its uptime is at
35    least 30 days. Routers are never called stable if they are running
36    a version of Tor known to drop circuits stupidly.  (0.1.1.10-alpha
37    through 0.1.1.16-rc are stupid this way.)
39 Compatibility:
41    There should be no compatibility issues due to uptime capping.
43 Implementation:
45    Implemented and merged into dir-spec in 0.2.0.0-alpha-dev (r9788).
47 Discussion:
49    Initially, this proposal set the maximum at 60 days, not 30; the 30 day
50    limit and spec wording was suggested by Roger in an or-dev post on 9 March
51    2007.
53    This proposal also led to 108-mtbf-based-stability.txt