The main thing of the program is how much node you have to give that much node only will create. Here different nodes have different color. There is no any other connection between the nodes. After creating the nam file and trace file, we set up topography object. Set node_ ($i) [$ns node] is used to create the nodes. Here we set the initial position for the every node by using initial_node_pos. After that $Val (stop) is used to tell to nodes when the simulation ends.Dsr routing protocol were used here. Here we use some procedure, that is pktDeliveryRatio graph,for RouteOverhead graph, Misbehaviour_NODE graph. Count file is used to filtering the ack packets, forwarded packets, send packets, receving packets, drop packets.