Skip to main content

Peering Workbench — consolidated ASN, WHOIS, PeeringDB, RPKI, IRR, DNS, and Looking Glass desktop tool for network engineers

Project description

⚡ pwb — Peering Workbench

A consolidated desktop tool for network engineers who are tired of juggling browser tabs between PeeringDB, WHOIS, looking glass sites, and RPKI validators. One app, one search bar, every lookup you need.

Built with PyQt6. All APIs are free and require no keys.

PyPI Python License


Install

pip install pwb

For Team Cymru IP→ASN lookups and the DNS Lookup tab (recommended):

pip install pwb[cymru]

Launch

python -m pwb

Or if installed via pip:

peering-workbench

Features

⚡ Quick Lookup Bar

The toolbar input auto-detects what you type and routes to the right tab:

Input Detected as Tab
15169 or AS15169 ASN ASN Lookup
8.8.8.8 IPv4 address IP Lookup
2607:f8b0:4001::1 IPv6 address IP Lookup
1.0.0.0/24 or 2620:129::/44 Prefix (v4/v6) Prefix / LG
cloudflare.com Hostname DNS Lookup

One search bar for everything. No mode switching, no tab hunting.

🏷 ASN Lookup

Enter any ASN — pulls PeeringDB, RIPEstat, and RDAP simultaneously in background threads. Sub-tabs for each data source plus raw JSON. One-click "Open in HE" jumps to the embedded HE tab for that ASN.

  • IX presence with port speeds
  • Facility list with cities
  • Peering policy, NOC/policy email contacts
  • Announced prefixes, upstream/downstream neighbors
  • WHOIS registration, abuse contacts

ASN / PeeringDB Lookup

🌍 IP Lookup

Full context for any IPv4 or IPv6 address in a single view:

  • Team Cymru DNS-based IP→ASN mapping with resolved network name (IPv4 and IPv6)
  • RDAP network allocation and CIDR blocks
  • RIPEstat geolocation, abuse contacts, prefix info
  • RPKI validation — automatically derives the covering prefix and origin ASN, then checks ROA validity inline. You see whether the prefix is RPKI-valid without leaving the tab.
  • One-click prefix drill-down — click the "Full Prefix Lookup" link to jump to the Prefix tab with the covering prefix pre-filled, launching the full lookup (RPKI, IRR, looking glass, related prefixes) in one click.

IP Lookup

📡 Prefix / Looking Glass

Query any IPv4 or IPv6 prefix for routing status, origin AS, related/covering prefixes, and RIPEstat looking glass data from 25+ RIPE RRC route collectors worldwide — with resolved AS-path names.

8218 (Zayo-IPX) → 6461 (Zayo) → 174 (Cogent) → 6169 (Kentik)

Every ASN in every AS path is automatically resolved via PeeringDB and cached to disk. First lookup resolves names in the background; subsequent lookups render instantly from cache.

RPKI Validation

Each origin ASN is checked against the RPKI via RIPEstat's Routinator-backed validator. Results are color-coded:

  • 🟢 Valid — a ROA exists and matches the prefix/origin/maxLength
  • 🟡 Not Found — no ROA covers this prefix (RPKI-unknown)
  • 🔴 Invalid — a ROA exists but the origin or prefix length doesn't match

Matching ROAs are displayed with their origin, prefix, and maxLength so you can immediately spot maxLength mismatches — the most common "everything looks right but traffic is dropping" RPKI issue.

IRR Route Object Consistency

Shows whether route/route6 objects exist in the IRR for the prefix, which registries they're in, and whether they match what's actually announced in BGP:

  • BGP + IRR ✓ — announced and registered (healthy)
  • BGP only — no IRR ✗ — announced but no route object (peers filtering on IRR will drop it)
  • IRR only — not announced — registered but not in the BGP table (stale object)

This surfaces the kind of mismatch where RPKI is valid but a peer's IRR-based filters silently reject the prefix.

Prefix / Looking Glass with RPKI and IRR

🔎 DNS Lookup

General-purpose DNS record lookup powered by dnspython. Enter any hostname to query all record types at once, or select a specific type from the dropdown:

  • A / AAAA — IPv4 and IPv6 addresses
  • CNAME — canonical name aliases
  • MX — mail exchangers with preference values
  • NS — authoritative nameservers
  • TXT — SPF, DKIM, verification records
  • SOA — zone authority (serial, refresh, retry, expire)
  • PTR — reverse DNS (auto-detected when you enter an IP instead of a hostname)
  • CAA — certificate authority authorization

Enter an IP address and it automatically performs a reverse PTR lookup instead. Useful for identifying router hostnames from traceroute output.

💾 ASN Name Cache

Persistent disk cache at ~/.peering_workbench/asn_cache.json. Grows automatically as you use the tool — after a few prefix lookups you'll have the entire tier-1/tier-2 transit universe cached. The file is portable: back it up, sync across machines, or seed it from other sources.


APIs Used

All free, no API keys required.

Source What it provides
PeeringDB Network info, IX connections, facilities, peering policy, contacts
RIPEstat ASN overview, announced prefixes, neighbors, looking glass (RRCs), RPKI validation, IRR routing consistency
RDAP Structured WHOIS replacement (auto-routes to ARIN/RIPE/APNIC)
Team Cymru DNS-based IP→ASN mapping for IPv4 and IPv6 (requires dnspython)

Requirements

  • Python 3.10+
  • PyQt6
  • requests
  • dnspython (optional but recommended — enables Team Cymru lookups and the DNS Lookup tab)

Development

git clone https://github.com/speterman/pwb.git
cd pwb
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,cymru]"
python -m pwb

Publishing

python -m build
twine upload dist/*

License

GPLv3 — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pwb-0.1.0.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pwb-0.1.0-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file pwb-0.1.0.tar.gz.

File metadata

  • Download URL: pwb-0.1.0.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for pwb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5c36d28c31b584345ef226bb88705a22bf4fef895fc1e6ac5734de33534c129e
MD5 323f8723f848d27929d3e03fbc8eeca6
BLAKE2b-256 27f21152a672ecdd5adecfb0f75dd29735dd7e02e6a689ad028d2d8dfc47ab3a

See more details on using hashes here.

File details

Details for the file pwb-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pwb-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for pwb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5002642d1b9b87ca69d2ae217fd39712d6aa625d79c3b7eba30598454cb2a85a
MD5 2fe5c3ee8f05f9266553d0f14b80dedf
BLAKE2b-256 30c897c8cc64d8b3e4fa98cd4107a77ff62052d17ae54605bba30f72d7b6df4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page