Font Size: a A A

Design And Implementation Of Smart Home Cloud Platform Based On Docker

Posted on:2020-05-16Degree:MasterType:Thesis
Country:ChinaCandidate:W SunFull Text:PDF
GTID:2428330611454757Subject:Software engineering
Abstract/Summary:PDF Full Text Request
In recent years,with the development of communication technology and artificial intelligence industry,smart home industry has entered a stage of rapid development.Smart home products have sprung up in large numbers.How to manage smart home products efficiently at a low cost has become an urgent problem for smart home product manufacturers.To this end,this paper constructs a smart home cloud platform based on Docker container to facilitate manufacturers' management of devices.The management system based on cloud platform provides mobile terminal and web-end services,facilitates users to monitor and manage devices,improves the practicability and portability of services.In addition,cloud platform is helpful for management and maintenance of smart home products.It can reduce human costs,facilitate managers to locate problems,optimize the functions of equipment systems.Through the storage and calculation of user data on the platform,we can provide users with more intelligent services by analyzing the historical data.This thesis briefly describes the relevant background,significance and existing problems of the current smart home industry.And introduces the design and implementation process of the smart home cloud platform based on Docker container.The cloud platform designed in this paper is a distributed system consisting of load balancing module,network communication module,message queue module,business interface layer,business implementation layer and database persistence layer.The main works are described as follows:(1)To deal with highly concurrent network requests,multi-foregrounds and multi-backgrounds deployment scheme was adopted.As the business interface layer,the foreground is responsible for sending and receiving requests and page display.On the other hand,the background is responsible for the basic operation of the database as the logic implementation layer.RabbitMQ message queue is used to realize asynchronous communication between foreground and background to achieve functional decoupling and ensure high reliability of message forwarding.(2)The frequent interactions between smart home devices and cloud platform,WebSocket protocol was used in this thesis to establish a long connection between the cloud platform and smart home devices and achieve real-time full-duplex communication mode.In order to improve the concurrency ability of cloud platform when there are a large number of devices,this thesis designs and implements WebSocket server based on Netty network programming framework to ensure stable long connections between cloud platform and smart home devices.With the Redis server,the cache data structure is designed to avoid the duplication of long connections between smart home devices and cloud platforms.(3)The basic functions and detailed design of the system are introduced in this paper,as well as the design and implementation of each module.On this basis,the basic equipment functions,cloud platform administrator functions and consumer functions are illustrted by using program flow charts.(4)In order to solve the problems of tedious deployment of distributed systems and inconsistency of production and development environment,this paper deployed the application services of cloud platform on Docker container.It can improve the maintainability of cloud platform and save hardware cost.Moreover,container technology is conducive to the expansion of cloud platforms.When the volume of business increases,it only needs to increase the number of containers.After deploying the smart home cloud platform on Docker,several tests of the system function and performance are completed.The experimental data shows that the smart home cloud platform designed in this thesis has good reliability and can correctly handle requests from devices when faced with high concurrency WebSocket business requests.
Keywords/Search Tags:Smart Home, Docker, RabbitMQ, WebSocket, Netty
PDF Full Text Request
Related items