<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Courier New";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="CS" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">I am trying to experiment with sch_cake.c, my goal is to ad-hoc prioritize / deprioritize traffic served to specified a host(s). The prioritization would be controlled by an external
 system and it should handle well the situation where a host has active flow(s).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">I've experimented with traffic shifting from tin to tin via fwmarks, it worked somehow, but there are issues related to losing flow's (cobalt) state.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Could you please propose a way how this could be done?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Each flow refences cake_host_table, which could be in theory modified (for example) like<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:white"><span style="font-size:10.5pt;font-family:Consolas;color:blue;mso-ligatures:none;mso-fareast-language:CS">struct</span><span style="font-size:10.5pt;font-family:Consolas;color:black;mso-ligatures:none;mso-fareast-language:CS">
 cake_host {<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:white"><span style="font-size:10.5pt;font-family:Consolas;color:black;mso-ligatures:none;mso-fareast-language:CS">    u32 srchost_tag;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:white"><span style="font-size:10.5pt;font-family:Consolas;color:black;mso-ligatures:none;mso-fareast-language:CS">    u32 dsthost_tag;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:white"><span style="font-size:10.5pt;font-family:Consolas;color:black;mso-ligatures:none;mso-fareast-language:CS">    u16 srchost_bulk_flow_count;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:white"><span style="font-size:10.5pt;font-family:Consolas;color:black;mso-ligatures:none;mso-fareast-language:CS">    u16 dsthost_bulk_flow_count;<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:white"><span style="font-size:10.5pt;font-family:Consolas;color:black;mso-ligatures:none;mso-fareast-language:CS"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:white"><span style="font-size:10.5pt;font-family:Consolas;color:black;mso-ligatures:none;mso-fareast-language:CS">    ??? srchost_weight;  // default value = 1.0<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:white"><span style="font-size:10.5pt;font-family:Consolas;color:black;mso-ligatures:none;mso-fareast-language:CS">    ??? dsthost_weight;  // default value = 1.0<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.25pt;background:white"><span style="font-size:10.5pt;font-family:Consolas;color:black;mso-ligatures:none;mso-fareast-language:CS">};<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">The weight fields could be then used in cobalt rate scheduling... weight could be an integer, enum, or decimal - but anything that could distinguish the traffic.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Thank you for any ideas.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Courier New";color:black;mso-ligatures:none;mso-fareast-language:CS">Jan Rovner<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;mso-ligatures:none;mso-fareast-language:CS">Ing. Jan Rovner, Ph.D., jednatel společnosti<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-ligatures:none;mso-fareast-language:CS"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse">
<tbody>
<tr>
<td width="272" valign="top" style="width:204.3pt;border-top:dashed #BFBFBF 1.0pt;border-left:none;border-bottom:dashed #BFBFBF 1.0pt;border-right:none;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal" style="line-height:115%"><b><span style="font-size:10.0pt;line-height:115%;font-family:"Courier New";color:#1F497D;mso-fareast-language:CS"><img width="159" height="36" style="width:1.6562in;height:.375in" id="Picture_x0020_1" src="cid:image001.jpg@01D9F17A.0DAF59C0"><span style="mso-ligatures:none"><o:p></o:p></span></span></b></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;color:#1F497D;mso-ligatures:none;mso-fareast-language:CS">e-mail:  
</span><span style="color:#1F497D;mso-ligatures:none;mso-fareast-language:CS"><a href="mailto:internet@diadema.cz"><span style="font-size:10.0pt;line-height:115%;color:blue">internet@diadema.cz</span></a></span><span style="font-size:10.0pt;line-height:115%;color:#1F497D;mso-ligatures:none;mso-fareast-language:CS"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;color:#1F497D;mso-ligatures:none;mso-fareast-language:CS">www:    
</span><span style="color:#1F497D;mso-ligatures:none;mso-fareast-language:CS"><a href="http://internet.diadema.cz/"><span style="font-size:10.0pt;line-height:115%;color:blue">http://internet.diadema.cz</span></a></span><span style="font-size:10.0pt;line-height:115%;color:#1F497D;mso-ligatures:none;mso-fareast-language:CS">
<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;color:#1F497D;mso-ligatures:none;mso-fareast-language:CS">telefon:  +420 377 421 863, +420 603 484 742</span><span style="font-family:"Arial",sans-serif;color:#1F497D;mso-ligatures:none;mso-fareast-language:CS"><o:p></o:p></span></p>
</td>
<td width="198" colspan="2" style="width:148.4pt;border-top:dashed #BFBFBF 1.0pt;border-left:none;border-bottom:dashed #BFBFBF 1.0pt;border-right:none;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="line-height:115%"><span style="color:#1F497D;mso-ligatures:none;mso-fareast-language:CS"> <o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="286" colspan="2" valign="top" style="width:214.25pt;padding:0cm 5.4pt 0cm 5.4pt">
<p class="MsoNormal" style="line-height:115%"><b><span style="font-size:10.0pt;line-height:115%;color:#7F7F7F;mso-ligatures:none;mso-fareast-language:CS"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-size:10.0pt;line-height:115%;color:#7F7F7F;mso-ligatures:none;mso-fareast-language:CS">Diadema Internet s.r.o.</span></b><span style="font-size:10.0pt;line-height:115%;color:#7F7F7F;mso-ligatures:none;mso-fareast-language:CS"><br>
zapsaná v obchodním rejstříku vedeném u Krajského soudu v Plzni, oddíl C, vložka 24294<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;color:#7F7F7F;mso-ligatures:none;mso-fareast-language:CS">se sídlem Morseova 1126/5, 301 00 Plzeň<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;color:#7F7F7F;mso-ligatures:none;mso-fareast-language:CS"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;color:#7F7F7F;mso-ligatures:none;mso-fareast-language:CS">IČO: 29093961,  DIČ CZ29093961<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;font-family:"Courier New";color:#1F497D;mso-ligatures:none;mso-fareast-language:CS"><o:p> </o:p></span></p>
</td>
<td width="185" valign="top" style="width:138.45pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" style="line-height:115%"><b><span style="font-size:10.0pt;line-height:115%;color:#7F7F7F;mso-ligatures:none;mso-fareast-language:CS"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="line-height:115%"><b><span style="font-size:10.0pt;line-height:115%;color:#7F7F7F;mso-ligatures:none;mso-fareast-language:CS">Korespondenční a dodací adresa<o:p></o:p></span></b></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;color:#7F7F7F;mso-ligatures:none;mso-fareast-language:CS">Diadema Internet s.r.o.<br>
Provozovna Plzeň-Lochotín<br>
Alej Svobody 56, 323 00 Plzeň<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;color:#7F7F7F;mso-ligatures:none;mso-fareast-language:CS"><o:p> </o:p></span></p>
<p class="MsoNormal" style="line-height:115%"><span style="font-size:10.0pt;line-height:115%;font-family:"Courier New";color:#1F497D;mso-ligatures:none;mso-fareast-language:CS"><o:p> </o:p></span></p>
</td>
</tr>
<tr>
<td width="272" style="width:204.0pt;padding:0cm 0cm 0cm 0cm"></td>
<td width="13" style="width:9.75pt;padding:0cm 0cm 0cm 0cm"></td>
<td width="185" style="width:138.75pt;padding:0cm 0cm 0cm 0cm"></td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="mso-ligatures:none;mso-fareast-language:CS"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>