network layer Flashcards
Network layer addresses:
How to get from A to B
How to connect to multiple networks
Hot to manage network resources (congestion, quality of service)
the router
device that enables new features through new protocols
Who performs store-and-forwarding switching?
router
routing
finding a path through a network
important properties of routing
correctness
simplicity
robustness
stability
fairness
efficiency
routing tables
tells us for each packet on which link to forward it
distance vector routing
send distance vector to neighbours
update routing table based on incoming distance vectors
good news: propagation
problem: count to infinity when machine fails
link state routing
does not suffer from the count to infinity problem, but more is complex
replaces distance vectors in ARPANET 1979
uses a shortest path algorithm
link state routing steps
- routers only send packets with information about their direct neighbours
- these packets are flooded over the network
- routers build an overview of the network using these packets and run a shortest path algorithm
What can go wrong with flooding link state packets?
hierarchical routing
reducing routing table sizes for large newtorks
inter-netwroking
getting packets to their destinations across multiple networks
challenges for sending packets end-to-end over multiple networks (inter-networking)
technological:
different protocols
different maximum packet sizes
different QoS guarantees
political:
different costs
privacy concern
competition/disputes
inter-networking with autonomous systems
routing inside an Autonomous System:
intradomain routing, uses Interior Gateway Protocol, ex: OSPF
routing between Autonomous Systems:
interdomain routing, uses an Exterior Gateway Protocol, ex: BGP
OSPF
Open Shortest Path First
routing within an autonomous system
uses a form of link state routing
build a graph representation of the network
uses a hierarchy called areas to manage large networks
areas in OSPF
all areas are connected to Area 0 (backbone)
are border router exchanges summarised routing info between areas
boundary routers connect to another AS; uses both interior and exterior gateway protocol
routers only know topology of the area they are in
for destinations not in area: through backbone
BGP
Border Gateway Protocol
routing between large independent networks
-supports arbitrary policies put in place by ISPs, companies, organisations, etc. autonomous systems connect at IXPs
stub networks do not need BGP: only one way to send outgoing packets
AS1 provides transit service
uses a path vector protocol (form of distance vector routing)
routing policies of BGP
peer above transit: routes learned from peers are preferred over routes learned from transit providers
hot potato routing: nearest exit point from the network as quickly as possible
shortest AS path: the path with the fewest Autonomous System (AS) hops is preferred
connecting networks with different protocols
if source and destination networks use different protocols, they cannot communicate
tunneling
if an intermediate networks uses different protocols, they can communicate by tunneling
used to route IPv6 packets over IPv4 networks
routers support multiple types of networks
data wrapped in header form multiple networking layers
network layer packet used as payload for other network-layer packet
packet fragmentation
packet size can be limited by hardware, software, protocols, law, etc.
transparent fragmentation