12-20-2009 01:34 AM - edited 03-04-2019 07:01 AM
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 .
12-20-2009 02:03 AM
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
12-20-2009 02:23 AM
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
12-20-2009 02:48 AM
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
12-20-2009 03:19 AM
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
12-20-2009 03:51 AM
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
12-20-2009 04:47 AM
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 ?
12-20-2009 05:00 AM
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
12-20-2009 05:09 AM
thanks
my last question
the first session to second whats the time that the data collects ?
can i change it ?
golan
12-20-2009 05:11 AM
can i know more details on the drop packet ? why they as been drop
12-20-2009 05:17 AM
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
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: