Rob Lister UKNOF24 17 January 2013 IXPs and Robust Configuration aka. “interesting” configs we have seen…

Slides:



Advertisements
Similar presentations
11: IPv6 Routing Table and Static Routes
Advertisements

10: ICMPv6 Neighbor Discovery
CCNP Network Route BGP Part -II. BGP ROUTE REDISTRIBUTION Scenario: R1 R2, R3 in AS 1000 with IP addresses of and loopback ,
Chapter 7 RIP version 2.
The subnet /28 has been selected to be further subnetted to support point-to-point serial links. What is the maximum number of serial links.
RIP V2 W.lilakiatsakun.  RFC 2453 (obsoletes –RFC 1723 /1388)  Extension of RIP v1 (Classful routing protocol)  Classless routing protocol –VLSM is.
Implementing Inter-VLAN Routing
Border Gateway Protocol Ankit Agarwal Dashang Trivedi Kirti Tiwari.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 W. Schulte Chapter 5: Inter-VLAN Routing Routing And Switching.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 5: Inter-VLAN Routing Routing & Switching.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Routing.
Mod 10 – Routing Protocols
Interdomain Routing and The Border Gateway Protocol (BGP) Courtesy of Timothy G. Griffin Intel Research, Cambridge UK
CCNA 2 v3.1 Module 6.
Routing and Routing Protocols
IP Routing: an Introduction. Quiz
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network Considering the Advantages of Using BGP.
Chapter 27 Q and A Victor Norman IS333 Spring 2015.
Support Protocols and Technologies. Topics Filling in the gaps we need to make for IP forwarding work in practice – Getting IP addresses (DHCP) – Mapping.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 5: Inter-VLAN Routing Routing And Switching.
OSPF in Multiple Area.
CISCO NETWORKING ACADEMY Chabot College ELEC IP Routing Protocol Highlights.
TCOM 515 Lecture 6.
Advantages of Dynamic Routing over Static Routing : Advertise only the directly connected networks. Updates the topology changes dynamically. Administrative.
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—6-1 Connecting an Enterprise Network to an ISP Network BGP Attributes and Path Selection Process.
Routing and Routing Protocols Routing Protocols Overview.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
Cisco – Chapter 11 Routers All You Ever Wanted To Know But Were Afraid to Ask.
Router and Routing Basics
CCNA 1 Module 10 Routing Fundamentals and Subnets.
The Hebe-jebes (or He-B-GPs): Understanding the Roles of EBGP, IBGP and an IGP Using Lab 7-4, IBGP, Next Hop and Synchronization Rick Graziani Cabrillo.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 9 Basic Router Troubleshooting.
Open standard protocol Successor of RIP Classless routing protocol Uses Shortest Path First (SPF) Algorithm Updates are sent through Multicast IP address.
E /24 LAN /24LAN – / /8 S0 S /8 Head Office Branch Office E /16.
© 2002, Cisco Systems, Inc. All rights reserved..
Chapter 9. Implementing Scalability Features in Your Internetwork.
© Synergon Informatika Rt., 1999 Chapter 12 Connecting Enterprises to an Internet Service Provider.
© 2001, Cisco Systems, Inc. A_BGP_Confed BGP Confederations.
Border Gateway Protocol (BGP) W.lilakiatsakun. BGP Basics (1) BGP is the protocol which is used to make core routing decisions on the Internet It involves.
© 2002, Cisco Systems, Inc. All rights reserved. 1 Routing Overview.
Basic Routing Principles V1.2. Objectives Understand the function of router Know the basic conception in routing Know the working principle of router.
Cisco proprietary protocol Classless routing protocol Metric (32 bit) : Composite Metric (BW + Delay) by default. Administrative distance is 90 Updates.
Routing and Routing Protocols
Jose Luis Flores / Amel Walkinshaw
 RIP — A distance vector interior routing protocol  IGRP — The Cisco distance vector interior routing protocol (not used nowadays)  OSPF — A link-state.
