SlideShare uma empresa Scribd logo
1 de 48
INTERNET ARCHITECTURE
AND PROTOCOLS (IT-313)
PRESENTATION
TOPIC:
ROUTING PROTOCOLS
GROUP PRESENTATION
GROUP #5 (SECTION B)
PRESENTED TO: MADAM SARA SARWAR
PRESENTERS :
MAEDA QAISAR (19011556-078)
FAIZA (19011556-176)
ALISHBA SHAHBAZ (19011556-043)
TABLE OF CONTENTS
• Routing Protocols
• Definition
• Metrices
• Categorization
• Static Routing Protocols
• Definition
• Advantages and Disadvantages
• Dynamic Routing Protocols
• Exterior Gateway Routing Protocols
• Path Vector Routing Protocol (BGP)
• Interior Gateway Routing Protocols
• Distance Vector (RIP, IGRP)
• Link State (OSPF)
• Hybrid (EIGRP)
ROUTING PROTOCOLS
Routing protocols are the set of rules used by the routers
to communicate between source & destination. They do
not move the information source to destination only
update the routing table. Each protocol has its own
algorithm to choose the best path.
METRICES BY ROUTING PROTOCOLS
• Number of network layer devices along with the path (hop count)
• Bandwidth
• Delay
• Load
• MTU
• Cost
Routing protocols store the result of these metrices in routing table.
STATIC ROUTING PROTOCOLS
Static routing ,when an administrator manually assigns
the path from source to destination network. This is
feasible in small networks, but not in large networks.
ADVANTAGES & DISADVANTAGES
Advantages:
• No overhead on router CPU.
• No bandwidth usage between links.
• Security (only administrator add routes.)
Disadvantages:
• All link will be down on a link failure.
• Not practical on large networks.
• Administrator must update all routes.
DYNAMIC ROUTING PROTOCOLS
Dynamic routing is the process in which routing tables
are automatically updates by routing table of each
neighbor.
 Dynamically discover & maintains routes.
 Calculate routes
