[ns] how to dump routing table

2008-11-24 Thread kanupriya kabra

Hello,

I am simulating a large network which uses a link state protocol ($ns
rtproto LS).
I wanted to find out if there is way to dump the routing table of each
router
i. on screen
ii. in a file

I would really appreciate if someone could help me out with this!

Thanks and Regards
Kanupriya


Re: [ns] Problem with NS2 installation

2008-11-24 Thread Sidney Doria

Hi,

obviously this NS isn't the simulator. Use which command to locate
where is the command NS:

"which ns"

the output must be a path to that ns executable.

This will help you to find this alien NS.

Anyway, you must put the correct path to NS (simulator) in your PATH variable.

Ask google for a tutorial about how to change PATH variable in Linux. It's easy.

Put the folder of NS in first place, so when you type NS, the correct
NS will be executed.

Sidney Doria
Brazil

2008/11/24 rtluser <[EMAIL PROTECTED]>:
>
>
> Hi,
> Im a totaly newbie on linux and a couple a days ago i installed ubuntu in
> order to use ns2 (Network simulator)
>
> I used a the tutorials i found on the net,and didn't get any errors during
> the installation.
> When i wrote 'ns' in the terminal i get this :
>
> Usage: host [-v] [-a] [-t querytype] [options] name [server]
> Listing: host [-v] [-a] [-t querytype] [options] -l zone [server]
> Hostcount: host [-v] [options] -H [-D] [-E] [-G] zone
> Check soa: host [-v] [options] -C zone
> Addrcheck: host [-v] [options] -A host
> Listing options: [-L level] [-S] [-A] [-p] [-P prefserver] [-N skipzone]
> Common options: [-d] [-f|-F file] [-I chars] [-i|-n] [-q] [-Q] [-T] [-Z]
> Other options: [-c class] [-e] [-m] [-o] [-r] [-R] [-s secs] [-u] [-w]
> Special options: [-O srcaddr] [-j minport] [-J maxport]
> Extended usage: [-x [name ...]]  server [name ...]]
>
> The guide says i should see a '%' instead of '$'...
>
> When i try to run a tcl file using the command 'ns example1.tcl'
> I got this :
> Nameserver not running
> example1.tcl NS record not found, try again
>
> Did you come up with this problem?
>
> Thanks in advance'
> Avi
>
> P.S sorry for my english
>
>
> --
> View this message in context: 
> http://www.nabble.com/Problem-with-NS2-installation-tp20665635p20665635.html
> Sent from the ns-users mailing list archive at Nabble.com.
>
>



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

"Nessa jornada, o conhecimento será o seu escudo..."
(Mestre dos Magos no episódio do grimoire de ouro)



[ns] Problem with NS2 installation

2008-11-24 Thread rtluser


Hi,
Im a totaly newbie on linux and a couple a days ago i installed ubuntu in
order to use ns2 (Network simulator)

I used a the tutorials i found on the net,and didn't get any errors during
the installation.
When i wrote 'ns' in the terminal i get this :

Usage: host [-v] [-a] [-t querytype] [options] name [server]
Listing: host [-v] [-a] [-t querytype] [options] -l zone [server]
Hostcount: host [-v] [options] -H [-D] [-E] [-G] zone
Check soa: host [-v] [options] -C zone
Addrcheck: host [-v] [options] -A host
Listing options: [-L level] [-S] [-A] [-p] [-P prefserver] [-N skipzone]
Common options: [-d] [-f|-F file] [-I chars] [-i|-n] [-q] [-Q] [-T] [-Z]
Other options: [-c class] [-e] [-m] [-o] [-r] [-R] [-s secs] [-u] [-w]
Special options: [-O srcaddr] [-j minport] [-J maxport]
Extended usage: [-x [name ...]]  server [name ...]]

The guide says i should see a '%' instead of '$'...

When i try to run a tcl file using the command 'ns example1.tcl'
I got this :
Nameserver not running
example1.tcl NS record not found, try again

Did you come up with this problem?

Thanks in advance'
Avi

P.S sorry for my english  
  

-- 
View this message in context: 
http://www.nabble.com/Problem-with-NS2-installation-tp20665635p20665635.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] ns and http

2008-11-24 Thread Davide

how to attach an http application on an existing TCP Agent?
i use nsmiracle and i cannot create the http application directly
attached to the node because (because i'm using the nsmiracle node
that is quite different from the normal ns2 node)
i'm able to create the tcp agent and attach onto it the application
(like FTP) but is not the same with http

any help will be appreciated

Davide



[ns] wireless network parameters

2008-11-24 Thread zied naas


