[tor-commits] [snowflake/master] Added a folder for documentation

cohosh at torproject.org cohosh at torproject.org
Mon Sep 16 18:29:40 UTC 2019


commit b29b49fc1c50a15d6b542b88a4de5200d08b8087
Author: Cecylia Bocovich <cohosh at torproject.org>
Date:   Fri Aug 23 13:09:02 2019 -0400

    Added a folder for documentation
    
    Added a folder to hold snowflake specifications. This folder starts with
    a file containing a partial broker spec that focuses on the metrics
    reporting spec for CollecTor at the moment.
---
 doc/broker-spec.txt | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/doc/broker-spec.txt b/doc/broker-spec.txt
new file mode 100644
index 0000000..2877784
--- /dev/null
+++ b/doc/broker-spec.txt
@@ -0,0 +1,51 @@
+
+
+                            Snowflake broker protocol
+
+0. Scope and Preliminaries
+
+The Snowflake broker is used to hand out Snowflake proxies to clients using the Snowflake pluggable transport. There are some similarities to the function of the broker and how BridgeDB hands out Tor bridges.
+
+This document specifies how the Snowflake broker interacts with other parts of the Tor ecosystem, starting with the metrics CollecTor module and to be expanded upon later.
+
+1. Metrics Reporting (version 1.0)
+
+Metrics data from the Snowflake broker can be retrieved by sending an HTTP GET request to https://[Snowflake broker URL]/metrics and consists of the following items:
+
+    "snowflake-stats-end" YYYY-MM-DD HH:MM:SS (NSEC s) NL
+        [At start, exactly once.]
+
+        YYYY-MM-DD HH:MM:SS defines the end of the included measurement
+        interval of length NSEC seconds (86400 seconds by default).
+
+    "snowflake-ips" [CC=NUM,CC=NUM,...,CC=NUM] NL
+        [At most once.]
+
+        List of mappings from two-letter country codes to the number of
+        unique IP addresses of Snowflake proxies that have polled. Each
+        country code only appears once.
+
+    "snowflake-ips-total" NUM NL
+        [At most once.]
+
+        A count of the total number of unique IP addresses of Snowflake
+        proxies that have polled.
+
+    "snowflake-idle-count" NUM NL
+        [At most once.]
+
+        A count of the number of times a proxy has polled but received
+        no client offer, rounded up to the nearest multiple of 8.
+
+    "client-denied-count" NUM NL
+        [At most once.]
+
+        A count of the number of times a client has requested a proxy
+        from the broker but no proxies were available, rounded up to
+        the nearest multiple of 8.
+
+    "client-snowflake-match-count" NUM NL
+        [At most once.]
+
+        A count of the number of times a client successfully received a
+        proxy from the broker, rounded up to the nearest multiple of 8.



More information about the tor-commits mailing list