Initialize wireless network simulator.
Create a gNB node with these specifications.
Duplex mode — Time division duplex
Channel bandwidth — 20 MHz
Subcarrier spacing — 30 KHz
Create a UE node with a transmit power of 20 dBm.
Configure these uplink power control parameters at the gNB node.
Add a random way point mobility model to the UE node.
Establish a connection between the UE and gNB nodes.
Create a voice over Internet protocol (VoIP) application traffic pattern object.
Add the data traffic source to the gNB node. Set the destination node as the UE node.
Add the gNB node to the wireless network simulator.
Add the UE node to the wireless network simulator.
Specify the simulation time, in seconds.
Run the simulation for the specified simulation time.
Obtain the statistics for the gNB and UE nodes.