Application Layer · Computer Networks

World Wide Web (WWW)

Watch lectures
SVGVector Architecture Diagram (SVG)
COMPUTER NETWORKS · Module 5 · Application Layer★ High PriorityIT Sem 6 · Code 100602World Wide Web (WWW)MNEMONICWWW = Browser + Server + URL + HTTP + HTML.Pages come as Static, Dynamic or Active documents.Core BreakdownOverviewThe WWW is a distributed hypertext service: pages linked by hyperlinks over the Internet.Invented by Tim Berners-Lee at CERN (1989); uses client-server architecture.BrowserClient program with a controller, client protocol (HTTP) and interpreters (HTML, JavaScript).Sends requests, receives pages, renders them for the user.Web ServerStores documents and replies to requests; listens on TCP 80 (HTTP) or 443 (HTTPS).Efficient servers use caching and multithreading to serve many clients.URLUniform Resource Locator: protocol://host:port/path?query#fragment.Example: https://www.site.com:443/dir/page.html. It names the resource and how to fetch it.Static PageFixed content stored in a file on the server; every user sees the same page.Written in HTML (HyperText Markup Language); fast, but cannot change by itself.Dynamic PageServer runs a program (CGI, PHP, servlet) per request and sends the generated HTML.Content can differ per user, time or database, e.g. a bank statement.Active PageA program (Java applet, JavaScript) is sent to the browser and runs on the client.Gives animation and interactivity without going back to the server.CachingBrowser or proxy keeps copies; conditional GET sends If-Modified-Since.Server answers 304 Not Modified if unchanged, which saves bandwidth and time.Diagram: WWW Request PathBrowser(client)Proxy / Cache(optional)Web Serverport 80 / 443requestrequestresponseresponseURL anatomyhttps://www.site.com:443/dir/page.html?id=7#topprotocolhostportpathquery # fragmentSTATICfixed contentDYNAMICbuilt per requestACTIVEruns at clientStatic = HTML file · Dynamic = CGI / PHP / servlet at serverActive = Java applet / JavaScript runs in the browserCache hit: browser/proxy answers without the origin serverConditional GET: If-Modified-Since → 304 Not Modified⚠️ Exam Traps & Viva Favorites① Static, Dynamic, Active?Static: fixed file. Dynamic: built by aserver program per request. Active: coderuns at the CLIENT (applet, JavaScript).② Parts of a URL?Protocol, host (domain), port, path, plusquery and fragment. Default ports: 80 forhttp and 443 for https.③ WWW vs Internet?The Internet is the network. The Web is aservice running on it, using HTTP andHTML. E-mail and FTP are other services.Tip: Static · Dynamic · ActiveMaster Revision Table(learn it row by row!)Page typeCreatedRuns onTechnologyExampleStaticWritten in advanceNothing runsHTMLAbout-us pageDynamicOn every requestWeb serverCGI, PHP, servletBank statementActiveSent as a programBrowser (client)Applet, JavaScriptAnimated chartURLn/aNames a resourceprotocol://host/pathhttps://site.com/aCacheCopy of a responseBrowser / proxyIf-Modified-Since304 Not ModifiedQUICK FACTSPorts: HTTP 80 · HTTPS 443 · Language: HTML · Transfer: HTTPURL = protocol://host:port/path?query#fragmentInventor: Tim Berners-Lee (CERN, 1989) · Browser = client, Web server = serverVERIFIED★ Golden rule: Static = fixed, Dynamic = server-built, Active = in browser.

World Wide Web (WWW) Architecture


1. Concept and Origin of the Web

The World Wide Web (WWW) is a distributed, global hypermedia information system invented in 1989 by Sir Tim Berners-Lee at CERN.

While the "Internet" is the physical network infrastructure (cables, routers, packets, and IP addressing), the "Web" is an application service that runs on top of the Internet, enabling users to traverse interlinked multimedia documents via Hyperlinks.

MermaidDiagram
Rendering diagram…

2. Uniform Resource Identifiers (URI & URL)

A Uniform Resource Identifier (URI) is a standardized string that uniquely identifies an abstract or physical resource on the Internet. A Uniform Resource Locator (URL) is a specific URI that also specifies the access mechanism (protocol) and location:

SVGVector Architecture Diagram (SVG)
https://www.example.com:443/products/items.html?category=books#reviews Protocol Hostname Port Path Query Fragment

Components of a URL:

  1. Protocol / Scheme: The application protocol used to retrieve the resource (http, https, ftp).
  2. Host: The domain name or IP address of the web server (www.example.com).
  3. Port: Optional port number (defaults to 80 for HTTP, 443 for HTTPS).
  4. Path: The hierarchical file directory or logical route on the server (/products/items.html).
  5. Query String: Parameter key-value pairs passed to the server (?category=books&page=2).
  6. Fragment: Anchor pointing to a specific internal heading within the HTML page (#reviews).

3. Web Architecture: Static, Dynamic, and Active Pages

SVGVector Architecture Diagram (SVG)
PAGE TYPE GENERATION LOCATION TECHNOLOGIES Static Pre-written on server hard drive Plain HTML, CSS, static images Dynamic Server-side script on request Node.js, Python/Django, PHP, SQL Active Client-side script inside browser JavaScript, React, WebAssembly
  1. Static Web Documents:
    • Fixed files stored on the server file system.
    • The server retrieves the file from disk and returns it byte-for-byte; every visitor sees the exact same content.
  2. Dynamic Web Documents (Server-Side):
    • Generated dynamically by a server program (via CGI, PHP, ASP.NET, Node.js) in response to a user request.
    • Content changes based on input parameters, session cookies, and database state (e.g., an Amazon shopping cart).
  3. Active Web Documents (Client-Side):
    • The server returns an executable script (JavaScript) that runs inside the user's local browser runtime engine, manipulating the Document Object Model (DOM) and executing animations or single-page apps (SPAs) without page reloads.

4. Web Caching & Proxy Servers

To reduce transit latency and bandwidth consumption on backbone links, web architectures employ Proxy Caches:

MermaidDiagram
Rendering diagram…

Conditional GET & Validation:

When a client requests a previously cached object, it includes validation headers to verify if the file has changed:

  • If-Modified-Since: Client sends the timestamp of its cached copy.
  • ETag (Entity Tag): A cryptographic hash of the file content.
  • If the file has not changed, the server returns 304 Not Modified with zero payload body, saving massive bandwidth!

Frequently Asked Questions

QDistinguish between the Internet and the World Wide Web.

The Internet is the global physical and logical networking infrastructure connecting computers (OSI Layers 1–4). The World Wide Web is an application-layer hypermedia service (HTTP/HTML) running on top of the Internet.

QName and describe the three core components that make the Web work.

URL (identifies and locates web resources), HTML (formats and structures hypermedia content), and HTTP (transports web pages between clients and servers).

QWhat is the HTTP 304 Not Modified status code?

It is returned by a web server in response to a conditional GET request, informing the client that its cached copy of the resource is still fresh and can be displayed without re-downloading the file over the network.

QDifferentiate static, dynamic and active web documents.

Static documents are fixed files returned as-is. Dynamic documents are generated by a server-side program per request. Active documents ship a script (e.g., JavaScript) that runs inside the client's browser.

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.

← All Computer Networks modules