+ Routing Concepts 1 st semester Objectives  Describe the primary functions and features of a router.  Explain how routers use information.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 1 Module 10 Routing Fundamentals and Subnets.
1 Border Gateway Protocol (BGP) and BGP Security Jeff Gribschaw Sai Thwin ECE 4112 Final Project April 28, 2005.
Group project Sept 23 Page 322, Review Questions. Explain your answers! Not just one word or letter. Write a few sentences on why/how. Question numbers.
BGP Transit Autonomous System
LO: PE1 PE2 P1PE3CEA-3 CEA-1 CEA-2 CE-HQ LO: /32 LO: / / / HSRP /24.
Text BGP Basics. Document Name CONFIDENTIAL Border Gateway Protocol (BGP) Introduction to BGP BGP Neighbor Establishment Process BGP Message Types BGP.
ROUTING AND ROUTING TABLES 2 nd semester
Cisco Routers Routers collectively provide the main feature of the network layer—the capability to forward packets end-to-end through a network. routers.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
Working at a Small-to-Medium Business or ISP – Chapter 6
Boarder Gateway Protocol (BGP)
BGP 1. BGP Overview 2. Multihoming 3. Configuring BGP.
STATIC ROUTING.
Routing and routing tables
DYNAMIC ROUTING.
Explaining BGP Concepts and Terminology
Routing and routing tables
CCNA 2 v3.1 Module 6 Routing and Routing Protocols
BGP Overview BGP concepts and operation.
Cours BGP-MPLS-IPV6-QOS
CIT 384: Network Administration
Static Routing For Multiple Routers
Working at a Small-to-Medium Business or ISP – Chapter 6
Computer Networks Protocols
Presentation transcript:

Rob Lister UKNOF24 17 January 2013 IXPs and Robust Configuration aka. “interesting” configs we have seen…

Original purpose of IXPs… In the years Before Exchanges (BE)

..enter the IXP…

The IXP today

From ISPs to… $thing provider Original ‘Tier 2’ access ISPs Academic Networks Larger Telcos Medium Hosting Networks VoIP Service Providers Large Content Networks Huge web sites, social media, Video on demand Layer 2 Resellers Small Hosting Networks Small access networks (birth of xDSL) Connected Enterprises Online Gaming Gambling, Banking… Name Services, DNS Registrars, Network Service Providers…

 “Layer-2 blob” works great most of the time!  Until something / someone screws up  Can be difficult to find and fix IXP Protection

 IXPs have allowed traffic policies  We ask you nicely not to do evil things!  If we find evil things, we will unplug you…  “Router only” policy didn’t break much  “Router only” policy didn’t break much  This was enough for a long time…. IXP Protection (1)

 IXPs have allowed traffic policies  We ask you nicely not to do evil things!  If we find evil things, we will unplug you…  “Router only” policy didn’t break much  “Router only” policy didn’t break much  This was enough for a long time….  Some evil happens too fast! IXP Protection (2)

 IXPs enable various port security mechanisms  Limit to particular MAC  Restrict to 1 MAC address  Shut port down if > 1 MAC  (Hopefully) stop loops!  Limit ethertype?  IXPs enable various rate limiting features  Limit broadcast traffic  Limit unknown unicast  Quickly stops most (but not all) evil.. IXPs protecting against evil…

IXP Forwarding Path Failure

 “Magic” protocols like VTP/DTP/STP  Proxy ARP / IPv6 ND etc.. DHCP…  Internal routing issues  BGP configuration  Other configuration  “Interesting” network designs… What goes wrong with members?

 DTP/VTP: Automatic trunk configuration and VLAN distribution….  STP: Fail-over/loop resolution  Harmless… until another device starts sending you these frames.. then bad things happen!  STP topology change issues  Port shuts down due to VLAN config mismatch DTP/VTP/STP (Cisco…)

 Somebody starts responding to ARP that’s not for its interface’s IP address.  Commonly caused by mask misconfiguration  Cisco – often enabled by default on interfaces Proxy ARP

 Next hop for a route must be in routing table  When an interface goes down, BGP tears down all (eBGP) sessions reached via that interface  BGP sends keepalives to peers every 30 seconds  When3 keepalives are not received, the BGP session is torn down. How BGP detects deadness

 Member connects a switch to the IXP  Not many good mitigations… Intermediate Switches / BGP

 Pings some external IP and shuts down interface or withdraw route if unpingable  Pick the destination carefully…  Maybe not much faster than BGP timeout…  ‘SLA’ Features

 “Uplink group”/LFS type feature shuts down ports when another port goes down…  Not practical for tagged links Switch Features

 [RFC 5881] – BFD. Detects failures in the forwarding path between routers  Good – not widely used inter-AS (yet) BFD - Bidirectional Forwarding Detection

