Home » Network Performance Testing: iPerf, Throughput, Latency, Jitter และ Baseline
Network Performance Testing: iPerf, Throughput, Latency, Jitter และ Baseline
Network Performance Testing: iPerf, Throughput, Latency, Jitter และ Baseline
Network Performance Testing วัดและประเมินประสิทธิภาพของ network เพื่อ verify ว่าได้ตาม SLA และ design requirements iPerf เป็น open-source tool สำหรับวัด throughput, Latency (delay) วัดเวลาที่ packet เดินทาง, Jitter วัดความผันผวนของ latency ที่กระทบ real-time applications และ Baseline คือ normal performance ที่ใช้เป็นจุดอ้างอิงเพื่อตรวจจับ anomalies
หลายองค์กร ไม่เคยวัด network performance จนกว่าจะมีปัญหา แล้วก็ไม่มี baseline เปรียบเทียบ ทำให้ไม่รู้ว่า “ช้า” หมายถึงอะไร — ช้ากว่าปกติเท่าไหร่? ปัญหาอยู่ที่ไหน? Regular performance testing + baseline ช่วยตรวจจับปัญหาก่อนกระทบ users และ plan capacity ได้ถูกต้อง
Key Performance Metrics
| Metric |
คืออะไร |
Unit |
Impact |
| Throughput |
Actual data transfer rate (usable bandwidth) |
Mbps / Gbps |
File transfers, backups, bulk data |
| Bandwidth |
Maximum theoretical capacity of link |
Mbps / Gbps |
Link capacity (not actual usage) |
| Latency (Delay) |
เวลาที่ packet เดินทางจาก A → B |
ms (milliseconds) |
VoIP, video, interactive apps |
| RTT (Round-Trip Time) |
เวลา A → B → A (ping time) |
ms |
TCP performance, interactive apps |
| Jitter |
ความผันผวนของ latency (variation in delay) |
ms |
VoIP, video conferencing quality |
| Packet Loss |
% ของ packets ที่หายระหว่างทาง |
% |
TCP retransmissions, voice/video artifacts |
| MOS (Mean Opinion Score) |
คะแนนคุณภาพเสียง 1-5 |
1 (bad) to 5 (excellent) |
VoIP quality assessment |
Performance Thresholds
| Application |
Latency |
Jitter |
Packet Loss |
| VoIP |
< 150ms (one-way) |
< 30ms |
< 1% |
| Video Conferencing |
< 200ms |
< 30ms |
< 1% |
| Interactive (RDP, Citrix) |
< 100ms |
< 20ms |
< 0.5% |
| Web Browsing |
< 300ms |
N/A |
< 2% |
| File Transfer |
Throughput matters more |
N/A |
< 0.1% (TCP retransmits) |
| Database Replication |
< 50ms |
< 10ms |
0% |
iPerf3
| Feature |
รายละเอียด |
| คืออะไร |
Open-source tool สำหรับวัด network throughput (TCP + UDP) |
| Architecture |
Client-server: run server บน 1 end, client อีก end → measure |
| TCP Test |
วัด maximum throughput (bandwidth capacity between 2 points) |
| UDP Test |
วัด jitter + packet loss ที่ specified bitrate |
| Parallel Streams |
ใช้หลาย streams พร้อมกัน (-P 4) เพื่อ saturate link |
| Bidirectional |
Test ทั้ง 2 ทิศทาง (-R for reverse, –bidir for simultaneous) |
| JSON Output |
-J flag สำหรับ JSON output (parse ง่าย, integrate กับ monitoring) |
| Download |
iperf.fr — available for Windows, Linux, macOS, FreeBSD |
iPerf3 Commands
| Command |
Purpose |
| iperf3 -s |
Start server (listen on port 5201) |
| iperf3 -c 10.0.0.1 |
TCP throughput test to server |
| iperf3 -c 10.0.0.1 -u -b 100M |
UDP test at 100 Mbps (measure jitter + loss) |
| iperf3 -c 10.0.0.1 -P 4 |
4 parallel TCP streams (saturate link) |
| iperf3 -c 10.0.0.1 -R |
Reverse mode (server sends to client) |
| iperf3 -c 10.0.0.1 –bidir |
Bidirectional test (both directions simultaneously) |
| iperf3 -c 10.0.0.1 -t 60 |
Run for 60 seconds (longer = more accurate) |
| iperf3 -c 10.0.0.1 -J |
JSON output (for automation/parsing) |
Other Testing Tools
| Tool |
Purpose |
Platform |
| ping |
RTT latency, packet loss (ICMP) |
All |
| mtr (My Traceroute) |
Combined ping + traceroute (per-hop latency + loss) |
Linux/Mac/Windows |
| pathping |
Windows equivalent of mtr (hop-by-hop analysis) |
Windows |
| Cisco IP SLA |
Continuous monitoring: ICMP echo, UDP jitter, HTTP GET |
Cisco IOS/IOS-XE |
| TWAMP |
Two-Way Active Measurement Protocol (RFC 5357) |
Multi-vendor |
| Speedtest CLI |
Internet bandwidth test from CLI |
All (speedtest.net) |
| netperf |
Throughput + latency testing (alternative to iPerf) |
Linux |
| flent |
Bufferbloat testing (latency under load) |
Linux |
Baseline Process
| Step |
Action |
| 1. Identify critical paths |
List important network paths (user→server, site→site, site→cloud) |
| 2. Select metrics |
Throughput, latency, jitter, packet loss per path |
| 3. Measure |
Test ทุก path ในช่วง peak + off-peak (3-5 วันทำการ) |
| 4. Document |
Record results: average, min, max, 95th percentile per metric |
| 5. Set thresholds |
Alert threshold = baseline + 2× standard deviation |
| 6. Monitor continuously |
IP SLA / synthetic monitoring ตรวจสอบ 24/7 |
| 7. Re-baseline |
Update baseline ทุก 3-6 เดือน (network changes → new baseline) |
ทิ้งท้าย: Measure → Baseline → Monitor → Improve
Network Performance Testing Metrics: throughput, latency, jitter, packet loss, MOS (VoIP quality) Thresholds: VoIP < 150ms/30ms jitter/1% loss, interactive < 100ms, DB replication < 50ms iPerf3: TCP throughput + UDP jitter/loss testing (open source, client-server) Tools: ping/mtr (latency), iPerf (throughput), IP SLA (continuous), TWAMP (standard) Baseline: measure critical paths → document avg/min/max/p95 → set alert thresholds Process: identify paths → measure peak+off-peak → document → set thresholds → monitor 24/7 → re-baseline quarterly
อ่านเพิ่มเติมเกี่ยวกับ Network Monitoring SNMP NetFlow Prometheus และ QoS DiffServ DSCP Queuing ที่ siamlancard.com หรือจาก icafeforex.com และ siam2r.com