Hierarchical Routing EECS 228 Abhay Parekh - - PowerPoint PPT Presentation

hierarchical routing
SMART_READER_LITE
LIVE PREVIEW

Hierarchical Routing EECS 228 Abhay Parekh - - PowerPoint PPT Presentation

Hierarchical Routing EECS 228 Abhay Parekh parekh@eecs.berkeley.edu Hierarchical Routing Is a natural way for routing 5 7 to scale 4 4 8 RIP Size 6 6 Network Administration Governance 11 2 2 10 Exploits address


slide-1
SLIDE 1

Hierarchical Routing

EECS 228 Abhay Parekh parekh@eecs.berkeley.edu

slide-2
SLIDE 2

October 16, 2002 Abhay K. Parekh: Topics in Routing 2

Hierarchical Routing

Is a natural way for routing

to scale

Size Network Administration Governance

Exploits address

aggregation and allocation

Allows multiple metrics at

different levels of the hierarchy

6 4 3 2 13

2 4 3 6 13

7 8 5 1 12 10 11

Inter Domain Routing

OSPF RIP IGRP

slide-3
SLIDE 3

October 16, 2002 Abhay K. Parekh: Topics in Routing 3

Why is hierarchical routing important?

The internet is an interconnection of unequal

networks

Interconnection arrangements drive

the competitive landscape the robustness of the network end-to-end performance

Interconnection is central to all large networks

Voice Data Wireless Cable

slide-4
SLIDE 4

October 16, 2002 Abhay K. Parekh: Topics in Routing 4

Why are there so many players?

www.thelist.com

How many ISP’s in the 415 area code?

That start with A-C: about 200… Just DSL that start with A-C: about 80

In the telephone network

How many independent telephone companies in

1894-1902 in the US?

3039 commercial companies, 979 co-operatives

By controlling interconnection Bell got rid of them Interconnection is now regulated (CLECs)

slide-5
SLIDE 5

October 16, 2002 Abhay K. Parekh: Topics in Routing 5

What is an Interconnection

Access to sites reachable via routing and transport facilities But could also include:

Wire

  • SLA + Lease

Space

  • Size
  • Space

Access to OSS Dispute Resolution Process Term

slide-6
SLIDE 6

October 16, 2002 Abhay K. Parekh: Topics in Routing 6

Interconnections occur at many levels

6 4 3 2 13

A B C 2 4 3 6 13

7 8 5 1 12 10 11

Inter Domain Routing

OSPF RIP IGRP

slide-7
SLIDE 7

October 16, 2002 Abhay K. Parekh: Topics in Routing 7

Interconnections occur at many levels

6 4 3 2 13

A B C 2 4 3 6 13

7 8 5 1 12 10 11

OSPF RIP IGRP

A.1 D.1 D.2 D.3

slide-8
SLIDE 8

October 16, 2002 Abhay K. Parekh: Topics in Routing 8

Interconnections occur at many levels

6 4 3 2 13

A B C 2 4 3 6 13

7 8 5 1 12 10 11

OSPF RIP IGRP

A.1 D.1 D.2 D.3 E.1 E.2 E.3

slide-9
SLIDE 9

October 16, 2002 Abhay K. Parekh: Topics in Routing 9

Interconnections occur at many levels

6 4 3 2 13

A B C 2 4 3 6 13

7 8 5 1 12 10 11

OSPF RIP IGRP

A.1 D.1 D.2 D.3 E.1 E.2 E.3

slide-10
SLIDE 10

October 16, 2002 Abhay K. Parekh: Topics in Routing 10

Interconnections occur at many levels

13

13

7 5 1 12 11

A.1 D.1 E.2 D.2 D.3 E.1 E.3

D E

slide-11
SLIDE 11

October 16, 2002 Abhay K. Parekh: Topics in Routing 11

Examples of overlaid interconnecting networks

IP over ATM Multicast over IP DSL over POTS IP over CATV Etc., Each involves routing

slide-12
SLIDE 12

October 16, 2002 Abhay K. Parekh: Topics in Routing 12

Two ways to interconnect IP Networks…

Peering

The business relationship whereby ISPs

reciprocally provide to each other connectivity to each others’ transit customers

Transit

The business relationship whereby one ISP

provides (usually sells) access to all destinations in it’s routing table

William B. Norton, “Internet Service Providers and Peering”

slide-13
SLIDE 13

October 16, 2002 Abhay K. Parekh: Topics in Routing 13

Peering and Transit

Figures from William B. Norton, “Internet Service Providers and Peering”

slide-14
SLIDE 14

October 16, 2002 Abhay K. Parekh: Topics in Routing 14

Benefits of Transit v/s Peering

William B. Norton, “Internet Service Providers and Peering”

slide-15
SLIDE 15

October 16, 2002 Abhay K. Parekh: Topics in Routing 15

Moving from Transit to Peering

William B. Norton, “Internet Service Providers and Peering”

slide-16
SLIDE 16

October 16, 2002 Abhay K. Parekh: Topics in Routing 16

Peering Attributes

Bandwidth Pricing: Everything you can think of

Traffic may be asymmetric (web servers) Clout may vary Some existing and suggested methods

  • Zero Charge (Bill and Keep)
  • Average Cost
  • Fully distributed cost pricing
  • Ramsey Pricing
  • Wholesale Pricing
  • Marginal Cost Pricing

Bandwidth is undifferentiated (can’t peer for video quality bw) Connection Method

Direct Connection Internet Exchange

slide-17
SLIDE 17

October 16, 2002 Abhay K. Parekh: Topics in Routing 17

Internet Infrastructure provides undifferentiated service

  • More capacity is thrown at the undifferentiated network, and emphasis

continues on “speeding up the internet”, but this just speeds up existing applications

  • No future for internet media or other bandwidth intensive applications
  • No future for significant high speed access penetration
  • These are huge lost opportunities!!

Undifferentiated Network here to stay? Undifferentiated Network here to stay?

No Business Model Cop-out No way to charge, peer or deliver high speed/ quality sensitive applications

slide-18
SLIDE 18

October 16, 2002 Abhay K. Parekh: Topics in Routing 18

Name of the Game: Reachabilty

BGP is the way by which ISPs co-operate on

reachability

Routing efficiency and performance is important, but

not essential

E.g. Path Vector uses many messages

Power of BGP is that it can express many different

ISP routing policies without exposing internal network statistics such as load and topology

Tremendous growth in the last 10 years…

slide-19
SLIDE 19

October 16, 2002 Abhay K. Parekh: Topics in Routing 19

slide-20
SLIDE 20

October 16, 2002 Abhay K. Parekh: Topics in Routing 20

Skitter Legend

Plot the AS based on polar co-ordinates (r,θ):

r = 1- log (As degree +1 / Max Degree+1)

Higher the degree lower the radius

Θ = longitude of AS headquarters

slide-21
SLIDE 21

October 16, 2002 Abhay K. Parekh: Topics in Routing 21

4/1-4/16 2002

  • 1,224,733 IP addresses,
  • 2,093,194 IP links,
  • 932,000 destinations,
  • 70% of globally routable network prefixes;
  • 10,999 ASes (84% of ASes),
  • 34,209 peering sessions
slide-22
SLIDE 22

October 16, 2002 Abhay K. Parekh: Topics in Routing 22

slide-23
SLIDE 23

October 16, 2002 Abhay K. Parekh: Topics in Routing 23

BGP

Runs over TCP port 179 One Border Routers can be involved in multiple

sessions

Border Routers

from the same AS speak IBGP from different AS’s speak EBGP

EBGP and IBGP are essentially the same protocol

IBGP can only propagate routes it has learned directly from

its EBGP neighbors

All routers in the same AS form an IBGP mesh Important to keep IBGP and EBGP in sync

slide-24
SLIDE 24

October 16, 2002 Abhay K. Parekh: Topics in Routing 24

Four message types

Open: Session establishment id exchange Notification: exception driven information Keep Alive: soft state Update: path vector information

slide-25
SLIDE 25

October 16, 2002 Abhay K. Parekh: Topics in Routing 25

Update Message

Withdrawn Routes: No

longer valid

Attributes: Path Vector,

weights and other information about each of the destinations

<length,prefix>: CIDR

notation for the destination

Infeasible Route Length Withdrawn Routes (variable) Total Path Attribute Len Path Attributes (variable) Length|Prefix <length,prefix> . .

slide-26
SLIDE 26

October 16, 2002 Abhay K. Parekh: Topics in Routing 26

