CN100514919C - Multi-media service system performance testing method - Google Patents
Multi-media service system performance testing method Download PDFInfo
- Publication number
- CN100514919C CN100514919C CNB2005101208046A CN200510120804A CN100514919C CN 100514919 C CN100514919 C CN 100514919C CN B2005101208046 A CNB2005101208046 A CN B2005101208046A CN 200510120804 A CN200510120804 A CN 200510120804A CN 100514919 C CN100514919 C CN 100514919C
- Authority
- CN
- China
- Prior art keywords
- media
- rtsp
- service system
- request
- media service
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
In order to make pressure test possible to measure performance and quality of media server for responding requests of clients in overall and precisely, the method executes following procedures: first, setting up RTSP URL list requested by test tools, and number of client end for requesting each URL; next, setting up operation sequence for carrying out RTSP request by test tool; then, based on parameters set up in previous steps, test tool sends out RTSP request; making statistics of RTSP, and relevant data of media transmission in real time, and displaying them on control interface; final, carrying out statistics process for tested result by using test tool so as to form test report. In the invention, parameters can be included in URL character string of RTSP request; redirection function is supported; based on RTP protocol or other media transmission protocol, quality of media data stream can be analyzed.
Description
Technical field
The present invention relates to the network test technology, more particularly, relate to a kind of multi-media service system performance testing method.
Background technology
For ease of the understanding to this patent, first brief introduction is involved host-host protocol in this patent once.
1, RTSP (Real Time Streaming Protocol, real-time stream media protocol), it is a kind of network transmission protocol, is used to transmit the information data with real-time property, generally is applied to the session control of media-on-demand etc.
2, RTP (Real-time Transport Protocol, RTP), it is used for real time datas such as transmitting multimedia data.In the datagram of this agreement, comprise the information of datagram, as sequence number, timestamp etc., be used for the statistics transmission quality.
3, RTCP (RTP Control Protocl, RTP Control Protocol), it is used to transmit the information of Real-time Transport Protocol transmission data, is used to add up the quality of RTP transfer of data.
On architecture, RTP/RTCP is used for concrete media data transmission, and RTSP is a session control protocol, is used to control the media data transmission.At present, the existing part of industry is towards the pressure test instrument of Streaming Media, and these testing tools generally are the instruments according to the RTSP design of protocol, use the RTSP agreement to carry out session control, and uses the RTP/RTCP agreement to carry out the media data transmission.These testing tools can be used for simulant-client media service system is carried out some simple tests.But, in these testing tools, do not allow to be provided with the request URL (abbreviation of Uniform Resource Locator of parameter, it is the method for expressing that is used to specify the information position on the service routine of Internet) character string, promptly do not support as rtsp: // 192.168.10.10/path/filename.mp4? param1=parvall﹠amp; The form that param2=parval2 is such.Comprised such as information such as parameters for authentication in the incidental parameter of this request URL character string, be real user when asking media server must have.But existing testing tool only supports not have the request URL character string of parameter, and so, many functions that need parameter normally to move can't be tested.
Simultaneously, in real world applications, provide the system of multimedia service to be generally distributed system; After the user asked media service system, the information that the request scheduling parts of system will provide according to client as IP address etc., was dispatched to media server nearest on the topological structure with the user and provides service for the user; So say to a certain extent, the performance of request scheduling parts becomes the critical component that influences the whole system performance; To the pressure test of these request scheduling parts, require testing tool to support redirection function, but existing testing tool is not supported redirection function.
On the other hand, the simple operations that existing testing tool can only analog subscriber, as begin broadcast, time-out, broadcast etc.But in the application of reality, user's operation also comprises location, F.F., rewind down etc.If the user's that testing tool can simulate operation can not be set neatly, the pressure influence of can't the simulates real real user operation of media server being brought.
In addition, current testing tool is general only to send request to media server, adds up its response speed and flow then.This tittle sign the ability of a media server processes client requests.Yet these testing tools are not analyzed the media data that is obtained, and can't obtain the statistics of media data transmission quality under a large number of users.
Summary of the invention
At the above-mentioned defective of prior art, the technical problem to be solved in the present invention is how to make the pressure test of carrying out at media service system can weigh the performance and the quality of the request of media service system customer in response more comprehensively, more accurately.
For solving the problems of the technologies described above, technical scheme of the present invention is: a kind of multi-media service system performance testing method is provided, comprising following steps:
(S1) the RTSP url list of testing tool request is set, and the simulant-client number of every request URL character string in should tabulation;
(S2) testing tool is set and carries out RTSP requested operation sequence;
(S3) testing tool sends RTSP according to the parameter that is provided with in described step (S1) and (S2) in and asks, the related data of real-time statistics RTSP and media delivery, and be shown in and control on the interface.
Among the present invention, further comprising the steps of: (S4) testing tool carries out statistical disposition to test result, forms test report.
In the step (S1) of the method for the invention, in the RTSP request URL character string of test, allow to include parameter; Request wherein also allows once to test a plurality of media files or direct broadcast band.
In the step (S2) of the method for the invention, the described sequence of operation is preferably formed the operating process when watching multimedia programming with the simulates real real user by multiple RTSP request.
In the step (S2) of the method for the invention, can after every RTSP request, be provided with the time of an analog subscriber thinking, this time can be a fixed value or the random value of a limited range.
In the step (S3) of the method for the invention, described testing tool can be by receiving response or the RTSP redirect instruction from media server, request is redirected to another media service system of media service system appointment, to carry out the media session operation.
In the step (S3) of the method for the invention, described testing tool can be analyzed the quality of media data flow based on media transmission protocol after obtaining media data.Comprise shake, packet loss, out of order etc. statistical analysis.
In method of the present invention, can adopt media delivery mode or the staggered media delivery mode of RTSP or other media transmission protocols based on UDP (abbreviation of User Datagram Protocol, i.e. User Datagram Protoco (UDP)).
By such scheme as can be known, the invention provides a kind of more flexible comprehensive method of testing, make testing tool more press close to the operation of real user, and the feasible pressure test of carrying out at media server can be weighed the performance and the quality of the request of media server customer in response more comprehensively, more accurately.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the schematic diagram that concerns between testing tool among the present invention and the media service system.
Embodiment
By aforementioned content as can be known, the present invention is to provide a kind of multi-media service system performance testing method, be mainly used in to media service system and send a large amount of RTSP requests, the simulation a large number of users uses the pressure test of media service system.To introduce its concrete steps in detail below.Testing tool among the present invention and the relation between the media service system as can be seen from the figure, comprise media server and request scheduling parts as shown in Figure 1 in the media service system; Testing tool can send the RTSP request to the request scheduling parts, the request scheduling parts are according to the information of client, testing tool is dispatched on the media server, and testing tool receives the RTSP response that the request scheduling parts are returned, and obtains the schedule information of request scheduling parts; On the other hand, testing tool can send the RTSP request to media server according to the schedule information that the request scheduling parts return, and accepts the media data of media server passback.Testing tool among the present invention is equivalent to the client under the actual user mode.
1, the RTSP url list of testing tool request is set, and the simulant-client number that is somebody's turn to do every request URL character string in the tabulation.
Wherein, the request URL character string has defined the path of the media program in the client-requested media server of a testing tool simulation.And in the whole process of client terminal playing multimedia file, need often carry out operations such as F.F., rewind down, time-out, these operations all are by finishing alternately between client and the media server, and these RTSP that just comprise that alternately user end to server is initiated ask and the RTSP of media server response responds.By a plurality of request URL character strings, can form a series of media path tabulations that supply the client-requested of testing tool simulation, just form the RTSP url list.
Why the simulant-client number of every request URL character string is set, be because every request URL character string here all represent can be by a program of client-requested in media server.In the multimedia system of reality was used, different users liked different programs, so need set the simulant-client number of request in different request URL character string back.When test result analysis, at server rather than at content, so, can analyze for different programs as long as the response parameter of Analysis server is just passable.
In this step, allow in the RTSP request URL character string of test, to comprise parameter.Comprise such as information such as parameters for authentication in its parameter, be real user when asking media server must have.As rtsp: // 192.168.1.1/path/filename.mp4? param1=paramvall﹠amp; Param1=paramvall﹠amp among the param2=paramval2; Param2=paramval2; And allow once to test a plurality of media files or direct broadcast band.For testing tool, do not need to pay close attention to whether have parameter in the request URL character string, only need in the request URL character string, obtain the IP address of media server or machine name, the port numbers of request, media data transmission manner (TCP or UDP) is just passable.Then, testing tool uses the above-mentioned connection parameter that obtains from the request URL character string to ask media server, and sends the RTSP request in the ASCII character mode, and parsing RTSP is receiveed the response and got final product.The feasibility that has parameter in the request URL character string has been described here, if promptly added the parameter of RTSP request in URL, the 3rd step of back then illustrates how to send the RTSP request.
2, testing tool is set and carries out RTSP requested operation sequence.
In this step, the sequence of operation of being made up of a plurality of RTSP requests can be set, the operating process when watching multimedia programming in testing tool with the simulates real real user.And after every operation, being set the time of an analog subscriber thinking, this time can be got the random number acquisition in the time range by a setting, also can be set to fixed value.When the solicit operation sequence of design test instrument, at first design a structure and describe the operation that the user carries out, the time of operating incidental parameter and analog subscriber thinking, the multiple of for example F.F., F.F. and think time, position of for example locating again, locating and think time etc.The structure of describing these operations is formed a chained list or other can describe the RTSP solicit operation sequence that testing tool will be carried out at test process as the data structure of describing a sequence.Testing tool is in the process of carrying out pressure test, and with the node content that reads successively in the chained list, operation and the think time described according to node content send the RTSP solicit operation to media service system.
3, testing tool sends the RTSP request according to set parameter in aforementioned two steps, the related data of real-time statistics RTSP and media delivery, and be presented in real time on the control interface.
Here parameter comprises the IP address of media server or machine name, the port numbers of request, media data transmission means (TCP or UDP), in this step, testing tool can be by the receiving media server 3XX (these codings are by the RFC2326 definition of definition RTSP, be generally 302) number response or RTSPRedirect (being redirected) instruction, request is redirected to another media service system of media service system appointment, to carry out the media session operation.This function is to realize by the RTSP response data information that the analyzing medium server returns.When testing tool uses DESCRIBE (description) method to ask the access request scheduler, the information that the request scheduling parts will provide according to testing tool, as IP address etc., provide media services with the request scheduling of a testing tool closer media server to the topological structure.At this moment, medium request scheduling parts will be changed to 3XX with code in returning to the RTSP request-reply message of testing tool, as 302, and, in this message, comprise the request URL character string of the purpose media server of notice testing tool next step request.
Testing tool is analyzed message after receiving that RTSP is receiveed the response, if redirect message, will be according to target URL request media server listed in the message.
In addition, in this step, after being supported in testing tool and receiving media data, the quality of media data flow is analyzed based on media transmission protocol.Comprise shake, packet loss, out of order etc. statistical analysis.And support is based on RTP media delivery mode and staggered media delivery mode and other media stream protocols of RTSP of UDP.
Testing tool determines that according to the parameter that RTSP is provided with media data transmits in which way, for example for Transport:RTP/AVP/TCP; Unicast; Mode=" PLAY "; Interleaved=2-3, then testing tool will from and media server between obtain media data the tcp data stream that transmits.
Because the general media data all are packaged into specific media data packet and transmit, so can by these media data packet are carried out based on the analysis of the transmission parameter that media transmission protocol provided with obtain media data the media server data send and network transmission process in objective parameter, as shake, packet loss, out of order etc.By these parameters, can measure the quality that the media data business is transmitted in current network conditions.
4, behind the EOT, after testing tool carries out statistical disposition with test result, form test report.
As seen, the invention provides a kind of more flexible comprehensive method of testing, make testing tool more press close to the operation of real user, use this method of testing, performance that can test media service system integral body is used the entire system performance of multioperation request Polymera etc. with the performance of the performance of authentication and accounting system synergistic working, medium request scheduling system works, real simulation multi-user as media server.Thereby the feasible pressure test of carrying out at media server can be weighed the performance and the quality of the request of media server customer in response more comprehensively, more accurately.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (8)
1, a kind of multi-media service system performance testing method is characterized in that, may further comprise the steps:
(S1) the RTSP url list of testing tool request is set, and the simulant-client number of every request URL character string in should tabulation; In the RTSP request URL character string of test, allow to include parameter;
(S2) testing tool is set and carries out RTSP requested operation sequence;
(S3) testing tool sends RTSP according to the parameter that is provided with in described step (S1) and (S2) in and asks, the related data of real-time statistics RTSP and media delivery, and be shown in and control on the interface.
2, multi-media service system performance testing method according to claim 1 is characterized in that, wherein also comprises:
(S4) testing tool carries out statistical disposition to test result, forms test report.
3, multi-media service system performance testing method according to claim 1 and 2 is characterized in that, in the described step (S2), the described sequence of operation is made up of multiple RTSP request.
4, multi-media service system performance testing method according to claim 3, it is characterized in that, in the described step (S2), after every RTSP request, be provided with the time of an analog subscriber thinking, this time is a fixed value or the random value of a limited range.
5, multi-media service system performance testing method according to claim 1 and 2, it is characterized in that, in the described step (S3), described testing tool is by receiving response or the RTSP redirect instruction from media server, request is redirected to another media service system of media service system appointment, to carry out the media session operation.
6, multi-media service system performance testing method according to claim 1 and 2 is characterized in that, in the described step (S3), described testing tool is analyzed the quality of media data flow based on media transmission protocol after obtaining media data.
7, multi-media service system performance testing method according to claim 6 is characterized in that, described quality analysis to media data flow comprises shake, packet loss and out of order statistical analysis.
8, multi-media service system performance testing method according to claim 1 and 2 is characterized in that, wherein can adopt based on media delivery mode or the staggered media delivery mode of RTSP of UDP and come transmission of media data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101208046A CN100514919C (en) | 2005-12-12 | 2005-12-12 | Multi-media service system performance testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005101208046A CN100514919C (en) | 2005-12-12 | 2005-12-12 | Multi-media service system performance testing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1852180A CN1852180A (en) | 2006-10-25 |
CN100514919C true CN100514919C (en) | 2009-07-15 |
Family
ID=37133650
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005101208046A Expired - Fee Related CN100514919C (en) | 2005-12-12 | 2005-12-12 | Multi-media service system performance testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100514919C (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207506B (en) * | 2006-12-18 | 2010-05-19 | 中兴通讯股份有限公司 | Wireless flow media key parameter statistics and method for improving transmission thereof |
CN101150763B (en) * | 2007-10-18 | 2012-06-06 | 中兴通讯股份有限公司 | A terminal and method for testing real time service transmission performance of WiMAX network |
CN101286904B (en) * | 2008-06-16 | 2011-01-19 | 中兴通讯股份有限公司 | Testing device and method for concurrent load of flow media server |
CN101656640B (en) * | 2009-09-16 | 2011-12-07 | 中兴通讯股份有限公司 | Method and equipment for determining testing data |
CN101848116A (en) * | 2010-04-21 | 2010-09-29 | 中国海洋大学 | Simple and quick automatic pressure test method of Web server |
CN103259691A (en) * | 2012-02-17 | 2013-08-21 | ***通信集团浙江有限公司 | Method and device of testing of transmission quality of webpage video file |
CN102624586A (en) * | 2012-03-23 | 2012-08-01 | 武汉恒亿电子科技发展有限公司 | Method and device for testing multimedia management system |
CN103731229B (en) * | 2013-12-18 | 2017-11-21 | 广州启辰电子科技有限公司 | A kind of radio signal shielding method |
US20170091079A1 (en) * | 2014-05-18 | 2017-03-30 | Kai Zhou | Performance testing system and method |
CN106470133B (en) * | 2015-08-20 | 2019-12-03 | 菜鸟智能物流控股有限公司 | System pressure testing method and device |
CN108512715B (en) * | 2017-02-28 | 2021-11-02 | 菜鸟智能物流控股有限公司 | Load pressure test method of service link and related device |
CN107454384A (en) * | 2017-07-27 | 2017-12-08 | 网宿科技股份有限公司 | A kind of live performance test methods and device |
-
2005
- 2005-12-12 CN CNB2005101208046A patent/CN100514919C/en not_active Expired - Fee Related
Non-Patent Citations (2)
Title |
---|
基于Web Service的流媒体测试***. 李金通.华东师范大学硕士学位论文. 2005 |
基于Web Service的流媒体测试***. 李金通.华东师范大学硕士学位论文. 2005 * |
Also Published As
Publication number | Publication date |
---|---|
CN1852180A (en) | 2006-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100514919C (en) | Multi-media service system performance testing method | |
US8396962B2 (en) | Game grammar-based packet capture and analysis apparatus and method for conducting game test | |
US7647418B2 (en) | Real-time streaming media measurement system and method | |
Dimopoulos et al. | Measuring video QoE from encrypted traffic | |
US8667119B2 (en) | System and method for re-generating packet load for load test | |
CN110457199A (en) | The method and apparatus of performance test | |
US20060045121A1 (en) | Methods and systems for analyzing network transmission events | |
CN108696399B (en) | Business service test method and device | |
CN103001835A (en) | Network bandwidth test method and system based on data transmission | |
CN103051498A (en) | Network speed test method and network speed test system | |
CN110557689B (en) | Video playing method and device | |
CN102130797B (en) | Network testing method and device | |
Zarifis et al. | Modeling HTTP/2 speed from HTTP/1 traces | |
CN103281594A (en) | Monitoring over-the-top adaptive video streaming in a network | |
WO2020198384A1 (en) | Methods and apparatus for census and panel matching using http headers | |
US20100100589A1 (en) | Apparatus and method for measuring advertising metrics | |
EP2384564A1 (en) | Method and devices for service rating | |
CN103139004B (en) | Network speed limit instrument is utilized to simulate the method and system of the network bandwidth | |
KR100551452B1 (en) | Grid computing system for testing application program capacity of server | |
US20240129376A1 (en) | Measurement of internet media consumption | |
CN111294257B (en) | Method, device and system for automatic pressure test of application server | |
CN107104997A (en) | A kind of reorientation method, terminal and system | |
CN100377536C (en) | Load simulator and simulation system for stream media service | |
CN105335470B (en) | User login information shows method and apparatus | |
Ganaputra et al. | Asynchronous publish/subscribe architecture over WebSocket for building real-time web applications |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090715 Termination date: 20121212 |