Week 4 - Network Layer Flashcards
What is routing?
the propagation of connectivity informaiton in order to build routing tables. note routing is never done upon packet receipt, but rather the routing tables know the paths apriori. Equivalent to people who put traffic signs on roads.
What is the routing plane/forwarding plane?
What are intra/inter domain protocols?
How does Dijkstra’s best path algo work?
What’s the difference between distance vector algorithms and link-state algorithms?
Distance vector (Bellman Ford Equation):
1. Distribution of aggregate information
2. Distribution only to neighbours
3. Example algos: RIP Protocol
Link-State (Dijkstras equation):
1. Distibution of informaiton on local links (every router knows about every link in the network)
2. Distribution to every node
3. Example algos: OSPF protocol
What is RIP?
Routing Information Protocol
- Application layer protocol running over UDP
How it works?
- A router running RIP broadcasts a routing message every 30 seconds.
- Each update contains a pair <network, distance> (where distance usually number of hops)
- All routers send equivalent messages and update if shorter path (note no change is made if hte distance is the same)
- If a router does not receive an update after 18- seconds the route is deleted.
- Max distance for RIP is 16
What issue arises with the RIP protocol and how is it resolved?
What is the OSPF protocol?
Open Shortest Path First = Flooding + Dijkstra
- Router maintains descriptions of state of local links as a directed graph
- Transmits updated state information to all routers it knows about using flooding (sends a message about each link to all neighbours, they replicate that on avoiding loops).
- Router receiving update must acknowledge (lots of traffic generated)
- Each router then calculates what is the shortest path to reach all the destinations, in turn calculating which link to be used for every network.
What are link costs?
The cost of each hop in each direction (routing metric)
OSPF allows for control over metric schemes, such as Minize monetary cost (tos 2), maximise reliability (TOS4).
Note:
Once a routing table is created, it can be simplified as we can say (for a given input, shortest path to a given output is always on this link, so the table can be optimised (flattened)).
What is an area?
Areas make large internets more manageable. Configured as a backbone + multiple areas.
Area - collections of contiguous networks and hosts + routers connected to any included network.
- Each area runs a separate copy of link state algo
- Topological databse + graph of only that area + broadcast of links
- Reduces traffic
- Intra area routing relies solely on local link state info
Backbone - contiguous collection of networks not contained in any area, their attached routers and routers belonging to multiple areas.
What are OSPF packet types?
Hello: used in neighbour discovery
Database description: defines set of link state information present in each routers database
Link state request
Link state update
Link state acknowledgement
What is IS-IS?
Similar to OSPF except:
1. IS-IS does not support point to multipoint links
2. IS-IS does not support virtual links
3. IS-IS outer can belong to only one area
How is OSPF Weight calculated?
There is no standard, usually use 10^8/(interface bandwidth)
What is BGP?
Border Gateway Protocol (BGP). OSPF/RIP discuss transfer of packets in routes inside an Autonomous System (AS). AS can be a big company (e.g. IBM), or an ISP etc.. BGP is how data gets transmitted between AS.
Messages are sent over TCP.
Three functional procedures:
1. Neighbour Acquisition
2. Neighbour Reachability
3. Network Reachability
BGP Messages
1. Open - start a neighbour relationship with another router
2. Update - Transmit information about single route, or list multiple routes to be withdrawn
3. Keepalive - acknowledge open messages, or periodically confirm neighbour relationship
4. Notification - send when error condition detected.
When we talk about BGP we usually talk about eBGP. iBGP is the part of BGP concerned with transmitting external connectivity information INSIDE the AS (note its not a routing protocol).
How do BGP and CIDR operate together?
CIDR allows BGP to transmit much less information due to aggregation of routes.