ns3-dtn-bit:这是ns3支持dtn的模块

  • G7_995087
    了解作者
  • 3.9MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-06 05:32
    上传日期
前言 该项目是在ns-3环境下对dtn的新手友好型仿真,易于用于研究紫色,支持自定义路由定义和方案定义。 该项目的来自 如果您想了解有关TEG(时间扩展图)的信息,请阅读此技术 如果您想了解CGR,请阅读此 开始 在此目录下下载源代码ns-allineone-3.26(或进行软链接),并确保您可以使用ns3 将./box/ns2mobilityhelper.cc复制到./ns-allineone-3.26/ns-3/src/mobility/helper,此文件已修改,将有助于我们解析3D运动 用手或./box/WriteTraceFileLib.py修改current_trace.tcl 设置node_number和Simulation_time ./box/PrepareSim.py和your-example.cc,必须等于current_trace.tcl // i
ns3-dtn-bit-master.zip
内容介绍
# Preface This Project is a newbie-friendly simulation for dtn on ns-3 environment, easy to use for research purples, supporting customed routing definition and scenario definition. This project is inspirited by [Lakkakorpi](https://www.netlab.tkk.fi/tutkimus/dtn/ns/) Read this teg-[paper](https://smartech.gatech.edu/bitstream/handle/1853/6492/GIT-CC-04-07.pdf?sequence=1&isAllowed=y) if you want know about TEG(time-expanded graph) Read this [paper](http://www.sciencedirect.com/science/article/pii/S0094576512000288) [link](https://tools.ietf.org/html/draft-burleigh-dtnrg-cgr-00) if you want know about CGR # Begin 1. Download source code, ns-allineone-3.26 under this directory(or make softlink) and make sure you can use[ns3](Installhttps://www.nsnam.org/releases/) 2. Copy ./box/ns2mobilityhelper.cc to ./ns-allineone-3.26/ns-3/src/mobility/helper, this file was modified and would help us parse 3d-motion 3. Modify your current_trace.tcl by your hand or by ./box/WriteTraceFileLib.py 4. Set node_number and simulation_time ./box/PrepareSim.py and your-example.cc, must equal to your current_trace.tcl // in ./box/PrepareSim.py T_max = 802 #change me !!!!!!! teg_slice_n = 802 #change me !!!!!!! // in ns3dtn-bit-your-example.cc node_number_ = 5; // change me!! simulation_duration_ = 802; // change me!!! 5. Run ./box/PrepareSim.py to make animation and generate teg.txt 6. Modify ns3dtn-bit-your-example.cc to set simulation settings, see [example-interface](#C) 7. Make sure you have your **teg.txt** **current_trace_file** **yourexample.cpp** done. Then run ./build.sh to build(not run) 8. Run ./run_loops.sh and would parse your result and write them into a json file 9. Run ./box/MakeGraphByJson.py to get graph # structure of this project * editor tool : editor Vim do I use, if you are using YCM for code complete, remember add pull path of include to ~/.ycm_extra_config.py * ns3 example-interface This file defines how your scenario structed, how your network configured. Make sure that simulation time should be equal to time of teg.txt. Note that time-interval of two lines of teg.txt is exactly ** one second ** in real time, which was descripted in current_trace_file.tcl * ns3 and ns3-dtn-bit module <a name="C" rel='nofollow' onclick='return false;'></a> The main methods for DtnApp are 1. checkbuffer - totransmit 2. receive bundle 3. sendhello - receive hello. We modify ns2-mobility-helper.cc, to support 3d-parse for us. you can find it at /box * jupyter and python-matplotlib <a name="B" rel='nofollow' onclick='return false;'></a> There is one tutorial that I think may help you [ref](https://www.youtube.com/watch?v=HW29067qVWk&t=1568s). This combo is used to make graph and paper, check /box/jupyter. If you want use jupyter yourself, install it on org-web, in China, you may not be able to download 0.5 G big file from the web, so it's highly recommanded to install [miniconda](http://cs205uiuc.github.io/guidebook/resources/python-miniconda.html) first, and install full-package from miniconda, that's the way I did. * Acknoeledgement Annoucement, How does this model works. * transmit & send following graph are used to name variables in this project source_node from_node to_node destination_node | | | | | | | | | | | | () () () () *-------------------------------------------------------------> * this is called "send" *-----------------> * --------------------> * ----------------> * this is called "transmition & retransmition" note : "store and forward" is just semantic ack---> bundel----> SocketSendDetail() anti-pkt----> hello----> CreateHelloBundleAndSendDetail() * If you want to modify code read code directly, everything is in content. # TODO list * <s>wireless max range </s> done by wifiChannel.AddPropagationLoss ("ns3::RangePropagationLossModel", "MaxRange", DoubleValue (4000.0)); * <s>note that ns2mobilityhelper only have ability to parse velocity 2d, extend it to support 3d </s> done by modify it, copy /box/ns2-mobilityhelp to src/mobility/helper to use it. would support '$ns at $time $node setdest x2 y2 z2 speed' format, and this format only. * <s>relative path </s> done by config.txt * <s>transmit session </s> done by transmit_assister_ * <s>time extented graph like that</s> [paper](https://smartech.gatech.edu/bitstream/handle/1853/6492/GIT-CC-04-07.pdf?sequence=1&isAllowed=y) done by Adob_do02 Adob_do03 - [ ] to work :( - [x] to have a life - [x] CGR, main feature, implement it! - [ ] <s>running log was printed twice, more specifically NS_LOG_COMPONENT was printed out twice, it's a bug, fix it!</s> **we don't want to fix this bug** because jupyter parse script has depends on this bug - [ ] relative path for script - [x] last seen neighbor, should be 1 * Hello Interval or 2 * Hello Interval - [x] give some senario, and give some result parse script - [ ] unordered_map with tuple, bug fix - [x] retransmission : For now we don't have local2neighbor retransmission. What we have is that, if one transmission session is not successed, this session would be remained, and reboot next time when routing decision is made by which transmission session producted had the same 'session value', where normally results to a new transmission session. Problem is that sprayandgood(), used for control transmit times, would block next time pkt check. - [x] hello range is bigger than bundle range - [x] routing decision bug - [x] doing some optimal for CGR to reuse successive result, to speed up simulation time. - [x] fatal bug !! CGR would fall into a deep recursive in group moving senario. This backtracking algorithm would decay into brute force in this senario, which have a complexity of O(M * logN * N!) which N is amount of nodes that can have a link to each other at same time-window, M is the amount of time-windows. This may happen, because CGR has a assumption of topology it was applied on, a topology graph with density of sparseness not density of tightness. Read 'Analysis of the contact graph routing algorithm Bounding interplanetary paths 5.6 section'
评论
    相关推荐
    • iPIC3D
      iPIC3D 大规模并行执行隐式粒子模拟方法在等离子体模拟中的应用 编译 创建一个构建目录(例如,构建)并调用CMake。 完成后,应在构建文件夹中生成可执行的iPIC3D *和库libiPIC3Dlib.a。 mkdir build cd build ...
    • cub3d
      cub3d
    • cub3d
      cub3d
    • 3D重建
      3D重建 在这个项目中,为了进行3D重建和对象化,我遵循了3个步骤: 1-对极整流:为了减少计算成本。 2点匹配3-3D点三角测量 点检测和匹配,三角测量部分将很快添加。
    • Milkshape3D
      Milkshape3D.zipMilkshape3D.zipMilkshape3D.zipMilkshape3D.zipMilkshape3D.zipMilkshape3D.zipMilkshape3D.zipMilkshape3D.zipMilkshape3D.zipMilkshape3D.zipMilkshape3D.zipMilkshape3D.zip
    • spindle3d
      一个斐济插件,用于自动测量有丝分裂纺锤体体积图像的3D形态学参数。 安装 安装 启动斐济并: 主轴3D 3D ImageJ套件 重新启动斐济
    • cub3d
      cub3d
    • PerspectiveMatrix3D
      开发Stage3D时所用到的两个adobe工具包中的两个类PerspectiveMatrix3D 和 AGALMiniAssembler。
    • 3d
      3D
    • viztool3d
      Viztool 3D 3D可视化以解释3D图形和数学