Re: [ns] Animating wireless transmissions in nam

2006-01-17 Thread Peyman Behbahani

Hi Dhammika,

In your $ns_ node-config add the following lines. It should works if you are
using wired cum wireless but please do let me know how does it work?

-agentTrace ON \
-wiredRouting ON 

Regards,
Peyman


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Cenker Demir
Sent: 13 January 2006 14:42
To: ns-users@ISI.EDU
Subject: Re: [ns] Animating wireless transmissions in nam



Hi, 

I work with AODV on ns-allinone-2.28 on cygwin. When I run the 
simulation I can see the rreq, rrep, and data packet transmissions 
among nodes.

regards
Cenker

Henrik Schumacher wrote:



Hi Dhammika,

i think nam does not support the visualization of packet flows for 
wireless
traces at the moment. It`s only possible to visualize the node 
movements.

Regards,
Henrik

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im 
Auftrag
von Dhammika Pathirana
Gesendet: Freitag, 13. Januar 2006 07:17
An: ns-users@ISI.EDU
Betreff: [ns] Animating wireless transmissions in nam


Hi,

I am trying to animate wireless transmissions in nam. The protocol
that I am working on seems to work fine, but nam doesn't show packet
transmissions. Can anyone advice me on how to enable tracing/animating
packet transmissions. Your help would be greatly appreciated.

thanks in advance

Dhammika







Re: [ns] Animating wireless transmissions in nam

2006-01-16 Thread Cenker Demir

Hi,

I have attached 3 files for you to run. These files are copied from 
some online resources, but I applied a couple of different stuff to the 
codes. The scen and tcp files are the scenario and the connection 
pattern files respectively. Just copy these 3 files into a folder, then 
run first10.tcl. After running it, it will produce out10.nam and 
out10.tr. When you run out10.nam with running the comand  nam 
out10.nam it will open a nam window. The simulation is too slow, so 
just to be able to see the file transmissions, you might need to 
increase the speed from the bar at the right top of the window (do not 
forget to press play button!!!). Then you should see the rreq's sent 
and forwarded by the nodes, and also the data packets...

Thes files work on ns-2.29 as well. I tried it.

I hope this helps.

Best regards
Cenker


mohd hammad wrote:


Hi 
can you help me who you implemented AODV on
ns-allinone-2.29 if possible Iam tried to run it but I
am failed 
Regraes

--- Cenker Demir [EMAIL PROTECTED] wrote:

 
 
 Hi, 
 
 I work with AODV on ns-allinone-2.28 on cygwin. When
 I run the 
 simulation I can see the rreq, rrep, and data packet
 transmissions 
 among nodes.
 
 regards
 Cenker
 
 Henrik Schumacher wrote:
 
 
 
 Hi Dhammika,
 
 i think nam does not support the visualization of
 packet flows for 
 wireless
 traces at the moment. It`s only possible to
 visualize the node 
 movements.
 
 Regards,
 Henrik
 
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Im 
 Auftrag
 von Dhammika Pathirana
 Gesendet: Freitag, 13. Januar 2006 07:17
 An: ns-users@ISI.EDU
 Betreff: [ns] Animating wireless transmissions in
 nam
 
 
 Hi,
 
 I am trying to animate wireless transmissions in
 nam. The protocol
 that I am working on seems to work fine, but nam
 doesn't show packet
 transmissions. Can anyone advice me on how to
 enable tracing/animating
 packet transmissions. Your help would be greatly
 appreciated.
 
 thanks in advance
 
 Dhammika
 
 
 
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
# ==
# Define options
# ==

set val(chan)   Channel/WirelessChannel
set val(prop)   Propagation/TwoRayGround
set val(netif)  Phy/WirelessPhy
set val(mac)Mac/802_11
set val(ifq)Queue/DropTail/PriQueue
set val(ll) LL
set val(ant)Antenna/OmniAntenna
set val(x)  670   ;# X dimension of the topography
set val(y)  670   ;# Y dimension of the topography
set val(ifqlen) 50;# max packet in ifq
set val(seed)   122.0
set val(adhocRouting)   AODV
set val(nn) 10 ;# how many nodes are simulated
set val(cp) mytcp10 
set val(sc) myscen10 
set val(stop)   150.0   ;# simulation time

# =
# Main Program
# ==

#
# Initialize Global Variables
#

# create simulator instance

set ns_ [new Simulator]

# setup topography object

set topo[new Topography]

# create trace object for ns and nam

set tracefd [open out10.tr w]
set namtrace[open out10.nam w]

$ns_ trace-all $tracefd
$ns_ namtrace-all-wireless $namtrace $val(x) $val(y)

# define topology
$topo load_flatgrid $val(x) $val(y)

#
# Create God
#
set god_ [create-god $val(nn)]

#
# define how node should be created
#

#global node setting

$ns_ node-config -adhocRouting $val(adhocRouting) \
 -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 ON 

#
#  Create the specified number of nodes [$val(nn)] and attach them
#  to the channel. 

for {set i 0} {$i  $val(nn) } {incr i} {
set node_($i) [$ns_ node]   
$node_($i) random-motion 0  ;# disable random motion
$node_($i) radius 10 
}

# 
# Define node movement model
#
puts Loading connection pattern...
source $val(cp)

# 
# Define traffic model
#
#puts Loading scenario file...
source $val(sc)

# Define node initial position in nam

for {set i 0} {$i  $val(nn)} {incr i} {

# 20 defines the node size in nam, must adjust it according to your scenario
# The function must be called after mobility model is defined

$ns_ initial_node_pos $node_($i) 20 
}


#
# Tell nodes when the simulation ends
#
for {set i 0} {$i  

Re: [ns] Animating wireless transmissions in nam

2006-01-16 Thread Björn Scheuermann

Hi Dhammika,

 I am trying to animate wireless transmissions in nam. The protocol
 that I am working on seems to work fine, but nam doesn't show packet
 transmissions. Can anyone advice me on how to enable tracing/animating
 packet transmissions. Your help would be greatly appreciated.

maybe as an alternative to nam Huginn might be of interest for you:

http://pi4.informatik.uni-mannheim.de/pi4/lib/projects/huginn/

Just contact me in case you want to try it.


Bye,

Björn


-- 
Björn Scheuermann
Lehrstuhl für Rechnernetze und Kommunikationssysteme
Heinrich-Heine-Universität
Universitätsstr. 1, D-40225 Düsseldorf

Gebäude 25.12, Raum 02.50
Tel: +49 211 81 11692
Fax: +49 211 81 11638 
[EMAIL PROTECTED]
http://www.cn.uni-duesseldorf.de