User Tools

Site Tools


networking:network_testing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
networking:network_testing [2013/06/30 12:30]
gcooper
networking:network_testing [2023/07/04 14:32] (current)
gcooper
Line 1: Line 1:
 ====== Network Testing ====== ====== Network Testing ======
 +
 +===== Route Tracing =====
 +
 +
 +==== Using TCP ====
 +
 +:!: May require ''sudo''...
 +
 +  * Requires something listening on the port you specify
 +    * For example a web server listening on port 443 (SSL)
 +  * Use ''-n'' to eliminate name resolution
 +    * Faster
 +  * Uses TCP SYN and ACK instead of ICMP
 +
 +Using port 443: 
 +
 +<file>
 +traceroute -T -O info -p 443 hostname.domain.tld
 +
 +tcptraceroute hostname.domain.tld 443
 +</file>
 +
 +This will also illuminate **asymmetrical routing**:
 +
 +<file>
 +tracepath hostname.domain.tld
 +</file>
 +
 +===== Latency Testing =====
 +
 +==== Linux ====
 +
 +**SmokePing**: https://oss.oetiker.ch/smokeping/index.en.html
 +
 +==== Windows ====
 +
 +:!: Tools must be run with **admin privileges**.
 +
 +**GPing**: https://sourceforge.net/projects/gping/
 +
 +  * Runs in memory
 +
 +**PingLogger**: http://pinglogger.co.uk/
 +
 +  * Creates database in same folder
 +  * Doesn't log actual time
  
 ===== Throughput Testing with Iperf ===== ===== Throughput Testing with Iperf =====
Line 30: Line 76:
 <file> <file>
 iperf -s iperf -s
 +</file>
 +
 +Windows firewall:
 +
 +<file>
 +New-NetFirewallRule -DisplayName 'iPerf-Server-Inbound-TCP' -Direction Inbound -Protocol TCP -LocalPort 5201 -Action Allow | Enable-NetFirewallRule
 +New-NetFirewallRule -DisplayName 'iPerf-Server-Inbound-UDP' -Direction Inbound -Protocol UDP -LocalPort 5201 -Action Allow | Enable-NetFirewallRule
 </file> </file>
  
Line 127: Line 180:
  
 Switch testing with Iperf Switch testing with Iperf
 +
 +===== 10Gb Network testing with NTttcp =====
 +
 +https://www.smallnetbuilder.com/archives/lanwan/lanwan-features/32345-confessions-of-a-10-gbe-network-newbie-part-2-test-toolkit
 +
 +https://gallery.technet.microsoft.com/NTttcp-Version-528-Now-f8b12769
 +
 +
 +:!:**Note** Unless you have a large RAID array hard disks will not fill a 10Gb pipe.  For complete testing a RAMDisk formatted for 12GB is necessary.
 +
 +  * Download NTttcp Utility and copy to 2 Windows PCs on the network.
 +  * Make sure the NTttcp traffic can pass the firewall on both PCs.  Specify a firewall exception for the program name.
 +  * Run this command **First** on the **Receiver**  <file>ntttcp.exe -r -m 16,*,192.168.0.140 -l 128k -a 2 -t 20</file>
 +  * Run this command **Second** on the **Server** <file>ntttcp.exe -s -m 16,*,192.168.0.140 -l 128k -a 2 -t 20</file>
 + 
 +
 +:!:**Note** The receiver machine in this case has an IP address of 192.168.0.140. You must specify the receiver’s IP address on the server instance.
 +
 +
 +
networking/network_testing.1372617041.txt.gz · Last modified: 2013/06/30 12:30 by gcooper