CN107453901A - Method for graphically simulating OSPF network and realizing automatic test of routing capacity, routing convergence and routing oscillation - Google Patents

Method for graphically simulating OSPF network and realizing automatic test of routing capacity, routing convergence and routing oscillation Download PDF

Info

Publication number
CN107453901A
CN107453901A CN201710629158.9A CN201710629158A CN107453901A CN 107453901 A CN107453901 A CN 107453901A CN 201710629158 A CN201710629158 A CN 201710629158A CN 107453901 A CN107453901 A CN 107453901A
Authority
CN
China
Prior art keywords
routing
test
ospf
route
convergence
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.)
Pending
Application number
CN201710629158.9A
Other languages
Chinese (zh)
Inventor
苏凌旭
任方圆
唐跃川
谢奔
赵泽蛟
彭汝凤
赵渝洁
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.)
Chongqing Jinmei Communication Co Ltd
Original Assignee
Chongqing Jinmei Communication 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 Chongqing Jinmei Communication Co Ltd filed Critical Chongqing Jinmei Communication Co Ltd
Priority to CN201710629158.9A priority Critical patent/CN107453901A/en
Publication of CN107453901A publication Critical patent/CN107453901A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

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

Abstract

The invention discloses a method for graphically simulating an OSPF network and realizing automatic testing of routing capacity, routing convergence and routing oscillation, and relates to the technical field of graphical simulation of OSPF networks and automatic testing of routing capacity, routing convergence and routing oscillation. The invention mainly comprises the following steps: the method can enable users to construct any OSPF routing topology in a graphical mode. And automatically generating a corresponding TCL test script according to the constructed topology parameters and the test configuration parameters. And calling a test script to realize the automatic test of the routing capacity, routing convergence and routing oscillation. The invention has the beneficial effects that: an OSPF simulation network with any topology is constructed in a graphical and mouse dragging mode, a test script of routing capacity, routing convergence and routing oscillation specified by RFC2544 is automatically generated by TCL language, the test script is automatically executed, and a test result is reported. Therefore, a tester unfamiliar with an OSPF protocol LSA generation principle and professional test instrument equipment operation can easily complete the routing capacity, routing convergence and routing oscillation tests under any topology.

Description

