[ns] error: field `ifhead_' has incomplete type

2008-06-23 Thread Jeab


Hello,

I would like to develop a framework to test MAC protocols for wireless sensor 
network. I am currently modeling my own PHY, MAC, LL, Channel layer, but still 
have a problem in compilation.

Basically, I modified class header files in NS2.33 as follow:
mac/channel -- wsn/wsn-channel
mac/phy  -- wsn/wsn-phy
mac/mac -- wsn/wsn-mac
mac/ll -- wsn/wsn-ll

The problem is my if_head_wsn pointer cannot be recognized in wsn-channel.h 
even if it is already defined in wsn-phy.h.

wsn-phy.h
LIST_HEAD(if_head_wsn, WSNPhy);//Line.58 in phy.h

wsn-channel.h
struct if_head_wsn  ifhead_;   //Line.64 in channel.h

./wsn/wsn-channel.h:19: error: field `ifhead_' has incomplete type  --error 
message

As far as I understood, if_head is a pointer to a LIST_HEAD structure, as 
defined in ~/ns/lib/bsd-list.h. Should it be newly declared in order to be used 
in other classes? I am not sure if my question is described clearly. Pls 
suggest, I do appreciate for any idea.

Cheers, Jeab


_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us


[ns] MAC layer queue and Very slow simulations

2008-06-23 Thread Amit Soni

Hi ns-users,

First of all I want to thank you all for replying to my previous post.

My simulations are taking days to complete. Here is my problem:
I want that my queue at the MAC layer such that it is never empty, that
is, MAC always has atleast one packet to send. So, what I did was
increased the cbr rate as:
$cbr($i) set rate_ 10Mb
And since I don't want any payload so I set the packet size as:
$cbr($i) set packetSize_ 1
Number of stations are 2000 in a LAN. 1000 are sources and 1000 are sinks.
Time for the simulation is 10 seconds.

This simualtion took me one day i.e. 22 hours approx to complete.
But If I remove the packet size line i.e. set the packet size to default.
then the simulation finishes within an hour. But my simualtions want the
packet size to be less as possible and also always crowded MAC layer.

I need help to fasten up the Simulations OR any other fast method for
crowding MAC layer and small packet length in LAN. Any help would be
greatly
appreciated.

Thanks in advance,

Best Regards,
Amit Soni
Email ID: [EMAIL PROTECTED]



[ns] FW: MatLAB's Matrix Environment

2008-06-23 Thread Fauzan Zaini

Hello NS-users,

 

I'm one who use EURANE module to implement HSDPA simulation.

When I was trying to generate matrix input trace file for Indoor A
environment and set the user velocity to 2 kmh, I got this error:

??? Attempted to access f(49269.5); index must be a positive integer or

logical.

 

Error in == multipath at 55

f(neg_index)=f(neg_index+1);

 

Error in == chan_generator at 84

omega = multipath(samples,rayleigh_fades,fD,spectrum);

 

Error in == run at 57

  evalin('caller', [s ';']);

 

Anyways MatLAB run fine if I use 3 kmh or more, but I think we should be
able to use 2 kmh as it's recommendated value for Indoor (1-10kmh).

Another thing, what kind of parameters differs the Indoor, Pedestrian, and
Vehicular environment?

 

Thank you for your help upon these issues! J

 

Best regards,

Fauzan



Re: [ns] Multi-path routing

2008-06-23 Thread suhaib obeidat


 All,

 I am using AOMDV and would like to know which module(s) is responsible for
 sending traffic over the available routes. For example, if I would like to
 send every packet over every possible route (i.e., sending duplicates for
 fault tolerance), where do I need to be looking and what changes are
 involved.

 Any clue may help.
 Thanks