[go: up one dir, main page]

WO2008083579A1 - Method, recording media and system for testing routing message protocol performance of network apparatus - Google Patents

Method, recording media and system for testing routing message protocol performance of network apparatus Download PDF

Info

Publication number
WO2008083579A1
WO2008083579A1 PCT/CN2007/071310 CN2007071310W WO2008083579A1 WO 2008083579 A1 WO2008083579 A1 WO 2008083579A1 CN 2007071310 W CN2007071310 W CN 2007071310W WO 2008083579 A1 WO2008083579 A1 WO 2008083579A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
routing
under test
device under
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2007/071310
Other languages
French (fr)
Chinese (zh)
Inventor
Chunbo Wang
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2008083579A1 publication Critical patent/WO2008083579A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/0864Round trip delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing

Definitions

  • the present invention relates to the field of communication testing, and in particular, to a method, a storage medium, and a system for testing the performance of a routing information protocol of a network device.
  • Internet Internet
  • communication equipment manufacturers have launched their own network devices such as routers and Ethernet switches.
  • a network device runs on the Internet, it often fails because of the number of routes that need to be processed. Therefore, it is necessary to test the faulty network device.
  • testing a failed router it is often necessary to reproduce the embarrassing environment as much as possible. The most important point is to add a real route to the router that has problems.
  • IPV6 Routing Information Protocol
  • IPV6-based next-generation routing information protocol IPV6-based next-generation routing information protocol
  • test instrument After testing the routing information protocol performance of network devices, it is often necessary to use a special test instrument to add a large number of real routes to the network device.
  • the existing test instruments are generally composed of a dedicated hardware system, and a dedicated embedded operating system is internally operated.
  • the test instrument is operated by control software running on a common platform such as a PC or a workstation, so that the test instrument can simulate RIP/RIPNG with a large amount of RTE (Route Entry) information.
  • test instruments Because the price of test instruments is extremely expensive, the average small and medium network equipment manufacturers are afraid to pay attention. Even the rules The large-scale and strong network equipment R&D units, enterprises and well-known evaluation organizations are also constrained by price factors, resulting in the number of test instruments not fully meeting the needs of development or testing.
  • the embodiment of the present invention is used to solve the problem that the performance of the routing information protocol of the network device is tested in the prior art, which relies on a special test instrument and is expensive.
  • An embodiment of the present invention provides a method for testing performance of a routing information protocol of a network device, where the method includes the following steps:
  • An embodiment of the present invention provides a storage medium, where the storage medium stores an application program for testing a routing information protocol performance of a network device, where the application program includes the following steps:
  • the embodiment of the invention provides a system for testing the performance of a routing information protocol of a network device, where the system includes:
  • an initialization module configured to establish a routing information protocol session with the network device under test, set routing item information, and encapsulate the routing item information into a response message;
  • a message sending module configured to multicast the response message generated by the initialization module to the network device under test
  • the processing module is configured to determine, according to the processing result of the received response message by the network device under test, the routing information protocol performance of the network device under test.
  • the embodiment of the present invention establishes a routing information protocol session with the network device under test by using a software program, and sends a Response message to the network device under test.
  • This not only reduces the development and testing costs of network devices, but also eliminates the reliance on expensive, dedicated, hardware-based test instruments, and can also implement routing tables for the network devices under test by simply changing the configured RTE information. RIP/RIPNG performance testing such as depth and route convergence capabilities, and greatly improved efficiency.
  • FIG. 1 is a schematic diagram of a system for implementing testing by a computer according to an embodiment of the present invention
  • FIG. 2 is a flow chart of a method for testing the performance of a routing information protocol of a network device according to an embodiment of the present invention
  • FIG. 3 is a system structural diagram of testing the performance of a routing information protocol of a network device according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for testing the performance of a routing information protocol of a network device, which is implemented on a general-purpose computer (such as a PC), and specifically includes the following steps:
  • Step 101 Connect the computer to the network device under test, and use the software program on the computer to establish a RIP Session between the computer and the network device under test.
  • the peers established by the Session generate related parameters: such as mask information, the IP address of the network device under test, the timer, and so on;
  • Step 102 Configure multiple pieces of RTE information by using a software program.
  • one piece of RTE information mainly includes the following contents: destination IP address, mask, next hop, route identifier, address family identifier (Address Family Identifier), METRIC value, etc. Wait;
  • Step 103 The software program is used to encapsulate the configured RTE information into multiple Response messages.
  • a Response packet can encapsulate up to 25 RTE information.
  • the number of RTE information that can be encapsulated in a Response packet needs to be based on MTU (Maximum).
  • Step 104 Hej uses the software program to send the generated Response message to the multicast network device.
  • the multicast period is controlled by a preset timer.
  • the period can be defined as 10s, 20s or 30s.
  • Step 105 After the network device under test receives the Response packet sent by the computer, the response packet is received from the Response packet.
  • the RTE information is extracted, and the routing table of the network device under test is updated according to the RTE information, for example, adding a routing entry, deleting a routing entry, or changing the content of the routing entry (METRIC or next hop, etc.) Wait) .
  • the destination IP address is 10.1.1.2
  • the METRIC value is 5.
  • the IP address of an entry is also 10.1. The route of .1.2, but the METRIC value is 2, then the network device under test changes the routing table and changes the METRIC value in the original routing entry to 3 (add 1 to the received METRIC value).
  • the network device under test may first determine whether the Response message is correct. If it is correct, extract the RTE information from the message, and update according to the extracted RTE information. Routing table; otherwise discard the message.
  • a reachable route that is, the METRIC value between 1 and 15
  • a software program on the computer After testing the route convergence capability of the network device under test, first configure a reachable route (that is, the METRIC value between 1 and 15) using a software program on the computer, and package it into a Response message to determine the multicast.
  • the above process is repeated, that is, the above-mentioned routes are alternately changed to reachable and unreachable, and the corresponding Response message is alternately sent to the network device under test, thereby simulating the route flapping in the real network; the network device under test receives After the response packet, the RTE information is extracted.
  • the network device to be tested adds a routing entry to the routing table.
  • the network device under test identifies the original reachable routing entry as Unreachable, that is, change the METRIC value of the original reachable routing entry to 16.
  • the computer can interact with the user by providing a visual interface mode, and the user only needs to click the mouse to select or confirm, or input simple parameters to set, and easily establish the RIP session and RTE information.
  • Configuration, response packet transmission, etc. can also provide non-visual command mode, the user types the command on the computer, thus establishing a session, configuring RTE information And sending messages and other operations; either way, the operation is simple, convenient, fast, and easy to implement. For example, you can easily generate 10,000 RTE information by simply setting a few parameters in your computer.
  • an embodiment of the present invention further provides a system for testing the performance of a routing information protocol of a network device, which specifically includes:
  • an initialization module configured to establish a routing information protocol session with the network device under test by using a program, set routing item information, and encapsulate the routing item information into a response message;
  • a message sending module configured to multicast the response message generated by the initialization module to the network device under test by using a program definition
  • a processing module configured to determine, according to the processing result of the received response message by the network device under test, the routing information protocol performance of the tested network device.
  • the above processing module specifically includes:
  • the routing update unit is configured to: after receiving the response packet sent by the packet sending module, the network device to be tested extracts the routing item information in the response packet, and updates the measured network according to the extracted routing item information. Routing table of the device;
  • a result processing unit configured to update a routing table of the network device under test according to the foregoing routing update unit
  • the above system for testing the routing information protocol performance of a network device further includes:
  • the judging module is configured to determine, after the network device under test receives the response packet, whether the response packet is correct. If the packet is correct, the processing module performs the steps of extracting the routing item information and updating the routing table; otherwise, discarding the response Message.
  • the initialization module is further configured to set different reachable route item information and encapsulate the packet into different response messages; the message sending module is further used to test The network device sends different response packets generated by the initialization module.
  • the processing module determines the depth of the routing table according to the number of entries in the routing table, that is, the routing table. The number of entries in the table is the depth of the routing table.
  • the initialization module is further configured to configure a reachable route (that is, a METRIC value between 1 and 15) and encapsulate the packet into a Response packet.
  • the sending module sends the network device to be tested; and then initializes the module and then modifies the reachable route to be unreachable.
  • the route that is, the METRIC value is changed to 16, the other information is unchanged
  • the reachable and unreachable packets are encapsulated into corresponding Response packets, and the packet sending module is configured to alternately send corresponding Response packets to the network device under test.
  • the network device to be tested extracts the RTE information.
  • the network device under test adds a routing entry to the routing table.
  • the network device under test will be able to The metric value of the routing entry is unreachable. Change the METRIC value of the original reachable routing entry to 16.
  • the processing module determines the route convergence capability of the tested network device according to the capability of the network device under test to update the routing table.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Method, recording media and system in communication test field for testing the routing message protocol performance of a network apparatus, including establishing RIP Session with the tested network apparatus, setting information of routing entries, packaging it into response message, and multicasting the response message to the tested network apparatus periodically. The apparatus processes the response message, and determines the routing message protocol performance of it according to the processing result. The system includes an initialization a module, a message sending module and processing module.

