A simple real-time mobile gaming traffic generator example over Wi-Fi. More...
#include "ns3/applications-module.h"#include "ns3/core-module.h"#include "ns3/internet-module.h"#include "ns3/mobility-module.h"#include "ns3/network-module.h"#include "ns3/wifi-module.h"Go to the source code of this file.
Functions | |
| void | GamingPacketSent (std::string context, Ptr< const Packet > packet, RtaTigMobileGaming::TrafficModelStage stage) |
| Callback invoked when a gaming packet is transmitted. | |
| void | PacketReceived (std::string context, Ptr< const Packet > packet, const Address &address) |
| Callback invoked when the PacketSink receives a packet. | |
A simple real-time mobile gaming traffic generator example over Wi-Fi.
This example demonstrates how to set up a basic ns-3 simulation with real-time mobile gaming traffic over a Wi-Fi network. Real-time mobile gaming is characterized by small packets (30-500 bytes) sent frequently (every 30-60ms) with low latency requirements.
The simulation consists of:
The traffic model follows IEEE 802.11-18/2009r6 RTA TIG Report (Section 4.1.4):
Traffic model presets:
To run with default (status-sync DL): ./ns3 run rta-tig-mobile-gaming-example To run status-sync UL: ./ns3 run "rta-tig-mobile-gaming-example --model=status-sync-ul" To run lockstep DL: ./ns3 run "rta-tig-mobile-gaming-example --model=lockstep-dl" To run lockstep UL: ./ns3 run "rta-tig-mobile-gaming-example --model=lockstep-ul"
To disable verbose logging: ./ns3 run "rta-tig-mobile-gaming-example --verbose=false"
Definition in file rta-tig-mobile-gaming-example.cc.
| void GamingPacketSent | ( | std::string | context, |
| Ptr< const Packet > | packet, | ||
| RtaTigMobileGaming::TrafficModelStage | stage ) |
Callback invoked when a gaming packet is transmitted.
| context | The context string |
| packet | The transmitted packet |
| stage | The traffic model stage |
Definition at line 341 of file rta-tig-mobile-gaming-example.cc.
References NS_LOG_INFO.
Callback invoked when the PacketSink receives a packet.
| context | The context string |
| packet | The received packet |
| address | The sender's address |
Definition at line 350 of file rta-tig-mobile-gaming-example.cc.
References NS_LOG_INFO.