Skip to main content
Version: 1.8.0

6. Simulating user traffic

Create an APN in Magma Orchestrator

Create an Access Point Name (APN) in Magma Orchestrator:

  1. Login to https://magma-test.<your domain>
  2. Click on "Traffic" on the left panel
  3. Click on "APNs"
  4. Click on "Create New APN"
  5. Fill in the following values:
    • APN ID: default
    • Class ID: 9
    • ARP Priority Level: 15
    • Max Required Bandwidth
      • Upload: 1000000
      • Download: 1000000
    • ARP Pre-emption-Capability: Disabled
    • ARP Pre-emption-Vulnerability: Disabled
  6. Click on "Save"

Add a network subscriber

Add a subscriber to the network in Magma Orchestrator:

  1. Login to https://magma-test.<your domain>
  2. Click on "Subscriber" on the left panel
  3. Click on "Add Subscriber"
  4. Click on "Add New Row"
  5. Fill in the following values:
    • Subscriber Name: IMSI001010000000001
    • IMSI: IMSI001010000000001
    • Auth Key: 00112233445566778899aabbccddeeff
    • Auth OPC: 63BFA50EE6523365FF14C1F45F88737D
    • Service: ACTIVE
    • Data Plan: default
    • Active APNs: default
  6. Click on "Save"
  7. Click on "Save and Add Subscribers"

Attach a User Equipment to the Network

Attach a User Equipment (UE) to the Network:

juju run-action srs-enb-ue/0 attach-ue --string-args usim-imsi=001010000000001 usim-k=00112233445566778899aabbccddeeff usim-opc=63BFA50EE6523365FF14C1F45F88737D --wait

Run the simulation

SSH to the machine where srsRAN is running:

juju ssh <your srsRAN machine ID>

Use the UE's interface to ping something on the internet, here you should expect no packet loss.

ping -I tun_srsue google.com

!!!success Congratulations You have a fully functioning 4G Network :partying_face: