3d traceroute: Difference between revisions

From Federal Burro of Information
Jump to navigationJump to search
 
No edit summary
 
(One intermediate revision by the same user not shown)
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>
[[category:script]]

Latest revision as of 04:46, 7 August 2022

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