Database Tutorial 3 September, Kitakyushu, Japan 14 th APNIC Open Policy meeting APNIC.

Slides:



Advertisements
Similar presentations
Protecting Resource Records in APNIC Whois Database Database SIG APNIC-16, Seoul August 2003 Sanjaya
Advertisements

APNIC Internet Routing Registry Routing SIG APNIC-15, Taipei 26 February 2003.
Managing IP addresses for your private clouds 2013 ASEAN CAS Summit Bangkok, Thailand 7 February 2013 George Kuo Member Services Manager.
Handling Internet Network Abuse Reports at APNIC 21 October 2010 LAP-CNSA Workshop, Melbourne George Kuo.
Save Vocea/ Sanjaya - APNIC PacINET November 2002, Fiji APNIC Whois Tutorial.
Database Update Kaveh Ranjbar Database Department Manager, RIPE NCC.
Sweeping lame DNS reverse delegations APNIC16 – DNS Operations SIG Seoul, Korea, 20 August 2003.
1 prop-018-v001 Protecting historical records in the APNIC Whois Database Project Update DB SIG APNIC18 2 September 2004 Nadi, Fiji Sanjaya, Project Manager,
Routing Registries What are they, how do they work, and why should I care? Larry Blunk, Merit Network, Inc.The Quilt Peering Workshop, Fall 2006.
IPv6: The Future of the Internet? July 27th, 1999 Auug.
Welcome! APNIC Members Training Course Internet Resource Management I 27 April 2004, Melbourne.
APNIC Internet Routing Registry An introduction to the IRR TWNIC Meeting, 3 December 2003 Nurani Nimpuno, APNIC.
Welcome! APNIC Members Training Course Internet Resource Management Essentials 20 October 2003, Kuala Lumpur, Malaysia In conjunction with the 1 st ASEAN.
RPSL: Police’ing’ the Net Anwar M. Haneef Electrical and Computer Engineering University of Massachusetts, Amherst.
Internet Routing Registry & RPKI Tutorial Nurul Islam Roman, APNIC.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 7: Planning a DNS Strategy.
APNIC Training Internet Resource Management Essentials June 2007, Ulaanbaatar, Mongolia Hosted by DATACOM.
Andrei Robachevsky, Shane Kerr. APNIC/APRICOT2001, February 2001, Kuala Lumpur, Malaysia. 1 Routing Registry Consistency Check Presented.
Reverse DNS. Overview Principles Creating reverse zones Setting up nameservers Reverse delegation procedures.
Presented By: Product Activation Group Syndication.
Local Internet Registries. Training Course. 1 Welcome to the IP Tutorial 26 January 2001 RIPE Network Co-ordination Centre
Local Internet Registries. Training Course. 1 Welcome to the Local Internet Registry Course RIPE Network Co-ordination Centre NEW version.
Anne Lord & Mirjam Kühne. AfNOG Workshop, 10 May The whois Database Introduction and Usage.
Providing A Subset of Whois Data Via DNS Shuang Zhu Xing Li CERNET Center.
Local Internet Registries. Training Course. 1 Welcome to the Local Internet Registry Course RIPE Network Co-ordination Centre NEW version.
NATO Advanced Networking Workshop. Ljubljana, 19 September “How to Run a Local Internet Registry” or all your IPs are belong.
A S I A P A C I F I C N E T W O R K I N F O R M A T I O N C E N T R E Database SIG APNIC Database Privacy Issues 1 March 2001 APRICOT, Malaysia Fabrina.
Network Abuse Handling in CNNIC and JPNIC Terence Zhang, CNNIC Izumi Okutani, JPNIC.
Scaling IXPs Scalable Infrastructure Workshop. Objectives  To explain scaling options within the IXP  To introduce the Internet Routing Registry at.
The APNIC Whois Database Introduction and Usage. whois.apnic.net whois.ripe.netwhois.arin.net Server Unix Client ‘X’ Client Command Prompt / Web Interface.
Database Update Paul Palse Database Manager, RIPE NCC.
Part 2.
Database Update Kaveh Ranjbar Database Department Manager, RIPE NCC.
Welcome! APNIC Members Training Course Internet Resource Management Essentials 31 August 2004, Nadi, Fiji APNIC -18 Open Policy Meeting.
IP address Allocation & and Requests AfNOG Workshop, May 2004 Dakar, Senegal.
NATO Advanced Networking Workshop. Ljubljana, 19 September RIPE whois Database RIPE Network Coordination Centre.
Denis Walker. RIPE 45, May 2003, Barcelona. 1 DBupdate Denis Walker RIPE NCC.
Regional Internet Registries Statistics & Activities IETF 55 Atlanta Prepared By APNIC, ARIN, LACNIC, RIPE NCC.
APNIC Internet Routing Registry An introduction to the IRR TWNIC Meeting, 3 December 2003 Nurani Nimpuno, APNIC.
Internet2 Routing Working Group Merit Route Registry Update July 30, 2002 Larry Blunk.
1 Use role objects …to maintain your contacts in APNIC whois.
2016 Services Roadmap APNIC Services George Kuo 9 September 2015 Jakarta.
18th APNIC Open Policy Meeting SIG: DB Thursday 2 September 2004 Nadi, Fiji Chair: Xing Li.
APNIC Status Report ARIN X Eugene, Oregon Oct 30-Nov 1, 2002.
Consultation on Policy Documentation Adam Gosling APNIC 40 Policy SIG 10 September 2015.
Prop-007-v001 Privacy of customer assignment records Project Update DB SIG APNIC 18 1 September 2004 Nadi, Fiji Sanjaya, Project Manager, APNIC Secretariat.
1 To Insert AS Origin field into APNIC IP address database Xing Li Shuang Zhu CERNET
Andrei Robachevsky. APNIC/APRICOT2001, February 2001, Kuala Lumpur, Malaysia. 1 New Version of the RIPE Database Andrei Robachevsky.
Whois Domain Object Authorisation APNIC18 – DB SIG Nadi, Fiji 2 September 2004.
MyAPNIC Survey 2015 What have we learned? APNIC Services Vivek Nigam 9 September 2015 Jakarta.
APNIC Security Update APSIRCC 2002 Tokyo, 25 March 2002.
Andrei Robachevsky. 12th APNIC Open Plicy Meeting, August 2001, Taipei, Taiwan. 1 New Version of the RIPE Database Andrei Robachevsky.
Whois Database Upgrade Project Update APNIC-14 DB-SIG 4 September 2002
Local Internet Registries. RIPE 47 - IP Request Tutorial. 1 Welcome to the RIPE NCC IP Request Tutorial January 27, 2003 RIPE Network.
APNIC Internet Routing Registry Tutorial Seoul 19 August 2003.
A S I A P A C I F I C N E T W O R K I N F O R M A T I O N C E N T R E Autonomous System Numbers How to describe Routing Policy.
APNIC abuse procedures Network abuse BOF. Types of abuse reported Spam Hacking Viruses Identity/credit card fraud Threats and stalking.
A S I A P A C I F I C N E T W O R K I N F O R M A T I O N C E N T R E APNIC Open Address Policy Meeting APNIC Reverse DNS October 26th, Brisbane Bruce.
17 th APNIC Open Policy Meeting APNIC IPv6 Address Guidelines Akira Nakagawa )/ POWEREDCOM Billy MH Cheon / KRNIC Toshiyuki.
JPNIC UPDATE ~ Personal Data Protection in JPNIC WHOIS ~ Toshiyuki Hosaka Japan Network Information Center (JPNIC) September 7 th, 2005 NIR SIG APNIC
The APNIC Internet Routing Registry Database SIG APRICOT, Bangkok 5 March 2002.
RIPE 47: IPv6 WG 27 January 2004 Hotel Krasnapolsky, Amsterdam Jeroen Massar IPv6 Golden Networks.
1 FRED – open source registry system CZ.NIC, z.s.p.o. Jaromír Talíř
Whois Update Guangliang Pan. Overview Differences between APNIC and RIPE Whois Databases Change mnt-by from member’s maintainer to APNIC-HM for aut-num.
AFRINIC Services Update
RIPE Whois Database Software Recent Changes
A Proposal to Protect Historical Records in APNIC Whois Database
Requirements for running a local WHOIS service
Status Report on Policy Implementation at the APNIC Secretariat
By Keessun Fokeerah Member Services(MS) Team
Presentation transcript:

Database Tutorial 3 September, Kitakyushu, Japan 14 th APNIC Open Policy meeting APNIC

2 Introduction Presenters –Nurani Nimpuno – Training Development Officer –Champika Wijayatunga – Training Manager

3 Overview  APNIC whois database  The database  RPSL  Changes with v3  Querying the database  Database updates  APNIC IRR

4 What is the APNIC Database? Public network management database –Operated by IRs Tracks network resources IP addresses, ASNs, Reverse Domains, Routing policies Records administrative information Contact information (persons/roles) Authorisation

5 Object Types OBJECT PURPOSE personcontact persons rolecontact groups/roles inetnumIPv4 addresses inet6numIPv6 addresses aut-numAutonomous System number as-setgroup of autonomous systems domainreverse domains routeprefixes being announced mntner(maintainer) database authorisation

6 Maintainers, Inetnum Objects & Person Objects inetnum: – … admin-c: KX17-AP tech-c: ZU-AP … mnt-by: MAINT-WF-EX … IPv4 addresses person: … nic-hdl: ZU3-AP … Contact info person: … nic-hdl: KX17-AP … Contact info mntner: MAINT-WF-EX… Data protection

7 Why Use the Database? Register use of Internet Resources IP assignments, reverse DNS, etc –Ascertain custodianship of a resource –Fulfill responsibilities as resource holder Obtain details of technical contacts for a network Investigate security incidents Track source of network abuse or “spam”

