(物理电子学专业论文)epon系统服务质量qos模块设计实现.pdf_第1页
(物理电子学专业论文)epon系统服务质量qos模块设计实现.pdf_第2页
(物理电子学专业论文)epon系统服务质量qos模块设计实现.pdf_第3页
(物理电子学专业论文)epon系统服务质量qos模块设计实现.pdf_第4页
(物理电子学专业论文)epon系统服务质量qos模块设计实现.pdf_第5页
已阅读5页,还剩66页未读 继续免费阅读

(物理电子学专业论文)epon系统服务质量qos模块设计实现.pdf.pdf 免费下载

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

华 中 科 技 大 学 硕 士 学 位 论 文 i 摘 要 在过去的这些年里,通信骨干网络经历了大幅度的增长,传统的接入网技术已不 能满足各种新业务的需求。以太网无源光网络(epon)得到了越来越多的研究重视, 它凭借以太网和无源光网络(pon)的双重优点成为下一代网络(ngn)系统的最佳 解决方案1,服务质量(qos)问题正是 epon 的关键技术之一。 本课题来源于国家 863 项目epon 网络研究。目的是实现 epon pt1500 系统 到 pt2500 系统的升级,以满足中国电信 epon 设备技术要求,增强 epon 系统的互 通性和运营管理能力。pt2500 系统的硬件设置是:olt(光线路终端)采用 tk3723 和 vsc7407 分别作为 pon 芯片和交换芯片;onu(光网络单元)采用 tk3715 作为 pon 芯片。pt2500 系统的软件架构分为嵌入式网管层、idb(信息数据库)层、协议 模块层、硬件抽象层(hal)和芯片 api 层。 本论文从接入网理论入手,主要研究的内容如下: (1) 深入研究 epon 原理、qos 协议和相关技术,分析硬件实现情况,撰写 qos 模块的概要设计。 (2) 根据中国电信 qos 机制和系统芯片功能,综合设计 qos 模块的 mib(管 理信息库)表和节点。 (3) 在深入理解 pt2500 软件层次和实现方式的基础上设计了 qos 模块的命令 行和数据结构,编写了命令行(cli)、信息数据库(idb)和硬件抽象层(hal)的 代码,并完成了编译和调试。 (4) 使用 cli 和 snmp(简单网络管理协议)两种管理工具对 qos 模块进行功 能测试,对测试结果进行分析和总结。 关键词:以太无源光网络 服务质量 业务等级协定 动态带宽分配 华 中 科 技 大 学 硕 士 学 位 论 文 ii abstract in the past few years the communications network backbone has experienced substantial growth. traditional access technology has been unable to meet the needs of a variety of new business. ethernet passive optical network (epon) has attracted more and more research attentions. it is the best solution of ngn (next generation network) system with predominance of both ethernet and pon. one of the key technologies of epon is qos. this issue comes from national 863 projects research of epon. this project aims to upgrade epon pt1500 sytem to pt2500 system to meet the technical requirements of china telecom, which enhances interoperability and operational management capabilities of epon system. pt2500 system chooses tk3715, tk3723 as the pon chips and vsc7407 as the switch chips. the software architecture of pt2500 system is divided into five l ayers: embedded network management, information database layer (idb), the protocol module layer, the hardware abstraction layer (hal) and the chip api layer. this paper starts from the access network theory and the main contents of the study are as follows: (1) deeply study the epon principles, qos protocols and related technologies; analy the realization situation of hardware and write the summary design of qos module. (2) design the mib nodes of qos module according to china telecom qos mechanisms and functions- on- chip of pt2500 system. (3) design the command line (cli) and data structure based on in- depth understanding of software layers and realizing ways; write the codes of cli, idb, hal and compile and debug them. (4) test the function of qos module with management tools of cli, snmp (simple network management protocol) and analy the testing results. keywords: ethernet passive optical network (epon) quality of service (qos) service level agreement (sla) dynamic bandwidth associate (dba) 独创性声明 本人声明所呈交的学位论文是我个人在导师指导下进行的研究工作及取得的研究 成果。尽我所知,除文中已经标明引用的内容外,本论文不包含任何其他个人或集体 已经发表或撰写过的研究成果。对本文的研究做出贡献的个人和集体,均已在文中以 明确方式标明。本人完全意识到本声明的法律结果由本人承担。 学位论文作者签名: 日期: 年 月 日 学位论文版权使用授权书 本学位论文作者完全了解学校有关保留、使用学位论文的规定,即:学校有权保 留并向国家有关部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。本 人授权华中科技大学可以将本学位论文的全部或部分内容编入有关数据库进行检索, 可以采用影印、缩印或扫描等复制手段保存和汇编本学位论文。 保密, 在 年解密后适用本授权书。 不保密。 (请在以上方框内打“” ) 学位论文作者签名: 指导教师签名: 日期: 年 月 日 日期: 年 月 本论文属于 华 中 科 技 大 学 硕 士 学 位 论 文 1 1 绪论 随着信息技术的飞速发展,人们对网络带宽提出了更高的要求。根据吉尔德定律, 主干网带宽的增长速度至少是运算性能增长速度的 3 倍2。进入 21 世纪以来,全球宽 带接入网进入了大发展阶段,成为电信史上发展最快的电信业务之一,甚至比移动业 务还快3。 据 point topic 统计,截至 2008 年三季度,全球宽带接入用户已经达到 3.98 亿,同 比增长率为 21.2%。根据工业和信息化部电信研究院通信信息研究所的统计数据,如 图 1- 1 所示,截至 2008 年 9 月,我国宽带接入用户累计达到 8812 万户,已经超过美 国,成为全球用户规模最大的宽带市场4。 0 1 0 0 0 2 0 0 0 3 0 0 0 4 0 0 0 5 0 0 0 6 0 0 0 7 0 0 0 8 0 0 0 9 0 0 0 1 0 0 0 0 2 0 0 7 . 9 2 0 0 7 . 1 2 2 0 0 8 . 3 2 0 0 8 . 6 2 0 0 8 . 9 2 0 0 8 . 1 2 (万户) 图 1- 1 宽带接入用户发展情况 目前对于骨干网来讲,各种宽带组网技术日益成熟和完善,波分复用系统的带宽 己达 1600gbit/s,ip over atm,ip over sdh,ip over wdm(dwdm),rpr,msr等 技术已经或正在开始投入使用中5, 基于自动交换技术的下一代骨干网络已在进行相关 的标准制定工作,可以说己经为承载各种宽带业务作好了准备。但是位于通信网络与 用户之间的接入网发展相对滞后,己经成为宽带发展的瓶颈6。 1.1 接入网概述 1975 年英国电讯(bt) 在苏格兰 galasco 举行的一次研讨会上首次提出接入网的概 念,并在1976 和 1977 年分别进行了组网可行性试验和大规模的推广应用。 1978 年 bt 华 中 科 技 大 学 硕 士 学 位 论 文 2 在 ccitt 相关会议上正式提出了接入网组网的概念;1979 年 ccitt 用远端用户集线 器(rsc)命名方式给具备相似性能的设备进行了框架描述。 80 年代后期,在各方面的推动下,itu- t 开始着手制定标准化程度较高的数字接 口规范- v5.x,并对接入网作了较为科学的界定7:接入网(an)是由一系列实体(诸如 线缆装置、传输设施等)组成的,为在一个业务节点接口(sni)和每一个与之相关联的 用户网络接口(uni)之间提供电信业务而提供所需传送承载能力的一个实现8。其目标 是建立一种标准化的接口方式,以一个可监控的接入网络,使用户能够获得话音、租 用线业务、数据多媒体、有线电视等综合业务。随着电信技术的发展,现在的通信网 可以分为骨干网、城域网、接入网和用户驻地网,其模型结构如图 1- 2 所示。 接入网 用户驻地网 或局域网 骨干网 城域网 图 1- 2 接入网在通信网络中的位置 由图可见,接入网连接城域网和用户驻地网,处于通信网络“最后一公里”的位 置。当今核心网己经形成了以光纤线路为基础的高速信道情况下,宽带接入网已经成 为通信网络建设中难度最高、耗资最大的一部分9。 1.2 现有接入网技术 宽带接入网的技术实现手段有多种,包括铜线上的 dsl和以太网技术,同轴电缆 上的 hfc 技术,光纤上的各种有源和无源技术,以及无线的宽带接入技术等。当前各 种宽带接入技术都在发展和应用,从世界范围看,电信公司是以 adsl为主发展的10。 1.2.1 xdsl 技术 数字用户线(digital subscriber line, dsl)是基于普通电话线的宽带接入技术,它 在同一对铜线上分别传送数据和语音信号。数据信号并不通过电话交换设备,可以减 轻电话交换机的负担;而且无需拨号,一直在线,不需要缴付另外的电话费11。xdsl 中的“ x” 代表何种数字用户线技术,如不对称数字用户线(adsl) 、高速数字用户线 华 中 科 技 大 学 硕 士 学 位 论 文 3 (hdsl)和高速不对称数字用户线(vdsl)等。从表 1- 1 可以看出,它们的主要区 别在于上下行链路的对称性以及传输速率和有效距离有所不同。 表 1- 1 xdsl 的几种类型 xdsl 对称性 下行带宽 上行带宽 极限传输距离 dsl 对称 160kb/s 160kb/s 4.65.5km adsl 非对称 68mb/s 640kb/s1mb/s 2.73.6km hdsl(2 对线) 对称 1.5mb/s 1.5mb/s 2.73.6km hdsl(1 对线) 对称 768kb/s 768kb/s 2.73.6km vdsl 非对称 25mb/s 1.62.3mb/s valid = *(u_int *)(newvar.var); 正确代码: newvar.var = if(halifget(void*)epd_dev_unit(pepd),hal_if_quemappritypevalid,(voi d *)( else data_tmp- valid = *(u_int *)(newvar.var); 分析:一定要记住给指针初始化,微初始化的指针会指向一个未知的内存,给未 知的内存赋值或从未知的内存读取值时,会引起段错误。 调试过程目的是为了检查代码编写中的各种错误,包括语法错误、功能错误以及 重大内存泄漏等错误,然后修改代码直到没有错误为止。 华 中 科 技 大 学 硕 士 学 位 论 文 47 5 qos 功能测试 epon pt2500 软件系统的测试通过命令行和 snmp 两种方法进行,测试管理信息 能否正确的传达到设备,以及从设备能否获取正确的信息,并逐级检查函数调用的返 回码是否正确。 如图 5- 1 所示,要进行测试,先要让 epon 软件系统运行起来。具体方法是通过 远程登陆连接到 olt 设备,进入/tmp 目录,然后运行./snmpd_ppc。 图 5- 1 olt 设备/tmp 目录 接着运行./cli_ppc,就可以启动命令行网管。qos 模块命令行网管测试的界面如图 5- 2 所示。 图 5- 2 命令行界面 只需要顺序输入 qos 节点下命令列表中的所有命令,即可完成测试。 华 中 科 技 大 学 硕 士 学 位 论 文 48 snmp 测试采用 mib browser 工具。 mib browser 是一个便于用户使用的工具,用 来测试和监管网络上的多个 snmp 设备。 它允许网管工程师加载标准的或专有的 mib, 并通过设备上运行的 snmp 代理检索有关软件和硬件配置的数据。 mib browser 工具界面如图 5- 3 所示。 在 remote snmp agent 地址栏里输入 snmp 代理的 ip 地址进行连接,连接成功以后就可以进行 snmp 测试。 图 5- 3 mib browser 界面 通过 set 和 get 可以对单个 mib 节点进行读写操作,也可以通过“multiple variable bindings”一次对多个 mib 节点进行写操作,通过“walk”一次读取多个 mib 节点信 息。设置的信息最终会通过 idb层、中间模块层、hal 层、固件传达到 olt 和 onu 设备。 华 中 科 技 大 学 硕 士 学 位 论 文 49 测试工作按照队列配置、队列映射、队列调度、sla 设置、流量监管、流量整形 和速率等级设置 7 个功能快进行,包括正常情况(设置符合要求的参数值)测试和异 常状态(设置不允许的参数值)测试。 5.1 队列配置 测试项目:队列配置 基本功能测试 测试目的:测试在正常情况下配置队列 测试环境:1、securecrt登录telnet命令行;2、mg- soft mib browser访问mib节点 测试步骤: 1. 在linux服务器上qos结点下运行测试命令如下: pt2500(config- qos)# queue- config 1/1/1 both 8 10 10 10 10 10 10 10 10 pt2500(config- qos)# no queue- config 1/1/1 2. 在mib broswer下对pontquesizetable表进行multiple variable bindings 预期结果: 1. 执行成功,则显示 pt2500(config- qos)#queue- config 1/1/1 both 8 10 10 10 10 10 10 10 10 succeed in seting queue size. 2. 通过命令可以查看是否设置成功 pt2500(config- qos)#display queue- config 1/1/1 1/1/1.0 queue0 size is 10. 1/1/1.7 queue7 size is 10. 1/1/1/1 queue0 size is 10. 1/1/1/2 queue7 size is 10. 3. 执行成功,则显示 pt2500(config- qos)#no queue- config 1/1/1 (默认情况下队列大小为 2) succeed in seting default queue size. 4. 通过命令可以查看是否设置成功 华 中 科 技 大 学 硕 士 学 位 论 文 50 pt2500(config- qos)#display queue- config 1/1/1 1/1/1.0 queue0 size is 2. 1/1/1/2 queue7 size is 2. 5. 在 mib broswer 下对 pontquesizetable 表进行设置后通过 walk 操作,成功显示: * snmp query started * 2: pontquesizeindex.1359479041 (gauge) 1359479041 7: pontquesizebitmap.1359479041 (octet string) ff (hex) 12: pontque0size.1359479041 (integer) 10 17: pontque1size.1359479041 (integer) 10 22: pontque2size.1359479041 (integer) 10 27: pontque3size.1359479041 (integer) 10 32: pontque4size.1359479041 (integer) 10 37: pontque5size.1359479041 (integer) 10 42: pontque6size.1359479041 (integer) 10 47: pontque7size.1359479041 (integer) 10 * snmp query finished * 测试结果:与预期结果一致 测试项目:队列配置 异常测试 测试目的:测试在异常情况下配置队列 测试环境:1、securecrt登录telnet命令行;2、mg- soft mib browser访问mib节点 测试步骤: 1. 在linux服务器上qos结点下运行测试格式错误的命令如下: pt2500(config- qos)# queue- config 1/1/1 both 8 10 10 10 10 10 10 10(参数个数不够) pt2500(config- qos)# no queue- config 1/1/1/1 2. 在mib broswer下通过set操作设置pontquesizetable表节点如下: * snmp set- response start * 1: pontque0size.1359479041 (integer) 1000 * snmp set- response end * 预期结果: 1. 命令执行失败: pt2500(config- qos)# queue- config 1/1/1 both 8 10 10 10 10 10 10 10 %failed to call queue size setall. 2. mib browser报错,提示“ command failed” 3. cli命令和mib命令均无法成功执行 测试结果:与预期结果一致 华 中 科 技 大 学 硕 士 学 位 论 文 51 5.2 队列映射 测试项目:队列映射 基本功能测试 测试目的:测试在正常情况下配置队列映射 测试环境:1、securecrt登录telnet命令行;2、mg- soft mib browser访问mib节点 测试步骤: 1. 在linux服务器上qos结点下运行测试命令如下: pt2500(config- qos)#queue- map 1/1/1 cos 0 1 2 3 4 5 6 7 pt2500(config- qos)#no queue- map 1/1/1 cos 2. 在mib broswer下对pontquemaptable表进行multiple variable bindings 预期结果: 1. 执行成功,则显示 pt2500(config- qos)#queue- map 1/1/1 cos 0 1 2 3 4 5 6 7 succeed in seting queue map. 2. 通过命令可以查看是否设置成功 pt2500(config- qos)#display queue- map 1/1/1 1/1/1/1 priority type is cos. 1/1/1/1 queue0 map is 0. 1/1/1/1 queue7 map is 7. 3. 执行成功,则显示 pt2500(config- qos)#no queue- map 1/1/1 cos (默认情况下都映射到 0 优先级队列) succeed in seting queue map. 4. 通过命令可以查看是否设置成功 pt2500(config- qos)#display queue- map 1/1/1 1/1/1/1 priority type is cos. 1/1/1/1 queue0 map is 0. 华 中 科 技 大 学 硕 士 学 位 论 文 52 1/1/1/1 queue7 map is 0. 5. 在mib broswer下对pontquemaptable表进行设置后通过walk操作,成功显示: * snmp query started * 1: pontquemapindex.1359479041.0 (gauge) 1359479041 3: pontquemapinputprioritytype.1359479041.0 (integer) cos(0) 5: pontquemapbitmap.1359479041.0 (octet string) ff (hex) 9: pontquemapprio0toque.1359479041.0 (integer) 0 11: pontquemapprio1toque.1359479041.0 (integer) 1 13: pontquemapprio2toque.1359479041.0 (integer) 2 15: pontquemapprio3toque.1359479041.0 (integer) 3 17: pontquemapprio4toque.1359479041.0 (integer) 4 19: pontquemapprio5toque.1359479041.0 (integer) 5 21: pontquemapprio6toque.1359479041.0 (integer) 6 23: pontquemapprio7toque.1359479041.0 (integer) 7 25: pontquemapsetall.1359479041.0 (integer) 0 * snmp query finished * 测试结果:与预期结果一致 测试项目:队列映射 异常测试 测试目的:测试在异常情况下配置队列映射 测试环境:1 、s e c u r e c r t 登录t e l n e t 命令行;2 、m g - s o f t m i b b r o w s e r 访问m i b 节点 测试步骤: 1. 在linux服务器上qos结点下运行测试格式错误的命令如下: pt2500(config- qos)#queue- map 1/1/1 cos 8 1 2 3 4 5 6 17(错误队列号) pt2500(config- qos)#no queue- map 1/1/1/1 cos 2. 在mib broswer下通过set操作设置pontquemaptable表节点如下: * snmp set- response start * 1: pontquemapprio1toque.1359479041.0 (integer) 11 * snmp set- response end * 预期结果: 1. 命令执行失败: pt2500(config- qos)#queue- map 1/1/1 cos 8 1 2 3 4 5 6 17 %failed to call queue map setall. 2. mib browser报错,提示“command failed” 3 . cli命令和mib命令均无法成功执行 测试结果:与预期结果一致 华 中 科 技 大 学 硕 士 学 位 论 文 53 5.3 队列调度 测试项目:队列调度 基本功能测试 测试目的:测试在正常情况下配置队列调度 测试环境:1 、s e c u r e c r t 登录t e l n e t 命令行;2 、m g - s o f t m i b b r o w s e r 访问m i b 节点 测试步骤: 1. 在linux服务器上qos结点下运行测试命令如下: pt2500(config- qos)#queue- schedule 1/1/1 sp+wrr 0 10 0 10 0 20 0 20 2. 在mib broswer下对pontquescheduletable表进行multiple variable bindings 预期结果: 1. 执行成功,则显示 pt2500(config- qos)#queue- schedule 1/1/1 sp+wrr 0 10 0 10 0 20 0 20 succeed in seting queue schedule. 2. 通过命令可以查看是否设置成功 pt2500(config- qos)#display queue- schedule 1/1/1 1/1/1/1 queue schedule type is sp+wrr. 1/1/1/1 queue0 weight is 0. 1/1/1/1 queue1 weight is 10. 1/1/1/1 queue4 weight is 0. 1/1/1/1 queue5 weight is 20. 3. 执行成功,则显示 pt2500(config- qos)#no queue- schedule 1/1/1 succeed in seting default queue schedule. 4. 通过命令可以查看是否设置成功 pt2500(config- qos)#display queue- schedule 1/1/1 1/1/1/1 queue schedule type is wrr. 1/1/1/1 queue0 weight is 2. 华 中 科 技 大 学 硕 士 学 位 论 文 54 1/1/1/1 queue7 weight is 2. 5 . 在mib broswer下对pontquescheduletable表进行设置后通过walk操作 * snmp query started * 1: pontquescheduleindex.1359479041 (gauge) 1359479041 5: pontqueschedulebitmap.1359479041 (octet string) ff (hex) 9: pontqueschedulemode.1359479041 (integer) wrr- sp(2) 13: pontquescheduleweight0.1359479041 (integer) 0 17: pontquescheduleweight1.1359479041 (integer) 10 21: pontquescheduleweight2.1359479041 (integer) 0 25: pontquescheduleweight3.1359479041 (integer) 10 29: pontquescheduleweight4.1359479041 (integer) 0 33: pontquescheduleweight5.1359479041 (integer) 20 37: pontquescheduleweight6.1359479041 (integer) 0 41: pontquescheduleweight7.1359479041 (integer) 20 * snmp query finished * 测试结果:与预期结果一致 测试项目:队列调度 异常测试 测试目的:测试在异常情况下配置队列调度 测试环境:1 、s e c u r e c r t 登录t e l n e t 命令行;2 、m g - s o f t m i b b r o w s e r 访问m i b 节点 测试步骤: 1. 在linux服务器上qos结点下运行测试格式错误的命令如下: pt2500(config- qos)#queue- schedule 1/1/1 sp 0 10 0 10 0 20 0 20 pt2500(config- qos)#no queue- schedule 1/1/1/1 2. 在mib broswer下通过set操作设置pontquemaptable表节点如下: * snmp set- response start * 1: pontquemapprio1toque.1359479041.0 (integer) 11 * snmp set- response end * 预期结果: 1. 命令执行失败: pt2500(config- qos)#queue- schedule 1/1/1 sp 0 10 0 10 0 20 0 20 failed to call queue schedule setall. 2. mib browser报错,提示“command failed” 3 . cli命令和mib命令均无法成功执行 测试结果:与预期结果一致 华 中 科 技 大 学 硕 士 学 位 论 文 55 5.4 业务等级协定(sla) 测试项目:sla设置 基本功能测试 测试目的:设置逻辑链路上下行的s l a 参数 测试环境:1 、s e c u r e c r t 登录t e l n e t 命令行;2 、m g - s o f t m i b b r o w s e r 访问m i b 节点 测试步骤: 1. 在linux服务器上qos结点下运行测试命令如下: pt2500(config- qos)#sla 1/1/1.0 up 345 3 5 6 666 45 6 7 report 6 pt2500(config- qos)#no sla 1/1/1.0 up 2. 在mib broswer下对pontslatable表进行multiple variable bindings 预期结果: 1. 命令行成功,显示 pt2500(config- qos)#sla 1/1/1.0 up 345 3 5 6 666 45 6 7 report 6 %set sla success! pt2500(config- qos)# 2. 设置sla后,通过display命令可查询到当前设置的sla参数 pt2500(config- qos)#display sla 1/1/1.0 up linklable : 1/1/1.0 pontsladirection : up pontslaminguaranteedbw : 256 pontslaminburstsize : 1 pontslaminschedulerlevel : 0 pontslaminweight : 4 pontslamaxallowedbw : 556 pontslamaxburstsize : 2 pontslamaxschedulerlevel : 3 pontslamaxweight : 5 pontsladbaforcereport : disable pontsladbapollinglevel : 0 pontslatdmrate : 45 华 中 科 技 大 学 硕 士 学 位 论 文 56 pontslatdmgrantlength : 89 3. 命令行成功,显示 pt2500(config- qos)#no sla 1/1/1.0 up %no sla success! 4. 设置sla后,通过display命令可查询到当前设置的sla参数 pt2500(config- qos)#display sla 1/1/1.0 up linklable : 1/1/1.0 pontsladirection : up pontslaminguaranteedbw : 0 pontslaminburstsize : 0 xffff pontslaminschedulerlevel : 0 xff pontslaminweight : 0 xffff pontslamaxallowedbw : 100000 pontslamaxburstsize : 255 pontslamaxschedulerlevel : 2 pontslamaxweight : 4 pontsladbaforcereport : 1 pontsladbapollinglevel : 0 pontslatdmrate : 0 pontslatdmgrantlength : 0 5 . 在mib broswer下对pontsla表进行设置后通过walk操作,获取系统sla参数 * snmp query started * 1: pontslaindex.1091043584.0 (gauge) 1091043584 3: pontslaqueindex.1091043584.0 (integer) up(0) 5: pontslaminguaranteedbw.1091043584.0 (integer) 256 7: pontslaminburstsize.1091043584.0 (integer) 1 9: pontslaminschedulerlevel.1091043584.0 (integer) 0 11: pontslaminweight.1091043584.0 (integer) 4 13: pontslamaxallowedbw.1091043584.0 (integer) 556 15: pontslamaxburstsize.1091043584.0 (integer) 2 17: pontslamaxschedulerlevel.1091043584.0 (integer) 3 19: pontslamaxweight.1091043584.0 (integer) 5 21: pontsladbatokens.1091043584.0 (integer) 12 23: pontsladbaforcereport.1091043584.0 (integer) disable(0) 25: pontsladbapollinglevel.1091043584.0 (integer) 0 27: pontslatdmrate.1091043584.0 (integer) 45 29: pontslatdmgrantlength.1091043584.0 (integer) 89 31: pontslasetall.1091043584.0 (integer) 0 * snmp query finished * 测试结果:与预期结果一致 华 中 科 技 大 学 硕 士 学 位 论 文 57 问题备注:上行分两种情况:一种是设置倒数第 3 和第 4 参数,另一种是设置最后两个 参数,如果同时设置这四个参数,则这四个参数都被置为 0;下行只有一种情况,不用 设置最后的四个参数 测试项目:sla设置 异常测试 测试目的:测试异常情况下设置sla参数 测试环境:1 、s e c u r e c r t 登录t e l n e t 命令行;2 、m g - s o f t m i b b r o w s e r 访问m i b 节点 测试步骤: 1. 设置的sla参数不符合要求(sla参数要求最高调度水平值应大于最低调度水平 值) : pt2500(config- qos)#sla 1/1/1.0 up 345 3 5 6 666 45 4 7 report 6 2. 在mib broswer下对pontslatable表进行multiple variable bindings: 预期结果: 1. 命令执行失败: pt2500(config- qos)#sla 1/1/1.0 up 345 3 5 6 666 45 6 7 report 6 %failed to config pontslaminschedulerlevel. 2. mib browser报错,提示“command failed” 3 . cli命令和mib命令均无法成功执行 测试结果:与预期结果一致 华 中 科 技 大 学 硕 士 学 位 论 文 58 5.5 流量监管(policing) 测试项目:p o l i c i n g 设置 基本功能测试 测试目的:设置policing参数 测试环境:1 、s e c u r e c r t 登录t e l n e t 命令行;2 、m g - s o f t m i b b r o w s e r 访问m i b 节点 测试步骤: 1. 在linux服务器上qos结点下运行测试命令如下: pt2500(config- qos)#policing 1/1/1/1 kbps 1011 345 2. mib broswer下对ponttrafficpolicingtable表进行multiple variable bindings * snmp set- response start * 1: ponttrafficpoclingtype.1359479041 (octet string) 96 (hex) 2: ponttrafficpoclingunit.1359479041 (integer) kbps(0) 3: ponttrafficpolicingcir.1359479041 (integer) 123 4: ponttrafficpolicingcbs.1359479041 (integer) 234 5: ponttrafficpolicingebs.1359479041 (integer) 345 6: ponttrafficpolicingsetall.1359479041 (integer) 1 * snmp set- response end * 预期结果: 1. 命令行成功,显示 pt2500(config- qos)#policing 1/1/1/1 kbps 1011 345 %set policing success! 2. 设置policing参数后,通过display policing 1/1/1/1命令可查询已设置的policing参数 pt2500(config- qos)#display policing 1/1/1/1 objectindex state type unit cir cbs ebs 1/1/1/1 disable 1011 kbps 345 0 0 3. 在mib broswer下通过对ponttrafficpolicingtable表进行walk操作获取各节点值: * snmp query started * 2: ponttrafficpoclingindex.1359479041 (gauge) 1359479041 14: ponttrafficpoclingtype.1359479041 (octet string) 96 (hex) 20: ponttrafficpoclingunit.1359479041 (integer) kbps(0) 26: ponttrafficpolicingcir.1359479041 (integer) 123 32: ponttrafficpolicingcbs.1359479041 (integer) 234 38: ponttrafficpolicingebs.1359479041 (integer) 345 44: ponttrafficpolicingsetall.1359479041 (integer) 1 * snmp query finished * 测试结果:与预期结果一致 问题备注:ponttrafficpoclingunit节点暂时只能设置为kbps,因tk固件并不支持pps,如 设置为pps不能成功 华 中 科 技 大 学 硕 士 学 位

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论