SlideShare a Scribd company logo
1 of 78
CChhaapptteerr 1144 
UUnniiccaasstt RRoouuttiinngg PPrroottooccoollss:: 
RRIIPP,, OOSSPPFF,, aanndd BBGGPP 
Objectives 
Upon completion you will be able to: 
• Distinguish between intra and interdomain routing 
• Understand distance vector routing and RIP 
• Understand link state routing and OSPF 
• Understand path vector routing and BGP 
TCP/IP Protocol Suite 1
14.1 INTRA- AND INTERDOMAIN 
ROUTING 
Routing inside an autonomous system is referred ttoo aass iinnttrraaddoommaaiinn 
rroouuttiinngg.. RRoouuttiinngg bbeettwweeeenn aauuttoonnoommoouuss ssyysstteemmss iiss rreeffeerrrreedd ttoo aass 
iinntteerrddoommaaiinn rroouuttiinngg.. 
TCP/IP Protocol Suite 2
Figure 14.1 Autonomous systems 
TCP/IP Protocol Suite 3
Figure 14.2 Popular routing protocols 
TCP/IP Protocol Suite 4
14.2 DISTANCE VECTOR ROUTING 
In distance vector routing, the least cost route between aannyy ttwwoo nnooddeess iiss 
tthhee rroouuttee wwiitthh mmiinniimmuumm ddiissttaannccee.. IInn tthhiiss pprroottooccooll eeaacchh nnooddee mmaaiinnttaaiinnss aa 
vveeccttoorr ((ttaabbllee)) ooff mmiinniimmuumm ddiissttaanncceess ttoo eevveerryy nnooddee 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
IInniittiiaalliizzaattiioonn 
SShhaarriinngg 
UUppddaattiinngg 
WWhheenn ttoo SShhaarree 
TTwwoo--NNooddee LLoooopp IInnssttaabbiilliittyy 
TThhrreeee--NNooddee IInnssttaabbiilliittyy 
TCP/IP Protocol Suite 5
Figure 14.3 Distance vector routing tables 
TCP/IP Protocol Suite 6
Figure 14.4 Initialization of tables in distance vector routing 
TCP/IP Protocol Suite 7
NNoottee:: 
In distance vector routing, each node 
shares its routing table with its 
immediate neighbors periodically and 
when there is a change. 
TCP/IP Protocol Suite 8
Figure 14.5 Updating in distance vector routing 
TCP/IP Protocol Suite 9
Figure 14.6 Two-node instability 
TCP/IP Protocol Suite 10
Figure 14.7 Three-node instability 
TCP/IP Protocol Suite 11
14.3 RIP 
The Routing Information Protocol (RIP) is an iinnttrraaddoommaaiinn rroouuttiinngg 
pprroottooccooll uusseedd iinnssiiddee aann aauuttoonnoommoouuss ssyysstteemm.. IItt iiss aa vveerryy ssiimmppllee pprroottooccooll 
bbaasseedd oonn ddiissttaannccee vveeccttoorr rroouuttiinngg.. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
RRIIPP MMeessssaaggee FFoorrmmaatt 
RReeqquueessttss aanndd RReessppoonnsseess 
TTiimmeerrss iinn RRIIPP 
RRIIPP VVeerrssiioonn 22 
EEnnccaappssuullaattiioonn 
TCP/IP Protocol Suite 12
Figure 14.8 Example of a domain using RIP 
TCP/IP Protocol Suite 13
Figure 14.9 RIP message format 
TCP/IP Protocol Suite 14
Figure 14.10 Request messages 
TCP/IP Protocol Suite 15
ExamplE 1 
Figure 14.11 shows the update message sent from router R1 to 
router R2 in Figure 14.8. The message is sent out of interface 
130.10.0.2. 
The message is prepared with the combination of split horizon 
and poison reverse strategy in mind. Router R1 has obtained 
information about networks 195.2.4.0, 195.2.5.0, and 195.2.6.0 
from router R2. When R1 sends an update message to R2, it 
replaces the actual value of the hop counts for these three 
networks with 16 (infinity) to prevent any confusion for R2. 
The figure also shows the table extracted from the message. 
Router R2 uses the source address of the IP datagram carrying 
the RIP message from R1 (130.10.02) as the next hop address. 
See Next Slide 
TCP/IP Protocol Suite 16
Figure 14.11 Solution to Example 1 
TCP/IP Protocol Suite 17
Figure 14.12 RIP timers 
TCP/IP Protocol Suite 18
ExamplE 2 
A routing table has 20 entries. It does not receive information 
about five routes for 200 s. How many timers are running at 
this time? 
Solution 
The 21 timers are listed below: 
Periodic timer: 1 
Expiration timer: 20 − 5 = 15 
Garbage collection timer: 5 
TCP/IP Protocol Suite 19
Figure 14.13 RIP version 2 format 
TCP/IP Protocol Suite 20
Figure 14.14 Authentication 
TCP/IP Protocol Suite 21
NNoottee:: 
RIP uses the services of UDP on 
well-known port 520. 
TCP/IP Protocol Suite 22
14.4 LINK STATE ROUTING 
In link state routing, if each node in the domain has tthhee eennttiirree ttooppoollooggyy 
ooff tthhee ddoommaaiinn,, tthhee nnooddee ccaann uussee DDiijjkkssttrraa’’ss aallggoorriitthhmm ttoo bbuuiilldd aa rroouuttiinngg 
ttaabbllee.. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
BBuuiillddiinngg RRoouuttiinngg TTaabblleess 
TCP/IP Protocol Suite 23
Figure 14.15 Concept of link state routing 
TCP/IP Protocol Suite 24
Figure 14.16 Link state knowledge 
TCP/IP Protocol Suite 25
Figure 14.17 Dijkstra algorithm 
TCP/IP Protocol Suite 26
Figure 14.18 Example of formation of shortest path tree 
TCP/IP Protocol Suite 27
TTaabbllee 1144..11 RRoouuttiinngg ttaabbllee ffoorr nnooddee AA 
TCP/IP Protocol Suite 28
14.5 OSPF 
The Open Shortest Path First (OSPF) protocol iiss aann iinnttrraaddoommaaiinn 
rroouuttiinngg pprroottooccooll bbaasseedd oonn lliinnkk ssttaattee rroouuttiinngg.. IIttss ddoommaaiinn iiss aallssoo aann 
aauuttoonnoommoouuss ssyysstteemm.. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
AArreeaass 
MMeettrriicc 
TTyyppeess ooff LLiinnkkss 
GGrraapphhiiccaall RReepprreesseennttaattiioonn 
OOSSPPFF PPaacckkeettss 
LLiinnkk SSttaattee UUppddaattee PPaacckkeett 
OOtthheerr PPaacckkeettss 
EEnnccaappssuullaattiioonn 
TCP/IP Protocol Suite 29
Figure 14.19 Areas in an autonomous system 
TCP/IP Protocol Suite 30
Figure 14.20 Types of links 
TCP/IP Protocol Suite 31
Figure 14.21 Point-to-point link 
TCP/IP Protocol Suite 32
Figure 14.22 Transient link 
TCP/IP Protocol Suite 33
Figure 14.23 Stub link 
TCP/IP Protocol Suite 34
Figure 14.24 Example of an AS and its graphical representation in OSPF 
TCP/IP Protocol Suite 35
Figure 14.25 Types of OSPF packets 
TCP/IP Protocol Suite 36
Figure 14.26 OSPF common header 
TCP/IP Protocol Suite 37
Figure 14.27 Link state update packet 
TCP/IP Protocol Suite 38
Figure 14.28 LSA general header 
TCP/IP Protocol Suite 39
Figure 14.29 Router link 
TCP/IP Protocol Suite 40
Figure 14.30 Router link LSA 
TCP/IP Protocol Suite 41
TTaabbllee 1144..22 LLiinnkk ttyyppeess,, lliinnkk iiddeennttiiffiiccaattiioonn,, aanndd lliinnkk ddaattaa 
TCP/IP Protocol Suite 42
ExamplE 3 
Give the router link LSA sent by router 10.24.7.9 in 
Figure 14.31. 
See Next Slide 
Solution 
This router has three links: two of type 1 (point-to-point) 
and one of type 3 (stub network). Figure 14.32 
shows the router link LSA. 
See Figure 14.32 
TCP/IP Protocol Suite 43
Figure 14.31 Example 3 
TCP/IP Protocol Suite 44
Figure 14.32 Solution to Example 3 
TCP/IP Protocol Suite 45
Figure 14.33 Network link 
TCP/IP Protocol Suite 46
Figure 14.34 Network link advertisement format 
TCP/IP Protocol Suite 47
ExamplE 4 
Give the network link LSA in Figure 14.35. 
Solution. 
See Next Slide 
See Figure 14.36 
TCP/IP Protocol Suite 48
Figure 14.35 Example 4 
TCP/IP Protocol Suite 49
Figure 14.36 Solution to Example 4 
TCP/IP Protocol Suite 50
ExamplE 5 
In Figure 14.37, which router(s) sends out router link LSAs? 
See Next Slide 
Solution 
All routers advertise router link LSAs. 
a. R1 has two links, N1 and N2. 
b. R2 has one link, N1. 
c. R3 has two links, N2 and N3. 
TCP/IP Protocol Suite 51
Figure 14.37 Example 5 and Example 6 
TCP/IP Protocol Suite 52
ExamplE 6 
In Figure 14.37, which router(s) sends out the network link 
LSAs? 
Solution 
All three network must advertise network links: 
a. Advertisement for N1 is done by R1 because it is the only 
attached router and therefore the designated router. 
b. Advertisement for N2 can be done by either R1, R2, or R3, 
depending on which one is chosen as the designated router. 
c. Advertisement for N3 is done by R3 because it is the only 
attached router and therefore the designated router. 
TCP/IP Protocol Suite 53
Figure 14.38 Summary link to network 
TCP/IP Protocol Suite 54
Figure 14.39 Summary link to network LSA 
TCP/IP Protocol Suite 55
Figure 14.40 Summary link to AS boundary router 
TCP/IP Protocol Suite 56
Figure 14.41 Summary link to AS boundary router LSA 
TCP/IP Protocol Suite 57
Figure 14.42 External link 
TCP/IP Protocol Suite 58
Figure 14.43 External link LSA 
TCP/IP Protocol Suite 59
Figure 14.44 Hello packet 
TCP/IP Protocol Suite 60
Figure 14.45 Database description packet 
TCP/IP Protocol Suite 61
Figure 14.46 Link state request packet 
TCP/IP Protocol Suite 62
Figure 14.47 Link state acknowledgment packet 
TCP/IP Protocol Suite 63
NNoottee:: 
OSPF packets are encapsulated in IP 
datagrams. 
TCP/IP Protocol Suite 64
14.6 PATH VECTOR ROUTING 
Path vector routing is similar to distance vector routing. TThheerree iiss aatt lleeaasstt 
oonnee nnooddee,, ccaalllleedd tthhee ssppeeaakkeerr nnooddee,, iinn eeaacchh AASS tthhaatt ccrreeaatteess aa rroouuttiinngg 
ttaabbllee aanndd aaddvveerrttiisseess iitt ttoo ssppeeaakkeerr nnooddeess iinn tthhee nneeiigghhbboorriinngg AASSss.... 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
IInniittiiaalliizzaattiioonn 
SShhaarriinngg 
UUppddaattiinngg 
TCP/IP Protocol Suite 65
Figure 14.48 Initial routing tables in path vector routing 
TCP/IP Protocol Suite 66
Figure 14.49 Stabilized tables for four autonomous systems 
TCP/IP Protocol Suite 67
14.7 BGP 
Border Gateway Protocol (BGP) is an interdomain rroouuttiinngg pprroottooccooll 
uussiinngg ppaatthh vveeccttoorr rroouuttiinngg.. IItt ffiirrsstt aappppeeaarreedd iinn 11998899 aanndd hhaass ggoonnee 
tthhrroouugghh ffoouurr vveerrssiioonnss.. 
TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: 
TTyyppeess ooff AAuuttoonnoommoouuss SSyysstteemmss 
PPaatthh AAttttrriibbuutteess 
BBGGPP SSeessssiioonnss 
EExxtteerrnnaall aanndd IInntteerrnnaall BBGGPP 
TTyyppeess ooff PPaacckkeettss 
PPaacckkeett FFoorrmmaatt 
EEnnccaappssuullaattiioonn 
TCP/IP Protocol Suite 68
Figure 14.50 Internal and external BGP sessions 
TCP/IP Protocol Suite 69
Figure 14.51 Types of BGP messages 
TCP/IP Protocol Suite 70
Figure 14.52 BGP packet header 
TCP/IP Protocol Suite 71
Figure 14.53 Open message 
TCP/IP Protocol Suite 72
Figure 14.54 Update message 
TCP/IP Protocol Suite 73
NNoottee:: 
BGP supports classless addressing and 
CIDR. 
TCP/IP Protocol Suite 74
Figure 14.55 Keepalive message 
TCP/IP Protocol Suite 75
Figure 14.56 Notification message 
TCP/IP Protocol Suite 76
TTaabbllee 114..33 EErrrroorr ccooddeess 
TCP/IP Protocol Suite 77
NNoottee:: 
BGP uses the services of TCP 
on port 179. 
TCP/IP Protocol Suite 78

