147-prevoting-opinions.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Filename: 147-prevoting-opinions.txt
  2. Title: Eliminate the need for v2 directories in generating v3 directories
  3. Author: Nick Mathewson
  4. Created: 2-Jul-2008
  5. Status: Accepted
  6. Target: 0.2.1.x
  7. Overview
  8. We propose a new v3 vote document type to replace the role of v2
  9. networkstatus information in generating v3 consensuses.
  10. Motivation
  11. When authorities vote on which descriptors are to be listed in the
  12. next consensus, it helps if they all know about the same descriptors
  13. as one another. But a hostile, confused, or out-of-date server may
  14. upload a descriptor to only some authorities. In the current v3
  15. directory design, the authorities don't have a good way to tell one
  16. another about the new descriptor until they exchange votes... but by
  17. the time this happens, they are already committed to their votes,
  18. and they can't add anybody they learn about from other authorities
  19. until the next voting cycle. That's no good!
  20. The current Tor implementation avoids this problem by having
  21. authorities also look at v2 networkstatus documents, but we'd like
  22. in the long term to eliminate these, once 0.1.2.x is obsolete.
  23. Design:
  24. We add a new value for vote-status in v3 consensus documents in
  25. addition to "consensus" and "vote": "opinion". Authorities generate
  26. and sign an opinion document as if they were generating a vote,
  27. except that they generate opinions earlier than they generate votes.
  28. Authorities don't need to generate more than one opinion document
  29. per voting interval, but may. They should send it to the other
  30. authorities they know about, at the regular vote upload URL, before
  31. the authorities begin voting, so that enough time remains for the
  32. authorities to fetch new descriptors.
  33. Additionally, authories make their opinions available at
  34. http://<hostname>/tor/status-vote/next/opinion.z
  35. and download opinions from authorities they haven't heard from in a
  36. while.
  37. Authorities MAY generate opinions on demand.
  38. Upon receiving an opinion document, authorities scan it for any
  39. descriptors that:
  40. - They might accept.
  41. - Are for routers they don't know about, or are published more
  42. recently than any descriptor they have for that router.
  43. Authorities then begin downloading such descriptors from authorities
  44. that claim to have them.
  45. Authorities MAY cache opinion documents, but don't need to.