If you were Registered and logged in, you could reply and use other advanced thread options
|
Posted by on November 2, 2006, 4:45 am
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).
>From my understanding, both can happen:
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
> 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).
>>From my understanding, both can happen:
> 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?
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.
> TIA,
> Loic.
>
|
|
Posted by Albert Manfredi on November 2, 2006, 11:27 am
> 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).
The minimum size for any Ethernet frame is 64 bytes (512 bits). I don't
see that the VLAN tag changes that minimum size.
> 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.
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.
> 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.
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
loic-dev@gmx.net wrote:
> 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).
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
> loic-dev@gmx.net wrote:
>
> > 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).
>
> 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.
>
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 Threads | Posted | | VLAN tagged PAUSE frame? | November 2, 2006, 9:06 pm |
| Tagged / Untagged Vlan | December 20, 2006, 7:31 am |
| Promiscuous Mode on Sun BGE Network Driver Drops VLAN-tagged Packets | April 20, 2005, 11:02 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 |
| detecting end/length of Ethernet II frame? | April 28, 2005, 11:03 am |
| Shortest ethernet frame time = 5.76uS? | September 9, 2008, 4:55 pm |
| Length field in 802.3 for tagged frames | November 24, 2006, 4:02 am |
|
|