Router
MLS
Multilayer switch
- works at multiples layers of the OSI modem
how a router works
routing table
- keeps track of destination ip’s, subnet masks, gateways, and interfaces
routing table destination LAN IP
a defined network id. every id directly connected to one of the routers ports is always listed here
routing table gateway
the ip address for the next hop router (where the packets go)
routing table interface
tells the router which of its ports to use
zero in a routing table
means anything
default route in routing table
tells the router exactly what to do with eveyr incoming packet unless another line in the routing table gives another route
view routing table windows CLI
“route print” or “netstat -r”
view routing table in Linux or Mac OS?
netstat -r
metric
relative value that defines the “cost” of using a route
- router will always use the route with the lowest metric
NAT
network address translation
- replaces the source ip address of a computer with the source ip address from the outside router interface on outgoing packets
SNAT
Static NAT
- maps a single routable (not private) IP address to a single machine
DNAT
Dynamic NAT
- many computers can share a pool of routable IP addresses that number fewer than the computers
dynamic routing protocols
routers ability to update their routes dynamically
hop
each time a packet goes through a router
common criteria for metrics
hop count - number of routers packet passes through
bandwidth -
delay - latency
cost -
MTU - Maximum Transmission Unit - largest frame route can handle
distance vector
routing protocols that calculate the total cost to get to a particular network id and compares that cost to all the other routes, then chooses the route with lowest cost
convergence
the updating of the routing tablesfor all the routers has completed
also called steady state
RIP
Routing Information Protocol
RIPv2
Routing Information Protocol v2
Autonomous System
one or more networks that are governed by a single dynamic routing protocol within that AS
BGP
Border Gateway Protocol