Dan McDonald wrote:
On Wed, May 09, 2007 at 03:51:35PM -0400, Brian Gupta wrote:
I had a an idea for something that would be useful. As far as I am
aware, this is completely new.

This would be a link layer optimization for dynamically discovering
the optimal MTU size for a given path. (To prevent excessive
fragmentation.) (MTU can be specified at the ICMP level)

We already implement PathMTU discovery.  Utter:

        netstat -rnav | grep UHA

to see the "IRE Cache" entries for a node.  We store PathMTU in those.

The current IRE cache scheme is overweight for its typical uses, but that's a
whole OTHER problem.

Hmm... I always understood PMTU discovery to work based on sending ICMP packets with the DF bit set. Routers along the path that have a smaller MTU are obliged to report an ICMP error back, which allows for discovery.

However, one area this does _not_ play well is when you don't have a router. E.g. if you have a link layer that has some nodes on it which support large frames and some which do not, I don't think you can use a large MTU.

Think, for example, of a gigabit ethernet switch where some nodes support 8K jumbo frames, and some don't. It would be really, really cool if there was some way to detect the MTU to a given node. This would allow for a much wider deployment of jumbo frames. (Right now, as I understand it, all nodes on a given subnet need to be configured with the same MTU.)

So, as Brian indicated, what we want is a *link layer* MTU discovery. What I don't know, is _how_ you would discover that. I'm not aware of anything in the spec to permit. You could, I suppose, send a large datagram, and see if it gets thru, but then you're in the position of waiting on a timeout, since there is no NAK that you'll get (the oversize packet just gets dropped on the floor with no indication other than a kstat on the node.)

One could imagine an extension to ICMP to query the max MTU, instead of relying on the DF bit. But then you also have to make the assumption that if two nodes are configured for jumbo frames, then the switch (and any other intervening equipment on the same subnet) is _required_ to support jumbo frames.

Again, what I (and probably what Brian) is thinking of is a way to increase the adoption rate of jumbo frames.

   -- Garrett

Dan
_______________________________________________
networking-discuss mailing list
[email protected]

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to