Early steps to find the LTE nodes ip Addresses

132 views
Skip to first unread message

Giovanni Ferri

unread,
Dec 14, 2015, 3:28:05 AM12/14/15
to ns-3-users
Hi to All!

Sorry if i will not post any code since I'm wondering about this problem (but as soon as I'll fixed, with your help, it I'll post everything ).

I'm using the LTE module of NS-3

What would I make?

Find a way to create a map with this scheme (Rnti number - Ip v4 Address )

The Ip v4 Addresses are no problem to be finded in the code, but I don't know how to find the rnti number.

any suggestions? 

Giovanni Ferri

unread,
Dec 15, 2015, 10:57:14 AM12/15/15
to ns-3-users
Probably whit a lot of help i got it. that's the code to create a map between IPv4 and imsi 
std::map<ns3::Ipv4Address,uint64_t> map;
for (int u = 0; u < numberOfNodes; ++u){
Ptr<Node> ue = ueNodes.Get (u);
ns3::Ipv4Address adr = ueIpIface.GetAddress (u);
uint64_t imsi = ueLteDevs.Get (u)->GetObject<LteUeNetDevice> ()->GetImsi ();
map[adr]=imsi;
}

Reply all
Reply to author
Forward
0 new messages