ADVANTAGES & DISADVANTAGES
Advantages:
• Less work in maintaining the configuration when adding &
deleting networks.
• Protocols automatically react to the topology changes.
• Configuration is less-prone.
Disadvantages:
• Routers resource are used
• More administrator knowledge is required for configuration.
EXTERIOR GATEWAY PROTOCOL
Exterior Gateway Protocol (EGP) is a protocol for
exchanging routing information between two
neighbor gateway hosts (each with its own router)
in a network of autonomous systems. EGP is
commonly used between hosts on the Internet to
exchange routing table information.
PATH VECTOR ROUTING PROTOCOL
A path-vector routing protocol is a network routing protocol
which maintains the path information that gets updated
dynamically. In a path vector protocol, a router does not just
receive the distance vector for a particular destination from its
neighbor; instead, a node receives the distance as well as path
information.
Border Gateway Protocol (BGP) is a standardized exterior
gateway protocol designed to exchange routing and reachability
information between autonomous systems (AS) on the Internet.
• It makes internet work.
• Classified as path vector routing protocol.
• BGP makes use of routing within an autonomous system.
• It is one of the most complex and Difficult to configuration
protocol but its emphasis on security and scalability makes its
usage essential.
BORDER GATEWAY PROTOCOL
DISTANCE VECTOR ROUTING PROTOCOL
Distance vector routing protocols use distance to determine the best path to a remote
network.
The distance is usually the number of hops (routers) to the destination network.
Distance vector protocols send complete routing table to each neighbor (a neighbor is
directly connected router that runs the same routing protocol)
RIPV1 and RIPV2 are examples of distance vector routing protocols.
DISTANCE VECTOR ROUTING PROTOCOL
Consider
• There is a network consisting of 4 routers.
• The weights are mentioned on the edges.
• Weights could be distances or costs or delays
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
Step-01:
Each router prepares its routing table using its local knowledge.
Routing table prepared by each router is shown below-
Destination Distance Next HOP
A 0 A
B 2 B
C ∞ –
D 1 D
Destination Distance Next HOP
A 2 A
B 0 B
C 3 C
D 7 D
At Router A- AT Router B-
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
Step 1
Destination Distance Next Hop
A ∞ –
B 3 B
C 0 C
D 11 D
Destination Distance Next Hop
A 1 A
B 7 B
C 11 C
D 0 D
At Router C- AT Router D-
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
Step-02:
Each router exchanges its distance vector obtained in Step-01 with its neighbors.
After exchanging the distance vectors, each router prepares a new routing table.
This is shown below-
At Router A-
Router A receives distance vectors from its neighbors B and D.
Router A prepares a new routing table as-
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
Cost of reaching destination B from router A = min { 2+0 , 1+7 } = 2 via B.
Cost of reaching destination C from router A = min { 2+3 , 1+11 } = 5 via B.
Cost of reaching destination D from router A = min { 2+7 , 1+0 } = 1 via D.
Thus, the new routing table at router A is-
Destination Distance Next Hop
A 0 A
B 2 B
C 5 B
D 1 D
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
At Router B-
Router B receives distance vectors from its neighbors A, C and D.
Router B prepares a new routing table as-
•Cost of reaching destination A from router B = min { 2+0 , 3+∞ , 7+1 } = 2 via A.
•Cost of reaching destination C from router B = min { 2+∞ , 3+0 , 7+11 } = 3 via C.
•Cost of reaching destination D from router B = min { 2+1 , 3+11 , 7+0 } = 3 via A
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
Thus, the new routing table at router B is-
At Router C-
•Router C receives distance vectors from its
neighbors B and D.
•Router C prepares a new routing table as
Destination Distance Next Hop
A 2 A
B 0 B
C 3 C
D 3 A
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
• Cost of reaching destination A from router C = min { 3+2 , 11+1 } = 5 via B.
• Cost of reaching destination B from router C = min { 3+0 , 11+7 } = 3 via B.
• Cost of reaching destination D from router C = min { 3+7 , 11+0 } = 10 via B
• Thus, the new routing table at router C is-
Destination Distance Next Hop
A 5 B
B 3 B
C 0 C
D 10 B
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
At Router D
•Router D receives distance vectors from its neighbors A, B and C.
•Router D prepares a new routing table as-
•Cost of reaching destination A from router D = min { 1+0 , 7+2 , 11+∞ } = 1 via A.
•Cost of reaching destination B from router D = min { 1+2 , 7+0 , 11+3 } = 3 via A.
•Cost of reaching destination C from router D = min { 1+∞ , 7+3 , 11+0 } = 10 via B
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
Thus, the new routing table at router D is-
Step-03:
• Each router exchanges its distance vector obtained in Step-02 with its neighboring routers
• After exchanging the distance vectors, each router prepares a new routing table
At Router A-
• Router A receives distance vectors from its neighbors B and D.
• Router A prepares a new routing table as
Destination Distance Next Hop
A 1 A
B 3 A
C 10 B
D 0 D
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
• Cost of reaching destination B from router A = min { 2+0 , 1+3 } = 2 via B
• Cost of reaching destination C from router A = min { 2+3 , 1+10 } = 5 via B
• Cost of reaching destination D from router A = min { 2+3 , 1+0 } = 1 via D
• Thus, the new routing table at router A is-
Destination Distance Next Hop
A 0 A
B 2 B
C 5 B
D 1 D
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
• Router B receives distance vectors from its neighbors A, C and D.
• Router B prepares a new routing table as-
• Cost of reaching destination A from router B = min { 2+0 , 3+5 , 3+1 } = 2 via A.
• Cost of reaching destination C from router B = min { 2+5 , 3+0 , 3+10 } = 3 via
• Cost of reaching destination D from router B = min { 2+1 , 3+10 , 3+0 } = 3 via A
Destination Distance Next Hop
A 2 A
B 0 B
C 3 C
D 3 A
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
Thus, the new routing table at router B is-
At Router C-
• Router C receives distance vectors from its neighbors B and D.
• Router C prepares a new routing table as
Destination Distance Next Hop
A 2 A
B 0 B
C 3 C
D 3 A
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
• Cost of reaching destination A from router C = min { 3+2 , 10+1 } = 5 via B.
• Cost of reaching destination B from router C = min { 3+0 , 10+3 } = 3 via B.
• Cost of reaching destination D from router C = min { 3+3 , 10+0 } = 6 via B.
• Thus, the new routing table at router C is-
• At Router D-
• Router D receives distance vectors from its neighbors A, B
• and C
• Router D prepares a new
routing table as-
Destination Distance Next Hop
A 5 B
B 3 B
C 0 C
D 6 B
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
• Cost of reaching destination A from router D = min { 1+0 , 3+2 , 10+5 } = 1 via A.
• Cost of reaching destination B from router D = min { 1+2 , 3+0 , 10+3 } = 3 via A.
• Cost of reaching destination C from router D = min { 1+5 , 3+3 , 10+0 } = 6 via A
• Thus, the new routing table at router D is
• These will be the final routing tables at each router.
Destination Distance Next Hop
A 1 A
B 3 A
C 6 A
D 0 D
DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM
FINAL ROUTING TABLE:
Information stored at node
A B C D
A 0 2 5 1
B
2 0 3 3
C
5 3 0 6
D 1 3 6 0
LINK STATE PROTOCOL
Link state routing protocols are the second type of dynamic routing protocols.
They have the same basic purpose as distance vector protocols, to find a best path
to a destination, but use different methods to do so. Unlike distance vector
protocols, link state protocols don't advertise the entire routing table. Instead,
they advertise information about a network topology (directly connected links,
neighboring routers...), so that in the end all routers running a link state protocol
have the same topology database.
OSPF are the examples of link state routing protocols.
LINK STATE PROTOCOL ALGORITHM
Initialization
N = {A} // A is a root node.
for all nodes v
if v adjacent to A
then D(v) = c( A, v)
else D(v) = infinity
loop
find w not in N such that D(w) is a minimum.
Add w to N
Update D(v) for all v adjacent to w and not in N:
D(v) = min(D(v) , D(w) + c( w, v))
Until all nodes in N
Explain with the help
of this graph
A
E
D
C
B
F
1
3
2
2
5
1
1
2
5
LINK STATE PROTOCOL ALGORITHM
Step 1:
The first step is an initialization step. The currently known least cost path
from A to its directly attached neighbors, B, C, D are 2,5,1 respectively. The
cost from A to B is set to 2, from A to D is set to 1 and from A to C is set to 5.
The cost from A to E and F are set to infinity as they are not directly linked to
A.
Step A
N
B
D(B),P(B
)
C
D(C),P(C
)
D
D(D),P(D
)
E
D(E),P(E)
F
D(F),P(F)
1 A 2,A 5,A 1,A ∞ ∞
LINK STATE PROTOCOL ALGORITHM
Step 2:
In the above table, we observe that vertex D contains the least cost path in step 1.
Therefore, it is added in N. Now, we need to determine a least-cost path through D
vertex.
a)Calculating shortest path from A to B
v = B, w = D
D(B) = min( D(B) , D(D) + c(D,B) )
= min( 2, 1+2)>
= min( 2, 3)
The minimum value is 2. Therefore, the currently shortest path from A to B is 2
b) Calculating shortest path from A to C
v = C, w = D
D(C) = min( D(C) , D(D) + c(D,C) )
= min( 5, 1+3)
= min( 5, 4)
The minimum value is 4. Therefore, the currently shortest path from A to C is 4.
LINK STATE PROTOCOL ALGORITHM
c) Calculating shortest path from A to E
v = E, w = D
D(E) = min( D(E) , D(D) + c(D,E) )
= min( ∞, 1+1)
= min(∞, 2)
The minimum value is 2. Therefore, the currently shortest path from A to E is
2.
Step A
N
B
D(B),P(B)
C
D(C),P(C)
D
D(D),P(D)
E
D(E),P(E)
F
D(F),P(F)
1 A 2,A 5,A 1,A ∞ ∞
2 AD 2,A 4,D 2,D ∞
LINK STATE PROTOCOL ALGORITHM
Step 2:
In the above table, we observe that vertex D contains the least cost path in step 1.
Therefore, it is added in N. Now, we need to determine a least-cost path through D
vertex.
a)Calculating shortest path from A to B
v = B, w = D
D(B) = min( D(B) , D(D) + c(D,B) )
= min( 2, 1+2)
= min( 2, 3)
The minimum value is 2. Therefore, the currently shortest path from A to B is 2.
b) Calculating shortest path from A to C
v = C, w = D
D(C) = min( D(C) , D(D) + c(D,C) )
= min( 5, 1+3)
= min( 5, 4)
The minimum value is 4. Therefore, the currently shortest path from A to C is 4.
LINK STATE PROTOCOL ALGORITHM
c) Calculating shortest path from A to E
v = E, w = D
D(E) = min( D(E) , D(D) + c(D,E) )
= min( ∞, 1+1)
= min(∞, 2)
The minimum value is 2. Therefore, the currently shortest path from A to E is
2.
Step A
N
B
D(B),P(B)
C
D(C),P(C)
D
D(D),P(D)
E
D(E),P(E)
F
D(F),P(F)
1 A 2,A 5,A 1,A ∞ ∞
2 AD 2,A 4,D 2,D ∞
LINK STATE PROTOCOL ALGORITHM
Step 3:
In the above table, we observe that both E and B have the least cost path in step 2. Let's
consider the E vertex. Now, we determine the least cost path of remaining vertices through
E.
a) Calculating the shortest path from A to B.
v = B, w = E
D(B) = min( D(B) , D(E) + c(E,B) )
= min( 2 , 2+ ∞ )
= min( 2, ∞)
The minimum value is 2. Therefore, the currently shortest path from A to B is 2.
b) Calculating shortest path from A to C
v = C, w = E
D(C) = min( D(C) , D(E) + c(E,C) )
= min( 4 , 2+1 )
= min( 4,3)
The minimum value is 3. Therefore, the currently shortest path from A to C is 3.
LINK STATE PROTOCOL ALGORITHM
c) Calculating shortest path from A to E
v = F, w = E
D(F) = min( D(F) , D(E) + c(E,F) )
= min( ∞ , 2+2 )
= min(∞ ,4)
The minimum value is 4. Therefore, the currently shortest path from A to F is
4.
Step A
N
B
D(B),P(B)
C
D(C),P(C)
D
D(D),P(D)
E
D(E),P(E)
F
D(F),P(F)
1 A 2,A 5,A 1,A ∞ ∞
2 AD 2,A 4,D 2,D ∞
3 ADE 2,A 3,E 4E
LINK STATE PROTOCOL ALGORITHM
Step 4:
In the above table, we observe that B vertex has the least cost path in step 3. Therefore, it is added in N. Now, we determine the least cost
path of remaining vertices through B.
a) Calculating the shortest path from A to C.
v = C, w = B
D(C) = min( D(C) , D(B) + c(B,C) )
= min( 3 , 2+3 )
= min( 3,5)
The minimum value is 3. Therefore, the currently shortest path from A to C is 3.
b) Calculating shortest path from A to F
v = F, w = B
D(F) = min( D(F) , D(B) + c(B,F) )
= min( 4, ∞)
= min(4, ∞)
The minimum value is 4. Therefore, the currently shortest path from A to F is 4.
Step A N B D(B),P(B) C D(C),P(C) D D(D),P(D) E D(E),P(E) F D(F),P(F)
1 A 2,A 5,A 1,A ∞ ∞
2 AD 2,A 4,D 2,D ∞
3 ADE 2,A 3,E 4E
4 ADEB 3,E 4,E
LINK STATE PROTOCOL ALGORITHM
Step 5:
In the above table, we observe that C vertex has the least cost path in step 4.
Therefore, it is added in N. Now, we determine the least cost path of remaining
vertices through C.
a) Calculating the shortest path from A to F.
v = F, w = C
D(F) = min( D(F) , D(C) + c(C,F) )
= min( 4, 3+5)
= min(4,8)
The minimum value is 4. Therefore, the currently shortest path from A to F is 4.
Step A
N
B
D(B),P(B)
C
D(C),P(C)
D
D(D),P(D)
E
D(E),P(E)
F
D(F),P(F)
1 A 2,A 5,A 1,A ∞ ∞
2 AD 2,A 4,D 2,D ∞
3 ADE 2,A 3,E 4E
4 ADEB 3,E 4,E
5 ADEBC 4,E
LINK STATE PROTOCOL ALGORITHM
Step A
N
B
D(B),P(B)
C
D(C),P(C)
D
D(D),P(D)
E
D(E),P(E)
F
D(F),P(F)
1 A 2,A 5,A 1,A ∞ ∞
2 AD 2,A 4,D 2,D ∞
3 ADE 2,A 3,E 4E
4 ADEB 3,E 4,E
5 ADEBC 4,E
6 ADEBCF
EXERCISE
A
E
D
C
B
F
7
9
2
12
11
9
14
6
10
EXAMPLE OF LINK STATE ROUTING PROTOCOL
OSPF (Open Shortest Path First )
Open Shortest Path First (OSPF) is a link-state routing protocol that was developed for IP
networks and is based on the Shortest Path First (SPF) algorithm. OSPF is an Interior Gateway
Protocol (IGP).
The OSPF protocol is a link-state routing protocol, which means that the routers exchange
topology information with their nearest neighbors. The topology information is flooded
throughout the AS, so that every router within the AS has a complete picture of the topology
of the AS. This picture is then used to calculate end-to-end paths through the AS, normally
using a variant of the Dijkstra algorithm. Therefore, in a link-state routing protocol, the next
hop address to which data is forwarded is determined by choosing the best end-to-end path
to the eventual destination
CHARACTERISTICS:
• AD value is 110.
• Supports classless network.
• Supports VLSM/CIDR
• unlimited hop counts.
HYBRID ROUTING PROTOCOL
A Hybrid Routing protocol has the advantages of both Distance Vector and Link
State Routing protocols and merges them into a new protocol. Typically, hybrid routing
protocols are based on a Distance Vector protocol but contain many of the features
and advantages of Link State Routing protocols. Example: EIGRP (Enhanced Interior
Gateway Routing Protocol).
Hybrid Routing Protocol (HRP) Requires less memory and processing power than LSRP
EIGRP are examples of hybrid routing protocols.
EXAMPLE OF HYBIRD ROUTING PROTOCOL
EIGRP(Enhanced Interior gateway Routing Protocol)
It’s supports the features both distance vector & link state protocol. It is a
cisco proprietary protocol. By default, bandwidth & delay are the activated
metrics.
CHARACTERISTICS: -
• Supports classless network
• Supports VLSM/CIDR.
• It supports trigger updates.
IAP PPT-2.pptx

Mais conteúdo relacionado

Semelhante a IAP PPT-2.pptx

Routing Protocols
Routing ProtocolsRouting Protocols
Routing ProtocolsBIT DURG
 
routing algorithm
routing algorithmrouting algorithm
routing algorithmAnusuaBasu
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmMOHIT AGARWAL
 
Routing Protocols.pptx
Routing Protocols.pptxRouting Protocols.pptx
Routing Protocols.pptxsazia7
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layersambhenilesh
 
Part 2 : reliable transmission and building a network
Part 2 : reliable transmission and building a networkPart 2 : reliable transmission and building a network
Part 2 : reliable transmission and building a networkOlivier Bonaventure
 
Day 8 2 distance vector routing
Day 8 2 distance vector routingDay 8 2 distance vector routing
Day 8 2 distance vector routingCYBERINTELLIGENTS
 
Ars msr 1-intradomain
Ars msr 1-intradomainArs msr 1-intradomain
Ars msr 1-intradomainNarcisIlie1
 
Computer networking presentation
Computer networking presentationComputer networking presentation
Computer networking presentationMd. Touhidur Rahman
 
destination. The network layer must know the topology of the subnet and choos...
destination. The network layer must know the topology of the subnet and choos...destination. The network layer must know the topology of the subnet and choos...
destination. The network layer must know the topology of the subnet and choos...Ashish Gupta
 