More Related Content

What's hot (20)

Chap 09 icmp
Chap 09 icmpChap 09 icmp
Chap 09 icmp
 
Chap 11 udp
Chap 11 udpChap 11 udp
Chap 11 udp
 
Chap 06 delivery and routing of ip packets
Chap 06 delivery and routing of ip packetsChap 06 delivery and routing of ip packets
Chap 06 delivery and routing of ip packets
 
Chap 28 security
Chap 28 securityChap 28 security
Chap 28 security
 
Chap 12 tcp
Chap 12 tcpChap 12 tcp
Chap 12 tcp
 
Chap 05 ip addresses classfless
Chap 05 ip addresses classflessChap 05 ip addresses classfless
Chap 05 ip addresses classfless
 
Chap 20 smtp, pop, imap
Chap 20 smtp, pop, imapChap 20 smtp, pop, imap
Chap 20 smtp, pop, imap
 
Chap 17 dns
Chap 17 dnsChap 17 dns
Chap 17 dns
 
Chap 13 stream control transmission protocol
Chap 13 stream control transmission protocolChap 13 stream control transmission protocol
Chap 13 stream control transmission protocol
 
Chap 25 multimedia
Chap 25 multimediaChap 25 multimedia
Chap 25 multimedia
 
Chap 22 www http
Chap 22 www httpChap 22 www http
Chap 22 www http
 
Chap 10 igmp
Chap 10 igmpChap 10 igmp
Chap 10 igmp
 
Chap 23 ip over atm
Chap 23 ip over atmChap 23 ip over atm
Chap 23 ip over atm
 
Internet technology unit 2
Internet technology unit 2Internet technology unit 2
Internet technology unit 2
 
Chap 11
Chap 11Chap 11
Chap 11
 
Ch21
Ch21Ch21
Ch21
 
icmp , igmp
icmp , igmpicmp , igmp
icmp , igmp
 
Ch10
Ch10Ch10
Ch10
 
Telnet configuration
Telnet configurationTelnet configuration
Telnet configuration
 
Ip and icmp
Ip and icmpIp and icmp
Ip and icmp
 

Viewers also liked

Viewers also liked (17)

Week13 lec2
Week13 lec2Week13 lec2
Week13 lec2
 
16 bgp
16 bgp16 bgp
16 bgp
 
Border Gatway Protocol
Border Gatway ProtocolBorder Gatway Protocol
Border Gatway Protocol
 
Week14 lec2
Week14 lec2Week14 lec2
Week14 lec2
 
Network delay
Network delayNetwork delay
Network delay
 
Chap 03
Chap 03Chap 03
Chap 03
 
Chap 18 telnet
Chap 18 telnetChap 18 telnet
Chap 18 telnet
 
