{"id":90727,"date":"2024-03-10T21:50:15","date_gmt":"2024-03-10T13:50:15","guid":{"rendered":"http:\/\/gulass.cn\/?p=90727"},"modified":"2024-03-10T21:50:15","modified_gmt":"2024-03-10T13:50:15","slug":"linux-io-network","status":"publish","type":"post","link":"https:\/\/gulass.cn\/linux-io-network.html","title":{"rendered":"linux\u4e0b \u67e5\u770b\u7f51\u5361\u6d41\u91cf\u529e\u6cd5\u603b\u7ed3"},"content":{"rendered":"
\u672c\u6587\u4ecb\u7ecd\u4e86linux\u4e0b\u67e5\u770b\u7f51\u5361\u6d41\u91cf\u7684\u516d\u79cd\u65b9\u6cd5\uff0clinux\u7cfb\u7edf\u4e2d\u4f7f\u7528nload\u3001iftop\u3001iostat\u7b49\u5de5\u5177\u67e5\u770b\u7f51\u5361\u6d41\u91cf\uff0c\u9700\u8981\u7684\u670b\u53cb\u53c2\u8003\u4e0b\u3002<\/p>\n
\u6e90\u7801\u5305\u8def\u5f84\uff1a \u6e90\u7801\u5305\u8def\u5f84\uff1a \u6e90\u7801\u5305\u8def\u5f84\uff1a iptraf<\/p>\n \u5b89\u88c5\u65b9\u5f0f\uff1a<\/p>\n yum\u00a0-y\u00a0install\u00a0iptraf<\/p>\n watch ifconfig<\/p>\n watch\u00a0cat\u00a0\/proc\/net\/dev<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/blog.csdn.net\/shedong1011\/article\/details\/48597389<\/a><\/p>\n
\nhttp:\/\/heanet.dl.sourceforge.net\/project\/nload\/nload\/0.7.2\/nload-0.7.2.tar.gz<\/a>
\n\u67e5\u770b\u53c2\u6570\u5e2e\u52a9\u547d\u4ee4\uff1a
\nnload\u00a0\u2013help
\n-a \u00a0\uff1a\u8fd9\u4e2a\u597d\u50cf\u662f\u5168\u90e8\u6570\u636e\u7684\u5237\u65b0\u65f6\u95f4\u5468\u671f\uff0c\u5355\u4f4d\u662f\u79d2\uff0c\u9ed8\u8ba4\u662f300.
\n-i \u00a0 \uff1a\u8fdb\u5165\u7f51\u5361\u7684\u6d41\u91cf\u56fe\u7684\u663e\u793a\u6bd4\u4f8b\u6700\u5927\u503c\u8bbe\u7f6e\uff0c\u9ed8\u8ba410240\u00a0kBit\/s.
\n-m \uff1a\u4e0d\u663e\u793a\u6d41\u91cf\u56fe\uff0c\u53ea\u663e\u793a\u7edf\u8ba1\u6570\u636e\u3002
\n-o \u00a0\uff1a\u51fa\u53bb\u7f51\u5361\u7684\u6d41\u91cf\u56fe\u7684\u663e\u793a\u6bd4\u4f8b\u6700\u5927\u503c\u8bbe\u7f6e\uff0c\u9ed8\u8ba410240\u00a0kBit\/s.
\n-t \u00a0 \uff1a\u663e\u793a\u6570\u636e\u7684\u5237\u65b0\u65f6\u95f4\u95f4\u9694\uff0c\u5355\u4f4d\u662f\u6beb\u79d2\uff0c\u9ed8\u8ba4500\u3002
\n-u \u00a0\uff1a\u8bbe\u7f6e\u53f3\u8fb9Curr\u3001Avg\u3001Min\u3001Max\u7684\u6570\u636e\u5355\u4f4d\uff0c\u9ed8\u8ba4\u662f\u81ea\u52a8\u53d8\u7684.\u6ce8\u610f\u5927\u5c0f\u5199\u5355\u4f4d\u4e0d\u540c\uff01
\nh|b|k|m|g \u00a0\u00a0\u00a0\u00a0h:\u00a0auto,\u00a0b:\u00a0Bit\/s,\u00a0k:\u00a0kBit\/s,\u00a0m:\u00a0MBit\/s\u00a0etc.
\nH|B|K|M|G\u00a0\u00a0\u00a0\u00a0H:\u00a0auto,\u00a0B:\u00a0Byte\/s,\u00a0K:\u00a0kByte\/s,\u00a0M:\u00a0MByte\/s\u00a0etc.
\n-U\uff1a\u8bbe\u7f6e\u53f3\u8fb9Ttl\u7684\u6570\u636e\u5355\u4f4d\uff0c\u9ed8\u8ba4\u662f\u81ea\u52a8\u53d8\u7684.\u6ce8\u610f\u5927\u5c0f\u5199\u5355\u4f4d\u4e0d\u540c\uff08\u4e0e-u\u76f8\u540c\uff09\uff01
\nDevices\uff1a\u81ea\u5b9a\u4e49\u76d1\u63a7\u7684\u7f51\u5361\uff0c\u9ed8\u8ba4\u662f\u5168\u90e8\u76d1\u63a7\u7684\uff0c\u4f7f\u7528\u5de6\u53f3\u952e\u5207\u6362\u3002
\n\u5982\u53ea\u76d1\u63a7eth0\u547d\u4ee4\uff1a\u00a0nload\u00a0eth0<\/p>\n
\nhttp:\/\/www.ex-parrot.com\/%7Epdw\/iftop\/download\/iftop-0.17.tar.gz<\/a>
\n1\u3001iftop\u754c\u9762\u76f8\u5173\u8bf4\u660e<\/strong>
\n\u754c\u9762\u4e0a\u9762\u663e\u793a\u7684\u662f\u7c7b\u4f3c\u523b\u5ea6\u5c3a\u7684\u523b\u5ea6\u8303\u56f4\uff0c\u4e3a\u663e\u793a\u6d41\u91cf\u56fe\u5f62\u7684\u957f\u6761\u4f5c\u6807\u5c3a\u7528\u7684\u3002
\n\u4e2d\u95f4\u7684<=\u00a0=>\u8fd9\u4e24\u4e2a\u5de6\u53f3\u7bad\u5934\uff0c\u8868\u793a\u7684\u662f\u6d41\u91cf\u7684\u65b9\u5411\u3002
\nTX\uff1a \u00a0 \u00a0 \u00a0 \u00a0\u53d1\u9001\u6d41\u91cf
\nRX\uff1a \u00a0 \u00a0 \u00a0 \u00a0\u63a5\u6536\u6d41\u91cf
\nTOTAL\uff1a\u603b\u6d41\u91cf
\nCumm\uff1a \u8fd0\u884ciftop\u5230\u76ee\u524d\u65f6\u95f4\u7684\u603b\u6d41\u91cf
\npeak\uff1a \u00a0 \u00a0\u6d41\u91cf\u5cf0\u503c
\nrates\uff1a \u00a0 \u00a0\u5206\u522b\u8868\u793a\u8fc7\u53bb\u00a02s\u00a010s\u00a040s\u00a0\u7684\u5e73\u5747\u6d41\u91cf
\n2\u3001iftop\u76f8\u5173\u53c2\u6570<\/strong>
\n\u5e38\u7528\u7684\u53c2\u6570
\n-i \u00a0 \u8bbe\u5b9a\u76d1\u6d4b\u7684\u7f51\u5361\uff0c\u5982\uff1a#\u00a0iftop\u00a0-i\u00a0eth1
\n-B\u00a0\u4ee5bytes\u4e3a\u5355\u4f4d\u663e\u793a\u6d41\u91cf(\u9ed8\u8ba4\u662fbits)\uff0c\u5982\uff1a#\u00a0iftop\u00a0-B
\n-n \u4f7fhost\u4fe1\u606f\u9ed8\u8ba4\u76f4\u63a5\u90fd\u663e\u793aIP\uff0c\u5982\uff1a#\u00a0iftop\u00a0-n
\n-N \u4f7f\u7aef\u53e3\u4fe1\u606f\u9ed8\u8ba4\u76f4\u63a5\u90fd\u663e\u793a\u7aef\u53e3\u53f7\uff0c\u5982:\u00a0#\u00a0iftop\u00a0-N
\n-F \u663e\u793a\u7279\u5b9a\u7f51\u6bb5\u7684\u8fdb\u51fa\u6d41\u91cf\uff0c\u5982#\u00a0iftop\u00a0-F\u00a010.10.1.0\/24\u6216#\u00a0iftop\u00a0-F\u00a010.10.1.0\/255.255.255.0
\n-h\uff08display\u00a0this\u00a0message\uff09\uff0c\u5e2e\u52a9\uff0c\u663e\u793a\u53c2\u6570\u4fe1\u606f
\n-p \u4f7f\u7528\u8fd9\u4e2a\u53c2\u6570\u540e\uff0c\u4e2d\u95f4\u7684\u5217\u8868\u663e\u793a\u7684\u672c\u5730\u4e3b\u673a\u4fe1\u606f\uff0c\u51fa\u73b0\u4e86\u672c\u673a\u4ee5\u5916\u7684IP\u4fe1\u606f;
\n-b \u4f7f\u6d41\u91cf\u56fe\u5f62\u6761\u9ed8\u8ba4\u5c31\u663e\u793a;
\n-f \u00a0\u8fd9\u4e2a\u6682\u65f6\u8fd8\u4e0d\u592a\u4f1a\u7528\uff0c\u8fc7\u6ee4\u8ba1\u7b97\u5305\u7528\u7684;
\n-P \u4f7fhost\u4fe1\u606f\u53ca\u7aef\u53e3\u4fe1\u606f\u9ed8\u8ba4\u5c31\u90fd\u663e\u793a;
\n-m\u8bbe\u7f6e\u754c\u9762\u6700\u4e0a\u8fb9\u7684\u523b\u5ea6\u7684\u6700\u5927\u503c\uff0c\u523b\u5ea6\u5206\u4e94\u4e2a\u5927\u6bb5\u663e\u793a\uff0c\u4f8b\uff1a#\u00a0iftop\u00a0-m\u00a0100M
\n\u8fdb\u5165iftop\u753b\u9762\u540e\u7684\u4e00\u4e9b\u64cd\u4f5c\u547d\u4ee4(\u6ce8\u610f\u5927\u5c0f\u5199)
\n\u6309h\u5207\u6362\u662f\u5426\u663e\u793a\u5e2e\u52a9;
\n\u6309n\u5207\u6362\u663e\u793a\u672c\u673a\u7684IP\u6216\u4e3b\u673a\u540d;
\n\u6309s\u5207\u6362\u662f\u5426\u663e\u793a\u672c\u673a\u7684host\u4fe1\u606f;
\n\u6309d\u5207\u6362\u662f\u5426\u663e\u793a\u8fdc\u7aef\u76ee\u6807\u4e3b\u673a\u7684host\u4fe1\u606f;
\n\u6309t\u5207\u6362\u663e\u793a\u683c\u5f0f\u4e3a2\u884c\/1\u884c\/\u53ea\u663e\u793a\u53d1\u9001\u6d41\u91cf\/\u53ea\u663e\u793a\u63a5\u6536\u6d41\u91cf;
\n\u6309N\u5207\u6362\u663e\u793a\u7aef\u53e3\u53f7\u6216\u7aef\u53e3\u670d\u52a1\u540d\u79f0;
\n\u6309S\u5207\u6362\u662f\u5426\u663e\u793a\u672c\u673a\u7684\u7aef\u53e3\u4fe1\u606f;
\n\u6309D\u5207\u6362\u662f\u5426\u663e\u793a\u8fdc\u7aef\u76ee\u6807\u4e3b\u673a\u7684\u7aef\u53e3\u4fe1\u606f;
\n\u6309p\u5207\u6362\u662f\u5426\u663e\u793a\u7aef\u53e3\u4fe1\u606f;
\n\u6309P\u5207\u6362\u6682\u505c\/\u7ee7\u7eed\u663e\u793a;
\n\u6309b\u5207\u6362\u662f\u5426\u663e\u793a\u5e73\u5747\u6d41\u91cf\u56fe\u5f62\u6761;
\n\u6309B\u5207\u6362\u8ba1\u7b972\u79d2\u621610\u79d2\u621640\u79d2\u5185\u7684\u5e73\u5747\u6d41\u91cf;
\n\u6309T\u5207\u6362\u662f\u5426\u663e\u793a\u6bcf\u4e2a\u8fde\u63a5\u7684\u603b\u6d41\u91cf;
\n\u6309l\u6253\u5f00\u5c4f\u5e55\u8fc7\u6ee4\u529f\u80fd\uff0c\u8f93\u5165\u8981\u8fc7\u6ee4\u7684\u5b57\u7b26\uff0c\u6bd4\u5982ip,\u6309\u56de\u8f66\u540e\uff0c\u5c4f\u5e55\u5c31\u53ea\u663e\u793a\u8fd9\u4e2aIP\u76f8\u5173\u7684\u6d41\u91cf\u4fe1\u606f;
\n\u6309L\u5207\u6362\u663e\u793a\u753b\u9762\u4e0a\u8fb9\u7684\u523b\u5ea6;\u523b\u5ea6\u4e0d\u540c\uff0c\u6d41\u91cf\u56fe\u5f62\u6761\u4f1a\u6709\u53d8\u5316;
\n\u6309j\u6216\u6309k\u53ef\u4ee5\u5411\u4e0a\u6216\u5411\u4e0b\u6eda\u52a8\u5c4f\u5e55\u663e\u793a\u7684\u8fde\u63a5\u8bb0\u5f55;
\n\u63091\u62162\u62163\u53ef\u4ee5\u6839\u636e\u53f3\u4fa7\u663e\u793a\u7684\u4e09\u5217\u6d41\u91cf\u6570\u636e\u8fdb\u884c\u6392\u5e8f;
\n\u6309<\u6839\u636e\u5de6\u8fb9\u7684\u672c\u673a\u540d\u6216IP\u6392\u5e8f;
\n\u6309>\u6839\u636e\u8fdc\u7aef\u76ee\u6807\u4e3b\u673a\u7684\u4e3b\u673a\u540d\u6216IP\u6392\u5e8f;
\n\u6309o\u5207\u6362\u662f\u5426\u56fa\u5b9a\u53ea\u663e\u793a\u5f53\u524d\u7684\u8fde\u63a5;
\n\u6309f\u53ef\u4ee5\u7f16\u8f91\u8fc7\u6ee4\u4ee3\u7801\uff0c\u8fd9\u662f\u7ffb\u8bd1\u8fc7\u6765\u7684\u8bf4\u6cd5\uff0c\u6211\u8fd8\u6ca1\u7528\u8fc7\u8fd9\u4e2a\uff01
\n\u6309!\u53ef\u4ee5\u4f7f\u7528Shell\u547d\u4ee4\uff0c\u8fd9\u4e2a\u6ca1\u7528\u8fc7\uff01\u6ca1\u641e\u660e\u767d\u5565\u547d\u4ee4\u5728\u8fd9\u597d\u7528\u5462\uff01
\n\u6309q\u9000\u51fa\u76d1\u63a7\u3002<\/p>\n
\nhttp:\/\/gael.roualland.free.fr\/ifstat\/ifstat-1.1.tar.gz<\/a>
\n\u53c2\u6570\uff1a
\n-a\u00a0\u00a0\u76d1\u6d4b\u80fd\u68c0\u6d4b\u5230\u7684\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684\u72b6\u6001\u4fe1\u606f
\n-z\u00a0\u00a0\u9690\u85cf\u6d41\u91cf\u662f\u65e0\u7684\u63a5\u53e3\uff0c\u4f8b\u5982\u90a3\u4e9b\u63a5\u53e3\u867d\u7136\u542f\u52a8\u4e86\u4f46\u662f\u672a\u7528\u7684
\n-i\u00a0\u00a0\u6307\u5b9a\u8981\u76d1\u6d4b\u7684\u63a5\u53e3,\u540e\u9762\u8ddf\u7f51\u7edc\u63a5\u53e3\u540d
\n\u65f6\u95f4\uff1a
\n-T\u00a0\u62a5\u544a\u6240\u6709\u76d1\u6d4b\u63a5\u53e3\u7684\u5168\u90e8\u5e26\u5bbd
\n-w\u00a0\u00a0\u7528\u6307\u5b9a\u7684\u5217\u5bbd\uff0c\u800c\u4e0d\u662f\u4e3a\u4e86\u9002\u5e94\u63a5\u53e3\u540d\u79f0\u7684\u957f\u5ea6\u800c\u53bb\u81ea\u52a8\u653e\u5927\u5217\u5bbd
\n-W\u00a0\u5982\u679c\u5185\u5bb9\u6bd4\u7ec8\u7aef\u7a97\u53e3\u7684\u5bbd\u5ea6\u8fd8\u8981\u5bbd\u5c31\u81ea\u52a8\u6362\u884c
\n-b\u00a0\u7528kbits\/s\u663e\u793a\u5e26\u5bbd\u800c\u4e0d\u662fkbytes\/s<\/p>\n\n