CN103248709B - Wireless signal automation simulation method and system - Google Patents
Wireless signal automation simulation method and system Download PDFInfo
- Publication number
- CN103248709B CN103248709B CN201310195767.XA CN201310195767A CN103248709B CN 103248709 B CN103248709 B CN 103248709B CN 201310195767 A CN201310195767 A CN 201310195767A CN 103248709 B CN103248709 B CN 103248709B
- Authority
- CN
- China
- Prior art keywords
- request
- web server
- signal
- network state
- proxy machine
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a kind of wireless signal automation simulation method and system, the method comprises: mobile terminal organizing-request, and this request comprises network state parameters and destination path; Proxy machine receives this request, arranges the wireless communication status between this proxy machine and Web server according to the network state parameters in this request; Described proxy machine simulates corresponding wireless network signal to access described Web server according to described wireless communication status.The present invention can realize the automatization simulation emulation of wireless network signal.
Description
Technical field
The present invention relates to flow control measuring technology, particularly relate to a kind of wireless signal automation simulation method and system.
Background technology
Flow control great majority are used for personal desktop machine (PC), for simulating the network congestion on PC, thus test the excellent of some congestion control algorithm.
Fig. 1 shows a kind of flow control analogue system in prior art, wherein, controls rate of discharge and inlet flow rate (comprising network delay, packet loss etc.) at proxy machine 12 place, thus simulation client computer 11 accesses the various network states of source station 13.Wherein, client computer 11 and proxy machine 12 are usually all based on (SuSE) Linux OS.
Adopt the advantage of scheme shown in Fig. 1 as follows: cost is low, usually only need a stylobate in the PC of (SuSE) Linux OS; Dispose simple, without the need to recompilating kernel, the flow control tool tc that can directly use (SuSE) Linux OS to carry is to write corresponding flow control script.
But, along with the application of mobile terminal gets more and more, therefore need simulation test cell-phone customer terminal to the access request of server end.Then in prior art, scheme as shown in Figure 1 has following shortcoming:
1, cannot analog wireless networks signal, the network state of what prior art was simulated usually is all PC, fails to realize the simulation of wireless network signal, as wifi signal, 3G signal etc.;
2, unrealized various network automatically switches: technically the switching of wireless signal all needs manually to change mobile phone or sim card at present, cannot accomplish that automation switches;
3, unrealized cross-platform network state switches: in prior art, handover network state is generally carry out under linux operating system, and mobile terminal app automatic test generally carries out under windows operating system, exist cross-platform under network state switching problem.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of wireless signal automation simulation method and system, can realize the automatization simulation emulation of wireless network signal.
For solving the problems of the technologies described above, the invention provides a kind of wireless signal automation simulation method, comprising:
Mobile terminal organizing-request, this request comprises network state parameters and destination path;
Proxy machine receives this request, arranges the wireless communication status between this proxy machine and Web server according to the network state parameters in this request;
Described proxy machine simulates corresponding wireless network signal to access described Web server according to described wireless communication status.
According to one embodiment of present invention, described Web server is positioned at Intranet, is wherein cached with the content of the source server being positioned at outer net.
According to one embodiment of present invention, before described mobile terminal organizes described request, the method also comprises: described mobile terminal accesses this source server via described Web server, by the content caching in described source server in described Web server.
According to one embodiment of present invention, described proxy machine receives this request via transfer machine, and wherein, described proxy machine is based on (SuSE) Linux OS, described transfer machine is based on Windows operating system, and described transfer machine transfers to described proxy machine after carrying out cross-platform conversion to this request.
According to one embodiment of present invention, described request also comprises network state switching signal, switches the multiple different wireless network signal of simulation to indicate described proxy machine.
Present invention also offers a kind of wireless signal automation simulation system, comprising:
Web server;
Mobile terminal, organizing-request, this request comprises network state parameters and destination path;
Proxy machine, receives this request, arranges the wireless communication status between this proxy machine and described Web server according to the network state parameters in this request, and simulates corresponding wireless network signal to access described Web server according to described wireless communication status.
According to one embodiment of present invention, described Web server is positioned at Intranet, is wherein cached with the content of the source server being positioned at outer net.
According to one embodiment of present invention, build described Web server in the following way: described mobile terminal is before sending this request, this source server is accessed, by the content caching in described source server in described Web server via described Web server.
According to one embodiment of present invention, this system also comprises: transfer machine, and described transfer machine is based on Windows operating system, and described proxy machine is based on (SuSE) Linux OS, and described transfer machine transfers to described proxy machine after carrying out cross-platform conversion to this request.
According to one embodiment of present invention, described request also comprises network state switching signal, switches the multiple different wireless network signal of simulation to indicate described proxy machine.
Compared with prior art, the present invention has the following advantages:
In the wireless signal automation simulation method and system of the embodiment of the present invention, the request of proxy machine mobile terminal receive, correspondingly arrange with Web server between wireless communication status and and then analog wireless networks signal visit this Web server, thus achieve the automatization simulation emulation of wireless network signal, without the need to changing mobile phone or sim card etc.
Further, the Web server of the embodiment of the present invention can be the server of Intranet, mobile terminal is first via the source server of this Web server access outer net, thus the content caching of source server is being positioned at the Web server of Intranet, making follow-up test simulation process without the need to accessing outer net, being conducive to reducing the bandwidth taken.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of a kind of flow control test macro in prior art;
Fig. 2 is the schematic flow sheet of the wireless signal automation simulation method of the embodiment of the present invention;
Fig. 3 is the structured flowchart of the wireless signal automation simulation system of the embodiment of the present invention.
Embodiment
Below in conjunction with specific embodiments and the drawings, the invention will be further described, but should not limit the scope of the invention with this.
The wireless signal automation simulation method of the present embodiment comprises the steps:
Mobile terminal organizing-request, this request comprises network state parameters and destination path;
Proxy machine receives this request, arranges the wireless communication status between this proxy machine and Web server according to the network state parameters in this request;
Described proxy machine simulates corresponding wireless network signal to access described Web server according to described wireless communication status.
Furthermore, Web server is preferably positioned at the server of Intranet, before test, can first adopt mobile terminal accessing to be positioned at the source server of outer net, thus by the content caching of source server in the Web server of Intranet, realize the structure of intranet Web server.Owing to connecting the Bandwidth-Constrained of outer net in a lot of test environment, Intranet is restricted usually to the flow of outer net, and in the environment that bandwidth is less, carry out flow control test, control effects is not obvious; Use the mode of buffer memory (cache) to construct Web service in Intranet, the data of the former server of outer net are used for the Web server tested by maiden visit buffer memory to Intranet, be conducive to improving test effect, reduce taking bandwidth.
Mobile terminal can adopt organizing-request in various manners, such as, the mode of third party application (app) can be adopted to realize.In a nonrestrictive example, the automatic function selecting of wireless network signal can be increased by the app on mobile terminal, this wireless network signal can be the various wireless network signal such as wifi, 3G, edge, gprs, and each wireless network signal can correspond to a group network state parameter.Network state parameters refers to the parameter affecting network quality, such as, can comprise the network bandwidth, network delay, packet loss etc.
In addition, the request of mobile terminal tissue can also comprise destination path and network state switching signal.Wherein, destination path can be the URL of the object content that will access.Network state switching signal is used to indicate the multiple different wireless network signal needing simulation, such as, if network state parameters is 1, then represent and need handover network state, if be 0, do not need to switch simulation again, network state switching signal can be initialized as 1 time initial, after various wireless network signal is all switched traversal, this value can be revised as 0.
Because the app of large multi-mobile-terminal is based on Windows operating system platform, and proxy machine is normally based on (SuSE) Linux OS, therefore as a preferred embodiment, the transfer machine based on Windows operating system can be adopted to carry out cross-platform conversion to the request that app sends, transmit it to proxy machine afterwards again and process.
Proxy machine upon receipt of the request, trigger the setting operation of wireless network signal, arrange the wireless communication status between proxy machine and Web server according to the network state parameters comprised in request, then corresponding according to wireless communication status simulation wireless network signal visits Web server.
Furthermore, the simulation of wireless network signal can comprise following process: first empty all traffic control rule; Secondly, create the traffic queue rule having class, parent bandwidth value and subclass bandwidth value are set in this traffic queue rule, wherein subclass bandwidth value be previous mobile terminal transmission request in network state parameters record, parent bandwidth value is greater than subclass bandwidth value; Again, in subclass, increase time delay and packet loss rule, thus simulate the state of the time delay of various wireless network signal, packet loss and bandwidth; The wireless communication status that last basis obtains simulates corresponding wireless network signal.
Network state switching signal can also be set in addition, according to the difference of network state switching signal, switch the different wireless network signal of simulation respectively, such as network state switching signal is 1 and represents wifi signal, be 2 and represent 3G signal, be 3 and represent EDGE/GPRS signal, default situations lower network state switching signal switches one by one from 1 to 3, if do not need to switch again, then network state switching signal can be set to 0, now network state switching signal is also referred to as network state finishing switching signal.
In addition, after wireless communication status arranges end each time, proxy machine can also judge network state switching signal, if non-zero, then select corresponding wireless network signal according to the concrete numerical value of network state switching signal, and this operation is passed to transfer machine via proxy machine, so that wireless network signal is selected in the automation of next round.
Fig. 2 shows the example of wireless signal automation simulation, is described in detail below with reference to Fig. 2.
First the Web server being positioned at Intranet is built, detailed process is as follows: 1) arrange agency, mobile app arranges agency, ip and port numbers point to Web server, in order to solve the Chinese display problem on mobile terminal, No. id that mobile app under mobile app drop-down menu is corresponding can also be obtained on space structure levels analyzer, and by configuration file by its mapping relations writing in files; 2) mobile app auto-accessing Web server, respond packet through Web server, and is cached in Web server by the Web request that mobile app sends, and Web request afterwards will directly obtain corresponding from this Web server; 3) Web buffer memory judges, on Web server, can accessing step 2 again) one of them URL of accessing, check whether the mark of buffer memory, if had, show buffer memory, can subsequent operation be entered.
Afterwards at S21 place, mobile phone signal (being also wireless network signal) is selected in mobile app automation.Furthermore, by selecting mobile phone signal, mobile terminal can organize corresponding request, the destination path (such as URL) that this request comprises network state parameters and will access.
At S22 place, after transfer machine receives the request of mobile terminal, record network state parameters wherein.
At S23 place, send the request of amendment wireless communication status to proxy machine.
At S24 place, proxy machine accepts amendment request, the wireless communication status come and gone between amendment proxy machine and intranet Web server.
At S25 place, proxy machine exports the wireless network signal of simulation.
At S26 place, judge whether test terminates, and if it is advances to S27 and terminates, otherwise return S21 continuation.
About the simulation of wireless network signal, it mainly simulates various wireless communication status by the wireless network parameter arranged between proxy machine and Web server, thus simulating mobile terminal is to the network state of base station, make proxy machine be called the simulant-client of mobile terminal accessing Web server, and carry out simulation and the response thereof of various URL request.
The simulation of wireless network signal mainly comprises following process:
1) empty and all have Class Queue rule: before carrying out flow control, guarantee that this was not set up before having rule-like, or the rule before cancelling is arranged, to guarantee the reliable of the clean and data of environment;
2) create and have the traffic queue of class rule: arrange parent bandwidth value and subclass maximum bandwidth value in this queue rule, subclass bandwidth value derives from the network state parameters in request that mobile terminal sends, and wherein parent bandwidth value is greater than subclass bandwidth value;
3) be that subclass increases time delay and packet loss rule: in subclass, increase time delay and packet loss rule, thus simulate the time delay of various wireless network, packet loss and bandwidth, this value derives from the network state parameters in request that mobile terminal sends;
4) network state switching signal is set: last according to step 2) and the wireless communication status of step 3), operation corresponding program analog wireless networks signal, and network state switching signal is set, such as, if desired terminate, be then set to 0.
After each wireless communication status arranges end, proxy machine can judge whether network state switching signal is 0, if non-zero, then again carry out the selection operation of wireless network signal, and this operation is passed to transfer machine by proxy machine, so that wireless signal is selected in the automation of next round, after the respective value of each network state is set up and goes over, then without the need to switching, network state has switched again.
It should be noted that, mobile terminal first via Intranet Web server access outer net source server, in order to by the content caching of source server to Web server, in follow-up automatic test course, the Web server of the Intranet of mobile terminal accessing.
To sum up, in the above-described embodiments, construct the basis of Network character during the Web server of Intranet, proxy machine is equivalent to the role playing the part of router afterwards, controls inlet flow rate and rate of discharge, time delay and packet loss etc., thus simulates various wireless network signal; In addition, various network state parameters and request data package can be constructed at Windows operating system end, simulation URL request, proxy machine needs corresponding Web server program (Webserver) is installed, for accepting the network state change demand from Windows operating system end, and triggering processes operation accordingly; Finally, the request of Windows operating system end will meet with a response at the Web server of Intranet (comprising network state change and handover operation), and exports corresponding network signal, until test terminates.
Adopt the scheme of the present embodiment, simulated environment and real wireless network environment very close, error, about 5%, belongs to acceptable error.First, PC network analogue mobile phone can be used to the various network states of base station, the switching of mobile phone and SIM card thereof when greatly reducing mobile app automatic test, improves automaticity and efficiency; Secondly, above largely can cancel mobile app automatic test to mobile phone hardware-dependent, can hardware cost be saved; Finally, the operation of mobile app can be simulated on proxy machine, touch the various exceptions that time delay brings largely during the mobile app automatic test of upper elimination, reduce abnormal data, improve the accuracy of test data.
With reference to figure 3, the present embodiment additionally provides a kind of wireless signal automation simulation system, mainly comprises: mobile terminal 31, transfer machine 32, proxy machine 33, Web server 34 and source server 35.
Wherein, mobile terminal 31 organizing-request, this request comprises network state parameters and destination path; Proxy machine 33 receives this request via transfer machine 32, wireless communication status between this proxy machine 33 and Web server 34 is set according to the network state parameters in this request, and simulates corresponding wireless network signal to access Web server 34 according to this wireless communication status.Furthermore, Web server 34 is positioned at Intranet, is wherein cached with the content of the source server 35 being positioned at outer net.In the present embodiment, transfer machine 32, based on Windows operating system platform, carries out cross-platform conversion with matching shift terminal 31, and request is converted to the proxy machine 33 being applicable to (SuSE) Linux OS platform.
About the more information of this wireless signal automation simulation system, refer to the associated description about wireless signal automation simulation method in previous embodiment.
Although the present invention with preferred embodiment openly as above; but it is not for limiting the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can make possible variation and amendment, the scope that therefore protection scope of the present invention should define with the claims in the present invention is as the criterion.
Claims (8)
1. a wireless signal automation simulation method, is characterized in that, comprising:
Mobile terminal organizing-request, this request comprises network state parameters, network state switching signal and destination path, wherein each wireless network signal corresponds to a group network state parameter, and described network state switching signal is used to indicate the plurality of wireless networks signal needing simulation;
Proxy machine receives this request, arranges the wireless communication status between this proxy machine and Web server according to the network state parameters in this request;
Described proxy machine simulates corresponding wireless network signal to access described Web server according to described wireless communication status, and described proxy machine also simulates multiple different wireless network signal respectively according to the difference of the network state switching signal in described request.
2. method according to claim 1, is characterized in that, described Web server is positioned at Intranet, is wherein cached with the content of the source server being positioned at outer net.
3. method according to claim 2, it is characterized in that, also comprised before described mobile terminal organizes described request: described mobile terminal accesses this source server via described Web server, by the content caching in described source server in described Web server.
4. method according to claim 1, it is characterized in that, described proxy machine receives this request via transfer machine, wherein, described proxy machine is based on (SuSE) Linux OS, described transfer machine is based on Windows operating system, and described transfer machine transfers to described proxy machine after carrying out cross-platform conversion to this request.
5. a wireless signal automation simulation system, is characterized in that, comprising:
Web server;
Mobile terminal, organizing-request, this request comprises network state parameters, network state switching signal and destination path, and wherein each wireless network signal corresponds to a group network state parameter, and described network state switching signal is used to indicate the plurality of wireless networks signal needing simulation;
Proxy machine, receive this request, according to the network state parameters in this request, the wireless communication status between this proxy machine and described Web server is set, and simulate corresponding wireless network signal to access described Web server according to described wireless communication status, described proxy machine also simulates multiple different wireless network signal respectively according to the difference of the network state switching signal in described request.
6. system according to claim 5, is characterized in that, described Web server is positioned at Intranet, is wherein cached with the content of the source server being positioned at outer net.
7. system according to claim 6, it is characterized in that, build described Web server in the following way: described mobile terminal, before sending this request, accesses this source server via described Web server, by the content caching in described source server in described Web server.
8. system according to claim 5, is characterized in that, also comprises:
Transfer machine, described transfer machine is based on Windows operating system, and described proxy machine is based on (SuSE) Linux OS, and described transfer machine transfers to described proxy machine after carrying out cross-platform conversion to this request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310195767.XA CN103248709B (en) | 2013-05-23 | 2013-05-23 | Wireless signal automation simulation method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310195767.XA CN103248709B (en) | 2013-05-23 | 2013-05-23 | Wireless signal automation simulation method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103248709A 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 |
---|---|---|---|
CN201310195767.XA Expired - Fee Related CN103248709B (en) | 2013-05-23 | 2013-05-23 | Wireless signal automation simulation method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103248709B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104092579B (en) * | 2014-02-12 | 2016-06-08 | 腾讯科技(深圳)有限公司 | The analogy method of network type and device |
CN106851671A (en) * | 2015-12-07 | 2017-06-13 | 中国联合网络通信集团有限公司 | Determine the method and device of network condition |
CN105808427A (en) * | 2016-03-02 | 2016-07-27 | 厦门美图移动科技有限公司 | Test method, device and system of mobile terminal software |
CN106792955B (en) * | 2016-12-26 | 2020-01-07 | 北京安云世纪科技有限公司 | Method and device for switching analog network and terminal equipment |
US11089495B2 (en) * | 2019-07-11 | 2021-08-10 | Keysight Technologies, Inc. | Methods, systems, and computer readable media for testing radio access network nodes by emulating band-limited radio frequency (RF) and numerology-capable UEs in a wideband 5G network |
CN112929914A (en) * | 2021-02-03 | 2021-06-08 | 叮当快药科技集团有限公司 | System and method for network link simulation auxiliary test |
Citations (2)
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)
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 |
US9178805B2 (en) * | 2010-12-28 | 2015-11-03 | 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 kind of method and system for binding several wireless network transmissions high traffic data |
-
2013
- 2013-05-23 CN CN201310195767.XA patent/CN103248709B/en not_active Expired - Fee Related
Patent Citations (2)
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 |
---|---|
CN103248709A (en) | 2013-08-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103248709B (en) | Wireless signal automation simulation method and system | |
CN108156267B (en) | Method for improving website access time delay by using cache in fog computing architecture | |
US20140223427A1 (en) | System, Method and Apparatus for Determining Virtual Machine Performance | |
CN105743934B (en) | A kind of optimization method and mobile intelligent terminal of HTTP access availability | |
CN101232410A (en) | System and method for testing WAP gateway performance | |
US9537932B2 (en) | Emulating test distributed application on server | |
CN104038510A (en) | IOS system transparent agent realization method and system | |
CN107070752B (en) | Testing method and testing system for long connection capacity | |
CN109428839B (en) | CDN scheduling method, device and system | |
US9451051B1 (en) | Method and procedure to improve delivery and performance of interactive augmented reality applications over a wireless network | |
CN113641581B (en) | Mixed mode mobile application debugging method and system | |
CN103546345A (en) | Method and device for testing performance of communication equipment | |
CN112291365A (en) | Access balance processing method and device, computer equipment and storage medium | |
CN103634393A (en) | IVR (interactive voice response) and realization method thereof | |
CN100394732C (en) | WAP gateway performance test method | |
CN104702386A (en) | Full-network-based centralized control system and method | |
CN103716221B (en) | On-line migration method of virtual machine in wide area network under future network NDN (Named Data Network) | |
CN108093036A (en) | A kind of method and device for obtaining resource | |
CN102469109B (en) | Display method of browser homepage in mobile terminal and apparatus thereof | |
WO2024159778A1 (en) | Host scheduling method, system and device, and non-volatile readable storage medium | |
GB2469508A (en) | Network modelling method | |
GB2469509A (en) | Network modelling method | |
CN102291206B (en) | Test method, device and system of uploading and downloading speed of 3G interface | |
CN106506268B (en) | Server access method and system | |
CN104683178A (en) | Method and system for testing multiple DUTs (devices under test) with same IP (Internet Protocol) address |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160316 |
|
CF01 | Termination of patent right due to non-payment of annual fee |