hii m simulating a simple scenario with 4 wireless nodes, one BS linked to 
wired node the each wireless node send an UDP trafic i varied the UDP rate from 
1Mbps to 10Mbps and although the MAC data rate is equal to 10Mbps, the average 
throughput that i mesured didn't exceed the 0.90Mbpswhen the UDP datarate is 
1Mbps,for UDP datarate 20 Mbps the total average throughput at the wired node 
per example is 3.57Mbps.i m confused about the reason and i look for an 
explication:for the loss rate for instance when datarate =1Mbps the loss rate = 
  

55.4307 last thing is that i don t find in the new trace the reason for the 
dropped packets in the field Nwcan someone help me thank you my script tcl set 
ns_ [new Simulator]set num_wired_nodes 1set num_wireless_nodes 4set 
num_bs_nodes 1set num_nodes [expr $num_wired_nodes + $num_wireless_nodes + 
$num_bs_nodes]set opt(chan)   Channel/WirelessChannel;# channel 
typeset opt(prop)   Propagation/TwoRayGround   ;# radio-propagation 
modelset opt(netif)  Phy/WirelessPhy;# network interface 
typeset opt(mac)Mac/802_11 ;# MAC typeset opt(ifq)  
  Queue/DropTail/PriQueue;# interface queue typeset opt(ll) 
LL ;# link layer typeset opt(ant)
Antenna/OmniAntenna;# antenna modelset opt(ifqlen) 50   
  ;# max packet in ifqset opt(nn) 4 
 ;# number of mobilenodesset opt(adhocRouting) DSDV 
  ;# routing protocolset opt(x)  670;# 
x coordinate of topologyset opt(y)  670set opt(stop)   250  
  ;# time to stop simulationMac/802_11 set dataRate_ 10.0e6# set up for 
hierarchical routing$ns_ node-config -addressType hierarchicalAddrParams set 
domain_num_ 2   ;# number of domainslappend cluster_num 1 1 
   ;# number of clusters in each domainAddrParams set cluster_num_ 
$cluster_numlappend eilastlevel $num_wired_nodes 5#[expr 
$num_wireless_nodes+$num_bs_nodes] ;# number of nodes in each cluster# of each 
domainAddrParams set nodes_num_ $eilastlevel$ns_ use-newtrace#open the 
trace-fileset tracefd  [open out.tr w]set namtrace [open out.nam w]$ns_ 
trace-all $tracefd$ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y)# Create 
topography object set topo   [new Topography]# define topology$topo 
load_flatgrid $opt(x) $opt(y)# create Godcreate-god [expr $opt(nn) + 
$num_bs_nodes]#create wired nodesfor {set i 0} {$i < $num_wired_nodes} {incr i} 
{set W($i) [$ns_ node 0.0.$i]}# configure for base-station node$ns_ 
node-config -adhocRouting $opt(adhocRouting) \ -llType $opt(ll) 
\ -macType $opt(mac) \ -ifqType $opt(ifq) \ 
-ifqLen $opt(ifqlen) \ -antType $opt(ant) \ 
-propType $opt(prop) \ -phyType $opt(netif) \   
  -channelType $opt(chan) \ -topoInstance $topo \   
  -wiredRouting ON \ -agentTrace ON \ 
