SlideShare a Scribd company logo
1 of 37
Router
Router
• A router is an electronic device that
interconnects two or more computer
networks
• Works at Layer 3, Network Layer in an
intelligent manner
• Can connect different network
segments, whether they are in the same
building or even on the opposite side of
the globe
Router : Network Layer Interface
X MEDIUM X MEDIUM
PHYSICAL
LAYER
PHYSICAL
LAYER
DATA LINK
LAYER
DATA LINK
LAYER
NETWORK
LAYER
ROUTER
NETWORK
LAYER
Router
• Works in LAN, WAN environments
• Allows access to resources by selecting
the best path
• Can interconnect different networks
• Changes packet size and format to
match the requirements of the
destination network
Internetworking with a Router
IEEE 802.3
Sub-network IEEE 802.5
Sub-network
PC-NFS
Sub-network
Router
Devices and Layers
PHYSICAL
LAYER
DATA LINK
LAYER
NETWORK
LAYER
Switches
Routers
Repeaters
Switches
Layer 1
Layer 2
Layer 3
Difference Between Routers,
Switches and Hubs
• Hubs
– Simply provides the mechanical and
electrical connections between the nodes
• Switches
– Examine the data packet for the destination
address
– Do not alter the data packets
• Routers
– Examine and alter the data packets
– Perform protocol conversion
Delivery, Forwarding &
Routing
• Delivery
– Refers to the way a packet is handled by
the underlying networks under the control
of the network layer.
Delivery, Forwarding &
Routing
• Forwarding
– Refers to the way a packet is delivered to
the next station.
Delivery, Forwarding &
Routing
• Routing
– Refers to the way routing tables are created
to help in forwarding.
Functions of a Router
• Two primary functions:
• Determine the 'best path'
• Share details of routes with other
routers
Router has
• Routing Table - a database which
keeps track of the routes to networks
and the associated costs
• Routing Protocol - uses a special
algorithm to route data across a
network eg RIP
Format of Routing Table
Mask Network
Address
Next-hop
Address
Interface Flags Reference
Count
Use
Format of Routing Table
• Mask
– This field defines the mask applied for the
entry.
Format of Routing Table
• Network Address
– Defines the network address to which the
packet is finally delivered.
Format of Routing Table
• Next-hop Address
– Defines the address of the next-hop router
to which the packet is delivered.
Format of Routing Table
• Interface
– Shows the name of the interface.
Format of Routing Table
• Flags
– U(up): If this flag is not present, it means
that the router is down.
– G(gateway): Destination is in another
network.
– H(host-specific): Indicates that the entry in
the Network Address field is a host-
specific address.
Flags Contd.
– D(added by redirection): Indicates that the
routing information for this destination has
been added to the host routing table by a
redirection message from ICMP.
– M(modified by redirection): Indicates that
the routing information for this destination
has been modified by a redirection
message from ICMP.
Format of Routing Table
• Reference Count
– Gives the number of users of this route at
the moment.
Format of Routing Table
• Use
– Shows the number of packets transmitted
through this router for the corresponding
destination.
Types of Routing Tables
• Static Routing Table –
– Routes are manually configured by a
network administrator
– Cannot update automatically when there is
a change in the internet
Types of Routing Tables
• Dynamic Routing Table
– Adjusts automatically to changes in
network topology
– Uses one of the dynamic routing protocols
such as RIP
RIP
• Stands for Routing Information
Protocol
• RIP implementation considerations:
– We are dealing with routers and
networks(links)
– Routers have routing tables; networks do
not
RIP Implementation
Considerations Contd.
– The destination in a routing table is a
network.
•This means the first column defines a network
address
– Metric used is very simple; distance
defined as no. of links to reach destination
RIP Implementation
Considerations Contd.
– Infinity is defined as 16
•Which means no route can have more than 15
hops
– Next-node column defines the address of
the router to which the packet is to be sent
to reach its destination.
Router Hardware
• Similarity with a PC:
– A CPU
– A memory
– Ports & interfaces
• Dissimilarity:
– Routers are diskless
Router Motherboard
Router CPU
• 50 MHz CPUs are generally used for
small offices & homes.
• For more powerful purposes,
processors from Motorola, Silicon
Graphics, etc. are used.
Router Memory
• RAM/DRAM
• NVRAM
• Flash Memory
• ROM
RAM/DRAM
• Stands for random access
memory/dynamic random access
memory
• Used by the router’s central processor
to do its work
• Cisco’s smallest router ships with a
minimum of 16MB of DRAM
NVRAM
• Stands for nonvolatile RAM
– retains information after losing power
• stores a copy of the router’s
configuration file
– enables the router to restart in its proper
configuration in case of accidental
shutdown
Flash memory
• Originally developed by Intel
• also nonvolatile
• differs from NVRAM in that it can be
erased and reprogrammed as needed
• used to store one or more copies of the
IOS software
– Helps in upgrading IOS on all routers
ROM
• Used to hold a so-called
bootstrapprogram
– which is a file that can be used to boot to a
minimum configuration state after a
catastrophe
Router Ports
• Port means a physical connection
through which I/O can pass
– a serial port, for example
Router

More Related Content

What's hot

Router configuration
Router configurationRouter configuration
Router configurationChoyonBonik
 
Routers and Routing Configuration
Routers and Routing ConfigurationRouters and Routing Configuration
Routers and Routing Configurationyasir1122
 
Router & functionality
Router & functionalityRouter & functionality
Router & functionalityAmzadKhn
 
Introduction to Router and Routing Basics
Introduction to Router and Routing BasicsIntroduction to Router and Routing Basics
Introduction to Router and Routing BasicsDarwish Ahmad
 
ROUTER PPT
ROUTER PPTROUTER PPT
ROUTER PPTJw Media
 
Basics of Gateway By Naveen Karn
 Basics of Gateway By Naveen Karn Basics of Gateway By Naveen Karn
Basics of Gateway By Naveen KarnNaveen Karn
 
Difference between Routing & Routed Protocol
Difference between Routing & Routed ProtocolDifference between Routing & Routed Protocol
Difference between Routing & Routed ProtocolNetwax Lab
 
1164 Routers
1164 Routers1164 Routers
1164 Routerstechbed
 
Introduction to network switches
Introduction to network switchesIntroduction to network switches
Introduction to network switchesNetProtocol Xpert
 

What's hot (20)

Router and routing
Router  and routingRouter  and routing
Router and routing
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
Presentation on router
Presentation on routerPresentation on router
Presentation on router
 
Router configuration
Router configurationRouter configuration
Router configuration
 
Routers and Routing Configuration
Routers and Routing ConfigurationRouters and Routing Configuration
Routers and Routing Configuration
 
Router & functionality
Router & functionalityRouter & functionality
Router & functionality
 
Introduction to Router and Routing Basics
Introduction to Router and Routing BasicsIntroduction to Router and Routing Basics
Introduction to Router and Routing Basics
 
Introduction to router
Introduction to routerIntroduction to router
Introduction to router
 
ROUTER PPT
ROUTER PPTROUTER PPT
ROUTER PPT
 
Bridge
BridgeBridge
Bridge
 
Basics of Gateway By Naveen Karn
 Basics of Gateway By Naveen Karn Basics of Gateway By Naveen Karn
Basics of Gateway By Naveen Karn
 
Difference between Routing & Routed Protocol
Difference between Routing & Routed ProtocolDifference between Routing & Routed Protocol
Difference between Routing & Routed Protocol
 
1164 Routers
1164 Routers1164 Routers
1164 Routers
 
Introduction to network switches
Introduction to network switchesIntroduction to network switches
Introduction to network switches
 
Hub vs-switch
Hub vs-switchHub vs-switch
Hub vs-switch
 
Bridging in Networking
Bridging in NetworkingBridging in Networking
Bridging in Networking
 
Router
RouterRouter
Router
 
Router and types
Router and types Router and types
Router and types
 
Switch & hub
Switch & hubSwitch & hub
Switch & hub
 
Link State Protocol
Link State ProtocolLink State Protocol
Link State Protocol
 

Similar to Router

Networking and Internetworking Devices
Networking and Internetworking DevicesNetworking and Internetworking Devices
Networking and Internetworking Devices21viveksingh
 
06.CS2005-NetworkLayer-2021_22(1) (1).pptx
06.CS2005-NetworkLayer-2021_22(1) (1).pptx06.CS2005-NetworkLayer-2021_22(1) (1).pptx
06.CS2005-NetworkLayer-2021_22(1) (1).pptxPocketRocketDC
 
Network layer Part 7
Network layer Part 7Network layer Part 7
Network layer Part 7Tutun Juhana
 
Networking devices
Networking devicesNetworking devices
Networking devicesrupinderj
 
ROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxAayushMishra89
 
Et3003 sem2-1314-9 network layers vi (routing protocols)
Et3003 sem2-1314-9 network layers vi (routing protocols)Et3003 sem2-1314-9 network layers vi (routing protocols)
Et3003 sem2-1314-9 network layers vi (routing protocols)Tutun Juhana
 
MOBILE COMPUTING Unit 4.pptx
 MOBILE COMPUTING Unit 4.pptx MOBILE COMPUTING Unit 4.pptx
MOBILE COMPUTING Unit 4.pptxkarthiksmart21
 
Unit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxUnit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxHODElex
 
Unit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxUnit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxHODElex
 
Sept 2017 internetworking
Sept 2017   internetworkingSept 2017   internetworking
Sept 2017 internetworkingshahin raj
 
Networking and data communication IP.ppt
Networking and data communication IP.pptNetworking and data communication IP.ppt
Networking and data communication IP.pptstephen972973
 
Networkingdevices 120505003202-phpapp02
Networkingdevices 120505003202-phpapp02Networkingdevices 120505003202-phpapp02
Networkingdevices 120505003202-phpapp02Aman Jaiswal
 
Routing and IP in Advance Computer Network,Vikram Snehi
Routing and IP in Advance Computer Network,Vikram  SnehiRouting and IP in Advance Computer Network,Vikram  Snehi
Routing and IP in Advance Computer Network,Vikram SnehiMR. VIKRAM SNEHI
 
1 networking devices 2014
1 networking devices 20141 networking devices 2014
1 networking devices 2014Zuhaib Zaroon
 

Similar to Router (20)

computer communications
computer communicationscomputer communications
computer communications
 
Networking and Internetworking Devices
Networking and Internetworking DevicesNetworking and Internetworking Devices
Networking and Internetworking Devices
 
06.CS2005-NetworkLayer-2021_22(1) (1).pptx
06.CS2005-NetworkLayer-2021_22(1) (1).pptx06.CS2005-NetworkLayer-2021_22(1) (1).pptx
06.CS2005-NetworkLayer-2021_22(1) (1).pptx
 
Network layer Part 7
Network layer Part 7Network layer Part 7
Network layer Part 7
 
Networking devices
Networking devicesNetworking devices
Networking devices
 
ROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptx
 
Et3003 sem2-1314-9 network layers vi (routing protocols)
Et3003 sem2-1314-9 network layers vi (routing protocols)Et3003 sem2-1314-9 network layers vi (routing protocols)
Et3003 sem2-1314-9 network layers vi (routing protocols)
 
MOBILE COMPUTING Unit 4.pptx
 MOBILE COMPUTING Unit 4.pptx MOBILE COMPUTING Unit 4.pptx
MOBILE COMPUTING Unit 4.pptx
 
Mod5
Mod5Mod5
Mod5
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
Unit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxUnit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptx
 
Unit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxUnit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptx
 
Network devices
Network devicesNetwork devices
Network devices
 
Sept 2017 internetworking
Sept 2017   internetworkingSept 2017   internetworking
Sept 2017 internetworking
 
Networking and data communication IP.ppt
Networking and data communication IP.pptNetworking and data communication IP.ppt
Networking and data communication IP.ppt
 
Networkingdevices 120505003202-phpapp02
Networkingdevices 120505003202-phpapp02Networkingdevices 120505003202-phpapp02
Networkingdevices 120505003202-phpapp02
 
routing
routingrouting
routing
 
Routing
RoutingRouting
Routing
 
Routing and IP in Advance Computer Network,Vikram Snehi
Routing and IP in Advance Computer Network,Vikram  SnehiRouting and IP in Advance Computer Network,Vikram  Snehi
Routing and IP in Advance Computer Network,Vikram Snehi
 
1 networking devices 2014
1 networking devices 20141 networking devices 2014
1 networking devices 2014
 

Recently uploaded

React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 

