Announced default route by other party using BGP
CGW architecture consists of routers on our side as well as the side of the other party.
Traffic between the routers
L2 can either be a direct connection to the other
router (a direct point-to-point link), or can be implemented over
a tunnelling protocol, such as GRE.
In the first case, the connection could 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 for a tunnelling protocol looks as follows:
In general, all behaviours of a 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:
Routers C2 and C3 announce their respective routes and the
software used in the routers. In case of CGW, it is bird that adds the
routes to the kernel routing table.
In the most simple case, the router C2 announces its local network to
router C3, and router C3 announces the default route to C2.
Therefore, all traffic coming from the VXLAN C1 is routed to C3.
The resulting table on C2 looks as follows:
The resulting table on C3 looks as follows: