[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Re: 802.11 bandwidth




egress(ns-2.1b7a)# grep -n bandwidth_ mac.cc
92:	bind_bw("bandwidth_", &bandwidth_);
egress(ns-2.1b7a)# 

that is how you can bind the bandwidth_ used at mac level by Mac set
bandwidth_ X


-Vikram



> 
> I don't find any initialization in mac.cc .. I am using ns-2.1b7.. I think
> that there are parameters other than bandwidth_ that control the actual BW..
> 
> Regards,
> Gaurav.
> 
> ----- Original Message -----
> From: "Vikram Kanodia" <[email protected]>
> To: "Gaurav Jain" <[email protected]>
> Sent: Wednesday, April 04, 2001 2:17 PM
> Subject: Re: [ns] Re: 802.11 bandwidth
> 
> 
> > it is set in the parent class of mac-802_11...namely Mac..check out
> > mac.cc....
> >
> > -Vikram
> >
> > > right..
> > >
> > > but do you notice that it is just used and not set anywhere.. my problem
> is that
> > > even if the bandwidth_ variable is set to something, I'd not be
> satisfied unless
> > > I physically get that bandwidth.. In all my simulations I am getting a
> max of
> > > 1.36Mb..(it doesn't change, whether i increase the mac/delaylink/node or
> > > phy/wirelessphy bandwidth_ param).. there has to be something that I am
> > > missing..
> > >
> > > Do let me know if you find a solution..
> > >
> > > Thanks,
> > > Gaurav.
> > >
> > > Quoting Vikram Kanodia <[email protected]>:
> > >
> > > >
> > > >
> > > > hmmm...then what is the variable bandwidth_ used in mac-802_11.h
> ....is
> > > > it
> > > > realted...
> > > >
> > > > -Vikram
> > > >
> > > > > Hi, two friends,
> > > > > I think  it may be the following.
> > > > >
> > > > > Phy/WirelessPhy set bandwidth_ 1e6
> > > > >
> > > > > good luck. :)
> > > > > Xiaolong Huang
> > > > >
> > > > > >
> > > > > > Hi Gaurav,
> > > > > >
> > > > > >  Mac set bandwidth_ 1000000
> > > > > >
> > > > > > works for me.....(sets the bandwidth to 1Mb).....i have checked
> this
> > > > by
> > > > > > actually tracing the code via gdb and seeing what value of
> bandwidth
> > > > is
> > > > > > used for calculation of packet transmission times etc....
> > > > > >
> > > > > > The only problem is i am not sure whether we can do this since i
> > > > think
> > > > > > that the physical layer parameters (time slot duration
> etc)...could
> > > > be
> > > > > > linked to bandwidth...
> > > > > >
> > > > > > -Vikram
> > > > > >
> > > > > >
> > > > > > > Hi Vikram..
> > > > > > >
> > > > > > > I am facing the same problem as you are with the bandwidth of
> > > > wireless nodes
> > > > > > > in 802.11
> > > > > > > I have not been able to find a solution to the problem either
> from
> > > > the
> > > > > > > newsgroup or from various iterations of mine changing one
> > > > parameter of the
> > > > > > > other..
> > > > > > >
> > > > > > > Do let me know if you have been any more successful with the
> > > > same..
> > > > > > >
> > > > > > > Regards,
> > > > > > > Gaurav.
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Department of ECE, Rice University | 713 348 3786 (O)| 713 664
> > > > 5650(H)
> > > > > > WWW: http://www.ece.rice.edu/~kanodia
> > > > >  ?(�?��??�*.���{&��?(?�]��,j�m�Y��f�-&��?(
> > > >
> > > > --
> > > >
> > > > Department of ECE, Rice University | 713 348 3786 (O)| 713 664 5650(H)
> > > > WWW: http://www.ece.rice.edu/~kanodia
> > > >
> > >
> >
> > --
> >
> > Department of ECE, Rice University | 713 348 3786 (O)| 713 664 5650(H)
> > WWW: http://www.ece.rice.edu/~kanodia
> >
> 
> 

-- 

Department of ECE, Rice University | 713 348 3786 (O)| 713 664 5650(H)
WWW: http://www.ece.rice.edu/~kanodia