Description

[1] 技术领域  [1] Technical field

[2] 本发明涉及通信测试领域, 特别涉及一种测试网络设备的路由信息协议性能的 方法、 存储介质和系统。  [2] The present invention relates to the field of communication testing, and in particular, to a method, a storage medium, and a system for testing the performance of a routing information protocol of a network device.

[3] 发明背景 [3] Background of the invention

随着 Internet (互联网) 技术的发展, 通信设备厂商纷纷推出自己的路由器、 以 太网交换机等网络设备。 网络设备在网上运行的吋候, 常常因为需要处理的路 由条数很多等原因而出现故障, 因此需要对故障网络设备进行测试。 当对故障 路由器进行测试吋, 通常需要尽可能重现当吋的环境, 其中最重要的一点就是 向路由器添加出现问题吋网上的真实路由。 With the development of Internet (Internet) technology, communication equipment manufacturers have launched their own network devices such as routers and Ethernet switches. When a network device runs on the Internet, it often fails because of the number of routes that need to be processed. Therefore, it is necessary to test the faulty network device. When testing a failed router, it is often necessary to reproduce the embarrassing environment as much as possible. The most important point is to add a real route to the router that has problems.

Figure imgf000003_0001
Figure imgf000003_0001

Protocol, 路由信息协议) 是 Internet上一种最早的内部网关协议, 它不仅实现简 单、 配置容易, 而且维护也简单, 在经历了从版本 RIPvl到版本 RIPv2, 以及到 基于 IPV6的最新版本 RIPNG (Routing Information Protocol Next Generation for IPV6 , 基于 IPV6的下一代路由信息协议) 的发展后, 其功能也随着 Internet的增 长不断地加强和扩大, 因此 RIP协议的性能是检验路由器等网络设备的重要指标 之一。  Protocol, Routing Information Protocol) is one of the earliest internal gateway protocols on the Internet. It is not only simple to implement, easy to configure, but also easy to maintain. It has gone through the RIPv1 version to the version RIPv2, and the latest version of RIPNG based on IPV6 (Routing) After the development of Information Protocol Next Generation for IPV6 (IPV6-based next-generation routing information protocol), its functions are continuously strengthened and expanded with the growth of the Internet. Therefore, the performance of RIP protocol is one of the important indicators for verifying network devices such as routers. .

[6] 在对网络设备的路由信息协议性能进行测试吋, 往往需要使用专门的测试仪器 向网络设备添加大量的真实路由。 现有的测试仪器一般由专门的硬件系统构成 , 内部运行的是专用的嵌入式操作系统。 通过在 PC机、 工作站等通用平台上运 行的控制软件来操作测试仪器, 使测试仪器能够仿真出带有大量 RTE (Route Entry, 路由项) 信息的 RIP/RIPNG  [6] After testing the routing information protocol performance of network devices, it is often necessary to use a special test instrument to add a large number of real routes to the network device. The existing test instruments are generally composed of a dedicated hardware system, and a dedicated embedded operating system is internally operated. The test instrument is operated by control software running on a common platform such as a PC or a workstation, so that the test instrument can simulate RIP/RIPNG with a large amount of RTE (Route Entry) information.

Response (响应) 报文, 并将 Response报文发送给被测网络设备。 观察网络设备 对于这些大量 RTE的处理, 从而可以判断出网络设备对于接收到的路由的处理能 力。  Response (Message) message, and the Response message is sent to the network device under test. Observing the processing of these large numbers of RTEs by network devices, it is possible to determine the processing capabilities of the network devices for the received routes.

[7] 由于测试仪器价格极为昂贵, 一般的中小网络设备厂商都不敢问津。 即使是规 模较大、 实力较强的网络设备研发单位、 企业和知名的评测机构, 也由于价格 因素的制约, 导致测试仪器的数量不能完全满足开发或测试的需求。 [7] Because the price of test instruments is extremely expensive, the average small and medium network equipment manufacturers are afraid to pay attention. Even the rules The large-scale and strong network equipment R&D units, enterprises and well-known evaluation organizations are also constrained by price factors, resulting in the number of test instruments not fully meeting the needs of development or testing.

[8] 发明内容  [8] Summary of the invention

[9] 本发明实施例用于解决现有技术中对网络设备的路由信息协议性能进行测试依 赖专门的测试仪器, 且价格昂贵等问题。  [9] The embodiment of the present invention is used to solve the problem that the performance of the routing information protocol of the network device is tested in the prior art, which relies on a special test instrument and is expensive.

[10] 本发明实施例是通过以下技术方案实现的: [10] The embodiment of the present invention is implemented by the following technical solutions:

[11] 本发明实施例提供一种测试网络设备的路由信息协议性能的方法, 所述方法包 括以下步骤:  [11] An embodiment of the present invention provides a method for testing performance of a routing information protocol of a network device, where the method includes the following steps:

[12] 与被测网络设备建立路由信息协议会话, 设置路由项信息, 将所述路由项信息 封装成响应报文, 定吋组播发送所述响应报文给所述被测网络设备;  [12] establishing a routing information protocol session with the network device under test, setting routing item information, and encapsulating the routing item information into a response message, and determining that the multicast sending the response message to the network device under test;

[13] 根据所述被测网络设备对收到的响应报文的处理结果, 确定所述被测网络设备 的路由信息协议性能。  [13] determining, according to the processing result of the received response message, the measured network protocol performance of the network device under test.

[14] 本发明实施例提供一种存储介质, 该存储介质存储有测试网络设备的路由信息 协议性能的应用程序, 所述应用程序在执行吋包括如下步骤:  [14] An embodiment of the present invention provides a storage medium, where the storage medium stores an application program for testing a routing information protocol performance of a network device, where the application program includes the following steps:

[15] 与被测网络设备建立路由信息协议会话, 设置路由项信息, 将所述路由项信息 封装成响应报文, 定吋组播发送所述响应报文给所述被测网络设备;  [15] establishing a routing information protocol session with the network device under test, setting routing item information, and encapsulating the routing item information into a response message, and determining that the multicast message is sent to the network device under test;

[16] 根据所述被测网络设备对收到的响应报文的处理结果, 确定所述被测网络设备 的路由信息协议性能。  [16] determining, according to the processing result of the received response message, the measured network protocol performance of the network device under test.

[17] 本发明实施例提供一种测试网络设备的路由信息协议性能的系统, 所述系统包 括:  [17] The embodiment of the invention provides a system for testing the performance of a routing information protocol of a network device, where the system includes:

[18] 初始化模块, 用于与被测网络设备建立路由信息协议会话, 设置路由项信息, 将所述路由项信息封装成响应报文;  [18] an initialization module, configured to establish a routing information protocol session with the network device under test, set routing item information, and encapsulate the routing item information into a response message;

[19] 报文发送模块, 用于定吋将所述初始化模块生成的响应报文组播发送给所述被 测网络设备; [19] a message sending module, configured to multicast the response message generated by the initialization module to the network device under test;

[20] 处理模块, 用于根据所述被测网络设备对收到的响应报文的处理结果, 确定所 述被测网络设备的路由信息协议性能。  [20] The processing module is configured to determine, according to the processing result of the received response message by the network device under test, the routing information protocol performance of the network device under test.

[21] 由上述本发明实施例提供的技术方案可以看出, 本发明实施例利用软件程序建 立与被测网络设备之间的路由信息协议会话, 并向被测网络设备发送 Response报 文, 不仅可以降低网络设备的开发及测试成本, 摆脱对昂贵、 专用的、 基于硬 件系统的测试仪器的依赖, 而且还可以通过简单地更改配置的 RTE信息, 实现对 被测网络设备的路由表深度以及路由收敛能力等 RIP/RIPNG性能的测试, 并极大 地提高了效率。 [21] It can be seen from the technical solution provided by the foregoing embodiments of the present invention that the embodiment of the present invention establishes a routing information protocol session with the network device under test by using a software program, and sends a Response message to the network device under test. This not only reduces the development and testing costs of network devices, but also eliminates the reliance on expensive, dedicated, hardware-based test instruments, and can also implement routing tables for the network devices under test by simply changing the configured RTE information. RIP/RIPNG performance testing such as depth and route convergence capabilities, and greatly improved efficiency.

