A guide to network throttling methods

DebugBear

Matt Zeunert

DebugBear

Why?

Match connection speed of real users

Consistent connection speed

Throttling methods

Browser-level

Packet-level

Simulated

HTTP request latency

High-latency connection

Browser-level

150ms round-trip time

1.6Mbps bandwidth

Minimum HTTP duration: 562ms

Response held back for 562ms - 200ms - 20ms = 342ms

HTTP roundtrip with 563ms throttling

Packet-level

 

comcast --device=eth0
        --latency=150
        --target-bw=1638

tc (traffic control) is the user-space utility program used to configure the Linux kernel packet scheduler.

sudo tc qdisc add dev eth0 root netem delay 75ms rate 1638kbit

Usability

Applies to all applications

 

Requires admin access


Commands are system-dependent

Simulated Throttling

Advantages

Fast

Low variability

Server response time test

Server response time test

7 Ajax requests

      4 respond after 0.2s

      3 respond after 10s

 

Median server response for the origin: 0.2s

Network throttling method

By Matt Zeunert

Network throttling method

  • 639