DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 31st October 2012
sparky's Avatar
sparky sparky is offline
Fdisk Soldier
 
Join Date: Mar 2012
Posts: 73
Thanked 0 Times in 0 Posts
Default PPPoE really slow speeds when connecting through DSL Modem?

Hi,

I'm running a Sun Microsystems Netra T105 SPARC box as a router/firewall/gateway/NAT.

It's a 400MHz machine with 360MB RAM. Initially I tested it's routing capability with 100Mbps Ethernet and it was quite close to wire-speed however, I'm currenty using for my WAN needs for my ADSL Annex M line and unfortunately not getting anywhere near the speeds the line is capable of serving.

My WAN speed should be 20Mbps downstream and 2Mbps upstream. My current rates are below 5Mbps downstream and 700kbps upstream.


The modem I'm using is a Cisco 887VA which is both Annex M ADSL and VDSL compatible.


I took my config for the OpenBSD server from here:

http://adju.st/paper/openbsd-adsl-wlan-howto.html


The reason I want to use the OpenBSD box as router/gateway/NAT/Firewall is that Cisco's keep crashing on me when loads get higher. Their NAT's don't really handle the stress of 1000+ connections (takes up more memory then the boxes have).


The config that I'm running is here:

ppp.conf

Code:
default:
 set log Phase Chat IPCP CCP tun command
 set redial 15 0
 set reconnect 15 10000

pppoe:
 set device "!/usr/sbin/pppoe -i hme0"
 disable acfcomp protocomp
 deny acfcomp
 set mtu max 1454
 set speed sync
 enable lqr
 set lqrperiod 5
 set cd 5
 set dial
 set login
 set timeout 0
 set authname <authname>
 set authkey <key>
 add! default HISADDR
# enable dns
 enable mssfixup
options:

Code:
options
lock
auth
usehostname
rc.local

Code:
# Start PPPoE ahead of ntpd
echo -n ' PPPoE'
ppp -ddial pppoe
sleep 20
ppp-linkdown

Code:
MYADDR:
 !bg /sbin/pfctl -d
ppp-linkup

Code:
MYADDR:
 !bg sh -c "/sbin/pfctl -e -f /etc/pf.conf"
Can anyone help me out at all either with a config change or suggest something else?


I was thinking of using the router for PPPoA with another public IP then routing that to my OpenBSD machine. Outside of that am totally stuck; I see people using PPPoE with VDSL2 even meaning that the higher speeds should be obtainable just how?


Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 31st October 2012
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,608
Thanked 214 Times in 189 Posts
Default

Your problem just might be due to using a third party "HowTo" that will be nine years old in January, rather than using up-to-date, official documentation.

Perhaps you used FAQ 6 and the pppoe(8) man page, but you didn't mention them.

While I don't use either PPP or PPPoE, I note that your configuration does not match the pppoe(8) man page for mru.

Edited. At first glance it appeared the be a protocomp mismatch, but on revisiting it appears I misread and the missing setting is for mru.
Reply With Quote
  #3   (View Single Post)  
Old 31st October 2012
sparky's Avatar
sparky sparky is offline
Fdisk Soldier
 
Join Date: Mar 2012
Posts: 73
Thanked 0 Times in 0 Posts
Default

Thanks for the response!

I did read the OpenBSD FAQ http://www.openbsd.org/faq/faq6.html#PPP

but there isn't much information in it and pppd isn't even discussed and there isn't much info in the man pages either.

It seems to be one of those fairly closed loop things which can be done in a few different ways but not documented that well.

At present I'm looking here: http://un.geeig.net/openbsd-vdsl.html

which I'm going to attempt. Again totally different way!

Instead of using /etc/ppp/ppp.conf and a tunnel interface, the posting creates an interface /etc/pppoe.conf. Having gone through the FAQ I don't recall reading that anywhere though it might be in a place that I haven't looked yet.

P.s. I know howto's aren't really fondly looked at but if you have no understanding initially of how things are done on a specific platform examples can help a lot with the learning process. Just like learning how to read
Reply With Quote
  #4   (View Single Post)  
Old 31st October 2012
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,608
Thanked 214 Times in 189 Posts
Default

Specifically, I was referring to the pppoe(8) man page where it states (highlights mine):
Code:
     Configuring the client involves setting up the configuration file for
     ppp(8).  The following statements must be included in the file for the
     specified system (or ``default'' if no system is specified):

           set device "!/usr/sbin/pppoe"
           set mtu max 1492
           set mru max 1492
           set speed sync
           disable acfcomp protocomp
           deny acfcomp

     The set device line tells ppp to use the pppoe program for input and
     output instead of using a serial port or other network connection.  The
     mtu and mru must be set to 1492 to leave room in the outgoing Ethernet
     packet for the pppoe headers.  The set speed sync line tells ppp to use
     synchronous encoding for the packets sent between it and pppoe.
     According to RFC 2516, protocol compression, protocomp, is not
     recommended, so it is disabled, but not denied.  On the other hand,
     address and control field compression, acfcomp, must be disabled and
     denied.
As I don't use ppp in any form, I can't tell you if your performance problem is due to mru setting or not; only that it was missing from your posted configuration.
Reply With Quote
  #5   (View Single Post)  
Old 31st October 2012
sparky's Avatar
sparky sparky is offline
Fdisk Soldier
 
Join Date: Mar 2012
Posts: 73
Thanked 0 Times in 0 Posts
Default

Thanks for that!

I added the mru setting but unfortunately no go, speeds are now sub 1Mbps downstream

I also changed the mtu settings to 1492 from 1454.


I guess I'll have to keep Google'ing for some other config to see if I get a performance hike
Reply With Quote
  #6   (View Single Post)  
Old 31st October 2012
sparky's Avatar
sparky sparky is offline
Fdisk Soldier
 
Join Date: Mar 2012
Posts: 73
Thanked 0 Times in 0 Posts
Default

Well.... to get back to what people are using in modern times.

pppoe(8) is the older version (as far as config goes that I found). I do believe that this is the 'userland' process.

I have now switched over to pppoe(4) which I think is the kernel based service which people are claiming is a lot faster.

Unfortunately my speeds are still the same, and I'm not sure if low horsepower due to my CPU clock being at 400MHz however I do hope this helps someone if they need answers like me!

Config is fairly simple:

Code:
inet 0.0.0.0 255.255.255.255 NONE mtu 1492 \
        pppoedev hme0 authproto chap \
        authname <authname> authkey <authkey> \
        up
dest 0.0.0.1
!/sbin/route add default -ifp pppoe0 0.0.0.1
hostname.hme0

Code:
up mtu 1500
and that's it!

Hope this helps someone

....now to work out the speed issue
Reply With Quote
  #7   (View Single Post)  
Old 31st October 2012
sparky's Avatar
sparky sparky is offline
Fdisk Soldier
 
Join Date: Mar 2012
Posts: 73
Thanked 0 Times in 0 Posts
Default

Ok I think I've figured out what needs to be changed however I'm not sure how to change it as OpenBSD 5.1 seems to use automatic buffering.

Following these postings:

http://forums.whirlpool.net.au/archive/481579

http://forums.whirlpool.net.au/forum...s.cfm?t=116165

and taking the VDSL example from above some values in /etc/sysctl.conf need to be adjusted:

Code:
net.inet.tcp.mssdflt=1452
net.inet.tcp.recvspace=131072
net.inet.tcp.sendspace=131072
net.inet.udp.recvspace=139264
net.inet.udp.sendspace=32768
The tcp.send/recvspace values however are allocated automatically on OpenBSD 5.1, and they seem to be the cause of the speed issue and in fact seem to be set quite conservatively.

So all I need to figure out now is how to adjust it or change the hard-limits - IF it can be done.
Reply With Quote
  #8   (View Single Post)  
Old 1st November 2012
sparky's Avatar
sparky sparky is offline
Fdisk Soldier
 
Join Date: Mar 2012
Posts: 73
Thanked 0 Times in 0 Posts
Default

Did a quick test; I used PPPoA on the router and coupled it to the Netra. PPPoE wasn't the issue! (or could be related)

Turns out the amount of filtering done by Packet Filter was grinding the system down to a halt. I ended up taking out the NAT/PAT and PPPoE config but creating some PF rules to allow for OSPF, telnet (to the router) amongst other things. The speed was still only reaching round 4.5Mbps on the downstream with only routing, OSPF, PF (firewalling) active

Well.... I swaped out the OpenBSD to using the plain old modem as router.

Performance has increased by an enormous amount with speeds reaching in excess of 13Mbps downstream though now I don't have any firewall in place and NAT is NOT a solution for security!! however, I will try a Sun Fire V210 server soon and see if that makes a difference unless I manage to find some performance tweaks. Activating all the security features on the router will definitely kill it - I know for a fact as I have experience, unless you pay in excess of $10k for a modular carrier grade router expect performance to be quite poor even with business grade ones (like mine!).
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EU plan to spend billions on boosting broadband speeds J65nko News 0 15th October 2011 09:48 PM
Fluctuating connection speeds OBSD 4.7 schh OpenBSD General 5 12th June 2011 11:02 PM
pppoe kaschei OpenBSD General 2 20th May 2009 01:14 AM
PPPoE -> ADSL Router (Bridge) - Slow connect? DraconianTimes OpenBSD General 0 31st December 2008 01:07 PM
Modem PPPoE vs OpenBSD PPPoE ryoken OpenBSD Security 13 15th June 2008 10:07 PM


All times are GMT. The time now is 09:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick