[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Bugs in ns-2.1b8?
Hi, ns-users,
I'm using DiffServ in ns-2.1b8 on RedHat Linux 7.0, the example named
~ns/tcl/ex/diffserv/ds-cbr-tb-WRR.tcl works fine.
However, ns gave me the following error when I changed the UDP flow
at s1 into a TCP flow.
ERROR: No Policer Table entry found for initial code point 20.
Segmentation fault
It seems there is a bug in either DiffServ or TCPSink. The following
is the piece of code that I modified.
# Set up one CBR connection between each source and the destination:
set tcp0 [new Agent/TCP]
$ns attach-agent $s1 $tcp0
set cbr0 [new Application/Traffic/CBR]
$cbr0 attach-agent $tcp0
$cbr0 set packet_size_ $packetSize
$tcp0 set packetSize_ $packetSize
$cbr0 set rate_ $rate0
set sink0 [new Agent/TCPSink/Asym]
$ns attach-agent $dest $sink0
$ns connect $tcp0 $sink0
Could anyone give me an example on how to use DiffServ in ns-2.1b8
to control TCP flow? Thanks!
Sincerely,
Xiangming Xu