Difference between revisions of "Nc: mengukur bandwidth"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (New page: You can do pretty much the same thing with plain old nc (netcat) if you're that way inclined. On the server machine: nc -vvlnp 12345 >/dev/null And the client can pipe a gigabyte of zero...) |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | Di mesin server (10.10.0.2) | |
− | nc -vvlnp 12345 >/dev/null | + | nc -vvlnp 12345 >/dev/null |
− | + | Di sisi client kirim gigabyte zero melalui dd lewat nc tunnel | |
− | dd if=/dev/zero bs=1M count=1K | nc -vvn 10.10.0.2 12345 | + | dd if=/dev/zero bs=1M count=1K | nc -vvn 10.10.0.2 12345 |
− | + | Waktu demo akan keluar kira-kira | |
− | $ dd if=/dev/zero bs=1M count=1K | nc -vvn 10.10.0.2 12345 | + | $ dd if=/dev/zero bs=1M count=1K | nc -vvn 10.10.0.2 12345 |
− | Connection to 10.10.0.2 12345 port [tcp/*] succeeded! | + | Connection to 10.10.0.2 12345 port [tcp/*] succeeded! |
− | 1024+0 records in | + | 1024+0 records in |
− | 1024+0 records out | + | 1024+0 records out |
− | 1073741824 bytes (1.1 GB) copied, 9.11995 s, 118 MB/s | + | 1073741824 bytes (1.1 GB) copied, 9.11995 s, 118 MB/s |
− | + | Perhatikan bahwa hasilnya dalam megabyte per detik, perlu dikali 8 untuk dapat megabit per detik. | |
− | |||
− | |||
Revision as of 06:42, 4 June 2015
Di mesin server (10.10.0.2)
nc -vvlnp 12345 >/dev/null
Di sisi client kirim gigabyte zero melalui dd lewat nc tunnel
dd if=/dev/zero bs=1M count=1K | nc -vvn 10.10.0.2 12345
Waktu demo akan keluar kira-kira
$ dd if=/dev/zero bs=1M count=1K | nc -vvn 10.10.0.2 12345 Connection to 10.10.0.2 12345 port [tcp/*] succeeded! 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 9.11995 s, 118 MB/s
Perhatikan bahwa hasilnya dalam megabyte per detik, perlu dikali 8 untuk dapat megabit per detik.