6. Simulating user traffic
Create an APN in Magma Orchestrator
Create an Access Point Name (APN) in Magma Orchestrator:
- Login to 
https://magma-test.nms.<your domain> - Click on "Traffic" on the left panel
 - Click on "APNs"
 - Click on "Create New APN"
 - Fill in the following values:
 - APN ID: 
default - Class ID: 
9 - ARP Priority Level: 
15 - Max Required Bandwidth
- Upload: 
1000000 - Download: 
1000000 
 - Upload: 
 - ARP Pre-emption-Capability: 
Disabled - ARP Pre-emption-Vulnerability: 
Disabled - Click on "Save"
 
Add a network subscriber
Add a subscriber to the network in Magma Orchestrator:
- Login to 
https://magma-test.nms.<your domain> - Click on "Subscriber" on the left panel
 - Click on "Add Subscribers"
 - Click on "Add"
 - Fill in the following values:
 - Subscriber Name: 
IMSI001010000000001 - IMSI: 
IMSI001010000000001 - Auth Key: 
00112233445566778899aabbccddeeff - Auth OPC: 
63BFA50EE6523365FF14C1F45F88737D - Service: 
ACTIVE - Data Plan: 
default - Active APNs: 
default - Click on "Save"
 - 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