[ns] Range Proble...Again :(
Mustafa Kamal
contact.joarder at yahoo.com
Sun Mar 15 17:37:02 PDT 2009
HA and FA stand for Home Agent and Foreign Agents which means they are Base Station node. You can define a MH (Mobile Host) like below
set MH0 [$ns_ node 1.0.7]
set node_(0) $MH0
set HAaddress [AddrParams addr2id [$HA node-addr]]
[$MH0 set regagent_] set home_agent_ $HAaddress
[$MH0 set netif_(0)] set Pt_ 0.03652
And I have already successfully worked with this script
Thanks,
With Best Regards,
Joarder Mohammad Mustafa Kamal
--- On Sat, 3/14/09, Mayank Daga <dagamayank at gmail.com> wrote:
From: Mayank Daga <dagamayank at gmail.com>
Subject: Re: [ns] Range Proble...Again :(
To: "Mustafa Kamal" <contact.joarder at yahoo.com>
Date: Saturday, March 14, 2009, 1:51 PM
On Sat, Mar 14, 2009 at 9:25 AM, Mustafa Kamal <contact.joarder at yahoo.com> wrote:
Can you set the radius like below
[$HA set netif_(0)] set Pt_ 0.03652
[$FA01 set netif_(0)] set Pt_ 0.03652
[$FA02 set netif_(0)] set Pt_ 0.03652
[$FA03 set netif_(0)] set Pt_ 0.03652
Can you please explain as to what are HA and FA0X objects of? Which one is the node here? Are you sure that this works?
You can use this list to set the radius of a node
Tx Range Pt_
100m 0.00721383
150m 0.03652
200m 0.115421
250m
0.28179
300m 0.58432
Yes, I am aware of this table.
Thanks,
With Best Regards,
Joarder Mohammad Mustafa Kamal
--- On Thu, 3/12/09, Mayank Daga <dagamayank at gmail.com> wrote:
From: Mayank Daga <dagamayank at gmail.com>
Subject: [ns] Range Proble...Again :(
To: "Mubashir Rehmani" <mshrehmani at gmail.com>, ns-users at ISI.EDU
Date: Thursday, March 12, 2009, 9:12 PM
Hey Mubashir,
Sorry for
bugging you again but I am totally clueless as to how to set the
range.
Since past few days, I have been trying to set the range by the setting the
value of radius variable of a particular node. This is what radius variable
does according to NS Manual:
$mobilenode radius <r>
The radius <r> denotes the node’s range. All mobilenodes that fall within
the circle of radius <r> with the node at its center
are considered as neighbours. This info is typically used by the gridkeeper..
But, today I found out that this is not affecting the way the traffic is
sent, i.e., the range is still 250m, the default value. Please help me as to
how can I set the range of the nodes. This is is very much imperative for my
project.
Please help.
--
Regards,
Mayank Daga
Senior Undergraduate Student,
Department of Information Technology,
National Institute of Technology,
Durgapur,
India
--
Regards,
Mayank Daga
Senior Undergraduate Student,
Department of Information Technology,
National Institute of Technology, Durgapur,
India
More information about the Ns-users
mailing list