Professional Documents
Culture Documents
Outline
Best Effort Service Model
Global Addressing Scheme
Spring 2002
CS 461
IP Internet
Concatenation of Networks
H1
Network 1 (Ethernet)
H2
H7
H3
R3
H8
Network 4
(point-to-point)
Network 2 (Ethernet)
R1
R2
H4
Network 3 (FDDI)
Protocol Stack
H6
H5
H1
H8
TCP
R1
IP
ETH
R2
IP
ETH
Spring 2002
R3
IP
FDDI
FDDI
IP
PPP
PPP
TCP
IP
ETH
CS 461
ETH
Service Model
Connectionless (datagram-based)
Best-effort delivery (unreliable service)
Datagram format
4
Version
8
HLen
16
TOS
31
Length
Ident
TTL
19
Flags
Protocol
Offset
Checksum
SourceAddr
DestinationAddr
Options (variable)
Pad
(variable)
Data
Spring 2002
CS 461
Spring 2002
CS 461
Start of header
Ident = x
Example
0 Offset = 0
Rest of header
(a)
Start of header
Ident = x
1 Offset = 0
Rest of header
H1
R1
R1
R2
R2
R3
R3
H8
Start of header
ETH IP (1400)
FDDI IP (1400)
Ident = x
1 Offset = 64
PPP IP (512)
ETH IP (512)
PPP IP (512)
ETH IP (512)
Rest of header
PPP IP (376)
ETH IP (376)
Start of header
Ident = x
0 Offset = 128
Rest of header
376 data bytes
Spring 2002
CS 461
Global Addresses
Properties
globally unique
hierarchical: network + host
7
Dot Notation
10.3.2.4
128.96.33.81
192.12.69.77
(a)
Network
Host
14
(b)
16
Network
Host
21
(c)
Spring 2002
24
CS 461
Network
8
Host
Datagram Forwarding
Strategy
Example (R2)
Spring 2002
Network Number
1
2
3
4
CS 461
Next Hop
R3
R1
interface 1
interface 0
Address Translation
Map IP addresses into physical addresses
destination host
next hop router
Techniques
encode physical address in host part of IP address
table-based
ARP
Spring 2002
CS 461
ARP Details
Request Format
Notes
Spring 2002
CS 461
16
Hardware type = 1
HLen = 48
PLen = 32
31
ProtocolType = 0x0800
Operation
SourceHardwareAddr (bytes
3)
0
5)
SourceHardwareAddr (bytes
4
0
1)
SourceProtocolAddr (bytes
SourceProtocolAddr (bytes
2)
3
TargetHardwareAddr (bytes
1)0
5)
TargetHardwareAddr (bytes
2
TargetProtocolAddr (bytes
0)
3
Spring 2002
CS 461
10
Echo (ping)
Redirect (from router to source host)
Destination unreachable (protocol, port, or host)
TTL exceeded (so datagrams dont cycle forever)
Checksum failed
Reassembly failed
Cannot fragment
Spring 2002
CS 461
11