Hi for all;
There is no reply !!!
It seems that I must follow theses steps:
1- add a script that allows UE to support two interfaces (1 for LTE and 1 for wi-fi).
2- add a script that develop the link S2a between PGW and Mesh Acces Point Portal.
Please help me.
HI,
Let me start to write the script which allows to create UE with two interface (one for LTE and one for Mesh).
if I have correctly understand the tutorial, to add interfaces we should add netdevice to node.
So the function uint32_t ns3::Node::AddDevice should be enhanced to allows the create of 2 interfaces instead of one.
Can you tell me if i'm in the right road or not ?
In other hand, how can I check if changes are made correctly ? May be there is no code bugs but the added code is not making the target function !!!
Hi,
I will start to use the example "lena-simple-epc.cc".
In this file I find the following code :
// to create the UEs
NodeContainer ueNodes;
ueNodes.Create(numberOfNodes);
// Install LTE Devices to the nodes
NetDeviceContainer ueLteDevs = lteHelper->InstallUeDevice (ueNodes);
so to install device, I shoudl see the file "ltehelper.cc" and the fucntion:
NetDeviceContainer
LteHelper::InstallUeDevice (NodeContainer c)
{
NS_LOG_FUNCTION (this);
NetDeviceContainer devices;
for (NodeContainer::Iterator i = c.Begin (); i != c.End (); ++i)
{
Ptr<Node> node = *i;
Ptr<NetDevice> device = InstallSingleUeDevice (node);
devices.Add (device);
}
return devices;
}
However, mu goal is
to have a ue having two interface one for LTE (which is already done by this
code)
and a second interface for mesh. So I think that I must use the function
NetDeviceContainer
MeshHelper::Install (const WifiPhyHelper &phyHelper, NodeContainer c) const
So, if I have correctly understand, the code in the "lena-simple-epc.cc" shoudl be changed as below:
// to create the UEs
NodeContainer ueNodes;
ueNodes.Create(numberOfNodes);
// Install LTE Devices to the nodes
NetDeviceContainer ueLteDevs = lteHelper->InstallUeDevice (ueNodes);
NetDeviceContainer ueLteDevs = meshhelper-> mesh.SetNumberOfInterfaces (ueNodes);
So is that true ?
Thanks for your help.
NetDeviceContainer ueMeshDevs = mesh.Install (wifiPhy, ueNodes);
I understand what you are trying to achieve, but at the moment there is no such functionality in EPC.When you implement that, you can extend the EPC helper to assign IP addresses on both interfaces.
From the mesh example, the root is a broadcast address, not a single node. I am not an mesh-expert, so I would suggest to study the documentation/examples for further details.