185-dir-without-dirport.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Filename: 185-dir-without-dirport.txt
  2. Title: Directory caches without DirPort
  3. Author: Nick Mathewson
  4. Created: 20-Sep-2011
  5. Status: Superseded
  6. Superseded-by: 237
  7. Overview:
  8. Exposing a directory port is no longer necessary for running as a
  9. directory cache. This proposal suggests that we eliminate that
  10. requirement, and describes how.
  11. Motivation:
  12. Now that we tunnel directory connections by default, it is no
  13. longer necessary to have a DirPort to be a directory cache. In
  14. fact, bridges act as directory caches but do not actually have a
  15. DirPort exposed. It would be nice and tidy to expand that
  16. property to the rest of the network.
  17. Configuration:
  18. Add a new torrc option, "DirCache". Its values can be "0", "1",
  19. and "auto". If it is 0, we never act as a directory cache, even
  20. if DirPort is set. If it is 1, then we act as a directory cache
  21. according to same rules as those used for nodes that set a
  22. DirPort. If it is "auto", then Tor decides whether to act as a
  23. directory cache based on some future intelligent algorithm. "Auto"
  24. should be the new default.
  25. Advertising cache status:
  26. Nodes that are running as a directory cache should set the entry
  27. "dir-cache 1" in their router descriptors. If they do not have a
  28. DirPort set, or do not have a working DirPort, they should give
  29. their directory port as 0 in their router lines. (Nodes that have
  30. a working directory port advertise it as usual, and also include a
  31. "dir-cache" line. Nodes that do not serve directory information
  32. should set their directory port to 0, and not include any
  33. dir-cache line. Implementations should accept and ignore
  34. dir-cache lines with values other than "dir-cache 1".)
  35. Consensus:
  36. Authorities should assign a "DirCache" flag to all nodes running
  37. as a directory cache.
  38. This does not require a new version of the consensus algorithm.