Documentation
¶
Index ¶
- func CalculateLatency(traces []*Trace, from_node int, to_node int, flow_start float64) ([]float64, []float64, float64)
- func CalculateThroughput(traces []*Trace, from_node int, to_node int, flow_start float64, ...) ([]float64, []float64, float64)
- func CountDrops(traces []*Trace) int
- func Max(arr []float64) float64
- func Mean(arr []float64) float64
- func Min(arr []float64) float64
- func Record(x, y []float64, xname, yname string, fname string)
- func StdDev(arr []float64) float64
- func Sum(arr []float64) float64
- type Trace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateLatency ¶
func CalculateLatency(traces []*Trace, from_node int, to_node int, flow_start float64) ([]float64, []float64, float64)
Calculate latency vs time given a TCP flow start time Return slice times, slice throughputs, and average latency
func CalculateThroughput ¶
func CalculateThroughput(traces []*Trace, from_node int, to_node int, flow_start float64, window_size float64) ([]float64, []float64, float64)
Calculate throughput vs time given a TCP flow start time Return slice times, slice throughputs, and average throughput
func CountDrops ¶
Count the number of dropped packets. The trace should already be filtered by fid
Types ¶
type Trace ¶
type Trace struct {
// contains filtered or unexported fields
}
func FilterByFid ¶
Get a slice of traces of flow id 'fid'
func FilterByType ¶
Get a slice of traces of type 'packet_type' (tcp, cbr, ack)
func ParseTraceFile ¶
Parse the trace file and return a slice of Trace structs
Click to show internal directories.
Click to hide internal directories.