<html DEFANGED_xmlns:v="urn:schemas-microsoft-com:vml" DEFANGED_xmlns:o="urn:schemas-microsoft-com:office:office" DEFANGED_xmlns:w="urn:schemas-microsoft-com:office:word" DEFANGED_xmlns:st1="urn:schemas-microsoft-com:office:smarttags" DEFANGED_xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<DEFANGED_style 
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
></DEFANGED_style>
<![endif]--><DEFANGED_o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<DEFANGED_o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceType"/>
<DEFANGED_o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceName"/>
<DEFANGED_o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<DEFANGED_style 
st1\:*{behavior:url(#default#ieooui) }
></DEFANGED_style>
<![endif]-->
<DEFANGED_style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
tt
        {font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</DEFANGED_style>
<!--[if gte mso 9]><DEFANGED_xml>
 <DEFANGED_o:shapedefaults v:ext="edit" spidmax="1026" />
</DEFANGED_xml><![endif]--><!--[if gte mso 9]><DEFANGED_xml>
 <DEFANGED_o:shapelayout v:ext="edit">
  <DEFANGED_o:idmap v:ext="edit" data="1" />
 </DEFANGED_o:shapelayout></DEFANGED_xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span DEFANGED_style="font-size:
10.0pt;font-family:Arial;color:navy">This is a basic concept of Netem that by default
it will only apply filters to packets on the Egress of an interface therefore
to apply loss to packets traveling from eth0 side through to eth1 side you need
to apply the filters to eth1 (and visa-versa). It is documented but not very
clear. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span DEFANGED_style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span DEFANGED_style="font-size:
10.0pt;font-family:Arial;color:navy">Hope this helps<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span DEFANGED_style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span DEFANGED_style="font-size:
10.0pt;font-family:Arial;color:navy">Calum <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span DEFANGED_style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span DEFANGED_style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class="MsoNormal" align="center" DEFANGED_style="text-align:center"><font size=3
face="Times New Roman"><span DEFANGED_style="font-size:12.0pt">

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span DEFANGED_style="font-size:10.0pt;
font-family:Tahoma;font-weight:bold">From:</span></font></b><font size=2
face=Tahoma><span DEFANGED_style="font-size:10.0pt;font-family:Tahoma"> netem-bounces@lists.osdl.org
[mailto:netem-bounces@lists.osdl.org] <b><span DEFANGED_style="font-weight:bold">On
Behalf Of </span></b>Ritesh Taank<br>
<b><span DEFANGED_style="font-weight:bold">Sent:</span></b> 19 February 2007 12:19<br>
<b><span DEFANGED_style="font-weight:bold">To:</span></b> netem@lists.osdl.org<br>
<b><span DEFANGED_style="font-weight:bold">Subject:</span></b> [Netem] Packet Loss Issue
with Netem on <DEFANGED_st1:place w:st="on"><DEFANGED_st1:PlaceName w:st="on">LInux</DEFANGED_st1:PlaceName>
 <DEFANGED_st1:PlaceType w:st="on">Bridge</DEFANGED_st1:PlaceType></DEFANGED_st1:place></span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span DEFANGED_style="font-size:
12.0pt"><o:p>&nbsp;</o:p></span></font></p>

<p class="MsoNormal" DEFANGED_style="margin-bottom:12.0pt"><font size=3
face="Times New Roman"><span DEFANGED_style="font-size:12.0pt">Hello,<br>
<br>
I have a linux box (2.6.19) with two NICs (eth0 and eth1), setup as a bridge.<br>
<br>
The bridge sits between a server machine and a client&nbsp; machine (via
cross-over cables).<br>
<br>
The server machine is connected to eth0 NIC.<br>
<br>
The client machine is connected to eth1 NIC.<br>
<br>
I am sending raw TCP data to the client machine from the server machine. This
means data enters the bridge via eth0, and is bridged through to eth1, where it
leaves the linux box and arrives at the client machine.<br>
<br>
The forward channel is therefore all packets travelling from the server to the
client. The reverse channel is obviously all the acknowledgements flowing back
to the server.<br>
<br>
I am using Netem to add loss rates to eth0 and eth1, either together or
independently.<br>
<br>
I have noticed something very interesting.<br>
<br>
When adding a very high packet loss rate to eth0 (i.e. tc qdisc add dev eth0
root netem loss 40%) and then running my raw TCP data throughput tests, i get
full throughput results, exactly as i do for when there are is no qdisc
attached to eth0. In fact, for loss rates ranging from 0% to 50% my results are
unchanged. Basically, i do not think Netem is dropping packets in the forward
channel direction, which is what I am trying to emulate.<br>
<br>
Looking at the structure of how netem is implemented, by attaching a qdisc to
eth0, all packets entering eth0 from the server should be subjected to any rule
applied to eth0.<br>
<br>
Is anybody able to explain what is happening here?<br>
<br>
Thanks in advance.<br>
<br>
Ritesh<o:p></o:p></span></font></p>

<table class="MsoNormalTable" border=0 cellspacing=0 cellpadding=0 width="100%"
 DEFANGED_style="width:100.0%">
 <tr>
  <td DEFANGED_style="padding:0cm 0cm 0cm 0cm">
  <p class=MsoNormal><font size=3 face="Times New Roman"><span
  DEFANGED_style="font-size:12.0pt">---<br>
  </span></font><tt><font size=2 color=blue face="Courier New"><span
  DEFANGED_style="font-size:10.0pt;color:blue">Adaptive Communications Networks Research
  Group</span></font></tt><br>
  <tt><font size=2 color=blue face="Courier New"><span DEFANGED_style="font-size:10.0pt;
  color:blue">Electronic Engineering Dept.</span></font></tt><br>
<DEFANGED_st1:place w:st="on"><DEFANGED_st1:PlaceName w:st="on"><tt><font size=2 color=blue
    face="Courier New"><span DEFANGED_style="font-size:10.0pt;color:blue">Aston</span></font></tt></DEFANGED_st1:PlaceName><tt><font
   size=2 color=blue face="Courier New"><span DEFANGED_style="font-size:10.0pt;
   color:blue"> <DEFANGED_st1:PlaceType w:st="on">University</DEFANGED_st1:PlaceType></span></font></tt></DEFANGED_st1:place><br>
<DEFANGED_st1:City w:st="on"><DEFANGED_st1:place w:st="on"><tt><font size=2 color=blue
    face="Courier New"><span DEFANGED_style="font-size:10.0pt;color:blue">Birmingham</span></font></tt></DEFANGED_st1:place></DEFANGED_st1:City><br>
  <tt><font size=2 color=blue face="Courier New"><span DEFANGED_style="font-size:10.0pt;
  color:blue">B7 4ET</span></font></tt><br>
  <br>
  <tt><font size=2 color=blue face="Courier New"><span DEFANGED_style="font-size:10.0pt;
  color:blue">t: +44</span></font></tt><tt><font size=1 color=blue
  face="Courier New"><span DEFANGED_style="font-size:7.5pt;color:blue"> </span></font></tt><tt><font
  size=2 color=blue face="Courier New"><span DEFANGED_style="font-size:10.0pt;
  color:blue">(0)7732 069 667</span></font></tt><br>
  <tt><font size=2 color=blue face="Courier New"><span DEFANGED_style="font-size:10.0pt;
  color:blue">e: taankr@aston.ac.uk</span></font></tt><br>
  <tt><font size=2 color=blue face="Courier New"><span DEFANGED_style="font-size:10.0pt;
  color:blue">w: <a href="http://www-users.aston.ac.uk/~taankr/">www-users.aston.ac.uk/~taankr</a></span></font></tt>
  <o:p></o:p></p>
  </td>
 </tr>
</table>

<p class=MsoNormal><font size=3 face="Times New Roman"><span DEFANGED_style="font-size:
12.0pt"><o:p>&nbsp;</o:p></span></font></p>

</div>

<BR />
<BR />
<HR />
---------------------------------------------------------------------------------------------<BR />
This&nbsp;e-mail&nbsp;may&nbsp;contain&nbsp;confidential&nbsp;and/or&nbsp;privileged&nbsp;information.<BR />
If&nbsp;you&nbsp;are&nbsp;not&nbsp;the&nbsp;intended&nbsp;recipient&nbsp;(or&nbsp;have&nbsp;received&nbsp;this&nbsp;e-mail&nbsp;in&nbsp;error)&nbsp;please<BR />
notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;this&nbsp;e-mail.&nbsp;Any&nbsp;unauthorized&nbsp;copying,<BR />
disclosure&nbsp;or&nbsp;distribution&nbsp;of&nbsp;the&nbsp;contents&nbsp;in&nbsp;this&nbsp;e-mail&nbsp;is&nbsp;strictly&nbsp;forbidden.<BR />
---------------------------------------------------------------------------------------------<BR />
Newport&nbsp;Networks&nbsp;Limited&nbsp;is&nbsp;registered&nbsp;in&nbsp;England.&nbsp;Registration&nbsp;number&nbsp;4067591.<BR />
Registered&nbsp;office:&nbsp;6&nbsp;St.&nbsp;Andrew&nbsp;Street,&nbsp;London&nbsp;EC4A&nbsp;3LX<BR />
---------------------------------------------------------------------------------------------<BR />
</body>

</html>