kozm
Posts: 12
Joined: Wed Apr 22, 2015 3:41 pm

PI2PI sshfs transfer speed problem

Sun Feb 19, 2017 6:49 pm

ahoy people of console!
the past 2 weeks i didnt manage to find any solution to my problem which is:
-i have got a model 1b+ with an external powered wd purple (ext3 filesystem), supposed to be a NAS.
-im using a model 2b+ as a basic desktop pc (i think its a good idea in a college)
-when both pi was at home (in LAN) rsync backup save was ~2,5mb/s, and i was able to stream 15mb/s movies from the pi1-HDD.
220kms away.
-i can reach the pi over ssh, i have a subdomain at afraid.freedns.org
-if i mount the pi1-HDD folder to the pi2 via sshfs, its really really slow, im able to listen 320kbps mp3 with mocp, but flac is warping, no chance to watch movies.
-if i do backup save with rsync, i get like 2,5mb/s but its dropping to ~250kb/s in a minute.
the problem is not the college net, i tested this from a different place too.

Ernst
Posts: 1334
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: PI2PI sshfs transfer speed problem

Sun Feb 19, 2017 7:01 pm

kozm wrote:ahoy people of console!
the past 2 weeks i didnt manage to find any solution to my problem which is:
-i have got a model 1b+ with an external powered wd purple (ext3 filesystem), supposed to be a NAS.
-im using a model 2b+ as a basic desktop pc (i think its a good idea in a college)
-when both pi was at home (in LAN) rsync backup save was ~2,5mb/s, and i was able to stream 15mb/s movies from the pi1-HDD.
220kms away.
-i can reach the pi over ssh, i have a subdomain at afraid.freedns.org
-if i mount the pi1-HDD folder to the pi2 via sshfs, its really really slow, im able to listen 320kbps mp3 with mocp, but flac is warping, no chance to watch movies.
-if i do backup save with rsync, i get like 2,5mb/s but its dropping to ~250kb/s in a minute.
the problem is not the college net, i tested this from a different place too.
1st question: did you move both systems 220Km or is the distance between the systems 220Km
2nd question: if the distance is 220Km between systems, what do you think is the electrical distance.
3rd question: do you know the speed of light ? (this not a trick question).
The road to insanity is paved with static ip addresses

kozm
Posts: 12
Joined: Wed Apr 22, 2015 3:41 pm

Re: PI2PI sshfs transfer speed problem

Sun Feb 19, 2017 8:39 pm

1: if i move both thats still lan... (and i can't run lan in this college, by the way it wouldnt make any sense, just like your 1st question)
2: i think it doesnt matters if its 220 or 10k, when i tested from 10k both pi got 30mb/s bandwidth, the communication was under mb(!), omxplayer has buffer function, can use that against packet loss.
3: today my 4k pace was 4:38 after 1h on the bike.

Ernst
Posts: 1334
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: PI2PI sshfs transfer speed problem

Sun Feb 19, 2017 9:41 pm

If you do not answer my questions seriously in that case you are not worth receiving information based on 40 year+ experience in IT and data communication.
I will give you another try to answer my questions.
The road to insanity is paved with static ip addresses

kozm
Posts: 12
Joined: Wed Apr 22, 2015 3:41 pm

Re: PI2PI sshfs transfer speed problem

Mon Feb 20, 2017 7:12 am

1 forget the 220k, if the RPis are communicating with each other over the internet (the desktop pi with the NAS pi), 90+% bandwidth decrease happens. In LAN everything is fine.
2 i dont know
3 i dont know

Ernst
Posts: 1334
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: PI2PI sshfs transfer speed problem

Mon Feb 20, 2017 7:43 am

kozm wrote:1 forget the 220k, if the RPis are communicating with each other over the internet (the desktop pi with the NAS pi), 90+% bandwidth decrease happens. In LAN everything is fine.
2 i dont know
3 i dont know
Let me point something out before I start: it is very important to give accurate and relative information when asking for help as it give a better chance to get to the right answer.

The answers to 2&3 play an important role if the answer to 1 is that both systems are 220Km apart. First thing is (see 2) that 220Km can be the direct distance, but the "electrical" distance will be much higher depending on how the cables are routed. The answer to 3 is about the maximum data transmission speed that can be reached over fiber connections, fiber is the material used provide a higher bandwidth between communication devices.

On a distance of 220Km there will be multiple components (routers) and cables involved, each router will store data packets before re-transmitting the packet, each cable length involved adds travel time.
The total time for a packet to arrive at the destination and for the reply to be received can be called latency. You can find out how time gets lost on the network by comparing the ping response time, and the number of routers can be found with tracert.

The above is only the beginning, there is more. The next point is to look at how data is transmitted and how to information is "protected". I leave this as an exercise for you to identify what other layers might be influencing the performance, you can use the following keywords for this purpose: UDP, TCP, sshfs.
What you must look for is how the higher level protocols ensure that no packets are lost and packets are received in the correct sequence, and how latency will reduce the measured transmission speed.
The road to insanity is paved with static ip addresses

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: PI2PI sshfs transfer speed problem

Mon Feb 20, 2017 10:19 am

SSHFS is not supposed to be fast. If your router supports it , activate its VPN functionality and connect to your home network. Now you should be able to use NFS without people
sniffing all your data over the net. It might be faster.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Return to “Troubleshooting”