Tcil_Concept of Routing_n_protocols.pptx
Tcil_Concept of Routing_n_protocols.pptxTcil_Concept of Routing_n_protocols.pptx
Tcil_Concept of Routing_n_protocols.pptxVINAYTANWAR18
 
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdfmrcopyxerox
 

Semelhante a IAP PPT-2.pptx (20)

computer communications
computer communicationscomputer communications
computer communications
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
routing algorithm
routing algorithmrouting algorithm
routing algorithm
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
 
Routing Protocols.pptx
Routing Protocols.pptxRouting Protocols.pptx
Routing Protocols.pptx
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layer
 
Part 2 : reliable transmission and building a network
Part 2 : reliable transmission and building a networkPart 2 : reliable transmission and building a network
Part 2 : reliable transmission and building a network
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
 
Day 8 2 distance vector routing
Day 8 2 distance vector routingDay 8 2 distance vector routing
Day 8 2 distance vector routing
 
Ars msr 1-intradomain
Ars msr 1-intradomainArs msr 1-intradomain
Ars msr 1-intradomain
 
Lecture set 5
Lecture set 5Lecture set 5
Lecture set 5
 
Computer networking presentation
Computer networking presentationComputer networking presentation
Computer networking presentation
 
Network_Layer.ppt
Network_Layer.pptNetwork_Layer.ppt
Network_Layer.ppt
 
destination. The network layer must know the topology of the subnet and choos...
destination. The network layer must know the topology of the subnet and choos...destination. The network layer must know the topology of the subnet and choos...
destination. The network layer must know the topology of the subnet and choos...
 
2 reliability-network
2 reliability-network2 reliability-network
2 reliability-network
 
Part7-routing.pptx
Part7-routing.pptxPart7-routing.pptx
Part7-routing.pptx
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
 
Tcil_Concept of Routing_n_protocols.pptx
Tcil_Concept of Routing_n_protocols.pptxTcil_Concept of Routing_n_protocols.pptx
Tcil_Concept of Routing_n_protocols.pptx
 
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
4af46e43-4dc7-4b54-ba8b-3a2594bb5269 j.pdf
 
Notes
NotesNotes
Notes
 

Mais de HirazNor

