IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum...

53
IXP Manager Workshop 27 th Euro-IX Forum October 25 th 2015 Berlin, Germany Barry ODonovan & Nick Hilliard, INEX Ireland’s Internet Neutral Exchange Point [email protected]

Transcript of IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum...

Page 1: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

IXP Manager Workshop

27th Euro-IX ForumOctober 25th 2015Berlin, Germany

Barry O’Donovan & Nick Hilliard, INEXIreland’s Internet Neutral Exchange Point

[email protected]

Page 2: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

What is IXP Manager?

Full stack management system for IXPs

Admin & Member PortalEnd to end provisioning systemTeaches, implements and ensures best practiceFully loaded with IXP specific tools and features

Configures everything but the port. For now…

Page 3: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Why Build IXP Manager?

Some key requirements of an IXP are:Security – Consistency – Reliability

Page 4: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Why Build IXP Manager?

Some key requirements of an IXP are:Security – Consistency – Reliability

Human error cannot be eradicatedWe have observed that the probability of a DFZ leak is equal between the smallest inexperienced operators and the largest experienced operatiors!

Page 5: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Why Build IXP Manager?

Some key requirements of an IXP are:Security – Consistency – Reliability

Human error cannot be eradicatedWe have observed that the probability of a DFZ leak is equal between the smallest inexperienced operators and the largest experienced operatiors!

Goal: Zero touch provisioning and configurationGoal: Do more with lessGoal: Provide excellent service to our members

(who are also our masters!)

Page 6: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

History of IXP Manager

Not a planned targeted development exerciseOrganic growth over ~10 years

Page 7: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

History of IXP Manager

Not a planned targeted development exerciseOrganic growth over ~10 yearsStarted with a robust flexible database schemaFrom which we created:

A simple CRUD interfaceProvisioning scripts including: route collector, route servers, AS112, reverse DNS, RIPE objects, monitoring systems, graphing systems, etc.

Page 8: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

History of IXP Manager

I joined INEX in 2007 and undertook a project to modernise these systems

LAMP stack: Zend Framework, Doctrine, Smarty

Page 9: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

History of IXP Manager

I joined INEX in 2007 and undertook a project to modernise these systems

LAMP stack: Zend Framework, Doctrine, Smarty

We continued to automate manual processes and grow IXP Manager’s usefulness

Page 10: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

History of IXP Manager

I joined INEX in 2007 and we undertook a project to modernise these systems

LAMP stack: Zend Framework, Doctrine, Smarty

We continued to automate manual processes and grow IXP Manager’s usefulnessReceived committee approval to open source IXP Manager in 2010 – V2 made public via GPLv2

Page 11: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

History of IXP Manager

I joined INEX in 2007 and we undertook a project to modernise these systems

LAMP stack: Zend Framework, Doctrine, Smarty

We continued to automate manual processes and grow IXP Manager’s usefulnessReceived committee approval to open source IXP Manager in 2010 – V2 made public via GPLv2No significant traction – FOSS requires effort!

Documentation, installation ease, evangelism, de-INEX-ification, out reach / time.

Page 12: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

History of IXP Manager

V3 released in 2012 with renewed effortExcellent documentation, mailing lists, Euro-IX presentations, global collaboration with ISOC

Page 13: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

History of IXP Manager

V3 released in 2012 with renewed effortExcellent documentation, mailing lists, Euro-IX presentations, global collaboration with ISOCNow live in many IXPs including:

Our neighbors in LONAP (close collaboration)Euro-IX members: INEX, LONAP, BCIX, …Africa: Gambia, Kenya, …APIX: Multiple IXPs in AustraliaNorth America: Chicago, Portland, Texus, …

Great feedback, great recognition

Page 14: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Components of IXP Manager

Page 15: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Sample Admin Interface

Page 16: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Admin Interface Actions

Page 17: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Admin Interface Actions

Page 18: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Admin Interface Actions

Page 19: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Admin Interface Actions

Page 20: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Sample Member Interface

Page 21: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Member Features

Traffic graphs and P2P graphsMailing list managementNOC / peering / contact details updatePeering ManagerPeering matricesOther member detailsDocumentationUser managementRoute Server Prefix Analysis Tool

