tutorial/

directory
v3.21.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: GPL-3.0

README

Tutorials: writing OONI nettests

This package contains a living tutorial explaining how to write OONI nettests. The code in here is based on existing nettests.

Because it's committed to the probe-cli repository and depends on real OONI code, it should always be up to date.

Index

  • Rewriting the torsf experiment: this tutorial explains to you how to write a simple experiment. After reading it, you will understand the interfaces between an experiment and the OONI core. What this tutorial does not teach you, though, is how to tell the OONI core about this experiment. To see how to do that, you should check how we do that in internal/registry.

  • Using the measurex package to write network experiments: this tutorial explains to you how to use the measurex library to write networking code that generates measurements using the OONI data format. You will learn how to perform DNS, TCP, TLS, QUIC, HTTP, HTTPS, and HTTP3 measurements. (Note that measurex is currently deprecated and we need to publish a new tutorial about an improved approach to measuring, based on a DSL.)

  • Low-level networking using netxlite: this tutorial introduces you to the netxlite networking library. This is the underlying library used by measurex as well as by many other libraries inside OONI. You need to know about this library to contribute to measurex as well as to other parts of the OONI core that perform network operations.

Therefore, after reading these tutorials, you should have a better understanding of how an experiment interacts with the OONI core, as well as of which libraries you can use to write experiments.

Regenerating the tutorials

(cd ./internal/tutorial && go run ./generator)

Directories

Path Synopsis
dslx
chapter02
## Getting started
## Getting started
experiment
torsf/chapter01
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
torsf/chapter02
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
Command generator generates or re-generates the tutorial chapters.
Command generator generates or re-generates the tutorial chapters.
measurex
chapter01
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter02
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter03
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter04
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter05
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter06
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter07
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter08
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter09
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter10
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter11
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter12
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter13
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter14
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
netxlite
chapter01
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter02
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter03
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter04
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter05
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter06
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter07
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-
chapter08
-=-=- StartHere -=-=-
-=-=- StartHere -=-=-

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL