1 Introduction
1 Introduction
Introduction
Introduction: 1-1
Chapter 1: roadmap
▪ What is the Internet?
▪ What is a protocol?
▪ Protocol layers, service models
▪ A closer look at Internet structure
▪ LANs and WANs
▪ Network core: packet/circuit switching, internet structure
Introduction: 1-2
Chapter 1: roadmap
▪ What is the Internet?
▪ What is a protocol?
▪ Protocol layers, service models
▪ A closer look at Internet structure
▪ LANs and WANs
▪ Network core: packet/circuit switching, internet structure
Introduction: 1-3
The Internet
Billions of connected mobile network
computing devices: national or global ISP
▪ hosts = end systems
▪ running network apps at
Internet’s “edge”
bikes
Gaming devices
Others?
Internet phones diapers
Introduction: 1-5
Internet structure: a “network of networks”
mobile network
enterprise
network
access
net
access
net
access
net
access
net
access access
net access net
net
Introduction: 1-7
Internet structure: a “network of networks”
Option: connect each access ISP to one global transit ISP?
access access
net net
access
net
access
access net
net
access
access net
net
global
access
net
ISP access
net
access
net
access
net
access
net
access
net
access access
net access net
net
Introduction: 1-8
Internet structure: a “network of networks”
But if one global ISP is viable business, there will be competitors …. who will
want to be connected
Internet exchange point
access access
net net
access
net
access
access net
net
IXP access
access net
net ISP A
access
net
IXP ISP B access
net
access ISP C
net
access
net
access
net
peering link
access
net
access access
net access net
net
Introduction: 1-9
Internet structure: a “network of networks”
… and regional networks may arise to connect access nets to ISPs
access access
net net
access
net
access
access net
net
IXP access
access net
net ISP A
access
net
IXP ISP B access
net
access ISP C
net
access
net
access
net
regional ISP access
net
access access
net access net
net
Introduction: 1-10
Internet structure: a “network of networks”
… and content provider networks (e.g., Google, Microsoft) may run their
own network, to bring services, content close to end users
access access
net net
access
net
access
access net
net
IXP access
access net
net ISP A
access ISP C
net
access
net
access
net
regional ISP access
net
access access
net access net
net
Introduction: 1-11
Internet structure: a “network of networks”
Tier 1 ISP Tier 1 ISP Google
IXP IXP IXP
WiFi
Introduction: 1-13
What’s a protocol?
A human protocol and a computer network protocol:
Hi TCP connection
request
Hi TCP connection
response
Got the
time? GET [Link]
2:00
<file>
time
Introduction: 1-15
Host: sends packets of data
host sending function:
▪ takes application message
▪ breaks into smaller chunks, two packets,
known as packets, of length L bits L bits each
Streaming
IP
Skype video
local or
regional ISP
TCP
enterprise
network
WiFi
Introduction: 1-17
Protocol “layers” and reference models
Networks are complex, Question: is there any
with many “pieces”: hope of organizing
▪ hosts structure of network?
▪ routers
▪ links of various media Layered reference model
▪ applications
▪ protocols
▪ hardware, software
Introduction: 1-18
Why layering?
▪ Complexity of networking tasks
▪ One protocol cannot do all tasks
▪ Modularization eases maintenance, updating of system
▪ Performing changes in one layer without affecting other layers
Introduction: 1-19
Example: organization of air travel
vertical stack.
▪ Each layer 𝑁 performs a related
subset of functions required to
communicate with another
system. Layer N
Introduction: 1-22
Layered Internet protocol stack: TCP/IP
▪ application: supporting network applications,
provides interface to users
• HTTP, SMTP, CoAP, MQTT application
application
▪ transport: process-process data transfer
• Transmission Control Protocol (TCP), transport
transport
• User Datagram Protocol (UDP), QUIC
▪ network: routing of datagrams from source to network
destination
• IP, routing protocols data link
▪ data link: data transfer between neighboring physical
network elements
• Ethernet, 802.11 (WiFi), cellular
▪ physical: bits “on the wire”, signal over the air
Introduction: 1-23
Services, Layering and Encapsulation
M
application Application exchanges messages to implement some application
application service using services of transport layer
Ht M
transport Transport-layer protocol transfers M (e.g., reliably) from transport
one process to another, using services of network layer
network ▪ transport-layer protocol encapsulates network
application-layer message, M, with
data link transport layer-layer header Ht to create a data link
transport-layer segment
• Ht used by transport layer protocol to
physical implement its service physical
source destination
Introduction: 1-24
Services, Layering and Encapsulation
M
application application
Ht M
transport Transport-layer protocol transfers M (e.g., reliably) from transport
one process to another, using services of network layer
network Hn Ht M network
Network-layer protocol transfers transport-layer segment
[Ht | M] from one host to another, using link layer services
data link data link
▪ network-layer protocol encapsulates
transport-layer segment [Ht | M] with
physical network layer-layer header Hn to create a physical
network-layer datagram
source • Hn used by network layer protocol to destination
implement its service
Introduction: 1-25
Services, Layering and Encapsulation
M
application application
Ht M
transport transport
network Hn Ht M network
Network-layer protocol transfers transport-layer segment
[Ht | M] from one host to another, using link layer services
data link Hl Hn Ht M data link
Link-layer protocol transfers datagram [Hn| [Ht |M] from
host to neighboring host, using network-layer services
physical physical
▪ link-layer protocol encapsulates network
datagram [Hn| [Ht |M], with link-layer header
source Hl to create a link-layer frame destination
Introduction: 1-26
Encapsulation
Matryoshka dolls (stacking dolls)
datagram Hn Ht M
network Hn Ht M network
physical physical
source destination
Introduction: 1-28
Devices and layers
▪ Layer 5 devices: hosts – clients, servers
switch
destination Hn Ht M network
M application Hl Hn Ht M data link Hn Ht M
Ht M transport physical
Hn Ht M network
Hl Hn Ht M data link router
physical
Introduction: 1-30
Protocol Efficiency
▪ PDU = Header + Payload + Trailer
• Payload: important data to be delivered (𝐿𝑝 bits)
• Header & Trailer: overhead needed to deliver payload (𝐿𝑜ℎ bits)
• Header may contain source and destination addresses
• Trailer not always present in PDU
type
dest. source data (payload) CRC
preamble address address
Introduction: 1-32
Addressing in the Internet model
Addresses
application
application ▪ Domain names: identify end systems
• e.g., [Link] easy to remember
transport
transport ▪ Port numbers: identify running process/app on an end
system
• e.g., port 80 for web server application
network
▪ IP addresses: identify end systems logically, mapped to
data
linklink names via Domain Name System (DNS)
• e.g., [Link]. [Link]
physical ? ▪ MAC addresses: physically burnt-in Network Interface Card
(NIC) adapter
• e.g., A4-A2-C5-A6-B6-45 physical address
Introduction: 1-33
ISO/OSI reference model
Two layers not found in Internet
application
protocol stack!
presentation
▪ presentation: allow applications to
interpret meaning of data, e.g., encryption, session
compression, machine-specific conventions transport
▪ session: synchronization, checkpointing, network
recovery of data exchange data link
▪ Internet stack “missing” these layers!
physical
• these services, if needed, must be
implemented in application The seven layer OSI/ISO
reference model
• needed?
Introduction: 1-34
Standards
mobile network
4G
▪ Internet standards national or global ISP
• IETF: Internet Engineering Task Force
• RFC: Request for Comments (~9000)
Streaming
IP
Skype video
▪ Other standard bodies local or
• also specify standard specifications regional ISP
WiFi
Introduction: 1-35
The Internet: a “services” view
▪ Infrastructure that provides services to apps: mobile network
enterprise
network
Introduction: 1-36
Chapter 1: roadmap
▪ What is the Internet?
▪ What is a protocol?
▪ Protocol layers, service models
▪ A closer look at Internet structure
▪ LANs and WANs
▪ Network core: packet/circuit switching, internet structure
Introduction: 1-37
A closer look at Internet structure
mobile network
enterprise
network
Introduction: 1-38
A closer look at Internet structure
mobile network
enterprise
network
Introduction: 1-39
A closer look at Internet structure
mobile network
▪ interconnected routers
▪ core routers belong to ISP enterprise
network
Introduction: 1-40
A closer look at Internet structure
Q: How to connect end systems to mobile network
national or global ISP
edge router?
▪ residential access nets
▪ mobile access networks (WiFi, 4G/5G)
▪ institutional access networks (school, company)
local or
regional ISP
enterprise
network
Introduction: 1-41
To ISP
LAN: Local Area Network
Router
LAN is a set of hosts attached to one router interface.
Devices on the same LAN have the same network ID defined by the Client Client Server Server
network ID of the gateway port
Introduction: 1-42
WAN: Wide Area Network
mobile network
▪ WAN is a collection of public national or global ISP
• point-to-point
• switched enterprise
network
Introduction: 1-43
Introduction: 1-43
Most common: Hybrid
• Mesh for packet switching devices
Network topologies • Star for end systems and hosts
Introduction: 1-44
Network topologies: star and mesh
▪Bidirectional ▪Bidirectional
1
𝑁𝑙 = 𝑁𝑑 𝑁𝑙 = 𝑁𝑑 (𝑁𝑑 − 1)
2
▪Unidirectional ▪Unidirectional
𝑁𝑙 = 2𝑁𝑑 𝑁𝑙 = 𝑁𝑑 (𝑁𝑑 − 1)
▪ Number of links: 𝑁𝑙
▪ Number of devices: 𝑁𝑑
Introduction: 1-45
Network topologies: hybrid
▪ Example #1: Given the graph on the right and
assuming all links are bidirectional, find
number of links for a network with:
• 𝑁𝑟 = 3 fully meshed routers
• 𝑁𝑑 = 10 devices (switches and hosts)
▪ Solution:
1
𝑁𝑙 = 𝑁𝑟 𝑁𝑟 − 1 + 𝑁𝑑
2
1
= × 3 × 3 − 1 + 10
2
= 13 links
Introduction: 1-46
Network topologies: hybrid
▪ Example #2: Find number of bidirectional links for a network with 𝑁𝑠 = 5
fully meshed switches and 𝑁ℎ = 1000 hosts connected in star fashion to
these switches.
1 1
▪ Solution: 𝑁𝑙 = 𝑁𝑠 𝑁𝑠 − 1 + 𝑁ℎ = × 5 × 5 − 1 + 1000 = 1010 links
2 2
Introduction: 1-47
Chapter 1: roadmap
▪ What is the Internet?
▪ What is a protocol?
▪ Network edge: hosts, access network, physical media
▪ A closer look at Internet structure
▪ LANs and WANs
▪ Network core: packet/circuit switching, internet structure
Introduction: 1-48
The network core
▪ mesh of interconnected routers mobile network
national or global ISP
▪ packet-switching: hosts break
application-layer messages into
packets
• network forwards packets from one local or
regional ISP
router to the next, across links on
path from source to destination home network content
provider
network datacenter
network
enterprise
network
Introduction: 1-49
Two key network-core functions
Introduction: 1-51
forwarding
forwarding
Introduction: 1-52
Packet-switching: store-and-forward
L bits
per packet
3 2 1
source destination
R bps R bps
Introduction: 1-53
Packet-switching: queueing
R = 100 Mb/s
A C
D
B R = 1.5 Mb/s
E
queue of packets
waiting for transmission
over output link
Introduction: 1-54
Packet-switching: queueing
R = 100 Mb/s
A C
D
B R = 1.5 Mb/s
E
queue of packets
waiting for transmission
over output link
Packet queuing and loss: if arrival rate (in bps) to link exceeds
transmission rate (bps) of link for some period of time:
▪ packets will queue, waiting to be transmitted on output link
▪ packets can be dropped (lost) if memory (buffer) in router fills up
Introduction: 1-55
Characteristics of packet switching
Packet switching networks give What may happen with packets?
connectionless, best-effort ▪ random queuing delay
service to end systems.
▪ out-of-order arrivals
▪ no connection setup
▪ might be lost before arrivals
▪ link bandwidth is shared, not
dedicated ▪ packets might have bit errors
upon arrivals
Introduction: 1-56
Alternative to packet switching: circuit switching
end-end resources allocated to,
reserved for “call” between source
and destination
▪ in diagram, each link has four circuits.
• call gets 2nd circuit in top link and 1st
circuit in right link.
▪ dedicated resources: no sharing
• circuit-like (guaranteed) performance
▪ circuit segment idle if not used by call (no
sharing)
▪ commonly used in traditional telephone networks
Introduction: 1-57
Characteristics of circuit switching
▪ Circuit switching networks give What may happen with packets?
connection-oriented service to ▪ rarely lost before arrivals
end systems.
• Offer guaranteed Quality-of-
▪ might still have bit errors upon
Service (QoS). arrivals
• A connection is called a virtual
circuit.
Introduction: 1-58
Packet switching versus circuit switching
example:
▪ 1 Gb/s link
N
▪ each user: users
• 100 Mb/s when “active” 1 Gbps link
• active 10% of time
Q: how many users can use this network under circuit-switching and packet switching?
▪ circuit-switching: 10 users
▪ packet-switching: with 35 users, Q: how did we get value 0.0004?
probability > 10 active at same time
is less than .0004
via Binomial Distribution…
Introduction: 1-59
Binomial Distribution
▪ A binomial distribution models
the probability of a certain
number of users 𝑘 transmitting
simultaneously when a fixed
number of users 𝑛 exist, where
each user has only two possible
outcomes (transmitting or not
transmitting) and a constant
probability of transmitting 𝑝.
▪ Any 𝑘 users, not specific 𝑘 users.
Introduction: 1-60
Packet switching versus circuit switching
Is packet switching a “slam dunk winner”?
▪ great for “bursty” data – sometimes has data to send, but at other times not
• resource sharing
• simpler, no call setup
▪ excessive congestion possible: packet delay and loss due to buffer overflow
• protocols needed for reliable data transfer, congestion control
Introduction: 1-61
Chapter 1: roadmap
▪ What is the Internet?
▪ What is a protocol?
▪ Protocol layers, service models
▪ A closer look at Internet structure
▪ LANs and WANs
▪ Network core: packet/circuit switching, internet structure
Introduction: 1-62
Questions?
These slides were adapted from the materials provided by the authors of Computer Networking: A Top-Down Approach (Jim Kurose and Keith Ross).
All material copyright 1996-2025, J.F. Kurose and K.W. Ross. All Rights Reserved. Introduction: 1-63