> 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-tposs.md).

# Test TPOSS

You can use TPLoad to perform benchmark testing for a single TPOSS installation. In this use case, TPLoad Core simulates a Radius server or a Service Control Gateway (SCG). Since TPOSS benchmarking requires only the TPLoad Core component, traffic-related sections can be omited. 

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

For this use case, the corresponding PGW setup has the following configuration:

| Component | Interface | Address |
|:---|:---|:---|
| TPOSS | ctrl | 198.18.0.16 |

TPLoad has the following addresses:

| Component | Interface | Address |
|:---|:---|:---|
| TPLoad Core | ctrl | 198.18.0.128 |

## TPLoad configuration steps

The main part of configuration is settings different Radius and Diameter AVPs. 
Follow these steps to configure TPLoad Core to perform benchmark testing for TPOSS:

1. Configure the **core** and **servers** sections. In this use case, set **session management** to `lgw-cp`. In **servers**, configure the `lgw-cp` instance and set up Radius and Diameter AVPs.

  ```yaml
    core:
      session_management: lgw-cp
      provision_duration: 0s

    servers:
      lgw-cp:
        user_name: "proxy"
        nas_id: "test.nas.cennso.net"
        apn: "test.apn.cennso.net"
        fake_nas_address: 198.18.0.128
        fake_sgsn_address: 198.18.0.128
        fake_ggsn_address: 198.18.0.128
        plnm:
          mcc: "262"
          mnc: "01"
        radius:
          coa_listen_address: 198.18.0.128:3799
          auth_remote_address: 198.18.0.16:1812
          acct_remote_address: 198.18.0.16:1813
          secret: "secret"
        diameter:
          local_address: 198.18.0.128:0
          remote_address: "198.18.0.16:3868"
          origin_host: test.diam.cennso.net
          origin_realm: diam.cennso.net
          destination_realm: tpip.net
        rating_groups:
          online:
            "Online": 3220
            "Portal": 3221
            "FactoryTest": 2100
            "UnlimitedStreaming": 3000
            "UnlimitedStreamingPD": 3100
            "OnlineRedirection": 3224
  ```

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

  ```yaml
      device_generator:
        imsi:   { first: "262016000000000",  step: 1  }
        mei:    { first: "2222222200000000", step: 10 }
        msisdn: { first: "33333300000000",   step: 1  }
  ```

3. Use the `RampUp`, `StabilityLoop`, and `SteadyLoop` testing functions for the purpose of this test case:

  ```yaml
      tests:
        - name: rampup
          function: RampUp
          parameters:
            sessions_count: 100
            hold_time: 5s
          rate_limits:
            create: 10
            delete: 10

        - name: stability
          function: StabilityLoop
          parameters:
            sessions_count: 110
            sessions_loop_count: 100
            test_duration: 5m
          rate_limits:
            create: 10
            delete: 10

        - name: steady
          function: SteadyLoop
          parameters:
            sessions_count: 110
            sessions_loop_count: 100
            max_diff: 10
            test_duration: 5m
          rate_limits:
            create: 10
            delete: 10
  ```

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