RE: An Epiphany!!! FRTS Revealed (was RE: MINCIR = CIR?)

From: OhioHondo (ohiohondo@columbus.rr.com)
Date: Sun May 04 2003 - 13:04:17 GMT-3


Ray

There was a 2nd question that I'm unclear about that is in the same area.
That is how Be is used in GTS vs. FRTS. From the discussions we've had so
far, alomost everyone agrees that Be is a value that is less that the
signaling rate, associating FRTS Be to a 1 second time period. (Note that
the IOS that I'm on lets you make FRTS Be almost anything.)

In GTS it has been suggested that Be relates to whatever time period that
you want to specify. So if you want to maintain a thruput rate of XX for a
30 second time period, make Be relate to 30 seconds (XX * 30). If you want
to maintain a thruput rate of XX for a 30 day time period, make Be = to a
time period of 30 days.
(XX * 60 * 60 * 24 * 30)

If this is the case, the inference is that Be for GTS means something a
little different than Be for GTS.

In either circumstance the IOS will perform only to its max capability
regardless of how you configure Be, so it would seem to make little
difference how you configured Be as long as it was a value higher than the
value you needed. (Unless Real Time traffic was involved where Be=0 is
best.) The CREDIT is only a counter and it should only allow as many bits to
be in the BURST as Cisco allows.

I am still curious to know how it all really works. {=@)

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
Lewis, Ray
Sent: Saturday, May 03, 2003 6:14 PM
To: CCIE GroupStudy
Subject: RE: An Epiphany!!! FRTS Revealed (was RE: MINCIR = CIR?)

Has this ever been resolved?

I believe the real question is this.

Is the Burst Rate (ie, can burst to 64kbps) calculated over the Tc1 or over
the entire 1 second?

Given:
If AR = 64k
CIR = 32k (from Carrier)
MinCir = 16k
We can burst to AR

Opinion #1 - Burst Rate calculated over 1 second
Bc = 32000/8 = 4000 bits per Tc
Be = AR-CIR = 32000
During Tc1: we are sending 36000 bits. This is equivalent to a rate of
36000*8 = 288000bps. (is this allowed?)
During Tc2-Tc8: we are sending 4000*7 = 28000 bits. This is equivalent to a
rate of 32000 bps
Over the entire 1 Second (all Tcs): we sent 28000 + 36000 = 64000 bits.

Opinion #2 - Burst Rate calculated per Tc interval.
Bc = 32000/8 = 4000 bits per Tc
Be:
Most we can send is 64000bps.
We calculate everything per Tc. So Burst Rate is really 64000/8 = 8000bps
(per Tc).
We are already sending 4000 bits in the 1st Tc (the Bc is doing that)
There are only 8000 - 4000 = 4000 bits remaining to be sent (during the 1st
Tc).

This would give the following:
During Tc1: we are sending 8000 bits. This is equivalent to a rate of 8000
* 8 = 64000bps.
During Tc2-Tc8: we are sending 4000 * 7 = 28000 bits. This is equivalent to
a rate of 32000bps
Over the entire 1 Second (all Tcs): we sent 28000 + 8000 = 32000 bits.

in Case #1, we theoretically exceeded the port speed of 64k (we sent at a
rate of 288000bps). But we only did this for 1/8 of a second. Is the
router physically able to accept the data at 288000bps for 1/8 of a second?
If yes, than this is the right answer.

in Case#2, we never exceeded the physical port speed of the interface. But
then maybe we have not utilized the link to full potential since we only
sent 32000 bits/s to a 64000 bit/s interface?

Anybody?

-----Original Message-----
From: Joe Martin [mailto:jmartin@capitalpremium.net]
Sent: Thursday, April 17, 2003 5:03 PM
To: OhioHondo; Brian Dennis; CCIE GroupStudy
Subject: RE:An Epiphany!!! FRTS Revealed (was RE: MINCIR = CIR?)

I have had an epiphany!!!!!

Thank you Brian, Brian, & Ohio? !!!!

So the formula is Be = (AR - CIR) * Tc/1000.

Or another way to state it.

Be = (AR * Tc/1000) - (CIR * Tc/1000)

I know it is the same thing, but after Ohio's last post it just made more
sense to me that way.

Again, thank you everyone. Brian D., I will never question your wealth of
knowledge again. :)

Joe Martin

-----Original Message-----
From: OhioHondo [mailto:ohiohondo@columbus.rr.com]
Sent: April 17, 2003 1:53 PM
To: Joe Martin; Brian Dennis; CCIE GroupStudy
Subject: RE: FRTS Revealed (was RE: MINCIR = CIR?)

Joe

Brians point is that in 1/8 of a second (the time in the 1st time interval)
a circuit with a signaling rate of 64K can only manage to send out a TOTAL
of 8K. Since the Be is only sent in the 1st time interval and since the Bc
is already 4K, the max Be can only be 8K-4K = 4K

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
Joe Martin
Sent: Thursday, April 17, 2003 2:09 PM
To: Brian Dennis; CCIE GroupStudy
Subject: RE: FRTS Revealed (was RE: MINCIR = CIR?)

Brian,
Yes, but you are only sending the Be for one interval. It is actually
Be + 8(Bc) per second

So 32000 + 8(4000) = 64000 <-----AR or Port Speed

So I am sending (32000(Be) + 4000(Bc)) + 4000 + 4000 + 4000....
                    ( interval 1 ) (int2) (int3) (int4)...

Joe Martin

-----Original Message-----
From: Brian Dennis [mailto:brian@labforge.com]
Sent: April 17, 2003 11:51 AM
To: 'Joe Martin'; 'CCIE GroupStudy'
Subject: RE: FRTS Revealed (was RE: MINCIR = CIR?)

Joe,
How is that port speed? If Be is 32000 and Bc is 4000 then you are
sending 36000 in 125ms which makes the port speed 288000bps.

Brian Dennis, CCIE #2210 (R&S/ISP-Dial/Security)
Director of CCIE Training and Development - IPexpert, Inc.
Mailto: brian@ipexpert.net
Toll Free: 866.225.8064
Outside U.S. & Canada: 312.321.6924

-----Original Message-----
From: Joe Martin [mailto:jmartin@capitalpremium.net]
Sent: Thursday, April 17, 2003 10:28 AM
To: Brian Dennis; CCIE GroupStudy
Subject: RE: FRTS Revealed (was RE: MINCIR = CIR?)

Brian,

I respectfuly disagree. Be is the excess burst for one interval, but is
made up of extra tokens for all intervals in the second. If the CIR is
less
than AR and we are using the default Tc (125ms), then I can burst up to
the
AR (port speed).

AR = 64000 <---- Port Speed
CIR = 32000
Bc = 4000
Tc = 125ms
Be = 32000

However, if the CIR is the same as AR then I have no room for bursting.

AR = 64000
CIR = 64000
Bc = 8000
Tc = 125ms
Be = 0

Of course, I would never want to burst passed the remote router's AR.
So that will be a determing fact for the Be.

Someone correct me if I am wrong.

Joe Martin

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
Brian Dennis
Sent: April 17, 2003 9:09 AM
To: ANDF@nnpi.com; ccielab@groupstudy.com
Subject: RE: FRTS Revealed (was RE: MINCIR = CIR?)

Since Be is made up of unused Bc bytes from the previous interval (Tc)
Be can not contain more bytes than Bc. So if Bc is 4000 how can you ever
have a Be value more than 4000?

Brian Dennis, CCIE #2210 (R&S/ISP-Dial/Security)
Director of CCIE Training and Development - IPexpert, Inc.
Mailto: brian@ipexpert.net
Toll Free: 866.225.8064
Outside U.S. & Canada: 312.321.6924

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
ANDF@nnpi.com
Sent: Thursday, April 17, 2003 6:46 AM
To: brian@cyscoexpert.com; ccielab@groupstudy.com
Subject: RE: FRTS Revealed (was RE: MINCIR = CIR?)

Brian,

I appreciate your input on this. On page 66 of the 2002 CCIE Power
Session
slides they show Be = 32000 when CIR = 32000, port speed = 64000, Bc =
4000
and Tc = 125ms. Are they incorrect? Shouldn't Be have been 4000?

Thanks,

Andy Fernandes

-----Original Message-----
From: Brian McGahan [mailto:brian@cyscoexpert.com]
Sent: Thursday, April 17, 2003 12:40 AM
To: 'OhioHondo'; 'Jonathan V Hays'; ccielab@groupstudy.com
Cc: 'Mike Williams'
Subject: FRTS Revealed (was RE: MINCIR = CIR?)

        Due to incorrect documentation, FRTS is one of the most
misunderstood topics within the CCIE domain. Since this is my favorite
lecture which I usually end up giving 5 or 6 times per week, I'll just
go
for the complete explanation to start with :)

To calculate FRTS values, we will use the following formulas:

Bc = (CIR * Tc) / 1000
Be = ((AR - CIR) * Tc)/1000

        In the CCO example you are referencing, the hub has an
access-rate
of 192000bps, while the remote only has an access-rate of 64000bps.
Therefore, the fastest speed that can be sustained over the second is
64000bps. This is what we want to average per second, which is Cisco's
term
CIR.

Hub:
AR = 192000
CIR = 64000

Remote:
AR = 64000
CIR = 64000

        Since CIR <= 640Kbps, the default Tc is 125ms. (I'll explain
this
later) Now we have the following:

Hub:
AR = 192000
CIR = 64000
Tc = 125

Remote:
AR = 64000
CIR = 64000
Tc = 125

        Now that we have both CIR and Tc, we can solve for Bc. Since
both
the CIR and Tc are the same for the Hub and the Remote, Bc will be the
same:

Bc = (CIR * Tc)/1000
Bc = (64000 * 125)/1000
Bc = (8000000)/1000
Bc = 8000 bits

Now we have:

Hub:
AR = 192000
CIR = 64000
Tc = 125
Bc = 8000

Remote:
AR = 64000
CIR = 64000
Tc = 125ms
Bc = 8000

        Now we must solve for Be, starting with Hub:

Be = ((AR - CIR) * Tc)/1000
Be = ((192000 - 64000) * 125) / 1000
Be = ((128000) * 125) / 1000
Be = (16000000) / 1000
Be = 16000

        Now the Remote:

Be = ((AR - CIR) * Tc)/1000
Be = ((64000 - 64000) * 125) / 1000
Be = ((0) * 125) / 1000
Be = (0) / 1000
Be = 0

        So far, our calculations have nothing to do with how our line is
actually provisioned. Instead, we have simply calculated how our token
bucket will shape the traffic. The example then states "In case of
congestion, it can drop down to 32Kbps at the minimum." This statement
implies that the provider has provisioned 32000bps for us on this VC. In
order to dynamically react to congestion from the cloud, we must enable
BECN
adapt, which is where the following two statements come
from:

frame-relay mincir 32000
frame-relay adaptive-shaping becn

        The following statement in the document is wrong:

"Ideally for data PVCs Bc = CIR/8 so that Tc = 125msec."

        There is a maximum Tc value per CIR. The greater the CIR the
smaller the Tc value must be. Unfortunately, this behavior is not
documented. In the following example, the frame-relay map-class X is
applied to an interface with one VC. We can test this behavior based on
the
following:

        Suppose we have a CIR of 640000. If Bc = CIR/8, then Bc =
640000/8
= 80000.

map-class frame-relay X
 frame-relay cir 640000
 frame-relay bc 80000
 no frame-relay adaptive-shaping
end

Rack2R6#show traffic-shape

Interface Se0/0
       Access Target Byte Sustain Excess Interval Increment
Adapt
VC List Rate Limit bits/int bits/int (ms) (bytes)
Active
604 640000 10000 80000 0 125 10000 -

        This indicates that we have 8 intervals per second (1000ms per
second, 125ms per interval), and are sending 80000 bits per interval,
which
works out to an average of 640000bps. So far so good.

        Now let's change our CIR to 800000bps:

Current configuration:
!
map-class frame-relay X
 frame-relay cir 800000
 frame-relay bc 100000
 no frame-relay adaptive-shaping
end

Rack2R6#sh traffic

Interface Se0/0
       Access Target Byte Sustain Excess Interval Increment
Adapt
VC List Rate Limit bits/int bits/int (ms) (bytes)
Active
604 800000 6300 100000 0 63 6300 -

        Notice that our interval is not 125ms now, but our Bc still
conforms
to the formula Bc = CIR/8. In actuality, we have (bear with
me) 1000/63 = 15.873015873015873015873015873016 intervals per second. At
100000 bits per interval, we are averaging about 1587301bps, which is
clearly beyond 800Kbps. This is due to the fact that for a CIR of
800Kbps,
the maximum Tc value is 63ms.

        Instead, let us compute Bc using 63 as the Tc:

Bc = (CIR * Tc) / 1000
Bc = (800000 * 63) / 1000
Bc = 50400

Rack2R6#sh run map-class
Building configuration...

Current configuration:
!
map-class frame-relay X
 frame-relay cir 800000
 frame-relay bc 50400
 no frame-relay adaptive-shaping
end

Rack2R6#sh traffic-shape

Interface Se0/0
       Access Target Byte Sustain Excess Interval Increment
Adapt
VC List Rate Limit bits/int bits/int (ms) (bytes)
Active
604 800000 6300 50400 0 63 6300 -

        We still have 1000/63 = 15.873015873015873015873015873016
intervals
per second. If we are sending 50400bits every
15.873015873015873015873015873016ms, we will be averaging 800000bps.

        I'm not sure exactly where the cutoff values are for the max Tc,
but
the router will tell you the appropriate Tc value for a CIR if you enter
it
in the map-class, apply it, then show traffic-shape.

Hope I didn't confuse you all further :)

Brian McGahan, CCIE #8593
Director of Design and Implementation
brian@cyscoexpert.com

CyscoExpert Corporation
Internetwork Consulting & Training
Toll Free: 866-CyscoXP
Outside US: 847.674.3392
Fax: 847.674.2625

> -----Original Message-----
> From: OhioHondo [mailto:ohiohondo@columbus.rr.com]
> Sent: Wednesday, April 16, 2003 10:08 PM
> To: Jonathan V Hays; 'Brian McGahan'; ccielab@groupstudy.com
> Cc: 'Mike Williams'
> Subject: RE: MINCIR = CIR?
>
> This new equation/explanation for calculating FRTS parameter -- I've
never
> seen it before. It doesn't make sense with anything I've read on the
> subject. How does it relate to the CCO iformation found at:
>
>
http://www.cisco.com/en/US/tech/tk713/tk237/technologies_configuration_e
xa
> mp
> le09186a00800942f8.shtml
>
> where:
> Bc=CIR*Tc
> Be= (AR*Tc) - Bc
>
> Where is the source of your information?
>
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of

> Jonathan V Hays
> Sent: Wednesday, April 16, 2003 9:00 PM
> To: 'Brian McGahan'; ccielab@groupstudy.com
> Cc: 'Mike Williams'
> Subject: RE: MINCIR = CIR?
>
>
> > -----Original Message-----
> > From: Brian McGahan [mailto:brian@cyscoexpert.com]
> > Sent: Wednesday, April 16, 2003 1:33 PM
> > To: 'Jonathan V Hays'; ccielab@groupstudy.com
> > Cc: 'Mike Williams'
> > Subject: RE: MINCIR = CIR?
> >
> [snip]
> > The following formulas hold true for Cisco's implementation of
> > Frame-Relay Traffic Shaping:
> >
> > Bc = (CIR * Tc)/1000
> > Be = ((AR - CIR) * Tc)/1000
> >
>
> Brian,
>
> What units are you using to require division by 1000? Most Cisco
> documents seem to give Bc= CIR * Tc.
>
>
http://www.cisco.com/en/US/tech/tk713/tk237/technologies_configuration_e
> xample09186a00800942f8.shtml
>
> See the document I cited in my earlier post (included above) under
> "Nonconfigurable parameters - interval (Tc)" -
> ---
> "The time interval during which you send the Bc bits in order to
> maintain the average rate of the CIR in seconds.
>
> Tc = Bc/CIR in seconds.
>
> The range for Tc is between 10 ms and 125 ms."
> ---
> In the example given in the Cisco document, Bc is 8000 bits, CIR is
> 64000 bps, then Tc = 8000 bits / 64000 bps = 1/8 second.
>
> Or if you use Bc = CIR * Tc, then
> Bc = 64000 bps * 1/8 second = 8000 bits.
>
> What does dividing by 1000 get me?
>
> Thanks.



This archive was generated by hypermail 2.1.4 : Mon Jun 02 2003 - 15:13:36 GMT-3