BGP Routing Security at an ISP Edge: RPKI and ASPA, IRR Filters, an IXP Route Server, BMP and DDoS Response

Secure an internet provider's BGP edge end to end: publish ROAs and an ASPA object from your own Krill certificate authority, validate with two relying parties over RTR, enforce origin validation, ASPA path checks, BGP roles and registry-generated filters in BIRD 3, build an exchange route server with arouteserver, watch neighbours over BMP, blackhole attacks within guardrails, and change routers safely with timed rollback.

Network Engineer. Advanced.

What you will build and explain

  • Explain hijacks, forged origins and route leaks, and map each to the check that stops it: registry filters, RPKI origin validation, ASPA path verification, BGP roles with Only-to-Customer, limits and session protection.
  • Run an RPKI certificate authority with Krill and publish ROAs and an ASPA object through a plan that refuses any change that would invalidate your own announcements.
  • Operate two independent relying parties (Routinator; rpki-client with StayRTR over SSH), deliver their data to routers over RTR, and explain and monitor what happens when the data is lost.
  • Write an ordered BGP import pipeline in BIRD 3 with bogon, length, path, provider-in-path, RPKI, ASPA and registry stages, tag-based export, and policy tests that run the filters in a real BIRD.
  • Generate customer filters from an IRR with bgpq4 and an exchange route server's configuration with arouteserver, and catch a customer AS-SET that lets a provider's routes in.
  • Monitor what neighbours send with BMP and Rotonda, alert on hijacks and leaks with tested Prometheus rules, and blackhole volumetric attacks with RTBH inside guardrails enforced on the routers.
  • Change routers safely with BIRD's timed rollback, roll TCP-AO keys without a session reset, and drain sessions with graceful shutdown before maintenance.

Before you begin

  • IPv4 and IPv6 addressing; what eBGP and iBGP are and how BGP sessions and best-path selection work; Linux shell use; reading short Bash and Python programs; Docker and Git basics.
  • A Linux host (x86_64 or arm64) with 4 vCPUs, 8 GB of memory and 30 GB of free disk, a kernel of 6.7 or later with TCP-AO, and Docker 27+ with Compose. RPKI, ASPA, Krill, Routinator, rpki-client, StayRTR, IRRd, bgpq4, BIRD 3, arouteserver, BMP, Rotonda, flow export, TCP-AO, Prometheus and Alertmanager are taught.

Who this is for

For network engineers who run BGP at an internet provider, a hosting company, an exchange or an enterprise with its own address space and transit, and want to stop trusting neighbours: RPKI and ASPA from their own certificate authority, two relying parties over RTR, registry-generated filters and BGP roles in BIRD, an exchange route server, BMP monitoring, guarded RTBH and changes with timed rollback.

Curriculum

Learning topics (15)
  1. Wrenfield's edge, its neighbours and the checks between them

    This page explains how the lab fits together: which networks it contains and how they are related, which component checks what, which way each kind of information flows, who may change what, and why the design is this way rather than another. The lessons go deeper into each part; this is the map they hang on.

  2. Prepare the lab host, and the ideas the lessons build on

    This lesson checks that the machine you will run the lab on is ready, and refreshes five ideas the later lessons use without stopping: how BGP chooses a route, communities, prefix lengths and longest-prefix match, certificate chains, and how Containerlab builds a network out of containers. If you work with BGP every day, skim the explanations and run the checks.

  3. Why BGP trusts too much, and what MANRS asks of a network

    BGP was designed for a small number of networks that knew each other. A BGP speaker believes what its neighbour tells it: that a prefix exists, that it can be reached through the AS path in the announcement, and that the AS at the end of that path originated it. Nothing in the protocol proves any of that. This lesson explains what goes wrong because of it, the business relationships that decide what should be announced where, and the checks this project adds to Wrenfield's ed

  4. Routing registries: RPSL objects, IRRd and bgpq4

    The oldest answer to "may this customer announce this prefix?" is a routing registry. Networks write down which prefixes they originate and which networks they announce on behalf of; their providers read that record and build filters from it. This lesson explains the records, runs the lab's registry with IRRd, generates Wrenfield's customer filters from it with bgpq4, and shows the one way the registry alone lets Wrenfield down, so that lesson 7 can show RPKI closing it.

  5. RPKI: resource certificates, ROAs, ASPA and running Krill

    The routing registry records what networks claim. The Resource Public Key Infrastructure (RPKI) records what the holders of address space have signed, with keys that chain back to the registries that allocated the space. This lesson explains the certificates and the two kinds of signed object this project uses (ROAs and ASPA objects), runs the lab's certificate authority with Krill, and publishes Wrenfield's objects through a plan that refuses to break Wrenfield's own announc

  6. Relying parties and RTR: Routinator, rpki-client and StayRTR

    Routers do not fetch or check certificates. A relying party (also called an RPKI validator) does that work: it starts from the trust anchors, walks every repository, checks every signature, manifest and CRL, and produces the list of validated payloads. Routers fetch that list from it over the RPKI-to-Router protocol (RTR). This lesson runs two independent relying parties, explains how RTR keeps routers current and what they do when the data stops coming, and connects BIRD to

  7. BIRD 3 at the edge: tables, filters and the import pipeline

    Wrenfield's two edge routers and the exchange's route server run BIRD, an open-source routing daemon from CZ.NIC widely used at internet exchanges and by networks that want their routing policy as a program rather than as vendor configuration. This lesson reads the configuration edgeops render writes for the edges: the tables, the protocols, the twelve ordered stages every route from outside passes through, the export rules, and the policy tests that run the filters in a real

  8. Route origin validation in BIRD, and what happens when data is lost

    Lesson 4 published Wrenfield's ROAs and lesson 5 delivered every network's VRPs to the routers. This lesson uses them: stage 9 of the import pipeline rejects routes that RPKI says are invalid. It explains the check BIRD makes, why Wrenfield rejects invalid routes and does nothing else with the result, how BIRD changes its decisions when the data changes, and what drill 3 measures when both relying parties disappear. It ends with the other side of origin validation: making sur

  9. Route leaks: ASPA verification, BGP roles and Only-to-Customer

    Origin validation stops a network from announcing space it does not hold. It cannot see a route leak, because a leaked route has the right origin: the mistake is in the middle of the path, where a network passed the route somewhere it should not have. This lesson covers the three checks that look at the path: the provider-in-path stage, ASPA path verification, and BGP roles with the Only-to-Customer (OTC) attribute. Each one stops leaks the others miss, and drill 2 shows a re

  10. The exchange's route server, configured by arouteserver

    At an internet exchange, many networks share one switched network and peer with each other across it. With fifty members, a full mesh of bilateral sessions would be over a thousand sessions, each negotiated and maintained. A route server replaces most of them: each member opens one session to it, and the route server passes every member's routes to every other member. That puts one router in a position of great trust, and an exchange that runs one must filter what members sen

  11. Protecting sessions: TCP-AO, MD5, GTSM and prefix limits

    Every check so far judges routes. This lesson protects the sessions that carry them. A BGP session is a long-lived TCP connection; anyone who can inject packets into it can reset it or, in principle, insert routes. And a session from a broken neighbour can flood the router with routes faster than any filter can help. Four mechanisms answer those risks: TCP authentication (MD5 on most sessions, TCP-AO between Wrenfield's edges), the TTL check called GTSM, and limits on how man

  12. Seeing what peers send: BMP, Rotonda and alerts

    Filters decide; they do not tell anyone. When stage 9 rejects a hijack of a customer's prefix, the customer's space is safe at Wrenfield's edge, but the hijack is real and other networks may be accepting it. And when a mistake gets past every filter, someone has to notice it before customers do. This lesson adds the eyes: the BGP Monitoring Protocol (BMP) streams every route each session receives to a collector, Rotonda stores them, the watch service judges them, and Promethe

  13. Flow records, attack detection and remotely triggered blackholing

    A volumetric denial-of-service attack sends more traffic at an address than the links in front of it can carry. Orchard Clinics buys a 1 Gbit/s link from Wrenfield; a flood of 10 Gbit/s at one of Orchard's servers fills that link and takes every other Orchard service down with it, and it can fill Wrenfield's transit links too, hurting every customer. Wrenfield cannot filter the attack at its edge: by the time packets reach the edge, the transit links have already carried them

  14. Gated changes, timed rollback and graceful shutdown

    Most routing outages are not attacks. They are changes: a filter with a typo, a neighbour's AS number mistyped, a session reset at the busiest hour. This lesson covers how a change reaches Wrenfield's routers: every change is rendered, parsed, policy-tested and diffed into a plan; a plan is applied with BIRD's timed rollback, so a change that breaks something undoes itself even if the person or the tool applying it has gone; and planned work on a session uses graceful shutdow

  15. Security, runbooks, and what production adds

    The earlier lessons built protections into routing. This one looks at the system that builds them: who can change what, where the secrets live, what an on-call engineer does when each alert fires, and what changes between this lab and a real edge. It ends with the decisions the design made and the ones it would revisit.

Practical build steps (7)
  1. Prepare the lab host

    Starting point: a copy of the project source and a Linux machine you control. Finishing point: the host has the resources, kernel and tools the lab needs, and the static checks pass on it.

  2. Start the platform and seed the registry

    Starting point: a host that passed the static checks. Finishing point: secrets generated, the platform and the ten routers running with bootstrap configurations, and the lab's registry and RPKI certificate authorities seeded.

  3. Publish Wrenfield's ROAs and ASPA object

    Starting point: the platform running and seeded; both relying parties serving the other networks' objects. Finishing point: Wrenfield's two ROAs and its ASPA object published by its own certificate authority and served by both relying parties, and a harmful change refused before it was signed.

  4. Build the route server and the edges

    Starting point: Wrenfield's RPKI objects published; the routers running with bootstrap configurations. Finishing point: the exchange's route server and both edges built from the intent, every BGP and RTR session established, every network reachable from Wrenfield's client, and one registry change of your own planned and applied.

  5. Drills: a hijack, a leak and lost validators

    Starting point: the edges and the route server built; every session up. Finishing point: you have watched each routing check stop the attack it exists for, and seen what happens when the RPKI data disappears.

  6. Drills: an attack, a flood, maintenance and a key rollover

    Starting point: the edges built and the routing drills done. Finishing point: you have watched RTBH stop an attack within its guardrails, a receive limit contain a misbehaving customer, graceful shutdown move traffic before maintenance, a TCP-AO key roll over without a reset, and BIRD undo a change by itself.

  7. Remove the lab

    Starting point: the lab in any state, including after a failed step. Finishing point: no container, volume, network or generated file of the lab remains, checked independently, and the cloud host (if you used one) deleted.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

Runs entirely on a Linux host you provide; the project itself has no cloud resources. If that host is a cloud virtual machine, its provider bills it by the hour from creation until you delete it. Cleanup removes everything the lab created on the host; deleting a cloud instance is your last step.

Licence and completion

Vectametric Project Source Licence (2026-09-27): personal learning, modification/deployment and attributed portfolio/interview demonstrations are permitted. Lawfully obtained copies remain usable after online access expires. Do not redistribute original source or the Source Pack; commercial/client production use requires separate permission. Third-party terms remain separate. See included LICENSE.txt and the Project Source Licence section of the site Terms.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy