Skip to content

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.nms.<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:
  6. APN ID: default
  7. Class ID: 9
  8. ARP Priority Level: 15
  9. Max Required Bandwidth
    • Upload: 1000000
    • Download: 1000000
  10. ARP Pre-emption-Capability: Disabled
  11. ARP Pre-emption-Vulnerability: Disabled
  12. 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 Subscribers"
  4. Click on "Add"
  5. Fill in the following values:
  6. Subscriber Name: IMSI001010000000001
  7. IMSI: IMSI001010000000001
  8. Auth Key: 00112233445566778899aabbccddeeff
  9. Auth OPC: 63BFA50EE6523365FF14C1F45F88737D
  10. Service: ACTIVE
  11. Data Plan: default
  12. Active APNs: default
  13. Click on "Save"
  14. 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

You have a fully functioning 4G Network 🥳