Re: [ns] Transmit packets
Hi all I have another question with the control of packet transmission. Like I said before, I want to transmit my packets in a time interval (let's call it send interval), but let's suppose that the current time of the simulator is out of that interval (so no packets have to be transmitted). I'd like my routing protocol enque those packets which may be send in the following send interval. I do not know exactly what to do. I suppose that I have to create a queue (i.e. using the class Priqueue), or are there any other form? And I suppose that in the recv method of my routing protocol I may put the code to enque and deque packets... (Another thing, I forgot to say that I'm using IEEE 802.15.4) Please, I need help with that, I know a lot of things, but I'm not what to do!! Thanks in advance, David De: David Rodenas drodenasherr...@yahoo.es Para: Mubashir Rehmani mshrehm...@gmail.com; ns-users@ISI.EDU Enviado: mar,7 diciembre, 2010 15:45 Asunto: Re: [ns] Transmit packets Hi Thanks a lot for your answer. I'll try to do it. And one more question, I don't want to use CSMA/CA in some cases, how can I enable and disable it? Thanks again! David De: Mubashir Rehmani mshrehm...@gmail.com Para: David Rodenas drodenasherr...@yahoo.es; ns-users ns-users@isi.edu Enviado: mar,7 diciembre, 2010 14:14 Asunto: Re: [ns] Transmit packets Hi David, You can control the transmission of packets by using timers in ns2. Explanation: In your tcl script, you will assign routing agent (ragent_) to all the nodes and this routing agent will help you to write your own procedure in the Command of your routing protocol. Then, once you are in the Command of the routing protocol, you will use timers. This timer will expire on the predefine time, which you can mention there and then you can write your packet sending logic there. E.g. you want to send all the nodes to send packet after 10 secs. The timer will expire after 10 secs and send the packets http://old.nabble.com/Reply-to-ragent_-question-td18590880.html#a18590880 http://old.nabble.com/Example-of-Simple-Timer-td19366929.html#a19366929 Hope it helps Best Regards Mubashir Husain Rehmani Lip6/UPMC Sorbonne Universités Paris, France On 7 December 2010 14:02, David Rodenas drodenasherr...@yahoo.es wrote: Hi all I have to questions: How can I control the transmission of packets? I want all nodes transmit their packets into an predetermined time interval. And If I don't want to use CSMA/CA, what I have to do? Thanks in advance David -- Mubashir Husain Rehmani
[ns] Tclcl installation problem
Hi. I have a problem while installing Tclcl 1.17 in ns 2.29 in openSUSE 11.3 Configure is ok. But in make I get this error: g++ -c -DNO_TK -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/home/sina/Desktop/ns-allinone-2.29/otcl-1.11 -I/home/sina/Desktop/ns-allinone-2.29/include -I/home/sina/Desktop/ns-allinone-2.29/include -I/home/sina/Desktop/ns-allinone-2.29/include -o Tcl.o Tcl.cc Tcl.cc: In member function ‘void Tcl::eval(char*)’: Tcl.cc:182:8: warning: deprecated conversion from string constant to ‘char*’ Tcl.cc: In member function ‘int TclObject::traceVar(const char*, TclObject*)’: Tcl.cc:421:50: warning: deprecated conversion from string constant to ‘char*’ Tcl.cc: In static member function ‘static int TclClass::create_shadow(void*, Tcl_Interp*, int, const char**)’: Tcl.cc:509:57: warning: deprecated conversion from string constant to ‘char*’ Tcl.cc:511:61: warning: deprecated conversion from string constant to ‘char*’ Tcl.cc: In static member function ‘static int TclClass::dispatch_instvar(void*, Tcl_Interp*, int, const char**)’: Tcl.cc:566:35: error: invalid conversion from ‘const char*’ to ‘char*’ Tcl.cc:571:72: warning: deprecated conversion from string constant to ‘char*’ Tcl.cc: In member function ‘virtual void TclClass::bind()’: Tcl.cc:603:60: warning: deprecated conversion from string constant to ‘char*’ Tcl.cc:605:60: warning: deprecated conversion from string constant to ‘char*’ make: *** [Tcl.o] Error 1 -- مجله موسیقی ملودی http://www.MelodyMag.com آدرسهای خود را کوتاه نکردهاید؟ «کیو در کیو دات آیآر» را امتحان کنید http://qxq.ir
[ns] ns2.26 problem
Hello! I instilled ns-2.26 in ubuntu8.10, but there was a big problem /usr/include/c++/4.2/bits/stl_algobase.h: At global scope: /usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected unqualified-id before ‘const’ /usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected `)' before ‘const’ /usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected `)' before ‘const’ /usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected `)' before ‘const’ /usr/include/c++/4.2/bits/stl_algobase.h:182: error: expected initializer before ‘const’ /usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected unqualified-id before ‘const’ /usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected `)' before ‘const’ /usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected `)' before ‘const’ /usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected `)' before ‘const’ /usr/include/c++/4.2/bits/stl_algobase.h:204: error: expected initializer before ‘const’ In file included from /usr/include/c++/4.2/vector:74, from ./diffusion3/lib/nr/nr.hh:34, from ./diffusion3/lib/main/message.hh:48, from ./diffusion3/lib/main/filter.hh:41, from ./diffusion3/lib/dr.hh:41, from diffusion3/ns/diffagent.h:40, from diffusion3/ns/diffagent.cc:33: /usr/include/c++/4.2/bits/vector.tcc: In member function ‘void std::vector_Tp, _Alloc::_M_fill_insert(__gnu_cxx::__normal_iteratortypename std::_Vector_base_Tp, _Alloc::_Tp_alloc_type::pointer, std::vector_Tp, _Alloc , size_t, const _Tp)’: /usr/include/c++/4.2/bits/vector.tcc:350: error: expected unqualified-id before ‘(’ token /usr/include/c++/4.2/bits/vector.tcc: In member function ‘void std::vector_Tp, _Alloc::_M_range_insert(__gnu_cxx::__normal_iteratortypename std::_Vector_base_Tp, _Alloc::_Tp_alloc_type::pointer, std::vector_Tp, _Alloc , _ForwardIterator, _ForwardIterator, std::forward_iterator_tag)’: /usr/include/c++/4.2/bits/vector.tcc:453: error: expected unqualified-id before ‘(’ token make: *** [diffusion3/ns/diffagent.o] error 1 Ns make failed! What is that? How can I fix it
[ns] LTE in NS2 is it possible ??
Dear all, I want to know if it is possible to simulate the LTE technology on NS2 or NS3. Is there any works before ? By the way what are the changes or differences between LTE and UMTS in term of : - frequency / channel model ? - coverage ? - data rate ? - Energy consumption ? B. Regards El Hadi
[ns] Throughput of a network!
Hi ns users, Does anyone know how I can calculate the throughput of a network, while the trace file is in this format?? r 117.428830620 _42_ RTR --- 7717 cbr 40 [13a 2a 39 800] --- [29:0 89:0 29 42] [1310] 4 0 f 117.428830620 _42_ RTR --- 7717 cbr 40 [13a 2a 39 800] --- [29:0 89:0 28 89] [1310] 4 0 r 117.435695743 _57_ RTR --- 7855 message 752 [0 36 800] --- [54:255 -1:255 32 0] r 117.435695775 _65_ RTR --- 7855 message 752 [0 36 800] --- [54:255 -1:255 32 0] r 117.435695809 _39_ RTR --- 7855 message 752 [0 36 800] --- [54:255 -1:255 32 0] Any idea is highly appreciated. Best,
[ns] UMTS-WIFI Handover using NIST module - Resolved
Hi, Do you find a solution to include movement in umts interface using NIST module ? I know that it's possible to add movement to iface80211 and iface80216 but not yet for umts ? Concerning the data trafic that ifaceUMTS never receive .. you should add this in your TCL code # control for umts interface## set node_odd [expr $nn % 2] ; nn is the number of mobile if { $node_odd == 1 } { set dummy_node [$ns create-Umtsnode 0.0.[expr 2+$nn]] puts *** dummy: tcl=$dummy_node; id=[$dummy_node id]; addr=[$dummy_node node-addr] } # don't ask me why we should have a pair number of umts interfaces :) then, to see the trafic in the tracefile , you should add these lines: $bsUMTS trace-outlink $f 2 $iface0_($j) trace-inlink $f 2 ;# for each umts interface that u create $iface0_($j) trace-outlink $f 3 ;# for each umts interface that u create Best Regards El Hadi
Re: [ns] wimax throughput
Hi, Is it possible to end the data at base station? How to calculate the throughput at the base station? Please tell me. thank you. -- View this message in context: http://old.nabble.com/wimax-throughput-tp28414176p30413100.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] Throughput using perl
Hi. please send me perl code to find out the throughput? Thanks in advance. -- View this message in context: http://old.nabble.com/Throughput-using-perl-tp11983858p30413174.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] separate uplink and downlink throughput calculation!
Hi. I have to calculate throughput at the base station. Please give me perl code to find throughput.Thanks in advance. -- View this message in context: http://old.nabble.com/separate-uplink-and-downlink-throughput-calculation%21-tp16395975p30413190.html Sent from the ns-users mailing list archive at Nabble.com.
Re: [ns] about analysis of trace file
I need to calculate the throughput of a link and draw other analysis graph. i have trace file. please tell command to have graphs of tracefile. Thanks in advance -- View this message in context: http://old.nabble.com/about-analysis-of-trace-file-tp9498322p30413309.html Sent from the ns-users mailing list archive at Nabble.com.
[ns] sink node in wimax network
hi everyone, Is it necessary to give sink node in wimax network.Is it possible to terminate the data at the base station? please tell me urgently. thanks in advance. -- View this message in context: http://old.nabble.com/sink-node-in-wimax-network-tp30413361p30413361.html Sent from the ns-users mailing list archive at Nabble.com.