Subject: | Trivial improvement: size > 1024 |
Sometimes, in complex networks (tunnels, GRE, IPsec, etc.), it happens
that big packets are dropped and small packets go through. For this
reason, I enjoy pinging with packets of size equal to the MTU, that is
1500 for ethernet, which leads to a ICMP data size of 1472.
Currently Net::Ping limits icmp data size to 1024. I trivially expand it
to 2048 by changing the definition of $max_datasize (and the
corresponding number in the POD).
Please note that you can very well ping with sizes > MTU: the packet
will simply be fragmented. Real problems arise at about 65535.
Since this trivial improvement is very useful for me and works in my
situation, I suggest to include it in the next release.
The POD should probably mention the fact that not all network devices
answer ping of any size: there are devices for which I have to use 1400
o 1000.
Having created two tickets in a day, I promise not to open any more for
at least a month.
Best regards,
Bergonz