CN103684925A - Performance test method based on simulation terminal - Google Patents

Performance test method based on simulation terminal Download PDF

Info

Publication number
CN103684925A
CN103684925A CN201310732870.3A CN201310732870A CN103684925A CN 103684925 A CN103684925 A CN 103684925A CN 201310732870 A CN201310732870 A CN 201310732870A CN 103684925 A CN103684925 A CN 103684925A
Authority
CN
China
Prior art keywords
emulation
terminal
address
mode
sut
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
CN201310732870.3A
Other languages
Chinese (zh)
Other versions
CN103684925B (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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201310732870.3A priority Critical patent/CN103684925B/en
Publication of CN103684925A publication Critical patent/CN103684925A/en
Application granted granted Critical
Publication of CN103684925B publication Critical patent/CN103684925B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a performance test method based on a simulation terminal. The method comprises the steps that: a simulation server receives and analyzes the configuration file of the simulation terminal, virtualizes the device IP address of a corresponding simulation terminal according to the IP address of the simulation terminal, bonds the device type and the proposal type with the device IP address of the simulation terminal, simulates a simulation terminal used for testing, and registers the simulation terminal to a tested system by the corresponding registration mode of the protocol type according to the analyzed IP address of the tested system and the protocol type of the terminal. The simulation terminal receives the business request of the tested system and establishes the corresponding connection between the simulation terminal and the tested system. The simulation server sends original flow to the tested system through the corresponding connection between the simulation terminal and the tested system for performance test. The method is capable of effectively reducing hardware cost of constructing performance test environments, networking complexity, maintenance difficulty and environment migration difficulty.

Description

A kind of performance test methods based on emulation terminal
Technical field
The invention belongs to system performance testing technical field, relate in particular to the video monitoring system performance test methods based on can flexible configuration emulation terminal.
Background technology
Along with the scale of video monitoring system is grown, more and more higher to the requirement of performance test, but very difficult to performance test in laboratory, need to there is large batch of equipment to carry out rediscover environment.Such as in true environment, have No. 1000 video camera facts simultaneously, storage etc., in laboratory, just need to there be 1000 equipment.Moreover in actual video monitoring system, there is the terminal equipment of a plurality of manufacturers, this in laboratory, build performance detection environment almost become impossible.
Build at present a large amount of true terminal of needs of encoding and decoding performance detection environment, such as build the performance detection environment that 1000 tunnel facts decode simultaneously, just need 1000 real terminals.The environment hardware cost built is huge, networking is complicated, maintenance difficulties is very large and environmental transport and transfer difficulty is large.
Meanwhile, for the on-the-spot problem occurring in actual environment, when office point, outside large-scale application goes wrong, developer goes to scene to process, one section of competitor's the code stream information often of taking back.Need to reappear problem at laboratory environment, test, this just needs to reappear actual office point applied environment, according to former scheme, need to reappear with the equipment of office point equal number this problem,, in upper or purchase cost of time, be no matter almost impossible.
Summary of the invention
The object of the invention is for above-mentioned technical problem, a kind of performance test methods based on emulation terminal has been proposed, only need the terminal of a tested code stream or the manufacturer's information of 1 PCAP message or 1 video file and its this code stream just can solve the problem of needs equipment in enormous quantities, and can easily build performance detection environment.
To achieve these goals, technical solution of the present invention is as follows:
A performance test methods based on emulation terminal, for adopting emulation server to carry out performance test to system under test (SUT), described method of testing comprises step:
Step 1, emulation server receive and resolve emulation terminal configuration file, obtain IP address, the primary flow source mode of system under test (SUT), and the manufacturer's information, terminal type, protocol type and the emulation terminal IP address that need the terminal of emulation;
Step 2, according to described emulation terminal IP address, fictionalize the IP address of equipment of corresponding emulation terminal;
Step 3, the IP address of equipment of described device type and protocol type and described emulation terminal is bound, simulated the emulation terminal for testing;
Step 4, emulation terminal are resolved the IP address of the system under test (SUT) obtaining according to emulation server, and logon mode corresponding to described protocol type is registered to system under test (SUT);
Step 5, emulation terminal receive the service request of system under test (SUT), set up the corresponding connection of emulation terminal and system under test (SUT);
Step 6, emulation server are issued system under test (SUT) by emulation terminal with the corresponding connection of system under test (SUT) by primary flow, carry out performance test.
Wherein, described protocol type comprises GB agreement, IMOS(IP Multimedia Operating System) agreement or ONVIF(Open Network Video Interface Forum) agreement, between described emulation terminal and system under test (SUT), by register command, complete registration, described register command is carried described manufacturer's information and terminal type.Each emulation terminal is corresponding a kind of protocol type only, according to different protocol types, have different logon modes, but register command is all carried manufacturer's information and terminal type, and emulation terminal is registered to system under test (SUT).
Further, described step 5 comprises step:
Emulation terminal is bound the IP address comprising in the receipts flow port comprising in service request and service request, the destination information sending as business;
The flow port of sending out of emulation terminal auto-negotiation is bound to the source message address sending as business with the IP address of equipment of the emulation terminal fictionalizing.
The stream source mode of primary flow of the present invention comprises: passive receive mode, initiatively put broadcast mode and this locality and read file mode.
Further, described emulation server is issued system under test (SUT) by emulation terminal with the corresponding connection of system under test (SUT) by primary flow, comprises step:
Step 6.1, emulation server are resolved configuration file, obtain the stream source mode of primary flow;
Which kind of type step 6.2, judgement stream source mode belong to, if passive receive mode enters step 6.3; If initiatively put broadcast mode, enter step 6.4; If file mode is read in this locality, enter step 6.5;
Step 6.3, emulation server are opened receipts flow port, by passive receive mode, receive primary flow, and are issued the inside receiving port of each emulation terminal, proceed to step 6.6;
Step 6.4, emulation server are opened receipts flow port, by initiatively putting broadcast mode, receive primary flow,, and issued the inside receiving port of each emulation terminal, proceed to step 6.6;
Step 6.5, emulation server are read file mode by this locality and are obtained primary flow, and send it to the inside receiving port of each emulation terminal;
After step 6.6, each emulation terminal are received primary flow, according to the manufacturer of emulation, terminal type and protocol type, after processing, according to the IP address and the port that distribute separately, be sent to destination address and the port of service request.
Wherein said passive receive mode and initiatively put broadcast mode and all need to use a true terminal and think emulation server transmission primary flow, passive receive mode is initiatively to emulation server, to send audio/video flow by a true terminal, or by third party's instrument, plays local video recording and come to send audio/video flow to emulation server; Initiatively putting broadcast mode, is the true terminal program request of Xiang Yitai live stream; File mode is read in this locality, is to read the local on-the-spot packet capturing file of preserving, and reads actual audio, video data wherein.The source mode of primary flow of the present invention can be selected, and is conducive to like this according to field condition, and actual reduction is on-the-spot, even if only take back a segment encode stream information, also can complete the reproduction of on-the-spot problem.
Configuration file corresponding to terminal that different vendor of the present invention is dissimilar, described configuration file comprises the IP address of system under test (SUT), the IP address of emulation server and receipts flow port, stream source mode, and the IP address of the manufacturer's information of each emulation terminal, terminal type, protocol type and emulation terminal.For the multi-vendor terminal in scene the complex situations of depositing, can flexible configuration emulation terminal based on configuration file, the physical end of artificial site, flexible configuration, it is convenient to dispose.
A kind of performance test methods based on emulation terminal that the present invention proposes, based on configuration file flexible configuration emulation terminal, reappear site environment, and according to the difference of stream source mode, carry out flexibly the reproduction of on-the-spot problem, can effectively reduce build the hardware cost of performance detection environment, the difficulty of the complexity of networking, maintenance, the difficulty of environmental transport and transfer.
Accompanying drawing explanation
Fig. 1 is the performance test methods flow chart that the present invention is based on emulation terminal;
Fig. 2 is the schematic diagram of primary flow of the present invention source mode;
Fig. 3 is primary flow processing mode schematic flow sheet of the present invention.
Embodiment
Below in conjunction with drawings and Examples, technical solution of the present invention is described in further details, following examples do not form limitation of the invention.
Fig. 1 shows the performance test methods flow chart that the present invention is based on emulation terminal, comprises step:
Step 101, emulation server receive and resolve emulation terminal configuration file, obtain IP address, the primary flow source mode of system under test (SUT), and the manufacturer's information, terminal type, protocol type and the emulation terminal IP address that need the terminal of emulation.
Manufacturer terminal information, terminal type, the protocol type of emulation as required, set in advance the configuration file that each emulation terminal is corresponding, emulation terminal configuration file comprise the IP address of system under test (SUT), the receipts flow port of the IP address of emulation server, emulation server, the stream of primary flow source mode, and the IP address of the manufacturer's information of each emulation terminal, terminal type, protocol type and emulation terminal.
According to different manufacturers and terminal type thereof, generate in advance corresponding emulation terminal configuration file, different vendor is dissimilar all generates separately a configuration file.According to manufacturer's information, terminal type, configuration file is saved as to tree, root is configuration file catalogue, and subdirectory is manufacturer's name, and the next stage catalogue of subdirectory is terminal type, and the terminal of being convenient to like this emulation as required finds corresponding configuration file.For example needing emulation manufacturer is that space is looked science and technology, and the terminal that terminal type is HIC6501 is that it generates separately a configuration file.
Step 102, according to described emulation terminal IP address, fictionalize the IP address of equipment of corresponding emulation terminal.
Such as 1000 terminals of needs emulation, automatically fictionalize the IP address of equipment of 1000 emulation terminals herein, the IP address that this fictionalizes is the IP address of the emulation terminal in configuration file.By the setting of this step, the virtual ip address that each emulation terminal is corresponding different, matches with true environment.
Step 103, the IP address of equipment of described device type and protocol type and described emulation terminal is bound, simulated the emulation terminal for testing.
In true environment, there is the different terminals type of each manufacturer, the HIC6501 that for example space is looked, the terminal that also has Haikang or large China, the protocol type that the terminal of each manufacturer adopts may be different, by this step, can simulate the test environment identical with true environment, each emulation terminal correspondence the true terminal of true environment, has effectively reduced true environment.
Step 104, emulation terminal are resolved the IP address of the system under test (SUT) obtaining according to emulation server, and logon mode corresponding to protocol type is registered to system under test (SUT).
For 1000 emulation terminals, now system under test (SUT) can be received the register command of 1000 emulation terminals, and the source IP address of every signaling is all different.The protocol type that emulation terminal is corresponding comprises GB agreement, IMOS agreement or ONVIF agreement, the logon mode that different protocol types is corresponding differs, GB agreement for example, by emulation terminal, initiatively initiate registration, and for IMOS agreement and ONVIF agreement, be to be initiated by system under test (SUT), emulation terminal has responded registration.
Between emulation terminal and system under test (SUT), by register command, complete registration, in register command, carry manufacturer's information and terminal type, thereby the various manufacturers that simulate and the emulation terminal of type are registered to system under test (SUT), build smoothly test environment.
By above step, the present embodiment passes through configuration file flexibly, to emulation server, issues configuration file, according to above step, can simulate the manufacturer terminal that actual test needs, and realizes the object of fast construction performance detection environment and replacing test environment.
Step 105, emulation terminal receive the service request of system under test (SUT), set up the corresponding connection of emulation terminal and system under test (SUT).
Particularly, emulation terminal is bound the IP address comprising in the receipts flow port comprising in service request and service request, the destination information sending as business, the flow port of sending out of emulation terminal auto-negotiation is bound to the source information sending as business with the IP address of equipment of the emulation terminal fictionalizing.
Step 106, emulation server are issued system under test (SUT) by the emulation terminal of setting up with the corresponding connection of system under test (SUT) by primary flow, carry out performance test.
Primary flow of the present invention refers to the audio, video data that is used to test system under test (SUT), and the source mode of primary flow as shown in Figure 2, comprises three kinds of modes, is respectively passive receive mode, initiatively puts broadcast mode and this locality and read file mode.Wherein passive receive mode is initiatively to emulation server, to send audio, video data by a true terminal, or by third party's instrument, plays local video recording and come to send audio, video data to emulation server; Initiatively putting broadcast mode, is the live audio, video data of the true terminal program request of Xiang Yitai; File mode is read in this locality, is to read the local on-the-spot packet capturing file of preserving, and obtains audio, video data wherein.
Now system under test (SUT) can be received the audio, video data of 1000 emulation terminals, and source IP address is all different, so that site environment that is virtually reality like reality.
Fig. 3 shows according to the different primary flow processing procedure of stream source mode, comprises the steps:
Step 301, emulation server are resolved configuration file, obtain the stream source mode of primary flow.
Which kind of type step 302, judgement stream source mode belong to, if passive receive mode enters step 303; If initiatively put broadcast mode, enter step 304; If file mode is read in this locality, enter step 305.
Step 303, emulation server are opened receipts flow port, by passive receive mode, receive primary flow, and are issued the inside receiving port of each emulation terminal, proceed to step 306.
Step 304, emulation server are opened receipts flow port, by initiatively putting broadcast mode, receive primary flow,, and issued the inside receiving port of each emulation terminal, proceed to step 306.
Step 305, emulation server are read file mode by this locality and are obtained primary flow, and send it to the inside receiving port of each emulation terminal, proceed to step 306.
As 1000 terminals of this emulation server emulation, need to send 1000 times herein, with this, reach stream and copy.
After step 306, each emulation terminal are received primary flow, according to the manufacturer of emulation, terminal type and protocol type, after processing, according to the IP address and the port that distribute separately, be sent to destination address and the port of service request.
The Business Stream that system under test (SUT) is received is from the identical audio, video data of homology IP and port not, and the audio, video data sending with true terminal is consistent.
The present invention arranges very flexible for emulation terminal, in the time will changing test environment, during as change device type, system under test (SUT), as long as adjust default configuration file in step 101.And if change primary flow, also only need to be by obtain in different ways primary flow in step 106.Visible the present invention is applicable to the emulation testing for the terminal of various different vendors, and is applicable to the emulation testing of various primary flows, is conducive to reappear real scene problem is perfect at laboratory environment.
Above embodiment is only in order to technical scheme of the present invention to be described but not be limited; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (10)

1. the performance test methods based on emulation terminal, for adopting emulation server to carry out performance test to system under test (SUT), is characterized in that, described method of testing comprises step:
Step 1, emulation server receive and resolve emulation terminal configuration file, obtain IP address, the primary flow source mode of system under test (SUT), and the manufacturer's information, terminal type, protocol type and the emulation terminal IP address that need the terminal of emulation;
Step 2, according to described emulation terminal IP address, fictionalize the IP address of equipment of corresponding emulation terminal;
Step 3, the IP address of equipment of described device type and protocol type and described emulation terminal is bound, simulated the emulation terminal for testing;
Step 4, emulation terminal are resolved the IP address of the system under test (SUT) obtaining according to emulation server, and logon mode corresponding to described protocol type is registered to system under test (SUT);
Step 5, emulation terminal receive the service request of system under test (SUT), set up the corresponding connection of emulation terminal and system under test (SUT);
Step 6, emulation server are issued system under test (SUT) by emulation terminal with the corresponding connection of system under test (SUT) by primary flow, carry out performance test.
2. method of testing according to claim 1, is characterized in that, described protocol type comprises GB agreement, IMOS agreement or ONVIF agreement.
3. method of testing according to claim 2, is characterized in that, between described emulation terminal and system under test (SUT), by register command, completes registration, and described register command is carried described manufacturer's information and terminal type.
4. method of testing according to claim 1, is characterized in that, described step 5 comprises step:
Emulation terminal is bound the IP address comprising in the receipts flow port comprising in service request and service request, the destination information sending as business;
The flow port of sending out of emulation terminal auto-negotiation is bound to the source information sending as business with the IP address of equipment of the emulation terminal fictionalizing.
5. method of testing according to claim 1, is characterized in that, the stream source mode of described primary flow comprises: passive receive mode, initiatively put broadcast mode and this locality and read file mode.
6. method of testing according to claim 5, is characterized in that, described emulation server is issued system under test (SUT) by emulation terminal with the corresponding connection of system under test (SUT) by primary flow, comprises step:
Step 6.1, emulation server are resolved configuration file, obtain the stream source mode of primary flow;
Which kind of type step 6.2, judgement stream source mode belong to, if passive receive mode enters step 6.3; If initiatively put broadcast mode, enter step 6.4; If file mode is read in this locality, enter step 6.5;
Step 6.3, emulation server are opened receipts flow port, by passive receive mode, receive primary flow, and are issued the inside receiving port of each emulation terminal, proceed to step 6.6;
Step 6.4, emulation server are opened receipts flow port, receive primary flow, and issued the inside receiving port of each emulation terminal by initiatively putting broadcast mode, proceed to step 6.6;
Step 6.5, emulation server are read file mode by this locality and are obtained primary flow, and send it to the inside receiving port of each emulation terminal, proceed to step 6.6;
After step 6.6, each emulation terminal are received primary flow, according to the manufacturer of emulation, terminal type and protocol type, after processing, according to the IP address and the port that distribute separately, be sent to destination address and the port of service request.
7. method of testing according to claim 6, it is characterized in that, described method of testing also needs to use a true terminal and sends primary flow to emulation server, described passive receive mode is initiatively to emulation server, to send audio, video data by described true terminal, or by third party's instrument, plays local video recording and come to send audio, video data to emulation server; The described broadcast mode of initiatively putting is to described true end point broadcast video data.
8. method of testing according to claim 6, is characterized in that, file mode is read in described this locality, is to read the local on-the-spot packet capturing file of preserving, and reads actual audio, video data wherein.
9. method of testing according to claim 1, is characterized in that, configuration file corresponding to terminal that different vendor is dissimilar.
10. method of testing according to claim 8, is characterized in that, described configuration file also comprises the IP address of emulation server and receives flow port.
CN201310732870.3A 2013-12-26 2013-12-26 A kind of performance test methods based on emulation terminal Active CN103684925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310732870.3A CN103684925B (en) 2013-12-26 2013-12-26 A kind of performance test methods based on emulation terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310732870.3A CN103684925B (en) 2013-12-26 2013-12-26 A kind of performance test methods based on emulation terminal

Publications (2)

Publication Number Publication Date
CN103684925A true CN103684925A (en) 2014-03-26
CN103684925B CN103684925B (en) 2017-07-14

Family

ID=50321304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310732870.3A Active CN103684925B (en) 2013-12-26 2013-12-26 A kind of performance test methods based on emulation terminal

Country Status (1)

Country Link
CN (1) CN103684925B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107579879A (en) * 2017-09-26 2018-01-12 深圳震有科技股份有限公司 A kind of network simulation method of testing, emulation server and storage medium
CN109769100A (en) * 2019-01-17 2019-05-17 苏州科达科技股份有限公司 Video conference test method, device and storage medium
CN109857644A (en) * 2018-12-30 2019-06-07 贝壳技术有限公司 A kind of method and device of fast construction software testing environment
CN110908354A (en) * 2018-09-17 2020-03-24 浙江宇视科技有限公司 Automatic test detection device and method
WO2020258045A1 (en) * 2019-06-25 2020-12-30 比特大陆科技有限公司 Method and apparatus for generating simulation digital certificate, mining pool diagnosis, medium, and product
CN113315647A (en) * 2020-09-14 2021-08-27 阿里巴巴集团控股有限公司 Network simulation method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179456A (en) * 2007-12-11 2008-05-14 福建星网锐捷网络有限公司 Network appliance testing approach and device
US20090119542A1 (en) * 2007-11-05 2009-05-07 Advantest Corporation System, method, and program product for simulating test equipment
CN102036275A (en) * 2010-12-08 2011-04-27 大唐移动通信设备有限公司 Simulator and message processing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090119542A1 (en) * 2007-11-05 2009-05-07 Advantest Corporation System, method, and program product for simulating test equipment
CN101179456A (en) * 2007-12-11 2008-05-14 福建星网锐捷网络有限公司 Network appliance testing approach and device
CN102036275A (en) * 2010-12-08 2011-04-27 大唐移动通信设备有限公司 Simulator and message processing method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107579879A (en) * 2017-09-26 2018-01-12 深圳震有科技股份有限公司 A kind of network simulation method of testing, emulation server and storage medium
CN110908354A (en) * 2018-09-17 2020-03-24 浙江宇视科技有限公司 Automatic test detection device and method
CN109857644A (en) * 2018-12-30 2019-06-07 贝壳技术有限公司 A kind of method and device of fast construction software testing environment
CN109769100A (en) * 2019-01-17 2019-05-17 苏州科达科技股份有限公司 Video conference test method, device and storage medium
WO2020258045A1 (en) * 2019-06-25 2020-12-30 比特大陆科技有限公司 Method and apparatus for generating simulation digital certificate, mining pool diagnosis, medium, and product
CN113315647A (en) * 2020-09-14 2021-08-27 阿里巴巴集团控股有限公司 Network simulation method and device

Also Published As

Publication number Publication date
CN103684925B (en) 2017-07-14

Similar Documents

Publication Publication Date Title
CN103684925A (en) Performance test method based on simulation terminal
CN102740342B (en) The analog detection method of Network Management Equipment performance and system
CN105991414A (en) Method and system for video surveillance live broadcasting through intelligent terminal
CN105577463B (en) A kind of test method and its device based on communication protocol
WO2019041930A1 (en) Inspection method, device and system, computer apparatus, and storage medium
CN108028827A (en) The management method and device of certificate in network function virtualization architecture
CN111158865A (en) Method for realizing multiplexing virtual serial port
CN104638767B (en) Spacer layer data source simulation method and device for intelligent substation test
CN114040408B (en) Target range system based on 4G mobile network simulation environment
CN107566513A (en) Test equipment DOS environmental data collecting methods and system
CN109150574B (en) Large-scale network reproduction method
CN105141484A (en) Android equipment remote debugging method based on cloud server
JP5379994B2 (en) Communication test apparatus, network having communication test function, connection test method, and connection test program
CN111193731A (en) Method and device for generating network shooting range scene description file
WO2016197690A1 (en) Iptv service check method and device utilizing same
CN116032691B (en) Shooting range interconnection method, electronic equipment and readable storage medium
CN109587121B (en) Security policy control method and device
CN102811144B (en) NMS topological discovery performance testing system and method
CN113518022A (en) Method for connection configuration of user equipment and household equipment
CN112527453B (en) Virtualization information simulation system, method and computer-readable storage medium
CN108768807B (en) Virtual-real interconnection method and device for cloud platform
CN105207803A (en) Method for simulating trap messages of multiple network elements and system
CN114071467A (en) Shooting range system based on 4G mobile network simulation environment
CN112953988B (en) Data docking method and device based on FTP
CN109963088A (en) Live network broadcast method, apparatus and system based on augmented reality AR

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant