What an ISP sells
An internet provider sells everyone the same thing, a way to the rest of the internet. It sells it as different products to different buyers.
Broadband: shared and best effort
Homes and many small shops buy broadband. Three things set it apart.
It is shared. The homes on a street share the provider's capacity, from the splitter of a GPON tree up to the provider's links to the internet. The provider sells more than it has, because homes are rarely all busy at once. How much more is the How much capacity is sold, compared with how much there is to share. Selling 40 homes 100 Mbit/s each on a 1,000 Mbit/s link is a contention ratio of 4 to 1.. When many homes are busy, as in the evening, each gets less.
It is best effort. A plan of "up to 100 Mbit/s" is the most a home gets, not a promise. The provider commits to no rate.
It sits behind the provider's gateway. Often the home router logs in with a username and password over PPP over Ethernet, RFC 2516: a session from the customer's router to the provider's gateway that carries a login and hands out the address.. The session ends at the provider's Broadband network gateway: the provider's router where home sessions end. It checks the login, gives the address, and applies the plan's speed. Older networks call it a BRAS., the broadband network gateway, which checks the login, hands out the address, and keeps the home to its plan's speed. Some providers use plain DHCP instead of PPPoE, and the BNG does the same job.
The address a home gets is often not a public one. With Carrier-grade NAT: NAT run by the provider, so many customers share one public IPv4 address., the provider runs NAT for many customers at once, so they share public IPv4 addresses. It is the same idea as the devices in a home sharing one address, from Sharing one address. The range 100.64.0.0/10 is set aside for CGNAT. If your router's internet address is in it, between 100.64 and 100.127, it is behind CGNAT. Nobody outside can reach a camera or a game server in that home directly, because the public address isn't the home's alone.
DIA: a committed rate
A business that needs to count on its connection buys Dedicated internet access: business internet with a committed rate, usually the same in both directions, and a service level agreement., dedicated internet access. The difference is in what the contract promises:
- A committed rate. If the contract says 100 Mbit/s, the provider plans its network so that 100 Mbit/s is there at every hour. This is the Committed information rate: the rate a provider guarantees, as opposed to the rate a customer may burst to when there is room., the committed information rate. It is usually the same in both directions, while broadband often uploads far slower than it downloads.
- A service level agreement. The Service level agreement: what the provider promises in the contract, such as uptime and repair time, and what it owes if it misses. promises how many hours a year the service may be down, and how fast a fault is fixed. It also says what the provider owes, such as a refund, when it misses.
- Fixed public addresses. The customer gets a block from the provider's own space, routed to it. If the customer moves to another provider, the addresses stay behind.
DIA usually comes over a fiber of its own. Some providers sell "business" plans that are broadband underneath with a business contract on top. Read what the contract commits to before you call it DIA.
Real contention ratios vary by provider and plan.
IP transit: selling to other networks
A connection to the whole internet, sold to another network that brings its own AS number and addresses and runs BGP with the provider. Often just called transit. is sold to networks, such as smaller internet providers, hosting companies, and content networks. The customer has its own AS number and its own addresses, as your network did in Project: an edge router. Three things change from DIA:- The customer runs BGP with the provider. It announces its own prefixes, and the provider passes them on to the rest of the internet.
- The provider sends routes back. It sends either the full table (every route it knows) or only a default route, as the customer asks.
- The addresses are the customer's own. It can buy transit from two providers at once and announce the same prefixes to both, so it stays up when one provider fails.
To the provider, the customer is a downstream, a network that buys transit from it. Its routes go to everyone, as in Networks of networks. Before the provider announces them, it must check that the prefixes really are the customer's.
IX transit: only what the exchange has
Many of the networks people use most, such as content networks and cloud providers, are at the internet exchanges. A provider at those exchanges can sell Only the routes a provider learns at internet exchanges, plus its own customers' routes, sold to another network for less than full transit. It is one kind of partial transit.. It carries the routes the provider learns there, and its own customers' routes, but not the routes from its own transit providers.
The buyer gets the exchange's networks without joining the exchange: no port at the exchange, no rack in its building, and no session with each member. It still needs full transit beside it, for the rest of the internet.
| Product | Bought by | Shared? | Addresses | BGP | Usually billed by |
|---|---|---|---|---|---|
| Broadband | Homes, small shops | Yes | The provider's, often behind CGNAT | No | A fixed price for the plan |
| DIA | Businesses | No, committed | The provider's | Not needed | The committed rate |
| IP transit | Networks with their own AS | No, committed | The customer's | Yes, the whole internet | A commit, plus any burst |
| IX transit | Networks with their own AS | No, committed | The customer's | Yes, exchange routes only | Like IP transit |
How transit is billed
Transit is often sold with a The rate a customer agrees to pay for every month, even when it uses less.. The customer agrees to pay for, say, 200 Mbit/s every month, on a port that can carry far more. Traffic over the commit is Traffic over the commit. The port allows it, and the contract bills it at its burst rate., billed at the burst rate in the contract. To measure the burst, providers usually bill the 95th percentile:
- Every five minutes, the provider records the port's average rate over those five minutes. A 30-day month has 8,640 samples.
- At the end of the month, the samples are sorted from the busiest down.
- The busiest 5 percent are thrown away, 432 of 8,640.
- The highest sample left, number 433, is the rate billed for the month.
So the customer may run flat out for the busiest 36 hours of the month, 5 percent of 720 hours, and pay nothing for them. Providers count each direction. A common way is to work out the percentile for traffic in and for traffic out, and bill the higher one. Your contract says which.
One evening has 40 samples instead of a month's 8,640. When you have the bill, add a burst one sample at a time.
One evening on a transit port, a sample every five minutes from 18:00. Drag your guess to where you think the bill lands, then sort the samples.
The bill appears after step 3.
A burst of one or two samples is thrown away with the rest of the busiest, and changes the bill by only a few Mbit/s. A third sample of it no longer fits in the busiest 5 percent, so the whole evening is billed at 600 Mbit/s, the burst's own speed. A month works the same way, with 432 samples to throw away.
IP transit and IX transit in Circuit
In Circuit, the two products differ only in what the router sends the customer, its export policy. For full transit, the export accepts everything:
// What the customer pays for: the whole internet, every route we know.
"netflix-export": [{ description: "The full table", then: "accept" }],For IX transit, it accepts only your own space and the routes tagged as learned at an exchange or from another customer:
// 64500:1:2 tags routes learned from the exchange group, and 64500:1:3 from the customer group.
"netflix-export": [
{ description: "Learned at an exchange", if: { large_community: "64500:1:2" }, then: "accept" },
{ description: "Our other customers", if: { large_community: "64500:1:3" }, then: "accept" },
{ description: "Our own space", if: { prefix_set: "ours" }, then: "accept" },
{ description: "Nothing from the transit", then: "reject" },
],You also announce the IX transit customer's prefixes only at the exchange, not to your own transit. The customer didn't buy a way in from the whole internet. BGP communities shows how routes are tagged.
Further reading
- Contention ratio: shared capacity, and why busy hours are slower.
- RFC 2516: how PPP runs over Ethernet.
- Broadband Remote Access Server, MMNOG 2020: what a BNG does, and why it was once called a BRAS.
- RFC 6598: the
100.64.0.0/10range for carrier-grade NAT. RFC 6888: what carrier-grade NAT must do, and what it breaks. - Dedicated Internet Access: an explanation, Fiber Guide: how DIA differs from broadband, and why to read the contract.
- Committed information rate and Service-level agreement: what is committed and what is promised.
- IP transit: the full table or a default route, and the commit.
- Partial-route internet transit, DrPeering: selling the routes learned at an exchange.
- Burstable billing: percentile billing step by step, and the ways to count both directions.