Technical Anshu
Tutorials Blog
📡 TFTP Basics

What TFTP Is Used For and When to Use FTP or SFTP Instead

TFTP looks like a bad file protocol — no login, no encryption, no folders. Inside switches, routers and boot firmware it is exactly the right tool. Here is what it is genuinely for, what it must never be used for, and how it honestly compares with FTP and SFTP.

✍️ Technical Anshu🪟 Windows 10 / 11⏱️ 7 minute read
🎥 Watch the full video — TFTP server setup with the GUI tool, step by step

Every protocol survives because it fits one job perfectly. TFTP's job is moving a small file to or from a device that has almost no software on it — a switch booting up, a router recovering, a PC starting over the network. It was designed in 1981 to fit inside tiny boot code, and that is still why your switch offers copy running-config tftp: and not an SFTP menu. Understanding that one fact tells you both where TFTP shines and where using it would be a mistake.

Right Tool for the Job — TFTP vs FTP vs SFTP
TFTP — no login, no encryption, UDP 69DEVICE JOBS
Best at: firmware files, config backup/restore, PXE boot files on a LANLAN only
FTP — login yes, encryption no (plain FTP)LEGACY
Best at: old systems that offer nothing else — passwords travel in plain textCaution
SFTP — login yes, fully encrypted, TCP 22SENSITIVE FILES
Best at: anything crossing networks you do not fully controlDefault choice
The honest summary: TFTP wins only where the device itself cannot do anything smarter — inside one trusted LAN.
1

Job 1 — Backing Up and Restoring Device Configurations

This is the classic TFTP job, and the one in the video series. A switch or router holds its whole personality in one configuration file, and its copy commands speak TFTP natively. Thirty seconds of work gives you a text file you can restore after a failed change or a dead device. No other protocol is offered by as many devices, which is the entire reason TFTP is still alive.

2

Job 2 — Firmware and OS Images for Network Devices

Many switches, routers, wireless controllers and IP phones load their firmware image from a TFTP server. The device's bootloader contains just enough code to ask the network for one file — TFTP is small enough to be that code. The file sizes are modest, the network is local, and the transfer either completes with a correct checksum or the device refuses the image.

3

Job 3 — PXE Network Booting

When a PC boots from the network, DHCP tells it which server holds the boot file, and the file itself is fetched by TFTP. That is how imaging systems start hundreds of machines. Notice the pattern: in PXE, as in firmware, TFTP is used at the one moment when the machine has no operating system yet — there is nothing on it that could run a bigger protocol.

4

What TFTP Must Never Be Used For

The honesty list is short and absolute:

5

TFTP vs FTP vs SFTP — the Honest Differences

TFTP — no authentication, no encryption, UDP port 69, almost no features. Exists because boot firmware can implement it in a few kilobytes.

FTP — has usernames and passwords, but plain FTP sends them unencrypted, along with the data. It survives in legacy equipment. If a device offers FTP and TFTP only, FTP is not automatically "more secure" — on a hostile network both are open; on a trusted LAN both are workable, and TFTP is simpler.

SFTP — a completely different protocol riding inside SSH: real login, full encryption, integrity checks, TCP port 22. This is the correct default for file transfer between computers, and the only one of the three that should ever cross a network you do not control. Its limitation is the mirror image of TFTP's strength: a switch bootloader cannot contain an SSH stack, which is why devices still speak TFTP.

6

The Rule to Remember

If the device itself is asking for the file — firmware, config, boot image — and everything stays on one trusted LAN, TFTP is the right and normal tool. If a person is moving files, or anything leaves that LAN, use SFTP. Choosing between them is not about old versus new; it is about which side of that line your job sits on.

🔴 Simple test before any transfer: could a stranger who plugged into this network read this file without any password? With TFTP the answer is always yes. If that thought bothers you for this file, the job belongs on SFTP — or the transfer waits until you are on a network you trust.

🎥 Watch the Complete Video Guide

The full TFTP server setup — installation, root folder, firewall and a live transfer — is shown step by step in the video.

▶️ Watch Full Video
❓ Common Questions (FAQ)

Why do switches still use TFTP instead of something modern?

Because of size. A switch or router must be able to fetch firmware and configurations from its smallest boot code, before its full operating system loads. TFTP is tiny enough to live in that boot code and simple enough to be reliable there. An SSH/SFTP stack is far too large for that layer, so TFTP remains the device-level standard.

Is FTP safer than TFTP because it has a password?

Only slightly, and not in the way most people assume. Plain FTP does ask for a login, but it sends the password and the data unencrypted, so anyone watching the network can read both. On a trusted LAN either protocol is acceptable for device work; on an untrusted network neither is — use SFTP.

Can TFTP transfer large firmware files reliably?

For normal device firmware, yes. The protocol acknowledges every block, and modern implementations negotiate larger block sizes to speed things up. A failed or corrupted transfer is detected because the block sequence breaks. For very large files between computers, though, TFTP is simply the wrong tool — SFTP is faster and resumable.

This guide is based on the TFTP Server Setup video by Technical Anshu • Stuck on a step? Ask in the video comments — answers happen there 🙏