Network Layer: Control Plane 2 Flashcards
OSPF vs BGP
OSPF: intra, inside an area
BGP: inter, between areas
BGP
BGP
- Border Gateway Protocol
- De-facto inter-AS routing protocol (subnets must all have same protocol between each other)
- Allows subnet to advertise its existence and destinations it can reach
- Provides ASs with eBGP and iBGP
BGP
eBGP
- External
- Allows AS to obtain subnet reachability info from neighboring ASs
BGP
iBGP
- Internal
- Allows AS to propagate reachabilityto all AS-internal routers
BGP
Where is eBGP and iBGP ran?
Gateway Routers: iBGP and eBGP
Internal Routers: iBGP
(no routers run only eBGP)
BGP
BGP Session
- Two BGP routers exchange BGP messages over semi-permanent TCP connection
- Advertising paths to different destination networks
BGP
BGP Advertised Route
Prefix + Attributes
Prefix: destination being advertised
Attributes: ASPATH (list of ASs through which prefix advertisement is passed), NEXTHOP (indicates specific internal-AS router to next-hop AS)
BGP
Policy-Based Routing
- Gateway receiving route advertisment uses import policy to accept/decline path
- AS policy also determines whether to advertise path to other neighboring ASs
BGP
BGP Path Advertisement
- AS policy might choose to not advertise path
- Gateway router may learn about multiple paths, chooses the best-cost path
- Gateway router only advertises best-cost path to internal routers
BGP
BGP Message Types
Exchanged between peers over TCP connection
1. OPEN
2. UPDATE
3. KEEPALIVE
4. NOTIFICATION
BGP
BGP Messages: OPEN
Opens TCP connection to remote BGP peer and authenticates sending BGP peer (transport layer)
BGP
BGP Messages: UPDATE
Advertises new path (or withdraws old path)
BGP
BGP Messages: KEEPALIVE
Keeps connection alive in absence of UPDATES; also ACKs OPEN request
BGP
BGP Messages: NOTIFICATION
Reports errors in previous messages; also used to close connection
BGP
Why different Intra and Inter routing?
Policy:
* Inter-AS: admin wants control over how its traffic is routed, who routes traffic through its network
* Intra-AS: single admin, so policy is less of an issue
Scale: hierarchical routing saves table size, reduced update traffic
Performance:
* Intra-AS: can focus on performance
* Inter-AS: policy dominates over performance