Page 22: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Peering Manager

Page 23: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

MRTG Configuration

Measure Everything! Know where you’ve been, where you are and where you’re going.

Page 24: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

MRTG Configuration

Measure Everything! Know where you’ve been, where you are and where you’re going.

We use MRTG to create all traffic graphs:Individual member port graphs (bits, pkts, errs, discs)Aggregate member LAG graphsAggregate member graphsAggregate switch graphsInter-switch trunk graphs (*)Aggregate infrastructure graphsOverall peering graphs

Page 25: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

MRTG Configuration

Automated configuration of MRTG configuration file compatible with IXP Manager.It’s documented and easy!

https://github.com/inex/IXP-Manager/wiki/MRTG---Traffic-Graphs

apt-get install … mrtgmkdir –p /home/mrtg/membersSet a couple options in application.ini and IXP Manager

Set a cronjob to run: ixptool.php statistics-cli.gen-mrtg-conf

Page 26: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Auto Provisioning

When a interface is added to IXP Manager, you get:Route Collector BGP session auto-provisionedRoute Server BGP session auto-provisionedMRTG auto-provisionedPeer to peer graphs auto-provisionedNagios monitoring of member’s interfaceSmokeping target for member’s interfaceAS112 BGP sessionARPA DNS for IXP assigned addressRIR AS-SET / ASN objects

Page 27: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Servers & IXP Manager

Route servers are critical IXP infrastructureMembers care about the switches and the route server

Everything else can break without major impactThey must be: secure, robust, free from operator errorAuto-provisioning is a requirement to meet these criteria

At INEX, we have always auto-provisioned

Page 28: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Servers & IXP Manager

Route servers are critical IXP infrastructureMembers care about the switches and the route server

Everything else can break without major impactThey must be: secure, robust, free from operator errorAuto-provisioning is a requirement to meet these criteria

At INEX, we have always auto-provisionedAdditionally, your members must trust you to properly and securely configure your route servers

Page 29: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Servers & IXP Manager

Route servers are critical IXP infrastructureMembers care about the switches and the route server

Everything else can break without major impactThey must be: secure, robust, free from operator errorAuto-provisioning is a requirement to meet these criteria

At INEX, we have always auto-provisionedAdditionally, your members must trust you to properly and securely configure your route serversIXP Manager contains INEX’s broad experience here and will ensure your route servers are configured and managed to best current practice

Page 30: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Servers & IXP Manager

IXP Manager route server templates include:Max prefix restrictions

Page 31: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Servers & IXP Manager

IXP Manager route server templates include:Max prefix restrictionsIPv4 and v6 martians

Page 32: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Servers & IXP Manager

IXP Manager route server templates include:Max prefix restrictionsIPv4 and v6 martians

Page 33: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Servers & IXP Manager

IXP Manager route server templates include:Max prefix restrictionsIPv4 and v6 martiansStrict inbound prefix filters

Via BGPQ3 from IRRDB databasesAll database sources on RADB supportedMultiple source databases can be queried per memberParallel (and transactional) process

Page 34: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Servers & IXP Manager

IXP Manager route server templates include:Max prefix restrictionsIPv4 and v6 martiansStrict inbound prefix filtersOrigin ASN filters

Via BGPQ3 from IRRDB databasesAll database sources on RADB supportedMultiple source databases can be queried per memberParallel (and transactional) process

Page 35: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Servers & IXP Manager

IXP Manager route server templates include:Max prefix restrictionsIPv4 and v6 martiansStrict inbound prefix filtersOrigin ASN filtersNext hop hijacking prevention

Page 36: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Servers & IXP Manager

IXP Manager route server templates include:Max prefix restrictionsIPv4 and v6 martiansStrict inbound prefix filtersOrigin ASN filtersNext hop hijacking preventionStandard community filters supported

0:peer-as Prevent announcement to a peer43760:peer-as Announce to a certain peer0:43760 Prevent announcement to all peers43760:43760 Announce to all peers

Page 37: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Servers & IXP Manager

IXP Manager route server templates include:Max prefix restrictionsIPv4 and v6 martiansStrict inbound prefix filtersOrigin ASN filtersNext hop hijacking preventionStandard community filters supportedMD5 session security supported

