Networking

Bandwidth Throttling Explained: How to Detect It and Control It on Your Server

By NileVPS Team · Published · 5 min read

اقرأ المقال بالعربي

Bandwidth throttling is the deliberate slowing of network traffic. Your connection is technically working, but something along the path is limiting how fast data can move, either for all traffic or for certain types of it. Throttling is not always bad: server administrators use the same techniques to protect their own services from being overwhelmed. This article explains how throttling works, how to tell whether you are being throttled or just seeing congestion, and how to apply sensible limits on your own server.

What throttling means

Throttling is intentional. Congestion is not. Both make things slower, but they come from different places:

  • Congestion happens when more traffic tries to use a link than it can carry. Everyone on that link slows down, usually at busy hours, and latency and packet loss rise.
  • Throttling is a policy. A device caps speed at a set rate, for a specific user, protocol, destination or after a usage threshold. The limit is often suspiciously flat and consistent.

There are two main technical ways to enforce a limit:

MethodHow it worksTypical effect
PolicingPackets over the limit are dropped immediatelySawtooth speed, retransmissions, visible loss
ShapingExcess packets are queued and sent laterSmooth, flat speed, extra latency under load

Who throttles and why

  • Internet providers may slow specific traffic types (for example video streaming or peer-to-peer), apply fair-use limits after a monthly quota, or reduce speed during congestion management.
  • Mobile networks often cap speed after a data allowance, or limit tethering and video resolution.
  • Hosting providers may define traffic allowances per plan. What happens after the allowance is used depends on the provider: some bill the extra traffic, some reduce the port speed. Always read the plan terms so there are no surprises. You can see the traffic included with each plan on the pricing page.
  • Applications and APIs apply rate limits per user or per key to keep the service fair and stable.

How to tell whether you are being throttled

1. Compare different types of traffic

If a generic speed test is fast but a specific service is consistently slow, that service or its traffic type may be targeted. Try the same transfer over a VPN or an encrypted tunnel: if speed jumps when the traffic is hidden, protocol-based throttling is likely.

2. Look at the shape of the speed graph

A speed that sits at an exact flat number, for example precisely 10 Mbps regardless of time of day, points to a configured limit. Congestion tends to fluctuate and is worse at peak hours.

3. Measure with iperf3 against your own server

iperf3 -c your-server-ip -t 30
iperf3 -c your-server-ip -t 30 -R
iperf3 -c your-server-ip -t 30 -p 443   # if the server listens on 443 with iperf3 -s -p 443

Running the test on different ports can reveal port-based limits. If one stream is slow but -P 8 (eight streams) is fast, the limit may be per connection, which is common in shaping and also a natural effect of latency, so compare carefully. Our guide to network throughput explains the per-connection limit caused by latency.

4. Check latency under load

Run ping to your server while a large download is running. A big jump in latency during the transfer suggests a queue filling up, typical of shaping or bufferbloat on your own router.

5. Test from another network

If speed is normal from a different ISP or from the server to another data center, the limit is on your access network, not the server.

Throttling as a server tool

On your own server, controlled limits are useful. They protect CPU, memory and bandwidth from a single client, a misbehaving bot or a scraper.

Limit download speed in Nginx

location /downloads/ {
    limit_rate_after 10m;   # first 10 MB at full speed
    limit_rate 1m;          # then 1 MB/s per connection
}

Combine it with a connection limit so one client cannot open dozens of connections to bypass the per-connection rate:

# in the http block
limit_conn_zone $binary_remote_addr zone=perip:10m;

# in a server or location block
limit_conn perip 4;

Limit request rate in Nginx

# in the http block
limit_req_zone $binary_remote_addr zone=api:10m rate=10r/s;

# in the location block
location /api/ {
    limit_req zone=api burst=20 nodelay;
}

Clients that exceed the rate receive status 503 by default; set limit_req_status 429; to return the more accurate "Too Many Requests".

Shape all traffic on an interface with tc

Linux traffic control can cap the outgoing rate of a whole interface. A simple token bucket filter:

sudo tc qdisc add dev eth0 root tbf rate 100mbit burst 256kbit latency 50ms
tc -s qdisc show dev eth0
sudo tc qdisc del dev eth0 root     # remove the limit

Be careful when testing tc over SSH: a wrong value can make your own session very slow. Keep a browser console or out-of-band access available in case you need to undo a change.

Watch your own usage

sudo apt install vnstat
vnstat -d      # daily totals
vnstat -m      # monthly totals

Knowing your monthly traffic helps you pick the right plan and avoid hitting any allowance unexpectedly.

Practical checklist

  • Distinguish throttling (flat, policy based) from congestion (variable, peak hours).
  • Test with iperf3, different ports and a VPN.
  • Measure latency during a large transfer.
  • Read your provider's traffic and fair-use terms.
  • On your server, use limit_rate, limit_conn and limit_req to protect resources.
  • Track usage with vnstat.

FAQ

It depends on the country and on the contract. Many providers describe traffic management in their terms of service. If you suspect undisclosed throttling, check your provider's published policy and the rules of your local telecom regulator.

Can a VPN bypass throttling?

A VPN can avoid throttling that targets specific protocols or destinations, because the traffic becomes encrypted and harder to classify. It does not help against limits based on total usage or a plan's speed cap, and the extra encryption adds some overhead.

Should I rate limit my own website?

For most public sites, yes, in a measured way. Request limits on login pages and APIs reduce brute-force attempts and abusive bots, and download limits stop one client from saturating the server. Start generous, watch the logs, and tighten only where needed.

Related guides