104-short-descriptors.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Filename: 104-short-descriptors.txt
  2. Title: Long and Short Router Descriptors
  3. Version: $Revision$
  4. Last-Modified: $Date$
  5. Author: Nick Mathewson
  6. Created:
  7. Status: Open
  8. Overview:
  9. This document proposes moving unused-by-clients information from regular
  10. router descriptors into a special "long form" router descriptor.
  11. It presents options; it is not yet a complete proposal.
  12. Proposal:
  13. Some of the costliest fields in the current directory protocol are ones
  14. that no client actually uses. In particular, the "read-history" and
  15. "write-history" fields are used only by the authorities for monitoring the
  16. status of the network. If we took them out, the size of a compressed list
  17. of all the routers would fall by about 60%. (No other disposable field
  18. would save more than 2%.)
  19. One possible solution here is that routers should generate and upload a
  20. short-form and long-form descriptor. Only the short-form descriptor should
  21. ever be used by anybody for routing. The long-form descriptor should be
  22. used only for analytics and other tools. (If we allowed people to route
  23. with long descriptors, we'd have to ensure that they stayed in sync with
  24. the short ones somehow. So let's not do that.) We can ensure that the
  25. short descriptors are used by only recommending those in the network
  26. statuses.
  27. Another possible solution would be to drop these fields from descriptors,
  28. and have them uploaded as a part of a separate "bandwidth report" to the
  29. authorities. This could help prevent the mistake of using long descriptors
  30. in the place of short ones.
  31. Thoughts? -NM
  32. Migration:
  33. For long/short descriptors:
  34. * In 0.1.2.x:
  35. * Add a "long version" URL that tools can start using now. Need to
  36. design it first.
  37. * In 0.1.2.x:
  38. * Authorities should accept both, now, and silently drop short
  39. descriptors.
  40. * Routers should upload both once authorities accept them.
  41. * There should be a "long descriptor" url and the current "normal" URL.
  42. Authorities should serve long descriptors from both URLs.
  43. * Once tools that want long descriptors support fetching them from the
  44. "long descriptor" URL:
  45. * Have authorities remember short descriptors, and serve them from the
  46. 'normal' URL.