郭斯彥臺灣大學:資訊網路與多媒體研究所薛承宇Hsueh, Chen-YuChen-YuHsueh2010-05-052018-07-052010-05-052018-07-052009U0001-3107200915174000http://ntur.lib.ntu.edu.tw//handle/246246/180797在今日,無線網路日益普及。越來越多的咖啡廳、校園、飯店以及其它商家都有提供無線上網的服務,無線AP、路由器和閘道器的數量增加得相當快。然而,對於這些數量龐大、部署分散的設備,卻是相當的不易管理和維護。WMP (CPE WAN Management Protocol,用戶端設備廣域網路管理協定)是由DSL Forum所發表的技術規模之一,編號為TR-069,所以又被稱為TR-069協定。主要目的在於建立CPE (Customer Premises Equipment)和ACS (Auto-Configuration Server)之間的溝通。CWMP定義了一個可實現CPE安全自動設定的機制,並且將CPE其它的管理方法整合到一個共用平台中。WMP由用戶端設備(CPE, Customer Premises Equipment)和自動設定伺服器(ACS, Auto-Configuration Server)所組成,使用SOAP透過HTTP進行資訊的傳輸。服務提供商(Service Provider)現在可以使用一個共用的管理平台,通過網路以使用TR-069透過ACS對CPE進行遠端集中管理,完成廣大且複雜的自動設定,管理所有用戶端設備。並可解決CPE設備的管理困難,節約成本,以及提高管理效率。篇論文的目的在於瞭解如何去實作用戶端設備廣域網路管理協定。詳細探討CPE與ACS之間的連接架構,資訊傳輸方式。並且基於TR-069,確實地實作出一個具有網頁管理介面的ACS,以及可與該ACS相互溝通基於OpenWrt平台上的CPE (Access Control Gateway)。Nowadays, wireless network is prevailing. There are more and more coffee shops, campuses, hotels, and other stores that provide services of accessing internet via wireless LAN. The number of wireless access points, routers, and gateways are increasing rapidly. However, these big amounts of Devices that are cross around the world are very difficult to be managed and maintained.WMP (CPE WAN Management Protocol) is one of technical specifications released by DSL Forum. The serial number is TR-069, so we also call it TR-069 protocol. It is intended for communication between a CPE (Customer Premises Equipment) and ACS (Auto-Configuration Server). The CWMP defines a mechanism that encompasses secure auto-configuration of a CPE, and also incorporates other CPE management functions into a common framework.WMP is formed by CPE (Customer Premises Equipment) and ACS (Auto-Configuration Server), and using SOAP protocol to carry on the transmission of information through HTTP. Now, the Service Provider who can carry on long-distance centralized management to CPE through network using TR-069 by ACS within a common management framework. It achieve vast and complicated auto configuration, and manage all CPE promises equipments. Furthermore, it can solve the problem that CPE is difficult to be managed, save the cost, and improve the efficiency of management.he purpose of this thesis lies in understanding how to implement CPE WAN Management Protocol. Discussing in detail that the connection structure and information transmission methods between CPE and ACS. Base on TR-069, exactly design an ACS with web management interface and an OpenWrt-based CPE that can communicate with the ACS.CHAPTER 1 INTRODUCTION - 1 -.1 BACKGROUND AND MOTIVATION - 2 -.2 RESEARCH CONTRIBUTION - 3 -.3 THESIS OUTLINE - 4 -HAPTER 2 BACKGROUND AND RELATED WORKS - 6 -.1 SOAP - 6 -.1.1 Basic Format of SOAP Message - 7 -.1.2 Sample SOAP Message - 7 -.1.3 Advantages of SOAP - 8 -.2 WEB SERVICE - 9 -.3 GSOAP TOOLKIT - 10 -.3.1 Getting Started - 11 -.3.2 Developing a Web Service Client Application - 12 -.3.3 Developing a Web Service in CGI - 14 -.4 THE OPEN SOURCE PROJECT OPENWRT - 17 -.5 SUMMARY - 18 -HAPTER 3 CWMP INTRODUCTION - 19 -.1 FUNCTIONAL COMPONENTS - 19 -.1.1 Auto-Configuration and Dynamic Service Provisioning - 20 -.1.2 Software/Firmware image Management - 21 -.1.3 Status and Performance Monitoring - 21 -.1.4 Diagnostics - 22 -.2 POSITIONING IN THE AUTO-CONFIGURATION ARCHITECTURE - 22 -.3 SECURITY GOALS - 24 -.4 SUMMARY - 24 -HAPTER 4 CWMP ARCHITECTURE - 25 -.1 PROTOCOL COMPONENT - 25 -.2 SECURITY MECHANISMS - 26 -.3 ARCHITECTURAL COMPONENT - 27 -.3.1 CPE Initiated Notification - 27 -.3.2 Asynchronous ACS initiated Notifications - 27 -.4 ACS DISCOVERY - 28 -.5 CONNECTION ESTABLISHMENT - 31 -.5.1 CPE Connection Initiation - 31 -.5.2 ACS Connection Initiation - 33 -.5.3 File Transfers - 35 -.6 USE OF SOAP - 36 -.7 SUMMARY - 41 -HAPTER 5 IMPLEMENTATION OF A CPE WITH CWMP - 42 -.1 HOW TO DESIGN THE TR-069 DATA MODEL - 42 -.1.1 Parameters of TR-069 - 43 -.1.2 Data Hierarchy Example - 44 -.1.3 Design of TR-069 Data Model - 44 -.2 IMPLEMENTATION OF WEB SERVICE SERVER OF CPE - 47 -.2.1 SetParameterValues Method - 47 -.2.2 GetParameterValues Method - 49 -.2.3 GetParameterNames Method - 51 -.2.4 SetParameterAttributes Method - 52 -.2.5 GetParameterAttributes Method - 53 -.2.6 Download Method - 54 -.2.7 Upload Method - 56 -.2.8 Reboot Method - 57 -.3 IMPLEMENTATION OF WEB SERVICE CLIENT OF CPE - 58 -.4 SUMMARY - 60 -HAPTER 6 IMPLEMENTATION OF AN ACS WITH CWMP - 61 -.1 IMPLEMENTATION OF WEB SERVICE SERVER OF ACS - 61 -.1.1 Inform Method - 61 -.1.2 TransferComplete Method - 63 -.2 IMPLEMENTATION OF WEB SERVICE CLIENT OF ACS - 63 -.3 SUMMARY - 68 -HAPTER 7 CONCLUSION AND FUTURE WORKS - 69 -.1 CONCLUSION - 69 -.2 FUTURE WORKS - 70 -IBLIOGRAPHY - 72 -PPENDIX A: GLOSSARY ACRONYMS AND ABBREVIATION - 74 -PPENDIX B: DATA TYPES USED IN TR-069 PROTOCOL - 75 -application/pdf1640315 bytesapplication/pdfen-US閘道器用戶端設備廣域網路管理協定用戶端設備自動設定伺服器TR-069SOAPHTTPGatewayCWMPCPEACS用戶端設備廣域網路管理協定之實作Implementation of CPE WAN Management Protocolthesishttp://ntur.lib.ntu.edu.tw/bitstream/246246/180797/1/ntu-98-R96944018-1.pdf