6. Simulating user traffic
Create an APN in Magma Orchestrator
Create an Access Point Name (APN) in Magma Orchestrator:
- Login to
https://magma-test.<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
- APN ID:
- Click on "Save"
Add a network subscriber
Add a subscriber to the network in Magma Orchestrator:
- Login to
https://magma-test.<your domain>
- Click on "Subscriber" on the left panel
- Click on "Add Subscriber"
- 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
- Subscriber Name:
- 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 Congratulations You have a fully functioning 4G Network :partying_face: