Similar presentations:
Computer Systems and Networks (Основи комп’ютерних систем та мереж)
1.
National Technical University ofUkraine “Igor Sikorsky Kyiv
Polytechnic Institute”
Національний технічний
університет України “Київський
політехнічний інститут імені Ігоря
Сікорського”
Computer Systems and Networks
(Основи комп’ютерних систем та мереж)
2.
SCHEDULE, REQUIREMENTS ANDDEADLINES
Лекції (тести на лекціях) + макс. 30 балів
Практичні роботи
ПР 1 – (+макс. 15 балів)
ПР2 – (+макс. 15 балів)
ПР3 – (+макс. 15 балів)
Іспит (+макс. 25 балів)
Допуск до іспиту – мін. 60 балів за поточним контролем
3.
Lecture’s, Lab’s resourcesПрезентації лекцій, тести, звіти
https://jaguar.ccc.ipt.pt/moodle/
Практичні роботи
PacketTracer
Поточні бали
Електронний кампус КПІ
Засоби комунікації
Групи в Телеграм
4.
C OUR S E OVE R VIE W1. Data Networks Overview
2. Computer Systems Overview
5.
Data Networks Overview6.
Data Networks: introductionOverview/roadmap:
goal:
• Get “feel,” “big picture,”
introduction to terminology
• What is the Internet?
• What is a protocol?
• Network edge: hosts, access
network, physical media
• Network core: packet/circuit
switching, internet structure
• Performance: loss, delay, throughput
• Security
• Protocol layers, service models
• History
6
7.
The Internet: a “nuts and bolts” viewBillions of connected
computing devices:
mobile network
national or global ISP
hosts = end systems
running network apps at
Internet’s “edge”
Packet switches: forward
packets (chunks of data)
routers, switches
Communication links
local or
regional
ISP
Internet
home network
fiber, copper, radio, satellite
transmission rate:
content
provider
network
datacenter
network
bandwidth
Networks
collection of devices, routers,
links: managed by an
organization
enterprise
network
7
8.
“Fun” Internet-connected devicesPacemaker & Monitor
Amazon Echo
IP picture frame
Web-enabled toaster +
weather forecaster
Internet
refrigerator
Security Camera
Internet phones
Tweet-a-watt:
monitor energy use
Slingbox: remote
control cable TV
AR devices
sensorized,
bed
mattress
Others?
Fitbit
8
9.
The Internet: a “nuts and bolts” view4G
• Internet: “network of networks”
national or global ISP
• Interconnected ISPs
protocols are everywhere
control sending, receiving of
messages
• e.g., HTTP (Web), streaming video,
Skype, TCP, IP, WiFi, 4G, Ethernet
Skype
Internet
standards
• RFC: Request for Comments
• IETF: Internet Engineering Task
Force
Streaming
video
IP
local or
regional ISP
home network
content
provider
network
HTTP
datacenter
network
Ethernet
TCP
enterprise
network
WiFi
9
10.
The Internet: a “service” view• Infrastructure that provides
mobile network
services to applications:
• Web, streaming video, multimedia
teleconferencing, email, games, ecommerce, social media, interconnected appliances, …
national or global ISP
Streaming
video
Skype
local or
regional ISP
provides programming interface
to distributed applications:
• “hooks” allowing sending/receiving
apps to “connect” to, use Internet
transport service
• provides service options, analogous
to postal service
home network
HTTP
content
provider
network
datacenter
network
enterprise
network
10
11.
What’s a protocol?Human protocols:
Network protocols:
“what’s the time?”
computers (devices) rather than
“I have a question”
introductions
… specific messages
sent
… specific actions taken
when message
received, or other
events
humans
all communication activity in Internet
governed by protocols
Protocols define the format, order
of messages sent and received
among network entities, and
actions taken on msg
transmission, receipt
11
12.
What’s a protocol?A human protocol and a computer network protocol:
Hi
TCP connection
request
Hi
TCP connection
response
Got the
time?
GET http://...
2:00
<file>
time
Q: other human protocols?
12
13.
WHAT IS THE INTERNET?Knowledge Check
Which of the following descriptions below correspond to a "nuts-and-bolts" view
of the Internet?
1.
2.
3.
4.
5.
A collection of hardware and software components executing protocols that
define the format and the order of messages exchanged between two or more
communicating entities, as well as the actions taken on the transmission
and/or receipt of a message or other event.
A "network of networks".
A place I go for information, entertainment, and to communicate with people.
A collection of billions of computing devices, and packet switches
interconnected by links.
A platform for building network applications.
13
14.
WHAT IS THE INTERNET (2)?Knowledge Check
Which of the following descriptions below correspond to a "services" view of
the Internet?
1. A "network of networks".
2. A collection of hardware and software components executing protocols
that define the format and the order of messages exchanged between
two or more communicating entities, as well as the actions taken on the
transmission and/or receipt of a message or other event.
3. A collection of billions of computing devices, and packet switches
interconnected by links.
4. A platform for building network applications.
5. A place I go for information, entertainment, and to communicate with
people.
14
15.
WHAT IS A PROTOCOL?Knowledge Check
Which of the following human scenarios involve a protocol (recall:
"P rotocols define the format, order of messages sent and received among
network entities, and actions taken on message transmission, receipt")?
1. A student raising her/his hand to ask a really insightful question,
followed by the teaching acknowledging the student, listening carefully
to the question, and responding with a clear, insightful answer. And
then thanking the student for the question, since teachers love to get
questions.
2. A person sleeping.
3. One person asking, and getting, the time to/from another person.
4. A person reading a book.
5. Two people introducing themselves to each other.
15
16.
Data Networks: roadmap• What is the Internet?
• What is a protocol?
• Network edge: hosts, access
network, physical media
• Network core: packet/circuit
switching, internet structure
• Performance: loss, delay,
throughput
• Security
• Protocol layers, service models
• History
16
17.
A closer look at Internet structuremobile network
Network edge:
national or global ISP
• hosts: clients and servers
• servers often in data centers
local or
regional ISP
home network
content
provider
network
datacenter
network
enterprise
network
17
18.
A closer look at Internet structureNetwork edge:
mobile network
national or global ISP
• hosts: clients and servers
• servers often in data centers
Access networks, physical
media:
• wired, wireless communication
links
local or
regional ISP
home network
content
provider
network
datacenter
network
enterprise
network
18
19.
A closer look at Internet structureNetwork edge:
mobile network
national or global ISP
• hosts: clients and servers
• servers often in data centers
Access networks, physical
media:
• wired, wireless communication
links
local or
regional ISP
home network
Network core:
interconnected routers
network of networks
content
provider
network
datacenter
network
enterprise
network
19
20.
Access networks: cable-based accesscable headend
…
cable splitter
modem
V
I
D
E
O
V
I
D
E
O
V
I
D
E
O
V
I
D
E
O
V
I
D
E
O
V
I
D
E
O
D
A
T
A
D
A
T
A
C
O
N
T
R
O
L
1
2
3
4
5
6
7
8
9
Channels
frequency division multiplexing (FDM): different channels transmitted in
different frequency bands
20
21.
Access networks: cable-based accesscable headend
…
cable splitter
modem
CMTS
data, TV transmitted at different
frequencies over shared cable
distribution network
cable modem
termination system
ISP
HFC: hybrid fiber coax
• asymmetric: up to 40 Mbps – 1.2 Gbs downstream transmission rate, 30-100
Mbps upstream transmission rate
network of cable, fiber attaches homes to ISP router
• homes share access network to cable headend
21
22.
Access networks: digital subscriber line (DSL)central office
DSL splitter
modem
voice, data transmitted
at different frequencies over
dedicated line to central office
telephone
network
DSLAM
ISP
DSL access
multiplexer
use existing telephone line to central office DSLAM
• data over DSL phone line goes to Internet
• voice over DSL phone line goes to telephone net
24-52 Mbps dedicated downstream transmission rate
3.5-16 Mbps dedicated upstream transmission rate
22
23.
Access networks: home networkswireless
devices
to/from headend or
central office
often combined
in single box
cable or DSL modem
WiFi wireless access
point (54, 450 Mbps)
router, firewall, NAT
wired Ethernet (1 Gbps)
23
24.
Access networks: data center networks24
25.
Wireless access networksShared wireless access network connects end system to router
via base station aka “access point”
Wireless local area networks
(WLANs)
typically within or around
building (~100 m)
802.11b/g/n (WiFi): 11, 54, 450
Mbps transmission rate
to Internet
Wide-area cellular access
networks
provided by mobile, cellular
network operator (10’s km)
10’s Mbps
4G cellular networks (5G coming)
to Internet
25
26.
Access networks: enterprise networksEnterprise link to
ISP (Internet)
institutional router
Ethernet
switch
institutional mail,
web servers
companies, universities, etc.
mix of wired, wireless link technologies, connecting a mix of
switches and routers (we’ll cover differences shortly)
Ethernet: wired access at 100Mbps, 1Gbps, 10Gbps
WiFi: wireless access points at 11, 54, 450 Mbps
26
27.
Host: sends packets of datahost sending function:
takes application message
breaks into smaller chunks,
known as packets, of length L
bits
transmits packet into access
network at transmission rate R
• link transmission rate, aka
link capacity, aka link
two packets,
L bits each
2 1
host
R: link transmission rate
bandwidth
packet
time needed to
transmission = transmit L-bit =
delay
packet into link
L (bits)
R (bits/sec)
27
28.
Links: physical mediabit: propagates between
transmitter/receiver pairs
physical link: what lies
between transmitter &
receiver
guided media:
• signals propagate in solid
media: copper, fiber, coax
unguided media:
• signals propagate freely,
e.g., radio
Twisted pair (TP)
two insulated copper wires
• Category 5: 100 Mbps, 1 Gbps
Ethernet
• Category 6: 10Gbps Ethernet
28
29.
Links: physical mediaCoaxial cable:
two concentric copper
conductors
bidirectional
broadband:
• multiple frequency channels on
cable
• 100’s Mbps per channel
Fiber optic cable:
glass fiber carrying light pulses, each
pulse a bit
high-speed operation:
• high-speed point-to-point
transmission (10’s-100’s Gbps)
low error rate:
• repeaters spaced far apart
• immune to electromagnetic noise
29
30.
Links: physical mediaWireless radio
signal carried in
electromagnetic spectrum
no physical “wire”
broadcast and “half-duplex”
(sender to receiver)
propagation environment
effects:
• reflection
• obstruction by objects
• interference
Radio link types:
terrestrial microwave
• up to 45 Mbps channels
Wireless LAN (WiFi)
• Up to 100’s Mbps
wide-area (e.g., cellular)
• 4G cellular: ~ 10’s Mbps
satellite
• up to 45 Mbps per channel
• 270 msec end-end delay
• geosynchronous versus lowearth-orbit
30
31.
Knowledge CheckLINK TRANSMISSION CHARACTERISTICS
Which of the following physical layer technologies has the
highest transmission rate and lowest bit error rate in practice?
1. Fiber optic cable
2. 802.11 WiFi Channel
3. Twisted pair (e.g., CAT5, CAT6)
4. Satellite channel
5. Coaxial cable
6. 4G/5G cellular
31
32.
Data Networks: roadmap• What is the Internet?
• What is a protocol?
• Network edge: hosts, access
network, physical media
• Network core: packet/circuit
switching, internet structure
• Performance: loss, delay,
throughput
• Security
• Protocol layers, service models
• History
32
33.
The network core• mesh of interconnected
routers
• packet-switching: hosts
break application-layer
messages into packets
• forward packets from one
router to the next, across links
on path from source to
destination
• each packet transmitted at full
link capacity
mobile network
national or global ISP
local or
regional ISP
home network
content
provider
network
datacenter
network
enterprise
network
33
34.
Two key network-core functionsRouting:
routing algorithm
Forwarding:
• local action:
move arriving
packets from
router’s input
link to
appropriate
router output
link
local
local forwarding
forwarding table
table
header value output link
0100
0101
0111
1001
3
2
2
1
global action:
determine sourcedestination paths
taken by packets
routing algorithms
1
3 2
destination address in arriving
packet’s header
34
35.
3536.
3637.
Packet-switching: store-and-forwardL bits
per packet
source
3 2 1
R bps
R bps
• Transmission delay: takes L/R seconds to
transmit (push out) L-bit packet into link at R
bps
• Store and forward: entire packet must arrive at
router before it can be transmitted on next link
• End-end delay: 2L/R (above), assuming zero
propagation delay (more on delay shortly)
destination
One-hop numerical example:
L = 10 Kbits
R = 100 Mbps
one-hop transmission delay
= 0.1 msec
37
38.
Packet-switching: queueing delay, lossR = 100 Mb/s
A
B
C
R = 1.5 Mb/s
D
E
queue of packets
waiting for output link
Queueing occurs when work arrives faster than it serviced
Packet queuing and loss: if arrival rate (in bps) to link exceeds
transmission rate (bps) of link for a 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
38
39.
Alternative to packet switching: circuit switchingend-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
39
40.
Circuit switching: FDM and TDMTime Division Multiplexing (TDM)
time divided into slots
each call allocated periodic slot(s),
can transmit at maximum rate of
(wider) frequency band, but only
during its time slot(s)
frequency
4 users
time
frequency
Frequency Division Multiplexing
(FDM)
• optical, electromagnetic frequencies
divided into (narrow) frequency bands
• each call allocated its own band, can
transmit at max rate of that narrow
band
time
40
41.
Packet switching versus circuit switchingpacket switching allows more users to use network!
Example:
1 Gb/s link
each user:
• 100 Mb/s when “active”
• active 10% of time
circuit-switching: 10 users
packet switching: with 35
users, probability > 10 active at
same time is less than .0004 *
N
users
1 Gbps link
Q: how did we get value 0.0004?
Q: what happens if > 35 users ?
41
42.
Packet switching versus circuit switchingIs 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
Q: How to provide circuit-like behavior?
• bandwidth guarantees traditionally used for audio/video applications
Q: human analogies of reserved resources (circuit switching)
versus on-demand allocation (packet switching)?
42
43.
Internet structure: a “network of networks”• Hosts connect to Internet via access Internet Service
Providers (ISPs)
• residential, enterprise (company, university, commercial) ISPs
• Access ISPs in turn must be interconnected
• so that any two hosts can send packets to each other
• Resulting network of networks is very complex
• evolution was driven by economics and national policies
43
44.
Internet structure: a “network of networks”Question: given millions of access ISPs, how to connect them together?
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
44
45.
Internet structure: a “network of networks”Question: given millions of access ISPs, how to connect them together?
access
net
access
net
access
net
access
net
access
net
access
net
access
net
connecting each access ISP to
each other directly doesn’t
scale: O(N2) connections.
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
45
46.
Internet structure: a “network of networks”Option: connect each access ISP to one global transit ISP?
Customer and provider ISPs have economic agreement.
access
net
access
net
access
net
access
net
access
net
access
net
access
net
global
ISP
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
access
net
46
47.
Internet structure: a “network of networks”But if one global ISP is viable business, there will be competitors ….
access
net
access
net
access
net
access
net
access
net
access
net
ISP A
access
net
ISP B
access
net
access
net
access
net
ISP C
access
net
access
net
access
net
access
net
access
net
access
net
47
48.
Internet structure: a “network of networks”But if one global ISP is viable business, there will be competitors ….
who will want to be connected
access
net
access
net
access
net
Internet exchange point
access
net
access
net
IXP
ISP A
access
net
access
net
ISP B
IXP
access
net
access
net
access
net
ISP C
peering link
access
net
access
net
access
net
access
net
access
net
access
net
48
49.
Internet structure: a “network of networks”… and regional networks may arise to connect access nets to
ISPs
access
net
access
net
access
net
access
net
access
net
IXP
ISP A
access
net
access
net
ISP B
IXP
access
net
access
net
access
net
ISP C
access
net
access
net
regional ISP
access
net
access
net
access
net
access
net
49
50.
Internet structure: a “network of networks”access
net
access
net
access
net
access
net
access
net
IXP
access
net
ISP A
Content provider network
IXP
ISP B
access
net
access
net
access
net
access
net
ISP C
access
net
access
net
regional ISP
access
net
access
net
access
net
access
net
50
51.
Internet structure: a “network of networks”Tier 1 ISP
access
ISP
Tier 1 ISP
IXP
IXP
Regional ISP
Regional ISP
access
ISP
access
ISP
access
ISP
access
ISP
IXP
access
ISP
access
ISP
access
ISP
At “center”: small # of well-connected large networks
“tier-1” commercial ISPs (e.g., Level 3, Sprint, AT&T, NTT), national & international
coverage
content provider networks (e.g., Google, Facebook): private network that connects
its data centers to Internet, often bypassing tier-1, regional ISPs
51
52.
ROUTING VERSUS FORWARDINGKnowledge Check
Choose one the following two definitions that makes the correct
distinction between routing versus forwarding.
1. Forwarding is the local action of moving arriving packets from
router’s input link to appropriate router output link,
while routing is the global action of determining the sourcedestination paths taken by packets.
2. Routing is the local action of moving arriving packets from
router’s input link to appropriate router output link,
while forwarding is the global action of determining the sourcedestination paths taken by packets.
52
53.
Knowledge CheckPACKET SWITCHING VERSUS CIRCUIT SWITCHING (1)
Which of the characteristics below are associated with the technique
of packet switching?
1. Congestion loss and variable end-end delays are possible with this
technique.
2. Data may be queued before being transmitted due to other user’s data
that’s also queueing for transmission.
3. This technique is used in the Internet.
4. Frequency Division Multiplexing (FDM) and Time Division Multiplexing
(TDM) are two approaches for implementing this technique.
5. Reserves resources needed for a call from source to destination.
6. This technique was the basis for the telephone call switching during the
20th century and into the beginning of this current century.
7. Resources are used on demand, not reserved in advance.
53
54.
Knowledge CheckPACKET SWITCHING VERSUS CIRCUIT SWITCHING (2)
Which of the characteristics below are associated with the technique of circuit
switching?
1. Congestion loss and variable end-end delays are possible with this
technique.
2. This technique is used in the Internet.
3. Frequency Division Multiplexing (FDM) and Time Division Multiplexing
(TDM) are two approaches for implementing this technique.
4. Reserves resources needed for a call from source to destination.
5. Data may be queued before being transmitted due to other user’s data
that’s also queueing for transmission.
6. This technique was the basis for the telephone call switching during the 20th
century and into the beginning of this current century.
7. Resources are used on demand, not reserved in advance.
54