Код: Выделить всё
ping -s 65500 173.196.0.2
Код: Выделить всё
ping -s 65500 173.196.0.2
Код: Выделить всё
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:1b:21:18:6f:95
inet 200.200.200.254 netmask 0xfffff000 broadcast 200.200.207.255
inet 192.168.111.254 netmask 0xffffff00 broadcast 192.168.111.255
inet 200.200.200.253 netmask 0xfffff000 broadcast 200.200.207.255
inet 192.168.0.98 netmask 0xffffff00 broadcast 192.168.0.255
inet 192.168.1.65 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
Код: Выделить всё
metric 0 mtu 1500
Код: Выделить всё
mtu
Код: Выделить всё
net.inet.icmp.icmplim=200
Код: Выделить всё
#!/bin/bash
IP=$1
SIZE=$2
COUNT=100
if [ "$IP" = "" ]; then
exit
fi
if [ "$SIZE" = "" ]; then
SIZE=1600
fi
echo "Testing $IP $COUNT times with $SIZE bytes packets:"
echo
for i in 0 1 2 3 4 5 6 7 8 9; do
echo -n "Test $i: ";
PING_RES=`ping -c $COUNT -s $SIZE -f $IP | grep loss | awk '{print $6" "$7" "$8}'|sed 's/\,//'`
echo $PING_RES
#
PING_TMP=`echo $PING_RES | awk -F\% '{print $1}'`
SUM_LOSS=`expr $SUM_LOSS + $PING_TMP`
#sleep 1
#last iteration
if [ "$i" == 9 ]; then
RES=`expr $SUM_LOSS / 10`
echo
echo "Average packet loss: $RES %"
fi
done
Код: Выделить всё
# ping -s 65500 alpha
PING alpha.netsec.colostate.edu (129.82.138.2): 65500 data bytes
65508 bytes from 129.82.138.2: icmp_seq=0 ttl=64 time=11.476 ms
65508 bytes from 129.82.138.2: icmp_seq=1 ttl=64 time=11.474 ms
65508 bytes from 129.82.138.2: icmp_seq=2 ttl=64 time=11.633 ms
65508 bytes from 129.82.138.2: icmp_seq=3 ttl=64 time=11.629 ms
65508 bytes from 129.82.138.2: icmp_seq=4 ttl=64 time=11.478 ms
65508 bytes from 129.82.138.2: icmp_seq=5 ttl=64 time=11.637 ms
65508 bytes from 129.82.138.2: icmp_seq=6 ttl=64 time=11.635 ms
Код: Выделить всё
# ping -s 65500 stream.ip4tv.ru
PING stream.ip4tv.ru (89.186.244.200): 65500 data bytes
65508 bytes from 89.186.244.200: icmp_seq=0 ttl=64 time=11.790 ms
65508 bytes from 89.186.244.200: icmp_seq=1 ttl=64 time=11.610 ms
65508 bytes from 89.186.244.200: icmp_seq=2 ttl=64 time=11.843 ms
65508 bytes from 89.186.244.200: icmp_seq=3 ttl=64 time=11.815 ms
65508 bytes from 89.186.244.200: icmp_seq=4 ttl=64 time=11.818 ms