Skip to content

zhaofengli/dn42-wallpaper

Repository files navigation

DN42 Wallpaper

20180813

It looks like a pig! Totally unintended I swear.

The red dot represents my AS on DN42, AS4242421926. Peer with me here!

Why?

  • I'm bored.
  • I need a new wallpaper.
  • I want to make my desktop geekier with some Data Visualization (tm).
  • I have a full BGP feed of DN42.

And then, I discovered the amazing BGP tool known as ExaBGP, and everything came together.

How?

Assuming you have a machine running ExaBGP and Redis, use the following configuration to fill the Redis database with all routes coming from neighbors:

process dn42wp {
        run /where/is/exabgp-process.py;
        encoder json;
}

neighbor x.x.x.x {
        # Your peer configuration here

        api {
                processes [ dn42wp ];
                receive {
                        parsed;
                        update;
                }
        }
}

Then, run generate-json.py to generate a JSON containing all peerings. Save it as data.json and serve it in the same directory of the page.

But there is already https://nixnodes.net/dn42/graph!

It's not particularly suitable as a wallpaper, and I don't get to play with the cool toys myself.

By the way, have you heard of the IKEA effect?

Disclaimer

Hacked together in a couple of hours, with all sorts of terrible code and quirks. My scripts do not inject any route, but if you believe in Illuminati, filter all routes on your router.

Acknowledgments

  • ExaBGP, for hours of fun playing with routing information programmatically.
  • Edmundo Santos, for his awesome CSS background that I kanged here shamelessly.

About

A wallpaper showing DN42 peering relationships

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published