1routing 1
1routing 1
Type of Routes
Static Routes
Default Routes
Default Gateway
Backup Routes
Load-Balancing
Dynamic Routes
Routers
L3 device
Separate L2 Broadcast domain
Route traffics between subnets (Forward traffic from one network to
another)
Select best routes and forward traffic
Routing:
Is the process of forwarding packets from network to network based on
destination L3 address
Routing Table
Routing Table is a table that contains entries for all networks known by the
router. The router will use its routing table to determine which way to
forward traffic
Routers achieve its job using two process
Routing which is about building maps and giving directions
Forwarding which is about moving packets between interfaces according to
the provided directions.
Routers has RIB and FIB tables for routing and forwarding processes
correspondingly
RIB vs FIB
Connected Networks/Interfaces
Default Gateway
Next Hop
Control Plane and Data Plane
Router Planes
Control Plane
controls how data is forwarded
Data Plane
Forward the datagram from one interface (ingress) to another (egress)
Router | Data Flow Methods
Process switching
Relays on processor and therefore very slow (works for light traffics)
Fast Switching
Use caching to improve the packet forwarding performance
Cisco Express Forwarding (CEF)
Provide better performance
Data Flow with Process Switching
Data Flow with Fast Switching
Data Flow with Cisco Express Forwarding
Routing Terminology
Default route indicate the next-hop the packet is sent to if the router has
no routing information for its destination.
Example: R2(config)# ip route 0.0.0.0 0.0.0.0 10.10.10.1
0.0.0.0 with netmask of 0.0.0.0 indicates all networks, 10.10.10.1 is the decided
default next-hop address
Default route is used in Routers
Default gateway is similar to default route in function but it is used in Hosts
Matching with FIB Table
Example:
FIB table has entries for the destination network addresses of
Destination address perform
0.0.0.0/0, 10.8.0.0/16, 10.9.0.0/16, 10.9.1.0/24, 10.20.0.0/16.
“AND” operation with every
One packet received with a destination address of 10.9.1.2. netmask in FIB table
What FIB entry will be used for forwarding traffic?
Answer:
The resulted addresses are
compared with FIB entries.
10.9.1.2
Mask result
The corresponding FIB entry
0.0.0.0/0
with the longest match will be
FIB Table Entry with longest 10.9.0.0/16 used for forwarding
match result
10.9.1.0/24
Dynamic Routing Protocols
Functions Purpose
Share information between routers Discover remote networks
Update routing table when topology changes Maintain up to date routing information
Determine best path to a destination Find best path to destinations
Routing Protocols Classification
RIPv1 IGRP
Routing
Protocols Advanced DV
RIPv2 Routing Protocol EIGRP OSPF IS-IS BGP
Distance Vector vs. Link State
Distance-Vector Routing Protocols
Link Failure
Yes Received DV is
Recalculates its distance vector
different?
Solutions:
Route poisoning
Sends route with infinity cost (16 in RIP)
Split Horizon
blocks information about routes from being advertised by
a router on any interface from which that information originated.
Link State Routing Protocols
Links’ State
Link 1 Link 2 Link 3 Link 4
Network 10.1.0.0/16 10.2.0.0/16 10.3.0.0/16 10.4.0.0/16
IP 10.1.0.1 10.2.0.1 10.3.0.1 10.4.0.1
Network Type Ethernet Serial Serial Serial
Link Cost 2 20 5 20
Neighbors None R2 R3 R4
Link-State | Step 2:
Discover Neighbors
Link State Database is used to find shortest path and add it to the routing table
Link-State | Event-Driven Updates
Hop count
Bandwidth
Cost
Delay
Load
Reliability
Best Path Selection Metrics
If AD and metric of two routes are similar then the router will load balance
between the two routes.
Redistribution
Summarization
DVR | RIP
Corp#config t
Corp(config)#router rip
Corp(config-router)#network 10.0.0.0 Connected networks
Corp(config-router)#network 172.16.0.0 to be advertised
Corp(config-router)#version 2
Corp(config-router)#no auto-summary Disable auto summarization
Convergence