CN1780237A - Logic topological network for protocol test and method for realizing protocol test - Google Patents

Logic topological network for protocol test and method for realizing protocol test Download PDF

Info

Publication number
CN1780237A
CN1780237A CN 200410091311 CN200410091311A CN1780237A CN 1780237 A CN1780237 A CN 1780237A CN 200410091311 CN200410091311 CN 200410091311 CN 200410091311 A CN200410091311 A CN 200410091311A CN 1780237 A CN1780237 A CN 1780237A
Authority
CN
China
Prior art keywords
test
protocol
test body
virtual
network
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
CN 200410091311
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.)
University of Science and Technology of China USTC
Huawei Technologies Co Ltd
Original Assignee
University of Science and Technology of China USTC
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 University of Science and Technology of China USTC, Huawei Technologies Co Ltd filed Critical University of Science and Technology of China USTC
Priority to CN 200410091311 priority Critical patent/CN1780237A/en
Publication of CN1780237A publication Critical patent/CN1780237A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The key feature of the invention is to build multi virtual testers in physical device for testing added protocols and to establish complex topology network required by protocol testing with each virtual tester and physical device. In testing process, when test case requires knowing changes of other tester, or if a certain message is received, it can get relevant message from relevant interface provided by virtual tester in order to make relevant testing case in the tester automatically executed.

Description

The method of logic topological network for protocol test and realization protocol test thereof
Technical field
The present invention relates to the protocol test technical field, relate in particular to the method for a kind of logic topological network for protocol test and realization protocol test thereof.
Background technology
In computer network communication field, communication protocol is core wherein, also is the primary condition that guarantees proper communication, and communication protocol standard is the basis of network service standard.The environment of procotol operation is an actual physical network, usually need three or three above nodes just to constitute a network at least, need between each node to set up stable topological structure by communication, when network topology or node change, also need to be undertaken the change of topological structure, and regain stable topological structure by communication.Simultaneously, in network service, procotol quantity is huge and realize complexity, and each equipment vendors also is not quite similar for the understanding and the implementation of agreement, and therefore the correctness and the interoperability between each equipment of coming guarantee agreement to realize by protocol test is necessary and urgent.
The network model of the protocol test that adopts as shown in Figure 1 at present, test lead is connected by the networking with tested end, test lead generates test case according to protocol specification, described test case is carried out by test body, the test body implementation of test cases sends protocol massages, and the body to be measured that receives tested end simultaneously is based on the processing of described application program and the response message that returns, whether consistent according to the message of receiving then with the expection message, thus draw the consistency result of determination.
Test suite is a cover test case of the design based on the protocol description of standard, and test suite is carried out by test body, finishes compiling and explanation to the test case script, generates the discernible message of agreement to be measured.Message is handed down to network interface, and network interface sends to tested end with message, and the network interface of tested end is finished communication function, and the message of receiving is uploaded body to be measured, has so just set up the communication channel between test body and the body to be measured.Therefore, from theory,, just can guarantee the consistency of agreement to be measured as long as test has covered all test points of agreement to be measured.
In carrying out the protocol test process, what adopt usually at present is a kind of actual networking method of testing, described actual networking test refers to such an extent that be according to the communication protocol requirement, in actual network environment, dispose and install corresponding network node accordingly, make the protocol processes in each network node partly bring into operation then, send test packet to network, and check whether state is consistent with expected result after the wait network stabilization, thereby confirm whether agreement realizes correct, realize the purpose of protocol test.
Such scheme exists a bigger problem to be: the Test Networking environment of an agreement is extremely complicated usually, thereby need a large amount of hardware devices and complicated networking to connect up, and the topological network environment that in test process, needs repeatedly conversion reality, cause the actual networking test implementation cost that gets up higher, workload is big.
At present, carrying out the another kind of mode that protocol test adopted is that test suite is integrated in the hardware, when carrying out protocol test, tested entity and testing tool are required to be configured and networking according to test case, afterwards, move described test case and just can obtain the consistency result of determination, realize the purpose of protocol test.In this protocol testing method, because the protocol test process to the having relatively high expectations of hardware device and tester, therefore, exists and realizes that the protocol test cost is higher, and the big shortcoming of difficulty.
Summary of the invention
In view of above-mentioned existing in prior technology problem, the method that the purpose of this invention is to provide a kind of logic topological network for protocol test and realization protocol test thereof, just can realize the structure of the topological network that the protocol test of relative complex needs based on less physical equipment, thereby reduce the cost of realizing protocol test, simplified the complexity of protocol test process.
The objective of the invention is to be achieved through the following technical solutions:
The invention provides a kind of logic topological network for protocol test, comprising:
Set up the virtual test body that auxiliary protocol test is used at protocol test in physical network, and be used for the test body of protocol test; Described virtual test body utilizes described physical network to be connected with test body and tested end to set up into logic topological network for protocol test.
Described physical network comprises at least:
Test lead main frame, equipment under test, be used to connect the hub of test lead main frame and equipment under test, and connect and use netting twine.
Described virtual test body and test body are arranged in the test lead main frame.
Described virtual test body in physical network quantity and be to determine in network topology relation according to the topological network environment of protocol test needs.
Among the present invention, when described virtual test body and test body were arranged in the same main process equipment, described virtual test body also provided with test body and carries out the mutual interface of data message.
The present invention also provides a kind of method of the realization protocol test based on described logic topological network, comprising:
A, each virtual test body carry out the transmitting-receiving operation of protocol massages according to the needs of protocol test in logic topological network, and obtain the result of determination information of transmitting-receiving protocol massages, more described result of determination information are sent to test body;
B, described test body obtain the result of determination information that each virtual test body is sent the transmitting-receiving protocol massages, and according to each information acquisition protocol test result.
Described steps A comprises:
Whether each virtual test body according to receiving protocol massages, and receive whether identical definite described result of determination information of protocol massages that protocol massages and expection receive.
Described steps A also comprises:
Described each virtual test body is shared same data link and is carried out the transmitting-receiving of protocol massages in logic topological network.
Described steps A also comprises:
When test body and virtual test body were arranged in the same main process equipment, the interface that described test body provides by the virtual test body obtained described comparative result information.
Described virtual test body adopts with test body and adopts identical descriptive language to realize, the interface of test body visit perhaps is provided.
As seen from the above technical solution provided by the invention, utilize the virtual test body among the present invention, finish the execution function of the subtest use-case of other test bodies by the virtual test body; And in the network data transmission process, utilize data link to share, the link of each network in the logical topology environment is all realized on a shared link; Therefore, the present invention utilizes the virtual test body can set up complicated logical topology environment on the simple physical topological environmental, promptly in the communication protocol test process, the logical topology environment of the complexity that needs for protocol test, can realize by virtual networking technology provided by the invention, thereby the minimizing hardware device reduces the protocol test cost.
And, the present invention is in test process, test case requires to know the change of other test bodies (as the virtual test body) state, perhaps whether receive the situation of the information of message that certain is specific and so on, then owing to each virtual test body and test body among the present invention all are in the same physical equipment, thereby can in realizing, add the virtual test body corresponding service, corresponding interface promptly is provided, test body can obtain the corresponding information of virtual test body by corresponding interface, thereby makes the corresponding test case on the test body to automatically perform.
Description of drawings
Fig. 1 is the testing protocol consistency model;
Fig. 2 is the testing protocol consistency model of band virtual test body;
Fig. 3 is the logical topology environment of a protocol test;
Fig. 4 is Fig. 3 corresponding physical topological environmental;
Fig. 5 is Fig. 4 corresponding virtual physical topology environment.
Embodiment
Main purpose of the present invention is to realize realizing complicated topological network by simple physics equipment, is used to carry out the protocol test at the topological network of complexity.Core concept of the present invention is to adopt virtual mode to set up a plurality of virtual test bodies in simple physics equipment, utilizes each virtual test body and actual physical equipment to realize the establishment of the topological network of the complexity that protocol test needs.
Logic topological network of the present invention comprises the virtual test body, the test body that are positioned at test lead as shown in Figure 2, and tested end, links to each other by physical channel (being the physical channel) between described tested end and test lead; Described test lead and tested end are actual physical equipment, test body is communicated by letter with the measured body in the tested end by tunnel, carry out protocol test, virtual test body 1 is used for the protocol test process of subtest body to virtual test body n in the protocol test process.
In realizing logic topological network process of the present invention, at first, set up corresponding physical network, described physical network comprises test computer, router, hub, switch and netting twine etc.; Simply, Test Host (being test lead) and equipment under test (tested end) can be connected into an in esse physical network by a hub; Test Host wherein is provided with the test body that protocol test is used as test node, just by carrying out test case on the test body test process that can carry on an agreement, described equipment under test is in esse physical equipment, as router to be measured etc.;
Afterwards, the test case of Zhi Hanging is determined the logic topological network environment that this test case needs as required, so that carry out the corresponding protocol test based on corresponding logic topological network environment;
Logic topological network according to described protocol test needs, promptly according to the test purpose of test case, the virtual test body that corresponding auxiliary protocol test is used is set in Test Host, described virtual test body is the subtest body of using in the protocol test process that adopts software simulation, described virtual test body is generally used for realizing receiving some simple external data bags, and provides the function to the response of this packet; The quantity of the described virtual test body that is provided with in Test Host can specifically can be provided with one or more according to the setting of protocol test needs; The needs that logic connecting relation between described virtual test body and test body and equipment under test is similarly according to protocol test are provided with;
Described virtual test can adopt the descriptive language identical with realizing test body to realize; Described descriptive language is a programming language of realizing test case, the test case descriptive language of often using in the communication protocol test comprises Tool Command Language (Tool Command Language, TCL), tree table pack grammer (Tree and Tabular Combined Notation, TTCN), C language etc.;
Suppose logic topological network that protocol test needs as shown in Figure 3, logic topological network corresponding physical topological network shown in Figure 3 as shown in Figure 4; Comprise network N 1 among Fig. 3, N2, N3, N4......N100, N101, test router TR1, TR2, TR3 and TR4, test node TN, and router RUT to be measured, before the present invention, carry out protocol test at logic topological network shown in Figure 3 if desired, then need to make up physical topology network as shown in Figure 4, in this physical topology network, carry out the corresponding protocol test then, and the physical network that utilizes the present invention only need set up as shown in Figure 5 gets final product, comprise the test node TN and the router RUT to be measured that are connected by hub in the physical network, afterwards, corresponding virtual test body is set on the test node of described physical network, is specially four virtual test bodies are set in test node TN, the test router TR1 to TR4 among respectively corresponding Fig. 3;
The function that described virtual test body need be realized is still determined according to the needs of protocol test, and can be used the descriptive language of realizing described test case to realize this virtual test body; When described virtual test body and test body are arranged in same main process equipment, described virtual test body also needs to provide the interface of needs of communicating by letter with test body, so that test body obtains the object information of the protocol test of virtual test body by described interface, for example, receive the result of determination information of message;
Through above-mentioned virtual test body set up process after, just realize based on the virtual networking environment of test node in the network environment of reality, thereby realize the structure of the logic topological network that protocol test needs.
The present invention also need be provided with corresponding test body on test node, promptly use the test case descriptive language to realize corresponding test case, carry out described test case, under the cooperation of virtual test body, just can realize the test of agreement as required, obtain the result of protocol test.
Also provide a kind of method that realizes protocol test based on described logic topological network the present invention, this method comprises following processing procedure:
(1) each virtual test body carries out the transmitting-receiving operation of protocol massages according to the needs of protocol test in logic topological network, and obtains the result of determination information of transmitting-receiving protocol massages, more described result of determination information is sent to test body;
Described each virtual test body is shared same data link and is carried out the transmitting-receiving of protocol massages in logic topological network; And when test body and virtual test body were arranged in the same main process equipment, the interface that described test body provides by the virtual test body obtained described comparative result information;
Whether each virtual test body according to receiving protocol massages, and receive whether identical definite described result of determination information of protocol massages that protocol massages and expection receive;
Described virtual test body is to realize the function of other test bodies in this test case on the test body with program, in test, receive the message of protocol description and it is resolved as test router TR1, TR2, TR3 and TR4 among Fig. 3, and the function that sends the message of some protocol descriptions, also provide the corresponding communication interface simultaneously for test body;
The effect of described virtual test body in the protocol test process is to guarantee that test case can obtain the result of determination information of the virtual test of subtest automatically, and operation obtains the protocol test result automatically; For example protocol requirement test router TR1, TR2, TR3 and TR4 should receive corresponding message after test node TN sends special packet for router RUT to be measured in Fig. 3, test procedure test router TR1, TR2, TR3 and TR4 then can according to whether receive corresponding message and the message of receiving whether with the identical consistency result of determination that provides of expection message, test body then can obtain described result of determination information automatically by the interface that the virtual test body provides, with automatically performing of subtest use-case;
(2) described test body obtains the result of determination information that each virtual test body is sent the transmitting-receiving protocol massages, and according to each information acquisition protocol test result.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1, a kind of logic topological network for protocol test is characterized in that, comprising:
Set up virtual test body that auxiliary protocol test uses and the test body that is used for protocol test in physical network at protocol test; Described virtual test body utilizes described physical network to be connected with test body and tested end to set up into logic topological network for protocol test.
2, logic topological network for protocol test according to claim 1 is characterized in that, described physical network comprises at least:
Test lead main frame, equipment under test, be used to connect the hub of test lead main frame and equipment under test, and connect and use netting twine.
3, logic topological network for protocol test according to claim 2 is characterized in that, described virtual test body and test body are arranged in the test lead main frame.
According to claim 1,2 or 3 described logic topological network for protocol test, it is characterized in that 4, quantity and the network topology relation thereof of described virtual test body in physical network is to determine according to the topological network environment of protocol test needs.
5, according to claim 1,2 or 3 described logic topological network for protocol test, it is characterized in that, when described virtual test body and test body were arranged in the same main process equipment, described virtual test body also provided with test body and carries out the mutual interface of data message.
6, a kind of method of the realization protocol test based on described logic topological network is characterized in that, comprising:
A, each virtual test body carry out the transmitting-receiving operation of protocol massages according to the needs of protocol test in logic topological network, and obtain the result of determination information of transmitting-receiving protocol massages, more described result of determination information are sent to test body;
B, described test body obtain the result of determination information of the transmitting-receiving protocol massages that each virtual test body sends, and according to each information acquisition protocol test result.
7, the method for realization protocol test according to claim 6 is characterized in that, described steps A comprises:
Whether each virtual test body according to receiving protocol massages, and receive whether identical definite described result of determination information of protocol massages that protocol massages and expection receive.
According to the method for claim 6 or 7 described realization protocol tests, it is characterized in that 8, described steps A also comprises:
Described each virtual test body is shared same data link and is carried out the transmitting-receiving of protocol massages in logic topological network.
According to the method for claim 6 or 7 described realization protocol tests, it is characterized in that 9, described steps A also comprises:
When test body and virtual test body were arranged in the same main process equipment, the interface that described test body provides by the virtual test body obtained described result of determination information.
According to the method for claim 6 or 7 described realization protocol tests, it is characterized in that 10, described virtual test body adopts the descriptive language identical with test body to realize, the interface of test body visit perhaps is provided.
CN 200410091311 2004-11-22 2004-11-22 Logic topological network for protocol test and method for realizing protocol test Pending CN1780237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410091311 CN1780237A (en) 2004-11-22 2004-11-22 Logic topological network for protocol test and method for realizing protocol test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410091311 CN1780237A (en) 2004-11-22 2004-11-22 Logic topological network for protocol test and method for realizing protocol test

