[ns] Multi-interface support howto, by Ramon Aguero

2007-01-18 Thread Shahatha

Hello,
   
  did any one implement the extension of ns-2 for multi-channel
  from Ramon Aguero at: 
   
  http://personales.unican.es/aguerocrhttp://personales.unican.es/aguerocr
many thanks for Ramon Aguero for his Dokument.
   
   
  i have some problems at Chapter 5, where to add the listing 5.3 Listing 5.5 
and Listing 5.6 
  in routingAgent.cc. (AODV.cc)
  i choice  the AODV ad hoc routing agent to change.
   
  i think i can copy the Listing above 1 by 1 to the AODV.cc.
   
  thanks
   
   


-
NEU: Fragen stellen - Wissen, Meinungen und Erfahrungen teilen. Jetzt auf 
Yahoo! Clever.


[ns] How to disable all the trace outputs

2007-01-18 Thread babak

Dear All,

I'm simulating a wireless network with 500 nodes. I have turned off all the 
trace options in my tcl file. However, still lines are appending to the output 
file and after a while the file gets huge. It really make the simulation slow. 

Does anybody know how can I turn off tracing completely?

Thanks for your attention
Babak.


Re: [ns] Multi-interface support howto

2007-01-18 Thread Ramon Aguero

Hello Shahatha,

In addition to the answers we have given before, see some more answers 
inline...

Cheers,
Ramón

At 12:00 17/01/2007, you wrote:
chapter 4
4.2
Listing 4.1
the variable MAX_CHANNELS i have declared it like a follow in mobilenode.h :
#define MAX_CHANNELS XXX
but which value? or without value?

you do need to specify a value, depending on your own interests. This will 
set the maximum number of interfaces per node; i guess that realistically, 
having more than 8 would be difficult.

4.3
in channel.cc Listing 4.4:
nextX_ and prevX_ should changed to nextX_ [this-index()] and prevX_ 
[this-index()]
in the whole channel.cc. right?

Yes, as stated in the document, just before the listing: Note that this 
has to be changed throughout the whole channel.cc file.

-
chapter 5
5.1
as i understand i can extend one of the protokol agents: AODV, DSDV or 
TORA, right?
i have choice AODV.

Good, probably we can extend the document with this experience. I'm not 
sure about TORA, since we have not seen that code at all.

5.2
MAX_IF  should be declared in AODV.h with
#define MAX_IF
but which value?

See my previous answer.

in AODV.h the AODV-class i found ifqueue i chnage it to 
ifqueuelist[MAX_IF], and i found Trace   *logtarget; but not target. i add 
targetlist[MAX_IF] just like in Listing 5.1.

I won't delete ifqueue, since this is needed if you want to keep the legacy 
behaviour of the simulator. Keep the logtarget, since you need it for 
tracing support and add targetlist, as stated in Listing 5.1.

in which mothod in AODV.cc i should add the
Listing 5.3, Listing 5.4  and Listing 5.5 ?

in Listing 5.5 Iface and cmnh are not declared !

All these questions have been already answered in my previous email.

ps. do you have the changes as a dokument?

No, since the main ns is being updated quite frequently and different 
people make different changes to the core files, we decided not make any 
code/patch available, but rather provide an extensive discussion of the 
required modifications, so that people can do it by themselves. 




Re: [ns] Multi-interface support howto, by Ramon Aguero

2007-01-18 Thread Ramon Aguero

Hi Shahatha,

As we say in the report we didn't use aodv, so we really appreciate that 
you work on this, it would be good trying to extend the report with your 
own experience on AODV.

We have been doing a quick overlook of the aodv code (which we have not 
personally used that much) and this is what we can tell for the listings of 
chapter 5:

- Listing 5.3 has to be used whenever the AODV needs to send a broadcast 
packet, which happens, as far as we can tell, in the following methods of 
the aodv.cc file: sendRequest, sendError, sendHello and forward; in this 
latter case only when the destination address is broadcast. In all of this, 
you should have the following command:
Scheduler::instance().schedule(target_,pkt,*); --- * means either 0 or JITTER
and you should change it for listing 5.3.

- Listing 5.4 has to be used instead of the unicast transmissions of 
aodv.cc, this time in sendReply and forward methods. In this case, the 
Iface variable has to be the appropriate interface index, which needs to be 
stored within the corresponding route table entry (see section 5.3 of the 
document).

- Listing 5.5 is the one that allows you to get the correct interface. When 
you have to create a route table entry, you need to indicate the 
corresponding index for the output interface, which will be used afterwards 
to send packets (see previous answer). This means that the corresponding 
struct/class for your route table entry needs to be updated, so as to be 
able to keep this index.
Thanks to the changes of the mac-802_11.cc file (listing 4.6), the required 
value is store on the common header of the packet, that's the cmnh variable 
of the listing. Iface will just hold the index that will be used for 
creating/updating the route table entry. After a quick overlook of the 
code, this seems to be needed in two methods: recvRequest and recvReply.

Cheers,
Ramón

At 10:53 18/01/2007, Shahatha wrote:

Hello,

   did any one implement the extension of ns-2 for multi-channel
   from Ramon Aguero at:

   http://personales.unican.es/aguerocrhttp://personales.unican.es/aguerocr
many thanks for Ramon Aguero for his Dokument.


   i have some problems at Chapter 5, where to add the listing 5.3 Listing 
 5.5 and Listing 5.6
   in routingAgent.cc. (AODV.cc)
   i choice  the AODV ad hoc routing agent to change.

   i think i can copy the Listing above 1 by 1 to the AODV.cc.

   thanks




-
NEU: Fragen stellen - Wissen, Meinungen und Erfahrungen teilen. Jetzt auf 
Yahoo! Clever.




Re: [ns] How to disable all the trace outputs

2007-01-18 Thread Luqman

Dear All,

I'm simulating a wireless network with 500 nodes. I have turned off all the 
trace options in my tcl file. However, still lines are appending to the output 
file and after a while the file gets huge. It really make the simulation slow. 

Does anybody know how can I turn off tracing completely?

Maybe you can provide (part of) your code. This would help understand
the mistake.

Regards,

-- 
Luqman


Re: [ns] Multi-interface support howto

2007-01-18 Thread Tim Elschner

great job as far as i can see.
anyway i ran into problems with ns-mobilenode.tcl:
in Node/MobileNode instproc reset i couldn't find any differences to
the original.
i got an error, that arptable_ is an array. so i changed every arptable_
into arptable. now ns2 complains about the missing variable arptable :(

any hints out there?

cheers,
tim

Ramon Aguero schrieb:
 Dear all,

 We have seen a lot of requests about the possibility to extend the NS-2 
 framework to support multiple interfaces. Although there is some 
 information available, according to the messages that have been sent to 
 this list, it seems that a more thorough description may be required.

 In this sense, after performing an analysis about existing activities in 
 this topic, we have created a document that tries to summarize which are 
 the required changes to be performed within the different pieces of the 
 simulator (tcl, c++) as well as how routing protocols can be adapted to 
 make use of the new feature. The howto is entitled Adding Multiple 
 Interface Support in NS-2 and it has been written by my colleague Jesús 
 Pérez and myself.

 I’ve uploaded the document, which can be retrieved from the following url:
 http://personales.unican.es/aguerocrhttp://personales.unican.es/aguerocr

 We will be happy to receive any feedback, comments, so as to improve the 
 howto, since we would like to have it like a living document, adding new 
 features as they are available.

 Best regards,
 Ramón

 
 Ramón Agüero Calvo
 Dept. of Communications Engineering
 Network Planning  Mobile Communications
 Laboratory
 University of Cantabria
 Avda Castros s/n
 39005 - Santander
 SPAIN
 [EMAIL PROTECTED]
 Tel: +34 942 201 392 (Ext 14)
 Fax: +34 942 201 488
 
   




Re: [ns] How to disable all the trace outputs

2007-01-18 Thread Pedro Vale Estrela


a) Don't call ns trace-all or a similar lines
b) write the trace to /dev/null


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of babak
 Sent: quinta-feira, 18 de Janeiro de 2007 10:47
 To: ns-users@ISI.EDU
 Subject: [ns] How to disable all the trace outputs
 
 
 Dear All,
 
 I'm simulating a wireless network with 500 nodes. I have turned off all
 the trace options in my tcl file. However, still lines are appending to
 the output file and after a while the file gets huge. It really make the
 simulation slow.
 
 Does anybody know how can I turn off tracing completely?
 
 Thanks for your attention
 Babak.





[ns] create multiple paths in a wireless network

2007-01-18 Thread antonis antoniou


i use ns2.29 under cygwin win xp.
I want to use 802.11 to create a wireless network.
In each node i want to check congestion level(queue or channel sampling)and 
according to these values react by rerouting the traffic

Can any one helpI will really appreciate your answer on:
1. how to check queues or channel sampling
2. reroute the traffic

: i am  new on ns2



[ns] Regarding energy dissipated in LEACH

2007-01-18 Thread MUQ L

Hi everyone,

I  have successfully install and running LEACH on ns2.27.

However, I've noticed that at the end of simulation, in the file leach.out, the
total energy dissipated in the systems is more that the total initial energy
of all nodes. Does anyone has the similar problems that I have?

For instance, I've run LEACh simulation for 100 nodes with 2J energy each
initially. At the end of simulation, what I've got is:

At 561.305907:
  Total Energy = 383.59827246392308
  Total Data = 55934
  Total Alive = 4

From what I know, the total energy dissipated cannot exceed 200J which is
the total energy available in the network (2J/node x 100 = 200J)

I've try to print out the total energy remaining and surprisingly, the value
is negative.
I would be very grateful if anyone that has the explanation to this problem
could reply my email.
Many thanks.

Sincerely,
Nurul


[ns] Packet Loss Problem - Event d

2007-01-18 Thread Alessandro Vivas

Hi,

in my simulations each source has a different flow id. So, to calculate
number of dropped packets to some source I only count the number of lines
with d event to some flow ID. Why some packets are dropped and don't have
event d. How to calculate loss? Sent packets minus receive packets? Or
number of lines with event d  to some flow id.

Thanks for any help
-- 

