Closed MaFe1401 closed 2 years ago
Hello, it is hard to say what is the problem without knowing your configuration, can you post your NED and INI file?
Hi, thanks for the answer. INI file:
[General]
sim-time-limit=20s
**.routingTableRecorder.enabled = false
output-scalar-file-append = false
############### Statistics ##################
output-scalar-file = ${resultdir}/${configname}/${repetition}.sca
output-vector-file = ${resultdir}/${configname}/${repetition}.vec
seed-set = ${repetition}
**.vector-recording = false
################ Mobility parameters #####################
# *
**.mobility.constraintAreaMaxX = 1000m
**.mobility.constraintAreaMaxY = 1000m
**.mobility.constraintAreaMinX = 0m
**.mobility.constraintAreaMinY = 0m
**.mobility.constraintAreaMinZ = 0m
**.mobility.constraintAreaMaxZ = 0m
**.mobility.initFromDisplayString = false
############### Number of Resource Blocks ################
**.numBands = 50 # this value should be kept equal to the number of RBs
############### Transmission Power ##################
**.ueTxPower = 26
**.eNodeBTxPower = 40
**.targetBler = 0.01
**.blerShift = 5
############### IPv4 configurator config #################
*.ipv4NetworkConfigurator.config = xmldoc("./IP_config.xml")
[Config simple]
network = network_5g.Network
sim-time-limit=20s
############### e/gNodeB configuration #################
*.gNodeB.mobility.initialX = 450m
*.gNodeB.mobility.initialY = 300m
############## UE configuration ##################
#*.numUe = 1
# connect the UE's NIC to the corresponding serving eNB
*.nrUe.macCellId = 1
*.nrUe.masterId = 1
*.nrUe.nrMacCellId = 1
*.nrUe.nrMasterId = 1
# UE position
*.nrUe.mobility.initialX = 450m
*.nrUe.mobility.initialY = 350m
#General configuration for Voice-over-IP DL traffic to the UE
#
[Config VoIP-DL]
extends=simple
# one UDP application for each user
*.nrUe.numApps = 1
# the amount of UDP applications on server should be equal to (numUEs)*(ue[*].numApps)
*.Server.numApps = 1
#============= Application Setup =============
*.nrUe.app[*].typename = "VoIPReceiver"
*.nrUe.app[0].localPort = 3000
*.Server.app[*].PacketSize = 40
*.Server.app[*].destAddress = "ue[0]" # obtain the address of the client by reading its index in the array of udp Apps
*.Server.app[*].localPort = 3088+ancestorIndex(0)
*.Server.app[*].typename = "VoIPSender"
*.Server.app[*].startTime = uniform(0s,0.02s)
#------------------------------------#
NED file:
package network_5g;
import inet.networklayer.configurator.ipv4.Ipv4NetworkConfigurator;
import inet.networklayer.ipv4.RoutingTableRecorder;
import inet.node.ethernet.Eth10G;
import inet.node.inet.Router;
import inet.node.inet.StandardHost;
import simu5g.common.binder.Binder;
import simu5g.common.carrierAggregation.CarrierAggregation;
import simu5g.nodes.NR.NRUe;
import simu5g.nodes.NR.gNodeB;
import simu5g.nodes.Ue;
import simu5g.nodes.Upf;
import simu5g.world.radio.LteChannelControl;
//
// TODO documentation
//
network Network
{
@display("bgb=628,397");
submodules:
gNodeB: gNodeB {
@display("p=249,151");
}
upf: Upf {
@display("p=337,149");
}
router: Router {
@display("p=452,149");
}
Server: StandardHost {
@display("p=557,149");
}
ipv4NetworkConfigurator: Ipv4NetworkConfigurator {
@display("p=440,293");
}
routingTableRecorder: RoutingTableRecorder {
@display("p=440,231");
}
channelControl: LteChannelControl {
@display("p=274,238");
}
binder: Binder {
@display("p=268,300");
}
carrierAggregation: CarrierAggregation {
@display("p=142,234");
}
nrUe: NRUe {
@display("p=77,157");
}
connections:
Server.pppg++ <--> Eth10G <--> router.pppg++;
router.pppg++ <--> Eth10G <--> upf.filterGate;
upf.pppg++ <--> Eth10G <--> gNodeB.ppp;
}
I have also noticed that the Run configuration for my project is different from the examples' one. Is it ok?
Hmm, please try to use the same setting for the configuration, i.e. select "opp_run" as executable.
Also, why have you created a new project instead of adding your simulation example directly in the simu5G simulations folder?
I created a new folder with my INI file into the simu5G simulations folder (also added my NED file to "networks") but nothing changed. Then, I copied the code from standalone example (INI and NED) into my files and modified it until I got the network I wanted, and everything is working now. Guess there was something wrong with the code of my INI or NED files. Thank you @giovanninardini
Hello,
I have been trying to run my project on ubuntu 20.04 but I just keep getting exit code: 89. I can run simu5g examples without problem, but not my project. Am I doing something wrong?