2015-10-16

[SOLVED]Network Speed,Performance,Bandwidth

#9:59 24/04/2015
################
Ap dung cho server REDHAT/CENTOS:

#Download iperf:
wget ftp://rpmfind.net/linux/dag/redhat/el6/en/x86_64/dag/RPMS/iperf-2.0.4-1.el6.rf.x86_64.rpm

#Cai dat:
rpm -Uvh iperf-2.0.4-1.el6.rf.x86_64.rpm

#Mo firewall, port 5001 hoac DISABLE FIREWALLL tai 2 server:

#Chay iperf tai Server 10.10.1.12:
root@srv12 /opt/setup# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------

#Chay iperf tai Server 10.10.1.11:
root@srv11 /opt/setup# iperf -c 10.10.1.12
------------------------------------------------------------
Client connecting to 10.10.1.12, TCP port 5001
TCP window size: 19.3 KByte (default)
------------------------------------------------------------
[  3] local 10.10.1.11 port 34622 connected with 10.10.1.12 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.17 GBytes  1.00 Gbits/sec
==>Ta thay ket qua test co toc do: 1Gbits tai server 10.10.1.11
#
#
Kiem tra tai server 10.10.1.12, ket qua tuong tu:
[  4] local 10.10.1.12 port 5001 connected with 10.10.1.11 port 34622
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  1.17 GBytes  1.00 Gbits/sec
################################################
#SERVER 10.10.1.12:
#root@srv12 /opt/setup# iperf -s -p 2000
------------------------------------------------------------
Server listening on TCP port 2000
TCP window size: 85.3 KByte (default)
------------------------------------------------------------

#SERVER 10.10.1.11
#root@srv11 /opt/setup# iperf -c 10.10.1.12 -t 20 -p 2000 -w 40k
------------------------------------------------------------
Client connecting to 10.10.1.12, TCP port 2000
TCP window size: 80.0 KByte (WARNING: requested 40.0 KByte)
------------------------------------------------------------
[  3] local 10.10.1.11 port 51246 connected with 10.10.1.12 port 2000
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-20.0 sec  1.99 GBytes    853 Mbits/sec

########
iperf -s -p 6379
iperf -c 42.112.23.135 -t 20 -p 6379 -w 40k
iperf -c 42.112.23.148 -t 20 -p 6379 -w 40k

#################
#10:31 23/07/2015
#dc1: 10.10.10.1
#dc2: 10.10.10.2
root@dc1:/opt/script# iperf -s -p 2000
root@dc2:/opt/script# iperf -c 10.10.10.1 -t 20 -p 2000 -w 40k
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-20.0 sec  2.18 GBytes   935 Mbits/sec


#################
#

No comments:

Post a Comment