Ethernet LAN min size for VLAN tagged ethernet frame

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
min size for VLAN tagged ethernet frame loic-dev 11-02-06
Posted by on November 2, 2006, 4:45 am
Please log in for more thread options


Hello everybody,

First, my apologizes if my vocabulary is imprecise/incorrect... But I
am a server guy, not a network expert.

I have a question regarding VLAN tagged ethernet frame. What's is the
minimal size of such ethernet frame? 64 bytes or 68 bytes? (not
counting the preamble/SFD that had nothing to the present discussion).


1) Some implementation reduce the data payload to 42 minimun in order
to insert the 4 bytes needed for the VLAN tagging; leading to
eventually tagged frame of min. 64 bytes.

2) Other implementations will increase the ethernet frame of 4 bytes
for the tag, leading to a frame of min. 68 bytes.

The problem I am facing is that the switch strip the 4 bytes VLAN tag
before passing the packet to the server. If a 64 bytes frame is sent to
that switch (case 1), then a 60 bytes frame is passed to the server
after stripping. The server's ethernet driver shall drop this packet,
because the sanity check "Ethernet frame is at least 64 bytes long"
isn't fulfilled. Causing many headaches like ssh connections does not
work etc. Of course, if the switch receives a 68 bytes frame, then
everything is fine.

What does the standard say about this? Is there a standard specifying a
min. size for the ethernet frame of 68 bytes?

TIA,
Loic.


Posted by Ante on November 2, 2006, 11:24 am
Please log in for more thread options



If the bridge removes the vlan tag from the frame and the frame is less than
64 bytes, the bridge should pad the frame and recompute the fcs.



Posted by Albert Manfredi on November 2, 2006, 11:27 am
Please log in for more thread options




The minimum size for any Ethernet frame is 64 bytes (512 bits). I don't
see that the VLAN tag changes that minimum size.


In minimum size frames, I would expect that most of the time, the
Ethernet payload consists of a lot of pad bytes. Not real data content
at all. So I don't think it matters very much whether some Ethernet
driver wants to add more pad bytes than necessary. I don't know whether
this is common practice or not. It seems wasteful to me, to pad more
than necessary.


This should never happen. It is the responsibility of the switch to
create the correct frame format (i.e. VLAN tagged or not VLAN tagged,
depending on the config of that port), and to ensure that any frame
transmitted from any of its ports is no less than 64 bytes long.

Bert


Posted by glen herrmannsfeldt on November 2, 2006, 1:24 pm
Please log in for more thread options


loic-dev@gmx.net wrote:
 

I was just wondering why the 64 byte minimum is still there
for full-duplex ethernet.  The physical reason for it is gone.
Gigabit doesn't do frame extension for full duplex.
I don't remember seeing this discussed before, though.

-- glen

Posted by Rich Seifert on November 2, 2006, 6:10 pm
Please log in for more thread options




I discuss it in Chapter 7 of "The Switch Book" (section 7.3.6). Here is
the relevant excerpt:

-----begin excerpt-----

7.3.6.   Ethernet Minimum Frame Size Constraint

Commercially-available Ethernet existed in its half duplex only
incarnation for over 15 years before the networking environment could
support (and the standards recognized and legitimized) the use of full
duplex mode. Because of this history, there is a huge installed product
base (and knowledge base) surrounding half duplex Ethernet. In order to
allow a peaceful coexistence between the half and full duplex modes, we
chose to retain a certain amount of baggage from half duplex Ethernet in
the full duplex version.

...

While there is no need for a minimum frame length in full duplex mode,
retaining this restriction allows device drivers and higher-layer
software to treat both flavors of Ethernet (full and half duplex)
identically.

Also, consider what would happen in a switched environment where some of
the switch ports were operating in half-duplex mode (with the minimum
frame length constraint) and others were operating in full duplex mode
(with no minimum length constraint). If a short frame were received from
a full duplex port that needed to be forwarded to a half-duplex port,
the frame would have to be either discarded or padded. Any padding would
require a change to the FCS, reducing the robustness of error detection.
In addition, if a short multicast frame were being forwarded to a
combination of full duplex and half duplex ports, the same frame would
take different forms, and require different transmission times. This
unnecessarily complicates switch design. Thus, maintaining the minimum
frame length restriction in full duplex mode allows for seamless
bridging between half duplex and full duplex Ethernets.

-----end excerpt-----
© 2000 John Wiley and Sons and Networks & Communications Consulting.
All rights reserved.

--
Rich Seifert              Networks and Communications Consulting
                          21885 Bear Creek Way
(408) 395-5700            Los Gatos, CA 95033
(408) 228-0803 FAX

Send replies to: usenet at richseifert dot com

Similar ThreadsPosted
min size for VLAN tagged ethernet frame November 2, 2006, 4:45 am
VLAN tagged PAUSE frame? November 2, 2006, 9:06 pm
Ethernet Frame size January 17, 2005, 8:01 pm
Maximum size of Ethernet frame November 11, 2004, 9:40 am
Tagged / Untagged Vlan December 20, 2006, 7:31 am
Promiscuous Mode on Sun BGE Network Driver Drops VLAN-tagged Packets April 20, 2005, 2:02 pm
Ethernet bridges and tagged BPDUs July 27, 2004, 7:04 am
Cigarette Pack Size Ethernet Bridges? September 13, 2006, 2:45 pm
why ethernet paload minimum size is 46 bytes? March 29, 2007, 7:55 am
Ethernet packet size and QinQ standard? December 8, 2009, 9:06 am
Use of ethernet frame without TCP/IP March 17, 2008, 5:48 am
Length field in 802.3 for tagged frames November 24, 2006, 4:02 am
prio-tagged frames *towards* a station? September 19, 2008, 2:45 pm
detecting end/length of Ethernet II frame? April 28, 2005, 2:03 pm
Shortest ethernet frame time = 5.76uS? September 9, 2008, 4:55 pm
Latest PostsForumRSS
NEWS: Samsung takes on the Apple iPad with the 7 inch Galaxy... Wireless Networking
c3560 port configuration Cisco Systems
Broadband 2010: A Big Slowdown [telecom] General Telecommunications Forum
Control Hot Water Circ Pump With X10? General Home Automation
Official Course CCNP TSHOOT 642-832 / Foundation Learning Gu... Cisco Certification
Speedflow Communications Honored for Innovation Voice-Over-IP
USB _to_ RJ45 (not from) connection Ethernet LAN
FAQ: Maximizing cable modem or DSL speed Cable Modems
CASH FOR CISCO - I BUY USED AND NEW EQUIPMENT & LOTS MOR... Telecom Technical
FAQ: Maximizing cable modem or DSL speed Digital Subscriber Line
How to set up Meridian 1 to "provide clock" to a C... Nortel Networks
New Discovery about WDM LAN and Telecom Cabling
Control Hot Water Circ Pump With X10? Home Automation
Text file to automate restoring a dropped VPN connection. Virtual Private Networks
Home Theater Installation Home Theater
Re: The Turkic Languages in a Nutshell Fiber Optics
sip Video Conferencing
Residential Cabling Guide Home Cabling Guide

Finally, an instantly downloadable book that saves you thousands in home improvement dollars! Enjoy living in 21st century technology-advanced home while increasing its selling value and competitive advantage on the real estate market. Whether your cabling is for home office or high-tech leisure, you can wire your home yourself or learn "wirish" to speak with your cabling contractors in their language!

Click Here to learn more