<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=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:241381670;
        mso-list-type:hybrid;
        mso-list-template-ids:208931866 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi Everybody<o:p></o:p></p><p class=MsoNormal>We managed to mark the traffic before our SE-800 with different marks based on application. For example HTTP will have AF41 and Torrent will have AF21. For ICMP we mark the packet on SE with following configuration:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>context local<o:p></o:p></p><p class=MsoNormal>policy access-list MARK<o:p></o:p></p><p class=MsoNormal>  seq 10 permit icmp any any class ICMP<o:p></o:p></p><p class=MsoNormal>!<o:p></o:p></p><p class=MsoNormal>qos policy MARK metering <o:p></o:p></p><p class=MsoNormal>access-group MARK local<o:p></o:p></p><p class=MsoNormal>    class ICMP<o:p></o:p></p><p class=MsoNormal>   mark dscp cs7<o:p></o:p></p><p class=MsoNormal>!<o:p></o:p></p><p class=MsoNormal>This policy is assigned to PPPOE subscribers via “subscriber default”<o:p></o:p></p><p class=MsoNormal>Now for each subscriber, we have two other policies:<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>1)<span style='font:7.0pt "Times New Roman"'>      </span></span><![endif]><span dir=LTR></span>One PWFQ policy for download rate<o:p></o:p></p><p class=MsoListParagraph style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>2)<span style='font:7.0pt "Times New Roman"'>      </span></span><![endif]><span dir=LTR></span>One Metering policy for upload rate<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Before going through the configuration, I must mention, we are using following queue-map for assigning PD to queues:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>qos queue-map QM<o:p></o:p></p><p class=MsoNormal> num-queues 4<o:p></o:p></p><p class=MsoNormal>  queue 0 priority 0 1 2 <o:p></o:p></p><p class=MsoNormal>  queue 1 priority 3 4 <o:p></o:p></p><p class=MsoNormal>  queue 2 priority 5 <o:p></o:p></p><p class=MsoNormal>  queue 3 priority 6 7<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Following sample shows the PWFQ configuration:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>qos policy 128UnlimitedFairRX pwfq <o:p></o:p></p><p class=MsoNormal> rate maximum 128<o:p></o:p></p><p class=MsoNormal> weight 2<o:p></o:p></p><p class=MsoNormal> num-queues 4<o:p></o:p></p><p class=MsoNormal> queue-map QM<o:p></o:p></p><p class=MsoNormal> queue 0 priority 0 weight 100<o:p></o:p></p><p class=MsoNormal> queue 1 priority 1 weight 100<o:p></o:p></p><p class=MsoNormal> queue 2 priority 2 weight 100<o:p></o:p></p><p class=MsoNormal> queue 3 priority 3 weight 100<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>each subscribers is connected to SE inside of a QinQ VLAN, following configuration shows a sample:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>port ethernet 2/1 <o:p></o:p></p><p class=MsoNormal> mtu 1400<o:p></o:p></p><p class=MsoNormal> no shutdown<o:p></o:p></p><p class=MsoNormal> medium-type copper<o:p></o:p></p><p class=MsoNormal> encapsulation dot1q<o:p></o:p></p><p class=MsoNormal> dot1q pvc 545 profile MARK-COS encapsulation pppoe <o:p></o:p></p><p class=MsoNormal>  bind authentication pap context INTERNET maximum 8000<o:p></o:p></p><p class=MsoNormal> dot1q pvc 4011 profile MARK-COS encapsulation 1qtunnel <o:p></o:p></p><p class=MsoNormal>  qos rate maximum 551670<o:p></o:p></p><p class=MsoNormal>  qos weight 2155<o:p></o:p></p><p class=MsoNormal>  qos policy queuing GROUP#1<o:p></o:p></p><p class=MsoNormal>  dot1q pvc 4011:148 profile MARK-COS encapsulation pppoe <o:p></o:p></p><p class=MsoNormal>   bind authentication pap context INTERNET maximum 8000<o:p></o:p></p><p class=MsoNormal>   qos rate maximum 48770<o:p></o:p></p><p class=MsoNormal>   qos weight 161<o:p></o:p></p><p class=MsoNormal>   qos policy queuing Exchange#1<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>As you can see for dot1q pvc and dot1q tunnel we have PWFQ policies and rates as well.<o:p></o:p></p><p class=MsoNormal>Now the point is since ICMP packet is marked with CS7 which is the highest standard DSCP mark, we expect that the PING time from Subscriber to SE must always be good, even in the time of congestion inside PPPoE session,dot1q pppoe and dot1q tunnel.<o:p></o:p></p><p class=MsoNormal>Congestion inside of dot1qs are simulated by using qos rates and pwfq policies. But the problem is this behavior is not what we got always. Sometime it is OK but sometimes we have jitter or packet loss from Subscriber to SE when dot1q pppoe is congested and sometimes when it is not congested.<o:p></o:p></p><p class=MsoNormal>Is there anybody here who had this issue before?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Device is SE-800 XCRP4 and SEOS version is 6.4.1.4<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you<o:p></o:p></p><p class=MsoNormal>Alireza<o:p></o:p></p></div></body></html>