Top Banner
Router
37
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Router

Router

Page 2: 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

Page 3: Router

Router : Network Layer Interface

X MEDIUM X MEDIUM

PHYSICAL LAYER

PHYSICALLAYER

DATA LINKLAYER

DATA LINKLAYER

NETWORKLAYER

ROUTERNETWORK

LAYER

Page 4: Router

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

Page 5: Router

Internetworking with a Router

IEEE 802.3Sub-network IEEE 802.5

Sub-network

PC-NFSSub-network

Router

Page 6: Router

Devices and Layers

PHYSICAL LAYER

DATA LINKLAYER

NETWORKLAYER

Switches

Routers

Repeaters

Sw

itch

es

Layer 1

Layer 2

Layer 3

Page 7: Router

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

Page 8: Router

Delivery, Forwarding & Routing

• Delivery– Refers to the way a packet is handled

by the underlying networks under the control of the network layer.

Page 9: Router

Delivery, Forwarding & Routing

• Forwarding– Refers to the way a packet is

delivered to the next station.

Page 10: Router

Delivery, Forwarding & Routing

• Routing– Refers to the way routing tables are

created to help in forwarding.

Page 11: Router

Functions of a Router

• Two primary functions: • Determine the 'best path' • Share details of routes

with other routers

Page 12: Router

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

Page 13: Router
Page 14: Router

Format of Routing Table

Mask Network Address

Next-hop Address

Interface

Flags

Reference Count

Use

Page 15: Router

Format of Routing Table

• Mask– This field defines the mask applied for

the entry.

Page 16: Router

Format of Routing Table

• Network Address– Defines the network address to which

the packet is finally delivered.

Page 17: Router

Format of Routing Table

• Next-hop Address– Defines the address of the next-hop

router to which the packet is delivered.

Page 18: Router

Format of Routing Table

• Interface– Shows the name of the interface.

Page 19: Router

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.

Page 20: Router

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.

Page 21: Router

Format of Routing Table

• Reference Count– Gives the number of users of this

route at the moment.

Page 22: Router

Format of Routing Table

• Use– Shows the number of packets

transmitted through this router for the corresponding destination.

Page 23: Router

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

Page 24: Router

Types of Routing Tables

• Dynamic Routing Table– Adjusts automatically to changes in

network topology– Uses one of the dynamic routing

protocols such as RIP

Page 25: Router

RIP

• Stands for Routing Information Protocol

• RIP implementation considerations:– We are dealing with routers and

networks(links)– Routers have routing tables; networks

do not

Page 26: Router

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

Page 27: Router

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.

Page 28: Router

Router Hardware

• Similarity with a PC:– A CPU– A memory– Ports & interfaces

• Dissimilarity:– Routers are diskless

Page 29: Router

Router Motherboard

Page 30: Router

Router CPU

• 50 MHz CPUs are generally used for small offices & homes.

• For more powerful purposes, processors from Motorola, Silicon Graphics, etc. are used.

Page 31: Router

Router Memory

• RAM/DRAM• NVRAM• Flash Memory• ROM

Page 32: Router

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

Page 33: Router

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

Page 34: Router

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

Page 35: Router

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

Page 36: Router

Router Ports

• Port means a physical connection through which I/O can pass– a serial port, for example

Page 37: Router