Classless Inter-domain Routing Addresses

  • 32 bits in the address divided into 4 8-bit parts, A.B.C.D
  • Each part takes value 0,1,2,…,255
  • E.g. 128.23.9.0
  • Specify a range of addresses by a prefix: X/Y
  • The prefix common to the entire range is the first Y bits of X.
  • X: The first address in the range has prefix X
  • Y: 232-Y addresses in the range
  • Example 128.5.10/23
  • Common prefix is 23 bits: 01000000 00000101 0000101
  • Number of addresses: 29 = 512
  • Prefix aggregation
  • 128.5.10/24 and 128.5.11/24 gives 128.5.10/23
  • Addresses allocated by central authority: IANA
  • Routers match to longest prefix
slide-27
SLIDE 27

October 16, 2002 Abhay K. Parekh: Topics in Routing 27

Advertising a prefix

One router telling another one

The prefix IP address of the next hop Path list of AS’s that the announcement has

passed through

Since announcement propagates from destination, this

yields the path

No refresh messages required The announcing router will follow the path

itself

slide-28
SLIDE 28

October 16, 2002 Abhay K. Parekh: Topics in Routing 28

Example

6 4 3 2 13

A B C 2 4 3 6 13

7 8 5 1 12 10 11

OSPF RIP IGRP b via A

b

IBGP IBGP

BGP Session

a c

Announce a

slide-29
SLIDE 29

October 16, 2002 Abhay K. Parekh: Topics in Routing 29

Multihoming

Two or more

interdomain connections between the same AS’s

Two or more

interdomain connections between a customer and ISPs

6 4 3 2

A B 2 4 3 6

7 8 5 1

RIP IGRP

IBGP IBGP

a

slide-30
SLIDE 30

October 16, 2002 Abhay K. Parekh: Topics in Routing 30

Multiexit Discriminators (MEDs)

  • Way for one AS to influence

routing decisions of another AS

  • AS_A wants to tell AS_B that

network a is closer to router 2 than to router 3

  • Router 2 advertises a smaller

MED value for a than Router 3

  • AS_B prefers the path to a that

does not go through 6 and 3

  • AS_B does not propagate

MEDS from AS_A any further

6 4 3 2

A B 2 4 3 6

7 8 5 1

RIP IGRP

IBGP IBGP

a

slide-31
SLIDE 31

October 16, 2002 Abhay K. Parekh: Topics in Routing 31

Local Preference (for IBGP)

Similar to MEDs but rather than being part of

the EBGP announcement, is a way for IBGP within an AS to prefer one path over another for the same prefix

Example

Choose the slower path when the prefix is to a

competitor’s network

slide-32
SLIDE 32

October 16, 2002 Abhay K. Parekh: Topics in Routing 32

Multihoming

Advantages

Redundancy Load Sharing Lowest Cost Routing Lowest Latency Routing

Disadvantages

Aggregation (if one customer has two ISPs)

slide-33
SLIDE 33

October 16, 2002 Abhay K. Parekh: Topics in Routing 33

BGP Policies

Multiple ways to implement a “policy”

Decide not propagate advertisements

I’m not carrying your traffic

Use MEDs to improve performance Decide not to consider MEDs but use shortest hop

Hot potato routing

Prepend own AS# multiple times to fool BGP into

not thinking AS further away

Many others…

slide-34
SLIDE 34

October 16, 2002 Abhay K. Parekh: Topics in Routing 34

BGP and Performance

BGP isn’t designed for policy routing not performance

Hot Potato routing is most common but suboptimal Performance isn’t the greatest

20% of internet paths inflated by at least 5 router hops Very susceptible to router misconfiguration

Blackholes: announce a route you cannot reach

  • October 1997 one router brought down the internet for 2 hours

Flood update messages (don’t store routes, but keep asking your

neighbors to clue you in). 3-5 million useless withdrawals!

In principle, BGP could diverge

Various solutions proposed to limit the set of allowable policies Focuses on avoiding “policy cycles”

slide-35
SLIDE 35

October 16, 2002 Abhay K. Parekh: Topics in Routing 35

BGP Updates (Labovitz)

Most updates were bogus withdrawals This was to a large extent due to bad

implementations

slide-36
SLIDE 36

October 16, 2002 Abhay K. Parekh: Topics in Routing 36

