LEFT | RIGHT |
(no file at all) | |
| 1 /* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2005,2006 INRIA |
| 4 * Copyright (c) 2010 Network Security Lab, University of Washington, Seattle. |
| 5 * |
| 6 * This program is free software; you can redistribute it and/or modify |
| 7 * it under the terms of the GNU General Public License version 2 as |
| 8 * published by the Free Software Foundation; |
| 9 * |
| 10 * This program is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 * GNU General Public License for more details. |
| 14 * |
| 15 * You should have received a copy of the GNU General Public License |
| 16 * along with this program; if not, write to the Free Software |
| 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 * |
| 19 * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
| 20 * Sidharth Nabar <snabar@uw.edu>, He Wu <mdzz@u.washington.edu> |
| 21 */ |
| 22 |
| 23 #include "nsl-wifi-phy.h" |
| 24 #include "wireless-module-utility.h" |
| 25 #include "nsl-wifi-channel.h" |
| 26 #include "ns3/wifi-mode.h" |
| 27 #include "ns3/wifi-preamble.h" |
| 28 #include "ns3/wifi-net-device.h" |
| 29 #include "ns3/wifi-phy-state-helper.h" |
| 30 #include "ns3/wifi-mac-header.h" |
| 31 #include "ns3/error-rate-model.h" |
| 32 #include "ns3/propagation-loss-model.h" |
| 33 #include "ns3/energy-source.h" |
| 34 #include "ns3/simulator.h" |
| 35 #include "ns3/packet.h" |
| 36 #include "ns3/random-variable.h" |
| 37 #include "ns3/assert.h" |
| 38 #include "ns3/log.h" |
| 39 #include "ns3/double.h" |
| 40 #include "ns3/uinteger.h" |
| 41 #include "ns3/enum.h" |
| 42 #include "ns3/pointer.h" |
| 43 #include "ns3/net-device.h" |
| 44 #include "ns3/node.h" |
| 45 #include "ns3/trace-source-accessor.h" |
| 46 |
| 47 NS_LOG_COMPONENT_DEFINE ("NslWifiPhy"); |
| 48 |
| 49 namespace ns3 { |
| 50 |
| 51 NS_OBJECT_ENSURE_REGISTERED (NslWifiPhy); |
| 52 |
| 53 TypeId |
| 54 NslWifiPhy::GetTypeId (void) |
| 55 { |
| 56 static TypeId tid = TypeId ("ns3::NslWifiPhy") |
| 57 .SetParent<WifiPhy> () |
| 58 .AddConstructor<NslWifiPhy> () |
| 59 .AddAttribute ("NslEnergyDetectionThreshold", |
| 60 "The energy of a received signal should be higher than " |
| 61 "this threshold (dBm) to allow the PHY layer to detect the si
gnal.", |
| 62 DoubleValue (-140.0), |
| 63 MakeDoubleAccessor (&NslWifiPhy::SetEdThreshold, |
| 64 &NslWifiPhy::GetEdThreshold), |
| 65 MakeDoubleChecker<double> ()) |
| 66 .AddAttribute ("NslCcaMode1Threshold", |
| 67 "The energy of a received signal should be higher than " |
| 68 "this threshold (dBm) to allow the PHY layer to declare CCA B
USY state", |
| 69 DoubleValue (-140.0), |
| 70 MakeDoubleAccessor (&NslWifiPhy::SetCcaMode1Threshold, |
| 71 &NslWifiPhy::GetCcaMode1Threshold), |
| 72 MakeDoubleChecker<double> ()) |
| 73 .AddAttribute ("NslTxGain", |
| 74 "Transmission gain (dB).", |
| 75 DoubleValue (1.0), |
| 76 MakeDoubleAccessor (&NslWifiPhy::SetTxGain, |
| 77 &NslWifiPhy::GetTxGain), |
| 78 MakeDoubleChecker<double> ()) |
| 79 .AddAttribute ("NslRxGain", |
| 80 "Reception gain (dB).", |
| 81 DoubleValue (1.0), |
| 82 MakeDoubleAccessor (&NslWifiPhy::SetRxGain, |
| 83 &NslWifiPhy::GetRxGain), |
| 84 MakeDoubleChecker<double> ()) |
| 85 .AddAttribute ("NslTxPowerLevels", |
| 86 "Number of transmission power levels available between " |
| 87 "TxPowerBase and TxPowerEnd included.", |
| 88 UintegerValue (1), |
| 89 MakeUintegerAccessor (&NslWifiPhy::m_nTxPower), |
| 90 MakeUintegerChecker<uint32_t> ()) |
| 91 .AddAttribute ("NslTxPowerEnd", |
| 92 "Maximum available transmission level (dBm).", |
| 93 DoubleValue (16.0206), |
| 94 MakeDoubleAccessor (&NslWifiPhy::SetTxPowerEnd, |
| 95 &NslWifiPhy::GetTxPowerEnd), |
| 96 MakeDoubleChecker<double> ()) |
| 97 .AddAttribute ("NslTxPowerStart", |
| 98 "Minimum available transmission level (dBm).", |
| 99 DoubleValue (16.0206), |
| 100 MakeDoubleAccessor (&NslWifiPhy::SetTxPowerStart, |
| 101 &NslWifiPhy::GetTxPowerStart), |
| 102 MakeDoubleChecker<double> ()) |
| 103 .AddAttribute ("NslRxNoiseFigure", |
| 104 "Loss (dB) in the Signal-to-Noise-Ratio due to non-idealities
in the receiver." |
| 105 " According to Wikipedia (http://en.wikipedia.org/wiki/Noise_
figure), this is " |
| 106 "\"the difference in decibels (dB) between" |
| 107 " the noise output of the actual receiver to the noise output
of an " |
| 108 " ideal receiver with the same overall gain and bandwidth whe
n the receivers " |
| 109 " are connected to sources at the standard noise temperature
T0 (usually 290 K)\"." |
| 110 " For", |
| 111 DoubleValue (7), |
| 112 MakeDoubleAccessor (&NslWifiPhy::SetRxNoiseFigure, |
| 113 &NslWifiPhy::GetRxNoiseFigure), |
| 114 MakeDoubleChecker<double> ()) |
| 115 .AddAttribute ("NslState", "The state of the PHY layer", |
| 116 PointerValue (), |
| 117 MakePointerAccessor (&NslWifiPhy::m_state), |
| 118 MakePointerChecker<WifiPhyStateHelper> ()) |
| 119 .AddAttribute ("NslChannelSwitchDelay", |
| 120 "Delay between two short frames transmitted on different freq
uencies. NOTE: Unused now.", |
| 121 TimeValue (MicroSeconds (250)), |
| 122 MakeTimeAccessor (&NslWifiPhy::m_channelSwitchDelay), |
| 123 MakeTimeChecker ()) |
| 124 .AddAttribute ("NslChannelNumber", |
| 125 "Channel center frequency = Channel starting frequency + 5 MH
z * (nch - 1)", |
| 126 UintegerValue (1), |
| 127 MakeUintegerAccessor (&NslWifiPhy::SetChannelNumber, |
| 128 &NslWifiPhy::GetChannelNumber), |
| 129 MakeUintegerChecker<uint16_t> ()) |
| 130 ; |
| 131 return tid; |
| 132 } |
| 133 |
| 134 NslWifiPhy::NslWifiPhy () |
| 135 : m_channelNumber (1), |
| 136 m_endRxEvent (), |
| 137 m_random (0.0, 1.0), |
| 138 m_channelStartingFrequency (0), |
| 139 m_isDriverInitialized (false) |
| 140 { |
| 141 NS_LOG_FUNCTION (this); |
| 142 m_state = CreateObject<WifiPhyStateHelper> (); |
| 143 ResetDriver (); |
| 144 } |
| 145 |
| 146 NslWifiPhy::~NslWifiPhy () |
| 147 { |
| 148 NS_LOG_FUNCTION (this); |
| 149 } |
| 150 |
| 151 void |
| 152 NslWifiPhy::DoStart (void) |
| 153 { |
| 154 NS_LOG_FUNCTION (this); |
| 155 InitDriver (); // initialize driver at beginning of simulation |
| 156 } |
| 157 |
| 158 void |
| 159 NslWifiPhy::DoDispose (void) |
| 160 { |
| 161 NS_LOG_FUNCTION (this); |
| 162 m_channel = 0; |
| 163 m_modes.clear (); |
| 164 m_device = 0; |
| 165 m_mobility = 0; |
| 166 m_state = 0; |
| 167 m_node = 0; |
| 168 ResetDriver (); // driver not initialized |
| 169 } |
| 170 |
| 171 void |
| 172 NslWifiPhy::ConfigureStandard (enum WifiPhyStandard standard) |
| 173 { |
| 174 NS_LOG_FUNCTION (this << standard); |
| 175 switch (standard) { |
| 176 case WIFI_PHY_STANDARD_80211a: |
| 177 Configure80211a (); |
| 178 break; |
| 179 case WIFI_PHY_STANDARD_80211b: |
| 180 Configure80211b (); |
| 181 break; |
| 182 case WIFI_PHY_STANDARD_80211_10Mhz: |
| 183 Configure80211_10Mhz (); |
| 184 break; |
| 185 case WIFI_PHY_STANDARD_80211_5Mhz: |
| 186 Configure80211_5Mhz (); |
| 187 break; |
| 188 case WIFI_PHY_STANDARD_holland: |
| 189 ConfigureHolland (); |
| 190 break; |
| 191 default: |
| 192 NS_ASSERT (false); |
| 193 break; |
| 194 } |
| 195 } |
| 196 |
| 197 void |
| 198 NslWifiPhy::SetRxNoiseFigure (double noiseFigureDb) |
| 199 { |
| 200 NS_LOG_FUNCTION (this << noiseFigureDb); |
| 201 m_interference.SetNoiseFigure (DbToRatio (noiseFigureDb)); |
| 202 } |
| 203 void |
| 204 NslWifiPhy::SetTxPowerStart (double start) |
| 205 { |
| 206 NS_LOG_FUNCTION (this << start); |
| 207 m_txPowerBaseDbm = start; |
| 208 } |
| 209 void |
| 210 NslWifiPhy::SetTxPowerEnd (double end) |
| 211 { |
| 212 NS_LOG_FUNCTION (this << end); |
| 213 m_txPowerEndDbm = end; |
| 214 } |
| 215 void |
| 216 NslWifiPhy::SetNTxPower (uint32_t n) |
| 217 { |
| 218 NS_LOG_FUNCTION (this << n); |
| 219 m_nTxPower = n; |
| 220 } |
| 221 void |
| 222 NslWifiPhy::SetTxGain (double gain) |
| 223 { |
| 224 NS_LOG_FUNCTION (this << gain); |
| 225 m_txGainDb = gain; |
| 226 } |
| 227 void |
| 228 NslWifiPhy::SetRxGain (double gain) |
| 229 { |
| 230 NS_LOG_FUNCTION (this << gain); |
| 231 m_rxGainDb = gain; |
| 232 } |
| 233 void |
| 234 NslWifiPhy::SetEdThreshold (double threshold) |
| 235 { |
| 236 NS_LOG_FUNCTION (this << threshold); |
| 237 m_edThresholdW = DbmToW (threshold); |
| 238 } |
| 239 void |
| 240 NslWifiPhy::SetCcaMode1Threshold (double threshold) |
| 241 { |
| 242 NS_LOG_FUNCTION (this << threshold); |
| 243 m_ccaMode1ThresholdW = DbmToW (threshold); |
| 244 } |
| 245 void |
| 246 NslWifiPhy::SetErrorRateModel (Ptr<ErrorRateModel> rate) |
| 247 { |
| 248 m_interference.SetErrorRateModel (rate); |
| 249 } |
| 250 void |
| 251 NslWifiPhy::SetDevice (Ptr<Object> device) |
| 252 { |
| 253 m_device = device; |
| 254 } |
| 255 void |
| 256 NslWifiPhy::SetMobility (Ptr<Object> mobility) |
| 257 { |
| 258 m_mobility = mobility; |
| 259 } |
| 260 |
| 261 double |
| 262 NslWifiPhy::GetRxNoiseFigure (void) const |
| 263 { |
| 264 return RatioToDb (m_interference.GetNoiseFigure ()); |
| 265 } |
| 266 double |
| 267 NslWifiPhy::GetTxPowerStart (void) const |
| 268 { |
| 269 return m_txPowerBaseDbm; |
| 270 } |
| 271 double |
| 272 NslWifiPhy::GetTxPowerEnd (void) const |
| 273 { |
| 274 return m_txPowerEndDbm; |
| 275 } |
| 276 double |
| 277 NslWifiPhy::GetTxGain (void) const |
| 278 { |
| 279 return m_txGainDb; |
| 280 } |
| 281 double |
| 282 NslWifiPhy::GetRxGain (void) const |
| 283 { |
| 284 return m_rxGainDb; |
| 285 } |
| 286 |
| 287 double |
| 288 NslWifiPhy::GetEdThreshold (void) const |
| 289 { |
| 290 return WToDbm (m_edThresholdW); |
| 291 } |
| 292 |
| 293 double |
| 294 NslWifiPhy::GetCcaMode1Threshold (void) const |
| 295 { |
| 296 return WToDbm (m_ccaMode1ThresholdW); |
| 297 } |
| 298 |
| 299 Ptr<ErrorRateModel> |
| 300 NslWifiPhy::GetErrorRateModel (void) const |
| 301 { |
| 302 return m_interference.GetErrorRateModel (); |
| 303 } |
| 304 |
| 305 Ptr<Object> |
| 306 NslWifiPhy::GetDevice (void) const |
| 307 { |
| 308 return m_device; |
| 309 } |
| 310 |
| 311 Ptr<Object> |
| 312 NslWifiPhy::GetMobility (void) |
| 313 { |
| 314 return m_mobility; |
| 315 } |
| 316 |
| 317 double |
| 318 NslWifiPhy::CalculateSnr (WifiMode txMode, double ber) const |
| 319 { |
| 320 return m_interference.GetErrorRateModel ()->CalculateSnr (txMode, ber); |
| 321 } |
| 322 |
| 323 Ptr<WifiChannel> |
| 324 NslWifiPhy::GetChannel (void) const |
| 325 { |
| 326 return m_channel; |
| 327 } |
| 328 void |
| 329 NslWifiPhy::SetChannel (Ptr<NslWifiChannel> channel) |
| 330 { |
| 331 m_channel = channel; |
| 332 m_channel->Add (this); |
| 333 m_channelNumber = 1; // always start on channel starting frequency (chann
el 1) |
| 334 } |
| 335 |
| 336 void |
| 337 NslWifiPhy::SetChannelNumber (uint16_t nch) |
| 338 { |
| 339 if (Simulator::Now () == Seconds (0)) |
| 340 { |
| 341 // this is not channel switch, this is initialization |
| 342 NS_LOG_DEBUG("start at channel " << nch); |
| 343 m_channelNumber = nch; |
| 344 return; |
| 345 } |
| 346 |
| 347 NS_ASSERT(!IsStateSwitching ()); |
| 348 NS_LOG_DEBUG ("NslWifiPhy:Attempting to set channel number to " << nch); |
| 349 switch (m_state->GetState ()) { |
| 350 case NslWifiPhy::RX: |
| 351 NS_LOG_DEBUG ("drop packet because of channel switching while reception"); |
| 352 m_endRxEvent.Cancel(); |
| 353 goto switchChannel; |
| 354 break; |
| 355 case NslWifiPhy::TX: |
| 356 NS_LOG_DEBUG ("channel switching postponed until end of current transmission
"); |
| 357 Simulator::Schedule (GetDelayUntilIdle(), &NslWifiPhy::SetChannelNumber, thi
s, nch); |
| 358 break; |
| 359 case NslWifiPhy::CCA_BUSY: |
| 360 case NslWifiPhy::IDLE: |
| 361 goto switchChannel; |
| 362 break; |
| 363 default: |
| 364 NS_ASSERT (false); |
| 365 break; |
| 366 } |
| 367 |
| 368 return; |
| 369 |
| 370 switchChannel: |
| 371 |
| 372 NS_LOG_DEBUG("NslWifiPhy:switching channel " << m_channelNumber << " -> " |
| 373 << nch << ", At time = " << Simulator::Now ().GetSeconds () << "s"); |
| 374 m_state->SwitchToChannelSwitching(m_channelSwitchDelay); |
| 375 m_interference.EraseEvents(); |
| 376 /* |
| 377 * Needed here to be able to correctly sensed the medium for the first |
| 378 * time after the switching. The actual switching is not performed until |
| 379 * after m_channelSwitchDelay. Packets received during the switching |
| 380 * state are added to the event list and are employed later to figure |
| 381 * out the state of the medium after the switching. |
| 382 */ |
| 383 m_channelNumber = nch; |
| 384 |
| 385 /* |
| 386 * Driver interface. |
| 387 */ |
| 388 UpdatePhyLayerInfo (); |
| 389 } |
| 390 |
| 391 uint16_t |
| 392 NslWifiPhy::GetChannelNumber() const |
| 393 { |
| 394 return m_channelNumber; |
| 395 } |
| 396 |
| 397 double |
| 398 NslWifiPhy::GetChannelFrequencyMhz() const |
| 399 { |
| 400 return m_channelStartingFrequency + 5 * (GetChannelNumber() - 1); |
| 401 } |
| 402 |
| 403 void |
| 404 NslWifiPhy::SetReceiveOkCallback (RxOkCallback callback) |
| 405 { |
| 406 m_state->SetReceiveOkCallback (callback); |
| 407 } |
| 408 void |
| 409 NslWifiPhy::SetReceiveErrorCallback (RxErrorCallback callback) |
| 410 { |
| 411 m_state->SetReceiveErrorCallback (callback); |
| 412 } |
| 413 void |
| 414 NslWifiPhy::StartReceivePacket (Ptr<Packet> packet, |
| 415 double rxPowerDbm, |
| 416 WifiMode txMode, |
| 417 enum WifiPreamble preamble) |
| 418 { |
| 419 NS_LOG_FUNCTION (this << packet << rxPowerDbm << txMode << preamble); |
| 420 rxPowerDbm += m_rxGainDb; |
| 421 double rxPowerW = DbmToW (rxPowerDbm); |
| 422 Time rxDuration = CalculateTxDuration (packet->GetSize (), txMode, preamble); |
| 423 Time endRx = Simulator::Now () + rxDuration; |
| 424 |
| 425 Ptr<InterferenceHelper::Event> event; |
| 426 event = m_interference.Add (packet->GetSize (), |
| 427 txMode, |
| 428 preamble, |
| 429 rxDuration, |
| 430 rxPowerW); |
| 431 |
| 432 /* |
| 433 * Driver interface. |
| 434 */ |
| 435 SetCurrentWifiMode (event->GetPayloadMode ()); |
| 436 |
| 437 switch (m_state->GetState ()) { |
| 438 case NslWifiPhy::SWITCHING: |
| 439 NS_LOG_DEBUG ("NslWifiPhy:drop packet because of channel switching"); |
| 440 NotifyRxDrop (packet); |
| 441 /* |
| 442 * Packets received on the upcoming channel are added to the event list |
| 443 * during the switching state. This way the medium can be correctly sensed |
| 444 * when the device listens to the channel for the first time after the |
| 445 * switching e.g. after channel switching, the channel may be sensed as |
| 446 * busy due to other devices' transmissions started before the end of the |
| 447 * switching. |
| 448 */ |
| 449 if (endRx > Simulator::Now () + m_state->GetDelayUntilIdle ()) |
| 450 { |
| 451 // that packet will be noise _after_ the completion of the |
| 452 // channel switching. |
| 453 goto maybeCcaBusy; |
| 454 } |
| 455 break; |
| 456 case NslWifiPhy::RX: |
| 457 NS_LOG_DEBUG ("NslWifiPhy:drop packet because already in Rx (power = "<< |
| 458 rxPowerW<<" W)"); |
| 459 NotifyRxDrop (packet); |
| 460 if (endRx > Simulator::Now () + m_state->GetDelayUntilIdle ()) |
| 461 { |
| 462 // that packet will be noise _after_ the reception of the |
| 463 // currently-received packet. |
| 464 goto maybeCcaBusy; |
| 465 } |
| 466 break; |
| 467 case NslWifiPhy::TX: |
| 468 NS_LOG_DEBUG ("NslWifiPhy:drop packet because already in Tx (power = "<< |
| 469 rxPowerW<<" W)"); |
| 470 NotifyRxDrop (packet); |
| 471 if (endRx > Simulator::Now () + m_state->GetDelayUntilIdle ()) |
| 472 { |
| 473 // that packet will be noise _after_ the transmission of the |
| 474 // currently-transmitted packet. |
| 475 goto maybeCcaBusy; |
| 476 } |
| 477 break; |
| 478 case NslWifiPhy::CCA_BUSY: |
| 479 case NslWifiPhy::IDLE: |
| 480 if (rxPowerW > m_edThresholdW) |
| 481 { |
| 482 NS_LOG_DEBUG ("NslWifiPhy:SYNC (power = " << rxPowerW << " W) at Node #"
<< |
| 483 m_node->GetId ()); |
| 484 // drop noise/jamming packet |
| 485 if (preamble == WIFI_PREAMBLE_INVALID) |
| 486 { |
| 487 NS_LOG_DEBUG ("NslWifiPhy:drop **jamming** packet!"); |
| 488 NotifyRxDrop (packet); |
| 489 goto maybeCcaBusy; |
| 490 } |
| 491 |
| 492 /* |
| 493 * Driver interface. |
| 494 */ |
| 495 if (!DriverStartRx (packet, MeasureRss ())) |
| 496 { |
| 497 NS_LOG_DEBUG ("NslWifiPhy:Ignoring RX! at Node #" << m_node->GetId (
)); |
| 498 NotifyRxDrop (packet); |
| 499 return; // still in IDLE or CCA_BUSY |
| 500 } |
| 501 |
| 502 // sync to signal |
| 503 m_state->SwitchToRx (rxDuration); |
| 504 NS_ASSERT (m_endRxEvent.IsExpired ()); |
| 505 NotifyRxBegin (packet); |
| 506 m_interference.NotifyRxStart (); |
| 507 m_endRxEvent = Simulator::Schedule (rxDuration, &NslWifiPhy::EndReceive, |
| 508 this, packet, event); |
| 509 } |
| 510 else // drop because power too low |
| 511 { |
| 512 NS_LOG_DEBUG ("NslWifiPhy:drop packet because signal power too Small ("
<< |
| 513 rxPowerW << "<" << m_edThresholdW << ")"); |
| 514 NotifyRxDrop (packet); |
| 515 goto maybeCcaBusy; |
| 516 } |
| 517 break; |
| 518 } |
| 519 |
| 520 return; |
| 521 |
| 522 maybeCcaBusy: |
| 523 // We are here because we have received the first bit of a packet and we are |
| 524 // not going to be able to synchronize on it |
| 525 // In this model, CCA becomes busy when the aggregation of all signals as |
| 526 // tracked by the InterferenceHelper class is higher than the CcaBusyThreshold |
| 527 |
| 528 Time delayUntilCcaEnd = m_interference.GetEnergyDuration (m_ccaMode1ThresholdW
); |
| 529 if (!delayUntilCcaEnd.IsZero ()) |
| 530 { |
| 531 m_state->SwitchMaybeToCcaBusy (delayUntilCcaEnd); |
| 532 } |
| 533 } |
| 534 |
| 535 void |
| 536 NslWifiPhy::SendPacket (Ptr<const Packet> packet, WifiMode txMode, |
| 537 WifiPreamble preamble, uint8_t txPower) |
| 538 { |
| 539 NS_LOG_FUNCTION (this << packet << txMode << preamble << (uint32_t)txPower); |
| 540 /* |
| 541 * Transmission can happen if: |
| 542 * - we are syncing on a packet. It is the responsibility of the |
| 543 * MAC layer to avoid doing this but the PHY does nothing to |
| 544 * prevent it. |
| 545 * - we are idle |
| 546 */ |
| 547 NS_ASSERT (!m_state->IsStateTx () && !m_state->IsStateSwitching ()); |
| 548 |
| 549 Time txDuration = CalculateTxDuration (packet->GetSize (), txMode, preamble); |
| 550 if (m_state->IsStateRx ()) |
| 551 { |
| 552 m_endRxEvent.Cancel (); |
| 553 m_interference.NotifyRxEnd (); |
| 554 } |
| 555 NotifyTxBegin (packet); |
| 556 uint32_t dataRate500KbpsUnits = txMode.GetDataRate () / 500000; |
| 557 bool isShortPreamble = (WIFI_PREAMBLE_SHORT == preamble); |
| 558 NotifyPromiscSniffTx (packet, (uint16_t)GetChannelFrequencyMhz (), |
| 559 GetChannelNumber (), dataRate500KbpsUnits, isShortPreamb
le); |
| 560 m_state->SwitchToTx (txDuration, packet, txMode, preamble, txPower); |
| 561 NS_LOG_DEBUG ("NslWifiPhy:Calling Send function .. txPower = " << |
| 562 (int) txPower << " in Dbm = " << GetPowerDbm (txPower) << |
| 563 " plus gain = " << m_txGainDb); |
| 564 m_channel->Send (this, packet, GetPowerDbm (txPower) + m_txGainDb, txMode, pre
amble); |
| 565 |
| 566 /* |
| 567 * Driver interface. |
| 568 */ |
| 569 SetCurrentWifiMode (txMode); |
| 570 DriverStartTx (packet, DbmToW (GetPowerDbm (txPower) + m_txGainDb)); |
| 571 } |
| 572 |
| 573 uint32_t |
| 574 NslWifiPhy::GetNModes (void) const |
| 575 { |
| 576 return m_modes.size (); |
| 577 } |
| 578 WifiMode |
| 579 NslWifiPhy::GetMode (uint32_t mode) const |
| 580 { |
| 581 return m_modes[mode]; |
| 582 } |
| 583 uint32_t |
| 584 NslWifiPhy::GetNTxPower (void) const |
| 585 { |
| 586 return m_nTxPower; |
| 587 } |
| 588 |
| 589 void |
| 590 NslWifiPhy::Configure80211a (void) |
| 591 { |
| 592 NS_LOG_FUNCTION (this); |
| 593 m_channelStartingFrequency = 5e3; // 5.000 GHz |
| 594 |
| 595 m_modes.push_back (WifiPhy::GetOfdmRate6Mbps ()); |
| 596 m_modes.push_back (WifiPhy::GetOfdmRate9Mbps ()); |
| 597 m_modes.push_back (WifiPhy::GetOfdmRate12Mbps ()); |
| 598 m_modes.push_back (WifiPhy::GetOfdmRate18Mbps ()); |
| 599 m_modes.push_back (WifiPhy::GetOfdmRate24Mbps ()); |
| 600 m_modes.push_back (WifiPhy::GetOfdmRate36Mbps ()); |
| 601 m_modes.push_back (WifiPhy::GetOfdmRate48Mbps ()); |
| 602 m_modes.push_back (WifiPhy::GetOfdmRate54Mbps ()); |
| 603 } |
| 604 |
| 605 |
| 606 void |
| 607 NslWifiPhy::Configure80211b (void) |
| 608 { |
| 609 NS_LOG_FUNCTION (this); |
| 610 m_channelStartingFrequency = 2412; // 2.412 GHz |
| 611 |
| 612 m_modes.push_back (WifiPhy::GetDsssRate1Mbps ()); |
| 613 m_modes.push_back (WifiPhy::GetDsssRate2Mbps ()); |
| 614 m_modes.push_back (WifiPhy::GetDsssRate5_5Mbps ()); |
| 615 m_modes.push_back (WifiPhy::GetDsssRate11Mbps ()); |
| 616 } |
| 617 |
| 618 void |
| 619 NslWifiPhy::Configure80211_10Mhz (void) |
| 620 { |
| 621 NS_LOG_FUNCTION (this); |
| 622 m_channelStartingFrequency = 5e3; // 5.000 GHz, suppose 802.11a |
| 623 |
| 624 m_modes.push_back (WifiPhy::GetOfdmRate3MbpsBW10MHz ()); |
| 625 m_modes.push_back (WifiPhy::GetOfdmRate4_5MbpsBW10MHz ()); |
| 626 m_modes.push_back (WifiPhy::GetOfdmRate6MbpsBW10MHz ()); |
| 627 m_modes.push_back (WifiPhy::GetOfdmRate9MbpsBW10MHz ()); |
| 628 m_modes.push_back (WifiPhy::GetOfdmRate12MbpsBW10MHz ()); |
| 629 m_modes.push_back (WifiPhy::GetOfdmRate18MbpsBW10MHz ()); |
| 630 m_modes.push_back (WifiPhy::GetOfdmRate24MbpsBW10MHz ()); |
| 631 m_modes.push_back (WifiPhy::GetOfdmRate27MbpsBW10MHz ()); |
| 632 } |
| 633 |
| 634 void |
| 635 NslWifiPhy::Configure80211_5Mhz (void) |
| 636 { |
| 637 NS_LOG_FUNCTION (this); |
| 638 m_channelStartingFrequency = 5e3; // 5.000 GHz, suppose 802.11a |
| 639 |
| 640 m_modes.push_back (WifiPhy::GetOfdmRate1_5MbpsBW5MHz ()); |
| 641 m_modes.push_back (WifiPhy::GetOfdmRate2_25MbpsBW5MHz ()); |
| 642 m_modes.push_back (WifiPhy::GetOfdmRate3MbpsBW5MHz ()); |
| 643 m_modes.push_back (WifiPhy::GetOfdmRate4_5MbpsBW5MHz ()); |
| 644 m_modes.push_back (WifiPhy::GetOfdmRate6MbpsBW5MHz ()); |
| 645 m_modes.push_back (WifiPhy::GetOfdmRate9MbpsBW5MHz ()); |
| 646 m_modes.push_back (WifiPhy::GetOfdmRate12MbpsBW5MHz ()); |
| 647 m_modes.push_back (WifiPhy::GetOfdmRate13_5MbpsBW5MHz ()); |
| 648 } |
| 649 |
| 650 void |
| 651 NslWifiPhy::ConfigureHolland (void) |
| 652 { |
| 653 NS_LOG_FUNCTION (this); |
| 654 m_channelStartingFrequency = 5e3; // 5.000 GHz |
| 655 m_modes.push_back (WifiPhy::GetOfdmRate6Mbps ()); |
| 656 m_modes.push_back (WifiPhy::GetOfdmRate12Mbps ()); |
| 657 m_modes.push_back (WifiPhy::GetOfdmRate18Mbps ()); |
| 658 m_modes.push_back (WifiPhy::GetOfdmRate36Mbps ()); |
| 659 m_modes.push_back (WifiPhy::GetOfdmRate54Mbps ()); |
| 660 } |
| 661 |
| 662 void |
| 663 NslWifiPhy::Configure80211p_CCH (void) |
| 664 { |
| 665 NS_LOG_FUNCTION (this); |
| 666 m_channelStartingFrequency = 5e3; // 802.11p works over the 5Ghz freq range |
| 667 |
| 668 m_modes.push_back (WifiPhy::GetOfdmRate3MbpsBW10MHz ()); |
| 669 m_modes.push_back (WifiPhy::GetOfdmRate4_5MbpsBW10MHz ()); |
| 670 m_modes.push_back (WifiPhy::GetOfdmRate6MbpsBW10MHz ()); |
| 671 m_modes.push_back (WifiPhy::GetOfdmRate9MbpsBW10MHz ()); |
| 672 m_modes.push_back (WifiPhy::GetOfdmRate12MbpsBW10MHz ()); |
| 673 m_modes.push_back (WifiPhy::GetOfdmRate18MbpsBW10MHz ()); |
| 674 m_modes.push_back (WifiPhy::GetOfdmRate24MbpsBW10MHz ()); |
| 675 m_modes.push_back (WifiPhy::GetOfdmRate27MbpsBW10MHz ()); |
| 676 } |
| 677 |
| 678 void |
| 679 NslWifiPhy::Configure80211p_SCH (void) |
| 680 { |
| 681 NS_LOG_FUNCTION (this); |
| 682 m_channelStartingFrequency = 5e3; // 802.11p works over the 5Ghz freq range |
| 683 |
| 684 m_modes.push_back (WifiPhy::GetOfdmRate3MbpsBW10MHz ()); |
| 685 m_modes.push_back (WifiPhy::GetOfdmRate4_5MbpsBW10MHz ()); |
| 686 m_modes.push_back (WifiPhy::GetOfdmRate6MbpsBW10MHz ()); |
| 687 m_modes.push_back (WifiPhy::GetOfdmRate9MbpsBW10MHz ()); |
| 688 m_modes.push_back (WifiPhy::GetOfdmRate12MbpsBW10MHz ()); |
| 689 m_modes.push_back (WifiPhy::GetOfdmRate18MbpsBW10MHz ()); |
| 690 m_modes.push_back (WifiPhy::GetOfdmRate24MbpsBW10MHz ()); |
| 691 m_modes.push_back (WifiPhy::GetOfdmRate27MbpsBW10MHz ()); |
| 692 } |
| 693 |
| 694 void· |
| 695 NslWifiPhy::RegisterListener (WifiPhyListener *listener) |
| 696 { |
| 697 m_state->RegisterListener (listener); |
| 698 } |
| 699 |
| 700 bool |
| 701 NslWifiPhy::IsStateCcaBusy (void) |
| 702 { |
| 703 return m_state->IsStateCcaBusy (); |
| 704 } |
| 705 |
| 706 bool |
| 707 NslWifiPhy::IsStateIdle (void) |
| 708 { |
| 709 return m_state->IsStateIdle (); |
| 710 } |
| 711 bool |
| 712 NslWifiPhy::IsStateBusy (void) |
| 713 { |
| 714 return m_state->IsStateBusy (); |
| 715 } |
| 716 bool |
| 717 NslWifiPhy::IsStateRx (void) |
| 718 { |
| 719 return m_state->IsStateRx (); |
| 720 } |
| 721 bool |
| 722 NslWifiPhy::IsStateTx (void) |
| 723 { |
| 724 return m_state->IsStateTx (); |
| 725 } |
| 726 bool |
| 727 NslWifiPhy::IsStateSwitching (void) |
| 728 { |
| 729 return m_state->IsStateSwitching (); |
| 730 } |
| 731 |
| 732 Time |
| 733 NslWifiPhy::GetStateDuration (void) |
| 734 { |
| 735 return m_state->GetStateDuration (); |
| 736 } |
| 737 Time |
| 738 NslWifiPhy::GetDelayUntilIdle (void) |
| 739 { |
| 740 return m_state->GetDelayUntilIdle (); |
| 741 } |
| 742 |
| 743 Time |
| 744 NslWifiPhy::GetLastRxStartTime (void) const |
| 745 { |
| 746 return m_state->GetLastRxStartTime (); |
| 747 } |
| 748 |
| 749 double |
| 750 NslWifiPhy::DbToRatio (double dB) const |
| 751 { |
| 752 double ratio = pow(10.0,dB/10.0); |
| 753 return ratio; |
| 754 } |
| 755 |
| 756 double |
| 757 NslWifiPhy::DbmToW (double dBm) const |
| 758 { |
| 759 double mW = pow(10.0,dBm/10.0); |
| 760 return mW / 1000.0; |
| 761 } |
| 762 |
| 763 double |
| 764 NslWifiPhy::WToDbm (double w) const |
| 765 { |
| 766 return 10.0 * log10(w * 1000.0); |
| 767 } |
| 768 |
| 769 double |
| 770 NslWifiPhy::RatioToDb (double ratio) const |
| 771 { |
| 772 return 10.0 * log10(ratio); |
| 773 } |
| 774 |
| 775 double |
| 776 NslWifiPhy::GetEdThresholdW (void) const |
| 777 { |
| 778 return m_edThresholdW; |
| 779 } |
| 780 |
| 781 double |
| 782 NslWifiPhy::GetPowerDbm (uint8_t power) const |
| 783 { |
| 784 NS_ASSERT (m_txPowerBaseDbm <= m_txPowerEndDbm); |
| 785 NS_ASSERT (m_nTxPower > 0); |
| 786 double dbm; |
| 787 if (m_nTxPower > 1) |
| 788 { |
| 789 dbm = m_txPowerBaseDbm + power * (m_txPowerEndDbm - m_txPowerBaseDbm) / (m
_nTxPower - 1); |
| 790 } |
| 791 else |
| 792 { |
| 793 NS_ASSERT_MSG (m_txPowerBaseDbm == m_txPowerEndDbm, |
| 794 "cannot have TxPowerEnd != TxPowerStart with TxPowerLevels
== 1"); |
| 795 dbm = m_txPowerBaseDbm; |
| 796 } |
| 797 return dbm; |
| 798 } |
| 799 |
| 800 void |
| 801 NslWifiPhy::EndReceive (Ptr<Packet> packet, Ptr<InterferenceHelper::Event> event
) |
| 802 { |
| 803 NS_LOG_FUNCTION (this << packet << event); |
| 804 NS_ASSERT (IsStateRx ()); |
| 805 NS_ASSERT (event->GetEndTime () == Simulator::Now ()); |
| 806 |
| 807 /* |
| 808 * Make a copy of the original packet to pass to WirelessModuleUtility. |
| 809 */ |
| 810 Ptr<Packet> copy = packet->Copy (); |
| 811 |
| 812 struct InterferenceHelper::SnrPer snrPer; |
| 813 snrPer = m_interference.CalculateSnrPer (event); |
| 814 m_interference.NotifyRxEnd (); |
| 815 |
| 816 NS_LOG_DEBUG ("mode=" << (event->GetPayloadMode ().GetDataRate ()) << ", snr="
<< |
| 817 snrPer.snr << ", per=" << snrPer.per << ", size=" << packet->Get
Size ()); |
| 818 if (m_random.GetValue () > snrPer.per) |
| 819 { |
| 820 NotifyRxEnd (packet); |
| 821 uint32_t dataRate500KbpsUnits = event->GetPayloadMode ().GetDataRate () /
500000; |
| 822 bool isShortPreamble = (WIFI_PREAMBLE_SHORT == event->GetPreambleType ()); |
| 823 double signalDbm = RatioToDb (event->GetRxPowerW ()) + 30; |
| 824 double noiseDbm = RatioToDb(event->GetRxPowerW() / snrPer.snr) - GetRxNois
eFigure() + 30 ; |
| 825 NotifyPromiscSniffRx (packet, (uint16_t)GetChannelFrequencyMhz (), |
| 826 GetChannelNumber (), dataRate500KbpsUnits, |
| 827 isShortPreamble, signalDbm, noiseDbm); |
| 828 m_state->SwitchFromRxEndOk (packet, snrPer.snr, event->GetPayloadMode (), |
| 829 event->GetPreambleType ()); |
| 830 /* |
| 831 * Driver interface. |
| 832 */ |
| 833 DriverEndRx (copy, snrPer.packetRss, true); |
| 834 } |
| 835 else |
| 836 { |
| 837 /* failure. */ |
| 838 NotifyRxDrop (packet); |
| 839 m_state->SwitchFromRxEndError (packet, snrPer.snr); |
| 840 /* |
| 841 * Driver interface. |
| 842 */ |
| 843 DriverEndRx (copy, snrPer.packetRss, false); |
| 844 } |
| 845 } |
| 846 |
| 847 /* |
| 848 * Start of added function for driver support. |
| 849 */ |
| 850 |
| 851 void |
| 852 NslWifiPhy::SetNode (Ptr<Node> nodePtr) |
| 853 { |
| 854 NS_LOG_FUNCTION (this << nodePtr); |
| 855 m_node = nodePtr; |
| 856 } |
| 857 |
| 858 void |
| 859 NslWifiPhy::ResetDriver (void) |
| 860 { |
| 861 NS_LOG_FUNCTION (this); |
| 862 m_isDriverInitialized = false; |
| 863 m_utility = NULL; |
| 864 } |
| 865 |
| 866 void |
| 867 NslWifiPhy::InitDriver (void) |
| 868 { |
| 869 NS_LOG_FUNCTION (this); |
| 870 if (!m_isDriverInitialized) |
| 871 { |
| 872 NS_LOG_DEBUG ("NslWifiPhy:Driver being initialized at Node #" << m_node->G
etId ()); |
| 873 // setting default wifi mode |
| 874 SetCurrentWifiMode (m_modes[0]); |
| 875 m_utility = m_node->GetObject<WirelessModuleUtility> (); |
| 876 if (m_utility != NULL) |
| 877 { |
| 878 m_utility->SetRssMeasurementCallback (MakeCallback (&NslWifiPhy::Measu
reRss, this)); |
| 879 m_utility->SetSendPacketCallback (MakeCallback (&NslWifiPhy::UtilitySe
ndPacket, this)); |
| 880 m_utility->SetChannelSwitchCallback (MakeCallback (&NslWifiPhy::SetCha
nnelNumber, this)); |
| 881 UpdatePhyLayerInfo (); |
| 882 } |
| 883 m_isDriverInitialized = true; |
| 884 } |
| 885 else |
| 886 { |
| 887 NS_LOG_DEBUG ("NslWifiPhy:Driver already initialized at Node #" << m_node-
>GetId ()); |
| 888 } |
| 889 // show some debug messages |
| 890 if (m_utility == NULL) |
| 891 { |
| 892 NS_LOG_DEBUG ("NslWifiPhy:Utility module is *not* installed on Node #" <<
m_node->GetId ()); |
| 893 } |
| 894 } |
| 895 |
| 896 void |
| 897 NslWifiPhy::DriverStartTx (Ptr<const Packet> packet, double txPower) |
| 898 { |
| 899 NS_LOG_FUNCTION (this << packet << txPower); |
| 900 // notify utility for start of TX |
| 901 if (m_utility != NULL) |
| 902 { |
| 903 m_utility->StartTxHandler (packet, txPower); |
| 904 } |
| 905 else |
| 906 { |
| 907 NS_LOG_DEBUG ("NslWifiPhy:Utility module is *not* installed on Node #" <<
m_node->GetId ()); |
| 908 } |
| 909 // schedule DriverEndTx |
| 910 Simulator::Schedule (m_state->GetDelayUntilIdle (), &NslWifiPhy::DriverEndTx,
this, packet, txPower); |
| 911 } |
| 912 |
| 913 void |
| 914 NslWifiPhy::DriverEndTx (Ptr<const Packet> packet, double txPower) |
| 915 { |
| 916 NS_LOG_FUNCTION (this << packet << txPower); |
| 917 |
| 918 /* |
| 919 * TX can not be interrupted. Hence we do not have to check state within this |
| 920 * function. |
| 921 */ |
| 922 |
| 923 // notify utility for end of TX |
| 924 if (m_utility != NULL) |
| 925 { |
| 926 m_utility->EndTxHandler (packet, txPower); |
| 927 } |
| 928 else |
| 929 { |
| 930 NS_LOG_DEBUG ("NslWifiPhy:Utility module is *not* installed on Node #" <<
m_node->GetId ()); |
| 931 } |
| 932 } |
| 933 |
| 934 bool |
| 935 NslWifiPhy::DriverStartRx (Ptr<Packet> packet, double startRssW) |
| 936 { |
| 937 NS_LOG_FUNCTION (this << packet << startRssW); |
| 938 |
| 939 bool isPacketToBeReceived = true; |
| 940 |
| 941 // notify utility for start of RX |
| 942 if (m_utility != NULL) |
| 943 { |
| 944 isPacketToBeReceived = m_utility->StartRxHandler (packet, startRssW); |
| 945 } |
| 946 else |
| 947 { |
| 948 NS_LOG_DEBUG ("NslWifiPhy:Utility module is *not* installed on Node #" <<
m_node->GetId ()); |
| 949 } |
| 950 |
| 951 return isPacketToBeReceived; |
| 952 } |
| 953 |
| 954 void |
| 955 NslWifiPhy::DriverEndRx (Ptr<Packet> packet, double averageRssW, |
| 956 const bool isSuccessfullyReceived) |
| 957 { |
| 958 NS_LOG_FUNCTION (this << packet << averageRssW << isSuccessfullyReceived); |
| 959 |
| 960 // notify utility for end of RX |
| 961 if (m_utility != 0) |
| 962 { |
| 963 m_utility->EndRxHandler (packet, averageRssW, isSuccessfullyReceived); |
| 964 } |
| 965 else |
| 966 { |
| 967 NS_LOG_DEBUG ("NslWifiPhy:Utility module is *not* installed on Node #" <<
m_node->GetId ()); |
| 968 } |
| 969 } |
| 970 |
| 971 void |
| 972 NslWifiPhy::SetCurrentWifiMode (WifiMode mode) |
| 973 { |
| 974 NS_LOG_FUNCTION (this); |
| 975 m_currentWifiMode = mode; |
| 976 // notify utility |
| 977 if (m_utility) |
| 978 { |
| 979 UpdatePhyLayerInfo (); |
| 980 } |
| 981 else |
| 982 { |
| 983 NS_LOG_DEBUG ("NslWifiPhy:Utility is *not* installed on Node #" << m_node-
>GetId ()); |
| 984 } |
| 985 } |
| 986 |
| 987 double |
| 988 NslWifiPhy::MeasureRss (void) |
| 989 { |
| 990 NS_LOG_FUNCTION (this); |
| 991 return m_interference.CurrentNodeRss (m_currentWifiMode); |
| 992 } |
| 993 |
| 994 void |
| 995 NslWifiPhy::UtilitySendPacket(Ptr<Packet> packet, double &powerW, int utilitySen
dMode) |
| 996 { |
| 997 NS_LOG_FUNCTION (this << packet << powerW << utilitySendMode); |
| 998 |
| 999 // Convert power in Watts to a power level |
| 1000 uint8_t powerLevel; |
| 1001 powerLevel = (uint8_t)(m_nTxPower * (WToDbm(powerW) - m_txPowerBaseDbm) / |
| 1002 (m_txPowerEndDbm - m_txPowerBaseDbm)); |
| 1003 |
| 1004 if (powerLevel >= 0 && powerLevel < m_nTxPower) |
| 1005 { |
| 1006 NS_LOG_DEBUG ("NslWifiPhy:Inside send packet callback at node #" << |
| 1007 m_node->GetId() << ". Sending packet."); |
| 1008 switch (utilitySendMode) |
| 1009 { |
| 1010 case WirelessModuleUtility::SEND_AS_JAMMER: |
| 1011 NS_LOG_DEBUG ("NslWifiPhy: Sending packet as jammer."); |
| 1012 SendPacket (packet, m_currentWifiMode, WIFI_PREAMBLE_INVALID, powerLev
el); |
| 1013 break; |
| 1014 case WirelessModuleUtility::SEND_AS_HONEST: |
| 1015 { |
| 1016 WifiMacHeader hdr; |
| 1017 hdr.SetType (WIFI_MAC_DATA); |
| 1018 packet->AddHeader (hdr); |
| 1019 NS_LOG_DEBUG ("NslWifiPhy: Sending packet as honest node."); |
| 1020 SendPacket (packet, m_currentWifiMode, WIFI_PREAMBLE_LONG, powerLeve
l); |
| 1021 } |
| 1022 break; |
| 1023 case WirelessModuleUtility::SEND_AS_OTHERS: |
| 1024 NS_FATAL_ERROR ("NslWifiPhy:Undefined utility send packet mode!"); |
| 1025 break; |
| 1026 default: |
| 1027 break; |
| 1028 } |
| 1029 // update the actual TX power |
| 1030 powerW = DbmToW (m_txPowerBaseDbm); |
| 1031 powerW += powerLevel * DbmToW ((m_txPowerEndDbm - m_txPowerBaseDbm) / m_nT
xPower); |
| 1032 } |
| 1033 else |
| 1034 { |
| 1035 NS_LOG_DEBUG ("NslWifiPhy: Node # "<< m_node->GetId () << |
| 1036 "Error in send packet callback. Incorrect power level."); |
| 1037 // set sent power to 0 to indicate error |
| 1038 powerW = 0; |
| 1039 } |
| 1040 } |
| 1041 |
| 1042 void |
| 1043 NslWifiPhy::UpdatePhyLayerInfo (void) |
| 1044 { |
| 1045 NS_LOG_FUNCTION (this); |
| 1046 m_phyLayerInfo.currentChannel = m_channelNumber; |
| 1047 m_phyLayerInfo.maxTxPowerW = DbmToW (m_txPowerEndDbm); |
| 1048 m_phyLayerInfo.minTxPowerW = DbmToW (m_txPowerBaseDbm); |
| 1049 m_phyLayerInfo.TxGainDb = m_txGainDb; |
| 1050 m_phyLayerInfo.RxGainDb = m_rxGainDb; |
| 1051 m_phyLayerInfo.numOfChannels = 11; // XXX assuming US standard |
| 1052 m_phyLayerInfo.phyRate = m_currentWifiMode.GetDataRate (); |
| 1053 m_phyLayerInfo.channelSwitchDelay = m_channelSwitchDelay; |
| 1054 // notify utility |
| 1055 if (m_utility != NULL) |
| 1056 { |
| 1057 m_utility->SetPhyLayerInfo (m_phyLayerInfo); |
| 1058 } |
| 1059 else |
| 1060 { |
| 1061 NS_LOG_DEBUG ("NslWifiPhy:Utility is *not* installed on Node #" << |
| 1062 m_node->GetId ()); |
| 1063 } |
| 1064 } |
| 1065 |
| 1066 } // namespace ns3 |
LEFT | RIGHT |