配置IP网关场景的通用流测试
通过IP网关场景的通用流测试检测以太网络性能。
数据准备
为完成此配置例,需准备如下的数据:
- 反射端DeviceA的配置:配置IP地址是CE的IP地址10.1.1.1,反射端口是GE0/1/1。
发起端DeviceB的配置:
- 目的IP地址:和反射端的反射端口GE0/1/1相连的对端CE的IP地址,即10.1.1.1。
- 源IP地址:和发起端接口的IP地址是同一个网段的地址。
- 时延:速率是99000Kbps,测试时长是100秒,发送报文间隔是5秒。
操作步骤
- 配置CE和DeviceB经过中间的二层设备,三层链路可达。
- 配置反射端
[*DeviceA] vlan 10 [*DeviceA-vlan10] commit [~DeviceA-vlan10] quit [~DeviceA] nqa reflector 1 interface GigabitEthernet 0/1/1 ipv4 10.1.1.1 vlan 10 [*DeviceA] commit
- 配置发起端进行时延测试,并查看测试结果
[*DeviceB] vlan 10 [*DeviceB-vlan10] commit [~DeviceB-vlan10] quit [~DeviceB] interface gigabitethernet 0/1/2.1 [*DeviceB-GigabitEthernet0/1/2.1] vlan-type dot1q 10 [*DeviceB-GigabitEthernet0/1/2.1] ip address 10.1.1.2 24 [*DeviceB-GigabitEthernet0/1/2.1] quit [*DeviceB] arp static 10.1.1.1 0001-0002-0003 vid 10 interface GigabitEthernet 0/1/2.1 [*DeviceB] nqa test-instance admin delay [*DeviceB-nqa-admin-delay] test-type generalflow [*DeviceB-nqa-admin-delay] measure delay [*DeviceB-nqa-admin-delay] destination-address ipv4 10.1.1.1 [*DeviceB-nqa-admin-delay] source-address ipv4 10.1.1.2 [*DeviceB-nqa-admin-delay] source-interface gigabitethernet 0/1/2.1 [*DeviceB-nqa-admin-delay] rate 99000 [*DeviceB-nqa-admin-delay] interval seconds 5 [*DeviceB-nqa-admin-delay] datasize 64 [*DeviceB-nqa-admin-delay] duration 100 [*DeviceB-nqa-admin-delay] start now [*DeviceB-nqa-admin-delay] commit [~DeviceB-nqa-admin-delay] display nqa results test-instance admin delay NQA entry(admin, delay) :testflag is inactive ,testtype is generalflow 1 . Test 1 result: The test is finished, test mode is delay ID Size Min/Max/Avg RTT(us) Min/Max/Avg Jitter(us) Completion 1 64 1/12/5 2/15/8 finished
配置文件
DeviceA的配置文件
# sysname DeviceA # vlan 10 # nqa reflector 1 interface GigabitEthernet 0/1/1 ipv4 10.1.1.1 vlan 10 # interface GigabitEthernet 0/1/1 portswitch undo shutdown port link-type trunk port trunk allow-pass vlan 10 # interface GigabitEthernet 0/1/2 portswitch undo shutdown port link-type trunk port trunk allow-pass vlan 10 # return
DeviceB的配置文件
# sysname DeviceB # vlan 10 # interface GigabitEthernet 0/1/1 portswitch undo shutdown port link-type trunk port trunk allow-pass vlan 10 # interface GigabitEthernet 0/1/2.1 vlan-type dot1q 10 ip address 10.1.1.2 255.255.255.0 # nqa test-instance admin delay test-type generalflow destination-address ipv4 10.1.1.1 source-address ipv4 10.1.1.2 duration 100 measure delay interval seconds 5 datasize 64 rate 99000 source-interface GigabitEthernet 0/1/2.1 # return
DeviceC的配置文件
# sysname DeviceC # vlan 10 # interface GigabitEthernet 0/1/1 portswitch undo shutdown port link-type trunk port trunk allow-pass vlan 10 # interface GigabitEthernet 0/1/2 portswitch undo shutdown port link-type trunk port trunk allow-pass vlan 10 # return