CN103248709B - Wireless signal simulation method and system automation - Google Patents

Wireless signal simulation method and system automation Download PDF

Info

Publication number
CN103248709B
CN103248709B CN 201310195767 CN201310195767A CN103248709B CN 103248709 B CN103248709 B CN 103248709B CN 201310195767 CN201310195767 CN 201310195767 CN 201310195767 A CN201310195767 A CN 201310195767A CN 103248709 B CN103248709 B CN 103248709B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
network
request
signal
web server
agent
Prior art date
Application number
CN 201310195767
Other languages
Chinese (zh)
Other versions
CN103248709A (en )
Inventor
洪珂
陈明师
吕士表
Original Assignee
网宿科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Grant date

Links

Abstract

本发明提供了一种无线信号自动化仿真方法及系统,该方法包括:移动终端组织请求,该请求包含网络状态参数以及目标路径;代理机接收该请求,根据该请求内的网络状态参数设置该代理机与Web服务器之间的无线网络状态;所述代理机根据所述无线网络状态模拟相应的无线网络信号以访问所述Web服务器。 The present invention provides an automated simulation method and a radio signal systems, the method comprising: a mobile terminal organization request that includes a network status parameters and the target path; the agent receives the request, the agent according to the network parameter set state in the request state between the wireless network and the Web server; the agent of the analog signal corresponding to a wireless network according to the state of the wireless network to access the Web server. 本发明能够实现无线网络信号的自动化模拟仿真。 The present invention enables the automation analog signal of the wireless network simulation.

Description

无线信号自动化仿真方法及系统 Wireless signal simulation method and system automation

技术领域 FIELD

[0001] 本发明涉及流量控制测试技术,尤其涉及一种无线信号自动化仿真方法及系统。 [0001] The present invention relates to a flow rate control testing technology, and particularly relates to a wireless signal and a system for automated simulation method.

背景技术 Background technique

[0002] 流量控制大多数用于个人台式机(PC)上,用于模拟PC上的网络拥塞,从而测试某些拥塞算法的优良。 [0002] flow control for most personal desktop (PC), a network congestion on the analog PC, to test some excellent congestion algorithms.

[0003] 图1示出了现有技术中一种流量控制模拟系统,其中,在代理机12处控制出口流量和入口流量(包括网络延时、丢包率等),从而模拟客户机11访问源站13的各种网络状态。 [0003] FIG. 1 shows an example in which, in the control flow outlet and the inlet 12 at a flow rate of the agent (including network latency, packet loss rate, etc.) to simulate the client 11 accesses the prior art analog A flow control system, various network state of the source station 13. 其中,客户机11和代理机12通常都是基于Linux操作系统的。 Among them, the client 11 and the agent 12 is usually based on the Linux operating system.

[0004] 采用图1所示方案的优点如下:成本低,通常只需要一台基于Linux操作系统的PC机即可;部署简单,无需重新编译内核,可以直接使用Linux操作系统自带的流量控制工具tc来编写相应的流量控制脚本。 [0004] The advantage of using the scheme shown in Figure 1 as follows: low cost, usually only a Linux-based operating system, a PC can; simple deployment, without recompiling the kernel, the Linux operating system may be used to control the flow comes directly tc tool to prepare the corresponding flow control script.

[0005] 然而,随着移动终端的应用越来越多,因此需要模拟测试手机客户端对服务器端的访问请求。 [0005] However, as more and more applications of mobile terminal, it is necessary simulation tests mobile client access requests to the server. 然后现有技术中如图1所示的方案具有如下缺点: Then the prior art embodiment shown in Figure 1 has the following disadvantages:

[0006] 1、无法模拟无线网络信号,现有技术通常模拟的都是PC机的网络状态,未能实现无线网络信号的模拟,如wifi信号,3G信号等; [0006] 1, a wireless network can not simulate the network status signal, the analog prior art are usually the PC, it failed to achieve an analog wireless network signal, such as wifi signal, 3G signal or the like;

[0007] 2、未实现各种网络自动化切换:目前技术上无线信号的切换都需要手动换手机或者sim卡,无法做到自动化切换; [0007] 2, did not achieve a variety of network automation switch: the current wireless signal switching technology will need to manually change the phone or sim card, can not do automatic switching;

[0008] 3、未实现跨平台网络状态切换:现有技术中切换网络状态一般是在linux操作系统下进行,而移动终端app自动化测试一般在windows操作系统下进行,存在跨平台下的网络状态切换问题。 [0008] 3, does not cross-state switching network platform: the prior art switching network state is generally carried out at a linux operating system and the mobile terminal app automatic test is generally performed under the windows operating system, the presence of the cross-platform network state switch problem.

发明内容 SUMMARY

