cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1406
Views
0
Helpful
10
Replies

Traffic shapper (qos)

support.golan
Level 1
Level 1

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 .

10 Replies 10

Marwan ALshawi
VIP Alumni
VIP Alumni

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

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

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

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

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

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 ?

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

thanks

my last question

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

can i change it ?

golan

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

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: