Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.94 KB

BGP-BBR.md

File metadata and controls

40 lines (31 loc) · 1.94 KB

Overview

The goal of the test to check that BBR feature works correctly. The feature is implemented on bgpcfgd. The bgpcfgd dynamicaly changes BGP configuration, which either enable or disabled BBR functionality. The BBR functionality is enablement to see DUT ASN in the routes aspath not more than once.

Scope

The test is targeting a running SONIC system with fully functioning configuration. The purpose of the test is to test BBR feature, which includes bgpcfgd implementation and BGP.

Testbed

The test could run on t1 testbed in virtual switch environment.

Setup configuration

This test doesn't require any configuration.

Test

The test announces ipv4 and ipv6 routes from one of the T0s, and checks when DUT accepts them with different BBR state.

Test cases

Test case # 1 - BBR enabled, aspath contains one DUT ASN

  1. Ensure that BBR is enabled on the DUT
  2. Announce ipv4 and ipv6 routes fron one of the T0s to DUT. Each route must have patched aspath which contains DUT ASN once.
  3. Check that DUT BGP accepted both routes to the routing table
  4. Restore the BBR state how it was been before the test

Test case # 2 - BBR enabled, aspath contains two DUT ASN

  1. Ensure that BBR is enabled on the DUT
  2. Announce ipv4 and ipv6 routes fron one of the T0s to DUT. Each route must have patched aspath which contains DUT ASN two times.
  3. Check that DUT BGP rejected both routes to the routing table
  4. Restore the BBR state how it was been before the test

Test case # 3 - BBR disabled, aspath contains one DUT ASN

  1. Ensure that BBR is disabled on the DUT
  2. Announce ipv4 and ipv6 routes fron one of the T0s to DUT. Each route must have patched aspath which contains DUT ASN once.
  3. Check that DUT BGP rejected both routes to the routing table
  4. Restore the BBR state how it was been before the test