[ns] Why authers dont give variation like 5 ms to 3000 ms in end to end delay simulations.???
HI all, When i simulated the AODV, DSR and DSDV, I found the end to end delay varies from 4 ms to 3000ms (approx). But in all the papers, those who are giving the comparison of routing protocols never shows such type of variation. Can u help me?? jeevesh kumar - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
[ns] how we connect video signal for source
hi i want to use video film as a source. can any body work on video signal. how we use that nad implement in my project.can any body send me example in which video use as a source. and at which link i get the help, or video file in ns2 formate. please help me as soon as possible thanks - Jiyo cricket on Yahoo! India cricket Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
[ns] R: Re: R: which trace format is more accurate?
Sasan, I see your point. How much do differ results you got in the two cases? By exact same simulation you mean that you simply changed the trace format and nothing else (included the machine you working on)? Regards, Marco Fiore Messaggio originale Da: [EMAIL PROTECTED] ucc.ie Data: 15-apr-2006 9.33 PM A: Marco Fiore[EMAIL PROTECTED] Cc: [EMAIL PROTECTED], ns-users@isi.edu Ogg: Re: R: [ns] which trace format is more accurate? Marco, I agree that I need separate awk scripts for different trace formats but the particular example that I gave below is straight forward $1~/s/ /AGT/ { sent ++; } and should return total number of sents message in a simulation and that still returns different values (unless this is not the correct way to calculate the total sent messages) what do you think? Thanks, Sasan Sasan, both versions of tracefile report the same information. The difference only lies in the format (actually, the new trace format is somehow more complete). So they are accurate in the same way, but the point is that you can't use the same awk script on both! You have to write two versions of you awk script, and then you'll get the same results. Regards, Marco Fiore Messaggio originale Da: [EMAIL PROTECTED] Data: 15-apr-2006 8.06 AM A: ns-users@ISI.EDU Ogg: [ns] which trace format is more accurate? Hi All, I am generating both trace formats (old and new) for the exact same simulation, and for instance I count total number of messages sent as below (in my awk file) $1~/s/ /AGT/ { sent ++; } but I get two different results now I wonder, which one of the trace files are accurate? which one should I pick? the version is 2.29. I'll appreciate your advice. Thanks, Sasan
[ns] how to plot textured dot strip plot of ns2 data using xgobi
hi all, can any one have use xgobi to plot textured dot strip plot of ns2 data .kindly tell me the procedure.
Re: [ns] Problems in the running the demo tcl in EDCF PATCH
Hi, this has been discussed on the list before: http://mailman.isi.edu/pipermail/ns-users/2004-March/040611.html Best regards, Sven On Apr 16, 2006, at 6:19 AM, Saurabh Sinha wrote: Hi I'm working on the EDCF patch : avaialble at: http://sourceforge.net/project/showfiles.php?group_id=136544. But in that i'm facing a problem in the demo tcl multi_udpflows.tcl script, that all the packets are dropped; with the warning : warning: Route to base_stn not known: dropping pkt Can any one plz get me the reason, and also the problem in the routing algo. -- Saurabh Sinha Department of Computer Science, University of Delhi.
[ns] Diffusion API doubt
Hello, I have a small problem, i.e., how will Diffusion API decide which node will be the next to send the interest. Lets consider that the initially interest is disseminated by node1 and say within the radio range of node1 are node2,3,4 which get the interest from node1. Now say node2 is the first to disseminated the interest to its neighbors, now my question is how is that node2 is selected for disseminating interest but why not node 3 or 4 although say node 3 and 4 are close to node1 but node 2 is far from node 1. Well how will this Diffusion API select which node will send the next set of interest when all the 3 received at the same time from node1. Waiting for reply. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [ns] ns-allinone-2.29 installation problem
There are some problem on the scripting of configure. Mostly due to the back-tick characters. When I was installing ns-2.29, I did some debug to go thou' this. science wrote: I tried to install ns-allinone-2.29 on FreeBSD 6.1. After typing ./install at /usr/local/src/ns-allinone-2.29, I get the following errors. Would you please give me some help? hecking Tcl http.tcl library... yes checking for tclsh8.4.11... no checking for tclsh8.4... ../bin/tclsh8.4 checking for tk.h... -I../include checking for libtk8.4... -L../lib -ltk8.4 checking for tk.tcl... ../lib/tk8.4 checking for X11 header files checking for X11 library archive checking for XOpenDisplay in -lX11... no checking for libXext.a checking for ranlib... ranlib checking for a BSD-compatible install... /usr/bin/install -c checking system version (for dynamic loading)... ./configure: line 6018: syntax error near unexpected token `(' ./configure: line 6018: `case `(ac_space=' '; set | grep ac_space) 21` in' otcl-1.11 configuration failed! Exiting ... Please check http://www.isi.edu/nsnam/ns/ns-problems.html for common problems and bug fixes.
[ns] cbrp installation in ns2.27
Hello: I want to append a protocol cbrp to my ns2.27,and i use cygwin and ns-allinone-2.27,i have downloaded the source code about cbrp,but i don't know what to do next.can somebody help me? thanks in advance. with regards randal _ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
[ns] When does packets learn source and destination mode IDs.
Hi, I have been investigating NS2 for research purposes for the last several weeks. I have a very basic question and would really appreciate if someone could shed some valuable light on it. I really stepped through each line of the code but can't really find when and where the simulator assigns source and destination node addresses to the packets. Could someone please explain in some detail how, when and where the packets are assigned source and destination node addresses and from where does the packets learn this information? Also, if there are more than 3 nodes (in case of ping agent), how does the packet establishes the source and the destination nodes for traffic because in the Tcl script we only connect the agents and do not specify the source and destination nodes. Secondly, function access (some argument) is spread all over the code. I went through the manual as well but can't really understand why it is being used in so many places. Could someone please explain what is the purpose of using this function and how does this function when cast into different data types provides information? Thanks, - Faisal Siddiqui
Re: [ns] how we connect video signal for source
On 4/18/06, minaxi rawat [EMAIL PROTECTED] wrote: hi i want to use video film as a source. can any body work on video signal. how we use that nad implement in my project.can any body send me example in which video use as a source. and at which link i get the help, or video file in ns2 formate. please help me as soon as possible thanks look at this links: http://www.research.att.com/%7Ebreslau/vint/trace.html http://hpds.ee.ncku.edu.tw/~smallko/ns2/Evalvid_in_NS2.htm http://www.sce.carleton.ca/~amatrawy/mpeg4/ kind regards
[ns] Ping over LAN missed packets
Hi all, I have been doing simulations on ns2 in the past weeks, and I have some questions to our experimented community. I would appreciate your help. 1. I have this scenario: * A Local Area Netwotk with 4 nodes. * There is a Ping Agent on node 0, sending ping packets to node 2. * I sent 100 ping packets (echo request) to node 2; on node 2 only 97 ping packets are received. * Because the latter, only 97 echo reply are received on node 0. As you can note, there are 3 ping packets missed, and the simulator does not reflect that. Packets 29, 66 and 68 are never received on node 2. This is my ns2 script. It is commented in Spanish. I send ping packets following an exponential distribution. / BEGIN #---# # CONFIGURACION RED DE PRUEBAS # # Realizado por: Neil Diaz Martinez # # Abril de 2006 # #---# #---# # 1. CONFIGURACION GENERAL # #---# #Crear un nuevo objeto simulador. set ns [new Simulator] #Abrir una traza grafica para NAM. set nf [open lan.nam w] $ns namtrace-all $nf #Abrir un archivo de trazas en texto. set tf [open lan.tr w] $ns trace-all $tf #Definir el procedimeinto finish. proc finish {} { global ns nf tf $ns flush-trace close $nf close $tf exec nam lan.nam exit 0 } #Definir una función recv para la clase Agent/Ping. Agent/Ping instproc recv {from sendtime recvtime rtt} { $self instvar node_ puts [$node_ id] $from $sendtime $recvtime $rtt } #---# #---# # 2. CONFIGURACION DE LA TOPOLOGIA DE RED # #---# #Crear nodos. set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] #Conectar los cuatro nodos a una LAN. $ns make-lan $n0 $n1 $n2 $n3 100Mb 1ms LL Queue/DropTail Mac/802_3 #---# #---# # 3. ASIGNACION DE LOS AGENTES GENERADORES DE PING # #---# #Crear dos agentes Agent/Ping y asignarlos a los nodos n0 y n2. set p0 [new Agent/Ping] $ns attach-agent $n0 $p0 set p1 [new Agent/Ping] $ns attach-agent $n2 $p1 #Conectar los dos agentes Agent/Ping. $ns connect $p0 $p1 #---# #---# # 4. GENERACION DE LOS EVENTOS PING # #---# #Generar los eventos. set t_ping 0 set n_pings 100 for {set i 1} {$i = $n_pings} {incr i} { $ns at $t_ping $p0 send # Esta media genera en promedio una tasa de 10Mbps. set exp [exponential 51.2e-6] set t_ping [expr $exp + $t_ping] } #puts $t_ping $ns at [expr $t_ping+1000] finish #---# #---# # 5. EJECUCION DEL SCRIPT # #---# #Ejecutar la simulacion. $ns run / END Thanks a lot for your cooperation, Neil Neil Díaz Martínez [EMAIL PROTECTED] Tel: 2887126 - 3008030379 Bogotá D.C., Colombia - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1cent;/min.
[ns] HFSC queuing
Hello, I am doing research in comparing CBQ to HTB and HFSC. Both HTB and HFSC are not in the existing NS-2 code base. Does anyone have pointers to an implementation of either of these queuing disciplines? Thanks
Re: [ns] Ping over LAN missed packets
Hi, I think there is bug with the Ping Agent. If we simulate Ping Agent with only 3 nodes, it works fine but if we increase the number of nodes to more than 3, there are packets lost. I am able to provide a fix and described below. Please let me know if it helped you out. In the recv() function in ping.cc, declare the following two variables in the first two lines. nsaddr_t source; nsaddr_t destination; Then after hdrip is assigned values (hdr_ip* hdrip = hdr_ip::access(pkt);), add the following two lines. source = hdrip-src_.addr_; destination = hdrip-dst_.addr; Now go to the part of the routine where the following statement is declared: if (hdr-ret == 2) Under this part of the if statement, after the statement: hdr_ping* hdrret = hdr_ping::access(pktret); add the following lines of code: hdrip = hdr_ip::access(pktret); hdrip-src_.addr_ = destination; hdrip-dst_.addr_ = source; After adding all these lines, build it again and then simulate. Hope it fixes the problem. Let me know in any case. Thanks, - Faisal Siddiqui On 4/18/06, Neil Diaz [EMAIL PROTECTED] wrote: Hi all, I have been doing simulations on ns2 in the past weeks, and I have some questions to our experimented community. I would appreciate your help. 1. I have this scenario: * A Local Area Netwotk with 4 nodes. * There is a Ping Agent on node 0, sending ping packets to node 2. * I sent 100 ping packets (echo request) to node 2; on node 2 only 97 ping packets are received. * Because the latter, only 97 echo reply are received on node 0. As you can note, there are 3 ping packets missed, and the simulator does not reflect that. Packets 29, 66 and 68 are never received on node 2. This is my ns2 script. It is commented in Spanish. I send ping packets following an exponential distribution. / BEGIN #---# # CONFIGURACION RED DE PRUEBAS # # Realizado por: Neil Diaz Martinez # # Abril de 2006 # #---# #---# # 1. CONFIGURACION GENERAL # #---# #Crear un nuevo objeto simulador. set ns [new Simulator] #Abrir una traza grafica para NAM. set nf [open lan.nam w] $ns namtrace-all $nf #Abrir un archivo de trazas en texto. set tf [open lan.tr w] $ns trace-all $tf #Definir el procedimeinto finish. proc finish {} { global ns nf tf $ns flush-trace close $nf close $tf exec nam lan.nam exit 0 } #Definir una función recv para la clase Agent/Ping. Agent/Ping instproc recv {from sendtime recvtime rtt} { $self instvar node_ puts [$node_ id] $from $sendtime $recvtime $rtt } #---# #---# # 2. CONFIGURACION DE LA TOPOLOGIA DE RED # #---# #Crear nodos. set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] #Conectar los cuatro nodos a una LAN. $ns make-lan $n0 $n1 $n2 $n3 100Mb 1ms LL Queue/DropTail Mac/802_3 #---# #---# # 3. ASIGNACION DE LOS AGENTES GENERADORES DE PING # #---# #Crear dos agentes Agent/Ping y asignarlos a los nodos n0 y n2. set p0 [new Agent/Ping] $ns attach-agent $n0 $p0 set p1 [new Agent/Ping] $ns attach-agent $n2 $p1 #Conectar los dos agentes Agent/Ping. $ns connect $p0 $p1 #---# #---# # 4. GENERACION DE LOS EVENTOS PING # #---# #Generar los eventos. set t_ping 0 set n_pings 100 for {set i 1} {$i = $n_pings} {incr i} { $ns at $t_ping $p0 send # Esta media genera en promedio una tasa de 10Mbps. set exp [exponential 51.2e-6] set t_ping [expr $exp + $t_ping] } #puts $t_ping $ns at [expr $t_ping+1000] finish #---# #---# # 5. EJECUCION DEL SCRIPT # #---# #Ejecutar la simulacion. $ns run / END Thanks a lot for your cooperation, Neil Neil Díaz Martínez [EMAIL PROTECTED] Tel: 2887126 - 3008030379 Bogotá D.C., Colombia - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
[ns] is there others OLSR implementions
Hello everybody, i have a difficult probleme,i want to compare the pro actifs protocols and the reactifs protocols,specially,the aodv and olsr,as you know olsr doesn't exist in default in ns2,and i want to use it so, download an implementation ,but the result was not logical.so i think that this implementation is not complete,i find an other implementation required ns-allinone-2.1b7a,and this version of ns2,its is not easy,(for me impossible) to install it,a lot of problems and a lot of bugs. anyway,please help me,for having a good olsr's implementation compatible with version ns-2.29 version,or if you had alredy install ns-allinone-2.1b7a please help me,or give me your suggestions THANK YOU - Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Cliquez ici.
[ns] simulation 802.16 ???
hi, can any one tell me how to simulate 802.16 protocol in ns2 ? i just couldn't find any 802.16 mac in ns2. Does any one have any example related to simulation of 802.16. I will really appreciate your help. thanks in advance regards Mahmudul Haque Azad Undergraduate Student Department of Computer Science Engineering Bangladesh University of Engineering Technology http://www.mhazad.tk
[ns] CDMA channel
Hi all, Has anyone tried to simulate a CDMA channel using ns. If yes could help me with it... Thanks Arwa
[ns] Diffusion API doubt
As I know, wireless channel is broadcast style. So in your case, I think node 2,3,4 should received the interest and disseminate interest immediately. The sending order depends on their receiving order.
Re: [ns] problem occuring when adding a new TCP agent
gt; prachi, thx a lot. I did exactly what u said. gt; the error information is: invalid command name Agent/TCP/Ptcp while executing Agent/TCP/Ptcp create _o140 invoked from within gt; and surely i had added: gt; static class PtcpTcpClass : public TclClass {public:nbsp;PtcpTcpClass() : TclClass(Agent/TCP/Ptcp) {}nbsp;TclObject* create(int, const char*const*) {nbsp;nbsp;nbsp;nbsp;return (new PtcpTcpAgent());nbsp;}} class_ptcp; gt; Reply From: 李晶 gt;Hi,gt;gt; Does xxx is the name of your agent?? If yes then have you checked dependecies of our new file ( i.e. TCP-xxx.h amp;amp; .cc) through make depend command.gt;Here is the steps which are supossed to be performed.Here ptcp.h and ptcp.cc are example files.gt;gt;Follow these steps to compile modified source code.gt;1.Add ptcp.h and ptcp.cc to NSHomeDirectory\ns2.29\tcp\.gt;2.Replace tcp.h and tcp.cc in NSHomeDirectory\ns2.29\tcp\.gt;3.Replace tcp-sink.h and tcp-sink.cc in NSHomeDirectory\ns2.29\tcp\.gt;4.Replace ns_default.tcl in NSHomeDirectory\ns2.29\tcl\lib\.gt;5.Edit Makefile in NSHomeDirectory\ns2.29\ and add following lines to it. gt;nbsp;nbsp;nbsp; tcp/ptcp.o \gt;6. Run following commands at NSHomeDirectory\ns2.29\gt;nbsp;nbsp;nbsp; make cleangt;nbsp;nbsp;nbsp; make dependgt;nbsp;nbsp;nbsp; makegt;gt;I think this will help you. Even if it doesnt then there might be problem in your code itself.gt;gt;gt;gt;Prachi.gt;MTech (Computer Engg.)gt;gt;gt;锟筋晶 wrote: gt;I wrote a sub-agent of TCP, that means I put new files TCP-xxx.h, TCP-xxx.cc in the folder of TCP, and modified tcp.h, tcp-sink.h and tcp-sink.cc. Then add TCP_xxx.o to OBJ_CC in makefile.in, and then do makegt;i try to use the agent with New Agent/TCP/xxx, but it seems un-recognizable.gt;what's possibly the problem? gt;pls give me some ideas, thx a lotgt;--gt;USTC Alumni Email System gt;gt;gt; gt; gt; Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.gt;gt;--USTC Alumni Email System gt;gt;gt;gt; -- USTC Alumni Email System
[ns] cbrp implementation under ns-2.27
Hello : I need to attach cbrp to ns2.27,and my environment is cygwin+ns2.27,i have downloaded the source code but i don't know what to do next.can anyone help me? kindly help me. with regards,waitting for your letter. randal. _ 免费下载 MSN Explorer: http://explorer.msn.com/lccn/
[ns] how to from C ++ call the parameter of CBR flow in tcl file
for example, i want to call the rate_ of CBR ,how to do? Application/Traffic/CBR set rate_ 448Kb ;# corresponds to interval of 3.75ms Application/Traffic/CBR set packetSize_ 210 Application/Traffic/CBR set random_ 0 Application/Traffic/CBR set maxpkts_ 268435456; # 0x100 thanks a lot gloria [EMAIL PROTECTED] 2006-04-07
[ns] compiling and running *.h and *.cc files
Hi all, , can anyone please tell me how to compile these fileswhich do not seem to have a main function? I am working on MIP and want to make some modifications in the protocol. I can't seem to run these files mip.h , mip.cc and mip-reg.cc . I believe these are executed when the main (tcl) calls them, is this right? How then can I run these files in gcc or g++ in order to see program flow? Please do reply , many thanks, Best, Nauman -- Plan for the worst, Hope for the Best! :-)
Re: [ns] how to from C ++ call the parameter of CBR flow in tcl file
I do not understand your question exactly. But I think you can find the answer in the ns manual. If you want to set the parameter of CBR in tcl script, just use set command. - Original Message - From: ?? [EMAIL PROTECTED] To: ns-users ns-users@ISI.EDU Sent: Wednesday, April 19, 2006 11:08 AM Subject: [ns] how to from C ++ call the parameter of CBR flow in tcl file for example, i want to call the rate_ of CBR ,how to do? Application/Traffic/CBR set rate_ 448Kb ;# corresponds to interval of 3.75ms Application/Traffic/CBR set packetSize_ 210 Application/Traffic/CBR set random_ 0 Application/Traffic/CBR set maxpkts_ 268435456; # 0x100 thanks a lot gloria [EMAIL PROTECTED] 2006-04-07
Re: [ns] Ping over LAN missed packets
Hi Faisal, First, I want to thank you for your quick cooperation. Second, I still have problems with the ping/LAN even with your recommendations. I do not know what is happening. Third, I make an scenario with 4 nodes connected with duplex links, and there is not lost packets. Fourth, I am using the last version of ns2 (ns2.29). The statement if (hdr-ret == 2) has changed to if (hdr-ret == 0), but the rest of the code is still the same. Once and again thank you, and If you or anyone else have an idea I would appreciate. Neil Faisal Siddiqui [EMAIL PROTECTED] wrote: Hi, I think there is bug with the Ping Agent. If we simulate Ping Agent with only 3 nodes, it works fine but if we increase the number of nodes to more than 3, there are packets lost. I am able to provide a fix and described below. Please let me know if it helped you out. In the recv() function in ping.cc, declare the following two variables in the first two lines. nsaddr_t source; nsaddr_t destination; Then after hdrip is assigned values (hdr_ip* hdrip = hdr_ip::access(pkt);), add the following two lines. source = hdrip-src_.addr_; destination = hdrip-dst_.addr; Now go to the part of the routine where the following statement is declared: if (hdr-ret == 2) Under this part of the if statement, after the statement: hdr_ping* hdrret = hdr_ping::access(pktret); add the following lines of code: hdrip = hdr_ip::access(pktret); hdrip-src_.addr_ = destination; hdrip-dst_.addr_ = source; After adding all these lines, build it again and then simulate. Hope it fixes the problem. Let me know in any case. Thanks, - Faisal Siddiqui On 4/18/06, Neil Diaz [EMAIL PROTECTED] wrote: Hi all, I have been doing simulations on ns2 in the past weeks, and I have some questions to our experimented community. I would appreciate your help. 1. I have this scenario: * A Local Area Netwotk with 4 nodes. * There is a Ping Agent on node 0, sending ping packets to node 2. * I sent 100 ping packets (echo request) to node 2; on node 2 only 97 ping packets are received. * Because the latter, only 97 echo reply are received on node 0. As you can note, there are 3 ping packets missed, and the simulator does not reflect that. Packets 29, 66 and 68 are never received on node 2. This is my ns2 script. It is commented in Spanish. I send ping packets following an exponential distribution. / BEGIN #---# # CONFIGURACION RED DE PRUEBAS # # Realizado por: Neil Diaz Martinez # # Abril de 2006 # #---# #---# # 1. CONFIGURACION GENERAL # #---# #Crear un nuevo objeto simulador. set ns [new Simulator] #Abrir una traza grafica para NAM. set nf [open lan.nam w] $ns namtrace-all $nf #Abrir un archivo de trazas en texto. set tf [open lan.tr w] $ns trace-all $tf #Definir el procedimeinto finish. proc finish {} { global ns nf tf $ns flush-trace close $nf close $tf exec nam lan.nam exit 0 } #Definir una función recv para la clase Agent/Ping. Agent/Ping instproc recv {from sendtime recvtime rtt} { $self instvar node_ puts [$node_ id] $from $sendtime $recvtime $rtt } #---# #---# # 2. CONFIGURACION DE LA TOPOLOGIA DE RED # #---# #Crear nodos. set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] #Conectar los cuatro nodos a una LAN. $ns make-lan $n0 $n1 $n2 $n3 100Mb 1ms LL Queue/DropTail Mac/802_3 #---# #---# # 3. ASIGNACION DE LOS AGENTES GENERADORES DE PING # #---# #Crear dos agentes Agent/Ping y asignarlos a los nodos n0 y n2. set p0 [new Agent/Ping] $ns attach-agent $n0 $p0 set p1 [new Agent/Ping] $ns attach-agent $n2 $p1 #Conectar los dos agentes Agent/Ping. $ns connect $p0 $p1 #---# #---# # 4. GENERACION DE LOS EVENTOS PING # #---# #Generar los eventos. set t_ping 0 set n_pings 100 for {set i 1} {$i = $n_pings} {incr i} { $ns at $t_ping $p0 send # Esta media genera en promedio una tasa de 10Mbps. set exp [exponential 51.2e-6] set t_ping [expr $exp + $t_ping] } #puts $t_ping $ns at [expr $t_ping+1000] finish