Re: [ns] ns2 and netbeans or eclipse

2010-05-17 Thread urashu06


HI,
sometime back I have used eclipse to debug NS-2 but got so many errors and I
need to build a newer version of ns-2. It converts all the warning messages
in errors.


tiongsquare wrote:
> 
> Hi, on the site tutorial u post, below there's a note: "Add those files to
> your cvsignore, respectively delete them from your patchfile after
> creating it", just wondering where is this patchfile? thanks!
> 
> 
> Volker Richter wrote:
>> 
>> 
>> Hello,
>> 
>> I'm using the eclipse IDE to make changes in the ns-2 sources.
>> It works really well, but I recommend the newest eclipse C/C++
>> version due to the improvements of the index system.
>>  
>> That is the tutorial which I have used:
>> 
>> http://wcms1.rz.tu-ilmenau.de/fakia/NS2-for-Eclipse.6025.0.html
>> 
>> Best regards,
>> 
>> Volker
>> 
>> Rodrigo Palucci Pantoni schrieb:
>>> Hello all,
>>> Anybody there had tried to insert ns2 in netbeans or eclipse IDE for
>>> debugging? Had it works? It is available a tutorial?
>>>
>>> Thanks.
>>>
>>>   
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/ns2-and-netbeans-or-eclipse-tp22710643p28591751.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Support for Ethernet Switch module in Ns-2

2010-05-17 Thread Mayank Sharma

Hello,

My configuration is :

ns2 version : ns-2.33
Operating sys : Ubuntu 8.04 - The Hardy Heron

I have to simulate a LAN with Ethernet switches in a multi hop setup. I was
wondering if ns-2.33 release had the libraries and required support for
switches which do not use the CSMA/CD protocol which is implemented in the
legacy Ethernet.
I have come across this question a couple of times on ns user forums ( dated
2004, 2006 ) but were not answered.

It would be appreciated if you could help me out with this

Regards,

Mayank Sharma


[ns] asking about variable in RREP of AODV

2010-05-17 Thread Irvan Supradana

Hello all

Im irvan student from Indonesia. i want to make modification in aodv
especially in RREP process. I got a confused what is exactly mean of rp_src,
rp_dst. My first assumption rp_src is IP address of node which broadcast
RREQ and rp_dst is IP address of node replying RREP. But when i changed
 variable rt0 = rtable.rt_lookup(rp->rp_src); , i thought rp_src is IP
address of node replying RREP. any body can explain to me?especially
different between rt and rt0 (and their works).

Thank you so much

Regard


[ns] ns2 aodv instruction

2010-05-17 Thread etudiant etudiant