Publications (1)

Publication Number Publication Date
CN1780237A true CN1780237A (en) 2006-05-31

Family

ID=36770362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410091311 Pending CN1780237A (en) 2004-11-22 2004-11-22 Logic topological network for protocol test and method for realizing protocol test

Country Status (1)

Country Link
CN (1) CN1780237A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045192A (en) * 2009-10-20 2011-05-04 株式会社日立制作所 Apparatus and system for estimating network configuration
CN101588273B (en) * 2008-05-21 2011-05-04 中国科学院计算技术研究所 Virtual test bus circuit for network-on-chip system and test method thereof
CN101330411B (en) * 2008-07-30 2011-08-10 中兴通讯股份有限公司 Method and system for simulating large-scale network topological
CN101534221B (en) * 2008-03-11 2012-01-04 朗讯科技公司 Method and device for testing communication protocol in test equipment
CN103595592A (en) * 2013-11-29 2014-02-19 迈普通信技术股份有限公司 Method and system for testing consistency of WAN (Wide Area Network) interface protocols
CN103746859A (en) * 2013-09-09 2014-04-23 成都雄博科技发展有限公司 IPv6 protocol consistency abstract test method based on tunnel tag and pseudo-wire tag
CN103853655A (en) * 2012-11-30 2014-06-11 英业达科技有限公司 Testing system and testing method for generating virtual testing unit outside to-be-tested device
WO2016091156A1 (en) * 2014-12-12 2016-06-16 中兴通讯股份有限公司 Node fault judgement method and device
CN107819884A (en) * 2017-12-16 2018-03-20 长沙志鸿文化传媒有限公司 A kind of network topology structure based on Internet of Things
CN108075938A (en) * 2016-11-17 2018-05-25 迈普通信技术股份有限公司 A kind of automated testing method and device
CN113067738A (en) * 2021-04-01 2021-07-02 深圳市吉祥腾达科技有限公司 Network topology visualization function equipment compatibility testing method and system
CN113726590A (en) * 2021-07-20 2021-11-30 深圳市风云实业有限公司 Customized protocol testing method
CN113759877A (en) * 2021-09-16 2021-12-07 中国铁道科学研究院集团有限公司 Train network signal testing method and system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534221B (en) * 2008-03-11 2012-01-04 朗讯科技公司 Method and device for testing communication protocol in test equipment
CN101588273B (en) * 2008-05-21 2011-05-04 中国科学院计算技术研究所 Virtual test bus circuit for network-on-chip system and test method thereof
CN101330411B (en) * 2008-07-30 2011-08-10 中兴通讯股份有限公司 Method and system for simulating large-scale network topological
CN102045192A (en) * 2009-10-20 2011-05-04 株式会社日立制作所 Apparatus and system for estimating network configuration
CN103853655A (en) * 2012-11-30 2014-06-11 英业达科技有限公司 Testing system and testing method for generating virtual testing unit outside to-be-tested device
CN103746859A (en) * 2013-09-09 2014-04-23 成都雄博科技发展有限公司 IPv6 protocol consistency abstract test method based on tunnel tag and pseudo-wire tag
CN103595592A (en) * 2013-11-29 2014-02-19 迈普通信技术股份有限公司 Method and system for testing consistency of WAN (Wide Area Network) interface protocols
CN103595592B (en) * 2013-11-29 2017-01-18 迈普通信技术股份有限公司 Method and system for testing consistency of WAN (Wide Area Network) interface protocols
WO2016091156A1 (en) * 2014-12-12 2016-06-16 中兴通讯股份有限公司 Node fault judgement method and device
CN108075938A (en) * 2016-11-17 2018-05-25 迈普通信技术股份有限公司 A kind of automated testing method and device
CN107819884A (en) * 2017-12-16 2018-03-20 长沙志鸿文化传媒有限公司 A kind of network topology structure based on Internet of Things
CN113067738A (en) * 2021-04-01 2021-07-02 深圳市吉祥腾达科技有限公司 Network topology visualization function equipment compatibility testing method and system
CN113726590A (en) * 2021-07-20 2021-11-30 深圳市风云实业有限公司 Customized protocol testing method
CN113759877A (en) * 2021-09-16 2021-12-07 中国铁道科学研究院集团有限公司 Train network signal testing method and system