[0009] 本发明要解决的技术问题是提供一种无线信号自动化仿真方法及系统,能够实现无线网络信号的自动化模拟仿真。 [0009] The present invention is to solve the technical problem of providing a radio signal automated simulation method and system for automated analog wireless network signal can be simulated.

[0010] 为解决上述技术问题,本发明提供了一种无线信号自动化仿真方法,包括: [0010] In order to solve the above technical problem, the present invention provides an automated simulation method for a wireless signal, comprising:

[0011] 移动终端组织请求,该请求包含网络状态参数以及目标路径; [0011] the mobile terminal organization request that includes a network status parameters and the target path;

[0012] 代理机接收该请求,根据该请求内的网络状态参数设置该代理机与Web服务器之间的无线网络状态; [0012] the agent receives the request, parameter setting wireless network status between the agent and the Web server according to the network state in the request;

[0013] 所述代理机根据所述无线网络状态模拟相应的无线网络信号以访问所述Web服务器。 [0013] the agent of the analog signal corresponding to a wireless network according to the state of the wireless network to access the Web server.

[0014] 根据本发明的一个实施例,所述Web服务器位于内网,其中缓存有位于外网的源服务器的内容。 [0014] According to an embodiment of the present invention, the Web server located within the network, wherein the content in the source cache server of the external network.

[0015] 根据本发明的一个实施例,在所述移动终端组织所述请求之前该方法还包括:所述移动终端经由所述Web服务器访问该源服务器,将所述源服务器中的内容缓存在所述Web服务器内。 [0015] According to one embodiment of the present invention, the mobile terminal prior to the request for the tissue method further comprising: said mobile terminal access to the source server via the Web server, the contents of the source server cache the inner Web server.

[0016] 根据本发明的一个实施例,所述代理机经由中转机接收该请求,其中,所述代理机基于Linux操作系统,所述中转机基于Windows操作系统,所述中转机对该请求进行跨平台转换后传输至所述代理机。 [0016] According to an embodiment of the present invention, the proxy receives the request via the transit, wherein the agent based on the Linux operating system, in turn based on the Windows operating system, the request for the transfer of after the cross-platform conversion is transmitted to the agent.

[0017] 根据本发明的一个实施例,所述请求还包含网络状态切换信号,以指示所述代理机切换模拟多种不同的无线网络信号。 [0017] According to one embodiment of the present invention, the network further comprising state switching request signal, the agent switches to indicate that the analog signal a plurality of different wireless networks.

[0018] 本发明还提供了一种无线信号自动化仿真系统,包括: [0018] The present invention further provides a radio signal simulation automation system, comprising:

[0019] Web 服务器; [0019] Web server;

[0020] 移动终端,组织请求,该请求包含网络状态参数以及目标路径; [0020] the mobile terminal, tissue request that includes a network status parameters and the target path;

[0021] 代理机,接收该请求,根据该请求内的网络状态参数设置该代理机与所述Web服务器之间的无线网络状态,并根据所述无线网络状态模拟相应的无线网络信号以访问所述Web服务器。 [0021] the agent receives the request, according to the network state parameter setting request to the wireless network status between the computer and the Web proxy server, and the corresponding analog signal according to the wireless network to access the wireless network status said Web server.

[0022] 根据本发明的一个实施例,所述Web服务器位于内网,其中缓存有位于外网的源服务器的内容。 [0022] According to an embodiment of the present invention, the Web server located within the network, wherein the content in the source cache server of the external network.

[0023] 根据本发明的一个实施例,采用如下方式构建所述Web服务器:所述移动终端在发出该请求之前,经由所述Web服务器访问该源服务器,将所述源服务器中的内容缓存在所述Web服务器内。 [0023] According to an embodiment of the present invention, using the Web server constructed as follows: the mobile terminal prior to issuing the request, access to the source server via the Web server, the contents of the source server cache the inner Web server.

[0024] 根据本发明的一个实施例,该系统还包括:中转机,所述中转机基于Windows操作系统,所述代理机基于Linux操作系统,所述中转机对该请求进行跨平台转换后传输至所述代理机。 [0024] According to one embodiment of the present invention, the system further comprises: the transfer, the transfer based on the Windows operating system, the Linux operating system based on the agent, the said transfer request after the transmission cross-platform conversion to the the agent.

[0025] 根据本发明的一个实施例,所述请求还包含网络状态切换信号,以指示所述代理机切换模拟多种不同的无线网络信号。 [0025] According to one embodiment of the present invention, the network further comprising state switching request signal, the agent switches to indicate that the analog signal a plurality of different wireless networks.

[0026] 与现有技术相比,本发明具有以下优点: [0026] Compared with the prior art, the present invention has the following advantages:

