Example for Configuring a UDP Jitter Test Instance
Networking Requirements
In Figure 6-37, a UDP Jitter test needs to be performed to obtain the jitter time of transmitting a packet from SwitchA to SwitchC.
Configuration Roadmap
The configuration roadmap is as follows:
Configure SwitchA as an NQA client and configure SwitchC as an NQA server.
Configure the monitoring service type and port number on the NQA server.
Create a UDP Jitter test instance on the NQA client.
Procedure
- Configure an IP address for each interface
and ensure reachable routes between switches.
# Configure SwitchA.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] vlan 100 [SwitchA-vlan100] quit [SwitchA] interface gigabitethernet 1/0/1 [SwitchA-GigabitEthernet1/0/1] port link-type hybrid [SwitchA-GigabitEthernet1/0/1] port hybrid pvid vlan 100 [SwitchA-GigabitEthernet1/0/1] port hybrid untagged vlan 100 [SwitchA-GigabitEthernet1/0/1] quit [SwitchA] interface vlanif 100 [SwitchA-Vlanif100] ip address 10.1.1.1 24 [SwitchA-Vlanif100] quit [SwitchA] ip route-static 10.2.1.0 255.255.255.0 10.1.1.2
# Configure SwitchB.
<HUAWEI> system-view [HUAWEI] sysname SwitchB [SwitchB] vlan 100 [SwitchB-vlan100] quit [SwitchB] vlan 110 [SwitchB-vlan110] quit [SwitchB] interface gigabitethernet 1/0/1 [SwitchB-GigabitEthernet1/0/1] port link-type hybrid [SwitchB-GigabitEthernet1/0/1] port hybrid pvid vlan 100 [SwitchB-GigabitEthernet1/0/1] port hybrid untagged vlan 100 [SwitchB-GigabitEthernet1/0/1] quit [SwitchB] interface vlanif 100 [SwitchB-Vlanif100] ip address 10.1.1.2 24 [SwitchB-Vlanif100] quit [SwitchB] interface gigabitethernet 1/0/2 [SwitchB-GigabitEthernet1/0/2] port link-type hybrid [SwitchB-GigabitEthernet1/0/2] port hybrid pvid vlan 110 [SwitchB-GigabitEthernet1/0/2] port hybrid untagged vlan 110 [SwitchB-GigabitEthernet1/0/2] quit [SwitchB] interface vlanif 110 [SwitchB-Vlanif110] ip address 10.2.1.1 24 [SwitchB-Vlanif110] quit
# Configure SwitchC.
<HUAWEI> system-view [HUAWEI] sysname SwitchC [SwitchC] vlan 110 [SwitchC-vlan110] quit [SwitchC] interface gigabitethernet 1/0/1 [SwitchC-GigabitEthernet1/0/1] port link-type hybrid [SwitchC-GigabitEthernet1/0/1] port hybrid pvid vlan 110 [SwitchC-GigabitEthernet1/0/1] port hybrid untagged vlan 110 [SwitchC-GigabitEthernet1/0/1] quit [SwitchC] interface vlanif 110 [SwitchC-Vlanif110] ip address 10.2.1.2 24 [SwitchC-Vlanif110] quit [SwitchC] ip route-static 10.1.1.0 255.255.255.0 10.2.1.1
- Configure an NQA server on SwitchC.
# Configure the monitoring IP address and UDP port number on the NQA server.
[SwitchC] nqa-server udpecho 10.2.1.2 9000
- Configure SwitchA.
# Enable the NQA client and create a UDP Jitter test instance.
[SwitchA] nqa test-instance admin jitter
[SwitchA-nqa-admin-jitter] test-type jitter
[SwitchA-nqa-admin-jitter] destination-address ipv4 10.2.1.2
[SwitchA-nqa-admin-jitter] destination-port 9000
- Start the test instance.
[SwitchA-nqa-admin-jitter] start now
- Check the configuration.
[SwitchA-nqa-admin-jitter] display nqa results test-instance admin jitter
NQA entry(admin, jitter) :testflag is inactive ,testtype is jitter 1 . Test 1 result The test is finished SendProbe:60 ResponseProbe:60 Completion:success RTD OverThresholds number:0 OWD OverThresholds SD number:0 OWD OverThresholds DS number:0 Min/Max/Avg/Sum RTT:2/9/2/133 RTT Square Sum:347 NumOfRTT:60 Drop operation number:0 Operation sequence errors number:0 RTT Stats errors number:0 System busy operation number:0 Operation timeout number:0 Min Positive SD:1 Min Positive DS:1 Max Positive SD:7 Max Positive DS:1 Positive SD Number:8 Positive DS Number:4 Positive SD Sum:14 Positive DS Sum:4 Positive SD Square Sum:56 Positive DS Square Sum:4 Min Negative SD:1 Min Negative DS:1 Max Negative SD:6 Max Negative DS:1 Negative SD Number:9 Negative DS Number:5 Negative SD Sum:14 Negative DS Sum:5 Negative SD Square Sum:44 Negative DS Square Sum:5 Min Delay SD:1 Min Delay DS:0 Avg Delay SD:1 Avg Delay DS:0 Max Delay SD:4 Max Delay DS:4 Delay SD Square Sum:75 Delay DS Square Sum:22 Packet Loss SD:0 Packet Loss DS:0 Packet Loss Unknown:0 Average of Jitter:1 Average of Jitter SD:1 Average of Jitter DS:1 Jitter out value:0.3257526 Jitter in value:0.1015234 NumberOfOWD:60 Packet Loss Ratio: 0% OWD SD Sum:63 OWD DS Sum:10 ICPIF value: 0 MOS-CQ value: 0 TimeStamp unit: ms Packet Rewrite Number: 0 Packet Rewrite Ratio: 0% Packet Disorder Number: 0 Packet Disorder Ratio: 0% Fragment-disorder Number: 0 Fragment-disorder Ratio: 0% Jitter OverThresholds SD number:0 Jitter OverThresholds DS number:0 OverallOverThresholds number:0 Start time: 2014-09-01 10:47:57+08:00 End time: 2014-09-01 10:48:01+08:00
Configuration Files
SwitchA configuration file
# sysname SwitchA # vlan batch 100 # interface Vlanif100 ip address 10.1.1.1 255.255.255.0 # interface GigabitEthernet1/0/1 port link-type hybrid port hybrid pvid vlan 100 port hybrid untagged vlan 100 # ip route-static 10.2.1.0 255.255.255.0 10.1.1.2 # nqa test-instance admin jitter test-type jitter destination-address ipv4 10.2.1.2 destination-port 9000 # return
SwitchB configuration file
# sysname SwitchB # vlan batch 100 110 # interface Vlanif100 ip address 10.1.1.2 255.255.255.0 # interface Vlanif110 ip address 10.2.1.1 255.255.255.0 # interface GigabitEthernet1/0/1 port link-type hybrid port hybrid pvid vlan 100 port hybrid untagged vlan 100 # interface GigabitEthernet1/0/2 port link-type hybrid port hybrid pvid vlan 110 port hybrid untagged vlan 110 # return
SwitchC configuration file
# sysname SwitchC # vlan batch 110 # interface Vlanif110 ip address 10.2.1.2 255.255.255.0 # interface GigabitEthernet1/0/1 port link-type hybrid port hybrid pvid vlan 110 port hybrid untagged vlan 110 # nqa-server udpecho 10.2.1.2 9000 # ip route-static 10.1.1.0 255.255.255.0 10.2.1.1 # return