2007/1/18, Alessandro Vivas [EMAIL PROTECTED]:

 Hi,

 in my simulations each source has a different flow id. So, to calculate
 number of dropped packets to some source I only count the number of lines
 with d event to some flow ID. Why some packets are dropped and don't have
 event d. How to calculate loss? Sent packets minus receive packets? Or
 number of lines with event d  to some flow id.

 Thanks for any help
 --
 Alessandro Vivas Andrade




-- 
Alessandro Vivas Andrade


Re: [ns] Multi-interface support howto

2007-01-18 Thread Ramon Aguero

Hello Tim,

thanks for pinpointing the error! Somehow I made a mistake when copying and 
pasting the code to the file.

The correct procedure would be the following one (note that the arptable_ 
is now within the 'for' cycle). In this sense, I don't think you need to 
change all arptable_ into arptable. Hope this helps.

Node/MobileNode instproc reset {} {
 $self instvar arptable_ nifs_ netif_ mac_ ifq_ ll_ imep_
 for {set i 0} {$i  $nifs_} {incr i} {
 $netif_($i) reset
 $mac_($i) reset
 $ll_($i) reset
 $ifq_($i) reset
 if { [info exists opt(imep)]  $opt(imep) == ON } {
 $imep_($i) reset
 }
 if { $arptable_($i) !=  } {
 $arptable_($i) reset
 }
 }
}

Cheers,
Ramón

PS - I've already modified the document -- with the correct procedure -- in 
the web page:
http://personales.unican.es/aguerocr


At 16:39 18/01/2007, Tim Elschner wrote:
great job as far as i can see.
anyway i ran into problems with ns-mobilenode.tcl:
in Node/MobileNode instproc reset i couldn't find any differences to the 
original.
i got an error, that arptable_ is an array. so i changed every arptable_ 
into arptable. now ns2 complains about the missing variable arptable :(

any hints out there?

cheers,
tim

Ramon Aguero schrieb:
Dear all,

We have seen a lot of requests about the possibility to extend the NS-2 
framework to support multiple interfaces. Although there is some 
information available, according to the messages that have been sent to 
this list, it seems that a more thorough description may be required.

In this sense, after performing an analysis about existing activities in 
this topic, we have created a document that tries to summarize which are 
the required changes to be performed within the different pieces of the 
simulator (tcl, c++) as well as how routing protocols can be adapted to 
make use of the new feature. The howto is entitled Adding Multiple 
Interface Support in NS-2 and it has been written by my colleague Jesús 
Pérez and myself.

I’ve uploaded the document, which can be retrieved from the following url:
http://personales.unican.es/aguerocrhttp://personales.unican.es/aguerocr

We will be happy to receive any feedback, comments, so as to improve the 
howto, since we would like to have it like a living document, adding new 
features as they are available.

Best regards,
Ramón


Ramón Agüero Calvo
Dept. of Communications Engineering
Network Planning  Mobile Communications
Laboratory
University of Cantabria
Avda Castros s/n
39005 - Santander
SPAIN
[EMAIL PROTECTED]
Tel: +34 942 201 392 (Ext 14)
Fax: +34 942 201 488






[ns] OLSR Simulation Parameters

2007-01-18 Thread waldecktorres

Hi All,

I've recently configured OLSR at NS 2.29 but when i ran tcl-example script 
modified for my number of nodes i've received 2 warnings regarding pattern 
and scenario, As show below:


[EMAIL PROTECTED] simulacoes]# ns OLSR_Mesh_UFF_WRT_Base.tcl num_nodes is set 20
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl INITIALIZE 
THE LIST xListHead
*** NOTE: no connection pattern specified. - What Pattern ?
*** NOTE: no scenario file specified. - How to specify ???
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5,  
distCST_ = 550.0 SORTING LISTS ...DONE!
NS EXITING...
[EMAIL PROTECTED] simulacoes]#

I went to UM-OLSR Docs (http://masimum.dif.um.es/um-olsr/html/index.html) but 
no reference to this.

Does anyone know where to find info about that missing pattern and scenario?


Thanks in Advance,


Waldeck Torres






[ns] UGS traffic - WiMAX Simulation

2007-01-18 Thread Vineesh


Hi all,
I have been trying to simulate WiMAX scenarios in NS2. I have used the patch
from NDSL.
I had defined one BS and 4 SSs'. Four UGS traffic generating agents (at BS)
at the rate of 512kbps.
I am able to measure the bandwidth at the SS and get a plot on X graph.
But if the rate is 1Mbps or may be even 800Kbps, I am not getting any graph.

Can simulation be only done at low rates or is it my system memory
constraints?
How do we set the Channel bandwidth?
There is a parameter called Channel size which is set to 20. Does it mean
20MHz.
How many Mbps is the maximum that can be transmitted if this is the case?
Has anyone done throughtput or delay analysis for UGS,rtPS,nrtPs and Be
traffics?

It would be of great help. Please do reply.
-- 
View this message in context: 
http://www.nabble.com/UGS-traffic---WiMAX-Simulation-tf3034313.html#a8431205
Sent from the ns-users mailing list archive at Nabble.com.