57
BGP Peering Strategy & Data _________________________________ Andy Davidson [email protected] CTO @ Asteroid International APRICOT 2017, HCMC, Vietnam Director @ LONAP , IXLeeds, Euro-IX March 2017 BGP Traffic Engineering – version 2.0 (2016)

BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

  • Upload
    doanh

  • View
    221

  • Download
    4

Embed Size (px)

Citation preview

Page 1: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

BGPPeeringStrategy&Data

[email protected]

CTO@AsteroidInternationalAPRICOT2017,HCMC,VietnamDirector@LONAP,IXLeeds,Euro-IX March2017

BGPTrafficEngineering– version2.0(2016)

Page 2: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 2

WhydoTrafficEngineering?

Manageyourcapacitydemands

Ensureservicequality

RecoverfromFailures

Manageservice/circuitcosts

HandletrafficgrowthJamesCridland http://www.flickr.com/photos/jamescridland/

Page 3: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 3

Complexity

Lifestartsoutverysimply,“sendtraffictopeersifpossible,thentransitproviders”

Butwhataboutwhenyournetworkgrows?

Whataboutwhenyourtrafficgrows?

Whatifyouaddmorecities/POPs/exchanges?Caisey Hussain Bisson -http://www.flickr.com/people/maisonbisson/

Page 4: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Realexamples

• Circuitswithcostdifference>$100/Mbit• Regionalnetworks- poorlocalpeering• Circuitfailurecausingcongestion• Changingcustomerdemand/behaviour– Increasedqualityexpectation– Newhighbandwidthservicessuchasvideo

28/02/2017 BGPTrafficEngineering,AndyDavidson 4

Page 5: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

InternalnetworkTE

• Simple comparedwithInterdomain TE

• Youadministratebothsides– Youknowtheprice ofallpaths– TheIGPknowsthecapacity ofallpaths– IGPprotocolsletyoumapprice,capacitytoshaperoutingusingcost.

28/02/2017 BGPTrafficEngineering,AndyDavidson 5

Page 6: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Inter-domainTE

• YoudoNOTcontrolbothsides– Pathvectorprotocolshidemetric,capacity,cost– SimplicityofBGPprotocolimposeslimitations– Volumeoftrafficmatters,not#ofroutes

• However,largevolumeoftrafficisusuallywithasmallnumberofotherASNs

28/02/2017 BGPTrafficEngineering,AndyDavidson 6

Page 7: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Youneeddata

28/02/2017 BGPTrafficEngineering,AndyDavidson 7

AS-StatsManuelKasperhttps://neon1.net/as-stats/

..Butmoreonthislater

Page 8: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Netflow

• Export informationaboutpacketsroutedthroughyournetwork

• Normallysampled• SenttoacollectoroverUDP• Avarietyofcommercialandopen-sourcetoolssortanddisplaytheseflowrecords.

28/02/2017 BGPTrafficEngineering,AndyDavidson 8

Page 9: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

DifferentFlowprotocols

• Netflow – DesignedbyCiscoin‘90s,publishedasastandard(v9isRFC3954andsupportsIPv6)

• IPFIX(RFC5101)BasedonNetflow 9,2008• sFlow – NiceprotocolbutincompatiblewithNetflow,typicallyimplementedonL2switch.

• Jflow – EssentiallyNetflow onJunipers

28/02/2017 BGPTrafficEngineering,AndyDavidson 9

Page 10: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Otherwaystogetdata

• Logfileanalysis– Usefulbeforeyouhaveanetwork,forworkingoutthebenefitofbuildinganetwork/peering.

– Bestfor‘singleservice’networks• DNSprovidershaveDNSlogswithtime&IP• Webprovidershaveweblogswithtime&IP• Hostedemailprovidershavemaillogs…

28/02/2017 BGPTrafficEngineering,AndyDavidson 10

Page 11: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 11

IPAddress Timeanddate AmountofTraffic

Page 12: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Datatellsyou

• Yourtrafficdirection–Mainlyinbound–Mainlyoutbound– Balanced

• Yourtoptrafficoriginatorsordestinations

28/02/2017 BGPTrafficEngineering,AndyDavidson 12

Page 13: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

As-stats

• https://neon1.net/as-stats/

• Opensource• Quicktosetup,simpletouse• Resourceintensive

