MIMC

所属分类:网络
开发工具:C/C++
文件大小:75KB
下载次数:70
上传日期:2010-11-11 16:48:30
上 传 者chenpeng03051212
说明:  ns2多信道模块源码 该源码根据Ramon的多接口多信道模块修改的 加入 ns2.34 替换原来的文件 可以之间运行
(The code for the Network Simulation 2, which enhanced the component of ns2. It realizes the multi-interface multi-channel configuration for the mobile node.)

文件列表:
MIMC\ns-2.33\aodv\aodv_rtable.cc (4185, 2009-10-31)
MIMC\ns-2.33\aodv\aodv_rtable.h (5049, 2009-10-31)
MIMC\ns-2.33\aodv\aodv.cc (37677, 2009-10-31)
MIMC\ns-2.33\aodv\aodv.h (10284, 2009-10-31)
MIMC\ns-2.33\mac\channel.cc (22445, 2009-10-31)
MIMC\ns-2.33\mac\mac-802_11.cc (74892, 2009-10-31)
MIMC\ns-2.33\tcl\lib\ns-mobilenode.tcl (25202, 2009-10-31)
MIMC\ns-2.33\tcl\lib\ns-lib.tcl (66086, 2009-10-31)
MIMC\ns-2.33\common\mobilenode.h (6817, 2009-10-31)
MIMC\ns-2.33\common\mobilenode.cc (15814, 2009-10-31)
MIMC\example\multi-interface.tcl~ (4489, 2010-09-13)
MIMC\example\multi-interface.nam (0, 2010-09-13)
MIMC\example\single-interface.tcl (3823, 2009-10-31)
MIMC\example\multi-interface.tcl (4501, 2010-09-13)
MIMC\example\multi-interface.tr (0, 2010-09-13)
MIMC\ns-2.33\tcl\lib (0, 2009-10-31)
MIMC\ns-2.33\aodv (0, 2009-10-31)
MIMC\ns-2.33\mac (0, 2009-10-31)
MIMC\ns-2.33\tcl (0, 2009-10-31)
MIMC\ns-2.33\common (0, 2009-10-31)
MIMC\ns-2.33 (0, 2009-10-31)
MIMC\example (0, 2010-09-13)
MIMC (0, 2010-06-10)

Introduction Codes in this archive add multiple interface support in NS-2.33. I accomplished this work, thanks to Ramon's notes(http://personales.unican.es/aguerocr/). There are many places need to be modified, and there is one line need to be deleted form the legacy tcl code not be pointed out in Ramon's notes, I spent a lot of time to get it worked successfully. Therefor, I decided to share these codes with others who have the same requirement for NS2 How to use: Copy dirs in ns-2.33 to your own ns-2.33, then "make clean", "make" Use "ns multi/single-interface.tcl" in example dir to run the simulation Notice: 1. Single-interface scenario could be demonstrated correctly by nam, while multi-interface's nam file has some errors. However, the trace file of the multi-interface scenario shows that the multi-interface module works correctly. From the trace file we could find out that node 1 received data from mac address 0, and then forwarded to node 2. Node 2 received from mac address 2, while in single-interface scenario the source mac address would be 1. Node 0 Node 1 Node 2 channel 0 channel 0 channel 2 channel 2 mac 0 mac 1 mac 2 mac 3 2. For the single-interface scenario, code generated by NSG2 or NSBench works well. However, for the multi-interface scenario, there would be some constraints for the variabe names in the scenario script. 1. set ns_ [new Simulator] ;# The simulator instance's variabe name must be ns_ 2. set tracefd [open multi-interface.tr w] ;# The trace file handle's variabe name must be tracefd Feedback: Blog: http://www.yhustc.com Email: yhustc@google.com

近期下载者

相关文件


收藏者