SlideShare a Scribd company logo
1 of 26
Lecture 04 -Routing and Routing Protocols
Direct Delivery
 Send a message to a machine in the LAN
Indirect Delivery
Indirect Delivery
 To send a packet from source to destination
 packet should go from router to router
 All routers should maintain a routing table
 IP packet is analyzed at the router and correct path is
selected form the routing table
 The packet is sent though that path
 Indirect delivery is done using the routing strategies
Routing Strategies
 There are four routing strategies
- Fixed Routing
- Flooding
- Random Routing
- Adaptive Routing
Fixed Routing
 Routing information is centrally maintained
 This is called a Directory (A central database)
 Advantage
- Updating new information is easy as need to change at one
location (central Database)
 Disadvantages
- Each and every IP packet should be analyzed
- Network traffic may increase at the central database because it
has to serve lots of requests from routers
- Dynamic changes are not possible
Flooding
 When an IP packet comes, the router will send it on all paths.
- retransmitted to neighbors
 Advantages
- Simple mechanism (IP packets are not analyzed at router)
- Most likely it will reach the destination (Highly reliable)
 Disadvantages
- Causes high network traffic
- Duplicate packets might reach the destination
- Wastes Network bandwidth
Random Routing
 When an IP packet comes to the router, it decides the
path randomly and sends the IP packet in that path
 Advantages
- Will not cause unnecessary network traffic
- Simple
 Disadvantage
- No guarantee that the IP packet will reach to the
destination
Adaptive Routing
 Each router maintains a routing table
 Also it can be changed according to the network changes
(Adaptive)
 Advantages
- Network traffic is minimized
- The best route will be selected most of the time
 Disadvantages
- Routers need to keep a routing table
- Process each IP packet
- Need to update routing tables automatically with the changes
in the network
Routing Methods used in Adaptive
Routing
 Next hop routing
 Host specific
 Network specific
 Default routing
Host Specific Routing
 Each router keeps a table entry for each host (one record for
one host)
 Table entry has Host IP and the Interface
Host Address Interface
A E0
B S0
C S1
Disadvantages
• Large number of records (if multiple paths are available number
of records increases)
•Table updating is difficult and complex as it should be done for
each and every host (if the host IP changes)
Network Specific Routing
 Each router keeps a table entry for each network (one record
for one network)
 Table entry has Network address and Interface
Advantages
• Number of records are limited (Table updates are not for each
host but for a network)
•Update is easy
Network Address Interface
A E0
B S0
C S1
Default Routing
 Another record in the routing table
 Indicates the route/path to be taken, if any of the records does not
match with the IP packet destination IP address
 Stub networks only use default routing , which means that they
have only one exit port out of the network
Routing Table update Methods
 Basically there are three methods to update routing
tables
- Connected
- Static
- Dynamic
Connected
 Once the router is connected to the network its interfaces
are given IP addresses
 With that router automatically identifies the network
addresses to which it connected
Static
 Administrator can manually give routing table
records
Dynamic
 Routing tables are updated automatically by using
routing rules ( protocols )
 Routing tables have
 Initially only ‘connected’ records
 Then add few ‘static’ records
 Then add dynamic updates
Routing Protocols
Features of routing protocols
 Network changes (addition or removal or fault) are
automatically updated in routing tables of all routers
 When there are many routes to a destination, the
best route should be selected
 Share the traffic through different routes
What Is a Routing Protocol?
 Routing Protocols
allow routers to
dynamically
advertise and
learn routes,
determine which
routes are
available and
which are the
most efficient
routes to a
destination
20
Network
Protocol
Destination
Network
Connected
RIP
IGRP
10.120.2.0
172.16.2.0
172.17.3.0
Exit
Interface
E0
S0
S1
Routing Protocol: RIP, IGRP,OSPF
172.17.3.0
172.16.1.010.120.2.0
E0
S0
Routing Protocols
Routing Protocols cont.
 An autonomous system (AS) is a collection of routers
under a common administration
ex : a company's internal network
 Interior Gateway Protocols (IGP) are used for
intra-autonomous system routing
(routing inside an autonomous system)
 Exterior Gateway Protocols (EGP) are used for
inter-autonomous system routing
(routing between autonomous systems)
Routing Protocols cont.
Distance Vector Routing Protocols
 Routes are advertised as vectors of distance and direction
 Distance is defined in terms of a metric such as hop count and
