• 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
    ";
      
     close(FH);
  • 相关阅读:
    【KM】BZOJ1937 [Shoi2004]Mst 最小生成树
    【动态规划+Floyd】OpenJudge3368
    【四边形不等式】HDU3506-Monkey Party
    【tarjan】BZOJ2140-稳定婚姻
    【并查集】BZOJ4668-冷战
    [ZJOI2010]贪吃的老鼠(网络流+建图)
    [NOI2010]航空管制(拓扑排序+贪心)
    [CERC2017]Intrinsic Interval(神仙+线段树)
    [CTSC2012]熟悉的文章(后缀自动机+动态规划)
    [CERC2014]Virus synthesis
  • 原文地址:https://www.cnblogs.com/foreverwith/p/6830595.html
Copyright © 2020-2023  润新知