bandwidth and traffic simulator for web apps?

后端 未结 13 1292
后悔当初
后悔当初 2021-02-04 08:57

Can you suggest how to create a test environment to simulate various types of bandwidths and traffic in a web app?

Or maybe an open source program which does this against

相关标签:
13条回答
  • 2021-02-04 09:11

    i found this little java program that works great : sloppy

    yet not a proffesional solution but it works for simple tests, i guess it uses java streams and buffers to slow down the connection .

    0 讨论(0)
  • 2021-02-04 09:12

    We use Loadrunner to do bandwidth and traffic simulation in our App. Loadrunner is can start agents on various machines and you can simulate one machine as running on dialup modem v/s another on DSL v/s another on Cable internet. We also use Loadrunner to simulate various kinds of traffic conditions from 10 user run to 500 user run. We can also insert think times in the script and simulate a real user executing the http request. The best part is that it comes with a recording studio where it will plug in with Internet explorer and you can record the whole scenario/Usecase that can be as simple as hitting one page to a full blown 50-60 page script or more.

    0 讨论(0)
  • 2021-02-04 09:14

    There are two approaches to shape network traffic to simulate a network link:

    1. Run some software on the client or server that sits somewhere in the networking stack and shapes the traffic between the app and the network interface
    2. Run the traffic shaping software on a dedicated machine with 2 network interfaces through which your traffic is routed

    (2) is a better solution if you don't want to install software on the client or server (and possibly impact performance), but requires more hardware fiddling.

    Some other features you might want to think about are what shaping parameters can be simulated. Most do delay and packet loss, some do jitter and bandwidth limiting as well. Some solutions can selectively filter traffic (for instance by port number, TCP or UDP etc).

    Here is a list of some of the systems I've found:

    Open Source or Freeware

    DummyNet is an open source BSD Unix-based for dedicated devices. It is not clear if the software is being actively maintained

    NistNet is an open source Linux-based system for dedicated devices. The software has not been actively maintained for several years.

    Commercial

    Apposite Technoligies sell dedicated hardware solutions for simulating WAN links, with a Web based GUI for configuring the settings and collecting traffic measurements

    East Coast DataCom sell hardware dedicated simulators for simulating routers and modems

    Itrinegy offer both dedicated device solutions, and solutions for running on clients or servers.

    Network FX offer several dedicated device products for simulating network impairments between the client & server

    NetLimiter is a client side system that allows throttling of individual applications, and includes a firewall.

    Shunra Software offer a range of products, from high end enterprise WAN simulation and testing, to a simple client-resident emulator.

    0 讨论(0)
  • 2021-02-04 09:15

    Have you looked at Tsung? It's a great utility for seeing if your website will scale in event of attack, I mean massive popularity. We use it for our web frontend, and our internal systems too.

    0 讨论(0)
  • 2021-02-04 09:17

    As other people have mentioned, Apache's ab (comes with Apache, so you probably have it already) is good.

    Other good options are:

    • HP's LoadRunner Apache
    • Jakarta's JMeter
    • Tsung (if you want to get your erlang on)

    I personally like ab and JMeter the best.

    0 讨论(0)
  • 2021-02-04 09:18

    If you're interested in performing your tests out of your browser, there is also a really great Firefox plug-in.

    0 讨论(0)
提交回复
热议问题