Introduction to Mobility Network Simulator 2 (NS-2).ppt
《Introduction to Mobility Network Simulator 2 (NS-2).ppt》由会员分享,可在线阅读,更多相关《Introduction to Mobility Network Simulator 2 (NS-2).ppt(25页珍藏版)》请在麦多课文档分享上搜索。
1、Introduction to Mobility & Network Simulator 2 (NS-2),Mahmood Hasanlou m_hasanlouce.sharif.edu,Department of Computer Engineering Sharif University of Technology,Sharif university of Technology,2/23,Outline,Random Walk Mobility Model Random Waypoint Mobility Model Network Simulator Mobile Networking
2、 in ns Simulation Scenario Home Work 2,Sharif university of Technology,3/23,Random Walk Mobility Model,Since many entities in nature move in extremely unpredictable ways, the Random Walk Mobility Model was developed to mimic this erratic movement In this mobility model, an MN moves from its current
3、location to a new location by randomly choosing a direction and speed in which to travel The new speed and direction are both chosen from pre-defined ranges, speedmin; speedmax and 0;2p respectively,Sharif university of Technology,4/23,Random Walk Mobility Model,Each movement in the Random Walk Mobi
4、lity Model occurs in either a constant time interval t or a constant distance traveled d, at the end of which a new direction and speed are calculated If an MN which moves according to this model reaches a simulation boundary, it “bounces” off the simulation border with an angle determined by the in
5、coming direction The MN then continues along this new path,Sharif university of Technology,5/23,Outline,Random Walk Mobility Model Random Waypoint Mobility Model Network Simulator Mobile Networking in ns Simulation Scenario Home Work 2,Sharif university of Technology,6/23,Random Waypoint Mobility Mo
6、del (RWPM),The Random Waypoint Mobility Model includes pause times between changes in direction and/or speed An MN begins by staying in one location for a certain period of time (i.e., a pause time) Once this time expires, the MN chooses a random destination in the simulation area and a speed that i
7、s uniformly distributed between minspeed, maxspeed,Sharif university of Technology,7/23,Random Waypoint Mobility Model (RWPM),The MN then travels toward the newly chosen destination at the selected speed Upon arrival, the MN pauses for a specified time period before starting the process again We not
8、e that the movement pattern of an MN using the Random Waypoint Mobility Model is similar to the Random Walk Mobility Model if pause time is zero and minspeed, maxspeed = speedmin, speedmax,Sharif university of Technology,8/23,Outline,Random Walk Mobility Model Random Waypoint Mobility Model Network
9、Simulator Mobile Networking in ns Simulation Scenario Home Work 2,Sharif university of Technology,9/23,Network Simulator (NS),ns is an object oriented simulator, written in C+, with an OTcl interpreter as a frontend The simulator supports a class hierarchy in C+ (also called the compiled hierarchy i
10、n this document), and a similar class hierarchy within the OTcl interpreter (also called the interpreted hierarchy in this document) The two hierarchies are closely related to each other; from the users perspective, there is a one-to-one correspondence between a class in the interpreted hierarchy an
11、d one in the compiled hierarchy The root of this hierarchy is the class TclObject,Sharif university of Technology,10/23,Network Simulator (NS),Users create new simulator objects through the interpreter; these objects are instantiated within the interpreter, and are closely mirrored by a correspondin
12、g object in the compiled hierarchy The interpreted class hierarchy is automatically established through methods defined in the class TclClass user instantiated objects are mirrored through methods defined in the class TclObject,Sharif university of Technology,11/23,Why two languages?,ns uses two lan
13、guages because simulator has two different kinds of things it needs to do On one hand, detailed simulations of protocols requires a systems programming language which can efficiently manipulate bytes, packet headers, and implement algorithms that run over large data sets For these tasks run-time spe
14、ed is important and turn-aroundtime (run simulation, find bug, fix bug, recompile, re-run) is less important,Sharif university of Technology,12/23,Why two languages?,On the other hand, a large part of network research involves slightly varying parameters or configurations, or quickly exploring a num
15、ber of scenarios In these cases, iteration time (change the model and re-run) is more important Since configuration runs once (at the beginning of the simulation), run-time of this part of the task is less important,Sharif university of Technology,13/23,Why two languages?,ns meets both of these need
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- INTRODUCTIONTOMOBILITYNETWORKSIMULATOR2NS2PPT

链接地址:http://www.mydoc123.com/p-376685.html