Multiple IXP Connections

First, verify connectivity to an IP in our peer’s network: sitea-rt1>ping Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/15/20 ms Then, show the route going out via the directly connected interface to LONAP: sitea-rt1>sh ip bgp /16 subnets BGP table version is 899, local router ID is Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> / i * i i

Multiple IXP Connections Now we shut down the interface (or the BGP goes down somehow…) sitea-rt1#conf t Enter configuration commands, one per line. End with CNTL/Z. sitea-rt1(config)#int Gi1/0.4 sitea-rt1(config-subif)#shut Mar 12 20:34:40.186: %BGP-5-ADJCHANGE: neighbor Down... We see that we have one remaining route via iBGP: sitea-rt1>sh ip bgp /16 subnets BGP table version is 901, local router ID is Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *>i / i

Multiple IXP Connections However, when we try to ping again, it doesn’t work… sitea-rt1>ping Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds:..... Success rate is 0 percent (0/5)

Multiple IXP Connections Verify how we reach the next hop address: sitea-rt1>sh ip route Routing entry for /24 Known via "bgp 65009", distance 20, metric 0 Tag 7xxx, type external Last update from :03:31 ago Routing Descriptor Blocks: * , from , 00:03:31 ago Route metric is 0, traffic share count is 1 AS Hops 1 Route tag 7xxx sitea-rt1>sh ip bgp BGP routing table entry for /24, version 901 Paths: (1 available, best #1, table default) Advertised to update-groups: 1 2 7xxx from ( ) Origin incomplete, metric 0, localpref 100, valid, external, best

 Default Administrative Distance for eBGP  Appropriate in service provider networks?? Routing Fun… Protocol Administrative Distance Directly Connected0 Static Route1 External BGP (eBGP)20 OSPF110 IS-IS115 RIP120 Internal BGP (iBGP)200 Why is this?

Multiple IXP Connections One way… sitea-rt1#conf t Enter configuration commands, one per line. End with CNTL/Z. sitea-rt1(config)#router bgp sitea-rt1(config-router)#distance bgp sitea-rt1#clear ip bgp Mar 12 20:48:28.122: %BGP-5-ADJCHANGE: neighbor Down User reset Mar 12 20:48:36.870: %BGP-5-ADJCHANGE: neighbor Up sitea-rt1>sh ip route Routing entry for /24 Known via "ospf 1", distance 110, metric 20, type extern 2, forward metric 1 Last update from on GigabitEthernet1/0.600, 00:00:05 ago Routing Descriptor Blocks: * , from , 00:00:05 ago, via GigabitEthernet1/0.600 Route metric is 20, traffic share count is 1 sitea-rt1>ping Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to , timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/32/56 ms

 We could change the odd eBGP Admin Distance  And/or filter out connected IXP prefixes  Fiddle with next-hop-self? Maybe… Fixes for the blackhole

Routing Fun… Possible solutions… Filter out IXP prefixes and more specifics Tweak Administrative Distance…

Network Design  Some thought  Layered design  Redundancy  Failover  There are others!

Network Design  BIG SCARY BOX  “We paid $$$ for it”  “Temporary”  Use it for everything  Never touch it  Never document it  Run away!!!

 Do these things get fixed? So..

It depends… Confidence Understanding Money Motivation Internal Politics Successful Fix Downtime Ongoing Learning…

It’s a community… RIPE IETF NANOG UKNOF LINX LONAP ? APRICOT “Network Operators” People who operate a network

It’s a community… RIPE IETF NANOG UKNOF LINX LONAP ? APRICOT “Network Operators” People who operate a network Beer

It’s a community… RIPE IETF NANOG UKNOF LINX LONAP ? APRICOT “Network Operators” People who operate a network Beer FancyCocktails or something?