# Reducing lag caused by a video streaming device

**URL:** <https://boards.straightdope.com/t/reducing-lag-caused-by-a-video-streaming-device/558878>\
**Category:** Factual Questions\
**Created:** [October 30, 2010, 4:21pm UTC](https://boards.straightdope.com/t/reducing-lag-caused-by-a-video-streaming-device/558878 "2010-10-30T16:21:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frylock](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Frylock](https://boards.straightdope.com/u/Frylock)\
**Post date:** [October 30, 2010, 4:21pm UTC](https://boards.straightdope.com/t/reducing-lag-caused-by-a-video-streaming-device/558878/1 "2010-10-30T16:21:13Z")

</div>

I’ve got a Roku. It allows me to set the quality of the stream. I’ve set it to the lowest possible setting–0.3 mbps. My internet connection–confirmed at [speedtest.net](http://speedtest.net), is 3.0 mbps.

Yet I experience huge lag–pings of around 1000ms.

There is no difference, as far as I can tell, whether I put the Roku on 0.3mbps or 3.0mbps. The lag is the same. (The setting is definitely changing something–the stream quality changes visibly).

Why isn’t changing the stream quality changing my lag? And is there possibly some way to reduce my lag? I don’t think getting a connection with more bandwidth will help, since I’ve already seen that changing the bandwidth on the Roku itself makes no apparent difference to the amount of lag. ☹

---

<div class="post-metadata">

**Author:** ![andrewm](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@andrewm](https://boards.straightdope.com/u/andrewm)\
**Post date:** [October 30, 2010, 4:42pm UTC](https://boards.straightdope.com/t/reducing-lag-caused-by-a-video-streaming-device/558878/2 "2010-10-30T16:42:01Z")

</div>

> [@Frylock](#):
>
> Why isn’t changing the stream quality changing my lag? And is there possibly some way to reduce my lag?

Because bandwidth and latency are orthogonal. One does not depend on the other.

What are your ping times like when you’re not streaming video?

---

<div class="post-metadata">

**Author:** ![Frylock](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Frylock](https://boards.straightdope.com/u/Frylock)\
**Post date:** [October 30, 2010, 4:56pm UTC](https://boards.straightdope.com/t/reducing-lag-caused-by-a-video-streaming-device/558878/3 "2010-10-30T16:56:35Z")

</div>

> [@andrewm](#):
>
> Because bandwidth and latency are orthogonal. One does not depend on the other.
> 
> What are your ping times like when you’re not streaming video?

They range from 30 to 80.

(And I guess, then, that when someone advised me to turn down the stream quality to reduce lag, they were giving me bad advice?)

---

<div class="post-metadata">

**Author:** ![Palooka](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/palooka/32/2902_2.png) [@Palooka](https://boards.straightdope.com/u/Palooka)\
**Post date:** [October 30, 2010, 5:23pm UTC](https://boards.straightdope.com/t/reducing-lag-caused-by-a-video-streaming-device/558878/4 "2010-10-30T17:23:14Z")

</div>

It wasn’t necessarily bad advice, since people use “lag” in a pretty vague way. Reducing the stream rate is one solution to one meaning of “lag.”

What’s your connection type and home network setup? How many devices? Kids?

---

<div class="post-metadata">

**Author:** ![Frylock](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Frylock](https://boards.straightdope.com/u/Frylock)\
**Post date:** [October 30, 2010, 5:27pm UTC](https://boards.straightdope.com/t/reducing-lag-caused-by-a-video-streaming-device/558878/5 "2010-10-30T17:27:38Z")

</div>

> [@Palooka](#):
>
> What’s your connection type

Cable.

> [@](#):
>
> and home network setup?

Don’t know. How can I find out?

> [@](#):
>
> How many devices?

The cable plugs into the router, which has a dsl-style cable going to the desktop, and has wireless connections to two laptops.

But like I said, turn the Roku off, and I get pings of around 50 (usually less). Turn it on and it goes up to 1000ms or more.

---

<div class="post-metadata">

**Author:** ![Frylock](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Frylock](https://boards.straightdope.com/u/Frylock)\
**Post date:** [October 31, 2010, 11:44am UTC](https://boards.straightdope.com/t/reducing-lag-caused-by-a-video-streaming-device/558878/6 "2010-10-31T11:44:40Z")

</div>

So what causes lag? What does one do to increase or decrease it?

---

<div class="post-metadata">

**Author:** ![Digital\_Stimulus](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@Digital\_Stimulus](https://boards.straightdope.com/u/Digital_Stimulus)\
**Post date:** [October 31, 2010, 4:17pm UTC](https://boards.straightdope.com/t/reducing-lag-caused-by-a-video-streaming-device/558878/7 "2010-10-31T16:17:03Z")

</div>

> [@Frylock](#):
>
> > [@andrewm](#):
> >
> > Because bandwidth and latency are orthogonal. One does not depend on the other.
> 
> (And I guess, then, that when someone advised me to turn down the stream quality to reduce lag, they were giving me bad advice?)

OK, so _bandwidth_ refers to the amount of data being communicated over a time period, e.g., bits per second (bps), kiloBytes per second (kBps), etc. It’s a bit slippery in casual discussions, though – it might be better in this case to think of bandwidth as the _maximal_ possible amount of data that can be sent in the given time.

_Latency_ is, essentially, measuring communication _delay_; it refers to the amount of time it takes to send/receive a given chunk (amount) of data. If you _ping_ a server, the data chunk is 1 ICMP packet; the result is the time (usually in milliseconds) it takes for the packet to be sent by you, travel to the server, have the server respond, have the response travel back to you, and finally have the response processed.

So, bandwidth is measured as _data per time_, while latency is just _time_. If the data chunk used for figuring latency is small, they are orthogonal: the available bandwidth will easily accommodate the amount of data, and the constraint will be the “speed” of sending/receiving. However, if the data chunk is large, it _may_ have an effect on latency – for instance, trying to send 640x480 frames over a channel that can only process 320x240 frames in the given time. So, no, the advice given to you wasn’t necessarily bad; however, lowering the stream quality will, at some point, have little to no effect. With today’s standard hardware, that point is pretty high (I’d expect).

> [@Frylock](#):
>
> So what causes lag? What does one do to increase or decrease it?

It could be many different things – the quality of the channel (e.g., noisy line), the communication software (e.g., the implementation of the TCP/IP stack), the server load (e.g., a DDOS attack), or even the network infrastructure (e.g., cable users sharing total bandwidth or a path with many hops). Each of these obviously have different solutions; unfortunately, I don’t have the experience to suggest any particular course of action.
