SlideShare a Scribd company logo
1 of 20
Download to read offline
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 BasicsHarsh 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
 
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.pptJayaprasanna4
 
Network layer Part 7
Network layer Part 7Network layer Part 7
Network layer Part 7Tutun Juhana
 
Ccna 3 final exam answer v5
Ccna 3 final exam answer v5Ccna 3 final exam answer v5
Ccna 3 final exam answer v5friv4schoolgames
 
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 AnswersCCNA4Answers
 
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
 
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).pptElectro00
 

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.ppt
module11-ospf.pptmodule11-ospf.ppt
module11-ospf.ppt
 
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
 
Ospf routing protocol
Ospf routing protocolOspf routing protocol
Ospf routing protocol
 

Recently uploaded

(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 

Recently uploaded (20)

(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 

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?