[0027] 本发明实施例的无线信号自动化仿真方法及系统中,代理机接收移动终端的请求,相应地设置与Web服务器之间的无线网络状态并进而模拟无线网络信号来访问该Web服务器,从而实现了无线网络信号的自动化模拟仿真,无需更换手机或者sim卡等。 [0027] Wireless signals automated simulation method and system embodiments of the present invention, the agent receives a request of the mobile terminal, the wireless network status between the respective Web servers are provided with an analog wireless network signal and thus to access the Web server, thereby automated simulation of wireless network signal without changing the phone or sim card.

[0028] 进一步地,本发明实施例的Web服务器可以是内网的服务器,移动终端首先经由该Web服务器访问外网的源服务器,从而将源服务器的内容缓存在位于内网的Web服务器内,使得后续的测试模拟过程无需访问外网,有利于减少占用的带宽。 [0028] Further, the Web server embodiment of the present invention may be a network server, the mobile terminal first accesses the source server outside the network via the Web server, so that the content source server cache the Web server located within the network, so that subsequent testing simulation without having to access the Internet, helps to reduce the bandwidth occupied.

附图说明 BRIEF DESCRIPTION

[0029] 图1是现有技术中一种流量控制测试系统的结构框图; [0029] FIG. 1 is a configuration diagram of a prior art test A flow control system;

[0030]图2是本发明实施例的无线信号自动化仿真方法的流程示意图; [0030] FIG. 2 is a wireless signal process automation simulation method of the embodiment of the present invention is a schematic diagram;

[0031]图3是本发明实施例的无线信号自动化仿真系统的结构框图。 [0031] FIG. 3 is a block diagram of a wireless automatic signal simulation system of the present embodiment of the invention.

具体实施方式 detailed description

[0032] 下面结合具体实施例和附图对本发明作进一步说明,但不应以此限制本发明的保护范围。 [0032] The following embodiments in conjunction with specific embodiments and drawings the present invention is further illustrated, but should not be used to limit the scope of the present invention.

[0033] 本实施例的无线信号自动化仿真方法包括如下步骤: [0033] Wireless signals automated simulation method according to the present embodiment includes the steps of:

[0034] 移动终端组织请求,该请求包含网络状态参数以及目标路径; [0034] The mobile terminal organization request that includes a network status parameters and the target path;

[0035] 代理机接收该请求,根据该请求内的网络状态参数设置该代理机与Web服务器之间的无线网络状态; [0035] The agent receives the request, parameter setting wireless network status between the agent and the Web server according to the network state in the request;

[0036] 所述代理机根据所述无线网络状态模拟相应的无线网络信号以访问所述Web服务器。 The [0036] the agent according to the status of the wireless network corresponding to the analog signals to wireless network access to said Web server.

[0037] 进一步而言,Web服务器优选为位于内网的服务器,在测试之前,可以先采用移动终端访问位于外网的源服务器,从而将源服务器的内容缓存在内网的Web服务器内,实现内网Web服务器的构造。 [0037] Further, the Web server is preferably located in the network server, before the test, you can use the mobile terminal to access a server located outside the network source, so that the content within a Web cache server including network origin server to achieve construction intranet Web server. 由于在很多测试环境中连接外网的带宽受限,内网到外网的流量通常受到限制,在带宽较小的环境中进行流量控制测试,控制效果不明显;使用缓存(cache)的方式在内网构造Web服务,将外网的原服务器的数据通过初次访问缓存至内网用于测试的Web服务器,有利于改善测试效果,减小对带宽的占用。 Since the limited bandwidth connection, the network outside the network environment in many test traffic to the external network is generally limited, the flow rate control testing, the control effect is not obvious in small bandwidth environment; Use Cache (Cache) manner Web services within the network structure, the original data outside the network to access the server through the network to the first cache Web server for testing, will help to improve test results, reduce the usage of bandwidth.

[0038] 移动终端可以采用各种方式组织请求,例如可以采用第三方应用程序(app)的方式来实现。 [0038] The mobile terminal may be organized in various requests, such as third party applications (App) methods can be used to achieve. 在一个非限制性的例子中,可以通过移动终端上的app增加无线网络信号的自动选择功能,该无线网络信号可以是wif1、3G、edge、gprs等各种无线网络信号,每一种无线网络信号可以对应于一组网络状态参数。 In one non-limiting example, may be increased automatically select signal through the wireless network app on the mobile terminal, the wireless network signal may be various wireless network signal wif1,3G, edge, gprs the like, each of the wireless network signal may correspond to a set of network status parameters. 网络状态参数指的是影响网络质量的参数,例如可以包括网络带宽、网络延时、丢包率等等。 Network state parameter refers to parameters affecting the quality of the network, for example, include network bandwidth, network latency, packet loss rate and the like.

