Check Voip quality packet loss and jitter

How to Check Voip quality packet loss and jitter

We can use iperf (linux), jperf (win) to check Voip quality packet loss and jitter on your system.

1. Install iperf tool on Centos and Ubuntu

1a. Install iperf on Centos

[root@Centos6 ~]# yum install iperf
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.vonline.vn
* extras: mirrors.vonline.vn
* rpmforge: mirror-fpt-telecom.fpt.net
* updates: mirrors.vonline.vn
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.5 kB 00:00
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package iperf.i686 0:2.0.4-1.el6.rf will be installed
–> Finished Dependency ResolutionDependencies Resolved================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
iperf i686 2.0.4-1.el6.rf rpmforge 55 k

Transaction Summary
================================================================================
Install 1 Package(s)

Total download size: 55 k
Installed size: 121 k
Is this ok [y/N]: y
Downloading Packages:
iperf-2.0.4-1.el6.rf.i686.rpm
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : iperf-2.0.4-1.el6.rf.i686
Verifying : iperf-2.0.4-1.el6.rf.i686

Installed:
iperf.i686 0:2.0.4-1.el6.rf

Complete!
[root@Centos6 ~]#

1b. Install iperf on Ubuntu server

root@Ubuntu12Server:~# apt-get install iperf
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
iperf
0 upgraded, 1 newly installed, 0 to remove and 48 not upgraded.
Need to get 54.0 kB of archives.
After this operation, 169 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe iperf i386 2.0.5-2.1 [54.0 kB]
Fetched 54.0 kB in 2s (25.8 kB/s)
Selecting previously unselected package iperf.
(Reading database … 30425 files and directories currently installed.)
Unpacking iperf (from …/iperf_2.0.5-2.1_i386.deb) …
Processing triggers for man-db …
Setting up iperf (2.0.5-2.1) …
root@Ubuntu12Server:~#

2.  Check Voip Quality packet loss and jitter

Client <——————————————————————-> Server

2a. On Server:

root@Ubuntu12Server:~# iperf -s -u -i 1

2b. On Client:

[root@Centos6 conf.d]# iperf -c 192.168.0.113 -u -b 10m -t 60

2c. Reports:

[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams[ 3] local 192.168.0.113 port 5001 connected with 192.168.0.112 port 38577
[ 3] 0.0- 1.0 sec 1.19 MBytes 9.98 Mbits/sec 0.408 ms 206/ 1055 (20%)
[ 3] 1.0- 2.0 sec 1.19 MBytes 10.0 Mbits/sec 0.517 ms 0/ 852 (0%)
[ 3] 2.0- 3.0 sec 1.19 MBytes 9.98 Mbits/sec 0.995 ms 0/ 849 (0%)
[ 3] 3.0- 4.0 sec 1.19 MBytes 9.97 Mbits/sec 0.649 ms 0/ 848 (0%)
[ 3] 4.0- 5.0 sec 1.19 MBytes 9.96 Mbits/sec 0.880 ms 0/ 847 (0%)
[ 3] 5.0- 6.0 sec 1.20 MBytes 10.0 Mbits/sec 0.710 ms 0/ 854 (0%)
[ 3] 6.0- 7.0 sec 1.19 MBytes 10.0 Mbits/sec 0.541 ms 0/ 850 (0%)
[ 3] 7.0- 8.0 sec 1.19 MBytes 10.0 Mbits/sec 0.520 ms 0/ 850 (0%)
[ 3] 8.0- 9.0 sec 1.18 MBytes 9.88 Mbits/sec 0.778 ms 0/ 840 (0%)
[ 3] 9.0-10.0 sec 1.19 MBytes 10.0 Mbits/sec 0.952 ms 0/ 851 (0%)
[ 3] 10.0-11.0 sec 1.19 MBytes 10.0 Mbits/sec 0.414 ms 0/ 851 (0%)
[ 3] 11.0-12.0 sec 1.20 MBytes 10.0 Mbits/sec 0.429 ms 0/ 854 (0%)
[ 3] 12.0-13.0 sec 1.19 MBytes 9.97 Mbits/sec 0.803 ms 0/ 848 (0%)
[ 3] 13.0-14.0 sec 1.19 MBytes 9.98 Mbits/sec 0.417 ms 0/ 849 (0%)
[ 3] 14.0-15.0 sec 1.19 MBytes 9.96 Mbits/sec 0.986 ms 0/ 847 (0%)
[ 3] 15.0-16.0 sec 1.20 MBytes 10.0 Mbits/sec 0.995 ms 0/ 853 (0%)
[ 3] 16.0-17.0 sec 1.19 MBytes 9.98 Mbits/sec 0.829 ms 0/ 849 (0%)
[ 3] 17.0-18.0 sec 1.19 MBytes 10.0 Mbits/sec 0.616 ms 0/ 851 (0%)
[ 3] 18.0-19.0 sec 1.19 MBytes 9.97 Mbits/sec 0.929 ms 0/ 848 (0%)
[ 3] 19.0-20.0 sec 1.20 MBytes 10.0 Mbits/sec 0.383 ms 0/ 854 (0%)
[ 3] 20.0-21.0 sec 1.19 MBytes 9.98 Mbits/sec 0.686 ms 0/ 849 (0%)
[ 3] 21.0-22.0 sec 1.19 MBytes 10.0 Mbits/sec 0.692 ms 0/ 852 (0%)
[ 3] 22.0-23.0 sec 1.19 MBytes 9.96 Mbits/sec 0.364 ms 0/ 847 (0%)
[ 3] 23.0-24.0 sec 1.18 MBytes 9.91 Mbits/sec 0.742 ms 0/ 843 (0%)
[ 3] 24.0-25.0 sec 1.20 MBytes 10.1 Mbits/sec 0.353 ms 0/ 856 (0%)
[ 3] 25.0-26.0 sec 1.18 MBytes 9.91 Mbits/sec 0.393 ms 0/ 843 (0%)
[ 3] 26.0-27.0 sec 1.16 MBytes 9.77 Mbits/sec 0.545 ms 0/ 831 (0%)
[ 3] 27.0-28.0 sec 1.21 MBytes 10.1 Mbits/sec 0.789 ms 0/ 861 (0%)
[ 3] 28.0-29.0 sec 1.19 MBytes 10.0 Mbits/sec 0.408 ms 0/ 850 (0%)
[ 3] 29.0-30.0 sec 1.19 MBytes 10.0 Mbits/sec 0.630 ms 0/ 851 (0%)
[ 3] 30.0-31.0 sec 1.19 MBytes 9.98 Mbits/sec 0.364 ms 0/ 849 (0%)
[ 3] 31.0-32.0 sec 1.19 MBytes 10.0 Mbits/sec 0.766 ms 0/ 851 (0%)
[ 3] 32.0-33.0 sec 1.19 MBytes 10.0 Mbits/sec 0.351 ms 0/ 850 (0%)
[ 3] 33.0-34.0 sec 1.18 MBytes 9.90 Mbits/sec 0.707 ms 0/ 842 (0%)
[ 3] 34.0-35.0 sec 1.19 MBytes 9.98 Mbits/sec 0.947 ms 0/ 849 (0%)
[ 3] 35.0-36.0 sec 1.20 MBytes 10.0 Mbits/sec 0.411 ms 0/ 853 (0%)
[ 3] 36.0-37.0 sec 1.19 MBytes 10.0 Mbits/sec 0.468 ms 0/ 851 (0%)
[ 3] 37.0-38.0 sec 1.19 MBytes 9.95 Mbits/sec 0.473 ms 0/ 846 (0%)
[ 3] 38.0-39.0 sec 1.19 MBytes 10.0 Mbits/sec 0.456 ms 0/ 851 (0%)
[ 3] 39.0-40.0 sec 1.19 MBytes 10.0 Mbits/sec 0.505 ms 0/ 850 (0%)
[ 3] 40.0-41.0 sec 1.18 MBytes 9.94 Mbits/sec 1.111 ms 0/ 845 (0%)
[ 3] 41.0-42.0 sec 1.19 MBytes 10.0 Mbits/sec 0.537 ms 0/ 850 (0%)
[ 3] 42.0-43.0 sec 1.18 MBytes 9.94 Mbits/sec 0.408 ms 0/ 845 (0%)
[ 3] 43.0-44.0 sec 1.20 MBytes 10.1 Mbits/sec 0.499 ms 0/ 857 (0%)
[ 3] 44.0-45.0 sec 1.19 MBytes 9.97 Mbits/sec 0.517 ms 0/ 848 (0%)
[ 3] 45.0-46.0 sec 1.19 MBytes 10.0 Mbits/sec 0.549 ms 0/ 852 (0%)
[ 3] 46.0-47.0 sec 1.19 MBytes 9.96 Mbits/sec 0.893 ms 0/ 847 (0%)
[ 3] 47.0-48.0 sec 1.19 MBytes 9.96 Mbits/sec 0.426 ms 0/ 847 (0%)
[ 3] 48.0-49.0 sec 1.19 MBytes 9.98 Mbits/sec 0.665 ms 0/ 849 (0%)
[ 3] 49.0-50.0 sec 1.19 MBytes 9.98 Mbits/sec 0.594 ms 0/ 849 (0%)
[ 3] 50.0-51.0 sec 1.19 MBytes 10.0 Mbits/sec 0.582 ms 0/ 852 (0%)
[ 3] 51.0-52.0 sec 1.18 MBytes 9.94 Mbits/sec 0.578 ms 0/ 845 (0%)
[ 3] 52.0-53.0 sec 1.19 MBytes 9.95 Mbits/sec 0.593 ms 0/ 846 (0%)
[ 3] 53.0-54.0 sec 1.20 MBytes 10.0 Mbits/sec 0.414 ms 0/ 853 (0%)
[ 3] 54.0-55.0 sec 1.19 MBytes 10.0 Mbits/sec 0.637 ms 0/ 850 (0%)
[ 3] 55.0-56.0 sec 1.20 MBytes 10.0 Mbits/sec 0.554 ms 0/ 853 (0%)
[ 3] 56.0-57.0 sec 1.19 MBytes 9.97 Mbits/sec 0.488 ms 0/ 848 (0%)
[ 3] 57.0-58.0 sec 1.12 MBytes 9.41 Mbits/sec 0.466 ms 0/ 800 (0%)
[ 3] 58.0-59.0 sec 1.26 MBytes 10.5 Mbits/sec 0.718 ms 0/ 896 (0%)
[ 3] 0.0-59.7 sec 71.1 MBytes 9.99 Mbits/sec 0.658 ms 205/50928 (0.4%)

3. man iperf

IPERF(1) User Manuals IPERF(1)NAME
iperf – perform network throughput tests

SYNOPSIS
iperf -s [ options ]

iperf -c server [ options ]

iperf -u -s [ options ]

iperf -u -c server [ options ]

DESCRIPTION
iperf is a tool for performing network throughput measurements. It can test either TCP or UDP throughput. To perform an iperf test the user must establish both a server (to discard
traffic) and a client (to generate traffic).

GENERAL OPTIONS
-f, –format
[kmKM] format to report: Kbits, Mbits, KBytes, MBytes

-h, –help
print a help synopsis

-i, –interval n
pause n seconds between periodic bandwidth reports

-l, –len n[KM]
set length read/write buffer to n (default 8 KB)

-m, –print_mss
print TCP maximum segment size (MTU – TCP/IP header)

-o, –output <filename>
output the report or error message to this specified file

-p, –port n
set server port to listen on/connect to to n (default 5001)

-u, –udp
use UDP rather than TCP

-w, –window n[KM]
TCP window size (socket buffer size)

-B, –bind <host>
bind to <host>, an interface or multicast address

-C, –compatibility
for use with older versions does not sent extra msgs

-M, –mss n
set TCP maximum segment size (MTU – 40 bytes)

-N, –nodelay
set TCP no delay, disabling Nagle’s Algorithm

-v, –version
print version information and quit

-V, –IPv6Version
Set the domain to IPv6

-x, –reportexclude
[CDMSV] exclude C(connection) D(data) M(multicast) S(settings) V(server) reports

-y, –reportstyle C|c
if set to C or c report results as CSV (comma separated values)

SERVER SPECIFIC OPTIONS
-s, –server
run in server mode

-U, –single_udp
run in single threaded UDP mode

-D, –daemon
run the server as a daemon

CLIENT SPECIFIC OPTIONS
-b, –bandwidth n[KM]
set target bandwidth to n bits/sec (default 1 Mbit/sec). This setting requires UDP (-u).

-c, –client <host>
run in client mode, connecting to <host>

-d, –dualtest
Do a bidirectional test simultaneously

-n, –num n[KM]
number of bytes to transmit (instead of -t)

-r, –tradeoff
Do a bidirectional test individually

-t, –time n
time in seconds to transmit for (default 10 secs)

-F, –fileinput <name>
input the data to be transmitted from a file

-I, –stdin
input the data to be transmitted from stdin

-L, –listenport n
port to receive bidirectional tests back on

-P, –parallel n
number of parallel client threads to run

-T, –ttl n
time-to-live, for multicast (default 1)

-Z, –linux-congestion <algo>
set TCP congestion control algorithm (Linux only)

ENVIRONMENT
TCP_WINDOW_SIZE
Controls the size of TCP buffers.

DIAGNOSTICS
This section needs to be filled in.

BUGS
Exit statuses are inconsistent. The threading implementation is rather heinous.

AUTHORS
Iperf was originally written by Mark Gates and Alex Warshavsky. Man page and maintence by Jon Dugan <jdugan at x1024 dot net>. Other contributions from Ajay Tirumala, Jim Ferguson,
Feng Qin, Kevin Gibbs, John Estabrook <jestabro at ncsa.uiuc.edu>, Andrew Gallatin <gallatin at gmail.com>, Stephen Hemminger <shemminger at linux-foundation.org>

SEE ALSO
http://iperf.sourceforge.net/

 

NLANR/DAST APRIL 2008 IPERF(1)
root@Ubuntu12Server:~#

 

That’s all . Thanks for using IThelpblog.com

 

 

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>