Академический Документы
Профессиональный Документы
Культура Документы
Internetworking
15-213:
Introduc0on
to
Computer
Systems
19th
Lecture,
Oct.
28,
2010
Instructors:
Randy
Bryant
and
Dave
OHallaron
Carnegie Mellon
A
Client-Server
Transac8on
4.
Client
handles
response
Client
process
Server
process
Resource
2.
Server
handles
request
Carnegie Mellon
memory
bus
main
memory
I/O
bridge
MI
Expansion
slots
I/O
bus
USB
controller
mouse
keyboard
graphics
adapter
disk
controller
network
adapter
disk
network
monitor
3
Carnegie Mellon
Computer Networks
Carnegie Mellon
host
hub
host
100
Mb/s
port
Opera8on
Each
Ethernet
adapter
has
a
unique
48-bit
address
(MAC
address)
E.g.,
00:16:ea:e3:54:e6
Hosts
send
bits
to
any
other
host
in
chunks
called
frames
Hub
slavishly
copies
each
bit
from
each
port
to
every
other
port
Carnegie Mellon
host
B
host
host
X
hub
100
Mb/s
bridge
100
Mb/s
hub
1
Gb/s
hub
host
host
100 Mb/s
host
bridge
100 Mb/s
Y
host
host
host
hub
host
host
C
Carnegie Mellon
Carnegie Mellon
host
host
LAN
LAN
router
WAN
router
WAN
router
Carnegie Mellon
router
host
router
router
router
router
router
Carnegie Mellon
10
Carnegie Mellon
11
Carnegie Mellon
client
server
protocol
soZware
data
data
LAN1
adapter
PH FH1
(4)
(8)
data
(7)
data
PH FH2
(6)
data
PH FH2
LAN2
adapter
Router
LAN1
adapter
data
LAN2
protocol
soZware
PH FH1
LAN1 frame
(3)
Host B
data
internet
packet
(2)
Host A
LAN2
adapter
PH FH1
LAN2
frame
data
PH FH2 (5)
protocol
soZware
12
Carnegie Mellon
Other Issues
13
Carnegie Mellon
Global IP Internet
Carnegie Mellon
Client
User code
Server
TCP/IP
Kernel code
TCP/IP
Sockets
interface
(system
calls)
Hardware
interface
(interrupts)
Network
adapter
Hardware
and
rmware
Network
adapter
Global IP Internet
15
Carnegie Mellon
Internet
backbone:
collec0on
of
routers
(na0onwide
or
worldwide)
connected
by
high-speed
point-to-point
networks
Regional
networks:
smaller
backbones
that
cover
smaller
geographical
areas
(e.g.,
ci0es
or
states)
16
Carnegie Mellon
17
Carnegie Mellon
NAP
Backbone
POP
NAP
Backbone
POP
POP
NAP
Backbone
POP
ColocaHon
sites
Backbone
POP
POP
POP
T3
Regional net
POP
POP
T1
ISP
POP
POP
T1
Small Business
Big Business
POP
POP
Cable
modem
Pgh employee
POP
DSL
DC
employee
18
Carnegie Mellon
Carnegie Mellon
Source:
hjp://personalpages.manchester.ac.uk/sta/m.dodge/cybergeography/atlas/
20
Carnegie Mellon
Original
Idea
Every
node
on
Internet
would
have
unique
IP
address
Everyone
would
be
able
to
talk
directly
to
everyone
No
secrecy
or
authen0ca0on
Messages
visible
to
routers
and
hosts
on
same
LAN
Possible
to
forge
source
eld
in
packet
header
Shortcomings
There
aren't
enough
IP
addresses
available
Don't
want
everyone
to
have
access
or
knowledge
of
all
other
hosts
Security
issues
mandate
secrecy
&
authen0ca0on
21
Carnegie Mellon
Example:
My
laptop
at
CMU
(wired
connec0on)
IP
address
128.2.213.29
(bryant-tp4.cs.cmu.edu)
Assigned
sta0cally
My
laptop
at
home
IP
address
192.168.1.5
Only
valid
within
home
network
22
Carnegie Mellon
1
4
176.3.3.3
Firewall
2
3
216.99.99.99
Corpora8on X
Firewalls
Internet
Carnegie Mellon
Firewall
10.6.6.6
198.3.3.3
Corpora8on
X
Internet
Carnegie Mellon
25
Carnegie Mellon
IP Addresses
Carnegie Mellon
27
Carnegie Mellon
IP Address Structure
Net ID
Host ID
Class B address
Carnegie Mellon
.net
.edu
mit
cmu
cs
.gov
berkeley
ece
.com
amazon
www
2007.171.166.252
ics
greatwhite
128.2.220.10
sp
i386-f7
128.2.200.47
29
Carnegie Mellon
*/
official domain name of host */
null-terminated array of domain names */
host address type (AF_INET) */
length of an address, in bytes */
null-terminated array of in_addr structs
Carnegie Mellon
Carnegie Mellon
Carnegie Mellon
33
Carnegie Mellon
Querying DIG
34
Carnegie Mellon
35
Carnegie Mellon
Internet Connec8ons
Carnegie Mellon
Server
(port
80)
37
Carnegie Mellon
Next Time
38