[0039] 此外,移动终端组织的请求还可以包括目标路径和网络状态切换信号。 [0039] Further, the requesting mobile terminal may further include a target tissue and a network path state switching signal. 其中,目标路径可以是要访问的目标内容的URL。 Wherein the target path can be a URL target content to be accessed. 网络状态切换信号用于指示需要模拟的多种不同的无线网络信号,例如,如果网络状态参数为1,则表示需要切换网络状态,如果为0则不需要再切换模拟,起始时可以将网络状态切换信号初始化为1,在将各种无线网络信号都切换遍历之后,可以将该值修改为0。 Network state switching signals for a plurality of different wireless networks need to simulate a signal indicative of, for example, if the network state parameter is 1, then the need to switch the network state, if the switch is analog not need to 0, the starting web may be state switching signal is initialized to 1, after the various signals are switched wireless network traversal, can change the value to 0.

[0040] 由于大多移动终端的app是基于Windows操作系统平台的,而代理机通常是基于Linux操作系统的,因此作为一个优选的实施例,可以采用基于Windows操作系统的中转机对app发出的请求进行跨平台转换,之后再将其传输至代理机进行处理。 [0040] Since the app most of the mobile terminal is based on the Windows operating system platform, and the agent is typically based on the Linux operating system, and therefore as a preferred embodiment, the request transfer the Windows operating system based on app emitted may be employed cross-platform conversion, after sending them to a proxy machine for processing.

[0041] 代理机在接收到该请求之后,触发无线网络信号的设置操作,根据请求内包含的网络状态参数设置代理机与Web服务器之间的无线网络状态,然后根据无线网络状态模拟对应的无线网络信号来访问Web服务器。 [0041] After the agent receiving the request, the wireless network setting operation trigger signal, the wireless network comprising a request state between the network status parameters and the Web proxy server, and an analog wireless network corresponding to the radio state network signal to access the Web server.

[0042] 进一步而言,无线网络信号的模拟可以包括如下过程:首先清空所有的流量控制规则;其次,创建有类的流量队列规则,该流量队列规则内设置父类带宽值和子类带宽值,其中子类带宽值是先前移动终端传递的请求内的网络状态参数所记录的,父类带宽值大于子类带宽值;再次,在子类中增加延时和丢包率规则,从而模拟各种无线网络信号的延时、丢包率和带宽的状态;最后根据得到的无线网络状态模拟相应的无线网络信号。 [0042] Further, an analog wireless network signal may include the following process: First Clear all traffic control rules; secondly, to create traffic class queuing discipline there is provided parent bandwidth values ​​and bandwidth value within this subclass traffic queuing discipline wherein the bandwidth value previously subclass mobile network state parameter of the requesting terminal transmitting the recorded bandwidth values ​​greater than the parent subclass bandwidth value; again, increased latency and packet loss rate subclass rules to simulate each species wireless network signal delay, packet loss rate and bandwidth state; final analog signal corresponding to the wireless network according to a wireless network state obtained.

[0043] 另外还可以设置网络状态切换信号,根据网络状态切换信号的不同,分别切换模拟不同的无线网络信号,例如网络状态切换信号为1则表示wifi信号,为2则表示3G信号,为3则表示EDGE/GPRS信号,默认情况下网络状态切换信号从1至3逐一切换,如果不需要再切换,则可以将网络状态切换信号设置为0,此时网络状态切换信号也称为网络状态切换结束信号。 [0043] Further may be provided a network state switching signal, switching different signals according to a network state, each switch between analog wireless network signal, such as the network state switching signal is 1, it indicates wifi signal 2 indicates 3G signal, 3 indicates EDGE / GPRS signal, default network handover state signal is switched from 1 to 3, one by one, if not then switch, network status may be the switching signal is set to 0, then the network state switching signal is also called network state switch end signal.

[0044] 此外,在每一次无线网络状态设置结束之后,代理机还可以判断网络状态切换信号,如果非0,则根据网络状态切换信号的具体数值选择对应的无线网络信号,并将该操作经由代理机传递给中转机,以便下一轮的自动化选择无线网络信号。 [0044] Further, after the end of each state of the wireless network is provided, the agent can determine the network status of a switching signal, if non-zero, then the particular value of the switching signal corresponding to the selected wireless network signal in accordance with the state of the network, and via the operation in turn is transmitted to the agent for the next round of selection automation wireless network signal.

[0045] 图2示出了无线信号自动化仿真的实例,下面参考图2进行详细说明。 [0045] FIG. 2 shows an example of a wireless automated simulation signal below with reference to FIG. 2 described in detail.

