[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] RIO and mark
hi all,
I'm using this topology:
s1 d0
\ /
\ /
... r1-----r2 ...
/ / \\
... / / \\ ...
s9 / \d9
s10 d10
s1...s9 are ftp sources and s10 is udp source.
set fm0 [open out.fm w]
...
$ns duplex-link $r1 $r2 30Mb 10ms RIO
...
set b10 [$ns link $s(10) $r1]
set tcm10 [$ns maketbtagger Fid]
$ns attach-tagger $b10 $tcm10
$tcm10 attach $fm0
set udp0 [new Agent/UDP]
$udp0 set fid_ 10
$udp0 set rate_ 0
$udp0 set bucket_ 0
$ns attach-agent $s(10) $udp0
set null0 [new Agent/Null]
$null0 set fid_ 10
$ns attach-agent $d(10) $null0
set cbr0 [new Application/Traffic/CBR]
$cbr0 attach-agent $udp0
$cbr0 set rate_ 6M
$cbr0 set packet_size_ 1000
$ns connect $udp0 $null0
How can I mark out all cbr packets because my code can't make it?
cheers,
nicola