Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
313 views
in Technique[技术] by (71.8m points)

Simulate network speeds using Fiddler

I am using Fiddler and want to simulate different network speeds

Is there any published data that I can use to simulate different speeds using the delay value ?

Following is default code of Fiddler to simulate 56kb modem speed.

if (m_SimulateModem) {
    // Delay sends by 300ms per KB uploaded.
    oSession["request-trickle-delay"] = "300"; 
    // Delay receives by 150ms per KB downloaded.
    oSession["response-trickle-delay"] = "150"; 
}

I want the delay values for 256kbps, 512kbps, 1Mbps etc...

question from:https://stackoverflow.com/questions/16276669/simulate-network-speeds-using-fiddler

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This is simply a math problem.

Assuming that content is available instantly (e.g. you're playing it back from the AutoResponder) then the only delay is controlled by request-trickle-delay and response-trickle-delay flags.

There are 1000 milliseconds per second.

So, if you want to gate the connection to 1 megabyte per second, you would use a delay of 1 ms. If you want to gate it to 512 kilobyte per second, then use a delay of 2 ms. For 256 kilobytes per second, use a delay of 4 ms.

Keep in mind that bandwidth is often measured in bits per second rather than bytes per second. So if your goal is to measure things in bits-per-second, then multiply each value by 8.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...