Sunday, March 26, 2017

CIFS and SMB


CIFS

Short for Common Internet File System, a protocol that defines astandard for remote file access using millions of computers at a time. CIFS is a dialect of the Server Message Block (SMB) protocol, which was originally developed by IBM Corporation and then further enhanced by Microsoft, IBM, Intel, 3Com, and others

With CIFS, users with different platforms and computers can share files without having to install new software. In general, CIFS is a better option over older file sharing protocols like FTP unless links are high latency (e.g WAN)
CIFS runs over TCP/IP but uses the SMB (Server Message Block)protocol found in Microsoft Windows for file and printer access; therefore, CIFS will allow all applications, not just Web browsers, to open and share files across the Internet.
With CIFS, changes made to a file are simultaneously saved on both the client and server side.

SMB

SMB (v1.0, 2.0 and 3.0) prevalent in newer windows OS versions whereas CIFS is a dialect which doesn't have all the features of SMB such as "batching" or change notification support. As per Microsoft, the protocol exchange between a server and client first selects a dialect with the highest level of functionality supported by both server and client. Initially CIFS or SMB might be selected based on Server & Client capability but if either the Server or Client fail to support all needed features of SMB like change notification support then SMB connections will be lost without notice to user with traffic shifting to CIFS only.


CIFS vs SMB, which one to use?

CIFS being a dialect & older implementation of SMB lacks important enhancements like multi-channeling and change notification support which are present in SMB 2.0 and SMB 3 version. Microsoft has been using SMB from Windows 2008 onwards and it remains the protocol of choice for transferring files between compatible nodes.

References : - 
https://docs.microsoft.com/en-us/windows/desktop/FileIO/microsoft-smb-protocol-and-cifs-protocol-overview
https://msdn.microsoft.com/en-us/library/ee442092.aspx


No comments:

Post a Comment