簡易檢索 / 詳目顯示

研究生: 王純茗
Wang, Chun-Ming
論文名稱: OSGi閘道器與服務經營者間含資源限制考量之服務部署與恢復策略
Deployment and Recovery of Services between OSGi Gateway and Service Operators with Resource-Constraints
指導教授: 侯廷偉
Hou, Ting-Wei
學位類別: 碩士
Master
系所名稱: 工學院 - 工程科學系
Department of Engineering Science
論文出版年: 2008
畢業學年度: 96
語文別: 中文
論文頁數: 49
中文關鍵詞: 服務部署
外文關鍵詞: Service Deployment, OSGi
相關次數: 點閱:102下載:2
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 在數位家庭的概念進入生活之後,有越來越多數位化家用裝置,數位化的服務也越來越多。透過網路,使用者可以隨時向服務供應商下載安裝或更新服務。OSGi閘道器提供一個裝置數位化服務的公開平台,然而OSGi家用閘道器上的硬體資源有限,服務卻可能不斷的增加,因此將會有資源不足的情形發生,而產生例外錯誤。這種狀況,對於一般使用者帶來困擾且不好解決,而且有違人們把數位家庭帶進生活中,是為了改善生活,讓生活更為便利的原意。

    本研究設計了一個在OSGi家用閘道器上的服務部署管理程式,在部署服務前針對可以事先預防的狀況,對記憶體、硬碟、CPU、家用裝置、服務的相依性做部署管理。若資源不足時,則會針對各個不同的資源不足情況,啟動不同的管理機制,例如記憶體不足時會將最小相依性的服務反安裝,以釋放出更多的記憶體來讓新的服務安裝;CPU負載達臨界值,會出現警示資訊,以避免因為CPU負載達到臨界值,讓整體處理量會同時減少;當安裝服務時缺少引用的物件,會回傳訊息到服務供應商,並搜尋是否有提供相關物件的服務下載,避免因為缺少引用的物件而發生例外。本研究中,在部署前必須檢查資源是否足夠讓服務安裝並啟動對系統有較大的負荷,在1.66GHz的PC,作業系統為Linux,VM-ware的環境,在Knopflerfish平台上執行,約需花費1秒;而若偵測到硬碟不足,到解決空間不足的問題並下載安裝服務,約需5秒;在偵測到安裝的服務缺少引用的物件,到安裝提供需要物件的服務並將原本服務安裝並啟動,則需要花費10秒左右。

    As the smart home concept gets into our life, there are more and more home appliances and the number of services based on the appliances will increase accordingly. OSGi is an open platform for installing smart home services. Users can download or update services from service providers at any time, but the hardware resources are limited in OSGi home gateways. Hence, resources may be insufficient in an OSGi home gateway. This would introduce exceptions, which would bring inconveniences to users.
    This paper proposes a service deployment mechanism for the OSGi home gateway. The mechanism is to solve the insufficient-resource problem by monitoring memory usage, disk usage, CPU loading, available home appliances, and service dependency. For instance, if free memory and free disk space are not enough to install a new Bundle, the home gateway will find the service of least dependency and uninstall it to release the resources. To avoid CPU usage exceeding the threshold, the home gateway will return a warning. If the home appliance invoke a service which does not exist, the home gateway will return the information to the service provider and search the database about information of the home appliance. If the installed bundle can not find the imported packages, the home gateway will return the information to the service provider and download the bundle which supports these packages.
    Performance measures show that the checking process takes about 1 second, if everything is fine. For the resource insufficient cases, it takes from 5 seconds to 10 seconds, under a 1.66GHz PC running knopflerfish OSGi on Linux under VM-ware.

    摘要 i Abstract ii 誌謝 iii 第一章 序論 1 1.1 研究背景 1 1.2 研究動機 1 1.3 研究目標 2 1.4 章節概要 3 第二章 背景介紹與相關研究 4 2.1 背景介紹 4 2.1.1 OSGi 4 2.1.2 Declarative Service 7 2.1.3 JMX 8 2.1.4 UPnP 9 2.2 文獻探討 10 2.2.1 資源管理[1, 13-16] 10 2.2.2 服務相依性 11 2.2.3 例外錯誤偵測與診斷[21-24] 12 第三章 系統分析 13 3.1 OSGi服務部署情境 13 3.2 問題與情境 14 3.2.1 情境 14 3.2.2 問題描述 15 3.3 需求 17 第四章 架構設計與實作 19 4.1 架構 19 4.2 部署架構流程 21 4.3 管理機制 22 4.3.1 硬碟管理機制 25 4.3.2 記憶體管理機制 30 4.3.3 CPU管理機制 31 4.3.4 裝置管理機制 31 4.3.5 服務相依管理機制 33 4.3.6 服務回復機制 35 第五章 實作結果 36 5.1 執行環境 36 5.2 結果 37 5.3 效能量測 42 第六章 結論與未來工作 45 參考文獻 47 自述 49

    [1] C. Gouin-Vallerand and S. Giroux, "Managing and Deployment of Applications with OSGi in the Context of Smart Home," Proc. of Third IEEE International Conference on Wireless and Mobile Computing, Networking and Communications, New York, USA, 2007. (WiMOB 2007), pp. 70-70.
    [2] OSGi Alliance, http://www.osgi.org/Main/HomePage
    [3] OSGi Alliance, "OSGi Service Gateway Release 1 ,May 2000", http://www.osgi.org/Download/Release1.
    [4] OSGi Alliance, "OSGi Service Platform Release 2 ,October 2001", http://www.osgi.org/Download/Release2.
    [5] OSGi Alliance, "OSGi Service Platform Specification Release 3 ,March 2003", http://www.osgi.org/Download/Release3.
    [6] OSGi Alliance, "OSGi Service Platform Core Specification Release 4 ,Version 4.0.1, July 2006", http://www.osgi.org/Release4/Download.
    [7] OSGi Alliance ,"Declarative Service, OSGi Service Platform Service Compendium Specification Release 4, Version 4.0.1,July 2006 ", http://www.osgi.org/Release4/Download.
    [8] Service Binder, http://gravity.sourceforge.net/servicebinder.
    [9] Sun, Java Management Extensions (JMX), http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/.
    [10] UPnP Forum, UPnP Technology, http://www.upnp.org/.
    [11] CyberLink, CyberLink Development Package for UPnP Devices, http://www.cybergarage.org/net/upnp/java/index.html
    [12] Domoware, Domoware Module, http://domoware.isti.cnr.it/
    [13] H. Taein, P. Hojin, and C. Jin Wook, "Design and Implementation of the Home Service Delivery and Management System Based on OSGi Service Platform," Proc. of International Conference on Consumer Electronics, 2006. (ICCE '06)., pp. 189-190.
    [14] W. Pang-Chieh, L. Cheng-Liang, and H. Ting-Wei, "Resource-Aware Service Deployment for Open Service Gateway in Home Network," Proc. of IEEE Region 10 Conference (TENCON 2007), Taipei, Taiwan, 2007, pp. 1-4.
    [15] R. S. Hall and H. Cervantes, "Challenges in Building Service-Oriented Applications for OSGi," IEEE Communications Magazine, vol. 42, pp. 144-149, 2004.
    [16] F. Baude, V. L. Contes, and V. Lestideau, "Large-Scale Service Deployment - Application to OSGi," Proc. of Third International Conference on Autonomic and Autonomous Systems (ICAS'07), Athens, Greece, 2007, p. 19.
    [17] M. Offermans, "Automatically Managing Service Dependencies in OSGi," http://www.osgi.org/wiki/uploads/Links/AutoManageServiceDependencies_byMOffermans.pdf
    [18] H. C. a. R. S. Hall, "Automating Service Dependency Management in a Service-Oriented Component Model," Proceedings of the 6th International Workshop on Component-Based Software Engineering, Portland, Oregon, USA 2003. pp. 91-96.
    [19] C. Escoffier, R. S. Hall, and P. Lalanda, "iPOJO: an Extensible Service-Oriented Component Framework," Proc. of IEEE International Conference on Services Computing, 2007.(SCC 2007) pp. 474-481.
    [20] Spring OSGi, http://www.springframework.org/osgi
    [21] 連國辰, 基於WBEM之遠端家庭網路管理與診斷系統, 國立東華大學資訊工程所碩士論文, 2008.
    [22] 張書豪, 異質性家庭網路偵錯系統之研究, 國立東華大學資訊工程所碩士論文, 2006.
    [23] 洪翊軒, OSGi平台之動態偵防系統, 國立成功大學工程科學所碩士論文, 2007.
    [24] A. Heejune, O. Hyukjun, and S. Chang Oan, "Towards Reliable OSGi Framework and Applications," in Proceedings of the 2006 ACM symposium on Applied computing, Dijon, France: ACM, 2006.
    [25] ECHONET, ECHONET, http://www.echonet.gr.jp/english/index.htm
    [26] Sun, Java Media Framework (JMF), http://java.sun.com/javase/technologies/desktop/media/jmf/
    [27] Linux USB, Linux USB Technology, http://www.linux-usb.org/
    [28] Knopflerfish, Knopflerfish - Open Source OSGi Framework Implementation, http://www.knopflerfish.org/
    [29] Mysql, Mysql Technology, http://www.mysql.com/.

    下載圖示 校內:2009-08-26公開
    校外:2009-08-26公開
    QR CODE