8 Questions?

Introduction to

10 Database Upgrade From: On Behalf Of APNIC Secretariat Sent: Tuesday, August 13, :07 PM To: Cc: Subject: [apnic-announce] APNIC Whois Database Upgrade - 20 August 2002 _____________________________________________ APNIC Whois Database Upgrade - 20 August 2002 _____________________________________________ Dear Colleague, This is a reminder that the APNIC Whois Database will be upgraded to RIPE v3 database software on Tuesday 20 August All records in the APNIC Whois Database will be migrated to the new version at this time.

11 Database Upgrade Time Line V2 APIRR V3 APNIC whois 20 August mid December IRR APNIC Whois v2 db (RIPE-181) APNIC Whois v3 db (RPSL) Integrated whois v3 db & IRR (RPSL)

12 Why ? RPSL compliant database Enhanced security and syntax checking Better operational platform –(response time, enhanced mirroring) Richer query options Software platform to support one of APNIC’s future task as Internet Routing Registry

13 What are the Changes ? Command interface –More options Object attributes New Objects –Especially related to RPSL aut-num ……… ………

14 Better Functionality Security and Authorisation –PGP signed updates possible Advanced query options Updating procedures Mirroring procedures

15 Facts About the Upgrade Full upgrade from v2 to took place 20 August All data successfully converted to RPSL compliant data Near-real-time mirrors (NRTM) of Whois data

16 Questions?

RPSL Routing Policy Specification Language

18 What is RPSL? Routing Policy Specification Language –Object based language Based on RIPE-181 –Uses type:value notation to represent objects IETF Proposed standard –RFC 2622

19 Features of RPSL Support the exchange of complex routing policy information between ISPs in a secure and openly agreed manner –ISPs can configure filters for their boarder routers, or check router configurations against routing policies AS1 AS2

20 Why RPSL ? More powerful language –RPSL is more expressive than RIPE-181 –Policies can be expressed at the AS level Policies can be detailed – router configurations

21 Objects in RPSL Format of RPSL is similar to RIPE-181 RPSL vs. RIPE-181 –Line continuation possible Space, tab, + –Comments Begin with # Can be anywhere inside an object But cannot start at the beginning of a line (column 0)

22 Objects in RPSL Object ends at blank line (\n\n) The order of attributes is flexible Empty attributes not allowed Empty attributes are not removed

23 Objects in RPSL RPSL vs. RIPE-181 –No prefix notation for inetnum objects Range notation only accepted –Example: a.b.c.d - w.x.y.z –Some attributes are now mandatory –Mnt-by is mandatory in all objects !

24 Questions?

Changes with

26 Database Objects RPSL syntax extensions apply to all objects end of line comments, line continuation, order of attributes etc New objects as-block, as-set (as-macro), route-set (community) peering-set, filter-set, rtr-set New attributes member-of, mbrs-by-ref, mnt-routes, referral-by