Chap 01
Chap 01Chap 01
Chap 01
 
Routing
RoutingRouting
Routing
 
Chap 04
Chap 04Chap 04
Chap 04
 
Modeling Style and Delay Model of VHDL By Ap
Modeling Style and Delay Model of VHDL By ApModeling Style and Delay Model of VHDL By Ap
Modeling Style and Delay Model of VHDL By Ap
 
Chap 02
Chap 02Chap 02
Chap 02
 
Chap 26 vpn
Chap 26 vpnChap 26 vpn
Chap 26 vpn
 
Sept 2017 introduction
Sept 2017   introductionSept 2017   introduction
Sept 2017 introduction
 
Chap 12 tcp
Chap 12 tcpChap 12 tcp
Chap 12 tcp
 
Sept 2017 static routing and packet forwarding
Sept 2017    static routing and packet forwardingSept 2017    static routing and packet forwarding
Sept 2017 static routing and packet forwarding
 
Ch22
Ch22Ch22
Ch22
 

Similar to Chap 14 rip, ospf (20)

Rip ospf and bgp
Rip ospf and bgpRip ospf and bgp
Rip ospf and bgp
 
rip, ospf 13-14
rip, ospf 13-14rip, ospf 13-14
rip, ospf 13-14
 
Chap 13
Chap 13Chap 13
Chap 13
 
Multicasting and multicast routing protocols
Multicasting and multicast routing protocolsMulticasting and multicast routing protocols
Multicasting and multicast routing protocols
 
Multicasting and multicast routing protocols
Multicasting and multicast routing protocolsMulticasting and multicast routing protocols
Multicasting and multicast routing protocols
 
Chap 14
Chap 14Chap 14
Chap 14
 
Ch13
Ch13Ch13
Ch13
 
Chapter 08
Chapter 08Chapter 08
Chapter 08
 
Chapter 08
Chapter 08Chapter 08
Chapter 08
 
Chapter 08
Chapter 08Chapter 08
Chapter 08
 
CCNA Dec, 2015 Questions
CCNA Dec, 2015 QuestionsCCNA Dec, 2015 Questions
CCNA Dec, 2015 Questions
 
ARP and RARP.ppt
ARP and RARP.pptARP and RARP.ppt
ARP and RARP.ppt
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
Ccna 2 chapter 5 v4.0 answers 2011
Ccna 2 chapter 5 v4.0 answers 2011Ccna 2 chapter 5 v4.0 answers 2011
Ccna 2 chapter 5 v4.0 answers 2011
 
E routing final exam ccna 2 46
E routing final exam ccna 2 46E routing final exam ccna 2 46
E routing final exam ccna 2 46
 
Ccna 2 chapter 11 v4.0 answers 2011
Ccna 2 chapter 11 v4.0 answers 2011Ccna 2 chapter 11 v4.0 answers 2011
Ccna 2 chapter 11 v4.0 answers 2011
 
Arp
ArpArp
Arp
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
Chap 07
Chap 07Chap 07
Chap 07
 
CCNA Exploration 1 - Chapter 4
CCNA Exploration 1 - Chapter 4CCNA Exploration 1 - Chapter 4
CCNA Exploration 1 - Chapter 4
 

More from Noctorous Jamal

Chap 03 underlying technology
Chap 03 underlying technologyChap 03 underlying technology
Chap 03 underlying technologyNoctorous Jamal
 
Lecture 8 The Communication System Finalterm Slides
Lecture 8  The Communication System Finalterm SlidesLecture 8  The Communication System Finalterm Slides
Lecture 8 The Communication System Finalterm SlidesNoctorous Jamal
 
Lecture 7 The Communication System Finalterm Slides
Lecture 7  The Communication System Finalterm SlidesLecture 7  The Communication System Finalterm Slides
Lecture 7 The Communication System Finalterm SlidesNoctorous Jamal
 
Lecture 6 The Communication System Finalterm Slides
Lecture 6  The Communication System Finalterm SlidesLecture 6  The Communication System Finalterm Slides
Lecture 6 The Communication System Finalterm SlidesNoctorous Jamal
 

More from Noctorous Jamal (7)

Chap 16 bootp & dhcp
Chap 16 bootp & dhcpChap 16 bootp & dhcp
Chap 16 bootp & dhcp
 
Chap 15 multicasting
Chap 15 multicastingChap 15 multicasting
Chap 15 multicasting
 
Chap 03 underlying technology
Chap 03 underlying technologyChap 03 underlying technology
Chap 03 underlying technology
 
Chap 01 intro
Chap 01 introChap 01 intro
Chap 01 intro
 
Lecture 8 The Communication System Finalterm Slides
Lecture 8  The Communication System Finalterm SlidesLecture 8  The Communication System Finalterm Slides
Lecture 8 The Communication System Finalterm Slides
 
Lecture 7 The Communication System Finalterm Slides
Lecture 7  The Communication System Finalterm SlidesLecture 7  The Communication System Finalterm Slides
Lecture 7 The Communication System Finalterm Slides
 
Lecture 6 The Communication System Finalterm Slides
Lecture 6  The Communication System Finalterm SlidesLecture 6  The Communication System Finalterm Slides
Lecture 6 The Communication System Finalterm Slides
 

Recently uploaded

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spaintimesproduction05
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 

Recently uploaded (20)

FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
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
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 

