SlideShare a Scribd company logo
1
Internet Routing
Protocols – Part I
Prof. Indranil Sen Gupta
Dept. of Computer Science & Engg.
I.I.T. Kharagpur, INDIA
Indian Institute of Technology Kharagpur
Lecture 7: Internet routing
protocols – Part I
On completion, the student will be able to:
1. Explain the operation of an IP router.
2. Understand the various routing methods.
3. Interpret the various fields in a typical routing
table.
4. Explain the basic concept of an autonomous
system (AS).
5. Explain the working of the RIP and OSPF
protocols for dynamically updating the routing
tables.
2
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.
Packet Delivery Options
1. Direct Delivery
¾ Host-to-host
¾ Router-to-host
H1 H2
R
Network
3
2. Indirect Delivery
¾ Through one or more routers.
H1 R1 R2
H2
N N
N
Routing Methods
• Several alternatives possible:
a) Next-hop routing
b) Network-specific routing
c) Host-specific routing
d) Default routing
4
a) Next-hop routing
• Routing tables based on next hop.
H1 H2
R1 R2
R1
H2
Next
Hop
Dest
R2
H2
Next
Hop
Dest
--
H2
Next
Hop
Dest
b) Network-specific routing
• Routing table based on destination
network address.
H1
H2
R1
N1 N2
R1
N2
Next
Hop
Dest
5
Next Hop
Dest
c) Host-specific routing
• Can specify the address of a host.
H1
N1
R1
R2
N2
N3
R3
H2
R2
H2
R2
R1
N3
N2
d) Default routing
• Follow a default path if no match found.
H1 R1
N1 N2
R2
Next Hop
Dest
R1
N2
R2
Default
6
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.
Typical Fields in a Routing Table
• 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
7
Example (Routing table for R1)
M0
112.11.35.18
0.0.0.0
0.0.0.0
M1
--
196.23.15.161
255.255.255.224
M0
--
115.0.0.0
255.0.0.0
Interface
NextHop
Dest
Mask
R1 115.0.0.0
196.23.15.161
R2
M0
M1
Routing Protocols
RIP and OSPF
8
Routing Protocols
• Two classes of protocols:
1. Interior
• Routing Information Protocol (RIP)
• Open Shortest Path First (OSPF)
2. Exterior
• Border Gateway Protocol (BGP)
R
R
R
N
N
N
AS
R
R
R
N
N
N
AS
R
R
R
N
N
N
AS
Autonomous Systems
9
• 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).
• Which class of protocols to use?
¾Use interior router protocols to
exchange information between routers
within an AS.
¾Use exterior routing protocol to pass
exchange routing information between
routers in different AS’s.
10
Routing Information Protocol (RIP)
• Routers within an autonomous
system exchange messages.
¾Distance vector routing using hop
count.
¾Table entries updated using values
received from neighbors.
¾Maintain timers to detect failed links.
¾Used in first generation ARPANET.
Problems
• Slow convergence for larger networks.
• If a network becomes inaccessible, it
may take a long time for all other
routing tables to know this.
¾After a number of message transfers.
• Routing loops may take a long time to
be detected.
¾Counting to infinity problem.
• Too much bandwidth consumed by
routing updates.
11
Open Shortest Path First (OSPF)
• Widely used as the interior router
protocol in TCP/IP networks.
• Basic concept:
¾Computes a route that incurs the least
cost.
ƒ User configurable: delay, data rate,
cost, etc.
¾Each router maintains a database.
ƒ Topology of the autonomous system
to which the router belongs.
ƒ Vertices and edges.
• Two types of vertices:
¾Router
¾Network
• Two types of (weighted) edges:
¾Two routers connected to each other by
direct point-to-point link.
¾A router is directly connected to a network.
• A router calculates the least-cost path to all
destination networks.
¾Using Dijkstra’s algorithm.
¾Only the next hop to the destination is
used in the forwarding process.
12
• 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.
OSPF Header Format
Authentication
Version Type Message length
Checksum Authentication type
SourceAddr
AreaId
0 8 16 31
Authentication
13
• 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)
14
SOLUTIONS TO QUIZ
QUESTIONS ON
LECTURE 6
15
Quiz Solutions on Lecture 6
1. For the subnet mask 255.255.192.0, how
many hosts per subnet are possible?
ƒ 11111111 11111111 11000000 00000000
ƒ 14 bits available for host addresses.
ƒ Number of hosts possible is 214-2=16382.
2. In classful addressing, if we are using the
subnet mask 255.255.192.0, which address
class does it correspond to?
ƒ Either Class A or Class B.
Quiz Solutions on Lecture 6
3. What is the subnet address if the
destination IP address is 144.16.34.124
and the subnet mask is 255.255.240.0 ?
34 :: 0010 0010
240:: 1111 0000
AND:: 0010 0000
Subnet address will be
144.16.32.0
16
Quiz Solutions on Lecture 6
4. What is the natural mask for a class C
network?
255.255.255.0
5. Using simple subnets, is it possible to
divide a network into unequal sized
subnets?
No. Simple subnets can only divide a
network into equal-sized subnets.
Quiz Solutions on Lecture 6
6. For an IP address 10.17.5.122 and subnet
mask 255.255.128.0, what is the subnet
address? How many hosts per subnet
are possible?
Subnet address = 10.17.5.122 AND
255.255.128.0
= 10.17.0.0
There are 15 bits in the host portion.
Hosts per subnet = 215-2 = 32766.
17
Quiz Solutions on Lecture 6
7. Among multiple network classes and
subnets, which alternative imposes more
burden on the external router?
Multiple network classes.
Quiz Solutions on Lecture 6
8. Using VLSM, give a scheme to split a
class C address into four subnets where
the number of hosts required are:
100, 55, 20, 30
256
128 128
64 64
32 32
18
Quiz Solutions on Lecture 6
9. If the number of hosts required are 100,
50, 50 and 20, can VLSM be used?
Not possible. The last subdivision of
50 and 20 cannot be done.
10. Can the following be the beginning
addresses in CIDR based addressing?
144.16.192.32/28 --- YES
10.17.18.42/28 --- NO
188.15.170.55/28 --- NO
200.0.100.80/28 --- YES
Divisible
by 16
Quiz Solutions on Lecture 6
11. For a CIDR address of the form W.X.Y.Z/20,
what is the maximum number of hosts
possible in the network?
Number of bits in host part = 32-20 = 12.
So, number of hosts possible = 212-2 = 4094
19
Quiz Solutions on Lecture 6
12. Which of the following can be the starting
address of a CIDR block that contains 512
addresses?
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
20
Quiz Questions on Lecture 7
1. What is a connection-oriented protocol?
2. What is a connectionless protocol?
3. What is the difference between direct and
indirect packet delivery options?
4. How is the default route specified in the
routing table?
5. What is the problem if we use only host-
specific routing and no network-specific
routing?
Quiz Questions on Lecture 7
6. What do the G and U flags in the routing
table signify?
7. What is the difference between interior
and exterior routing protocols?
8. What is an autonomous system?
9. How do routers update information in
RIP?
10. How to routers compute path in OSPF?
11. Which paths do the packets follow in
OSPF?

More Related Content

Similar to Lecture-07 .pdf

Dynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And BasicsDynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And Basics
Harsh Mehta
 
Ccna 1 chapter 5 v4.0 answers 2011
Ccna 1 chapter 5 v4.0 answers 2011Ccna 1 chapter 5 v4.0 answers 2011
Ccna 1 chapter 5 v4.0 answers 2011Dân Chơi
 
Ccna 4 final exam answer v5
Ccna 4 final exam answer v5Ccna 4 final exam answer v5
Ccna 4 final exam answer v5friv4schoolgames
 
Internetworking
InternetworkingInternetworking
Internetworking
Mahendhirakumar C
 
Network Layer Protocol.pptx
Network Layer Protocol.pptxNetwork Layer Protocol.pptx
Network Layer Protocol.pptx
SeekayAlaisKaruppaia
 
Examen final ccna2
Examen final ccna2Examen final ccna2
Examen final ccna2Juli Yaret
 
IDC lectureA - Network Layer & IP Addressing with Cisco Notes.ppt
IDC lectureA - Network Layer & IP Addressing with Cisco Notes.pptIDC lectureA - Network Layer & IP Addressing with Cisco Notes.ppt
IDC lectureA - Network Layer & IP Addressing with Cisco Notes.ppt
Jayaprasanna4
 
Network Layer
Network LayerNetwork Layer
Network Layer
Lakshika Rasanjali
 
Network layer Part 7
Network layer Part 7Network layer Part 7
Network layer Part 7Tutun Juhana
 
Ippptspk 3
Ippptspk 3Ippptspk 3
Ippptspk 3
SupriyaKurlekar2
 
Ccna 3 final exam answer v5
Ccna 3 final exam answer v5Ccna 3 final exam answer v5
Ccna 3 final exam answer v5friv4schoolgames
 
ch5-network.ppt
ch5-network.pptch5-network.ppt
ch5-network.ppt
JohnColaco1
 
Ccna 4 Final 4 Version 4.0 Answers
Ccna 4 Final 4 Version 4.0 AnswersCcna 4 Final 4 Version 4.0 Answers
Ccna 4 Final 4 Version 4.0 Answers
CCNA4Answers
 
Ccna 2 chapter 10 v4.0 answers 2011
Ccna 2 chapter 10 v4.0 answers 2011Ccna 2 chapter 10 v4.0 answers 2011
Ccna 2 chapter 10 v4.0 answers 2011Dân Chơi
 
Some important networking questions
Some important networking questionsSome important networking questions
Some important networking questionsSrikanth
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ansRavi Kodoli
 
CCNA Dec, 2015 Questions
CCNA Dec, 2015 QuestionsCCNA Dec, 2015 Questions
CCNA Dec, 2015 Questions
Eng. Emad Al-Atoum
 
module11-ospf(Open Shortest Path First).ppt
module11-ospf(Open Shortest Path First).pptmodule11-ospf(Open Shortest Path First).ppt
module11-ospf(Open Shortest Path First).ppt
Electro00
 

Similar to Lecture-07 .pdf (20)

Dynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And BasicsDynamic Routing All Algorithms, Working And Basics
Dynamic Routing All Algorithms, Working And Basics
 
Ccna 1 chapter 5 v4.0 answers 2011
Ccna 1 chapter 5 v4.0 answers 2011Ccna 1 chapter 5 v4.0 answers 2011
Ccna 1 chapter 5 v4.0 answers 2011
 
Ccna 4 final exam answer v5
Ccna 4 final exam answer v5Ccna 4 final exam answer v5
Ccna 4 final exam answer v5
 
Internetworking
InternetworkingInternetworking
Internetworking
 
Network Layer Protocol.pptx
Network Layer Protocol.pptxNetwork Layer Protocol.pptx
Network Layer Protocol.pptx
 
Examen final ccna2
Examen final ccna2Examen final ccna2
Examen final ccna2
 
IDC lectureA - Network Layer & IP Addressing with Cisco Notes.ppt
IDC lectureA - Network Layer & IP Addressing with Cisco Notes.pptIDC lectureA - Network Layer & IP Addressing with Cisco Notes.ppt
IDC lectureA - Network Layer & IP Addressing with Cisco Notes.ppt
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Network layer Part 7
Network layer Part 7Network layer Part 7
Network layer Part 7
 
Ippptspk 3
Ippptspk 3Ippptspk 3
Ippptspk 3
 
Ccna 3 final exam answer v5
Ccna 3 final exam answer v5Ccna 3 final exam answer v5
Ccna 3 final exam answer v5
 
ch5-network.ppt
ch5-network.pptch5-network.ppt
ch5-network.ppt
 
Ccna 4 Final 4 Version 4.0 Answers
Ccna 4 Final 4 Version 4.0 AnswersCcna 4 Final 4 Version 4.0 Answers
Ccna 4 Final 4 Version 4.0 Answers
 
Ccna 2 chapter 10 v4.0 answers 2011
Ccna 2 chapter 10 v4.0 answers 2011Ccna 2 chapter 10 v4.0 answers 2011
Ccna 2 chapter 10 v4.0 answers 2011
 
Some important networking questions
Some important networking questionsSome important networking questions
Some important networking questions
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ans
 
CCNA Dec, 2015 Questions
CCNA Dec, 2015 QuestionsCCNA Dec, 2015 Questions
CCNA Dec, 2015 Questions
 
module11-ospf(Open Shortest Path First).ppt
module11-ospf(Open Shortest Path First).pptmodule11-ospf(Open Shortest Path First).ppt
module11-ospf(Open Shortest Path First).ppt
 
module11-ospf.ppt
module11-ospf.pptmodule11-ospf.ppt
module11-ospf.ppt
 
Ospf routing protocol
Ospf routing protocolOspf routing protocol
Ospf routing protocol
 

More from AbrahamGadissa

broadband and high speed LANS Chapter06.ppt
broadband and high speed LANS Chapter06.pptbroadband and high speed LANS Chapter06.ppt
broadband and high speed LANS Chapter06.ppt
AbrahamGadissa
 
broadband and high speed commu Chapter10.ppt
broadband and high speed commu Chapter10.pptbroadband and high speed commu Chapter10.ppt
broadband and high speed commu Chapter10.ppt
AbrahamGadissa
 
high speed broadband communicationChapter11.ppt
high speed broadband communicationChapter11.ppthigh speed broadband communicationChapter11.ppt
high speed broadband communicationChapter11.ppt
AbrahamGadissa
 
Chapter three.03_FundamentalParameters.pdf
Chapter three.03_FundamentalParameters.pdfChapter three.03_FundamentalParameters.pdf
Chapter three.03_FundamentalParameters.pdf
AbrahamGadissa
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
AbrahamGadissa
 
Antenna efficency lecture course chapter 3.pdf
Antenna  efficency lecture course chapter 3.pdfAntenna  efficency lecture course chapter 3.pdf
Antenna efficency lecture course chapter 3.pdf
AbrahamGadissa
 
Antenna lecture course CHapter 2_(2)[1].pdf
Antenna lecture course  CHapter 2_(2)[1].pdfAntenna lecture course  CHapter 2_(2)[1].pdf
Antenna lecture course CHapter 2_(2)[1].pdf
AbrahamGadissa
 
Antenna Lecture course CHapter one 1.pdf
Antenna Lecture course  CHapter one 1.pdfAntenna Lecture course  CHapter one 1.pdf
Antenna Lecture course CHapter one 1.pdf
AbrahamGadissa
 
Chapter06.ppt this is chapter six. use it
Chapter06.ppt this is chapter six. use itChapter06.ppt this is chapter six. use it
Chapter06.ppt this is chapter six. use it
AbrahamGadissa
 
Chapter04.pptAdvance concept of networking
Chapter04.pptAdvance concept of networkingChapter04.pptAdvance concept of networking
Chapter04.pptAdvance concept of networking
AbrahamGadissa
 
Chapter03.ppt Advance network concept chapter3
Chapter03.ppt Advance network concept chapter3Chapter03.ppt Advance network concept chapter3
Chapter03.ppt Advance network concept chapter3
AbrahamGadissa
 
Chapter01&02.ppt Advanced computer network
Chapter01&02.ppt Advanced computer networkChapter01&02.ppt Advanced computer network
Chapter01&02.ppt Advanced computer network
AbrahamGadissa
 
Lecture-05.pdf
Lecture-05.pdfLecture-05.pdf
Lecture-05.pdf
AbrahamGadissa
 
importance-security-awareness-training-33013.pdf
importance-security-awareness-training-33013.pdfimportance-security-awareness-training-33013.pdf
importance-security-awareness-training-33013.pdf
AbrahamGadissa
 
IP Addressing.ppt
IP Addressing.pptIP Addressing.ppt
IP Addressing.ppt
AbrahamGadissa
 

More from AbrahamGadissa (17)

broadband and high speed LANS Chapter06.ppt
broadband and high speed LANS Chapter06.pptbroadband and high speed LANS Chapter06.ppt
broadband and high speed LANS Chapter06.ppt
 
broadband and high speed commu Chapter10.ppt
broadband and high speed commu Chapter10.pptbroadband and high speed commu Chapter10.ppt
broadband and high speed commu Chapter10.ppt
 
high speed broadband communicationChapter11.ppt
high speed broadband communicationChapter11.ppthigh speed broadband communicationChapter11.ppt
high speed broadband communicationChapter11.ppt
 
Chapter three.03_FundamentalParameters.pdf
Chapter three.03_FundamentalParameters.pdfChapter three.03_FundamentalParameters.pdf
Chapter three.03_FundamentalParameters.pdf
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Antenna efficency lecture course chapter 3.pdf
Antenna  efficency lecture course chapter 3.pdfAntenna  efficency lecture course chapter 3.pdf
Antenna efficency lecture course chapter 3.pdf
 
Antenna lecture course CHapter 2_(2)[1].pdf
Antenna lecture course  CHapter 2_(2)[1].pdfAntenna lecture course  CHapter 2_(2)[1].pdf
Antenna lecture course CHapter 2_(2)[1].pdf
 
