Does Alt-F support SMB v2 and SMB v3 on DNS323?

1,398 views
Skip to first unread message

Alan Hasty

unread,
Aug 3, 2019, 2:35:38 PM8/3/19
to Alt-F
Hello all,

I've run into a problem with support for the original DNS 323 firmware and it only supporting SMB v1.
I'm curious whether the Alt F firmware for the DNS 323 box has support for the SMB v2 , v3 protocols ?
Can anyone provide a definitive answer? If it is supported , which version do I need to install to get the support?

Respectfully,
Alan.

João Cardoso

unread,
Aug 3, 2019, 10:25:36 PM8/3/19
to Alt-F


On Saturday, 3 August 2019 19:35:38 UTC+1, Alan Hasty wrote:
Hello all,

I've run into a problem with support for the original DNS 323 firmware and it only supporting SMB v1.
I'm curious whether the Alt F firmware for the DNS 323 box has support for the SMB v2 , v3 protocols ?

v1 and v2 only.
By installing the optional Entware package, you can use samba-4.9.7 with smb v3.11
 
Can anyone provide a definitive answer? If it is supported , which version do I need to install to get the support?

the last one, 1.0
 

Respectfully,
Alan.

José F

unread,
Oct 17, 2024, 4:36:57 PM10/17/24
to Alt-F
Hi friends,

I've downloaded and installed the 'Samba36-Server' Entware package via the Packages-Entwareng config screen (I see it listed in the Installed Packages section).  Is there anything I need to do to enable alt-f to start using that version of the protocol?  I still only see checkboxes for v1 and v2 only...

Thanks in advance,
José

José F

unread,
Oct 17, 2024, 4:43:38 PM10/17/24
to Alt-F
I think I just answered my own question... I ssh into the NAS and run the smbstatus command - it shows all the client connections, and that they're already running on 3.6.25.
Cheers!

S B

unread,
Oct 18, 2024, 4:11:32 AM10/18/24
to al...@googlegroups.com
Can you test If smbv3 will able to pull more speed compared to smbv1 ?

I know that dlink network performance is bottleneck because cpu is slow. But just curious if smb3 actually helps ease out or make it worse. 

My usual download and upload is cap at 20-30 MBps while the hard disk can pull 120 MBps easy.

Thanks and very curious to see. 


--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/f9845df2-fd42-40ca-bd53-84524169c776n%40googlegroups.com.

José F

unread,
Oct 18, 2024, 10:30:26 AM10/18/24
to Alt-F
Hmmm... I've only ever gotten 15Mbps at best, not sure why... this hasn't changed between smbv1 v2 or v3 for me.  I'm wondering if you have any ideas what my bottleneck might be?  I'd love to increase the speed, I just don't know where to start.  If I can do that, they I can certainly test them and see if I can get above 20-30 Mbps!

José F

unread,
Oct 18, 2024, 11:54:50 AM10/18/24
to Alt-F
BTW, here is what it says about my network connection in the status page:

Speed:1000Mbps Duplex:full MTU:1500 TX:1.0MiB Rx:925.7KiB

José F

unread,
Oct 21, 2024, 11:13:35 AM10/21/24
to Alt-F
Mov, I assume you have a box with better specs than that DNS323?  Because I'm pretty sure the speed bottleneck for transfers for me is the CPU (and maybe RAM)... what model do you have, to achieve speeds of 20-30Mbps?

S B

unread,
Oct 21, 2024, 1:39:40 PM10/21/24
to al...@googlegroups.com
I can seem to pull 60mbps on sequential reads. 

I got this from plain ftp, connection string is IPV4 
Screenshot 2024-10-22 at 00.19.04.png
Screenshot 2024-10-22 at 00.18.12.png

And For SMB. 
Screenshot 2024-10-22 at 00.22.46.png

This is what the status page looks like. 
Screenshot 2024-10-22 at 00.19.26.png

the writer however capp at around what you said. 
FTP smb same slow speed. 

Screenshot 2024-10-22 at 00.36.16.png
Screenshot 2024-10-22 at 00.37.46.png
and attached sysconfig.


SystemConf.log

José F

unread,
Oct 21, 2024, 2:21:51 PM10/21/24
to Alt-F
That's awesome!  I don't get anywhere even CLOSE to those speeds!!  Your DNS320 will be better hardware than my DNS323, which likely explains it... but I have a few questions for you, to see if that's something I can improve on my setup:

1) what size frames do you have (mine's 1500)
2) do you have IPv6 enabled?  Do you think this may improve the throughput?

Thanks!
Message has been deleted

S B

unread,
Oct 21, 2024, 2:41:31 PM10/21/24
to al...@googlegroups.com
I think jumbo frame can actually do increase speed.
I think it’s quite hard to config network with different mtu. I don’t see a lot of documentation on how to do that but I guess we need something to convert 1500 MTU to 9000 MTU that sit between DNS and router to gain full speed. . 
I am a computer engineer and I still can’t wrap my head around what to do to change mtu in the network. So I guess it would be almost crazy impossible for others. 

Yes, ipv6 enabled. No, I don't think it matters. 

Can you open System configuration log file from here. 
Screenshot 2024-10-22 at 01.36.41.png
And look into the benchmark number here ? 
I think this is a simple CPU benchmark. If we have a similar number(CPU speed) I think we can try to debug why it is much faster. 

Screenshot 2024-10-22 at 01.37.05.png

Or just download a whole file and attach it in mail. (remove your ipv6 ip would be enough to anonymize yourself).

Thanks,


Below is chatgpt answer for jumbo frame,  and i think it’s true.


Me: 
What happened if one device have jumbo frame in lan. Is other need to jumbo frame as well to gain the benefit of jumbo frame?

Chatgpt: 
Yes, for Jumbo Frames to be effective, all devices along the network path (switches, routers, and endpoints) need to support and be configured to use Jumbo Frames (MTU > 1500). If only one device on the LAN has Jumbo Frames enabled while others do not: • The device with Jumbo Frames will attempt to send larger packets. • Devices that don’t support Jumbo Frames will drop these packets or require fragmentation, negating the performance benefits. • This can lead to network inefficiencies or even connectivity issues. In summary, to fully gain the benefits, all devices communicating with each other must support and have Jumbo Frames enabled.


Gilles Martinoty

unread,
Oct 21, 2024, 3:07:50 PM10/21/24
to Alt-F
Hello,
I had tried to optimize samba's throughput a few years ago. See https://groups.google.com/g/alt-f/c/ITrIY5MJwVk 
On a DNS-320 I get between 60 to 80 MB/s for reading, and about 13 MB/s for writing. Which is more or less what is reported here. I use IPV4, with 1500 MTU, and SMB2 or SMB3.
I need additional parameters for Samba to get those speeds. Otherwise, I would get 30 MB/s for reading, which is what mov reports. 

However, it seems that other users didn't manage to replicate my setup.

Gilles

José F

unread,
Oct 21, 2024, 3:11:59 PM10/21/24
to Alt-F
I appreciate it!  I played with the frame sizes, and for the DNS323 the box seems to become unresponsive if I go much higher than 2500.  The most I can get out of it (with IPv6 and frame sizes of 2500) is about 30MBps on downloads via FTP (spikes at about 37MBps).

Here is the benchmark from my sys config:
xor: using function: arm4regs (360.800 MB/sec)

I think that's the bottleneck, my slow CPU... I don't think there is much I can do to improve speeds past what I got above...

José F

unread,
Oct 21, 2024, 3:12:48 PM10/21/24
to Alt-F
Thanks Gilles - I gather you have a DNS 320 as well, not a 323?

S B

unread,
Oct 21, 2024, 3:23:09 PM10/21/24
to al...@googlegroups.com
I just can't believe that the same product in some countries can get CPU 2 times faster than product from another country. 
This is like, it doesn't matter how much you tune up the config, if you have a 2 time slower CPU thing will always gonna be a bit more slow regardless. 

José F

unread,
Oct 22, 2024, 3:17:56 PM10/22/24
to Alt-F
I just enabled IPv6 and it gets me to about 30Mbps on reads... but I think that's all I can improve on my DNS323 - unless anyone has any advice on making that any better?

José F

unread,
Oct 22, 2024, 9:06:10 PM10/22/24
to Alt-F
So I may have gotten myself into a bit of a pickle...  I followed the post Giles pointed to above, applied the WebUI changes Jaoa pointed out, changed the 'install from' for Entware to "https://bin.entware.net/armv5sf-k3.2", had to uninstall it, and reinstall it, etc. like the thread suggested, and was able to install "samba4-server"... however, I failed to uninstall the old samba (Samba36-Server) before I changed over to the new Entware feed... is there a way to uninstall Samba36-Server via ssh/command line?