Similar Documents

Publication Publication Date Title
CN1780237A (en) Logic topological network for protocol test and method for realizing protocol test
CN101404596B (en) Multi-topological environmental test method, system and equipment
CN100369423C (en) Network simulation detection system and method
CN106095677A (en) The RESTful Webservice automatic interface testing method realized based on Robot Framework
CN1992635A (en) Method of simulating SNMP network element and performing network management system test with the network element
CN104965700B (en) The method and system of driving SPI equipment is realized under vxworks operating system
CN1231032C (en) Network protocol measuring method and measuring system thereof
CN1791037A (en) Method for realizing Web service automatic test
CN106534178B (en) System and method for realizing RapidIO network universal socket
CN1744521A (en) Network equipment management method and network management system
CN1514586A (en) Data communication equipment testing system and method of imitation multiuser, multi connection
CN116028292B (en) Simulation verification system and method for remote direct memory access simulation verification
CN107124326B (en) Automatic testing method and system
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
CN102609353A (en) Method, device and system for managing program debugging
CN100347990C (en) Method and system for monitoring performance of large scale memory system based on storage area network
CN1905496A (en) System and method for testing function of communication apparatus
CN113259200B (en) Vehicle-mounted Ethernet switch hardware testing method, device, equipment and storage medium
CN109814871B (en) Node management method and system based on DDS bus
CN114443488A (en) ARINC664 network configuration testing framework construction method
CN112468555A (en) Macro command group control scheme based on cloud mobile phone
CN113395293B (en) Network socket realizing method based on RPC
CN105281984A (en) Virtual terminal and method for message capturing and filtering
CN1185814C (en) Testng method of communication protocol base convergence and system
CN101098262A (en) SNMP interface based equipment arrangement testing approach and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication