Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Feb 2016 12:51:45 +0300 (MSK)
From:      Maxim Konovalov <maxim.konovalov@gmail.com>
To:        bugzilla-noreply@freebsd.org
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: [Bug 207208] ping has a problem with fragmented replies
Message-ID:  <alpine.BSF.2.20.1602161242200.96928@mp2.macomnet.net>
In-Reply-To: <bug-207208-8-ONfSodTutG@https.bugs.freebsd.org/bugzilla/>
References:  <bug-207208-8@https.bugs.freebsd.org/bugzilla/> <bug-207208-8-ONfSodTutG@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

Hello,

> # netstat -sp ip
> ip:
>         0 fragments received
{...]
>         22 datagrams that can't be fragmented
>
[...]

The above looks suspicious.  Here is what it should be:

# netstat -sz >/dev/null
# netstat -sp ip | grep frag
        0 fragments received
        0 fragments dropped (dup or out of space)
        0 fragments dropped after timeout
        0 output datagrams fragmented
        0 fragments created
        0 datagrams that can't be fragmented
# ping -qc 1 -s 2500 80.113.23.178
PING 80.113.23.178 (80.113.23.178): 2500 data bytes

--- 80.113.23.178 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 59.983/59.983/59.983/0.000 ms
# netstat -sp ip | grep frag
        2 fragments received
        0 fragments dropped (dup or out of space)
        0 fragments dropped after timeout
        1 output datagram fragmented
        2 fragments created
        0 datagrams that can't be fragmented

To test ip fragmentation withoug NAT you can simple run

ping -s 32000 -c1 127.0.0.1

and check stats above.

I still think that your NAT is culprit.

-- 
Maxim Konovalov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1602161242200.96928>