FTP, TFTP, DNS, NTP, HTTP Basics

Key Takeaways

  • FTP uses TCP (control port 21, data port 20 in active mode) with a reliable, session-oriented transfer; TFTP uses UDP port 69 for simple, lightweight file transfer without rich authentication.
  • DNS resolves human-readable names to IP addresses (primarily UDP/TCP port 53); broken DNS looks like “the network is down” even when IP connectivity works.
  • NTP synchronizes clocks across devices (UDP 123) so logs, certificates, and authentication timestamps remain trustworthy.
  • HTTP (TCP 80) and HTTPS (TCP 443) carry web applications and many device GUIs; prefer HTTPS for management and user data protection.
  • HCIA scenarios combine these services with ACLs, NAT, and VRP file operations—know ports, reliability differences, and which service solves which operational problem.
Last updated: July 2026

FTP, TFTP, DNS, NTP, HTTP Basics

Quick Answer: FTP (TCP 21/20) is reliable and feature-rich; TFTP (UDP 69) is simple and connectionless. DNS (port 53) maps names to IPs. NTP (UDP 123) keeps clocks aligned. HTTP/HTTPS (80/443) deliver web apps and management UIs—use HTTPS whenever credentials or sensitive data are involved.

Routing and switching move packets, but operators still depend on network services to load images, resolve names, timestamp logs, and open management pages. HCIA-Datacom expects rapid recall of how FTP differs from TFTP, what DNS and NTP provide, and how HTTP versus HTTPS affects security. Earlier port tables listed numbers; this section focuses on behavior, operational use on Huawei devices, and exam traps when services interact with ACLs and NAT.

Service map for day-2 operations

| Service | Primary ports | Transport | Operator use on campus/edge | |---|---| | FTP | TCP 21 (control), TCP 20 (active data) | TCP | Transfer VRP images, patches, config archives with authentication | | TFTP | UDP 69 | UDP | Quick lab image/config copy; minimal overhead, weaker controls | | DNS | UDP/TCP 53 | Both | Resolve names for users and for device features that call hosts by name | | NTP | UDP 123 | UDP | Sync device clocks to a hierarchy of time servers | | HTTP | TCP 80 | TCP | Unencrypted web apps / some legacy device GUIs | | HTTPS | TCP 443 | TCP | TLS-protected web apps and secure management portals |

When an ACL or firewall question says “allow image download from the jump host,” translate the human task into protocol + port + direction before choosing permit rules.

FTP: reliable file transfer

File Transfer Protocol runs over TCP, so lost segments are retransmitted and a byte stream is delivered in order. Classic model:

  1. Client opens a control connection to the server on TCP 21 for login and commands (GET, PUT, directory listing).
  2. A separate data connection carries the file.
    • Active mode: server typically sources data from TCP 20 toward the client.
    • Passive mode: client initiates the data connection to a server-chosen port (easier through many firewalls).
AttributeFTP characteristic
ReliabilityHigh (TCP)
AuthenticationUsername/password (and richer methods on modern servers)
ComplexityControl + data channels; mode-sensitive firewalls
EncryptionOriginal FTP is clear text—prefer FTPS/SFTP in production
Huawei lab useDevice as FTP client or server for *.cc / software packages

Exam implications:

  • Blocking only TCP 21 may still confuse data channels depending on mode—know that control and data are separate.
  • Credentials on classic FTP can be sniffed; associate-level guidance is to prefer SSH-based SFTP (TCP 22) or other encrypted methods when the stem stresses security.
  • FTP is the right mental default when the scenario needs directory listing, resume, or authenticated bulk transfer rather than a tiny config blip.

TFTP: simple and lightweight

Trivial File Transfer Protocol deliberately strips features:

AttributeTFTP characteristic
PortUDP 69
TransportUDP (no TCP session)
AuthenticationEssentially none in classic TFTP
ReliabilityApplication-level ACKs/retries; no TCP guarantees
Typical payloadFirmware, small configs in lab or constrained environments

Because TFTP is simple, it appears in many bootstrap and lab stories. Because it lacks strong authentication and encryption, it is a poor fit for untrusted networks. HCIA items often contrast:

  • “Need quick unauthenticated lab transfer” → TFTP.
  • “Need reliable authenticated transfer of large images across a WAN” → FTP (or better, SFTP).

Exam trap: Assigning TCP 69 to TFTP, or claiming TFTP uses the same control/data split as FTP. TFTP is UDP 69 and does not use FTP’s dual TCP channels.

DNS: resolving names to addresses

Users type www.example.com, not 93.184.216.34. Domain Name System (DNS) stores resource records and answers queries from resolvers.

Query path (simplified)What happens
Stub resolver on PCAsks configured DNS server (often learned via DHCP)
Recursive resolverWalks hierarchy if needed (root → TLD → authoritative)
ResponseReturns A/AAAA (and other) records; client caches per TTL

Transport notes:

  • Most ordinary queries use UDP 53.
  • TCP 53 appears for large responses and zone transfers between servers.

Operational failures that look like “Internet is broken”:

