向ns2中添加uiuc的Channel、Physical、Propagation三个模块

根据《Modeling the Underwater Acoustic Channel in ns2》将uiuc的代码整合进ns-2.34代码中, 验证论文实验结果;
以前并无添加,Channel、Physical、 Propagation等model的经验, 所以参考另外一篇文章《Understanding the implementation of IEEE MAC 802.11 standard in NS-2》,这篇文章介绍了向ns2添加MAC 802.11标准实现的过程。
1.总体结构
对于单个节点所包括的组件,自底向上可以分为以下:
(1) Channel:底层信道模块,本实验主要是放置于 ~/ns2.34/mac/underwater{.h,. cc}文件中UnderwaterChannel类, 继承自Channel类(channel{.cc,.h} 文件中);
(2) Network Interface(netif):物理层模块,主要是放置于~ /ns2.34/mac/underwater-phy{.h, .cc}文件中UnderwaterPhy类,继承自Phy类( phy{.cc,.h}文件中);
(3) Propagation Model:传输模块,主要是放置于~/ns2.34/ mobile/underwater{.h,.cc} 文件中Underwater类
(4) Media Access Control(MAC):未涉及
(5) Outgoing Queue:未涉及
(6) Link Layer:未涉及
(7) Network Layer:未涉及

2.修改配置
在~/ns2.34/tcl/lib/ns-default. h文件中添加phy变量

Phy/UnderwaterPhy set CPThresh_ 10.0
Phy/UnderwaterPhy set CSThresh_ 20.0
Phy/UnderwaterPhy set RXThresh_ 30.0
Phy/UnderwaterPhy set bandwidth_ 2e5
#pt_ less than 120 please
Phy/UnderwaterPhy set Pt_ 97
Phy/UnderwaterPhy set freq_ 914e+6
Phy/UnderwaterPhy set L_ 1.0 

3.运行结果
通过修改普通脚本的Channel, Propagation, Phy模块进行验证。

未完待续。。。
Segmentation fault
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
Underwater Acoustic Modeling and Simulation, Fourth Edition continues to provide the most authoritative overview of currently available propagation, noise, reverberation, and sonar-performance models. This fourth edition of a bestseller discusses the fundamental processes involved in simulating the performance of underwater acoustic systems and emphasizes the importance of applying the proper modeling resources to simulate the behavior of sound in virtual ocean environments. New to the Fourth Edition * Extensive new material that addresses recent advances in inverse techniques and marine-mammal protection * Problem sets in each chapter * Updated and expanded inventories of available models Designed for readers with an understanding of underwater acoustics but who are unfamiliar with the various aspects of modeling, the book includes sufficient mathematical derivations to demonstrate model formulations and provides guidelines for selecting and using the models. Examples of each type of model illustrate model formulations, model assumptions, and algorithm efficiency. Simulation case studies are also included to demonstrate practical applications. Providing a thorough source of information on modeling resources, this book examines the translation of our physical understanding of sound in the sea into mathematical models that simulate acoustic propagation, noise, and reverberation in the ocean. The text shows how these models are used to predict and diagnose the performance of complex sonar systems operating in the undersea environment.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值