hi
somebody can explain that this instruction means ?
if (rt && (rt->rt_hops != INFINITY2)
thanks


[ns] ns2 aodv instruction

2010-05-17 Thread etudiant etudiant

hi
somebody can explain that this instruction means ?
if (rt && (rt->rt_hops != INFINITY2)
thanks


Re: [ns] Adding static routes

2010-05-17 Thread Sidney Doria

Alexandre,

The original is a big TCL. This excerpt can help you.

Enjoy!

Sidney Doria
UFCG / BRAZIL

Thanks to Priscila Doria (UFCG), who created this scenario script.
Thanks to somebody who created the two special routines.


# Create six nodes (some of them are routers)
set x [$ns node]
set y [$ns node]
set z [$ns node]
set w [$ns node]
set r1 [$ns node]
set r2 [$ns node]
set r3 [$ns node]
set r4 [$ns node]
set a [$ns node]
set b [$ns node]
set c [$ns node]
set d [$ns node]

# Configure node colors (NAM)
$x color green
$y color red
$z color purple
$w color white
$r1 shape box
$r2 shape box
$r3 shape box
$r4 shape box
$a color green
$b color red
$c color purple
$d color white

# Connect them.
$ns duplex-link $r1 $x  10Mb 1ms  DropTail
$ns duplex-link $r1 $c  10Mb 1ms  DropTail
$ns duplex-link $r1 $r2 2Mb  20ms DropTail

$ns duplex-link $r2 $y  10Mb 1ms  DropTail
$ns duplex-link $r2 $d  10Mb 1ms  DropTail
$ns duplex-link $r2 $r3 10Mb 40ms DropTail

$ns duplex-link $r3 $z  10Mb 1ms  DropTail
$ns duplex-link $r3 $a  10Mb 1ms  DropTail
$ns duplex-link $r3 $r4 2Mb  20ms DropTail

$ns duplex-link $r4 $w  10Mb 1ms  DropTail
$ns duplex-link $r4 $b  10Mb 1ms  DropTail
$ns duplex-link $r4 $r1 10Mb 40ms DropTail

# NAM organization (orientation)
$ns duplex-link-op $r1 $x orient up
$ns duplex-link-op $r1 $c orient left
$ns duplex-link-op $r1 $r2 orient right

$ns duplex-link-op $r2 $y orient right
$ns duplex-link-op $r2 $d orient up
$ns duplex-link-op $r2 $r3 orient down

$ns duplex-link-op $r3 $z orient right
$ns duplex-link-op $r3 $a orient down
$ns duplex-link-op $r3 $r4 orient left

$ns duplex-link-op $r4 $w orient left
$ns duplex-link-op $r4 $b orient down
$ns duplex-link-op $r4 $r1 orient up


# Alexandre, these two routines help in the static routing construction

# Returns the local link that leads to
# the next hop node with the passed
# node address parameter. If no link to
# the given node exists, the procedure
# returns -1.
Node instproc nexthop2link { nexthop } {
#$self instvar link_
set ns_ [Simulator instance]
foreach {index link} [$ns_ array get link_] {
set L [split $index :]
set src [lindex $L 0]
if {$src == [$self id]} {
set dst [lindex $L 1]
if {$dst == $nexthop} { 
# Cost Debug
#puts "Src:$src Dst:$dst Link:$link"
#puts "[$link info class]"
# End Cost Debug
return $link
}
}
}
return -1
}

#
# This procedure is used to add explicitly
# routes to a node, overriding the routing
# policy used (e.g. shortest path routing).
# Tested currently with static ns2 routing.
# Essentially, it is used to add policy-routing
# entries in realistic network topologies.
#
# Parameters:
#
#   node: the ns2 node, to which the route
# entry is added to. This parameter
# is of type Node.
#   dst: the destination, to which the route
#entry refers to. This parameter
# is of type Node.
#   via: the next hope node, that the local node
#will use to access the destination node.
#This parameter is of type Node.
#
##
proc addExplicitRoute {node dst via } {
set link2via [$node nexthop2link [$via node-addr]]
if {$link2via != -1} {
$node add-route [$dst node-addr] [$link2via head]
} else {
puts "Warning: No link exists between node [$node
node-addr] and [$via node-addr]. Explicit route not
added."
}
}

# Routing Table!
$ns at 0 "addExplicitRoute $r1 $z $r4"
$ns at 0 "addExplicitRoute $r1 $a $r2"
$ns at 0 "addExplicitRoute $r1 $w $r4"

$ns at 0 "addExplicitRoute $r2 $w $r1"
$ns at 0 "addExplicitRoute $r2 $b $r3"
$ns at 0 "addExplicitRoute $r2 $x $r1"

$ns at 0 "addExplicitRoute $r3 $x $r2"
$ns at 0 "addExplicitRoute $r3 $c $r4"
$ns at 0 "addExplicitRoute $r3 $y $r2"

$ns at 0 "addExplicitRoute $r4 $y $r3"
$ns at 0 "addExplicitRoute $r4 $d $r1"
$ns at 0 "addExplicitRoute $r4 $z $r3"




2010/5/17 Alexandre Jaron :
>
> Hello,
>
> I built a wired topology in which I want to edit routing tables for a
> certain number of nodes.
> I want to tell a node, every packet coming from this node forward them to
> that node. Just as simple as it is.
>
> I found something on the Internet : [$node set ragent_] addstaticroute
>
> But 'ragent' is unknown, and I don't know how to write down the arguments,
> what is the interface arg? next hop, is it an address, a node ?
>
> Looking forward to your answer,
> Kind regards,
>
> Alexandre Jaron.
> MSc student at the King's College London.
>



-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

"Nessa jornada, o conheciment

Re: [ns] Problem compiling ns-2.34 with eclipse Galileo under ubuntu

2010-05-17 Thread tiongsquare


Hi, im having the same problem as you now, did you manage to solve the
problem?


Albane Delos wrote:
> 
> 
> Hi all,
> 
> I am currently trying to make ns-2.34 work in Eclipse Galileo. Without
> Eclipse it works and compiles just fine but in Eclipse I have the
> following
> errors:
> 
> make all
> Building file: ../ns_tclsh.cc
> Invoking: GCC C++ Compiler
> g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"ns_tclsh.d"
> -MT"ns_tclsh.d" -o"ns_tclsh.o" "../ns_tclsh.cc"
> Dans le fichier inclus à partir de ../ns_tclsh.cc:28:
> ../config.h:60:19: attention : tclcl.h : Aucun fichier ou dossier de ce
> type
> (No file or directory)
> ../ns_tclsh.cc:34: erreur: ‘Tcl_Interp’ was not declared in this scope
> ../ns_tclsh.cc:34: erreur: ‘interp’ was not declared in this scope
> ../ns_tclsh.cc:35: erreur: expected ‘,’ or ‘;’ before ‘{’ token
> ../ns_tclsh.cc: In function ‘int main(int, char**)’:
> ../ns_tclsh.cc:52: erreur: ‘Tcl_Main’ was not declared in this scope
> make: *** [ns_tclsh.o] Erreur 1
> 
> I work with ns-2.34 under Ubuntu 9.04.
> The workspace for eclipse is ns-allinone-2.34. And the project directory
> is
> ns-2.34.
> I am guessing the compiler can't find the file tclcl.h because it is not
> actually in the project directory but I can't figure out how to resolve
> the
> problem. My environment variables LD_LIBRARY_PATH, and TCL_LIBRARY are
> well
> set. I have been looking everywhere but couldn't find anything that would
> have helped me.
> 
> Thanks for your time and answer.
> 
> Albane
> 
> 
> 
> -- 
> Albane Delos
> +34 693 902 686
> 
> Étudiante à l'INSA de Lyon, département Télécommunications, Services et
> Usages
> Étudiante à l'UPC Barcelona, ETSETB (Escola Tècnica Superior d'Enginyeria
> de
> Telecomunicacions de Barcelona)
> Étudiante à l'UPC Barcelona, Master of Science in Information and
> Communication Technologies
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Problem-compiling-ns-2.34-with-eclipse-Galileo-under-ubuntu-tp26099324p28587102.html
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] ns2 and netbeans or eclipse

