


































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: Computer Networks; Subject: Computer Science; University: California State University-East Bay; Term: Unknown 1989;
Typology: Study notes
1 / 42
This page cannot be seen from the preview
Don't miss anything!



































IP Internet
-^
Concatenation of Networks
-^
Protocol Stack
R
R
H
H
H
H
H1 Network 2 (Ethernet)
Network 1 (Ethernet)
H
Network 3 (FDDI)
Network 4(point-to-point) H
R
H
R
ETH
FDDI IP
TCP IP ETH
R
FDDI
PPP IP
R
PPP
ETH IP
H
TCP IP ETH
H
Example
Latency = 20m/(2.3x
8 m/s) + (1500bytes *
8bits/byte)/ 10Mbps Answer = 12ms
Example
Given a channel with a two way latency of 100ms
and a bandwidth of 45Mbps, how much data canbe “in flight?” Latency * bandwidth = volume
Service Model
-^
-^
packets are lost
-^
packets are delivered out of order
-^
duplicate copies of a packet are delivered
-^
packets can be delayed for a long time
-^
Version
HLen
TOS
Length
Ident
Flags
Offset
TTL
Protocol
Checksum
SourceAddrDestinationAddr
Options (variable)
Pad(variable)
0
4
8
16
19
31
Data
Service Model
Version
Hlen
: length of header in 32 bit
words (20bytes w/o options
-^
: used when differentiated
services are provided
-^
Length
: size of data + header in
bytes. Max size 65,
-^
: time to live
Protocol
: of upper layer
Checksum
: adds up header in
16bit words using 1’scomplement then take 1’scomplement of result
-^
Source address
-^
Destination address
-^
Options
: not used
Pad
: for even byte boundary
Version
HLen
TOS
Length
Ident
Flags
Offset
TTL
Protocol
Checksum
SourceAddrDestinationAddr
Options (variable)
Pad(variable)
0
4
8
16
19
31
Data
Example
H
R
R
R
H
ETH IP (1400)
FDDI IP (1400)
PPP IP (512)PPP IP (512)PPP IP (376)
ETH IP (512)ETH IP (512)ETH IP (376)
Ident= x
Offset= 0
Start of header
0
Rest of header1400 data bytes
Ident= x
Offset= 0
Start of header
1
Rest of header512 data bytes
Ident= x
Offset= 512
Start of header
1
Rest of header512 data bytes
Ident= x
Offset= 1024
Start of header
0
Rest of header376 data bytes
MTU ETH = 1500bytes
MTU FDDI=
MTU PPP=532bytes
1420 bytes total
R
Global Addresses
-^
Properties– globally unique– hierarchical: network + host
-^
Dot Notation– 10.3.2.4– 128.96.33.81– 192.12.69.
Network
Host
7
24
0
A:
Network
Host
14
16
1
0
B:
Network
Host
21
8
1
1
0
C:
Address Translation
-^
Map IP addresses into physical addresses– destination host– next hop router
-^
Techniques– encode physical address in host part of IP address
Overview Routing
-^
Forwarding vs Routing– forwarding: to select an output port based on
Forwarding Algorithm
destination
address
for
each
entry
(SubnetNum,
SubnetMask,
NextHop)
SubnetMask
if
SubnetNum
if
NextHop
is
an
interface
deliver
datagram
directly
to
else
deliver
datagram
to
NextHop
-^
-^
-^
-^
Overview Routing
-^
Network as a Graph
-^
Problem: Find lowest cost path between two nodes
-^
Factors– static: topology– dynamic: load
-^
Adaptive & Static algorithms for routing
4
3
6
2
1
9
1
1 D A
F
E
B
C
Example•
Initial Routing table for Node A
Destination
Cost
NextHop
D
G
A F
E B
C
Example•
Finding a Routing table for Node A
Destination
Cost
NextHop
D
G
A F
E B
C