User symptomUnderlying issue
Browse by name fails; ping by IP worksDNS server unreachable, wrong DHCP DNS option, or ACL blocking 53
Only some names failAuthoritative or cache problem for that zone
Slow first page loadTiming out on primary DNS before secondary

On Huawei networks, ensure DHCP pools hand out reachable DNS IPs, and that security policies permit client → DNS server traffic. Devices themselves may need DNS if features reference hostnames (logging hosts, controllers, license portals).

NTP: time synchronization

Network Time Protocol keeps clocks aligned. Accurate time is not cosmetic:

DependencyWhy time matters
Log correlationIncident timelines across routers, switches, firewalls, and servers
Certificates / TLSValidity windows; wrong clocks break HTTPS and secure management
Authentication systemsKerberos and some AAA methods are time-sensitive
Scheduled jobsConfig backup or script windows fire at the wrong moment

NTP uses UDP 123. Devices act as clients toward upstream servers and may serve downstream peers in a hierarchy (stratum levels). HCIA-level expectations:

  1. Know why NTP exists (logs, security, consistency).
  2. Know the port and that it is UDP.
  3. Recognize symptoms of wrong time (TLS failures, confusing log order) as possible NTP issues.

Prefer reliable internal NTP sources or trusted Internet pools depending on design policy; random public servers without oversight can be a governance concern, but the exam cares more about protocol role than vendor pool URLs.

HTTP and HTTPS basics

HTTP is the application protocol of the web. HTTPS is HTTP over TLS.

FeatureHTTPHTTPS
Default portTCP 80TCP 443
EncryptionNoneTLS-protected
Integrity / authenticityWeak on the wireCertificate-based server auth (and optional client certs)
Management useLegacy device Web UIsPreferred for modern GUIs and user apps
ACL implicationPermit 80 only if clear text is acceptablePermit 443 for secure web

Campus relevance:

  • User applications (portals, SaaS) overwhelmingly need 443 outbound through NAT/Easy IP.
  • Device web management should not sit on the open Internet over clear HTTP when avoidable.
  • Captive portals and WLAN guest flows often intermingle HTTP redirects with HTTPS—know both ports appear in ACL designs.

Exam trap: Claiming HTTPS uses UDP, or swapping 80/443. Another trap: assuming NAT Server for a web server should map port 80 when the stem clearly specifies HTTPS only—map 443 unless both are required.

Putting services together with NAT, DHCP, and ACLs

Real tickets rarely isolate one protocol:

  1. PC receives IP/gateway/DNS via DHCP.
  2. User opens HTTPS site → DNS query (53) then TCP 443 through Easy IP.
  3. Engineer upgrades a switch → FTP/TFTP pull of a new image; confirm ACL allows the chosen method.
  4. After change, logs disagree across devices → check NTP.
  5. Partner must reach internal web tools → NAT Server for 443 plus DNS name pointing at the public IP.
GoalService + related feature
Hosts autoconfigureDHCP (+ correct DNS/gateway options)
Share InternetEasy IP / source NAT
Publish web appNAT Server + HTTPS
Copy image in labTFTP or FTP
Align timestampsNTP
Block lateral threatsACLs on ports 21/69/80/443/53 as policy dictates

FTP vs TFTP decision table (memorize)

QuestionPrefer FTPPrefer TFTP
Need authentication / accounts?YesNo (classic)
Large image over lossy path?Better (TCP)Riskier
Simplest client in tiny ROM environment?HeavierOften available
Untrusted network?Still encrypt (SFTP/FTPS)Avoid
Exam keyword “trivial” / “UDP 69”NoYes

Troubleshooting vignettes

Stem cueLikely focus
“Ping to 8.8.8.8 works; browser fails”DNS
“Certificate not yet valid” on device GUINTP/clock
“Transfer aborts on large file; small file OK over same tool”Reliability path—consider TCP FTP vs UDP TFTP
“Internet users cannot open company portal; staff browse fine”NAT Server / inbound ACL, not DNS alone
“Only HTTP works; HTTPS times out”ACL or NAT port mapping missing 443

Practice goals for this chapter

  1. Recite FTP vs TFTP ports, transport, and security posture in one breath each.
  2. Trace a failed web session: DHCP options → DNS → TCP 443 → NAT.
  3. Explain two business reasons to deploy NTP on every managed Huawei device.
  4. Write an ACL intent list for allowing DNS and HTTPS for a user VLAN while denying clear-text device Telnet.

DHCP assigns addresses, NAT translates them at the edge, and these services keep files, names, time, and web applications usable. Together they form the network-services slice of the HCIA-Datacom blueprint—expect scenario questions that combine at least two of them on a single topology.

Test Your Knowledge

Which statement correctly compares FTP and TFTP for HCIA-Datacom?

A
B
C
D
Test Your Knowledge

A PC can ping 203.0.113.10 by IP address but cannot open https://portal.example.com even though the server is online. Which service is the most likely failure point?

A
B
C
D
Test Your Knowledge

Why do HCIA designs emphasize NTP on routers and switches?

A
B
C
D
Test Your Knowledge

Which default TCP ports correspond to HTTP and HTTPS respectively?

A
B
C
D