Traffic shapper (qos)

Unanswered Question
Dec 20th, 2009
User Badges:

hello

i am useing router cisco 1841

i have two interfaces connected ,my bandwidth is 4 mb

how can i create traffic shaper on my router ?

i want to create traffic shaper when my router exeeds the 3.8 mb the packets not drop otherwise they will go to queeue


here attached the sh run .

Attachment: 
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Marwan ALshawi Sun, 12/20/2009 - 02:03
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

Hi Golan

i can see from your config file you dont have any QOS or traffic calss

so your shaping will be using class-default which means all your traffic without any speciall class


per your requirment to shape the interface for 4 Mbps

use the follwoing commands:


policy-map SHAPE
class class-default
  shape average 4000000


interface FastEthernet0/0

service-policy output SHAPE


interface FastEthernet0/0

service-policy output SHAPE


to see the traffic and policy map config

use the follwoing commad

show policy-map int fa0/0  or 0/1


good luck

if helpful Rate

support.golan Sun, 12/20/2009 - 02:23
User Badges:

thanks

i will try to config it right now and will let you know

to config it on only one interface

interface FastEthernet0/0

i do nned to do that

do i need to go to #conf t ????

policy-map SHAPE
class class-default
  shape average 4000000 --------------- if i want the see all packets as been drop more then 3.8 mb what should i do ?


interface FastEthernet0/0 ------ thats is the correct interface

service-policy output SHAPE


the command  will help me to see all drop packets ?


show policy-map int fa0/0  or 0/1


thanks for your help


golan

Marwan ALshawi Sun, 12/20/2009 - 02:48
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

yes you do

config t

then you put the policy map config

then to apply the policy map to the interface let say Fa0/0


do


config t

intterface fa0/0

service-policy output SHAPE


this policy will shape the interface traffic up to 4M howeve the exceding tarffic will be buffered not droped like when you use policer


to see packed forwadred or droped and verify the bandwidth

show policy-map int fa0/0


good luck

support.golan Sun, 12/20/2009 - 03:19
User Badges:

the main reason  ia museing it

some packets has been droped and my isp thing the reason i the overload on my bandwith

so if i will config it as 4 mb all exceeding 4 mb packets they will bufferd and not droped  ?


thanks



golan

Marwan ALshawi Sun, 12/20/2009 - 03:51
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

depend on the load if you have too much load will be droped

bu this will better becuase if you dont configure shaper your router will send on the line speed about 100M and your traffic will e droped in ISP side


do the show command i gae you and you ca see the drped traffic


Router#show policy-map interface fa0/0
FastEthernet0/0

  Service-policy output: SHAPE

    Class-map: class-default (match-any)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any
      Traffic Shaping
           Target/Average   Byte   Sustain   Excess    Interval  Increment
             Rate           Limit  bits/int  bits/int  (ms)      (bytes)
          4000000/4000000   25000  100000    100000    25        12500

        Adapt  Queue     Packets   Bytes     Packets   Bytes     Shaping
        Active Depth                         Delayed   Delayed   Active
        -      0         0         0         0         0         no


as you can see you will have a burst about 100000 bps   100000/8 = 12500 byte

support.golan Sun, 12/20/2009 - 04:47
User Badges:

as you can see thats my show command


Mpls#show policy-map interface fastEthernet 0/0
FastEthernet0/0

  Service-policy output: shape

    Class-map: class-default (match-any)
      446 packets, 90454 bytes
      5 minute offered rate 10000 bps, drop rate 0 bps
      Match: any
      Traffic Shaping
           Target/Average   Byte   Sustain   Excess    Interval  Increment
             Rate           Limit  bits/int  bits/int  (ms)      (bytes)
          4000000/4000000   25000  100000    100000    25        12500

        Adapt  Queue     Packets   Bytes     Packets   Bytes     Shaping
        Active Depth                         Delayed   Delayed   Active
        -      0         447       91068     0         0         no
Mpls#


all drop packet i supose to see on the red marked line ?

every time i want to see drop packet i need to do thats ? or i can see in agraffic way ?

Marwan ALshawi Sun, 12/20/2009 - 05:00
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

the drop as bellow


Mpls#show policy-map interface fastEthernet 0/0
FastEthernet0/0

  Service-policy output: shape

    Class-map: class-default (match-any)
      446 packets, 90454 bytes
      5 minute offered rate 10000 bps, drop rate 0 bps
      Match: any
      Traffic Shaping
           Target/Average   Byte   Sustain   Excess    Interval  Increment
             Rate           Limit  bits/int  bits/int  (ms)      (bytes)
          4000000/4000000   25000  100000    100000    25        12500

        Adapt  Queue     Packets   Bytes     Packets   Bytes     Shaping
        Active Depth                         Delayed   Delayed   Active
        -      0         447       91068     0         0
         no
the red is the drop which is showing 0 now


good luck

if helpful Rate

support.golan Sun, 12/20/2009 - 05:09
User Badges:

thanks

my last question

the first session to second whats the time that the data collects ?


can i change it ?



golan

support.golan Sun, 12/20/2009 - 05:11
User Badges:

can i know more details on the drop packet ? why they as been drop

Marwan ALshawi Sun, 12/20/2009 - 05:17
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

the drop represent out of the contract traffic

the shaping will be yhe CIR the max traffic you can send

if you send big load on the interface the extra traffic will be droped as the software queue will be filled and the harware queue as will

this droping called tail drop means any traffic come while the interface conjested and the uinterface queues fill this traffic will simply be droped

Actions

This Discussion