Tuesday, March 16, 2010

Frame or Packets — Make Sure You Get It Right!

August 6, 2009 by Greg Ferro · 9 Comments 

It is reas­on­ably com­mon that someone starts to use the term “IP Frames” some­where is your life. Asides from mak­ing it obvi­ous that you are stu­pid, its really import­ant to under­stand why Frame and Packets mean totally dif­fer­ent things, even though they are really related.

OSI Model

Although the OSI model isn’t per­fect (because the IETF and ITU(OSI) people don’t nor­mally see things the same way), it does provide a very use­ful way of under­stand­ing how we design protocols.

DOD and OSI IP model.png

Frames

As you can see, the TCP/​IP model clearly defines a Network Access Layer, and Internet layer. The Network Access Layer is Ethernet, ATM, Frame Relay and so on. Anything that fits in this layer is a FRAME

Packets

The Internet Layer is where IP was defined. Anything in this layer IS A PACKET.

Closing

There is no arguing with this. When you write your doc­u­ments, or dis­cuss sys­tems with your col­leagues, make sure that you get your terms right.

Please rate this post:

  Why Rate Posts?
1 Star - It\\\'s Crud2 Stars - It\\\'s Tosh3 Stars - Something\\\'s missing4 Stars - Needs works5 Stars - Good Enough6 Stars - Good7 Stars - Excellent8 Stars - Brilliant9 Stars - Astonishing10 Stars - Awesomely Godlike? (2 votes, average: 10.00 out of 10)
Loading ... Loading ...

Comments

9 Responses to “Frame or Packets — Make Sure You Get It Right!”
  1. How are MPLS PDU’s called, then? Or, for example PPPoE PDU’s car­ried in EWS pseudowire over cell-​​mode MPLS, trans­por­ted in SDH that has an under­ly­ing lambda-​​switched DWDM? ;-) .

    OSI model is fine and I agree that people shouldn’t mix frames and pack­ets, but som­tims… just some­times, there is an argu­ment in everything :-)

  2. Dmitri says:

    He-​​he, if it all was so simple.

    Have a look at the IEEE 802.3as-2006, Page 6 (or clause 3.1.1 in the com­plete 802.3 which is newer than 2006), and you’ll see that they call “Frame” some­thing between DA and FCS (inclus­ive both) and “Packet” some­thing between Preamble and Extension (if any), inclus­ive both — see “Figure 3 – 1: Packet format”.

    • Interesting to bring that up… According to gen­eral under­stand­ing of OSI (I haven’t read actual doc­u­ments, just books refer­ring to it), L3 packet is car­ried in L2 frame. I.e. L3 PDU’s are con­sidered to be pay­load part of L2 PDU. We call this pro­cess call data encapsulation.

      Now, if you look at Figure 3 – 1 in IEE 802.3−2008 (page 49), frame is actu­ally car­ried in the packet ;-) . Confused, already? ;-)

    • Greg Ferro says:

      Yeah. At that point in time, the whle net­work­ing industry wasn’t very stable, and the ITU/​IEEE hadn’t sta­bil­ised their debates. Because the OSI stand­ard used the concept of a Protocol Data Unit (PDU) to encom­pass any­thing that was a mod­u­lar data seg­ment, it took a few more years for frames/​packets to sta­bil­ise into what we use today.

      I think its import­ant to the use the same buzzwords when we com­mu­nic­ate, that why it is accep­ted prac­tice to use frames at L2, pack­ets at L3. Even mod­ern OSI defin­i­tions for IS-​​IS now use this convention.

  3. Greg, your post reminds me of a recent inter­view I went to where I was filling in some basic test and cor­rec­ted a couple of their ques­tions with terms like IP Frame and Ethernet packet. When I was being inter­view by the guy that wrote the test the next day, he kept on say­ing “Ethernet packet”.

    • Greg Ferro says:

      It’s a com­mon mis­take, some people just never take the time to think through the dif­fer­ences between frame and packets.

      It’s really annoy­ing though. Correct ter­min­o­logy is vital in our busi­ness, one mis­take can leads to a lot of wasted money.

  4. Tharak says:

    IMHO, the usage of IP Frame can be com­prom­ised if you think that the frame car­ries IP protocol.

    What if it was IPx or Appletalk ?

    • Greg Ferro says:

      IPX and Appletalk are Layer3 of the IETF model and there­fore are pack­ets and move across the net­work inside Ethernet, ATM, FrameRelay, X25 or SMDS or some other type of frame.

      If you want to have an inter­est­ing dis­cus­sion, what about IBM SNA traffic which uses Ethernet as a Network /​ Layer 3 pro­tocol with a full sig­nalling cap­ab­il­ity and ses­sion man­age­ment layer. That gets confusing.

      • Tharak Abraham says:

        For IPx and Appletalk i wont mind call­ing a IPx Frame or an Appletalk Frame ano­log­ous to the IP Frame term.

        But that was new about the IBM SNA fram­ing that you men­tioned.
        Then its indeed confusing.

        Appreciate deeper thoughts like that Gregg !!

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!