MobileAdHocRoutingProtocols.pptx
MobileAdHocRoutingProtocols.pptxMobileAdHocRoutingProtocols.pptx
MobileAdHocRoutingProtocols.pptxHirazNor
 
csevpnppt-170905123948 (1).pdf
csevpnppt-170905123948 (1).pdfcsevpnppt-170905123948 (1).pdf
csevpnppt-170905123948 (1).pdfHirazNor
 
Folk Media Lec 14.pptx
Folk Media Lec 14.pptxFolk Media Lec 14.pptx
Folk Media Lec 14.pptxHirazNor
 
AI-Lec2-Agents.pptx
AI-Lec2-Agents.pptxAI-Lec2-Agents.pptx
AI-Lec2-Agents.pptxHirazNor
 
AI-Lec5-Searches in AI.pptx
AI-Lec5-Searches in AI.pptxAI-Lec5-Searches in AI.pptx
AI-Lec5-Searches in AI.pptxHirazNor
 
C3_Gossip_B_CSRAfinal-.pptx
C3_Gossip_B_CSRAfinal-.pptxC3_Gossip_B_CSRAfinal-.pptx
C3_Gossip_B_CSRAfinal-.pptxHirazNor
 
Lecture 15.ppt
Lecture 15.pptLecture 15.ppt
Lecture 15.pptHirazNor
 
W13-L1&2.pptx
W13-L1&2.pptxW13-L1&2.pptx
W13-L1&2.pptxHirazNor
 
W09-L01.pptx
W09-L01.pptxW09-L01.pptx
W09-L01.pptxHirazNor
 
hafsa 24.pptx
hafsa 24.pptxhafsa 24.pptx
hafsa 24.pptxHirazNor
 
IAP PPT-1.pptx
IAP PPT-1.pptxIAP PPT-1.pptx
IAP PPT-1.pptxHirazNor
 
Group#04-PPT-IA&P.pptx
Group#04-PPT-IA&P.pptxGroup#04-PPT-IA&P.pptx
Group#04-PPT-IA&P.pptxHirazNor
 

Mais de HirazNor (12)

MobileAdHocRoutingProtocols.pptx
MobileAdHocRoutingProtocols.pptxMobileAdHocRoutingProtocols.pptx
MobileAdHocRoutingProtocols.pptx
 
csevpnppt-170905123948 (1).pdf
csevpnppt-170905123948 (1).pdfcsevpnppt-170905123948 (1).pdf
csevpnppt-170905123948 (1).pdf
 
Folk Media Lec 14.pptx
Folk Media Lec 14.pptxFolk Media Lec 14.pptx
Folk Media Lec 14.pptx
 
AI-Lec2-Agents.pptx
AI-Lec2-Agents.pptxAI-Lec2-Agents.pptx
AI-Lec2-Agents.pptx
 
AI-Lec5-Searches in AI.pptx
AI-Lec5-Searches in AI.pptxAI-Lec5-Searches in AI.pptx
AI-Lec5-Searches in AI.pptx
 
C3_Gossip_B_CSRAfinal-.pptx
C3_Gossip_B_CSRAfinal-.pptxC3_Gossip_B_CSRAfinal-.pptx
C3_Gossip_B_CSRAfinal-.pptx
 
Lecture 15.ppt
Lecture 15.pptLecture 15.ppt
Lecture 15.ppt
 
W13-L1&2.pptx
W13-L1&2.pptxW13-L1&2.pptx
W13-L1&2.pptx
 
W09-L01.pptx
W09-L01.pptxW09-L01.pptx
W09-L01.pptx
 
hafsa 24.pptx
hafsa 24.pptxhafsa 24.pptx
hafsa 24.pptx
 
IAP PPT-1.pptx
IAP PPT-1.pptxIAP PPT-1.pptx
IAP PPT-1.pptx
 
Group#04-PPT-IA&P.pptx
Group#04-PPT-IA&P.pptxGroup#04-PPT-IA&P.pptx
Group#04-PPT-IA&P.pptx
 

Último

chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
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
 
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
 
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
 
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
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
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
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfrs7054576148
 

Último (20)

chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
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
 
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
 
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...
 
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
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
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
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 

