[ns] monitor packets drops
Michele R.
mic.rus@libero.it
Mon, 29 Jan 2001 18:31:59 +0100
Messaggio in formato MIME composto da pił parti.
------=_NextPart_000_0009_01C08A21.C4484B80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello!
I've a link between two router,n3 and n4,and I'd like to monitor packets =
which are drops for each flow 1, 2 and 3 that arrives at the roter n3.
I would like to use: =20
.............................
set counter [$ns makeflowmon Fid] =20
set bottleneck [$ns link $n3 $n4] =20
$ns attach-fmon $bottleneck $counter =20
set flowClassifier [$counter classifier]
set flow [$flowClassifier lookup auto 0 0 1]
set tcp0share [$flow set pdrops_]
set tcp0bw [expr $tcp0share - $tcp0bw]
set flow [$flowClassifier lookup auto 0 0 2]
set tcp1share [$flow set pdrops_]
set tcp1bw [expr $tcp1share - $tcp1bw]
set flow [$flowClassifier lookup auto 0 0 3]
set tcp2share [$flow set pdrops_]
set tcp2bw [expr $tcp2share - $tcp2bw]
..................................
but it doesn't work because of "the presence of pdrops_"?
why?
Can you help me?
if I put "set p_departures" it works! (but so I only count the packets =
departure for each flow..)
thank you.
------=_NextPart_000_0009_01C08A21.C4484B80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Hello!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I've a link between two router,n3 and =
n4,and I'd=20
like to monitor packets which are drops for each flow 1, 2 and 3 that =
arrives at=20
the roter n3.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I would like to use:</FONT><FONT =
face=3DArial=20
size=3D2> </FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>.............................</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> set counter [$ns =
makeflowmon=20
Fid] =20
<BR> set bottleneck [$ns link $n3=20
$n4] <BR> =
$ns=20
attach-fmon $bottleneck =
$counter =20
<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2> </FONT><FONT =
face=3DArial=20
size=3D2>set flowClassifier [$counter classifier]</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> set flow =
[$flowClassifier lookup=20
auto 0 0 1]<BR> set tcp0share [$flow set=20
pdrops_]<BR> set tcp0bw [expr $tcp0share -=20
$tcp0bw]</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> set flow =
[$flowClassifier lookup=20
auto 0 0 2]<BR> set tcp1share [$flow set=20
pdrops_]<BR> set tcp1bw [expr $tcp1share -=20
$tcp1bw]</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> set flow =
[$flowClassifier lookup=20
auto 0 0 3]<BR> set tcp2share [$flow set=20
pdrops_]<BR> set tcp2bw [expr $tcp2share -=20
$tcp2bw]</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>..................................</FONT></DIV><FONT =
face=3DArial size=3D2>
<DIV><BR>but it doesn't work because of "the presence of pdrops_"?</DIV>
<DIV> why?</DIV>
<DIV>Can you help me?</DIV>
<DIV>if I put "set p_departures" it works! (but so I only count the =
packets=20
departure for each flow..)</DIV>
<DIV>thank you.</FONT></DIV></BODY></HTML>
------=_NextPart_000_0009_01C08A21.C4484B80--