⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makeplot.sh

📁 NSD2 QOS surpport tcl code
💻 SH
字号:
#!/bin/shGNUPLOT=$1LABEL=$2TITLE=$3EXT=$4TERM=$5$GNUPLOT << EOFset terminal ${TERM}set xlabel "time (s)"set output "cwnd_${LABEL}.$EXT"set ylabel "cwnd (packets)"set title '$TITLE'plot 'tcp1_${LABEL}.out' u 1:2 w l title 'Flow 1', 'tcp2_${LABEL}.out' u 1:2 w l title 'Flow 2'set output "srtt_${LABEL}.${EXT}"set ylabel "srtt (ms)"plot 'tcp1_${LABEL}.out' u 1:3 w l title 'Flow 1', 'tcp2_${LABEL}.out' u 1:3 w l title 'Flow 2'set output "goodput_${LABEL}.${EXT}"set ylabel "Goodput (Mb/s)"plot 'tcp1_${LABEL}.out' u 1:5 w l title 'Flow 1', 'tcp2_${LABEL}.out' u 1:5 w l title 'Flow 2'set output "drops_${LABEL}.${EXT}"set ylabel "Dropped packets"plot 'q_${LABEL}.out' u 1:7 w l title 'Flow 1', 'q_${LABEL}.out' u 1:8 w l title 'Flow 2'set output "queue_${LABEL}.${EXT}"set ylabel "Router queue (packets)"plot 'q_${LABEL}.out' u 1:2 w l title ''EOF

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -