使用Fiddler模​​拟网络速度 [英] Simulate network speeds using Fiddler

查看:58
本文介绍了使用Fiddler模​​拟网络速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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 ?

以下是Fiddler的默认代码,用于模拟56kb的调制解调器速度.

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"; 
}

我想要256kbps,512kbps,1Mbps等的延迟值...

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

推荐答案

这只是一个数学问题.

假设内容是立即可用的(例如,您正在从自动响应器中播放内容),则唯一的延迟由 request-trickle-delay response-trickle-delay 标志.

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.

每秒有1000毫秒.

因此,如果您想将连接门控到每秒 1 兆字节,则将使用 1 毫秒的延迟.如果您希望将其控制为每秒 512 千字节,则请使用 2 毫秒的延迟.对于每秒 256 千字节,请使用 4 毫秒的延迟.

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.

请记住,带宽通常以每秒而不是每秒字节来度量.因此,如果您的目标是以每秒位数来衡量事物,则将每个值乘以 8 .

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.

这篇关于使用Fiddler模​​拟网络速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