FrancescoR
unread,Sep 14, 2022, 1:46:46 PM9/14/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ns-3-users
Dear all,
I am writing you as I am having some troubles in setting up a custom IEEE 802.11p scenario.
I am particularly interested in starting from the "wave-simple-80211p.cc" example, set a different channel (e.g., channel 180 at 5.9 GHz instead of CCH at 5.89 GHz), and specify a different Access Category for my messages.
Concerning the channel number, I discovered, by delving into the code, that the WAVE helper calls phy->SetChannelNumber (ChannelManager::GetCch ()) to set the default CCH channel (i.e., channel 178).
My code, however, does the following:
...
YansWifiPhyHelper wifiPhy;
YansWifiChannelHelper wifiChannel = YansWifiChannelHelper::Default ();
Ptr<YansWifiChannel> channel = wifiChannel.Create ();
wifiPhy.SetChannel (channel);
Wifi80211pHelper wifi80211p = Wifi80211pHelper::Default ();
...
NetDeviceContainer netDevices = wifi80211p.Install (wifiPhy, wifi80211pMac, nodes);
In order to call "SetChannelNumber" and change the channel to something else than CCH, I would probably need to "extract" the wifiPhy object from the YansWifiPhyHelper. This is where I am currently encountering some difficulties. Is there a standard way of doing so?
Furthermore, I am using PacketSockets, as opposed to the "wave-simple-80211p" example:
PacketSocketHelper packetSocket;
packetSocket.Install (nodes);
Probably I missed something, but I have not found so far any documentation for EDCA in IEEE 802.11p, when sending broadcast packets via PacketSocket.
The documentation mentions "SetTos()", but as I am using Packet Sockets, I cannot leverage this function.
How can I set either AC_BK, AC_BE, AC_VI or AC_VO? What is the default value when it is not explicitely set (as it happens, I suppose, in the "wave-simple-80211p" example)? Is it AC_BE?
Thank you very much in advance for your assistance.