[ns] Dynamic co-ordinates for a node

2009-01-29 Thread Mohit Tahiliani

Hello Everyone,
 
Can we dynamically assign the destination co-ordinates for a mobile node by 
using C++ code?
 
Thank you
 
Sincerely,
Mohit P. Tahiliani 


  


[ns] One way Function Trees

2009-01-29 Thread Abhijeet Mirikar

Hello all,
   can anybody give me hint about how concept of one way function tree can
be implemented using NS2?

regards,
Abhijeet Mirikar


[ns] line colour in xgraph

2009-01-29 Thread Ivan_Tiger


Hello!
I need to change the color of the one data line in xgraph to black (it is
green now and it is barely visible when turned into black and white). Does
anyone know how to do that?

this is the piece of code, referring to xgraph

proc graph {} {
for {set i 4} {$i<=5} {incr i} {

exec rm -f infra$i.xgr
exec awk -f fil$i.awk infra.tr > infra$i.xgr
}
exec xgraph infra4.xgr  infra5.xgr -bg white -x time -y throughput -lw 2.0
-t Throughput_of_two_AP's_versus_time -nb -lf helvetica-18 &
#exec nam infra.nam &
exit 0
}

-- 
View this message in context: 
http://www.nabble.com/line-colour-in-xgraph-tp21732396p21732396.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] limiting the neighboring radius in NS2.33:please help

2009-01-29 Thread Nadine Chen

Hi all,
As you know, we can detect neighboring nodes, by sending and
receiving hello messages like what is done in AODV example.But when I did
this, I noticed that each node has a very large number of neighbors, so I want 
to limit this number by reducing the neighboring radius, but I didn't know 
where can I modify it?
Please , if any one has an idea to limit automatically this radius, or any 
other method to reduce the number of neighbours tell me how ?
Thank you very much for your help



  


Re: [ns] limiting the neighboring radius in NS2.33:please help

2009-01-29 Thread Mubashir Rehmani

Hi Nadine,

One way to reduce the number of neighbors is to reduce the average node
density. For example, you have a network of 100 nodes, then you can control
the number of nodes, let's say each node can have 10 neighbors or each node
can have 20 neighbors. To achieve this, you can vary the grid size and
random placement of nodes in the grid.

Second this is that, have you declared the node location in your tcl script
or load any coordinate file for the nodes? If you won't do this, ns2 will
consider that each and every node is the neighbor of each other. So,
consider this also.

Regards
Mubashir Husain Rehmani
Lip6, UPMC, Paris, France
http://www-npa.lip6.fr/~rehmani/

2009/1/29 Nadine Chen 

>
> Hi all,
> As you know, we can detect neighboring nodes, by sending and
> receiving hello messages like what is done in AODV example.But when I did
> this, I noticed that each node has a very large number of neighbors, so I
> want to limit this number by reducing the neighboring radius, but I didn't
> know where can I modify it?
> Please , if any one has an idea to limit automatically this radius, or any
> other method to reduce the number of neighbours tell me how ?
> Thank you very much for your help
>
>
>
>
>


-- 
Mubashir Husain Rehmani


[ns] NS Network capacity

2009-01-29 Thread Diana Benitez


Dear users:
 
I have a network with capacity of 62 packets (capacity of the link + capacity 
of the queue).
 
I have 2 users and I trace the size of the windows of each (cwnd_). I think 
that the sum of this two window size exceeds the capacity there have to be an 
event of dropping a package. In this case, using TCP, I have an “dupack_action” 
or a “timeout”.
 
However, there are situations where the sum of the size of the windows of the 2 
users (cwnd1 + cwnd2) does not exceeds the capacity and I still have an event 
of dupack_action.
 
Do someone know why happened the following situation? How the NS2 uses the 
queue to drop a packet even the sum is not over the maximum capacity of the 
network?
 
DIANA.
_
Windows Live™: E-mail. Chat. Share. Get more ways to connect. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_012009


[ns] Simulating SCTP for WLAN using TCL

2009-01-29 Thread Rizwan Qadeer

Could any one tell me that how can i use SCTP in WLAN and in WIMAX in TCL
language.

-- 
Engr. Rizwan


[ns] eagerly waiting your reply!

2009-01-29 Thread Rainn

Dear all,

I am trying to run wireless_gpsr.tcl code with new mobility model for
vehicular ad hoc networks (VANETs).

I have used 100 nodes in GPSR routing protocol having other standard parameters.

I have encountered the following errors.

I needed your help to fix these errors.

Loading connection pattern...
Loading scenario file...

Load complete...
Starting Simulation...
ns: _o51 setdest 1622.27 2000.41 0.29998553:

(_o51 cmd line 1)
invoked from within
"_o51 cmd setdest 1622.27 2000.41 0.29998553"

invoked from within
"catch "$self cmd $args" ret"

invoked from within
"if [catch "$self cmd $args" ret] {

set cls [$self info class]
global errorInfo
set savedInfo $errorInfo

error "error when calling class $cls: $args" $..."
(procedure "_o51" line 2)

(SplitObject unknown line 2)
invoked from within

"_o51 setdest 1622.27 2000.41 0.29998553"



Thank you in advance!

Rainn