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

RE: [ns] bitrate of wireless nodes





> -----Original Message-----
> From:	Dan Iregren [SMTP:[email protected]]
> Sent:	Thursday, July 26, 2001 4:42 PM
> To:	'[email protected]'
> Subject:	Re: [ns] bitrate of wireless nodes
> 
> On Thursday 26 July 2001 15:25, Neundorf Alexander wrote:
> > Hi,
> >
> > how do I set the bitrate of a wireless node ?
> > I used ftp on a mobile node (basically wireless2.tcl from the tutorial) and
> > got around 1 MBit/sec. I changed
> > the line
> > Phy/WirelessPhy set bandwidth_ 2e6
> > to
> > Phy/WirelessPhy set bandwidth_ 1000
> >
> > and nothing changed :-(
> >
> > How can I set the bitrate ?
> 
> I have played with the bitrate_ variable and noticed a decreased number of 
> collisions when the bitrate_ was increased.
> You can also see in ~ns/wireless-phy.cc that the variable is used when packet 
> transmission times are calculated.
> This insinuates that the variable should have at least some affect.
> /Dan
> 
	[Neundorf Alexander]  

	I can't find any variable named "bitrate_" in any *.h, *.cc nor *.tcl file in the whole ns-source tree. Are you sure you didn't mean bandwidth_ ? 
	I used a LossMonitor to calculate the current received bitrate, and this didn't change when I changed bandwidth_ in tcl/lib/ns-default.tcl. With bandwidth==2e6 and bandwidth==1000 I had in both cases a received bitrate of approx. 0.9 MBit/sec.
	 
	Bye
	Alex