CN1540892A - Transmission method for testing computer network protocol - Google Patents

Transmission method for testing computer network protocol Download PDF

Info

Publication number
CN1540892A
CN1540892A CNA2003101047933A CN200310104793A CN1540892A CN 1540892 A CN1540892 A CN 1540892A CN A2003101047933 A CNA2003101047933 A CN A2003101047933A CN 200310104793 A CN200310104793 A CN 200310104793A CN 1540892 A CN1540892 A CN 1540892A
Authority
CN
China
Prior art keywords
test
communication entity
protocol
network interface
layer
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.)
Granted
Application number
CNA2003101047933A
Other languages
Chinese (zh)
Other versions
CN100483976C (en
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.)
Choice Technologies Beijing Co ltd
Original Assignee
Institute of Computing Technology of CAS
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 Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CNB2003101047933A priority Critical patent/CN100483976C/en
Publication of CN1540892A publication Critical patent/CN1540892A/en
Application granted granted Critical
Publication of CN100483976C publication Critical patent/CN100483976C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Transmitting/receiving test data in test pack is realized by calling communication entity in lower layer through network interface relevant to protocol to be tested, it is no linger interacted with lower layer protocol and actual network. Lower layer protocol type realized by protocol to be tested is shielded to designer of testing set. Testing set and testing system passes testing under the said shielding condition. Interface of test pack is equivalent to I/O queue in PDU type of protocol to be tested. Object of communication entity in lower layer is embedded into each object of network interface to fulfill packaging/sending data to be tested and receiving/de-packaging returned data. Using limited system resources through defining proper label information in network interface needed for concurrent testing can simulate all test pack.

Description

Computer network protocol test transmission method
Technical field
The present invention relates to the computer network protocol field of engineering technology, particularly a kind of transmission method that is used for the computer network protocol uniformity test.
Background technology
Testing protocol consistency is an important branch of the protocol engineering, and the method by experiment that its objective is finds that tested agreement realizes (Implementation Under Test, IUT) mistake aspect function and logic.The reason of research testing protocol consistency is that consensus standard is to use natural language description at present basically, the implementor can cause different agreements to realize for the different understanding of consensus standard, sometimes even can be wrong realization, therefore need a kind of effective method to come agreement is realized verifying and differentiating.For the tester, the internal logic structure that tested agreement realizes loses, so uniformity test is a kind of Black-box Testing.
International standard ISO/IEC 9646 has defined the method and the framework of uniformity test, is used to test a product of claiming to have realized a certain agreement and the consistency of its consensus standard.Present testing protocol consistency generally adopts remote test method to carry out, promptly judge by the output of observing tested agreement realization whether it has correctly realized a certain function according to consensus standard, realize that for a tested agreement its output can only could occur when input meets some requirements.Uniformity test need just can carry out by means of the test macro of special use, and a certain function of test protocol to realize need be carried out two interlaced stages:
Test macro sends a series of packet to system under test (SUT), and this is called the control stage of uniformity test;
The packet that test macro monitoring system under test (SUT) returns compares with the return data of expecting, makes test judgement, and this is called the observation stage of uniformity test.
Uniformity test is exactly a control and observes the process of carrying out alternately, and till making test judgement, this process is pre-specified by test set.Test set is general to adopt a kind of specific language to be described, the test centralized definition test that required data flow, behavioral test are mutual, decision rule etc., test macro is carried out test set, provides the result.In the present uniformity test, because tested agreement realizes the diversity of place system, at first to consider the lower layer protocol type of tested agreement realization and the lower layer protocol type that test macro can be supported during the test set design, lower floor's transmission problem during the test that has been test set design worry about, can not accomplish independently, general, for example can not the agreement that run on the point-to-point link PPP be realized testing for the test set that runs on network layer protocol (IP) exploitation on the Ethernet; Have the very big relation that disposes of test macro concurrent test ability and its place system in addition now, need to spend the suitable energy configure thing relevant before the test with transmission, such as configuration observe the control point (Point of Control and Observation, PCO), levels protocol type, address etc.That is to say, the agreement that the test set of writing for a certain agreement generally can only be exclusively used in running on a certain type lower-layer protocols realizes testing, test macro generally is merely able to be installed in the specific system, be used for the test of special protocol, also Just because of this, although the tree table is in conjunction with representation (the tree and tabular combined notation, TTCN) be the test set descriptive language that ISO/IEC9646 recommends, also do not have general TTCN compiling actuator at present.
Summary of the invention
The object of the present invention is to provide a kind of computer network protocol test transmission method.
The technical scheme of invention:
A kind of transmission method that is used for the computer network protocol uniformity test, it is characterized in that, the mode that adopts communication entity and network interface to combine, in the test suite transmission/reception of test data no longer directly with the network interaction of lower-layer protocols and reality, but by realizing with tested agreement network of relation interface interchange lower floor communication entity.
The lower floor's transmission method that adopts in the protocol test should be able to shield the lower layer protocol type that tested agreement realizes to test set, be the lower layer protocol type of the tested agreement realization of the consideration place system that the test set designer needn't be too much, the tester needn't tested system place hardware characteristics disturb.As target, by description and analysis, lower floor's transmission method that a kind of communication entity and network interface combine has been proposed to transmission problem in the protocol test, be used for the design and the realization of test macro:
The notion of network interface is used to define the type and the relevant parameters of logic interfacing, and each network interface object as an independently test suite use, is equivalent to a logic tester when reality is tested;
The notion of communication entity is used for the type to the logic tester shielding ISP of lower floor, is used for the transmission and the reception of logic tester data, and communication entity all is nested in the network interface.
Use this transmission method, no longer direct and lower-layer protocols and actual network interaction of the transmission/reception of test data in the test suite, but finish by a network interface object.The function of test suite is finished by the network interface object, its interface to test suite is equivalent to a tested protocol Data Unit (Protocol Data Unit, PDU) the I/O formation of type, thereby can shield the lower layer protocol type that tested agreement realizes to the designer of test set, the test set of developing for specific protocol can be used for the agreement realization of test run on any kind lower-layer protocols.
An all nested lower-layer protocols communication entity object in each network interface object, the encapsulation/transmission of packet and reception/decapsulation function all by the communication entity object reference more lower floor, finish up to the link layer communications entity object.Realize for tested agreement, only judge and distinguish the other side's existence according to the relevant information in the data of receiving identical level.For instance, even network layer protocol is received two packets that same machine sends, if the source address of these two data packet network layers is inequality, the recipient can think that also packet is to be sent by different machines.In like manner, transmission control layer agreement TCP then distinguishes the promoter of connection request according to the source port of connection request.Thus, when needing concurrent test, when the tectonic network interface object, can adopt different identification informations, so just can utilize limited system resource to simulate required test suite, can also shield the link medium type of lower layer protocol type and even connection test macro and system under test (SUT) simultaneously the designer of test set.This transmission method is used for the computer network protocol uniformity test, can reach following target:
The lower layer protocol type that test set and tested agreement realize is irrelevant: the designer of test set needn't consider that tested agreement realizes the lower layer protocol type of place system, using same set of test set and test macro can realize testing to the tested agreement that runs on any kind lower-layer protocols, and does not need artificial configuration effort substantially before the test;
The configuration-independent of concurrent test ability and test macro place system: during concurrent test, the number of the concurrent test assembly that test macro can be supported and the configuration-independent of its place system can utilize limited physical interface to simulate the logic testing interface (test suite) that all need.
Computer network protocol test transmission method also is, the communication entity object of following one deck is nested in the network interface object of last layer, the communication entity object detects lower layer protocol type automatically, tested agreement PDU to output queue in the network interface object encapsulates transmission, and the packet that system under test (SUT) returns carried out decapsulation, preliminary judgement, deposit in the input rank of corresponding network interface object, supply the test suite reception and carry out test judgement, thereby can shield the test macro feature to the tester, significantly reduce the configuration effort of tester before test.
Because tested agreement only realizes according to receiving that the relevant information in the data judges and distinguish the other side's existence, therefore when the tectonic network interface object, different identification informations can be adopted, limited all required test suites of system resource simulation concurrent test can be used.
Description of drawings
Fig. 1 is the notion and the application model figure of network interface.
Fig. 2 is the realization figure that is applied to communication entity class system in the transmission method of computer network protocol test.
Fig. 3 is the transmission of concurrent test packet and receives illustraton of model.
Embodiment
According to Internet protocol TCP/IP viewpoint, computer network protocol is divided into four levels: application layer, transport layer, network layer, link/physical layer.From the angle of protocol test, if test network layer protocol (IPv4, IPv6 etc.) then needs tectonic network layer network interface object, the ISP of its lower floor is the link layer medium; The above agreement of test network layer (as HTML (Hypertext Markup Language) http, Telnet telnet, Routing Protocol OSPF etc.) if desired then needs to construct the network interface object of types such as TCP, OSPF, and the ISP of its lower floor is a network layer protocol.Test set design and test macro are carried out should be irrelevant with lower layer protocol type, such as testing for network layer protocol, no matter tested agreement realizes running on Ethernet, point-to-point link PPP, still on the asynchronous transfer mode ATM, use same set of test set and test macro and all should be able to test it, should install in the different just test macros with system under test (SUT) in tested agreement with lower part identical agreement and network interface.Adopt Object-oriented Technique to realize the transmission method that communication entity and network interface combine, should the communication entity class and the network interface class of each level be defined, and their function and application is carried out modelling.
1. network interface is realized and conceptual model
Network interface is the basis of structure test suite, need construct the network interface object suitable with tested agreement during test.Be used for the computer network protocol test, need to support IPv4 network interface class, IPv6 network interface class, TCP network interface class, UDP network interface class etc. in the test macro.The network interface class that the tested agreement P1 that belongs to the N layer should be defined as follows:
{ type is the input rank of P1_PDU to class P1 network interface; Type is the output queue of P1_PDU; N-1 layer communication entity class object; Note: 1.P1 network interface class should be imported two parameters of N-1 layer communication entity object into: the identification information of the protocol type P1 of network interface and differentiation P1 network interface object; 2.P1_PDU type is meant that the packet of the P1 type that is encapsulated into the N layer, the payload that can be used as the N-1 layer protocol send to the data type of system under test (SUT); 3.N-1 layer communication entity object encapsulates the data in the output queue, passes to more following one deck communication entity, finally sends to system under test (SUT) by the link layer communications entity object; 4.N-1 obtaining the data that system under test (SUT) returns from next layer data buffering area more, layer communication entity object carry out decapsulation, compare with identification information, if relatively success is then deposited in the input rank;
During concurrent test, be the network interface object of a corresponding level of each test suite that needs generation, it has shielded the ISP's of lower floor of tested agreement realization information to the designer of test set.Concerning each test suite, network interface is modeled as an input rank and an output queue, the test set designer only need construct tested protocol Data Unit PDU and put into output queue, obtains tested protocol Data Unit PDU that tested realization returns simultaneously and judge and get final product from input rank.
The notion and the application model of network interface object are seen Fig. 1, wherein:
For a formation,! The expression input;
For a formation,? expression output;
Top represents the current location of formation output;
2. communication entity is realized and model
Communication entity is as the bridge of I/O formation and lower-layer protocols in the connection network interface, finish the reception/decapsulation function of the encapsulation/transmission of data in the output queue and the lower-layer protocols data that system under test (SUT) returns, the communication entity class system that is used for the computer network protocol uniformity test by two levels combination and inherit and realize:
With the viewpoint of protocol type, definition protocol type communication entity class;
With the viewpoint of protocol hierarchy, definition protocol hierarchy communication entity class;
N layer communication entity class has made up all and has belonged to the protocol type communication entity object of N layer; The protocol type communication entity class that belongs to the N layer has then been inherited N-1 layer communication entity class; N layer communication entity class is the information that the network interface that belongs to the N+1 layer has shielded all N layer protocol types.N layer communication entity class should be as giving a definition:
Class N layer communication entity { the protocol type P1 of N+1 layer network interface object representative; // import the identification information of N+1 layer network interface object into by the N+1 layer network interface class that generates this class object; // import enumeration type into by the N+1 layer network interface class that generates this class object: all belong to the protocol type communication entity object of N layer; Send (P1_PDU); // by test macro according to N layer protocol type call enumeration type // in the respective communication entity object finish reception (P1_PDU); // by test macro according to N layer protocol type call enumeration type // in the respective communication entity object finish
The protocol type P1 communication entity class definition that belongs to the N layer is as follows:
Class P1 communication entity: N-1 layer communication entity class { P1 header structure; The encapsulation/decapsulation function; Send function: the PDU with in the P1 header encapsulation upper layer network interface output queue, call N-1 layer communication entity and send; Receiver function: receive data from N-1 layer communication entity, judge after the decapsulation, judge successfully then to send the upper layer network interface input queue to; }
In the computer network protocol architecture, the object of uniformity test may comprise: network layer protocol IPv4, IPv6 etc., and its agreement realizes may running on the link layer of Ethernet, asynchronous transfer mode ATM, point-to-point link PPP or other type; Application layer protocol comprises application based on TCP, based on other the above agreement of network layer such as the application of UDP, ospf, and its agreement realizes may running on IPv4, the IPv6.Be applied to the following (see figure 2) of performing step of communication entity class system in the transmission method of computer network protocol test:
Definition link layer protocol type communication entity class, comprise ethernet communication entity class FethEntity, ATM communication entity class ATMEntity, point-to-point link communication entity class PPPEntity etc., they can both be specified according to the automatic selection of the hardware platform feature at test macro place or by the tester and be used for the network interface of communicating by letter with system under test (SUT) and finish final data bag transmission/reception work;
On the basis that defines link layer protocol type communication entity class, through step S1, by combination definition link layer communications entity class;
Through step S2,, comprise IPv4 communication entity class and IPv6 communication entity class by inheriting define grid layer protocol type communication entity class;
Through step S3, on the basis of network layer protocol type communication entity class, by combination define grid layer communication entity class;
In the actual test, each test suite need obtain the packet that tested realization returns to it and carry out test judgement, in order to make test suite from the input rank of the network interface object relevant, effectively obtain the packet that tested realization is returned with it, communication entity can carry out the lower floor's packet that receives depositing in the input rank of upper layer network interface after the primary election again, finally, only comprised the packet that sends to corresponding test suite in each network interface input rank, this has accelerated the work such as judgement with test result of obtaining of return data.Communication entity comprises the step that following layer data receives, judges, stores:
N layer communication entity obtains packet from its lower floor data buffer zone, removes N layer stem, obtains N+1 layer protocol data cell PDU;
The identification information of the sign N+1 layer test suite that communication entity is obtained by N+1 layer network interface object when creating, the N+1 layer protocol data cell PDU that obtains is checked, if this protocol Data Unit PDU belongs to this test suite, then this protocol Data Unit PDU is deposited in the input rank of N+1 layer network interface; Otherwise abandon this packet, obtain next packet, repeat this process from the lower floor data buffer zone.
Suppose that tested agreement belongs to the N layer protocol, the execution of a concurrent test example needs n test suite, needs n network interface object of structure, comprises n N-1 layer communication entity object altogether, the transmission of its packet/reception model as shown in Figure 3, wherein:
Each N layer network interface is equivalent to a test suite;
The communication entity corresponding with N layer network interface is transmission and the reception that test suite is realized test data;
Method of the present invention can be widely used among the computer network protocol test.

Claims (6)

1. one kind is used for the transmission method that computer network protocol is tested, it is characterized in that, the mode that adopts communication entity and network interface to combine, in the test suite transmission/reception of test data no longer directly with the network interaction of lower-layer protocols and reality, but by realizing with tested agreement network of relation interface interchange lower floor communication entity.
2. the transmission method that is used for the computer network protocol test according to claim 1, it is characterized in that, the function of test suite is finished by the network interface object, its interface to test suite is equivalent to the I/O formation of a tested agreement PDU type, thereby can shield the lower layer protocol type that tested agreement realizes to the designer of test set, the test set of developing for specific protocol can be used for the agreement realization of test run on any kind lower-layer protocols.
3. the transmission method that is used for the computer network protocol test according to claim 1, it is characterized in that, the communication entity object of following one deck is nested in the network interface object of last layer, the communication entity object detects lower layer protocol type automatically, tested agreement PDU to output queue in the network interface object encapsulates transmission, and the packet that system under test (SUT) returns carried out decapsulation, preliminary judgement, deposit in the input rank of corresponding network interface object, supply the test suite reception and carry out test judgement, thereby can shield the test macro feature to the tester, significantly reduce the configuration effort of tester before test.
4. the transmission method that is used for the computer network protocol test according to claim 1, it is characterized in that, because tested agreement only realizes according to receiving that the relevant information in the data judges and distinguish the other side's existence, therefore when the tectonic network interface object, different identification informations can be adopted, limited all required test suites of system resource simulation concurrent test can be used.
5. the implementation method of communication entity class system in the transmission method that is applied to computer network protocol test, its step is as follows: definition link layer protocol type communication entity class, comprise ethernet communication entity class, ATM communication entity class, point-to-point link communication entity class, specify according to the automatic selection of the hardware platform feature at place or by the tester by test macro to be used for the network interface of communicating by letter and to finish final data bag transmission/reception work with system under test (SUT).
6. according to the implementation method of communication entity class system in the transmission method that is applied to the computer network protocol test of claim 5, its step is as follows:
-on the basis that defines link layer protocol type communication entity class, through step S1, by combination definition link layer communications entity class;
-through step S2,, comprise IPv4 communication entity class and IPv6 communication entity class by inheriting define grid layer protocol type communication entity class;
-through step S3, on the basis of network layer protocol type communication entity class, by combination define grid layer communication entity class.
CNB2003101047933A 2003-11-03 2003-11-03 Transmission method for testing computer network protocol Expired - Lifetime CN100483976C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2003101047933A CN100483976C (en) 2003-11-03 2003-11-03 Transmission method for testing computer network protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2003101047933A CN100483976C (en) 2003-11-03 2003-11-03 Transmission method for testing computer network protocol

Publications (2)

Publication Number Publication Date
CN1540892A true CN1540892A (en) 2004-10-27
CN100483976C CN100483976C (en) 2009-04-29

Family

ID=34333538

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2003101047933A Expired - Lifetime CN100483976C (en) 2003-11-03 2003-11-03 Transmission method for testing computer network protocol

Country Status (1)

Country Link
CN (1) CN100483976C (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100370764C (en) * 2004-11-16 2008-02-20 华为技术有限公司 Protocol test device and method for realizing protocol test
CN100389572C (en) * 2005-04-11 2008-05-21 华为技术有限公司 System and method for long-distance calling communication assembly
CN100389570C (en) * 2004-12-21 2008-05-21 华为技术有限公司 Method and system for testing functions of forwarding actual services at communication nodes
CN102694701A (en) * 2012-06-13 2012-09-26 青岛海信传媒网络技术有限公司 Testing method and system based on message
CN102855182A (en) * 2011-06-28 2013-01-02 乐活在线(北京)网络技术有限公司 Web system test method and device
CN103746859A (en) * 2013-09-09 2014-04-23 成都雄博科技发展有限公司 IPv6 protocol consistency abstract test method based on tunnel tag and pseudo-wire tag
CN113759877A (en) * 2021-09-16 2021-12-07 中国铁道科学研究院集团有限公司 Train network signal testing method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6373822B1 (en) * 1999-01-08 2002-04-16 Cisco Technology, Inc. Data network protocol conformance test system
CN1207857C (en) * 2001-08-08 2005-06-22 中国科学院计算技术研究所 Virtual testing system in communication protocal conformance test and its method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100370764C (en) * 2004-11-16 2008-02-20 华为技术有限公司 Protocol test device and method for realizing protocol test
CN100389570C (en) * 2004-12-21 2008-05-21 华为技术有限公司 Method and system for testing functions of forwarding actual services at communication nodes
CN100389572C (en) * 2005-04-11 2008-05-21 华为技术有限公司 System and method for long-distance calling communication assembly
CN102855182A (en) * 2011-06-28 2013-01-02 乐活在线(北京)网络技术有限公司 Web system test method and device
CN102855182B (en) * 2011-06-28 2016-03-02 百度在线网络技术(北京)有限公司 A kind of Web system test method and device
CN102694701A (en) * 2012-06-13 2012-09-26 青岛海信传媒网络技术有限公司 Testing method and system based on message
CN102694701B (en) * 2012-06-13 2015-12-02 青岛海信传媒网络技术有限公司 Message based method of testing and system
CN103746859A (en) * 2013-09-09 2014-04-23 成都雄博科技发展有限公司 IPv6 protocol consistency abstract test method based on tunnel tag and pseudo-wire tag
CN113759877A (en) * 2021-09-16 2021-12-07 中国铁道科学研究院集团有限公司 Train network signal testing method and system
CN113759877B (en) * 2021-09-16 2023-05-19 中国铁道科学研究院集团有限公司 Train network signal testing method and system

Also Published As

Publication number Publication date
CN100483976C (en) 2009-04-29

Similar Documents

Publication Publication Date Title
US6832184B1 (en) Intelligent work station simulation—generalized LAN frame generation simulation structure
Sarikaya et al. A test design methodology for protocol testing
CN1816803A (en) Propagation of signals between devices for triggering capture of network data
CN108737213B (en) High-parallelism and high-throughput penetration test system and method based on FPGA
CN103200190A (en) Physical accessing method facing QualNet network semi-physical simulation
CN1540892A (en) Transmission method for testing computer network protocol
CN110505228A (en) Big data processing method, system, medium and device based on edge cloud framework
Crnkovic et al. On the use of component-based principles and practices for architecting cyber-physical systems
Barlas et al. NetStub: A framework for verification of distributed Java applications
CN1164065C (en) Universal protocol testing method for embedded system
CN106953770A (en) A kind of lightweight network function virtualization system and its virtual method
CN100347990C (en) Method and system for monitoring performance of large scale memory system based on storage area network
Souza et al. Data flow testing in concurrent programs with message passing and shared memory paradigms
Blundell et al. Parameterized interfaces for open system verification of product lines
CN1780237A (en) Logic topological network for protocol test and method for realizing protocol test
Kuliamin et al. Integration of functional and timed testing of real-time and concurrent systems
Alba et al. Ant colony optimization for model checking
CN102780616B (en) Network equipment and method and device for message processing based on multi-core processor
CN115396335B (en) Industrial wireless network equipment access IPv6 test system and method based on micro-service
Karl A Comparison of the architecture of network simulators NS-2 and TOSSIM
CN1753542A (en) Testing equipment of short message interface
Liu et al. A discrete-event-based simulator for distributed deep learning
CN1185814C (en) Testng method of communication protocol base convergence and system
Michiels Component Framework Technology for Adaptable and Manageable Protocol Stacks
Herrera et al. Communication Management Through Sockets Developed In Java

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190117

Address after: 100085 C906-1, 8th floor, Block C, 9th Shangdi Third Street, Haidian District, Beijing

Patentee after: CHOICE TECHNOLOGIES (BEIJING) Co.,Ltd.

Address before: 100080 No. 6 South Road, Zhongguancun Academy of Sciences, Beijing, Haidian District

Patentee before: Institute of Computing Technology, Chinese Academy of Sciences

CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20090429