Skip to content

Mobility Models

zerepolbap edited this page Jun 15, 2026 · 3 revisions

We implemented several simple mobility models for the UE:

  1. Static Model: the UE position is not updated.
  2. Random Walk Model: randomly selects a new completely random direction every time the elapsed time is greater than an arbitrary target time.
  3. Random Waypoint Model: randomly selects a new target position every time the previous target position has been reached.
  4. Manhattan Model: the name comes from the squared shapes of the followed path, similar to Manhattan streets. The model randomly selects a new direction from the main four cardinal directions every time the elapsed time is greater than an arbitrary target time.
  5. Linear Drift Model: the UE follows a linear drift from its initial position.
  6. Clockwise Model: the UE follows a circular or clockwise movement around the scenario center.

The mobility model IDs are:

  • 0: Static Model.
  • 1: Random Walk Model.
  • 2: Random Waypoint Model.
  • 3: Random Manhattan Model.
  • 4: Linear Drift Model.
  • 5: Clockwise Model.

The three original mobility model outputs from the emulator's implementation:

MobilityModels.png

The Mobility Models are organized identically to the Traffic Generator models: we created a base class that the custom implemented Mobility Model classes override. Every time update_pos() from the base or inheriting classes is called, a new position for the UE is estimated. There is one instance for each UE, and each UE can be assigned with a different Mobility Model. The base class implements the static user model. The initial position can be randomized or manually selected by the user using the configuration file.

For each UE, in the configuration file the user can determine the following parameters' values:

[UE]
# ...
mobility_type: 1
pos_x: 50
pos_y: 50
random_init: false
speed: 0.0
speed_var: 0.0
max_distance: 1000
time_target: 5
time_target_var: 0

Which define:

  • mobility_type: id of the desired mobility model for current UE.
  • pos_x: initial x position.
  • pos_y: initial y position.
  • random_init: whether to randomly initialize the UE position.
  • speed: target speed of the UE in km/h.
  • speed_var: size of the white noise to be applied to the target speed.
  • max_distance: maximum distance of the UE to the gNB.
  • time_target: target time used in some of the implemented models, such as random walk model.
  • time_target_var: size of the white noise applied to the target time.

Scenario Limits

The implementation limits distances and speeds according to the selected scenario. Rural Macrocell, Urban Macrocell and Urban Microcell cap distance to 5000 m. Indoor Open Office and Indoor Mixed Office cap distance to 150 m. Indoor Shopping Mall caps distance to 600 m.

The Rural Macrocell model allows speeds up to 120 km/h. Other scenarios are limited to pedestrian speeds by the implementation.

Clone this wiki locally