Difference between revisions of "Ipref"

From OnnoWiki
Jump to navigation Jump to search
(New page: 53 down vote accepted I use iperf. It's a client server arrangement in that you run it in server mode at one end and connect to its from another computer on the other side of the netwo...)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
53 down vote accepted
+
Topologi:
+
* Sebuah Server (misalnya 192.168.0.100)
 +
* Sebuah Client (misalnya 192.168.0.101)
 +
* tersambung melalui jaringan
 +
* Firewall terbuka untuk port 5001
  
I use iperf. It's a client server arrangement in that you run it in server mode at one end and connect to its from another computer on the other side of the network.
 
  
One both machines run:
+
Pada kedua mesin, install ipref
  
sudo apt-get install iperf
+
sudo apt-get install iperf
  
Then on Computer A:
 
  
iperf -s
+
==Di Sisi Server==
  
And on Computer B:
+
Pada Server:
  
iperf -c <address of Computer A>
+
iperf -s
  
On the client machine, you'll see something like this:
+
Akan keluar
  
oli@bert:~$ iperf -c tim
+
------------------------------------------------------------
------------------------------------------------------------
+
Server listening on TCP port 5001
Client connecting to tim, TCP port 5001
+
TCP window size: 85.3 KByte (default)
TCP window size: 16.0 KByte (default)
+
------------------------------------------------------------
------------------------------------------------------------
 
[  3] local 192.168.0.4 port 37248 connected with 192.168.0.5 port 5001
 
[ ID] Interval      Transfer    Bandwidth
 
[  3]  0.0-10.0 sec  1.04 GBytes    893 Mbits/sec
 
  
Of course, if you're running a firewall on the server machine, you'll need to allow connections on port 5001 or change the port with the -p flag.
+
 
 +
==Di Sisi Client==
 +
 
 +
dan pada Client:
 +
 
 +
iperf -c <address dari server>
 +
 
 +
iperf -c 192.168.0.100 (dalam hal ini)
 +
 
 +
Anda akan melihat (kira-kira),
 +
 
 +
------------------------------------------------------------
 +
Client connecting to 192.168.0.100, TCP port 5001
 +
TCP window size: 85.0 KByte (default)
 +
------------------------------------------------------------
 +
[  3] local 192.168.0.101 port 39467 connected with 192.168.0.100 port 5001
 +
[ ID] Interval      Transfer    Bandwidth
 +
[  3]  0.0-10.0 sec  1.48 GBytes  1.27 Gbits/sec
 +
 
 +
 
 +
Jika port 5001 terkena firewall, kita dapat mengubahnya melalui -p flag.
  
  
Line 33: Line 50:
 
==Referensi==
 
==Referensi==
  
 +
* https://www.linode.com/docs/networking/diagnostics/install-iperf-to-diagnose-network-speed-in-linux/
 
* http://askubuntu.com/questions/7976/how-do-you-test-the-network-speed-betwen-two-boxes
 
* http://askubuntu.com/questions/7976/how-do-you-test-the-network-speed-betwen-two-boxes

Revision as of 05:02, 29 June 2019

Topologi:

  • Sebuah Server (misalnya 192.168.0.100)
  • Sebuah Client (misalnya 192.168.0.101)
  • tersambung melalui jaringan
  • Firewall terbuka untuk port 5001


Pada kedua mesin, install ipref

sudo apt-get install iperf


Di Sisi Server

Pada Server:

iperf -s

Akan keluar

------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------


Di Sisi Client

dan pada Client:

iperf -c <address dari server>
iperf -c 192.168.0.100 (dalam hal ini)

Anda akan melihat (kira-kira),

------------------------------------------------------------
Client connecting to 192.168.0.100, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.101 port 39467 connected with 192.168.0.100 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.48 GBytes  1.27 Gbits/sec


Jika port 5001 terkena firewall, kita dapat mengubahnya melalui -p flag.


Referensi