I want to implement a code for host mobility between gNodeB. But the host does not move during simulation.
This is my '.ned' file
import inet.node.ethernet.Eth100G;
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
//
import simu5g.nodes.NR.NRUe;
import simu5g.nodes.NR.gNodeB;
import simu5g.common.binder.Binder;
import simu5g.nodes.Ue;
import simu5g.world.radio.LteChannelControl;
import simu5g.common.carrierAggregation.CarrierAggregation;
import inet.networklayer.configurator.ipv4.Ipv4NetworkConfigurator;
import inet.node.inet.StandardHost;
import inet.visualizer.common.IntegratedVisualizer;
I want to implement a code for host mobility between gNodeB. But the host does not move during simulation.
This is my '.ned' file
import inet.node.ethernet.Eth100G;
// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see http://www.gnu.org/licenses/. // import simu5g.nodes.NR.NRUe; import simu5g.nodes.NR.gNodeB; import simu5g.common.binder.Binder; import simu5g.nodes.Ue; import simu5g.world.radio.LteChannelControl; import simu5g.common.carrierAggregation.CarrierAggregation; import inet.networklayer.configurator.ipv4.Ipv4NetworkConfigurator; import inet.node.inet.StandardHost; import inet.visualizer.common.IntegratedVisualizer;
network edgeNetwork { parameters: int numHosts; @display("bgb=800,600"); submodules: binder: Binder { @display("p=50,175;is=s"); } channelControl: LteChannelControl { @display("p=50,25;is=s"); } carrierAggregation: CarrierAggregation { @display("p=50.993748,258.7;is=s"); } configurator: Ipv4NetworkConfigurator { @display("p=61.43375,95.284996"); } gNodeB1: gNodeB { @display("p=300,150;is=vl"); } gNodeB2: gNodeB { @display("p=600,150;is=vl"); }
}
### This is my '.ini'file
[General]
.gNodeB.numX2Apps = 1 # one x2App per peering eNodeB .gNodeB.x2App[].server.localPort = 5000 + ancestorIndex(1) # Server ports (x2App[0]=5000, x2App[1]=5001, ...) .gNodeB1.x2App[0].client.connectAddress = "gNodeB2%x2ppp0" *.gNodeB2.x2App[0].client.connectAddress = "gNodeB1%x2ppp0"
image-path = "/home/user/Integration/inet/showcases/general/simpleMobility"
**.networkConfiguratorModule = ""
.visualizer..mobilityVisualizer.displayMobility = true # master switch .visualizer..mobilityVisualizer.displayPositions = true .visualizer..mobilityVisualizer.displayOrientations = true .visualizer..mobilityVisualizer.displayVelocities = true .visualizer..mobilityVisualizer.displayMovementTrails = true
.constraintAreaMinX = 0m .constraintAreaMaxX = 800m .constraintAreaMinY = 0m .constraintAreaMaxY = 600m .constraintAreaMinZ = 0m .constraintAreaMaxZ = 0m
[Config TurtleMobility] network = edgeNetwork
*.numHosts = 2
.host.mobility.typename = "TurtleMobility" .host[].mobility.initialX = 100m .host[].mobility.initialY = 50m .host[*].mobility.initialZ = 0m
.host[0].mobility.turtleScript = xmldoc("config.xml") .host[1].mobility.turtleScript = xmldoc("config2.xml")
------------------------------------