Chap 14 rip, ospf

  • 1. CChhaapptteerr 1144 UUnniiccaasstt RRoouuttiinngg PPrroottooccoollss:: RRIIPP,, OOSSPPFF,, aanndd BBGGPP Objectives Upon completion you will be able to: • Distinguish between intra and interdomain routing • Understand distance vector routing and RIP • Understand link state routing and OSPF • Understand path vector routing and BGP TCP/IP Protocol Suite 1
  • 2. 14.1 INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred ttoo aass iinnttrraaddoommaaiinn rroouuttiinngg.. RRoouuttiinngg bbeettwweeeenn aauuttoonnoommoouuss ssyysstteemmss iiss rreeffeerrrreedd ttoo aass iinntteerrddoommaaiinn rroouuttiinngg.. TCP/IP Protocol Suite 2
  • 3. Figure 14.1 Autonomous systems TCP/IP Protocol Suite 3
  • 4. Figure 14.2 Popular routing protocols TCP/IP Protocol Suite 4
  • 5. 14.2 DISTANCE VECTOR ROUTING In distance vector routing, the least cost route between aannyy ttwwoo nnooddeess iiss tthhee rroouuttee wwiitthh mmiinniimmuumm ddiissttaannccee.. IInn tthhiiss pprroottooccooll eeaacchh nnooddee mmaaiinnttaaiinnss aa vveeccttoorr ((ttaabbllee)) ooff mmiinniimmuumm ddiissttaanncceess ttoo eevveerryy nnooddee TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: IInniittiiaalliizzaattiioonn SShhaarriinngg UUppddaattiinngg WWhheenn ttoo SShhaarree TTwwoo--NNooddee LLoooopp IInnssttaabbiilliittyy TThhrreeee--NNooddee IInnssttaabbiilliittyy TCP/IP Protocol Suite 5
  • 6. Figure 14.3 Distance vector routing tables TCP/IP Protocol Suite 6
  • 7. Figure 14.4 Initialization of tables in distance vector routing TCP/IP Protocol Suite 7
  • 8. NNoottee:: In distance vector routing, each node shares its routing table with its immediate neighbors periodically and when there is a change. TCP/IP Protocol Suite 8
  • 9. Figure 14.5 Updating in distance vector routing TCP/IP Protocol Suite 9
  • 10. Figure 14.6 Two-node instability TCP/IP Protocol Suite 10
  • 11. Figure 14.7 Three-node instability TCP/IP Protocol Suite 11
  • 12. 14.3 RIP The Routing Information Protocol (RIP) is an iinnttrraaddoommaaiinn rroouuttiinngg pprroottooccooll uusseedd iinnssiiddee aann aauuttoonnoommoouuss ssyysstteemm.. IItt iiss aa vveerryy ssiimmppllee pprroottooccooll bbaasseedd oonn ddiissttaannccee vveeccttoorr rroouuttiinngg.. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: RRIIPP MMeessssaaggee FFoorrmmaatt RReeqquueessttss aanndd RReessppoonnsseess TTiimmeerrss iinn RRIIPP RRIIPP VVeerrssiioonn 22 EEnnccaappssuullaattiioonn TCP/IP Protocol Suite 12
  • 13. Figure 14.8 Example of a domain using RIP TCP/IP Protocol Suite 13
  • 14. Figure 14.9 RIP message format TCP/IP Protocol Suite 14
  • 15. Figure 14.10 Request messages TCP/IP Protocol Suite 15
  • 16. ExamplE 1 Figure 14.11 shows the update message sent from router R1 to router R2 in Figure 14.8. The message is sent out of interface 130.10.0.2. The message is prepared with the combination of split horizon and poison reverse strategy in mind. Router R1 has obtained information about networks 195.2.4.0, 195.2.5.0, and 195.2.6.0 from router R2. When R1 sends an update message to R2, it replaces the actual value of the hop counts for these three networks with 16 (infinity) to prevent any confusion for R2. The figure also shows the table extracted from the message. Router R2 uses the source address of the IP datagram carrying the RIP message from R1 (130.10.02) as the next hop address. See Next Slide TCP/IP Protocol Suite 16
  • 17. Figure 14.11 Solution to Example 1 TCP/IP Protocol Suite 17
  • 18. Figure 14.12 RIP timers TCP/IP Protocol Suite 18
  • 19. ExamplE 2 A routing table has 20 entries. It does not receive information about five routes for 200 s. How many timers are running at this time? Solution The 21 timers are listed below: Periodic timer: 1 Expiration timer: 20 − 5 = 15 Garbage collection timer: 5 TCP/IP Protocol Suite 19
  • 20. Figure 14.13 RIP version 2 format TCP/IP Protocol Suite 20
  • 21. Figure 14.14 Authentication TCP/IP Protocol Suite 21
  • 22. NNoottee:: RIP uses the services of UDP on well-known port 520. TCP/IP Protocol Suite 22
  • 23. 14.4 LINK STATE ROUTING In link state routing, if each node in the domain has tthhee eennttiirree ttooppoollooggyy ooff tthhee ddoommaaiinn,, tthhee nnooddee ccaann uussee DDiijjkkssttrraa’’ss aallggoorriitthhmm ttoo bbuuiilldd aa rroouuttiinngg ttaabbllee.. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: BBuuiillddiinngg RRoouuttiinngg TTaabblleess TCP/IP Protocol Suite 23
  • 24. Figure 14.15 Concept of link state routing TCP/IP Protocol Suite 24
  • 25. Figure 14.16 Link state knowledge TCP/IP Protocol Suite 25
  • 26. Figure 14.17 Dijkstra algorithm TCP/IP Protocol Suite 26
  • 27. Figure 14.18 Example of formation of shortest path tree TCP/IP Protocol Suite 27
  • 28. TTaabbllee 1144..11 RRoouuttiinngg ttaabbllee ffoorr nnooddee AA TCP/IP Protocol Suite 28
  • 29. 14.5 OSPF The Open Shortest Path First (OSPF) protocol iiss aann iinnttrraaddoommaaiinn rroouuttiinngg pprroottooccooll bbaasseedd oonn lliinnkk ssttaattee rroouuttiinngg.. IIttss ddoommaaiinn iiss aallssoo aann aauuttoonnoommoouuss ssyysstteemm.. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: AArreeaass MMeettrriicc TTyyppeess ooff LLiinnkkss GGrraapphhiiccaall RReepprreesseennttaattiioonn OOSSPPFF PPaacckkeettss LLiinnkk SSttaattee UUppddaattee PPaacckkeett OOtthheerr PPaacckkeettss EEnnccaappssuullaattiioonn TCP/IP Protocol Suite 29
  • 30. Figure 14.19 Areas in an autonomous system TCP/IP Protocol Suite 30
  • 31. Figure 14.20 Types of links TCP/IP Protocol Suite 31
  • 32. Figure 14.21 Point-to-point link TCP/IP Protocol Suite 32
  • 33. Figure 14.22 Transient link TCP/IP Protocol Suite 33
  • 34. Figure 14.23 Stub link TCP/IP Protocol Suite 34
  • 35. Figure 14.24 Example of an AS and its graphical representation in OSPF TCP/IP Protocol Suite 35
  • 36. Figure 14.25 Types of OSPF packets TCP/IP Protocol Suite 36
  • 37. Figure 14.26 OSPF common header TCP/IP Protocol Suite 37
  • 38. Figure 14.27 Link state update packet TCP/IP Protocol Suite 38
  • 39. Figure 14.28 LSA general header TCP/IP Protocol Suite 39
  • 40. Figure 14.29 Router link TCP/IP Protocol Suite 40
  • 41. Figure 14.30 Router link LSA TCP/IP Protocol Suite 41
  • 42. TTaabbllee 1144..22 LLiinnkk ttyyppeess,, lliinnkk iiddeennttiiffiiccaattiioonn,, aanndd lliinnkk ddaattaa TCP/IP Protocol Suite 42
  • 43. ExamplE 3 Give the router link LSA sent by router 10.24.7.9 in Figure 14.31. See Next Slide Solution This router has three links: two of type 1 (point-to-point) and one of type 3 (stub network). Figure 14.32 shows the router link LSA. See Figure 14.32 TCP/IP Protocol Suite 43
  • 44. Figure 14.31 Example 3 TCP/IP Protocol Suite 44
  • 45. Figure 14.32 Solution to Example 3 TCP/IP Protocol Suite 45
  • 46. Figure 14.33 Network link TCP/IP Protocol Suite 46
  • 47. Figure 14.34 Network link advertisement format TCP/IP Protocol Suite 47
  • 48. ExamplE 4 Give the network link LSA in Figure 14.35. Solution. See Next Slide See Figure 14.36 TCP/IP Protocol Suite 48
  • 49. Figure 14.35 Example 4 TCP/IP Protocol Suite 49
  • 50. Figure 14.36 Solution to Example 4 TCP/IP Protocol Suite 50
  • 51. ExamplE 5 In Figure 14.37, which router(s) sends out router link LSAs? See Next Slide Solution All routers advertise router link LSAs. a. R1 has two links, N1 and N2. b. R2 has one link, N1. c. R3 has two links, N2 and N3. TCP/IP Protocol Suite 51
  • 52. Figure 14.37 Example 5 and Example 6 TCP/IP Protocol Suite 52
  • 53. ExamplE 6 In Figure 14.37, which router(s) sends out the network link LSAs? Solution All three network must advertise network links: a. Advertisement for N1 is done by R1 because it is the only attached router and therefore the designated router. b. Advertisement for N2 can be done by either R1, R2, or R3, depending on which one is chosen as the designated router. c. Advertisement for N3 is done by R3 because it is the only attached router and therefore the designated router. TCP/IP Protocol Suite 53
  • 54. Figure 14.38 Summary link to network TCP/IP Protocol Suite 54
  • 55. Figure 14.39 Summary link to network LSA TCP/IP Protocol Suite 55
  • 56. Figure 14.40 Summary link to AS boundary router TCP/IP Protocol Suite 56
  • 57. Figure 14.41 Summary link to AS boundary router LSA TCP/IP Protocol Suite 57
  • 58. Figure 14.42 External link TCP/IP Protocol Suite 58
  • 59. Figure 14.43 External link LSA TCP/IP Protocol Suite 59
  • 60. Figure 14.44 Hello packet TCP/IP Protocol Suite 60
  • 61. Figure 14.45 Database description packet TCP/IP Protocol Suite 61
  • 62. Figure 14.46 Link state request packet TCP/IP Protocol Suite 62
  • 63. Figure 14.47 Link state acknowledgment packet TCP/IP Protocol Suite 63
  • 64. NNoottee:: OSPF packets are encapsulated in IP datagrams. TCP/IP Protocol Suite 64
  • 65. 14.6 PATH VECTOR ROUTING Path vector routing is similar to distance vector routing. TThheerree iiss aatt lleeaasstt oonnee nnooddee,, ccaalllleedd tthhee ssppeeaakkeerr nnooddee,, iinn eeaacchh AASS tthhaatt ccrreeaatteess aa rroouuttiinngg ttaabbllee aanndd aaddvveerrttiisseess iitt ttoo ssppeeaakkeerr nnooddeess iinn tthhee nneeiigghhbboorriinngg AASSss.... TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: IInniittiiaalliizzaattiioonn SShhaarriinngg UUppddaattiinngg TCP/IP Protocol Suite 65
  • 66. Figure 14.48 Initial routing tables in path vector routing TCP/IP Protocol Suite 66
  • 67. Figure 14.49 Stabilized tables for four autonomous systems TCP/IP Protocol Suite 67
  • 68. 14.7 BGP Border Gateway Protocol (BGP) is an interdomain rroouuttiinngg pprroottooccooll uussiinngg ppaatthh vveeccttoorr rroouuttiinngg.. IItt ffiirrsstt aappppeeaarreedd iinn 11998899 aanndd hhaass ggoonnee tthhrroouugghh ffoouurr vveerrssiioonnss.. TThhee ttooppiiccss ddiissccuusssseedd iinn tthhiiss sseeccttiioonn iinncclluuddee:: TTyyppeess ooff AAuuttoonnoommoouuss SSyysstteemmss PPaatthh AAttttrriibbuutteess BBGGPP SSeessssiioonnss EExxtteerrnnaall aanndd IInntteerrnnaall BBGGPP TTyyppeess ooff PPaacckkeettss PPaacckkeett FFoorrmmaatt EEnnccaappssuullaattiioonn TCP/IP Protocol Suite 68
  • 69. Figure 14.50 Internal and external BGP sessions TCP/IP Protocol Suite 69
  • 70. Figure 14.51 Types of BGP messages TCP/IP Protocol Suite 70
  • 71. Figure 14.52 BGP packet header TCP/IP Protocol Suite 71
  • 72. Figure 14.53 Open message TCP/IP Protocol Suite 72
  • 73. Figure 14.54 Update message TCP/IP Protocol Suite 73
  • 74. NNoottee:: BGP supports classless addressing and CIDR. TCP/IP Protocol Suite 74
  • 75. Figure 14.55 Keepalive message TCP/IP Protocol Suite 75
  • 76. Figure 14.56 Notification message TCP/IP Protocol Suite 76
  • 77. TTaabbllee 114..33 EErrrroorr ccooddeess TCP/IP Protocol Suite 77
  • 78. NNoottee:: BGP uses the services of TCP on port 179. TCP/IP Protocol Suite 78