Lecture 07
Lecture 07
Internet Routing
Protocols – Part I
Prof. Indranil Sen Gupta
Dept. of Computer Science & Engg.
I.I.T. Kharagpur, INDIA
1
Connection Options
1. Connection-oriented
¾ Network layer protocol first makes a
connection.
¾ All packets delivered as per the
connection.
2. Connection-less
¾ Network layer protocol treats each
packet independently.
¾ No relationship between packets.
1. Direct Delivery
¾ Host-to-host
¾ Router-to-host
H1 Network H2
2
2. Indirect Delivery
¾ Through one or more routers.
H1 N R1 N R2
N
H2
Routing Methods
3
a) Next-hop routing
H1 R1 R2 H2
b) Network-specific routing
Dest Next
Hop R1 H2
N2 R1
N1 N2
H1
4
c) Host-specific routing
N1 R3
H1 R2
N3 H2
d) Default routing
H1 R1
N1 N2
5
Types of Routing Table
1. Static
¾ Contains information inserted
manually.
¾ Does not change with time.
2. Dynamic
¾ Updated periodically depending on
network condition.
¾ Uses protocols like RIP, OSPF, BGP,
etc.
• Subnet mask
• Destination IP address
• Next hop address
• Flags
¾ U : router is up and running
¾ G : destination is in another network
¾ H : host-specific address
¾ D : added by redirection
¾ M : modified by redirection
• Interface
6
Example (Routing table for R1)
255.0.0.0 115.0.0.0 -- M0
255.255.255.224 196.23.15.161 -- M1
M0
R1 115.0.0.0 R2
M1
196.23.15.161
Routing Protocols
7
Routing Protocols
Autonomous Systems
R N R N
N R N AS R
AS
N N
R R
R N
N AS R
N
R
8
• What is an AS?
¾A set of routers and networks managed
by a single organization.
¾The routers within the AS exchange
information using a common routing
protocol.
¾The AS graph is connected (in the
absence of failure).
9
Routing Information Protocol (RIP)
Problems
10
Open Shortest Path First (OSPF)
11
• At steady state
¾All routers know the same network
topology.
¾“Hello” packets sent every 10 seconds
(configurable) to neighbors.
¾Link State Advertisement (LSA) flooded
initially from each router.
¾Absence of “Hello” packet for 40 seconds
indicate failure of neighbour.
Causes LSA to be flooded again.
¾LSAs re-flooded every 30 minutes anyway.
0 8 16 31
Version T ype Message length
SourceAddr
AreaId
Authentication
Authentication
12
• Packet types :
¾1 : Hello (check if neighbor is up)
¾2 : Database Description (synchronize
database at beginning)
¾3 : Link State Request (request specific
LSA)
¾4 : Link State Update (LSAs flooded)
¾5 : Link State Acknowledgement
(flooded LSAs are explicitly ack’ed –
reliable flooding)
• Authentication type:
¾Cleartext
¾Encrypted (MD5 Hash, others possible)
13
SOLUTIONS TO QUIZ
QUESTIONS ON
LECTURE 6
14
Quiz Solutions on Lecture 6
34 :: 0010 0010
240:: 1111 0000
AND:: 0010 0000
Subnet address will be
144.16.32.0
15
Quiz Solutions on Lecture 6
255.255.255.0
16
Quiz Solutions on Lecture 6
256
128 128
64 64
32 32
17
Quiz Solutions on Lecture 6
18
Quiz Solutions on Lecture 6
144.16.24.128 --- NO
144.16.75.0 --- NO
144.16.24.0 --- YES
144.16.0.0 --- YES
QUIZ QUESTIONS ON
LECTURE 7
19
Quiz Questions on Lecture 7
20