ns2实验:移植实现MFLood协议.docx - 1 MFlood...

Info icon This preview shows pages 1–3. Sign up to view the full content.

一、实验目的 1. MFlood 路由协议添加到 NS-2 (MFlood 协议是一个很简单的路由协议 , 每个节点在收到目的不是自己的包后就将其广播出去 , 但不会重复广播同一个包 ); 2. 使用随机场景脚本进行测试 · 实验原理及其步骤 1. 添加新的对协议进行描述的一些头文件和源文件,录入 protocol.h protocol.cc 等。本实验具体表现为创建 mflood.h mflood.cc mflood_packet.h mflood-seqtable.h mflood- seqtable.cc 五个文件。并在 ns-allinone-2.35/ns-2.35 的目录下新建一个目录 mflood , 将上面五个文件放置于 mflood 文件夹中。
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

2 ,修改 NS-2 原有的一些文件。由于新添加的协议会用到一些 NS-2 已有的类, 结构或 者变量,可能会对 NS-2 中一些原有的信息进行更改或者扩。本实验中需要修 改三个文件。分别为 /common/packet.h /tcl/lib/ns-packet.tcl /tcl/lib/ns- lib.tcl 1 )对 packet.h
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '11
  • 蒋铃鸽

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern