1. Introduction

1.1. Brief introduction to Tor

_images/1058px-How_Tor_Works_2.svg.png

1.2. Directory Authorities

a special-purpose relay that maintains a list of currently-running relays
and periodically publishes a consensus together with the other
directory authorities.

[MetricsGlossary]

_images/dir_auth.png

[MetricsDirAuths]

1.3. Consensus documents

a single document compiled and voted on by the directory authorities once
per hour, ensuring that all clients have the same information about the relays
that make up the Tor network.

[MetricsGlossary]

_images/consensus.png

[ConsensusImg]

1.3.1. Why is needed to have a consensus documents?

so that all relays have same view of the network

1.3.2. How is consensus created

  1. relays publish descriptors to a directory authority (dirauth)

  2. dirauths exchange descriptors with each other

  3. the dirauths that have measurements from a bandwidth scanner (4/10):

    1. read those measurements

    2. calculate bandwidth weights

    3. create vote documents including the measured bandwidth and consensus weight

  4. dirauths exchange votes

  5. dirauths create consensus documents

  6. dirauths publish consensus documents

1.4. Why is needed to have relays’ bandwidth measurements (aka scanners)?

Tor bandwidth authorities run bandwidth scanners to measure the relays capacity in the Tor network. They send their results to the directory authorities, which use them to calculate the bandwidth weights of the relays, what influences how the paths between relays and built.

The bandwidth scanners play and important role on the performance and security of the Tor network.

  • to distribute the network load according to relay capacity

  • relays self-advertise their bandwidths, but a malicious relay could self-advertise more bandwidth in order to get more circuits to it. Having more circuits makes easier some attacks (source routed?)