2013年5月12日

NS学习资料

摘要: http://www-sop.inria.fr/members/Eitan.Altman/ns.htmhttp://nile.wpi.edu/NS/ 阅读全文

posted @ 2013-05-12 16:03 yanhc 阅读(195) 评论(0) 推荐(0) 编辑

NS 2.35 柯志亨书-实验4笔记-随机数产生

摘要: 上图是笔记。测试了3条ftp流时,链路的吞吐量通过采用不同的随机启动时间,得到不同的试验结果,可以平均一下tcl代码:View Code # Kezhiheng, experiment 4, test RNG, 3 tcp flow#Create a simulator objectset ns [new Simulator]set tracefd [open out.tr w]$ns trace-all $tracefdset namtracefd [open out.nam w]$ns namtrace-all $namtracefdproc finish {} { glob... 阅读全文

posted @ 2013-05-12 15:52 yanhc 阅读(277) 评论(0) 推荐(0) 编辑

NS 2.35 柯志亨书-实验3笔记-TCP UDP模拟

摘要: 上图是笔记下面是tcl代码:View Code #Create a simulator objectset ns [new Simulator]#Set different color for dif flow$ns color 1 Blue$ns color 2 Redset tracefd [open example1.tr w]$ns trace-all $tracefdset namtracefd [open example1.nam w]$ns namtrace-all $namtracefdproc finish {} { global ns tracefd namt... 阅读全文

posted @ 2013-05-12 13:09 yanhc 阅读(544) 评论(0) 推荐(0) 编辑

NS 2.35 柯志亨书-实验3笔记-TCP UDP模拟 ——计算FTP不同参数:时延、抖动、吞吐率、丢包率awk代码

摘要: 计算FTP时延的awk的代码:View Code # Measure the end to end delay by the trace fileBEGIN{ # program initialize highest_packet_id = 0;}{ # awk会自动循环执行这个{} action = $1; time = $2; from = $3; to = $4; type = $5; pktsize = $6; flow_id = $8; src = $9; dst = $10; seq_no = $11; ... 阅读全文

posted @ 2013-05-12 12:47 yanhc 阅读(2060) 评论(0) 推荐(1) 编辑

导航