CN101472290B - Mobile data service platform performance test flow control method and device - Google Patents
Mobile data service platform performance test flow control method and device Download PDFInfo
- Publication number
- CN101472290B CN101472290B CN2007103047550A CN200710304755A CN101472290B CN 101472290 B CN101472290 B CN 101472290B CN 2007103047550 A CN2007103047550 A CN 2007103047550A CN 200710304755 A CN200710304755 A CN 200710304755A CN 101472290 B CN101472290 B CN 101472290B
- Authority
- CN
- China
- Prior art keywords
- test
- message
- payload
- data service
- service platform
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 104
- 238000011056 performance test Methods 0.000 title claims abstract description 27
- 238000012360 testing method Methods 0.000 claims abstract description 537
- 238000012545 processing Methods 0.000 claims abstract description 44
- 230000004044 response Effects 0.000 claims description 50
- 238000004088 simulation Methods 0.000 claims description 26
- 238000000605 extraction Methods 0.000 claims description 12
- 238000012546 transfer Methods 0.000 claims description 8
- 230000008569 process Effects 0.000 description 72
- 230000006870 function Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 17
- 230000003993 interaction Effects 0.000 description 12
- 101000855015 Homo sapiens WAP four-disulfide core domain protein 5 Proteins 0.000 description 9
- 102100020725 WAP four-disulfide core domain protein 5 Human genes 0.000 description 9
- 230000002457 bidirectional effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000007619 statistical method Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000000528 statistical test Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明提供了一种移动数据业务平台性能测试流量控制方法及装置,用以降低对测试工具的处理性能和总线带宽吞吐率的要求。流量控制方法包括:接收测试工具发送的承载第一有效负载的第一测试消息,将第一测试消息中的第一有效负载替换为第二有效负载后生成第二测试消息,并向被测移动数据业务平台发送第二测试消息,第二有效负载的信息量大于第一有效负载的信息量;接收经被测移动数据业务平台根据第二测试消息转发的承载第二有效负载的第三测试消息,将第三测试消息中的第二有效负载重新替换为第一有效负载后生成第四测试消息,并向测试工具返回该第四测试消息。本发明提供了一种移动数据业务平台性能测试方法及系统,一种仿真流量控制服务器。
The invention provides a mobile data service platform performance test flow control method and device, which are used to reduce the requirements on the processing performance of the test tool and the throughput rate of the bus bandwidth. The flow control method includes: receiving a first test message carrying a first payload sent by a test tool, generating a second test message after replacing the first payload in the first test message with a second payload, and moving to the tested The data service platform sends a second test message, and the information volume of the second payload is greater than the information volume of the first payload; receiving the third test message carrying the second payload forwarded by the mobile data service platform under test according to the second test message , generating a fourth test message after replacing the second payload in the third test message with the first payload, and returning the fourth test message to the test tool. The invention provides a performance testing method and system of a mobile data service platform, and a simulated flow control server.
Description
技术领域technical field
本发明涉及移动通信技术领域,尤其涉及一种移动数据业务平台性能测试流量控制技术。The invention relates to the technical field of mobile communication, in particular to a performance test flow control technology of a mobile data service platform.
背景技术Background technique
随着移动通信技术的不断进步,各种移动数据业务迅速发展,移动数据业务平台的性能指标迅速增大,同时移动数据业务的有效负载也随之增大。移动通信系统包括多种移动数据业务平台,例如多媒体消息中心(MultimediaMessage Service Centre,MMSC)、多媒体消息网关(Multimedia Message ServiceGateWay,MMS GW)、无线应用协议网关(Wireless Application ProtocolGateWay,WAP GW)、通用下载业务平台等。多媒体消息即通常所说的彩信,MMSC即通常所说的彩信中心,MMS GW即通常所说的彩信网关。多媒体消息业务的有效负载为多媒体消息体、WAP业务的有效负载为WAP页面,通用下载业务的有效负载为下载的文件,比如音乐文件、游戏文件等。With the continuous advancement of mobile communication technology, various mobile data services develop rapidly, the performance index of the mobile data service platform increases rapidly, and the payload of the mobile data service also increases accordingly. The mobile communication system includes a variety of mobile data service platforms, such as Multimedia Message Service Center (MMSC), Multimedia Message Gateway (Multimedia Message ServiceGateWay, MMS GW), Wireless Application Protocol Gateway (Wireless Application ProtocolGateWay, WAP GW), general download business platform, etc. Multimedia messages are commonly referred to as MMS, MMSC is commonly referred to as MMS center, and MMS GW is commonly referred to as MMS gateway. The payload of the multimedia message service is a multimedia message body, the payload of the WAP service is a WAP page, and the payload of the general download service is downloaded files, such as music files and game files.
在对各种移动数据业务平台进行性能测试时,由测试工具仿真被测移动数据业务平台的外部网元,生成模拟流量向被测移动数据业务平台加压,以检测被测移动数据业务平台的处理性能。以多媒体消息中心的性能测试为例进行介绍,如图1所示,测试工具通过仿真多媒体消息发送端,严格的说是多媒体消息发送端归属的WAP GW,以及多媒体消息接收端,严格的说是多媒体消息接收端归属的WAP GW,检测多媒体消息中心的处理性能。具体业务流程是多媒体消息发送端发送多媒体消息时,该多媒体消息首先被发送到多媒体消息中心,再由多媒体消息中心转发给多媒体消息接收端。在该业务流程中测试工具进行协议和业务流程仿真、测试结果统计分析等处理,根据测试结果可以检测出多媒体消息中心的性能。为了保证测试的权威性,测试工具通常是基于专用的测试工具硬件平台和底层软件系统,进行业务状态机的二次开发实现,以确保正确的协议仿真和业务流程仿真,从而获得精确的测试结果。When performing performance tests on various mobile data service platforms, the test tool simulates the external network elements of the mobile data service platform under test, and generates simulated traffic to pressurize the mobile data service platform under test, so as to detect the performance of the mobile data service platform under test Processing performance. Taking the performance test of the multimedia message center as an example, as shown in Figure 1, the test tool simulates the multimedia message sender, strictly speaking, the WAP GW to which the multimedia message sender belongs, and the multimedia message receiver, strictly speaking, the The WAP GW to which the multimedia message receiving end belongs detects the processing performance of the multimedia message center. The specific business process is that when the multimedia message sender sends a multimedia message, the multimedia message is first sent to the multimedia message center, and then forwarded by the multimedia message center to the multimedia message receiver. In this business process, the test tool performs protocol and business process simulation, statistical analysis of test results, etc., and can detect the performance of the multimedia message center according to the test results. In order to ensure the authority of the test, the test tools are usually based on the dedicated test tool hardware platform and the underlying software system, and carry out secondary development and implementation of the business state machine to ensure correct protocol simulation and business process simulation, so as to obtain accurate test results .
随着移动数据业务的迅速发展,移动数据业务平台性能指标的迅速增大,在对移动数据业务平台进行性能测试时,测试工具的处理性能和总线带宽吞吐率都遇到了很大的挑战。例如多媒体消息中心的性能指标已经达到能够支持1000条/秒的手机点对点多媒体消息,且每条多媒体消息中的有效负载,即多媒体消息体的信息量大于100Kbytes,则数据传输速率S近似由公式[1]所示:With the rapid development of mobile data services, the performance indicators of mobile data service platforms increase rapidly. When performing performance tests on mobile data service platforms, the processing performance of test tools and the throughput of bus bandwidth have encountered great challenges. For example, the performance index of the multimedia message center has reached to be able to support 1000 point-to-point multimedia messages of mobile phones per second, and the payload in each multimedia message, that is, the information volume of the multimedia message body is greater than 100Kbytes, then the data transmission rate S is approximated by the formula [ 1] as shown:
S=1000*100*8/1024/1024≈800Mbps[1]S=1000*100*8/1024/1024≈800Mbps[1]
可见,随着多媒体消息中心性能指标的成倍增长,每条多媒体消息的信息量大幅度增加,测试工具的处理性能也要随之提高,对测试工具的总线带宽吞吐率要求在1Gbps以上。It can be seen that with the multiplication of multimedia message center performance indicators, the information volume of each multimedia message will increase significantly, and the processing performance of test tools will also increase accordingly. The bus bandwidth throughput rate of test tools is required to be above 1Gbps.
针对被测移动数据业务平台的性能指标迅速增长的情况,现有技术的处理方法是不断扩充测试工具的专用硬件处理板卡的性能和数量,由于测试工具的专用硬件处理板卡价格昂贵,大大增加了性能测试成本,并且可能会出现总线带宽吞吐率无法满足测试需求的问题。For the situation of the rapid growth of the performance index of the mobile data service platform under test, the processing method of the prior art is to continuously expand the performance and quantity of the special hardware processing board of the test tool, because the special hardware processing board of the test tool is expensive, greatly The cost of performance testing is increased, and there may be a problem that the bus bandwidth throughput rate cannot meet the testing requirements.
发明内容Contents of the invention
本发明提供了一种移动数据业务平台性能测试流量控制方法及装置,用以降低对测试工具的处理性能和总线带宽吞吐率的要求。The invention provides a mobile data service platform performance test flow control method and device, which are used to reduce the requirements on the processing performance of the test tool and the throughput rate of the bus bandwidth.
本发明提供了一种移动数据业务平台性能测试流量控制方法,包括:The present invention provides a mobile data service platform performance test flow control method, comprising:
接收测试工具发送的承载第一有效负载的第一测试消息,将所述第一测试消息中的第一有效负载替换为第二有效负载后生成第二测试消息,并向被测移动数据业务平台发送所述第二测试消息,所述第二有效负载的信息量大于第一有效负载的信息量;Receive the first test message carrying the first payload sent by the test tool, generate a second test message after replacing the first payload in the first test message with a second payload, and send the message to the mobile data service platform under test sending the second test message, the information volume of the second payload is greater than the information volume of the first payload;
接收经被测移动数据业务平台根据第二测试消息转发的承载所述第二有效负载的第三测试消息,将所述第三测试消息中的第二有效负载重新替换为第一有效负载后生成第四测试消息,并向所述测试工具返回该生成的第四测试消息。receiving the third test message carrying the second payload forwarded by the mobile data service platform under test according to the second test message, and replacing the second payload in the third test message with the first payload to generate A fourth test message, and return the generated fourth test message to the test tool.
本发明提供了一种移动数据业务平台性能测试流量控制装置,包括:The present invention provides a mobile data service platform performance test flow control device, comprising:
第一接收模块:用于接收测试工具发送的承载第一有效负载的第一测试消息;The first receiving module: used to receive the first test message carrying the first payload sent by the test tool;
第一消息处理模块:用于将所述第一测试消息中的第一有效负载替换为第二有效负载后生成第二测试消息,所述第二有效负载的信息量大于第一有效负载的信息量;The first message processing module: used to generate a second test message after replacing the first payload in the first test message with a second payload, and the information amount of the second payload is greater than the information of the first payload quantity;
第一发送模块:用于向被测移动数据业务平台发送所述第二测试消息;The first sending module: used to send the second test message to the mobile data service platform under test;
第二接收模块:用于接收被测移动数据业务平台根据第二测试消息转发的承载所述第二有效负载的第三测试消息;The second receiving module: used to receive the third test message carrying the second payload forwarded by the mobile data service platform under test according to the second test message;
第二消息处理模块:用于将所述第三测试消息中的第二有效负载重新替换为所述第一有效负载后生成第四测试消息;The second message processing module: for generating a fourth test message after replacing the second payload in the third test message with the first payload;
第二发送模块:用于向测试工具返回该生成的第四测试消息。The second sending module: used to return the generated fourth test message to the test tool.
本发明还提供了一种仿真流量控制服务器,包括该移动数据业务平台性能测试流量控制装置。The invention also provides an emulation flow control server, including the performance test flow control device of the mobile data service platform.
本发明提供了一种移动数据业务平台性能测试方法,包括:The invention provides a method for testing the performance of a mobile data service platform, comprising:
测试工具在单位时间内生成设定个数的承载第一有效负载的第一测试消息,并将各第一测试消息发送给仿真流量控制服务器;The test tool generates a set number of first test messages carrying the first payload per unit time, and sends each first test message to the simulation flow control server;
仿真流量控制服务器将每一个第一测试消息中的第一有效负载替换为第二有效负载后生成第二测试消息,并将生成的各第二测试消息发送给被测移动数据业务平台,所述第二有效负载的信息量大于第一有效负载的信息量;The simulated traffic control server generates second test messages after replacing the first payload in each first test message with the second payload, and sends the generated second test messages to the mobile data service platform under test, the The information volume of the second payload is greater than the information volume of the first payload;
被测移动数据业务平台接收各第二测试消息,根据第二测试消息生成承载所述第二有效负载的第三测试消息,并转发回仿真流量控制服务器;The mobile data service platform under test receives each second test message, generates a third test message carrying the second payload according to the second test message, and forwards it back to the simulation traffic control server;
仿真流量控制服务器将被测移动数据业务平台转发的每一个第三测试消息中的第二有效负载重新替换为第一有效负载后生成第四测试消息,并将每一个生成的第四测试消息返回给测试工具;The simulated traffic control server generates a fourth test message after replacing the second payload in each third test message forwarded by the mobile data service platform under test with the first payload, and returns each generated fourth test message to test tools;
测试工具通过统计单位时间内接收到的第四测试消息的个数生成测试结果,并根据测试结果分析所述被测移动数据业务平台的性能。The test tool generates test results by counting the number of fourth test messages received per unit time, and analyzes the performance of the tested mobile data service platform according to the test results.
本发明提供了一种移动数据业务平台性能测试系统,包括测试工具和被测移动数据业务平台,还包括仿真流量控制服务器,其中:The present invention provides a mobile data service platform performance testing system, including a test tool and a tested mobile data service platform, and also includes a simulated traffic control server, wherein:
所述测试工具在单位时间内生成并发送设定个数的第一测试消息,以及通过统计单位时间内接收到的第四测试消息的个数生成测试结果,并根据测试结果分析所述被测移动数据业务平台的性能;The test tool generates and sends a set number of first test messages per unit time, and generates test results by counting the number of fourth test messages received per unit time, and analyzes the tested test results according to the test results. The performance of the mobile data service platform;
所述仿真流量控制服务器用于将每一个第一测试消息中的第一有效负载替换为第二有效负载后生成第二测试消息,并发送给被测移动数据业务平台,以及将被测移动数据业务平台转发的每一个第三测试消息中的第二有效负载重新替换为第一有效负载后生成第四测试消息,并返回给测试工具,其中,所述第二有效负载的信息量大于第一有效负载的信息量;The simulated traffic control server is used to generate a second test message after replacing the first payload in each first test message with a second payload, and send it to the mobile data service platform under test, and transfer the mobile data under test After the second payload in each third test message forwarded by the service platform is replaced with the first payload, a fourth test message is generated and returned to the test tool, wherein the information volume of the second payload is greater than that of the first payload. The amount of information in the payload;
所述被测移动数据业务平台用于接收各第二测试消息,根据第二测试消息生成第三测试消息,并转发回所述仿真流量控制服务器。The mobile data service platform under test is used to receive each second test message, generate a third test message according to the second test message, and forward it back to the simulated flow control server.
本发明提供的移动数据业务平台性能测试流量控制方法及装置,使用仿真流量控制服务器,将承载第一有效负载的第一测试消息替换为承载第二有效负载的第二测试消息后,发送给被测移动数据业务平台;将被测移动数据业务平台转发的承载该第二有效负载的第三测试消息替换为承载该第一有效负载的第四测试消息后返回测试工具。当对移动数据业务平台的性能测试中要求有效负载的信息量很高时,能够有效地降低对昂贵的专用测试工具硬件板卡的数量和总线带宽吞吐率的要求,减少了采购专用测试工具硬件板卡的成本投入,在控制移动数据业务平台性能测试的投入成本基础上,使测试工具的处理性能和总线带宽吞吐率能够满足迅速增长的被测移动数据业务平台的性能指标。The mobile data service platform performance test flow control method and device provided by the present invention use a simulated flow control server to replace the first test message carrying the first payload with the second test message carrying the second payload, and then send the message to the recipient The mobile data service platform is tested; the third test message carrying the second payload forwarded by the mobile data service platform under test is replaced by the fourth test message carrying the first payload and then returned to the test tool. When the performance test of the mobile data service platform requires a high amount of payload information, it can effectively reduce the requirements for the number of expensive special test tool hardware boards and bus bandwidth throughput, and reduce the purchase of special test tool hardware. The cost input of the board is based on controlling the input cost of the performance test of the mobile data service platform, so that the processing performance and bus bandwidth throughput of the test tool can meet the performance indicators of the rapidly growing mobile data service platform under test.
附图说明Description of drawings
图1为现有技术中移动数据业务平台性能测试系统示意图;Fig. 1 is a schematic diagram of a performance testing system of a mobile data service platform in the prior art;
图2为本发明实施例中移动数据业务平台性能测试系统示意图;Fig. 2 is a schematic diagram of a performance testing system of a mobile data service platform in an embodiment of the present invention;
图3为本发明实施例中MOMT业务场景测试消息交互示意图;FIG. 3 is a schematic diagram of MOMT service scenario test message interaction in an embodiment of the present invention;
图4为本发明实施例中AOMT业务场景流程测试消息交互示意图;FIG. 4 is a schematic diagram of AOMT business scenario process test message interaction in an embodiment of the present invention;
图5为本发明实施例中FOMT业务场景流程测试消息交互示意图;FIG. 5 is a schematic diagram of FOMT business scenario process test message interaction in an embodiment of the present invention;
图6为本发明实施例中MOFT业务场景流程测试消息交互示意图;FIG. 6 is a schematic diagram of MOFT business scenario process test message interaction in an embodiment of the present invention;
图7为本发明实施例中WAP1.x浏览业务测试消息交互示意图;FIG. 7 is a schematic diagram of WAP1.x browsing service test message interaction in an embodiment of the present invention;
图8为本发明实施例中WAP2.0浏览业务测试消息交互示意图;FIG. 8 is a schematic diagram of WAP2.0 browsing service test message interaction in an embodiment of the present invention;
图9为本发明实施例中仿真流量控制方法流程图;FIG. 9 is a flow chart of a simulation flow control method in an embodiment of the present invention;
图10为本发明实施例中仿真流量控制装置框图;Fig. 10 is a block diagram of a simulated flow control device in an embodiment of the present invention;
图11为本发明实施例中仿真流量控制服务器的运行模型示意图;FIG. 11 is a schematic diagram of an operating model of a simulated flow control server in an embodiment of the present invention;
图12为本发明实施例中TOP进程的处理流程图;Fig. 12 is a processing flowchart of the TOP process in the embodiment of the present invention;
图13为本发明实施例中subThread线程的处理流程图;Fig. 13 is the processing flowchart of subThread thread in the embodiment of the present invention;
图14为本发明实施例中两个子线程处理双向信息流示意图;14 is a schematic diagram of two sub-threads processing bidirectional information flow in an embodiment of the present invention;
图15为本发明实施例中HttpProxy函数流程图;Fig. 15 is a flowchart of the HttpProxy function in the embodiment of the present invention;
图16为本发明实施例中SmptProxy函数流程图。Fig. 16 is a flowchart of the SmptProxy function in the embodiment of the present invention.
具体实施方式Detailed ways
本发明人发现移动数据业务平台的性能指标迅速增长的主要原因是各种移动数据业务中有效负载的信息量迅速增长,数据传输速率迅速增加,基于此本发明实施例提供了一种移动数据业务平台性能测试流量控制方案,能够降低对测试工具的处理性能和总线带宽吞吐率的要求,在控制移动数据业务平台性能测试的投入成本基础上,使测试工具的处理性能和总线带宽吞吐率能够满足迅速增长的被测移动数据业务平台的性能指标。The inventor found that the main reason for the rapid growth of the performance index of the mobile data service platform is that the information volume of the payload in various mobile data services increases rapidly, and the data transmission rate increases rapidly. Based on this, the embodiment of the present invention provides a mobile data service The platform performance test flow control scheme can reduce the requirements on the processing performance and bus bandwidth throughput of test tools, and on the basis of controlling the investment cost of mobile data service platform performance testing, the processing performance and bus bandwidth throughput of test tools can meet The performance index of the rapidly growing mobile data service platform under test.
在移动数据业务平台性能测试系统中,对被测移动数据业务平台的测试结果基于移动数据业务平台在单位时间内对承载有效负载的测试消息的转发能力,基于业务流程生成的其它相关测试消息,如应答或报告等,其信息量相对于承载有效负载的测试消息的信息量几乎可以不计。基于测试的权威性,其它相关测试消息基于协议仿真和业务流程仿真的需要是不能被改变的,能够改变的只是承载有效负载的测试消息中有效负载的信息量。基于以上分析,本发明实施例首先提供了一种移动数据业务平台性能测试系统及方法,如图2所示,在专用的测试工具201和被测移动数据业务平台202之间接入至少一台仿真流量控制服务器203,本发明实施例中也称为代理服务器(Proxy Server),其中:In the mobile data service platform performance test system, the test results of the tested mobile data service platform are based on the forwarding capability of the mobile data service platform to the test message carrying the payload within a unit time, and other related test messages generated based on the business process. Such as reply or report, etc., its information volume is almost negligible relative to the information volume of the test message carrying the payload. Based on the authority of the test, other related test messages cannot be changed based on the requirements of protocol simulation and business process simulation. What can be changed is only the information amount of the payload in the test message carrying the payload. Based on the above analysis, the embodiment of the present invention firstly provides a mobile data service platform performance testing system and method, as shown in FIG.
测试工具201在单位时间内生成设定个数的承载有效负载的测试消息,为了便于区分将该测试消息称为第一测试消息,将第一测试消息中的有效负载称为第一有效负载,测试工具201将各第一测试消息发送给仿真流量控制服务器203,个数可以任意设定;The
仿真流量控制服务器203将每一个第一测试消息中的第一有效负载替换为第二有效负载后生成第二测试消息,并将生成的各第二测试消息发送给被测移动数据业务平台202,第二有效负载的信息量大于第一有效负载的信息量,第一有效负载与第二有效负载均可称为消息体,与消息头共同组成一个承载有效负载的测试消息;The simulated
被测移动数据业务平台202接收各第二测试消息,根据第二测试消息生成承载该第二有效负载的第三测试消息,并转发回仿真流量控制服务器203;The mobile
仿真流量控制服务器203将被测移动数据业务平台202转发的每一个第三测试消息中的第二有效负载重新替换为第一有效负载后生成第四测试消息,并将每一个生成的第四测试消息返回给测试工具201;The simulated
测试工具201通过统计单位时间内接收到的第四测试消息的个数生成测试结果,并根据测试结果分析该被测移动数据业务平台202的性能。The
其中,第二有效负载与第一有效负载的信息量之差可以为设定的信息量差值;或者,第二有效负载与第一有效负载的信息量之比可以为设定的比例因子,且比例因子大于1。Wherein, the difference between the information volume of the second payload and the first payload may be a set information volume difference; or, the ratio of the information volume of the second payload to the first payload may be a set scaling factor, And the scale factor is greater than 1.
在该测试流程中,基于业务流程生成的其它相关测试消息均由仿真流量控制服务器203透传。In this test process, other relevant test messages generated based on the business process are transparently transmitted by the simulated
图2中是以1台仿真流量控制服务器为例进行说明的,当测试工具发送的承载有效负载的测试消息数量较大时,为了提高测试工具的处理性能和总线带宽吞吐率,在该测试系统中配置多台并行处理的仿真流量控制服务器,每台仿真流量控制服务器负责处理一定数量的测试消息。本发明实施例采用的仿真流量控制服务器为现有技术中通用的服务器,其硬件,如CPU、内存、高速千兆网卡等的性能配置和数量能够自由定制,该服务器相对于测试工具中的专用硬件板卡的价格大大降低。Figure 2 is an example of a simulated flow control server. When the number of test messages carrying payloads sent by the test tool is large, in order to improve the processing performance of the test tool and the throughput of the bus bandwidth, in the test system Configure multiple simulation flow control servers for parallel processing, and each simulation flow control server is responsible for processing a certain number of test messages. The simulated flow control server adopted in the embodiment of the present invention is a common server in the prior art, and its hardware, such as CPU, internal memory, high-speed gigabit network card, etc., can be freely customized in terms of performance configuration and quantity. The price of the hardware board is greatly reduced.
基于图2中的移动数据业务平台性能测试系统,详细说明移动数据业务平台性能测试方法,测试工具201通过状态机控制的方式模拟发送端2011和接收端2012,具体包括:Based on the mobile data service platform performance test system in Figure 2, the mobile data service platform performance test method is described in detail. The
首先,测试工具201模拟发送端2011发送测试消息的上行业务流程,发送端2011在单位时间内生成设定个数的第一测试消息,并将各测试消息发送给仿真流量控制服务器203,仿真流量控制服务器203对每一个第一测试消息处理后生成第二测试消息发送给被测移动数据业务平台202;在这个过程中,发送端2011传向仿真流量控制服务器203的第一测试消息中,包括与承载的协议相关的消息头和信息量很小的第一有效负载;仿真流量控制服务器203将每一个第一测试消息中的第一有效负载替换为符合测试要求的第二有效负载,具体的替换方法通过为第一有效负载附加设定的信息量,例如100Kbytes,或者将第一有效负载的信息量乘以设定的比例因子,例如比例因子为100等,进行消息体替换后承载第二有效负载的第二测试消息,包括信息量较大的第二有效负载和与第一测试消息相同的消息头;First, the
被测移动数据业务平台202根据接收到的各第二测试消息生成第三测试消息,然后被测移动数据业务平台202触发接收端2012接收测试消息的下行业务流程,将承载第二有效负载的第三测试消息转发回仿真流量控制服务器203,仿真流量控制服务器203对每一个第三测试消息处理后生成第四测试消息返回给测试工具201模拟的接收端2012;在这个过程中,仿真流量控制服务器203将每一个第三测试消息中信息量较大的第二有效负载重新替换为信息量很小的第一有效负载,将第二有效负载替换为第一有效负载的方法与上行业务流程中的方法对应,具体的替换方法通过为第二有效负载减去设定的信息量,例如100Kbytes,或者将第二有效负载的信息量除以设定的比例因子,例如比例因子为100等;The mobile
最后,测试工具201通过统计单位时间内接收到的第四测试消息的个数生成测试结果,并根据测试结果分析被测移动数据业务平台202的性能。Finally, the
在整个上下行业务流程中,专用的测试工具依旧进行协议和业务流程仿真、测试结果统计分析等处理,保证了测试结果的准确性和权威性,同时仿真流量控制服务器203在测试工具201和被测移动数据业务平台202之间,向被测移动数据业务平台202发送测试消息时,将承载第一有效负载的第一测试消息替换为承载第二有效负载的第二测试消息;向被测工具201返回测试消息时,将承载第二有效负载的第三测试消息替换为承载第一有效负载的第四测试消息。采用该方法减少了硬件处理板卡对处理资源和总线带宽的消耗,大大降低了对硬件处理板卡的测试性能和总线带宽吞吐率的要求,降低了测试成本;同时测试流程中也满足了被测移动数据业务平台的性能指标,保证了测试的准确性。Throughout the uplink and downlink business processes, the dedicated test tools still carry out protocol and business process simulation, statistical analysis of test results, etc., to ensure the accuracy and authority of the test results. Between mobile
采用本发明实施例提供的方案,能够在满足被测移动数据业务平台性能指标的基础上,大大降低对测试工具的处理性能和总线带宽吞吐率的要求,从而降低测试成本,有效保证测试工作的正常进行。Adopting the solution provided by the embodiment of the present invention can greatly reduce the requirements on the processing performance of the test tool and the throughput rate of the bus bandwidth on the basis of satisfying the performance index of the mobile data service platform to be tested, thereby reducing the test cost and effectively ensuring the accuracy of the test work. Work properly.
下面以各种具体业务详细介绍本发明实施例提供的移动数据业务平台性能测试方法,移动数据业务平台包括MMSC、MMS GW、WAP GW、通用下载业务平台等。The mobile data service platform performance testing method provided by the embodiment of the present invention is introduced in detail below with various specific services. The mobile data service platform includes MMSC, MMS GW, WAP GW, general download service platform, etc.
首先以对多媒体消息业务中心几种常用业务场景的测试流程为例进行说明,采用本发明实施例提供的移动数据业务平台性能测试系统,其中测试工具模拟多媒体消息发送端和多媒体消息接收端,为了便于说明,设置两个仿真流量控制服务器,即服务器l和服务器2分别对归属多媒体消息发送端和多媒体消息接收端的测试消息进行处理,当然此处也可以只设置一个仿真流量控制服务器。Firstly, the test process of several commonly used service scenarios of the multimedia message service center is used as an example to illustrate, adopt the mobile data service platform performance test system provided by the embodiment of the present invention, wherein the test tool simulates the multimedia message sending end and the multimedia message receiving end, in order For ease of explanation, two simulated flow control servers are set, that is,
如图3所示,为多媒体消息业务中移动发起,移动终止(Mobile Originate &Mobile Terminate,MOMT)业务场景的测试消息交互示意图,具体的应用场景为属于同一MMSC的两个移动用户之间收发多媒体消息,其中多媒体消息发送端为移动用户1,多媒体消息接收端为移动用户2,均由测试工具模拟,移动用户1向移动用户2发送一条多媒体消息即对应一个测试流程,具体包括:As shown in Figure 3, it is a schematic diagram of test message interaction in the mobile origination and mobile termination (Mobile Originate & Mobile Terminate, MOMT) business scenario in the multimedia message service. The specific application scenario is sending and receiving multimedia messages between two mobile users belonging to the same MMSC. Among them, the multimedia message sending end is
S301、测试工具模拟移动用户1将要向移动用户2发送的多媒体消息体,即第一有效负载封装在多媒体消息提交请求MM1_Submit.Req中,该MM1_Submit.Req即为第一测试消息,该MM1_Submit.Req首先发送到服务器1,服务器1将MM1_Submit.Req中的第一有效负载替换为第二有效负载后生成一条新的MM1_Submit.Req,该新的MM1_Submit.Req即为第二测试消息,服务器1向被测MMSC发送该新的MM1_Submit.Req;S301, the test tool simulates the multimedia message body that
S302、被测MMSC接收到新的MM1_Submit.Req后,生成多媒体消息提交应答MM1_Submit.Res,并经由服务器1向移动用户1发送,通知移动用户1已接收到提交的多媒体消息;S302. After receiving the new MM1_Submit.Req, the MMSC under test generates a multimedia message submission response MM1_Submit.Res, and sends it to the
S303、被测MMSC生成多媒体消息提取通知MM1_Notification.Req,并经由服务器2向移动用户2发送,通知移动用户2有多媒体消息需要接收;S303, the MMSC under test generates a multimedia message extraction notification MM1_Notification.Req, and sends it to the
S304、移动用户2接收到MM1_Notification.Raq后,生成多媒体消息提取请求,MM1_Retrieve.Req经由服务器2向被测MMSC发送,请求被测MMSC向本终端发送多媒体消息;S304. After receiving the MM1_Notification.Raq, the
S305、被测MMSC接收到MM1_Retrieve.Req后生成多媒体消息提取应答MM1_Retrieve.Res,该MM1_Retrieve.Res中封装了从MM1_Submit.Req中提取的第二有效负载,该MM1_Retrieve.Res即为第三测试消息,该MM1_Retrieve.Res首先发送到服务器2,服务器2将该MM1_Retrieve.Res中的第二有效负载重新替换为第一有效负载后生成一条新的MM1_Retrieve.Res,新的MM1_Retrieve.Res即为生成的第四测试消息,服务器2向移动用户2返回该新的MM1_Retrieve.Res;S305. After receiving the MM1_Retrieve.Req, the tested MMSC generates a multimedia message extraction response MM1_Retrieve.Res, the MM1_Retrieve.Res encapsulates the second payload extracted from the MM1_Submit.Req, and the MM1_Retrieve.Res is the third test message, The MM1_Retrieve.Res is first sent to
S306、移动用户2接收到该新的MM1_Retrieve.Res后,测试工具认为被测MMSC对第一有效负载成功转发,生成多媒体消息成功接收应答MM1_Notification.Res,经由服务器2向被测MMSC发送,通知被测MMSC多媒体消息已成功接收;S306. After the
S307、被测MMSC接收到MM1_Notification.Res后,生成多媒体消息投递报告MM1_DeliveryRpt.Req,经由服务器1向移动用户1发送,通知移动用户1多媒体消息已成功投递至移动用户2。S307. After receiving the MM1_Notification.Res, the MMSC under test generates a multimedia message delivery report MM1_DeliveryRpt.Req, and sends it to the
在该测试流程中,仿真流量控制服务器对MM1_Submit.Req和MM1_Retrieve.Res进行有效负载的替换,对其它测试消息不进行处理只是透传。In this test process, the simulated flow control server replaces the payload of MM1_Submit.Req and MM1_Retrieve.Res, and does not process other test messages but transparently transmits them.
如图4所示,为多媒体消息业务中应用发起,移动终止(Application Originate& Mobile Terminate,AOMT)业务场景的测试消息交互示意图,具体的应用场景为外部应用通过移动用户归属的MMSC向移动用户发送多媒体消息,比如手机报等,其中多媒体消息发送端为外部应用,一般为网站,多媒体消息接收端为移动用户,均由测试工具模拟,外部应用向移动用户发送一条多媒体消息即对应一个测试流程,具体包括:As shown in Figure 4, it is a schematic diagram of test message interaction in the application origination and mobile termination (Application Originate&Mobile Terminate, AOMT) business scenario in the multimedia message service. The specific application scenario is that the external application sends multimedia to the mobile user through the MMSC to which the mobile user belongs. News, such as mobile phone newspapers, etc., where the multimedia message sending end is an external application, usually a website, and the multimedia message receiving end is a mobile user, all of which are simulated by test tools. A multimedia message sent by an external application to a mobile user corresponds to a test process. include:
S401、测试工具模拟外部应用将要向移动用户发送的多媒体消息体,即第一有效负载封装在多媒体消息发送请求MM7_Deliver.Req中,该MM7_Deliver.Req即为第一测试消息,该MM7_Deliver.Req首先发送到服务器1,服务器1将MM7_Deliver.Req中的第一有效负载替换为第二有效负载后生成一条新的MM7_Deliver.Req,该新的MM7_Deliver.Req即为第二测试消息,服务器1向被测MMSC发送该新的MM7_Deliver.Req;S401. The test tool simulates the multimedia message body that the external application will send to the mobile user, that is, the first payload is encapsulated in the multimedia message delivery request MM7_Deliver.Req, and the MM7_Deliver.Req is the first test message, and the MM7_Deliver.Req is first sent To
S402、被测MMSC接收到新的MM7_Deliver.Req后,生成多媒体消息提交应答MM7_Deliver.Res,并经由服务器1向外部应用发送,通知外部应用已接收到提交的多媒体消息;S402. After receiving the new MM7_Deliver.Req, the MMSC under test generates a multimedia message submission response MM7_Deliver.Res, and sends it to the external application via the
S403、被测MMSC生成多媒体消息提取通知MM1_Notification.Req,并经由服务器2向移动用户发送,通知移动用户有多媒体消息需要接收;S403, the MMSC under test generates a multimedia message extraction notification MM1_Notification.Req, and sends it to the mobile user via the
S404、移动用户接收到MM1_Notification.Req后,生成多媒体消息提取请求,MM1_Retrieve.Req,经由服务器2向MMSC发送,请求MMSC向本终端发送多媒体消息;S404. After receiving the MM1_Notification.Req, the mobile user generates a multimedia message retrieval request, MM1_Retrieve.Req, and sends it to the MMSC via the
S405、被测MMSC接收到MM1_Retrieve.Req后生成多媒体消息提取应答MM1_Retrieve.Res,该MM1_Retrieve.Res中封装了从MM7_Deliver.Req中提取的第二有效负载,该MM1_Retrieve.Res即为第三测试消息,该MM1_Retrieve.Res首先发送到服务器2,服务器2将该MM1_Retrieve.Res中的第二有效负载重新替换为第一有效负载后生成一条新的MM1_Retrieve.Res,新的MM1_Retrieve.Res即为生成的第四测试消息,服务器2向移动用户返回该新的MM1_Retrieve.Res;S405. After receiving the MM1_Retrieve.Req, the tested MMSC generates a multimedia message extraction response MM1_Retrieve.Res, the MM1_Retrieve.Res encapsulates the second payload extracted from the MM7_Deliver.Req, and the MM1_Retrieve.Res is the third test message, The MM1_Retrieve.Res is first sent to
S406、移动用户接收到该新的MM1_Retrieve.Res后,测试工具认为被测MMSC对第一有效负载成功转发,生成多媒体消息成功接收应答MM1_Notification.Res,经由服务器2向被测MMSC发送,通知被测MMSC多媒体消息已成功接收;S406. After the mobile user receives the new MM1_Retrieve.Res, the test tool considers that the MMSC under test has successfully forwarded the first payload, generates a multimedia message successfully received response MM1_Notification.Res, sends it to the MMSC under test via the
S407、被测MMSC接收到MM1_Notifcation.Res后,生成多媒体消息投递报告MM7_DeliveryRpt.Req,经由服务器1向外部应用发送,通知外部应用多媒体消息已成功投递至移动用户。S407. After receiving the MM1_Notifcation.Res, the MMSC under test generates a multimedia message delivery report MM7_DeliveryRpt.Req, sends it to the external application via the
在该测试流程中,仿真流量控制服务器对MM7_Deliver.Req和MM1_Retrieve.Res进行有效负载的替换,对其它测试消息不进行处理只是透传。In this test process, the simulated flow control server replaces the payload of MM7_Deliver.Req and MM1_Retrieve.Res, and does not process other test messages but transparently transmits them.
如图5所示,为多媒体消息业务中外部发起,移动终止(Foreign Originate &Mobile Terminate,FOMT)业务场景的测试消息交互示意图,具体应用场景为属于不同多媒体消息中心的两个移动用户之间收发多媒体消息,其中多媒体消息发送端为发送多媒体消息的移动用户1所属的外部MMSC,多媒体消息接收端为属于被测MMSC的移动用户2,均由测试工具模拟,外部MMSC向移动用户2发送一条多媒体消息即对应一个测试流程,并假设外部MMSC已经接收到移动用户1发送的该多媒体消息,具体包括:As shown in Figure 5, it is a schematic diagram of the test message interaction of the external origination and mobile termination (Foreign Originate & Mobile Terminate, FOMT) business scenario in the multimedia message service. The specific application scenario is sending and receiving multimedia between two mobile users belonging to different multimedia message centers. message, wherein the sending end of the multimedia message is the external MMSC to which the
S501、测试工具模拟外部MMSC将要向移动用户2发送的多媒体消息体,即第一有效负载封装在多媒体消息前转请求MM4_Forward.Req中,该MM4_Forward.Req即为第一测试消息,该MM4_Forward.Req首先发送到服务器1,服务器1将MM4_Forward.Req中的第一有效负载替换为第二有效负载后,生成一条新的MM4_Forward.Req,该新的MM4_Forward.Req即为第二测试消息,服务器1向被测MMSC发送该新的MM4_Forward.Req;S501, the test tool simulates the multimedia message body that the external MMSC will send to the
S502、被测MMSC接收到新的MM4_Forward.Req后,生成多媒体消息提交应答MM4_Forward.Res,并经由服务器1向外部MMSC发送,通知外部MMSC已接收到提交的多媒体消息;S502. After receiving the new MM4_Forward.Req, the MMSC under test generates a multimedia message submission response MM4_Forward.Res, and sends it to the external MMSC via the
S503、被测MMSC生成多媒体消息提取通知MM1_Notification.Req,并经由服务器2向移动用户2发送,通知移动用户2有多媒体消息需要接收;S503, the MMSC under test generates a multimedia message extraction notification MM1_Notification.Req, and sends it to the
S504、移动用户2接收到MM1_Notification.Req后,生成多媒体消息提取请求MM1_Retrieve.Req,经由服务器2向被测MMSC发送,请求被测MMSC向本终端发送多媒体消息;S504. After receiving the MM1_Notification.Req, the
S505、被测MMSC接收到MM1_Retrieve.Req后生成多媒体消息提取应答MM1_Retrieve.Res,该MM1_Retrieve.Res中封装了从MM4_Forward.Req中提取的第二有效负载,该MM1_Retrieve.Res即为第三测试消息,该MM1_Retrieve.Res首先发送到服务器2,服务器2将该MM1_Retrieve.Res中的第二有效负载重新替换为第一有效负载后生成一条新的MM1_Retrieve.Res,新的MM1_Retrieve.Res即为生成的第四测试消息,服务器2向移动用户2返回该新的MM1_Retrieve.Res;S505. After receiving the MM1_Retrieve.Req, the MMSC under test generates a multimedia message extraction response MM1_Retrieve.Res, the MM1_Retrieve.Res encapsulates the second payload extracted from the MM4_Forward.Req, and the MM1_Retrieve.Res is the third test message, The MM1_Retrieve.Res is first sent to
S506、移动用户2接收到该新的MM1_Retrieve.Res后,测试工具认为被测MMSC对第一有效负载成功转发,生成多媒体消息成功接收应答MM1_Notification.Res,经由服务器2向被测MMSC发送,通知被测MMSC多媒体消息已成功接收;S506. After the
S507、被测MMSC接收到MM1_Notification.Res后,生成多媒体消息投递报告MM4_DeliveryRpt.Req,经由服务器1向外部MMSC发送,通知外部MMSC多媒体消息已成功投递至移动用户2。S507. After receiving the MM1_Notification.Res, the MMSC under test generates a multimedia message delivery report MM4_DeliveryRpt.Req, and sends it to the external MMSC via the
在该测试流程中,仿真流量控制服务器对MM4_Forward.Req和MM1_Retrieve.Res进行有效负载的替换,对其它测试消息不进行处理只是透传。In this test process, the simulated flow control server replaces the payload of MM4_Forward.Req and MM1_Retrieve.Res, and does not process other test messages but transparently transmits them.
如图6所示,为多媒体消息业务中移动发起,外部终止(Mobile Originate &Foreign Terminate,MOFT)业务场景的测试消息交互示意图,具体应用场景为属于不同多媒体消息中心的两个移动用户之间收发多媒体消息,其中多媒体消息发送端为属于被测MMSC的移动用户1,多媒体消息接收端为接收多媒体消息的移动用户2所属的外部MMSC,移动用户1向外部MMSC发送一条多媒体消息即对应一个测试流程,本实施例假设外部MMSC能够将该多媒体消息成功发送到移动用户2,具体包括:As shown in Figure 6, it is a schematic diagram of the test message interaction in the mobile origination and external termination (Mobile Originate & Foreign Terminate, MOFT) business scenario in the multimedia message service. The specific application scenario is sending and receiving multimedia messages between two mobile users belonging to different multimedia message centers , wherein the multimedia message sending end is the
S601、测试工具模拟移动用户1将要向外部MMSC发送的多媒体消息体,即第一有效负载封装在多媒体消息提交请求消息MM1_Submit.Req中,该MM1_Submit.Req即为第一测试消息,该MM1_Submit.Req首先发送到服务器1,服务器1将MM1_Submit.Req中的第一有效负载替换为第二有效负载后生成一条新的MM1_Submit.Req,该新的MM1_Submit.Req即为第二测试消息,服务器1向被测MMSC发送该新的MM1_Submit.Req;S601. The test tool simulates the multimedia message body that the
S602、被测MMSC接收到新的MM1_Submit.Req后,生成多媒体消息提交应答MM1_Submit.Res,并经由服务器1向移动用户1发送,通知移动用户1已接收到提交的多媒体消息;S602. After receiving the new MM1_Submit.Req, the MMSC under test generates a multimedia message submission response MM1_Submit.Res, and sends it to the
S603、被测MMSC生成多媒体消息前转请求MM4_Forward.Req,该MM4_Forward.Req封装了从MM1_Submit.Req提取的第二有效负载,该MM4_Forward.Req即为第三测试消息,该MM4_Forward.Req首先发送到服务器2,服务器2将该MM4_Forward.Req中的第二有效负载重新替换为第一有效负载后生成一条新的MM4_Forward.Req,新的MM4_Forward.Req即为生成的第四测试消息,服务器2向外部MMSC返回该新的MM4_Forward.Req;S603, the tested MMSC generates a multimedia message forwarding request MM4_Forward.Req, the MM4_Forward.Req encapsulates the second payload extracted from the MM1_Submit.Req, the MM4_Forward.Req is the third test message, and the MM4_Forward.Req is first sent to
S604、外部MMSC接收到该新的MM4_Forward.Req后,生成多媒体消息提交应答MM4_Forward.Res,并经由服务器2向被测MMSC发送,通知被测MMSC已接收到提交的多媒体消息;S604. After receiving the new MM4_Forward.Req, the external MMSC generates a multimedia message submission response MM4_Forward.Res, and sends it to the MMSC under test via the
S605、测试工具模拟外部MMSC生成多媒体消息投递报告MM4_DeliveryRpt.Req(假设多媒体消息已成功发送至移动用户2),并经由服务器2向被测MMSC发送,通知被测MMSC多媒体消息已成功投递至移动用户2;S605, the test tool simulates the external MMSC to generate the multimedia message delivery report MM4_DeliveryRpt.Req (assuming that the multimedia message has been successfully sent to the mobile user 2), and sends it to the tested MMSC via the
S606、被测MMSC接收到MM4_DeliveryRpt.Req后,生成多媒体消息投递报告MM1_DeliveryRpt.Req,经由服务器1向移动用户1发送,通知移动用户1多媒体消息已成功投递至移动用户2。S606. After receiving the MM4_DeliveryRpt.Req, the MMSC under test generates a multimedia message delivery report MM1_DeliveryRpt.Req, sends it to the
在该测试流程中,仿真流量控制服务器对MM4_Forward.Req和MM1_Submit.Req进行有效负载的替换,对其它测试消息不进行处理只是透传。In this test process, the simulated flow control server replaces the payloads of MM4_Forward.Req and MM1_Submit.Req, and does not process other test messages but transparently transmits them.
在对MMSC进行性能测试的过程中,测试工具可以根据在单位时间内接收到的第四测试消息的个数生成用于统计分析被测MMSC性能的测试结果,也可以根据在单位时间内接收到的多媒体消息投递报告的个数生成用于统计分析被测MMSC性能的测试结果。In the process of performing a performance test on the MMSC, the test tool can generate test results for statistical analysis of the performance of the MMSC under test according to the number of the fourth test message received in the unit time, or according to the number of messages received in the unit time The number of multimedia message delivery reports generated is used to statistically analyze the test results of the performance of the MMSC under test.
在对MMSC各种业务流程进行性能测试的过程中,仿真流量控制服务器只对承载了有效负载的测试消息进行替换,将该测试消息发送到被测MMSC时,将该测试消息中信息量很小的第一有效负载替换为信息量较大的第二有效负载;将该测试消息发送到测试工具时,将该测试消息中信息量较大的第二有效负载重新替换为信息量很小的第一有效负载;而对业务流程中其它测试消息不作任何处理,仅是透传。In the process of performance testing of various business processes of MMSC, the simulated flow control server only replaces the test message carrying the payload, and when the test message is sent to the MMSC under test, the amount of information in the test message is very small The first payload of the test message is replaced by the second payload with a large amount of information; A payload; while other test messages in the business process are not processed, only transparently transmitted.
下面,以WAP业务中几种常用业务场景的测试流程为例进行说明,采用本发明实施例提供的移动数据业务平台性能测试系统,其中测试工具模拟WAP浏览器和WEB服务器,为了便于说明,设置两个仿真流量控制服务器,即服务器1和服务器2分别对归属WAP浏览器和WEB服务器的测试消息进行处理,当然此处也可以只设置一个仿真流量控制服务器。Below, take the test flow of several common business scenarios in WAP business as an example to illustrate, adopt the mobile data service platform performance test system provided by the embodiment of the present invention, wherein the test tool simulates a WAP browser and a WEB server, for the convenience of explanation, set Two simulated flow control servers,
如图7所示,为WAP业务中基于WAP1.x协议浏览业务的测试消息交互示意图,其中WAP浏览器为WAP1.x浏览器,WAP1.x浏览器向WEB服务器请求浏览一个WAP页面即对应一个测试流程,具体包括:As shown in Figure 7, it is a schematic diagram of the test message interaction based on the WAP1.x protocol browsing service in the WAP service, wherein the WAP browser is a WAP1.x browser, and the WAP1.x browser requests the WEB server to browse a WAP page, which corresponds to a The testing process, specifically includes:
S701、测试工具模拟WAP1.x浏览器生成无线会话协议(Wireless SessionProtocol,WSP)浏览请求消息WSP GET Request,并经由服务器1向WAP GW发送,请求浏览WAP页面;S701, the test tool simulates the WAP1.x browser to generate a wireless session protocol (Wireless Session Protocol, WSP) browsing request message WSP GET Request, and sends it to the WAP GW via the
S702、WAP GW接收到WSP GET Request后,生成超文本传输协议(HyperText Transfer Protocol,HTTP)浏览请求消息HTTP GET Request,并经由服务器2向WEB服务器发送;S702, after the WAP GW receives the WSP GET Request, it generates a Hypertext Transfer Protocol (HyperText Transfer Protocol, HTTP) browsing request message HTTP GET Request, and sends it to the WEB server via the
S703、WEB服务器接收到HTTP GET Request后,将要向WAP1.x浏览器发送的WAP页面,即第一有效负载封装在超文本传输协议浏览应答消息HTTPGET Response中,该HTTP GET Response即为第一测试消息,该HTTP GETResponse首先发送到服务器2,服务器2将HTTP GET Response中的第一有效负载替换为第二有效负载后,生成一条新的HTTP GET Response,该新的HTTPGET Response即为第二测试消息,服务器2向被测WAP GW发送该新的HTTPGET Response;S703, after the WEB server receives the HTTP GET Request, the WAP page to be sent to the WAP1.x browser, that is, the first payload is encapsulated in the hypertext transfer protocol browsing response message HTTPGET Response, and the HTTP GET Response is the first test message, the HTTP GETResponse is first sent to
S704、被测WAP GW接收到HTTP GET Response后生成无线会话协议应答消息WSP GET Response,该WSP GET Response中封装了从HTTP GET Response提取的第二有效负载,该WSP GET Response即为第三测试消息,该WSP GETResponse首先发送到服务器1,服务器1将该WSP GET Response中的第二有效负载重新替换为第一有效负载后生成一条新的WSP GET Response,新的WSPGET Response即为生成的第四测试消息,服务器1向WAP1.x浏览器返回该新的WSP GET Response;S704. After receiving the HTTP GET Response, the tested WAP GW generates a wireless session protocol response message WSP GET Response, the WSP GET Response encapsulates the second payload extracted from the HTTP GET Response, and the WSP GET Response is the third test message , the WSP GETResponse is first sent to
WAP1.x浏览器接收到WSP GET Response之后,测试工具认为被测WAPGW对第一有效负载成功转发。After the WAP1.x browser receives the WSP GET Response, the test tool believes that the tested WAPGW successfully forwards the first payload.
在该测试流程中,仿真流量控制服务器对HTTP GET Response和WSP GETResponse进行有效负载的替换,对其它测试消息不进行处理只是透传。In this test process, the simulated flow control server replaces the payload of HTTP GET Response and WSP GETResponse, and does not process other test messages but transparently transmits them.
如图8所示,为WAP业务中基于WAP2.0协议浏览业务的测试消息交互示意图,其中WAP浏览器为WAP2.0浏览器,WAP2.0浏览器向WEB服务器请求浏览一个WAP页面即对应一个测试流程,具体包括步骤:As shown in Figure 8, it is a schematic diagram of the test message interaction based on the WAP2.0 protocol browsing service in the WAP service, wherein the WAP browser is a WAP2.0 browser, and the WAP2.0 browser requests the WEB server to browse a WAP page, which corresponds to a The test process, specifically includes the steps:
S801、测试工具模拟WAP2.0浏览器生成超文本传输协议浏览请求消息HTTP GET Request,并经由服务器1向WAP GW发送,请求浏览WAP页面;S801, the test tool simulates the WAP2.0 browser to generate a hypertext transfer protocol browsing request message HTTP GET Request, and sends it to the WAP GW via the
S802、WAP GW接收到HTTP GET Request后,经由服务器2向WEB服务器转发该HTTP GET Request;S802. After receiving the HTTP GET Request, the WAP GW forwards the HTTP GET Request to the WEB server via
S803、WEB服务器接收到HTTP GET Request后,将要向WAP2.0浏览器发送的WAP页面,即第一有效负载封装在超文本传输协议浏览应答消息HTTPGET Response中,该HTTP GET Response即为第一测试消息,该HTTP GETResponse首先发送到服务器2,服务器2将HTTP GET Response中的第一有效负载替换为第二有效负载后,生成一条新的HTTP GET Response,该新的HTTPGET Response即为第二测试消息,服务器2向被测WAP GW发送该新的HTTPGET Response;S803, after the WEB server receives the HTTP GET Request, the WAP page to be sent to the WAP2.0 browser, that is, the first payload is encapsulated in the hypertext transfer protocol browsing response message HTTPGET Response, and the HTTP GET Response is the first test message, the HTTP GETResponse is first sent to
S804、被测WAP GW接收到HTTP GET Response后直接转发,该HTTP GETResponse中承载了第二有效负载,即为第三测试消息,该HTTP GET Response首先发送到服务器1,服务器1将该HTTP GET Response中的第二有效负载重新替换为第一有效负载后生成一条新的HTTP GET Response,该新的HTTP GETResponse即为生成的第四测试消息,服务器1向WAP2.0浏览器返回该新的HTTPGET Response;S804. After receiving the HTTP GET Response, the tested WAP GW directly forwards it. The HTTP GET Response carries the second payload, which is the third test message. The HTTP GET Response is first sent to
WAP2.0浏览器接收到HTTP GET Response之后,测试工具认为被测WAPGW对第一有效负载成功转发。After the WAP2.0 browser receives the HTTP GET Response, the test tool believes that the tested WAPGW successfully forwards the first payload.
在该测试流程中,仿真流量控制服务器对两条HTTP GET Response进行有效负载的替换,对其它测试消息不进行处理只是透传。In this test process, the simulated flow control server replaces the payload of the two HTTP GET Response, and does not process other test messages but transparently transmits them.
在对WAP GW进行性能测试的过程中,仿真流量控制服务器只对承载了有效负载的测试消息进行替换,将该测试消息发送到被测WAP GW时,将该测试消息中信息量很小的第一有效负载替换为信息量较大的第二有效负载;将该测试消息发送到测试工具时,将该测试消息中信息量较大的第二有效负载替换为信息量很小的第一有效负载;而对测试流程中其它测试消息不作任何处理,仅是透传。In the process of performance testing of WAP GW, the simulated traffic control server only replaces the test message carrying the payload, and when sending the test message to the WAP GW under test, the first part of the test message with a small amount of information is replaced. A payload is replaced with a second payload with a large amount of information; when the test message is sent to the test tool, the second payload with a large amount of information in the test message is replaced with a first payload with a small amount of information ; while other test messages in the test process are not processed, only transparently transmitted.
基于本发明实施例提供的各种移动数据业务平台性能测试方法,同时提供了一种移动数据业务平台性能测试仿真流量控制方法,如图9所示,包括:Based on various mobile data service platform performance testing methods provided by the embodiments of the present invention, a mobile data service platform performance test simulation flow control method is provided at the same time, as shown in FIG. 9 , including:
S901、接收测试工具发送的承载第一有效负载的第一测试消息,将第一测试消息中的第一有效负载替换为第二有效负载后生成第二测试消息,并向被测移动数据业务平台发送第二测试消息,第二有效负载的信息量大于第一有效负载的信息量;S901. Receive the first test message carrying the first payload sent by the test tool, replace the first payload in the first test message with the second payload, generate a second test message, and send the message to the mobile data service platform under test sending a second test message, where the information volume of the second payload is greater than the information volume of the first payload;
S902、接收经被测移动数据业务平台根据第二测试消息转发的承载第二有效负载的第三测试消息,将第三测试消息中的第二有效负载重新替换为第一有效负载后重新生成第四测试消息,并向测试工具返回该生成的第四测试消息。S902. Receive the third test message carrying the second payload forwarded by the mobile data service platform under test according to the second test message, replace the second payload in the third test message with the first payload, and regenerate the second payload Four test messages, and return the generated fourth test message to the test tool.
其中,第二有效负载与第一有效负载的信息量之差可以为设定的信息量差值;或者,第二有效负载与第一有效负载的信息量之比为设定的比例因子,比例因子大于1。Wherein, the difference between the information volume of the second payload and the first payload can be a set information volume difference; or, the ratio of the information volume of the second payload to the first payload is a set proportional factor, and the ratio factor greater than 1.
第一测试消息和第二测试消息中包括相同的消息头,该消息头与承载的协议相关,将第一测试消息中的第一有效负载替换为第二有效负载的方法,具体包括:The first test message and the second test message include the same message header, the message header is related to the protocol carried, and the method for replacing the first payload in the first test message with the second payload specifically includes:
A1、根据第一测试消息的消息头确定第一测试消息中第一有效负载的起始位置和信息量;A1. Determine the initial position and information amount of the first payload in the first test message according to the message header of the first test message;
A2、从起始位置用第二有效负载替换第一有效负载,第二有效负载的信息量根据第一有效负载的信息量增加设定的信息量差值确定,或者根据第一有效负载的信息量乘以设定的比例因子确定。A2. Replace the first payload with the second payload from the starting position. The information amount of the second payload is determined according to the information amount difference set by the increase of the information amount of the first payload, or according to the information of the first payload The amount is multiplied by the set scale factor to determine.
第三测试消息和第四测试消息中包括相同的消息头,该消息头与承载的协议相关,将第三测试消息中的第二有效负载重新替换为第一有效负载的方法,具体包括:The third test message and the fourth test message include the same message header, and the message header is related to the carried protocol. The method for replacing the second payload in the third test message with the first payload includes:
B1、根据第三测试消息的消息头确定第三测试消息中第二有效负载的起始位置和信息量;B1. Determine the starting position and information amount of the second payload in the third test message according to the message header of the third test message;
B2、从起始位置用第一有效负载替换第二有效负载,第一有效负载的信息量根据第二有效负载的信息量减去设定的信息量差值确定,或者根据第二有效负载的信息量除以设定的比例因子确定。B2. Replace the second payload with the first payload from the starting position. The information volume of the first payload is determined according to the information volume of the second payload minus the set information volume difference, or according to the information volume of the second payload The amount of information is divided by the set scaling factor to determine.
本发明实施例还提供了一种移动数据业务平台性能测试中的仿真流量控制装置,设置在仿真流量控制服务器中,如图10所示,该装置的一种具体实现结构,包括:The embodiment of the present invention also provides a simulation flow control device in the performance test of the mobile data service platform, which is set in the simulation flow control server, as shown in FIG. 10 , a specific implementation structure of the device includes:
第一接收模块1001:用于接收测试工具发送的承载第一有效负载的第一测试消息;The first receiving module 1001: for receiving the first test message carrying the first payload sent by the test tool;
第一消息处理模块1002:用于将第一测试消息中的第一有效负载替换为第二有效负载后生成第二测试消息,第二有效负载的信息量大于第一有效负载的信息量;The first message processing module 1002: for generating a second test message after replacing the first payload in the first test message with a second payload, where the information volume of the second payload is greater than the information volume of the first payload;
第一发送模块1003:用于向被测移动数据业务平台发送该第二测试消息;The first sending module 1003: for sending the second test message to the mobile data service platform under test;
第二接收模块1004:用于接收被测移动数据业务平台根据第二测试消息转发的承载该第二有效负载的第三测试消息;The second receiving module 1004: for receiving the third test message carrying the second payload forwarded by the mobile data service platform under test according to the second test message;
第二消息处理模块1005:用于将第三测试消息中的第二有效负载重新替换为第一有效负载后生成第四测试消息;The second message processing module 1005: for generating a fourth test message after replacing the second payload in the third test message with the first payload;
第二发送模块1006:用于向测试工具返回该生成的第四测试消息。The second sending module 1006: for returning the generated fourth test message to the test tool.
较优的,该仿真流量控制服务器还包括:Preferably, the simulated flow control server also includes:
第一消息确定模块1007:用于接收第一接收模块1001发送的第一测试消息,根据第一测试消息的消息头确定第一测试消息中第一有效负载的起始位置和信息量;The first message determining module 1007: for receiving the first test message sent by the first receiving module 1001, and determining the initial position and information amount of the first payload in the first test message according to the message header of the first test message;
第一消息处理模块1002从起始位置用第二有效负载替换第一有效负载。The first
第二消息确定模块1008:用于接收第二接收模块1004发送的第三测试消息,根据第三测试消息的消息头确定第三测试消息中第二有效负载的起始位置和信息量;The second message determining module 1008: for receiving the third test message sent by the
第二消息处理模块1005从起始位置用第一有效负载替换第二有效负载。The second
下面,对本发明实施例中仿真流量控制服务器对承载有效负载的测试消息进行有效负载替换的具体实现原理及方法进行详细说明。本发明实施例中仿真流量控制服务器采用多并发主进程和多并发子线程相结合的实现方法,其运行模型如图11所示。主进程,称为TOP进程持续侦听来自客户端新的测试流程,并针对每个测试流程派生出一个子线程负责处理,称为subThread线程,该subThread线程负责处理每个测试流程涉及的所有测试消息。这里的客户端是测试工具,目的端为被测移动数据业务平台,并可以在一台仿真流量控制服务器中同时运行多个TOP进程,为TOP进程的部署提供了很强的灵活性。In the following, the specific realization principle and method of performing payload replacement by the simulated flow control server on the test message carrying the payload in the embodiment of the present invention will be described in detail. In the embodiment of the present invention, the simulated flow control server adopts a realization method combining multiple concurrent main processes and multiple concurrent sub-threads, and its operation model is shown in FIG. 11 . The main process, called the TOP process, continuously listens to the new test process from the client, and derives a sub-thread for each test process, called the subThread thread, which is responsible for processing all the tests involved in each test process information. The client here is a test tool, and the destination is the mobile data service platform to be tested, and multiple TOP processes can be run simultaneously in a simulated traffic control server, which provides great flexibility for the deployment of TOP processes.
下面详细介绍TOP进程的实现原理,如图12所示,TOP进程的处理流程,包括:The implementation principle of the TOP process is introduced in detail below. As shown in Figure 12, the processing flow of the TOP process includes:
S1201~S1202、初始化面向客户端的套接字Socket的信息,包括IP地址、端口号Port等,创建Socket;S1201~S1202, initialize the client-oriented socket Socket information, including IP address, port number Port, etc., and create Socket;
S1203、TOP进程通过Socket持续的在指定监听端口上监听客户端的测试消息,判断是否到来新的测试流程;S1203, the TOP process continuously monitors the test message of the client on the designated listening port through the Socket, and judges whether a new test process is coming;
例如对于多媒体消息业务中MOMT业务场景,监听到MM1_Submit.Req消息即认为到来新的测试流程,WAP1.x业务中,监听到WSP GET Request消息即认为到来新的测试流程;For example, in the MOMT business scenario in the multimedia message service, the new test process is considered to be coming when the MM1_Submit.Req message is monitored; in the WAP1.x service, the new test process is considered to be coming when the WSP GET Request message is heard;
S1204、如果Socket中到来一个客户端新的测试流程,该测试流程的测试消息到达Socket;S1204. If a new client test process arrives in the Socket, the test message of the test process arrives at the Socket;
S1205、判断该测试消息是否被正确接收到,如果是,则执行S1206,如果否,则执行S1207;S1205. Determine whether the test message is received correctly, if yes, execute S1206, if not, execute S1207;
S1206、生成一个subThread线程进行后续处理,客户端的该测试消息作为subThread函数的参数,该参数用SrcSock表示;S1206, generating a subThread thread for subsequent processing, the test message of the client is used as a parameter of the subThread function, and the parameter is represented by SrcSock;
S1207、认为发生阻塞,并返回执行S1205。S1207. Considering that blocking occurs, and return to execute S1205.
由于会有众多并发测试消息的到来,所以仿真流量控制服务器中同时运行着多个subThread线程。Due to the arrival of many concurrent test messages, multiple subThread threads are running simultaneously in the simulated flow control server.
subThread线程由TOP进程派生,用来处理客户端提交的测试消息,下面详细介绍subThread线程的实现原理,如图13所示,subThread线程的处理流程,包括:The subThread thread is derived from the TOP process and is used to process the test message submitted by the client. The implementation principle of the subThread thread is introduced in detail below. As shown in Figure 13, the processing flow of the subThread thread includes:
S1301~S1304、利用测试消息对应的参数SrcSock获得客户端Socket的信息,包括IP地址、端口号Port等,并通过相应的替代转换获得创建目的端Socket,即DstSock的参数信息,并创建DstSock连接到目的端;S1301~S1304, use the parameter SrcSock corresponding to the test message to obtain the information of the client Socket, including IP address, port number Port, etc., and obtain the parameter information of creating the destination Socket, that is, DstSock through corresponding substitution conversion, and create DstSock to connect to destination;
S1305、根据所要处理的测试消息承载协议的不同选择不同的处理函数进行有效负载的替换,例如,针对承载于HTTP协议的测试消息,使用HttpProxy函数;针对承载于SMTP协议的测试消息,使用SmtpProxy函数;其它协议不再赘述;S1305. Select different processing functions to replace the effective load according to the different test message carrying protocols to be processed, for example, use the HttpProxy function for the test message carried by the HTTP protocol; use the SmtpProxy function for the test message carried by the SMTP protocol ;Other agreements will not be repeated;
S1306~S1307、当承载于HTTP协议时,采用两个不同的子线程来处理同一个Socket的双向信息流,首先派生一个新的子线程执行HttpProxy函数的处理,使用SrcSock和DstSock作为参数,之后自身也调用HttpProxy函数进行处理,采用相反的参数顺序,即使用DstSock和SrcSock作为参数;或者,S1306~S1307, when carrying on the HTTP protocol, use two different sub-threads to process the bidirectional information flow of the same Socket, first derive a new sub-thread to execute the processing of the HttpProxy function, use SrcSock and DstSock as parameters, and then itself Also call the HttpProxy function for processing, using the reverse parameter order, that is, using DstSock and SrcSock as parameters; or,
S1308~S1309、当承载于SMTP协议时,同样采用两个不同的子线程来处理同一个Socket的双向信息流,首先派生一个新的子线程执行SmtpProxy函数的处理,使用SrcSock和DstSock作为参数,之后自身也调用SmtpProxy函数进行处理,采用相反的参数顺序,即使用DstSock和SrcSock作为参数。S1308~S1309, when the SMTP protocol is carried, two different sub-threads are also used to process the bidirectional information flow of the same Socket. First, a new sub-thread is derived to perform the processing of the SmtpProxy function, using SrcSock and DstSock as parameters, and then It also calls the SmtpProxy function for processing, using the reverse parameter order, that is, using DstSock and SrcSock as parameters.
同一个Socket的双向信息流由两个专门的子线程进行处理,如图14所示,这种设计实现方法,设计思路精巧,处理方法简便,具备高度可重用性。The two-way information flow of the same Socket is processed by two dedicated sub-threads, as shown in Figure 14. This design implementation method has exquisite design ideas, simple processing methods, and high reusability.
多媒体消息业务中,MO、MT和AO消息承载于HTTP协议之上,FO和FT消息承载于SMTP协议之上;WAP业务中,WAP页面承载在HTTP协议之上;其它移动数据业务中承载的协议也都有相应的接口规范。针对本发明涉及的各测试消息,HttpProxy函数针对MM1_Submit.Req、MM1_Retrieve.Res和MM7_Deliver.Req消息进行有效负载即多媒体消息体的替换,针对HTTP GETResponse消息进行有效负载即WAP页面的替换;SmtpProxy函数针对MM4_Forward.Req消息进行有效负载即多媒体消息体的替换,而对于测试流程中涉及的其它测试消息都不作任何处理,仅是透传。In the multimedia message service, the MO, MT and AO messages are carried on the HTTP protocol, and the FO and FT messages are carried on the SMTP protocol; in the WAP service, the WAP page is carried on the HTTP protocol; the protocols carried in other mobile data services There are also corresponding interface specifications. For each test message that the present invention relates to, the HttpProxy function carries out the effective load that is the replacement of the multimedia message body for the MM1_Submit.Req, MM1_Retrieve.Res and MM7_Deliver.Req messages, and the effective load for the HTTP GETResponse message is the replacement of the WAP page; the SmtpProxy function is for The MM4_Forward.Req message replaces the payload, that is, the multimedia message body, and does not perform any processing on other test messages involved in the test process, but only transparently transmits them.
下面对执行测试消息中有效负载替换的函数进行详细介绍,以针对HTTP协议的HttpProxy函数和针对SMTP协议的SmtpProxy函数为例。The function for performing payload replacement in the test message is described in detail below, taking the HttpProxy function for the HTTP protocol and the SmtpProxy function for the SMTP protocol as examples.
如图15所示,为HttpProxy函数的流程图,参数为SrcSock和DstSock,针对承载于HTTP协议的测试消息,在同一个Socket中,对于将第一有效负载替换为第二有效负载以及将第二有效负载替换为第一有效负载同样适用,只是调用参数的顺序不同,本实施例将以第一有效负载替换为第二有效负载为例进行说明,先调用SrcSock再调用DstSock,具体包括以下步骤:As shown in Figure 15, it is a flow chart of the HttpProxy function, the parameters are SrcSock and DstSock, for the test message carried by the HTTP protocol, in the same Socket, for replacing the first payload with the second payload and the second payload Replacing the payload with the first payload is also applicable, but the order of calling parameters is different. In this embodiment, the replacement of the first payload with the second payload will be used as an example for illustration. First call SrcSock and then call DstSock, specifically including the following steps:
S1501、接收客户端发送的测试消息,测试消息的接收是通过依次从SrcSock中读取一定长度字节到缓存中实现的;S1501. Receive the test message sent by the client, and the reception of the test message is realized by sequentially reading a certain length of bytes from the SrcSock into the cache;
S1502、判断读取字节长度是否为空,如果否,则执行S1503,如果是,则执行S1508;S1502. Determine whether the read byte length is empty, if not, execute S1503, and if yes, execute S1508;
S1503、根据在测试消息的消息头中查找“Content-Length”的偏移量和其数值,判断测试消息所属的消息类型,比如为MM1_Submit.req,从而确定是否承载了第一有效负载,如果是,则执行S1504,如果否,则执行S1507;S1503. According to the offset and value of "Content-Length" searched in the message header of the test message, determine the message type to which the test message belongs, such as MM1_Submit.req, so as to determine whether the first payload is carried, if yes , execute S1504, if not, execute S1507;
S1504、在测试消息中通过查找第一有效负载的起始位置标志位确定其起始位置,比如可以通过JPEG图像的标志位JFIF找到多媒体消息体的起始位置;S1504, in the test message, determine its starting position by searching the starting position flag of the first payload, for example, the starting position of the multimedia message body can be found through the flag JFIF of the JPEG image;
S1505、将承载第一有效负载的测试消息中的第一有效负载替换为第二有效负载生成第二测试消息;S1505. Generate a second test message by replacing the first payload in the test message carrying the first payload with the second payload;
S1506、进行有效负载替换后通过DstSock返回给目的端,返回执行S1501;S1506. Return to the destination end through DstSock after performing payload replacement, and return to execute S1501;
S1507、不进行任何处理直接通过DstSock转发给目的端,返回执行S1501;S1507. Directly forward to the destination through DstSock without any processing, return to execute S1501;
S1508、关闭SrcSock和DstSock,结束流程。S1508. Close the SrcSock and DstSock, and end the process.
如图16所示,是SmtpProxy函数的流程图,针对承载于SMTP协议的测试消息,参数为SrcSock和DstSock,在同一个Socket中,对于将第一有效负载替换为第二有效负载以及将第二有效负载替换为第一有效负载同样适用,只是调用参数的顺序不同,本实施例以将第二有效负载替换为第一有效负载为例进行说明,先调用DstSock再调用SrcSock,具体包括以下步骤:As shown in Figure 16, it is a flow chart of the SmtpProxy function. For the test message carried by the SMTP protocol, the parameters are SrcSock and DstSock. In the same Socket, for replacing the first payload with the second payload and the second payload It is also applicable to replace the effective load with the first effective load, but the order of calling parameters is different. In this embodiment, the second effective load is replaced with the first effective load as an example for illustration. First call DstSock and then call SrcSock, which specifically includes the following steps:
S1601、接收目的端的测试消息,测试消息的接收是通过依次从DstSock中读取一定长度字节到缓存中实现的;S1601, receiving the test message of the destination, the reception of the test message is realized by sequentially reading a certain length of bytes from the DstSock into the cache;
S1602、判断读取字节长度是否为空,如果否,则执行S1603,如果是,则执行S1609;S1602. Determine whether the read byte length is empty, if not, execute S1603, and if yes, execute S1609;
S1603、根据测试消息的消息头判断测试消息是否为建链消息,如果是,则执行S1608,如果否,则执行S1604;S1603. Determine whether the test message is a link establishment message according to the message header of the test message, if yes, execute S1608, and if not, execute S1604;
SmtpProxy函数在收到的测试消息中查找是否有建链标识信息,如“220”、“HELO”、“250”、“354”、“MAIL FROM”、“RCPT TO”、“DATA”,等等,如果是则判断出该测试消息是SMTP的建链消息;The SmtpProxy function checks whether there is link establishment identification information in the received test message, such as "220", "HELO", "250", "354", "MAIL FROM", "RCPT TO", "DATA", etc. , if it is, it is judged that the test message is the SMTP link building message;
S1604、该测试消息是承载实际业务流程的消息,根据在测试消息的消息头中查找消息类型“X-Mms-Message-Type”,通过其值来判断出实际业务流程的消息类型,比如为MM4_Forward.Req,从而确定了是否承载了第二有效负载,如果是,则执行S1605,如果否,则执行S1608;S1604. The test message is a message carrying the actual business process. According to the message type "X-Mms-Message-Type" searched in the message header of the test message, the message type of the actual business process is judged by its value, such as MM4_Forward .Req, thereby determining whether the second payload is carried, if yes, execute S1605, if not, execute S1608;
S1605、通过在消息体中查找特定的BASE64编码,比如特定图片BASE64编码的起始若干个字节,确定第二有效负载的起始位置;S1605. Determine the starting position of the second payload by searching for a specific BASE64 code in the message body, such as the first few bytes of the BASE64 code of a specific picture;
S1606、将第三测试消息中的第二有效负载替换为第一有效负载,生成第四测试消息;S1606. Replace the second payload in the third test message with the first payload, and generate a fourth test message;
S1607、进行有效负载替换后通过SrcSock返回给客户端,返回执行S1601;S1607. Return to the client through SrcSock after performing payload replacement, and return to execute S1601;
S1608、不进行任何处理直接通过SrcSock转发给客户端,返回执行S1601;S1608. Directly forward to the client through SrcSock without any processing, and return to execute S1601;
S1609、关闭SrcSock和DstSock,结束流程。S1609. Close the SrcSock and DstSock, and end the process.
本发明实施例提供的移动数据业务平台性能测试系统,通过实验检测,可以较好的控制单位时间内的流量,并且统计测试结果较为精确,例如该测试系统能达到测试每秒钟1000条左右信息量为100KB多媒体消息的多媒体消息中心的要求;随着各种被测移动数据业务平台测试容量的不断增加,可以通过扩充仿真流量控制服务器的方式得到解决。The mobile data service platform performance test system provided by the embodiment of the present invention can better control the traffic per unit time through experimental detection, and the statistical test results are relatively accurate. For example, the test system can test about 1000 pieces of information per second. The requirement of the multimedia message center whose volume is 100KB multimedia message; with the continuous increase of the test capacity of various mobile data service platforms under test, it can be solved by expanding the simulated flow control server.
本发明实施例提供的移动数据业务平台性能测试流量控制方法及装置,能够有效地降低对昂贵的专用测试工具硬件板卡的数量和总线带宽吞吐率的要求,减少了采购专用测试工具硬件板卡的成本投入,当被测移动数据业务平台要求的有效负载信息量很高时,例如多媒体消息体的信息量大于等于100KB,使用仿真流量控制服务器进行消息体的替换可以有效满足被测移动数据业务平台的测试性能需求;The mobile data service platform performance test flow control method and device provided by the embodiments of the present invention can effectively reduce the requirements on the number of expensive special test tool hardware boards and the bus bandwidth throughput rate, and reduce the purchase of special test tool hardware boards. When the amount of payload information required by the mobile data service platform under test is very high, for example, the information volume of the multimedia message body is greater than or equal to 100KB, using the simulated flow control server to replace the message body can effectively meet the requirements of the mobile data service under test. Platform test performance requirements;
使用专用测试工具软硬件平台与仿真流量控制服务器相结合的测试方法,在利用了专用测试工具协议仿真准确、灵活,测试结果统计精确优点的同时,发挥了仿真流量控制服务器支持高带宽吞吐率的优点;The test method that combines the software and hardware platform of the special test tool with the emulation flow control server utilizes the advantages of accurate and flexible protocol emulation of the special test tool and accurate statistics of the test results, and at the same time gives full play to the ability of the emulation flow control server to support high bandwidth throughput. advantage;
利用仿真流量控制服务器很好的解决了大容量、高带宽数据业务平台性能测试中遇到的专用测试工具成本、总线带宽吞吐率等方面的问题,能在现有功能的基础上不断完善,开辟出更广阔的测试领域。The use of the simulation flow control server solves the problems of special test tool cost and bus bandwidth throughput rate encountered in the performance test of large-capacity and high-bandwidth data service platforms. It can continue to improve and develop on the basis of existing functions. a wider testing field.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007103047550A CN101472290B (en) | 2007-12-29 | 2007-12-29 | Mobile data service platform performance test flow control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007103047550A CN101472290B (en) | 2007-12-29 | 2007-12-29 | Mobile data service platform performance test flow control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101472290A CN101472290A (en) | 2009-07-01 |
CN101472290B true CN101472290B (en) | 2010-07-14 |
Family
ID=40829339
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007103047550A Active CN101472290B (en) | 2007-12-29 | 2007-12-29 | Mobile data service platform performance test flow control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101472290B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2778768C (en) | 2009-10-25 | 2016-01-26 | Lg Electronics Inc. | Backhaul downlink signal decoding method of relay station and relay station using same |
CN105787026B (en) * | 2016-02-24 | 2019-07-09 | 人民网股份有限公司 | The display methods and device of information flow |
CN106506601B (en) * | 2016-10-12 | 2020-05-15 | 北京奇虎科技有限公司 | Data transmission method and device |
CN107547309B (en) * | 2017-08-21 | 2020-09-04 | 奇安信科技集团股份有限公司 | Automatic testing method and device for security gateway performance |
CN109889374B (en) * | 2019-01-22 | 2022-04-26 | 中国联合网络通信集团有限公司 | Bearing evaluation method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1588892A (en) * | 2004-09-17 | 2005-03-02 | 华中科技大学 | Complex detecting system for storage server property |
CN1859464A (en) * | 2005-12-13 | 2006-11-08 | 华为技术有限公司 | Comprehensive detector for communication access device |
CN1863241A (en) * | 2005-08-09 | 2006-11-15 | 华为技术有限公司 | Method and apparatus for call testing of speech apparatus |
-
2007
- 2007-12-29 CN CN2007103047550A patent/CN101472290B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1588892A (en) * | 2004-09-17 | 2005-03-02 | 华中科技大学 | Complex detecting system for storage server property |
CN1863241A (en) * | 2005-08-09 | 2006-11-15 | 华为技术有限公司 | Method and apparatus for call testing of speech apparatus |
CN1859464A (en) * | 2005-12-13 | 2006-11-08 | 华为技术有限公司 | Comprehensive detector for communication access device |
Also Published As
Publication number | Publication date |
---|---|
CN101472290A (en) | 2009-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109787868B (en) | Method, system and server for selecting routing path | |
CN100466551C (en) | A method for implementing load balancing and a load balancing device | |
US8849322B2 (en) | Systems and methods for sharing threaded conversations on mobile communications devices | |
CN107634915A (en) | Data transmission method, device and storage medium | |
CN111294798B (en) | A method, device, terminal device and medium for data interaction | |
CN108494817A (en) | Data transmission method, relevant apparatus and system | |
CN100365978C (en) | Method and device for realizing classified service to business provider | |
CN101472290B (en) | Mobile data service platform performance test flow control method and device | |
WO2019000866A1 (en) | Data processing method and internet of things (iot) gateway | |
US20210352015A1 (en) | Method and device for hosting application by access node | |
CN103945455A (en) | Method and device for sending self-adaptive heartbeat data packets | |
CN109495857B (en) | Charging method, mobile edge computing server, charging system and policy control rule network element | |
WO2015131561A1 (en) | Method and device for implementing short message forwarding as instant messaging | |
US20090041013A1 (en) | Dynamically Assigning A Policy For A Communication Session | |
WO2022268137A1 (en) | Tcp connection method, system, network device, and storage medium | |
CN107371179A (en) | Measurement result reporting method, measurement result receiving method, related equipment and system | |
CN108512743A (en) | LAN instant messaging method of servicing, device and electronic equipment | |
CN111555965B (en) | Message pushing method and system suitable for iOS client | |
CN114071544A (en) | Network testing method and device and electronic equipment | |
CN102056195A (en) | Quality of service (QoS) etermination method and radio access network equipment | |
KR20160068448A (en) | Apparatus and method for controlling throughput of transmission layer in wireless communication system | |
CN101222660B (en) | Method and device for receiving multimedia messages | |
CN114641014B (en) | User plane entity, configuration method, system and equipment | |
CN105827695A (en) | Sharing method and apparatus of bandwidth resources | |
TWI294087B (en) | Systems and methods for file transfer management |
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 |