You are not logged in.

#1 2014-04-18 15:12:04

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

[solved] Broken ping

Hi all, a recent update seems to have caused the "ping" binary to misbehave. Pinging a known good server on a known network now causes the time interval between each ping  (after typing "ping google.com") to become sporadic and random.

I have two servers: server A, which I do not update frequently (maybe about once a month), and server B, which is updated daily or every other day.

The ping command on server A works as expected, but not on server B. Here is the full package list of each server:

A:

acl 2.2.52-2
apcupsd 3.14.11-1
apr 1.5.0-1
apr-util 1.5.3-4
archlinux-keyring 20140220-1
aria2 1.18.5-1
attr 2.4.47-1
autoconf 2.69-1
automake 1.14.1-1
avahi 0.6.31-11
bash 4.3.008-2
bc 1.06.95-1
binutils 2.24-2
bison 3.0.2-1
bluez-libs 5.17-1
btrfs-progs 3.14-1
bzip2 1.0.6-5
c-ares 1.10.0-2
ca-certificates 20140325-1
ca-certificates-java 20130815-1
cifs-utils 6.2-1
clang 3.4-1
cloog 0.18.1-2
coreutils 8.22-4
cracklib 2.9.0-2
cronie 1.4.11-1
cryptsetup 1.6.4-1
curl 7.36.0-1
db 5.3.28-1
dbus 1.8.0-1
ddclient 3.8.2-1
device-mapper 2.02.106-1
dhcpcd 6.3.2-1
diffutils 3.3-1
dirmngr 1.1.1-2
dmidecode 2.12-2
dnssec-anchors 20130320-1
dnsutils 9.9.2.P2-1
docbook-xml 4.5-5
docbook-xsl 1.78.1-1
dos2unix 6.0.4-1
e2fsprogs 1.42.9-2
expat 2.1.0-3
extundelete 0.2.4-1
fakeroot 1.20-1
file 5.18-1
filesystem 2013.05-2
findutils 4.4.2-5
flex 2.5.39-1
fontconfig 2.11.1-1
freetype2 2.5.3-2
gamin 0.1.10-8
gawk 4.1.0-2
gc 7.4.0-1
gcc 4.8.2-8
gcc-libs 4.8.2-8
gdb 7.7-1
gdbm 1.11-1
gettext 0.18.3.2-1
git 1.9.2-1
glib2 2.38.2-1
glibc 2.19-3
gmp 6.0.0-1
gnu-netcat 0.7.1-4
gnupg 2.0.22-2
gnutls 3.3.0-1
gpgme 1.4.3-1
gpm 1.20.7-4
gptfdisk 0.8.10-1
graphite 1:1.2.4-1
grep 2.18-1
groff 1.22.2-6
gstreamer0.10 0.10.36-3
gstreamer0.10-base 0.10.36-2
guile 2.0.11-1
gzip 1.6-1
harfbuzz 0.9.26-1
hicolor-icon-theme 0.13-1
htop 1.0.2-2
hwids 20130915.1-1
iana-etc 2.30-4
icu 52.1-1
id3 0.78-3
id3lib 3.8.3-15
id3v2 0.1.12-2
idnkit 1.0-3
inetutils 1.9.2-1
iniparser 3.1-4
iotop 0.6-2
iproute2 3.12.0-1
iptables 1.4.21-1
iputils 20121221-3
irssi 0.8.15-8
isl 0.12.2-1
jansson 2.5-2
jdk7-openjdk 7.u51_2.4.6-1
jre7-openjdk 7.u51_2.4.6-1
jre7-openjdk-headless 7.u51_2.4.6-1
kbd 2.0.1-1
kbproto 1.0.6-1
kexec-tools 2.0.4-2
keyutils 1.5.9-1
kmod 17-1
krb5 1.12.1-1
lcms2 2.5-2
ldb 1.1.16-1
ldns 1.6.17-1
less 458-1
libaio 0.3.109-7
libarchive 3.1.2-6
libassuan 2.1.1-1
libatomic_ops 7.2.e-1
libbsd 0.6.0-2
libcap 2.24-1
libcap-ng 0.7.3-1
libcups 1.7.2-1
libdaemon 0.14-2
libdbus 1.8.0-1
libedit 20140213_3.1-1
libevent 2.0.21-3
libffi 3.0.13-4
libfontenc 1.1.2-1
libgcrypt 1.6.1-1
libgpg-error 1.12-1
libgssglue 0.4-2
libice 1.0.8-2
libidn 1.28-2
libjpeg-turbo 1.3.1-1
libksba 1.3.0-1
libldap 2.4.39-1
libltdl 2.4.2-12
libmpc 1.0.2-2
libnl 3.2.24-1
libpcap 1.5.3-1
libpipeline 1.3.0-1
libpng 1.6.10-1
libsasl 2.1.26-7
libseccomp 2.1.1-1
libsigc++ 2.3.1-1
libsm 1.2.2-2
libsodium 0.4.5-2
libssh2 1.4.3-2
libsystemd 212-2
libtasn1 3.4-1
libtiff 4.0.3-4
libtirpc 0.2.4-1
libtool 2.4.2-12
libtorrent 0.13.3-2
libunistring 0.9.3-6
libusb 1.0.18-1
libutil-linux 2.24.1-6
libwbclient 4.1.6-1
libx11 1.6.2-1
libxau 1.0.8-2
libxcb 1.10-1
libxdmcp 1.1.1-1
libxext 1.3.2-1
libxft 2.3.1-2
libxml2 2.9.1-5
libxmu 1.1.2-1
libxrender 0.9.8-1
libxslt 1.1.28-3
libxss 1.2.2-2
libxt 1.1.4-1
libxv 1.0.10-1
libyaml 0.1.6-1
licenses 20130203-1
linux 3.14-5
linux-api-headers 3.13.2-1
linux-docs 3.14-5
linux-firmware 20140316.dec41bc-1
linux-headers 3.14-5
llvm 3.4-1
llvm-libs 3.4-1
lm_sensors 3.3.5-1
logrotate 3.8.7-1
lsof 4.87-2
lua 5.2.3-1
lvm2 2.02.106-1
lzo2 2.06-3
m4 1.4.17-1
make 4.0-2
man-db 2.6.6-1
man-pages 3.64-1
mdadm 3.3-2
mercurial 2.9.2-1
mkinitcpio 17-1
mkinitcpio-busybox 1.21.1-2
mpfr 3.1.2.p5-1
nano 2.2.6-2
ncurses 5.9-6
neon 0.30.0-1
net-tools 1.60.20130531git-1
netctl 1.6-1
nettle 2.7.1-1
nmap 6.45-1
nspr 4.10.4-1
nss 3.16-1
nss-mdns 0.10-5
ntp 4.2.6.p5-19
openresolv 3.5.6-1
openssh 6.6p1-1
openssl 1.0.1.g-1
orc 0.4.18-1
p11-kit 0.20.2-1
pacman 4.1.2-5
pacman-mirrorlist 20140405-1
pam 1.1.8-3
pambase 20130928-1
parted 3.1-4
patch 2.7.1-2
pciutils 3.2.1-1
pcmciautils 018-7
pcre 8.35-1
perl 5.18.2-2
perl-digest-sha1 2.13-4
perl-error 0.17022-1
perl-io-socket-ssl 1.981-1
perl-net-ssleay 1.58-1
perl-test-pod 1.48-1
perl-uri 1.60-1
perl-yaml-syck 1.27-1
phantomjs 1.9.7-1
pinentry 0.8.3-1
pkg-config 0.28-1
pkgfile 13-1
popt 1.16-7
postgresql 9.3.4-1
postgresql-libs 9.3.4-1
ppp 2.4.6-2
procps-ng 3.3.9-2
psmisc 22.20-1
pth 2.0.7-5
python 3.4.0-2
python-beautifulsoup4 4.3.2-2
python-dateutil 2.2-2
python-flask 0.10.1-5
python-itsdangerous 0.24-1
python-jinja 2.7.2-2
python-markupsafe 0.19-2
python-nose 1.3.1-2
python-passlib 1.6.2-3
python-pip 1.5.4-2
python-psycopg2 2.5.2-2
python-pyzmq 14.1.1-1
python-requests 2.2.1-2
python-setuptools 3.4.4-1
python-six 1.6.1-2
python-sqlalchemy 0.9.4-1
python-werkzeug 0.9.4-2
python-yaml 3.11-1
python2 2.7.6-3
python2-eyed3 0.7.4-1
readline 6.3.003-2
renderproto 0.11.1-2
rsync 3.1.0-1
rtorrent 0.9.3-2
run-parts 4.4-1
samba 4.1.6-1
screen 4.0.3-15
scrnsaverproto 1.2.2-1
sed 4.2.2-3
serf 1.3.4-1
shadow 4.1.5.1-7
smartmontools 6.2-1
smbclient 4.1.6-1
sqlite 3.8.4.3-1
strace 4.8-1
subversion 1.8.8-1
sudo 1.8.10.p2-1
sysfsutils 2.1.0-8
syslinux 6.02-8
systemd 212-2
systemd-sysvcompat 212-2
talloc 2.1.0-1
tar 1.27.1-1
tcl 8.6.1-1
tdb 1.2.12-1
tevent 0.9.21-2
texinfo 5.2-2
tk 8.6.1-1
tmux 1.9_a-1
tree 1.6.0-2
ttf-dejavu 2.34-1
tzdata 2014b-1
unixodbc 2.3.2-1
usbutils 007-1
util-linux 2.24.1-6
uwsgi 2.0.3-1
uwsgi-plugin-common 2.0.3-1
uwsgi-plugin-python 2.0.3-1
valgrind 3.9.0-4
videoproto 2.3.2-1
vim-hg 7.4.256-1
wget 1.15-1
which 2.20-6
whois 5.1.1-1
wireless_tools 30.pre9-1
xcb-proto 1.10-2
xdg-utils 1.1.0.git20140207-1
xextproto 7.3.0-1
xmlrpc-c 1:1.36.00-1
xmlto 0.0.25-5
xorg-fonts-encodings 1.0.4-3
xorg-mkfontdir 1.0.7-1
xorg-mkfontscale 1.1.1-1
xorg-xset 1.2.3-1
xproto 7.0.25-1
xz 5.0.5-2
zeromq 4.0.4-2
zlib 1.2.8-3
zsh 5.0.5-1

B:

abs 2.4.4-1
ack 2.12-1
acl 2.2.52-2
alsa-lib 1.0.27.2-1
apr 1.5.0-1
apr-util 1.5.3-4
archlinux-keyring 20140220-1
aria2-fast 1.18.1-1
astyle 2.04-1
attr 2.4.47-1
autoconf 2.69-1
automake 1.14.1-1
avahi 0.6.31-11
avr-binutils 2.24-1
bash 4.3.008-2
binutils 2.24-2
bison 3.0.2-1
boost 1.55.0-5
boost-libs 1.55.0-5
bzip2 1.0.6-5
c-ares 1.10.0-2
ca-certificates 20140325-1
cifs-utils 6.2-1
clang 3.4-1
cloog 0.18.1-2
cmake 2.8.12.2-2
colordiff 1.0.13-1
coreutils 8.22-4
cracklib 2.9.0-2
cronie 1.4.11-1
cryptsetup 1.6.4-1
ctags 5.8-3
curl 7.36.0-1
cython 0.20.1-2
cython2 0.20.1-2
czmq-git 20140407-1
czmqpp-git 20140407-1
db 5.3.28-1
dbus 1.8.0-1
ddclient 3.8.2-1
device-mapper 2.02.106-1
dhcpcd 6.3.2-1
diffutils 3.3-1
dirmngr 1.1.1-2
dnssec-anchors 20130320-1
dnsutils 9.9.2.P2-1
dos2unix 6.0.4-1
e2fsprogs 1.42.9-2
ethtool 1:3.13-1
expat 2.1.0-3
fakeroot 1.20-1
file 5.18-1
filesystem 2013.05-2
findutils 4.4.2-5
flac 1.3.0-1
flex 2.5.39-1
fontconfig 2.11.1-1
freetype2 2.5.3-2
gamin 0.1.10-8
gawk 4.1.0-2
gc 7.4.0-1
gcc 4.8.2-8
gcc-libs 4.8.2-8
gcc-objc 4.8.2-8
gdb 7.7-1
gdbm 1.11-1
gettext 0.18.3.2-1
giflib 5.0.5-1
git 1.9.2-1
glib2 2.40.0-1
glibc 2.19-3
gmp 6.0.0-1
gnupg 2.0.22-2
gnutls 3.3.0-1
go 2:1.2.1-4
gpgme 1.4.3-1
gpm 1.20.7-4
gptfdisk 0.8.10-1
graphite 1:1.2.4-1
grep 2.18-1
groff 1.22.2-6
gstreamer0.10 0.10.36-3
gstreamer0.10-base 0.10.36-2
guile 2.0.11-1
gummiboot 44-2
gzip 1.6-1
harfbuzz 0.9.26-1
hdparm 9.43-2
htop 1.0.2-2
httperf 0.9.0-5
hwids 20130915.1-1
iana-etc 2.30-4
icu 52.1-1
id3 0.78-3
id3lib 3.8.3-15
id3v2 0.1.12-2
idnkit 1.0-3
inetutils 1.9.2-1
iniparser 3.1-4
iproute2 3.14.0-1
iptables 1.4.21-1
iputils 20121221-3
ipython 2.0.0-1
isl 0.12.2-1
jansson 2.6-1
jfsutils 1.1.15-4
jsoncpp 0.5.0-4
kbd 2.0.1-1
kbproto 1.0.6-1
keyutils 1.5.9-1
kmod 17-1
krb5 1.12.1-1
ldb 1.1.16-1
ldns 1.6.17-1
leptonica 1.69-10
less 458-1
libaio 0.3.109-7
libao 1.2.0-1
libarchive 3.1.2-6
libassuan 2.1.1-1
libatomic_ops 7.2.e-1
libbsd 0.6.0-2
libcap 2.24-1
libcap-ng 0.7.3-1
libcups 1.7.2-1
libdaemon 0.14-2
libdbus 1.8.0-1
libedit 20140213_3.1-1
libev 4.15-2
libevent 2.0.21-3
libffi 3.0.13-4
libgcrypt 1.6.1-1
libgpg-error 1.12-1
libidn 1.28-2
libjpeg-turbo 1.3.1-1
libksba 1.3.0-1
libldap 2.4.39-1
libltdl 2.4.2-12
libmpc 1.0.2-2
libnl 3.2.24-1
libogg 1.3.1-2
libpcap 1.5.3-1
libpipeline 1.3.0-1
libpng 1.6.10-1
libsasl 2.1.26-7
libseccomp 2.1.1-1
libsodium 0.4.5-2
libssh2 1.4.3-2
libsystemd 212-3
libtasn1 3.4-1
libtiff 4.0.3-4
libtirpc 0.2.4-1
libtool 2.4.2-12
libunistring 0.9.3-6
libusb 1.0.18-1
libutil-linux 2.24.1-6
libuv 0.11.24-1
libvorbis 1.3.4-1
libwbclient 4.1.7-1
libwebp 0.4.0-1
libx11 1.6.2-1
libxau 1.0.8-2
libxcb 1.10-1
libxdmcp 1.1.1-1
libxext 1.3.2-1
libxml2 2.9.1-5
libxslt 1.1.28-3
libxv 1.0.10-1
libyaml 0.1.6-1
licenses 20130203-1
linux 3.14.1-1
linux-api-headers 3.13.2-1
linux-firmware 20140316.dec41bc-1
llvm 3.4-1
llvm-libs 3.4-1
lm_sensors 3.3.5-1
logrotate 3.8.7-3
lsof 4.87-2
lua 5.2.3-1
lvm2 2.02.106-1
lzo2 2.06-3
m4 1.4.17-1
make 4.0-2
man-db 2.6.7.1-1
man-pages 3.64-1
mdadm 3.3-2
mercurial 2.9.2-1
mime-types 9-1
mkinitcpio 17-1
mkinitcpio-busybox 1.21.1-2
mpfr 3.1.2.p5-1
nano 2.2.6-2
ncurses 5.9-6
net-tools 1.60.20130531git-1
netctl 1.6-1
nettle 2.7.1-1
nginx 1.4.7-2
nmap 6.45-1
nodejs 0.10.26-1
nss-mdns 0.10-5
openresolv 3.5.6-1
openssh 6.6p1-1
openssl 1.0.1.g-1
orc 0.4.18-1
p11-kit 0.20.2-1
p7zip 9.20.1-9
pacman 4.1.2-5
pacman-mirrorlist 20140405-1
pam 1.1.8-3
pambase 20130928-1
patch 2.7.1-2
pciutils 3.2.1-1
pcmciautils 018-7
pcre 8.35-1
pep8 1.5.6-1
perl 5.18.2-2
perl-digest-sha1 2.13-4
perl-error 0.17022-1
perl-file-next 1.12-1
perl-io-socket-ssl 1.981-1
perl-net-ssleay 1.58-1
perl-uri 1.60-1
phantomjs 1.9.7-1
pinentry 0.8.3-1
pkg-config 0.28-1
pkgfile 13-1
popt 1.16-7
postgresql 9.3.4-1
postgresql-libs 9.3.4-1
procps-ng 3.3.9-2
psmisc 22.20-1
pth 2.0.7-5
pv 1.5.2-1
pwgen 2.06-4
pypy3 2.1beta1-2
python 3.4.0-2
python-beautifulsoup4 4.3.2-2
python-dateutil 2.2-2
python-flask 0.10.1-5
python-html5lib 0.999-4
python-itsdangerous 0.24-1
python-jedi 0.7.0-5
python-jinja 2.7.2-2
python-lxml 3.3.5-1
python-markupsafe 0.19-2
python-nose 1.3.1-2
python-passlib 1.6.2-3
python-pip 1.5.4-2
python-psycopg2 2.5.2-2
python-pycurl 7.19.3.1-2
python-pytz 2014.2-1
python-pyzmq 14.1.1-1
python-requests 2.2.1-2
python-setuptools 3.4.4-1
python-six 1.6.1-2
python-sqlalchemy 0.9.4-1
python-tornado 3.2.0-2
python-werkzeug 0.9.4-2
python-yaml 3.11-1
python2 2.7.6-3
python2-gevent 1.0-1
python2-greenlet 0.4.2-3
python2-grequests 0.2.0-1
python2-requests 2.2.1-2
python2-setuptools 3.4.4-1
r8168 8.038.00-2
readline 6.3.003-2
reiserfsprogs 3.6.24-1
rsync 3.1.0-1
run-parts 4.4-1
s-nail 14.6.4-1
samba 4.1.7-1
sed 4.2.2-3
serf 1.3.4-1
shadow 4.1.5.1-9
shared-mime-info 1.2-2
smbclient 4.1.7-1
sqlite 3.8.4.3-1
stress 1.0.4-4
subversion 1.8.8-1
sudo 1.8.10.p2-1
sysfsutils 2.1.0-8
systemd 212-3
systemd-sysvcompat 212-3
taglib 1.9.1-1
talloc 2.1.0-2
tar 1.27.1-1
tdb 1.2.12-1
tesseract 3.02.02-3
tesseract-data-eng 3.02.02-3
tevent 0.9.21-3
texinfo 5.2-2
tmux 1.9_a-1
tree 1.6.0-2
tzdata 2014b-1
unzip 6.0-6
upx 3.91-1
usbutils 007-1
util-linux 2.24.1-6
uwsgi 2.0.3-1
uwsgi-plugin-common 2.0.3-1
uwsgi-plugin-python 2.0.3-1
valgrind 3.9.0-4
vi 1:050325-3
videoproto 2.3.2-1
vim-hg 7.4.258-1
vorbis-tools 1.4.0-3
wget 1.15-1
which 2.20-6
whois 5.1.1-1
xcb-proto 1.10-2
xextproto 7.3.0-1
xfsprogs 3.1.11-2
xmlto 0.0.25-5
xproto 7.0.26-1
xz 5.0.5-2
zeromq 4.0.4-2
zlib 1.2.8-3
zsh 5.0.5-1

Can anyone shed some light on this issue?

Last edited by solarwind (2014-04-22 14:28:48)

Offline

#2 2014-04-19 12:10:20

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [solved] Broken ping

Can you provide examples of the timings please.  I update 2 machines daily and I haven't noticed anything at all odd with ping.

Does anything else misbehave?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2014-04-19 14:03:09

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [solved] Broken ping

I also find this highly unlikely. Are the network-connections of both machines comparable? Anything else that might be bogging down the system or the line? Maybe your iptables differ?

Offline

#4 2014-04-19 16:06:47

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: [solved] Broken ping

loafer wrote:

Can you provide examples of the timings please.  I update 2 machines daily and I haven't noticed anything at all odd with ping.

Does anything else misbehave?

Nothing else seems to misbehave. The ping latency values themselves are correct, but the delay between each ping is sporadic.

For example, doing ping -i 1 archlinux.org actually behaves more like ping -i 5 (but a bit more random).

Last edited by solarwind (2014-04-19 16:13:53)

Offline

#5 2014-04-19 16:12:35

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: [solved] Broken ping

Spider.007 wrote:

I also find this highly unlikely. Are the network-connections of both machines comparable? Anything else that might be bogging down the system or the line? Maybe your iptables differ?

Network connections are exactly the same. Cat 6 cable to the same Ethernet switch. Tested with iptables with empty rules, exactly the same behaviour. There's next to no traffic on the Ethernet when tested, so it can't be the line getting saturated.

