Lesson 4 - Routing Flashcards

1
Q

Nuts and bolts that make routing possible

A

Naming, addressing, forwarding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The internet is a collection of

A

10s of thousands of autonomous systems (AS’s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

AS

A
  • networks such as Comcast, Google, Georgia Tech

- ISP, content provider, campus network, any other independently operating network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Internet routing involves 2 distinct types

A
  • Intradomain (traffic routed inside any single AS)
  • Interdomain (traffic routed between AS’s)
  • Business relationships make interdomain routing so complicated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Topology in AS consists of

A
  • Nodes (“POPs”/points of presence). Typically located in dense population center to be close to POP’s of other providers for easier interconnection, and close to other customers for cheaper backhaul to customers
  • Edges: connect nodes. Constrainted by fiber paths, which for the sake of convenience typically parallel major transportation routes such as railroads and highways.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Abilene

A

Single AS topology - research network in the US

-GT is an AS that connects at the Atlanta POP of the Abilene network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Southern Crossroads

A

Internet exchange point where Abilene connects to other universities in southeast near Atlanta

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Routing is

A

The process by which nodes discover where to forward traffic so that it reaches a certain node.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

2 types of intradomain routing

A
  1. Distance vector
    - Routers compute paths based on shortest path available, using Bellman-Ford algorithm. When costs decrease, the network converges quickly, but one problem is when failures happen, bad news can travel slowly.
  2. Link state
    - Prevailing alternative, used in most operational networks today
    - Each node distributes a network map to every other node in the network. Then, each node performs a shortest path computation between itself and all other nodes in the network.
    - Often called the Dijkstra shortest path routing algorithm
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Routing Information Protocol (RIP)

A
  • Example of distance vector
  • First version defined in 1982
  • Infinity in count-to-infinity was 16
  • Split horizon rule = tell all neighbors except for one that caused the update
  • When a router or link fails in RIP, things can take minutes to stabilize
  • Slow convergence and count to infinity = protocol designers look to alternatives
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

2 common link state routing protocols

A
  • Open shortest paths first (OSPF)
  • Intermediate System - Intermediate System (IS-IS). In recent years, has gained increasing use in large ISP’s, more commonly used link state routing protocol in large transit networks today.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

1 problem with link state routing

A

Scale. Complexity of a link state routing protocol grows as n^3 where n is # of nodes in the network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Coping with scale using hierarchy

A
  • OSPF has Areas (backbone is Area 0, and each area not in the backbone has an Area 0 router)
  • IS-IS has Levels
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Each AS performs in

A

Its own best interest (economically, performance-objectives, etc.) and yet must cooperate to provide global connectivity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

BGP

A
  • Border Gateway Protocol

- Each AS advertises reachability to some destination by sending route advertisements or announcements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

3 most important attributes of route advertisements

A
  • Destination prefix (e.g. IP prefix for Georgia Tech)
  • Next Hop (IP address of the router you need to send traffic to for that destination) - typically the IP address for the first router in the neighboring network
  • AS path: sequence of AS #’s that describe the route to the destination. Nothing more than a sequence of AS’s that the route traversed to reach the recipient AS.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Origin AS

A

The last AS along the AS path. Called this because it’s the AS that originated the advertisements for this IP prefix.

18
Q

EBGP

A

External BGP

BGP consisting of route advertisements solely between border routers of adjacent AS’s

19
Q

iBGP

A

Internal BGP
Used to transmit routes inside an AS for external destinations
Not to be confused with IGP

20
Q

IGP

A

Routes inside an AS to internal destinations

21
Q

BGP Route Selection Process

A
  • Router in an AS might learn multiple routes to the same destination. It must select the single best route. This selection among multiple alternatives is BGP route selection process.
  • Prefer router with higher “local preference” value
22
Q

Local preference

A

Numerical value that a network operator in local AS can assign to a particular route. It’s purely local, so it’s dropped in eBGP route advertisements, but allows local operator ability to explicitly state that one route should be preferred over the other

  • If equally high local preference values, BGP prefers shortest AS path length
  • Control how traffic leaves its AS en route to a destination
  • Useful for configuring primary and backup routes
23
Q

Multi-Exit Discriminator

A

“MED”

  • Value allows one AS to specify that one exit point in the network is more preferred than another
  • Lower MED values are preferred
  • Only applies when comparing routes advertised from same AS
  • Not inherently comparable across routes advertised from different AS’s
24
Q

Hot potato routing

A

AS sends traffic to the neighboring AS via a path that traverses as little of its own network as possible
-Tie breaker in BGP route selection process is arbitrary, but typically operators prefer to use the route advertisement from the router with the lowest router ID, which is typically the neighboring router’s IP address

25
Q

BGP Community

A

Sometimes attached to a route by AS to affect how neighboring AS sets local preference. A community is nothing more than a fancy jargon word for a tag on a route. e.g. if AS 4 wants incoming traffic to route through AS 3 rather than 2, it can advertise BGP routes with “primary” and “backup”.
-Requires prior agreement typically

26
Q

All things being equal, routers in an AS will select the BGP route with the shortest ___ path cost to the next hop, resulting in hot potato routing

A

iGP

27
Q

MED _____ hot potato routing behavior

A

overrides

  • typically not used in conventional business relationships
  • sometimes used when a transit provider peers with a content provider. “Yes I’ll peer with you but it’s your responsibility to transport across the country.” Don’t want to provide free transit if both providers have routers on both coasts.
28
Q

Interdomain Routing Business Models - It’s all about

A

Routing money

29
Q

2 types of business relationships in the internet

A
  • Customer/provider: money flows from customer to provider regardless of which direction traffic flows
  • Peering: AS can exchange traffic with another AS free of charge. Sometimes also called Settlement-free Peering
  • Most preferable route is through customer, 2nd through peer, 3rd through provider.
30
Q

Filtering/export decisions

A
  1. Routes learned from customer - readvertise to everyone (otherwise only advertise to customers)
  2. Routes learned from provider only advertised to customers, never other providers
  3. Routes from peers only advertised to other customers.

If every AS in the internet followed the following rules exactly, then routing stability is guaranteed. Turns out, it’s not guaranteed

31
Q

Safety

A

BGP correctness property derived by Tim Griffin.
-If AS’s follow the ranking and export rules, safety is guaranteed, but there are various times where those rules are violated. Such examples include business relationships such as regional peering and paid peering – can occasionally cause these conditions to be violated.

32
Q

To this day, is BGP guaranteed to be stable in practice?

A

No. Many common practices result in the potential for oscillation to occur.

33
Q

Route selection

A

Where to forward packets

34
Q

Route propagation

A

Who to export routes to

35
Q

Usually you have ___ ISP per AS

A

1

36
Q

Why would an ISP choose to operate multiple As’s?

A

For business reasions – it would provide more autonomy to administrators of an ISP’s backbones in the United States and Europe

37
Q

BGP Decision Process

A
  1. Highest LocalPref (controlled by local AS)
  2. Lowest AS path length (controlled by neighbor AS)
  3. Lowest origin type (controlled by neither)
  4. Lowest MED (controlled by neighbor AS)
  5. eBGP-learned over iBGP-learned (controlled by neither)
  6. Lowest IGP cost to border router (controlled by local AS)
  7. Lowest router ID (to break ties) (controlled by neither)
38
Q

RIP is which type of routing?

A

Intradomain

39
Q

Link State is which type of routing?

A

Intradomain

40
Q

Where is NAT implemented?

A
  • Routers and Firewalls mostly. Switches operate at Layer 2 of the OSI (and TCP/IP) models. They work with MAC addresses and aren’t responsible for routing packets.
  • Since NAT modifies at the very least the IP addresses (and in the case of the type of NAT studied in this course, TCP and UDP port numbers), it requires a device like a router or firewall capable of operating on those packets.
  • The exception to this is a multilayer switch, but you can think of a multilayer switch as a switch that is also a router.