[0046] 首先构建位于内网的Web服务器,具体过程如下:1)设置代理,在移动app上设置代理,ip和端口号指向Web服务器,为了解决移动终端上的中文显示问题,还可以在空间结构层次分析器上获取移动app下拉菜单下移动app对应的id号,并通过配置文件将其映射关系写入文件中;2)移动app自动化访问Web服务器,移动app发出的Web请求经过Web服务器,并将响应包缓存到Web服务器中,之后的Web请求将直接从该Web服务器获取相应;3) Web缓存判断,在Web服务器上,可以再次访问步骤2)访问过的其中一个URL,检查是否有缓存的标记,如果有则表明已经缓存,可以进入后续操作。 [0046] First constructed positioned intranet Web server, the specific process is as follows: 1) setting agents, setting agents, ip and port number to a Web server on a mobile App, to solve Chinese on the mobile terminal display problems, also in the space obtaining structural level analyzer mobile app corresponding pull-down menu at the mobile app id number, and by its configuration file written to the file mapping relationship; 2) automation mobile app accesses the Web server, Web requests from the mobile app through the Web server, and in response to the packet buffer to the Web server, the Web request that has been acquired directly from the corresponding Web server;. 3) Web cache determines, on the Web server can be accessed in step 2) wherein a URL visited again, check cache tag, indicates if there has been cached, enter the subsequent operation.

[0047] 之后在S21处,移动app自动化选择手机信号(也即无线网络信号)。 After [0047] In S21, the mobile phone app automated selection signal (i.e., wireless network signal). 进一步而言,通过选择手机信号,移动终端可以组织相应的请求,该请求包含网络状态参数以及要访问的目标路径(例如URL)。 Further, by selecting a cell phone signal, the mobile terminal may organize the appropriate request, which contains the target path and network status parameters to be accessed (e.g., URL).

[0048] 在S22处,中转机收到移动终端的请求之后,记录其中的网络状态参数。 [0048] After S22, the transfer request is received in the mobile terminal, wherein the network status parameters recorded.

[0049] 在S23处,向代理机发出修改无线网络状态的请求。 [0049] In S23, the wireless network status sent modification request to the agent.

[0050] 在S24处,代理机接受修改请求,修改代理机与内网Web服务器之间往返的无线网络状态。 [0050] In S24, the agent accepts the modification request, modify the wireless network status and forth between the agent's internal Web server.

[0051] 在S25处,代理机输出模拟的无线网络信号。 [0051] In S25, the analog output of the agent of the wireless network signal.

[0052] 在S26处,判断测试是否结束,如果是则前进至S27结束,否则返回S21继续。 [0052] In S26, it is judged whether the end of the test, and if so, proceed to the end of the S27, S21 otherwise continue.

[0053] 关于无线网络信号的模拟,其主要是通过设置代理机与Web服务器之间的无线网络参数来模拟各种无线网络状态,从而模拟移动终端到基站的网络状态,使得代理机称为移动终端访问Web服务器的模拟客户端,并进行各种URL请求的模拟及其响应。 [0053] For an analog wireless network signal, which is mainly over the wireless network parameter between the Web server and the agent is provided to simulate various wireless network status, network status in order to simulate a base station to a mobile terminal, such that the agent referred to as mobile analog terminal accesses a Web server client and simulate its response to various URL request.

[0054] 无线网络信号的模拟主要包括如下过程: [0054] Analog signals wireless network includes the following processes:

[0055] 1)清空所有的有类队列规则:在进行流量控制之前,确保该有类规则之前未被设置过,或者取消之前的规则设置,以确保环境干净和数据的可靠; [0055] 1) are all empty class queuing discipline: Before the flow control to ensure that has not been previously set classification rules, or the rules set before cancellation, to ensure a clean environment, and reliability of data;

[0056] 2)创建有类的流量队列规则:该队列规则里设置父类带宽值和子类最大带宽值,子类带宽值来源于移动终端发出的请求内的网络状态参数,其中父类带宽值大于子类带宽值; [0056] 2) Create a flow class queuing discipline: the queuing discipline is provided in the parent class and subclasses bandwidth values ​​maximum bandwidth value, the bandwidth value subclass state parameter from the network the request sent to the mobile terminal, wherein the bandwidth of the parent class subclass value is greater than a bandwidth value;

[0057] 3)为子类增加时延和丢包率规则:在子类里增加时延和丢包率规则,从而模拟各种无线网络的延时,丢包率和带宽,该值来源于移动终端发出的请求内的网络状态参数; [0057] 3) subclass increased delay and packet loss rate rules: increased latency and packet loss rate in the sub-class rule, to simulate various wireless network latency, packet loss rate and bandwidth, the value derived from network state in the request sent by the mobile terminal parameters;

[0058] 4)设置网络状态切换信号:最后根据步骤2)和步骤3)的无线网络状态,运行相应程序模拟无线网络信号,并设置网络状态切换信号,例如,若需要结束,则将其设置为0。 [0058] 4) setting network state switching signal: Finally, according to step 2) and 3) of the wireless network status, program operation corresponding analog signals wireless network, and the network state switching signal is provided, for example, if desired the end, it is provided 0.