IAP PPT-2.pptx

  • 1. INTERNET ARCHITECTURE AND PROTOCOLS (IT-313) PRESENTATION TOPIC: ROUTING PROTOCOLS
  • 2. GROUP PRESENTATION GROUP #5 (SECTION B) PRESENTED TO: MADAM SARA SARWAR PRESENTERS : MAEDA QAISAR (19011556-078) FAIZA (19011556-176) ALISHBA SHAHBAZ (19011556-043)
  • 3. TABLE OF CONTENTS • Routing Protocols • Definition • Metrices • Categorization • Static Routing Protocols • Definition • Advantages and Disadvantages • Dynamic Routing Protocols • Exterior Gateway Routing Protocols • Path Vector Routing Protocol (BGP) • Interior Gateway Routing Protocols • Distance Vector (RIP, IGRP) • Link State (OSPF) • Hybrid (EIGRP)
  • 4. ROUTING PROTOCOLS Routing protocols are the set of rules used by the routers to communicate between source & destination. They do not move the information source to destination only update the routing table. Each protocol has its own algorithm to choose the best path.
  • 5. METRICES BY ROUTING PROTOCOLS • Number of network layer devices along with the path (hop count) • Bandwidth • Delay • Load • MTU • Cost Routing protocols store the result of these metrices in routing table.
  • 6.
  • 7. STATIC ROUTING PROTOCOLS Static routing ,when an administrator manually assigns the path from source to destination network. This is feasible in small networks, but not in large networks.
  • 8. ADVANTAGES & DISADVANTAGES Advantages: • No overhead on router CPU. • No bandwidth usage between links. • Security (only administrator add routes.) Disadvantages: • All link will be down on a link failure. • Not practical on large networks. • Administrator must update all routes.
  • 9. DYNAMIC ROUTING PROTOCOLS Dynamic routing is the process in which routing tables are automatically updates by routing table of each neighbor.  Dynamically discover & maintains routes.  Calculate routes
  • 10. ADVANTAGES & DISADVANTAGES Advantages: • Less work in maintaining the configuration when adding & deleting networks. • Protocols automatically react to the topology changes. • Configuration is less-prone. Disadvantages: • Routers resource are used • More administrator knowledge is required for configuration.
  • 11. EXTERIOR GATEWAY PROTOCOL Exterior Gateway Protocol (EGP) is a protocol for exchanging routing information between two neighbor gateway hosts (each with its own router) in a network of autonomous systems. EGP is commonly used between hosts on the Internet to exchange routing table information.
  • 12. PATH VECTOR ROUTING PROTOCOL A path-vector routing protocol is a network routing protocol which maintains the path information that gets updated dynamically. In a path vector protocol, a router does not just receive the distance vector for a particular destination from its neighbor; instead, a node receives the distance as well as path information.
  • 13. Border Gateway Protocol (BGP) is a standardized exterior gateway protocol designed to exchange routing and reachability information between autonomous systems (AS) on the Internet. • It makes internet work. • Classified as path vector routing protocol. • BGP makes use of routing within an autonomous system. • It is one of the most complex and Difficult to configuration protocol but its emphasis on security and scalability makes its usage essential. BORDER GATEWAY PROTOCOL
  • 14. DISTANCE VECTOR ROUTING PROTOCOL Distance vector routing protocols use distance to determine the best path to a remote network. The distance is usually the number of hops (routers) to the destination network. Distance vector protocols send complete routing table to each neighbor (a neighbor is directly connected router that runs the same routing protocol) RIPV1 and RIPV2 are examples of distance vector routing protocols.
  • 15. DISTANCE VECTOR ROUTING PROTOCOL Consider • There is a network consisting of 4 routers. • The weights are mentioned on the edges. • Weights could be distances or costs or delays
  • 16. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM Step-01: Each router prepares its routing table using its local knowledge. Routing table prepared by each router is shown below- Destination Distance Next HOP A 0 A B 2 B C ∞ – D 1 D Destination Distance Next HOP A 2 A B 0 B C 3 C D 7 D At Router A- AT Router B-
  • 17. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM Step 1 Destination Distance Next Hop A ∞ – B 3 B C 0 C D 11 D Destination Distance Next Hop A 1 A B 7 B C 11 C D 0 D At Router C- AT Router D-
  • 18. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM Step-02: Each router exchanges its distance vector obtained in Step-01 with its neighbors. After exchanging the distance vectors, each router prepares a new routing table. This is shown below- At Router A- Router A receives distance vectors from its neighbors B and D. Router A prepares a new routing table as-
  • 19. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM Cost of reaching destination B from router A = min { 2+0 , 1+7 } = 2 via B. Cost of reaching destination C from router A = min { 2+3 , 1+11 } = 5 via B. Cost of reaching destination D from router A = min { 2+7 , 1+0 } = 1 via D. Thus, the new routing table at router A is- Destination Distance Next Hop A 0 A B 2 B C 5 B D 1 D
  • 20. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM At Router B- Router B receives distance vectors from its neighbors A, C and D. Router B prepares a new routing table as- •Cost of reaching destination A from router B = min { 2+0 , 3+∞ , 7+1 } = 2 via A. •Cost of reaching destination C from router B = min { 2+∞ , 3+0 , 7+11 } = 3 via C. •Cost of reaching destination D from router B = min { 2+1 , 3+11 , 7+0 } = 3 via A
  • 21. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM Thus, the new routing table at router B is- At Router C- •Router C receives distance vectors from its neighbors B and D. •Router C prepares a new routing table as Destination Distance Next Hop A 2 A B 0 B C 3 C D 3 A
  • 22. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM • Cost of reaching destination A from router C = min { 3+2 , 11+1 } = 5 via B. • Cost of reaching destination B from router C = min { 3+0 , 11+7 } = 3 via B. • Cost of reaching destination D from router C = min { 3+7 , 11+0 } = 10 via B • Thus, the new routing table at router C is- Destination Distance Next Hop A 5 B B 3 B C 0 C D 10 B
  • 23. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM At Router D •Router D receives distance vectors from its neighbors A, B and C. •Router D prepares a new routing table as- •Cost of reaching destination A from router D = min { 1+0 , 7+2 , 11+∞ } = 1 via A. •Cost of reaching destination B from router D = min { 1+2 , 7+0 , 11+3 } = 3 via A. •Cost of reaching destination C from router D = min { 1+∞ , 7+3 , 11+0 } = 10 via B
  • 24. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM Thus, the new routing table at router D is- Step-03: • Each router exchanges its distance vector obtained in Step-02 with its neighboring routers • After exchanging the distance vectors, each router prepares a new routing table At Router A- • Router A receives distance vectors from its neighbors B and D. • Router A prepares a new routing table as Destination Distance Next Hop A 1 A B 3 A C 10 B D 0 D
  • 25. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM • Cost of reaching destination B from router A = min { 2+0 , 1+3 } = 2 via B • Cost of reaching destination C from router A = min { 2+3 , 1+10 } = 5 via B • Cost of reaching destination D from router A = min { 2+3 , 1+0 } = 1 via D • Thus, the new routing table at router A is- Destination Distance Next Hop A 0 A B 2 B C 5 B D 1 D
  • 26. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM • Router B receives distance vectors from its neighbors A, C and D. • Router B prepares a new routing table as- • Cost of reaching destination A from router B = min { 2+0 , 3+5 , 3+1 } = 2 via A. • Cost of reaching destination C from router B = min { 2+5 , 3+0 , 3+10 } = 3 via • Cost of reaching destination D from router B = min { 2+1 , 3+10 , 3+0 } = 3 via A Destination Distance Next Hop A 2 A B 0 B C 3 C D 3 A
  • 27. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM Thus, the new routing table at router B is- At Router C- • Router C receives distance vectors from its neighbors B and D. • Router C prepares a new routing table as Destination Distance Next Hop A 2 A B 0 B C 3 C D 3 A
  • 28. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM • Cost of reaching destination A from router C = min { 3+2 , 10+1 } = 5 via B. • Cost of reaching destination B from router C = min { 3+0 , 10+3 } = 3 via B. • Cost of reaching destination D from router C = min { 3+3 , 10+0 } = 6 via B. • Thus, the new routing table at router C is- • At Router D- • Router D receives distance vectors from its neighbors A, B • and C • Router D prepares a new routing table as- Destination Distance Next Hop A 5 B B 3 B C 0 C D 6 B
  • 29. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM • Cost of reaching destination A from router D = min { 1+0 , 3+2 , 10+5 } = 1 via A. • Cost of reaching destination B from router D = min { 1+2 , 3+0 , 10+3 } = 3 via A. • Cost of reaching destination C from router D = min { 1+5 , 3+3 , 10+0 } = 6 via A • Thus, the new routing table at router D is • These will be the final routing tables at each router. Destination Distance Next Hop A 1 A B 3 A C 6 A D 0 D
  • 30. DISTANCE VECTOR ROUTING PROTOCOL ALGORITHM FINAL ROUTING TABLE: Information stored at node A B C D A 0 2 5 1 B 2 0 3 3 C 5 3 0 6 D 1 3 6 0
  • 31. LINK STATE PROTOCOL Link state routing protocols are the second type of dynamic routing protocols. They have the same basic purpose as distance vector protocols, to find a best path to a destination, but use different methods to do so. Unlike distance vector protocols, link state protocols don't advertise the entire routing table. Instead, they advertise information about a network topology (directly connected links, neighboring routers...), so that in the end all routers running a link state protocol have the same topology database. OSPF are the examples of link state routing protocols.
  • 32. LINK STATE PROTOCOL ALGORITHM Initialization N = {A} // A is a root node. for all nodes v if v adjacent to A then D(v) = c( A, v) else D(v) = infinity loop find w not in N such that D(w) is a minimum. Add w to N Update D(v) for all v adjacent to w and not in N: D(v) = min(D(v) , D(w) + c( w, v)) Until all nodes in N
  • 33. Explain with the help of this graph A E D C B F 1 3 2 2 5 1 1 2 5
  • 34. LINK STATE PROTOCOL ALGORITHM Step 1: The first step is an initialization step. The currently known least cost path from A to its directly attached neighbors, B, C, D are 2,5,1 respectively. The cost from A to B is set to 2, from A to D is set to 1 and from A to C is set to 5. The cost from A to E and F are set to infinity as they are not directly linked to A. Step A N B D(B),P(B ) C D(C),P(C ) D D(D),P(D ) E D(E),P(E) F D(F),P(F) 1 A 2,A 5,A 1,A ∞ ∞
  • 35. LINK STATE PROTOCOL ALGORITHM Step 2: In the above table, we observe that vertex D contains the least cost path in step 1. Therefore, it is added in N. Now, we need to determine a least-cost path through D vertex. a)Calculating shortest path from A to B v = B, w = D D(B) = min( D(B) , D(D) + c(D,B) ) = min( 2, 1+2)> = min( 2, 3) The minimum value is 2. Therefore, the currently shortest path from A to B is 2 b) Calculating shortest path from A to C v = C, w = D D(C) = min( D(C) , D(D) + c(D,C) ) = min( 5, 1+3) = min( 5, 4) The minimum value is 4. Therefore, the currently shortest path from A to C is 4.
  • 36. LINK STATE PROTOCOL ALGORITHM c) Calculating shortest path from A to E v = E, w = D D(E) = min( D(E) , D(D) + c(D,E) ) = min( ∞, 1+1) = min(∞, 2) The minimum value is 2. Therefore, the currently shortest path from A to E is 2. Step A N B D(B),P(B) C D(C),P(C) D D(D),P(D) E D(E),P(E) F D(F),P(F) 1 A 2,A 5,A 1,A ∞ ∞ 2 AD 2,A 4,D 2,D ∞
  • 37. LINK STATE PROTOCOL ALGORITHM Step 2: In the above table, we observe that vertex D contains the least cost path in step 1. Therefore, it is added in N. Now, we need to determine a least-cost path through D vertex. a)Calculating shortest path from A to B v = B, w = D D(B) = min( D(B) , D(D) + c(D,B) ) = min( 2, 1+2) = min( 2, 3) The minimum value is 2. Therefore, the currently shortest path from A to B is 2. b) Calculating shortest path from A to C v = C, w = D D(C) = min( D(C) , D(D) + c(D,C) ) = min( 5, 1+3) = min( 5, 4) The minimum value is 4. Therefore, the currently shortest path from A to C is 4.
  • 38. LINK STATE PROTOCOL ALGORITHM c) Calculating shortest path from A to E v = E, w = D D(E) = min( D(E) , D(D) + c(D,E) ) = min( ∞, 1+1) = min(∞, 2) The minimum value is 2. Therefore, the currently shortest path from A to E is 2. Step A N B D(B),P(B) C D(C),P(C) D D(D),P(D) E D(E),P(E) F D(F),P(F) 1 A 2,A 5,A 1,A ∞ ∞ 2 AD 2,A 4,D 2,D ∞
  • 39. LINK STATE PROTOCOL ALGORITHM Step 3: In the above table, we observe that both E and B have the least cost path in step 2. Let's consider the E vertex. Now, we determine the least cost path of remaining vertices through E. a) Calculating the shortest path from A to B. v = B, w = E D(B) = min( D(B) , D(E) + c(E,B) ) = min( 2 , 2+ ∞ ) = min( 2, ∞) The minimum value is 2. Therefore, the currently shortest path from A to B is 2. b) Calculating shortest path from A to C v = C, w = E D(C) = min( D(C) , D(E) + c(E,C) ) = min( 4 , 2+1 ) = min( 4,3) The minimum value is 3. Therefore, the currently shortest path from A to C is 3.
  • 40. LINK STATE PROTOCOL ALGORITHM c) Calculating shortest path from A to E v = F, w = E D(F) = min( D(F) , D(E) + c(E,F) ) = min( ∞ , 2+2 ) = min(∞ ,4) The minimum value is 4. Therefore, the currently shortest path from A to F is 4. Step A N B D(B),P(B) C D(C),P(C) D D(D),P(D) E D(E),P(E) F D(F),P(F) 1 A 2,A 5,A 1,A ∞ ∞ 2 AD 2,A 4,D 2,D ∞ 3 ADE 2,A 3,E 4E
  • 41. LINK STATE PROTOCOL ALGORITHM Step 4: In the above table, we observe that B vertex has the least cost path in step 3. Therefore, it is added in N. Now, we determine the least cost path of remaining vertices through B. a) Calculating the shortest path from A to C. v = C, w = B D(C) = min( D(C) , D(B) + c(B,C) ) = min( 3 , 2+3 ) = min( 3,5) The minimum value is 3. Therefore, the currently shortest path from A to C is 3. b) Calculating shortest path from A to F v = F, w = B D(F) = min( D(F) , D(B) + c(B,F) ) = min( 4, ∞) = min(4, ∞) The minimum value is 4. Therefore, the currently shortest path from A to F is 4. Step A N B D(B),P(B) C D(C),P(C) D D(D),P(D) E D(E),P(E) F D(F),P(F) 1 A 2,A 5,A 1,A ∞ ∞ 2 AD 2,A 4,D 2,D ∞ 3 ADE 2,A 3,E 4E 4 ADEB 3,E 4,E
  • 42. LINK STATE PROTOCOL ALGORITHM Step 5: In the above table, we observe that C vertex has the least cost path in step 4. Therefore, it is added in N. Now, we determine the least cost path of remaining vertices through C. a) Calculating the shortest path from A to F. v = F, w = C D(F) = min( D(F) , D(C) + c(C,F) ) = min( 4, 3+5) = min(4,8) The minimum value is 4. Therefore, the currently shortest path from A to F is 4. Step A N B D(B),P(B) C D(C),P(C) D D(D),P(D) E D(E),P(E) F D(F),P(F) 1 A 2,A 5,A 1,A ∞ ∞ 2 AD 2,A 4,D 2,D ∞ 3 ADE 2,A 3,E 4E 4 ADEB 3,E 4,E 5 ADEBC 4,E
  • 43. LINK STATE PROTOCOL ALGORITHM Step A N B D(B),P(B) C D(C),P(C) D D(D),P(D) E D(E),P(E) F D(F),P(F) 1 A 2,A 5,A 1,A ∞ ∞ 2 AD 2,A 4,D 2,D ∞ 3 ADE 2,A 3,E 4E 4 ADEB 3,E 4,E 5 ADEBC 4,E 6 ADEBCF
  • 45. EXAMPLE OF LINK STATE ROUTING PROTOCOL OSPF (Open Shortest Path First ) Open Shortest Path First (OSPF) is a link-state routing protocol that was developed for IP networks and is based on the Shortest Path First (SPF) algorithm. OSPF is an Interior Gateway Protocol (IGP). The OSPF protocol is a link-state routing protocol, which means that the routers exchange topology information with their nearest neighbors. The topology information is flooded throughout the AS, so that every router within the AS has a complete picture of the topology of the AS. This picture is then used to calculate end-to-end paths through the AS, normally using a variant of the Dijkstra algorithm. Therefore, in a link-state routing protocol, the next hop address to which data is forwarded is determined by choosing the best end-to-end path to the eventual destination CHARACTERISTICS: • AD value is 110. • Supports classless network. • Supports VLSM/CIDR • unlimited hop counts.
  • 46. HYBRID ROUTING PROTOCOL A Hybrid Routing protocol has the advantages of both Distance Vector and Link State Routing protocols and merges them into a new protocol. Typically, hybrid routing protocols are based on a Distance Vector protocol but contain many of the features and advantages of Link State Routing protocols. Example: EIGRP (Enhanced Interior Gateway Routing Protocol). Hybrid Routing Protocol (HRP) Requires less memory and processing power than LSRP EIGRP are examples of hybrid routing protocols.
  • 47. EXAMPLE OF HYBIRD ROUTING PROTOCOL EIGRP(Enhanced Interior gateway Routing Protocol) It’s supports the features both distance vector & link state protocol. It is a cisco proprietary protocol. By default, bandwidth & delay are the activated metrics. CHARACTERISTICS: - • Supports classless network • Supports VLSM/CIDR. • It supports trigger updates.