Configuration, tuning and performance of policing on Catalyst 6506 switches
TCP traffic



Goal: to study the configuration, the effectiveness and the impact on end-to-end TCP performance.

  1. Equipment:

  2. Test description:
    Policing is enabled on one input interface according to the following configuration sample. Policing is presumably implemented according to a dual leaky bucket and depends on the following parameters:

  3. Syntax:
    
    police  CIR  normal-burst-size PIR maximum-burst-size conform-action  exceed-action violate-action 
    
    
    mls qos
    
    class-map match-all B1high
      match access-group 151
    class-map match-all B2high
      match access-group 150
    
    
    policy-map Bbandwidth
      class B2high
         police 300000000 2500000 2500000 conform-action set-prec-transmit 2 exceed-action drop
      class B1high
         police 50000000 2500000 2500000 conform-action set-prec-transmit 1 exceed-action drop
    
    
    interface GigabitEthernet3/4
     description to sunlab3g
     no ip address
     wrr-queue queue-limit 10 45 
     wrr-queue cos-map 1 1 0 
     wrr-queue cos-map 1 2 3 
     wrr-queue cos-map 2 1 1 4 6 
     priority-queue cos-map 1 2 5 
     rcv-queue cos-map 1 2 3 
     service-policy input prova1
     switchport
    
    access-list 150 permit tcp host 131.154.100.3 host 131.154.100.2 eq 50150
    access-list 151 permit tcp host 131.154.100.3 host 131.154.100.2 eq 50151
    

    Policing can be of two types:

    The PFC2 supports classification, marking and policing using policy maps.

    Interfaces can be in one of the following states (interface state is fundamental to define the rule to set the internal DSCP value, i.e. the value used to set the TOS byte written in transmitted packets):

  4. Tolopology:
    the pools of end-systems are directly connected to the GigaEthernet interfaces of switch Cat65006 (testing does not involved additional devices and test traffic is just local). The structure of the topology is illustrated in the following figure:

  5. Parameters:

  6. Traffic profile

Summary:

  1. TEST B (CIR): the relationship between CIR and minimum normal burst size is peculiar, since in order to get relatively small CIR throughput values, the bucket size has to be increased to several Mbytes (for example, 5 Mbytes for a CIR of 100 Mbps).
    This burst tolerance suggests that the minimum burst size corresponds to the maximum burstiness produced by the TCP stream. In other words, for smaller normal burst values than the minimum, a few TCP segments could get dropped by the policer, with the result that TCP reduces its rate.
    The high burstiness which seems to be injected by the TCP stream could be due to the fact that source and receiver are connected through high-speed interfaces and to the fact that the RTT is very small. This may allow the sender to transmit several TCP windows back-to-back (at line speed), with a resulting instantaneous rate higher than the CIR.
    The linearity between CIR and minimum normal burst cannot be reproduced on lower-speed devices like the C7200 and C7500. This could be due to the fact that the C6500 sends packets at wire speed, while the policer on the C7500 and C7200 is implemented in software, with a consequent internal higher delay which impacts the overall RTT.
  2. TEST C (PIR): The addition of a PIR parameter greatly increases the tolerance to the burstiness sourced by the TCP transmitter, as expected.
    With UDP traffic performance perfectly equals the confgiured PIR rate.
  3. TEST D (masimum burst): maximum burst size has to be appropriately tuned to let a given application to reach the peak rate. As expected, the maximum burst greatly increases the tolerance of a policer to the injected TCP burstiness.

Comments:


Tiziana Ferrari, March 2002