会员注册 | 登录|微信快捷登录 QQ登录 微博登录 |帮助中心 精品学习网 专业在线学习考试资料文档分享平台

Tr069模块简介 CWMP协议规范

收 藏 此文档一共:33页 本文档一共被下载: 本文档被收藏:

显示该文档阅读器需要flash player的版本为10.0.124或更高!

关 键 词:
  文库屋所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
文档介绍
Tr069 模块简介 2009/01/09 xxxx ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. • Tr069 规范介绍 • Realtek tr069 模块介绍 • 如何添加参数 ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Introduction TR - 069 是由 DSL ****( ****.dslforum**** )所****的技术 规范之一,其全称为“ CPE 广域****理协议” ( CPE WAN Management Protocol )。它提供了对下 一代网络中家庭网络设备进行管理配置的通用框架和协议, 用于从网络侧对家庭网络中的****、路由器、机顶盒等设备 进行远程集中管理。 CPE : Customer Premise Equipment ACS : Auto-Configuration Server ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Functional components  用户设备自动配置和动态的业务配置  对用户设备的软件、固件的管理  对用户设备的状态和性能进行监测  对通信故障的诊断 ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. End-to-End Architecture ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Protocol components RPC: Remote Procedure Call Copyright © 2007 Realtek Semiconductor Corp. SOAP: Simple Object Access Protocol SSL: Secure Socket Layer TLS: Transport Layer Security ****.realtek****.tw Security Mechanisms  SSL/TLS  HTTP layer, shared secrets ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Architectural Components  Parameters  Read or write parameters to configure a CPE  Monitor CPE status and statistics  File Transfers  Facilitate file downloads or (optionally) uploads  Using HTTP or, optionally, HTTPS, FTP, or TFTP  CPE Initialed Notifications  Allow a CPE to notify a corresponding ACS of various conditions.  Asynchronous ACS Initialed Notifications  The ability for the ACS to notify the CPE of a configuration changes asynchronously ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Use of HTTP and SOAP SOAP messages are carried between a CPE and an ACS using HTTP 1.1, where the CPE acts as the HTTP client and the ACS acts as the HTTP server. ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. RPC Methods ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. RPC Methods(cont.) ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Connection Establishment  CPE Connection initiation  A CPE MUST establish a connection to the ACS and issue the Inform RPC method under the following conditions:  On initial installation  On power-up or reset  Once every PeriodicInformInterval  When instructed by the optional ScheduleInform method  Whenever the CPE receives a valid Connection Request from ACS  Whenever the URL of the ACS changes  Whenever a parameter is modified that is required to initiate an Inform on change  Whenever the value of a parameter that the ACS has ****rked for “active notification” is modified by an external cause ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Connection Establishment(cont.)  ACS Connection initiation  The ACS requests that the CPE initiates a connection to the ACS using the Connection Request notification mechanism (only if CPE is routable from ACS) ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Transaction Session ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Parameter List for an Internet Gateway Dev iIcnet(eIGrnDet)GatewayDevice.  DeviceInfo. VendorConfigFile.{i}.  DeviceConfig.  ManagementServer.  Time.  UserInte****ce.  Layer3Forwarding. Forwarding.{i}.  LANConfigSecurity.  IPPingDiagnostics  LANDevice.{i}.  WANDevice.{i}. TR-098: Internet Gateway Device Data Model for TR-069 ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. • Tr069 规范介绍 • Realtek tr069 模块介绍 • 如何添加参数 ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Introduction  符合 tr069 规范  支持 SSL/TLS  支持 IGD 参数列  具备很好的可扩展性 ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Web Page ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. RPC Methods ACS methods:  Inform CPE methods:  TransferComplete  GetRPCMethods  SetParameterValues  GetParameterValues  GetParameterNames  SetParameterAttributes  GetParameterAttributes  AddObject  DeleteObject  Reboot  Download  Upload  FactoryReset  ScheduleInform ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Block Diagram CPE Core Process Http Http Process_ Server Download Notification RPC Callback Process_ send APIs Functions recv Parameter APIs Gsoap Library(ssl, http, and xml parser) MIB APIs TCP ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. • Tr069 规范介绍 • Realtek tr069 模块介绍 • 如何添加参数 ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. TR-069 Parameters  InternetGatewayDevice. a readable object, only read  InternetGatewayDevice.LANDeviceNumberOfEntries  InternetGatewayDevice.WANDeviceNumberOfEntries  InternetGatewayDevice.DeviceInfo. a readable object  InternetGatewayDevice.DeviceInfo.Manufacturerleaf  InternetGatewayDevice.DeviceInfo.ManufacturerOUI  InternetGatewayDevice.DeviceInfo.ModelName  InternetGatewayDevice.DeviceInfo.Description  InternetGatewayDevice.DeviceInfo.SerialNumber  InternetGatewayDevice.DeviceInfo.HardwareVersion  InternetGatewayDevice.DeviceInfo.SoftwareVersion  InternetGatewayDevice.DeviceInfo.SpecVersion  InternetGatewayDevice.DeviceInfo.ProvisioningCode  InternetGatewayDevice.DeviceInfo.UpTime  InternetGatewayDevice.DeviceInfo.DeviceLog ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. TR-069 Parameters(cont.)  InternetGatewayDevice.Layer3Forwarding. a readable object  InternetGatewayDevice.Layer3Forwarding.DefaultConnectionSer vice  InternetGatewayDevice.Layer3Forwarding.ForwardNumberOfEntr ies  InternetGatewayDevice.Layer3Forwarding.Forwarding. a readable & writable object, can add and delete  InternetGatewayDevice.Layer3Forwarding.Forwarding.{i}.  InternetGatewayDevice.Layer3Forwarding.Forwarding. {i}.Enable  InternetGatewayDevice.Layer3Forwarding.Forwarding. {i}.Status  InternetGatewayDevice.Layer3Forwarding.Forwarding. {i}.Type ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. InternetGatewayDevice next_table *node: info next_table sibling sibling LANDeviceNumberOfEntries next_table Manufacturer next_table sibling ManufacturerOUI sibling next_table WANDeviceNumberOfEntries sibling ModelName next_table Description sibling DeviceInfo next_table sibling … next_table next_table sibling Layer3Forwarding sibling next_table … next_table sibling sibling next_table sibling DefaultConnectionService next_table Enable next_table ForwardNumberOfEntries sibling Status sibling Forwarding next_table … next_table sibling sibling next_table next_table sibling sibling 1 next_table Enable next_table sibling Status sibling Linking … next_table List sibling next_table sibling next_table sibling 2 Enable next_table sibling next_table 3 next_table Status sibling sibling … next_table ****.realtek****.tw © 2007 Realtek Sseibmliicnognductor Corp. Copyright Add A New Parameter  Define the parameter table  Write the get callback function  Write the set callback function  Write Multi-Instance Object Operation function (if necessary) ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. parameter table struct CWMP_NODE tIGDObject[] = { /*info, leaf, next)*/ {&tIGDObjectInfo[eDeviceInfo], tDeviceInfoLeaf, tDeviceInfoObject}, {&tIGDObjectInfo[eManagementServer], tManagementServerLeaf, tManagementServerObject}, {&tIGDObjectInfo[eTime], tTimeLeaf, NULL}, {&tIGDObjectInfo[eLayer3Forwarding], tLayer3ForwardingLeaf, tLayer3ForwardingObject}, {&tIGDObjectInfo[eQueueManagement], tQueueMntLeaf, tQueueMntObject}, {&tIGDObjectInfo[eLANConfigSecurity], tLANConfigSecurityLeaf, NULL}, {&tIGDObjectInfo[eIPPingDiagnostics], tIPPingDiagnosticsLeaf, NULL}, {&tIGDObjectInfo[eLANDevice], NULL, tLANDeviceObject}, {&tIGDObjectInfo[eWANDevice], NULL, tWANDeviceObject}, {NULL, NULL, NULL} }; ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. get callback function int getIGD( *name,  char *entity,  struct CWMP_LEAF *type,  int **data  void ); Return value:  0: OK  -1 or ERR_9xxx: Error ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. int getIGD(char *name, struct CWMP_LEAF *entity, int *type, void **data) { char *lastname = entity->info->name; char buf[128]; if( (name==NULL) || (type==NULL) || (data==NULL) || (entity==NULL)) return -1; *type = entity->info->type; *data = NULL; if( strcmp( lastname, "LANDeviceNumberOfEntries" )==0 ) { *data = uintdup( LANDEVICE_NUM ); }else if( strcmp( lastname, "WANDeviceNumberOfEntries" )==0 ) { *data = uintdup( WANDEVICE_NUM ); }else if( strcmp( lastname, "DeviceSum****ry" )==0 ) { if(!mib_get(DEVICESUMMARY , (void*)buf)) 读取系统配置 return ERR_9002; *data = strdup( buf ); }else{ return ERR_9005; } return 0; } Copyright © 2007 Realtek Semiconductor Corp. ****.realtek****.tw set callback function int setDeviceInfo( *name,  char *entity,  struct CWMP_LEAF type,  int *data  void ); Return value:  1: OK (not yet applied)  0: OK (applied)  -1 or ERR_9xxx: Error ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. int setDeviceInfo(char *name, struct CWMP_LEAF *entity, int type, void *data) { char *lastname = entity->name; char *buf=data; int len=0; if( (name==NULL) || (data==NULL) || (entity==NULL)) return -1; if( entity->type!=type ) return ERR_9006; if( strcmp( lastname, "ProvisioningCode" )==0 ) { if( buf ) len = strlen( buf ); if( len ==0 ) mib_set( CWMP_PROVISIONINGCODE, (void *)""); else if( len < **** ) mib_set( CWMP_PROVISIONINGCODE, (void *)buf); else return ERR_9007; return 0; }else return ERR_9005; return 0; } ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Multi-Instance Object Operation function int objForwading(  char *name,  struct CWMP_LEAF*entity,  int type,  void *data ); Return value:  1: OK (not yet applied)  0: OK  -1 or ERR_9xxx: Error ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. int objForwading(char *name, struct CWMP_LEAF *e, int type, void *data) { struct CWMP_NODE *entity=(struct CWMP_NODE *)e; switch( type ) { case eCWMP_tINITO****: { …… } case eCWMP_tADDO****: { …… } case eCWMP_tDELO****: { …… } case eCWMP_tUPDATEO****: { …… } } return -1; } ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp. Thank you ! ****.realtek****.tw Copyright © 2007 Realtek Semiconductor Corp.
关于本文
本文标题:Tr069模块简介 CWMP协议规范 链接地址:http://www.topstudy.com.cn/zhuanye/it/607.html
上一篇:java面试题及答案-人事面试必备
下一篇:TR069协议中文版 CWMP协议规范

当前资源信息

高级会员

爱学习共有文档721 篇

编号:WENKUWU607

类型: IT/计算机

格式: ppt

大小: 0.59 MB

上传时间:2018-04-12

相关搜索

关于我们-联系我们-网站声明-文档下载-网站公告-版权申诉-网站客服

文库屋  www.wenkuwu.com (精品学习网 专业在线学习考试资料文档分享平台)

本站部分文档来自互联网收集和整理和网友分享,如果有侵犯了您的版权,请及时联系我们.
© www.topstudy.com.cn 2016-2012 精品学习网 版权所有 并保留所有权  ICP备案号:  粤ICP备14083021号-8              

收起
展开