Antenna Lecture course CHapter one 1.pdf
Antenna Lecture course  CHapter one 1.pdfAntenna Lecture course  CHapter one 1.pdf
Antenna Lecture course CHapter one 1.pdf
 
Chapter06.ppt this is chapter six. use it
Chapter06.ppt this is chapter six. use itChapter06.ppt this is chapter six. use it
Chapter06.ppt this is chapter six. use it
 
Chapter04.pptAdvance concept of networking
Chapter04.pptAdvance concept of networkingChapter04.pptAdvance concept of networking
Chapter04.pptAdvance concept of networking
 
Chapter03.ppt Advance network concept chapter3
Chapter03.ppt Advance network concept chapter3Chapter03.ppt Advance network concept chapter3
Chapter03.ppt Advance network concept chapter3
 
Chapter01&02.ppt Advanced computer network
Chapter01&02.ppt Advanced computer networkChapter01&02.ppt Advanced computer network
Chapter01&02.ppt Advanced computer network
 
Lecture-05.pdf
Lecture-05.pdfLecture-05.pdf
Lecture-05.pdf
 
Lecture_1.ppt
Lecture_1.pptLecture_1.ppt
Lecture_1.ppt
 
importance-security-awareness-training-33013.pdf
importance-security-awareness-training-33013.pdfimportance-security-awareness-training-33013.pdf
importance-security-awareness-training-33013.pdf
 
Lecture_1.ppt
Lecture_1.pptLecture_1.ppt
Lecture_1.ppt
 
IP Addressing.ppt
IP Addressing.pptIP Addressing.ppt
IP Addressing.ppt
 

Recently uploaded

Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 

Recently uploaded (20)

Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 

