A simple buffered video streaming 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 | PacketReceived (std::string context, Ptr< const Packet > packet, const Address &address) |
| Callback invoked when the PacketSink receives a packet. | |
| void | VideoFrameGenerated (uint32_t frameSize) |
| Callback invoked when a video frame is generated. | |
| void | VideoPacketSent (Ptr< const Packet > packet, Time latency) |
| Callback invoked when a video packet is transmitted. | |
A simple buffered video streaming traffic generator example over Wi-Fi.
This example demonstrates how to set up a basic ns-3 simulation with video streaming traffic over a Wi-Fi network. It includes support for:
The simulation consists of:
The video traffic model follows IEEE 802.11-14/0571r12 TGAX evaluation methodology:
To run with default settings (BV1, 2Mbps): ./ns3 run tgax-video-example To run with higher bit rate: ./ns3 run "tgax-video-example --model=BV3" To run with multicast: ./ns3 run "tgax-video-example --model=MC1" To run with TCP: ./ns3 run "tgax-video-example --protocol=tcp"
To disable verbose logging: ./ns3 run "tgax-video-example --verbose=false"
Definition in file tgax-video-example.cc.
Callback invoked when the PacketSink receives a packet.
| context | The context string |
| packet | The received packet |
| address | The sender's address |
Definition at line 322 of file tgax-video-example.cc.
References NS_LOG_INFO.
| void VideoFrameGenerated | ( | uint32_t | frameSize | ) |
Callback invoked when a video frame is generated.
| frameSize | The size of the generated frame in bytes |
Definition at line 316 of file tgax-video-example.cc.
References NS_LOG_INFO.
Callback invoked when a video packet is transmitted.
| packet | The transmitted packet |
| latency | The network latency applied to the packet |
Definition at line 309 of file tgax-video-example.cc.
References ns3::Time::As(), NS_LOG_INFO, and ns3::Time::US.