[Samba] maximum amount of data in a SMB read response packet
Stijn Eeckhaut
stijn.eeckhaut at intec.ugent.be
Tue Nov 15 14:24:08 GMT 2005
Hi,
When sniffing traffic between a WinXP client (WinXP Professional version
2002 SP1) and a Samba server (Samba 3.0.9-2.1.5-SUSE on Suse Linux 9
kernel 2.6.5), I observed the following behavior:
- Writing to the Mapped network drive occurs with SMB write request
packets containing exactly 64kB of data.
- Reading from the Mapped network drive occurs with SMB read requests
for 60kB of data, followed each time by a SMB read request for 4kB of data.
The smb.conf file looks like this:
=================================================================
# Global parameters
[global]
workgroup = WORKGROUP1
server string = server1
printcap name = /etc/printcap
log level = 0
security = user
socket options = TCP_NODELAY SO_RCVBUF=262144 SO_SNDBUF=262144
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
max xmit = 65535 (= the default and maximum value)
read raw = yes
write raw = yes
large readwrite = yes
[smb-share1]
comment = share1 on server1
path = /shareddirectory1
read only = no
browseable = yes
=================================================================
Is there a way of filling a Samba read response packet with 64kB of
data, like in the write request case? Or is the total size of a Samba
read response packet limited to 'max xmit'?
Thanks in advance,
Stijn Eeckhaut
More information about the samba
mailing list