Routing & Switching Concepts
Routing & Switching Concepts
AIM
OBJECTIVES
ASSUMED KNOWLEDGE
Functions
Internal Architecture
Basic Switch Configurations
Virtual Local Area Networks (VLANs)
Basic VLAN configurations
THE ROUTER
A router is a device that selects a path and forwards data packets across
computer networks. Routers perform the data "traffic directing" functions
on the Internet. A router is a microprocessor-controlled device that is
connected to two or more data lines from different networks (serial
ports). When a data packet comes in on one of the lines, the router reads
the address information on the packet to determine its ultimate
destination (destination network address). Then, using information in its
routing table (which maintains a record of the routes to various network
destinations) it directs the packet to the next network on its journey. A
data packet is typically passed from router to router through the networks
of the Internet until it gets to its destination computer. Routers also
perform other tasks such as translating the data transmission protocol of
the packet to the appropriate protocol of the next network, and
preventing unauthorized access to a network by the use of a firewall.
ROUTER CLASSIFICATION
Access Routers
Access routers are small office/home models located at customer
premises and typically optimized for low cost.
Distribution Routers
Core Routers
ROUTER INTERFACES
ROUTER COMPONENTS
Flash Memory
The ROM in a router contains the bootstrap program that searches for a
suitable system image when the router is switched on. When the router is
switched on, the ROM performs a Power-on self-test (POST) to check the
hardware. The ROM also provides a monitor mode that can be used for
recovering from a crisis. The information present in the ROM cannot be
erased.
RAM, which is much faster to read from and write to than other kinds of
storage, provides caching, buffers network packets, and stores routing
table information. RAM contains the running configuration file, which is
the current configuration file. All configuration changes are saved to this
file unless you explicitly save the changes to the NVRAM. Information in
RAM requires a constant power source to be sustained. When the router is
powered down, or there is a power cycle, data stored in RAM ceases to
exist.
STATIC ROUTING
DYNAMIC ROUTING
ROUTING METRICS
Routers use various metrics and calculations to determine the best route
for a packet to reach its final network destination. Each routing protocol
uses its own algorithm with varying weights to determine the best
possible path.
The algorithm determines the metric for routes throughout the network
and in most instances, the smaller the metric value the better the route is
likely to be. Smaller metrics indicate faster, better and more trustworthy
routes. Higher metrics are the opposite and reflect routes that are not
positive for any of the 3 attributes listed above.
The following are metrics used in determining the best path for a routing
protocol:
Bandwidth – Throughput speed in bits per second
RIP is a dynamic routing protocol used in local and wide area networks. I It
uses the distance-vector routing algorithm and was first defined in 1988.
RIP uses the Bellman-Ford algorithm and employs the hop count as its
only routing metric. It uses classful routing (does not includes subnet
mask in the updates and does not support Variable Length
Subnet Masking (VLSM)) and each RIP router sends routing updates as
broadcast messages every 30 seconds. RIP works with only 15 hop
counts (0-14).If there are more than 15 hops between two routers it fails
to send data packets to the destination address (Routes with hop counts
greater than 15 are unreachable).
Link-state Routing
network with information about what other nodes it can connect to, and
each node then independently assembles this information into a map.
Using this map, each router then independently determines the least-cost
path from itself to every other node using a standard shortest paths
algorithm such as Dijkstra's algorithm. The result is a tree rooted at the
current node such that the path through the tree from the root to any
other node is the least-cost path to that node. This tree then serves to
construct the routing table, which specifies the best next hop to get from
the current node to any other node. Open Shortest Path First (OSPF),
Intermediate System-to-Intermediate (IS-IS) and Enhanced Interior
Gateway Routing Protocol (EIGRP) are link-state routing protocols.
The Open Shortest Path First (OSPF) protocol is a link state protocol that
handles routing for IP traffic and is an open standard (not proprietary) and
it will run on most routers independent of make. Open Shortest Path First
(OSPF) uses the Shortest Path First (SPF) algorithm, developed by Dijkstra,
to provide a loop-free topology. Open Shortest Path First (OSPF) provides
fast convergence with triggered, incremental updates via Link State
Advertisements (LSAs). Open Shortest Path First (OSPF) is a classless
protocol (includes subnet mask in its routing updates and allows
for a hierarchical design with VLSM and route summarization).
The main disadvantages of Open Shortest Path First (OSPF) are that it
requires more memory to hold the adjacency (list of OSPF neighbours),
topology (a link state database containing all of the routers and their
routes), and routing tables, requires extra CPU processing to run the SPF
algorithm and is a complex routing protocol.
Open Shortest Path First (OSPF) uses cost as the value of metric and uses
a reference bandwidth of 100 Mbps for cost calculation. The formula to
calculate the cost is reference bandwidth divided by interface bandwidth.
For example, in the case of Ethernet, it is 100 Mbps / 10 Mbps = 10.
Router ID
Each router in an OSPF network needs a unique ID. The ID is used to
provide a unique identity to the OSPF router. The Router ID is derived in
two ways:
• The highest IP address on its loopback interfaces (this is a logical
interface on a router) or
• The highest IP address on its active interfaces
Loopback Interface
A loopback interface is a logical, virtual interface on a router. By default,
the router doesn’t have any loopback interfaces, but they can easily be
created. These interfaces are treated as physical interfaces on a router
and can be assigned IP addresses to them in this way:
Router(Config)#int loopback 2
Router(Config-if)#ip address 200.0.0.10 255.255.255.0
Internal router
An Internal Router is a router that has only OSPF neighbour relationships
with routers in the same area.
Backbone router
Backbone Routers are part of the OSPF backbone. This includes all area
border routers and also routers connecting different areas.