Foreword
Mobile end of the test, is the most indispensable network. During the test, we have to consider all of the network, the network stable and smooth, between the weak network environment, network switches, broken network connections, and so again.
So how weak network simulation environment?
1 360WIFI weak analog network
pc emission wifi, the phone connected to this wifi, by [360 WiFi portable] phone network speed control
2 Fiddler analog small network
2.1 Operation
Fiddler can change the configuration, a request to adjust the delay time occurs in response to the server and the client, specifically shown below:
Operation: the menu bar -Rules-> Performace-> Check Simulate Modem Speeds. And then sends a request, you will find speed becomes very slow.
2.2 weak net principle
Fiddler principle of weak analog network:
(1) Click Rules-> Costomize Rules, open the document
(2) Ctrl + F search: m_SimulateModem:
(3) Let's analyze some of these lines of code
if (m_SimulateModem) {
// Delay sends by 300ms per KB uploaded.
oSession["request-trickle-delay"] = "1300";
// Delay receives by 150ms per KB downloaded.
oSession["response-trickle-delay"] = "150";
}
First, determine whether m_SimulateModem is true, that is, whether a weak network mode.
If the network mode is weak, the following code is executed:
// 发送1KB需要300ms ,
oSession["request-trickle-delay"] = "1300";
// 接受1KB需要150ms ,
oSession["response-trickle-delay"] = "150";
We can modify these two values, the network speed to simulate different network segments. After each time you edit and save the configuration file, Simulate Modem Speeds option will be canceled, please re-check.