openSUSE / wicked

Framework for network configuration
https://en.opensuse.org/Portal:Wicked
GNU General Public License v2.0
101 stars 50 forks source link

UdpRcvbufError, TcpEstabResets, others +1 during renewal #783

Open dev-zero opened 5 years ago

dev-zero commented 5 years ago

This is with wicked-0.6.47 on openSUSE Leap 15.0. I started noticing because I got notifications about UDP errors from netdata (due to low UDP traffic). tcpdump shows a proper handshake (unicast DHCP_REQ followed by a DHCP_ACK), nevertheless do the Linux network counters go up. Here is a diff of nstat -a from ~2 minutes before and after the renewal:

--- nstat-2.log 2018-11-28 09:30:57.660054836 +0100
+++ nstat-3.log 2018-11-28 09:31:09.120628107 +0100
@@ -1,10 +1,10 @@
 -- Logs begin at Wed 2018-11-14 14:43:25 CET, end at Wed 2018-11-28 09:00:02 CET. --
-Nov 27 18:00:02 tcopt11 systemd[1]: Started /usr/sbin/nstat -a.
+Nov 27 18:05:02 tcopt11 systemd[1]: Started /usr/sbin/nstat -a.
 #kernel
-IpInReceives                    2705592            0.0
+IpInReceives                    2706442            0.0
 IpInAddrErrors                  1                  0.0
-IpInDelivers                    2680700            0.0
-IpOutRequests                   5049644            0.0
+IpInDelivers                    2681331            0.0
+IpOutRequests                   5050872            0.0
 IpOutDiscards                   4                  0.0
 IcmpInMsgs                      173                0.0
 IcmpInDestUnreachs              11                 0.0
@@ -16,30 +16,30 @@
 IcmpMsgInType8                  162                0.0
 IcmpMsgOutType0                 162                0.0
 IcmpMsgOutType3                 21                 0.0
-TcpActiveOpens                  2683               0.0
+TcpActiveOpens                  2684               0.0
 TcpPassiveOpens                 756                0.0
 TcpAttemptFails                 159                0.0
-TcpEstabResets                  30                 0.0
-TcpInSegs                       2669319            0.0
-TcpOutSegs                      5112866            0.0
+TcpEstabResets                  31                 0.0
+TcpInSegs                       2669945            0.0
+TcpOutSegs                      5114091            0.0
 TcpRetransSegs                  14                 0.0
-TcpOutRsts                      1560               0.0
-UdpInDatagrams                  11279              0.0
+TcpOutRsts                      1561               0.0
+UdpInDatagrams                  11283              0.0
 UdpNoPorts                      17                 0.0
-UdpInErrors                     8                  0.0
-UdpOutDatagrams                 11327              0.0
-UdpRcvbufErrors                 8                  0.0
-Ip6InReceives                   154                0.0
+UdpInErrors                     9                  0.0
+UdpOutDatagrams                 11332              0.0
+UdpRcvbufErrors                 9                  0.0
+Ip6InReceives                   162                0.0
 Ip6InDelivers                   104                0.0
 Ip6OutRequests                  429                0.0
 Ip6OutNoRoutes                  192                0.0
-Ip6InMcastPkts                  50                 0.0
+Ip6InMcastPkts                  58                 0.0
 Ip6OutMcastPkts                 325                0.0
-Ip6InOctets                     12586              0.0
+Ip6InOctets                     13434              0.0
 Ip6OutOctets                    25632              0.0
-Ip6InMcastOctets                5250               0.0
+Ip6InMcastOctets                6098               0.0
 Ip6OutMcastOctets               18296              0.0
-Ip6InNoECTPkts                  154                0.0
+Ip6InNoECTPkts                  162                0.0
 Icmp6InMsgs                     2                  0.0
 Icmp6OutMsgs                    327                0.0
 Icmp6InDestUnreachs             2                  0.0
@@ -55,27 +55,27 @@
 Udp6NoPorts                     2                  0.0
 Udp6OutDatagrams                2                  0.0
 TcpExtTW                        2105               0.0
-TcpExtDelayedACKs               1139356            0.0
+TcpExtDelayedACKs               1139656            0.0
 TcpExtDelayedACKLocked          3                  0.0
 TcpExtDelayedACKLost            9                  0.0
-TcpExtTCPHPHits                 167851             0.0
-TcpExtTCPPureAcks               9094               0.0
-TcpExtTCPHPAcks                 260760             0.0
+TcpExtTCPHPHits                 167861             0.0
+TcpExtTCPPureAcks               9101               0.0
+TcpExtTCPHPAcks                 260763             0.0
 TcpExtTCPLossProbes             14                 0.0
 TcpExtTCPDSACKOldSent           9                  0.0
 TcpExtTCPDSACKRecv              11                 0.0
 TcpExtTCPAbortOnData            242                0.0
-TcpExtTCPAbortOnClose           29                 0.0
+TcpExtTCPAbortOnClose           30                 0.0
 TcpExtTCPDSACKIgnoredNoUndo     10                 0.0
-TcpExtTCPRcvCoalesce            14017              0.0
+TcpExtTCPRcvCoalesce            14018              0.0
 TcpExtTCPOFOQueue               2973               0.0
-TcpExtTCPAutoCorking            116657             0.0
-TcpExtTCPOrigDataSent           2764338            0.0
+TcpExtTCPAutoCorking            116658             0.0
+TcpExtTCPOrigDataSent           2764954            0.0
 TcpExtTCPHystartTrainDetect     29                 0.0
 TcpExtTCPHystartTrainCwnd       877                0.0
 TcpExtTCPKeepAlive              30                 0.0
-IpExtInBcastPkts                23465              0.0
-IpExtInOctets                   1037250986         0.0
-IpExtOutOctets                  809582542          0.0
-IpExtInBcastOctets              3105584            0.0
-IpExtInNoECTPkts                2986200            0.0
+IpExtInBcastPkts                23470              0.0
+IpExtInOctets                   1037406300         0.0
+IpExtOutOctets                  809759604          0.0
+IpExtInBcastOctets              3106107            0.0
+IpExtInNoECTPkts                2987050            0.0

It seems to be triggered only during a renewal.

I see this on a number of hosts with the mentioned version of wicked and openSUSE, but not with:

Now in the process of testing with wicked 0.6.52

dev-zero commented 5 years ago

The error seems to be gone after upgrading to wicked-0.6.52 on one test machine (after 2 renewals), although I don't get why it should be fixed.

The errors start showing up at the 3rd renewal. The DHCP servers in my network do not set a separate renewal period, only the max lease of 48h.