Customizing network scenes allows you to simulate different network conditions, such as latency, delay jitter, packet loss, bandwidth limitations, and more. By testing your application under these varied conditions, you can identify potential performance issues and optimize your application accordingly.
PerfDog offers two methods to set up customized network scenarios:
1. Scene Template: This method automatically generates corresponding parameters based on the selected region and scene.
2. Custom Template: This method requires manual input of each network parameter.
The scene template consists of two sections
1. Region and Network Type: After selecting the desired region and network type, PerfDog provides information on delay and packet loss rate. This data simulates network conditions between different regions.
2. Scene: Each scene corresponds to different weak network parameters, simulating specific network environments.
The custom template allows you to manually control various network parameters:
1. Network Bandwidth: This parameter controls the upstream and downstream network speed and the length of the statistical IP packet. The unit used is kilobits per second, equivalent to 125 bytes per second.
2. Network Delay: This parameter adds a fixed delay to upstream and downstream IP packets, measured in milliseconds.
3. Delay Jitter: This parameter allows you to set two variables for uplink and downlink, namely delay and probability. The probability parameter determines the likelihood of the delay taking effect, while the delay parameter increases the maximum value of delay.
4. Random Packet Loss: This parameter sets the probability of random discarding of upstream and downstream IP packets.
5. Weak Network Type: This parameter includes "complete packet loss" and "Burst," two different weak network models. You can specify the release duration and weak network duration, which determine when the weak network model takes effect.
6. Protocol Control: This parameter ensures that only the IP packets of the selected protocol will be affected by the weak network parameters, while the rest will be forwarded directly.
7. Weak Network IP: This parameter allows you to specify that only IP packets sent to or from the filled-in IP will be affected by the weak network parameters, while packets from other sources will be forwarded directly.