Basic Concepts Computer Networking
Basic Concepts Computer Networking
In Computer Networking
Antonio Carzaniga
Faculty of Informatics
University of Lugano
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
Outline
What is the Internet?
Types of network
Types of service
Protocols
The Internet protocol stack
20052007
Antonio Carzaniga
History
20052007
Antonio Carzaniga
History
20052007
Antonio Carzaniga
History
20052007
Antonio Carzaniga
History
20052007
Antonio Carzaniga
Internet
20052007
Antonio Carzaniga
Internet
20052007
Antonio Carzaniga
Internet
20052007
Antonio Carzaniga
Internet
20052007
Antonio Carzaniga
Internet
end system
or host
20052007
Antonio Carzaniga
End Systems
End system or host (
20052007
Antonio Carzaniga
End Systems
End system or host (
a computer
20052007
Antonio Carzaniga
End Systems
End system or host (
a computer
a phone (more or less smart)
20052007
Antonio Carzaniga
End Systems
End system or host (
a computer
a phone (more or less smart)
a server (well, that would also be a computer)
20052007
Antonio Carzaniga
End Systems
End system or host (
a
a
a
a
computer
phone (more or less smart)
server (well, that would also be a computer)
camera (a.k.a., webcam)
20052007
Antonio Carzaniga
End Systems
End system or host (
a
a
a
a
a
computer
phone (more or less smart)
server (well, that would also be a computer)
camera (a.k.a., webcam)
temperature sensor
20052007
Antonio Carzaniga
End Systems
End system or host (
a
a
a
a
a
a
computer
phone (more or less smart)
server (well, that would also be a computer)
camera (a.k.a., webcam)
temperature sensor
PDA
20052007
Antonio Carzaniga
End Systems
End system or host (
a computer
a phone (more or less smart)
a server (well, that would also be a computer)
a camera (a.k.a., webcam)
a temperature sensor
a PDA
...
a car
a television set
a picture frame
a toaster
...
20052007
Antonio Carzaniga
End Systems
End system or host (
a computer
a phone (more or less smart)
a server (well, that would also be a computer)
a camera (a.k.a., webcam)
a temperature sensor
a PDA
...
a car
a television set
a picture frame
a toaster
...
a toilet seat?
a toothpick?
...
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
packet switch
local-area
network
20052007
Antonio Carzaniga
packet switch
local-area
network
communication link
20052007
Antonio Carzaniga
Basic Concepts
The Internet uses packet switching
20052007
Antonio Carzaniga
Basic Concepts
The Internet uses packet switching
Packet switch: a link-layer switch or a router
20052007
Antonio Carzaniga
Basic Concepts
The Internet uses packet switching
Packet switch: a link-layer switch or a router
Communication link: a connection between packet switches
and/or end systems
20052007
Antonio Carzaniga
Basic Concepts
The Internet uses packet switching
Packet switch: a link-layer switch or a router
Communication link: a connection between packet switches
and/or end systems
Route: sequence of switches that a packet goes through (a.k.a.
path)
20052007
Antonio Carzaniga
Basic Concepts
The Internet uses packet switching
Packet switch: a link-layer switch or a router
Communication link: a connection between packet switches
and/or end systems
Route: sequence of switches that a packet goes through (a.k.a.
path)
Protocol: control the sending and receiving of information to
and from end systems and packet switches
20052007
Antonio Carzaniga
Communication Links
Various types and forms of medium
20052007
Antonio Carzaniga
Communication Links
Various types and forms of medium
Fiber-optic cable
Coaxial cable
Satellite channel
...
20052007
Antonio Carzaniga
Packet Switching
20052007
Antonio Carzaniga
Packet Switching
20052007
Antonio Carzaniga
Packet Switching
20052007
Antonio Carzaniga
Packet Switching
The Internet is a packet-switched network
20052007
Antonio Carzaniga
Packet Switching
The Internet is a packet-switched network
Information is transmitted in packets
20052007
Antonio Carzaniga
Packet Switching
The Internet is a packet-switched network
Information is transmitted in packets
Switches operate on individual packets
20052007
Antonio Carzaniga
Packet Switching
The Internet is a packet-switched network
Information is transmitted in packets
Switches operate on individual packets
A switch (router) receives packets and forwards them along to
other switches or to end systems
20052007
Antonio Carzaniga
Packet Switching
The Internet is a packet-switched network
Information is transmitted in packets
Switches operate on individual packets
A switch (router) receives packets and forwards them along to
other switches or to end systems
Every forwarding decision is taken on the basis of the
information contained in the packet
20052007
Antonio Carzaniga
Circuit Switching
20052007
Antonio Carzaniga
Circuit Switching
20052007
Antonio Carzaniga
Circuit Switching
The telephone network is a typical circuit-switched network
20052007
Antonio Carzaniga
Circuit Switching
The telephone network is a typical circuit-switched network
Communication requires a connection setup phase in which
the network reserves all the necessary resources for that
connection (links, buffers, switches, etc.)
20052007
Antonio Carzaniga
Circuit Switching
The telephone network is a typical circuit-switched network
Communication requires a connection setup phase in which
the network reserves all the necessary resources for that
connection (links, buffers, switches, etc.)
After a successful setup, the communicating systems are
connected by a set of links that are dedicated to their
connection for the entire duration of their conversation
20052007
Antonio Carzaniga
Circuit Switching
The telephone network is a typical circuit-switched network
Communication requires a connection setup phase in which
the network reserves all the necessary resources for that
connection (links, buffers, switches, etc.)
After a successful setup, the communicating systems are
connected by a set of links that are dedicated to their
connection for the entire duration of their conversation
When the conversation ends, the network tears down the
connection, freeing the corresponding resources (links,
buffers, etc.) for other connections
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
no concept of a connection
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
Virtual Circuits
Idea: combine the advantages of circuit switching and packet
switching
20052007
Antonio Carzaniga
Virtual Circuits
Idea: combine the advantages of circuit switching and packet
switching
There is a connection setup phase
20052007
Antonio Carzaniga
Virtual Circuits
Idea: combine the advantages of circuit switching and packet
switching
There is a connection setup phase
The connection does not create a physical circuit, but rather a
virtual circuit
20052007
Antonio Carzaniga
Virtual Circuits
Idea: combine the advantages of circuit switching and packet
switching
There is a connection setup phase
The connection does not create a physical circuit, but rather a
virtual circuit
Information is sent in packets, so links can be shared more
effectively
20052007
Antonio Carzaniga
Virtual Circuits
Idea: combine the advantages of circuit switching and packet
switching
There is a connection setup phase
The connection does not create a physical circuit, but rather a
virtual circuit
Information is sent in packets, so links can be shared more
effectively
Packets carry a virtual circuit identifier instead of the
destination address
20052007
Antonio Carzaniga
Virtual Circuits
Idea: combine the advantages of circuit switching and packet
switching
There is a connection setup phase
The connection does not create a physical circuit, but rather a
virtual circuit
Information is sent in packets, so links can be shared more
effectively
Packets carry a virtual circuit identifier instead of the
destination address
Antonio Carzaniga
Virtual Circuit
20052007
Antonio Carzaniga
Virtual Circuit
20052007
Antonio Carzaniga
Virtual Circuit
20052007
Antonio Carzaniga
Taxonomy of Networks
communication
network
20052007
Antonio Carzaniga
Taxonomy of Networks
communication
network
circuit
switching
packet
switching
20052007
Antonio Carzaniga
Taxonomy of Networks
communication
network
circuit
switching
time
division
multiplexing
packet
switching
frequency
division
multiplexing
20052007
Antonio Carzaniga
Taxonomy of Networks
communication
network
circuit
switching
time
division
multiplexing
frequency
division
multiplexing
packet
switching
virtual
circuit
datagram
network
20052007
Antonio Carzaniga
Taxonomy of Networks
communication
network
circuit
switching
time
division
multiplexing
frequency
division
multiplexing
packet
switching
virtual
circuit
datagram
network
20052007
Antonio Carzaniga
Service Perspective
packet switch
local-area
network
20052007
Antonio Carzaniga
Service Perspective
packet switch
local-area
network
20052007
Antonio Carzaniga
Type of Service
Two end systems can communicate through the Internet, but
exactly what kind of communication service is that of the
Internet?
20052007
Antonio Carzaniga
Type of Service
Two end systems can communicate through the Internet, but
exactly what kind of communication service is that of the
Internet?
Connectionless, best effort
20052007
Antonio Carzaniga
Type of Service
Two end systems can communicate through the Internet, but
exactly what kind of communication service is that of the
Internet?
Connectionless, best effort
Connection-oriented, reliable
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
Communication Protocols
End systems as well as packet switches run protocols. What is
a protocol?
20052007
Antonio Carzaniga
Communication Protocols
End systems as well as packet switches run protocols. What is
a protocol?
E.g., lets consider a phone call: Alice calls Bob
Alice
Bob
hello
20052007
Antonio Carzaniga
Communication Protocols
End systems as well as packet switches run protocols. What is
a protocol?
E.g., lets consider a phone call: Alice calls Bob
Alice
Bob
hello
hello, this
is Alice
20052007
Antonio Carzaniga
Communication Protocols
End systems as well as packet switches run protocols. What is
a protocol?
E.g., lets consider a phone call: Alice calls Bob
Alice
Bob
hello
hello, this
is Alice
ats up?
Alice, wh
20052007
Antonio Carzaniga
Communication Protocols
End systems as well as packet switches run protocols. What is
a protocol?
E.g., lets consider a phone call: Alice calls Bob
Alice
Bob
hello
hello, this
is Alice
ats up?
Alice, wh
bla, bla. . .
20052007
Antonio Carzaniga
Communication Protocols
End systems as well as packet switches run protocols. What is
a protocol?
E.g., lets consider a phone call: Alice calls Bob
Alice
Bob
hello
hello, this
is Alice
ats up?
Alice, wh
bla, bla. . .
e
okay, by
20052007
Antonio Carzaniga
Communication Protocols
End systems as well as packet switches run protocols. What is
a protocol?
E.g., lets consider a phone call: Alice calls Bob
Alice
Bob
hello
hello, this
is Alice
ats up?
Alice, wh
bla, bla. . .
e
okay, by
by e
20052007
Antonio Carzaniga
Communication Protocols
Phases of the protocol
20052007
Antonio Carzaniga
Communication Protocols
Phases of the protocol
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
...
20052007
Antonio Carzaniga
...
20052007
Antonio Carzaniga
...
20052007
Antonio Carzaniga
...
20052007
Antonio Carzaniga
...
20052007
Antonio Carzaniga
...
20052007
Antonio Carzaniga
...
20052007
Antonio Carzaniga
...
20052007
Antonio Carzaniga
...
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
Bob
20052007
Antonio Carzaniga
Bob
hello
20052007
Antonio Carzaniga
Bob
hello
hello, this
is Alice
20052007
Antonio Carzaniga
Bob
hello
hello, this
is Alice
?
Alice who
20052007
Antonio Carzaniga
Bob
hello
hello, this
is Alice
?
Alice who
sorry, wro
ng num b
er
20052007
Antonio Carzaniga
Bob
20052007
Antonio Carzaniga
Bob
hello
20052007
Antonio Carzaniga
Bob
hello
hello?
20052007
Antonio Carzaniga
Bob
hello
hello?
there?
anybody
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
It is an executable specification
20052007
Antonio Carzaniga
It is an executable specification
It must be unambiguous
20052007
Antonio Carzaniga
It is an executable specification
It must be unambiguous
It must be complete
20052007
Antonio Carzaniga
It is an executable specification
It must be unambiguous
It must be complete
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
t pizza?
how abou
Bob
20052007
Antonio Carzaniga
t pizza?
how abou
we did th
at already
Bob
20052007
Antonio Carzaniga
t pizza?
how abou
we did th
at already
decide
okay, you
Bob
20052007
Antonio Carzaniga
t pizza?
how abou
we did th
at already
decide
okay, you
Bob
uhm. . . er. . .
20052007
Antonio Carzaniga
t pizza?
how abou
we did th
at already
decide
okay, you
Bob
uhm. . . er. . .
so?
20052007
Antonio Carzaniga
t pizza?
how abou
we did th
at already
decide
okay, you
Bob
uhm. . . er. . .
so?
lets just
do pizza
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
Alice
Bob
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
Alice
Bob
hello
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
Alice
Bob
hello
hello, this
is Alice
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
Alice
Bob
hello
hello, this
is Alice
ats up?
Alice, wh
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
Alice
Bob
hello
hello, this
is Alice
ats up?
Alice, wh
lets go o
ut to dinn
er
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
Alice
Bob
hello
hello, this
is Alice
ats up?
Alice, wh
lets go o
ut to dinn
er
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
Alice
Bob
hello
hello, this
is Alice
ats up?
Alice, wh
lets go o
ut to dinn
er
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
Alice
Bob
hello
hello, this
is Alice
ats up?
Alice, wh
lets go o
ut to dinn
er
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
where to go for dinner protocol
phone call protocol
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
where to go for dinner protocol
phone call protocol
call setup
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
where to go for dinner protocol
phone call protocol
call setup
voice over IP
20052007
Antonio Carzaniga
Protocol Layering
Alice calls Bob to decide where to go for dinner
where to go for dinner protocol
phone call protocol
call setup
voice over IP
...
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
20052007
Antonio Carzaniga
application functionalities
application messages
20052007
Antonio Carzaniga
application functionalities
application messages
20052007
Antonio Carzaniga
application functionalities
application messages
Network (IP)
20052007
Antonio Carzaniga
application functionalities
application messages
Network (IP)
20052007
Antonio Carzaniga
application functionalities
application messages
Network (IP)
Physical
20052007
Antonio Carzaniga