MOD 5 - Network Layer - Control Plane SDN Flashcards
In the Network layer, what are the 2 main functions?
1) DATA PLANE = Forwarding : move packets from router’s input to the appropriate router output
2) CONTROL PLANE = Routing : determine route taken by packets from source to destination
*note: every router has a control and data plane!
What are the 2 ways to structure the network control plane (route taken by packets from src to dst)
1) per-router control (traditional) = Individual routing algorithm components in each and every router interact with each other in control plane to compute forwarding tables
2) logically centralized control (software defined networking SDN) = A distinct (typically remote) CONTROLLER interacts with local control agents (CAs) in routers to compute forwarding tables.
In this approach, a central entity makes decisions and controls the behavior of the entire network.
Benefit: The controller can develop a consistent view of the network state for calculating shortest paths and can implement application aware routing.
*see pics in notes
what is the goal of routing protocols
To determine “good” paths (routes), from sending hosts to receiving hosts through a network of routers.
*Path = sequence of routers that packets will traverse through from given initial source to given final destination host.
*“Good” conditions = 1)lowest cost, 2) fastest, 3) least congested paths
What is the purpose of routing algorithms?
To find the least costly path between routers.
Link state algorithms vs Distance vector algorithms?
Link state algos = CENTRALIZED, global info, All routers have complete topology & link cost info. Represented by vector of link cost to neighbors ex: A{B:2, C:3} *A links to B and C
“tell the world about the neighbors”
Distance vector algos = DECENTRALIZED, only neighbor info, Router knows physically- connected neighbors & link costs to neighbors.
Iterative process of computation, exchange of info with neighbors.
Represented by vector of distances to all nodes ex: A{A:0, B:2, C:3, D:4, E:10} *all distances from A
“tell the neighbors about the world”
What is flooding and what’s its purpose? When do we initiate it? What are some challenges and their solutions?
Flooding = router sends link-state information out its neighboring links, then next router does same.. Until the last router.
Purpose = to ensure all router have the latest link-state info
Challenges & solutions = packet-loss & OoO arrival -> fix with ACKs and retransmission, Seq numbers, and TTL for each packet (remaining #hops a packet do)
Initiate when : there’s a topology change (link or node change/failure), there is a configuration change (link cost change), periodically (to refresh, link-state and prevent corrupt data)
Distance vector algorithm uses which equation? What’s the the equation?
Bellman-Ford equation
dx(y) = cost of least-cost path from x to y
= minv {c(x,v) + dv(y)}
x = origin, y= dest, v=all neighbours/links of origin x
Minv = taken over all neighbors v of x
c(x,v) = cost to neighbor v / link x-v cost
dv(y) = cost from neighbor v to destination y
In DV algorithms, what is the count to infinity problem?
Scenario: The problem arises when there is a change in the network topology (ex: link failure). In DV algorithms, when a router detects a change, it updates its routing table and informs its neighbors of the change. Then the neighbors update their tables and sent the information to their neighbors…etc.
Issue with this: It takes time for these updates to propagate through the network. During this propagation time, routers may make decisions based on outdated information, potentially leading to incorrect routing decisions (ex: infinite loop)
Compare Link state and Distance vector algos.
Message complexity
LS =exchange between all nodes (a lot) O(n^2)
DV = exchange between neighbors only O(n of neighbours)
Convergence
LS = O(n^2), slow
DV = convergence time varies
Possible routing loops
Count-to-infinity problem
Robustness
LS = Better!
Node can advertise incorrect LINK cost
Each node computes only its own table
DV =
Node can advertise incorrect PATH cost
Each nodes table is passed on to other nodes = errors can propagate through the network
What is a AS region (Autonomous system)?
Region of grouped/aggregated routers
What is intra-AS routing?
Routing among hosts/routers in the SAME AS network/domain
Rules within the AS: all routers within the AS must run the same intra-domain routing protocol
*see drawing if needed
What is Inter-AS routing?
Routing amongst different AS’s network/domain
UNIQUE protocol = BGP
*see drawing if needed
What are gateway routers in AS’s?
Router at the edge of a AS that has a link to another router in another AS.
They also perform inter-domain routing (routing from AS to AS) and intra domain routing (routing only between the same AS)
*see drawing if needed
Name common Intra-AS routing/ interior gateway protocols (IGP)
RIP, Routing Information Protocol (classic DV)
OSPF, Open Shortest Path First (classic link-state routing)
IS-IS (identical to OSPF)
IGRP
EIGRP
In intra-AS routing, OSPF is uses ___ routing algo and RIP uses ____routing algo. What is the goal of of these intradomain routing algos?
OSPF = link state routing (dijkstra)
RIP = DV, distance vector routing
The goal of an intradomain routing algorithm such as link-state or distance-vector routing is to enable routers within the same autonomous system to efficiently exchange information about network topology and calculate optimal paths for forwarding traffic in that system.
OSPF allows for summarising distances to nets in its own area
BGP allows subnets to advertise their existence to the rest of the Internet.
What is BGP, iBGP and eBGP (interdomain)?
= Border Gateway Protocol, provides each AS a means to
1) Allows subnet to advertise its existence to rest of internet
2) Determine “good” routes to other networks based on reachability information and policy
2 types:
1) External BGP (eBGP) = obtain subnet reachability information from neighboring AS’s. Gateway router to gateway router connection.
2) Internal BGP (iBGP) = propagate reachability information to all AS-internal routers. Router to router connection in same AS (to det best GWR connection).