Page 38: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Servers & IXP Manager

IXP Manager route server templates include:Max prefix restrictionsIPv4 and v6 martiansStrict inbound prefix filtersOrigin ASN filtersNext hop hijacking preventionStandard community filters supportedMD5 session security supported

Quagga and Bird currently implemented.

Page 39: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Trusting IXP Manager…

Can you trust IXP Manager for route servers?

Page 40: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Trusting IXP Manager…

Can you trust IXP Manager for route servers?

Correct and expected configuration generation is covered by unit tests on every push to the Git repository.

Page 41: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Trusting IXP Manager…

Can you trust IXP Manager for route servers?

Correct and expected configuration generation is covered by unit tests on every push to the Git repository.

Smart scripts control the deployment of new configurations.

Page 42: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Trusting IXP Manager…

Can you trust IXP Manager for route servers?

Correct and expected configuration generation is covered by unit tests on every push to the Git repository.

Smart scripts control the deployment of new configurations.

Deployment is offset by hours between the route servers.

Page 43: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Route Server Prefix Analysis Tool

Page 44: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Peer to Peer Graphs

Enable management and members to see traffic levels between each peer. Hugely popular with our members

Page 45: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Peer to Peer Graphs

Enable management and members to see traffic levels between each peer. Hugely popular with our membersAllows us to plan inter-PoP trunks (and VPLS LSPs)

Page 46: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Peer to Peer Graphs

Enable management and members to see traffic levels between each peer. Hugely popular with our membersAllows us to plan inter-PoP trunks (and VPLS LSPs)Current implementation requires sflow (MAC addresses)

Page 47: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Peer to Peer Graphs

…,0013136f2fc0,0010a52f261f,0x0800,…,179,1024

Source / Destination MAC Address

Protocol(IPv4)

Traffic = Packet Size * Sample Rate

Page 48: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Peer to Peer Graphs

Enable management and members to see traffic levels between each peer. Hugely popular with our membersAllows us to plan inter-PoP trunks (and VPLS LSPs)Current implementation requires sflow (MAC addresses)Atomic script to dynamically learn each member’s MACScript to process sflow packets to RRD files

Page 49: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

RIPE Objects

INEX maintains the following RIPE objects:AS2128 – our ASNAS43760 – our route server ASNAS-INEXIE – our AS macroAS-SET-INEX-RS

Page 50: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

RIPE Object – AS43760

import: from AS42 193.242.111.60 at 193.242.111.8accept AS-PCH # Packet Clearing House DNS

export: to AS42 193.242.111.60 at 193.242.111.8announce AS-SET-INEX-RS

import: from AS42 193.242.111.60 at 193.242.111.9accept AS-PCH # Packet Clearing House DNS

export: to AS42 193.242.111.60 at 193.242.111.9announce AS-SET-INEX-RS

mp-import: afi ipv6.unicastfrom AS42 2001:7f8:18::60 at 2001:7f8:18::8accept AS-PCH # Packet Clearing House DNS

Page 51: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

RIPE Object – AS-SET-INEX-RS

members: AS-PCHmembers: AS112members: AS-HEANETmembers: AS-BTIREmembers: AS-INEXIEmembers: AS-NFLXmembers: AS3856members: AS-EIRCOMmembers: AS-REDSTONEmembers: AS-MICROSOFTEUmembers: AS12388

Page 52: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Planning for v4

Decoupling of front / back end“Everything is an API”

Switch from Zend / Smarty to Laravel / TwigProof of concept: decoupled member interface with new features; 100% API and Ember.jsIntroduction of composer, bower, Grunt, etc.Job queues and event based processing:

On demand provisioningCustom functionality per IXP

Page 53: IXP Manager Workshop 27th Euro-IX Forum October …...IXP Manager Workshop 27th Euro-IX Forum October 25th 2015 Berlin, Germany Barry OʼDonovan & Nick Hilliard, INEX Ireland’s Internet

Thanks for Listening!

[email protected]

https://github.com/inex/IXP-Manager

Mailing list:https://www.inex.ie/mailman/listinfo/ixpmanager