Community discussions

MikroTik App
 
Simke
just joined
Topic Author
Posts: 8
Joined: Thu Jan 25, 2018 10:46 pm

Mikrotik Raspberry pi video buffering

Thu Jan 25, 2018 11:46 pm

Hello,

Can you please advise?
I have RB915G-2Hnd (installed version 6.41). My settings in Mikrotik are default. I did all my settings in quick set (Home AP).

If I stream a video (over UTP cables) larger than around 700MB from my PC (1Gbps NIC) to Raspberry Pi 3 (100Mbps NIC - OSMC with latest updates) via SMB it buffers all the time.
If I use the same settings and connect my old router LinksysWRT54GL videos as large as 50 GB play with no interruptions.
Also to add. I have two PC-s in this network (Mikrotik). Both with 1Gbps NICs. File copying between them works as it should at max transfer rate.

Recap.
Streaming to Raspberry Pi from PC via LinksysWRT54GL work smooth.
Streaming to Raspberry Pi from PC via Mikrotik RB951G-2HnD with all the same setting buffers video (transfer rate is just 5-10Mbps).

Can anyone please advice?

https://imgur.com/a/AbWNA
https://imgur.com/a/JDyHX

Thank you in advance.

Cheers,


Simke.
Last edited by Simke on Fri Feb 02, 2018 12:48 pm, edited 1 time in total.
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1797
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Mikrotik Raspberry pi video buffering

Sat Jan 27, 2018 1:17 am

Linksys is using different antenna, external with likely higher gain, which will result in better wireless signal.

Better signal -> better bandwidth -> higher download speed -> less buffering

Consider different placement of the router & rpi3, to improve the signal quality. Or use wire.
 
Simke
just joined
Topic Author
Posts: 8
Joined: Thu Jan 25, 2018 10:46 pm

Re: Mikrotik Raspberry pi video buffering

Sat Jan 27, 2018 3:31 am

My setup is on wires. Sorry I was not clear on that.
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1797
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Mikrotik Raspberry pi video buffering

Sat Jan 27, 2018 5:54 pm

try diagnosing the problem step by step, by eliminating possibilities
what rate do you get with manual transfer from pc -> rpi and rpi -> pc
then try transfer to another pc: pc1 -> pc2 and reverse
* are these rates comparable?
* are these rates expected?
* how do the systems behave when doing so?
* what is the cpu load on rpi during pure transfers? if high, there won't be enough cpu left for video processing.
...
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1797
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Mikrotik Raspberry pi video buffering

Sat Jan 27, 2018 8:08 pm

Also keep in mind that the wired network interface is 100mbit/s and off usb.
https://raspberrypi.stackexchange.com/q ... berry-pi-3

Wondering if you wouldn't have better results with wireless as it has a dedicated interface...
https://doc.xdevs.com/doc/RPi/pi3-block ... m-rev4.png
 
Simke
just joined
Topic Author
Posts: 8
Joined: Thu Jan 25, 2018 10:46 pm

Re: Mikrotik Raspberry pi video buffering

Sun Jan 28, 2018 1:36 am

When I wrote what seems to be the problem I meant with buffering from PC to RPi via Mikrotik.
The problem is not with RPi, or cables or PC...
The setup is the same, only router is different.
When I mentioned two PC-s in network I was only pointing out that file transfer between this two computers works fine (at max possible speed +110MB).
Mikrotik in this case does job perfectly.

Again, watching video from shared folder on PC accessed from RPi via SMB with MT routers lags. That's not the case with Linksys.
I think this has something to do with the settings in MT but I don't know what that could be.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 1816
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Mikrotik Raspberry pi video buffering

Sun Jan 28, 2018 8:56 am

What is MTU size? MSS? Are the same for Mikrotik and Linksys?
Look at each interface and check if Flow Control is the same as for Linksys.
Real admins use real keyboards.
 
Simke
just joined
Topic Author
Posts: 8
Joined: Thu Jan 25, 2018 10:46 pm

Re: Mikrotik Raspberry pi video buffering

Thu Feb 01, 2018 5:27 pm

Tried max MTU for my router (RB951G-2HnD: 4074) and nothing changed.
https://wiki.mikrotik.com/wiki/Manual:M ... uterBoards
Did not find any settings for MTU in Linksys.

Can this be Mikrotik SMB limitation?
 
Simke
just joined
Topic Author
Posts: 8
Joined: Thu Jan 25, 2018 10:46 pm

Re: Mikrotik Raspberry pi video buffering

Sun Feb 04, 2018 12:22 pm

I finally figured it out.
The problem was in bridge hardware offloading.
I turned it off on the interface my computer is connected to and everything runs smoothly now.

Bridge -> ports -> uncheck bridge hardware offloading

OMG, one radio button and so much wasted time and nerves. :)
Hope this helps someone.

Cheers.
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1797
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Mikrotik Raspberry pi video buffering

Sun Feb 04, 2018 4:49 pm

I would recommend to contact support with your findings and verify if it's a bug, and needs solving.
Thanks for letting us know.
 
Simke
just joined
Topic Author
Posts: 8
Joined: Thu Jan 25, 2018 10:46 pm

Re: Mikrotik Raspberry pi video buffering

Sun Feb 04, 2018 5:25 pm

I wrote to them before finding the solution asking if they could comment on my problem... Nothing.

That's it from me. If they track forum they will see it.
 
esquirrel
Frequent Visitor
Frequent Visitor
Posts: 51
Joined: Wed Feb 21, 2018 3:04 pm

Re: Mikrotik Raspberry pi video buffering

Tue Mar 06, 2018 3:34 pm

Ideally, you should use a USB Gigabit Ethernet adapter that is designed to use USB3, in USB2 compatibility mode.

A gentleman in the UK has done extensive testing of the network performance of various RPI models using USB NICs. The performance of that combination on an RPI seems to be the best. They can attain more than 300 MBps with an external USB3 NIC when they are writing that data to /dev/null, not a real world disk.

Thats the catch 22. Performance that drops considerably with any kind of disk-bound (such as a USB disk) I/O is added So, they can do a decent job in firewall use, but not a prectacularly good one, considering the decent CPU on the Pi3. It would be much better with a non-USB NIC.

The total USB speed cannot exceed 480 MBPs. If you Google a bit you will find the specifics. They used a USB NIC - to keep the price at the target $35.

(and it and all a single RPI's other USB devices share the same USB bus.)
 
agiz10
just joined
Posts: 8
Joined: Sun Jun 10, 2012 8:45 pm

Re: Mikrotik Raspberry pi video buffering

Sat Mar 17, 2018 11:17 am

I finally figured it out.
The problem was in bridge hardware offloading.
I turned it off on the interface my computer is connected to and everything runs smoothly now.

Bridge -> ports -> uncheck bridge hardware offloading

OMG, one radio button and so much wasted time and nerves. :)
Hope this helps someone.

Cheers.
I just wanted to say a big THANK YOU! :D :lol:
I have (had) the same problem, and i could not find a solution anywhere and noone pointed me in right direction. I also had constant buffering with my RB915G-2Hnd router. RB750G one works just fine on the other hand.
I posted my problem in another thread (viewtopic.php?f=3&t=71457), so if that one gets hit by search engines, i will link it here.

I contacted support with solution, i don't know if they will get back to me though.

Who is online

Users browsing this forum: hoileong, IPtrans, svmk and 13 guests