【正文】
nt pass_next。這個結(jié)構(gòu)體中的每一個成員都和測試例執(zhí)行規(guī)則表中的每一項一一相關(guān)。在這種情況下,可能需要人工對測試器記錄的被測 PDU 流、命令流和支持層 PDU 數(shù)據(jù)流進行分析。(2)測試例名:進行測試例規(guī)劃時,對測試例的命名。測試例函數(shù)在執(zhí)行中,自動向路由器發(fā)送數(shù)據(jù),接收反饋數(shù)據(jù),根據(jù)反饋數(shù)據(jù)得出執(zhí)行結(jié)果,最后把結(jié)果以返回值的形式送測試管理器。所有的測試集,以函數(shù)庫的形式存在于系統(tǒng)中,測試管理器可以直接通過調(diào)用對應(yīng)函數(shù)來達到執(zhí)行測試例的目的。在此過程中,測試例可以與被測路由器進行數(shù)據(jù)通信并通過收到的數(shù)據(jù)判定測試例執(zhí)行的結(jié)果。在分布式多端口同步并行測試系統(tǒng)中,上層管理器端有一個總系統(tǒng)數(shù)據(jù)西南交通大學(xué)碩士研究生畢業(yè)論文 第 19 頁庫,下層的若干個雙端口測試系統(tǒng)都可以共享其中的數(shù)據(jù)。在圖中可以清楚地看到,在測試結(jié)束后,測試結(jié)果分析與測試報告生成模塊只需直接從系統(tǒng)數(shù)據(jù)庫中讀取各測試例執(zhí)行的結(jié)果和相關(guān)的測試數(shù)據(jù)就可以得出測試結(jié)果和測試報告。通過分析支撐層 PDU 數(shù)據(jù)流可能有助于進一步確定被測層出現(xiàn)的問題 [16]。按照測試例執(zhí)行序列的順序驅(qū)動漫游器逐個執(zhí)行測試例;測試進行過程中,記錄測試例執(zhí)行結(jié)果并寫入系統(tǒng)數(shù)據(jù)庫,調(diào)用測試集/組/例管理模塊對測試例執(zhí)行進行管理;測試例全部執(zhí)行完畢后,驅(qū)動測試結(jié)果分析與測試報告生成模塊進行結(jié)果分析并生成測試報告。在測試進行期間動態(tài)顯示每一個測試例執(zhí)行的情況;測試例全部執(zhí)行完畢后,顯示測試報告?!皽y試數(shù)據(jù)傳輸模塊”用于在用戶接口模塊內(nèi)部的子模塊間或與其他模塊進行數(shù)據(jù)傳輸。 “新建測試”命令,由向?qū)е敢脩粜陆ㄒ粋€測試項目。這是因為,在分布式多端口同步并行測試系統(tǒng)管理器端有分布式系統(tǒng)的用戶接口模塊和整個系統(tǒng)的數(shù)據(jù)庫。 雙端口測試管理器路由器雙端口測試管理器是測試系統(tǒng)的核心部件,同時也是筆者研究與開發(fā)的對象。出于對未來高速路由器的多端口同步并行測試考慮,對測試例執(zhí)行效率要求較高,因此在筆者涉及的測試系統(tǒng)開發(fā)中采用了編譯方式 [19]。通過執(zhí)行不同測試例,雙端口測試系統(tǒng)可以靈活的進行不同的測試任務(wù)。 作者的工作與論文的貢獻作者在西南交通大學(xué)網(wǎng)絡(luò)通信技術(shù)省重點實驗室承擔的主要工作是對路由器雙端口測試管理器的研究與開發(fā)并探討了雙端口測試系統(tǒng)與上層分布式多端口同步并行測試系統(tǒng)的通信方法。綜上所述,筆者對雙端口測試管理器的研究與設(shè)計為整個系統(tǒng)的實現(xiàn)打下了良好基礎(chǔ)。至分布式多端口同步并行測試系統(tǒng)抽象測試集(用 TTCN3語言描述)TTCN→C 編譯C→機器代碼編譯DE西南交通大學(xué)碩士研究生畢業(yè)論文 第 7 頁與路由器分布式多端口同步并行測試系統(tǒng)間通信的橋梁。從圖中可以看出,路由器雙端口測試器主要由路由器雙端口測試管理器、測試支撐工具和測試數(shù)據(jù)組成。針對現(xiàn)有的多端口路由器測試技術(shù)中存在的問題,筆者所在實驗室提出了“分布式多端口同步并行穿越測試法”(DMSPTTM Distributed Multiport Synchronized ParallelTTM),并定義了并發(fā)多端口測試定義語言(CMPTDL-Concurrent Multiport Test Definition Language) [1415]。國內(nèi)關(guān)于協(xié)議測試技術(shù)的研究,在 80年代中后期和 90年代初中期有較多的單位開展。類似的工作還有 HP測試儀和Compaq的測試軟件,根據(jù)相關(guān)資料重點在互通測試與性能測試。① 建立測試環(huán)境(Test bed)的研究活動:主要研究實體有兩類:IETF 和網(wǎng)絡(luò)公司(或大型網(wǎng)絡(luò)運營者) 。路由器或交換路由器是 Inter 中實現(xiàn)系統(tǒng)互聯(lián)的多端口高速交換設(shè)備,目前主要是采用ISO9646 規(guī)定的兩種抽象測試法,即對單端口的“回繞測試法” (LTM Loopback Test Method)或?qū)σ粚Χ丝诘摹按┰綔y試法”(TTM Transverse Test Method) [45]。關(guān)鍵詞:多端口分布式同步并行穿越測試法(MDSPTTM) ;路由器雙端口測試系統(tǒng)管理器(RTPTM) ;測試例選擇管理西南交通大學(xué)碩士研究生畢業(yè)論文 第 III 頁Abstract The background of this dissertation is router testing techniques. The main futures of modern router in the process of migrating from IPv4 to IPv6 are characterized by multiports, highspeed, and plication in supporting both IPv4 and IPv6. The orthodox test methods defined in ISO 9646, . LTM (Loopback Test Method) and TTM (Transverse Test Method) are not catered for such router testing. Performance testing for highspeed routers demands highefficiency in testing as well as synchronization among multiports. All these have spurred the research activities at Sichuan Network Communication Key Laboratory (SCNet Lab), which are represented by the novel test method called DMSPTTM (Distributed Multiport Synchronized Parallel – TTM) and development of MPRDCTS (MultiPort Router – Distributed Concurrent Test System). The distributed multiport concurrent test system under development at SCNet Lab takes a twolayer structure: the upper layer formed of the Router MultiPort Test Manager (RMPTM) and the lower layer posed of multiple “Router TwoPort Testers (RTPT)”. RTPTM deals with multiport test issues such as RTPT configuration, test case distribution, and synchronization among multiple RTPTs. RTPT on the other hand, supports both LTM and TTM and acts either as an independent test device or the lowlayer device of the MPRDCTS.The work presented in this dissertation is focused on techniques relevant to RTPTM (Router TwoPort Test Manager). The roles of an RTPTM in the MPRDCTS are twofold: to act as the control and management entity for an RTPT, and to provide interface functions between RTPT and RTPTM in an MPRDCTS or between RTPT and test operator when the RTPT works independently.The main contributions of this dissertation can be summarized as:A. Provisioning of a functional framework for RTPTM through detailed analysis and design, and implementation of user interface module and test case selection module.B. To improve test efficiency via dynamic test case selection according to test case execution result, a TSRT (Testcase SelectionRules Table) is designed and generic test selection methods for single state and multistates protocols are provided.西南交通大學(xué)碩士研究生畢業(yè)論文 第 IV 頁C. To provide a basis for future development of MPRDCTS, munication issues between the RTPTM and the RMPTM are also provided.Keywords: MDSPTTM (Multiport Distributed Parallel – Transverse Test Method, RTPTM (Router TwoPort Test Manager) Test Case selection 目 錄摘 要 .....................................................................................................................IAbstract..............................................................................................................III目 錄 ....................................................................................................................V第 1 章 緒論 ...........................................................................................................1 論文的研究背景 .......................................................................................1 分布式多端口同步并行測試的意義 .............................................1西南交通大學(xué)碩士研究生畢業(yè)論文 第 V 頁 分布式多端口同步并行測試系統(tǒng) .................................................4 路由器雙端口測試系統(tǒng) .................................................................5 研究分布式多端口同步并行測試系統(tǒng)下雙端口測試管理器的意義 ....7 論文的組織結(jié)構(gòu) .......................................................................................8 作者的工作與論文的貢獻 ........................................................................8第 2 章 IP 路由器雙端口測試系統(tǒng)功能模塊簡介 .............................................10 路由器雙端口測試系統(tǒng)的簡介 ..............................................................10 路由器雙端口測試系統(tǒng)功能模塊簡介 ..................................................11 測試支撐工具 ................................................................................11 編解碼器和支撐層適配模塊 ........................................................12 雙端口測試管理器 ......................................