I've never had this problem before. Maybe it might be the Ethernet chipset driver. I'm using the r8168 module package from community.

Last edited by solarwind (2014-04-19 16:13:16)

Offline

#6 2014-04-19 16:23:21

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [solved] Broken ping

Okay, so you could run `tcpdump icmp`; tell us what the network-traffic looks like while ping is pausing. Alternatively use strace to check what is happening

Offline

#7 2014-04-21 19:08:36

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: [solved] Broken ping

Spider.007 wrote:

Okay, so you could run `tcpdump icmp`; tell us what the network-traffic looks like while ping is pausing. Alternatively use strace to check what is happening

[root@server] ~
# ping -i 1 -c 4 archlinux.org
PING archlinux.org (66.211.214.131) 56(84) bytes of data.
64 bytes from 66.211.214.131: icmp_seq=1 ttl=55 time=45.6 ms
64 bytes from 66.211.214.131: icmp_seq=2 ttl=55 time=45.9 ms
64 bytes from 66.211.214.131: icmp_seq=3 ttl=55 time=45.9 ms
64 bytes from 66.211.214.131: icmp_seq=4 ttl=55 time=46.4 ms

--- archlinux.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 15146ms
rtt min/avg/max/mdev = 45.661/46.012/46.439/0.316 ms

Here's the output from tcpdump:

[root@server] ~
# tcpdump -i enp2s0 icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on enp2s0, link-type EN10MB (Ethernet), capture size 65535 bytes
14:58:06.847112 IP server.local > 66.211.214.131: ICMP echo request, id 2239, seq 1, length 64
14:58:06.892752 IP 66.211.214.131 > server.local: ICMP echo reply, id 2239, seq 1, length 64
14:58:11.896257 IP server.local > 66.211.214.131: ICMP echo request, id 2239, seq 2, length 64
14:58:11.942201 IP 66.211.214.131 > server.local: ICMP echo reply, id 2239, seq 2, length 64
14:58:16.946290 IP server.local > 66.211.214.131: ICMP echo request, id 2239, seq 3, length 64
14:58:16.992227 IP 66.211.214.131 > server.local: ICMP echo reply, id 2239, seq 3, length 64
14:58:21.993499 IP server.local > 66.211.214.131: ICMP echo request, id 2239, seq 4, length 64
14:58:22.039906 IP 66.211.214.131 > server.local: ICMP echo reply, id 2239, seq 4, length 64

Even though I requested a one second interval, it was unable to run as such. It works fine on the other computer.

Here's the strace output:

[root@server] ~
# strace ping -i 1 -c 1 archlinux.org 2>&1 | tee strace.txt

execve("/usr/bin/ping", ["ping", "-i", "1", "-c", "1", "archlinux.org"], [/* 35 vars */]) = 0
brk(0)                                  = 0x1805000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=63663, ...}) = 0
mmap(NULL, 63663, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7ff0e5758000
close(3)                                = 0
open("/usr/lib/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\25\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=16984, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0e5770000
mmap(NULL, 2112208, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0e5340000
mprotect(0x7ff0e5344000, 2093056, PROT_NONE) = 0
mmap(0x7ff0e5543000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0e5543000
close(3)                                = 0
open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2022349, ...}) = 0
mmap(NULL, 3832336, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0e4f98000
mprotect(0x7ff0e5136000, 2097152, PROT_NONE) = 0
mmap(0x7ff0e5336000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19e000) = 0x7ff0e5336000
mmap(0x7ff0e533c000, 14864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0e533c000
close(3)                                = 0
open("/usr/lib/libattr.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\24\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=18736, ...}) = 0
mmap(NULL, 2113912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff0e4d90000
mprotect(0x7ff0e4d94000, 2093056, PROT_NONE) = 0
mmap(0x7ff0e4f93000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff0e4f93000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0e576f000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0e576e000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0e576d000
arch_prctl(ARCH_SET_FS, 0x7ff0e576e700) = 0
mprotect(0x7ff0e5336000, 16384, PROT_READ) = 0
mprotect(0x7ff0e4f93000, 4096, PROT_READ) = 0
mprotect(0x608000, 4096, PROT_READ)     = 0
mprotect(0x7ff0e5768000, 4096, PROT_READ) = 0
munmap(0x7ff0e5758000, 63663)           = 0
brk(0)                                  = 0x1805000
brk(0x1826000)                          = 0x1826000
capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0
capget({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_CHOWN|CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_FOWNER|CAP_FSETID|CAP_KILL|CAP_SETGID|CAP_SETUID|CAP_SETPCAP|CAP_LINUX_IMMUTABLE|CAP_NET_BIND_SERVICE|CAP_NET_BROADCAST|CAP_NET_ADMIN|CAP_NET_RAW|CAP_IPC_LOCK|CAP_IPC_OWNER|CAP_SYS_MODULE|CAP_SYS_RAWIO|CAP_SYS_CHROOT|CAP_SYS_PTRACE|CAP_SYS_PACCT|CAP_SYS_ADMIN|CAP_SYS_BOOT|CAP_SYS_NICE|CAP_SYS_RESOURCE|CAP_SYS_TIME|CAP_SYS_TTY_CONFIG|CAP_MKNOD|CAP_LEASE|CAP_AUDIT_WRITE|CAP_AUDIT_CONTROL|CAP_SETFCAP, CAP_CHOWN|CAP_DAC_OVERRIDE|CAP_DAC_READ_SEARCH|CAP_FOWNER|CAP_FSETID|CAP_KILL|CAP_SETGID|CAP_SETUID|CAP_SETPCAP|CAP_LINUX_IMMUTABLE|CAP_NET_BIND_SERVICE|CAP_NET_BROADCAST|CAP_NET_ADMIN|CAP_NET_RAW|CAP_IPC_LOCK|CAP_IPC_OWNER|CAP_SYS_MODULE|CAP_SYS_RAWIO|CAP_SYS_CHROOT|CAP_SYS_PTRACE|CAP_SYS_PACCT|CAP_SYS_ADMIN|CAP_SYS_BOOT|CAP_SYS_NICE|CAP_SYS_RESOURCE|CAP_SYS_TIME|CAP_SYS_TTY_CONFIG|CAP_MKNOD|CAP_LEASE|CAP_AUDIT_WRITE|CAP_AUDIT_CONTROL|CAP_SETFCAP, 0}) = 0
capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0
capset({_LINUX_CAPABILITY_VERSION_3, 0}, {0, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0
prctl(PR_SET_KEEPCAPS, 1)               = 0
getuid()                                = 0
setuid(0)                               = 0
prctl(PR_SET_KEEPCAPS, 0)               = 0
getuid()                                = 0
geteuid()                               = 0
capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0
capget({_LINUX_CAPABILITY_VERSION_3, 0}, {0, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0
capset({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_NET_RAW, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0
socket(PF_INET, SOCK_RAW, IPPROTO_ICMP) = 3
capget({_LINUX_CAPABILITY_VERSION_3, 0}, NULL) = 0
capget({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_NET_RAW, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0
capset({_LINUX_CAPABILITY_VERSION_3, 0}, {0, CAP_NET_ADMIN|CAP_NET_RAW, 0}) = 0
getpid()                                = 2452
open("/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=50, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0e576c000
read(4, "# Generated by resolvconf\nnamese"..., 4096) = 50
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x7ff0e576c000, 4096)            = 0
uname({sys="Linux", node="server", ...}) = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4)                                = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(4)                                = 0
open("/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=286, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0e576c000
read(4, "# Begin /etc/nsswitch.conf\n\npass"..., 4096) = 286
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x7ff0e576c000, 4096)            = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=63663, ...}) = 0
mmap(NULL, 63663, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7ff0e5758000
close(4)                                = 0
open("/usr/lib/libnss_files.so.2", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\"\0\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0755, st_size=47712, ...}) = 0
mmap(NULL, 2144392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7ff0e4b80000
mprotect(0x7ff0e4b8b000, 2093056, PROT_NONE) = 0
mmap(0x7ff0e4d8a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xa000) = 0x7ff0e4d8a000
close(4)                                = 0
mprotect(0x7ff0e4d8a000, 4096, PROT_READ) = 0
munmap(0x7ff0e5758000, 63663)           = 0
open("/etc/host.conf", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=63, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0e576c000
read(4, "#\n# /etc/host.conf\n#\n\norder host"..., 4096) = 63
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x7ff0e576c000, 4096)            = 0
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0e576c000
read(4, "#\n# /etc/hosts: static lookup ta"..., 4096) = 195
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x7ff0e576c000, 4096)            = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=63663, ...}) = 0
mmap(NULL, 63663, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7ff0e5758000
close(4)                                = 0
open("/usr/lib/libnss_mdns.so.2", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\f\0\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0755, st_size=14496, ...}) = 0
mmap(NULL, 2109664, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7ff0e4978000
mprotect(0x7ff0e497a000, 2097152, PROT_NONE) = 0
mmap(0x7ff0e4b7a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x2000) = 0x7ff0e4b7a000
close(4)                                = 0
mprotect(0x7ff0e4b7a000, 4096, PROT_READ) = 0
munmap(0x7ff0e5758000, 63663)           = 0
open("/etc/mdns.allow", O_RDONLY)       = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=63663, ...}) = 0
mmap(NULL, 63663, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7ff0e5758000
close(4)                                = 0
open("/usr/lib/libnss_dns.so.2", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\21\0\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0755, st_size=22960, ...}) = 0
mmap(NULL, 2117896, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7ff0e4770000
mprotect(0x7ff0e4775000, 2093056, PROT_NONE) = 0
mmap(0x7ff0e4974000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x4000) = 0x7ff0e4974000
close(4)                                = 0
open("/usr/lib/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220:\0\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0755, st_size=84864, ...}) = 0
mmap(NULL, 2189928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7ff0e4558000
mprotect(0x7ff0e456c000, 2093056, PROT_NONE) = 0
mmap(0x7ff0e476b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x13000) = 0x7ff0e476b000
mmap(0x7ff0e476d000, 6760, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff0e476d000
close(4)                                = 0
mprotect(0x7ff0e476b000, 4096, PROT_READ) = 0
mprotect(0x7ff0e4974000, 4096, PROT_READ) = 0
munmap(0x7ff0e5758000, 63663)           = 0
socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.20.1")}, 16) = 0
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])
sendto(4, "\265E\1\0\0\1\0\0\0\0\0\0\tarchlinux\3org\0\0\1\0\1", 31, MSG_NOSIGNAL, NULL, 0) = 31
poll([{fd=4, events=POLLIN}], 1, 5000)  = 1 ([{fd=4, revents=POLLIN}])
ioctl(4, FIONREAD, [47])                = 0
recvfrom(4, "\265E\201\200\0\1\0\1\0\0\0\0\tarchlinux\3org\0\0\1\0\1\300"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.20.1")}, [16]) = 47
close(4)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(1025), sin_addr=inet_addr("66.211.214.131")}, 16) = 0
getsockname(4, {sa_family=AF_INET, sin_port=htons(33288), sin_addr=inet_addr("192.168.20.125")}, [16]) = 0
close(4)                                = 0
setsockopt(3, SOL_RAW, ICMP_FILTER, ~(ICMP_ECHOREPLY|ICMP_DEST_UNREACH|ICMP_SOURCE_QUENCH|ICMP_REDIRECT|ICMP_TIME_EXCEEDED|ICMP_PARAMETERPROB), 4) = 0
setsockopt(3, SOL_IP, IP_RECVERR, [1], 4) = 0
setsockopt(3, SOL_SOCKET, SO_SNDBUF, [324], 4) = 0
setsockopt(3, SOL_SOCKET, SO_RCVBUF, [65536], 4) = 0
getsockopt(3, SOL_SOCKET, SO_RCVBUF, [131072], [4]) = 0
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0e576c000
setsockopt(3, SOL_SOCKET, SO_TIMESTAMP, [1], 4) = 0
setsockopt(3, SOL_SOCKET, SO_SNDTIMEO, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 0
setsockopt(3, SOL_SOCKET, SO_RCVTIMEO, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 0
rt_sigaction(SIGINT, {0x404170, [], SA_RESTORER|SA_INTERRUPT, 0x7ff0e4fcd400}, NULL, 8) = 0
rt_sigaction(SIGALRM, {0x404170, [], SA_RESTORER|SA_INTERRUPT, 0x7ff0e4fcd400}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {0x404160, [], SA_RESTORER|SA_INTERRUPT, 0x7ff0e4fcd400}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fff161a4580) = -1 ENOTTY (Inappropriate ioctl for device)
sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("66.211.214.131")}, msg_iov(1)=[{"\10\0\3C\t\224\0\1]kUS\0\0\0\0k\226\16\0\0\0\0\0\20\21\22\23\24\25\26\27"..., 64}], msg_controllen=0, msg_flags=0}, 0) = 64
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={10, 0}}, NULL) = 0
recvmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("66.211.214.131")}, msg_iov(1)=[{"E\0\0T\327h\0\0007\1\275\304B\323\326\203\300\250\24}\0\0\vC\t\224\0\1]kUS"..., 192}], msg_controllen=32, {cmsg_len=32, cmsg_level=SOL_SOCKET, cmsg_type=0x1d /* SCM_??? */, ...}, msg_flags=0}, 0) = 84
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0e576b000
read(4, "#\n# /etc/hosts: static lookup ta"..., 4096) = 195
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x7ff0e576b000, 4096)            = 0
socket(PF_LOCAL, SOCK_STREAM, 0)        = 4
fcntl(4, F_GETFD)                       = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/avahi-daemon/socket"}, 110) = 0
fcntl(4, F_GETFL)                       = 0x2 (flags O_RDWR)
fstat(4, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff0e576b000
lseek(4, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(4, "RESOLVE-ADDRESS 66.211.214.131\n", 31) = 31
read(4, "-15 Timeout reached\n", 4096)  = 20
close(4)                                = 0
munmap(0x7ff0e576b000, 4096)            = 0
write(1, "PING archlinux.org (66.211.214.1"..., 119PING archlinux.org (66.211.214.131) 56(84) bytes of data.
64 bytes from 66.211.214.131: icmp_seq=1 ttl=55 time=46.5 ms
) = 119
write(1, "\n", 1
)                       = 1
write(1, "--- archlinux.org ping statistic"..., 151--- archlinux.org ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 46.504/46.504/46.504/0.000 ms
) = 151
exit_group(0)                           = ?
+++ exited with 0 +++

When running strace, the output pauses at the line exactly as follows:

write(4, "RESOLVE-ADDRESS 66.211.214.131\n", 31) = 31
read(4,

After a few seconds, it finishes printing the "read(4," line.

------

Alright, so doing `ping -i 1 -c 4 66.211.214.131` works as expected. So something must be going wrong trying to resolve the name?

Doing `dig archlinux.org` is instantaneous.

Last edited by solarwind (2014-04-21 19:15:43)

Offline

#8 2014-04-22 14:23:47

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [solved] Broken ping

Yes; and another useful indication is this line which tells you what is on the other end of #4:

connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/avahi-daemon/socket"}, 110) = 0

So have a look at your avahi daemon as it might be slowing down the resolving; which in turn slows down your ping

Offline

#9 2014-04-22 14:28:19

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: [solved] Broken ping

Spider.007 wrote:

Yes; and another useful indication is this line which tells you what is on the other end of #4:

connect(4, {sa_family=AF_LOCAL, sun_path="/var/run/avahi-daemon/socket"}, 110) = 0

So have a look at your avahi daemon as it might be slowing down the resolving; which in turn slows down your ping

Fixed. I had to edit /etc/nsswitch.conf and change

hosts: files mdns [NOTFOUND=return] dns myhostname

to

hosts: files mdns_minimal [NOTFOUND=return] dns myhostname

Thank you!

Offline

Board footer

Powered by FluxBB