基于Android的Ad-hoc網(wǎng)絡(luò)多跳通信的研究與實(shí)現(xiàn)
發(fā)布時(shí)間:2018-10-12 15:11
【摘要】:隨著移動(dòng)設(shè)備和移動(dòng)無(wú)線網(wǎng)絡(luò)技術(shù)的快速發(fā)展,人們可以在任意時(shí)間、任意地點(diǎn)上網(wǎng),從而擺脫了傳統(tǒng)的有線上網(wǎng)的約束。但是移動(dòng)設(shè)備還必須要通過(guò)移動(dòng)蜂窩網(wǎng)的基站設(shè)施才能連網(wǎng),即使在很小的局部范圍內(nèi)。當(dāng)海嘯、地震等自然災(zāi)害破壞了基站設(shè)施或者在很偏僻的地方的時(shí)候,人們彼此之間就無(wú)法相互進(jìn)行通信了。移動(dòng)Ad-hoc網(wǎng)絡(luò)就可以很好地解決這些問(wèn)題。移動(dòng)Ad-hoc網(wǎng)絡(luò)是一種不依賴于基站設(shè)施的自組織無(wú)線網(wǎng)絡(luò),其網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu)靈活、組網(wǎng)方便快捷,目前成為了國(guó)內(nèi)外的無(wú)線網(wǎng)絡(luò)研究的熱點(diǎn),很多國(guó)內(nèi)外的科研機(jī)構(gòu)、大學(xué)以及軍隊(duì)等都對(duì)移動(dòng)Ad-hoc網(wǎng)絡(luò)及其應(yīng)用進(jìn)行了深入的研究。Ad-hoc網(wǎng)絡(luò)的用途廣泛,可以用于軍事領(lǐng)域、個(gè)人局部通信、無(wú)線傳感器網(wǎng)絡(luò)等。目前,一些國(guó)內(nèi)外的公司對(duì)Ad-hoc網(wǎng)絡(luò)的研究很感興趣,正準(zhǔn)備將Ad-hoc網(wǎng)絡(luò)應(yīng)用到實(shí)際的生活當(dāng)中去,如車(chē)輛通信、智能家居等。目前移動(dòng)設(shè)備多種多樣,比較流行的有手機(jī)、ipad等。其中Android手機(jī)近年來(lái)在市場(chǎng)最受歡迎,市場(chǎng)占有量排名第一。Android的源代碼對(duì)外公開(kāi),因此設(shè)備廠家或科研人員可以根據(jù)市場(chǎng)的狀況來(lái)對(duì)它實(shí)施有針對(duì)性的再次開(kāi)發(fā)。Android系統(tǒng)中有Wi-Fi功能模塊,如果工作在Ad-hoc模式下,若干個(gè)Android設(shè)備就可以組建Ad-hoc網(wǎng)絡(luò)。本文介紹了在實(shí)際的Android手機(jī)上而非模擬器上研究實(shí)現(xiàn)多跳通信,并對(duì)移植到Android系統(tǒng)中的aodv路由協(xié)議進(jìn)行標(biāo)準(zhǔn)化的方法,研究和實(shí)驗(yàn)基于Motorola defy (ME526)手機(jī)平臺(tái)和Android OS 2.3.3軟件平臺(tái)。研究工作主要有以下內(nèi)容:首先,由于廠家發(fā)布的Android系統(tǒng)并不支持Ad-hoc模式的連接,需要對(duì)Android系統(tǒng)的底層Wi-Fi配置文件進(jìn)行修改,使其支持Ad-hoc模式。其次,手機(jī)節(jié)點(diǎn)的電池能量有限,經(jīng)常更換電池不太方便,為了最大限度地延長(zhǎng)手機(jī)節(jié)點(diǎn)的壽命,采用了一種按需的路由協(xié)議aodv (ad hoc on-demand distance vector routing)實(shí)現(xiàn)多跳通信,分析和調(diào)試了Java改寫(xiě)的aodv路由協(xié)議源碼,并且按照RFC3561的國(guó)際標(biāo)準(zhǔn)規(guī)范,對(duì)源碼的數(shù)據(jù)傳輸?shù)母袷竭M(jìn)行了重新的設(shè)計(jì),實(shí)現(xiàn)了標(biāo)準(zhǔn)化,使其可以與基于標(biāo)準(zhǔn)化aodv協(xié)議的其它Ad-hoC網(wǎng)絡(luò)進(jìn)行連網(wǎng)通信,并將改進(jìn)后的aodv路由協(xié)議的源碼利用eclipse軟件編譯成jar包的形式供應(yīng)用程序調(diào)用。最后,使用UDP通信技術(shù)開(kāi)發(fā)出了通信傳輸?shù)膽?yīng)用程序,并且進(jìn)行了相關(guān)的組網(wǎng)驗(yàn)證、路由建立與維護(hù)機(jī)制的驗(yàn)證以及數(shù)據(jù)傳輸時(shí)間的性能分析、數(shù)據(jù)包成功接收率的性能分析等。為了驗(yàn)證由Android手機(jī)組建的Ad-hoc網(wǎng)絡(luò)的數(shù)據(jù)傳輸性能,在不同場(chǎng)地選擇不同傳輸距離進(jìn)行了大量測(cè)試,對(duì)記錄下的實(shí)驗(yàn)結(jié)果進(jìn)行了詳細(xì)的分析。實(shí)驗(yàn)結(jié)果表明若干個(gè)Android手機(jī)能夠成功組建Ad-hoc網(wǎng)絡(luò),并且可以進(jìn)行文本的多跳傳輸,可以建立和維護(hù)路由等。論文最后對(duì)研究工作進(jìn)行了總結(jié),并對(duì)接下來(lái)的研究做了幾點(diǎn)規(guī)劃。
[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.
【學(xué)位授予單位】:中央民族大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2015
【分類號(hào)】:TN929.5
本文編號(hào):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.
【學(xué)位授予單位】:中央民族大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2015
【分類號(hào)】:TN929.5
【參考文獻(xiàn)】
相關(guān)碩士學(xué)位論文 前3條
1 宮慶松;藍(lán)牙散射網(wǎng)拓?fù)鋭?chuàng)建和路由形成算法研究[D];吉林大學(xué);2007年
2 李沁薇;AODV路由協(xié)議本地修復(fù)機(jī)制的改進(jìn)[D];電子科技大學(xué);2008年
3 陳艷;基于IEEE802.11的無(wú)線Ad Hoc網(wǎng)絡(luò)MAC協(xié)議的研究與設(shè)計(jì)[D];電子科技大學(xué);2012年
,本文編號(hào):2266602
本文鏈接:http://www.sikaile.net/kejilunwen/wltx/2266602.html
最近更新
教材專著