CN105183482A - Network simulation development testing method and system - Google Patents

Network simulation development testing method and system Download PDF

Info

Publication number
CN105183482A
CN105183482A CN201510612524.0A CN201510612524A CN105183482A CN 105183482 A CN105183482 A CN 105183482A CN 201510612524 A CN201510612524 A CN 201510612524A CN 105183482 A CN105183482 A CN 105183482A
Authority
CN
China
Prior art keywords
case
data
testing
measured
transceiver interface
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
CN201510612524.0A
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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510612524.0A priority Critical patent/CN105183482A/en
Publication of CN105183482A publication Critical patent/CN105183482A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a network simulation development testing method and system. The method includes the steps that a to-be-tested use case is tested, corresponding test data flow is generated, the test data flow is transmitted to a first data receiving and transmitting interface, and then the test data flow is transmitted to one side of a pre-built bottom layer simulation link through the first data receiving and transmitting interface, wherein the bottom layer simulation link is obtained after a virtual network interface card and a physical network interface card are packaged; after the test data flow is transmitted to one side of the bottom layer simulation link through the first data receiving and transmitting interface, response data output from the other side of the bottom layer simulation link is transmitted to a second data receiving and transmitting interface, and then the self-transmitting and self-receiving process of the data is completed. Simulation of a network system and network communication equipment is achieved, and the method and system can complete development testing of the to-be-tested use case on the basis of not depending on specific hardware, so that development testing cost is reduced, and the development testing process is simplified.

Description

