Concepts / BGP

BGP

RPKI (route origin validation)

Also called RPKI, ROA, route origin authorization, origin validation, ROV, RTR, BGP hijack, prefix hijack, match rpki invalid

Signed records saying which AS may originate a prefix, so a router can drop routes from anyone else.

The ROA names the only AS allowed to originate the prefix
The ROA names the only AS allowed to originate the prefix

The router compares each route's origin AS with the signed record: a match is valid, a different origin is invalid and dropped, and a prefix with no record is not found and kept. Only the origin is checked, not the rest of the path.

RPKI lets an address holder sign which AS may originate its prefix, so routers can drop a hijacked route. A ROA holds: prefix, longest length allowed, origin AS. A validator checks ROAs and feeds routers over RTR. Each route is then valid, invalid (wrong origin or too long) or not found; match rpki invalid with deny drops the invalid. A forged path ending in the right AS still passes.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab