[rbak-nsp] redback-nsp Digest, Vol 18, Issue 6

Милых Максим Вадимович maxim at sinet.ru
Thu Aug 6 07:19:36 EDT 2009


10.06.2009 20:00, redback-nsp-request at puck.nether.net пишет:
> Send redback-nsp mailing list submissions to
> 	redback-nsp at puck.nether.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://puck.nether.net/mailman/listinfo/redback-nsp
> or, via email, send a message with subject or body 'help' to
> 	redback-nsp-request at puck.nether.net
>
> You can reach the person managing the list at
> 	redback-nsp-owner at puck.nether.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of redback-nsp digest..."
>
>
> Today's Topics:
>
>     1. Re: rate-limit (Dinesh)
>     2. Re: rate-limit (???? ?????)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 9 Jun 2009 14:25:30 -0700
> From: Dinesh<dineshbs123 at gmail.com>
> To: ???? ?????<savin at orn.ru>
> Cc: redback-nsp at puck.nether.net
> Subject: Re: [rbak-nsp] rate-limit
> Message-ID:
> 	<20a2fc810906091425gee43169iee396cbcbf729c41 at mail.gmail.com>
> Content-Type: text/plain; charset="koi8-r"
>
> Rule of thumb is
>
> burst = 1.5 X rate
>
> can you try changing burst to 1500 and try ?
>
> Regards
> Dinesh
>
>
>
> On Thu, May 28, 2009 at 12:13 PM, ???? ?????<savin at orn.ru>  wrote:
>
>    
>> Blake, thanks for your reply.
>>
>> My SmartEdge 100 does not have "show card 2" command :(
>> "show qos policy" display this:
>>
>> [local]Redback#sh qos policy
>> Policy-Name                Type     Grid    Qs Slots  Ports  Bound  DnLd
>> Status
>> inet                       metering 6       0  1      1      out
>> pinet                      police   7       0  1      1      in
>>
>> Total policy map: 2
>>
>> There is same result if I set up rates locally (not using radius).
>>
>> Here is a full config (local authorization, without radius):
>>
>> [local]Redback#sh conf
>> Building configuration...
>>
>> Current configuration:
>> !
>> !  Configuration last changed by user '<NO USER>' at Thu May 28 22:58:38
>> 2009
>> !
>> !
>> !
>> !
>> !
>> !
>> no service multiple-contexts
>> !
>> !
>> !
>>   software license
>>   subscriber active 2000 encrypted 1 $1$***************
>> !
>> !
>>
>>
>> context local
>> !
>>   no ip domain-lookup
>> !
>>   interface outer
>>   ip address 80.76.176.44/28
>> !
>>   interface pool multibind
>>   ip address 217.174.10.1/24
>>   ip pool 217.174.10.0/24
>>   logging console
>> !
>>   policy access-list SERVICE_out
>>   seq 10 permit ip any any class SERVICE1
>> !
>>   enable encrypted 1 $1$........*****************
>> !
>>   aaa authentication administrator local
>> !
>>   administrator root encrypted 1 $1$........********************
>> !
>> !
>>   subscriber default
>>    ip address pool
>>    qos policy policing pinet
>>    qos policy metering inet
>>    access-line rate out
>>    access-line rate in
>> !
>>   subscriber name ili4test
>>    password test111
>>    ip address 217.174.10.100
>>    access-line rate out
>>    access-line rate in
>> !
>>   ip route 0.0.0.0/0 80.76.176.33
>>   service ssh server
>>   service telnet server
>> !
>>
>>
>> !
>> ! ** End Context **
>>   logging tdm console
>>   logging active
>>   logging standby short
>> !
>> !
>> !
>> qos policy inet metering radius-guided
>>   rate 1000 burst 100
>>   access-group SERVICE_out local
>>   class SERVICE1
>> !
>> qos policy pinet policing radius-guided
>>   rate 1000 burst 100
>>   access-group SERVICE_out local
>>   class SERVICE1
>> !
>> !
>> port ethernet 1/1
>> ! XCRP management port on slot 1
>>   medium speed 100 duplex full
>>   no shutdown
>> !
>> card carrier 2
>> !
>> port ethernet 2/1
>>   description test21
>>   no shutdown
>>   encapsulation dot1q
>>   bind interface outer local
>> !
>> port ethernet 2/2
>>   no shutdown
>>   encapsulation dot1q
>>   dot1q pvc 1016 encapsulation pppoe
>>   bind authentication chap context local
>> !
>>   no timeout session idle
>> !
>> no service console-break
>> !
>> service crash-dump-dram
>> !
>> no service auto-system-recovery
>> !
>> end
>>
>>
>> "show qos circuit detail" displays rate 1000 kbit/s:
>> [local]Redback#sh qos circuit detail
>> Circuit: 2/2 vlan-id 1016 pppoe 67
>> ----------------------------------------------------------
>>
>> Policy Name       : pinet
>> Policy Type       : policing
>> Hierarchical Type : None
>> Rate              : 1000              Rate Source       : local
>> Burst             : 100               Excess Burst      :
>> Class mapping     : 1-->0, 2-->0, 3-->0, 4-->0, 5-->0, 6-->0, 7-->0, 8-->0
>>
>> Policy Name       : inet
>> Policy Type       : metering
>> Hierarchical Type : None
>> Rate              : 1000              Rate Source       : local
>> Burst             : 100               Excess Burst      :
>> Class mapping     : 1-->0, 2-->0, 3-->0, 4-->0, 5-->0, 6-->0, 7-->0, 8-->0
>>
>> But actual speed is ~4 kb/s.
>> When I remove rate limit actual speed raises up to 100 Mbit/s.
>>
>> _______________________________________________
>> redback-nsp mailing list
>> redback-nsp at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/redback-nsp
>>
>>      
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:<https://puck.nether.net/pipermail/redback-nsp/attachments/20090609/a7ea98fa/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 10 Jun 2009 09:45:16 +0400
> From: ???? ?????<savin at orn.ru>
> To:<redback-nsp at puck.nether.net>
> Subject: Re: [rbak-nsp] rate-limit
> Message-ID:<200906100545.n5A5j7Ux004214 at puck.nether.net>
> Content-Type: text/plain;	charset="koi8-r"
>
> Dinesh, thank you, this problem was solved few days ago:
>
> https://puck.nether.net/pipermail/redback-nsp/2009-May/000166.html
>
> p.s.
> burst = rate / 8 * 1500
>
> WBR, Ilya Savin.
>
>    
>> Rule of thumb is
>>
>> burst = 1.5 X rate
>>
>> can you try changing burst to 1500 and try ?
>>
>> Regards
>> Dinesh
>>      
>
>
>
>
> ------------------------------
>
> _______________________________________________
> redback-nsp mailing list
> redback-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/redback-nsp
>
>
> End of redback-nsp Digest, Vol 18, Issue 6
> ******************************************
>
>
>    
Why burst = "1.5 X rate" ? In documentation examples "QoS Rate- and 
Class-Limiting Configuration" I see

Class-Based and Circuit-Based Rate Limiting
[local]Redback(config)#qos policy meter metering
[local]Redback(config-policy-metering)#rate 1000 burst 50000 
excess-burst 200000
counters
[local]Redback(config-policy-metering)#access-group qosmet local
[local]Redback(config-policy-acl)#class class-1
[local]Redback(config-policy-acl-class)#rate 1000 burst 50000 
excess-burst 200000
counters
[local]Redback(config-policy-class-rate)#exit
[local]Redback(config-policy-acl-class)#exit
[local]Redback(config-policy-acl)#class class-2
[local]Redback(config-policy-acl-class)#rate 2000 burst 50000 
excess-burst 200000
counters
[local]Redback(config-policy-class-rate)#exit
[local]Redback(config-policy-acl-class)#exit
[local]Redback(config-policy-acl)#class class-3
[local]Redback(config-policy-acl-class)#rate 3000 burst 50000 
excess-burst 200000
counters
[local]Redback(config-policy-class-rate)#exit
[local]Redback(config-policy-acl-class)#exit

I can't find docs about right burst and excess burst calculation on 
Redback device.



More information about the redback-nsp mailing list