kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Question on path mtu and IP fragmentation in Linux kernel 3.0
@ 2014-07-12 20:17 Sudharsan Vijayaraghavan
  2014-07-13  7:48 ` michi1 at michaelblizek.twilightparadox.com
  0 siblings, 1 reply; 2+ messages in thread
From: Sudharsan Vijayaraghavan @ 2014-07-12 20:17 UTC (permalink / raw)
  To: kernelnewbies

Hi,

i find that even when /proc/sys/net/ipv4/ip_no_pmtu_disc is 0 (default
value), that
is path mtu is enabled, IP layer fragments the packets if it exceeds MTU

For example MTU is 1500, i do ping -s 15000 <ip addr>, IP layer nicely fragments
the packets, how is that possible?

Does that mean PATH MTU is excercised earlier for that route and lowest MTU is
already negotiated for the destination IP address, thats dst_mtu is
already calculated

Please give expert comments

Thanks,
Sudharsna

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Question on path mtu and IP fragmentation in Linux kernel 3.0
  2014-07-12 20:17 Question on path mtu and IP fragmentation in Linux kernel 3.0 Sudharsan Vijayaraghavan
@ 2014-07-13  7:48 ` michi1 at michaelblizek.twilightparadox.com
  0 siblings, 0 replies; 2+ messages in thread
From: michi1 at michaelblizek.twilightparadox.com @ 2014-07-13  7:48 UTC (permalink / raw)
  To: kernelnewbies

Hi!

On 01:47 Sun 13 Jul     , Sudharsan Vijayaraghavan wrote:
> Hi,
> 
> i find that even when /proc/sys/net/ipv4/ip_no_pmtu_disc is 0 (default
> value), that
> is path mtu is enabled, IP layer fragments the packets if it exceeds MTU
> 
> For example MTU is 1500, i do ping -s 15000 <ip addr>, IP layer nicely fragments
> the packets, how is that possible?

Path mtu discovery basically means that "fragmentation" is done on layer 4
(e.g. TCP) and not on layer 3 (IP). If it is enabled the "do not fragment" bit
in the IP header is set. If such a packet is about to be sent via a link with
a small MTU instead of being fragmented an "fragmentation needed" header is
sent back to the sender. The sender will then sent smaller packets. Generating
packets with the right size at the sender is supposed to be faster than
fragmenting them in the middle of a route.

Protocols like ICMP or UDP cannot do "fragmentation" themself. This is why
path mtu discovery does not have any effect on them.

	-Michi
-- 
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-13  7:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-12 20:17 Question on path mtu and IP fragmentation in Linux kernel 3.0 Sudharsan Vijayaraghavan
2014-07-13  7:48 ` michi1 at michaelblizek.twilightparadox.com

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).