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

Re: [ns]RealAudio over Wireless links





That makes sense. But I cann't see any differece in the use of FTP and
RealAudio(except that in RealAudio you need to define packetSize,etc)

Here's what I did: I replaced this piece of code in simple-wireless.tcl:

set tcp [new Agent/TCP]
$tcp set class_ 2
set sink [new Agent/TCPSink]
$ns_ attach-agent $node_(0) $tcp
$ns_ attach-agent $node_(1) $sink
$ns_ connect $tcp $sink
set ftp [new Application/FTP]
$ftp attach-agent $tcp
$ns_ at 1.0 "$ftp start"

with:

set udp [new Agent/UDP]
set null [new Agent/Null]
$ns_ attach-agent $node_(0) $udp
$ns_ attach-agent $node_(1) $null
$ns_ connect $udp $null

set realaudio [new Application/Traffic/RealAudio]
$realaudio set packetSize_ 245
$realaudio set burst_time_ 0.05ms
$realaudio set idle_time_ 1800ms
$realaudio set rate_ 128kb

$realaudio attach-agent $udp
$ns_ at 1.0 "$realaudio start"

And I keep getting "segmentation fault". Please let me know where the bug
is if someone figured it out. Thanks a lot!

Xiaobing


On Mon, 16 Apr 2001, kunchanl wrote:

> Ftp is a application while RealAudio is a traffic generator,
> so you cannot just substitue one with the other. Please read
> ns manual chapter 33 for details.
>
> Kun-chan Lan
>
> On Mon, 16 Apr 2001, Xiaobing Fan wrote:
>
> >
> > Dear all,
> >
> > Is RealAudio traffic transmision over wireless links supported by current
> > ns version? I keep getting "segmentation fault" when I change the ftp
> > traffic to RealAudio in simple-wireless.tcl. Could someone please tell me
> > why?
> >
> > Thanks a lot!
> >
> > Xiaobing
> >
>