[22] 附图简要说明 [22] BRIEF DESCRIPTION OF THE DRAWINGS

[23] 图 1是本发明实施例用计算机实现测试的系统示意图;  1 is a schematic diagram of a system for implementing testing by a computer according to an embodiment of the present invention;

[24] 图 2是本发明实施例测试网络设备的路由信息协议性能的方法流程图; 2 is a flow chart of a method for testing the performance of a routing information protocol of a network device according to an embodiment of the present invention;

[25] 图 3是本发明实施例测试网络设备的路由信息协议性能的系统结构图。 FIG. 3 is a system structural diagram of testing the performance of a routing information protocol of a network device according to an embodiment of the present invention.

[26] 实施本发明的方式 [26] Mode for carrying out the invention

[27] 下面结合附图和具体实施例对本发明作进一步说明, 但本发明不局限于下面的 实施例。  The invention will be further described with reference to the drawings and specific embodiments, but the invention is not limited to the following embodiments.

[28] 参见图 1和图 2, 本发明实施例提供了一种测试网络设备的路由信息协议性能的 方法, 在通用计算机 (如 PC机) 上实现, 具体包括以下步骤:  Referring to FIG. 1 and FIG. 2, an embodiment of the present invention provides a method for testing the performance of a routing information protocol of a network device, which is implemented on a general-purpose computer (such as a PC), and specifically includes the following steps:

[29] 步骤 101 : 将计算机与被测网络设备相连, 在计算机上利用软件程序建立计算 机与被测网络设备之间的 RIP Session (会话) , RIP  [29] Step 101: Connect the computer to the network device under test, and use the software program on the computer to establish a RIP Session between the computer and the network device under test. RIP

Session建立的同吋即产生了相关的参数: 如掩码信息、 被测网络设备的 IP地址、 定吋器等等;  The peers established by the Session generate related parameters: such as mask information, the IP address of the network device under test, the timer, and so on;

步骤 102: 利用软件程序配置多条 RTE信息, 通常一条 RTE信息主要包括以下 内容: 目的 IP地址、 掩码、 下一跳、 路由标识、 地址族标识 (Address Family Identifier) 、 METRIC (花费) 值等等;  Step 102: Configure multiple pieces of RTE information by using a software program. Generally, one piece of RTE information mainly includes the following contents: destination IP address, mask, next hop, route identifier, address family identifier (Address Family Identifier), METRIC value, etc. Wait;

[31] 步骤 103: 利用软件程序将配置好的 RTE信息封装成多个 Response报文;  [31] Step 103: The software program is used to encapsulate the configured RTE information into multiple Response messages.

[32] 对于 RIP协议, 一个 Response报文最多能够封装 25条 RTE信息, 对于 RIPNG协 议, 一个 Response报文能够封装 RTE信息的个数需要根据 MTU (Maximum[32] For the RIP protocol, a Response packet can encapsulate up to 25 RTE information. For the RIPNG protocol, the number of RTE information that can be encapsulated in a Response packet needs to be based on MTU (Maximum).

Transport Unit, 最大传送单元) 和 IP包头的大小等值计算出; Transport Unit, Maximum Transfer Unit) and the size of the IP header are calculated.

[33] 步骤 104: 禾 lj用软件程序将生成的 Response报文定吋组播发送给被测网络设备 [33] Step 104: Hej uses the software program to send the generated Response message to the multicast network device.

; 组播的周期用预设的定吋器来控制, 例如, 周期可以定义为 10s、 20s或 30s等 等. The multicast period is controlled by a preset timer. For example, the period can be defined as 10s, 20s or 30s.

[34] 步骤 105: 被测网络设备接收到计算机发来的 Response报文后, 从 Response报文 中提取出 RTE信息, 并根据这些 RTE信息来更新被测网络设备的路由表, 例如, 在路由表中添加路由表项、 删除路由表项或者更改路由表项的内容 (METRIC或 下一跳等等) 。 [34] Step 105: After the network device under test receives the Response packet sent by the computer, the response packet is received from the Response packet. The RTE information is extracted, and the routing table of the network device under test is updated according to the RTE information, for example, adding a routing entry, deleting a routing entry, or changing the content of the routing entry (METRIC or next hop, etc.) Wait) .

例如, 路由表中已有一条路由表项, 目的 IP地址为 10.1.1.2的路由, 且 METRIC 值为 5, 如果被测网络设备收到一个 Response报文, 其中包含了一条目的 IP地址 也为 10.1.1.2的路由, 但是 METRIC值为 2, 则此吋被测网络设备会更改路由表, 将原路由表项中的 METRIC值更改为 3 (在收到的 METRIC值基础上加 1) 。  For example, if there is a routing entry in the routing table, the destination IP address is 10.1.1.2, and the METRIC value is 5. If the network device under test receives a Response packet, the IP address of an entry is also 10.1. The route of .1.2, but the METRIC value is 2, then the network device under test changes the routing table and changes the METRIC value in the original routing entry to 3 (add 1 to the received METRIC value).

[36] 进一步地, 被测网络设备在收到 Response报文后, 可以先判断该 Response报文 是否正确, 如果正确, 则从该报文中提取出 RTE信息, 并根据提取出的 RTE信息 更新路由表; 否则丢弃该报文。  [36] Further, after receiving the Response message, the network device under test may first determine whether the Response message is correct. If it is correct, extract the RTE information from the message, and update according to the extracted RTE information. Routing table; otherwise discard the message.

[37] 在测试被测网络设备的路由表深度吋, 首先在计算机上利用软件程序配置不同 的可达 RTE信息, 然后封装成相应的 Response报文, 并定吋组播发送这些 Respon se报文给被测网络设备, 直到被测网络设备的路由表不能再添加表项, 即达到路 由表的最大容量, 此吋路由表内所能容纳的最大路由表项的个数即为路由表的 深度。  [37] After testing the routing table depth of the network device under test, first use the software program to configure different reachable RTE information on the computer, and then package the corresponding response packets, and then multicast to send these Response messages. The maximum number of routing entries that can be accommodated in the routing table is the maximum number of routing entries. .

[38] 在测试被测网络设备的路由收敛能力吋, 首先在计算机上利用软件程序配置一 条可达路由 (即 METRIC值在 1至 15之间) , 并封装成 Response报文, 定吋组播 发送给被测网络设备; 然后将上述可达路由修改成不可达路由 (即将 METRIC值 改为 16, 其他信息不变) , 并封装成 Response报文, 定吋组播发送给被测网络设 备; 然后重复上述过程, 即交替地将上述路由修改为可达和不可达, 而且交替 地发送相应的 Response报文给被测网络设备, 从而模拟出真实网络中的路由震荡 ; 被测网络设备收到 Response报文后, 提取出 RTE信息, 对于可达的路由, 被测 网络设备会在路由表中增加路由表项, 对于不可达的路由, 被测网络设备会将 原可达路由表项标识为不可达, 即把原可达路由表项的 METRIC值更改为 16。  [38] After testing the route convergence capability of the network device under test, first configure a reachable route (that is, the METRIC value between 1 and 15) using a software program on the computer, and package it into a Response message to determine the multicast. Sending to the network device under test; then modifying the reachable route to an unreachable route (ie, changing the METRIC value to 16, the other information is unchanged), and encapsulating it into a Response message, and determining that the multicast is sent to the network device under test; Then, the above process is repeated, that is, the above-mentioned routes are alternately changed to reachable and unreachable, and the corresponding Response message is alternately sent to the network device under test, thereby simulating the route flapping in the real network; the network device under test receives After the response packet, the RTE information is extracted. For the reachable route, the network device to be tested adds a routing entry to the routing table. For the unreachable route, the network device under test identifies the original reachable routing entry as Unreachable, that is, change the METRIC value of the original reachable routing entry to 16.

[39] 本实施例中计算机可以通过提供可视化的界面方式来与用户进行交互, 用户只 需点击鼠标进行选择或确认, 或者输入简单的参数来进行设置, 轻松实现 RIP Session的建立、 RTE信息的配置、 Response报文的发送等操作; 还可以提供非可 视化的命令方式, 用户在计算机上敲入命令, 从而实现建立会话、 配置 RTE信息 及发送报文等操作; 无论哪种方式, 都操作简单、 方便、 快捷, 容易实现。 例 如, 只需在计算机中简单地设置几个参数, 就可以方便地生成一万条 RTE信息。 [39] In this embodiment, the computer can interact with the user by providing a visual interface mode, and the user only needs to click the mouse to select or confirm, or input simple parameters to set, and easily establish the RIP session and RTE information. Configuration, response packet transmission, etc.; can also provide non-visual command mode, the user types the command on the computer, thus establishing a session, configuring RTE information And sending messages and other operations; either way, the operation is simple, convenient, fast, and easy to implement. For example, you can easily generate 10,000 RTE information by simply setting a few parameters in your computer.

[40] 参见图 3, 本发明实施例还提供了一种测试网络设备的路由信息协议性能的系 统, 具体包括: [40] Referring to FIG. 3, an embodiment of the present invention further provides a system for testing the performance of a routing information protocol of a network device, which specifically includes:

[41] (1) 初始化模块, 用于通过程序与被测网络设备建立路由信息协议会话, 设 置路由项信息, 将路由项信息封装成响应报文;  [41] (1) an initialization module, configured to establish a routing information protocol session with the network device under test by using a program, set routing item information, and encapsulate the routing item information into a response message;

[42] (2) 报文发送模块, 用于通过程序定吋将初始化模块生成的响应报文组播发 送给被测网络设备; [42] (2) A message sending module, configured to multicast the response message generated by the initialization module to the network device under test by using a program definition;

[43] (3) 处理模块, 用于根据被测网络设备对收到的响应报文的处理结果, 判断 被测网络设备的路由信息协议性能。  [43] (3) A processing module, configured to determine, according to the processing result of the received response message by the network device under test, the routing information protocol performance of the tested network device.

[44] 上述处理模块具体包括: [44] The above processing module specifically includes:

[45] 路由更新单元, 用于在被测网络设备收到报文发送模块发来的响应报文后, 提 取响应报文中的路由项信息, 并根据提取出来的路由项信息更新被测网络设备 的路由表;  [45] The routing update unit is configured to: after receiving the response packet sent by the packet sending module, the network device to be tested extracts the routing item information in the response packet, and updates the measured network according to the extracted routing item information. Routing table of the device;

[46] 结果处理单元, 用于根据上述路由更新单元更新被测网络设备的路由表的结果 [46] a result processing unit, configured to update a routing table of the network device under test according to the foregoing routing update unit

, 判断被测网络设备的路由信息协议性能。 , determine the routing information protocol performance of the network device under test.

[47] 上述测试网络设备的路由信息协议性能的系统还包括: [47] The above system for testing the routing information protocol performance of a network device further includes:

[48] 判断模块, 用于在被测网络设备收到响应报文后, 先判断响应报文是否正确, 如果正确, 则上述处理模块进行提取路由项信息和更新路由表的步骤; 否则丢 弃响应报文。  [48] The judging module is configured to determine, after the network device under test receives the response packet, whether the response packet is correct. If the packet is correct, the processing module performs the steps of extracting the routing item information and updating the routing table; otherwise, discarding the response Message.

[49] 在测试被测网络设备的路由表深度吋, 上述初始化模块还用于设置不同的可达 路由项信息, 并封装成不同的响应报文; 上述报文发送模块还用于向被测网络 设备发送初始化模块生成的不同的响应报文, 当被测网络设备的路由表不能再 添加表项吋, 上述处理模块根据路由表内表项的个数, 判断路由表的深度, 即 路由表内的表项个数为路由表的深度。  [49] After testing the routing table depth of the network device under test, the initialization module is further configured to set different reachable route item information and encapsulate the packet into different response messages; the message sending module is further used to test The network device sends different response packets generated by the initialization module. When the routing table of the network device under test cannot add a table entry, the processing module determines the depth of the routing table according to the number of entries in the routing table, that is, the routing table. The number of entries in the table is the depth of the routing table.

[50] 在测试被测网络设备的路由收敛能力吋, 上述初始化模块还用于先配置一条可 达路由 (即 METRIC值在 1至 15之间) , 并封装成 Response报文, 由上述报文发 送模块发送给被测网络设备; 然后初始化模块再将上述可达路由修改成不可达 路由 (即将 METRIC值改为 16, 其他信息不变) , 并封装成 Response报文, 由报 文发送模块发送给被测网络设备; 这个过程会重复进行, 即初始化模块用户交 替地将上述路由修改为可达和不可达, 并封装成相应的 Response报文, 而且报文 发送模块用于交替地发送相应的 Response报文给被测网络设备。 被测网络设备收 到响应报文后, 提取出 RTE信息, 对于可达的路由, 被测网络设备会在路由表中 增加路由表项, 对于不可达的路由, 被测网络设备会将原可达路由表项标识为 不可达, 即将原可达路由表项的 METRIC值更改为 16。 上述处理模块根据被测网 络设备更新路由表的能力, 判断被测网络设备的路由收敛能力。 [50] After testing the route convergence capability of the network device under test, the initialization module is further configured to configure a reachable route (that is, a METRIC value between 1 and 15) and encapsulate the packet into a Response packet. The sending module sends the network device to be tested; and then initializes the module and then modifies the reachable route to be unreachable. The route (that is, the METRIC value is changed to 16, the other information is unchanged), and is encapsulated into a Response message, which is sent by the message sending module to the network device under test; this process is repeated, that is, the initialization module user alternately modifies the above route. The reachable and unreachable packets are encapsulated into corresponding Response packets, and the packet sending module is configured to alternately send corresponding Response packets to the network device under test. After receiving the response packet, the network device to be tested extracts the RTE information. For the reachable route, the network device under test adds a routing entry to the routing table. For the unreachable route, the network device under test will be able to The metric value of the routing entry is unreachable. Change the METRIC value of the original reachable routing entry to 16. The processing module determines the route convergence capability of the tested network device according to the capability of the network device under test to update the routing table.

以上所述的实施例, 只是本发明较优选的具体实施方式, 本领域的技术人员在 本发明技术方案范围内进行的通常变化和替换都应包含在本发明的保护范围内  The embodiments described above are only preferred embodiments of the present invention, and the usual changes and substitutions made by those skilled in the art within the scope of the technical solutions of the present invention are included in the scope of protection of the present invention.

Claims

权利要求书 Claim [1] 1 . 一种测试网络设备的路由信息协议性能的方法, 其特征在于, 所述方法 包括以下步骤:  [1] A method for testing the performance of a routing information protocol of a network device, characterized in that the method comprises the following steps: 与被测网络设备建立路由信息协议会话, 设置路由项信息, 将所述路由项 信息封装成响应报文, 定吋组播发送所述响应报文给所述被测网络设备; 根据所述被测网络设备对收到的响应报文的处理结果, 确定所述被测网络 设备的路由信息协议性能。  Establishing a routing information protocol session with the network device under test, setting routing item information, and encapsulating the routing item information into a response message, and determining that the multicast sending the response message to the network device under test; The network device measures the processing result of the received response message, and determines the routing information protocol performance of the tested network device. [2] 2. 根据权利要求 1所述的测试网络设备的路由信息协议性能的方法, 其特 征在于, 所述被测网络设备处理收到的响应报文的步骤具体为: 所述被测网络设备收到所述响应报文后, 提取所述响应报文中的路由项信 息, 并根据提取出来的路由项信息更新路由表。  [2] The method for testing the performance of the routing information protocol of the network device according to claim 1, wherein the step of processing the received response packet by the network device under test is specifically: After receiving the response packet, the device extracts the routing item information in the response packet, and updates the routing table according to the extracted routing item information. [3] 3. 根据权利要求 2所述的测试网络设备的路由信息协议性能的方法, 其特 征在于, 所述方法还包括:  [3] The method for testing the routing information protocol performance of the network device according to claim 2, wherein the method further comprises: 所述被测网络设备收到所述响应报文后, 先判断所述响应报文是否正确, 如果正确, 则进行提取路由项信息和更新路由表的步骤; 否则丢弃所述响 应报文。  After receiving the response packet, the network device under test determines whether the response packet is correct, and if yes, performs the steps of extracting routing item information and updating the routing table; otherwise, discarding the response packet. [4] 4. 根据权利要求 1所述的测试网络设备的路由信息协议性能的方法, 其特 征在于, 所述定吋组播发送所述响应报文给所述被测网络设备的步骤具体 为:  [4] The method for testing the performance of the routing information protocol of the network device according to claim 1, wherein the step of transmitting the response packet to the network device under test is determined by : 定吋向所述被测网络设备组播发送包含不同可达路由项信息的响应报文, 直到所述被测网络设备的路由表不能再添加表项吋, 所述路由表内表项的 个数为所述路由表的深度。  And transmitting, to the network device under test, the response packet containing the information of the different reachable routing entries, until the routing table of the network device under test cannot add the entry, and the entries in the routing table are The number is the depth of the routing table. [5] 5. 根据权利要求 1所述的测试网络设备的路由信息协议性能的方法, 其特 征在于, 所述定吋组播发送所述响应报文给所述被测网络设备的步骤具体 为: [5] The method for testing the performance of the routing information protocol of the network device according to claim 1, wherein the step of transmitting the response packet to the network device under test is determined by : 交替地定吋组播发送包含可达路由的响应报文和包含不可达路由的响应报 文给所述被测网络设备, 所述可达路由和不可达路由具有相同的目的 IP地 址; 根据所述被测网络设备更新路由表的能力, 判断所述被测网络设备的 路由收敛能力。 Alternatingly, the multicast transmission includes a response packet including a reachable route and a response packet including the unreachable route to the network device under test, where the reachable route and the unreachable route have the same destination IP address; Determining the ability of the network device under test to update the routing table, and determining the network device to be tested Route convergence capability. [6] 6.—种存储介质, 其特征在于, 该存储介质存储有测试网络设备的路由信 息协议性能的应用程序, 所述应用程序在执行吋包括如下步骤: 与被测网络设备建立路由信息协议会话, 设置路由项信息, 将所述路由项 信息封装成响应报文, 定吋组播发送所述响应报文给所述被测网络设备; 根据所述被测网络设备对收到的响应报文的处理结果, 确定所述被测网络 设备的路由信息协议性能。  [6] 6. A storage medium, characterized in that the storage medium stores an application program for testing routing protocol protocol performance of the network device, and the application program includes the following steps: establishing routing information with the network device under test. a protocol session, the routing item information is set, and the routing item information is encapsulated into a response message, and the multicast message is sent to the network device under test according to the multicast network; and the received response is received according to the measured network device. The processing result of the packet determines the routing information protocol performance of the network device under test. [7] 7.根据权利要求 6所述的存储介质, 其特征在于, 所述存储介质为: ROM/R  [7] The storage medium according to claim 6, wherein the storage medium is: ROM/R AM、 磁盘、 或光盘。  AM, disk, or CD. [8] 8. 一种测试网络设备的路由信息协议性能的系统, 其特征在于, 所述系统 包括:  [8] 8. A system for testing the performance of a routing information protocol of a network device, wherein the system comprises: 初始化模块, 用于与被测网络设备建立路由信息协议会话, 设置路由项信 息, 将所述路由项信息封装成响应报文;  An initialization module, configured to establish a routing information protocol session with the network device under test, set routing item information, and encapsulate the routing item information into a response message; 报文发送模块, 用于定吋将所述初始化模块生成的响应报文组播发送给所 述被测网络设备;  a message sending module, configured to multicast the response message generated by the initialization module to the network device under test; 处理模块, 用于根据所述被测网络设备对收到的响应报文的处理结果, 确 定所述被测网络设备的路由信息协议性能。  And a processing module, configured to determine, according to the processing result of the received response message by the network device under test, the routing information protocol performance of the network device under test. [9] 9. 根据权利要求 8所述的测试网络设备的路由信息协议性能的系统, 其特 征在于, 所述处理模块具体包括: [9] The system for testing the routing information protocol performance of the network device according to claim 8, wherein the processing module specifically includes: 路由更新单元, 用于在所述被测网络设备收到所述报文发送模块发来的响 应报文后, 提取所述响应报文中的路由项信息, 并根据提取出来的路由项 信息更新所述被测网络设备的路由表;  a routing update unit, configured to: after the network device under test receives the response packet sent by the packet sending module, extract routing item information in the response packet, and update according to the extracted routing item information a routing table of the network device under test; 结果处理单元, 用于根据所述路由更新单元更新所述被测网络设备的路由 表的结果, 判断所述被测网络设备的路由信息协议性能。  And a result processing unit, configured to determine, according to a result of the routing update unit updating the routing table of the network device under test, the routing information protocol performance of the network device under test. [10] 10. 根据权利要求 8所述的测试网络设备的路由信息协议性能的系统, 其特 征在于, 所述系统还包括: [10] The system for testing the routing information protocol performance of the network device according to claim 8, wherein the system further comprises: 判断模块, 用于在所述被测网络设备收到所述响应报文后, 先判断所述响 应报文是否正确, 如果正确, 则所述处理模块进行提取路由项信息和更新 路由表的步骤; 否则丢弃所述响应报文。 a determining module, configured to determine, after the response network packet, the response packet, whether the response packet is correct, and if the packet is correct, the processing module extracts routing item information and updates The step of routing the table; otherwise, the response message is discarded. [11] 11 . 根据权利要求 8所述的测试网络设备的路由信息协议性能的系统, 其特 征在于, 所述初始化模块还用于设置不同的可达路由项信息, 并封装成不 同的响应报文; 所述报文发送模块还用于定吋向所述被测网络设备组播发 送所述初始化模块生成的不同的响应报文, 直到所述被测网络设备的路由 表不能再添加表项; 所述处理模块根据所述路由表内表项的个数, 判断所 述路由表的深度。 [11] The system for testing the routing information protocol performance of the network device according to claim 8, wherein the initialization module is further configured to set different reachable routing item information, and encapsulate the different response reports. The packet sending module is further configured to: multicast to send the different response packets generated by the initialization module to the network device under test, until the routing table of the tested network device cannot add an entry. The processing module determines the depth of the routing table according to the number of entries in the routing table. [12] 12. 根据权利要求 8所述的测试网络设备的路由信息协议性能的系统, 其特 征在于, 所述初始化模块还用于设置具有相同目的 IP地址的可达路由和不 可达路由, 并封装成不同的响应报文; 所述报文发送模块还用于交替地定 吋组播发送所述初始化模块生成的不同的响应报文给所述被测网络设备; 所述处理模块根据所述被测网络设备更新路由表的能力, 判断所述被测网 络设备的路由收敛能力。  [12] 12. The system for testing the routing information protocol performance of the network device according to claim 8, wherein the initialization module is further configured to set a reachable route and an unreachable route with the same destination IP address, and Encapsulating into different response messages; the message sending module is further configured to alternately determine, by the multicast, sending different response messages generated by the initialization module to the network device under test; The ability of the network device to be tested to update the routing table determines the route convergence capability of the network device under test.
PCT/CN2007/071310 2007-01-09 2007-12-21 Method, recording media and system for testing routing message protocol performance of network apparatus Ceased WO2008083579A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710000172.9 2007-01-09
CNA2007100001729A CN1996907A (en) 2007-01-09 2007-01-09 Method and device for testing the performance of the route information protocol of the network devices