28/02/2017 BGPTrafficEngineering,AndyDavidson 13

Page 14: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 14

Whoaremykeypeers?

(orpotentialpeers)

Toporiginatorsoftraffictome,topconsumersofmycontent

Chartcolour relatestoaninterfaceontheedgeofmynetwork

Page 15: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 15

Historicaldata

Newpeeringadded,trafficgrowth!=$$$$$formynetwork!

Bonusplease!

Page 16: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 16

Footballstarts

Footballends

Videocdn

SocialNetwork

Page 17: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Inmon sflow-rt

• http://www.sflow-rt.com/download.php

• Producesrealtime trafficgraphs• “Whatisthesituationrightnow”• Usefultocheckpeeringconfig hastakeneffect• Alsousefulinabusemitigation

28/02/2017 BGPTrafficEngineering,AndyDavidson 17

Page 18: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Realtime aggregatedata

28/02/2017 BGPTrafficEngineering,AndyDavidson 18

Page 19: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Realtime transitanalysis

28/02/2017 BGPTrafficEngineering,AndyDavidson 19

Page 20: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

ExportfromSflow-RT

• RESTful exportintologstash/influxdb/grafanaforhistoricaldata

• http://www.slideshare.net/pphaal/network-visibility-and-control-using-industry-standard-sflow-telemetry

28/02/2017 BGPTrafficEngineering,AndyDavidson 20

Page 21: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

pmacctd

• http://www.pmacct.net

• OpenSource• Highperformance,highscale,powerful• Mostflexible,mostconfigurationrequired

• Collectorà ownreports

28/02/2017 BGPTrafficEngineering,AndyDavidson 21

Page 22: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

1)Configureacollectorsfacctd_port: 2100sfacctd_as: sflowsfacctd_renormalize: true!plugins: print[testprint]!aggregate[testprint]: in_iface, out_iface, proto, peer_src_ip, peer_dst_ip, peer_dst_as, peer_src_as, src_as, dst_as!print_output_file[testprint]: /path/to/spool/blabla-$peer_src_ip-%Y%m%d-%H%M.txtprint_output[testprint]: csvprint_output_separator[testprint]: ;print_refresh_time[testprint]: 60print_history[testprint]: 1mprint_history_roundoff[testprint]: m

28/02/2017 BGPTrafficEngineering,AndyDavidson 22

UsetheASNdatafromtherouterifitexists,noneedtosetupBGPflowexport

Page 23: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

2)GetareportSRC_AS;DST_AS;PEER_SRC_AS;PEER_DST_AS;PEER_SRC_IP;PEER_DST_IP;IN_IFACE;OUT_IFACE;PROTOCOL;PACKETS;BYTES41230;224;41230;2603;x.x.x.253;x.x.x.246;3;4;tcp;2048;15155241230;15169;41230;15169;x.x.x.253;x.x.x.246;3;4;tcp;10240;88064041230;50247;41230;24724;x.x.x.253;x.x.x.246;3;4;tcp;2048;16793641230;9269;41230;1273;x.x.x.253;x.x.x.237;3;3;tcp;2048;13516841230;3356;41230;1273;x.x.x.253;x.x.x.237;3;3;tcp;32768;237568041230;209;41230;1273;x.x.x.253;x.x.x.237;3;3;udp;2048;294092820940;0;20940;0;x.x.x.253;x.x.x.246;3;4;tcp;43008;65458176

28/02/2017 BGPTrafficEngineering,AndyDavidson 23

RedlinerepresentsasingleflowwithGoogleonbehalfofauser

Page 24: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Keepinghistoricaldataplugins: mysql[5mins], mysql[hourly]

sql_optimize_clauses: truesql_dont_try_update: truesql_multi_values: 1024000

sql_history_roundoff[5mins]: msql_history[5mins]: 5msql_refresh_time[5mins]: 300sql_table[5mins]: acct_bgp_5mins

sql_history_roundoff[hourly]: hsql_history[hourly]: 1hsql_refresh_time[hourly]: 3600sql_table[hourly]: acct_bgp_1hr

plugin_buffer_size: 10240plugin_pipe_size: 1024000aggregate: tag, src_as, dst_as, peer_src_as, peer_dst_as, peer_src_ip,

peer_dst_ip, local_pref, as_path

28/02/2017 BGPTrafficEngineering,AndyDavidson 24

Page 25: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 25

Examplebypmacct authorPaoloLucente

• Exportintoreports,webinterface,spreadsheet• Multiplebackendssupported,includingtimeseriesdatabases• Veryflexibleapproachbutneedsmoresetuptime

Page 26: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Kentik

• https://www.kentik.com

• Hostedsolution• Zeroconfiguration,zeroequipmentneeded• PointNetflow attheircollectorandreportsfollow

28/02/2017 BGPTrafficEngineering,AndyDavidson 26

Page 27: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

TrafficbySourceASN

28/02/2017 BGPTrafficEngineering,AndyDavidson 27

Page 28: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Breakdownbyregion(US)

28/02/2017 BGPTrafficEngineering,AndyDavidson 28

Page 29: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Topflowsperinterface

28/02/2017 BGPTrafficEngineering,AndyDavidson 29

Page 30: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Outboundvs Inbound• Outboundheavynetworks– Somewhateasierlife

• Inboundheavynetworks– Youmusttrick theBestPathSelectionmethodsofnetworks sendingyoutraffic.

– Their config changewillmoveyour traffic.

28/02/2017 BGPTrafficEngineering,AndyDavidson 30

Page 31: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

OutboundHeavyTrafficEngineering

• BGPBestPathSelectionAlgorithm• Trafficengineeringisabout‘tricking’thisprocess• Affectstrafficinoutbounddirection– LocalPreference– ASPATHlength– LowestOriginType– LowestMED– PrefereBGP paths– LowestIGPMetric– Oldestroute

28/02/2017 BGPTrafficEngineering,AndyDavidson 31

Page 32: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Mainlyoutbound,singlePOP

• Localpref– Ahammer – blunttool,inflexible..Butitisatool.– “Generally”prefertosendtraffictocustomers,thenpeers,thentransits.

–Managetop‘n’networks,sothatthereisapreferredpath,andafailurepath,withcapacityonbothcircuits.

28/02/2017 BGPTrafficEngineering,AndyDavidson 32

Page 33: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Localpref – blunthammer

28/02/2017 BGPTrafficEngineering,AndyDavidson 33

10.0.0.0/8Localpref 100via10012310.0.0.0/8Localpref 500via300200200200200123

Whichlinkwillyouprefer?AS123hereistryingtoshapeinboundtrafficviaAS100.Why?

Highercapacitylink?Morereliable?

Whatshouldyoudo?

Answer:Itdependsonthevolume oftraffic,cost ofcapacity,value oftraffic

Page 34: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Mainlyoutbound– ManyPOPs

• Usehotpotatoroutingtobesteffect– Nearestexitrouting– UnderstandwhoyourtoptrafficsinksareandpeeratallPOPs

– IgnoreMEDsfromothers– unlessyouwanttocarrythetrafficonyourbackbone

28/02/2017 BGPTrafficEngineering,AndyDavidson 34

Page 35: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

AS_PATHprepending(outbound)• MakeBGPprefixpaths”appear”longervialesspreferred

circuits

• “BGPpathfor10.0.0.0/8654_789iscongested”

• 123456789• 654789

• 100100100654789

• Willnotvaryinboundpacketroute(thoughthisroutemightnotbecongested!)

28/02/2017 BGPTrafficEngineering,AndyDavidson 35

Page 36: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Inboundtrafficengineering

• Muchharder– Trickothers’BestPathcalculations– Youdonotadministrateoriginpartyrouter

• Butremember…– Largestflowscomefromasmallnumberofnetworks– Contentnetworkswanttodelivertraffictoyouaswellaspossible!

28/02/2017 BGPTrafficEngineering,AndyDavidson 36

Page 37: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

SelectiveAnnouncements

28/02/2017 BGPTrafficEngineering,AndyDavidson 37

– Shortestprefix– LocalPreference– ASPATHlength– LowestOriginType– LowestMED– PrefereBGP paths– LowestIGPMetric– Oldestroute

PrefixlengthconsideredbeforeBGP.

10.0.0.0/16vs 10.0.0.0/17&10.128.0.0/17

Page 38: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

ProblemofSelectiveAnnouncements

• Oftenfiltered• Consideredrude – mightleadtodepeering• Neverannounce‘globally’

28/02/2017 BGPTrafficEngineering,AndyDavidson 38

Page 39: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

…Butcanbeusedtogreateffect

• Tothesamepeerortransitprovider,announceaggregateandregionalpfx

28/02/2017 BGPTrafficEngineering,AndyDavidson 39

Berlin Frankfurt

Transit

10.0.0.0/810.0.0.0/9 10.0.0.0/8

10.128.0.0/9

AddNO_EXPORTcommunity

Usewithpermission

Page 40: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

AS_PATHprepending(inbound)

• SignalpreferredpathbygrowingAS_PATHonlesspreferredpaths

• Marginaleffectwhichdegradesquickly• SignalbackuplinktoasingleAS,butload-balancingcapacityismuchharder

• Maynotbeheardat‘distant’ASNs• Another‘blunt’tool,butcanmovesometraffic.

28/02/2017 BGPTrafficEngineering,AndyDavidson 40

Page 41: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 41

Page 42: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

MEDs

• Lowest MEDwins.– OppositeofNearestExitrouting,“carrytraffictome”– Onlyworkstothesamepeerinmultipleregions– CopyIGPmetrictoMED– Normallysubjecttonegotiation

• Sometimeshonoured,oftenwhennetworktrafficislatencyorlosssensitive.

28/02/2017 BGPTrafficEngineering,AndyDavidson 42

Page 43: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

MEDsareoftenfiltered

• ManynetworkssetMEDto0whentheylearnprefixes,sothathotpotatoroutingwilloverride MED.

route-map peers-in permit 10set local-preference 200set metric 0

28/02/2017 BGPTrafficEngineering,AndyDavidson 43

Page 44: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Originchanging

• IGP• EGP• Incomplete

28/02/2017 BGPTrafficEngineering,AndyDavidson 44

route-map PEERS permit 10set origin igp

route-route-map TRANSIT permit 10set origin incomplete

Oftenpeerssetto‘igp’or‘egp’staticallyonroutersto nullify effectsofOriginchanging.

Highestpriority

Page 45: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Inbound– whatdoesworkwell?• Overprovisioning• Peerwithtopnetworkswidely (buyoptions!)– Failureofsinglelinkwillnotbreakadjacency– Failurescanbehandledinpredictableways

• Buildrelationships• Constantlymonitorandmanage• Ifyoucareaboutyourtraffic,letitgo.J

– Playinggameswithpeeringhurtsyourcustomers’traffic

• AffectingdistantASNsisveryhard– aregionmayonlyseeasinglenext-hopASN.

28/02/2017 BGPTrafficEngineering,AndyDavidson 45

Page 46: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Deterministicrouting

28/02/2017 BGPTrafficEngineering,AndyDavidson 46

– LocalPreference– ASPATHlength– LowestOriginType– LowestMED– PrefereBGP paths– LowestIGPMetric– Oldestroute

Topflowsshouldleaveyournetworkviadeterministicmeans,andnotlefttoBGPBestPathselection(ortochance).

Ifyouarerelyingonoldestroutetomakethedecision,yourisktraffictakingunpredictableroutes.

However,oldestroutesdobreakthe‘flappingsessions’problem.Youneedtomonitorandmanageyourtopflowsconstantly.

Page 47: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Whatdoes“managerelationships”mean?

• Gobacktoyourdata– Collectandshareinformationwithpeeringco-ordinatorsatforumslikethis

– Youwillstandoutifyouknowexactlyhowmuchtrafficyouwillexchangeatpeakwithapeer

– Protectyourpeer’sinterests• Discussmutualpointsofinterconnectionthatsuitboth• Respondtoabusecomplaintspromptly• Usecontactstoreachotherpeeringco-ordinators• RespondpromptlytoBGPsessiondown/flapping• ListyournetworkonPeeringDB!

28/02/2017 BGPTrafficEngineering,AndyDavidson 47

Page 48: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

PublishinIRRDB

• PublishyourcircuitandadjacencyinformationinIRRDB

• Makeitpossibleforothernetworkstofigureouthowyouareintending yourtraffictoberouted

28/02/2017 BGPTrafficEngineering,AndyDavidson 48

Page 49: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 49

RT1 RT2

EX2EX1

PP1

PP2 PP3

Transit

6Gbit

5Gbit

2Gbit

4Gbit 4Gbit

AS2isyourlargestflow- viaPP2- maybeneedsasecondprivatepeerbackuponRT2?

