





































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






































4: Network Layer 4a-
understand principles behind network layer services: routing (path selection) dealing with scale how a router works advanced topics: IPv6, multicast
instantiation and implementation in the Internet
network layer services routing principle: path selection hierarchical routing IP Internet routing protocols reliable transfer intra-domain inter-domain what‟s inside a router? IPv multicast routing
4: Network Layer 4a-
Network layer functions
transport packet from sending to receiving hosts network layer protocols in
three important functions:
taken by packets from source
router‟s input to appropriate router output
architectures require router call setup along path before data flows
network data link physical
network data link physical
network data link physical
network data link physical
network data link physical
network data link physical
network data link physical
network data link physical
application transport network data link physical
application transport network data link physical
4: Network Layer 4a-
each packet carries VC identifier (not destination host ID)
each passing connection transport-layer connection only involve two end systems link, router resources (bandwidth, buffers) may be
to get circuit-like perf.
performance-wise network actions along source-to-dest path
4: Network Layer 4a-
Virtual circuits: signaling protocols
application transport network data link physical
application transport network data link physical
4: Network Layer 4a-
Network layer service models:
Network Architecture
Internet
ATM
ATM
ATM
ATM
Service Model
best effort
CBR
VBR
ABR
UBR
Bandwidth
none
constant rate guaranteed rate guaranteed minimum none
Loss
no
yes
yes
no
no
Order
no
yes
yes
yes
yes
Timing
no
yes
yes
no
no
Congestion feedback
no (inferred via loss) no congestion no congestion yes
no
Guarantees?
Internet model being extended: Intserv, Diffserv Chapter 6
4: Network Layer 4a-
Datagram or VC network: why?
data exchange among computers “elastic” service, no strict timing req. “smart” end systems (computers) can adapt, perform control, error recovery simple inside network, complexity at “edge” many link types different characteristics uniform service difficult
evolved from telephony human conversation: strict timing, reliability requirements need for guaranteed service “dumb” end systems telephones complexity inside network
4: Network Layer 4a-
Routing Algorithm classification
global: graph of entire network (routers, links). [link state] local: partial knowledge of remote parts of network. [distance vector approach]
one node maintains view, and distributes routes to other nodes all nodes maintain view
Static: infrequent route changes infrequent view update; static link costs (e.g. up/down) Dynamic: frequent periodic route changes frequent view update; dynamic link costs (e.g. delay)
4: Network Layer 4a-
A Link-State Routing Algorithm
net topology, link costs known to all nodes accomplished via “link state broadcast” all nodes have same info
computes least cost paths from one node („source”) to all other nodes gives routing table for that node
iterative: after k iterations, know least cost path to k dest.‟s
to j. cost infinite if not direct neighbors
of path from source to dest. V
along path from source to v, that is next v
least cost path definitively known
4: Network Layer 4a-
Dijkstra‟s algorithm: example
Step 0 1 2 3 4 5
start N A AD ADE ADEB ADEBC ADEBCF
D(B),p(B) 2,A 2,A 2,A
D(C),p(C) 5,A 4,D 3,E 3,E
D(D),p(D) 1,A
D(E),p(E) infinity 2,D
D(F),p(F) infinity infinity 4,E 4,E 4,E
2 2 1
3
1
1 2
5
3
5
4: Network Layer 4a-
Dijkstra‟s algorithm, discussion
(^1) 1+e
0 e
e
(^1 )
0 0
2+e (^0)
0 0
1+e 1
(^0) 2+e
(^1) 1+e
0 0
2+e (^0)
0 e
1+e 1
initially
… recompute routing
… recompute … recompute
4: Network Layer 4a-
Distance Table: example
7 8 1 2
1
2
E cost to destination via
c(E,D) + min {D (C,w)}D w
c(E,D) + min {D (A,w)}D w
c(E,B) + min {D (A,w)}B w
loop!
loop!
4: Network Layer 4a-
Distance table gives routing table
E cost to destination via
Outgoing link to use, cost
4: Network Layer 4a-
Distance Vector Algorithm:
1 Initialization: 2 for all adjacent nodes v: 3 D (,v) = infty / the * operator means "for all rows" / 4 D (v,v) = c(X,v) 5 for all destinations, y 6 send min D (y,w) to each neighbor / w over all X's neighbors */
X X
X w
4: Network Layer 4a-
Distance Vector Algorithm (cont.):
8 loop 9 wait (until I see a link cost change to neighbor V 10 or until I receive update from neighbor V) 11 12 if (c(X,V) changes by d) 13 /* change cost to all dest's via neighbor v by d / 14 / note: d could be positive or negative / 15 for all destinations y: D (y,V) = D (y,V) + d 16 17 else if (update received from V wrt destination Y) 18 / shortest path from V to some Y has changed / 19 / V has sent a new value for its min DV(Y,w) / 20 / call this received new value is "newval" */ 21 for the single destination y: D (Y,V) = c(X,V) + newval 22 23 if we have a new min D (Y,w)for any destination Y 24 send new value of min D (Y,w) to all neighbors 25 26 forever
w
X X
X X
X
w w