วิธีการทดสอบประสิทธิภาพของเครือข่ายและแบนด์วิดท์
บทนำ —
แอบแฝงเครือข่ายและแบนด์วิธเป็นสองตัวชี้วัดส่วนใหญ่น่าจะเป็นประโยชน์เมื่อคุณเกณฑ์มาตรฐานเครือข่าย ถึงแม้ว่าบริการมากที่สุดและเน้นการโฆษณาผลิตภัณฑ์แบนด์วิดธ์ที่แอบแฝงครั้งอาจจะเป็นตัวชี้วัดที่สำคัญกว่า
** อะไรคือ Bandwidth?
Bandwidth (BW) ในระบบเครือข่ายคอมพิวเตอร์หมายถึงอัตราการส่งข้อมูลได้รับการสนับสนุนโดยการเชื่อมต่อเครือข่ายหรืออินเตอร์เฟซ BW เป็นวัดในแง่ของบิตต่อ (bps) ที่สอง
** สามารถแอบแฝงเครือข่ายเป็นอย่างไร
เป็นตัวชี้วัดความล่าช้าของการหน่วงเวลาที่มีประสบการณ์ในระบบ แอบแฝงเครือข่ายจะถูกกำหนดเป็นเพียงแค่การหน่วงเวลาที่สังเกตเป็นส่งข้อมูลจากจุดหนึ่งไปยังอีก มีหลายปัจจัยที่ช่วยในการแอบแฝงเครือข่ายเป็น เหล่านี้รวมถึงการส่งผ่าน (กลางของการเชื่อมต่อ) ระยะทางเราท์เตอร์และความล่าช้าอุปกรณ์คอมพิวเตอร์
รายชื่อโครงการที่ใช้ในการทดสอบประสิทธิภาพของเครือข่ายและแบนด์วิธ —
1) bmon — จอแบนด์วิดท์และวิธีการประมาณค่าอัตราก็เป็นคอนโซลตามสด BW
2) bwbar — การใช้แบนด์วิธในข้อความและกราฟิกรูปแบบ
3) bwm – ng — Bandwidth Monitor NG (Next Generation, Live BW, คอนโซลตาม
4) dstat — Dstat สามารถเปลี่ยนสำหรับ vmstat iostat และ ifstat
5) iftop — การใช้แบนด์วิธในอินเตอร์เฟซ, คอนโซลตาม
6) iperf — ทำการทดสอบผ่านเครือข่ายเดิมพันสองโฮสต์
7 ifstat) — รายงานสถิติการเชื่อมต่อ
8 cbm) — สี Bandwidth Meter, คอนโซลตาม
9 etherape) — เบราว์เซอร์แบบกราฟิกการจราจรในเครือข่าย
10) iptraf — Interactive Colorful IP LAN Monitor, คอนโซลและ GUI ตาม
11) netmrg — เป็นภูตตามการสนับสนุน MySQL, รวบรวมข้อมูลจากอุปกรณ์
12 nuttcp) — เครือข่ายการวัดประสิทธิภาพของเครื่องมือ
13 nepim)
หมายเหตุ ~ สำหรับบางคน deb ชุดรอบต่อนาทีหรือไม่สามารถใช้ได้!
ขั้นตอนที่ 1] วิธีการติดตั้งใน RedHat / RHCE, CentOS ระบบพื้นฐานและระบบฐาน Dibian?
root@me:~# yum install netperf iperf nuttcp nepim lmbench
Ubuntu ** —
root@me:~# apt-get install bmon bwbar bwm-ng dstat cbm etherape iftop iperf ifstat iptraf netmrg
ขั้นตอนที่ 2] วิธีการใช้ — bmon, bwm – ng, dstat, ifstat —
root@me:~# bmon
interface: lo at me.arun.world
# Interface RX Rate RX # TX Rate TX #
───────────────────────────────────────────────────────────────────────────────
me.arun.host (source: local)
0 lo 0.00B 0 0.00B 0
1 eth0 0.00B 0 0.00B 0
2 eth2 0.00B 0 0.00B 0
3 vboxnet0 0.00B 0 0.00B 0
4 pan0 0.00B 0 0.00B 0
5 ppp0 69.39KiB 61 7.49KiB 44
root@me:~# bwm-ng
bwm-ng v0.6 (probing every 0.500s), press ‘h’ for help
input: /proc/net/dev type: rate
\ iface Rx Tx Total
==============================================================================
lo: 0.00 KB/s 0.00 KB/s 0.00 KB/s
eth0: 0.00 KB/s 0.00 KB/s 0.00 KB/s
eth2: 0.00 KB/s 0.00 KB/s 0.00 KB/s
ppp0: 64.39 KB/s 7.92 KB/s 72.31 KB/s
——————————————————————————
total: 64.39 KB/s 7.92 KB/s 72.31 KB/s
root@me:~# dstat
—-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
7 4 85 4 0 0| 281k 110k| 0 0 | 0 0 | 865 3013
8 4 88 0 0 0| 0 0 |7027B 1261B| 0 0 | 956 4505
8 5 86 0 0 0| 0 0 | 14k 1867B| 0 0 |1144 3332
9 5 86 0 1 0| 0 0 | 79k 2496B| 0 0 |1360 3366
18 8 74 0 0 0| 0 0 | 52k 6511B| 0 0 |1299 3618
8 6 85 0 1 0| 0 0 | 35k 5339B| 0 0 |1094 4231
6 4 90 0 0 0| 0 0 | 0 3164B| 0 0 | 953 2750 ^C
root@me:~#
root@me:~# ifstat
eth0 eth2 ppp0
KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out
0.00 0.00 0.00 0.00 95.73 4.31
0.00 0.00 0.00 0.00 67.93 8.17
0.00 0.00 0.00 0.00 106.77 13.70
** เริ่มต้น”iperf”เซิร์ฟเวอร์บนโฮสต์ (A) และลูกค้าในพื้นที่อื่น (B) — การวัดผ่านเครือข่ายระหว่างสองครอบครัว
* Host -A
root@me:~# iperf -s
————————————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
————————————————————
[ 4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 56171
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 9.11 GBytes 7.82 Gbits/sec
* Host -B
test@hostB:~$ iperf -c 192.168.0.1
————————————————————
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 49.5 KByte (default)
————————————————————
[ 3] local 192.168.0.2 port 56171 connected with 192.168.0.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 9.11 GBytes 7.82 Gbits/sec
test@hostB:~$
root@me:~# iftop
root@me:~# cbm
Thank you,
Arun Bagul