NS2-MIUN

转自:http://apachepersonal.miun.se/~qinwan/resources.htm

NS2-MIUN: 

Ns-2 is a popular open source network simulator. A lot of researchers in the community of wireless sensor networks have used ns2 to verify their research results. However, ns2 is not an easy tool for the simulation of sensor networks, partially because of its high difficulty in understanding the ns2 itself, and also because their is currently lack of support for sensor network simulation.

I am using ns2 with my sensor network research, and I share my experience and source code of sensor network simulation using ns2 here. It is supposed to be helpful for those who have similar research interests as me. I modify ns-2.27 to support wireless sensor network simulation, with a specialty on intrusion detection simulation. The enhanced parts in my modified version (with a new name NS2-MIUN) are listed in the following:

  • The integration of NRL's phenomenon node, which enables the ability of simulating an environmental phenomenon.

  • The integration of AODVUU, which is a AODV routing protocol implementation that follows AODV specification better than the one included in the standard ns2 release.

  • The definition of a new packet type PT_SensorApp , which is used to simulate the type of packets used by sensor application.

  • The support of dynamic packet destination configuration. In the standard ns2 release, the <src, dst> pair is configured by statically binding an agent in the source node with an agent in the destination node in the TCL scenario file. This means a source node needs to configure multiple source agents when there are multiple potential receipents and bind each potential <src, dst> pair manually at the configuration file. This doesn't scale well in a dynamic wireless sensor network, where the destination node can vary over time. This drawback is fixed by allowing run-time <src, dst> binding. An example can be seen in the sensorapp.cc file, where a source agent can be configured to launch a DOS attack to any specified destination node during runtime.

  • The integration of an intrusion detection module. It is a module inserted between the MAC layer and the network layer that caputures all packets and impose intrusion detection analysis. Currently, this module is implemented as a trace module, by modifying cmu-trace.cc and some other related source files. Users can easily replace my code with their own intrusion detection algorithms if their algorithms are also traffic-based. The understanding of CMU Monarch project's wireless extention to ns2 is a prerequisite to understand the idea of this intrusion detection module.

  • The imitation of different attacks. The attacks implemented include wormhole, symbil/ID spoofing, DOS/DDOS, sinkhole, etc.

  • An extension of simulating multi-homed node in ns-2. An explanatory document of this extension is available here. Source files which are related to this extension are available here.

  • etc.

The compiled source file of my ns2 version (NS2-MIUN) is available here. I suppose it works directly when you download it and put it in a ns-2 suitable enviroment. If that doens't work, one may need to firstly download and install a ns-2.27 version from the ns2 website , and then replace the installed directory of ns-2.27 with mine, the compilation is however unnecessary unless there is change in my source file. Note that one must make sure all supporting softwares for ns2 have been properly installed on his/her system, and a ns-2.27 bash file is configured by running command source ./.bashrc-ns2.27 before using any ns2 command. The details of how to configure and run ns2 command and scenario file is not supposed to be explained by me. There is however a good FAQ available here.

Example TCL scenarios about how to use NS2-MIUN is available here.

I am glad to announce that I'm starting writing a readme.txt about NS2-MIUN. Although the readme.txt avaiable now is still preliminary, it will be updated according to my available time and also according to the requests. For the features that are not included in this readme.txt, the persons who are interested are recommended to mainly check the files under directory sensornets-NRL and directory trace, since most of my change are within these two directories. But files under directories like tcl, common, etc. have also be changed, it will be a tough work to find all my changes.

(I have repeated the installation process of NS2-MIUN and the details is available here.)

Last updated: 2009-04-07 (not maintained anymore)


内容概要:本文介绍了基于Proteus利用SR锁存器74LS279和与非门74LS02D设计抢答器的方法。文章详细讲解了通过SR锁存器的高、低电平状态实现抢答锁定功能,即S低电平置高电平用于抢答,R低电平置低电平用于清零,确保抢答按键按下后无法再次触发。抢答结果通过数码管显示,其中1、2、3序号分别对应不同的按键,4路抢答器独立显示序号,3路抢答器则通过或逻辑处理并列抢答的情况,如1和2、1和3、2和3序号并列抢答时显示“3”,并用LED指示具体并列情况。电路还集成了声光反馈机制,当抢答有效时,蜂鸣器发出声音提示。此外,文章提到可通过三刀双掷开关切换是否允许并列抢答,以及通过锁存器实现抢答器路数的扩展,并提出加入倒计时功能进一步完善系统。 适合人群:对数字电路设计有一定兴趣的电子爱好者,尤其是希望深入了解锁存器应用及抢答器设计原理的初学者和中级工程师。 使用场景及目标:①学习如何利用SR锁存器实现抢答器的基本功能;②掌握并列抢答情况下的电路处理方法;③理解数码管、LED、蜂鸣器等元件在电路中的应用;④探索电路的可扩展性和改进方向。 阅读建议:读者应结合Proteus软件进行实际电路仿真,动手搭建文中所述电路,逐步理解每个组件的作用及其相互关系,同时关注电路中可能出现的问题及解决方法。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值