Diverting to a scrubbing centre by BGP prefix or by DNS name: what does each one leave exposed?
answer
- one moves the route, one moves the name
- how small a thing can you divert
- is the origin still reachable
- who else lives in that block
- Certificate Transparency leaks origins
basics
~20 sPrefix diversion moves everything in the block, protocols included, but its smallest practical unit is a whole /24, so unrelated services divert with it. Name diversion protects only what resolves through that name and leaves the origin address directly attackable.
solid answer
~50 sWith BGP diversion the provider announces your address block, so every host and every protocol inside it is pulled into the scrubbing network at once. The exposure is granularity: operators generally will not accept an IPv4 prefix longer than a /24, so the smallest thing you can divert is 256 addresses. In shared tenancy one customer's attack detours forty customers' traffic, and they all pay the latency. With DNS diversion you repoint a hostname at the provider. Only what resolves through that name is protected, non-HTTP services usually are not, and your origin address is still routable: an adversary who has it from historic DNS, Certificate Transparency logs, mail headers or a forgotten subdomain floods the origin directly and never touches the provider. So name diversion is only real if the origin filters everything but the provider's ranges, and it completes only as cached answers expire, in minutes.
go deeper
Know that traffic can be pulled into a scrubbing network either by changing the route for your address block or by changing where a hostname points, and that the second one leaves your original server address still reachable.
Explain the coverage difference: a route change moves every host and protocol in the block, a name change moves only what resolves through that name. Be able to say why the origin then needs its own filter.
Show that you have operated this. Name the /24 granularity limit and its blast radius on shared address space, list where an origin address leaks from, and state what you would change in an address plan to make diversion aimable.
Own the trade as an estate-wide constraint: address assignment decided years ago fixes who can be diverted independently, and unpicking it is a renumbering programme that competes for budget with the mitigation contract itself.
## Two ways to attract traffic into rented capacity Diverting into a scrubbing centre means changing where the internet thinks your service lives. There are two mechanisms, and they fail in completely different ways. ### 1. Routing diversion — the provider announces your prefix The mitigation provider originates a BGP announcement for your address block. The internet's routing table now sends traffic destined for those addresses to the provider's network instead of to your transit link. They scrub and hand the survivors back over a return path. **What it covers:** everything. Every host in the block, every protocol — not just web traffic. This is the only option for services that are not name-addressed at all: raw IP services, game servers, VPN concentrators, anything a client reaches by address. **What it exposes:** - **Granularity.** Network operators routinely filter IPv4 announcements longer than a /24, so a /24 is the practical smallest unit you can divert. You cannot divert one host. Everything sharing that block goes with it. - **Blast radius in shared tenancy.** Consider a managed-service provider fronting forty customers out of one address block. One customer is attacked; the block is diverted; all forty customers' traffic now transits the scrubbing centre and pays the detour. The address plan, decided years earlier for convenience, has just become the unit of your incident blast radius. The design lesson is that **diversion granularity should match the granularity at which you want to make diversion decisions** — which usually means placing tenants who differ in risk, latency sensitivity or who pays into different prefixes. - **Prerequisites.** You need address space you control and authorisation for a third party to announce it, and route filters upstream have to accept the change. This is paperwork done in advance, not during the incident. - **Convergence and stickiness.** The route change propagates quickly but not uniformly, and withdrawing it afterwards is another change with its own approval. ### 2. Name diversion — the hostname points at the provider You change the DNS record for a service so it resolves to an address the provider owns. Clients resolve the name, connect to the provider's edge, and the provider connects onward to your origin. **What it covers:** exactly what resolves through the names you changed, and usually only the protocols the provider's edge proxies — in practice HTTP and TLS. It is per-service, needs no address space of your own, and can be applied to one hostname without touching anything else. That surgical granularity is its genuine advantage over routing diversion. **What it exposes:** - **The origin is still routable.** This is the defining weakness. Repointing a name does not move your servers or make their addresses unreachable. An adversary who learns the origin address attacks it directly and the scrubbing centre never sees a packet. Origin addresses leak from many places: historic DNS records archived by third parties, **Certificate Transparency** logs that publish every certificate issued for your names, mail headers that reveal the sending host, error pages, API endpoints and administrative subdomains that were never repointed, and the SPF and MX records that must keep pointing at real infrastructure. - **The mandatory countermeasure.** Name diversion is only real if the origin refuses everyone else — a filter at the origin's edge, or at its upstream, that accepts connections only from the provider's published source ranges. Without it you have added a proxy, not a defence. Maintaining that allowlist as the provider changes ranges is an ongoing operational burden and a foreseeable self-inflicted outage. - **Diversion completes only as cached answers expire.** Resolvers hold the previous answer for its lifetime, and some hold it longer than they should, so the change reaches your user base over minutes rather than instantly. During that spread, part of your traffic is still being sent to the old address. - **Everything not addressed by that name.** Direct-to-IP clients, hard-coded addresses in partner integrations, non-proxied protocols. ## Side by side | | Routing diversion | Name diversion | |---|---|---| | Unit of diversion | a whole prefix, practically a /24 | one hostname | | Protocol coverage | everything | what the provider's edge proxies | | Origin still reachable directly | no, the route itself moved | yes, unless you filter it | | Needs your own address space | yes | no | | Collateral on neighbours in the block | all of them divert | none | | Completion delay | route propagation | cached answers expiring | ## What an interviewer is listening for The weak answer treats these as interchangeable ways of doing the same thing. The strong answer names the asymmetry: routing diversion is **complete but coarse** — nothing bypasses it, and you cannot aim it; name diversion is **precise but leaky** — you can aim it at one service, and an adversary who does five minutes of reconnaissance walks around it. The strongest answer adds that the choice constrains your address plan. If you front multiple tenants or many unrelated services, deciding after the fact that you want to divert one of them is not possible under routing diversion — the decision was made when the addresses were assigned. That is the sentence that shows you have actually operated this.
- How would an adversary find the origin address behind a name-diverted service?Historic DNS archives that predate the diversion; Certificate Transparency logs, which publish every certificate issued for your names and often reveal hosts you forgot; mail infrastructure, since MX and SPF records must point at real servers and headers expose the sender; subdomains never repointed, especially administrative and staging ones; and error pages or APIs that disclose an internal address. None of this requires access to anything.
- A managed-service provider hosts forty customers in one /24 and only one is under attack. What can they actually do?In the moment, very little: the diversion unit is the prefix, so all forty divert and all forty carry the latency. The fix is architectural and made in advance — separate address blocks by tenant risk profile, latency sensitivity or contract, so that the routing unit matches the unit at which diversion decisions are made. Failing that, name-based diversion for the single attacked service, if it is name-addressed and the origin can be filtered.
- You have repointed the name at the provider. What single control makes that diversion real?Filtering at or ahead of the origin so it accepts traffic only from the provider's source ranges. Without it the origin remains an open, directly attackable target and the diversion is cosmetic. The cost is a maintained allowlist that must track the provider's published ranges, and getting it wrong takes your service off the internet just as effectively as an attack would.
- Which mechanism suits a service reached by raw IP address rather than a hostname?Routing diversion, and only routing diversion. Name diversion cannot help a client that never performs a lookup, so anything addressed directly — a hard-coded partner integration, a game or voice server, a VPN endpoint — must be protected by moving the route. That constraint alone often decides the architecture, and it is worth asking about early.
saying these in an interview costs you the question
- Treats prefix and name diversion as interchangeable
- Forgets the origin stays reachable after a name change
- Claims you can divert a single host by BGP
- Never mentions filtering the origin to the provider's ranges
- Ignores who else shares the diverted prefix