Hi, everyone,
I want to simulate a VANET scenario with two types of devices on the nodes (vehicles):
1) 802.11p
2) RFID Reader
I use Wifi80211pHelper, Yans, and WaveDevice for 802.11p nodes (vehicles) and want to use 802.15.4 or Wifi for RFID Reader (also for passive tags on roads as constant nodes). Now I have some questions:
1) What is the best selection to simulate RFID Readers and passive tags?
2) In multi-interface nodes how can we assign sockets to each NetDevice? In single mode we use this one:
InternetStackHelper.Install(NodeContainer);
Ipv4AddressHelper.SetBase("10.1.1.0", "255.255.255.0");
Ipv4InterfaceContainer = Ipv4AddressHelper.Assign(NetDeviceContainer);
TypeIdVar = TypeId::LookupByName("ns3::UdpSocketFactory");
SocketVar = Socket::CreateSocket(NodeContainer.Get(Index), TypeIdVar);
SocketVar->SetAllowBroadcast(true);
SocketVar->Connect(InetSocketAddress);
Then we can use Send method to send packets that here this question arises:
3) What is the relation between Socket and NetDevice?
In fact, I want to distinguish packet sending for each NetDevice in multi-interface scenarios like this:
SocketVehicle->Send(p)
SocketRfidReader->Send(p)
The last question is:
4) How is it possible to determine only special devices to communicate with each other, that means 802.11p only with 802.11p and RFID devices with constant passive tags devices?
Thanks a lot.