-routerTrace OFF \ -macTrace OFFset BS(0) [$ns_ node 
1.0.0]$BS(0) random-motion 0   ;# disable random motion#provide 
some co-ord (fixed) to base station node$BS(0) set X_ 1.0$BS(0) set Y_ 
2.0$BS(0) set Z_ 0.0#configure for mobilenodes$ns_ node-config -wiredRouting 
OFFfor {set j 0} {$j < $opt(nn)} {incr j} {set node_($j) [ $ns_ node 1.0.[expr 
$j+1]]$node_($j) random-motion 0#provide some co-ord (fixed) to base station 
node$BS(0) set X_ 1.0$BS(0) set Y_ 2.0$BS(0) set Z_ 0.0#configure for 
mobilenodes$ns_ node-config -wiredRouting OFFfor {set j 0} {$j < $opt(nn)} 
{incr j} {set node_($j) [ $ns_ node 1.0.[expr $j+1]]$node_($j) random-motion 0  
  $node_($j) base-station [AddrParams addr2id [$BS(0) node-addr]]; # provide 
each mobilenode with hier address o 
f its basestation $node_($j) set X_ [expr 
$j*10]$node_($j) set Y_ [expr $j*10]$node_($j) set Z_ 0.0}#linking of router to 
base-satation node$ns_ duplex-link $W(0) $BS(0) 100Mb 20ms DropTailfor {set i 0 
} {$i<$num_wireless_nodes} {incr i} {  set udp($i) [new Agent/UDP]  $ns_ 
attach-agent $node_($i) $udp($i)  set null($i) [new Agent/Null]  $ns_ 
attach-agent $W(0) $null($i)  $ns_ connect $udp($i) $null($i)  $udp($i) set 
fid_ $i  set cbr($i) [new Application/Traffic/CBR]  $cbr($i) set packetSize_ 
1000  $cbr($i) set rate_ 1Mb  #$cbr($i) set interval_ 0.005  $cbr($i) 
attach-agent $udp($i)  $ns_ at 00.0 "$cbr($i) start"  $ns_ at $opt(stop) 
"$cbr($i) stop"}# Define initial node position in namfor {set i 0} {$i < 
$opt(nn)} {incr i} {$ns_ initial_node_pos $node_($i) 20}# Tell all nodes 
when the simulation endsfor {set i } {$i < $opt(nn) } {incr i} {$ns_ at 
$opt(stop).0 "$node_($i) reset";}$ns_ at $opt(stop) "$BS(0) reset";$ns_ at 
$opt(s

[ns] Beacon Order in WPAN

2008-11-24 Thread Nah Ould Mohmouden

Hello everyone,
I would like to know if it is possible to give 2 nodes in the same star
network 2 different Beacon Orders

Thank you


Re: [ns] Transmission power

2008-11-24 Thread fhg07

Hmm.. But the case is that I am developing a protocol and the trasmission
power will vary according to what it wants, so there is no way I could set
the TP individually for each node on my TCL script, since its value will
depend on some events that can not actually be foreseseen.

Can I set the TP value from inside my C code?


Thanks,



> Hi,
>  You can set the transmitted power, by varying the
>  "Phy/WirelessPhy" parameters in your tcl script.
>
>  Please refer to the following conversations:
>
>  http://mailman.isi.edu/pipermail/ns-users/2005-March/048467.html
>
>  You can also see,
>  the threshold.cc file ...  ~ns/indep-utils/propagation/threshold.cc
>  and Chapter 18:Radio Propagation models of the "The ns Manual"
>
>   Hope you'll find it helpful,
>
> Regards,
> Vineet
>
> [EMAIL PROTECTED] wrote:
>> I would like to know how to change a node's transmission power when
>> sending a message. Is there a easy way to do so?
>>
>> Thanks in advance,
>>
>
>
> **
> E-mail Confidentiality Notice and Disclaimer.
>
> This e-mail and any files transmitted with it are confidential and are
> intended solely for the use
> of the individual or entity to which they are addressed. Access to this
> e-mail by anyone else is
> unauthorised. If you are not the intended recipient, any disclosure,
> copying, distribution or any
> action taken or omitted to be taken in reliance on it, is prohibited.
> E-mail messages are not
> necessarily secure. Hitachi does not accept responsibility for any changes
> made to this message
> after it was sent.
> Hitachi checks outgoing e-mail messages for the presence of computer
> viruses.
> **
>


-- 
Fernando Henrique Gielow - UFPR
Computer Science graduate student.



Re: [ns] Transmission power

2008-11-24 Thread Vineet Kumar

Hi,
 You can set the transmitted power, by varying the
 "Phy/WirelessPhy" parameters in your tcl script.

 Please refer to the following conversations:
 
 http://mailman.isi.edu/pipermail/ns-users/2005-March/048467.html

 You can also see,
 the threshold.cc file ...  ~ns/indep-utils/propagation/threshold.cc
 and Chapter 18:Radio Propagation models of the "The ns Manual"

  Hope you'll find it helpful,

Regards,
Vineet

[EMAIL PROTECTED] wrote:
> I would like to know how to change a node's transmission power when
> sending a message. Is there a easy way to do so?
>
> Thanks in advance,
>   


**
 
E-mail Confidentiality Notice and Disclaimer. 

This e-mail and any files transmitted with it are confidential and are intended 
solely for the use 
of the individual or entity to which they are addressed. Access to this e-mail 
by anyone else is 
unauthorised. If you are not the intended recipient, any disclosure, copying, 
distribution or any
action taken or omitted to be taken in reliance on it, is prohibited. E-mail 
messages are not 
necessarily secure. Hitachi does not accept responsibility for any changes made 
to this message 
after it was sent. 
Hitachi checks outgoing e-mail messages for the presence of computer viruses. 
**



[ns] Transmission power

2008-11-24 Thread fhg07

I would like to know how to change a node's transmission power when
sending a message. Is there a easy way to do so?

Thanks in advance,
-- 
Fernando Henrique Gielow - UFPR
Computer Science graduate student.



Re: [ns] Large network simulation problem

2008-11-24 Thread coorasse


I tried the following:
ns-2.29-2 (precompiled from repositories)
ns-2.28
ns-2.33

and my simulation still doesn't work properly.
The results, expecially for DSR protocol are still very bad.
The ns script and the awk script are in this post. 
They are not the most recent version I am using now but results doen't
change.
Can someone explain me what may be the problem?
Thanks,
Alessandro
-- 
View this message in context: 
http://www.nabble.com/Large-network-simulation-problem-tp20514322p20661045.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] how new link is added

2008-11-24 Thread Mubashir Rehmani

Hi Spyros

You can find below two links that will help you to create multiple channels,
multiple links, and multiple interfaces as well.

http://www.cse.msu.edu/~wangbo1/ns2/nshowto8.html

http://blog.chinaunix.net/u2/63367/showart_684833.html

Regards
Mubashir Husain Rehmani
Lip6, UPMC, Paris, France

2008/11/24 Spyros Marinis <[EMAIL PROTECTED]>

>
> hi!
> I
> am currently working on writing an add ip extension for mobile sctp,
> that must add a new interface and the suitable new link to an interface
> that already exists.
> does anybody know in which c++  file I can find a function that creates
> this new link so that I can call it from my code?
> thanx in advance,
> martini
>
>
>
> ___
> Χρησιμοποιείτε Yahoo!;
> Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail
> διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών
> μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr
>



-- 
Mubashir Husain Rehmani

[ns] how new link is added

2008-11-24 Thread Spyros Marinis

hi!
I
am currently working on writing an add ip extension for mobile sctp,
that must add a new interface and the suitable new link to an interface
that already exists. 
does anybody know in which c++  file I can find a function that creates this 
new link so that I can call it from my code?  
thanx in advance,
martini


  
___ 
Χρησιμοποιείτε Yahoo!; 
Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail 
διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών 
μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr 


Re: [ns] Trace analysis

2008-11-24 Thread Vineet Kumar

Hi,
 Explaining you,following the first trace example you provided:
 "r 0.010709017 _66_ RTR --- 0 gpsr 37 [0  8 800] --- [8:255 
-1:255 32 0]"

