13 network layer
TRANSCRIPT
-
8/13/2019 13 Network Layer
1/15
CSC4430 Data Communication and Computer Networks 1
Lecture 13 (Network Layer) Outline
Internet Network Layer:
Internet Routing Protocols
IP Datagram Format IP Addressing
-
8/13/2019 13 Network Layer
2/15
CSC4430 Data Communication and Computer Networks 2
13.1. Internet Network Layer
Host, router network layer functions:
routingtable
Routing protocolspath selectionRIP, OSPF, BGP
IP protocoldatagram formataddressing conventions
packet handling conventions
ICMP protocolerror reporting
router signaling
Transport layer: TCP, UDP
Link layer
physical layer
Networklayer
-
8/13/2019 13 Network Layer
3/15
CSC4430 Data Communication and Computer Networks 3
13.2. Internet Routing Protocols
Our routing study thus far - idealization
all routers identical.
network flat.
not true in practice.
Two major issues: Scalability: with 50 million destinations:
cant store all destinations in routing tables!
routing table exchange would swamp links! Administrative autonomy:
each network admin may want to control routing in
its own network.
-
8/13/2019 13 Network Layer
4/15
CSC4430 Data Communication and Computer Networks 4
13.2. Internet Routing Protocols
Hierarchical routings:
Aggregate routers into regions or autonomous
systems (AS).
a
b
b
a
aC
A
Bd
A.a
A.c
C.b
B.a
c
b
c
interior routers
border (gateway) routers
-
8/13/2019 13 Network Layer
5/15
CSC4430 Data Communication and Computer Networks 5
13.2. Internet Routing Protocols
Hierarchical routings:
Interior routers:
routers in same AS.run same intra-AS routing protocol.
routers in different AS can run different intra-AS routing
protocol. Gateway (Border) routers:
special routers in AS
run intra-AS routing protocol with all other routers in AS.
also responsible for routing to destinations outside AS.
run inter-AS routing protocol with other gateway
routers.
-
8/13/2019 13 Network Layer
6/15
CSC4430 Data Communication and Computer Networks 6
13.2. Internet Routing Protocols
Two-level routing:
Intra-domain or interior routing.
Routing withinASs. Inter-domain or exterior routing.
Routing betweenASs.
-
8/13/2019 13 Network Layer
7/15
CSC4430 Data Communication and Computer Networks 7
13.2. Internet Routing Protocols
RIP: Routing Information Protocol
OSPF: Open Shortest Path First
BGP: Border Gateway Protocol
-
8/13/2019 13 Network Layer
8/15
CSC4430 Data Communication and Computer Networks 8
13.2. Internet Routing Protocols
Routing Information Protocol (RIP):
Based on distance vector algorithm.
Link cost = 1 hop. Distance metric: # of hops (max = 15 hops)
Exchange distance vectors with its neighbors
every 30 seconds periodic exchange. This exchange is also called RIP advertisement.
Each advertisement can include route to up to 25
destination network.
-
8/13/2019 13 Network Layer
9/15
CSC4430 Data Communication and Computer Networks 9
13.2. Internet Routing Protocols
Open Shortest Path First (OSPF):
Uses link state algorithm.
OSPF advertisement carries one cost entry perneighbor router.
If have n neighbors then have n entries.
Advertisements disseminated to entireAS (viaflooding).
-
8/13/2019 13 Network Layer
10/15
CSC4430 Data Communication and Computer Networks 10
13.2. Internet Routing Protocols
Border Gateway Protocol (BGP):
The inter-domain protocol in use today.
Now in version 4, i.e. BGP-4 Supports arbitrary network topology
Based on Path Vector Routing.
similar to Distance Vector protocol.
each Border Gateway broadcast to neighbors
(peers) entire path (i.e. sequence of ASs) to
destination.
-
8/13/2019 13 Network Layer
11/15
CSC4430 Data Communication and Computer Networks 11
13.2. Internet Routing Protocols
Path vector routing:
e.g. Router R1 sends a path vector messageadvertising the reach ability of N1.
-
8/13/2019 13 Network Layer
12/15
CSC4430 Data Communication and Computer Networks 12
13.2. Internet Routing Protocols
Why different Intra- and Inter-AS routing ?
Policy:
Intra-AS: single admin, so no policy decisionsneeded.
Inter-AS: admin wants control over how its traffic
routed, who routes through its net. Scale:
hierarchical routing saves table size, reduced
update traffic.
Performance:
Intra-AS: can focus on performance.
Inter-AS: policy may dominate over performance.
-
8/13/2019 13 Network Layer
13/15
CSC4430 Data Communication and Computer Networks 13
13.2. Internet Routing Protocols
Policy example:
Suppose R2 sends its path to R3.
R3 may or may not accept path offered by R2policy (dont accept transit traffic).
R2 needs to find other route.
-
8/13/2019 13 Network Layer
14/15
CSC4430 Data Communication and Computer Networks 14
13.2. Further Readings
Internet Network Layer:
Internet Routing Protocols : Section 21.7 21.8.
-
8/13/2019 13 Network Layer
15/15
15
Next Lecture
IP datagram
(Forouzan Section 24.2)