基于OPENWRT開源路由器的智能網(wǎng)關(guān)系統(tǒng)設(shè)計與實(shí)現(xiàn)
發(fā)布時間:2019-05-30 05:51
【摘要】:近年來,隨著科技的發(fā)展以及人民生活水平的提高,智能家居技術(shù)在大眾的日常生活中得到了快速的普及與發(fā)展。越來越多的智能化家電設(shè)備也隨之進(jìn)入千千萬萬的家庭之中。為了減輕用戶使用負(fù)擔(dān)、提高家電管理的便捷度、搭建家庭網(wǎng)絡(luò)與公共網(wǎng)絡(luò)溝通的橋梁,家庭網(wǎng)關(guān)技術(shù)應(yīng)運(yùn)而生。家庭網(wǎng)關(guān)作為家居智能化的核心組件,其主要功能在于使得家庭用戶和放置在家庭中的各種智能家電設(shè)備連接到互聯(lián)網(wǎng),或者使智能家電設(shè)備之間能夠互相通信。然而,現(xiàn)有的家庭網(wǎng)關(guān)設(shè)備普遍具有成本高、標(biāo)準(zhǔn)不統(tǒng)一、網(wǎng)絡(luò)處理慢等問題。此外,現(xiàn)有的家庭網(wǎng)關(guān)在網(wǎng)絡(luò)流量管理、用戶接入方面也存在很多不足之處。針對現(xiàn)有家庭網(wǎng)關(guān)設(shè)備使用過程中出現(xiàn)的諸多問題,本文使用OpenWRT開源路由器技術(shù),結(jié)合眾多家庭網(wǎng)絡(luò)中常用傳感器設(shè)備,組建了一個家庭網(wǎng)絡(luò)硬件平臺,并在此基礎(chǔ)上研究了基于OpenWRT無線路由器的智能網(wǎng)關(guān)(OWIG)系統(tǒng)的設(shè)計與實(shí)現(xiàn)。本文首先闡述了家庭網(wǎng)關(guān)技術(shù)在智能家居解決方案中的應(yīng)用現(xiàn)狀,然后分別介紹了本文中用到的家庭網(wǎng)關(guān)技術(shù)、開源路由器技術(shù)以及LuCI WEB技術(shù)。接著,本文探討了在OpenWRT路由器上搭建智能家庭網(wǎng)關(guān)的需求,并以此為基礎(chǔ)設(shè)計了OWIG系統(tǒng)。該系統(tǒng)由以開源路由器為核心的硬件平臺以及以LuCI為基礎(chǔ)架構(gòu)的軟件平臺兩個部分組成。其中,硬件平臺用于搭建智能網(wǎng)關(guān)所在網(wǎng)絡(luò)環(huán)境;軟件應(yīng)用平臺用于負(fù)責(zé)OWIG系統(tǒng)的數(shù)據(jù)處理以及業(yè)務(wù)邏輯處理。在實(shí)現(xiàn)環(huán)節(jié),本文首先設(shè)計了OWIG系統(tǒng)的硬件平臺,討論了諸多傳感器設(shè)備的連接與傳輸問題。然后設(shè)計了OWIG系統(tǒng)應(yīng)用服務(wù)框架,并根據(jù)軟件應(yīng)用框架設(shè)計了數(shù)據(jù)預(yù)處理模塊和業(yè)務(wù)邏輯模塊。在數(shù)據(jù)預(yù)處理模塊詳細(xì)設(shè)計了WEB界面與OpenWRT系統(tǒng)之間的消息處理過程,重點(diǎn)講述了Lua腳本與OpenWRT內(nèi)部UCI接口交互的執(zhí)行流程。在業(yè)務(wù)邏輯模塊設(shè)計過程中,將業(yè)務(wù)需求劃分成用戶管理模塊、設(shè)備管理模塊、文件管理模塊以及應(yīng)用服務(wù)模塊四個部分,然后分別針對各個業(yè)務(wù)邏輯模塊進(jìn)行了詳細(xì)地實(shí)現(xiàn)。特別地,針對現(xiàn)有家庭網(wǎng)關(guān)流量控制不足的問題,本文在軟件應(yīng)用平臺設(shè)計過程中,結(jié)合Linux NETFILTER/IPTABLES防火墻技術(shù)和TC流量管理技術(shù),詳細(xì)闡述并設(shè)計了家長控制功能以及訪客網(wǎng)絡(luò)技術(shù)的實(shí)現(xiàn)。最后,本文做了大量實(shí)驗(yàn)對系統(tǒng)功能和性能進(jìn)行了測試。為了測試系統(tǒng)的性能,本文使用系統(tǒng)CPU使用率,單位時間網(wǎng)絡(luò)數(shù)據(jù)傳輸速率以及系統(tǒng)請求并發(fā)能力作為性能指標(biāo),并分別設(shè)計了實(shí)驗(yàn)場景對其進(jìn)行測試。特別地,本文還使用Apache Benchmark工具對軟件平臺的WEB服務(wù)器進(jìn)行了壓力測試。結(jié)果表明本文所設(shè)計的OWIG系統(tǒng)是符合設(shè)計要求的。
[Abstract]:In recent years, with the development of science and technology and the improvement of people's living standards, smart home technology has been rapidly popularized and developed in the daily life of the public. More and more intelligent household appliances have also entered tens of millions of families. In order to lighten the burden of users, improve the convenience of household appliances management, and build a bridge between home network and public network, home gateway technology emerges as the times require. As the core component of home intelligence, the main function of home gateway is to connect home users and all kinds of intelligent household appliances placed in the home to the Internet, or to make intelligent household appliances communicate with each other. However, the existing home gateway equipment has many problems, such as high cost, inconsistent standards, slow network processing and so on. In addition, there are many shortcomings in network traffic management and user access of existing home gateways. In view of many problems in the use of the existing home gateway equipment, this paper uses OpenWRT open source router technology, combined with many commonly used sensor devices in the home network, to set up a home network hardware platform. On this basis, the design and implementation of intelligent gateway (OWIG) system based on OpenWRT wireless router are studied. This paper first describes the application status of home gateway technology in smart home solution, and then introduces the home gateway technology, open source router technology and LuCI WEB technology used in this paper. Then, this paper discusses the requirement of building intelligent home gateway on OpenWRT router, and designs OWIG system on this basis. The system consists of two parts: the hardware platform with open source router as the core and the software platform based on LuCI. Among them, the hardware platform is used to build the network environment where the intelligent gateway is located, and the software application platform is used to be responsible for the data processing and business logic processing of OWIG system. In the part of implementation, the hardware platform of OWIG system is designed, and the connection and transmission of many sensor devices are discussed. Then the application service framework of OWIG system is designed, and the data preprocessing module and business logic module are designed according to the software application framework. In the data preprocessing module, the message processing process between WEB interface and OpenWRT system is designed in detail, and the execution flow of interaction between Lua script and UCI interface inside OpenWRT is described in detail. In the design process of business logic module, the business requirements are divided into four parts: user management module, equipment management module, file management module and application service module, and then each business logic module is implemented in detail. In particular, in order to solve the problem of insufficient traffic control of the existing home gateway, this paper combines Linux NETFILTER/IPTABLES firewall technology and TC traffic management technology in the design process of the software application platform. The function of parent control and the realization of visitor network technology are described and designed in detail. Finally, a large number of experiments have been done to test the function and performance of the system. In order to test the performance of the system, the CPU utilization rate, the network data transmission rate per unit time and the concurrency ability of the system request are used as the performance indexes, and the experimental scenarios are designed to test the performance of the system. In particular, this paper also uses Apache Benchmark tool to stress test the WEB server of the software platform. The results show that the OWIG system designed in this paper meets the design requirements.
【學(xué)位授予單位】:西安電子科技大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP393.05
本文編號:2488582
[Abstract]:In recent years, with the development of science and technology and the improvement of people's living standards, smart home technology has been rapidly popularized and developed in the daily life of the public. More and more intelligent household appliances have also entered tens of millions of families. In order to lighten the burden of users, improve the convenience of household appliances management, and build a bridge between home network and public network, home gateway technology emerges as the times require. As the core component of home intelligence, the main function of home gateway is to connect home users and all kinds of intelligent household appliances placed in the home to the Internet, or to make intelligent household appliances communicate with each other. However, the existing home gateway equipment has many problems, such as high cost, inconsistent standards, slow network processing and so on. In addition, there are many shortcomings in network traffic management and user access of existing home gateways. In view of many problems in the use of the existing home gateway equipment, this paper uses OpenWRT open source router technology, combined with many commonly used sensor devices in the home network, to set up a home network hardware platform. On this basis, the design and implementation of intelligent gateway (OWIG) system based on OpenWRT wireless router are studied. This paper first describes the application status of home gateway technology in smart home solution, and then introduces the home gateway technology, open source router technology and LuCI WEB technology used in this paper. Then, this paper discusses the requirement of building intelligent home gateway on OpenWRT router, and designs OWIG system on this basis. The system consists of two parts: the hardware platform with open source router as the core and the software platform based on LuCI. Among them, the hardware platform is used to build the network environment where the intelligent gateway is located, and the software application platform is used to be responsible for the data processing and business logic processing of OWIG system. In the part of implementation, the hardware platform of OWIG system is designed, and the connection and transmission of many sensor devices are discussed. Then the application service framework of OWIG system is designed, and the data preprocessing module and business logic module are designed according to the software application framework. In the data preprocessing module, the message processing process between WEB interface and OpenWRT system is designed in detail, and the execution flow of interaction between Lua script and UCI interface inside OpenWRT is described in detail. In the design process of business logic module, the business requirements are divided into four parts: user management module, equipment management module, file management module and application service module, and then each business logic module is implemented in detail. In particular, in order to solve the problem of insufficient traffic control of the existing home gateway, this paper combines Linux NETFILTER/IPTABLES firewall technology and TC traffic management technology in the design process of the software application platform. The function of parent control and the realization of visitor network technology are described and designed in detail. Finally, a large number of experiments have been done to test the function and performance of the system. In order to test the performance of the system, the CPU utilization rate, the network data transmission rate per unit time and the concurrency ability of the system request are used as the performance indexes, and the experimental scenarios are designed to test the performance of the system. In particular, this paper also uses Apache Benchmark tool to stress test the WEB server of the software platform. The results show that the OWIG system designed in this paper meets the design requirements.
【學(xué)位授予單位】:西安電子科技大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP393.05
【參考文獻(xiàn)】
相關(guān)期刊論文 前1條
1 郭先會;曾浩;李致興;;TR069協(xié)議在IPTV終端管理系統(tǒng)中的研究與應(yīng)用[J];電視技術(shù);2011年05期
,本文編號:2488582
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/2488582.html
最近更新
教材專著