4

I'm trying to understand the basic mechanics of how throttling works. Here are two scenarios:

Scenario 1: A hotel offers a fast and slow connection option to its guests. Let's say the slow plan is 500Kbps. But the hotel's ISP connection is 1Gbps. If there is only one guest accessing the network and that guest is using the slow plan his data is presumably reaching the hotel router at a faster rate than the LAN is allowing it to be conveyed to the guest's device. To me this implies the packets are queuing up in a sense or being cached somewhere. Is this accurate? If so where does this queuing occur? Does it happen on the hotel network or is it more likely the ISP would be doing the throttling on the hotel's behalf

Scenario 2: If an ISP decides to throttle its users I would expect a similar queuing to occur at the edge of its network if the sum total of the permitted throughput on the ISP's own network is slower than the rate at which packets arrive from backbone providers or networks it is peered with.

For both scenarios I'm trying to wrap my head around how the queuing or caching (not sure what is the correct term) of packets works. I'm assuming that the packets are forced to sit in memory on networking equipment. But that must carry a cost and overhead that I've never heard mentioned when people talk about bandwidth throttling. And furthermore it looks to me like an external cost that the throttled network imposes on the adjacent unthrottled networks.

I'm not a network engineer so doubtless I am not grasping some concepts about how throttling works. I would be very grateful if someone would enlighten me.

1 Answer 1

5

Mostly, the packets get dropped. Some packets may get buffered in queues, but the queues aren't very big. Policing is probably what the hotel uses, and policing is simply dropping traffic in excess of the allowed bandwidth. With TCP (HTTP runs on TCP), the TCP will react to lost packets and slow down, shrinking the window size.

Even with queuing, you probably run into some variant RED (Random Early Detection), which randomly drops queued packets in order to prevent queues from filling, triggering TCP to slow down. If buffers fill and drop packets based on full buffers, different TCP flows can become synchronized (not good).

The ISP probably just limits the actual link speed (DSL and cable can limit the number of channels available to a customer). This is the easiest thing to do.

2
  • Thank you. I never considered the possibility of dropped packets. Makes sense. I suppose in an ideal state there would be some feedback to the upstream server to slow its rate of transmission.
    – hughesdan
    Apr 22, 2016 at 2:49
  • 2
    @hughesdan There is, indirectly. The dropped packets will be considered lost by TCP on the upstream server, which will accordingly reduce its transmission rate as part of the normal TCP algorithm.You could imagine having the network device that does the dropping send some kind of signal (something similar in principle to an ICMP Path MTU Discovery message) but you would run into all kinds of issues with NAT, security filtering and so on, making this a lot less reliable than just having TCP deduce that there is congestion somewhere and that it should act accordingly. Apr 22, 2016 at 5:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.