* Jumbo frame question...
@ 2009-07-24 15:41 Robin Getz
2009-07-24 16:32 ` David Miller
2009-07-25 3:28 ` Herbert Xu
0 siblings, 2 replies; 10+ messages in thread
From: Robin Getz @ 2009-07-24 15:41 UTC (permalink / raw)
To: netdev
Should a gigabit card, configured as 100, be sending jumbo UDP frames?
My understanding, is no - this is a spec violation..
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Half
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x000000ff (255)
Link detected: no
happly sends UDP packets over 1500 bytes in length.
Tested with TFTP, and 2.6.27 (as the tftp server).
If tftp requests block sizes that are 4096 bytes, the sent packet is a single
4096 byte packet (not multiple MTU sized packets).
?
Thanks
-Robin
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Jumbo frame question...
2009-07-24 15:41 Jumbo frame question Robin Getz
@ 2009-07-24 16:32 ` David Miller
2009-07-24 16:39 ` Rick Jones
2009-07-25 3:28 ` Herbert Xu
1 sibling, 1 reply; 10+ messages in thread
From: David Miller @ 2009-07-24 16:32 UTC (permalink / raw)
To: rgetz; +Cc: netdev
From: Robin Getz <rgetz@blackfin.uclinux.org>
Date: Fri, 24 Jul 2009 11:41:55 -0400
> Should a gigabit card, configured as 100, be sending jumbo UDP frames?
>
> My understanding, is no - this is a spec violation..
There is nothing wrong with supporting jumbo frames
when the speed is lower than 1GB.
If you configure the MTU to be jumbo size, it should
be no surprise to you that this is what gets used.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Jumbo frame question...
2009-07-24 16:32 ` David Miller
@ 2009-07-24 16:39 ` Rick Jones
2009-07-24 18:21 ` Robin Getz
2009-07-24 18:45 ` Lennart Sorensen
0 siblings, 2 replies; 10+ messages in thread
From: Rick Jones @ 2009-07-24 16:39 UTC (permalink / raw)
To: David Miller; +Cc: rgetz, netdev
David Miller wrote:
> From: Robin Getz <rgetz@blackfin.uclinux.org>
> Date: Fri, 24 Jul 2009 11:41:55 -0400
>
>>Should a gigabit card, configured as 100, be sending jumbo UDP frames?
>>
>>My understanding, is no - this is a spec violation..
In so far as there is no de jure spec for Jumbo Frames, it is rather difficult
to have a spec violation :).
> There is nothing wrong with supporting jumbo frames
> when the speed is lower than 1GB.
>
> If you configure the MTU to be jumbo size, it should
> be no surprise to you that this is what gets used.
Not a case of too much rope? Given that (IIRC) Jumbo Frame was not introduced
in Ethernet NICs until Gigabit came along (eg Alteon), the chances a (legacy)
100 Mbit/s network would have JF-capable NICs is epsilon.
rick jones
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Jumbo frame question...
2009-07-24 16:39 ` Rick Jones
@ 2009-07-24 18:21 ` Robin Getz
2009-07-24 18:44 ` Rick Jones
2009-07-24 19:13 ` Eric Dumazet
2009-07-24 18:45 ` Lennart Sorensen
1 sibling, 2 replies; 10+ messages in thread
From: Robin Getz @ 2009-07-24 18:21 UTC (permalink / raw)
To: Rick Jones; +Cc: David Miller, netdev
On Fri 24 Jul 2009 12:39, Rick Jones pondered:
> David Miller wrote:
> > From: Robin Getz <rgetz@blackfin.uclinux.org>
> > Date: Fri, 24 Jul 2009 11:41:55 -0400
> >
> >>Should a gigabit card, configured as 100, be sending jumbo UDP frames?
> >>
> >>My understanding, is no - this is a spec violation..
>
> In so far as there is no de jure spec for Jumbo Frames, it is rather
> difficult to have a spec violation :).
The spec I was talking about was the MTU...
rgetz@pinky:~> /sbin/ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:11:11:B0:A5:D4
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::211:11ff:feb0:a5d4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45978 errors:5 dropped:0 overruns:0 frame:0
TX packets:44536 errors:0 dropped:0 overruns:0 carrier:0
collisions:3193 txqueuelen:1000
RX bytes:11583575 (11.0 Mb) TX bytes:20025122 (19.0 Mb)
Interrupt:16
My MTU is 1500, but when tftp requests a block size of over that - the host
does not fragment it (like I thought it should).
> > There is nothing wrong with supporting jumbo frames
> > when the speed is lower than 1GB.
I would agree - if you had the MTU set up that big.
> > If you configure the MTU to be jumbo size, it should
> > be no surprise to you that this is what gets used.
Which it is not.
> Not a case of too much rope? Given that (IIRC) Jumbo Frame was not
> introduced in Ethernet NICs until Gigabit came along (eg Alteon), the
> chances a (legacy) 100 Mbit/s network would have JF-capable NICs is epsilon.
Yeah - I think that this is the issue - my old hub (which is what I normally
use for ethernet testing is only transferring it's MTU (1500 bytes), and
dropping the rest...
Isn't there a MTU max size discovery that should be done somewhere before the
host sends jumbo packets?
http://tools.ietf.org/html/rfc1191
And -- in the UDP/TFTP case - isn't the server responsible for determining
this? (since it need to determine if fragmentation needs to happen or not?)
-Robin
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Jumbo frame question...
2009-07-24 18:21 ` Robin Getz
@ 2009-07-24 18:44 ` Rick Jones
2009-07-24 19:13 ` Eric Dumazet
1 sibling, 0 replies; 10+ messages in thread
From: Rick Jones @ 2009-07-24 18:44 UTC (permalink / raw)
To: Robin Getz; +Cc: David Miller, netdev
Robin Getz wrote:
> On Fri 24 Jul 2009 12:39, Rick Jones pondered:
>
>>David Miller wrote:
>>
>>>From: Robin Getz <rgetz@blackfin.uclinux.org>
>>>Date: Fri, 24 Jul 2009 11:41:55 -0400
>>>
>>>
>>>>Should a gigabit card, configured as 100, be sending jumbo UDP frames?
>>>>
>>>>My understanding, is no - this is a spec violation..
>>
>>In so far as there is no de jure spec for Jumbo Frames, it is rather
>>difficult to have a spec violation :).
>
>
> The spec I was talking about was the MTU...
>
> rgetz@pinky:~> /sbin/ifconfig eth0
> eth0 Link encap:Ethernet HWaddr 00:11:11:B0:A5:D4
> inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
> inet6 addr: fe80::211:11ff:feb0:a5d4/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:45978 errors:5 dropped:0 overruns:0 frame:0
> TX packets:44536 errors:0 dropped:0 overruns:0 carrier:0
> collisions:3193 txqueuelen:1000
> RX bytes:11583575 (11.0 Mb) TX bytes:20025122 (19.0 Mb)
> Interrupt:16
>
>
> My MTU is 1500, but when tftp requests a block size of over that - the host
> does not fragment it (like I thought it should).
Well, you should have said that to begin with!-) Saying "Jumbo Frames" makes
people think you have enabled JumboFrames - ie increased the MTU to something
like 9000 bytes.
>>Not a case of too much rope? Given that (IIRC) Jumbo Frame was not
>>introduced in Ethernet NICs until Gigabit came along (eg Alteon), the
>>chances a (legacy) 100 Mbit/s network would have JF-capable NICs is epsilon.
>
>
> Yeah - I think that this is the issue - my old hub (which is what I normally
> use for ethernet testing is only transferring it's MTU (1500 bytes), and
> dropping the rest...
>
> Isn't there a MTU max size discovery that should be done somewhere before the
> host sends jumbo packets?
>
> http://tools.ietf.org/html/rfc1191
>
> And -- in the UDP/TFTP case - isn't the server responsible for determining
> this? (since it need to determine if fragmentation needs to happen or not?)
PathMTU discovery is based on the receipt of ICMP messages saying in essence
"this datagram was too big to forwared without fragmenting and the don't
fragment bit was set, please send nothing larger than <foo> this way"
That only happens when crossing routers, so if this TFTP transfer is over the
local LAN, there is no router to say so, leaving the choice of fragment size to
the sending system.
Does this NIC offer UDP Fragmentation Offload but perhaps only in GbE mode, but
the driver doesn't clear that bit when the speed is 100 Mbit, or perhaps
something up the stack cached knowledge that changed on it?
rick jones
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Jumbo frame question...
2009-07-24 18:21 ` Robin Getz
2009-07-24 18:44 ` Rick Jones
@ 2009-07-24 19:13 ` Eric Dumazet
2009-07-25 12:34 ` Robin Getz
1 sibling, 1 reply; 10+ messages in thread
From: Eric Dumazet @ 2009-07-24 19:13 UTC (permalink / raw)
To: Robin Getz; +Cc: Rick Jones, David Miller, netdev
Robin Getz a écrit :
> On Fri 24 Jul 2009 12:39, Rick Jones pondered:
>> David Miller wrote:
>>> From: Robin Getz <rgetz@blackfin.uclinux.org>
>>> Date: Fri, 24 Jul 2009 11:41:55 -0400
>>>
>>>> Should a gigabit card, configured as 100, be sending jumbo UDP frames?
>>>>
>>>> My understanding, is no - this is a spec violation..
>> In so far as there is no de jure spec for Jumbo Frames, it is rather
>> difficult to have a spec violation :).
>
> The spec I was talking about was the MTU...
>
> rgetz@pinky:~> /sbin/ifconfig eth0
> eth0 Link encap:Ethernet HWaddr 00:11:11:B0:A5:D4
> inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
> inet6 addr: fe80::211:11ff:feb0:a5d4/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:45978 errors:5 dropped:0 overruns:0 frame:0
> TX packets:44536 errors:0 dropped:0 overruns:0 carrier:0
> collisions:3193 txqueuelen:1000
> RX bytes:11583575 (11.0 Mb) TX bytes:20025122 (19.0 Mb)
> Interrupt:16
>
>
> My MTU is 1500, but when tftp requests a block size of over that - the host
> does not fragment it (like I thought it should).
Which broken driver would do this me asking, and how can you be sure a jumbo frame was ever sent ?
I guess your tcpdump is fooled by gso settings... Did you tried
# ethtool -K eth0 gso off
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Jumbo frame question...
2009-07-24 19:13 ` Eric Dumazet
@ 2009-07-25 12:34 ` Robin Getz
2009-07-25 14:25 ` Eric Dumazet
0 siblings, 1 reply; 10+ messages in thread
From: Robin Getz @ 2009-07-25 12:34 UTC (permalink / raw)
To: Eric Dumazet; +Cc: Rick Jones, David Miller, netdev
On Fri 24 Jul 2009 15:13, Eric Dumazet pondered:
> I guess your tcpdump is fooled by gso settings... Did you tried
> # ethtool -K eth0 gso off
No -- that was the problem - my hardware trying to be too smart for my software...
Thanks for the help - sorry for the noise.
-Robin
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Jumbo frame question...
2009-07-25 12:34 ` Robin Getz
@ 2009-07-25 14:25 ` Eric Dumazet
0 siblings, 0 replies; 10+ messages in thread
From: Eric Dumazet @ 2009-07-25 14:25 UTC (permalink / raw)
To: Robin Getz; +Cc: Rick Jones, David Miller, netdev
Robin Getz a écrit :
> On Fri 24 Jul 2009 15:13, Eric Dumazet pondered:
>> I guess your tcpdump is fooled by gso settings... Did you tried
>> # ethtool -K eth0 gso off
>
> No -- that was the problem - my hardware trying to be too smart for my software...
>
> Thanks for the help - sorry for the noise.
No problem, but I wonder why being 'too smart' was a problem in your case.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Jumbo frame question...
2009-07-24 16:39 ` Rick Jones
2009-07-24 18:21 ` Robin Getz
@ 2009-07-24 18:45 ` Lennart Sorensen
1 sibling, 0 replies; 10+ messages in thread
From: Lennart Sorensen @ 2009-07-24 18:45 UTC (permalink / raw)
To: Rick Jones; +Cc: David Miller, rgetz, netdev
On Fri, Jul 24, 2009 at 09:39:43AM -0700, Rick Jones wrote:
> In so far as there is no de jure spec for Jumbo Frames, it is rather
> difficult to have a spec violation :).
>
> Not a case of too much rope? Given that (IIRC) Jumbo Frame was not
> introduced in Ethernet NICs until Gigabit came along (eg Alteon), the
> chances a (legacy) 100 Mbit/s network would have JF-capable NICs is
> epsilon.
Nothing would prevent you from using a 100Mbit fiber PHY on a gigabit
capable network port, so you could have a 100Mbit port that supported
jumbo frames.
--
Len Sorensen
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Jumbo frame question...
2009-07-24 15:41 Jumbo frame question Robin Getz
2009-07-24 16:32 ` David Miller
@ 2009-07-25 3:28 ` Herbert Xu
1 sibling, 0 replies; 10+ messages in thread
From: Herbert Xu @ 2009-07-25 3:28 UTC (permalink / raw)
To: Robin Getz; +Cc: netdev
Robin Getz <rgetz@blackfin.uclinux.org> wrote:
> Should a gigabit card, configured as 100, be sending jumbo UDP frames?
>
> My understanding, is no - this is a spec violation..
>
>
> Settings for eth0:
> Supported ports: [ MII ]
> Supported link modes: 10baseT/Half 10baseT/Full
> 100baseT/Half 100baseT/Full
> 1000baseT/Half 1000baseT/Full
> Supports auto-negotiation: Yes
> Advertised link modes: 10baseT/Half 10baseT/Full
> 100baseT/Half 100baseT/Full
> 1000baseT/Half 1000baseT/Full
> Advertised auto-negotiation: Yes
> Speed: 100Mb/s
> Duplex: Half
> Port: Twisted Pair
> PHYAD: 1
> Transceiver: internal
> Auto-negotiation: on
> Supports Wake-on: g
> Wake-on: d
> Current message level: 0x000000ff (255)
> Link detected: no
>
> happly sends UDP packets over 1500 bytes in length.
>
> Tested with TFTP, and 2.6.27 (as the tftp server).
What's the kernel that you're running on the machine doing the
sending, 2.6.27? If it's the latest kernel then it may be related
to the UFO work that went in recently.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-07-25 14:26 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24 15:41 Jumbo frame question Robin Getz
2009-07-24 16:32 ` David Miller
2009-07-24 16:39 ` Rick Jones
2009-07-24 18:21 ` Robin Getz
2009-07-24 18:44 ` Rick Jones
2009-07-24 19:13 ` Eric Dumazet
2009-07-25 12:34 ` Robin Getz
2009-07-25 14:25 ` Eric Dumazet
2009-07-24 18:45 ` Lennart Sorensen
2009-07-25 3:28 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).