【问题标题】:How to generate NS2 xgraph for throughput vs time for TCP and UDP connection?如何为 TCP 和 UDP 连接的吞吐量与时间生成 NS2 xgraph?
【发布时间】:2017-10-24 09:25:20
【问题描述】:

这是我的代码:

通过 TCP 连接设置 FTP 流量

set ftp [new Application/FTP]
$ftp attach-agent $tcpsource
$ftp set type_ FTP
$ftp set packet_size_ 1000
$ftp set rate_ 10mb
$ftp set random_ false # setting random false means no noise

通过 UDP 连接设置 CBR 流量

set cbr [new Application/Traffic/CBR]
$cbr attach-agent $udpsource
$cbr set type_ CBR
$cbr set packet_size_ 1000
$cbr set rate_ 10mb
$cbr set random_ false # setting random false means no noise

【问题讨论】:

    标签: graph tcp udp simulation ns2


    【解决方案1】:

    “VIII. 为 Xgraph 创建输出文件”http://www.isi.edu/nsnam/ns/tutorial/nsscript4.html

    Xgraph 示例https://drive.google.com/file/d/0B7S255p3kFXNczFLV0ZnNWdVY2s/view?usp=sharing

    例如,随着时间推移具有“瞬时吞吐量”的 APP-Tool ....来自文件 w-udp__Inst.Thr.txt 的 sn-p

    --Instantaneous throughput--
            1.12134           0.536522
    
            2.12363            106.844
    
            3.12715            439.453
    
            4.13067            783.984
    
            5.13419            1128.52
    
            6.13771            1473.05
    
            7.14123            1817.58
    
            8.14475            2162.11
    
            9.14827            2506.64
    
             10.149            3306.11
    
            11.1496            6844.12
    
            12.1504            8871.78
    
            .
    

    Inst_Thr-wireless-udp.png :

    APP-Tool 将从默认跟踪 file.tr 中提取信息。 链接:https://github.com/WiNG-NITK/APP-Tool

    【讨论】:

      猜你喜欢
      • 2018-04-01
      • 2022-01-06
      • 2016-08-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-03
      • 1970-01-01
      • 2012-07-02
      相关资源
      最近更新 更多