This is a migrated thread and some comments may be shown as answers.

how should I do to simulate the network with 300ms latency and 3mbps bandwidth

1 Answer 167 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
bean
Top achievements
Rank 1
bean asked on 04 Sep 2014, 05:22 AM
Hi,

When I enable "SimulateModem" , set oSession["request-trickle-delay"]="64", and oSession["response-trickle-delay"]="64", I could get the latency about 120ms, but the download speed will be no more than 15KB/s. 

I want to simulate the network with 300ms latency and 3mbps bandwidth.  How should I do? 

Thanks

1 Answer, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 04 Sep 2014, 01:48 PM
The request-trickle-delay/response-trickle-delay values control the delay between every KB of the transmission; using it gates the effective bandwidth.

To insert a fixed latency before beginning a send or receive, insert a System.Threading.Thread.Sleep call inside OnBeforeRequest or OnBeforeResponse of the desired latency in milliseconds.

Regards,
Eric Lawrence
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Fiddler Classic
Asked by
bean
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Share this question
or