基于VPN的SAMBA网盘在私有云平台的设计与实现
发布时间:2018-03-30 00:19
本文选题:云计算 切入点:网盘 出处:《电子科技大学》2015年硕士论文
【摘要】:近年来云计算的知名度逐步上升,云网盘作为云平台不可或缺的重要服务之一,在公有云中已经逐步被大家所熟知,例如百度网盘。公有云平台的网盘,后台软硬件花费巨大,而且只适合个人用户使用,且上传下载速率只有1M左右,远低于内网百兆带宽的速度限制,而且每个资源的分享都要通过创建唯一链接的方式进行,被分享的用户以后要使用这次分享的资源还得查找这个资源对应的唯一链接,而且经常出现链接内容不存在的问题,使用非常不方便,且公司很多重要的文件不宜放到公有云的云端,担心被别人窃取。本文为了解决以上的问题并结合私有云平台网盘的特点,以满足一般公司或机构对网盘使用的需求为目的,提出了基于VPN的SAMBA网盘在私有云平台的设计与实现。本系统由客户端模块、管理页面模块、中心调度模块、后台插件模块、系统应用模块和数据库这6个模块组成。客户端模块和管理页面模块的功能通过与其他4个模块协作完成。客户端模块通过与后台通信完成用户注册,登录验证,修改密码,VPN连接和网盘挂载的功能。管理页面通过和后台通信,用来完成用户的增、删、改、查,用户的个人网盘设置,用户所属部门,部门的增、删、改,部门的网盘设置,部门网盘里面的特权文件夹功能设置,云平台的服务器存储使用情况监控和个人存储使用情况监控功能。中心调度模块是一个后台服务程序,对特定端口进行监听,接收来自客户端和管理页面的请求,然后调用相应的插件模块来完成客户端和管理页面的功能,插件会调用系统服务模块和数据库模块,系统服务模块主要包括QUOTA、SAMBA应用以及系统命令,数据库模块是通过MYSQL-CLUSTER集群提供服务。最终本文基于VPN实现外网访问公司内部服务器资源,基于SAMBA实现跨平台的网盘挂载,后台采用LVM实现存储的动态扩容,使用QUOTA设置用户的配额,使用部门网盘实现部门内部资源共享,通过特权文件夹功能,实现网盘内资源的高级共享。客户端模块采用WINDOWS编程实现,管理页面模块通过WEB页面的JS和PHP技术进行开发,通过AJAX技术和后台的PHP程序进行通信,后台插件模块使用C语言编程实现。完成开发之后,对系统进行了详细的单元功能测试以及性能测试,功能测试成功通过,网盘读写性能测试结果和本地磁盘没有多大区别,可用性很好。
[Abstract]:In recent years, the popularity of cloud computing has gradually increased. As one of the indispensable and important services of cloud platform, cloud network disk has been gradually known in the public cloud. For example, Baidu net disk, the public cloud platform network disk, background software and hardware spend a lot of money. And it is only suitable for individual users, and the upload and download rate is only about 1m, which is far lower than the speed limit of 100 megabytes of bandwidth on the intranet, and each resource is shared by creating a unique link. The shared user will have to look up the unique link to the shared resource after using the shared resource, and there is often a problem with the content of the link, which is very inconvenient to use. And many important documents of the company should not be placed in the cloud of the public cloud, worried about being stolen by others. In order to solve the above problem and combine the characteristics of the private cloud platform, this paper aims to meet the demand of the general company or organization for the use of the disk. The design and implementation of SAMBA disk based on VPN in private cloud platform are presented. The system consists of client module, management page module, central scheduling module, background plug-in module, etc. The functions of the client module and the management page module are accomplished by cooperating with the other four modules. The client module completes the user registration and login verification by communicating with the background. The function of modifying the password VPN connection and mounting the network disk. The management page is used to complete the user's increase, delete, change, check, the user's personal network disk setting, the user's department, the department's increase, delete, change, and the department's network disk setting through the communication with the background. The privilege folder function settings in the departmental network disk, the server storage usage monitoring and the personal storage usage monitoring function of the cloud platform. The central scheduling module is a backstage service program, which monitors the specific ports. Receive requests from the client and the management page, then call the corresponding plug-in module to complete the client and management page functions, the plug-in will call the system service module and database module, The system service module mainly includes the QUOTAA SAMBA application and the system command, the database module provides the service through the MYSQL-CLUSTER cluster. Finally, this paper realizes the outer network access to the company's internal server resources based on the VPN, and realizes the cross-platform network disk mount based on the SAMBA. The background uses LVM to realize the dynamic expansion of storage, uses QUOTA to set the user quota, uses the departmental network disk to realize the sharing of resources within the department, and uses the privilege folder function. The client module is implemented by WINDOWS programming, the management page module is developed by JS and PHP technology of WEB page, and the communication is carried out through AJAX technology and backstage PHP program. The background plug-in module is implemented with C language. After the development, the system has been tested in detail, the function test has passed successfully, the test result of read and write performance of the net disk is not much different from that of the local disk. Availability is good.
【学位授予单位】:电子科技大学
【学位级别】:硕士
【学位授予年份】:2015
【分类号】:TP333;TP311.52
【参考文献】
相关期刊论文 前1条
1 肖克辉;倪德明;;文件系统增量备份策略的形式化描述及实现[J];计算机工程与设计;2007年10期
相关硕士学位论文 前1条
1 刘西岗;基于rsync算法的云平台文件同步系统设计与实现[D];电子科技大学;2013年
,本文编号:1683526
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/1683526.html