caida的测量工具scamper

http://data.caida.org/datasets/topology/trmethod-200808/scamper-cvs-20080808b.tar.gz
一开始在上面这个链接下载,解压后不知道为什么没有configure...
http://www.caida.org/tools/measurement/scamper/
这里下载的有configure 然而我发现Ubuntu下apt-get就直接安装完毕了,就偷懒了。。
You can analyze this data (available in the 'warts' format) with the
  sc_analysis_dump tool included in the 'scamper' distribution, which
  you can download from

     http://www.wand.net.nz/scamper/
       or
     http://data.caida.org/datasets/topology/trmethod-200808/scamper-cvs-20080808b.tar.gz

  The sc_analysis_dump tool prints out information about each trace
  in an easy-to-parse textual format (one trace per line).  You would
  typically write a perl script to analyze the output of sc_analysis_dump.
  
  Another tool you may want to consider is the warts-dump tool, which
  is also included in the scamper distribution.  The output of warts-dump
  is somewhat less easy to parse, but warts-dump prints out practically
  all information contained in a warts file.

  Finally, you can write your analysis scripts in the Ruby language
  using rb-wartslib, an easy-to-use Ruby binding to the warts I/O
  library.  You can learn more about it at

     http://rb-wartslib.rubyforge.org/

  Ruby is a great scripting language and well worth learning for its
  own sake.  See http://www.ruby-lang.org
http://www.caida.org/tools/measurement/scamper/ 这里只看到了sc_analysis_dump工具,不知道warts-dump在哪里,
推荐写perl脚本,我觉得可能还是可以用python的?
还有个工具是
  • sc_warts2json: print a JSON object representing each warts object in a file.

The sc_analysis_dump utility only outputs traceroute data; for parsing other types of measurement, use
sc_warts2json(1) instead
似乎第二个工具是解析别的类型数据

----------------------------

2017.5.9晚上 

用perl脚本将sc_analysis_dump 的结果导出来了,然后用python各种切片分析...

感叹一下,神奇的perl~

$res=`sc_analysis_dump alexa-20080124.warts`;
open(FH, ">aa.txt") or die $!; 
 print FH $res;#向文件写入内容
 #print FH "OK\n";
  
 close(FH);

 

posted @ 2017-05-10 09:15  foreverwith  阅读(886)  评论(0编辑  收藏  举报