基于Android的Ad-hoc网络多跳通信的研究与实现
发布时间:2018-10-12 15:11
【摘要】:随着移动设备和移动无线网络技术的快速发展,人们可以在任意时间、任意地点上网,从而摆脱了传统的有线上网的约束。但是移动设备还必须要通过移动蜂窝网的基站设施才能连网,即使在很小的局部范围内。当海啸、地震等自然灾害破坏了基站设施或者在很偏僻的地方的时候,人们彼此之间就无法相互进行通信了。移动Ad-hoc网络就可以很好地解决这些问题。移动Ad-hoc网络是一种不依赖于基站设施的自组织无线网络,其网络拓扑结构灵活、组网方便快捷,目前成为了国内外的无线网络研究的热点,很多国内外的科研机构、大学以及军队等都对移动Ad-hoc网络及其应用进行了深入的研究。Ad-hoc网络的用途广泛,可以用于军事领域、个人局部通信、无线传感器网络等。目前,一些国内外的公司对Ad-hoc网络的研究很感兴趣,正准备将Ad-hoc网络应用到实际的生活当中去,如车辆通信、智能家居等。目前移动设备多种多样,比较流行的有手机、ipad等。其中Android手机近年来在市场最受欢迎,市场占有量排名第一。Android的源代码对外公开,因此设备厂家或科研人员可以根据市场的状况来对它实施有针对性的再次开发。Android系统中有Wi-Fi功能模块,如果工作在Ad-hoc模式下,若干个Android设备就可以组建Ad-hoc网络。本文介绍了在实际的Android手机上而非模拟器上研究实现多跳通信,并对移植到Android系统中的aodv路由协议进行标准化的方法,研究和实验基于Motorola defy (ME526)手机平台和Android OS 2.3.3软件平台。研究工作主要有以下内容:首先,由于厂家发布的Android系统并不支持Ad-hoc模式的连接,需要对Android系统的底层Wi-Fi配置文件进行修改,使其支持Ad-hoc模式。其次,手机节点的电池能量有限,经常更换电池不太方便,为了最大限度地延长手机节点的寿命,采用了一种按需的路由协议aodv (ad hoc on-demand distance vector routing)实现多跳通信,分析和调试了Java改写的aodv路由协议源码,并且按照RFC3561的国际标准规范,对源码的数据传输的格式进行了重新的设计,实现了标准化,使其可以与基于标准化aodv协议的其它Ad-hoC网络进行连网通信,并将改进后的aodv路由协议的源码利用eclipse软件编译成jar包的形式供应用程序调用。最后,使用UDP通信技术开发出了通信传输的应用程序,并且进行了相关的组网验证、路由建立与维护机制的验证以及数据传输时间的性能分析、数据包成功接收率的性能分析等。为了验证由Android手机组建的Ad-hoc网络的数据传输性能,在不同场地选择不同传输距离进行了大量测试,对记录下的实验结果进行了详细的分析。实验结果表明若干个Android手机能够成功组建Ad-hoc网络,并且可以进行文本的多跳传输,可以建立和维护路由等。论文最后对研究工作进行了总结,并对接下来的研究做了几点规划。
[Abstract]:With the rapid development of mobile devices and mobile wireless network technology, people can access the Internet at any time and anywhere, thus getting rid of the constraints of traditional wired Internet access. But mobile devices must also be connected through the base station facility of a mobile cellular network, even in a small local area. When natural disasters such as tsunamis, earthquakes and other natural disasters destroy base station facilities or in remote places, people cannot communicate with each other. Mobile Ad-hoc network can solve these problems well. Mobile Ad-hoc network is a kind of self-organized wireless network which does not depend on the base station facilities. Its network topology is flexible, and the network is convenient and fast. At present, mobile Ad-hoc network has become the hot spot of wireless network research at home and abroad, and many domestic and foreign scientific research institutions. Universities and the military have deeply studied mobile Ad-hoc networks and their applications. Ad-hoc networks are widely used in military field personal local communication wireless sensor networks and so on. At present, some domestic and foreign companies are interested in the research of Ad-hoc network, and are preparing to apply Ad-hoc network to real life, such as vehicle communication, smart home and so on. At present, there are a variety of mobile devices, the more popular are mobile phones, ipad and so on. Among them, Android mobile phones have been the most popular in the market in recent years, with the largest share of the market. The source code of Android is open to the public. Therefore, equipment manufacturers or researchers can redevelop it according to the market situation. There are Wi-Fi function modules in Android system. If they work in Ad-hoc mode, several Android devices can build Ad-hoc network. This paper introduces the research and implementation of multi-hop communication on the actual Android mobile phone, not on the simulator, and the method of standardizing the aodv routing protocol transplanted to the Android system. The research and experiment are based on the Motorola defy (ME526) mobile phone platform and the Android OS 2.3.3 software platform. The main contents of the research are as follows: firstly, because the Android system released by the manufacturer does not support the connection of the Ad-hoc mode, it is necessary to modify the underlying Wi-Fi configuration file of the Android system to support the Ad-hoc mode. Secondly, the battery energy of the cell phone node is limited, so it is not convenient to replace the battery. In order to extend the life of the mobile phone node to the maximum extent, an on-demand routing protocol aodv (ad hoc on-demand distance vector routing) is used to realize multi-hop communication. The source code of aodv routing protocol rewritten by Java is analyzed and debugged. According to the international standard and standard of RFC3561, the format of data transmission of source code is redesigned and standardized. It can communicate with other Ad-hoC networks based on standardized aodv protocol, and the source code of the improved aodv routing protocol is compiled into jar package by eclipse software for application to call. Finally, the application program of communication transmission is developed by using UDP communication technology, and the related networking verification, the verification of routing and maintenance mechanism and the performance analysis of data transmission time are carried out. Performance analysis of packet success rate, etc. In order to verify the data transmission performance of Ad-hoc network constructed by Android mobile phone, a large number of tests were carried out in different sites and different transmission distances, and the recorded experimental results were analyzed in detail. The experimental results show that several Android mobile phones can successfully set up Ad-hoc network, and can transmit text in multiple hops, and can establish and maintain routing. Finally, the thesis summarizes the research work and makes several plans for the following research.
【学位授予单位】:中央民族大学
【学位级别】:硕士
【学位授予年份】:2015
【分类号】:TN929.5
本文编号:2266602
[Abstract]:With the rapid development of mobile devices and mobile wireless network technology, people can access the Internet at any time and anywhere, thus getting rid of the constraints of traditional wired Internet access. But mobile devices must also be connected through the base station facility of a mobile cellular network, even in a small local area. When natural disasters such as tsunamis, earthquakes and other natural disasters destroy base station facilities or in remote places, people cannot communicate with each other. Mobile Ad-hoc network can solve these problems well. Mobile Ad-hoc network is a kind of self-organized wireless network which does not depend on the base station facilities. Its network topology is flexible, and the network is convenient and fast. At present, mobile Ad-hoc network has become the hot spot of wireless network research at home and abroad, and many domestic and foreign scientific research institutions. Universities and the military have deeply studied mobile Ad-hoc networks and their applications. Ad-hoc networks are widely used in military field personal local communication wireless sensor networks and so on. At present, some domestic and foreign companies are interested in the research of Ad-hoc network, and are preparing to apply Ad-hoc network to real life, such as vehicle communication, smart home and so on. At present, there are a variety of mobile devices, the more popular are mobile phones, ipad and so on. Among them, Android mobile phones have been the most popular in the market in recent years, with the largest share of the market. The source code of Android is open to the public. Therefore, equipment manufacturers or researchers can redevelop it according to the market situation. There are Wi-Fi function modules in Android system. If they work in Ad-hoc mode, several Android devices can build Ad-hoc network. This paper introduces the research and implementation of multi-hop communication on the actual Android mobile phone, not on the simulator, and the method of standardizing the aodv routing protocol transplanted to the Android system. The research and experiment are based on the Motorola defy (ME526) mobile phone platform and the Android OS 2.3.3 software platform. The main contents of the research are as follows: firstly, because the Android system released by the manufacturer does not support the connection of the Ad-hoc mode, it is necessary to modify the underlying Wi-Fi configuration file of the Android system to support the Ad-hoc mode. Secondly, the battery energy of the cell phone node is limited, so it is not convenient to replace the battery. In order to extend the life of the mobile phone node to the maximum extent, an on-demand routing protocol aodv (ad hoc on-demand distance vector routing) is used to realize multi-hop communication. The source code of aodv routing protocol rewritten by Java is analyzed and debugged. According to the international standard and standard of RFC3561, the format of data transmission of source code is redesigned and standardized. It can communicate with other Ad-hoC networks based on standardized aodv protocol, and the source code of the improved aodv routing protocol is compiled into jar package by eclipse software for application to call. Finally, the application program of communication transmission is developed by using UDP communication technology, and the related networking verification, the verification of routing and maintenance mechanism and the performance analysis of data transmission time are carried out. Performance analysis of packet success rate, etc. In order to verify the data transmission performance of Ad-hoc network constructed by Android mobile phone, a large number of tests were carried out in different sites and different transmission distances, and the recorded experimental results were analyzed in detail. The experimental results show that several Android mobile phones can successfully set up Ad-hoc network, and can transmit text in multiple hops, and can establish and maintain routing. Finally, the thesis summarizes the research work and makes several plans for the following research.
【学位授予单位】:中央民族大学
【学位级别】:硕士
【学位授予年份】:2015
【分类号】:TN929.5
【参考文献】
相关硕士学位论文 前3条
1 宫庆松;蓝牙散射网拓扑创建和路由形成算法研究[D];吉林大学;2007年
2 李沁薇;AODV路由协议本地修复机制的改进[D];电子科技大学;2008年
3 陈艳;基于IEEE802.11的无线Ad Hoc网络MAC协议的研究与设计[D];电子科技大学;2012年
,本文编号:2266602
本文链接:https://www.wllwen.com/kejilunwen/wltx/2266602.html