【正文】
實現(xiàn)測試方法和運行相關測試控制數(shù)據(jù)的測試系統(tǒng)的研究與開發(fā)。由于目前實驗室的雙端口測試器的開發(fā)工作尚未完成,因此未能進行編譯并用于實際的測試。第4章是筆者的主要工作,分別完成測試例生成兩個重要步驟——測試集的規(guī)劃和抽象測試例描述。然后介紹本研究工作的背景是四川省網(wǎng)絡通信重點實驗室的路由器多端口并發(fā)測試技術研究和系統(tǒng)的開發(fā)。西 南 交 通 大 學研 究 生 學 位 論 文路由器中SNMP協(xié)議測試集規(guī)劃與定義技術研究Classified Index: Southwest Jiaotong UniversityMaster Degree ThesisOn Techniques of Test Suite Planning and Test Case Specification for SNMP Implementations in RoutersGrade: 2002Candidate: Cheng YupingAcademic Degree Applied for: MasterSpeciality: Computer ApplicationSupervisor: Prof. Zeng Huashen September 2005 西南交通大學碩士研究生學位論文 第 VII 頁摘 要路由器的測試技術涉及三方面的內(nèi)容:測試方法研究、測試控制數(shù)據(jù)的描述/自動導出技術研究、測試系統(tǒng)的開發(fā)。第1章筆者首先簡要討論國內(nèi)外路由器測試系統(tǒng)現(xiàn)狀,指出路由器多端口并行測試技術存在的問題。第2章對SNMP,特別是SNMPv2協(xié)議進行了概要的介紹,然后對與SNMPv2有關的測試技術進行初步的討論,為后續(xù)章節(jié)的討論奠定基礎。第5章在對論文工作進行總結(jié)的基礎上,對后續(xù)研究工作進行了分析和展望。關鍵詞:路由器測試、測試集規(guī)劃、測試集描述、SNMP、TTCN3AbstractThe technical background of this dissertation is router testing, which involves test methods, test definition/specification techniques and process, and test systems. The dissertation focused on techniques of test suite planning as well as test specification with an emphasis on the Simple Network Management Protocol (SNMP) and a standard specification language called TTCN3. The author’s work is part of the research and development activities at Sichuan Network Communication Technology Key Laboratory (SCNet Lab) to promote a new test method and test definition language and to develop a new generation of test systems for multiport highspeed routers.In Chapter 1, a prehensive discussion on router testing techniques is given toreexamine shortings of existing testing techniques. A framework for multiportrouter testing at SCNet Lab is presented, which involves the Multiport RouterDistributed Synchronized Test Method (MRDSTM), Concurrent MultiPort TestDistributed Synchronized Test Method (MRDSTM), Concurrent MultiPort Test Definition language (CMPTDL), and a multiport router test system.In Chapter 2 first presents a prehensive study on the Simple Network Management Protocol (SNMP) in Internet together with a generic discussion on SNMP testing. An emphasis has been given, in this dissertation, to testing of implementations of version 2 of SNMP (SNMPv2) in a twoport testing environment although the technique in a multiport testing environment was also briefly analyzed. Chapters 3 and 4 are the main parts of this dissertation, which are dedicated to techniques of two important steps in test case generation, . generic test suite planning and test case specification. To stress the importance of test suite planning, Chapter 3 first examines the procedural steps in conformance testing. A framework of the Generic Test Suite (GTS) for SNMPv2 is also provided with a systematic discussion. Chapter 4 is devoted to test case specification for SNMPv2 with detailed discussions on data definition, behavior and test control descriptions respectively. Finally, Chapter 5 concluded this thesis followed by a forward view for future work.As the router testing system at SCNet Lab is still under development and the test suite defined has not yet been applied to real testing, and for the reason that the SNMP protocol set is plex and involves twenty more RFCs, the work presented in this M. Sc. dissertation is preliminary. However, the author believes that this work will provide a sound basis for future “test suite specification”, eapecially for a plete SNMP test sutie.Keywords: Router Testing, Test suite Planning, Test suite Specification, Simple Network Management Protocol (SNMP), TTCN3 目 錄摘 要 I目 錄 V第1章 引言 1 本論文的研究背景 1 IPv6路由器多端口并行測試技術研究提出的背景 1 國、內(nèi)外路由器測試系統(tǒng)現(xiàn)狀 3 四川省網(wǎng)絡通信技術重點實驗室關于測試技術的研究概貌 7 本研究工作的測試對象SNMPv2 10 論文結(jié)構組織 11 作者的工作與論文的貢獻 11第2章 SNMPv2及測試技術 13 簡單網(wǎng)絡管理協(xié)議SNMP及SNMPv2 13 SNMP歷史的簡短回顧 13 SNMP的應用模式——客戶機/(多)服務器模式 14 SNMP網(wǎng)絡管理信息與管理信息庫(MIB) 16 SNMP網(wǎng)絡管理實體(Entity)的功能結(jié)構 17 SNMP的協(xié)議數(shù)據(jù)單元(PDU) 17 RMON對SNMP系列標準的擴充 18 SNMP協(xié)議測試技術 19 利用雙端口測試系統(tǒng)測試SNMP的技術 19 測試控制數(shù)據(jù)及其描述語言TTCN3 20 SNMPv2多端口并發(fā)測試 22第3章 SNMPv2通用測試集GTS規(guī)劃 23 測試控制數(shù)據(jù)定義/描述技術 23 通用測試集、抽象測試集和可執(zhí)行測試集 23 24 一致性測試集規(guī)劃原則 25 25 27 測試數(shù)據(jù)的命名和編碼規(guī)則 29 SNMPv2一致性通用測試集規(guī)劃 30 SNMPv2報文格式測試GTS規(guī)劃 30 MIBII通用測試集GTS規(guī)劃 32 RMON1 MIB通用測試集GTS規(guī)劃 34 RMON2 MIB通用測試集GTS規(guī)劃 36 36 狀態(tài)對象RowStatus的通用測試集GTS規(guī)劃 39第4章 SNMPv2測試例TTCN3的描述及測試 43 測試數(shù)據(jù)類型定義 43 SNMPv2數(shù)據(jù)類型 43 SNMPv2常用文本標識符 44 SNMPv2數(shù)據(jù)包定義 44 TTCN3類型概要 46 SNMPv2報文數(shù)據(jù)類型定義 47 測試數(shù)據(jù)定義 50 消息模板的定義、發(fā)送和接送 50 模板的匹配機制 51 模板參數(shù)化 51 SNMPv2測試數(shù)據(jù)定義 52 測試配置定義 57 測試行為定義 59 TTCN3行為語句 60 測試例 61 不帶參數(shù)的標量對象測試例 62 帶參數(shù)標量對象測試例 63 MIBII信息庫中列對象的逐行測試 65 ipRouteTable表列對象抽取測試 71 RMON1中列對象測試 72 子網(wǎng)掩碼對象的測試 73 對象ipAdEntBcastAddr的測試 75 測試控制部分的定義 78第5章 總結(jié)與展望 79 論文工作總結(jié) 79 后續(xù)工作展望 79致 謝 81參考文獻 82攻讀碩士學位期間發(fā)表的論文及科研成果 87附錄1 通用測試集規(guī)劃表 88表1 SNMPv2通用測試集規(guī)劃表 88表2 MIBII 、RMON1 MIB、RMON2 MIB通用測試集GTS規(guī)劃表 89表3 列對象etherStatsStatus通用測試集GTS規(guī)劃表 90表4 列對象protocolDirStatus通用測試集GTS規(guī)劃表 91附錄2 ipRouteProto列對象抽取測試測試例 96附錄3 historyControlInterval列對象測試例 98附錄4 ipRouteMask列對象抽取測試測試例 101附錄5 ipAdEntNetBcastAddr列對象抽取測試測試例 105 西南交通大學碩士研究生學位論文 第 31 頁第1章 引言 本論文的研究背景本論文的研究背景是Internet路由器中的“簡單網(wǎng)絡管理協(xié)議(SNMP – Simple Network Management Protocol)實現(xiàn)”的測試,它是四川省網(wǎng)絡通信技術重點實驗室有關路由器的測試技術研究工作的組成部分之一。LTM進行測試時,發(fā)送測試數(shù)據(jù)給路由器,在被測實現(xiàn)或系統(tǒng)內(nèi)部或外部鏈路上實現(xiàn)回環(huán)。由于這種方法模擬路由器在一對端口間轉(zhuǎn)發(fā)數(shù)據(jù)的工作過程,其測試功能較LTM只能測試單端口的能力更強,由于測試數(shù)據(jù)穿越了路由器的一對端口故稱為“穿越測試法”。換言之,路由器是由包括應用層協(xié)議在內(nèi)的信令控制和管理平臺(Samp。因此,對路由器的測試將包括對U平臺和Samp?,F(xiàn)代路由器的特點是端口多(如園區(qū)網(wǎng)、城域網(wǎng)的三層交換機可以有數(shù)十上百個端口)和端口速率高(Gbps甚至更高)。為了適應多端口并行同步測試的需要,相關的測試控制數(shù)據(jù)定義語言和相關工具也必須支持并行同步測試的需要,而現(xiàn)有的測試描述語言,包括歐洲標準化機構對ISO的樹表結(jié)合的標記語言TTCN(Table and Tree Combined Notation)的擴展語言TTCN3在內(nèi),都沒有提供一個完整的描述并發(fā)性的機制。第2類方式中的轉(zhuǎn)換方式可適用于IPv4網(wǎng)與IPv6網(wǎng)的直接互聯(lián);而“渡船”方式則適用于全球Internet中的各自治網(wǎng)絡仍以IPv4為主的情況,一對支持IPv6的計算機(或網(wǎng)絡)借助與IPv4網(wǎng)作為過渡的工具,將IPv6分組作為IPv4的用戶數(shù)據(jù)封裝(Encapsulated)在IPv4報文之中傳輸?shù)姆绞健? 作為全面的路由器測試評價系統(tǒng)必須具備多種測試能力(一致性測試、性能測試、互通與仲裁測試)。前者為研究性測試系統(tǒng),以大學、研究機構開發(fā)的系統(tǒng)為主,采用主動