51
Christian Teuschel | September 2016 | iWeek ZA Focus: RIPE Atlas Network Visualisation Workshop

Network Visualisation: Focus on RIPE Atlas

Embed Size (px)

Citation preview

Page 1: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | September 2016 | iWeek ZA

Focus: RIPE Atlas

Network Visualisation Workshop

Page 2: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 2

Workshop Requirements

• Please make sure you have a RIPE NCC Access account!

• Voucher for 5,000 Atlas credits

https://access.ripe.net

iweek_2016

Page 3: Network Visualisation: Focus on RIPE Atlas

Network VisualisationOverview

Page 4: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 4

Network Visualisation

• Bringing raw data to life, help with interpretation and understanding

• Three main types of data: - Registry data

- Routing data (BGP)

- Active measurement data (RIPE Atlas, MLab, etc.)

Page 5: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 5

Registry Data

• Source: RIR databases - AFRINIC, ARIN, APNIC, LACNIC and RIPE NCC

• Useful as supporting data set

https://stat.ripe.net/widget/allocation-history https://stat.ripe.net/widget/address-space-hierarchy

Page 6: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 6

Routing Data

• RIPE NCC’s RIS - http://ris.ripe.net

https://stat.ripe.net/widget/bgplay

Page 7: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 7

Routing Data

• RIPE NCC’s RIS - http://ris.ripe.net

https://stat.ripe.net/widget/routing-history

Page 8: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 8

Active Measurement Data

• RIPE Atlas

• MLab by Google

• Bandwidth measurements - Speedchecker, Ookla, …

• Google ad measurements done by APNIC

Page 9: Network Visualisation: Focus on RIPE Atlas

RIPE AtlasIntroduction

Page 10: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 10

RIPE Atlas

• A brief introduction - Global network for Internet measurements

Page 11: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 11

RIPE Atlas

• Standard Probe - TP-Link MR3020

- Version 3

• Atlas Anchor - Higher capacity

- Currently 216 nodes

- Soekris Net6501-70

- https://atlas.ripe.net/anchors/

Version 1/2

Page 12: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 12

RIPE Atlas

Page 13: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 13

RIPE Atlas

• RIPE Atlas probes in South Africa

https://stat.ripe.net/za#tabId=activity

389 registered ASNs

263 routed ASNs

Page 14: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 14

RIPE Atlas

• RIPE Atlas probes in South Africa

https://stat.ripe.net/za#tabId=activity

Page 15: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 15

RIPE Atlas

• RIPE Atlas anchors in South Africa

https://atlas.ripe.net/anchors/list/

Page 16: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 16

Agenda

• Introduction to web UI

• Measurements

• Tools - LatencyMon, QuickLook, DNSMON, DomainMON and

IXP-Country-Jedi

• Command line tools

• RIPE Atlas APIs

• DIY workshop

Page 17: Network Visualisation: Focus on RIPE Atlas

RIPE AtlasWeb UI

Page 18: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 18

Web UI

Page 19: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 19

Exercise I

• Go to https://atlas.ripe.net

• Check if you can log in with your RIPE NCC Access account!

Page 20: Network Visualisation: Focus on RIPE Atlas

RIPE AtlasMeasurements

Page 21: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 21

Build-In Measurements

• What is it?

First check for existing measurements

https://atlas.ripe.net/measurements/

Page 22: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 22

Build-In Measurements

• Probe viewhttps://atlas.ripe.net/probes/

Page 23: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 23

Exercise II

• Pick a probe and look up build-in measurement results!

Page 24: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 24

Build-In Measurements

• Global viewhttps://atlas.ripe.net/results/maps/

Page 25: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 25

User-Defined Measurements

• Custom measurements - All measurement types possible

- Credit system to keep the resource allocation fair

Page 26: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 26

User-Defined Measurements

• Credit systemhttps://atlas.ripe.net/user/credits

Page 27: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 27