Publications (1)

Publication Number Publication Date
WO2008083579A1 true WO2008083579A1 (en) 2008-07-17

Family

ID=38251855

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/071310 Ceased WO2008083579A1 (en) 2007-01-09 2007-12-21 Method, recording media and system for testing routing message protocol performance of network apparatus

Country Status (2)

Country Link
CN (1) CN1996907A (en)
WO (1) WO2008083579A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026257A (en) * 2009-09-18 2011-04-20 鼎桥通信技术有限公司 Automatic test and analysis method for communication protocols
CN112367216A (en) * 2020-10-19 2021-02-12 许继集团有限公司 Communication debugging method, debugging instrument and system suitable for safety and stability control system

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996907A (en) * 2007-01-09 2007-07-11 华为技术有限公司 Method and device for testing the performance of the route information protocol of the network devices
CN104468281A (en) * 2014-12-24 2015-03-25 上海斐讯数据通信技术有限公司 Routing information protocol simulator and routing information protocol communication test method thereof
CN106559329B (en) * 2015-09-25 2019-12-10 中国电信股份有限公司 Equipment segment routing rerouting capability detection method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030204619A1 (en) * 2002-04-26 2003-10-30 Bays Robert James Methods, apparatuses and systems facilitating determination of network path metrics
WO2006008494A2 (en) * 2004-07-20 2006-01-26 British Telecommunications Public Limited Company Method of operating a network with test packets
CN1889579A (en) * 2006-08-03 2007-01-03 杭州华为三康技术有限公司 Method and apparatus for raising route information protocol route convergence rate
CN1996907A (en) * 2007-01-09 2007-07-11 华为技术有限公司 Method and device for testing the performance of the route information protocol of the network devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030204619A1 (en) * 2002-04-26 2003-10-30 Bays Robert James Methods, apparatuses and systems facilitating determination of network path metrics
WO2006008494A2 (en) * 2004-07-20 2006-01-26 British Telecommunications Public Limited Company Method of operating a network with test packets
CN1889579A (en) * 2006-08-03 2007-01-03 杭州华为三康技术有限公司 Method and apparatus for raising route information protocol route convergence rate
CN1996907A (en) * 2007-01-09 2007-07-11 华为技术有限公司 Method and device for testing the performance of the route information protocol of the network devices

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026257A (en) * 2009-09-18 2011-04-20 鼎桥通信技术有限公司 Automatic test and analysis method for communication protocols
CN112367216A (en) * 2020-10-19 2021-02-12 许继集团有限公司 Communication debugging method, debugging instrument and system suitable for safety and stability control system
CN112367216B (en) * 2020-10-19 2022-01-11 许继集团有限公司 Communication debugging method, tester and system suitable for safety and stability control system

Also Published As

Publication number Publication date
CN1996907A (en) 2007-07-11

Similar Documents

Publication Publication Date Title
CA2666425C (en) Path mtu discovery in network system
US9654303B2 (en) Method and apparatus for emulating network devices
CN102077194B (en) Network controller based pass-through communication mechanism between local host and management controller
CN105337857B (en) A kind of multi-path transmission method based on software defined network
CN103685009B (en) Data packet processing method and system as well as controller
CN106612224B (en) Message forwarding method and device applied to VXLAN
CN103166866B (en) Generate the method for list item, the method receiving message and related device and system
CN1514586B (en) Testing method of data communication equipment of imitating multiuser, multi connection
CN104468351B (en) Management method, CCN retransmission units and network controller based on SDN auxiliary CCN routes
CN104518973B (en) A kind of reliable multicast transmission method of the data based on SDN environment
CN108111509B (en) data transfer method
CN102340451B (en) Trace route testing method, system, device and equipment
CN101573913A (en) Method and apparatus for improved multicast routing
JP2004328752A (en) Insertion of address to enable OAM function
CN105009529B (en) A method and transponder for processing message
CN101771571B (en) Topology discovery method based on perception of adjacency in reconfigurable flexible network
CN102891803B (en) Congestion processing method and network device
WO2008083579A1 (en) Method, recording media and system for testing routing message protocol performance of network apparatus
CN102377654B (en) Router and method for realizing IPv6 (Internet Protocol Version 6) message traversing on IPv4 (Internet Protocol Version 4) router
CN101252524A (en) Method, system and device for message transmission
CN101309169A (en) A network management method, network management system, and network equipment
WO2022132208A1 (en) Performance measurement in a segment routing network
CN102088417B (en) Method and apparatus for achieving IP (Internet Protocol) message loopback
CN118041859B (en) A vxlan forwarding table self-learning method
CN115412512B (en) IPv 6-based multi-cloud cross-network intercommunication method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07846136

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07846136

Country of ref document: EP

Kind code of ref document: A1