PacketSinkHelper
PacketSinkHelper is a helper class within the ns-3 network simulator that simplifies the creation and installation of PacketSink applications on nodes. The sink applications are used to receive incoming data on a specified port and protocol, serving as data collection points in simulations. By abstracting the construction of the underlying PacketSink and its socket, the helper enables researchers to quickly set up sinks for TCP or UDP traffic without manual socket programming.
The helper is designed to work with both IPv4 and IPv6 addresses and supports different transport protocols
Typical usage involves constructing a PacketSinkHelper with the desired protocol and destination address, installing the sink
See also: PacketSink, Application, SocketFactory, and the broader set of Helper utilities in ns-3. The PacketSinkHelper