linux

linux

Selasa, 28 Februari 2012

test koneksi di linux

for tes conection use ping to destination server :
for monitoring connection :
1. the sequance number ( green colour )
2.time ( blue colour )
3.packet loss ( yellow colour )
4.packet error ( pink colour )

root@<o000o>:/# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.174 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.171 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.147 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.148 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.149 ms
^C
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.147/0.157/0.174/0.019 ms

64 bytes from 172.16.0.25: icmp_seq=65100 ttl=64 time=0.718 ms
64 bytes from 172.16.0.25: icmp_seq=65101 ttl=64 time=0.638 ms
64 bytes from 172.16.0.25: icmp_seq=65102 ttl=64 time=0.639 ms
64 bytes from 172.16.0.25: icmp_seq=65103 ttl=64 time=0.521 ms

--- 172.16.0.25 ping statistics ---
261711 packets transmitted, 261008 received, +198 errors, 0% packet loss, time 261709076ms
rtt min/avg/max/mdev = 0.356/0.498/468.511/1.706 ms, pipe 3
64 bytes from 172.16.0.25: icmp_seq=625 ttl=64 time=0.562 ms
64 bytes from 172.16.0.25: icmp_seq=626 ttl=64 time=0.546 ms
64 bytes from 172.16.0.25: icmp_seq=627 ttl=64 time=0.548 ms
64 bytes from 172.16.0.25: icmp_seq=628 ttl=64 time=0.971 ms

--- 172.16.0.25 ping statistics ---
628 packets transmitted, 602 received, 4% packet loss, time 626995ms
rtt min/avg/max/mdev = 0.540/1.079/53.770/3.836 ms

root@<o000o>:/# ping -c 9 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.186 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.166 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.164 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.165 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=0.173 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=0.164 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=0.173 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=0.163 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=0.163 ms

--- 192.168.1.1 ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 7999ms
rtt min/avg/max/mdev = 0.163/0.168/0.186/0.015 ms

ping for steess network :

root@<o000o>:/# ping -c 1000 -f -n 192.168.188.21
PING 192.168.188.21 (192.168.188.21) 56(84) bytes of data.

--- 192.168.188.21 ping statistics ---
1000 packets transmitted, 1000 received, 0% packet loss, time 661ms
rtt min/avg/max/mdev = 0.509/0.647/2.210/0.164 ms, ipg/ewma 0.661/0.613 ms


 stress network with large packet :

root@<o000o>:/# ping -s 512 -c 1000 -f -n 192.168.188.21
PING 192.168.188.21 (192.168.188.21) 512(540) bytes of data.

--- 192.168.188.21 ping statistics ---
1000 packets transmitted, 1000 received, 0% packet loss, time 1311ms
rtt min/avg/max/mdev = 1.242/1.292/1.664/0.068 ms, ipg/ewma 1.313/1.339 ms

for recording route :

root@<o000o>:/# ping -c 2  -R 192.168.21.8
PING 192.168.21.8 (192.168.21.8) 56(124) bytes of data.
64 bytes from 192.168.21.8: icmp_seq=1 ttl=62 time=8.65 ms
RR:     192.168.1.191
        172.16.0.57
        192.168.21.201
        192.168.21.8
        192.168.21.8
        172.16.0.58
        192.168.1.1
        192.168.1.191

64 bytes from 192.168.21.8: icmp_seq=2 ttl=62 time=8.66 ms      (same route)

Tidak ada komentar:

Posting Komentar