How can I test the resiliency of my Direct Connect connection?

Last updated: 2020-07-09

I want to be sure that traffic is routed over redundant virtual interfaces when one of my virtual interfaces is out of service. How can I test the resiliency of my AWS Direct Connect connection?

Short description

You can test the resiliency of Direct Connect connections using the Failover Testing feature. With this feature, you disable one or more Border Gateway Protocol (BGP) sessions on a Direct Connect virtual interface for a configured duration. Then, you can verify that traffic is routed to redundant virtual interfaces as appropriate.

Resolution

Before you begin testing, be sure that you have redundant Direct Connect virtual interfaces or VPN connections to avoid an outage.

Start the failover test

Note: You can run the test on any type of virtual interface (public, private, or transit). However, only the owner of the AWS account that includes the virtual interface can initiate the test.

  1. Open the Direct Connect console.
  2. In the navigation pane, choose Virtual Interfaces.
  3. Select your virtual interface.
  4. Choose Actions, and then choose Bring down BGP.
  5. In the Start failure test dialog box, complete the following:
    For Peerings, choose the peering session to bring down for your test (IPv4 or IPv6).
    For Test maximum time, enter the duration of the test in minutes. The maximum value is 180 minutes, and the default value is 180 minutes.
    For To Confirm test, enter Confirm, and then choose Confirm.

The BGP peering session is now in the DOWN state. You can send traffic to verify that there are no outages and validate the resiliency of your connection.

Note: If required, you can stop the test immediately.

You can also perform the failover test using the StartBgpFailoverTest API call using the AWS Command Line Interface (AWS CLI) or AWS SDK.

View the failover test history

In the Direct Connect console, check the Test history column on your virtual interface page. Or, use the ListVirtualInterfaceTestHistory API call in the AWS CLI or AWS SDK.

Test history data is stored for up to 365 days.

Stop the failover test

Note: You can stop the failover test at any time.

  1. Open the Direct Connect console.
  2. In the navigation pane, choose Virtual Interfaces.
  3. Select your virtual interface.
  4. Choose Actions, and then choose Cancel test.

You can also stop the failover test with the StopBgpFailoverTest API call using the AWS CLI or AWS SDK.