Skip to content

twamp_sender collector

twamp_sender connects to twamp_reflector and performs TWAMP SLA probe using one of the predefined packet models.

Configuration

ParameterTypeDefaultDescription
idStringCollector's ID. Must be unique per agent instance. Will be returned along with the metrics.
typeStringMust be twamp_sender
serviceStringEqual to idService id for output metrics
intervalIntegerRepetition interval in seconds
labelsArray of StringsList of additional labels. Will be returned along with metrics
serverString
portInteger862
reflector_portInteger0Demand explicit reflector port, if not 0. Used to fix weird TWAMP reflector implentations
dscpStringbe
n_packetsInteger
modelStringName of the packet model

Packet Models

G.711

G.711 voice session imitation.

ParameterTypeDescription
modelStringMust me g711

G.729

G.729 voice session imitation.

ParameterTypeDescription
modelStringMust me g729

CBR

Constant bitrate session, filling required bandwidth by packets of required size.

ParameterTypeDescription
modelStringMust me cbr
model_bandwidthStringRequired bandwidth, bit/s
model_sizeStringRequired packet size, in octets

IMIX

Internet MIX (IMIX) packet model. Filling required bandwidth by most-commonly observed packets sizes.

ParameterTypeDescription
modelStringMust me cbr
model_bandwidthStringRequired bandwidth, bit/s

Packet distribution:

Packet sizePacketsDistribution (packets)BytesDistribution (bytes)
70758.33%49011.41%
576433.33%230453.65%
150018.33%150034.94%

Note

TWAMP protocol doesn't allow test packets under the 70 octets. So provided model uses small packets of bigger size and resulting distribution slightly differs from commonly used IMIX models.

Collected Metrics

MetricMetric TypePlatformDescription
tsAllISO 8601 Timestamp
collectorAllCollector Id
labelsAllList of labels
tx_packetsAll
rx_packetsAll
tx_bytesAll
rx_bytesAll
duration_nsAll
tx_ppsAll
rx_ppsAll
tx_bitrateAll
rx_bitrateAll
Inbound
in_min_delay_nsAll
in_max_delay_nsAll
in_avg_delay_nsAll
in_jitter_nsAll
in_lossAll
Outbound
out_min_delay_nsAll
out_max_delay_nsAll
out_avg_delay_nsAll
out_jitter_nsAll
out_lossAll
Round-trip
rt_min_delay_nsAll
rt_max_delay_nsAll
rt_avg_delay_nsAll
rt_jitter_nsAll
rt_lossAll

Compilation Features

Enable twamp-sender feature during compiling the agent (Enabled by default).

Configuring reflectors

noc-agent

collectors:
  - id: twamp_reflector1
    type: twamp_reflector
    interval: 10
    listen: 10.0.0.1
    port: 862

where 10.0.0.1 is the reflector listen address.

Juniper JUNOS

chassis {
    fpc 0 {
        pic 0 {
            inline-services {
                bandwidth 1g;
            }
        }
    }
}
services {
    rpm {
            server {
                authentication-mode none;
                port 862;
                client-list Client1 {
                    address {
                        10.1.0.1/24;
                        10.1.0.2/24;
                    }
                }
            }
        }
    }
}
interfaces {
    si-0/0/0 {
        unit 0 {
            family inet;
        }
        unit 10 {
            rpm twamp-server;
            family inet {
                address 10.0.0.1/32;
            }
        }
    }
}

Where 10.0.0.1 is the reflector address, and the allowed clients are in Client1 list.

Cisco IOS

IOS implementation demands explicit reflector port number in session request. Sender must be configured using reflector_port parameters:

reflector_port: 9447

IOS configuration for reflector

ip sla server twamp
  exit
ip sla responder twamp
  exit