Chapter 1
Chapter 1
Chapter 1
Objectives
1 Definitions and
History 2 Internet Protocols
3 Client-Server Model
4 Where is the
Internet?
7 Hypertext Transfer
Protocol (HTTP) 8 Web Servers
1
4/13/2024
Section 1 of 8
Internet = Web?
The answer is no
Web
Online
gaming
FTP
2
4/13/2024
Communication Definitions
We will begin with the telephone
Circuit Switching
3
4/13/2024
Circuit Switching
Its Limitations
ARPANET
The beginnings of the Internet
4
4/13/2024
Packet Switching
Packet Switching
Isn’t this more complicated?
10
5
4/13/2024
11
TCP/IP
Rides to the rescue
12
6
4/13/2024
Tim Berners-Lee
I meant Sir Tim Berners-Lee
13
14
7
4/13/2024
W3C
The World Wide Web Consortium
15
16
8
4/13/2024
17
What is an “Intranet”?
A short digression
18
9
4/13/2024
What is an “Intranet”?
19
20
10
4/13/2024
21
22
11
4/13/2024
23
24
12
4/13/2024
25
26
13
4/13/2024
27
28
14
4/13/2024
29
1-tier architecture
Desktop Application
30
15
4/13/2024
2-tier architecture
Client-Server Architecture
31
3-Tier Architecture
32
16
4/13/2024
33
34
17
4/13/2024
35
36
18
4/13/2024
Presentation Layer
Static or dynamically generated content rendered by the
browser (front-end)
Logic Layer
A dynamic content processing and generation level
application server (middleware)
Data Layer
A database, comprising both data sets and the database
management system or DBMS that manages and provides
access to the data (back-end)
37
N-tier architectures
Client
Firewall
Proxy
Presentation Layer
Web Server
Business Layer
Application Server Backend
(Business Logic, Connectors,
(Legacy Application,
Personalization, Data Access)
Enterprise Info System)
Data Layer
DBMS B2B
38
19
4/13/2024
39
Web 1.0
• It is a system of interlinked, hypertext pages or documents accessed
via INTERNET.
• It is a Read Only Web.
• According Berners-Lee, It allowed to search for information and read
it.
• It was all about static content.
• It was a one way publishing of content without any real interaction
between readers and publishers
40
20
4/13/2024
Web 2.0
Its meaning for users and its applications
41
Web 2.0
Its meaning for developers
42
21
4/13/2024
Web 3.0
Semantic Web
• Web 3.0 is defined as the new and upcoming iteration of the world
wide web, which is a public network built on distributed ledger
technology and a semantic architecture to enable decentralization,
personalization, immersiveness, and a token-driven economy
• websites and apps can manage data in a human-like way
• The utilization of blockchain technology by Web 3.0 has the potential
to transform internet usage.
• Users maintain ownership of their information and content, allowing
them to trade or sell their data without relinquishing ownership,
compromising privacy, or depending on intermediaries.
• Web 3.0 applications that stand out include integrated gaming, 3D
portals, and multi-user virtual environments.
43
Section 2 of 8
INTERNET PROTOCOLS
Randy Connolly and Ricardo Hoar Fundamentals of Web Development
44
22
4/13/2024
What’s a Protocol?
45
A Layered Architecture
46
23
4/13/2024
47
Link Layer
Save this for your networking course
48
24
4/13/2024
Internet Layer
49
50
25
4/13/2024
51
IP Addresses
Two types
52
26
4/13/2024
IP Addresses
Two types
53
54
27
4/13/2024
IP Addresses
Inside of networks is different
55
Transport Layer
56
28
4/13/2024
Transport Layer
57
TCP Packets
58
29
4/13/2024
Application Layer
59
Section 3 of 8
CLIENT-SERVER MODEL
Randy Connolly and Ricardo Hoar Fundamentals of Web Development
60
30
4/13/2024
Client-Server Model
What is it?
61
Request-Response Loop
62
31
4/13/2024
63
Peer-to-Peer Model
64
32
4/13/2024
Server Types
A server is rarely just a single computer
65
Server Types
66
33
4/13/2024
67
Server Farms
Have no cows
68
34
4/13/2024
Server Farm
69
Server Farms
70
35
4/13/2024
Server Farms
71
Server Racks
72
36
4/13/2024
Server Rack
73
Data Centers
74
37
4/13/2024
75
Data Centers
Where are they?
76
38
4/13/2024
77
Section 4 of 8
78
39
4/13/2024
79
80
40
4/13/2024
In the House
81
Routers
82
41
4/13/2024
83
84
42
4/13/2024
85
To the Provider
86
43
4/13/2024
87
88
44
4/13/2024
89
90
45
4/13/2024
91
IXPs
Not just for large networks
92
46
4/13/2024
Real IXPs
93
94
47
4/13/2024
Section 5 of 8
DOMAIN NAME SYSTEM (DNS)
95
96
48
4/13/2024
DNS Overview
97
Domain Levels
Top Level Domain (TLD)
Third-Level Domain
server1.www.funwebdev.com
98
49
4/13/2024
Types of TLDs
99
Name Registration
100
50
4/13/2024
101
102
51
4/13/2024
103
Section 6 of 8
UNIFORM RESOURCE
LOCATORS/IDENTIFIERS AND
NAME (URL URI AND URN)
104
52
4/13/2024
URL
Uniform Resource Locator
A URL is a specific type of URI that not only identifies a resource on the
internet but also provides a method to locate it by describing its primary
access mechanism, usually its network location.
In order to allow clients to request particular resources from the server, a
naming mechanism is required so that the client knows how to ask the
server for the file.
For the web that naming mechanism is the Uniform Resource Locator
(URL). It consists of two required components: the protocol used to
connect, and the domain (or IP address) to connect to. Optional
components of the URL are the path (which identifies a file or directory to
access on that server), the port to connect to, a query string, and a
fragment identifier.
105
URL Contd.
Protocol
The first part of the URL is the protocol that we are using. Recall that in Section 1.2 we
listed several application layer protocols on the TCP/IP stack. Many of those protocols can
appear in a URL, and define what application protocols to use i.e., ftp, http, https etc.
Domain
The domain identifies the server from which we are requesting resources. Since the DNS
system is case insensitive, this part of the URL is case insensitive. Alternatively, an IP
address can be used for the domain.
Port
The optional port attribute allows us to specify connections to ports other than the defaults
defined by the IANA authority. A port is a type of software connection point used by the
underlying TCP/IP protocol and the connecting computer. If the IP address is analogous to a
building address, the port number is analogous to the door number for the building.
106
53
4/13/2024
URL Contd
Path
107
URL Contd
Query String
108
54
4/13/2024
URL Contd
Fragment
109
URI
Uniform Resource Identifier
Scope: All URLs and URNs are URIs, but not all URIs are URLs or URNs.
Key Characteristics:
110
55
4/13/2024
URN
Uniform Resource Name
111
Summary of Differences:
• URL: Specifies both the identity and the location of a resource (How and
Where).
• URI: A more comprehensive term covering both URLs (identifying and
locating) and URNs (just identifying).
• URN: Focuses only on uniquely identifying a resource, not on where it is
located or how to access it.
In practical terms, when you’re browsing the internet, you're mostly dealing
with URLs. URIs and URNs come more into play in specific contexts like
software development, digital libraries, and systems where unique and
persistent identification of a resource is crucial.
112
56
4/13/2024
Section 7 of 8
HYPERTEXT TRANSFER
PROTOCOL (HTTP)
Randy Connolly and Ricardo Hoar Fundamentals of Web Development
113
HTTP
114
57
4/13/2024
HTTP
115
Web Requests
116
58
4/13/2024
117
118
59
4/13/2024
119
Section 8 of 8
WEB SERVERS
Randy Connolly and Ricardo Hoar Fundamentals of Web Development
120
60
4/13/2024
Web Servers
121
Web Stack
122
61
4/13/2024
123
124
62
4/13/2024
3 Client-Server Model
4 Where is the
Internet?
7 Hypertext Transfer
Protocol (HTTP) 8 Web Servers
125
63