Best / fastest connection between 2 Vero 4k boxes

I have 2 Vero 4k boxes, 1 with an external USB 3 hard drive which has my media on it.
What is the best way to have a fast connection from the second Vero 4k box to use the media off the first Vero 4k box?
SFTP? HTTP? HTTPS? Samba? etc etc

I have them connected via SFTP at the moment and on WiFi (as this is faster than the 100Mbit ethernet port on the device), however I have maybe 5+ seconds delay from requesting a film plays on the second Vero 4k box before it actually starts to play. On the Vero 4k box that the external hard drive is connected to this is instantaneous so this leads me to think the issue is related to the connection between the 2 boxes.

Any suggestions are welcome.

Many thanks

FTP (not SFTP) will be fastest with least overhead

Hi Sam. Thanks for the incredibly fast reply. I struggled to get an FTP connection between the 2 Vero 4k boxes when I was setting them up, but SFTP worked so I went with that. Now I see this lag I think I will need to revisit the connection to the source on the first Vero 4k box. Am I best going to the IP address or the FQDN? Would you see that having the SFTP connection would cause this delay though and changing to an FTP one would make a noticable difference?

NFS

1 Like

+1 for nfs on a local network, least hassle and enough performance imho. ip vs fqdn is just the dns you don’t need which shouldn’t make much of an impact.
how many files or directories you have in your structure? this might be more of an issue since kodi loads every single one of them and tries to determine content and stuff.

Thanks all for the replies. I will try again over the weekend to set up the NFS and FTP connections to see how they fair.

In answer to your question rantanplan1, not many really. Any 1 folder may have up to 200 files max, normally under 100.

If I am using the Vero 4k with the external hard drive connected to it the folder browsing and media playing is instantaneous. The issue is just accessing this from the other Vero 4k box so I thought it would be network connection related.

Will let you know how I get on.

so count shouldn’t be an issue then… my lib is several 10k files… and the vero performs fabulous. but I don’t serve of another vero box of course. good luck…

Yep, the performance on the Vero 4k box with the external hard drive directly attached is brilliant. This performance issue is just accessing it from the other box. If changing the connection method to FTP or NFS doesnt resolve it I might have to see about SSH on to the Vero 4k to see about installing a bandwidth monitoring tool to see if that reveals anything. I suspect this comes down to a poor wifi connection from the second Vero 4k box.

Thought I would update you. I have tried having both boxes connected to 2.4Ghz and also 5Ghz Wifi with very similar results. Both are showing as 4 bars out of 5 for the signal.

I have noticed that the lag from the second box for starting to play the media on the first box seems to be directly related to the size of the media. Stuff that is small, say 100MB loads fine, the minute lag is hardly noticable. When the size of the media increases the lag from pressing play to actually getting it to play increases.

A 700MB film takes about 3 seconds to start playing. A 1.4GB one about 6 seconds. I have tried this on a number of titles and this seems to be the case.

I havent yet managed to get time to remap the connection between the boxes to be FTP or NFS yet; do you think that what I am seeing is just down to the fact I have these currently connected as SFTP? If I can get them connected via FTP or NFS what sort of times to start playing would you expect me to get on the second box?

Many thanks

Honestly – this is very environmentally variable.
<1s is realistic for FTP or NFS.

With Adjust Refresh Rate enabled, you may not see a picture for a few seconds however depending on the speed of your display.

That sort of time would be great. I will try and get the NFS or FTP set up and revert my findings.

Thanks Sam

I suggest to first figure out your network bandwidth with iperf3 between the 2 boxes.

1 Like
Good point fzinken.

I have followed your tutorial and can report back as follows....

From the SERVER OSMC 4k:

Last login: Sat Jan 12 09:38:59 2019 from 192.168.1.87
osmc@osmclounge:~$ iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.1.67, port 44205
[  5] local 192.168.1.76 port 5201 connected to 192.168.1.67 port 44206
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.00   sec  1.77 MBytes  14.8 Mbits/sec    0    148 KBytes
[  5]   1.00-2.00   sec  3.56 MBytes  29.8 Mbits/sec    0    272 KBytes
[  5]   2.00-3.00   sec  5.17 MBytes  43.3 Mbits/sec    0    420 KBytes
[  5]   3.00-4.00   sec  9.02 MBytes  75.7 Mbits/sec    0    512 KBytes
[  5]   4.00-5.00   sec  5.84 MBytes  49.0 Mbits/sec    0    566 KBytes
[  5]   5.00-6.00   sec  8.06 MBytes  67.5 Mbits/sec   35    445 KBytes
[  5]   6.00-7.00   sec  8.37 MBytes  70.4 Mbits/sec    0    496 KBytes
[  5]   7.00-8.00   sec  9.71 MBytes  81.5 Mbits/sec    0    523 KBytes
[  5]   8.00-9.00   sec  8.98 MBytes  75.3 Mbits/sec    0    544 KBytes
[  5]   9.00-10.00  sec  7.83 MBytes  65.7 Mbits/sec    0    564 KBytes
[  5]  10.00-10.03  sec   867 KBytes   278 Mbits/sec    0    564 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.03  sec  69.2 MBytes  57.9 Mbits/sec   35             sender
[  5]   0.00-10.03  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.1.67, port 44208
[  5] local 192.168.1.76 port 5201 connected to 192.168.1.67 port 44209
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec  3.23 MBytes  27.1 Mbits/sec
[  5]   1.00-2.00   sec  4.91 MBytes  41.2 Mbits/sec
[  5]   2.00-3.00   sec  8.87 MBytes  74.5 Mbits/sec
[  5]   3.00-4.00   sec  9.15 MBytes  76.7 Mbits/sec
[  5]   4.00-5.00   sec  9.56 MBytes  80.2 Mbits/sec
[  5]   5.00-6.00   sec  9.47 MBytes  79.5 Mbits/sec
[  5]   6.00-7.00   sec  8.54 MBytes  71.7 Mbits/sec
[  5]   7.00-8.00   sec  8.78 MBytes  73.7 Mbits/sec
[  5]   8.00-9.00   sec  8.59 MBytes  72.0 Mbits/sec
[  5]   9.00-10.00  sec  8.51 MBytes  71.4 Mbits/sec
[  5]  10.00-10.04  sec   327 KBytes  71.7 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.04  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.04  sec  79.9 MBytes  66.8 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------


