[ns] need help regarding, monitoring a link from one to another node
hi to all.. 1) here i have to get a xgraph for the link from one node to another node.. i have to get graph time vs traffic over the link, like n1--n2--n3--n4 how to get xgraph for the link n1 to n4 i know how to get a graph for the amount of traffic received by a node over the time.. but 2) i dont know how to get xgraph for the amount traffic passed through the node.. please help me regarding the above two queries.. please respond i am in need thanks in advance
[ns] need help regarding-- tacking a graph for a route connecting to node nodes
hi to all here i am connecting node1 and node 5 as shown below (sender)node1---node2-node3-node4-node5(receiver) i was in need to get a graph about the total link from node1 to node5, the no of packets travelled and network resources utilized.. please help me regarding this.. thanks in advance.. by Murali
[ns] need help regarding.. taking a graph from a node about its performence
hi to all... here i am sending packets from one node1 to another node2 in the network.. the sending node1 receiving node2 are connected using a tcp connection.. here i want to have 1) graph for the packets send by the node1 2) graph for the packets received by the node2 please help me regarding this.. thanks in advance... by murali
[ns] how to monitor a queue.. droping packets...
hi to all.. here i working on to minimize the packet drop at router.. how to monitor a queue and plot a graph for its packet drop rate.. thanks in advance
[ns] how to measure performence over a link
hi to all.. here i did one mechanism to control the congestion over the network and to minimize packet drop rate.. now i have to check this over the links.. how to measure the performance of my mechanism.. and i want to have the graphs for these two mechanism and compare how to do it.. please help me regarding this...
[ns] plz help me ragarding how to start traffic from classifier.cc
hi to all.. here i have to start a traffic source from classifier.. after a condition satisfies like if( ready==1 &&stop==1) { from here i have to start the traffic source how to make this plz help me.. } is there any other way to start traffic source script in tcl from classifier.cc please help me regarding this
[ns] how to start $cbr1 from classifier.cc
hi to all.. here i have to start the traffic on a condition from classifier.cc recv function as shows below.. the time also i cant expect... void Classifier::recv(Packet* p, Handler*h) { if ((node-id==_o27) && (ready==1)) { if the condition satisfies i have to start the traffic; but for the command in tcl ($ns at " $cbr1 start" ) here i don't know the time.. i have to start traffic if the condition satisfies. and stop the traffic after 200milliseconds } please help me regarding this...
[ns] how to check incoming packet flow id..
hi to all.. here i am in need to check the incoming packet flow_id in recv function in classifier.cc please help me regarding this..
[ns] plz help me urgent how to send a packet from a node to another one node
hi to all... here i am in need to send a message from node to a another one particular node say (from node2 to node8) how to do it please help me regarding this.. i was suggested with flooding.tcl.. but here the peroblem is it sends message to all the nodes in the network... i was in need to send only for a particular node... thanks in advance
[ns] how to send message to a node using send_massage
hi to all... i have a send a message from one node to a another particular node not for all the nodes in the network.. one of our friend suggested me to see flood.tcl.. in this the message goes to every node... but i am in need of only from one node to another one node please help me regarding this thanks in advance..
[ns] need help regarding how to create and send our packets
hi to all... i have to create a packet which carrys a integer value from one node to another node.. how to make it possible pls help me in detail...
[ns] how to check flow id in classifier.cc
hi to all here i am need to check the flow id of a pcket at a node in classifier.cc how to make this please help me in detail..
[ns] how to access packet header fields
hi to all.. here i am in need to change packet header field before sending a packet from one node to another node in tcl... please help me regarding this.. thanks in advance
[ns] how to add our own payload to a packet
hi to all.. i want to add my own payload to a packet and send this to a node.. there the pay load have to be searched.. how to do this please help me.. how to access a payload in packet.. thanks in advance
[ns] how to send an expression from one node to another node with tcl script
hi to all... here i have to send a an expression like "(2+3)" from $node7 to $node2,... how to make this with tcl script... please help me regarding this... thanks in advance
[ns] how to execute the some tcl code from classifier.cc
hi to all... here i have to execute some piece of code in tcl script, after satisfying a condition in classifier.cc like as below tcl script: {* *set udp0 [new Agent/UDP] $ns attach-agent $n(24) $udp0 set cbr [new Application/Traffic/CBR] $cbr attach-agent $udp0 set null0 [new Agent/Null] $ns attach-agent $n(9) $null0 $ns connect $udp0 $null0 } Classifier.cc: void Classifier::recv(Packet* p, Handler*h) { if( condition) {if it enters the condition i have to start $ns "start cbr0" i cant say time} } how to do this please tell me in detail
[ns] how to get node id from node ip
hi to all... here i have to get a node id from a packet send by a node... from the packet ip header i am getting ip address of the sender.. here i have to know the node id of the sender node.. please help me regarding this.. thank u
[ns] how to validate a node
hi to all.. i want to validate node from another node,, how to do this.. can you please help me.. thanks in advance
[ns] hi-- review--
hi how is going your review.. is your HOD sleeping in that review
[ns] how to send a single packet from one node to another node
hi to all i have to send a single packet from one node to another anode.. only single packet... how to do this.. please help me... thanks in advance
[ns] how to find previous node in ns-2.33 classifier.cc
hi to all.. hi.. i am in need to find the previous node in classifier.cc, how to make this please help me. thanks in advance
[ns] ns2 sending message from one node to another node through classifier.cc
hi to all.. hi.. here i have a task.. where i have to send a message from one node to another on a condition in classifier.cc, for this i have one if condition after passing it i have to send a message from one node to another node.. please help me regarding... i am in need thanks in advance
[ns] tcl code execution in c++
hi to all.. i have toexecute the some tcl code through c++ code... i have to make a condition in classifier.. and if the condition satisfies i have to execute some tcl code.. how to do this.. please help me in detail.. thanks in advance
[ns] ns2 node id regarding
hi to all.. i have asked here how to find the node id in classifier.. but i didnt get any response as i need, but luckily i got solution.. that is name ( ) will write the node id's in classifier... here again my question that.. the node ids i get in tcl code via puts "$node(n)" here it writes node n id.. but i am not getting this id value in classifier... name function writes different ids those are not written by tcl code.. how do i get same node ids in both classifier.cc and node.cc thank u in advance
[ns] access node in classifier
hi to all.. hi here i am asking how to access a node id and provide a special function to a node,, but regarding this i am not getting any solution.. here any other ns2 forums where i can get solution for this.. if there.. please tell me and in need.. by muralikrishna
[ns] classifier current tcl object/node
hi to all.. in classifier i have to add a function.. that have to check for which node currently classifier is running.. if(current->node_id==node-id) //node-id, id of the node for which i am going to add new function { i do add a new function here} please help how will be this if function, i dont know how to get current tcl object/node and the correct position of this if function in classifier, please help me regarding this. by Muralikrishna Gaddam
[ns] classifier current tcl object/node
hi to all.. in classifier i have to add a function.. that have to check for which node currently classifier is running.. if(current->node_id==node-id) //node-id, id of the node for which i am going to add new function { i do add a new function here} please help how will be this if function, i dont know how to get current tcl object/node please help me regarding this. by Muralikrishna Gaddam
[ns] how to get node_id in classifier.cc in wired network simulation
hi to all.. i am in need to have node_id of a node in classifier.cc, so that i can add new functionality to a node.. so please help me how to get node_id in classifier by muralikrishna
[ns] makefile compilation
hi to all.. i am using NS-2.33, now i made changes to classifier.cc and queue.cc, to get these changes in to effect i have to compile.. but i don't have idea on how to compile after modifications.. please help me regarding this.. by Muralikrishna Gaddam
[ns] how to send message from one node to another node
hi to all.. i am searching for a solution.. i have to send an integer number from one node to another node.. how to make it please tell in detail.. i am in need thank u
[ns] how to get queue_size at run time
hi to all.. i am using ns-2.33, how to access the queue size at run time, is there any tcl script to get the queue size at run time, please help me regarding this.. by muralikrishna gaddam
[ns] how to send a message(excample-45) from node1 to node2
hi to all.. here i have to send a number from from node1 to node2,.. i know how to send a traffic packet op or cbr, but here i have to send my own number from node1 to node2,.. please help me regarding this by muralikrishna
[ns] How to Drop Packets From a Particular Sender
Hi to all.. i am using ns-2.33, here in my work i have to drop packets from a particular sender, i am planing to drop packets depending on the sender node_id please help me regarding this.. by Muralikrishna Gaddam (muralikrishn...@gmail.com)
[ns] How to send a message from one node to another node (i.e. to send an integer value)
hi to all.. i am using ns-2.33, here i have to send a message (i.e. to send an integer value) from one node to another node, is it possible in tcl script itself.. or i have to go for c++ please help me regarding this, by Muralikrishna Gaddam (muralikrishn...@gmail.com)
[ns] how to get queue size
hi to all.. if the queue size is reached to a threshold level i have to intimate the upstream router.. in this case how do i get the queue size i have set a threshold value q_threshold if(queue_size=q_threshold){ take an action to intimate the upstream router }
[ns] how to set threshold level to queue
hi to all.. how to set a threshold level to queue in a router.. and if the threshold level is reached i have to send a message to upstream router.. how to do it.. please help me.. i am in need thank you
[ns] ns2-classifier to add additional functionality to a particular node
hi to all.. i am using th command [ puts "{$n9 id} ] to print the node_id.. i have to use this node id at classifier to add additional functionality to the node 9 from classifier, like using the if condition as if current tcl object = node_id { } for this i dont know the exact if condition code and where it is add to the classifier.. please help me regarding this.. thank you
[ns] a special function required in queue
hi to all users... now i am working with ns-2.33, here i required is that, keeping a threshold level to queue and if the threshold level is reached i have to intimate the upstream node.. how to do it.. please help me as early as possible i am in need.. thank you all by Muralikrishna Gaddam
[ns] How to get incoming packets source and destination address
hi to all... i am working with network simulator ns-2.33, here at an intermediate node i have to know the incoming packets source and destination address. how to get this please help me thank you
[ns] classifier- how to get current tcl object and make new new fuctionality
hi users.. here i have to provide a special functionality to a node.. so i am getting the node id.. in classifier class i have to compare the node id with current tcl object how to get the current tcl object id and compare it with the particular node to provide special functionality
[ns] ns2 pushback
hi to all i am new to ns2, i am using ns-2.33, here i like to simulate the pushback in this i like to do push incoming packets sender address to up stream router.. for this scenario i got some code it is like this * * * * * Node instproc add-pushback-agent {} { $self instvar pushback_ set pushback_ [new Agent/Pushback] [Simulator instance] attach-agent $self $pushback_ # puts "Pushback Agent = $pushback_" $pushback_ initialize $self [[Simulator instance] get-routelogic] return $pushback_ } Node instproc get-pushback-agent {} { $self instvar pushback_ if [info exists pushback_] { return $pushback_ } else { return -1 } } Simulator instproc pushback-duplex-link {n1 n2 bw delay} { $self pushback-simplex-link $n1 $n2 $bw $delay $self pushback-simplex-link $n2 $n1 $bw $delay } Simulator instproc pushback-simplex-link {n1 n2 bw delay} { set pba [$n1 get-pushback-agent] if {$pba == -1} { puts "Node does not have a pushback agent" exit } $self simplex-link $n1 $n2 $bw $delay RED/Pushback $pba set link [$self link $n1 $n2] set qmon [new QueueMonitor/ED] $link attach-monitors [new SnoopQueue/In] [new SnoopQueue/Out] [new SnoopQueue/Drop] $qmon set queue [$link queue] $queue set pushbackID_ [$pba add-queue $queue] $queue set-monitor $qmon $queue set-src-dst [$n1 set id_] [$n2 set id_] } Agent/Pushback instproc get-pba-port {nodeid} { set node [[Simulator instance] set Node_($nodeid)] set pba [$node get-pushback-agent] if {$pba == -1} { return -1 } else { return [$pba set agent_port_] } } Agent/Pushback instproc check-queue { src dst qToCheck } { set link [[Simulator instance] set link_($src:$dst)] set queue [$link queue] if {$qToCheck == $queue} { return 1 } else { return 0 } } Queue/RED/Pushback set pushbackID_ -1 Queue/RED/Pushback set rate_limiting_ 1 Agent/Pushback set last_index_ 0 Agent/Pushback set intResult_ -1 Agent/Pushback set enable_pushback_ 1 Agent/Pushback set verbose_ false # # Added to be able to trace the drops in rate-limiter # Queue/RED/Pushback instproc attach-traces {src dst file {op ""}} { $self next $src $dst $file $op set ns [Simulator instance] #set this up late if you want. # set type [$self mon-trace-type] #nam does not understand anything else yet # if {$op == "nam"} { # set type "Drop" # } set type "Drop" set rldrop_trace [$ns create-trace $type $file $src $dst $op] set oldTrace [$self rldrop-trace] if {$oldTrace!=0} { puts "exists" $rldrop_trace target $oldTrace } else { # puts "Does not exist" $rldrop_trace target [$ns set nullAgent_] } $self rldrop-trace $rldrop_trace } * * * * help me in how to use this code for that scenario.. i much awaitng for this your help.. and asking about pushback in the forum for many days i am getting no response.. please help me *my mail id* : muralikrishn...@gmail.com
[ns] Pushback usage in ns-2.33
hi.. i have created a network using tcl script.. and i made traffic flow too i am in need use the pushback message when a queue at router fills.. i am using ns-allinone-2.33.. can anybody please tell me how to use pushback here over a particular node. please tell me how to use pushback. if you have code for this scenario please send me to muralikrishn...@gmail.com thanx in advance
Re: [ns] Ns-users Digest, Vol 61, Issue 27
hi.. now i am doing my project over network routers using ns-2 simulation, here now i created the network with nearly 60 nodes, the network topology is like inet topology.. in this i need to send data from a specific sender to specific router with specific path... how to make the tcl script or c code pls help me... if any body have example programs please send me.. it will be more helpful to me.. thanx in advance On 1/28/09, ns-users-requ...@isi.edu wrote: > Send Ns-users mailing list submissions to > ns-users@isi.edu > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.isi.edu/mailman/listinfo/ns-users > or, via email, send a message with subject or body 'help' to > ns-users-requ...@isi.edu > > You can reach the person managing the list at > ns-users-ow...@isi.edu > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ns-users digest..." > > > Today's Topics: > >1. Battery Model and Processing Model for sensor networks in ns2 > (Arslan Munir) >2. Please Help Error while creating new packet types > (Arun Kumar) >3. sensor net commercial applications (IRFAN LAONE) >4. Changing transmission power too often (fh...@c3sl.ufpr.br) >5. wireless sensor networks model in NS-2.33 (Nadine Chen) >6. where i can download NS3 (Douglas Restrepo) >7. Re: Different page sizes with Web Traffic (Salvador Alcaraz) > > > -- > > Message: 1 > Date: Mon, 26 Jan 2009 20:07:02 -0800 (PST) > From: Arslan Munir > Subject: [ns] Battery Model and Processing Model for sensor networks > in ns2 > To: ns-users@ISI.EDU > Message-ID: <369375.52230...@web45911.mail.sp1.yahoo.com> > Content-Type: text/plain; charset=us-ascii > > Hi all, > > I want to simulate sensor networks in ns2. Specifically, I want to model > sensor nodes with following capabilities: > > 1. Sensing channel and sensing model > 2. Battery model > 3. Processing Power model with processor voltage and frequency. > > Previously, a part of it was available in ns2 by UCLA in SensorSim at: > > http://nesl.ee.ucla.edu/projects/sensorsim/ > > But now they have removed the code from there. If any body has the > downloaded code from there or have the battery model and processing model > etc., please let me know from where I can get it. I really need that to get > my sensor network simulations working. Thanks! > > Regards, > Arslan > > > > > > -- > > Message: 2 > Date: Tue, 27 Jan 2009 11:59:07 +0530 (IST) > From: Arun Kumar > Subject: [ns] Please Help Error while creating new packet > types > To: ns-users@ISI.EDU > Message-ID: <996449.58414...@web95104.mail.in2.yahoo.com> > Content-Type: text/plain; charset=utf-8 > > sir i have to create a new header type so i searched in the net and > got the code in the website > http://www.isi.edu/nsnam/ns/tutorial/index.html. > > But in packet.h PT_PING and name_[PT_PING]="ping" is already defined > and in ns-default.tcl Agent/Ping set packetSize_ 64 is also defined. > which version you have used and while executing make command i got some > errors the errors are as follows > > In file included from ping.h:12, > from ping.cc:9: > agent.h:41:23: animation.h: No such file or directory > agent.h:42:27: trafficsource.h: No such file or directory > In file included from ping.h:12, > from ping.cc:9: > agent.h:56: error: expected class-name before ',' token > agent.h:101: error: ISO C++ forbids declaration of `TrafficSource' with > no type > agent.h:101: error: expected `;' before '*' token > agent.h:102: error: ISO C++ forbids declaration of `TrafficSource' with > no type > agent.h:102: error: expected `;' before '*' token > agent.h:126: error: ISO C++ forbids declaration of `TrafficSource' with > no type > agent.h:126: error: expected `;' before '*' token > agent.h:135: error: `View' has not been declared > agent.h:135: error: ISO C++ forbids declaration of `parameter' with no > type > agent.h: In member function `virtual int Agent::classid() const': > agent.h:58: error: `ClassAgentID' undeclared (first use this function) > agent.h:58: error: (Each undeclared identifier is reported only once for > each function it appears in.) > agent.h: At global scope: > agent.h:171: error: `View' has not been declared > agent.h:171: error: ISO C++ forbids declaration of `nv' with no type > ping.cc: In member function `virtual TclObject* PingClass::create(int, > const char* const*)': > ping.cc:23: error: cannot allocate an object of type `PingAgent' > ping.cc:23: error: because the following virtual functions are > abstract: > agent.h:73: error: virtual void Agent::findClosestCornertoPoint(double, > double, double&, double&) const > ping.cc: In constructor `PingAgent::PingAgent()': > ping.cc:29: error: no matching function for call to `Agent::Agent > (packet_t)' > agent.h