Multicast Routing in NS2 In this post, the learners may learn to create a source file to run a multicast protocol to know various multicast protocols supported in NS2 11. 1 Introduction Multicast routing in NS2 can be easily set using any of the following syntaxes Method 1: set ns [new Simulator -multicast on] Method 2: set ns [new Simulator] $ns multicast When multicast mode is enabled, the nodes behave differently with the additional classifiers created. A distribution tree kind of structure is created in the simulation when dealing with multicast routing. NS supports three types of multicast routing: Centralized Multicast Routing(CM), Dense Mode (DM), Shared Tree Mode (ST) and Bidirectional Shared Tree Support (BST). Here is the method to specify the multicast routing in NS. set cmc [$ns mrtproto CtrMcast] # specify centralized multicast for all nodes; # cmc is the handl...
Its all about Network Simulations (NS2, NS3), Internet of Things, Sensor Networks, Programming, Embedded Systems, Cyber Physical Systems, etc