[0059] 每次无线网络状态设置结束后,代理机可以判断网络状态切换信号是否为0,如果非0,则再次进行无线网络信号的选择操作,并将该操作由代理机传递给中转机,以便下一轮的自动化选择无线信号,当每个网络状态的对应值都被设置过一遍后,则无需再进行切换,网络状态切换完成。 [0059] After each set the end state of the wireless network, the agent can determine the network state of the switching signal is a 0, if non-zero, the wireless network signal selection operation again, and the operation is transferred from the agent to the transfer, after an automatic selection for the radio signal, when the corresponding value for each state of the network are provided over again, then no further switching state of the switching network is completed.

[0060] 需要说明的是,移动终端首次经由内网的Web服务器访问外网的源服务器,用以将源服务器的内容缓存至Web服务器,后续的自动化测试过程中,移动终端访问的内网的Web服务器。 [0060] Incidentally, the first mobile terminal access to the source server via the Web server of the external network within the network, the content source to the cache server to the Web server, the subsequent automate the testing process, the mobile terminal access to the network Web server.

[0061 ] 综上,在上述实施例中,构造内网的Web服务器时网络虚拟环境的基础,之后代理机相当于扮演路由器的角色,控制入口流量和出口流量、延时和丢包率等,从而模拟各种无线网络信号;另外,可以在Windows操作系统端构造各种网络状态参数和请求数据包,模拟URL请求,在代理机上需要安装相应的Web服务器程序(Web server),用于接受来自Windows操作系统端的网络状态更改需求,并触发相应的处理操作;最后,Windows操作系统端的请求(包含网络状态更改以及切换操作)将会在内网的Web服务器得到响应,并输出相应的网络信号,直至测试结束。 [0061] In summary, in the above embodiment, the configuration of the Web server based network virtual network environment, the agent then corresponding to RPG router, the control inlet flow and outlet flow, delay and packet loss rate, to simulate various wireless network signal; Additionally, parameters can be configured and various network status request packet in the Windows operating system side, the analog URL request, the agent needs to be installed on the corresponding Web server program (Web server), for receiving from network status of the Windows operating system side changes demand, and triggers a corresponding processing operation; finally, request the Windows operating system side (including network status changes and the switching operation) will intranet Web server to obtain the response, and outputs the corresponding network signals, until the end of the test.

[0062] 采用本实施例的方案,模拟环境与真实的无线网络环境很接近,误差在5%左右,属于可接受误差。 [0062] The embodiment according to the present embodiment, an analog wireless network environment and the real environment is very close, the error is about 5%, is acceptable error. 首先,可以使用PC网络模拟手机到基站的各种网络状态,大大减少移动app自动化测试时手机及其SIM卡的切换,提高自动化程度和效率;其次,可以较大程度上取消移动app自动化测试对手机硬件依赖,可以节省硬件成本;最后,可以在代理机上模拟移动app的操作,较大程度上消除移动app自动化测试时触摸延时带来的各种异常,减少异常数据,提高测试数据的准确度。 First, you can use the PC analog phone network base stations to a variety of network status, greatly reducing the phone and switch the SIM card mobile app automated testing, improve automation and efficiency; secondly, the mobile app can cancel the automated test to a large extent phone hardware dependent, can save hardware costs; finally, can simulate the operation of a mobile app on the proxy machine, the elimination of all mobile app when automated testing touch delay caused by abnormal large extent, reduce abnormal data to improve the accuracy of test data degree.

[0063] 参考图3,本实施例还提供了一种无线信号自动化仿真系统,主要包括:移动终端31、中转机32、代理机33、Web服务器34和源服务器35。 [0063] Referring to Figure 3, the present embodiment further provides a radio signal simulation automation system, including: a mobile terminal 31, the transfer 32, the agent 33, Web server 34 and the origin server 35.

[0064] 其中,移动终端31组织请求,该请求包含网络状态参数以及目标路径;代理机33经由中转机32接收该请求,根据该请求内的网络状态参数设置该代理机33与Web服务器34之间的无线网络状态,并根据该无线网络状态模拟相应的无线网络信号以访问Web服务器34。 [0064] wherein, the mobile terminal 31 tissue request that includes a network status parameters and the target path; the agent 33 via the transfer 32 receives the request, parameter settings of the agent 33 and the Web server according to the network state in the request 34, state between the wireless network and wireless network based on the state of analog signals corresponding to the wireless network 34 to access the Web server. 进一步而言,Web服务器34位于内网,其中缓存有位于外网的源服务器35的内容。 Further, Web servers located in the network 34, which buffers the content source server located outside the network 35. 在本实施例中,中转机32是基于Windows操作系统平台的,以匹配移动终端31并进行跨平台转换,将请求转换为适用于Linux操作系统平台的代理机33。 In the present embodiment, the transfer is based on the Windows 32 operating system platform, the mobile terminal 31 and to match the cross-platform conversion, convert the request for Linux operating system platform, the agent 33.

