Module 4: IP Routing - I Flashcards
flat vs. hierarchical addressing
flat:
- ethernet addressing
hierarchical:
- provide layers or a hierarchy to the address (phone number)
- ip addressing uses hierarchical
MAC and IP address functionality
- the MAC address generally remains fixed and follows the network device, but the IP address changes as the network device moves from one network to another
what does network mask define?
which bits are used to describe the network part
Describe addressing for IP addresses.
Classful Addressing vs. Classless
Classful:
simple
tends to be wasteful
uses the same subnet mask for each subnet, and all the subnets have the same number of addresses in them
Classless:
refers to VLSM
benefits: allows the use of multiple mask lengths, breaks up an address block into smaller custom blocks, provides more flexibility in network design.
Internet Routing:
What is the first level? autonomous systems (AS’s)
AS’s run an intra domain routing protocol (eg DV (Routing Information Protocol), LS (Open Shortest Path First)
Between AS’s runs inter-domain routing protocols (Border Gateway Routing)
today: BGP-4
Intra-domain routing protocols is based on what?
unreliable datagram delivery
How does link state work?
Open shortest-path first (OSPF)
Each network periodically floods immediate reachability information to other routers
Fast convergence, but high communication and computation overhead
How does distance vector work?
Routing information protocol (RIP) based on Bellman-Ford
Each neighbor periodically exchange reachability information to its neighbors
Minimal communication overhead, but it takes long to converge, i.e., in proportion to the maximum path length
What is flooding?
Every node broadcasts information to every node
Be careful not to do anything redundant or make cycles!
Why is DV more efficient than link state?
Because we don’t have to flood the network like in LS. Minimal communication.
Even though DV has less communication overhead than LS, what is the downside?
Takes longer to converge, i.e., in proportion to the maximum path length
Might not converge at all (infinite loops)
What is the goal of routing?
determine a “good”path through the network from source to destination
good = the shortest path usually
Describe the network modeled as a graph
routers -> nodes
link -> edges
(edge costs = delays, congestion, etc)
T/F
BGP is an intra domain protocol used to connect one AS to another
False
It is an INTER-domain routing protocol
Describe link state flooding
- each router maintains link state database and periodically sends link state packets (LSP) to neighbor
- LSP = router, neighbors, costs
-each router forwards LSPs not already in its database on all ports except where received - each LSP will travel over the same link at most once in each direction
- flooding is fast, and can be made reliable with link-layer acknowledgements and periodic re-flooding
- two types of updates: triggered and periodic
- when link/router fails need to remove all data using sequence numbers to determine new data, send a new LSP with cost infinity to signal a link down, LSP have TTL (soft-state)