What are the differences between FTP and TFTP

青灯夜游
Release: 2018-12-10 09:24:31
original
32683 people have browsed it

What are the differences between FTP and TFTP? This article will give you a brief introduction to FTP and TFTP, so that you can understand the difference between FTP and TFTP. I hope it will be helpful to you.

What are the differences between FTP and TFTP

What is FTP?

FTP, which stands for File Transfer Protocol, is a standard Internet protocol, a client-server protocol. It moves information from the computer the user is working on to the server hosting the website; simply put: a way to transfer files between computers.

Example: Users can upload files to an FTP server through an FTP client (a program) on one computer, and download files from an FTP client on another computer.

What are the differences between FTP and TFTP

Therefore, FTP is occasionally used as a way to share files. One person can upload a file to an FTP server and then share a link with another person so that the other person can download the file to their computer.

What is TFTP?

TFTP, which stands for Trivial File Transfer Protocol, is a simple high-level protocol for transferring files.

TFTP is an Internet software utility, a technology for transferring files between network devices, and a simplified version of the File Transfer Protocol (FTP). It can be used to transfer files which is easier to use but less feature-rich than File Transfer Protocol (FTP) and is mainly used for reading and writing files/mails from remote servers.

The difference between FTP and TFTP

1. Security difference

FTP Supports login security with appropriate authentication and encryption protocols that require communication with FTP authentication during connection establishment.

TFTP is an open protocol that lacks security and does not have an encryption mechanism in place. No authentication is required when communicating with TFTP, which means that transferring files over the Internet on an open server is very dangerous and data packets may will be lost.

2. The difference between transport layer protocols

FTP uses TCP as the transport layer protocol to send data from control commands through a separate TCP connection.

TFTP uses UDP as the transport layer protocol. Because UDP is a connectionless protocol, TFTP does not use connections.

What are the differences between FTP and TFTP

3. The difference between using ports

FTP uses 2 ports: TCP port 21, which is a listening port; 20 or higher TCP port 1024 or higher is used for source connections.

TFTP uses only one port with stop and wait mode: port 69.

4. Differences in RFC

FTP is based on the RFC 959 document, with other RFCs covering security measures; TFTP is based on the RFC 1350 document.

5. Differences in executing commands

FTP has many commands that can be executed (get, put, ls, dir, lcd) and can list directories, etc.

TFTP has only 5 commands that can be executed (rrq, wrq, data, ack, error).

Summary: The above is the entire content of this article, I hope it will be helpful to everyone's study.

The above is the detailed content of What are the differences between FTP and TFTP. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Latest issues
Popular Tutorials
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!