Non-Withdrawal Updates (Labovitz)

AADup is the advertising of a route that was

just withdrawn

slide-37
SLIDE 37

October 16, 2002 Abhay K. Parekh: Topics in Routing 37

BGP Bouncing Problem (Labovitz et al)

Initially direct route

preferred by each node

R 1 2

slide-38
SLIDE 38

October 16, 2002 Abhay K. Parekh: Topics in Routing 38

BGP Bouncing Problem (Labovitz et al)

Initially direct route

preferred by each node

R has a fault so

sends withdrawal messages to each

  • f its neighbors

R 1 2

slide-39
SLIDE 39

October 16, 2002 Abhay K. Parekh: Topics in Routing 39

BGP Bouncing Problem (Labovitz et al)

Initially direct route

preferred by each node

R has a fault so

sends withdrawal messages to each

  • f its neighbors

R 1 2

slide-40
SLIDE 40

October 16, 2002 Abhay K. Parekh: Topics in Routing 40

BGP Bouncing Problem (Labovitz et al)

Initially direct route

preferred by each node

R has a fault so

sends withdrawal messages to each

  • f its neighbors

R 1 2

slide-41
SLIDE 41

October 16, 2002 Abhay K. Parekh: Topics in Routing 41

BGP Bouncing Problem (Labovitz et al)

Initially direct route

preferred by each node

R has a fault so

sends withdrawal messages to each

  • f its neighbors

Nodes choose

clockwise 2 hop paths

R 1 2

slide-42
SLIDE 42

October 16, 2002 Abhay K. Parekh: Topics in Routing 42

BGP Bouncing Problem (Labovitz et al)

Initially direct route

preferred by each node

R has a fault so sends

withdrawal messages to each of its neighbors

Nodes choose clockwise

2 hop paths

Detecting loops they

choose anticlockwise 2 hop paths

R 1 2

slide-43
SLIDE 43

October 16, 2002 Abhay K. Parekh: Topics in Routing 43

BGP Bouncing Problem (Labovitz et al)

Initially direct route

preferred by each node

R has a fault so sends

withdrawal messages to each of its neighbors

Nodes choose clockwise

2 hop paths

Detecting loops they

choose anticlockwise 2 hop paths

R 1 2

slide-44
SLIDE 44

October 16, 2002 Abhay K. Parekh: Topics in Routing 44

BGP Bouncing Problem (Labovitz et al)

Initially direct route

preferred by each node

R has a fault so sends

withdrawal messages to each of its neighbors

Nodes choose clockwise

2 hop paths

Detecting loops they

choose anticlockwise 2 hop paths

And so on… N! steps, and even more

messages

R 1 2

slide-45
SLIDE 45

October 16, 2002 Abhay K. Parekh: Topics in Routing 45

Other problems

Most router messages bogus Routing table oscillations worse under path

vector when compared to distance vector

Timer interactions with router vendor

implementations create pathologies

Network Administrator configuration errors

can create catastrophic outages throughout the network

slide-46
SLIDE 46

October 16, 2002 Abhay K. Parekh: Topics in Routing 46

Precautions

Route Damping

Don’t believe updates unless they make sense Improves oscillations but adds to convergence time

More state

Keep history of received and sent messages Improves situation but quite expensive

Router Configuration Restrictions

Save Path Vector Protocols (Griffin et al) Human error potential is still considerable

Alternatives

Detour Routing Feedback based approaches Hard to change the installed base!

slide-47
SLIDE 47

October 16, 2002 Abhay K. Parekh: Topics in Routing 47

Conclusions

Hierarchical Routing is a core component of most

large networks

Internet interconnection is complex and multi-

faceted

The ability for the network to expand its range of

services is tied to the modes of peering

Internet routing is becoming less hierarchical and

more driven by policy than performance

BGP stability is important and a work in progress

slide-48
SLIDE 48

October 16, 2002 Abhay K. Parekh: Topics in Routing 48

References

Peering

Norton: “Internet Service Providers and Peering” Eli Noam: “Interconnecting the Network of Networks”, MIT

Press, 2001.

BGP: Basics

BGP Tutorial by Nina Taft, SprintLabs Halabi, “Internet Routing Architectures”, Cisco Press 1997

BGP: Instability

Labovitz et al (see readings) Griffin et al (see readings)