+ All Categories
Home > Documents > The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Date post: 17-Dec-2015
Category:
Upload: laurence-lee
View: 215 times
Download: 2 times
Share this document with a friend
Popular Tags:
26
The need for BGP AfNOG Workshops Philip Smith
Transcript
Page 1: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

The need for BGP

AfNOG Workshops

Philip Smith

Page 2: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

“Keeping Local Traffic Local”

Page 3: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

IGP Interior Gateway Protocol Within a network/autonomous

system Carries information about internal

infrastructure prefixes Examples – OSPF, ISIS, EIGRP

Page 4: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Why do we need an IGP? ISP Backbone Scaling

Hierarchy Modular infrastructure Limiting scope of failure Healing of faults with fast

convergence

Page 5: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

EGP Exterior Gateway Protocol Used to convey routing information

between networks/ASes De-coupled from the IGP Current EGP is BGP4

Page 6: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Why Do We Need an EGP? Scaling to large network

Hierarchy Limit scope of failure

Define administrative boundary Policy

Control reachability of prefixes

Page 7: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Interior vs. Exterior Routing Protocols Interior

Automatic neighbour discovery

Generally trust your IGP routers

Routes go to all IGP routers

Binds routers in an AS together

Exterior Specifically

configured peers Connecting with

outside networks Set administrative

boundaries Binds ASes

together

Page 8: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Interior vs. Exterior Routing Protocols Interior

Carries ISP infrastructure addresses only

ISPs aim to keep IGPs small for scalability and efficiency

Exterior Carries customer

prefixes Carries Internet

prefixes EGPs are

independent of ISP network topology

Page 9: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Overview Typical small ISP Direct connections with other ISP’s Routing protocol requirements Scaling things up

Page 10: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Typical Small ISP Local network May have multiple POPs Line to Internet

International line providing transit connectivity

Very, very expensive

Page 11: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Typical Small ISP

Upstream ISP

Small ISP

Static and/or default routes

Static routes

Page 12: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Other ISP in Country Similar setup Traffic between you and them goes

over Your expensive line Their expensive line

Traffic can be significant Same language/culture Traffic between your and their

customers

Page 13: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Other ISP in Country

Upstream ISP

Small ISP

Small ISP

Africa

Europe

Page 14: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Bringing down costs Local (national) links much

cheaper than international ones Might be interesting to get direct

link between you and them Saving traffic on expensive lines

better performance, cheaper No need to send traffic to other ISP

down the street via New York!

Page 15: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Keeping Local Traffic Local

Upstream ISP

Small ISP

Small ISP

Africa

Europe

Page 16: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Terminology: peer and transit

Peer: getting connectivity to network of other ISP … and just that network, no other networks Frequently at zero cost (zero-settlement)

Transit: getting connectivity through network of other ISP to other networks … getting connectivity to rest of world (or part

thereof) Usually at cost (customer-provider

relationship)

Page 17: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Large ISP in Country Large ISP multi-homes to two or

more upstream providers multiple connections to achieve:

redundancy connection diversity increased speeds

Page 18: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Large ISP in CountryUpstream

ISP

Upstream ISP

Africa

Europe

USA

Large ISP

Page 19: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Making it work Just getting direct line is not enough Need to work out how to do routing

Need to get local traffic between ISP’s/peers

Need to make sure the peer ISP doesn’t use us for transit

Need to control what networks to announce, what network announcements to accept to upstreams and peers

Page 20: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Not using static routes ip route <their_network> <their_gateway> Does not scale

The more external networks you connect to, the more complex and harder to maintain this becomes

No failover in case of link failure Have to manually reconfigure Often needs assistance of upstream too

Page 21: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Not using IGP (OSPF) Using an IGP gives serious operational

consequences: If the other ISP has a routing problem, you

will have problems too Instability in their backbone becomes an

instability in your backbone Leaked prefixes into their backbone become

leakages into your backbone Won’t scale… Etc…

Very hard to filter routes so that we don’t inadvertently give transit

Page 22: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Using BGP instead BGP = Border Gateway Protocol BGP is an Exterior Gateway Protocol Focus on routing policy, not topology BGP can make ‘groups’ of networks

(Autonomous Systems) Good route filtering capabilities Ability to isolate from other’s

problems

Page 23: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Autonomous Systems Autonomous systems is a misnomer

Nothing to do with freedom, independence, …

Just a handle for a group of networks that is under the same administrative control

Uniquely identified by an AS number 16 bit integer Assigned by registries, just like IP addresses

Page 24: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Autonomous System(AS)... Identified by ‘AS number’

example: AS16907 (ISPKenya)

Public & Private AS numbers Public (assigned by registries): 1-26623 Private: 64512 – 65534 AS 0 and 65535 are reserved

Typical applications: Service provider Multi-homed customers Anyone needing policy discrimination

Page 25: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Using AS numbers BGP can filter on AS numbers

Get all networks of the other ISP using one handle

Include future new networks without having to change routing filters

AS number for new network will be same Can use AS numbers in filters with regular

expressions BGP actually does routing computation on IP

numbers

Page 26: The need for BGP AfNOG Workshops Philip Smith. “Keeping Local Traffic Local”

Summary: Why do I need BGP? Network scaling Multi-homing – connecting to

multiple providers upstream providers local networks – regional peering to

get local traffic Policy discrimination

controlling how traffic flows


Recommended