A kind of network simulation development and testing method and system
Technical field
The present invention relates to networks simulation technology field, particularly a kind of network simulation development and testing method and system.
Background technology
At present, the kind of the network equipment gets more and more, the function that the network equipment has also all the more perfect.Carrying out in R&D process to the network equipment, research staff needs to test one by one functional modules different in the network equipment, to guarantee that the network equipment finally has good performance as far as possible.
But, when utilizing the functional module of prior art to the network equipment to develop test, need the network environment by complexity and various hardware device, this adds the cost of development and testing undoubtedly, and make development and testing process comparatively complicated, development and testing efficiency is lower.
Can find out in sum, how reducing development and testing cost and simplifying development and testing process is current problem demanding prompt solution.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of network simulation development and testing method and system, reduce development and testing cost, and simplify development and testing process, thus improve development and testing efficiency.Its concrete scheme is as follows:
A kind of network simulation development and testing method, comprising:
Use-case to be measured is tested, produces corresponding test data stream, and described test data stream is sent to the first data transceiver interface, to utilize described first data transceiver interface, described test data stream is sent to the side that the bottom built in advance emulates link; Wherein, described bottom emulation link is obtain after encapsulating Microsoft Loopback Adapter and physical network card;
When described test data stream is sent to the rear flank that described bottom emulates link by described first data transceiver interface, the response data that opposite side from described bottom emulation link exports is sent to the second data transceiver interface, to complete the internal loopback process of data.
Preferably, described method also comprises:
Described use-case to be measured, described test data stream and described response data are analyzed, obtains corresponding test result.
Preferably, described method also comprises:
Described test result is analyzed, is analyzed data accordingly.
Preferably, described method also comprises:
After described analysis data demonstrate described use-case existing defects to be measured, accordingly exploitation is debugged to this use-case to be measured.
Preferably, described use-case to be measured is unit testing use-case, module testing use-case or integration testing use-case.
The invention also discloses a kind of network simulation development and testing system, comprise network encapsulation layer, the first data transceiver interface, the second data transceiver interface and test module; Wherein,
Described network encapsulation layer, for encapsulating Microsoft Loopback Adapter and physical network card, to build corresponding bottom emulation link;
Described test module, for testing use-case to be measured, produces corresponding test data stream, and described test data stream is sent to described first data transceiver interface;
Described first data transceiver interface, for being sent to the side of described bottom emulation link by the described test data stream received;
Described second data transceiver interface, for described test data stream being sent to the rear flank that described bottom emulates link when described first data transceiver interface, obtain the response data exported from the opposite side of described bottom emulation link, to complete the internal loopback process of data.
Preferably, described system also comprises:
Test result acquisition module, for analyzing described use-case to be measured, described test data stream and described response data, obtains corresponding test result.
Preferably, described system also comprises:
Test result analysis module, for analyzing described test result, is analyzed data accordingly.
Preferably, described system, also comprises:
Development module, after demonstrating described use-case existing defects to be measured when described analysis data, debugs exploitation accordingly to this use-case to be measured.
Preferably, described use-case to be measured is unit testing use-case, module testing use-case or integration testing use-case.
Network simulation development and testing method disclosed by the invention comprises, use-case to be measured is tested, produce corresponding test data stream, and test data stream is sent to the first data transceiver interface, to utilize the first data transceiver interface, test data stream is sent to the side that the bottom built in advance emulates link; Wherein, bottom emulation link is obtain after encapsulating Microsoft Loopback Adapter and physical network card; When test data stream is sent to the rear flank that bottom emulates link by the first data transceiver interface, the response data that the opposite side from bottom emulation link exports is sent to the second data transceiver interface, to complete the internal loopback process of data.Visible, the present invention is by encapsulating Microsoft Loopback Adapter and physical network card, obtain bottom emulation link, and the first data transceiver interface emulates link by bottom, data transmit-receive operation is carried out with the second data transceiver interface, thus achieve and be similar to loop interface (i.e. loopback, local loopback interface) internal loopback pattern, to sum up, present invention achieves the emulation to network system and network communication equipment, the present invention is made not rely on the basis of particular hardware, complete the development and testing to use-case to be measured, thus reduce development and testing cost, and simplify development and testing process, thus improve development and testing efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
Fig. 1 is a kind of network simulation development and testing method flow diagram disclosed in the embodiment of the present invention;
Fig. 2 is a kind of network simulation development and testing system architecture schematic diagram disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of network simulation development and testing method, shown in Figure 1, the method comprises:
Step S101: test use-case to be measured, produces corresponding test data stream;
Step S102: test data stream is sent to the first data transceiver interface, is sent to test data stream the side that the bottom built in advance emulates link to utilize the first data transceiver interface; Wherein, bottom emulation link is obtain after encapsulating Microsoft Loopback Adapter and physical network card;
Step S103: when test data stream is sent to the rear flank that bottom emulates link by the first data transceiver interface, is sent to the second data transceiver interface, to complete the internal loopback process of data by the response data that the opposite side from bottom emulation link exports.
It should be noted that, user according to the actual needs, can choose unit testing use-case, module testing use-case or integration testing use-case as use-case to be measured.
Disclosed in the embodiment of the present invention, network simulation development and testing method comprises, use-case to be measured is tested, produce corresponding test data stream, and test data stream is sent to the first data transceiver interface, to utilize the first data transceiver interface, test data stream is sent to the side that the bottom built in advance emulates link; Wherein, bottom emulation link is obtain after encapsulating Microsoft Loopback Adapter and physical network card; When test data stream is sent to the rear flank that bottom emulates link by the first data transceiver interface, the response data that the opposite side from bottom emulation link exports is sent to the second data transceiver interface, to complete the internal loopback process of data.
Visible, the embodiment of the present invention is by encapsulating Microsoft Loopback Adapter and physical network card, obtain bottom emulation link, and the first data transceiver interface emulates link by bottom, data transmit-receive operation is carried out with the second data transceiver interface, thus achieve the internal loopback pattern being similar to loop interface, to sum up, pass through the embodiment of the present invention, achieve the emulation to network system and network communication equipment, the embodiment of the present invention is made not rely on the basis of particular hardware, complete the development and testing to use-case to be measured, thus reduce development and testing cost, and simplify development and testing process, thus improve development and testing efficiency.
The embodiment of the invention also discloses a kind of concrete network simulation development and testing method, relative to a upper embodiment, the present embodiment has done further instruction and optimization to technical scheme.Concrete:
In order to realize obtaining corresponding test result and assess test result, the method in the present embodiment can further include: analyze use-case to be measured, test data stream and response data, obtain corresponding test result; Test result is analyzed, is analyzed data accordingly.
In addition, the method in the present embodiment can further include: after analysis data demonstrate use-case existing defects to be measured, debug exploitation accordingly to this use-case to be measured.
The embodiment of the invention also discloses a kind of network simulation development and testing system, shown in Figure 2, this system comprises network encapsulation layer 21, test module 22, first data transceiver interface 23 and the second data transceiver interface 24; Wherein,
Network encapsulation layer 21, for encapsulating Microsoft Loopback Adapter and physical network card, to build corresponding bottom emulation link;
Test module 22, for testing use-case to be measured, produces corresponding test data stream, and test data stream is sent to the first data transceiver interface 23;
First data transceiver interface 23, for being sent to the side of bottom emulation link by the test data received stream;
Second data transceiver interface 24, for test data stream being sent to the rear flank that bottom emulates link when the first data transceiver interface 23, obtains the response data exported from the opposite side of bottom emulation link, to complete the internal loopback process of data.
It should be noted that, above-mentioned use-case to be measured can be unit testing use-case, module testing use-case or integration testing use-case.
Further, system in the present embodiment can also comprise test result acquisition module and test result analysis module, wherein, test result acquisition module, specifically for analyzing use-case to be measured, test data stream and response data, obtains corresponding test result; Test result analysis module then for analyzing test result, is analyzed data accordingly.
In addition, the present embodiment can further include development module, for after analysis data demonstrate use-case existing defects to be measured, debugs exploitation accordingly to this use-case to be measured.
In network simulation development and testing system disclosed in the embodiment of the present invention, test module can be used for testing use-case to be measured, produce corresponding test data stream, and test data stream is sent to the first data transceiver interface, to utilize the first data transceiver interface, test data stream is sent to the side that the bottom built in advance emulates link; Wherein, bottom emulation link is obtain after network encapsulation layer encapsulates Microsoft Loopback Adapter and physical network card; When test data stream is sent to the rear flank that bottom emulates link by the first data transceiver interface, the response data that the opposite side from bottom emulation link exports is sent to the second data transceiver interface, to complete the internal loopback process of data.
Visible, the embodiment of the present invention is by encapsulating Microsoft Loopback Adapter and physical network card, obtain bottom emulation link, and the first data transceiver interface emulates link by bottom, data transmit-receive operation is carried out with the second data transceiver interface, thus achieve the internal loopback pattern being similar to loop interface, to sum up, pass through the embodiment of the present invention, achieve the emulation to network system and network communication equipment, the embodiment of the present invention is made not rely on the basis of particular hardware, complete the development and testing to use-case to be measured, thus reduce development and testing cost, and simplify development and testing process, thus improve development and testing efficiency.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Above a kind of network simulation development and testing method and system provided by the present invention are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a network simulation development and testing method, is characterized in that, comprising:
Use-case to be measured is tested, produces corresponding test data stream, and described test data stream is sent to the first data transceiver interface, to utilize described first data transceiver interface, described test data stream is sent to the side that the bottom built in advance emulates link; Wherein, described bottom emulation link is obtain after encapsulating Microsoft Loopback Adapter and physical network card;
When described test data stream is sent to the rear flank that described bottom emulates link by described first data transceiver interface, the response data that opposite side from described bottom emulation link exports is sent to the second data transceiver interface, to complete the internal loopback process of data.
2. network simulation development and testing method according to claim 1, is characterized in that, also comprise:
Described use-case to be measured, described test data stream and described response data are analyzed, obtains corresponding test result.
3. network simulation development and testing method according to claim 2, is characterized in that, also comprise:
Described test result is analyzed, is analyzed data accordingly.
4. network simulation development and testing method according to claim 3, is characterized in that, also comprise:
After described analysis data demonstrate described use-case existing defects to be measured, accordingly exploitation is debugged to this use-case to be measured.
5. the network simulation development and testing method according to any one of Claims 1-4, is characterized in that, described use-case to be measured is unit testing use-case, module testing use-case or integration testing use-case.
6. a network simulation development and testing system, is characterized in that, comprises network encapsulation layer, the first data transceiver interface, the second data transceiver interface and test module; Wherein,
Described network encapsulation layer, for encapsulating Microsoft Loopback Adapter and physical network card, to build corresponding bottom emulation link;
Described test module, for testing use-case to be measured, produces corresponding test data stream, and described test data stream is sent to described first data transceiver interface;
Described first data transceiver interface, for being sent to the side of described bottom emulation link by the described test data stream received;
Described second data transceiver interface, for described test data stream being sent to the rear flank that described bottom emulates link when described first data transceiver interface, obtain the response data exported from the opposite side of described bottom emulation link, to complete the internal loopback process of data.
7. network simulation development and testing system according to claim 6, is characterized in that, also comprise:
Test result acquisition module, for analyzing described use-case to be measured, described test data stream and described response data, obtains corresponding test result.
8. network simulation development and testing system according to claim 7, is characterized in that, also comprise:
Test result analysis module, for analyzing described test result, is analyzed data accordingly.
9. network simulation development and testing system according to claim 8, is characterized in that, also comprise:
Development module, after demonstrating described use-case existing defects to be measured when described analysis data, debugs exploitation accordingly to this use-case to be measured.
10. the network simulation development and testing system according to any one of claim 6 to 9, is characterized in that, described use-case to be measured is unit testing use-case, module testing use-case or integration testing use-case.
CN201510612524.0A 2015-09-23 2015-09-23 Network simulation development testing method and system Pending CN105183482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510612524.0A CN105183482A (en) 2015-09-23 2015-09-23 Network simulation development testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510612524.0A CN105183482A (en) 2015-09-23 2015-09-23 Network simulation development testing method and system

