Skip to content

dioptra-io/voyage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⛵ Voyage

Voyage is the new version of the Paris Traceroute tool that was initially developed in C at Pierre and Marie Curie University, the predecessor to today's Sorbonne University.

This version is in Rust, so as to be more easily readable, maintainable, and, since it does not have library dependencies, more portable. It also incorporates numerous improvements with respect to the earlier versions.

Voyage is being developed and maintained by Sorbonne University's SUMMIT unit under contract with the Dioptra research group at the LIP6 computer science laboratory, a joint Sorbonne/CNRS laboratory. Partial funding comes from a French Ministry of Armed Forces cybersecurity grant, and the work is being conducted in collaboration with Measurement Lab.

Voyage leverages the Diamond Miner algorithm to perform its route tracing operations. It supports multiple output formats including Atlas, Iris, MetaTrace, and Scamper Warts (binary). The tool is designed to be efficient and configurable, allowing users to specify various parameters such as TTL range, ports, confidence level, and probing rate.

⚠️ This is a research project and is still under development. Use it at your own risk.

Table of Contents

Prerequisites

Before you can build and run Voyage, you need to have the following dependencies installed:

  • Rust and Cargo: You can install Rust and Cargo by following the instructions on the official Rust website.

  • libpcap: This library is required for packet capturing. You can install it using your package manager:

    • Ubuntu/Debian:

      sudo apt-get update
      sudo apt-get install libpcap-dev
    • Fedora:

      sudo dnf install libpcap-devel
    • macOS:

      brew install libpcap
    • Rocky Linux 9: Managing Repositories in Rocky Linux

      sudo dnf config-manager --set-enabled crb
      sudo dnf install libpcap-devel

Installation

  1. Clone the repository:

    git clone https://github.com/teo-lohrer-su/voyage.git
    cd voyage
  2. Build the project:

    cargo build --release
  3. Run the executable:

    ./target/release/voyage --help

Usage

Voyage provides a variety of command-line options to configure the traceroute operation. Below are the available options:

Usage: voyage [OPTIONS] --dst-addr <DST_ADDR>

Options:
  -d, --dst-addr <DST_ADDR>            Destination IP address
      --min-ttl <MIN_TTL>              Minimum TTL [default: 1]
      --max-ttl <MAX_TTL>              Maximum TTL [default: 32]
      --src-port <SRC_PORT>            Source port [default: 24000]
      --dst-port <DST_PORT>            Destination port [default: 33434]
  -c, --confidence <CONFIDENCE>        Confidence level [default: 99.0]
  -m, --max-round <MAX_ROUND>          Maximum number of rounds [default: 100]
  -e, --estimate-successors            Estimate successors [default: false]
  -o, --output-format <OUTPUT_FORMAT>  Output format [default: atlas] [possible values: atlas, iris, flat, internal, scamper, quiet]
      --receiver-wait-time <RECEIVER_WAIT_TIME>
                                       Receiver wait time in seconds [default: 1]
      --probing-rate <PROBING_RATE>    Probing rate in packets per second [default: 100]
  -p, --protocol <PROTOCOL>            Protocol to use (ICMP or UDP) [default: icmp] [possible values: icmp, udp]
  -i, --interface <INTERFACE>          Network interface to use
  -h, --help                           Print help information
  -V, --version                        Print version information

Example

To run a traceroute to 8.8.8.8 with default settings:

./target/release/voyage --dst-addr 8.8.8.8

To run a traceroute to 8.8.8.8 with a custom TTL range and output format:

./target/release/voyage --dst-addr 8.8.8.8 --min-ttl 5 --max-ttl 20 --output-format flat

To run a traceroute to 8.8.8.8 using UDP protocol and a specific network interface:

./target/release/voyage --dst-addr 8.8.8.8 --protocol udp --interface eth0

Estimate Successors Option

The --estimate-successors option attempts to guess the number of successors of a node based on the number of successors discovered so far and the number of probes sent. This estimation is made using a statistical approach involving Stirling numbers of the second kind. The algorithm calculates the probability of discovering a certain number of interfaces after a given number of probes and uses this to estimate the total number of interfaces.

The estimation process involves:

  1. Stirling Ratios: See Stirling numbers of the second kind and the stirling_numbers crate.

  2. Event Probability: The probability of finding exactly $k$ interfaces after $n$ probes given $K$ total interfaces. This is calculated as:

    $$\mathbb{P}[Y_{n, K} = k] = \frac{1}{K^n}\cdot\binom{K}{k}\cdot {n\brace k}\cdot k!$$

    where $\binom{K}{k}$ is the binomial coefficient, and ${n\brace k}$ is the Stirling number of the second kind.

  3. Total Interfaces Estimation: Using the event probability, we can find the most likely number of interfaces $K$ given the number of probes $n$ and the number of interfaces discovered so far $k$.

This option can help optimize the probing process by reducing the number of probing rounds, at the cost of marginally more probes, thus potentially making the traceroute operation more efficient when many load balancers exhibit large numbers of outgoing interfaces.

Logging

Voyage uses the env_logger crate for logging. You can control the log level by setting the RUST_LOG environment variable. For example:

RUST_LOG=info ./target/release/voyage --dst-addr 8.8.8.8

The debug log level provides detailed information about the probing process, including the number of interfaces discovered, the number of probes sent, the discovered links, etc.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.

TODO

  • Traceroute single path output format
  • DNS resolution
  • ICMPv6 support
  • Port the topological tests from the Python prototype

Acknowledgements

We would like to acknowledge the contributions and support from the following:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages