3.8.Ethernet-throughput interactions
Sequence Diagram

Programming
1.iperf UDP server
$p = Start-Process -FilePath "$serverDrive\$serverShareFolder\$iperfdir\iperf.exe" -ArgumentList "-s -u -w 256k" #echo $p $id=(get-process iperf).Id Wait-Process -id $id -timeout ($timeout_iperf +20) $iperf = Get-Process iperf -ErrorAction SilentlyContinue if ($iperf) { taskkill /T /F /PID $id }2.iperf UDP client
$_bandwidth=$bandwidth+"M" $pinfo = New-Object System.Diagnostics.ProcessStartInfo $pinfo.FileName = "$serverDrive\$serverShareFolder\$iperfdir\iperf.exe" $pinfo.Arguments="-u -c $clientIP -t $timeout_iperf -i 1 -f 'm' -b $_bandwidth -w 256k" $pinfo.UseShellExecute = $false $pinfo.CreateNoWindow = $true $pinfo.RedirectStandardOutput = $true $p = New-Object System.Diagnostics.Process $p.StartInfo = $pinfo $p.Start() | Out-Null $p.WaitForExit() $stdout = $p.StandardOutput.ReadToEnd()3.iperf TCP server
$p = Start-Process -FilePath "$serverDrive\$serverShareFolder\$iperfdir\iperf.exe" -ArgumentList "-s -w 256k" $id=(get-process iperf).Id Wait-Process -id $id -timeout ($timeout_iperf +20) $iperf = Get-Process iperf -ErrorAction SilentlyContinue if ($iperf) { taskkill /T /F /PID $id }4.iperf TCP client
5.Change NIC speed & duplex mode
Last updated
Was this helpful?