A kind of graphical simulation ospf network simultaneously realizes that routing capacity, routing convergence, route are shaken The method of the automatic test swung
Technical field
The present invention relates to network communication technology field, more particularly to graphical simulation ospf network and routing capacity, route Convergence, the automatization testing technique field of route flapping.
Background technology
Ospf protocol, the most popular Routing Protocol in current Internet or carry all military, civilian routers The interchanger of L3 Switching function supports the Routing Protocol.Routing capacity, routing convergence, route flapping test are RFC2544 The basic test project of defined network switching equipment three-layer network performance.Some current method of testings are using change mostly Router source code is to increase statistical function, or the tester using specialty, by very familiar OSPF Routing Protocols and test The LSA of professional's manual configuration ospf protocol of instrument mode, emulates OSPF route networks, and capacity to router, Convergence time, route flapping performance are tested.This requires matching somebody with somebody for configuration and tester of the tester to ospf protocol LSA Putting operation has very high requirement, and the configuration for complex network easily malfunctions, and may even not complete, greatly limit to The enforceability of test, adds testing cost and risk of error.
The content of the invention
The present invention proposes a kind of graphical simulation ospf network and realizes routing capacity, routing convergence, route flapping The method of automatic test.This method mainly includes:User can be allowed to build arbitrary route topological.Joined according to the topology of structure Number, and test configurations parameter, generate corresponding TCL test scripts.Call test script realize routing capacity, routing convergence, The automatic test of route flapping.
Present invention uses the graphical router original paper composition on painting canvas of mouse drag, and the method for line simulates OSPF Route topological figure, then include seldom parameters such as IP address, route ID for the input of each original paper, it is possible to realize to OSPF roads Emulation and automatic test by topology, and test result is reported, the configuration side without grasping cumbersome ospf protocol LSA Method.
Present invention uses the API that SpirentCommunication is provided, and TCL language is used as script, User configures a small amount of parameter in software interface towing router emulation OSPF route topologicals, and software automatically generates corresponding survey Training sheet.By PC, SpirentTestCenter, tested router is connected, annexation(Reference picture 4).TCL tests pin This is functionally similar to using SpirentApplication to SpirentTestCenter progress test configurations.Software transfer Tcl84.exe perform scripts carry out automatic test.
The method have the benefit that:The OSPF for building arbitrary topology using graphical and mouse drag mode is imitated True network, the test script of routing capacity as defined in RFC2544, routing convergence, route flapping is automatically generated using TCL language, It is automatic to perform test script and report test result.So that being unfamiliar with, ospf protocol LSA produces principle and professional test instrument is set The tester of standby operation can be easily accomplished the route flapping test under arbitrary topology and the survey to routing capacity, routing convergence Examination.
Brief description of the drawings
Fig. 1, route flapping test software configuration diagram;
Fig. 2, routing capacity test software configuration diagram;
Fig. 3, routing convergence test software configuration diagram;
Fig. 4, equipment room interconnecting relation schematic diagram.
Embodiment
The present invention uses SpirentTestCenter as test equipment, by test and management PC, SpirentTestCenter, tested router are connected, annexation(Reference picture 4).SpirentCommunication is Available API is we provided, we use TCL language topological certainly according to the graphical network of user configuration as script Dynamic generation test script, automatic test is realized on the basis of complicated OSPF Routing Protocols LSA configurations are omitted. SpirentTestCenter can simulate route topological on software view, so only testing the situation of a route original paper Under, route flapping of the test router in various routing topologies can also be simulated.It can also be reached using TCL test scripts To same effect, so the present invention can realize and the routing capacity, routing convergence, route of the ospf network of arbitrary topology are shaken The automatic test swung.
The software architecture of whole route flapping test(Reference picture 1).When carrying out route flapping test, mainly include as follows Operating procedure:
1) topological analog module provides the route-type that user needs to use in the route original paper storage area selection of software.User can According to the needs of oneself, to drag corresponding route original paper to painting canvas;
2) topological analog module provides line original paper.User can select line button, by related route original paper line, structure Build the graphical OSPF route topologicals that any user needs;
3) topological analog module provides different parameter configuration interfaces for the route original paper of each type.User selects route former Part, the parameter such as input router IP address and route ID in the configuration interface of each original paper, now program can be by these parameters Be saved in internal memory, and the related a part of content of test script of these parameters be saved in internal memory, these be saved in have The effect of route topological and ospf protocol LSA configurations is simulated in software;
4) parameter configuration module provide inputted in test configurations interface the related test parameter of route flapping and Underlying parameter related SpirentTestCenter.After the completion of configuration, program can be in a file of the catalogue of program Generate related TCL test scripts, and by step 3)In be stored in the test script content related to route topological in internal memory Generate corresponding TCL test scripts;
5) software transfer tclsh84.exe is performed in step 4)The test script of middle generation, is tested, and is closed after the completion of test Close tclsh84.exe programs;
6) routine call SpirentApplication Spirent Reporter, the generation of opening test script are preserved The .db files of test result show test result.
Also include in step 1):Topological analog module provides three kinds of route-types, respectively DUT, SR, R.DUT is Device under test abbreviation, represent equipment under test.SR is simulated router abbreviation, is represented direct with DUT It is connected, the router simulated on SpirentTestCenter ports.R be router abbreviation, represent not with DUT It is joined directly together and connects, the router simulated on SpirentApplication softwares.User is selecting to route according to topological diagram Its definition is should be noted during type.
Also include in step 3):Topological analog module is the configuration interface that DUT is provided, and describes two ethernet sides of DUT The ip addresses of mouth, mask, protocol type, regional number, instruct user configuration equipment under test.Topological analog module is matching somebody with somebody for SR offers Interface is put, it is necessary to user input router ip addresses, route id, mac addresses, regional number, stub network ip addresses, pre-network Ip addresses, pre-network route number, be connected the parameters such as router id with SR.Topological analog module is the configuration interface that R is provided, User is needed to input route id, regional number, stub network ip addresses, the router id parameters being connected with R.
Also include in step 3):Program can be by the input parameter storage of each route original paper to each original paper.Program needs The port ip addresses in DUT configuration descriptions are used, mould on SpirentTestCenter ports is represented in a manner of TCL scripts The router of plan and host gateway.Above-mentioned TCL content for script can be saved in corresponding route original paper by program.
Also include in step 3):Program can use router ip addresses, route id, mac addresses in SR input parameter, Ip addresses, id, mac address of router simulated on SpirentTestCenter ports are represented in a manner of TCL scripts.Journey Sequence uses the regional number in SR input parameters, and the road simulated on SpirentTestCenter ports is represented in a manner of TCL scripts By device, the region where ospf protocol is used.Program uses route id, regional number, stub networks ip in SR input parameters Location, be connected router id with SR, and the router for representing to simulate on SpirentTestCenter ports in a manner of TCL scripts exists Router LSA content in ospf protocol.Program is route using the pre-network ip addresses in SR input parameters, pre-network Number, the router simulated on SpirentTestCenter ports is represented in a manner of TCL scripts in the ospf protocol Summary LSA and External LSA content.Above-mentioned TCL content for script can be saved in SR route original papers by program.
Also include in step 3):Program can use the regional number in R input parameter, be represented in a manner of TCL scripts The router simulated on SpirentApplication softwares, use the region where ospf protocol.Program can use the defeated of R Enter route id, stub network ip addresses in parameter, the router id being connected with R, represented in a manner of TCL scripts The router simulated on SpirentApplication softwares Router LSA in the ospf protocol content.Program can will be upper The TCL content for script stated is saved in R route original papers.
Also include in step 4):The configuration interface that parameter configuration module provides is, it is necessary to which user inputs SpirentTestCenter ip addresses, flow port ip addresses, flow port mac addresses, uninterrupted, unit, vibration time Number, vibration stand-by period, survey route flapping link number.
Also include in step 4):Program can use the ip addresses of the SpirentTestCenter in input parameter, with TCL The mode of script represents to connect SPT, the related content of reserved port.Program is with can using the flow port ip in input parameter Location, flow port mac addresses, the host's for representing to simulate on SpirentTestCenter flows port in a manner of TCL scripts Ip addresses, mac addresses.Program can represent that route is shaken using the uninterrupted in input parameter, unit in a manner of TCL scripts Swing the related content of test data stream.Program can use the number of oscillation in input parameter, vibration stand-by period, survey route and shake Link number is swung, the test related content of route flapping test is represented in a manner of TCL scripts.For preserving test result and disconnection The related content being connected with SPT, is fixed code, and program can represent related content in a manner of TCL scripts.Program should will be above-mentioned TCL content for script generation TCL test scripts, and by step 3)In be stored in it is each route original paper in TCL content for script, entirely Portion combines, and is added in TCL test scripts.To connect SPT, simulation Spirent instrument port router, configuration port mould Intend router lsa, configuration SpirentApplication software simulations router lsa, simulation SpirentTestCenter flows Port host, data flow, route flapping test are established, result, disconnection is preserved and is built with the corresponding user that is sequentially generated of SPT connections Complete TCL test scripts needed for the route flapping test of OSPF topologys.
The software architecture of whole routing capacity test(Reference picture 2).When carrying out routing capacity test, mainly include as follows Operating procedure:
1)Parameter configuration module provides the input test relevant parameter in test configurations interface.Program is held using dichotomy to route Amount is tested, so needing the routing capacity lower and upper limit in the routing configuration interface input test of program.When configuring Cheng Hou, program can generate TCL test scripts under program directory;
2)Routine call tclsh84.exe performs step 1)The test script of middle generation, is tested, and is closed after the completion of test Tclsh84.exe programs;
3)Program opens test script and preserves the .ini files of test result, and shows explicit routing capacity result at result.
Also include in step 1):The test configurations interface that parameter configuration module provides provides DUT configuration instructions, describes The contents such as the ip addresses of two ethernet ports of DUT, mask, protocol type, regional number, instruct user configuration equipment under test.Survey Examination configuration interface needs user to input under SpirentTestCenter ip addresses, flux unit, uninterrupted, route bar number Limit, route bar number upper limit parameter.
Also include in step 1):Program can use the port ip addresses in DUT configuration descriptions, the table in a manner of TCL scripts Show the router simulated on SpirentTestCenter ports and host gateway.Program can be used in input parameter SpirentTestCenter ip addresses, represent to connect SPT, the related content of reserved port in a manner of TCL scripts.Program Using the flux unit in input parameter, uninterrupted, the phase of routing capacity test data stream can be represented in a manner of TCL scripts Hold inside the Pass.Program, which can be used in input parameter, route bar number lower limit, the route bar number upper limit, represents to measure in a manner of TCL scripts The related content of the dichotomy of routing capacity.Due to the test just for single DUT routing capacitys, it is not related to route and opens up Flutter, so the router, SpirentTestCenter flow port analogs for SpirentTestCenter port analogs Host, the data for preserving the contents such as test result, disconnection and SPT connections, the present invention use the fixed test that do not influence to tie The parameter of fruit, to reduce the parameter input quantity of user, and related content is represented in a manner of TCL scripts.Program should will be above-mentioned TCL content for script according to connection SPT, simulation Spirent instrument port router, simulation SpirentTestCenter flows end Mouthful host, establish data flow, routing capacity test, preserve being sequentially generated for testing route appearance of result, disconnection and SPT connections The TCL test scripts of amount.
The software architecture of whole routing convergence test(Reference picture 3).When carrying out routing convergence test, mainly include as follows Operating procedure:
1)Parameter configuration module provides the input test relevant parameter in test configurations interface.After the completion of configuration, program is in journey TCL test scripts are generated under sequence installation directory;
2)Software transfer tclsh84.exe performs step 1)The test script of middle generation, is tested, and is closed after the completion of test Tclsh84.exe programs;
3)Routine call SpirentApplication Spirent Reporter, the generation of opening test script are preserved The .db files of test result show test result.
Also include in step 1):The test configurations interface that parameter configuration module provides provides DUT configuration instructions, describes The contents such as the ip addresses of tri- ethernet ports of DUT, mask, protocol type, regional number, instruct user configuration equipment under test.Survey Examination configuration interface needs user to input SpirentTestCenter ip addresses, flux unit, uninterrupted parameter.
Also include in step 1):Program can use the port ip addresses in DUT configuration descriptions, the table in a manner of TCL scripts Show the router simulated on SpirentTestCenter ports and host gateway.Program can be used in input parameter SpirentTestCenter ip addresses, represent to connect SPT, the related content of reserved port in a manner of TCL scripts.Program Using the flux unit in input parameter, uninterrupted, the phase of routing capacity test data stream can be represented in a manner of TCL scripts Hold inside the Pass.Due to the test just for single DUT routing convergences, it is not related to route topological, so for The router of SpirentTestCenter port analogs, the host of SpirentTestCenter flow port analogs, route are received Hold back test, preserve the data of the content such as test result, disconnection and SPT connections, of the invention use fixed does not influence to test As a result parameter, to reduce the parameter input quantity of user, and related content is represented in a manner of TCL scripts.Program should will be upper The TCL content for script stated is according to connection SPT, simulation Spirent instrument port router, simulation SpirentTestCenter flows Port host, establish data flow, routing convergence test, preserve result, being sequentially generated for disconnection and SPT connections route for testing Convergent TCL test scripts.
The foregoing is only a preferred embodiment of the present invention, but protection scope of the present invention be not limited thereto, Any one skilled in the art the invention discloses technical scope in, technique according to the invention scheme and its Inventive concept is subject to equivalent substitution, should all be included within the scope of the present invention.

Claims (3)

1. a kind of graphical simulation ospf network and realize routing capacity, routing convergence, route flapping automatic test side Method, it is characterised in that:User can use the mode of mouse drag to realize that the ospf protocol of graphical structure arbitrary topology emulates net Network.
2. a kind of graphical simulation ospf network for being told according to claim 1 simultaneously realizes that routing capacity, routing convergence, route are shaken The method of the automatic test swung, it is characterised in that:Program automatically generates the survey of TCL language according to configuration topological sum configuration parameter Training sheet.
3. a kind of graphical simulation ospf network for being told according to claim 1 simultaneously realizes that routing capacity, routing convergence, route are shaken The method of the automatic test swung, it is characterised in that:Routing capacity, routing convergence, route flapping are realized using TCL test scripts Automatic test.
CN201710629158.9A 2017-07-28 2017-07-28 Method for graphically simulating OSPF network and realizing automatic test of routing capacity, routing convergence and routing oscillation Pending CN107453901A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710629158.9A CN107453901A (en) 2017-07-28 2017-07-28 Method for graphically simulating OSPF network and realizing automatic test of routing capacity, routing convergence and routing oscillation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710629158.9A CN107453901A (en) 2017-07-28 2017-07-28 Method for graphically simulating OSPF network and realizing automatic test of routing capacity, routing convergence and routing oscillation

