Protocols of Internet, World Wide Web, URL, Web Server, Web Browser
1. Internet Protocols
A protocol is a set of rules that defines the format, order and meaning of messages exchanged between computers. The Internet uses the TCP/IP suite, organised in four layers.
| Protocol | Port | Purpose |
|---|---|---|
| HTTP | 80 | Transfer web pages |
| HTTPS | 443 | HTTP over TLS (encrypted) |
| FTP | 20/21 | File transfer |
| SMTP | 25 | Send e-mail |
| POP3 / IMAP | 110 / 143 | Receive e-mail |
| DNS | 53 | Name to IP resolution |
| Telnet / SSH | 23 / 22 | Remote login (SSH is secure) |
| DHCP | 67/68 | Automatic IP assignment |
| TCP | – | Connection-oriented, reliable, ordered |
| UDP | – | Connectionless, low overhead (video, DNS) |
| IP | – | Addressing and routing of packets |
2. World Wide Web (WWW)
The WWW is a system of interlinked hypertext documents (web pages) stored on web servers, identified by URLs, transferred by HTTP, written in HTML, and viewed in a browser. Invented by Tim Berners-Lee at CERN (1989–91).
Core building blocks (the "three pillars"):
- URL – where the resource is.
- HTTP – how it is fetched.
- HTML – what it contains.
3. URL (Uniform Resource Locator)
A URL is the address that uniquely identifies a resource on the Internet and tells how to reach it. (A URL is a kind of URI; URN names a resource, URL locates it.)
General syntax
scheme://user:password@host:port/path?query#fragment
| Part | Example | Meaning |
|---|---|---|
| Scheme / protocol | https |
How to access (http, https, ftp, mailto, file) |
| Host | www.example.com |
Domain name or IP of server |
| Port | 8080 |
Optional; default 80 (http) / 443 (https) |
| Path | /blog/post.php |
Location of the resource on server |
| Query | ?id=7&lang=en |
Parameters (name=value pairs separated by &) |
| Fragment | #top |
A section inside the page; handled by browser only |
Absolute vs relative URL
- Absolute: full address,
https://beu.ac.in/notice/a.pdf. - Relative: relative to the current page,
../notice/a.pdf.
URL encoding
Unsafe characters are written as % + hex code, e.g. space → %20, & → %26.
Parsing a URL with JavaScript (tested)
const u = new URL("https://www.example.com:8080/blog/post.php?id=7&lang=en#top");
console.log(u.protocol); // https:
console.log(u.hostname); // www.example.com
console.log(u.port); // 8080
console.log(u.pathname); // /blog/post.php
console.log(u.searchParams.get("id")); // 7
console.log(u.hash); // #top
4. Web Server
A web server is software (and the machine running it) that accepts HTTP requests and returns responses: static files (HTML, CSS, images) or dynamic output generated by scripts (PHP, Node.js, ASP).
| Server | Notes |
|---|---|
| Apache HTTP Server | Open source, modular, very common with PHP (XAMPP/LAMP) |
| Nginx | Fast, event-driven, used as reverse proxy and load balancer |
| IIS | Microsoft; runs ASP/ASP.NET |
| Node.js (Express) | JavaScript on server |
Functions: listen on a port, parse requests, map URL to file/script, run server-side code, send status code + headers + body, log requests, enforce security (HTTPS, authentication).
HTTP request and response
GET /index.html HTTP/1.1
Host: www.beu.ac.in
Accept: text/html
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 1250
<html>...</html>
| Method | Use |
|---|---|
| GET | Retrieve a resource (parameters in URL) |
| POST | Send data in body (forms, login) |
| PUT / DELETE | Replace / remove a resource |
| HEAD | Headers only |
| Status | Meaning |
|---|---|
| 200 | OK |
| 301 / 302 | Moved permanently / temporarily |
| 400 / 401 / 403 / 404 | Bad request / unauthorised / forbidden / not found |
| 500 / 503 | Server error / unavailable |
5. Web Browser
A web browser is client software that requests resources by URL, interprets HTML/CSS/JavaScript and displays the result.
Examples: Chrome, Firefox, Safari, Edge (older: Mosaic, Netscape Navigator, Internet Explorer – legacy).
Main components:
- User interface – address bar, tabs, buttons.
- Browser engine – coordinates UI and rendering engine.
- Rendering engine – parses HTML/CSS and paints the page (Blink, Gecko, WebKit).
- Networking – HTTP/HTTPS requests.
- JavaScript interpreter – runs scripts (V8, SpiderMonkey).
- Data storage – cookies, localStorage, cache.
6. Static vs Dynamic website
| Static | Dynamic |
|---|---|
| Fixed HTML files | Page built at request time by server script |
| No database | Usually uses a database |
| Fast, simple | Flexible, personalised |
Frequently Asked Questions
QWhat is a protocol? Name four Internet protocols.
A protocol is a set of rules for communication. Examples: HTTP, FTP, SMTP, TCP/IP, DNS.
QWhat is the difference between TCP and UDP?
TCP is connection-oriented, reliable and ordered (web, e-mail); UDP is connectionless, unreliable but fast (streaming, DNS, VoIP).
QDefine URL and explain its parts. (Short note, asked in BEU 2026)
A URL (Uniform Resource Locator) is the address of a resource on the Internet. General form: scheme://host:port/path?query#fragment. Scheme says the protocol, host the server, port the optional port number, path the resource location, query carries parameters and fragment points to a part of the page. Example: https://www.beu.ac.in/results/index.php?sem=6#top. Absolute URLs give the full address; relative URLs depend on the current page.
QDifference between URL and URI?
URI identifies a resource (by name or location); URL is a URI that also tells how and where to reach it.
QWhat is the role of DNS in browsing?
It translates the domain name into the server's IP address before the browser connects.
QWhat is a web server? Name any three.
Software that serves web content over HTTP. Examples: Apache, Nginx, IIS.
QDifference between GET and POST?
GET sends data in the URL (visible, limited, bookmarkable, for retrieval); POST sends data in the body (hidden, large, for changes).
QWhat does HTTP status 404 mean?
The requested resource was not found on the server.
QExplain how a web page is fetched when you type a URL.
Browser parses URL → DNS lookup → TCP (and TLS) connection → HTTP GET → server responds → browser renders HTML and loads CSS, JS, images.
QWhat is the difference between a browser and a web server?
Browser is the client that requests and displays pages; web server stores and delivers them.