I can't seem to get 4 working, likely because 3.6 is still installed...

On Monday, October 21, 2024 at 1:07:50 PM UTC-6 gilles.m...@gmail.com wrote:

Hell Fish

unread,
Oct 23, 2024, 6:25:35 AM10/23/24
to Alt-F
entware is using opkg (just run without args to get list of commands) as package manager, so opkg list-installed | grep samba should bring it up if installed this way
about conflicts with the Alt-F included service see the other thread again ;)

José F

unread,
Oct 23, 2024, 12:08:52 PM10/23/24
to Alt-F
Thanks Hell Fish.  I've tried both with opkg and ipkg, and can't seem to uninstall samba36-server, whether I have samba4-server installed (through Entware) or not... when I launch "opkg info samba4-server", this is what I get

Package: samba4-server
Version: 4.18.0-1
Depends: libc, libssp, librt, libpthread, samba4-libs
Conflicts: samba36-server
Status: install user installed
Section: net
Architecture: armv5-3.2
Size: 253857
Filename: samba4-server_4.18.0-1_armv5-3.2.ipk
...

and when I launch "smbstatus" (even from /opt/bin) I get this:

NOTE: Service usb is flagged unavailable.

Samba version 3.6.25
PID     Username      Group         Machine                        
-------------------------------------------------------------------

Service      pid     machine       Connected at
-------------------------------------------------------

No locked files


So it is listed as a conflict, but I can't seem to uninstall it using either opkg or ipkg (running the uninstall command does nothing, and not only that, but samba36-server isn't even listed from either ipkg or opkg list installed commands...

Any ideas anyone?

João Cardoso

unread,
Oct 23, 2024, 12:17:00 PM10/23/24
to Alt-F
On Wednesday, October 23, 2024 at 2:06:10 AM UTC+1 jose....@gmail.com wrote:
So I may have gotten myself into a bit of a pickle...  I followed the post Giles pointed to above, applied the WebUI changes Jaoa pointed out, changed the 'install from' for Entware to "https://bin.entware.net/armv5sf-k3.2", had to uninstall it, and reinstall it, etc. like the thread suggested, and was able to install "samba4-server"... however, I failed to uninstall the old samba (Samba36-Server) before I changed over to the new Entware feed... is there a way to uninstall Samba36-Server via ssh/command line?
 
You can't uninstall it, it's part of the firmware and flashed . What you can do is stop and boot disable it. Then boot enable Entware and its smb server. Use Services->User->Entware for that (Entware init script, BTW is lousy, I use for /mnt/sdb4/opt/etc/init.d/S91smb

----  8<  -------------
#!/bin/sh

ENABLED=yes
PROCS="smbd nmbd"
ARGS="-D"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

mkdir -p /opt/var/log/samba
mkdir -p /opt/var/lib/samba/private
mkdir -p /opt/var/cache/samba
mkdir -p /opt/var/run/samba/ncalrpc

. /opt/etc/init.d/rc.func
----  >8  -----------

What I found faster in Entware samba4 versus Alt-F samba36 is write speed. Don't forget to also install  and activate Entware wsdd2

You can reuse all existing samba settings and Alt-F samba configure webUI with Entware samba. With both samba36 and samba4 stopped, do

mv /opt/etc/samba /opt/etc/samba-orig
ln -sf /etc/samba/ /opt/etc/samba/

All the above are tips that might need further adjustment. As said: 
Warning: Entware is alien to Alt-F, conflicts might arise.
Packages configuration files have to be manually edited.


I can't seem to get 4 working, likely because 3.6 is still installed...
(...) 

José F

unread,
Oct 23, 2024, 2:39:35 PM10/23/24
to Alt-F
thank you João, Gilles and Hell Fish for all for your help - finally got it working!  Unfortunately I still can't get any faster speeds than ~20MBps downloading via smb4 after following everything on https://groups.google.com/g/alt-f/c/ITrIY5MJwVk, but I am now pretty sure there is nothing I can do, and that it's the CPU that's the bottleneck...  I learned lots in the process, thanks to you all!
Reply all
Reply to author
Forward
0 new messages