Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Seemingly poor performance over bridged LAN using two ZTe units #2

Open
cferrey opened this issue Sep 19, 2019 · 5 comments
Open

Seemingly poor performance over bridged LAN using two ZTe units #2

cferrey opened this issue Sep 19, 2019 · 5 comments

Comments

@cferrey
Copy link

cferrey commented Sep 19, 2019

I have two ZT Edge units running on remote LANs in a layer 2 bridged setup, with the same subnet scheme applied to the LAN at each site. Site A's WAN connection is 940Mbps down / 880Mbps up, and Site B's is 370Mbps down / 330 Mbps up. Both ZTe devices are hardwired to their respective routers via gigabit ethernet over Cat6e cable.

Using iperf3, I'm getting an average transfer speed of ~20Mbps between the two units. Is this in line with internal tests by ZeroTier? I understand that the encryption has some CPU performance overhead, but I was expecting to see better performance than this given that my limiting WAN speed on the slowest connection is 330Mbps (upload from Site B). Even this most limited speed is almost 20x faster than what I'm getting via the bridged ZTe link.

@genieinfo
Copy link

I'm in the same situation here : i was never able to make my 2 edges run their bridge over 30Mb/s, where x86 multicore based machines with latest ZT binaries installed would perform 10x better on average (250 to 300Mb/s) on the same WAN links.

I understand you stopped development for these devices.
As it has never been able to update by itself, saying 0.5.0 is the most recent version even though it seems it was released in nov. 2018, would you please allow sudo and/or permit installing other distro on these quite capable Marvell-based devices ?
Many thanks in advance if you do so

@cferrey
Copy link
Author

cferrey commented Sep 19, 2020

@genieinfo -- thanks for checking in; glad to hear it's not just my setup. @adamierymenko did comment on this in a different thread (unfortunately couldn't find it), noting that this performance gap may be related to the ARM processor architecture in the Marvell ESPRESSObin SBCs they used for the ZT Edge production units . Something about instruction set translation from the processor types ZT was written for (ARM vs. x86? 32bit vs. 64bit? Can't remember...). Despite occasionally pretending I know stuff about networking, I'm super uninformed on the hardware front -- so you'd need to follow up with them directly for more info there.

Agree though that it would be great to hear about a possible OS update for the Edge units and whether it'd have any potential to improve performance -- though sounds like it may've been something fundamentally limited by the hardware choice. Annoying with a paid crowdfunding hardware effort -- for sure -- but honestly, given the EXTREMELY generous free tier that ZT offers (and knowing they run a relatively small shop), we'd be remiss to complain here. I was happy to support them regardless.

All that said -- throwing up a gentle bat-signal reminder for @adamierymenko here, in case there are any updates on this front (potentially related to v2.0?). Many thanks!

@genieinfo
Copy link

I totally agree : ZT changed my conception of SDN and remote work in so many ways, and mostly for FREE, that i would be ashamed to blame @adamierymenko and yes, i am proud too, having backed them in the first place to support the project.
In the meantime, i found this on their Atlassian wiki
https://zerotier.atlassian.net/wiki/spaces/SD/pages/193134593/One+Port+Linux+Bridge
The perfect hitch-hiker guide to the perfect bridged setup for a Pi !
I tried/setup/bench-marked so many different configs with so many devices to achieve a stable Zerotier-based bridging solution with a good balance between price / performance and came to the conclusion that the most adequate device was the RPi4.
So happy that @travis LaDuke wrote this guide, compiling all the useful infos we all tried to gather and re-assemble for months :)

No worries about an hypothetical Edge software upgrade, it's just me trying to re-purpose 2 tiny ARM devices :)
Keep on going Zerotier gentlemen, impatiently waiting for v2.0 too !

P.S.: i'm french, so any typos corrections are welcome
P.S.2: zerotier/ZeroTierOne#914 (comment)

@cferrey
Copy link
Author

cferrey commented Sep 19, 2020

@genieinfo -- Super, je parle un petit peu de français, mais ton anglais est vraiment bon! Glad to hear these devices found their way to France. And yes, I also used that guide as a basis to later implement rPi 4 ZT layer-2 bridges and can get a fairly consistent 70Mbps avg between remote sites using that approach. Seems the rPis are ARM chips, so scratch my above comment about ARM CPU architecture being the (potential) hardware issue. Might've been the 32/64 angle...

@genieinfo
Copy link

genieinfo commented Sep 20, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants