5 ms·
OpenBGPD: The OpenBSD BGP internet routing daemon
- pm2222 5y agoHard to find a real BGP router with full/partial INET table to peer with you.
- wahern 5y agoVultr offers both BGP proxying and BGP peering services. You can route to a cheap ($5/month) VPS and then tunnel (GRE, GIF, IPSec, or Wireguard) to your residential gateway. With IPSec or Wireguard you wouldn't even need a static residential IP address.
- idorosen 5y agoCan you be more specific? Outside of residential internet connectivity, it's pretty easy to find an business ISP or transit provider or peer that's willing to push full BGP tables in my experience...
- pm2222 5y agoI was referring to residential. Otherwise it's usually the network admin/engineering team of a company that manages such.
- walrus01 5y agoIt's a matter of money, of course if you want to rent like 4U of colocation space at an IX poitn somewhere, pay for the cross connects, tons of ISPs will be happy to sell you an IP transit circuit. You did form an LLC and get your own ARIN ASN first, right? You have at minimum a /24 of ipv4 space to announce or will "rent" some from your upstream provider? It's generally not something you want to implement on a whim because the costs and ongoing obligations are non-trivial.
- pm2222 5y agoThe peering alone should not cost much: I don't announce anything to upstream just receive the full/partial inet table and upstream filters everything that I send over bgp.
- bcrl 5y agoThere are lots of us (your friendly local ISP) that would be happy to help someone out learning this kind of thing. Alas, the expensive part is getting an ASN and network to announce which is approaching a kilobuck per year these days iirc.
- unethical_ban 5y agoI will go through the bgpd.conf docs later today, to try to understand the protocol better. I wish there were an online BGP simulation GUI, rather than the prospect of spinning up a VM lab with a bunch of virtual switches and OpenBSD VMs.
- idorosen 5y agoMaybe read RFC4271 instead if you're looking to learn about the protocol rather than just about this implementation, just be aware there are many extension RFCs (see the list at the top of the link). https://datatracker.ietf.org/doc/html/rfc4271 https://datatracker.ietf.org/doc/html/rfc4271
- bcrl 5y agoBGP isn't actually all that complicated. Like virtually all routing protocols it is based on the concept of shortest path first route selection using Dijkstra's algorithm. BGP just defines a way for communicating the announcements and paths that feed into Dijkstra's. OSPF and IS-IS do pretty much the same thing, as well as a number of the mobile ad-hoc networking protocols. I was lucky enough to get paid to prototype a routing protocol a number of years back. Getting my hands dirty implementing Dijkstra's was a lot of fun!
- zajio1am 5y agoNo. OSPF and IS-IS really works by communicating the network topology and then each node independently computing shortest path route selection. But BGP (and also RIP and Babel) works by a distributed algorithm, where each node selects best routes for each destination from available routes received from neighbors, and announces selected best routes to neighbors.
- idorosen 5y agoIn networking parlance, BGP is a distance vector routing protocol, as opposed to link state routing protocols like OSPF. Distance vector: https://en.m.wikipedia.org/wiki/Distance-vector_routing_protocol https://en.m.wikipedia.org/wiki/Distance-vector_routing_prot... Link state: https://en.m.wikipedia.org/wiki/Link-state_routing_protocol https://en.m.wikipedia.org/wiki/Link-state_routing_protocol