ng_pptpgre problems: tcp connections reset unexpectedly

Nikos Vassiliadis nvass at teledomenet.gr
Fri Jan 26 19:16:26 UTC 2007


Hello everybody,

 It seems that tcp connections over pptp reset unexpectedly. I have
tried several things such as connecting from a FBSD-4 to a FBSD-6,
connecting from a FBSD-[46] to a Cisco router(*). There are times which
the client box gets from the other peer an echo-request msg, which is
not supposed to happen while downloading. Perhaps it's relevant to
this:
11:31:40.887739 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20702393:20703805(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225914>
11:31:40.887859 IP 134.76.12.3.56123 > 213.142.137.253.64016: P 20703805:20705217(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225914>
11:31:40.888005 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20705217:20706629(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225914>
11:31:40.888217 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20706629:20708041(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225914>
11:31:40.888352 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20708041:20709453(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225914>
11:31:40.888660 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20709453:20710865(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225915>
11:31:40.888966 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20710865:20712277(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225916>

(*) the result is always the same.

What i have not tried, is a newer mpd, Alexander Motin seems to
maintain mpd very actively, he sends a patch every 5 minutes or so:)
I am using at the moment 6.2-PRE, just a  few days before RELEASE,
and mpd-3.18_4.

Could you please help? any workarounds, tunables, suggestions?
It's my connection to the internet and from time to time I need
to download something bigger than a few megs...

Thanks in advance, Nikos

root:2:~/tst1# fetch ftp://ftp2.de.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/6.2/6.2-RELEASE-i386-disc1.iso; date 
6.2-RELEASE-i386-disc1.iso                      3% of  573 MB  185 kBps 50m56s
fetch: transfer timed out
fetch: 6.2-RELEASE-i386-disc1.iso appears to be truncated: 20702208/601229312 bytes
Fri Jan 26 11:31:40 EET 2007

netstat -m:
11:31:38
139/521/660 mbufs in use (current/cache/total)
65/291/356/17088 mbuf clusters in use (current/cache/total/max)
65/204 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
164K/712K/877K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/7/4528 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
2016 calls to protocol drain routines
11:31:39
141/519/660 mbufs in use (current/cache/total)
65/291/356/17088 mbuf clusters in use (current/cache/total/max)
65/204 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
165K/711K/877K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/7/4528 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
2016 calls to protocol drain routines
11:31:40
179/481/660 mbufs in use (current/cache/total)
65/291/356/17088 mbuf clusters in use (current/cache/total/max)
65/204 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
174K/702K/877K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/7/4528 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
2016 calls to protocol drain routines
11:31:41
70/590/660 mbufs in use (current/cache/total)
66/290/356/17088 mbuf clusters in use (current/cache/total/max)
66/203 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
149K/727K/877K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/7/4528 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
2016 calls to protocol drain routines

tcpdump.ng0:
11:31:40.797285 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20695333:20696745(1412) ack 1 win 5792 <nop,nop,timestamp 50979088 694225824>
11:31:40.797294 IP 213.142.137.253.64016 > 134.76.12.3.56123: . ack 20696745 win 32476 <nop,nop,timestamp 694225916 50979088>
11:31:40.797697 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20696745:20698157(1412) ack 1 win 5792 <nop,nop,timestamp 50979088 694225824>
11:31:40.797780 IP 213.142.137.253.64016 > 134.76.12.3.56123: . ack 20698157 win 33182 <nop,nop,timestamp 694225916 50979088>
11:31:40.798589 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20698157:20699569(1412) ack 1 win 5792 <nop,nop,timestamp 50979089 694225826>
11:31:40.798739 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20699569:20700981(1412) ack 1 win 5792 <nop,nop,timestamp 50979089 694225826>
11:31:40.798748 IP 213.142.137.253.64016 > 134.76.12.3.56123: . ack 20700981 win 32476 <nop,nop,timestamp 694225917 50979089>
11:31:40.798877 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20700981:20702393(1412) ack 1 win 5792 <nop,nop,timestamp 50979089 694225826>
11:31:40.798924 IP 213.142.137.253.64016 > 134.76.12.3.56123: . ack 20702393 win 33182 <nop,nop,timestamp 694225917 50979089>
11:31:40.859025 IP 213.142.137.253.64016 > 134.76.12.3.56123: R 1:1(0) ack 20702393 win 33182
11:31:40.887739 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20702393:20703805(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225914>
11:31:40.887859 IP 134.76.12.3.56123 > 213.142.137.253.64016: P 20703805:20705217(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225914>
11:31:40.888005 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20705217:20706629(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225914>
11:31:40.888217 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20706629:20708041(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225914>
11:31:40.888352 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20708041:20709453(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225914>
11:31:40.888660 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20709453:20710865(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225915>
11:31:40.888966 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20710865:20712277(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225916>
11:31:40.889120 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20712277:20713689(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225916>
11:31:40.889424 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20713689:20715101(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225916>
11:31:40.890062 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20715101:20716513(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225917>
11:31:40.890204 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20716513:20717925(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225917>
11:31:40.890488 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20717925:20719337(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225917>
11:31:40.890616 IP 134.76.12.3.56123 > 213.142.137.253.64016: . 20719337:20720749(1412) ack 1 win 5792 <nop,nop,timestamp 50979098 694225917>
11:31:40.948622 IP 134.76.12.3.21 > 213.142.137.253.63090: P 3351:3387(36) ack 241 win 5792 <nop,nop,timestamp 50979104 694117118>
11:31:40.948922 IP 213.142.137.253.63090 > 134.76.12.3.21: F 241:241(0) ack 3387 win 33182 <nop,nop,timestamp 694226067 50979104>
11:31:41.038701 IP 134.76.12.3.21 > 213.142.137.253.63090: P 3387:3424(37) ack 242 win 5792 <nop,nop,timestamp 50979113 694226067>
11:31:41.038728 IP 213.142.137.253.63090 > 134.76.12.3.21: R 1015843767:1015843767(0) win 0
11:31:41.039995 IP 134.76.12.3.21 > 213.142.137.253.63090: F 3424:3424(0) ack 242 win 5792 <nop,nop,timestamp 50979113 694226067>

tcpdump.fxp0:
11:31:40.794914 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37741, ack 25863, length 24: IP [|ip]
11:31:40.795396 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.795399 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37742, ack 25863, length 24: IP [|ip]
11:31:40.795486 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, seq 25864, ack 37741, length 72: IP 213.142.137.253.64016 > 134.76.12.3.56123: . ack 20688273 win 32476 <nop,nop,[|tcp]>
11:31:40.795684 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.795688 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37743, ack 25863, length 24: IP [|ip]
11:31:40.795782 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, seq 25865, ack 37742, length 72: IP 213.142.137.253.64016 > 134.76.12.3.56123: . ack 20689685 win 33182 <nop,nop,[|tcp]>
11:31:40.795826 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.795830 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37744, ack 25863, length 24: IP [|ip]
11:31:40.795972 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.796003 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, seq 25866, ack 37744, length 72: IP 213.142.137.253.64016 > 134.76.12.3.56123: . ack 20692509 win 32476 <nop,nop,[|tcp]>
11:31:40.796109 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37745, ack 25863, length 24: IP [|ip]
11:31:40.796604 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.796607 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37746, ack 25865, length 24: IP [|ip]
11:31:40.796757 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, seq 25867, ack 37745, length 72: IP 213.142.137.253.64016 > 134.76.12.3.56123: . ack 20693921 win 33182 <nop,nop,[|tcp]>
11:31:40.796995 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.796999 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37747, ack 25865, length 24: IP [|ip]
11:31:40.797269 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.797272 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37748, ack 25866, length 24: IP [|ip]
11:31:40.797303 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, seq 25868, ack 37747, length 72: IP 213.142.137.253.64016 > 134.76.12.3.56123: . ack 20696745 win 32476 <nop,nop,[|tcp]>
11:31:40.797679 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.797793 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, seq 25869, ack 37748, length 72: IP 213.142.137.253.64016 > 134.76.12.3.56123: . ack 20698157 win 33182 <nop,nop,[|tcp]>
11:31:40.798073 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37749, ack 25868, length 24: IP [|ip]
11:31:40.798565 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.798568 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37750, ack 25868, length 24: IP [|ip]
11:31:40.798722 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.798726 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37751, ack 25868, length 24: IP [|ip]
11:31:40.798759 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, seq 25870, ack 37750, length 72: IP 213.142.137.253.64016 > 134.76.12.3.56123: . ack 20700981 win 32476 <nop,nop,[|tcp]>
11:31:40.798864 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.798935 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, seq 25871, ack 37751, length 72: IP 213.142.137.253.64016 > 134.76.12.3.56123: . ack 20702393 win 33182 <nop,nop,[|tcp]>
11:31:40.859053 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, seq 25872, length 56: IP 213.142.137.253.64016 > 134.76.12.3.56123: R 1:1(0) ack 20702393 win 33182
11:31:40.887217 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37752, ack 25872, length 24: IP [|ip]
11:31:40.887703 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.887706 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37753, ack 25872, length 24: IP [|ip]
11:31:40.887844 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.887846 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37754, ack 25872, length 24: IP [|ip]
11:31:40.887990 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.887993 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37755, ack 25872, length 24: IP [|ip]
11:31:40.888201 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.888204 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37756, ack 25872, length 24: IP [|ip]
11:31:40.888336 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.888340 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37757, ack 25872, length 24: IP [|ip]
11:31:40.888645 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.888647 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37758, ack 25872, length 24: IP [|ip]
11:31:40.888950 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.888954 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37759, ack 25872, length 24: IP [|ip]
11:31:40.889104 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.889108 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37760, ack 25872, length 24: IP [|ip]
11:31:40.889412 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.889554 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37761, ack 25872, length 24: IP [|ip]
11:31:40.890047 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.890050 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37762, ack 25872, length 24: IP [|ip]
11:31:40.890188 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.890191 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37763, ack 25872, length 24: IP [|ip]
11:31:40.890473 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.890476 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37764, ack 25872, length 24: IP [|ip]
11:31:40.890605 IP 10.1.1.233 > 192.168.1.71: gre
11:31:40.892035 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, ack 37764, no-payload, length 12
11:31:40.948594 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37765, ack 25872, length 108: IP 134.76.12.3.21 > 213.142.137.253.63090: P 3351:3387(36) ack 241 win 5792 <nop,nop,[|tcp]>
11:31:40.948945 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, seq 25873, ack 37765, length 72: IP 213.142.137.253.63090 > 134.76.12.3.21: F 241:241(0) ack 3387 win 33182 <nop,nop,[|tcp]>
11:31:40.966187 IP6 fe80::200:b4ff:fe93:32c1 > ff02::1:ff00:193: ICMP6, neighbor solicitation, who has 2001:610:240:0:53::193, length 32
11:31:41.038668 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37766, ack 25873, length 109: IP 134.76.12.3.21 > 213.142.137.253.63090: P 3387:3424(37) ack 242 win 5792 <nop,nop,[|tcp]>
11:31:41.038747 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, seq 25874, ack 37766, length 60: IP 213.142.137.253.63090 > 134.76.12.3.21: R 1015843767:1015843767(0) win 0
11:31:41.039984 IP 10.1.1.233 > 192.168.1.71: GREv1, call 24108, seq 37767, ack 25874, length 72: IP 134.76.12.3.21 > 213.142.137.253.63090: F 3424:3424(0) ack 242 win 5792 <nop,nop,[|tcp]>
11:31:41.045027 IP 192.168.1.71 > 10.1.1.233: GREv1, call 58, ack 37767, no-payload, length 12
11:31:41.222816 802.1d config 8000.00:05:1a:b3:80:80.8018 root 8000.00:05:1a:b3:80:80 pathcost 0 age 0 max 20 hello 2 fdelay 15 


More information about the freebsd-net mailing list