Date: 04 Jul 2002 09:12:24 +0200 From: Kai Kaminski <kok@wtal.de> To: freebsd-questions@freebsd.org Subject: mpd is slow Message-ID: <86znx8uftz.fsf@wtal.de>
next in thread | raw e-mail | index | archive | help
Hi, my machine is connected to my university's student network, which is connected to the internet. Since a few weeks, I have to establish a vpn connection before I can send any packets outside the local network. I'm using mpd for this. The problem is, that with mpd the connections are incredibly slow, sometimes only a few hundred bytes/s. Before vpn was introduced I normally had download rates of several dozen kilobytes/s and with my windows machine I still get those rates. This phenomenon doesn't depend on the protocol used. It doesn't matter if I use http, ftp, nntp or pop3. I already tried to change net.inet.tcp.sendspace etc., but it had no effect. (I tried values between 2048 and 65536) Here is my config: # uname -a FreeBSD gauss 4.5-RELEASE-p6 FreeBSD 4.5-RELEASE-p6 #0: Mon Jun 24 22:49:40 CEST 2002 kok@gauss:/usr/obj/usr/src/sys/GAUSS i386 # mpd -v Version 3.8 (root@gohan15.FreeBSD.org 23:37 26-May-2002) # cat /usr/local/etc/mpd/mpd.conf default: load vpn vpn: new -i ng0 vpn vpn set iface disable on-demand set iface idle 0 set iface route default set bundle disable multilink set bundle authname xxxx set link no acfcomp protocomp set link no pap set link accept chap set ipcp no vjcomp open # cat /usr/local/etc/mpd/mpd.links ### StudNet VPN for FreeBSD (mpd.links) vpn: set link type pptp set pptp peer vpn.aaa.bbb.ccc set pptp enable originate incoming outcall /home/kok# ipfw -a show 10000 1268 723216 allow ip from any to any via lo0 11000 0 0 deny log logamount 100 ip from any to 127.0.0.0/8 12000 30937 5178738 allow tcp from any to any established 13000 0 0 deny log logamount 100 tcp from any to any in setup 13500 0 0 deny log logamount 100 udp from any to any 53 in 60000 43039 6311018 allow ip from any to any 65535 1 330 allow ip from any to any And here is my mpd.log: Jul 4 08:59:59 <3.6> gauss mpd: [vpn] LCP: SendConfigReq #2 Jul 4 08:59:59 <3.6> gauss mpd: MRU 1500 Jul 4 08:59:59 <3.6> gauss mpd: MAGICNUM bc313f00 Jul 4 08:59:59 <3.6> gauss mpd: [vpn] LCP: rec'd Configure Ack #2 link 0 (Ack-Sent) Jul 4 08:59:59 <3.6> gauss mpd: MRU 1500 Jul 4 08:59:59 <3.6> gauss mpd: MAGICNUM bc313f00 Jul 4 08:59:59 <3.6> gauss mpd: [vpn] LCP: state change Ack-Sent --> Opened Jul 4 08:59:59 <3.6> gauss mpd: [vpn] LCP: phase shift ESTABLISH --> AUTHENTICATE Jul 4 08:59:59 <3.6> gauss mpd: [vpn] LCP: auth: peer wants CHAP, I want nothing Jul 4 08:59:59 <3.6> gauss mpd: [vpn] LCP: LayerUp Jul 4 08:59:59 <3.6> gauss mpd: [vpn] CHAP: rec'd CHALLENGE #1 Jul 4 08:59:59 <3.6> gauss mpd: Name: "vpn-nat-02-a" Jul 4 08:59:59 <3.6> gauss mpd: Using authname "xxxxxxx" Jul 4 08:59:59 <3.6> gauss mpd: [vpn] CHAP: sending RESPONSE Jul 4 08:59:59 <3.6> gauss mpd: [vpn] CHAP: rec'd SUCCESS #1 Jul 4 08:59:59 <3.6> gauss mpd: MESG: S=E355572B0B4908B26E62278250BAED78E5FFC5A8 Jul 4 08:59:59 <3.6> gauss mpd: [vpn] LCP: authorization successful Jul 4 08:59:59 <3.6> gauss mpd: [vpn] LCP: phase shift AUTHENTICATE --> NETWORK Jul 4 08:59:59 <3.6> gauss mpd: [vpn] up: 1 link, total bandwidth 64000 bps Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: Up event Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: state change Starting --> Req-Sent Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: SendConfigReq #1 Jul 4 08:59:59 <3.6> gauss mpd: IPADDR IP1 Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: rec'd Configure Request #1 link 0 (Req-Sent) Jul 4 08:59:59 <3.6> gauss mpd: IPADDR IP2 Jul 4 08:59:59 <3.6> gauss mpd: IP2 is OK Jul 4 08:59:59 <3.6> gauss mpd: COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: SendConfigRej #1 Jul 4 08:59:59 <3.6> gauss mpd: COMPPROTO VJCOMP, 16 comp. channels, allow comp-cid Jul 4 08:59:59 <3.6> gauss mpd: [vpn] rec'd unexpected protocol CCP on link 0, rejecting Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: rec'd Configure Nak #1 link 0 (Req-Sent) Jul 4 08:59:59 <3.6> gauss mpd: IPADDR IP3 Jul 4 08:59:59 <3.6> gauss mpd: IP3 is OK Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: SendConfigReq #2 Jul 4 08:59:59 <3.6> gauss mpd: IPADDR IP3 Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: rec'd Configure Request #2 link 0 (Req-Sent) Jul 4 08:59:59 <3.6> gauss mpd: IPADDR IP2 Jul 4 08:59:59 <3.6> gauss mpd: IP2 is OK Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: SendConfigAck #2 Jul 4 08:59:59 <3.6> gauss mpd: IPADDR IP2 Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: state change Req-Sent --> Ack-Sent Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: rec'd Configure Ack #2 link 0 (Ack-Sent) Jul 4 08:59:59 <3.6> gauss mpd: IPADDR IP3 Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: state change Ack-Sent --> Opened Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IPCP: LayerUp Jul 4 08:59:59 <3.6> gauss mpd: IP3 -> IP2 Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IFACE: Up event Jul 4 08:59:59 <3.6> gauss mpd: [vpn] exec: /sbin/ifconfig ng0 IP3 IP2 netmask 0xffffffff -link0 Jul 4 08:59:59 <3.6> gauss mpd: [vpn] exec: /sbin/route add 0.0.0.0 IP2 Jul 4 08:59:59 <3.6> gauss mpd: [vpn] exec: command returned 256 Jul 4 08:59:59 <3.6> gauss mpd: [vpn] IFACE: Up event Thanks in advance, Kai Kaminski To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86znx8uftz.fsf>