direction is simply the next-hop router or exit interface
 Send periodic updates of their routing information
 Use the Bellman-Ford algorithm for best path selection
 Work best in situations where:
- Network is simple
- Administrators do not have enough knowledge to configure
Ex : RIP, IGRP, EIGRP
Link State Routing Protocols
 link-state routing protocol send information about the state of
its links to other routers in the routing domain
 The state of those links includes information about the type of
network and any neighboring routers on those networks
 A link-state update only sent when there is a change in the
topology
 Use the Dijkstra algorithm for best path/ route selection
 Work best in situations where:
- Network design is complex (large networks)
- Administrators have a good knowledge of network
Ex : OSPF, IS-IS
Routing Algorithms
Bellman-Ford Algorithm
 Used by distance vector routing protocols
Dijkstras Algorithm
 Used by link state routing protocols

More Related Content

What's hot

Routing table and routing algorithms
Routing table and routing algorithmsRouting table and routing algorithms
Routing table and routing algorithms
lavanyapathy
 
Networking devices
Networking devicesNetworking devices
Networking devices
rupinderj
 

What's hot (20)

Routing
RoutingRouting
Routing
 
11 routing
11 routing11 routing
11 routing
 
M4 san features-4.3.1
M4 san features-4.3.1M4 san features-4.3.1
M4 san features-4.3.1
 
Group 1
Group 1Group 1
Group 1
 
Routing algorithms
Routing algorithmsRouting algorithms
Routing algorithms
 
Hdlc
HdlcHdlc
Hdlc
 
Network devices
Network devicesNetwork devices
Network devices
 
Routing table and routing algorithms
Routing table and routing algorithmsRouting table and routing algorithms
Routing table and routing algorithms
 
computer Netwoks - network layer
computer Netwoks - network layercomputer Netwoks - network layer
computer Netwoks - network layer
 
1 networking devices 2014
1 networking devices 20141 networking devices 2014
1 networking devices 2014
 
Distance vector and link state routing protocol
Distance vector and link state routing protocolDistance vector and link state routing protocol
Distance vector and link state routing protocol
 
Day 10 rip (2)
Day 10 rip (2)Day 10 rip (2)
Day 10 rip (2)
 
BASICS OF ROUTING IN NETWORKS
BASICS OF ROUTING IN NETWORKSBASICS OF ROUTING IN NETWORKS
BASICS OF ROUTING IN NETWORKS
 
Routing Techniques
Routing TechniquesRouting Techniques
Routing Techniques
 
Computer networks unit ii
Computer networks    unit iiComputer networks    unit ii
Computer networks unit ii
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
Networking devices
Networking devicesNetworking devices
Networking devices
 
Computer Network
Computer NetworkComputer Network
Computer Network
 
routing
 routing routing
routing
 
Presentation Routing algorithm
Presentation Routing algorithmPresentation Routing algorithm
Presentation Routing algorithm
 

Viewers also liked

Pipeline and data hazard
Pipeline and data hazardPipeline and data hazard
Pipeline and data hazard
Waed Shagareen
 

Viewers also liked (20)

Lecture 03 networking
Lecture 03 networkingLecture 03 networking
Lecture 03 networking
 
Lecture 02 networking
Lecture 02 networkingLecture 02 networking
Lecture 02 networking
 
Data Hazard and Solution for Data Hazard
Data Hazard and Solution for Data HazardData Hazard and Solution for Data Hazard
Data Hazard and Solution for Data Hazard
 
Routing basics/CEF
Routing basics/CEFRouting basics/CEF
Routing basics/CEF
 
CCNA 2 Routing and Switching v5.0 Chapter 8
CCNA 2 Routing and Switching v5.0 Chapter 8CCNA 2 Routing and Switching v5.0 Chapter 8
CCNA 2 Routing and Switching v5.0 Chapter 8
 
Pipeline and data hazard
Pipeline and data hazardPipeline and data hazard
Pipeline and data hazard
 
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazard
 
pipelining
pipeliningpipelining
pipelining
 
C++ lecture 04
C++ lecture 04C++ lecture 04
C++ lecture 04
 
Lecture 01 networking
Lecture 01 networkingLecture 01 networking
Lecture 01 networking
 
C++ lecture 03
C++   lecture 03C++   lecture 03
C++ lecture 03
 
Lecture 07 networking
Lecture 07 networkingLecture 07 networking
Lecture 07 networking
 
C++ lecture 02
C++   lecture 02C++   lecture 02
C++ lecture 02
 
C++ lecture 01
C++   lecture 01C++   lecture 01
C++ lecture 01
 
What Makes Great Infographics
What Makes Great InfographicsWhat Makes Great Infographics
What Makes Great Infographics
 
You Suck At PowerPoint!
You Suck At PowerPoint!You Suck At PowerPoint!
You Suck At PowerPoint!
 
STOP! VIEW THIS! 10-Step Checklist When Uploading to Slideshare
STOP! VIEW THIS! 10-Step Checklist When Uploading to SlideshareSTOP! VIEW THIS! 10-Step Checklist When Uploading to Slideshare
STOP! VIEW THIS! 10-Step Checklist When Uploading to Slideshare
 
How To Get More From SlideShare - Super-Simple Tips For Content Marketing
How To Get More From SlideShare - Super-Simple Tips For Content MarketingHow To Get More From SlideShare - Super-Simple Tips For Content Marketing
How To Get More From SlideShare - Super-Simple Tips For Content Marketing
 
Masters of SlideShare
Masters of SlideShareMasters of SlideShare
Masters of SlideShare
 
10 Ways to Win at SlideShare SEO & Presentation Optimization
10 Ways to Win at SlideShare SEO & Presentation Optimization10 Ways to Win at SlideShare SEO & Presentation Optimization
10 Ways to Win at SlideShare SEO & Presentation Optimization
 

Similar to Lecture 04 networking

Chapter 06 - Routing
Chapter 06 - RoutingChapter 06 - Routing
Chapter 06 - Routing
phanleson
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ans
Ravi Kodoli
 

Similar to Lecture 04 networking (20)

Lecture number 5 Theory.pdf(machine learning)
Lecture  number  5 Theory.pdf(machine learning)Lecture  number  5 Theory.pdf(machine learning)
Lecture number 5 Theory.pdf(machine learning)
 
15 coms 525 tcpip - border gateway protocols
15    coms 525 tcpip - border gateway protocols15    coms 525 tcpip - border gateway protocols
15 coms 525 tcpip - border gateway protocols
 
Dynamic Routing
Dynamic RoutingDynamic Routing
Dynamic Routing
 
computer communications
computer communicationscomputer communications
computer communications
 
Mod5
Mod5Mod5
Mod5
 
Routing Protocols
Routing Protocols Routing Protocols
Routing Protocols
 
Chapter 06 - Routing
Chapter 06 - RoutingChapter 06 - Routing
Chapter 06 - Routing
 
3 ip routing eigrp
3 ip routing eigrp3 ip routing eigrp
3 ip routing eigrp
 
Interior Routing Protocols Chapter 15
Interior Routing Protocols Chapter 15Interior Routing Protocols Chapter 15
Interior Routing Protocols Chapter 15
 
1Routing Basics.pdf
1Routing Basics.pdf1Routing Basics.pdf
1Routing Basics.pdf
 
Dynamic routing
Dynamic routingDynamic routing
Dynamic routing
 
Sept 2017 dynamic routing
Sept 2017   dynamic routingSept 2017   dynamic routing
Sept 2017 dynamic routing
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ans
 
Qs.pptx
Qs.pptxQs.pptx
Qs.pptx
 
Ip routing
Ip routingIp routing
Ip routing
 
NP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
NP - Unit 4 - Routing - RIP, OSPF and Internet MulticastingNP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
NP - Unit 4 - Routing - RIP, OSPF and Internet Multicasting
 
Chapter07
Chapter07Chapter07
Chapter07
 
Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)
 
16 coms 525 tcpip - routing protocols -all
16    coms 525 tcpip - routing protocols -all16    coms 525 tcpip - routing protocols -all
16 coms 525 tcpip - routing protocols -all
 
Module 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptModule 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 ppt
 

Recently uploaded

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
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
dharasingh5698
 

Recently uploaded (20)

UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
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...
 
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
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
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
 
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
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
(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...
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
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
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
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...
 
(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...
 

Lecture 04 networking

  • 1. Lecture 04 -Routing and Routing Protocols
  • 2. Direct Delivery  Send a message to a machine in the LAN
  • 4. Indirect Delivery  To send a packet from source to destination  packet should go from router to router  All routers should maintain a routing table  IP packet is analyzed at the router and correct path is selected form the routing table  The packet is sent though that path  Indirect delivery is done using the routing strategies
  • 5. Routing Strategies  There are four routing strategies - Fixed Routing - Flooding - Random Routing - Adaptive Routing
  • 6. Fixed Routing  Routing information is centrally maintained  This is called a Directory (A central database)  Advantage - Updating new information is easy as need to change at one location (central Database)  Disadvantages - Each and every IP packet should be analyzed - Network traffic may increase at the central database because it has to serve lots of requests from routers - Dynamic changes are not possible
  • 7. Flooding  When an IP packet comes, the router will send it on all paths. - retransmitted to neighbors  Advantages - Simple mechanism (IP packets are not analyzed at router) - Most likely it will reach the destination (Highly reliable)  Disadvantages - Causes high network traffic - Duplicate packets might reach the destination - Wastes Network bandwidth
  • 8. Random Routing  When an IP packet comes to the router, it decides the path randomly and sends the IP packet in that path  Advantages - Will not cause unnecessary network traffic - Simple  Disadvantage - No guarantee that the IP packet will reach to the destination
  • 9. Adaptive Routing  Each router maintains a routing table  Also it can be changed according to the network changes (Adaptive)  Advantages - Network traffic is minimized - The best route will be selected most of the time  Disadvantages - Routers need to keep a routing table - Process each IP packet - Need to update routing tables automatically with the changes in the network
  • 10. Routing Methods used in Adaptive Routing  Next hop routing  Host specific  Network specific  Default routing
  • 11. Host Specific Routing  Each router keeps a table entry for each host (one record for one host)  Table entry has Host IP and the Interface Host Address Interface A E0 B S0 C S1 Disadvantages • Large number of records (if multiple paths are available number of records increases) •Table updating is difficult and complex as it should be done for each and every host (if the host IP changes)
  • 12. Network Specific Routing  Each router keeps a table entry for each network (one record for one network)  Table entry has Network address and Interface Advantages • Number of records are limited (Table updates are not for each host but for a network) •Update is easy Network Address Interface A E0 B S0 C S1
  • 13. Default Routing  Another record in the routing table  Indicates the route/path to be taken, if any of the records does not match with the IP packet destination IP address  Stub networks only use default routing , which means that they have only one exit port out of the network
  • 14. Routing Table update Methods  Basically there are three methods to update routing tables - Connected - Static - Dynamic
  • 15. Connected  Once the router is connected to the network its interfaces are given IP addresses  With that router automatically identifies the network addresses to which it connected
  • 16. Static  Administrator can manually give routing table records
  • 17. Dynamic  Routing tables are updated automatically by using routing rules ( protocols )  Routing tables have  Initially only ‘connected’ records  Then add few ‘static’ records  Then add dynamic updates
  • 19. Features of routing protocols  Network changes (addition or removal or fault) are automatically updated in routing tables of all routers  When there are many routes to a destination, the best route should be selected  Share the traffic through different routes
  • 20. What Is a Routing Protocol?  Routing Protocols allow routers to dynamically advertise and learn routes, determine which routes are available and which are the most efficient routes to a destination 20 Network Protocol Destination Network Connected RIP IGRP 10.120.2.0 172.16.2.0 172.17.3.0 Exit Interface E0 S0 S1 Routing Protocol: RIP, IGRP,OSPF 172.17.3.0 172.16.1.010.120.2.0 E0 S0
  • 22. Routing Protocols cont.  An autonomous system (AS) is a collection of routers under a common administration ex : a company's internal network  Interior Gateway Protocols (IGP) are used for intra-autonomous system routing (routing inside an autonomous system)  Exterior Gateway Protocols (EGP) are used for inter-autonomous system routing (routing between autonomous systems)
  • 24. Distance Vector Routing Protocols  Routes are advertised as vectors of distance and direction  Distance is defined in terms of a metric such as hop count and direction is simply the next-hop router or exit interface  Send periodic updates of their routing information  Use the Bellman-Ford algorithm for best path selection  Work best in situations where: - Network is simple - Administrators do not have enough knowledge to configure Ex : RIP, IGRP, EIGRP
  • 25. Link State Routing Protocols  link-state routing protocol send information about the state of its links to other routers in the routing domain  The state of those links includes information about the type of network and any neighboring routers on those networks  A link-state update only sent when there is a change in the topology  Use the Dijkstra algorithm for best path/ route selection  Work best in situations where: - Network design is complex (large networks) - Administrators have a good knowledge of network Ex : OSPF, IS-IS
  • 26. Routing Algorithms Bellman-Ford Algorithm  Used by distance vector routing protocols Dijkstras Algorithm  Used by link state routing protocols