Router

  • 2. Router • A router is an electronic device that interconnects two or more computer networks • Works at Layer 3, Network Layer in an intelligent manner • Can connect different network segments, whether they are in the same building or even on the opposite side of the globe
  • 3. Router : Network Layer Interface X MEDIUM X MEDIUM PHYSICAL LAYER PHYSICAL LAYER DATA LINK LAYER DATA LINK LAYER NETWORK LAYER ROUTER NETWORK LAYER
  • 4. Router • Works in LAN, WAN environments • Allows access to resources by selecting the best path • Can interconnect different networks • Changes packet size and format to match the requirements of the destination network
  • 5. Internetworking with a Router IEEE 802.3 Sub-network IEEE 802.5 Sub-network PC-NFS Sub-network Router
  • 6. Devices and Layers PHYSICAL LAYER DATA LINK LAYER NETWORK LAYER Switches Routers Repeaters Switches Layer 1 Layer 2 Layer 3
  • 7. Difference Between Routers, Switches and Hubs • Hubs – Simply provides the mechanical and electrical connections between the nodes • Switches – Examine the data packet for the destination address – Do not alter the data packets • Routers – Examine and alter the data packets – Perform protocol conversion
  • 8. Delivery, Forwarding & Routing • Delivery – Refers to the way a packet is handled by the underlying networks under the control of the network layer.
  • 9. Delivery, Forwarding & Routing • Forwarding – Refers to the way a packet is delivered to the next station.
  • 10. Delivery, Forwarding & Routing • Routing – Refers to the way routing tables are created to help in forwarding.
  • 11. Functions of a Router • Two primary functions: • Determine the 'best path' • Share details of routes with other routers
  • 12. Router has • Routing Table - a database which keeps track of the routes to networks and the associated costs • Routing Protocol - uses a special algorithm to route data across a network eg RIP
  • 13.
  • 14. Format of Routing Table Mask Network Address Next-hop Address Interface Flags Reference Count Use
  • 15. Format of Routing Table • Mask – This field defines the mask applied for the entry.
  • 16. Format of Routing Table • Network Address – Defines the network address to which the packet is finally delivered.
  • 17. Format of Routing Table • Next-hop Address – Defines the address of the next-hop router to which the packet is delivered.
  • 18. Format of Routing Table • Interface – Shows the name of the interface.
  • 19. Format of Routing Table • Flags – U(up): If this flag is not present, it means that the router is down. – G(gateway): Destination is in another network. – H(host-specific): Indicates that the entry in the Network Address field is a host- specific address.
  • 20. Flags Contd. – D(added by redirection): Indicates that the routing information for this destination has been added to the host routing table by a redirection message from ICMP. – M(modified by redirection): Indicates that the routing information for this destination has been modified by a redirection message from ICMP.
  • 21. Format of Routing Table • Reference Count – Gives the number of users of this route at the moment.
  • 22. Format of Routing Table • Use – Shows the number of packets transmitted through this router for the corresponding destination.
  • 23. Types of Routing Tables • Static Routing Table – – Routes are manually configured by a network administrator – Cannot update automatically when there is a change in the internet
  • 24. Types of Routing Tables • Dynamic Routing Table – Adjusts automatically to changes in network topology – Uses one of the dynamic routing protocols such as RIP
  • 25. RIP • Stands for Routing Information Protocol • RIP implementation considerations: – We are dealing with routers and networks(links) – Routers have routing tables; networks do not
  • 26. RIP Implementation Considerations Contd. – The destination in a routing table is a network. •This means the first column defines a network address – Metric used is very simple; distance defined as no. of links to reach destination
  • 27. RIP Implementation Considerations Contd. – Infinity is defined as 16 •Which means no route can have more than 15 hops – Next-node column defines the address of the router to which the packet is to be sent to reach its destination.
  • 28. Router Hardware • Similarity with a PC: – A CPU – A memory – Ports & interfaces • Dissimilarity: – Routers are diskless
  • 30. Router CPU • 50 MHz CPUs are generally used for small offices & homes. • For more powerful purposes, processors from Motorola, Silicon Graphics, etc. are used.
  • 31. Router Memory • RAM/DRAM • NVRAM • Flash Memory • ROM
  • 32. RAM/DRAM • Stands for random access memory/dynamic random access memory • Used by the router’s central processor to do its work • Cisco’s smallest router ships with a minimum of 16MB of DRAM
  • 33. NVRAM • Stands for nonvolatile RAM – retains information after losing power • stores a copy of the router’s configuration file – enables the router to restart in its proper configuration in case of accidental shutdown
  • 34. Flash memory • Originally developed by Intel • also nonvolatile • differs from NVRAM in that it can be erased and reprogrammed as needed • used to store one or more copies of the IOS software – Helps in upgrading IOS on all routers
  • 35. ROM • Used to hold a so-called bootstrapprogram – which is a file that can be used to boot to a minimum configuration state after a catastrophe
  • 36. Router Ports • Port means a physical connection through which I/O can pass – a serial port, for example