4Gbit 4Gbit

AS12345AS2

AS1

Manypeers Manypeers

AS3

Page 50: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 50

RT1 RT2

EX2EX1

PP1

PP2 PP3

Transit

6Gbit

5Gbit

2Gbit

4Gbit 4Gbit

AS2isyourlargestflow- viaPP2- maybeneedsasecondprivatepeerbackuponRT2?AS1viaPP1,configureabackupoverEX1orEX2fordeterministicrouting?

4Gbit 4Gbit

AS12345AS2

AS1

Manypeers Manypeers

AS3

Page 51: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 51

RT1 RT2

EX2EX1

PP1

PP2 PP3

Transit

6Gbit

5Gbit

2Gbit

4Gbit 4Gbit

AS2isyourlargestflow- viaPP2- maybeneedsasecondprivatepeerbackuponRT2?AS1viaPP1,configureabackupoverEX1orEX2fordeterministicrouting?

CanyoumovelargerpeersbehindEX1andEX2ontoprivatepeering?

4Gbit 4Gbit

AS12345AS2

AS1

Manypeers Manypeers

AS3

Page 52: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 52

RT1 RT2

EX2EX1

PP1

PP2 PP3

Transit

6Gbit

5Gbit

2Gbit

4Gbit 4Gbit

AS2isyourlargestflow- viaPP2- maybeneedsasecondprivatepeerbackuponRT2?AS1viaPP1,configureabackupoverEX1orEX2fordeterministicrouting?

CanyoumovelargerpeersbehindEX1andEX2ontoprivatepeering?Ifthereisanexchangefailure,wherewillthetrafficgo?Howbigaflowshouldyoucareabout?

4Gbit 4Gbit

AS12345AS2

AS1

Manypeers Manypeers

AS3

Page 53: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

28/02/2017 BGPTrafficEngineering,AndyDavidson 53

RT1 RT2

EX2EX1

PP1

PP2 PP3

Transit

6Gbit

5Gbit

2Gbit

4Gbit 4Gbit

AS2isyourlargestflow- viaPP2- maybeneedsasecondprivatepeerbackuponRT2?AS1viaPP1,configureabackupoverEX1orEX2fordeterministicrouting?

CanyoumovelargerpeersbehindEX1andEX2ontoprivatepeering?Ifthereisanexchangefailure,wherewillthetrafficgo?Howbigaflowshouldyoucareabout?

IfyouloseRT2,howwilltraffictoPP3andtrafficvolumeviaEX2bedelivered?

4Gbit 4Gbit

AS12345AS2

AS1

Manypeers Manypeers

AS3

Page 54: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Buyingtransitinasmartway

• Buyingfromawellpeeredtransitprovider:– Canimprovequalityforthereasonsdiscussed– Hidescapacityproblemsfromyouautomatically

• Buyingfromyourtoptrafficdestination– Ifyourbusinessreliesonthetrafficquality,itmaymakesensetopay

– Data mayhelpyounegotiategoodterms

28/02/2017 BGPTrafficEngineering,AndyDavidson 54

Page 55: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Dealingwitha“no”topeering

• Paidpeeringisoneoption– OftenmoreexpensivethanfullIPtransit– “Onceacustomer,neverapeer”

• Payforotherservicesinreturnforpeering– Transportforexample

• Peeraroundtheproblem– Trytopeerdirectlywithdownstreamcustomers– Trytoselldirectlytodownstreamcustomers• Ifyouarebetterpeered,youcansellbasedonquality

28/02/2017 BGPTrafficEngineering,AndyDavidson 55

Page 56: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Constantlymanage

• PeeringontheInternetchanges everyday.• CapacityontheInternetgrows everyday.• Smallnetworksbecomelarge.• Largenetworksbecomelarger(consolidation)• A“bad”pathmightbecomegoodovernight

28/02/2017 BGPTrafficEngineering,AndyDavidson 56

Page 57: BGP Peering Strategy & Data - 2017. · PDF file28/02/2017 BGP Traffic Engineering, Andy Davidson 3 Complexity Life starts out very simply, “send traffic to peers if possible, then

Questions?______________________________

[email protected]

Emailmetorequestacopyofthispresentation!

Feedbackandintroductiontopeeringco-ordinators welcome

Twitter:@andyd