Publications (1)

Publication Number Publication Date
CN107453901A true CN107453901A (en) 2017-12-08

Family

ID=60489800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710629158.9A Pending CN107453901A (en) 2017-07-28 2017-07-28 Method for graphically simulating OSPF network and realizing automatic test of routing capacity, routing convergence and routing oscillation

Country Status (1)

Country Link
CN (1) CN107453901A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100268834A1 (en) * 2009-04-17 2010-10-21 Empirix Inc. Method For Embedding Meta-Commands in Normal Network Packets
CN102136946A (en) * 2011-03-07 2011-07-27 中国电力科学研究院 Optical network topology graph drawing method and topological subsystem
CN102404168A (en) * 2011-11-15 2012-04-04 北京天融信科技有限公司 Method and device for comprehensively testing NUD
CN103984750A (en) * 2014-05-28 2014-08-13 中铁十局集团有限公司 B/S (Browser/Server) framework model based topological graph generation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100268834A1 (en) * 2009-04-17 2010-10-21 Empirix Inc. Method For Embedding Meta-Commands in Normal Network Packets
CN102136946A (en) * 2011-03-07 2011-07-27 中国电力科学研究院 Optical network topology graph drawing method and topological subsystem
CN102404168A (en) * 2011-11-15 2012-04-04 北京天融信科技有限公司 Method and device for comprehensively testing NUD
CN103984750A (en) * 2014-05-28 2014-08-13 中铁十局集团有限公司 B/S (Browser/Server) framework model based topological graph generation method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
尤澜涛等: "基于 OSPF 的网络拓扑快速发现系统的设计", 《计算机工程》 *

Similar Documents

Publication Publication Date Title
Ahrenholz et al. CORE: A real-time network emulator
CN112311606B (en) Method for constructing virtual-real decoupling simulation network
US20190036802A1 (en) System and method for packet tracing within a packet switching asic
US7555421B1 (en) Device emulation for testing data network configurations
CN103618645A (en) Complex network environment test system and method with intelligent simulation function
Galán et al. Use of virtualization tools in computer network laboratories
CN113259164B (en) Method for realizing virtual-real networking based on virtual routing system construction
CN110838954A (en) Lightweight large-scale autonomous network protocol function test method
CN106209825A (en) A kind of customizable Botnet pilot system
CN108833472B (en) System is established in the connection of cloud host
Pal et al. Implementation of simplified custom topology framework in Mininet
Tagliacane et al. Network simulations and future technologies in teaching networking courses: Development of a laboratory model with Cisco Virtual Internet Routing Lab (Virl)
CN109039709A (en) A kind of mobile wireless network emulation and experiment porch based on virtualization
CN109495293A (en) A kind of test method, system, equipment and the storage medium in Switch control face
Uddin et al. Performance analysis of SDN based firewalls: POX vs. ODL
US20110122879A1 (en) System for seamless connection of real and virtual networks
CN113193998A (en) Network emulation method, programmable switch, and computer-readable storage medium
Autefage et al. Network emulator: a network virtualization testbed for overlay experimentations
JP5750175B1 (en) Network simulator and network simulation method
CN107453901A (en) Method for graphically simulating OSPF network and realizing automatic test of routing capacity, routing convergence and routing oscillation
Fontes et al. Improving ns-3 emulation performance for fast prototyping of routing and SDN protocols: Moving data plane operations to outside of ns-3
Salsano et al. Mantoo-a set of management tools for controlling SDN experiments
Dayanand et al. A survey on the use of GNS3 for virtualizing computer networks
Petersen et al. DockSDN: A hybrid container‐based software‐defined networking emulation tool
Salib et al. Hands-on labs and tools for teaching software defined network (SDN) to undergraduates

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171208