Routing Flashcards
Routing Fundamentals
Traffic is routed to flow between subnets
Each subnet is its own broadcast domain
Routers are the layer 3 devices that separate broadcast domains, but multilayer switches are also used
Routing Decisions
Layer 3 to Layer 2 Mapping
Routers use ARP caches to map an IP to a given MAC
Make packet-forwarding decisions based upon their internal routing tables
Routing Tables
Table kept by the router to help determine which route entry is the best fit for the network
A route entry with the longest prefix is the most specific network
(10.1.1.0/24 is more specific than 10.0.0.0/8)
Sources of Routing Information
Directly Connected Routes
Learned by physical connection between routers
Static Routes
Manually configured by an admin
Default 0.0.0.0/0 is a special case
(If I don’t know where, then send out default static route)
Dynamic Routing Protocols
Learned by exchanging info between routers
Routing Loops: Split Horizon
Prevents a route learned on one interface from being advertised back out of that same interface
Routing Loops: Poison Reverse
Causes a route received on one interface to be advertised back out of that same interface with a metric considered to be too large
Routing Protocols (Interior/Exterior)
IGP (Interior Gateway Protocol)
Operate within an autonomous system
EGP (Exterior Gateway Protocol)
Operated between autonomous systems
Router Advertisement: Distance Vector
Sends full copy of routing table to its directly connected neighbors at regular intervals
Slow convergence time
(Time it takes for all routers to update their routing tables in response to a topology change)
Hold-down timers speeds up convergence
(Prevents updates for a specific period of time)
Uses hop count as a metric
Router Advertisement: Link State
Requires all routers to know about the paths that all other routers can reach in the network
Info is flooded throughout the link-state domain to ensure routers have synchronized info
Faster convergence time & uses cost or other factors as a metric
Each router constructs its own relative SPT (shortest-path tree) with itself as the root for all known routes in the network
RIP
Routing Information Protocol
IGP
Distance-vector protocol using hop count
15 max hops (16 = infinite)
Oldest dynamic routing protocol
Updates every 30 seconds
Easy to configure
Runs over UDP
OSPF
Open Shortest Path First
IGP
Link-state protocol using cost
Cost is based on link speed between routers
Supports VLSM
IS-IS
Intermediate System to Intermediate System
IGP
Link-state protocol using cost
Cost is based on link speed between routers
Just like OSPF, just not widely adopted
EIGRP
Enhanced Interior Gateway Routing Protocol
IGP
Advanced distance-vector protocol using bandwidth & delay making it a hybrid of distance-vector & link-state
Cisco-proprietary (Cisco-only networks)
BGP
Border Gateway Protocol
EGP
Path vector using the number of autonomous system hops instead of router hops
Widespread utilization
Runs the backbone of the internet
Does not converge quickly
Route Believability
If a network is using more than one routing protocol, how does it choose which one to use?
Some routing protocols are considered more believable than others, so routers use an index of believability called AD (administrative distance)
Lower the AD, the more believable
(Refer to chart on study guide)
Routing Metrics
If a routing protocol knows multiple paths, it determines the best path via metrics
Metrics = values assigned to a route
Calculated differently depending on protocol
Ex: hop count, bandwidth, reliability, delay, & more
NAT
Network Address Translation
Used to conserve the limited IPv4 supply
Translates private IPs to public IPs for routing over public networks
PAT
Port Address Translation
Utilizes port numbers instead of IPs for address translation
Many-to-one translation
Multiple private IPs share one public IP
Common in small networks
DNAT
Dynamic NAT
IP addresses automatically assigned from a pool
Many-to-many translations
Once finished, puts IP address back in pool
SNAT
Static NAT
IP addresses manually assigned
One-to-one translations
NAT IP Address Types
Inside Local
Private IP referencing inside device
Inside Global
Public IP referencing inside device
Outside Local
Private IP referencing outside device
Outside Global
Public IP referencing outside device
Refer to video course for more detailed explanation
Multicast Routing
Multicast sender sends traffic to a D Class IP, known as a multicast group
Goal: send traffic only to the devices that want it
Two protocols: IGMP, PIM
IGMP
Internet Group Management Protocol
Used by clients & routers to let routers know which interfaces have multicast receivers
Used by clients to join a multicast group
IGMPv1 - Client requests to join group & is asked if they want to remain every 60 secs
IGMPv2 - Client can send leave message to exit group
IGMPv3 - Client can request multicast from only specific server.
SSM (Source Specific Multicast)
Allows multiple video streams into single multicast
PIM
Protocol Independent Multicast
Routes multicast traffic between multicast-enabled routers
Multicast routing protocol forms a multicast distribution tree
PIM-DM
PIM Dense Mode
Uses periodic flood & prune behavior to form optimal distribution tree
Causes a negative performance impact on network
Rarely used in modern networks
PIM-SM
PIM Sparse Mode
Initially uses a shared distribution tree, which may be suboptimal
Eventually creates an optimal distribution tree through SPT switchover