and from the CLIENT OSMC 4k...

Last login: Sat Jan 12 09:39:46 2019 from 192.168.1.87
osmc@Kodi:~$ iperf3 -R -c 192.168.1.76
Connecting to host 192.168.1.76, port 5201
Reverse mode, remote host 192.168.1.76 is sending
[  4] local 192.168.1.67 port 44206 connected to 192.168.1.76 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  1.67 MBytes  14.0 Mbits/sec
[  4]   1.00-2.00   sec  2.95 MBytes  24.8 Mbits/sec
[  4]   2.00-3.00   sec  4.63 MBytes  38.8 Mbits/sec
[  4]   3.00-4.00   sec  9.46 MBytes  79.3 Mbits/sec
[  4]   4.00-5.00   sec  4.91 MBytes  41.2 Mbits/sec
[  4]   5.00-6.00   sec  7.88 MBytes  66.1 Mbits/sec
[  4]   6.00-7.00   sec  9.36 MBytes  78.5 Mbits/sec
[  4]   7.00-8.00   sec  8.96 MBytes  75.2 Mbits/sec
[  4]   8.00-9.00   sec  8.79 MBytes  73.7 Mbits/sec
[  4]   9.00-10.00  sec  8.49 MBytes  71.2 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  69.2 MBytes  58.0 Mbits/sec   35             sender
[  4]   0.00-10.00  sec  67.5 MBytes  56.6 Mbits/sec                  receiver

iperf Done.
osmc@Kodi:~$ iperf3 -c 192.168.1.76
Connecting to host 192.168.1.76, port 5201
[  4] local 192.168.1.67 port 44209 connected to 192.168.1.76 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  4.03 MBytes  33.8 Mbits/sec    0    216 KBytes
[  4]   1.00-2.00   sec  5.48 MBytes  45.8 Mbits/sec    0    369 KBytes
[  4]   2.00-3.00   sec  9.29 MBytes  78.1 Mbits/sec    0    484 KBytes
[  4]   3.00-4.00   sec  9.40 MBytes  78.8 Mbits/sec    0    551 KBytes
[  4]   4.00-5.00   sec  9.70 MBytes  81.3 Mbits/sec    0    588 KBytes
[  4]   5.00-6.00   sec  9.60 MBytes  80.7 Mbits/sec    0    636 KBytes
[  4]   6.00-7.00   sec  8.68 MBytes  72.8 Mbits/sec    0    680 KBytes
[  4]   7.00-8.00   sec  8.71 MBytes  73.1 Mbits/sec    0    697 KBytes
[  4]   8.00-9.00   sec  8.32 MBytes  69.6 Mbits/sec    0    731 KBytes
[  4]   9.00-10.00  sec  8.90 MBytes  74.6 Mbits/sec    0    769 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  82.1 MBytes  68.9 Mbits/sec    0             sender
[  4]   0.00-10.00  sec  79.9 MBytes  67.0 Mbits/sec                  receiver

iperf Done.

Does any of this shed any light on to this?

Cheers

Not sure about the Adjust Refresh Rate setting; if I move the external USB with the media on it to this second OSMC 4k, the media plays instantly as it does when it is plugged in to the first OSMC 4k. Does that help?

I have tried to set up both an NFS and FTP connection from the second box to the first one but I get this message with both…

Unable to connect
Couldnt retrieve directory information. This could be due to the network not being connected. Would you like to add it anyway?

I have tried answering this Yes but I then get the message…

Remote Share
Couldnt connect to network server

I have tried setting the Remote Path from being blank to the drive I want to use (/media/Apple TV) but this shows the same messages.

I am a bit stumped at the moment. The only connection type I have successfully created between the 2 boxes is the SFTP one.

Any help would be appreciated.

I have a feeling you’ll need to install the NFS server package on the Vero “server” box.

sudo apt-get update
sudo apt-get install nfs-kernel-server

You’ll also need to configure an exports file for NFS, if you choose this route. Have a look at this post for further details Configuring fstab based NFS share mounts - #10 by grahamh

As for your iperf3 figures, they are disappointing: relatively slow and highly variable.

Are you still using WiFi?

Thanks for the info; I will try installing the NFS server package on the server Vero box as you suggested, This is a new area for me so I appreciate you taking the time.

At the moment I still have both the boxes connected via 5Ghz wifi. I could connect the server box by ethernet to the router, but the client box would have to remain on wifi due to its location.

Yes, those speeds will not be enough for 4k whatever network protocol your are going to use.

If you already spent the money for a Vero, why not add a Raspberry Pi 3 to your network, install an NFS server there and attach your USB-HDD. No USB-3 speeds though, but since you seem to rely on WIFI that shouldn’t be a problem, I suppose…
My Vero 4k+ is connected via Gbit Ethernet with an NFS share mounted in /etc/fstab and it plays 4K HDR high-bitrate without any issues.

That wouldn’t change anything on his low WiFi throughput