34 - idnog03 - fakrul alam (apnic) - securing global routing system and operators approach

24
Issue Date: Revision: Securing the Global Routing System and the Approach of Operators Fakrul Alam Senior Training Officer [email protected] [20 July 2016] [2.0] IDNOG3 28 July 2016, Jakarta, Indonesia

Upload: indonesia-network-operators-group

Post on 15-Apr-2017

445 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Issue Date:

Revision:

Securing the Global Routing System and the Approach of Operators

Fakrul AlamSenior Training [email protected]

[20 July 2016]

[2.0]

IDNOG328 July 2016, Jakarta, Indonesia

Page 2: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Incidents

2

Page 3: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Motivations!

3

Page 4: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Current practice

4

Receive Request

LOA Check

Create associate Prefix / AS

Filter

Page 5: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Tools & techniques

• Manual LoA Check– Whois search on the customer’s IP address from the IRR database– Find the admin-c / tech-c contact email address from the database

search and email them for verification– Check corresponding “route objects”

• Automated LoA Check– Fetch the routing policy from the IRR Database– Generate associate prefix/AS filter– Mostly done using RPSL

• RPKI– Check and validate prefix origin cryptographically

5

Page 6: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

LoA check

6

• The system is sometimes overly complicated, and lacks sufficient examples

• End users cannot figure it out, which means another layer of support structure must be added, or proxy registration must be implemented

Page 7: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

LoA check & RPSL

7

A publicly accessible description of every import and export policy to every transit, peer, and customer is difficult to maintain, and is not in the best business interests of many ISPs

Page 8: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

RPKI implementation

• Origin validation

• Hosted CA– Easy to deploy, but have to trust a third party with your private key

• Delegated– Complexity in installing the CA, generating ROAs, and publishing URI

and point TA

• Upgrade at least ASBRs to RPKI capable code

8

Page 9: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Technology & learning curve

9

RPSL RFC2622

RPSLng RFC4012

RPKI RFC6810

Page 10: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

But how are operators adopting and implementing?

10

Page 11: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Distribution of prefixes

11

Total Prefixes : 650772 / 6th July 2016

Page 12: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Prefixes with IRR data

12

Violations: 80794 (19.53%)

Consistent: 332981 (80.47%)

Page 13: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

IRR data violations example

13

Page 14: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Prefixes with RPKI

14

Violations: 775 (3.82%)

Consistent: 19522 (96.18%)

Violations: 2398 (13.56%)

Consistent: 15289 (86.44%)

Page 15: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

RPKI data violation example

• Most of the cases involve an invalid prefix (fixed length mismatch)– Create ROA for /22 but announce 24

• Invalid origin AS is also visible

15

Page 16: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

RPKI data violation example

16

Page 17: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

How about Indonesia?

17

Page 18: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Indonesia

18

http://rpki.apnictraining.net/output/id.html

Total ASNs delegated by RIR: 166Visible IPv4 routes: 7305Visible IPv6 routes: 299

Page 19: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

IPv4 prefixes announcement

19

source : http://www.ris.ripe.net/dumps/riswhoisdump.IPv4.gzdate : 21 June 2016

1 1 5 10 75 12 36 68 340 533981

1243

3995

1 1 30

500

1000

1500

2000

2500

3000

3500

4000

4500

SUBNET 11 13 14 15 16 17 18 19 20 21 22 23 24 26 27 29

IPV4 PREFIXES DISTRIBUTION BY SUBNET

Page 20: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

IPv6 prefixes announcement

20

source : http://www.ris.ripe.net/dumps/riswhoisdump.IPv6.gzdate : 21 June 2016

1

26

5 2 5

27

13 2 3

114

523

4

50

3 160

20

40

60

80

100

120

SUBNET 31 32 33 34 36 38 40 44 47 48 60 64 125 126 127 128

IPV6 PREFIXES DISTRIBUTION BY SUBNET

Page 21: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Summary

• RPKI adoption is growing– In most cases, operators create ROAs for min length and advertise

the longest prefix– Some ROAs are invalid due to further allocation to customers

• BGP operations and security – draft-ietf-opsec-bgp-security-07

21

Page 22: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Data collection

• OpenBMP– https://github.com/OpenBMP/openbmp

• RPKI Dashboard– https://github.com/remydb/RPKI-Dashboard

• RIPE NCC RPKI Statistics– https://lirportal.ripe.net/certification/content/static/statistics/world-

roas.html

• RIPE NCC RPKI Validator API– http://rpki-validator.apnictraining.net:8080/export

22

Page 23: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Thank You

Page 24: 34 - IDNOG03  - Fakrul Alam (APNIC) - Securing Global Routing System and Operators Approach

Your views matter!

Closes 5 August 2016 Your views guide the future direction of APNIC

https://survey.apnic.net

24