27 Modified Object: Maintainer Object mntner:MAINT-WF-EX descr: Maintainer for ExampleNet Service Provider country: WF admin-c: ZU3-AP tech-c: KX17-AP upd-to: mnt-nfy: auth: CRYPT-PW apHJ9zF3o mnt-by: MAINT-WF-EX referral-by: MAINT-APNIC-AP changed: source: APNIC New in V3! referral-by: required in the mntner object refers to the maintainer that created this maintainer

28 inetnum: netname: V3TEST-INETNUM descr: V3 Test Inetnum Object descr: Created by Miwa Fujii at APNIC country: AU admin-c: NS94-APNIC tech-c: NS94-APNIC status: ALLOCATED PORTABLE remarks: V3 TEST Inetnum Object notify: mnt-by: APNIC-HM mnt-lower: MAINT-AU-V3TEST changed: source: APNIC Modified Object: Inetnum Object mandatory in v3! range notation

29 aut-num: as64850 as-name: FIRST-AS-MONA descr: a test asn assinged import: from AS10097 accept ANY import: from as9514 accept ANY export: to AS10097 announce AS64850 export: to AS9514 announce AS64850 admin-c: NS1-APNIC tech-c: NS2-APNIC mnt-by: MAINT-V3-MONA changed: source: APNIC Modified Object: Aut-num routing policy * replaces “as-in” and “as-out” *

30 New Object : as-set Previously as-macro –Defines a set of aut-num objects The "as-set:" attribute defines the name of the set The "members:" attribute lists the members of the set Represents list of AS numbers or other as-set names

31 New Object : as-set as-set: [mandatory] [single] [primary/look-up key] descr: [mandatory] [multiple] members: [optional] [multiple] mbrs-by-ref: [optional] [multiple] [inverse key] remarks: [mandatory] [multiple] [inverse key] admin-c: [mandatory] [multiple] [inverse key] notify: [optional] [multiple] [inverse key] mnt-by: [mandatory] [multiple] [inverse key] changed: [mandatory] [multiple] source: [mandatory] [single] New in V3! as-macro in RIPE-181 as-list in RIPE-181 whois –t as-set

32 New Object: as-block Defines a range of AS numbers delegated to a given repository (RIR or NIR) Authorisation of the creation of aut-num objects within the range specified by the "as-block:" attribute as-block: - –Specifies the range of ASNs that the as-block object represents New in V3!

33 As-block Template as-block: [mandatory] [single] [primary/look-up key] descr: [optional] [multiple] remarks: [optional] [multiple] tech-c: [mandatory] [multiple] [inverse key] admin-c: [mandatory] [multiple] [inverse key] notify: [optional] [multiple] [inverse key] mnt-lower: [optional] [multiple] [inverse key] mnt-by: [mandatory] [multiple] [inverse key] changed: [mandatory] [multiple] source: [mandatory] [single] New in V3! whois –t as-block

34 Common Errors – Aut-num object Creating an aut-num outside ‘as-block’ Date: Wed, 31 Jul :20: From APNIC Whois Management To: Subject: FAILED: EXAMPLENET-AS Create AS1#13 Part of your update FAILED For help see or send a message to auto- With 'help’ in the subject line New FAILED: [autnum] AS1 Authorisation failed, request forwarded to maintainer aut-num: AS1 as-name: EXAMPLENET-AS descr: AS For ExampleNet Internet Service Provider country: WF import: FROM AS2 ACCEPT ANY import: FROM AS3 ACCEPT ANY export: TO AS2 ANNOUNCE AS1 export: TO AS3 ANNOUNCE AS1 admin-c: ZU3-AP notify: changed: source: APNIC

35 Questions?

Database Queries

37 Basic Database Queries 1.Unix whois –h whois.apnic.net 2.Web interface Look-up keys usually the object name –Check the object template for look-up keys whois –t

38 Queries - Primary and Lookup keys Performed as an argument to a query – – - –

39 Database Query - UNIX % whois % whois zu3-ap % whois “zane ulrich” person: Zane Ulrich address: ExampleNet Service Provider address: 2 Pandora St Boxville address: Wallis and Futuna Islands country: WF phone: fax-no: nic-hdl: ZU3-AP mnt-by: MAINT-WF-EXAMPLENET changed: source: APNIC

