🤝 BGP Peering Explained

How two Autonomous Systems agree to connect and exchange routes directly — settlement-free peering, paid peering, peering policies, and how to evaluate a peering session.

Every time your traffic crosses from one network to another without passing through a paid transit provider, there's a good chance a peering relationship made that possible. BGP peering is the agreement between two Autonomous Systems (ASes) to connect directly and exchange routes for each other's (and often their customers') traffic — usually at no cost to either side. This guide explains exactly how peering works, why networks pursue it, and how to evaluate whether a peering relationship makes sense.

Whether you're an ISP evaluating your first peering session, a content network trying to reduce transit costs, or simply curious how the internet's networks actually interconnect behind the scenes, peering is one of the most consequential — and most misunderstood — concepts in internet routing.

⚡ Quick Answer
BGP peering is a direct interconnection between two Autonomous Systems where they exchange BGP routes for their own and their customers' networks — typically without any money changing hands (settlement-free peering). It's established either privately (a dedicated cross-connect) or publicly (via a shared Internet Exchange Point), and it lets the two networks reach each other's traffic directly instead of routing it through a third-party transit provider.
⭐ ToolsNovaHub Pro Tip
Before reaching out to a prospective peer, check their published peering policy on PeeringDB first — it tells you their minimum traffic requirements, preferred exchange points, and contact process, saving you from a cold email that gets ignored because you didn't meet their stated criteria.
⚠️ Common Beginner Mistake
Assuming peering always means free, unlimited connectivity to the entire internet. In reality, a peering session with a given AS only exchanges routes for that AS's own network and its customers — not for everything on the internet. You still need transit (or additional peers) to reach networks that neither you nor your peer connects to directly.
🎯 Key Takeaways
  • Peering is a direct route-exchange agreement between two ASes, distinct from buying transit from an upstream provider.
  • Most peering is settlement-free: neither side pays the other, since both benefit from the direct connection.
  • Peering can be public (via a shared Internet Exchange Point) or private (a dedicated cross-connect between two networks).
  • A peering session only exchanges routes for the peer's own network and customers — not full transit to the entire internet.
  • Peering policies range from open (anyone can peer) to restrictive (selective, high traffic minimums required).
  • Networks typically use a mix of transit and peering, shifting more traffic to peering over time as relationships grow.

🔍 What Is BGP Peering?

BGP peering is an agreement between two Autonomous Systems to interconnect their networks and exchange routing information directly via the Border Gateway Protocol, so that traffic destined for each other's networks (and typically each network's downstream customers) can flow between them without transiting a third party. Each side advertises its own routes — and the routes of any customers it provides transit to — but critically, does not advertise routes it learned from other peers or transit providers, since that would effectively make it a free transit provider for the peer.

This restriction is enforced through what's called a peer-to-peer export policy, sometimes summarized by the "no valley routing" principle in BGP route selection philosophy: traffic should only flow from customer to provider, provider to customer, or peer to peer — never peer to peer via a third network that would effectively be donating free transit. Understanding this constraint is fundamental to understanding what peering actually delivers, since it directly determines which destinations become reachable through a given peering session.

Peering exists as an alternative — usually a complement, not a full replacement — to buying IP transit from an upstream provider. Where transit gives you reachability to the entire internet routing table via a single paid relationship, peering gives you reachability to just one network's (and its customers') routes, typically at no cost, in exchange for reciprocal treatment. Most networks of meaningful size run a mix of both: transit for default, full-internet reachability, and peering to offload high-volume routes to specific networks directly.

The word "peer" implies rough parity between the two networks in question — comparable traffic volumes flowing in each direction — and this expectation of mutual benefit is precisely why most peering arrangements are settlement-free. Both networks save on transit costs for traffic that would otherwise need to flow through a paid upstream, and since the benefit is genuinely mutual, no money needs to change hands for the arrangement to make economic sense for both parties.

🎯 Why Peering Matters

Peering is one of the primary economic and technical forces that shapes how the internet's topology actually looks, and understanding it clarifies a lot about why certain networks are fast and cheap to reach while others aren't.

The most direct motivation is cost: every byte of traffic that flows over a peering session is a byte that doesn't need to be carried (and paid for) over a transit connection. For any network exchanging significant traffic with another specific network — a video streaming service and a large residential ISP, for example — establishing direct peering can save substantial money that would otherwise go toward transit bills, particularly as traffic volumes scale into the hundreds of gigabits per second seen at major exchange points.

Performance is the second major driver. A direct peering path is typically shorter (fewer hops), lower latency, and free of the congestion or additional cost pressure that can affect shared transit links. Content networks, cloud providers, and CDNs pursue aggressive peering strategies specifically because reducing the number of networks between their servers and end users directly improves the experience for those users — faster page loads, lower buffering, more responsive applications.

Peering also plays a structural role in internet resilience. A network with a rich mesh of peering relationships across many exchange points has more paths to reach the rest of the internet, meaning the failure or congestion of any single transit provider has a smaller overall impact. This diversity-through-peering is part of why major content and access networks invest heavily in peering infrastructure well beyond what pure cost savings alone would justify.

For smaller and mid-sized networks, peering is often the difference between being a purely "customer" network — entirely dependent on upstream transit providers for reachability and pricing — and having real leverage in the ecosystem. A network with an established peering presence at a major exchange point has more negotiating power with transit providers, since it has demonstrated it can reduce its transit dependency when the economics justify it.

⚙️ How Peering Actually Works

A peering relationship goes through a fairly consistent lifecycle from initial contact through an established, running BGP session.

1

Discovery and outreach

A network identifies a potential peer — often by observing significant traffic exchanged via transit, or by researching presence at a shared Internet Exchange Point — and reaches out, typically referencing the prospective peer's published peering policy.

2

Policy and traffic evaluation

Both sides evaluate whether the relationship meets their peering criteria: minimum traffic volume, geographic overlap, network size, and routing policy compatibility.

3

Interconnection method agreed

The networks agree whether to peer publicly (via a shared Internet Exchange Point's route server or direct VLAN) or privately (a dedicated point-to-point cross-connect, often within the same data center or carrier hotel).

4

Physical and logical setup

The physical cross-connect or exchange port is provisioned, IP addresses are assigned on the interconnect subnet, and BGP session parameters (ASNs, IPs, authentication) are exchanged.

5

BGP session established

Both routers configure an eBGP session to each other, applying appropriate import and export route filters, and the session comes up — routes begin exchanging automatically once the TCP-based BGP connection is active.

6

Validation and monitoring

Both sides confirm they're receiving the expected routes (and only the expected routes — not an accidental full table, which would indicate a filtering misconfiguration), and set up ongoing monitoring for session stability and traffic volume.

Once established, the session typically requires little ongoing maintenance — route filters may need periodic updates as either network's customer base changes, but the underlying relationship tends to be stable for years once set up correctly.

🏗️ Architecture & Technical Detail

Peering sessions run as standard external BGP (eBGP) sessions between routers belonging to the two different Autonomous Systems, typically directly connected at Layer 2 — either via a dedicated cross-connect cable or a shared VLAN at an Internet Exchange Point. The BGP session itself works identically to any other eBGP session technically; what differs is the route policy applied to it.

The defining technical characteristic of a peering session's export policy is that it advertises only "local preference" routes — the AS's own address space and the address space of any customers it provides transit to — and explicitly withholds routes learned from its own transit providers or other peers. This is typically implemented via BGP communities that tag routes by their origin (customer, peer, or transit-learned) so that export filters can be written declaratively rather than needing to be manually maintained as an exhaustive prefix list.

On the import side, a peering session's filters are similarly restrictive: a network should only accept routes for prefixes that the peer legitimately originates or provides transit for, rejecting anything that looks like the peer is unexpectedly announcing third-party address space — a defense against both misconfiguration and the kind of route leaks that have caused major internet outages in the past.

Two connection topologies dominate in practice. Private peering uses a dedicated physical cross-connect between the two networks' routers, typically within the same data center or carrier-neutral facility, offering guaranteed bandwidth and the highest performance for high-volume relationships. Public peering uses a shared switching fabric at an Internet Exchange Point, where a single physical port lets a network establish BGP sessions with many peers present on the same exchange, dramatically reducing the marginal cost of adding each additional peer.

🔧 Step-by-Step: Setting Up a Peering Session

1

Obtain your own ASN and address space

Peering requires your own Autonomous System Number and IP address space registered with a Regional Internet Registry — you can't peer using someone else's ASN.

2

Create a PeeringDB profile

Register your network on PeeringDB, listing your ASN, traffic levels, peering policy, and the exchange points and facilities where you're present — this is how most prospective peers will find and evaluate you.

3

Identify and reach out to prospective peers

Use traffic analysis, PeeringDB, and exchange point participant lists to identify networks worth peering with, then contact them via their published peering email or process.

4

Agree on interconnection method

Decide between public peering (via a shared exchange) or private peering (a dedicated cross-connect), based on expected traffic volume and shared facility presence.

5

Exchange session details

Share ASNs, interconnect IP addresses, and any authentication requirements (like MD5 or RPKI expectations) needed to configure the BGP session on both sides.

6

Configure filters before enabling the session

Build explicit import and export filters (ideally based on the peer's published IRR route objects) before bringing the session up, rather than accepting everything by default.

7

Bring up the session and validate

Enable the BGP session, confirm the expected number and content of routes are received, and monitor traffic to confirm the peering is functioning as intended.

🔄 Flow: From Outreach to Live Traffic

Identify prospective peerCheck peering policy on PeeringDBReach out & negotiateEstablish cross-connect or exchange portConfigure BGP session & filtersSession up, routes exchangedTraffic shifts from transit to peering

This entire cycle can take anywhere from a few days (for an open-policy network at a shared exchange point) to several months (for a selective or restrictive peer requiring extensive negotiation and traffic history review).

💡 Practical Examples

A mid-sized regional ISP notices, via its transit provider's traffic reports, that a significant share of its outbound traffic goes to a specific large content network's address space. It checks that content network's PeeringDB entry, finds an open peering policy at a shared exchange point where both networks already have a presence, and establishes a settlement-free public peering session — immediately reducing transit costs for that traffic and improving latency for its customers.

A growing CDN company builds out peering relationships at dozens of exchange points across multiple continents, treating peering infrastructure as core to its performance strategy rather than purely a cost play — since delivering content over the shortest possible path directly to eyeball networks (ISPs serving residential customers) measurably improves page load times and reduces buffering for video traffic.

Two similarly-sized enterprise networks that exchange substantial business-to-business traffic (a large SaaS provider and one of its major enterprise customers, for instance) establish a private peering cross-connect specifically for that traffic, bypassing the public internet entirely for improved reliability, security, and predictable performance for their integration.

🎯 Real-World Use Cases

  • Content delivery optimization — CDNs and streaming platforms peering directly with eyeball ISPs to shorten delivery paths.
  • Transit cost reduction — any network offloading high-volume routes from paid transit to settlement-free peering.
  • Enterprise-to-enterprise private connectivity — dedicated peering for business partners exchanging significant B2B traffic.
  • Regional internet resilience — local ISPs peering at regional exchange points to keep local traffic local rather than routing it internationally.
  • Cloud provider interconnection — cloud platforms peering with major networks to reduce egress costs and latency for customer traffic.

✅ Advantages

  • Reduces or eliminates transit costs for traffic exchanged with the peer.
  • Typically improves latency and reduces hop count compared to a transit path.
  • Increases path diversity and resilience against transit provider issues.
  • Builds negotiating leverage with transit providers by demonstrating reduced dependency.
  • Settlement-free arrangements require no ongoing billing relationship to maintain.

⚠️ Disadvantages & Risks

  • Only provides reachability to the peer's own network and customers, not the full internet.
  • Selective or restrictive peers may reject smaller networks regardless of technical merit.
  • Each session adds operational overhead: filter maintenance, monitoring, and troubleshooting.
  • Misconfigured peering filters can cause route leaks with significant real-world impact.
  • Private peering cross-connects have fixed capacity that must be upgraded as traffic grows.

🏆 Best Practices

  • Maintain an accurate, up-to-date PeeringDB profile, since it's the primary discovery mechanism prospective peers use.
  • Build explicit prefix filters from IRR route objects rather than accepting a peer's full announced table by default.
  • Tag routes with BGP communities by origin (customer/peer/transit) to keep export policy declarative and maintainable.
  • Monitor peering session traffic and route counts continuously, alerting on unexpected changes.
  • Document each peering relationship's contact details, session parameters, and agreed scope for future troubleshooting.

🔒 Security Considerations

  • Apply strict import filters based on the peer's legitimate address space to prevent accepting leaked or hijacked routes.
  • Adopt RPKI Route Origin Validation to automatically reject routes with invalid origin ASNs on peering sessions.
  • Use BGP session authentication (MD5 or TCP-AO) to reduce the risk of session hijacking on shared exchange fabrics.
  • Rate-limit or cap the maximum number of prefixes accepted from any single peering session to contain the blast radius of a misconfiguration.

⚡ Performance Considerations

  • Private peering cross-connects offer dedicated, predictable bandwidth unaffected by other exchange participants' traffic.
  • Public peering at a shared exchange can encounter congestion during peak periods if the exchange fabric itself is under-provisioned.
  • Peering paths are typically shorter than transit paths to the same destination, directly reducing latency.
  • Monitor individual peering session utilization to know when to upgrade capacity or add additional interconnects.

❌ Common Problems

ProblemTypical Cause
Session won't establishMismatched IP addressing, ASN, or authentication configuration between the two routers
Receiving far more routes than expectedPeer misconfiguration, or missing import filters allowing a near-full table through
Traffic still flowing over transit despite peeringMissing or incorrect local preference on peer-learned routes relative to transit routes
Session flaps intermittentlyUnderlying physical link or exchange fabric instability, or MTU mismatch

🔧 Troubleshooting

Session not establishing: Verify both sides are using the correct peer IP addresses and ASNs, and confirm there's no firewall or ACL blocking TCP port 179 between the interconnect addresses.

Unexpectedly large route count received: Check the peer's export policy for a misconfiguration, and verify your own import filters are correctly scoped to only the peer's legitimate address space.

Peering session up but traffic not shifting: Check local preference and route selection on your own router — a route learned via peering needs to be preferred over an equally specific route learned via transit for traffic to actually shift.

Frequent session flaps: Investigate the physical layer first (cross-connect or exchange port), then check for MTU mismatches or BGP timer misconfigurations between the two sides.

✅ Implementation Checklist

Use this checklist when planning, negotiating, or auditing a peering relationship, whether it's your first session or your fiftieth.

  • Own ASN and address space registered — confirmed with your Regional Internet Registry before any outreach begins.
  • PeeringDB profile created and current — traffic levels, policy, and facility presence all accurately listed.
  • Candidate peers identified from actual traffic data — not guesswork, but real flow analysis showing meaningful volume.
  • Prospective peer's policy reviewed — minimum traffic requirements and preferred exchange points checked before contact.
  • Interconnection method decided — public (exchange) for lower volume, private (cross-connect) for high volume.
  • IRR route objects registered — so the peer (and everyone else) can build accurate import filters for your address space.
  • Export filters built from communities — not manually maintained prefix lists that will drift out of date.
  • Import filters scoped to the peer's legitimate space — rejecting anything outside their registered footprint.
  • Maximum-prefix limit configured — a safety net against an unexpectedly large announcement from the new session.
  • RPKI validation enabled where possible — an additional layer of protection against invalid origin announcements.
  • Session monitoring in place — alerting on session state changes and unexpected route count shifts.
  • Contact details documented — both technical and NOC contacts recorded for future troubleshooting.

💡 Expert Tips

  • Prioritize peering with networks where you already see significant transit traffic — use your transit provider's traffic reports or a flow analysis tool to identify these candidates before cold outreach.
  • When negotiating with a selective peer, come prepared with concrete traffic volume data and geographic presence details, since vague requests are the most common reason for rejection.
  • Consider route servers at exchange points for initial connectivity to many peers with a single BGP session, then move high-volume relationships to dedicated bilateral sessions as they grow.

❌ Beginner Mistakes

  • Believing peering replaces the need for transit entirely, when in reality it only covers the peer's own address space.
  • Accepting a peer's full route announcement without filters, risking a route leak if the peer misconfigures their side.
  • Reaching out to restrictive or selective peers without first checking whether your network meets their published minimum requirements.
  • Forgetting to update peering filters as a network's customer base (and therefore legitimate announced prefixes) changes over time.

📊 Comparison Tables

Public vs Private Peering

AspectPublic PeeringPrivate Peering
Interconnection methodShared switching fabric at an Internet Exchange PointDedicated point-to-point cross-connect
Setup cost per peerLow (one port reaches many peers)Higher (dedicated port and cable per peer)
Best suited forMany low-to-medium volume relationshipsA small number of very high-volume relationships
Bandwidth guaranteeShared with other exchange participantsFully dedicated to the two parties

Peering vs Transit

AspectPeeringTransit
ReachabilityOnly the peer's own network and customersThe entire internet routing table
Typical costSettlement-free (usually no cost)Paid, typically per Mbps or committed rate
Relationship typeRoughly equal, mutual benefitCustomer-provider, hierarchical

📋 Feature Table

FeatureBGP Peering
Protocol usedExternal BGP (eBGP)
Typical cost modelSettlement-free (occasionally paid peering)
Interconnection typesPublic (exchange) or private (cross-connect)
Routes exchangedPeer's own and customer prefixes only
Primary discovery toolPeeringDB

📚 Key Terms Glossary

Autonomous System (AS)
A network or group of networks under a single administrative entity, identified globally by a unique Autonomous System Number and operating a unified routing policy toward the rest of the internet.
Settlement-free interconnection
An interconnection agreement, whether public or private, where neither party pays the other, based on the mutual benefit both networks receive from the direct connection.
Cross-connect
A dedicated physical cable, typically within a shared data center or carrier-neutral facility, directly connecting two networks' equipment for private peering or other point-to-point interconnection.
Route server
Infrastructure operated by an Internet Exchange Point that lets a member establish one BGP session to exchange routes with many other participants at once, simplifying multilateral peering.
Export policy
The rules a network applies to determine which routes it advertises to a given BGP neighbor, central to correctly scoping a peering session to only the peer's own network.
Local preference
A BGP attribute used to rank multiple candidate paths to the same destination, commonly configured so peer and customer routes are preferred over transit-learned routes.
PeeringDB
A free, community-maintained database where networks publish their ASN, traffic levels, peering policy, and facility or exchange presence, serving as the primary discovery tool for prospective peers.
Peering policy
A network's published criteria — traffic minimums, geographic requirements, contact process — for evaluating whether to establish a peering relationship with another network.

❓ FAQs

BGP peering is a direct interconnection agreement between two Autonomous Systems where they exchange BGP routes for their own and their customers' networks, typically at no cost to either side.
Most peering is settlement-free, meaning neither side pays the other, though paid peering arrangements exist when one network has significantly more traffic or leverage than the other.
Peering only provides reachability to the peer's own network and customers, while transit provides reachability to the entire internet routing table in exchange for payment.
Use PeeringDB to research prospective peers' published policies, traffic levels, and exchange point presence, and check your own transit traffic reports for networks you already exchange significant volume with.
Public peering is interconnection via a shared switching fabric at an Internet Exchange Point, letting a single physical port establish BGP sessions with many peers present on the same exchange.
Private peering is a dedicated point-to-point cross-connect between two networks' routers, typically used for high-volume relationships needing guaranteed bandwidth.
Yes, peering requires your own registered Autonomous System Number and IP address space from a Regional Internet Registry — you cannot peer using someone else's ASN.
A peering policy is a network's published set of criteria (traffic minimums, geographic requirements, contact process) for evaluating and establishing peering relationships with other networks.
An open policy means the network will peer with essentially anyone meeting basic technical requirements, while a selective policy involves case-by-case evaluation based on traffic volume, strategic fit, or other criteria.
No — peering only reaches the peer's own network and customers, so you still need transit (or an extensive mesh of peers) to reach the rest of the internet.
Traffic that was flowing over the peering session typically reroutes via transit or another available path, assuming your network has appropriate fallback routes configured.
PeeringDB is a free, community-maintained database where networks publish their ASN, traffic levels, peering policy, and facility/exchange presence, serving as the primary discovery tool for prospective peers.
A route server, operated by many Internet Exchange Points, lets a network establish a single BGP session to exchange routes with many other exchange participants at once, simplifying multilateral peering.
Common reasons include not meeting minimum traffic requirements, lacking presence at a shared facility or exchange, or the prospective peer having a restrictive policy limiting who they'll peer with.
Communities are used to tag routes by origin (customer, peer, transit-learned) so peering export policies can be applied declaratively — see ToolsNovaHub's BGP Communities guide for detail.
Yes, though very asymmetric relationships sometimes lead to paid peering instead of settlement-free peering, since the larger network may not see equivalent value from the arrangement.
Without proper filters, a misconfigured or compromised peer could leak unexpected routes into your network, potentially causing a route leak with real traffic impact.
They're closely related — interconnecting at a shared IXP is simply one method (public peering) of establishing a settlement-free peering relationship, as opposed to a dedicated private cross-connect.
Generally yes, since a direct peering path is usually shorter than a transit path to the same destination, though actual latency also depends on physical distance and network congestion.
Use ToolsNovaHub's ASN Lookup tool alongside PeeringDB to see a network's registered address space and public exchange point presence.
RPKI (Resource Public Key Infrastructure) lets networks cryptographically validate that a route's origin AS is authorized to announce it, and is increasingly applied as a filter on peering sessions to reduce the impact of route leaks and hijacks.
Timelines vary widely: an open-policy peer at a shared exchange point you're already connected to can be up within days, while a selective or restrictive peer requiring extensive negotiation may take weeks to months.
A peering coordinator is the role (sometimes a dedicated job title at larger networks) responsible for identifying, negotiating, and maintaining a network's peering relationships, often working closely with the network engineering team.
Yes, either side can terminate a peering session, typically with advance notice per any informal agreement, if traffic volume no longer justifies the relationship or if either network's strategy changes.
Practices vary — many settlement-free peering relationships are established with a simple informal agreement or even just an email exchange, while paid peering and some private cross-connects involve more formal contracts.

📋 Conclusion

BGP peering is the mechanism that lets networks bypass paid transit for the traffic they exchange most, trading a bit of operational overhead for meaningfully lower costs, better performance, and greater routing resilience. Understanding the distinction between what peering does and doesn't provide — direct reachability to a peer's own network, not full internet transit — is the key to using it effectively as part of a broader routing strategy.

Whether you're evaluating your first peering session or optimizing an existing peering portfolio, the fundamentals here apply directly. Dig deeper into the surrounding topics with ToolsNovaHub's guides on Transit vs Peering, Internet Exchange Points, and BGP Communities, and use the ASN Lookup tool to research any network's routing footprint before reaching out.

If you're pursuing your first peering relationship, the practical starting point is simple: get your PeeringDB profile in order, identify a handful of networks you already exchange significant traffic with, and start with an open-policy peer at a shared exchange point where onboarding friction is lowest.

Explore All ToolsNovaHub Tools
🏠 Go to Homepage

🔗 More Guides