2010-05-17 Thread tiongsquare


Hi, on the site tutorial u post, below there's a note: "Add those files to
your cvsignore, respectively delete them from your patchfile after creating
it", just wondering where is this patchfile? thanks!


Volker Richter wrote:
> 
> 
> Hello,
> 
> I'm using the eclipse IDE to make changes in the ns-2 sources.
> It works really well, but I recommend the newest eclipse C/C++
> version due to the improvements of the index system.
>  
> That is the tutorial which I have used:
> 
> http://wcms1.rz.tu-ilmenau.de/fakia/NS2-for-Eclipse.6025.0.html
> 
> Best regards,
> 
> Volker
> 
> Rodrigo Palucci Pantoni schrieb:
>> Hello all,
>> Anybody there had tried to insert ns2 in netbeans or eclipse IDE for
>> debugging? Had it works? It is available a tutorial?
>>
>> Thanks.
>>
>>   
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/ns2-and-netbeans-or-eclipse-tp22710643p28586197.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] Adding static routes

2010-05-17 Thread Alexandre Jaron

Hello,

I built a wired topology in which I want to edit routing tables for a
certain number of nodes.
I want to tell a node, every packet coming from this node forward them to
that node. Just as simple as it is.

I found something on the Internet : [$node set ragent_] addstaticroute
   
But 'ragent' is unknown, and I don't know how to write down the arguments,
what is the interface arg? next hop, is it an address, a node ?

Looking forward to your answer,
Kind regards,

Alexandre Jaron.
MSc student at the King's College London.


[ns] Fwd: Routing issues

2010-05-17 Thread Alexandre Jaron

Hello,

I am an MSc student at the King's College and I am currently encountering
problems editing routing tables in NS2. Basically, I use a mesh topology,
and I want to add or create a basic routing table for a certain number of
nodes.
I want to tell a node: every packet coming from this node, forward them to
that node. How could I do that? If yes, can I make it in tcl script?

I am looking forward to your answer,

Kind regards,
Alexandre Jaron.


Re: [ns] Data rate for Mac/802_11

2010-05-17 Thread Mubashir Rehmani

Hi Mucktar,

Use this command in your tcl script (vary the datarate as per your
requirement)

Mac/802_11 set dataRate_ 11Mb
Mac/802_11 set basicRate_ 2Mb

For more help:
http://www.joshuarobinson.net/docs/ns-802_11b.html
http://www.comp.nus.edu.sg/~wuxiucha/research/reactive/publication/Simulate80211ChannelWithNS2.pdf

Regards
Mubashir Husain Rehmani
Lip6, UPMC, Paris, France

On 17 May 2010 16:19, Mucktar Pakpahan  wrote:

>
>
> Hello every one
>
> Can you help me?.How to set data rate of Mac/802_11 to 54Mbps?
>
>
> Thanks
>
> Mucktar
>
>


-- 
Mubashir Husain Rehmani


[ns] Data rate for Mac/802_11

2010-05-17 Thread Mucktar Pakpahan


Hello every one

Can you help me?.How to set data rate of Mac/802_11 to 54Mbps?


Thanks

Mucktar



Re: [ns] Changing the sources file

2010-05-17 Thread Mubashir Rehmani

Hi Faraz,

You need to recompile ns2, so that the changes taken into effect by using

make clean
make
sudo make install

Moreover, it may happen that the printf that you inserted may not be
encountered by the program pointer. I mean, you need to put prinft in the
appropriate position of the mac protocol (cf. the pdf below for mac).

http://www.cs.binghamton.edu/~kliu/research/ns2code/note.pdf

Hope it helps
Regards

Mubashir Husain Rehmani
Lip6, UPMC, Paris, France

On 17 May 2010 15:54, Syed Faraz Hasan wrote:

>
> Hi NS2 Users,
>
> I am trying to make some changes in the NS2 source files, attempting to
> modify the scan procedure in the 802.11 network simulations. I added an
> extra "printf" command in the mac/mac-802_11.cc and saved the changes. When
> I am running the tcl code for 802.11 infrastructure networks, it is not
> printing the extra message. This was just a simple check to see if the
> changes are working but it failed.
> Can anyone tell me how a source file is changed in NS2?
>
> Thanks,
> Faraz
>



-- 
Mubashir Husain Rehmani


[ns] Changing the sources file

2010-05-17 Thread Syed Faraz Hasan

Hi NS2 Users,

I am trying to make some changes in the NS2 source files, attempting to modify 
the scan procedure in the 802.11 network simulations. I added an extra "printf" 
command in the mac/mac-802_11.cc and saved the changes. When I am running the 
tcl code for 802.11 infrastructure networks, it is not printing the extra 
message. This was just a simple check to see if the changes are working but it 
failed.
Can anyone tell me how a source file is changed in NS2?

Thanks,
Faraz


[ns] Hello shardul thaker

2010-05-17 Thread shardul thaker

http://sale-likeviagra.ehoco.com





[ns] Nam is not working and no documentation is found for the error.

2010-05-17 Thread sumit maheshwari

While running nam of ns2.33 in ubuntu 9.04, follwing error is seen.

nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox  {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox  {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."

Regards,
Sumit Maheshwari
IIT Kharagpur


[ns] Calculate Call Setup Delay on SIP signalling

2010-05-17 Thread eman eman

Dear All,
I'm doing project on SIP over DCCP using ns2 2.34, and in Mr. Masataka 
Ohta (Kanagawa University Japan) paper:  "Performance Comparisons of 
Transport Protocols for Session Initiation Protocol Signaling" there is a 
formula to calculate 
call setup delay, and I want to know how to do it in ns2 or awk or maybe in 
perl? Is there anyone can help me?