Field 1:-   [s|r|D]: s -- sent, r -- received, D -- dropped
Field 2:-   The time when the action happened
Field 3:-   The node where the action (as specified in field 1) took place .
Field 4:-LAYERS:
AGT -- application,
RTR -- routing,
LL  -- link layer (ARP is done here)
IFQ -- outgoing packet queue (between link and mac 
layer)
MAC -- mac,
PHY -- physical
Field 6:- Sequence number of the packet
Field 5:-  The packet type:
gpsr--Greedy Perimeter Stateless Routing
cbr -- CBR data stream packet
DSR -- DSR routing packet (control packet generated by 
routing)
RTS -- RTS packet generated by MAC 802.11
ARP -- link layer ARP packet
   Field 7:-   Size in bytes
   Field 8 and 9:- 
  [a b c d]:a -- the packet duration in mac layer header
b -- the mac address of destination
c -- the mac address of source
d -- the mac type of the packet body
flags:
[..]: [
source node ip : port_number
destination node ip (-1 means broadcast) : 
port_number
ip header ttl
ip of next hop (0 means node 0 or broadcast)
]

   Hope this will help,

Regards,
Vineet


Biswa Mohan Acharya wrote:
> Dear Friends
> I have a large trace file of which few lines I am giving here. Plz let
> me know what are the fields, bcz as per the manual it is some thing
> different.
> Thanks.
> Biswa
>
> r 0.010709017 _66_ RTR  --- 0 gpsr 37 [0  8 800] ---
> [8:255 -1:255 32 0]
> r 0.010709019 _59_ RTR  --- 0 gpsr 37 [0  8 800] ---
> [8:255 -1:255 32 0]
> s 0.018029165 _32_ RTR  --- 1 gpsr 37 [0 0 0 0] --- [32:255 -1:255 32 0]
> r 0.019449172 _31_ RTR  --- 1 gpsr 37 [0  20 800] ---
> [32:255 -1:255 32 0]
> r 0.019449192 _45_ RTR  --- 1 gpsr 37 [0  20 800] ---
> [32:255 -1:255 32 0]
>
>   


**
 
E-mail Confidentiality Notice and Disclaimer. 

This e-mail and any files transmitted with it are confidential and are intended 
solely for the use 
of the individual or entity to which they are addressed. Access to this e-mail 
by anyone else is 
unauthorised. If you are not the intended recipient, any disclosure, copying, 
distribution or any
action taken or omitted to be taken in reliance on it, is prohibited. E-mail 
messages are not 
necessarily secure. Hitachi does not accept responsibility for any changes made 
to this message 
after it was sent. 
Hitachi checks outgoing e-mail messages for the presence of computer viruses. 
**



[ns] flooding and diffusion

2008-11-24 Thread Phenix


Hi,guys

What's the exact difference between flooding and diffusion ? 


Regards,
Phenix