- 2073 Shrawan · 6 marks
Web and file server communication
Short answer
Web servers use HTTP/HTTPS over TCP ports 80/443, while file servers use FTP on ports 20/21, TFTP on UDP port 69, or SMB/NFS. DNS resolves names, TCP/IP establishes connections, and IP routes packets over the network.
How are web server and file server communication possible in a network? Explain with the protocols used.
A web server stores web pages and serves them to browsers; a file server stores files for download/upload and sharing. Both communicate with clients over the network using application-layer protocols that run on TCP/IP.
Client (browser / FTP client)
| 1. DNS: name -> IP (UDP 53)
| 2. TCP connection (port 80/443 or 21)
v
Web server (HTTP) File server (FTP / SMB / NFS)
Web server communication
- The user types a URL. The client resolves the host name by DNS.
- A TCP connection (three-way handshake) is opened to port 80 (HTTP) or 443 (HTTPS, using TLS).
- The browser sends an HTTP request (
GET /index.html HTTP/1.1). - The server returns an HTTP response with status code and the page; the browser also requests images and scripts.
- The connection is closed or kept alive.
File server communication
- FTP: two TCP connections: control on port 21 (commands such as USER, PASS, LIST, RETR, STOR) and data on port 20. SFTP/FTPS add security.
- TFTP: simple file transfer over UDP port 69.
- SMB/CIFS (Windows) and NFS (Unix): file sharing in a LAN.
| Server | Protocol | Transport | Port |
|---|---|---|---|
| Web | HTTP / HTTPS | TCP | 80 / 443 |
| File | FTP | TCP | 20, 21 |
| File | TFTP | UDP | 69 |
| Name lookup | DNS | UDP/TCP | 53 |
Below the application layer, IP routes the packets and Ethernet/Wi-Fi carries the frames, so both servers can be reached from anywhere in the network.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Email server and its protocols · Computer Networks and Security, chapter 6 · asked 3×
- Short note: Web server · Computer Networks and Security, chapter 6
- Client-server vs peer-to-peer · Computer Networks and Security, chapter 1
- Proxy server and bandwidth reduction · Computer Networks and Security, chapter 6
- Network design for 3-star hotel · Computer Networks and Security, chapter 1
- Web-mail to POP3 message transfer protocols · Internet and Intranet, chapter 3
- HTTP request methods; web server and virtual hosting · Internet and Intranet, chapter 4
- Uses of microwaves in communication and protocols · RF and Microwave Engineering, chapter 1
- Reliable client-server communication · Distributed System, chapter 9