1 00:00:00,006 --> 00:00:03,003 - [Instructor] File transfer protocol, or FTP, 2 00:00:03,003 --> 00:00:07,001 has been used to transfer files since 1971. 3 00:00:07,001 --> 00:00:11,002 FTP relies on TCP for reliable delivery. 4 00:00:11,002 --> 00:00:13,008 FTP is great for plain text transmissions, 5 00:00:13,008 --> 00:00:18,001 but can also use TLS or SSL to encrypt the sessions. 6 00:00:18,001 --> 00:00:22,000 FTP can run in either active or passive modes. 7 00:00:22,000 --> 00:00:26,006 In both modes, the session is initiated on TCP port 21. 8 00:00:26,006 --> 00:00:29,001 In active mode, the client will inform the server 9 00:00:29,001 --> 00:00:32,000 on what port the server should access the client at. 10 00:00:32,000 --> 00:00:34,009 The server will then initiate a connection to the client 11 00:00:34,009 --> 00:00:38,004 from TCP port 20 for the data transfer. 12 00:00:38,004 --> 00:00:39,008 In most situations, 13 00:00:39,008 --> 00:00:42,002 a client's machine will be behind a firewall 14 00:00:42,002 --> 00:00:44,001 or utilize a software firewall, 15 00:00:44,001 --> 00:00:46,003 which will prevent incoming connections. 16 00:00:46,003 --> 00:00:49,006 If this is the case, passive mode should be used. 17 00:00:49,006 --> 00:00:52,007 In passive mode, the server provides a specific port 18 00:00:52,007 --> 00:00:54,004 for the client to connect to. 19 00:00:54,004 --> 00:00:56,006 The client then initiates the outbound connection 20 00:00:56,006 --> 00:00:58,009 to the server for data transfer. 21 00:00:58,009 --> 00:01:02,006 Trivial file transport protocol, or TFTP, 22 00:01:02,006 --> 00:01:04,009 is a light transfer protocol. 23 00:01:04,009 --> 00:01:06,009 Its nature is perfect for devices 24 00:01:06,009 --> 00:01:08,008 that pull their configuration on boot 25 00:01:08,008 --> 00:01:10,008 or as a service for network hardware 26 00:01:10,008 --> 00:01:13,005 to transfer firmware and configurations. 27 00:01:13,005 --> 00:01:17,000 It's used by IP phones, routers, switches, 28 00:01:17,000 --> 00:01:19,008 and many smaller devices attached to networks. 29 00:01:19,008 --> 00:01:22,008 TFTP utilizes UDP port 69, 30 00:01:22,008 --> 00:01:25,007 so it is a connectionless service. 31 00:01:25,007 --> 00:01:27,008 Being that it's a light protocol, 32 00:01:27,008 --> 00:01:32,008 it can't list, rename, delete files or directories. 33 00:01:32,008 --> 00:01:36,007 It also doesn't support any form of authentication. 34 00:01:36,007 --> 00:01:41,001 By default, files are transferred at 512 byte blocks, 35 00:01:41,001 --> 00:01:44,005 but the protocol can negotiate a larger block size. 36 00:01:44,005 --> 00:01:47,007 Each block is transferred in a single packet. 37 00:01:47,007 --> 00:01:51,000 After each block, an acknowledgement is sent back. 38 00:01:51,000 --> 00:01:52,003 If there is no acknowledgement, 39 00:01:52,003 --> 00:01:54,005 then the packet is retransmitted. 40 00:01:54,005 --> 00:01:57,008 Modern file sharing services and systems via browser 41 00:01:57,008 --> 00:02:01,008 have all but killed the need for dedicated FTP servers. 42 00:02:01,008 --> 00:02:03,008 When a user is in a remote area 43 00:02:03,008 --> 00:02:06,006 and just needs to transfer a file somewhere else, 44 00:02:06,006 --> 00:02:10,000 it can still be an invaluable resource.