Hyperion
unread,Sep 21, 2012, 7:13:14 PM9/21/12Sign 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-...@googlegroups.com
Hi there:
I am a new programmer of NS3 and I am working on the performance of 802.11p. When I tried to modify "wifi-simple-adhoc" in NS3 examples, I found an essential problem:
(1) From this ns-3-users group, I see that one member says that we should:
1. Replace "wifi.setStandard(WIFI_PHY_STANDARD_80211b)" with "wifi.SetStandard (WIFI_PHY_STANDARD_80211p_SCH)"
2. And replace "NqosWifiMacHelper wifiMac = NqosWifiMacHelper::Default ();" with "QosWifiMacHelper wifiMac = QosWifiMacHelper::Default ();"
I tried this method and it succeeded. But I think it is not really 802.11p, because it only modified the PHY.
(2) Another member says that, besides the modification above, we should also:
1. Replace "wifiMac.SetType ("ns3::AdhocWifiMac");" with "wifiMac.SetType ("ns3::QadhocWifiMac");", which means that we must modify the MAC layer.
Although it seems better, I am wondering whether "QadhocWifiMac" equals "802.11p-Mac"? What's worse, I tried this method and it failed.
(3) However, the most important thing is that I have found the function "void Configure80211p_CCH(SCH)" in "src/wifi/model/wifi-mac.h", which I believe really difines MAC layer of 802.11p.
Then, instead of replacing "wifiMac.SetType ("ns3::AdhocWifiMac");" with "wifiMac.SetType ("ns3::QadhocWifiMac");"
I replace "wifiMac.SetType ("ns3::AdhocWifiMac");" with "wifiMac.SetType ("ns3::WifiMac::Configure80211p_SCH()");"
Unfortunately, it also didn't work and said "Assert in TypeId::LookupByName: ns3::WifiMac::Configure80211p_SCH not found".
Did anybody ever successfully simulate the performance of 802.11p on NS3? Could you please help me solve this problem?
Thanks
Hyperion