作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 移动互联与通信技术 • 上一篇    下一篇

NS-2无线物理层实现与衰落功能扩展研究

王 悦a,刘灿涛b,朱 雷a,张书云a   

  1. (中央财经大学 a. 信息管理系;b. 计算机科学与技术系,北京 100081)
  • 收稿日期:2013-02-11 出版日期:2014-07-15 发布日期:2014-07-14
  • 作者简介:王 悦(1979-),男,副教授、博士,主研方向:无线网络,信息检索;刘灿涛、朱 雷,讲师;张书云,副教授。
  • 基金资助:
    国家自然科学基金资助项目(61309030, 61100112);教育部人文社会科学研究青年基金资助项目(11YJCZH006);北京市哲学社会科学规划基金资助项目(12JGA014, 13JGA004);中央财经大学学科建设基金资助项目。

Study on NS-2 Wireless Physical Layer Implementation and Fading Function Extension

WANG Yue   a, LIU Can-tao   b, ZHU Lei  a, ZHANG Shu-yun   a   

  1. (a. Department of Information Management; b. Department of Computer Science and Technology, Central University of Finance and Economics, Beijing 100081, China)
  • Received:2013-02-11 Online:2014-07-15 Published:2014-07-14

摘要: 通过跟踪源代码,分析NS-2无线物理层的C++类,对NS-2分组收发仿真实现原理进行研究。针对NS-2仅实现理想信道而未考虑信道衰落效应的问题,给出扩展信道衰落功能的一般计算步骤,并以瑞利衰落为例在NS-2无线物理层中实现。UDP和TCP传输性能在引入瑞利衰落后有较大不同,体现了无线传输的不确定性。单链路的吞吐量随链路长度增加而下降;在无线局域网中,距离AP远的节点受衰落效应影响大,吞吐量下降;距离AP近的节点受衰落效应影响小,共享带宽占用了前者的剩余带宽,吞吐量反而上升。仿真结果显示,NS-2信道衰落功能扩展有助于准确验证无线网络协议性能。

关键词: NS-2网络模拟器, 信道衰落, 吞吐量, 公平性, 物理层, 802.11无线局域网

Abstract: This paper studies the implementation of packets transmission and reception of the NS-2 wireless physical layer by tracing its C++ classes, which offers a guideline to extend the NS-2 wireless functionality. As NS-2 only implements an ideal channel without considering channel fading, the paper gives the general computation method of fading in NS-2 and implements Rayleigh fading as an example. The performance of UDP and TCP flows under Rayleigh fading is different from those without fading, which simulates the uncertainty of wireless transmissions. The throughputs of a single link decrease as the link length increases. In Wireless Local Area Networks(WLAN), the throughputs of the nodes far from the AP are affected significantly by fading causing throughputs degradation, while the throughputs of the nodes nearby the AP are affected slightly by fading and its throughput increases due to bandwidth sharing. Simulation result shows that the fading extension in NS-2 makes wireless network protocols more accurately than before.

Key words: NS-2 network simulator, channel fading, throughput, fairness, physical layer, 802.11 Wireless Local Area Networks (WLAN)

中图分类号: