For beginners

Protocols

TCP/IP, HTTP, DNS, DHCP and FTP — in plain language, with visual examples.

A protocol is a set of rules for communication between devices. Some help deliver data; others find a site, obtain settings or transfer a file.

No prior knowledge needed

  1. TCP/IP

    Delivering data across a network

    TCP/IP is a family of communication rules, not one protocol. IP provides addresses and enables packets to travel between networks. TCP provides a reliable byte stream: it preserves order and retransmits lost data.

    Why it matters

    So devices can reach one another and applications receive data in the right order. Not every application uses TCP; the family also includes UDP.

    Simple example
    Computer
    IP: address and route
    Server

    Think of parcels: IP is the address on the box; TCP tracks delivery and order. This is a simplified analogy: TCP delivers bytes, while the application interprets their meaning.

  2. HTTP

    Website requests and responses

    HTTP defines how a browser and web server communicate. The browser requests a page or file; the server returns content and a status code such as 200 or 404.

    Why it matters

    To open websites and fetch application data. HTTPS is HTTP over a connection secured with TLS.

    Simple example
    Browser
    Request → response
    Web server

    You open a website: the browser sends GET /, and the server returns the home page. 200 indicates success; 404 means the requested resource was not found.

  3. DNS

    Finding an address by name

    DNS helps find an IP address from a name. Names are easier for people to remember; computers need addresses to connect. DNS also holds other records, such as mail server records.

    Why it matters

    So you do not have to type a numeric address for every site. If DNS fails, a site may not open by name even when network connectivity exists.

    Simple example
    Website name
    DNS query
    IP addresses

    You enter idacademia.com. Your computer asks its configured DNS server for that name’s addresses, then uses one to connect to the site. The answer may already be cached.

  4. DHCP

    Automatic network settings

    DHCP automatically assigns network settings to a device for a lease period. For IPv4, these commonly include an IP address, subnet mask, default gateway and DNS server addresses.

    Why it matters

    So you do not have to configure every phone and computer manually. In a home network, the router often runs the DHCP server.

    Simple example
    New device
    Settings request
    DHCP server

    You connect a laptop to Wi-Fi. It requests settings from the DHCP server and receives, for example, 192.168.1.10, a mask and gateway. This is an example address, not a guaranteed result on your network.

  5. FTP

    Transferring files

    FTP is a protocol for uploading files to a server and downloading them. It uses TCP and separate connections for commands and data.

    Why it matters

    To move files between a client and server. FTP still appears in older systems, but a secure option is preferable for new tasks.

    Simple example
    Client
    File report.txt
    File server

    In a practice lab, a client uploads report.txt to a server. The command connection controls the transfer; a separate connection carries the file. The FTP mode affects which side opens the data connection.