Breath, Brain & Beyond_A Holistic Approach to Peak Performance.pdf
Routing protocols
1. Routing Protocols
( RIP , OSPF )
Subject – Computer Network
Course – M.Tech (CSE)
By
Shravan Kumar Upadhayay
Department of Computer Science & Engineering
Punjab Institute of Technology, Kapurthala
(A constituent institute of PTU)
2. CONTENTS
1. What Is Routing
2. Routing Protocol
1.RIP(Routing Information Protocol
2.OSPF(Open Shortest Path First Protocol
3. Comparision B/w OSPF & RIPv2
3. What Is Routing ?
Routing is the process of selecting paths in a network
along which to send network traffic.
Routing is performed for many kinds of networks,
including the telephone network (circuit switching),
electronic data networks (such as the Internet), and
transportation networks.
Types Of Routing:
1.Static Routing
2.Dynamic Routing
5. Routing Protocol
A routing protocol specifies how routers communicate
with each other, disseminating information that enables
them to select routes between any two nodes on a
computer network.
Routing algorithms determine the specific choice of route.
Each router has a priority knowledge only of networks
attached to it directly.
A routing protocol shares this information first among
immediate neighbors, and then throughout the network.
6. Although there are many types of routing
protocols, But Here I have Discussed Few Of
them Only :
Routing Protocols
RIP
Routing
Information
Protocol
OSPF
Open Shortest Path
First
EIGRP
Cisco's proprietary
Enhanced Interior
Gateway Routing
Protocol
BGP
Border Gateway
Protocol
7. RIP ( Routing Information Protocol)
The Routing Information Protocol (RIP) is one of the oldest
Distance Vector routing Protocol, which employs the hop
count as a routing metric. RIP prevents routing loops by
implementing a limit on the number of hops allowed in a
path from the source to a destination.
Some important Points :
1. Maximum number of hops allowed for RIP is 15
2. Each RIP router transmitted full updates every 30
seconds
3. RIP uses the (UDP) as its transport protocol,
4. It Assigned the reserved port number 520
8. Versions of the Routing Information
Protocol:
RIPv1 RIPv2
BroadCast Based Multicast Based
Classful Class less
255.255.255.255 255.0.0.0
Distance Vector Protocol Distance Vector Protocol
Hope By Hope Hope By Hope
Max 15 Node Max 15 node
No Authentication Allows For MD5 Authentication
No Support For Discontiguous Network Support For Discontiguous Network
9. Command Used To Confing RIP Protocols
For Router :
For Router 0
R0>Enable
R0#Config t
R0(config)#int f0/0
R0(config)#ip add 15.0.0.1 255.0.0.0
# no shut
R0# config t
R0(config)# Router rip
#net 10.1.1.0
For Router 1
R1>Enable
R1#Config t
R1(config)#int f0/0
R1(config)#ip add 15.0.0.2 255.0.0.0
# no shut
R1# config t
R1(config)# Router rip
#net 20.1.1.0
#net 10.1.1.0
For Verifcation We have used :
Route # ping 15.0.0.1
Route # do Sh Ip Protocols Command used to
check the Protocols details
10. Example :
F0/0
F0/0
Ip Add 15.0.0.1 Ip add 15.0.0.2
Network : 10.1.1.0 for R0 Network : 20.1.1.0 for R1
RIP Configuration Example
11. OSPF : Open Shortest Path First
Open Shortest Path First : is an Open standard Routing
Protocols that’s Been implemented by a wide variety of
Network Vendors.
OSPF Works by using the Dijkstra Algorithm.First , a
Shortest path tree is constructed , and then the routing
table is populated with the Resulting best path.
Features Of OSPF
1.Minimize Routing update traffic
2.Allow Scalability
3.Unlimited Hop Count
4.Allow Multi-vendors Deployment
12. Example
Ip 10.1.1.1
ip 10.1.1.2
Ip 15.0.0.1
Ip 15.0.0.2 ip 172.16.0.1
ip 172.16.0.2
Ip 20.1.1.1
Ip 20.1.1.2
Area 0
Area 10
Area 20
OSPF Configuration On Network
13. OSPF Configuration Commands
Here I Have Write General Syntax for Ospf Routing
Protocol Implementation On Router
For Rourer 1
R1>enable
R1#config t
R1(Config)#ip add 15.0.0.2
255.0.0.0
#no shut
R1# Router Ospf 1
#net 15.0.0.0 0.0.0.255 Area 0
#net 172.16.0.0 0.0.0.255 Area 0
For Rourer 2
R1>enable
R1#config t
R1(Config)#ip add 172.16.0.2
255.0.0.0
#no shut
R1# Router Ospf 1
#net 20.0.0.0 0.0.0.255 Area 20
#net 172.16.0.0 0.0.0.255 Area 0
14. For Router 3
R1>enable
R1#config t
R1(Config)#ip add 10.1.1.2 255.0.0.0
#no shut
R1# Router Ospf 1
#net 10.0.0.0 0.0.0.255 Area 10
For Router 4
R1>enable
R1#config t
R1(Config)#ip add 20.1.1.2 255.0.0.0
#no shut
R1# Router Ospf 1
#net 20.0.0.0 0.0.0.255 Area 20
For Router 0
R1>enable
R1#config t
R1(Config)#ip add 15.0.0.1 255.0.0.0
#no shut
R1# Router Ospf 1
#net 10.0.0.0 0.0.0.255 Area 10
#net 15.0.0.0 0.0.0.255 Area 0
15. OSPF RIPv2
Multicast On Change PeroidMulticast Based
Classless Class less
Dijkstra Bellman -Ford
Link State Protocol Distance Vector Protocol
Bandwidth Hope By Hope
hope Count limit None Max 15 Hope
Allows Authentication Allows For MD5 Authentication
Support For Discontiguous Network Support For Discontiguous Network
Comparision B/w OSPF & RIPv2
16. For Further Details Regarding RIP Routing
Protocols Configuration On Network And
OSPF Routing Protocols On Network :
Visit: www.lammle.com
Or http://shravanupadhayay.blogspot.com
Editor's Notes
Open Shortest Path First : is an Open standard Routing Protocols that’s Been implemented by a wide variety of Network Vendors.OSPF Works by using the Dijkstra Algorithm.First , a Shortest pAth tree is constructed , and then the routing table is populated with the Resulting best path.