Re: [ns] please help
On 5/16/06, Yahia saleh [EMAIL PROTECTED] wrote: hi, guys I need to know the way for computing pause time, since i read many publication using it, i guess some one of you know about it your help very appreciated
[ns] please help me
hi, guys I need to know the way for computing pause time, since i read many publication using it, i guess some one of you know about it your help very appreciated saleh
[ns] UMTS simulation error
Hello , I am a new NS user. I have written a tcl script which comprises of a simple ftp application with tcp (UMTS using eurane) . I am not getting any syntactical errors in the script but it is runnig for sometime and giving me this error message. add-interface: t2: t == 3 (t == nifs_ -1) simulation is running please wait ... --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o71: no target for slot -1 _o71 type: Classifier/Hash/Dest content dump: classifier _o71 0 offset 0 shift 2147483647 mask 0 slots -1 default -- Finished standard no-slot{} default handler -- Can anyone help me to find the mistake which is causing this error ? the original script which i have written is ... global ns # Remove all headers and add only those that are required # This significantly reduces the memory requirements for large simulations remove-all-packet-headers add-packet-header MPEG4 MSC-HS RLS LL Mac RTP TCP IP Common Flags set ns [new Simulator] set output [open out.tr w] $ns trace-all $output proc finish {} { global ns global output $ns flush-trace close $output puts Simulation ended exit 0 } # Configure and create rnc $ns node-config -UmtsNodeType rnc set rnc [$ns create-Umtsnode] # Configure and create bs $ns node-config -UmtsNodeType bs \ -downlinkBW 32kbs \ -downlinkTTI 10ms \ -uplinkBW 32kbs \ -uplinkTTI 10ms \ -hs_downlinkTTI 2ms \ -hs_downlinkBW 64kbs set bs [$ns create-Umtsnode] # Define Iub interface between RNC and BS $ns setup-Iub $bs $rnc 622Mbit 622Mbit 15ms 15ms DummyDropTail 2000 # Configure and create ue $ns node-config -UmtsNodeType ue \ -baseStation $bs \ -radioNetworkController $rnc set ue1 [$ns create-Umtsnode] # Create sgsn and ggsn set sgsn1 [$ns node] set ggsn1 [$ns node] # Create node1 and node 2 ( Fixed nodes ) set node1 [$ns node] set node2 [$ns node] # Connections between fixed network nodes $ns duplex-link $rnc $sgsn1 622Mbit 0.4ms DropTail 1000 $ns duplex-link $sgsn1 $ggsn1 622Mbit 10ms DropTail 1000 $ns duplex-link $ggsn1 $node1 10Mbit 15ms DropTail 1000 $ns duplex-link $node1 $node2 10Mbit 35ms DropTail 1000 # Routing gateway $rnc add-gateway $sgsn1 Set up the agents and their respective connections # Agent setup for ue set tcp0 [new Agent/TCP] $tcp0 set fid_ 0 $tcp0 set prio_ 2 # Attach agents to a common fixed nodes $ns attach-agent $node2 $tcp0 # Create and connect two applications to their agent set ftp0 [new Application/FTP] $ftp0 attach-agent $tcp0 # Create and attach sinks set sink0 [new Agent/TCPSink] $sink0 set fid_ 0 $ns attach-agent $ue1 $sink0 # Connect sinks to TCP agents $ns connect $tcp0 $sink0 $ns node-config -llType UMTS/RLC/AM \ -downlinkBW 64kbs \ -uplinkBW 64kbs \ -downlinkTTI 20ms \ -uplinkTTI 20ms \ -hs_downlinkTTI 2ms \ -hs_downlinkBW 64kbs # Create HS-DSCH and attach TCP agent for ue1 $ns create-hsdsch $ue1 $sink0 # Loads input trace file for ue identified by its fid_ $bs setErrorTrace 0 idealtrace # Load BLER lookup table from SNRBLERMatrix $bs loadSnrBlerMatrix SNRBLERMatrix # UE1 tracing $ue1 trace-inlink $output 2 $ns at 0.0 $ftp0 start $ns at 10.0 $ftp0 stop $ns at 10.2 finish puts simulation is running please wait ... $ns run __
[ns] DiffServ in NS
Hi I have seen a patch on somebody's web page that enables this feature. If I find it, I will let you know. In any case, if you are not afraid of coding, then take a look dsPolicy.cc, PolicyClassifier::mark() does the marking based on the policy and policer entries. You can extend it as you want. Sincerely, Alexander Sayenko (PhD) Assistant Telecommunication laboratory, MIT department University of Jyvaskyla, Finland Hello all, I need to do flow classification based on sourcedest port ID and not node ID as it is proposed in the DiffServ module provided within NS. Do you know a simple way to achieve flow classification using sourcedest port ID ? Best regards, Julien. -- Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.5.2/329 - Release Date: 02.05.2006
Re: [ns] find rtt at any time
thanks zhou ya jin for quick response but still i am not clear, actually i want to find the time that a packet is in transmission ( from its starting point of transmission to its current time during transmission) thanks From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [ns] find rtt at any time Date: Mon, 15 May 2006 14:08:25 +0800 I think the best method is to record the information in sctp c++ source file. You can find recv function, that is the entry of sctp agent receiving a packet. good luck. - Original Message - From: shahid iqbal [EMAIL PROTECTED] To: ns 2 ns-users@ISI.EDU; ns-isi 2 [EMAIL PROTECTED] Sent: Monday, May 15, 2006 1:07 PM Subject: [ns] find rtt at any time hi all i want to see rtt of any packet at any time, whether packet reach late or in time at destinition, in ns-allinone-2.29 using sctp agent ( for see congestion ) can any one tell me aboutwhile i sent many requests at ns-users@ISI.EDU but not receive any single response my e-mail is[EMAIL PROTECTED]thanks _ Join the next! generation of Hotmail and you could win the adventure of a lifetime http://www.imagine-msn.com/minisites/sweepstakes/mail/register.aspx _ Search on the go: Try Windows Live(tm) Search for Mobile beta http://www1.imagine-msn.com/minisites/mobile/Default.aspx?locale=en-us
[ns] aodv trace analysis
Hello every body I need to calculate the no of generated packets by every node using any Code dosnt matter Is there are any body can help me please __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[ns] Sorely confused on setdest command
Hi, I've managed to solve my problem I had yesterday and now I got wireless nodes communicating with wired nodes :) Now I want my wireless nodes to move around. I am confused as to where the X and Y coordinates translate to with relevance to the node for setdest command. It seems to bound the X and Y values to (0,range of my topology grid). It also seems to correspond to the actual X,Y values displayed in nam. I am very confused on the movement command, for example, on a 500x500 topology, $ns at 4.5 $mobile(1) setdest 500 499 20 throws an error while $ns at 4.5 $mobile(1) setdest 499 499 20 does not. I also cannot have negative values either. I would simply like to have the X, Y values go to the same position as specifying node X_ and Y_ values for display purposes. I have read the manaul on this part and it has not helped. To me it appears it sets the topology grid in the first quadrant with 0,0 as the bottom left corner of the square. Could someone please shed light on node movement? Thank you
Re: [ns] Multiple simulations in NS
hey, Thanx a lot Filippe. Your help really helped me complete my task. I am really obliged. Cheerz Tuhin M.Sc. (Computer Science) Department of Computer Science University of Delhi Delhi, India On 5/16/06, Filippe Jabour [EMAIL PROTECTED] wrote: It's more complex then I understood at the first sight. I'm afraid I can't help you. May be it's possible by using a more complex shell script (that I don't know how to create :( begin shell script ns tcl with initial arguments = generates an output file X loop ns tcl with arguments read from file X = generates another X end loop end shell Good luck! Filippe Jabour CES/JF - Engenharia de Telecomunicações Coordenador 32-2102-700432-8817-5645 http://www.jabour.com.br/ http://www.gta.ufrj.br/~jabour/ http://www.cesjf.br Tuhin Kanti Sharma wrote: thnx a lot for the reply... but i need to specify my requirements I need to run multiple simulations of a tcl script, based on the results wich Im collectin in cc file I need to get the best value for the simulation. Now wat I can do is run the simulation get the results and update variables in cc and then run the simulation again for the nxt value...so I need to control the executions thru tcl or cc. What happens is I can only get results after the simulation completes so I need to start the simulation again afresh can I link two tcl files can u suggest nething Ill b really greatful for help Tuhin On 5/15/06, Filippe Jabour [EMAIL PROTECTED] wrote: Ignore the * Consider as spaces. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Filippe Jabour escreveu: Use a shell script. /#!/bin/csh/ *set* scriptTcl = dd0601.tcl foreach scen *(*1 2 3 4 5 6 7 8 9 10*)* *echo* ... *echo* Rodada $scen *echo* Comando: ns $scriptTcl $scen time ns $scriptTcl $scen *echo* ... end Rodada e Comando are portuguese words. Something like Round and Command. $scen is an integer argument passed to tcl script to set the file that contains the inicial node positions and node movement. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Tuhin Kanti Sharma wrote: Hi, Can we run a tcl simulation multiple times, i.e from start to finish. If yes then how do we do it. Help would be appreciated. Tuhin Department of CS DU
Re: [ns] Multiple simulations in NS
Thnx a lot for ure help and kind suggestions. Tuhin Department of CS DU On 5/16/06, Zhou Ya Jin [EMAIL PROTECTED] wrote: 1)First you need to read some books about linux shell program. Then you will know what is the meaning of #!/bin/sh. 2) That is because your environment variable is not setting properly. a) you can change your environment variable The .bashrc file is at your home directory # .bashrc # User specific aliases and functions # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi HOME_NS=/usr/local/ns-allinone-2.29 NS_DIR=$HOME_NS/bin PATH=${PATH}:$NS_DIR:/sbin LD_LIBRARY_PATH=$HOME_NS/otcl-1.11:$HOME_NS/lib TCL_LIBRARY=$HOME_NS/tcl8.4.11/library export HOME_NS NS_DIR LD_LIBRARY_PATH TCL_LIBRARY b) if you do not want to change your environment variable ,you can use ./yourns2path/ns instead of ns - Original Message - From: Tuhin Kanti Sharma [EMAIL PROTECTED] To: ns-users@ISI.EDU; [EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 3:33 AM Subject: Re: [ns] Multiple simulations in NS thnx for ure hlp, smehow my requirement is getting met with wat u hav just suggested. I need help just in a couple of more points: 1)/#!/bin/csh/ what is the significance of this? 2) While running the shell script, it gives : ns command not found. Can you please tell me why is it so? I'll be really thankful and greatful for ure help Tuhin Department of CS DU On 5/16/06, Tuhin Kanti Sharma [EMAIL PROTECTED] wrote: thnx a lot for the reply... but i need to specify my requirements I need to run multiple simulations of a tcl script, based on the results wich Im collectin in cc file I need to get the best value for the simulation. Now wat I can do is run the simulation get the results and update variables in cc and then run the simulation again for the nxt value...so I need to control the executions thru tcl or cc. What happens is I can only get results after the simulation completes so I need to start the simulation again afresh can I link two tcl files can u suggest nething Ill b really greatful for help Tuhin On 5/15/06, Filippe Jabour [EMAIL PROTECTED] wrote: Ignore the * Consider as spaces. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Filippe Jabour escreveu: Use a shell script. /#!/bin/csh/ *set* scriptTcl = dd0601.tcl foreach scen *(*1 2 3 4 5 6 7 8 9 10*)* *echo* ... *echo* Rodada $scen *echo* Comando: ns $scriptTcl $scen time ns $scriptTcl $scen *echo* ... end Rodada e Comando are portuguese words. Something like Round and Command. $scen is an integer argument passed to tcl script to set the file that contains the inicial node positions and node movement. Filippe Jabour http://www.gta.ufrj.br/~jabour/ Tuhin Kanti Sharma wrote: Hi, Can we run a tcl simulation multiple times, i.e from start to finish. If yes then how do we do it. Help would be appreciated. Tuhin Department of CS DU
[ns] struggling with otcl-1.11
Dear users, at the moment I'm trying to recompile the ns-2.29 under WinXP in Cygwin. I used the precompiled binaries for tcl and tk, but otcl-1.11 isn't available and still refuses to compile clean: I can easily open a xterm running the Xserver, but octl complains about not finding X library. Do I need to add a special path? checking for tcl.h... -I../tcl8.4.11/generic checking for tclInt.h... -I../tcl8.4.11/generic checking for libtcl8.4... -L/usr/lib -ltcl84 checking for init.tcl... ../tcl8.4.11/library checking for http.tcl... ../tcl8.4.11/library/http checking Tcl http.tcl library... yes checking for tclsh8.4.11... no checking for tclsh8.4... no checking for tclsh... /bin/tclsh checking for tk.h... -I../tk8.4.11/generic checking for libtk8.4... -L/usr/lib -ltk84 checking for tk.tcl... ../tk8.4.11/library checking for X11 header files checking for X11 library archive checking for XOpenDisplay in -lX11... no can't find X library Regards / MfG, Martin Zejma * Martin ZEJMA - SIEMENS AUSTRIA, PSE * * E-mail: [EMAIL PROTECTED] *
[ns] Problem for installing ns2 on windows
Hi, I have some problems for installing ns2 on windows. After installing cygwin, ns2 installation failed, I have the followings errors: tcl8.3.2 configuration failed! Exiting Can somebody please help me, it's an emergency, i am about to have a nervous breakdown! plizz! _ Retrouvez tout en un clin d'oeil avec la barre d'outil MSN Search ! http://www.ideas.live.com/programpage.aspx?versionId=0eccd94b-eb48-497c-8e60-c6313f7ebb73