Re: [ns] I really need advice on gigabit ethernet
Hi, Do you know how to setup a duplex link between two nodes in NS? Quick answer: see the tcl examples. Everything is there. In NS, the duplex link uses a model of CSMA/CD, i.e what Ethernet uses too. All you have to do is to configure your link (in your tcl scrip) by specifying the bitrate that you want and the link latency. The latter should be a really low value, see the standard to get the right one. BR, Ilyes Gouta. On 9/18/07, Brenda Lindsay Williams [EMAIL PROTECTED] wrote: Pls I need to know what it takes to simulate gigabit ethernet... I'm sorry cos I know I've asked this question to ns users twice already today, but I have a report to submit tomorrow and I need to know even a little about simulating Gigabit Ethernet in NS-2 I'm working on VoIP core networks using QoS (Quality of Service) parameters as my performance metrics... Thanks Regards, Brenda
[ns] Packet Stacking in 802.15.4
Hi, I am trying to store outgoing packets into stack instead of sending out. The environment is ns-2.31 and ~/ns-2.31/wpan is my target directory. I implemented stack and insert Push(p) when outgoing packet is detected. void Mac802_15_4::recv(Packet *p, Handler *h) { .. if(ch-direction()==hdr_cmn::DOWN) // outgoing packet, temporary code { Push(p); return; question point } . And I perform sample file (~/ns-2.31/tcl/ex/wpan/wpan_demo2.tcl). The result is that traffic is not generated after performing return because the execution is stopped. If I block the code(return;), traffic is generated continuously. How can I save outgoing packets into stack?
[ns] Help for simulation about RTP over DCCP
Hi, guys: I am going to study the performance using rtp over DCCP. and have added the DCCP patch using http://lifc.univ-fcomte.fr/~dedu/ns2/. If someone have done the relative works by NS, Would you mind telling me how to start the implementation? I cannot get more from the draft-ieft-dccp-rtp-05.txt, and really puzzled by what can be done next? Thanks in advance!! All the bests Victor
[ns] How to use TraNS (VANETs)?
Hello all, I am new in this field and I want to use TraNS to simulate VANETs and I have some troubles: 1º Is TraNS the best choice for my work (VANETs simulation)? 2º Can someone tell me if I am wrong in the idea of how I can use TraNS? TraNS use: = 1. Use SUMO to define everithing about the movement of the nodes. 2. Use NS-2 to define the kind of WiFi connection between the nodes. 3º Can some one tell me where can I find a tutorial or example files to use in TraNS. Thank you very much.. Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! http://advision.webevents.yahoo.com/reto/entretenimiento.html
Re: [ns] Modify the trace file format in ns-2
I have edited the 'new-trace' itself (I have appended an additional information for it, So in additional to the original info displayed by it there is the data rate). Regarding 'make clean' every time I run it it give error cannot delet tcl it is directory I do not know why that? By your argument do you mean that I must write a new trace format and add what I need it? and I sould not edit the 'new-trace' format? Thanx, Ghada Matthias Kuhnert [EMAIL PROTECTED] wrote: I did not understand, what you exactly modified/tried to do. To get the new trace format, you have to include in your tcl script a statement similar to $ns_ use new-trace, depending how you named your simulator instance in the script. Then via some statements in the cmu-trace implementation the new trace file format is taken. You don't have to and must not change anything of the cmutrace for that purpose! The newtrace variable is initialised via the tcl, so it will be set on runtime - therefore a change of the variable in the c++ part doesn't change the behaviour of the trace during runtime... The configure is superfluous, if you did not add anything new! If you changed anything on the files, the only command additional to make, is a make clean, to resolve on dependencies! Original-Nachricht Datum: Wed, 19 Sep 2007 04:09:18 -0700 (PDT) Von: Ghada Al-Mashaqbeh An: ns-users@ISI.EDU Betreff: [ns] Modify the trace file format in ns-2 Dear all, I have moified the mac trace file format (new trace foramt for wireless) to record the the data rate used to transmit the packet (since I am using multirate mac layer). I have added the modifications to cmu-trace.cc file only, then I have run in the ns directory 'configure' then 'make', but still I get the original trace format (the changes were not recognized). Can anybody help me please? Thanx, Ghada - Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail - Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.
[ns] problem node connection
Hi, I have problem when I run a Evan Jones program. I had change a node connection to 3 nodes and a nodes 0 and 1 connect to node 2 but when running just node 1 is connecting to node 2. it is very urgent. Thanks # == # Define options # == set val(chan) Channel/WirelessChannel ;# channel type set val(prop) Propagation/TwoRayGround ;# radio-propagation model set val(ant) Antenna/OmniAntenna ;# Antenna type set val(ll) LL ;# Link layer type set val(ifq) Queue/DropTail/PriQueue ;# Interface queue type set val(ifqlen) 50 ;# max packet in ifq set val(netif)Phy/WirelessPhy ;# network interface type set val(mac) Mac/802_11 ;# MAC type set val(rp) DSDV ;# ad-hoc routing protocol set val(nn) 3;# number of mobilenodes # Create simulator set ns_[new Simulator] # Set up trace file $ns_ use-newtrace set tracefd [open essai.tr w] $ns_ trace-all $tracefd # Create the general operations director # Used internally by MAC layer: must create! create-god $val(nn) # Create and configure topography (used for mobile scenarios) set topo [new Topography] # 500x500m terrain $topo load_flatgrid 500 500 # # Create the specified number of mobilenodes [$val(nn)] and attach them # to the channel. # Here two nodes are created : node(0) and node(1) # configure node $ns_ node-config -adhocRouting $val(rp) \ -llType $val(ll) \ -macType $val(mac) \ -ifqType $val(ifq) \ -ifqLen $val(ifqlen) \ -antType $val(ant) \ -propType $val(prop) \ -phyType $val(netif) \ -channelType $val(chan) \ -topoInstance $topo \ -agentTrace ON \ -routerTrace ON \ -macTrace OFF \ -movementTrace OFF for {set i 0} {$i $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0;# disable random motion $node_($i) set Z_ 0.0 } $node_(0) set X_ 0.0 $node_(0) set Y_ 0.0 $node_(1) set X_ 50.0 $node_(1) set Y_ 50.0 $node_(2) set X_ 150.0 $node_(2) set Y_ 150.0 # 1500 - 20 byte IP header - 40 byte TCP header = 1440 bytes Agent/TCP set packetSize_ 1440 ;# This size EXCLUDES the TCP header set agent1 [new Agent/TCP] set app [new Application/FTP] set sink1 [new Agent/TCPSink] $app attach-agent $agent1 $ns_ attach-agent $node_(0) $agent1 $ns_ attach-agent $node_(2) $sink1 $ns_ connect $agent1 $sink1 # 1500 - 20 byte IP header - 40 byte TCP header = 1440 bytes Agent/TCP set packetSize_ 1440 ;# This size EXCLUDES the TCP header set agent2 [new Agent/TCP] set app [new Application/FTP] set sink2 [new Agent/TCPSink] $app attach-agent $agent2 $ns_ attach-agent $node_(1) $agent2 $ns_ attach-agent $node_(2) $sink2 $ns_ connect $agent2 $sink2 #30 seconds of warmup time for routing $ns_ at 0.0 $app start # 180 seconds of running the simulation time $ns_ at 240.0 $ns_ halt $ns_ run $ns_ flush-trace close $tracefd _ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
[ns] Problem with ns2 compilation
Dear ns-users, I am using ns-2 2.31 under windows, there is no dynamic loading detected on my system, also static comilation is disabled on ns-2, when I edit the code of ns-2 I must reinstall it again (issue ./install in ns directory). If I just issue 'configure' then 'make' the new code is not compiled. How can I solve this problem? shall I enable static compilation? how to do that? Thanx, Gaby - Need a vacation? Get great deals to amazing places on Yahoo! Travel.
[ns] Fwd: Problem with ns2 compilation
Also, the .o files are not produced when I run make. - Check out the hottest 2008 models today at Yahoo! Autos.
[ns] Help in simulating video
Hi, I want to generate video traffic with diverse characteristics (MPEG-4, H.263 and H.261) and quality over SCTP in NS-2. My questions are: (1) Is Exponential Traffic Generator is adequate to simulate it (MPEG-4, H.263 and H.261)? (2) What are the most adequate values for the different parameters, i.e.,: packetSize_ (packet size) busrt_time (average on time in secs) idle_time (average off time in secs) rate_ (transmission rate during on periods (3) How can I indicate the peak rate. Please, I need some help. Thanks Elisabete 1. Video - EXP2 also has exponential on and off times, but with the average of 100 ms and 900 ms, respectively. The peak rate is increased to 310 Kbps while keeping the average rate the same as EXP1, leading to a burstier source. EXP2 generates the burstiest traffic among the four models that we consider and can be used to describe other traffic, such as video streams or multimedia conferencing applications that have higher statistical variability than VoIP.
[ns] regarding exponential traffic generation
Hello NS-Users, I would like to know how to generate exponential traffic using cbrgen.tcl. Looking forward for your reply, Thanking you, With Regards Geetha
[ns] Problem with random-motion protocol
hi:I am trying to run a script in wireless scenario and when i try run it, the progrma says there is a mistake in the command random motion for {set i 0} {$i [expr $num_row*$num_row ] } {incr i} {=20set node_($i) [$ns_ node]=20$node_($i) random-motion 0 ;# disable random motion}Can anybody tell me, I checked in the forum and i saw a suggestion to change the value from 0 to 1 but it does not work also _ Se parte de la mayor comunidad de blogs en México. Crea tu propio espacio gratis. www.live.spaces.com