[ns] Fwd: changing mu (service rate) for m/d/1 - by varying the defined mu

2011-08-12 Thread Amna Abdul Wahid

Hi All
We are trying to turn the service rate of m/d/1 on and off, for certain
periods. The code is attached herewith.
We are facing the problem that although we change the $mu value in the
''sendpacket' method, the mu value taken by the simulation is the one we
assign at the beginning.
(the one supplied in $ns simplex-link $node_(r1) $node_(r2) $mu 10ms
DropTail)

Is there any simple way of changing  this value (or the link state) during
the simulation dynamically?

Many Thanks in Advance for Any Help
Amna, Sabri


[ns] [NS- On/Off Server] Re: changing mu (service rate) for m/d/1 - by varying the defined mu

2011-08-13 Thread Amna Abdul Wahid

Hi and Salaam All Again...
Just needed to notify that we solved by changing the dequeue() method of
DropTail class.
That is, to make the server on/off for certain periods, we stopped the
dequeuing during the off period!!!

HTH  anyone looking for such answers

On 12 August 2011 12:18, Amna Abdul Wahid  wrote:

>
> Hi All
> We are trying to turn the service rate of m/d/1 on and off, for certain
> periods. The code is attached herewith.
> We are facing the problem that although we change the $mu value in the
> ''sendpacket' method, the mu value taken by the simulation is the one we
> assign at the beginning.
> (the one supplied in $ns simplex-link $node_(r1) $node_(r2) $mu 10ms
> DropTail)
>
> Is there any simple way of changing  this value (or the link state) during
> the simulation dynamically?
>
> Many Thanks in Advance for Any Help
> Amna, Sabri
>
>
>


-- 

Regards,
Amna Abdul Wahid


Re: [ns] help with installation

2011-08-16 Thread Amna Abdul Wahid

One more thing, the step 2.0 is not needed. SUPER USER one... So please
ignore that step. The final steps are


1. install ubuntu in windows from

2. download the ns all in one file
http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.34/
2.1.  cd to the unzipped ns-allinone folder

3. untar (extract here) the ns-allinone-version in your home folder

4. open a terminal and enter the command *sudo apt-get install
build-essential autoconf automake libxmu-dev*

5. ./install

6. sudo apt-get install nam

7. sudo apt-get install xgraph


By the way, I think ./Validate is supposed to verify nam installation as
well (the step mentioned in the installation guide you followed), so I
wonder what was the outcome of validate installation step for you.


HTH

On 17 August 2011 00:09, Amna Abdul Wahid  wrote:

> Hi James
> Here are the steps we followed:
>
>
> 1. install ubuntu in windows from
>
> 2. download the ns all in one file
> http://sourceforge.net/projects/nsnam/files/allinone/ns-allinone-2.34/
>
> 2.0 login as super user, enter the command *su* and give password
>
> 2.1.  cd to the unzipped ns-allinone folder
>
> 3. untar (extract here) the ns-allinone-version in your home folder
>
> 4. open a terminal and enter the command *sudo apt-get install
> build-essential autoconf automake libxmu-dev*
>
> 5. ./install
>
> 6. sudo apt-get install nam
>
> 7. sudo apt-get install xgraph
>
>
> Note that ns simulations will be fine with this installation on ubuntu. But
> we couldn't change the ns-2 source code on ubuntu, because we faced the make
> file problem. So to change the ns-2 source (c code) we hd to switch to
> fedora
>
>
>
>
>
> On 16 August 2011 19:41, James  wrote:
>
>>
>> Hello,
>>
>> I use ubuntu 10.4 LTS and i wanted to install ns2-allinone.
>> I have downloaded it from the official sources and i used this guide to
>> install it
>>
>> http://wsnsimulators.blogspot.com/2010/06/how-to-install-ns2-with-ubuntu-1004-by.html
>>
>> ...
>> the ns is working fine.but whenever i try to use nam the only result
>> is "command not found".....
>>
>> i have found related posts from this mail-list on the web but  none of
>> them helped
>>
>> thank you in advance
>>
>>
>>
>
>
> --
>
> Regards,
> Amna Abdul Wahid
>



-- 

Regards,
Amna Abdul Wahid