> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cgw/1.12/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/cgw/1.12/architecture/bgp-default-route.md).

# Announced default route by other party using BGP

CGW architecture consists of local routers on our side, as
well as on the side of the other party.

![Overview](https://docs.cennso.com/api/assets/components/cgw/1.12/assets/bgp-announced-routing.svg)

## Traffic between the routers

`L2` can either be a direct connection to the other
router (a direct point-to-point link) or it can be implemented over
a tunnelling protocol, such as GRE.

In the first case, the connection can either be implemented as a direct cable or fibre, a switched network, or even a virtual link over MPLS. For CGW, the stack of protocols in `L2` looks the same, though. The payload traffic in the first case consists only of IP packets. The payload traffic for GRE, as an example of a tunnelling protocol, looks as follows:

![GRE layers](https://docs.cennso.com/api/assets/components/cgw/1.12/assets/GRE-layers.svg)

In general, all behaviours of routed networks apply here.

To exchange the route tables and reach networks beyond C3, the Border Gateway Protocol (BGP) is used. BGP network stack looks as follows:

![BPG layers](https://docs.cennso.com/api/assets/components/cgw/1.12/assets/bgp-layers.svg)

Routers `C2` and `C3` announce their respective routes and the software used in the routers. In the case of CGW, it is `bird` that adds the routes to the kernel routing table.

![IPs and routes](https://docs.cennso.com/api/assets/components/cgw/1.12/assets/bgp-announced-routing-with-ip.svg)

In the most simple case, router `C2` announces its local network to router `C3`, and router `C3` announces the default route to `C2`. All traffic coming from the VXLAN `C1` is routed to `C3`. The resulting table on `C2` looks as follows:

```
2001:db8:2000::/64 via L1
::/0 via 2001:db8:1000::1
```

The resulting table on `C3` looks as follows:

```
2001:db8:2000::/64 via 2001:db8:1000::2
... other interfaces
```
