配置TWAMP Light统计业务示例
以典型组网为背景,介绍如何配置TWAMP Light统计业务。
组网需求
如图8-2所示,在IP网络中,DeviceA作为Controller端,DeviceB作为Responder端。
- DeviceA:主要完成测量会话报文的发送接收、性能数据采集和计算并将最后结果上送给网管平台。
- DeviceB:只负责相应测量会话报文的反射。
配置思路
- 配置网络中设备的IP地址和路由协议,实现设备之间网络层互通。
- DeviceB:配置TWAMP Light Responder端
- DeviceA:配置TWAMP Light Controller端
数据准备
为完成此配置举例,需准备如下的数据:
- 反射端DeviceB
- IP地址:2.2.2.2
- UDP端口号:2010
- 发送端DeviceA
- IP地址:1.1.1.1
- UDP端口号:2001
操作步骤
- 配置网络中设备的IP地址和路由协议,实现设备之间网络层互通(略)
- 配置TWAMP Light Responder端
<DeviceB> system-view [~DeviceB] nqa twamp-light [~DeviceB-twamp-light] responder [~DeviceB-twamp-light-responder] test-session 1 local-ip 2.2.2.2 remote-ip 1.1.1.1 local-port 2010 remote-port 2001
- 配置TWAMP Light Controller端:配置TWAMP Light Client端
<DeviceA> system-view [~DeviceA] nqa twamp-light [~DeviceA-twamp-light] client [~DeviceA-twamp-light-client] test-session 1 sender-ip 1.1.1.1 reflector-ip 2.2.2.2 sender-port 2001 reflector-port 2010
- 配置TWAMP Light
Controller端:配置TWAMP Light Sender端
<DeviceA> system-view [~DeviceA] nqa twamp-light [~DeviceA-twamp-light] sender [~DeviceA-twamp-light-sender] test start-continual test-session 1 period 10
- 检查配置结果
# 在DeviceA上查看TWAMP Light统计会话实时信息。
<DeviceA> display twamp-light test-session 1 Session ID : 1 State : active Type : continual Sender IP : 1.1.1.1 Sender Port : 2001 Reflector IP : 2.2.2.2 Reflector Port : 2010 Mode : unauthenticated DSCP : 0 Padding Length : 128 Padding Type : 00 VPN Instance : - Last Start Time : 2017-04-13 15:33:52 Last Stop Time : never Period Time(in millisecond) : 10 Time Out(in second) : 5 Duration Time(in second) : - Packet Count : -
# 在DeviceA上查看TWAMP Light统计会话双向时延的统计信息。
<DeviceA> display twamp-light statistic-type twoway-delay test-session 1 Latest two-way delay statistics(usec): -------------------------------------------------------------------------------- Index Delay(Avg) Jitter(Avg) -------------------------------------------------------------------------------- 15 170 3 16 170 3 17 171 3 18 170 3 19 170 3 20 170 3 21 170 3 22 170 3 23 170 3 24 170 3 25 170 3 26 170 3 27 170 3 28 170 3 29 170 3 30 170 3 31 170 3 32 170 3 33 170 3 34 170 3 35 170 3 36 170 3 37 170 3 38 170 3 39 170 3 40 170 3 41 170 3 42 170 3 43 170 3 44 170 3 -------------------------------------------------------------------------------- Average Delay : 170 Average Jitter : 3 Maximum Delay : 187 Maximum Jitter : 22 Minimum Delay : 162 Minimum Jitter : 0
# 在DeviceA上查看TWAMP Light统计会话双向丢包的统计信息。
<DeviceA> display twamp-light statistic-type twoway-loss test-session 1 Latest two-way loss statistics: -------------------------------------------------------------------------------- Index Loss count Loss ratio -------------------------------------------------------------------------------- 26 0 0.0000% 27 0 0.0000% 28 0 0.0000% 29 0 0.0000% 30 0 0.0000% 31 0 0.0000% 32 0 0.0000% 33 0 0.0000% 34 0 0.0000% 35 0 0.0000% 36 0 0.0000% 37 0 0.0000% 38 0 0.0000% 39 0 0.0000% 40 0 0.0000% 41 0 0.0000% 42 0 0.0000% 43 0 0.0000% 44 0 0.0000% 45 0 0.0000% 46 0 0.0000% 47 0 0.0000% 48 0 0.0000% 49 0 0.0000% 50 0 0.0000% 51 0 0.0000% 52 0 0.0000% 53 0 0.0000% 54 0 0.0000% 55 0 0.0000% -------------------------------------------------------------------------------- Average Loss Count : 0 Average Loss Ratio : 0.0000% Maximum Loss Count : 0 Maximum Loss Ratio : 0.0000% Minimum Loss Count : 0 Minimum Loss Ratio : 0.0000%
配置文件
#
sysname DeviceA
#
nqa twamp-light
client
test-session 1 sender-ip 1.1.1.1 reflector-ip 2.2.2.2 sender-port 2001 reflector-port 2010
sender
test start-continual test-session 1 period 10
#
DeviceB的配置文件
#
sysname DeviceB
#
nqa twamp-light
responder
test-session 1 local-ip 2.2.2.2 remote-ip 1.1.1.1 local-port 2010 remote-port 2001
#