BGP · Topic 7 of 7

BGP Route Reflectors and Confederations

Learn how route reflectors and confederations remove the iBGP full mesh requirement, how reflection rules work, and the settings used to build both.

  • 5 min
  • Includes a diagram
In a nutshell
  • Route reflectors and confederations avoid the iBGP full mesh.
  • Clients need a session only to their reflector.
  • A client route goes to all peers. A non client route goes to clients only.

What it is

Route reflectors and confederations are two ways to scale iBGP without a full mesh of sessions.

The iBGP rule says a route learned from one iBGP peer is not passed to another. In a large AS, a full mesh of sessions then needs many connections, and each new router means touching every other one.

A route reflector relaxes the rule for chosen routers. A confederation splits the AS into smaller member ASes.

Client 1iBGPsessionRoute reflectorreflects routessessionClient 2iBGPClient 1iBGPno direct sessionClient 2iBGP

How it works

A reflector re-advertises routes between its clients and other peers, while a confederation changes how the AS looks inside.

Route reflector roles

A route reflector with two iBGP clients in AS 65001. Each client has a session only to the reflector, and there is no session between the two clients. A router becomes a reflector by marking some iBGP peers as its clients. Other iBGP peers of the reflector are non clients. Clients need a session only to the reflector, not to each other.

The reflection rules decide where a route goes.

Route learned fromReflected to
A clientAll other clients and all non clients
A non clientClients only
An eBGP peerAll clients and all non clients

The non clients still have to be fully meshed among themselves, because a reflector does not pass non client routes to other non clients.

Loop prevention

Reflection could create loops, so two attributes are added. The originator ID records the router that first announced the route into the AS. The cluster list records the reflector clusters the route has passed.

A router discards a route that carries its own router ID as originator. A reflector discards a route with its own cluster ID in the list.

RouterOS settings

On RouterOS v6 the client flag is set on the reflector, per peer.

/routing bgp instance set default cluster-id=10.255.255.1
/routing bgp peer add name=client1 remote-address=10.255.255.2 remote-as=65001 route-reflect=yes update-source=lo
/routing bgp peer add name=client2 remote-address=10.255.255.3 remote-as=65001 route-reflect=yes update-source=lo
  • route-reflect=yes marks that peer as a client of this reflector.
  • cluster-id on the instance identifies the cluster.
  • The clients are configured as ordinary iBGP peers that point at the reflector.

Use two reflectors in one cluster for resilience. They share the same cluster ID, so each ignores routes that came from the other.

Confederations

Three member ASes 65101, 65102 and 65103 joined by confederation sessions inside confederation AS 65001, with an outside peer that sees only AS 65001 over eBGP. A confederation divides one large AS into several member ASes. Inside a member AS the full mesh or a reflector design applies. Between member ASes, the sessions behave much like eBGP, but the routers treat the whole group as a single AS to the outside world.

The outside world sees only the confederation AS number. The member numbers appear inside the path as special segments and are not shown to outside peers.

On RouterOS v6 the instance carries the settings.

/routing bgp instance set default as=65101 confederation=65001 confederation-peers=65102,65103
  • as is the member AS of this router.
  • confederation is the number shown to the outside world.
  • confederation-peers lists the other member ASes in the group.
Member AS 65101inside groupconfed sessionMember AS 65102inside groupconfed sessionMember AS 65103inside groupMember AS 65101inside groupeBGP, confederation ASOutside peerother AS

Comparing the two

PointRoute reflectorConfederation
MethodRelaxes the iBGP ruleSplits the AS into members
Change to AS pathNoneMember segments are used inside
Typical useSimple, commonVery large or merged networks
Extra attributesOriginator ID, cluster listMember segments in AS path
Exam tip

Reflectors are the easier answer when a question asks how to reduce iBGP sessions in one AS.

What to remember for the exam

Seven facts cover most questions here.

  • Route reflectors and confederations avoid the iBGP full mesh.
  • Clients need a session only to their reflector.
  • A client route goes to all peers. A non client route goes to clients only.
  • Originator ID and cluster list prevent loops.
  • route-reflect=yes on a peer marks it as a client on RouterOS v6.
  • A confederation splits one AS into member ASes with a shared outside number.
  • The confederation and confederation-peers settings define it.
Watch out

A reflector does not make non clients exchange routes. They still need sessions between themselves.

Common mistakes

These four errors are common.

Setting route reflect on the client. The flag goes on the reflector, one per client peer.

Leaving non clients unmeshed. They then miss each other's routes.

Using different cluster IDs in a redundant pair. Each reflector then accepts the routes the other one reflected, which adds duplicate paths.

Mixing up the AS numbers in a confederation. The as value is the member number, and confederation is the public number.

Check yourself

Work through these three questions.

  • Why do route reflectors reduce the number of iBGP sessions?

    Clients need a session only to the reflector, which passes their routes to the other clients. A full mesh between clients is not needed.

  • Where is route-reflect=yes configured, and what does it mean?

    It is set on the reflector, on the peer entry for each client. It marks that peer as a client of this reflector.

  • What does a confederation present to the outside world?

    It presents one AS number, set with confederation. The member ASes inside are hidden from outside peers.

Topic 7 of 7 in BGP

Test yourself on BGP

The full MikroTik MTCINE question bank has 475 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by MikroTik. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.