SAIL

Statistically Accurate Internet Loss Measurements

SAIL, short for Statistically Accurate Internet Loss Measurements, is a method for rigorous statistical analysis of packet-loss measurements. It uses algorithms from Hidden Semi-Markov Models to estimate the parameters of the underlying loss process from measurement traces, then computes the loss rate and its variance.

The method is designed to be light-weight: the main algorithms run in linear time in the number of measurement samples. This page collects the SAIL MATLAB implementation, usage notes, sample-data information, and related papers.

Code

The complete MATLAB package is available here:

DownloadNotes
SAIL MATLAB packageMain code archive, including the SAIL library and driver scripts.
READMEInstructions for running simulations and analysing measurement data.

The archive contains the SAIL library routines together with the main scripts used in the original experiments:

  • runSim.m: generates simulated data with a Gamma loss process, then runs SAIL on the simulated traces.
  • runExp.m: runs SAIL on experiment data.
  • LIBRARY: supporting subroutines for the SAIL implementation.
  • TESTSUIT: tests used on the SAIL code.

The README describes the expected data layout for runExp.m: for each measurement there should be two MATLAB files, one containing binary probe outcomes and one containing the corresponding probe sending times.

Measurement Data

The original SAIL experiments used more than 50 GB of loss-measurement data. The old project page made small text-format samples available for DNS, Web, and UA-EPFL measurements, and noted that the full dataset was available on request.

Because some of the sample archives are large enough to be awkward for normal GitHub and Netlify deployment, they are not copied directly into this repository. For access to the complete dataset, please contact the SAIL authors.

Papers and Presentations

Acknowledgements

The original MATLAB implementation uses two existing scripts:

  • The HSMM forward/backward implementation hsmm_new.m, by Shun-Zheng Yu.
  • The inverse Laplace transform implementation invlap.m, by Karl Hollenbeck, Department of Hydrodynamics and Water Resources, Technical University of Denmark.