[ns] Robust routing
Quang Duc Bui
duc.bui at student.rmit.edu.au
Fri Feb 1 06:31:23 PST 2008
Hi everybody,
I am looking for some robust routing implementations in ns-2. If you know
any of them, please tell me.
Many thanks
Quang D. Bui
Research Student
School of Electrical and Computer Engineering
RMIT University
Melbourne, Australia
E-mail: duc.bui at student.rmit.edu.au
-----Original Message-----
From: ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] On Behalf
Of ns-users-request at ISI.EDU
Sent: Thursday, January 31, 2008 8:00 AM
To: ns-users at ISI.EDU
Subject: Ns-users Digest, Vol 49, Issue 31
Send Ns-users mailing list submissions to
ns-users at isi.edu
To subscribe or unsubscribe via the World Wide Web, visit
http://mailman.isi.edu/mailman/listinfo/ns-users
or, via email, send a message with subject or body 'help' to
ns-users-request at isi.edu
You can reach the person managing the list at
ns-users-owner at isi.edu
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ns-users digest..."
Today's Topics:
1. parallel connection (Smita Vishwakarma)
2. Comparison of BW Estimators 2 (Livian)
3. Multiple transmission power settings (Tae Dempsey)
4. Error compile aodv.cc (Normalia Samian)
----------------------------------------------------------------------
Message: 1
Date: Wed, 30 Jan 2008 12:21:54 +0530
From: "Smita Vishwakarma" <smita.vishwa at gmail.com>
Subject: [ns] parallel connection
To: "ns-users at isi.edu" <ns-users at ISI.EDU>
Message-ID:
<df1e80350801292251y2fb8aaa0m433ddef9c7ebce2f at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Dear ns users,<br><br>I would like to know how to establish a parallel links
between two nodes in Tcl.If anybody have any idea please share with
me.<br><br clear="all">Thanks in advance<br>-- <br>smita
--
smita
------------------------------
Message: 2
Date: Tue, 29 Jan 2008 23:26:52 -0800 (PST)
From: Livian <gladiator_uts at yahoo.com>
Subject: [ns] Comparison of BW Estimators 2
To: NS-User <ns-users at ISI.EDU>
Message-ID: <719980.4443.qm at web37001.mail.mud.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1
Hello
I m working with a network scenario ....where link BW is 1.5Mbps and is
shared by both TCP and UDP flows. I used FTP over TCP and UDP based CBR
background load with the same packet size 512 bytes. ..................
Simulation Time: is 30sec. I have to maintain CBR rate to
At 0-5 sec : 1Mbps
At 5-10 sec: 1.5 Mbps
At 10-15 sec: .8Mbps
At 15-20 sec: .1.3Mbps
At 20-25 sec: 1.5Mbps
At 20-25 sec: .4Mbps
But i dont know how to control cbr rate in TCL script. My outputs are
always close to link BW .....they are not close to available BW.
Here is my TCL Script :
set ns [new Simulator]
#Open the Trace files
set file1 [open out.txt w]
set f0 [open output1.txt w]
$ns trace-all $file1
#Open the nam trace file
set nf [open out.nam w]
$ns namtrace-all $nf
$ns color 1 Blue
$ns color 2 Red
#Define a 'finish' procedure
proc finish {} {
global f0 ns nf
$ns flush-trace
#Close the trace file
close $nf
#Execute nam on the trace file
exec nam out.nam &
close $f0
exit 0
}
set n0 [$ns node]
set n1 [$ns node]
$ns duplex-link $n0 $n1 1.5Mb 10ms DropTail
proc record {} {
global sink0 f0
set ns [Simulator instance]
#Set the time after which the procedure should be called again
set time 0.1
#How many bytes have been received by the traffic sinks?
set bw0 [$sink0 set bytes_]
#Get the current time
set now [$ns now]
#Calculate the bandwidth (in MBit/s) and write it to the files
puts $f0 "$now [expr $bw0/$time*8/1000000]"
#Reset the bytes_ values on the traffic sinks
$sink0 set bytes_ 0
#Re-schedule the procedure
$ns at [expr $now+$time] "record"
}
set u_src [new Agent/UDP]
$ns attach-agent $n0 $u_src
set u_dst [new Agent/Null]
$ns attach-agent $n1 $u_dst
$ns connect $u_src $u_dst
$u_src set fid_ 1
set cbr [new Application/Traffic/CBR]
$cbr set packetSize_ 512
#$cbr set interval_ 0.250
$cbr attach-agent $u_src
set t_src [new Agent/TCP/Newreno]
$t_src set packetSize_ 512
set sink0 [new Agent/TCPSink]
$ns attach-agent $n0 $t_src
$ns attach-agent $n1 $sink0
$ns connect $t_src $sink0
$t_src set fid_ 2
set ftp [new Application/FTP]
$ftp attach-agent $t_src
$ns at 0.0 "record"
$ns at 0.1 "$cbr start"
$cbr set rate_ 1
$ns at 5.0 "$cbr stop"
$ns at 5.1 "$cbr start"
$cbr set rate_ 1.5
$ns at 10.0 "$cbr stop"
$ns at 10.1 "$cbr start"
$cbr set rate_ .8
$ns at 15.0 "$cbr stop"
$ns at 15.1 "$cbr start"
$cbr set rate_ 1.3
$ns at 20.0 "$cbr stop"
$ns at 20.1 "$cbr start"
$cbr set rate_ 1.5
$ns at 25.0 "$cbr stop"
$ns at 25.1 "$cbr start"
$cbr set rate_ .4
$ns at 30.0 "$cbr stop"
$ns at 1.0 "$ftp start"
$ns at 29.0 "$ftp stop"
$ns at 30.1 "finish"
#Run the simulation
$ns run
If anyone understand my problem ..i will very much appreitate his reply.
Thanks.
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
now.
---------------------------------
Never miss a thing. Make Yahoo your homepage.
------------------------------
Message: 3
Date: Wed, 30 Jan 2008 09:23:19 -0500
From: "Tae Dempsey" <dempsetl at muohio.edu>
Subject: [ns] Multiple transmission power settings
To: ns-users at ISI.EDU
Message-ID:
<d7fe4c5b0801300623m7f090af4kd23b502bf74091f2 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Dear ns-users,
I have a simulation scenario setup with two wireless networks -- one network
is running the DSR protocol and the other is running AODV in promiscuous
mode. Is there a way to adjust the settings in ns2 so that the AODV nodes
can transmit farther and faster than the DSR nodes? And which settings get
adjusted? Essentially there will be two settings: one for DSR and one for
AODV nodes.
Thank you.
------------------------------
Message: 4
Date: Wed, 30 Jan 2008 22:28:05 +0800
From: "Normalia Samian" <lia.sakinah at gmail.com>
Subject: [ns] Error compile aodv.cc
To: ns-users at ISI.EDU
Message-ID:
<15aad3300801300628s12e837a5gc956f993cf8b8e07 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
*Dear all,
I have a problem compiling the aodv.cc code and hope you can help me out to
solve the problem.
I try to compile the aodv.cc on ns-2.31 but it produces the following error:
*
[root at fsksm aodv]# g++ aodv.cc -o aodv
aodv.cc:35:18: error: aodv.h: No such file or directory
aodv.cc:36:25: error: aodv_packet.h: No such file or directory
aodv.cc:37:20: error: random.h: No such file or directory
aodv.cc:38:23: error: cmu-trace.h: No such file or directory
aodv.cc:59: error: 'hdr_aodv' has not been declared
aodv.cc:60: error: expected class-name before '{' token
aodv.cc: In constructor 'AODVHeaderClass::AODVHeaderClass()':
aodv.cc:62: error: class 'AODVHeaderClass' does not have any field named
'PacketHeaderClass'
aodv.cc:63: error: 'hdr_all_aodv' was not declared in this scope
aodv.cc:64: error: 'hdr_aodv' has not been declared
aodv.cc:64: error: 'bind_offset' was not declared in this scope
aodv.cc: At global scope:
aodv.cc:68: error: expected class-name before '{' token
aodv.cc :71: error: ISO C++ forbids declaration of 'TclObject' with no type
aodv.cc:71: error: expected ';' before '*' token
aodv.cc:76: error: expected `;' before '}' token
aodv.cc: In constructor 'AODVclass::AODVclass()':
aodv.cc:70: error: class 'AODVclass' does not have any field named
'TclClass'
aodv.cc: At global scope:
aodv.cc:80: error: 'AODV' has not been declared
*My question is, why can't the program find all the *.h files when the
location of the files is already correctly pointed. *
*
Does this problem has anything to do with environment path setting? Or do i
need to do something to incorporate the gcc compiler with ns2 using
Makefile?
This problem has dragged my work since i face the same problem when i run my
own program that need to include the necessary header files (aodv.h,
aodv_packet.h, agent.h & gridkeeper.h).
I've already point the header files to their exact locations but the same
problems still occur involving
other linking files such as cmu-trace.
** The following is my own program that produce the same error when i
compile aodv.cc. *
[root at fsksm friend_code2]# g++ countfriend.cc -o countfriend
countfriend.cc:6:23: error: aodv/aodv.h: No such file or directory
countfriend.cc:7:30: error: aodv/aodv_packet.h: No such file or directory
countfriend.cc:8:19: error: agent.h: No such file or directory
countfriend.cc:9:24: error: gridkeeper.h: No such file or directory
countfriend.cc:11: error: expected class-name before '{' token
countfriend.cc:23: error: expected class-name before '{' token
countfriend.cc:26: error: ISO C++ forbids declaration of 'TclObject' with no
type
countfriend.cc:26: error: expected ';' before '*' token
countfriend.cc:30: error: expected `;' before '}' token
countfriend.cc: In constructor 'CountFriendClass::CountFriendClass()':
countfriend.cc:25: error: class 'CountFriendClass' does not have any field
named 'TclClass'
countfriend.cc: In constructor 'CountFriend::CountFriend()':
countfriend.cc:32: error: class 'CountFriend' does not have any field named
'Agent'
countfriend.cc:32: error: 'PT_AODV' was not declared in this scope
countfriend.cc: In member function 'int CountFriend::command(int, const
char* const*)':
countfriend.cc:97: error: 'TCL_OK' was not declared in this scope
countfriend.cc:100: error: 'Agent' has not been declared
[root at fsksm friend_code2]#
*I really hope anybody could help me out to solve this problem.
Regards,
Normalia*
------------------------------
_______________________________________________
Ns-users mailing list
Ns-users at isi.edu
http://mailman.isi.edu/mailman/listinfo/ns-users
End of Ns-users Digest, Vol 49, Issue 31
****************************************
More information about the Ns-users
mailing list