Search code examples
ns-3

Is it possible to create PointToPointDumbbell in ns3 but have different applications on the left nodes


Is it possible to create PointToPointDumbbell in ns3 but have different applications on the left nodes such as OnOffApplication, UdpClientServer, and so on


Solution

  • Yes, this is possible.

    Begin by creating the dumbbell topology using PointToPointDumbbellHelper. Next, use the GetLeft(uint32_t) and GetRight(uint32_t) to get the individual Nodes on each side of the dumbbell.

    Simply install the application you want on that Node using Node::InstallApplication(Ptr<Application>) or using OnOffHelper::Install(Ptr<Node>) (or the Helper for whatever application it is you want to install).