North American Network Operators Group|
Date Prev | Date Next |
Date Index |
Thread Index |
Author Index |
Re: MTU path discovery and IPSec
- From: Joe Maimon
- Date: Thu Dec 04 20:40:32 2003
Crist Clark wrote:
Joe Maimon wrote:How about only going to the bother if 'n' would only be 2 in either
algorithm? That should keep things nice and simple for all the lazy
Tony Rall wrote:
Programmers are lazy.
On Wednesday, 2003-12-03 at 09:38 PST, David Sinn <[email protected]> wrote:<snipped>
(And note that frag 1 often is not the first fragment to arrive atI agree with all I have snipped.
downstream nodes. In my example in (1), frequently frag 2 will reach
places before frag 1 does (if any router along the path reorders its
transmit queue based on packet size).)
I was wondering would it not be wiser for fraggers to frag in half
instead of just the overflow?
For instance, suppose router has to fragment 1500 byte packet to go over
1476 GRE. Instead of having a big packet/little fragment why not just
divide in half?
This would give them more equal buffer treatment, but an even bigger
potential win is to avoid perhaps a second (maybe ipsec?) fragmenting
later on down the pipe.
Once you are going to do it, do it right. It is not as if your
decreasing header overhead by producing small fragment packets. And I am
assuming the whole packet is already in buffer when it comes time to
Excerise for the reader:
Devise an algorthm that will take an arbitrarily sized packet 20-65535
octets and an arbitrarily sized MTU, > 576 octets, and split the
packet into the minimum number of "n" fragments where each fragment is
(1) less than the MTU, (2) no two fragments differ by more than 8 octets,
and the fragments obey the IP fragmentation rules, (3) data payload must
end on an 8-octet boundary for all but the last fragment and (4) each
fragment has an exact copy of the original header except for differences
in the fragmentation fields and checksum.
Compare to the algorithm of cutting the data in to "m" (mtu - ip_hl)-
chunks and putting the leftovers into the final fragment.
And we wonder why there are so many security holes.
As for the rest, I do not see the real difference. And now I will shut
ip about implementation until/when(if ever) I could write some.