A route is an offer, not a promise to carry every packet

A BGP announcement tells a neighbor that a prefix is reachable through an advertised path, subject to policy. Operators decide which announcements to accept, prefer and send onward. This lets business agreements, security constraints and capacity affect routing. BGP does not inherently verify the right to originate a prefix; filtering and route-origin validation can reduce some risks, but are not complete path authentication.

Example: AS A learns a destination through customer C and provider P. A may prefer the customer route using LOCAL_PREF even if the provider path has fewer ASes. If A learns a route from one provider, it may choose not to advertise that route to another provider: otherwise A could unintentionally provide free transit. These are common patterns, not universal rules.

Transit, peering and exchange points

Transit is a commercial service in which a provider agrees to carry a customer’s traffic toward destinations covered by their contract. Scope and price vary. Peering is an agreement between networks to exchange some traffic directly, often their own and their customers’ traffic. Peering can be settlement-free or paid and does not automatically grant access to every network reachable by the peer.

An Internet exchange point (IXP) provides shared interconnection infrastructure, commonly Ethernet switching, where participants can establish sessions. Presence on the same fabric does not automatically establish BGP peering or a transit agreement with every participant. IXPs can also offer route-server services; arrangements vary. Connectivity and participants’ policies are separate.

Export policy and the source example

In the lecture’s pages 26–29, AS 30 has eBGP neighbors in AS 20, AS 10 and AS 40 and internal BGP sessions between border routers. The diagrams show routes learned from neighbors, shared within AS 30, then advertised outward. In the source’s scenario, R2 knows AS 30’s local prefixes through its routing table but does not introduce those prefixes into BGP as the other illustrated routers do; its advertisement to AS 10 consequently omits them. This is a route-origination/knowledge issue in the depicted configuration, not evidence that export policy deliberately withheld them. Separately, export policy can also limit advertisements.

Aggregating prefixes can reduce advertisements but also hide detail; the aggregate must be supportable by actual routing, and more-specific routes can override it. The source’s AS_SET example illustrates a historical representation rather than a recommendation for modern deployment.

OSPF and BGP cooperate

OSPF can carry internal routes to a BGP next hop; BGP distributes chosen external reachability and policy. A border router can redistribute routes, but importing a full external table into OSPF can be operationally inappropriate, and careless two-way redistribution can create feedback. Some networks instead distribute a default internally or run iBGP on routers that need external routes. The design depends on redundancy, scale and policy.

The lecture’s Cisco commands are examples, not a runnable design. A BGP network statement normally originates the prefix only when a matching route is present in the local routing table under the implementation’s rules; it does not turn on BGP on the matching interface. A configured neighbor must be reachable and use compatible settings. A passive OSPF interface ordinarily suppresses OSPF adjacency there while still advertising the connected network; it does not stop all traffic or IP routing on the interface.

What peering means in practice

The word peer has two related but different meanings. BGP peers are routers with a BGP session. Network peering is an agreement between operators about which traffic they will exchange. A session is a mechanism; the peering agreement defines the permitted relationship. A customer and its transit provider can also be BGP peers without that contract being settlement-free network peering.

Suppose AS A and AS B connect at an IXP. A’s customer wants to reach a server operated by B’s customer. Under an appropriate peering agreement, A carries the packet inside A, hands it to B across their interconnection, and B carries it to the server. The reply needs a usable route in the other direction. “Direct” means the handoff between A and B does not cross an unrelated transit provider; it does not mean their customers are physically adjacent or that there are no routers within either AS.

The agreement may cover each network’s own and customer prefixes without allowing arbitrary transit to a third network. Peering can be paid or settlement-free. At an IXP, shared layer-2 connectivity makes interconnection possible but does not itself create a contract, configure sessions, exchange every route or impose a universal business model.

Peer transport and the prefixes exchanged

To establish BGP, each peer first needs IP reachability to the other’s session address; this route must not depend circularly on a route that only this not-yet-established session can provide. Existing connected, static or separately learned routing may supply it. eBGP peers are often directly connected, but a suitably configured multihop eBGP session can cross an IP network or transit provider. That makes them BGP peers; their traffic may still physically cross the provider. A session, an interconnection, a peering contract and a transit contract are distinct things.

Once the session exists, an advertised prefix has a NEXT_HOP that also needs to be resolvable. The peer address and an advertised route’s next hop need not be the same address. A working TCP session proves neither that all advertised next hops resolve nor that every destination and return path works.

Import, selection and export are separate decisions

Assume AS A receives the same prefix from customer C and provider P. A’s import policy can accept both and assign LOCAL_PREF 200 to C’s path and 100 to P’s. If both are eligible and earlier selection rules tie, A prefers C. This is an example policy, not a universal obligation.

Now assume A learns another destination from provider P and has a peer Q. A might choose not to export P’s route to Q: otherwise traffic from Q could cross A toward P, turning A into a transit network for Q. A can still use that route for its own traffic. The fact that a route is known, selected, exported and actually forwarded are four different states. Conditions and contracts determine each choice.

Aggregation and forwarding

Two adjacent prefixes 203.0.112.0/24 and 203.0.113.0/24 fit within 203.0.112.0/23. An operator may originate the /23 to reduce advertisements. If a receiver installs both the /23 through A and the more-specific 203.0.113.0/24 through B, a packet to 203.0.113.50 uses B’s /24; a packet to 203.0.112.50 uses A’s /23. Longest-prefix matching chooses among installed routes after BGP’s best-path choice for each prefix.

If one component becomes unreachable while the aggregate remains advertised, the aggregate can still attract that traffic and produce a black hole. Actual aggregate origination and withdrawal depend on configuration and contributing routes. Advertising a range requires a plan for unused or failed portions; a discard route can prevent looping but does not make those addresses reachable. The source’s AS_SET example is historical; it should not be taken as universal current deployment advice.

Review with answers

Two routers have a BGP session through a transit provider. Does that alone make their traffic exchange direct? No. Their session can be multihop and their traffic can still cross the provider. Whether they have a network-peering agreement is a separate question.

A learns a provider route and chooses not to advertise it to a peer. Can A still use the route? Yes, if it is eligible and selected locally. Exporting to one peer and using a route locally are separate decisions.

Does AS A’s refusal to advertise a route to B prove that B cannot reach the destination? No. B may learn another route from another peer or provider.

Lecture 06 - BGP · BGP Sessions Paths and Attributes · Lecture 05 - OSPF