Modify

Opened 22 months ago

Last modified 20 months ago

#22256 new defect

Streaming video on LAN problem

Reported by: freek145 Owned by: developers
Priority: normal Milestone:
Component: base system Version: Chaos Calmer 15.05
Keywords: streaming within lan Cc:

Description

Hi,

I just got into de OpenWrt community. I have installed OpenWrt and after installing it I got problems with streaming video from my nas to my cubox with KODI. In KODI it keeps buffering every couple of minuts.
At advise of HooTooJunkie I post my problem here. The forum topic I made before is: https://forum.openwrt.org/viewtopic.php?id=63550

The configuration:
Router: TP-Link TL-WDR4900
Mediaplayer: Cubox-i2 with KODI
NAS: QNAP TS-219P+
Connected over LAN (not the WLAN of WAN)

Before updating to OpenWrt there were no problems with the streaming of video.
Usualy I stream full HD movies with a size between 10 and 30 Gb.
The first attemd was with OpenWrt Barrier Breaker 14.07
The second attemd was with Chaos Calmer 15.05
The thirth attemd was with Chaos Calmer 15.05.1
There is no special configurations don after installing OpenWrt.

The share I use to the NAS from the Cubox is NFS.

I didn't set the priority to High but I hope you can help soon to enjoy streaming video's again.

Attachments (0)

Change History (14)

comment:1 Changed 22 months ago by anonymous

As i understand right both is connected to the same "switch" build in the wdr4900, connection speed is still 1gbit, right?
That does not make much sense for me. OpenWrt did not make any routing in this case.

comment:2 Changed 22 months ago by bittorf@…

Questions:

  • are you connected via 5GHz or 2GHz?
  • can you show *after* a problem the output of:
for W in reset interrupt queues;do for F in /sys/kernel/debug/ieee80211/phy*/ath9k/$W /sys/kernel/debug/ieee80211/phy*/queues; do echo "### $F"; cat $F; done; done
  • can you show *after* a problem the output of:
iw dev wlan0-1 station get 00:21:6a:32:7c:1c
# use proper dev for 'wlan0-1' and the mac of your laptop
  • can you show *after* a problem the output of:
/sys/kernel/debug/ieee80211/phy0/netdev:wlan0-1/stations/00:21:6a:32:7c:1c/rc_stats
# use proper dev for 'wlan0-1' and the mac of your laptop

comment:3 follow-up: Changed 22 months ago by freek145@…

Thnx for the reaction.

Both are connected to the same switch and are still 1Gbps full duplex.
In the forum they also say it makes no sens because there is no routing in the lan side of the switch.

@bittofrt@...: is the output still relevant if both the devices are connected by wire?

comment:4 in reply to: ↑ 3 ; follow-up: Changed 22 months ago by bittorf@…

Replying to freek145@…:

@bittofrt@...: is the output still relevant if both the devices are connected by wire?

is your laptop connected wirelessly or wired?
if wired, than we dont need the output.

comment:5 in reply to: ↑ 4 ; follow-up: Changed 22 months ago by freek145@…

Replying to bittorf@…:

Replying to freek145@…:

@bittofrt@...: is the output still relevant if both the devices are connected by wire?

is your laptop connected wirelessly or wired?
if wired, than we dont need the output.

It isn't a laptop but it is a NAS and I use a PC connected by wire.

comment:6 in reply to: ↑ 5 ; follow-up: Changed 22 months ago by bittorf@…

Replying to freek145@…:

It isn't a laptop but it is a NAS and I use a PC connected by wire.

interesting! this sounds like a problem with the ethernet/switch-driver.
are you able to do some netperf tests with different packet sizes?

comment:7 in reply to: ↑ 6 Changed 22 months ago by freek145@…

Replying to bittorf@…:

interesting! this sounds like a problem with the ethernet/switch-driver.
are you able to do some netperf tests with different packet sizes?

I have never heard of netperf before so I have to look into it.
Do you have a good site for some information how to use it? Probably this weekend I can do some tests.

comment:8 follow-ups: Changed 22 months ago by bittorf@…

on OpenWrt you can install it via opkg. For your PC search the internet for 'netperf howto' in your language/for your OS.

comment:9 in reply to: ↑ 8 Changed 22 months ago by freek145@…

Replying to bittorf@…:

on OpenWrt you can install it via opkg. For your PC search the internet for 'netperf howto' in your language/for your OS.

Do you know also NetIO-Gui from sourceforce? It also measures TCP and UDP. Should this also give you the needed information?

