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.

User equipment configuration

You can configure a simulation for the connected user equipment (UE) using the ue configuration section that contains all parameters related to the UE generation and its behaviour. There are two sections under ue:

  • generators - this section contains parameters and steps for every generated UE
  • create - this section contains a list of Virtual Devices Groups that represent UEs with their attached behaviours

Generators

These are the configurable parameters for the generators section:

A quoted start value sets the length of the generated value, leading zeros included. For example, imsi_start: "00101123456789" generates 14-digit IMSIs. An unquoted start value is padded with zeros to 15 digits for the IMSI, 16 for the IMEI, and 14 for the MSISDN.

Behaviours

For each entity in the create section, there are two parameters:

  • count - contains a number of UEs to generate
  • behaviours - contains a list of attached session behaviours; the possible behaviours are: connect, probe_session, download_http, ping_target, ipv6_router_solicitation, update_location, plmn_handover, update_bearer_context, and random

connect behaviour

The connect behaviour controls create and delete session requests. These are the settings that you can specify under the parameters section:

The parameters section also contains a set of the following location parameters:

See the example of the connect behaviour configuration:

yaml

probe_session behaviour

The probe_session behaviour creates one permanent session and pins it to a named S5-U tunnel interface, so that interface gets exactly one UE IP address. External tools can then probe the data plane through that interface. The behaviour requires the sgwsimulatorv2 binary. See Set up probe mode for the complete setup.

The behaviour holds the session for the whole simulator lifetime:

  • If the create session request fails, the behaviour retries it every second.
  • If the network deletes the session with a Delete Bearer Request, the behaviour re-establishes it.

Each interface accepts only one probe_session device. Configure one device per interface and set count to 1. If two devices claim the same interface, the simulator stops with an error.

These are the settings that you can specify under the parameters section:

See the example of the probe_session behaviour configuration:

yaml

download_http behaviour

The download_http behaviour downloads a file after a session connection. These are the settings that you can specify under the parameters section:

See the example of the download_http behaviour configuration:

yaml

ping_target behaviour

The ping_target behaviour tries to ping a given URL after a session connection is established. These are the settings that you can specify under the parameters section:

See the example of the ping_target behaviour configuration:

yaml

ipv6_router_solicitation behaviour

The ipv6_router_solicitation behaviour starts IPv6 Stateless Address Autoconfiguration (SLAAC) the way a real UE does. When the session tunnel comes up, the UE sends one Router Solicitation (RS) to the PGW and waits for a Router Advertisement (RA). The behaviour requires the sgwsimulatorv2 binary and acts only on sessions with an IPv6 address.

The RS goes to ff02::2 with hop limit 255. Its source address ends with the interface identifier, the lower 64 bits of the IPv6 address in the PDN Address Allocation (PAA). The behaviour accepts the RA when one of its Prefix Information options carries the /64 prefix of the PAA address.

The behaviour ignores an RA that fails the validity checks of RFC 4861 §6.1.2, for example an RA with a hop limit other than 255 or a source address that is not link-local. An RA without the PAA prefix does not end the wait: the UE keeps waiting for a matching RA until the timeout.

Until the RA arrives, the UE holds back IPv6 traffic:

  • download_http with use_ipv6: true starts only after the RA.
  • ping_target skips IPv6 targets and keeps pinging IPv4 targets.

If no RA arrives within the timeout, the session sends no IPv6 traffic until it disconnects.

These are the settings that you can specify under the parameters section:

The behaviour reports these metrics:

See the example of the ipv6_router_solicitation behaviour configuration:

yaml

update_location behaviour

The update_location behaviour changes TAC/ECI and sends modify bearer requests. These are the settings that you can specify under the parameters section:

See the example of the update_location behaviour configuration:

yaml

plmn_handover behaviour

This functionality allows the dynamic switch from the SGW preset MCC/MNC settings to the user-configured values at specified intervals. These are the settings that you can specify under the parameters section:

See the example of the plmn_handover behaviour configuration:

yaml

random behaviour

The random behaviour allows composing multiple behaviours and executing one of them randomly at each interval, based on weighted chances. Nested behaviours are executed in RunOnce mode — they run a single action per trigger without starting their own repeating timers. These are the settings that you can specify under the parameters section:

Each entry in the behaviours list has:

The nested behaviours must run in RunOnce mode, which is supported with update_location, plmn_handover, and update_bearer_context behaviours.

See the example of the random behaviour configuration:

yaml

Full UE example

See the full configuration example for UE:

yaml