home.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <h2>What is this?</h2>
  4. <p>This tool allows you to find "good" peerings
  5. for <a href="https://dn42.net">dn42</a>, by measuring the latency from
  6. various points in the network towards you.</p>
  7. <p>If you don't know what dn42 is,
  8. read <a href="https://dn42.net/Home">the website</a> and in particular
  9. the <a href="https://dn42.net/Getting-started-with-dn42">Getting Started
  10. guide</a>.</p>
  11. <h2>How does it work?</h2>
  12. <p>
  13. <ol>
  14. <li>you enter your (Internet) IP address or hostname</li>
  15. <li>various routers participating in dn42 will ping you over the Internet</li>
  16. <li>after a short while, you get back all the latency results</li>
  17. <li>you can then peer with people close to you (low latency)</li>
  18. </ol>
  19. </p>
  20. <h3>Launch a measurement</h3>
  21. <p>
  22. <form action="/submit" method="POST">
  23. <label for="target">Target:</label>
  24. <input type="text" name="target" id="target" value="{{ request.remote_addr|ipaddress_pp|not_dn42 }}"/>
  25. <span style="margin-left: 1em;"><strong>Note:</strong> the target may block or rate-limit ICMP (e.g. Fritz!Box routers)</span><br />
  26. <input type="checkbox" id="public" name="public" />
  27. <label for="public">Public?</label><br />
  28. <input type="submit" value="Launch" />
  29. </form>
  30. </p>
  31. <p>If you mark your measurement as public, it will be displayed on the
  32. home page below. Note that the IP addresses of the target will be shown
  33. alongside the result.</p>
  34. <h2>Recent measurements</h2>
  35. <table>
  36. <tr>
  37. <th>Date</th>
  38. <th>Target</th>
  39. <th>Result</th>
  40. </tr>
  41. {% for t in targets %}
  42. <tr>
  43. <td>{{ t.submitted.strftime('%Y-%m-%d %H:%M') }}</td>
  44. <td>{{ t.get_ip() }}</td>
  45. <td><a href="/result/show/{{ t.unique_id }}">View result</a></td>
  46. </tr>
  47. {% endfor %}
  48. </table>
  49. {% endblock %}