IBM Cloud Docs
Planning for deployment

Planning for deployment

This topic provides general considerations for planning your Direct Link deployment.

Using AS prepends with VPC connections

Currently, VPC networking doesn't consider the AS path length when selecting the best route for network traffic. However, you can use a transit gateway between the direct link and VPC in certain topologies to achieve the same outcome. Also, if prefix values are repeated across different AS prepends (of the same policy), the first instance of the prefix value sets the prefix length; the rest are ignored.

Keep in mind that AS prepends currently have no effect on the routing between VPCs and direct links.

Examples

The following deployment topologies illustrate various AS Prepend scenarios when connecting to VPCs.

  1. VPC chooses a route regardless of the AS path length.

    AS prepends have no effect on the routing between VPCs and direct links
    Figure 1. AS prepends have no effect on the routing between VPCs and direct links.

  2. VPC routes to the transit gateway and the transit gateway considers the AS path length when choosing the route to on-premises.

    AS prepends are considered during route determination
    Figure 2. AS prepends are considered during route determination.

  3. The local transit gateway is preferred over the global transit gateway.

    AS prepends will not be considered during route determination
    Figure 3. AS prepends will not be considered during route determination.

  4. The local transit gateway is preferred over the global transit gateway. However, the AS path is considered to get to the on-premises.

    AS prepends are considered during route determination
    Figure 4. AS prepends are considered during route determination.

  5. A direct link to VPC connection is always higher priority than a direct link (attached to a transit gateway) connected to a VPC.

    Direct link directly attached to a VPC is always higher priority than a direct link (attached to a transit gateway) connected to a VPC
    Figure 5. Direct link directly attached to a VPC is always higher priority than a direct link (attached to a transit gateway) connected to a VPC.

Planning for virtual connections

Direct Link gateways allow on-prem networks to connect to networks in the IBM Cloud using virtual connections. Network traffic between virtual connections on a Direct Link gateway is not supported. However, depending on what network prefixes are advertised from the on-prem network, traffic may still flow between the virtual connections. For example, if the on-prem network advertises the default route (0.0.0.0/0). In this case, all traffic originating from a network connected through a virtual connection that does not find a route more specific than 0.0.0.0/0 will be sent to the Direct Link gateway. Once arriving at the gateway, the traffic will be forwarded using standard routing algorithms. If another virtual connection has a route matching the destination address of the traffic, then it will be forwarded to the network on that virtual connection instead of the less specific 0.0.0.0/0 of the on-prem network.