Library to test and calculate network "jitter"
- ICMP jitter test
- UDP jitter test
- Uncorrected Standard Deviation jitter calculation
- Corrected Standard Deviation jitter calculation (Bessel's Correction)
- RTT Range
Get the source with go get
:
$ go get github.com/cbergoon/go-jitter
package main
import (
"fmt"
"time"
jitter "github.com/cbergoon/go-jitter"
)
func main() {
j, err := jitter.NewJitterer("google.com")
if err != nil {
fmt.Println(err)
}
j.SetBlockSampleSize(10)
j.SetPingerPrivileged(true)
j.SetPingerTimeout(time.Second * 10)
j.Run()
s := j.Statistics()
fmt.Println("Squared Deviation: ", s.SquaredDeviation)
fmt.Println("Uncorrected Deviation: ", s.UncorrectedSD)
fmt.Println("Corrected Deviation: ", s.CorrectedSD)
fmt.Println("RTT Range: ", s.RttRange)
fmt.Println("RTTs: ", s.RTTS)
}
This project is licensed under the MIT License.