[ns] how can i print the policer table in FTP sources?
dear all, I am doing the project in Network simulator.In that I am doing in differentiated services.I wrote the pogram in OTCL.But the problem is i cannot print the policer table Output in ftp sources where as i can print it in UDP sources.but my aim is to print in Ftp source.so please help me.to print in FTP Thank you K.karthik - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time. - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
Re: [ns] is address_ the routing address of a node?
This is definitely not a simple/good idea. Each node is represented by multiple addresses, see http://tagus.inesc-id.pt/~pestrela/ns2/ns2_haddr_tips.html, so you must make sure that everything is updated And most NS2 components probably were designed for constant addresses. I suggest you try making a reset on the routelogic object to make ns2 recompute the static routes at run-time and use $ns rtproto Session Pedro Vale Estrela -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ghirmay Desta Sent: quinta-feira, 30 de Março de 2006 20:50 To: ns-users@ISI.EDU Subject: [ns] is address_ the routing address of a node? I have added the following code in the OTcl implementation of Node. Node instproc set-address addr { $self instvar address_ set address_ $addr } During simulation I am using it to change the address of a node. Eventhough the node address is getting changed to new value, the node is reachable only with its old address. Why? best regards Ghirmay __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [ns] Two questions - Node id and path optimality calculation
Its probably due to this code in common/packet.h packet.h- abort(); packet.h- } packet.h- init(p); // Initialize bits_[] packet.h: (HDR_CMN(p))-next_hop_ = -2; // -1 reserved forIP_BROADCAST packet.h: (HDR_CMN(p))-last_hop_ = -2; // -1 reserved forIP_BROADCAST packet.h- p-fflag_ = TRUE; packet.h- (HDR_CMN(p))-direction() = hdr_cmn::DOWN; packet.h- /* setting all direction of pkts to be downward as default; Pedro Vale Estrela -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sasan Sahraei Sent: quarta-feira, 29 de Março de 2006 21:54 To: ns-users@ISI.EDU Subject: [ns] Two questions - Node id and path optimality calculation Hi, According to the manual -Hd represents the next hop towards the destination. In my trace file -Hd is mainlly equal to -2. i.e. r -t 30.106683874 -Hs 44 -Hd -2 -Ni 44 -Nx 1254.06 -Ny 25.52 -Nz 0.00 -Ne -1.00 -Nl RTR -Nw --- -Ma 0 -Md -Ms 2e -Mt 800 -Is 46.255 -Id -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 2 -P aodv -Pt 0x2 -Ph 4 -Pb 6 -Pd 3 -Pds 13 -Ps 2 -Pss 16 -Pc REQUEST What does this mean? why the node id is -2? why is it negative? also, I am trying to calculate the path optimality and movement pattern file is created using setdest. The god object is showing the # of hops between two nodes at a point of time, but I don't know (from the trace) how to see the number of times a packet has been travered in order to perform a comparison. Does anyone know any good way to do this? Thanks, Sasan
Re: [ns] Newbie questions on wpan demo
Hi, Stan: I read the slides distributed with the wpan modules, but I can only find some descriptions for the commands and cannot find answers to my questions. I'll look for papers and may get the answer to the question no.2, but I don't think I can find any clues to the others. I read one of his paper, it says that 0.2% per is adopted, but it doesn't mention how to implement. === 2006-03-31 12:18:32 Stan Lin wrote: === Hi, Some of your questions can be answered by their readme file or the paper published by the authors, Best luck, --- Bruce Who [EMAIL PROTECTED] wrote: Hi, all: Recently I begin to learn how to use ns2 to run wpan simulations, and stumbled by some problems, hope someone could help me out. 1)I found there are some commands like this: eval $ns_ attach-agent \$node_($src) \$udp_($src) why don't we just use this command? $ns_ attach-agent $node_($src) $udp_($src) 2) for this command $node sscs startCTDevice isFFD = 1 assoPermit = 1 txBeacon = 0 beaconOrder = 3 SuperframeOrder = 3 what does assoPermit mean? 3) I ran wpan_demo2.tcl and found that all extended addresses of nodes are [0]. Is it necessary to set the address to different values by ourselves? 4) I ran nam wpan_demo2.nam and found that data stream is only seem between PANCoor(node0) and node1. But we have such statements in the wpan_demo2.tcl script: ftptraffic 0 1 $appTime1 ftptraffic 0 3 $appTime3 ftptraffic 0 5 $appTime5 So why could no communications be seen between node0 and node3/node5? 5) And how to set lossmodel for nodes in wpan? I tried following code, but it doesn't work: set loss_module [new ErrorModel] $loss_module set rate_ 0.01 $loss_module unit pkt $loss_module ranvar [new RandomVariable/Uniform] $loss_module drop-target [new Agent/Null] eval $ns lossmodel $loss_module \$node_($src) \$node_($dst) Any help would be appreciated! Thanks in advance! Best regards, Bruce Who C.K. Stan Lin Ph.D. Student SIS, University of Pittsburgh __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com = = = = = = = = = = = = = = = = = = = = Best regards, Bruce Who 2006-03-31
[ns] Does ns2 support simultaneous processing ?
Hi I just wanted to know that whether ns2 supports threads or not? Like can more that 2 two stations transmit at the same time It will of gr8 help if some one can post a suggestion -- Saurabh Sinha Department of Computer Science, University of Delhi.
Re: [ns] Newbie questions on wpan demo
2) assoPermit means whether the node should permit other nodes to associate with it so that it becomes their coordinator. Look at the 802.15.4-2003 standard for details. 5) This is not how LossModel is used. Consult ns-manual for the correct usage. It still applies for wpan. Bruce Who wrote: Hi, all: Recently I begin to learn how to use ns2 to run wpan simulations, and stumbled by some problems, hope someone could help me out. 1)I found there are some commands like this: eval $ns_ attach-agent \$node_($src) \$udp_($src) why don't we just use this command? $ns_ attach-agent $node_($src) $udp_($src) 2) for this command $node sscs startCTDevice isFFD = 1 assoPermit = 1 txBeacon = 0 beaconOrder = 3 SuperframeOrder = 3 what does assoPermit mean? 3) I ran wpan_demo2.tcl and found that all extended addresses of nodes are [0]. Is it necessary to set the address to different values by ourselves? 4) I ran nam wpan_demo2.nam and found that data stream is only seem between PANCoor(node0) and node1. But we have such statements in the wpan_demo2.tcl script: ftptraffic 0 1 $appTime1 ftptraffic 0 3 $appTime3 ftptraffic 0 5 $appTime5 So why could no communications be seen between node0 and node3/node5? 5) And how to set lossmodel for nodes in wpan? I tried following code, but it doesn't work: set loss_module [new ErrorModel] $loss_module set rate_ 0.01 $loss_module unit pkt $loss_module ranvar [new RandomVariable/Uniform] $loss_module drop-target [new Agent/Null] eval $ns lossmodel $loss_module \$node_($src) \$node_($dst) Any help would be appreciated! Thanks in advance! Best regards, Bruce Who
[ns] Help on mysnoop.tcl
I need to analyse snoop on 802.11 mac. I hav tried many options but I guess the snoop implemented dsn't support 802.11. If there is a way to analyse snoop implemented on 802.11, please let me know. I'll b really obliged. Tuhin Kanti Sharma, India
Re: [ns] Trace file
Sara, the simplest way is probably to post-process your tracefile using awk or perl. Modifying the C++ code which generates the tracefile could be very time-consuming, as it is spread among all the implemented agents... Using awk or perl on the ns-2 tracefile you can print only some particular lines. Many references/tutorials/examples of both languages are available on the web. Regards, Marco Fiore Original Message From: [EMAIL PROTECTED] Date: Mar 31, 2006 12:52 PM To: ns-usersns-users@ISI.EDU Subj: [ns] Trace file Hi all, Is there a simple mode to modify the trace file? For example I wouldn't print the lines about beacon frames. Thanks in advance , Sara.
Re: [ns] Help needed on RSVP !
Hi Deepti, you may find the following paper useful: /RSVP/ns: An Implementation of RSVP for the Network Simulator ns-2/ - Marc Greis - http://www.sti.uniurb.it/acquaviva/didattica/rsvpns.pdf The adaptations of this RSVP\ns to recent version of NS (=2.26) are provided on R. Prior's web page: http://www.ncc.up.pt/~rprior/ns/index-en.html Alexander Sayenko seems to have updated this tool to the last versions of NS (2.27 and 2.28). I have not tested it for the moment (http://www.cc.jyu.fi/~sayenko/src/). Mit freundlichen Grüßen, with kind regards, cordialement, -- Gilles BERTRAND Institut National des Télécommunications (GET)- Universität Stuttgart -- Deepti C a écrit : Hi all! IS any of u ppl working on RSVP using NS-2??? If so, then do send me some example codes or some links where I can get some direction about where shd I start 4m?? Thanks in advance, Deepti. - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
[ns] problem with set DISPLAY enviroment
Thank you all, my problem, - When I execute the example file with: ./nam nam-example.tcl, the following message appeared: nam: no display nam and no $DISPLAY environment variable Solution, To set the DISPLAY enviroment - at shell by cygwin, type startx - export DISPLAY = :0.0 and it worked. Anh
Re: [ns] error reading file cbr-3-test
Hi, Hey i was also getting the same error.. U can try giving the entire path of the file or u can manually include the code in that file in your tcl code.. All the best, Bye.
Re: [ns] Does ns2 support simultaneous processing
Hi, I have actually tried to make one node transmit ftp traffic to different destination nodes at the same time.. something like the following set tcp1 [new Agent/TCP] set tcp2 [new Agent/TCP] set tcp3 [new Agent/TCP] #$tcp1 set class_ 2 set sink1 [new Agent/TCPSink] set sink2 [new Agent/TCPSink] set sink3 [new Agent/TCPSink] $ns_ attach-agent $W(0) $tcp1 $ns_ attach-agent $W(0) $tcp2 $ns_ attach-agent $W(0) $tcp3 $ns_ attach-agent $node_(0) $sink1 $ns_ attach-agent $node_(1) $sink2 $ns_ attach-agent $node_(2) $sink3 $ns_ connect $tcp1 $sink1 $ns_ connect $tcp2 $sink2 $ns_ connect $tcp3 $sink3 set ftp1 [new Application/FTP] set ftp2 [new Application/FTP] set ftp3 [new Application/FTP] set ftp4 [new Application/FTP] $ftp1 attach-agent $tcp1 $ftp2 attach-agent $tcp1 $ftp3 attach-agent $tcp2 $ftp4 attach-agent $tcp3 #$ns_ at $opt(ftp1-start) $ftp1 start $ns_ at 55.0 $ftp1 start $ns_ at 60.0 $ftp1 stop #set ftp2 [new Application/FTP] #$ftp2 attach-agent $tcp1 $ns_ at 65.0 $ftp2 start $ns_ at 70.0 $ftp2 stop $ns_ at 55.0 $ftp3 start $ns_ at 60.0 $ftp4 start In this there is only one source node W(0) which transmits data to different nodes(1,2,3) at the same time.. Hope this is of help to you.. All the best, Amrutha.
Re: [ns] [Ns-developers] Routing Protocol Implementation
Telis Papadopoulos wrote: Hi all, ...quoting from the ns_doc: class Agent/rtProto: this is the base class from which all routing protocol agents are derived... However, looking at the code of Distance Vector protocol, the respective agent is derived directly from the 'Agent' class... class rtProtoDV : public Agent { public: rtProtoDV() : Agent(PT_RTPROTO_DV) Am I missing something here? Thanx The documentation is referring to the OTcl class hierarchy, and you are looking at the C++ hierarchy. See line 67 of rtProtoDV.cc: rtProtoDVclass() : TclClass(Agent/rtProto/DV) {} where the OTcl binding is established. See chapter 3 of the ns documentation for more information on the OTcl linkage: http://www.isi.edu/nsnam/ns/doc/node5.html If necessary, please follow up this post *only* on ns-users@isi.edu (drop [EMAIL PROTECTED]). Tom