|
|
| 235 |
std::cout << "Protection mode" << "\t\t" << "Slot time supported" << "\t\t" << "PLCP preamble supported" << "\t\t" << "Scenario" << "\t" << "Throughput" << std::endl; |
235 |
std::cout << "Protection mode" << "\t\t" << "Slot time supported" << "\t\t" << "PLCP preamble supported" << "\t\t" << "Scenario" << "\t" << "Throughput" << std::endl; |
| 236 |
|
236 |
|
| 237 |
throughput = experiment.Run (false, false, false, false, isUdp, payloadSize, simulationTime); |
237 |
throughput = experiment.Run (false, false, false, false, isUdp, payloadSize, simulationTime); |
| 238 |
if (throughput < 17 || throughput > 18) |
238 |
if (throughput < 23 || throughput > 24) |
| 239 |
{ |
239 |
{ |
| 240 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
240 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
| 241 |
exit (1); |
241 |
exit (1); |
|
|
| 251 |
std::cout << "Disabled" << "\t\t" << "Short" << "\t\t\t\t" << "Long" << "\t\t\t\t" << "G-only" << "\t\t" << throughput <<" Mbit/s" << std::endl; |
251 |
std::cout << "Disabled" << "\t\t" << "Short" << "\t\t\t\t" << "Long" << "\t\t\t\t" << "G-only" << "\t\t" << throughput <<" Mbit/s" << std::endl; |
| 252 |
|
252 |
|
| 253 |
throughput = experiment.Run (false, false, false, true, isUdp, payloadSize, simulationTime); |
253 |
throughput = experiment.Run (false, false, false, true, isUdp, payloadSize, simulationTime); |
| 254 |
if (throughput < 17 || throughput > 18) |
254 |
if (throughput < 23 || throughput > 24) |
| 255 |
{ |
255 |
{ |
| 256 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
256 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
| 257 |
exit (1); |
257 |
exit (1); |
|
|
| 259 |
std::cout << "Disabled" << "\t\t" << "Long" << "\t\t\t\t" << "Long" << "\t\t\t\t" << "Mixed" << "\t\t" << throughput <<" Mbit/s" << std::endl; |
259 |
std::cout << "Disabled" << "\t\t" << "Long" << "\t\t\t\t" << "Long" << "\t\t\t\t" << "Mixed" << "\t\t" << throughput <<" Mbit/s" << std::endl; |
| 260 |
|
260 |
|
| 261 |
throughput = experiment.Run (false, false, true, true, isUdp, payloadSize, simulationTime); |
261 |
throughput = experiment.Run (false, false, true, true, isUdp, payloadSize, simulationTime); |
| 262 |
if (throughput < 17 || throughput > 18) |
262 |
if (throughput < 23 || throughput > 24) |
| 263 |
{ |
263 |
{ |
| 264 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
264 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
| 265 |
exit (1); |
265 |
exit (1); |
|
|
| 269 |
Config::SetDefault ("ns3::WifiRemoteStationManager::ProtectionMode", StringValue ("Rts-Cts")); |
269 |
Config::SetDefault ("ns3::WifiRemoteStationManager::ProtectionMode", StringValue ("Rts-Cts")); |
| 270 |
|
270 |
|
| 271 |
throughput = experiment.Run (true, false, false, true, isUdp, payloadSize, simulationTime); |
271 |
throughput = experiment.Run (true, false, false, true, isUdp, payloadSize, simulationTime); |
| 272 |
if (throughput < 9 || throughput > 10) |
272 |
if (throughput < 19 || throughput > 20) |
| 273 |
{ |
273 |
{ |
| 274 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
274 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
| 275 |
exit (1); |
275 |
exit (1); |
|
|
| 277 |
std::cout << "RTS/CTS" << "\t\t\t" << "Long" << "\t\t\t\t" << "Long" << "\t\t\t\t" << "Mixed" << "\t\t" << throughput <<" Mbit/s" << std::endl; |
277 |
std::cout << "RTS/CTS" << "\t\t\t" << "Long" << "\t\t\t\t" << "Long" << "\t\t\t\t" << "Mixed" << "\t\t" << throughput <<" Mbit/s" << std::endl; |
| 278 |
|
278 |
|
| 279 |
throughput = experiment.Run (true, false, true, true, isUdp, payloadSize, simulationTime); |
279 |
throughput = experiment.Run (true, false, true, true, isUdp, payloadSize, simulationTime); |
| 280 |
if (throughput < 11 || throughput > 12) |
280 |
if (throughput < 19 || throughput > 20) |
| 281 |
{ |
281 |
{ |
| 282 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
282 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
| 283 |
exit (1); |
283 |
exit (1); |
|
|
| 287 |
Config::SetDefault ("ns3::WifiRemoteStationManager::ProtectionMode", StringValue ("Cts-To-Self")); |
287 |
Config::SetDefault ("ns3::WifiRemoteStationManager::ProtectionMode", StringValue ("Cts-To-Self")); |
| 288 |
|
288 |
|
| 289 |
throughput = experiment.Run (true, false, false, true, isUdp, payloadSize, simulationTime); |
289 |
throughput = experiment.Run (true, false, false, true, isUdp, payloadSize, simulationTime); |
| 290 |
if (throughput < 12 || throughput > 13) |
290 |
if (throughput < 21 || throughput > 22) |
| 291 |
{ |
291 |
{ |
| 292 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
292 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
| 293 |
exit (1); |
293 |
exit (1); |
|
|
| 295 |
std::cout << "CTS-TO-SELF" << "\t\t" << "Long" << "\t\t\t\t" << "Long" << "\t\t\t\t" << "Mixed" << "\t\t" << throughput <<" Mbit/s" << std::endl; |
295 |
std::cout << "CTS-TO-SELF" << "\t\t" << "Long" << "\t\t\t\t" << "Long" << "\t\t\t\t" << "Mixed" << "\t\t" << throughput <<" Mbit/s" << std::endl; |
| 296 |
|
296 |
|
| 297 |
throughput = experiment.Run (true, false, true, true, isUdp, payloadSize, simulationTime); |
297 |
throughput = experiment.Run (true, false, true, true, isUdp, payloadSize, simulationTime); |
| 298 |
if (throughput < 14 || throughput > 15) |
298 |
if (throughput < 21 || throughput > 22) |
| 299 |
{ |
299 |
{ |
| 300 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
300 |
NS_LOG_ERROR ("Obtained throughput is not in the expected boundaries!"); |
| 301 |
exit (1); |
301 |
exit (1); |