[rbak-nsp] rate-limit

Илья Савин savin at orn.ru
Thu May 28 15:13:41 EDT 2009


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.



More information about the redback-nsp mailing list