40 DB Query – Person Object -h whois.apnic.net kx17-ap % Rights restricted by copyright. See person: Ky Xander address: ExampleNet Service Provider address: 2 Pandora St Boxville address: Wallis and Futuna Islands country: WF phone: fax-no: nic-hdl: KX17-AP mnt-by: MAINT-WF-EXAMPLENET changed: source: APNIC

41 DB Query – Maintainer Object -h whois.apnic.net MAINT-WF-EX % Rights restricted by copyright. See mntner:MAINT-WF-EX descr: Maintainer for ExampleNet Service Provider country: WF admin-c: ZU3-AP tech-c: KX17-AP upd-to: mnt-nfy: auth: CRYPT-PW apHJ9zF3o mnt-by: MAINT-WF-EX referral-by: MAINT-APNIC-AP changed: source: APNIC

42 IP Address Queries inetnum, inet6num store information about ranges of IP addresses Default lookup for IP ranges –When no flags are specified whois server will try to find an exact match for that range whois –h whois.apnic.net

43 IP Address Queries More and less specific queries –("-M", "-m", "-L" and "-l" ) -l –Returns first level less specific inetnum, inet6num excluding exact matches whois -l [customer’s IP range] -L –Returns all level less specific inetnum, inet6num including exact matches. New in V3!

44 IP Address Queries -m –Returns first level more specific inetnum, inet6num excluding exact matches. -M –Returns all level more specific inetnum, inet6num excluding exact matches.

45 IP Address Lookups -x –Only an exact match on a prefix –If no exact match is found, no objects are returned –whois -x [IP range] -d –Enables use of the "-m", "-M", "-l" and "- L" flags for lookups on reverse delegation domains. New in V3! New in V3!

46 inetnum: – /20 inetnum: – /8 Database Query - inetnum /25 inetnum: whois -l /20 whois /20 whois –m /20 inetnum: /26 inetnum: /24 More specific  (= smaller blocks) Less specific  (= bigger block)

47 inetnum: /20 inetnum: – /8 Database Query - Inetnum whois -L /20 (all less specific) whois /20 whois –m /20 (1 level more specific) inetnum: /24 inetnum: /26 inetnum: whois -l /20 (1 level less specific) whois –m /20 (all more specific) /16

48 Inverse Queries Inverse queries are performed on inverse keys See object template (whois –t) Returns all objects that reference the object with the key specified as a query argument Practical when searching for objects in which a particular value is referenced, such as your nic-hdl

49 Inverse Queries - Syntax whois -i –-i

50 Inverse Queries - Examples whois –i tech-c KX17-AP all objects with tech-c KX17-AP whois -i admin-c,tech-c,zone-c -T domain KX17-AP all domain objects with admin-c, tech-c or zone-c KX17-AP whois -ipn KX17-AP all objects referencing KX17-AP whois -i mnt-by MAINT-WF-EX All objects maintained by MAINT-WF-EX whois -i notify All objects with the notify New in V3!

51 Questions?

Database Updates

53 Database Update Process – requests to –Each request contains an object template Update Request Template Parse Warnings/Errors returned Error Auth. Data Base Whois Server whois.apnic.net

54 Updates In the v3 Database Create, modify or delete MIME support text/plain, application/pgp-signature, application/pgp multipart/mixed, multipart/alternative, multipart/signed, message/rfc822 each MIME part is treated as a separate submission

55 Object Processing – Server Checks Verifies that the syntax of an object is correct Verifies that the object passes authorisation checks Verifies that all references can be resolved without conflicts New in V3!

56 Object Processing – Server Checks Verifies that the operation does not compromise referential integrity –the deletion of an object To ensure that it is not referenced from any other object in the database Verifies that the requested nic-hdl is not in use and can be allocated Only for the creation of person or role objects that request a particular NIC handle

57 RPS Security Routing Policy System Security –RFC 2725 Stronger, hierarchical authorisation and authentication Protect your database objects! –Request for mntner object

58 Maintainer Object - Example mntner:MAINT-WF-EX descr: Maintainer for ExampleNet Service Provider country: WF admin-c: ZU3-AP tech-c: KX17-AP upd-to: mnt-nfy: auth: CRYPT-PW apHJ9zF3o mnt-by: MAINT-WF-EX referral-by: MAINT-APNIC-AP changed: source: APNIC The mntner object provides data protection for other objects

59 Maintainer Object Attributes upd-to (mandatory) notification for failed updates mnt-nfy (optional, encouraged) works like notify but for all objects that refererence this mntner mnt-by (mandatory) can reference the object itself referral-by (mandatory) references mntner object that created this object New in V3!

60 Authentication Methods ‘auth’ attribute – Strongly discouraged! – Very weak authentication. Discouraged –Crypt-PW Crypt (Unix) password encryption Use web page to create your maintainer –PGP – GNUPG Strong authentication Requires PGP keys –MD5 Soon available

61 mnt-by & mnt-lower ‘mnt-by’ attribute Can be used to protect any object Changes to protected object must satisfy authentication rules of ‘mntner’ object. ‘mnt-lower’ attribute Also references mntner object Hierarchical authorisation for inetnum, inet6num & domain objects The creation of child objects must satisfy this mntner Protects against unauthorised updates to an allocated range highly recommended!

62 Inetnum: netname: LOXINFO-TH descr: Loxley Information Company Ltd. Descr: 304 Suapah Rd, Promprab,Bangkok country: TH admin-c: KS32-AP tech-c: CT2-AP mnt-by: APNIC-HM mnt-lower: LOXINFO-IS changed: source: APNIC Authentication/Authorisation –APNIC allocation to member Created and maintained by APNIC Only APNIC can change this object

63 Inetnum: netname: SCC-TH descr: Sukhothai Commercial College Country: TH admin-c: SI10-AP tech-c: VP5-AP mnt-by: LOXINFO-IS changed: source: APNIC Authentication/Authorisation –Member assignment to customer Created and maintained by APNIC member Only LOXINFO-IS can change this object

64 Common Errors - Incorrect password Date: Wed, 31 Jul :20: From APNIC Whois Management To: Subject: FAILED: FW: Update MAINT-WF-EX with an Incorrect password Part of your update FAILED For help see or send a message to auto- With 'help'in the subject line Update FAILED: [mntner] MAINT-WF-EX Authorisation failed, request forwarded to maintainer mntner: MAINT-WF-EX descr: Maintainer for ExampleNet Service Provider country: WF admin-c: ZU3-AP tech-c: KX17-AP upd-to: mnt-nfy: auth: CRYPT-PW apHJ9zF3o referral-by: MAINT-APNIC-AP changed: source: APNIC

65 Questions?

APNIC Routing Registry Available mid December 2002

67 Why a Routing Registry? Filtering routing announcements between –Peering networks –A provider and its customer Faster network trouble shooting Useful to create router configuration Using tools such as RtConfig –(ftp://ftp.ripe.net/tools/IRRToolSet)ftp://ftp.ripe.net/tools/IRRToolSet Long term: Global view of routing policy - Improves integrity of Internet’s routing as a whole.

68 RADB ( Many ISPs use the RADB to debug routing problems automatically configure backbone routers perform network planning Internet operators also use the RADB to generate access lists for both inbound and outbound connections providing defense against bogus routes and unintentional routing leaks

69 Benefits of APNIC RR One maintainer to manage Internet resources (IPv4, IPv6, ASN) reverse DNS (in-addr.arpa, ip6.arpa) and routing information mntner inetnum (IPv4) aut-num (ASN) inet6num (IPv6) domain (in-addr) route (route)

70 Benefits of APNIC RR (2) Data integrity –APNIC able to assert resources within a registered route from APNIC resource allocations. Free to APNIC members.

71 Service Scope Routing Information Queries –From regular whois clients –From special purpose programs such as IRRToolSet –From APNIC whois web interface Support & Maintenance Similar to maintenance of Internet resources Support available through APNIC helpdesk Included in members training Mirroring Widespread mirroring

72 IRR Attributes and Objects New attributes mnt-routes inetnum & aut-num member-of cross-mnt cross-nfy mnt-lower IRR Objects route aut-num inet-rtr as-set route-set peering-set filter-set rtr-set aut-num (Already available in v3 but only useful in IRR)

73 Availability APNIC already maintains routing information currently stored in –Whois v3 based on RIPE-181 format –APIRR pilot IRR service APNIC Routing Registry service available mid December 2002

74 Questions?

Thank you