{"id":35066,"date":"2024-11-15T10:43:56","date_gmt":"2024-11-15T03:43:56","guid":{"rendered":"http:\/\/jupitek.maudemo.vip\/index.php\/2024\/11\/15\/su-dung-iperf-va-nload-de-kiem-tra-bang-thong-mang-server-cloud-vps\/"},"modified":"2024-11-15T10:43:56","modified_gmt":"2024-11-15T03:43:56","slug":"su-dung-iperf-va-nload-de-kiem-tra-bang-thong-mang-server-cloud-vps","status":"publish","type":"post","link":"https:\/\/jupitek.maudemo.vip\/index.php\/2024\/11\/15\/su-dung-iperf-va-nload-de-kiem-tra-bang-thong-mang-server-cloud-vps\/","title":{"rendered":"S\u1eed d\u1ee5ng Iperf v\u00e0 Nload \u0111\u1ec3 ki\u1ec3m tra b\u0103ng th\u00f4ng m\u1ea1ng Server\/Cloud VPS"},"content":{"rendered":"<p>Gi\u1edbi thi\u1ec7u Iperf v\u00e0 Nload<\/p>\n<ul>\n<li><strong>Iperf<\/strong>&nbsp;l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5&nbsp; d\u00f9ng \u0111\u1ec3 \u0111o l\u01b0\u1eddng l\u01b0\u1ee3ng d\u1eef li\u1ec7u m\u1ea1ng (throughput) t\u1ed1i \u0111a m\u00e0 m\u1ed9t server c\u00f3 th\u1ec3 x\u1eed l\u00fd. C\u00f4ng c\u1ee5 n\u00e0y r\u1ea5t h\u1eefu \u00edch \u0111\u1ec3 truy t\u00ecm ra c\u00e1c v\u1ea5n \u0111\u1ec1 \u0111\u1ed1i v\u1edbi h\u1ec7 th\u1ed1ng m\u1ea1ng. Iperf c\u00f2n c\u00f3 th\u1ec3 ki\u1ec3m tra b\u0103ng th\u00f4ng t\u1ed1i \u0111a m\u00e0 \u0111\u01b0\u1eddng truy\u1ec1n m\u1ea1ng c\u00f3 th\u1ec3 \u0111\u00e1p \u1ee9ng.<\/li>\n<li><strong>Nload<\/strong>&nbsp;l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 \u0111\u1ec3 theo d\u00f5i l\u01b0u l\u01b0\u1ee3ng m\u1ea1ng v\u00e0 vi\u1ec7c s\u1eed d\u1ee5ng b\u0103ng th\u00f4ng theo th\u1eddi gian th\u1ef1c. Nload gi\u00fap gi\u00e1m s\u00e1t l\u01b0u l\u01b0\u1ee3ng \u0111\u1ebfn (Incoming) v\u00e0 \u0111i (Outgoing) b\u1eb1ng bi\u1ec3u \u0111\u1ed3.<\/li>\n<\/ul>\n<h1 id=\"h-mo-hinh\">M\u00f4 h\u00ecnh<\/h1>\n<p>Trong b\u00e0i vi\u1ebft n\u00e0y, Zhost s\u1ebd s\u1eed d\u1ee5ng 02 Server ch\u1ea1y CentOS 7:<\/p>\n<ul>\n<li>Server: 10.0.0.10\/24<\/li>\n<li>Client: 10.0.0.20\/24<\/li>\n<\/ul>\n<h1 id=\"h-ki\u1ec3m-tra-network-throughput-b\u1eb1ng-iperf\">Ki\u1ec3m tra Network throughput b\u1eb1ng Iperf<\/h1>\n<h2 id=\"h-cai-d\u1eb7t-iperf\">C\u00e0i \u0111\u1eb7t Iperf<\/h2>\n<p>Ti\u1ebfn h\u00e0nh c\u00e0i \u0111\u1eb7t Iperf tr\u00ean c\u1ea3 m\u00e1y server v\u00e0 Client.<\/p>\n<pre class=\"wp-block-code\"><code>yum install epel-release -y\nyum install iperf -y<\/code><\/pre>\n<p>T\u1ea1m th\u1eddi t\u1eaft Firewalld<\/p>\n<pre class=\"wp-block-code\"><code>systemctl stop firewalld\n<\/code><\/pre>\n<h2>Th\u1ef1c hi\u1ec7n ki\u1ec3m tra<\/h2>\n<p>Tr\u00ean m\u00e1y Server, m\u1eadt mode Iperf Server b\u1eb1ng c\u00e2u l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>iperf -s\n<\/code><\/pre>\n<p>Tr\u00ean m\u00e1y Client, th\u1ef1c hi\u1ec7n \u0111\u1ea9y g\u00f3i TCP t\u1edbi server b\u1eb1ng c\u00e2u l\u1ec7nh sau:<\/p>\n<pre class=\"wp-block-code\"><code>iperf -c 10.0.0.10 -i1 -t 20 -m\n<\/code><\/pre>\n<p>Gi\u1ea3i th\u00edch c\u00e1c tham s\u1ed1:<\/p>\n<ul>\n<li>-c : \u0110\u1ecba ch\u1ec9 host c\u1ee7a iperf server (10.0.0.10)<\/li>\n<li>-i : Kho\u1ea3ng th\u1eddi gian gi\u1eefa 2 l\u1ea7n report k\u1ebft qu\u1ea3 theo gi\u00e2y (1s)<\/li>\n<li>-t : Th\u1eddi gian th\u1ef1c hi\u1ec7n \u0111\u1ea9y traffic theo gi\u00e2y (20s)<\/li>\n<li>-m : Hi\u1ec3n th\u1ecb MTU header<\/li>\n<\/ul>\n<p>T\u1ed1c \u0111\u1ed9 m\u1ea1ng truy\u1ec1n t\u1ea3i th\u1ef1c t\u1ebf gi\u1eefa hai server s\u1ebd \u0111\u01b0\u1ee3c hi\u1ec3n th\u1ecb ra.<\/p>\n<h1>Gi\u00e1m s\u00e1t l\u01b0u l\u01b0\u1ee3ng m\u1ea1ng b\u1eb1ng nload<\/h1>\n<h2>C\u00e0i \u0111\u1eb7t nload<\/h2>\n<p>C\u00e0i \u0111\u1eb7t nload l\u00ean server b\u1eb1ng c\u00e2u l\u1ec7nh:<\/p>\n<pre class=\"wp-block-code\"><code>yum install nload -y\n<\/code><\/pre>\n<p>Zhost s\u1ebd th\u1ef1c hi\u1ec7n c\u00e0i \u0111\u1eb7t tr\u00ean m\u00e1y Server (10.0.0.10).<\/p>\n<h2>Th\u1ef1c hi\u1ec7n gi\u00e1m s\u00e1t<\/h2>\n<p>Tr\u00ean m\u00e1y Client ch\u1ea1y c\u00e2u l\u1ec7nh iperf test throughput nh\u01b0 ph\u1ea7n tr\u00ean:<\/p>\n<pre class=\"wp-block-code\"><code>iperf -c 10.0.0.10 -i1 -t 20 -m\n<\/code><\/pre>\n<p>Tr\u00ean m\u00e1y Server ch\u1ea1y l\u1ec7nh ki\u1ec3m tra b\u0103ng th\u00f4ng:<\/p>\n<pre class=\"wp-block-code\"><code>nload -d eth1\n<\/code><\/pre>\n<p>Trong \u0111\u00f3 Eth1 l\u00e0 Card m\u1ea1ng c\u1ea7n gi\u00e1m s\u00e1t.<\/p>\n<p>M\u00e0n h\u00ecnh s\u1ebd xu\u1ea5t hi\u1ec7n bi\u1ec3u \u0111\u1ed3 m\u1ea1ng Incoming (chi\u1ec1u \u0111i v\u00e0o) v\u00e0 Outgoing (chi\u1ec1u \u0111i ra) nh\u01b0 h\u00ecnh d\u01b0\u1edbi.<\/p>\n<p>Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gi\u1edbi thi\u1ec7u Iperf v\u00e0 Nload M\u00f4 h\u00ecnh Trong b\u00e0i vi\u1ebft n\u00e0y, Zhost s\u1ebd s\u1eed d\u1ee5ng 02 Server ch\u1ea1y CentOS 7: Ki\u1ec3m tra Network throughput b\u1eb1ng Iperf C\u00e0i \u0111\u1eb7t Iperf Ti\u1ebfn h\u00e0nh c\u00e0i \u0111\u1eb7t Iperf tr\u00ean c\u1ea3 m\u00e1y server v\u00e0 Client. T\u1ea1m th\u1eddi t\u1eaft Firewalld Th\u1ef1c hi\u1ec7n ki\u1ec3m tra Tr\u00ean m\u00e1y Server, m\u1eadt mode Iperf Server<\/p>\n","protected":false},"author":1,"featured_media":36344,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[52],"tags":[],"class_list":["post-35066","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jupitek-cloud"],"_links":{"self":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts\/35066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/comments?post=35066"}],"version-history":[{"count":0,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts\/35066\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/media\/36344"}],"wp:attachment":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/media?parent=35066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/categories?post=35066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/tags?post=35066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}