Monday, December 24, 2007

Calculating Frame-Relay map-class parameters

Have you struggle to understand what seems like black magic behind the calculation of the parameters of a frame-relay map? Well, I did for a long time. Frame-relay is one of those technologies that isn't going to disappear anytime soon. So if you are a consultant you will find yourself implementing QoS over frame-relay.
Now Cisco provides several ways of doing QoS over Frame-Relay but here I'm going to cover the map-class and its basic parameters.


Unlike many other documents I'm not going to explain all the theory behind this parameters, I'm going to give you a simple recipe which I use. There are mostly two types of map-class you are going to find deploying. Those to shape data traffic and those to shape VoIP traffic. Anything else is a mix of any of those two. (Most of the time... there is always those exception to the rule)

Since CIR is what you providers tell you based in what you bought, for this discussion I will assume a line of 768K with a CIR of 512K.

You will find that the documents out there always mention the Tc value and that all the calculations are based on the Tc value you are using, etcetera. Well, you know what? It is true, BUT you can not set this parameter. It is router auto-calculated value based on your other parameters. You have to "indirectly" modify it. So, this was the first issue that I always struggle with and never understood well.

It is simple, the default Tc = 1s and you can forget about everything else and remember this: The industry "best practices" define Tc = 125ms for data traffic and Tc = 10ms for VoIP traffic.

How they get there? Long story and I promised not to do all the calculations. You only need to remember this. They recommend to have 8 time-slots for DATA and for VoIP 100 time-slots. So, that's how you obtain:

Data: 1s / 8 = 0.125 s = 125 ms
VoIP: 1s / 100 = 0.010 = 10ms

The easiest way to calculate the values for a frame-relay map class for DATA:

CIR = 512000
Bc = CIR / 8 = 512000 / 8 = 64000
Be = (Available Bandwith - CIR) / 8 = (768000 - 512000) / 8 = 32000

Note: You will only need to calculate the Be if your CIR is less that the provisioning of the line and you what to have the "extra burst". Otherwise, don't define that parameter.

To calculate the sames parameters for a frame-relay map for VoIP:

CIR = 512000
Bc = CIR / 100 = 5120
Be = (Available Bandwidth - CIR) / 100 = (768000 - 512000) / 100 = 2560

Note: You will only need to calculate the Be if your CIR is less that the provisioning of the line and you what to have the "extra burst". Otherwise, don't define that parameter.

Now, there are some additional parameters that are defined for VoIP, I will only cover the "fragmentation" or "fragment size". This is not necessarily how it is explained, but the calculation works for me:

frame-relay fragment = Bc / 8 = 5120 / 8 = 640

Finally make sure you give VoIP RTP traffic the priority you want. In this case, lets say that I want to give it priority over the full CIR. I will then have an entry like this:

frame-relay ip rtp priority 16384 16383 512

So the final map-class will look like:

!
map-class frame-relay DATA_768K_CIR_512K
frame-relay cir 512000
frame-relay bc 64000
frame-relay be 32000
!
!
map-class frame-relay VoIP_768K_CIR_512K
frame-relay cir 512000
frame-relay bc 5120
frame-relay be 2560
frame-relay fragment 640
frame-relay ip rtp priority 16384 18383 512
!

Finally, apply it to our interface:

!
int Serial0/0
encapsulation frame-relay
no frame-relay inverse-arp
frame-relay traffic-shaping !Need to be activated at physical interface level
!
!
int Serial 0/0.100
ip address 192.168.100.2 255.255.255.0
frame-relay class DATA_768K_CIR_512K
frame-relay interface-dlci 100
!

And that is it. For more information visit:


VoIP over Frame Relay with Quality of Service (Fragmentation, Traffic Shaping, LLQ / IP RTP Priority)

Hope you find this useful.

46 comments:

  1. This is good article for practical approach but there is just one confusion that why you have used bc=CIR/8 for data and bc=CIR/100 while exactly it is BC=cir*tc/1000, but again if it is your best practice and if practically gives nearly accurate value then I would for for this as it is easy to remember. But for exam for which I am preparing I think BC=cir*tc/1000 is good for me. Just sharing thought with you.. Zaheer

    ReplyDelete
  2. Replies
    1. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks
      Tangki Panel
      Tangki Fiberglass
      Jual Septic Tank
      Tangki Kimia
      Jual Talang Fiber
      Jual Rotameter
      jual mesin ro
      Jual Botol Plastik Agro

      Jual Botol Plastik Murah

      Delete
  3. This blog is so nice to me. I will continue to come here again and again. Visit my link as well. Good luck
    obat aborsi
    cara menggugurkan kandungan

    ReplyDelete
  4. This article is very interesting and I really like your thoughts in writing this article is extraordinary.
    raja poker

    ReplyDelete
  5. Pretty blog, so many ideas in a single site, thanks for the informative article, keep updating more article.

    kajal hot

    ReplyDelete
  6. I hope to hear more updates from you, this is what I want to find.
    instagram viewer

    ReplyDelete
  7. Hey thanks for sharing all this information learned a lot. Do check below:
    buy logo

    ReplyDelete
  8. This blog has amazing information regarding this topic.

    Ambien 10mg is an online medical store and online pharmacy that provides its customers with the best experience in buying medicines online.
    Visit Website: Best Online Pharmacy in US

    Order Xanax from here at 15% OFF - Buy xanax Online

    Order Adderall from here at 15% OFF - Buy Adderall Online

    Order Ambien from here at 15% OFF - Buy Ambien Online

    Order Tramadol from here at 15% OFF - Buy Tramadol Online

    ReplyDelete
  9. I am very happy after visiting your website with very useful information. I am from one of the digital marketing agency... To visit my agency click on link Visitdigitalguru

    ReplyDelete
  10. You are doing a great job, and up to date with technology of your site. Ill find it as an inspiration to my current project. Thanks เว็บเล่นบาคาร่า

    ReplyDelete
  11. Thanks for sharing informative content…Find noida software company to know more and Contact us on given no.…

    ReplyDelete
  12. Nice Information...thanks for sharing this good information & i have some information about the Real Estate luxurious projects in Hyderabad, Telangana, India...
    This Project will helpful for those who are looking to buy their Dream Home with low budget..
    Thanks for Sharing..!.!

    Ambience Courtyard
    The Botanika
    Sumadhura Horizon
    Spring Is In The Air
    Aditya Athena

    ReplyDelete
  13. Nice Blog..Thanks for sharing this helpful information & i found some information about Sumadhura Horizon and it is a residential project developed by Sumadhura Infracon Pvt. Ltd. located in Kondapur, Hyderabad. It is provides 3BHK luxury residential flats.

    Sumadhura Horizon

    ReplyDelete
  14. Nice Blog..Thanks for sharing this helpful information & i found some information about Sumadhura Horizon and it is a residential project developed by Sumadhura Infracon Pvt. Ltd. located in Kondapur, Hyderabad. It is provides 3BHK luxury residential flats.

    Sumadhura Horizon Hyderabad
    Sumadhura Horizon Kondapur

    ReplyDelete
  15. I really like your blog....thanks for sharing this good information...& I found some information about The Ambience Courtyard and it is Developed by Ambience Group, located in Manikonda, Hyderabad. It provides 2, 2.5 & 3BHK flats available in affordable prices.

    Ambience Courtyard
    Ambience Courtyard Manikonda Hyderabad

    ReplyDelete
  16. I really like your blog....thanks for sharing this good information...& I found some information about The Ambience Courtyard and it is Developed by Ambience Group, located in Manikonda, Hyderabad. It provides 2, 2.5 & 3BHK flats available in affordable prices.

    Ambience Courtyard Hyderabad
    Ambience Courtyard Manikonda

    ReplyDelete
  17. Nice Blog...Thanks for sharing with us...and i have some information about The Botanika and it is a new residential project located in Gachibowli, Hyderabad. This project offers 3 BHK Luxury Apartments in Affordable Prices. Contact Us@ 98492 05577

    The Botanika

    ReplyDelete
  18. Nice Blog...Thanks for sharing with us...and i have some information about The Botanika and it is a new residential project located in Gachibowli, Hyderabad. This project offers 3 BHK Luxury Apartments in Affordable Prices. Contact Us@ 98492 05577

    The Botanika Hyderabad
    The Botanika Gachibowli

    ReplyDelete
  19. Nice Article..Thanks for sharing this helpful information please do share more ideas & i found some information about:

    Aditya Athena
    Sri Aditya Athena

    ReplyDelete
  20. Nice Article..Thanks for sharing this helpful information please do share more ideas & i found some information about:

    Aditya Athena Shaikpet
    Aditya Athena Hyderabad

    ReplyDelete
  21. Nice Information...thanks for sharing this good information & i have some information about the Real Estate luxurious projects in Hyderabad, Telangana, India...
    This Project will helpful for those who are looking to buy their Dream Home with low budget..
    Thanks for Sharing..!.!

    Ambience Courtyard
    Sumadhura Horizon
    The Botanika
    Spring is in the air
    Aditya Athena

    ReplyDelete
  22. I really like your blog thanks for sharing...and i have some information about Ambience Courtyard developed by Koncept Ambience Group, located in Manikonda, Hyderabad. Project provides 2,2.5 & 3bhk bedroom luxury flats available for sale in affordable prices.

    Ambience Courtyard
    Ambience Courtyard Hyderabad
    Ambience Courtyard Manikonda
    Ambience Courtyard Manikonda Hyderabad

    ReplyDelete
  23. Your selection of topic is very good and also well written. Thanks for sharing. I feel like all your ideas are incredible! Great job!!!
    I have some information about:
    Brigade Citadel
    Pooja Magic Breeze
    Ramky One Harmony
    Luxury Park 2

    ReplyDelete
  24. Great Information...Thanks for sharing with us...Aditya Athena is a brand new residential project developed by Sri Aditya Homes located in Shaikpet, Hyderabad. It offers 2bhk and 3bhk Residential Apartments in affordable prices.

    Aditya Athena
    Sri Aditya Athena
    Aditya Athena Hyderabad
    Aditya Athena Shaikpet

    ReplyDelete
  25. Nice Blog,I feel like all your ideas are incredible! Great job!!!
    I have some information about:

    Pbel City
    ASBL Spire
    Phoenix Luxury Park 1
    Aspire Spaces Ameya
    Aspire Ameya

    ReplyDelete
  26. I enjoyed reading your post.You make so many great points here that I read your article a couple of times.
    Luxury Park 2
    Luxury Park 2 Mamidipally
    Luxury Park 2 Hyderabad

    ReplyDelete
  27. I love the way you write and share your niche! Very interesting and different! Great job!!! I have some information about:
    Ramky One Harmony
    Ramky One Harmony Pragathi Nagar
    Ramky One Harmony Hyderabad
    Ramky One Harmony Pragathi Nagar Hyderabad

    ReplyDelete
  28. Great Blog...thanks for sharing with us...and i have some information about Sumadhura Horizon is a residential project developed by Sumadhura Infracon Pvt. Ltd, located in Kondapur, Hyderabad. It is provides 3BHK Luxury Flats in affordable prices.

    Sumadhura Horizon
    Sumadhura Horizon Hyderabad
    Sumadhura Horizon Kondapur

    ReplyDelete
  29. I enjoyed reading your post.You make so many great points here that I read your article a couple of times.
    Asrithas Jewels County
    Asrithas Jewels County Hyderabad

    ReplyDelete
  30. It’s amazing and helpful article for all sort of readers. please share more article. you must read if you are live in Australia I really appreciate to you. I also rerecommended to you lean too...
    learn more
    learn more

    ReplyDelete
  31. This content material is written very well. Your use of formatting when making your factors makes your observations very clear and clean to apprehend. Thank you.


    law dissertation Writing Service

    ReplyDelete