[0065] 关于该无线信号自动化仿真系统的更多信息,请参见前述实施例中关于无线信号自动化仿真方法的相关描述。 [0065] For more information on the radio signal automated simulation system, see the description of the foregoing embodiment a wireless signal related automated simulation method embodiment.

[0066] 本发明虽然以较佳实施例公开如上,但其并不是用来限定本发明,任何本领域技术人员在不脱离本发明的精神和范围内,都可以做出可能的变动和修改,因此本发明的保护范围应当以本发明权利要求所界定的范围为准。 [0066] Although the preferred embodiments of the present invention disclosed in the above embodiments, but not intended to limit the present invention, anyone skilled in the art without departing from the spirit and scope of the invention, can be made possible variations and modifications, Therefore, the scope of the invention as claimed in the present invention should be defined by the scope of the subject claims.

Claims (8)

  1. 1.一种无线信号自动化仿真方法,其特征在于,包括: 移动终端组织请求,该请求包含网络状态参数、网络状态切换信号以及目标路径,其中每一种无线网络信号对应于一组网络状态参数,所述网络状态切换信号用于指示需要模拟的多种无线网络信号; 代理机接收该请求,根据该请求内的网络状态参数设置该代理机与Web服务器之间的无线网络状态; 所述代理机根据所述无线网络状态模拟相应的无线网络信号以访问所述Web服务器,所述代理机还根据所述请求内的网络状态切换信号的不同分别模拟多种不同的无线网络信号。 An automated simulation method for a wireless signal, characterized by comprising: a mobile terminal organization request that contains the parameters of the network status, network status and the target path switching signal, wherein each signal corresponds to a wireless network a set of network status parameters various wireless network signal, the network state switching signal for instructing simulation needs; the agent receives the request, parameter setting wireless network status between the agent and the Web server according to the network state in the request; the agent machine simulation corresponding wireless network signal according to the state of the wireless network to access the Web server, the proxy machine further plurality of analog signals respectively different wireless networks of different signal switching network according to the state of the request.
  2. 2.根据权利要求1所述的方法,其特征在于,所述Web服务器位于内网,其中缓存有位于外网的源服务器的内容。 2. The method according to claim 1, wherein said Web server is located within the network, wherein the content in the source cache server of the external network.
  3. 3.根据权利要求2所述的方法,其特征在于,在所述移动终端组织所述请求之前还包括:所述移动终端经由所述Web服务器访问该源服务器,将所述源服务器中的内容缓存在所述Web服务器内。 3. The method according to claim 2, wherein said mobile terminal prior to said request further tissue comprising: a source mobile terminal to access the server via the Web server, the contents of the source server cache within the Web server.
  4. 4.根据权利要求1所述的方法,其特征在于,所述代理机经由中转机接收该请求,其中,所述代理机基于Linux操作系统,所述中转机基于Windows操作系统,所述中转机对该请求进行跨平台转换后传输至所述代理机。 4. The method according to claim 1, wherein the proxy receives this request via the transit, wherein the agent based on the Linux operating system, the Windows-based operating system in turn, the transfer of after the cross-platform conversion request is transmitted to the agent unit.
  5. 5.一种无线信号自动化仿真系统,其特征在于,包括: Web服务器; 移动终端,组织请求,该请求包含网络状态参数、网络状态切换信号以及目标路径,其中每一种无线网络信号对应于一组网络状态参数,所述网络状态切换信号用于指示需要模拟的多种无线网络信号; 代理机,接收该请求,根据该请求内的网络状态参数设置该代理机与所述Web服务器之间的无线网络状态,并根据所述无线网络状态模拟相应的无线网络信号以访问所述Web服务器,所述代理机还根据所述请求内的网络状态切换信号的不同分别模拟多种不同的无线网络信号。 A radio signal simulation automation system, characterized by comprising: Web Server; mobile terminal, tissue request that contains the parameters of the network status, network status and the target path switching signal, wherein each signal corresponds to a wireless network group network status parameters of the network state switching signal for instructing multiple wireless signals need to simulate; the agent receiving the request, the parameter is provided between the agent and the Web server according to the network state in the request wireless network status, and according to the different wireless network status simulate analog signal corresponding wireless network to access the Web server, the agent said further switching signal according to a network state in the plurality of different wireless networks request signal .
  6. 6.根据权利要求5所述的系统,其特征在于,所述Web服务器位于内网,其中缓存有位于外网的源服务器的内容。 6. The system as claimed in claim 5, wherein the Web server is located within the network, wherein the content in the source cache server of the external network.
  7. 7.根据权利要求6所述的系统,其特征在于,采用如下方式构建所述Web服务器:所述移动终端在发出该请求之前,经由所述Web服务器访问该源服务器,将所述源服务器中的内容缓存在所述Web服务器内。 Said mobile terminal prior to issuing the request, access to the source server via the Web server, the source server: 7. The system according to claim 6, wherein the following way to build Web server content caching in the Web server.
  8. 8.根据权利要求5所述的系统,其特征在于,还包括: 中转机,所述中转机基于Windows操作系统,所述代理机基于Linux操作系统,所述中转机对该请求进行跨平台转换后传输至所述代理机。 8. The system according to claim 5, characterized in that, further comprising: the transfer, the transfer based on the Windows operating system, the Linux operating system based on the agent, the request transfer in the cross-platform conversion after the transfer to the agent.