Exercise III

• Redeem your voucher “iweek_2016”https://atlas.ripe.net/user/credits

Page 28: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 28

Exercise IV

• Create a ping measurementhttps://atlas.ripe.net/measurements/

Page 29: Network Visualisation: Focus on RIPE Atlas

RIPE AtlasLatencyMON

Page 30: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 30

LatencyMON

• Every running ping measurementhttps://atlas.ripe.net/measurements

Page 31: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 31

LatencyMON

Page 32: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 32

LatencyMON

Page 33: Network Visualisation: Focus on RIPE Atlas

RIPE AtlasDNSMON & DomainMON

Page 34: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 34

DNSMON

• DNS root and many TLD name servershttps://atlas.ripe.net/dnsmon/

Page 35: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 35

DomainMON

• Same visualisation as DNSMON

• For any domain server

• Runs on RIPE Atlas credits

• https://atlas.ripe.net/domainmon/

Page 36: Network Visualisation: Focus on RIPE Atlas

RIPE AtlasIXP-Country-Jedi

Page 37: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 37

IXP-Country-JediIPv6IPv4

http://sg-pub.ripe.net/emile/ixp-country-jedi/latest/ZA/geopath/

Page 38: Network Visualisation: Focus on RIPE Atlas

RIPE AtlasCommand Line Tool

Page 39: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 39

Command Line Tool

• Access RIPE Atlas from the terminal / shell console

• Quick and dirty shortcuts for network troubleshooting

• FLOSS (free software / open-source) tools - Written and maintained by the RIPE NCC

- Open to community contributions

Page 40: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 40

Command Line Tool

• Before you can use the toolset: - Download the tools

- Install

- Configure

- ripe-atlas configure --set authorisation.create=MY_API_KEY

• You need to have one (or more) API Keys - https://atlas.ripe.net/keys/

Page 41: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 41

Command Line Tool

• Source: - https://github.com/RIPE-NCC/ripe-atlas-tools/

• Documentation: - https://ripe-atlas-tools.readthedocs.org/

• Included in the Linux / BSD distributions: - OpenBSD, FreeBSD, Gentoo, Arch, Debian and Ubuntu

(in progress: Fedora, Windows)

Page 42: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 42

Command Line Tool

• Simple: one-off, using default values (50 probes to “target”)

• $ ripe-atlas measure ping --target wikipedia.org

Page 43: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 43

Command Line Tool

• Geo-specific using 20 probes from ZA: - $ ripe-atlas measure ping --target example.com --probes 20

--from-country za

• 20 ZA probes that support IPv6: - $ ripe-atlas measure ping --target example.com

-- probes 20 --from-country za —include-tag system-ipv6-works

• Create a recurring measurement: - $ ripe-atlas measure ping —target example.com --interval

3600

Page 44: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 44

Exercise V

• Make a note to try it at home!

Page 45: Network Visualisation: Focus on RIPE Atlas

RIPE AtlasRIPE Atlas APIs

Page 46: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 46

Rest API

• https://atlas.ripe.net/docs/api/v2/manual/

Page 47: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 47

Streaming API

• RIPE Atlas streaming allows users to receive measurement results as soon as the probes send them, in real time - Publish / subscribe through web sockets

- https://atlas.ripe.net/docs/result-streaming/

• Two types of data: - Measurement results

- Probe connection status events

Page 48: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 48

User-Defined Measurements

• Credit systemhttp://sg-pub.ripe.net/demo-area/atlas-stream/dns-instances.html

Page 49: Network Visualisation: Focus on RIPE Atlas

RIPE AtlasDIY Visualisation

Page 50: Network Visualisation: Focus on RIPE Atlas

Christian Teuschel | iWeek ZA | September 2016 50

DIY Visualisation

• Build a simple visualisation - https://atlas.ripe.net/webinar/streaming01.html

- Open the console of your browser

- Download the source code and edit the behaviour