For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

Control Plane configuration

You can configure TPLoad Core to work as a simulator for:

  • SGW-c and SGW-u with GTPv2 and GTP-u
  • Travelping Open Subscriber Server (TPOSS), as a server for Radius Accounting, Diameter NASREQ, Gx, and Gy
  • Package Gateway (PGW) and Service Control Gateway (SCG), as a client for Radius Accounting, Diameter NASREQ, Gx, and Gy
  • PGW alone, as a Radius client for TPOSS, with plain IP traffic from the framed IP address
  • Session Management Controller (SMC), GTP Proxy, and TDF on the Sx interface
  • Mobility Management Entity (MME), as an S6a Diameter client for testing an HSS TPLoad can also work in plain mode without the Control Plane session management.

Core section configuration

The core section contains the session_management selector and a set of global Control Plane rate settings:

See the example of the core section configuration:

yaml

Device generators configuration

TPLoad configuration should contain a section with device generator parameters.

For cases when the IP address is assigned by an external system, the configuration should have the definition for imsi, mei and msisdn. Each parameter has two options: first and step. The test assigns values starting from first and increasing by step.

For cases when TPLoad should assign the IP address by itself, there is the ipv4 parameter. It is defined by an IP range (from first to last) and the pseudorandom parameter. When pseudorandom is set to false, the addresses are assigned sequentially. If set to true, the addresses are assigned randomly from the range.

See the example of the device_generator section configuration:

yaml

SGW simulation configuration

To configure SGW, set the sgw as a value for core.session_management. In the servers.sgw section, the following parameters are available:

See the example of the SGW simulation configuration:

yaml

PGW and SCG-C simulation configuration

To configure Radius and Diameter clients to test TPOSS, use the lgw-cp value for core.session_management. In servers, the lgw-cp section is responsible for the Control Plane configuration.

See the example of the Radius and Diameter client configuration:

yaml

PGW simulation configuration

Use this mode when SCG-C and SCG-U handle Diameter with TPOSS and TPLoad replaces only the PGW. To use it, set the core.session_management to pgw-radius. TPLoad does not open a Diameter connection in this mode.

For each session, TPLoad sends a Radius Access-Request and takes the framed IP address from the Access-Accept. Then it sends an Accounting-Start request. The session is created only after the Accounting-Response arrives. Because of this, traffic does not reach SCG-U before TPOSS has the framed IP address. With options.generate_traffic, TPLoad then sends plain IP traffic from that address. While the session exists, TPLoad sends interim accounting requests. On deletion, it sends an Accounting-Stop request. When TPLoad receives a Disconnect-Request for a session, it deletes the session.

With apn_mode: hybrid, TPLoad does not send an Access-Request. It takes the framed IP address from device_generator.ipv4 and reports it to TPOSS in the Accounting-Start request. TPOSS then creates the session from accounting. With apn_mode: dual, which is the default, TPOSS assigns the framed IP address in the Access-Accept.

The mode reads its configuration from the lgw-cp section in servers. It uses these parameters from the PGW and SCG-C simulation configuration table: user_name, nas_id, apn, apn_mode, fake_nas_address, fake_sgsn_address, fake_ggsn_address, plmn, radius, options.generate_traffic, options.radius-acct-interim_interval, and options.skip_radius-acct-interim. It ignores the other parameters.

See the example of the PGW simulation configuration:

yaml

TPOSS simulation configuration

This mode is designed to replace TPOSS with TPLoad to test SCG individually. To use this option, set the core.session_management to nasreq.

See the example of the TPOSS simulation configuration:

yaml

SMC Sx simulation configuration

This mode is required for testing UPG individually, without any other components. To use it, set the core.session_management to pfcp.

See the example of the SMC Sx simulation configuration:

yaml

HSS load generation configuration

This mode is designed to load test an HSS server. TPLoad acts as the MME side of the S6a Diameter interface. To use it, set the core.session_management to hss.

Session creation sends an Authentication-Information-Request (AIR) followed by an Update-Location-Request (ULR). Session deletion sends a Purge-UE-Request (PUR). No user plane traffic is generated in this mode.

Peer-initiated Cancel-Location-Requests (CLR) are always answered with success. If the affected device has an established session, TPLoad additionally starts a regular deletion cycle for it, which includes sending a PUR unless servers.hss.options.skip_purge is set to true. A CLR that arrives while the device session is being created or deleted, or that refers to an IMSI outside of the device_generator.imsi range, has no further effect.

The subscriber identities are taken from the device_generator.imsi range. The subscribers must be provisioned on the HSS beforehand, otherwise every request fails with the DIAMETER_ERROR_USER_UNKNOWN error in the Result-Code AVP.

To run a test with a multiple HSS instances, you should specifiy HSS nodes in the servers.hss.diameter.remote_addresses configuration option. For example:

yaml

TPLoad opens one Diameter connection per node and spreads outgoing requests over them round-robin, so consecutive procedures of one subscriber land on different nodes. This requires every node to serve any request, which holds when they share subscriber state. Since a hostname contributes one node per resolved address, a single Kubernetes headless service name covers every pod behind it.

Note

The test becomes ready once all nodes have completed the Diameter capabilities exchange. If a node drops afterwards, the load continues on the remaining ones. TPLoad does not reconnect to it, so it stays out for the rest of the run.

The following table provides the information about the configurable parameters:

See the example of the HSS load generation configuration:

yaml

Plain

The plain mode is designed to load test using User Plane traffic only. Sessions are created and removed immediately. To use the plain mode, set the core.session_management parameter to plain. No additional configuration is required.