Publications (1)

Publication Number Publication Date
CN105183482A true CN105183482A (en) 2015-12-23

Family

ID=54905581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510612524.0A Pending CN105183482A (en) 2015-09-23 2015-09-23 Network simulation development testing method and system

Country Status (1)

Country Link
CN (1) CN105183482A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649012A (en) * 2016-12-14 2017-05-10 深圳市恒扬数据股份有限公司 Automated testing method and device
CN111611121A (en) * 2020-04-09 2020-09-01 浙江口碑网络技术有限公司 Hardware simulation test method, device and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050055399A1 (en) * 2003-09-10 2005-03-10 Gene Savchuk High-performance network content analysis platform
CN1625271A (en) * 2003-12-01 2005-06-08 中兴通讯股份有限公司 One board testing device of digital user wire equipment
CN101887379A (en) * 2010-06-18 2010-11-17 北京航空航天大学 Virtual network card-based wireless channel simulation method
CN102804689A (en) * 2010-02-05 2012-11-28 爱斯福公司 Testing network communications links
CN103077003A (en) * 2012-12-27 2013-05-01 中兴通讯股份有限公司 Method, device and system for outputting HiFi (High Fidelity) audio frequency
US20130266307A1 (en) * 2010-09-01 2013-10-10 Brocade Communications Systems, Inc. Diagnostic port for inter-switch and node link testing in electrical, optical and remote loopback modes

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050055399A1 (en) * 2003-09-10 2005-03-10 Gene Savchuk High-performance network content analysis platform
CN1625271A (en) * 2003-12-01 2005-06-08 中兴通讯股份有限公司 One board testing device of digital user wire equipment
CN102804689A (en) * 2010-02-05 2012-11-28 爱斯福公司 Testing network communications links
CN101887379A (en) * 2010-06-18 2010-11-17 北京航空航天大学 Virtual network card-based wireless channel simulation method
US20130266307A1 (en) * 2010-09-01 2013-10-10 Brocade Communications Systems, Inc. Diagnostic port for inter-switch and node link testing in electrical, optical and remote loopback modes
CN103077003A (en) * 2012-12-27 2013-05-01 中兴通讯股份有限公司 Method, device and system for outputting HiFi (High Fidelity) audio frequency

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649012A (en) * 2016-12-14 2017-05-10 深圳市恒扬数据股份有限公司 Automated testing method and device
CN106649012B (en) * 2016-12-14 2019-11-22 深圳市恒扬数据股份有限公司 A kind of method and apparatus of automatic test
CN111611121A (en) * 2020-04-09 2020-09-01 浙江口碑网络技术有限公司 Hardware simulation test method, device and equipment
CN111611121B (en) * 2020-04-09 2023-11-07 浙江口碑网络技术有限公司 Hardware simulation test method, device and equipment