Lecture-07 .pdf

  • 1. 1 Internet Routing Protocols – Part I Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T. Kharagpur, INDIA Indian Institute of Technology Kharagpur Lecture 7: Internet routing protocols – Part I On completion, the student will be able to: 1. Explain the operation of an IP router. 2. Understand the various routing methods. 3. Interpret the various fields in a typical routing table. 4. Explain the basic concept of an autonomous system (AS). 5. Explain the working of the RIP and OSPF protocols for dynamically updating the routing tables.
  • 2. 2 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. Packet Delivery Options 1. Direct Delivery ¾ Host-to-host ¾ Router-to-host H1 H2 R Network
  • 3. 3 2. Indirect Delivery ¾ Through one or more routers. H1 R1 R2 H2 N N N Routing Methods • Several alternatives possible: a) Next-hop routing b) Network-specific routing c) Host-specific routing d) Default routing
  • 4. 4 a) Next-hop routing • Routing tables based on next hop. H1 H2 R1 R2 R1 H2 Next Hop Dest R2 H2 Next Hop Dest -- H2 Next Hop Dest b) Network-specific routing • Routing table based on destination network address. H1 H2 R1 N1 N2 R1 N2 Next Hop Dest
  • 5. 5 Next Hop Dest c) Host-specific routing • Can specify the address of a host. H1 N1 R1 R2 N2 N3 R3 H2 R2 H2 R2 R1 N3 N2 d) Default routing • Follow a default path if no match found. H1 R1 N1 N2 R2 Next Hop Dest R1 N2 R2 Default
  • 6. 6 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. Typical Fields in a Routing Table • 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
  • 7. 7 Example (Routing table for R1) M0 112.11.35.18 0.0.0.0 0.0.0.0 M1 -- 196.23.15.161 255.255.255.224 M0 -- 115.0.0.0 255.0.0.0 Interface NextHop Dest Mask R1 115.0.0.0 196.23.15.161 R2 M0 M1 Routing Protocols RIP and OSPF
  • 8. 8 Routing Protocols • Two classes of protocols: 1. Interior • Routing Information Protocol (RIP) • Open Shortest Path First (OSPF) 2. Exterior • Border Gateway Protocol (BGP) R R R N N N AS R R R N N N AS R R R N N N AS Autonomous Systems
  • 9. 9 • 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). • Which class of protocols to use? ¾Use interior router protocols to exchange information between routers within an AS. ¾Use exterior routing protocol to pass exchange routing information between routers in different AS’s.
  • 10. 10 Routing Information Protocol (RIP) • Routers within an autonomous system exchange messages. ¾Distance vector routing using hop count. ¾Table entries updated using values received from neighbors. ¾Maintain timers to detect failed links. ¾Used in first generation ARPANET. Problems • Slow convergence for larger networks. • If a network becomes inaccessible, it may take a long time for all other routing tables to know this. ¾After a number of message transfers. • Routing loops may take a long time to be detected. ¾Counting to infinity problem. • Too much bandwidth consumed by routing updates.
  • 11. 11 Open Shortest Path First (OSPF) • Widely used as the interior router protocol in TCP/IP networks. • Basic concept: ¾Computes a route that incurs the least cost. ƒ User configurable: delay, data rate, cost, etc. ¾Each router maintains a database. ƒ Topology of the autonomous system to which the router belongs. ƒ Vertices and edges. • Two types of vertices: ¾Router ¾Network • Two types of (weighted) edges: ¾Two routers connected to each other by direct point-to-point link. ¾A router is directly connected to a network. • A router calculates the least-cost path to all destination networks. ¾Using Dijkstra’s algorithm. ¾Only the next hop to the destination is used in the forwarding process.
  • 12. 12 • 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. OSPF Header Format Authentication Version Type Message length Checksum Authentication type SourceAddr AreaId 0 8 16 31 Authentication
  • 13. 13 • 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)
  • 15. 15 Quiz Solutions on Lecture 6 1. For the subnet mask 255.255.192.0, how many hosts per subnet are possible? ƒ 11111111 11111111 11000000 00000000 ƒ 14 bits available for host addresses. ƒ Number of hosts possible is 214-2=16382. 2. In classful addressing, if we are using the subnet mask 255.255.192.0, which address class does it correspond to? ƒ Either Class A or Class B. Quiz Solutions on Lecture 6 3. What is the subnet address if the destination IP address is 144.16.34.124 and the subnet mask is 255.255.240.0 ? 34 :: 0010 0010 240:: 1111 0000 AND:: 0010 0000 Subnet address will be 144.16.32.0
  • 16. 16 Quiz Solutions on Lecture 6 4. What is the natural mask for a class C network? 255.255.255.0 5. Using simple subnets, is it possible to divide a network into unequal sized subnets? No. Simple subnets can only divide a network into equal-sized subnets. Quiz Solutions on Lecture 6 6. For an IP address 10.17.5.122 and subnet mask 255.255.128.0, what is the subnet address? How many hosts per subnet are possible? Subnet address = 10.17.5.122 AND 255.255.128.0 = 10.17.0.0 There are 15 bits in the host portion. Hosts per subnet = 215-2 = 32766.
  • 17. 17 Quiz Solutions on Lecture 6 7. Among multiple network classes and subnets, which alternative imposes more burden on the external router? Multiple network classes. Quiz Solutions on Lecture 6 8. Using VLSM, give a scheme to split a class C address into four subnets where the number of hosts required are: 100, 55, 20, 30 256 128 128 64 64 32 32
  • 18. 18 Quiz Solutions on Lecture 6 9. If the number of hosts required are 100, 50, 50 and 20, can VLSM be used? Not possible. The last subdivision of 50 and 20 cannot be done. 10. Can the following be the beginning addresses in CIDR based addressing? 144.16.192.32/28 --- YES 10.17.18.42/28 --- NO 188.15.170.55/28 --- NO 200.0.100.80/28 --- YES Divisible by 16 Quiz Solutions on Lecture 6 11. For a CIDR address of the form W.X.Y.Z/20, what is the maximum number of hosts possible in the network? Number of bits in host part = 32-20 = 12. So, number of hosts possible = 212-2 = 4094
  • 19. 19 Quiz Solutions on Lecture 6 12. Which of the following can be the starting address of a CIDR block that contains 512 addresses? 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
  • 20. 20 Quiz Questions on Lecture 7 1. What is a connection-oriented protocol? 2. What is a connectionless protocol? 3. What is the difference between direct and indirect packet delivery options? 4. How is the default route specified in the routing table? 5. What is the problem if we use only host- specific routing and no network-specific routing? Quiz Questions on Lecture 7 6. What do the G and U flags in the routing table signify? 7. What is the difference between interior and exterior routing protocols? 8. What is an autonomous system? 9. How do routers update information in RIP? 10. How to routers compute path in OSPF? 11. Which paths do the packets follow in OSPF?