CN 201310195767 2013-05-23 2013-05-23 Wireless signal simulation method and system automation CN103248709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310195767 CN103248709B (en) 2013-05-23 2013-05-23 Wireless signal simulation method and system automation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310195767 CN103248709B (en) 2013-05-23 2013-05-23 Wireless signal simulation method and system automation

Publications (2)

Publication Number Publication Date
CN103248709A true CN103248709A (en) 2013-08-14
CN103248709B true CN103248709B (en) 2016-03-16

Family

ID=48927930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310195767 CN103248709B (en) 2013-05-23 2013-05-23 Wireless signal simulation method and system automation

Country Status (1)

Country Link
CN (1) CN103248709B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092579B (en) * 2014-02-12 2016-06-08 腾讯科技(深圳)有限公司 Network simulation method and apparatus of the type
CN105808427A (en) * 2016-03-02 2016-07-27 厦门美图移动科技有限公司 Test method, device and system of mobile terminal software

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014164A (en) * 2010-12-09 2011-04-13 向心力信息技术股份有限公司 Method of mobile access platform
CN102624761A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Apparatus for acquiring image and text information, system and method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800910B (en) * 2010-01-25 2014-04-09 中兴通讯股份有限公司 Simulation system, PC side simulator and mobile phone side agent client
WO2012092263A1 (en) * 2010-12-28 2012-07-05 Citrix Systems, Inc. Systems and methods for policy based routing for multiple next hops
CN202218407U (en) * 2011-02-24 2012-05-09 工业和信息化部电信传输研究所 Terminal browser service testing system
CN102497478A (en) * 2011-12-13 2012-06-13 深圳市路友网络科技有限公司 Method for cellphone users to access internet quickly
CN102427589B (en) * 2012-01-01 2017-10-17 冼伟江 A method for binding a large number of wireless network transmission systems and traffic data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014164A (en) * 2010-12-09 2011-04-13 向心力信息技术股份有限公司 Method of mobile access platform
CN102624761A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Apparatus for acquiring image and text information, system and method thereof

Also Published As

Publication number Publication date Type
CN103248709A (en) 2013-08-14 application

Similar Documents

Publication Publication Date Title
US6601098B1 (en) Technique for measuring round-trip latency to computing devices requiring no client-side proxy presence
US20090209250A1 (en) Providing network originated push messages for remotely testing a mobile device
Huang et al. The ENTRAPID protocol development environment
US20130346591A1 (en) Clientless Cloud Computing
US20090307531A1 (en) System and method for testing an application installed on a wireless communication device
US20050010661A1 (en) Systems and methods for testing network services
US7917597B1 (en) RDMA network configuration using performance analysis
US20160036857A1 (en) Cloud-based user-level policy, reporting, and authentication over dns
US7555306B2 (en) Method and system for mobile device performance monitoring
US20050137838A1 (en) Dial-up resource simulator
CN102802139A (en) Gateway data adapting system and method of Internet of Things
US20120185582A1 (en) System and Method For Collecting and Evaluating statistics To Establish Network Connections
Staub et al. VirtualMesh: an emulation framework for wireless mesh and ad hoc networks in OMNeT++
US9444718B2 (en) Distributed platform test network
US20130086247A1 (en) Web page script management
US20080039070A1 (en) Remote mobile testing probe
CN103152458A (en) Test mobile phone, remote mobile phone test system, method and device of remote mobile phone test
US20130198266A1 (en) Facilitating communication between web-enabled devices
CN101702173A (en) Method and device for increasing access speed of mobile portal dynamic page
US20090161559A1 (en) Error identification in a computer-based network
CN101826979A (en) Intelligent home appliance system
CN101801062A (en) Mobile terminal and network access method thereof
WO2012132808A1 (en) Virtual machine administration system, and virtual machine administration method
US20140304207A1 (en) Cognitive Data Delivery Optimizing System
US20130086264A1 (en) Optimized Prefetching of Compound Data

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model