3d traceroute: Difference between revisions
From Federal Burro of Information
Jump to navigationJump to search
(Created page with "Image:trace-to-ns3.png Image:trace-to-sun.png") |
No edit summary |
||
Line 2: | Line 2: | ||
[[Image:trace-to-sun.png]] | [[Image:trace-to-sun.png]] | ||
makedata.sh.txt | |||
<pre> | |||
#!/bin/sh | |||
for DATE in `seq 1 30`; | |||
do | |||
for HOP in `seq 1 30`; | |||
do | |||
echo $DATE $HOP ${$HOP+1}; | |||
done; | |||
echo | |||
done; | |||
</pre> | |||
maketrace | |||
<pre> | |||
#!/bin/sh | |||
#for ITERATION in `seq 1 10`; | |||
while true | |||
do | |||
traceroute $1 2>&1 | sed -e 's/\*/\? ms/g ; 1d ' | awk '{ print strftime( "%m:%d:%Y:%H:%M" ), $1, $2, $3, $4, $5, $6, $7, $8, $9, $10 } END { print ORF}' >> /tmp/$1.dat; | |||
sleep $2 | |||
done; | |||
gnuplot ./traceroute.gnuplot | |||
</pre> | |||
traceroute.gnuplot | |||
<pre> | |||
set output "trace-to-ns3.png" | |||
set terminal png color | |||
#set hidden3d | |||
set view 60,300 | |||
set surface | |||
set grid | |||
set size 2,1.5 | |||
#set contour | |||
set samples 21 | |||
set isosample 11 | |||
set xlabel "Hops X axis" -3,-2 | |||
set ylabel "Time Y axis" 3,-2 | |||
set zlabel "Latency Z axis (ms)" 0,0 | |||
set title "3D traceroute to ns3.boaw.net" | |||
set ydata time | |||
set timefmt "%m:%d:%Y:%H:%M" | |||
set format y "%m:%d:%Y:%H:%M" | |||
set timefmt "%m:%d:%Y:%H:%M" | |||
splot '/tmp/ns3.boaw.net.dat' using 2:1:5 t "data1" w p, \ | |||
'/tmp/ns3.boaw.net.dat' using 2:1:6 t "data2" w p, \ | |||
'/tmp/ns3.boaw.net.dat' using 2:1:7 t "data3" w p, \ | |||
'/tmp/ns3.boaw.net.dat' using 2:1:8 t "average" w lp | |||
</pre> |
Revision as of 02:36, 22 June 2012
makedata.sh.txt
#!/bin/sh for DATE in `seq 1 30`; do for HOP in `seq 1 30`; do echo $DATE $HOP ${$HOP+1}; done; echo done;
maketrace
#!/bin/sh #for ITERATION in `seq 1 10`; while true do traceroute $1 2>&1 | sed -e 's/\*/\? ms/g ; 1d ' | awk '{ print strftime( "%m:%d:%Y:%H:%M" ), $1, $2, $3, $4, $5, $6, $7, $8, $9, $10 } END { print ORF}' >> /tmp/$1.dat; sleep $2 done; gnuplot ./traceroute.gnuplot
traceroute.gnuplot
set output "trace-to-ns3.png" set terminal png color #set hidden3d set view 60,300 set surface set grid set size 2,1.5 #set contour set samples 21 set isosample 11 set xlabel "Hops X axis" -3,-2 set ylabel "Time Y axis" 3,-2 set zlabel "Latency Z axis (ms)" 0,0 set title "3D traceroute to ns3.boaw.net" set ydata time set timefmt "%m:%d:%Y:%H:%M" set format y "%m:%d:%Y:%H:%M" set timefmt "%m:%d:%Y:%H:%M" splot '/tmp/ns3.boaw.net.dat' using 2:1:5 t "data1" w p, \ '/tmp/ns3.boaw.net.dat' using 2:1:6 t "data2" w p, \ '/tmp/ns3.boaw.net.dat' using 2:1:7 t "data3" w p, \ '/tmp/ns3.boaw.net.dat' using 2:1:8 t "average" w lp