The File Transfer Protocol (FTP) allows file transfers between a client and server using two TCP connections - one for commands/replies on port 21 and another for the actual file transfer on port 20. The Dynamic Host Configuration Protocol (DHCP) automates the assignment of IP addresses and network settings to devices on a network from a DHCP server. The Server Message Block (SMB) protocol enables file and print sharing between clients and servers once a long-term connection is established, allowing resources to be accessed locally.