【发布时间】: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