Windows spooler sends SMB blocks with non-sequential order.

Arcady Chernyak Arcady.Chernyak at efi.com
Tue May 17 05:23:38 GMT 2005


I have found that when Windows spooler sends print file to SAMBA it may send
packets with non-sequential order but with correct offsets.
See bellow some output from Ethereal.
 
Samba supports non-sequential SMB offset for file shares well, but doesn't
support it at all for the SMB printing.
I guess that this is the critical bug because sometimes Windows sends print
file in "out of order" SMB blocks.
 
The problem is difficult to reproduce because it is intermittent and happens
rarely. 
I used fast XP-SP2 machine over 1 GHz Ethernet switch to increase
reproducibility.
For 100 GHz network it happens once in 10 file transfers.
You should use big files (I used 500 MB file) and calculate MD5 sum to check
file integrity. (Blocks' swapping doesn't affect file checksums)
 
What's your opinion?
Do you need more info?
 
Thanks
            Arcady
-----------------------------------------------------------------------------
-----------------------------------------------------------------
>From Ethereal LAN Analyzer:
No.     Time        Source                Destination           Protocol Info
  54708 8.972423    10.10.59.4            10.10.59.16           SMB
Write Request, FID: 0x2d83, 16580 bytes at offset 49107140
Frame 54708 (1514 bytes on wire, 1514 bytes captured)
Ethernet II, Src: 00:10:18:0a:d1:01, Dst: 00:e0:81:61:5d:9c
Internet Protocol, Src Addr: 10.10.59.4 (10.10.59.4), Dst Addr: 10.10.59.16
(10.10.59.16)
Transmission Control Protocol, Src Port: 2603 (2603), Dst Port: netbios-ssn
(139), Seq: 49274213, Ack: 131593, Len: 1460
NetBIOS Session Service
SMB (Server Message Block Protocol)    Next offset should be 49123720 =
49107140 + 16580 
-----------------------------------------------------------------------------
------------------------------------------------------
No.     Time        Source                Destination           Protocol Info
  54727 8.974372    10.10.59.4            10.10.59.16           SMB
Write Request, FID: 0x2d83, 11700 bytes at offset 49140300
Frame 54727 (1514 bytes on wire, 1514 bytes captured)
Ethernet II, Src: 00:10:18:0a:d1:01, Dst: 00:e0:81:61:5d:9c
Internet Protocol, Src Addr: 10.10.59.4 (10.10.59.4), Dst Addr: 10.10.59.16
(10.10.59.16)
Transmission Control Protocol, Src Port: 2603 (2603), Dst Port: netbios-ssn
(139), Seq: 49290845, Ack: 131634, Len: 1460
NetBIOS Session Service
SMB (Server Message Block Protocol)    Next offset should be 49152000
-----------------------------------------------------------------------------
------------------------------------------------------
No.     Time        Source                Destination           Protocol Info
  54741 8.975828    10.10.59.4            10.10.59.16           SMB
Write Request, FID: 0x2d83, 16580 bytes at offset 49123720
Frame 54741 (1514 bytes on wire, 1514 bytes captured)
Ethernet II, Src: 00:10:18:0a:d1:01, Dst: 00:e0:81:61:5d:9c
Internet Protocol, Src Addr: 10.10.59.4 (10.10.59.4), Dst Addr: 10.10.59.16
(10.10.59.16)
Transmission Control Protocol, Src Port: 2603 (2603), Dst Port: netbios-ssn
(139), Seq: 49302597, Ack: 131675, Len: 1460
NetBIOS Session Service
SMB (Server Message Block Protocol)    Next offset should be 49140300
-----------------------------------------------------------------------------
------------------------------------------------------
No.     Time        Source                Destination           Protocol Info
  54760 8.978508    10.10.59.4            10.10.59.16           SMB
Write Request, FID: 0x2d83, 16580 bytes at offset 49152000
Frame 54760 (1514 bytes on wire, 1514 bytes captured)
Ethernet II, Src: 00:10:18:0a:d1:01, Dst: 00:e0:81:61:5d:9c
Internet Protocol, Src Addr: 10.10.59.4 (10.10.59.4), Dst Addr: 10.10.59.16
(10.10.59.16)
Transmission Control Protocol, Src Port: 2603 (2603), Dst Port: netbios-ssn
(139), Seq: 49319229, Ack: 131757, Len: 1460
NetBIOS Session Service
SMB (Server Message Block Protocol)
 
 
 
 
 
 
 
 
 
 
 
 
 

 
 


More information about the samba-technical mailing list