spec

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Overview

Package spec contains constants defined in the ndt7 specification.

Index

Constants

View Source
const (
	// SubtestDownload is a download subtest
	SubtestDownload = SubtestKind("download")

	// SubtestUpload is a upload subtest
	SubtestUpload = SubtestKind("upload")
)
View Source
const AveragePoissonSamplingInterval = 250 * time.Millisecond

AveragePoissonSamplingInterval is the average of a lambda distribution used to decide when to perform next measurement.

View Source
const DefaultRuntime = 10 * time.Second

DefaultRuntime is the default runtime of a subtest

View Source
const DownloadURLPath = "/ndt/v7/download"

DownloadURLPath selects the download subtest.

View Source
const MaxMessageSize = 1 << 24

MaxMessageSize is the minimum value of the maximum message size that an implementation MAY want to configure. Messages smaller than this threshold MUST always be accepted by an implementation.

View Source
const MaxPoissonSamplingInterval = 625 * time.Millisecond

MaxPoissonSamplingInterval is the max acceptable time that we want the lambda distribution to return. Bigger values will be clamped to be this value instead.

View Source
const MaxRuntime = 15 * time.Second

MaxRuntime is the maximum runtime of a subtest

View Source
const MaxScaledMessageSize = 1 << 20

MaxScaledMessageSize is the maximum value of a scaled binary WebSocket message size. This should be <= of MaxMessageSize. The 1<<20 value is a good compromise between Go and JavaScript as seen in cloud based tests.

View Source
const MinPoissonSamplingInterval = 25 * time.Millisecond

MinPoissonSamplingInterval is the min acceptable time that we want the lambda distribution to return. Smaller values will be clamped to be this value instead.

View Source
const ScalingFraction = 16

ScalingFraction sets the threshold for scaling binary messages. When the current binary message size is <= than 1/scalingFactor of the amount of bytes sent so far, we scale the message. This is documented in the appendix of the ndt7 specification.

View Source
const SecWebSocketProtocol = "net.measurementlab.ndt.v7"

SecWebSocketProtocol is the WebSocket subprotocol used by ndt7.

View Source
const UploadURLPath = "/ndt/v7/upload"

UploadURLPath selects the upload subtest.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubtestKind added in v0.7.0

type SubtestKind string

SubtestKind indicates the subtest kind

Jump to

Keyboard shortcuts

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