comment:10 Changed 21 months ago by guenti

Same Problem here!
But not only streaming is affected.
It doesnt matter if a device is connected via Lan or Wlan.
Sometimes the WDR4900 drops randomly different connections, sometimes only once per 24h, sometimes every 5 minutes.

My Settings:

WDR4900 (r49264)
WAN (Huawei E3372 via Hilink) on eth1
Streamingserver (Archlinux VDR) on 2.4ghz WLAN
Raspberry Pi2B via 2.4ghz WLAN
Raspberry Pi2B via LAN
Laptop 1 via 5ghz WLAN
Several Smartphones via 5ghz

On the Laptop, internet connection timed out randomly (sometimes 3 times per 5 minutes, sometimes 1 day no issues) but streaming works...

Very strange issue because i cannot verify.
MAybe its an dnsmasq problem?
On my Streamingserver sometimes totally connection lost

comment:11 in reply to: ↑ 8 Changed 21 months ago by freek145@…

Replying to bittorf@…:

on OpenWrt you can install it via opkg. For your PC search the internet for 'netperf howto' in your language/for your OS.

I have tested with NetIO-Gui. Here are the results in CSV format:

Local_Host;Remote_Host;Timestamp;Protocol;TX_1k;TX_2k;TX_4k;TX_8k;TX_16k;TX_32k;RX_1K;RX_2K;RX_4K;RX_8K;RX_16K;RX_32K;TX_AVG;RX_AVG;Ping_AVG;Comment;Rating
192.168.0.102;192.168.0.162;5/1/2016 8:49:00 PM;TCP;11593660;11607612;11824462;11826629;11816901;11871570;11231342;11249195;10130397;10144679;10121274;11276858;11756806;10692291;0;test1;0
192.168.0.102;192.168.0.162;5/1/2016 8:52:00 PM;TCP;11579504;11606875;11821923;11829317;11815287;11868379;10681465;10658851;11827298;11271585;11837621;11842060;11753548;11353147;0;test2;0
192.168.0.102;192.168.0.162;5/1/2016 8:53:00 PM;TCP;11613248;11615626;11831276;11832639;11821241;11871570;11227432;10682315;9574058;11262370;11840341;10717091;11764267;10883934;0;test3;0
192.168.0.102;192.168.0.162;5/1/2016 8:55:00 PM;UDP;11672917;6568754;8329908;9716144;11531098;11308236;11170101;10395663;1423022;103352;5056;0;9854510;3849532;0;test4;0
192.168.0.102;192.168.0.162;5/1/2016 8:57:00 PM;UDP;11666474;6518932;7456237;9993658;11184811;11417555;11195435;10023253;1362957;96996;9551;0;9706278;3781365;0;test5;0
192.168.0.102;192.168.0.162;5/1/2016 8:58:00 PM;UDP;11678385;6527467;7445845;9996071;11525456;11628934;11186923;10017262;1529109;93264;3798;0;9800360;3805059;0;test6;0

It looks like the UDP RX drops to zero from 8k.
I don't know what is normal but I hope you have enough information.

comment:12 in reply to: ↑ 8 Changed 21 months ago by freek145@…

Replying to bittorf@…:

on OpenWrt you can install it via opkg. For your PC search the internet for 'netperf howto' in your language/for your OS.

Hi Bittorf,
Did you already analyse the data? Could I do something more?
Hope to hear from you.

comment:13 Changed 21 months ago by freek145@…

I have revert to stock firmware and run the test again. Here are the results:

Local_Host;Remote_Host;Timestamp;Protocol;TX_1k;TX_2k;TX_4k;TX_8k;TX_16k;TX_32k;RX_1K;RX_2K;RX_4K;RX_8K;RX_16K;RX_32K;TX_AVG;RX_AVG;Ping_AVG;Comment;Rating
192.168.0.104;192.168.0.162;5/21/2016 6:00:00 PM;TCP;11580765;11633078;11842741;11815403;11839202;11886340;11610841;11551693;11804223;11806693;11807500;11845255;11766255;11737701;0;;0
192.168.0.104;192.168.0.162;5/21/2016 6:02:00 PM;UDP;11514224;7021821;10021849;10691551;10979167;11253599;11744392;10398478;11968729;11980999;11986452;12004397;10247035;11680574;0;;0

Now you can see the UDP isn't dropping. It keeps the speed almost the same.

comment:14 Changed 20 months ago by freek145@…

is there nobody who can help me?

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.