> For the complete documentation index, see [llms.txt](https://docs.cennso.com/test-tools/tpload/latest/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/test-tools/tpload/latest/use-cases/testing-vpp.md).

# Test the L2/L3 router

Benchmark testing of VPP-based routers is the basic scenario for the KPIs measurement. 
This mode of TPLoad allows you to benchmark any of the L2/L3 routers, such as FPP, legacy CGW, and VPP-CGW.

In this use case, TPLoad Core controls only the provisioning of the devices to the Generators without any simulation.
TPLoad Generator-left and TPLoad Generator-right are directly attached to the VPP router inbound and outbound interfaces.

![tpload and generators scheme](https://docs.cennso.com/api/assets/test-tools/tpload/latest/assets/test-vpp.svg "Test the VPP router scenario")

For this use case, VPP-based router has the following configuration:

| Component | Interface | Address |
|:---|:---|:---|
| VPP | Left | 198.18.0.1 |
| VPP | Right | 198.19.0.1 |

TPLoad has the following addresses:

| Component | Interface | Address | Gateway |
|:---|:---|:---|:---|
| TPLoad Core | None | - | - |
| TPLoad Generator-left | Left | 198.18.0.129+ | 198.18.0.1 |
| TPLoad Generator-right | Right | 198.19.0.129+ | 198.19.0.1 |

## TPLoad configuration steps

Follow these steps to configure TPLoad so that it performs benchmark testing for a VPP router:

1. Configure the **core** section. In this use case, set **session_management** to `plain`. No **servers** section is required.

    ```yaml
    core:
      session_management: plain
    ```

2. Set the desired UE IP range for **device_generator**:

    ```yaml
    device_generator:
      ipv4:
        first: "16.0.0.1"
        last: "16.15.255.254"
        pseudorandom: false
    ```

3. Use the `StabilityLoop` testing function for the purpose of this test case:

    ```yaml
    tests:
      - name: Loop
        function: StabilityLoop
        flows_count: 1
        parameters:
          sessions_count: 110000
          sessions_loop_count: 100000
          test_duration: 30m
        load_left:
          speed: 4 mpps
          traffic_profile: default
          burst_profile: minimal
        load_right:
          speed: 1 pps
          traffic_profile: default
          burst_profile: minimal
        rate_limits:
          create: 111
          delete: 111
    ```

4. Align network configuration with the overall network setup:

    ```yaml
    traffic_generators:
      left:
        address: 198.18.0.129+
        gateway: 198.18.0.1
        ring_size: 16384
        buffer_size: 2048
        queue_count: 1

      right:
        address: 198.19.0.129+
        gateway: 198.19.0.1
        nat_aware: true
        ring_size: 16384
        buffer_size: 2048
        queue_count: 1

    traffic_profiles:
      - name: default
        size_from_range: { min: 50, max: 1500 }

    burst_profiles:
      - name: minimal
        count_from_range: { min: 1, max: 3 }
    ```

5. After applying the configuration, the connectivity should work as expected.
