Wednesday, July 7, 2010

TCAM, CAM, and FIB

Finished the first couple of chapters today in the book I'm going through (Cisco Press's CCNP SWITCH 642-813). I don't know if I recommend it or not, but I'll sure let you know following my completion of the book/642-813 exam. Today it covered some of the test's objectives like being able to do peer review and writing implementation documents and configurations for a given design. Seems a little overwhelming at first to think "Sit in front of this word processor and configure a switch" but the book does a good job of teaching you how to prepare for it.

The second thing the book covered was the inside guts of a switch. How it does exactly what it does. Which for me was just really cool. It covers the different ways Cisco has figured out how to make things work and work fast. Interesting that the CAM, TCAM, and FIB tables look up's all happen at the same time and all in hardware. Bravo.

If you're a little confused on what CAM, TCAM, and FIB tables are I'll give you a short rundown.

CAM - Content Addressable Memory: This table holds all of the MAC address information the switch has. So if a packet arrives with the destination of 000.0a9.3b9.01c then it looks that MAC address up in the CAM table. If it finds a match it spits the packets out the corresponding  interface. If that MAC was not found then it relies on a "best effort" way of forwarding where it repeats that packet on every interface on the switch (excluding the one interface the packet originated from) hoping to find it's match. CAM table's can be manually populated (Putting every mac off of each interface into the CLI manually) or it can automatically populate it's table my adding the source address of ethernet frames and it's corresponding interface to the CAM table.

TCAM - Ternary Content Addressable Memory: There are two TCAM tables. One for access lists (ACLs) and one for quality of service (QOS). It takes the access list you put in and creates sort of a "matching string" to match incoming packets to. This table is populated when you add or edit access lists and/or quality of service policies.

FIB - Forwarding Information Base: The FIB (Which is really fun to say) is the "Layer 3 CAM" if you will. It contains the routes the switch knows about. This table is populated either when you manually add a route or if routes are updated via a routing protocol.


This is what I've learned/refreshed today.

Hope this helps,
Matt

11 comments:

  1. hi matt
    thanks for the explanation but could you give a more detailed info about the TCAM.
    cause the book has a very difficult to understand explanation, where is yours is simple and clear.

    ReplyDelete
  2. The purpose of many project supervision specialists all over the globe is always to ascend the ladder of success along with perform good points. Acquiring PMI-SP certification could fulfill these types of desires of numerous serious specialists.

    ReplyDelete
  3. Hello admin,
    This is Ayesha Saleem. i have read this article and i have seen that you have great information about this. Well, i am searching for some pregnancy blogs to get to know about the 6 weeks 5 days ultrasound.

    ReplyDelete
  4. Hi Matthew i read your post about TCAM, CAM, and FIB. This article is really good because it is well written and composed well.I was doing some work on cat videos so when my work was complete then i start looking for new stuff to learn.
    Thanks for sharing this with us.

    ReplyDelete
  5. hello admin I read your post about TCAM, CAM, and FIB and the way you differentiate these three are simple to understand.
    Educational Games

    ReplyDelete
  6. Hello Matt how are you doing?
    I read the information you shared and your blog is really good because it is simple to read.
    Thanks for sharing this.
    best seo services

    ReplyDelete
  7. Thank you so much admin for providing the valuable information to us. I really like the blog and the difference you mention.Your communication style is generous.
    xmovies8

    ReplyDelete
  8. Thanks a lot admin for supplying the priceless understanding to us. watch online movies
    I rather like the blog and the difference you point out.Your communique variety is generous.

    ReplyDelete
  9. For the seekers and learners of network and switches technology this site and blog is not less than a blessing due to the best information shared, newspaper today in urdu

    ReplyDelete
  10. Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. road test near me

    ReplyDelete