Similar Documents

Publication Publication Date Title
CN102946616B (en) Internet of things middleware performance testing system and testing method
CN104053164B (en) Things-internet gateway test system and method
CN112929230B (en) Test processing method and device, electronic equipment and computer readable storage medium
CN104331282A (en) Reconfigurable comprehensive development and test system of wireless product
CN112946404B (en) Comprehensive test method for batch production satellite
CN103235749A (en) FPGA-based sensor network SoC proto verification platform
CN105306156A (en) Remote sensing satellite data transmission product automatic testing system and method
CN106411637A (en) Internet-of-things device scenario testing method
CN109901559A (en) A kind of T-BOX test macro and method
CN114707236A (en) Model-based virtual-real combined simulation test method
CN110531384A (en) A kind of Galilean satellite signal imitation system and its analogy method
CN114036013A (en) UVM-based transponder chip multi-module synchronous verification platform and verification method
Truong et al. A reconfigurable hardware platform for low-power wide-area wireless sensor networks
CN105183482A (en) Network simulation development testing method and system
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
CN104703197A (en) Terminal protocol consistency testing platform and terminal protocol consistency testing method based on TTCN-3
CN203260028U (en) Sensor network SoC prototype verification platform based on FPGA
Ma et al. A survey of recent achievements for wireless sensor networks testbeds
CN108267683A (en) The method and device that a kind of FPGA tests oneself
Huangfu et al. A high-accuracy nonintrusive networking testbed for wireless sensor networks
CN204442405U (en) A kind of intelligent substation communication network test platform
CN109541443A (en) Real-time clock detection device and method
CN104156295A (en) Multi-channel serial port testing system and establishing method
Böhm et al. Looking into hardware-in-the-loop coupling of omnet++ and rosenet
CN203522776U (en) Configurable industrial Ethernet data parsing system

Legal Events

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

Application publication date: 20151223

RJ01 Rejection of invention patent application after publication